2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.68 for gacela 0.5.
5 # Report bugs to <jsf@jsancho.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 jsf@jsancho.org
250 $0: about your system, including any error possibly output
251 $0: before this message. Then install a modern shell, or
252 $0: manually run the script under such a shell if you do
259 SHELL=${CONFIG_SHELL-/bin/sh}
261 # Unset more variables known to interfere with behavior of common tools.
262 CLICOLOR_FORCE= GREP_OPTIONS=
263 unset CLICOLOR_FORCE GREP_OPTIONS
265 ## --------------------- ##
266 ## M4sh Shell Functions. ##
267 ## --------------------- ##
270 # Portably unset VAR.
273 { eval $1=; unset $1;}
277 # as_fn_set_status STATUS
278 # -----------------------
279 # Set $? to STATUS, without forking.
287 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
297 # Create "$as_dir" as a directory, including parents if necessary.
302 -*) as_dir=./$as_dir;;
304 test -d "$as_dir" || eval $as_mkdir_p || {
308 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
311 as_dirs="'$as_qdir' $as_dirs"
312 as_dir=`$as_dirname -- "$as_dir" ||
313 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
314 X"$as_dir" : 'X\(//\)[^/]' \| \
315 X"$as_dir" : 'X\(//\)$' \| \
316 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
317 $as_echo X"$as_dir" |
318 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
335 test -d "$as_dir" && break
337 test -z "$as_dirs" || eval "mkdir $as_dirs"
338 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
342 # as_fn_append VAR VALUE
343 # ----------------------
344 # Append the text in VALUE to the end of the definition contained in VAR. Take
345 # advantage of any shell optimizations that allow amortized linear growth over
346 # repeated appends, instead of the typical quadratic growth present in naive
348 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
349 eval 'as_fn_append ()
362 # Perform arithmetic evaluation on the ARGs, and store the result in the
363 # global $as_val. Take advantage of shells that can avoid forks. The arguments
364 # must be portable across $(()) and expr.
365 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
373 as_val=`expr "$@" || test $? -eq 1`
378 # as_fn_error STATUS ERROR [LINENO LOG_FD]
379 # ----------------------------------------
380 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
381 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
382 # script with STATUS, using 1 if that was 0.
385 as_status=$1; test $as_status -eq 0 && as_status=1
387 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
388 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
390 $as_echo "$as_me: error: $2" >&2
391 as_fn_exit $as_status
394 if expr a : '\(a\)' >/dev/null 2>&1 &&
395 test "X`expr 00001 : '.*\(...\)'`" = X001; then
401 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
407 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
413 as_me=`$as_basename -- "$0" ||
414 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
415 X"$0" : 'X\(//\)$' \| \
416 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
418 sed '/^.*\/\([^/][^/]*\)\/*$/{
432 # Avoid depending upon Character Ranges.
433 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
434 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
435 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
436 as_cr_digits='0123456789'
437 as_cr_alnum=$as_cr_Letters$as_cr_digits
440 as_lineno_1=$LINENO as_lineno_1a=$LINENO
441 as_lineno_2=$LINENO as_lineno_2a=$LINENO
442 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
443 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
444 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
456 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
460 chmod +x "$as_me.lineno" ||
461 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
463 # Don't try to exec as it changes $[0], causing all sort of problems
464 # (the dirname of $[0] is not the place where we might find the
465 # original and so on. Autoconf is especially sensitive to this).
467 # Exit status is that of the last command.
471 ECHO_C= ECHO_N= ECHO_T=
472 case `echo -n x` in #(((((
474 case `echo 'xy\c'` in
475 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
477 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
484 rm -f conf$$ conf$$.exe conf$$.file
485 if test -d conf$$.dir; then
486 rm -f conf$$.dir/conf$$.file
489 mkdir conf$$.dir 2>/dev/null
491 if (echo >conf$$.file) 2>/dev/null; then
492 if ln -s conf$$.file conf$$ 2>/dev/null; then
494 # ... but there are two gotchas:
495 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
496 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
497 # In both cases, we have to default to `cp -p'.
498 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
500 elif ln conf$$.file conf$$ 2>/dev/null; then
508 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
509 rmdir conf$$.dir 2>/dev/null
511 if mkdir -p . 2>/dev/null; then
512 as_mkdir_p='mkdir -p "$as_dir"'
514 test -d ./-p && rmdir ./-p
518 if test -x / >/dev/null 2>&1; then
521 if ls -dL / >/dev/null 2>&1; then
528 if test -d "$1"; then
534 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
535 ???[sx]*):;;*)false;;esac;fi
539 as_executable_p=$as_test_x
541 # Sed expression to map a string onto a valid CPP name.
542 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
544 # Sed expression to map a string onto a valid variable name.
545 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
547 SHELL=${CONFIG_SHELL-/bin/sh}
550 test -n "$DJDIR" || exec 7<&0 </dev/null
554 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
555 # so uname gets run too.
556 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
561 ac_default_prefix=/usr/local
563 ac_config_libobj_dir=.
570 # Identity of this package.
571 PACKAGE_NAME='gacela'
572 PACKAGE_TARNAME='gacela'
573 PACKAGE_VERSION='0.5'
574 PACKAGE_STRING='gacela 0.5'
575 PACKAGE_BUGREPORT='jsf@jsancho.org'
578 # Factoring default headers for most tests.
579 ac_includes_default="\
581 #ifdef HAVE_SYS_TYPES_H
582 # include <sys/types.h>
584 #ifdef HAVE_SYS_STAT_H
585 # include <sys/stat.h>
591 # ifdef HAVE_STDLIB_H
596 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
601 #ifdef HAVE_STRINGS_H
602 # include <strings.h>
604 #ifdef HAVE_INTTYPES_H
605 # include <inttypes.h>
614 ac_unique_file="src/sdl.c"
615 ac_subst_vars='am__EXEEXT_FALSE
683 INSTALL_STRIP_PROGRAM
725 program_transform_name
738 enable_option_checking
743 enable_dependency_tracking
749 ac_precious_vars='build_alias
760 # Initialize some variables set by options.
762 ac_init_version=false
763 ac_unrecognized_opts=
765 # The variables have the same names as the options, with
766 # dashes changed to underlines.
774 program_transform_name=s,x,x,
782 # Installation directory options.
783 # These are left unexpanded so users can "make install exec_prefix=/foo"
784 # and all the variables that are supposed to be based on exec_prefix
785 # by default will actually change.
786 # Use braces instead of parens because sh, perl, etc. also accept them.
787 # (The list follows the same order as the GNU Coding Standards.)
788 bindir='${exec_prefix}/bin'
789 sbindir='${exec_prefix}/sbin'
790 libexecdir='${exec_prefix}/libexec'
791 datarootdir='${prefix}/share'
792 datadir='${datarootdir}'
793 sysconfdir='${prefix}/etc'
794 sharedstatedir='${prefix}/com'
795 localstatedir='${prefix}/var'
796 includedir='${prefix}/include'
797 oldincludedir='/usr/include'
798 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
799 infodir='${datarootdir}/info'
804 libdir='${exec_prefix}/lib'
805 localedir='${datarootdir}/locale'
806 mandir='${datarootdir}/man'
812 # If the previous option needs an argument, assign it.
813 if test -n "$ac_prev"; then
814 eval $ac_prev=\$ac_option
820 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
825 # Accept the important Cygnus configure options, so we can diagnose typos.
827 case $ac_dashdash$ac_option in
831 -bindir | --bindir | --bindi | --bind | --bin | --bi)
833 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
836 -build | --build | --buil | --bui | --bu)
837 ac_prev=build_alias ;;
838 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
839 build_alias=$ac_optarg ;;
841 -cache-file | --cache-file | --cache-fil | --cache-fi \
842 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
843 ac_prev=cache_file ;;
844 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
845 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
846 cache_file=$ac_optarg ;;
849 cache_file=config.cache ;;
851 -datadir | --datadir | --datadi | --datad)
853 -datadir=* | --datadir=* | --datadi=* | --datad=*)
854 datadir=$ac_optarg ;;
856 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
857 | --dataroo | --dataro | --datar)
858 ac_prev=datarootdir ;;
859 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
860 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
861 datarootdir=$ac_optarg ;;
863 -disable-* | --disable-*)
864 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
865 # Reject names that are not valid shell variable names.
866 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
867 as_fn_error $? "invalid feature name: $ac_useropt"
868 ac_useropt_orig=$ac_useropt
869 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
870 case $ac_user_opts in
874 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
875 ac_unrecognized_sep=', ';;
877 eval enable_$ac_useropt=no ;;
879 -docdir | --docdir | --docdi | --doc | --do)
881 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
884 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
886 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
889 -enable-* | --enable-*)
890 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
891 # Reject names that are not valid shell variable names.
892 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
893 as_fn_error $? "invalid feature name: $ac_useropt"
894 ac_useropt_orig=$ac_useropt
895 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
896 case $ac_user_opts in
900 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
901 ac_unrecognized_sep=', ';;
903 eval enable_$ac_useropt=\$ac_optarg ;;
905 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
906 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
907 | --exec | --exe | --ex)
908 ac_prev=exec_prefix ;;
909 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
910 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
911 | --exec=* | --exe=* | --ex=*)
912 exec_prefix=$ac_optarg ;;
914 -gas | --gas | --ga | --g)
915 # Obsolete; use --with-gas.
918 -help | --help | --hel | --he | -h)
920 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
921 ac_init_help=recursive ;;
922 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
923 ac_init_help=short ;;
925 -host | --host | --hos | --ho)
926 ac_prev=host_alias ;;
927 -host=* | --host=* | --hos=* | --ho=*)
928 host_alias=$ac_optarg ;;
930 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
932 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
934 htmldir=$ac_optarg ;;
936 -includedir | --includedir | --includedi | --included | --include \
937 | --includ | --inclu | --incl | --inc)
938 ac_prev=includedir ;;
939 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
940 | --includ=* | --inclu=* | --incl=* | --inc=*)
941 includedir=$ac_optarg ;;
943 -infodir | --infodir | --infodi | --infod | --info | --inf)
945 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
946 infodir=$ac_optarg ;;
948 -libdir | --libdir | --libdi | --libd)
950 -libdir=* | --libdir=* | --libdi=* | --libd=*)
953 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
954 | --libexe | --libex | --libe)
955 ac_prev=libexecdir ;;
956 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
957 | --libexe=* | --libex=* | --libe=*)
958 libexecdir=$ac_optarg ;;
960 -localedir | --localedir | --localedi | --localed | --locale)
962 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
963 localedir=$ac_optarg ;;
965 -localstatedir | --localstatedir | --localstatedi | --localstated \
966 | --localstate | --localstat | --localsta | --localst | --locals)
967 ac_prev=localstatedir ;;
968 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
969 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
970 localstatedir=$ac_optarg ;;
972 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
974 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
978 # Obsolete; use --without-fp.
981 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
982 | --no-cr | --no-c | -n)
985 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
986 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
989 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
990 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
991 | --oldin | --oldi | --old | --ol | --o)
992 ac_prev=oldincludedir ;;
993 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
994 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
995 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
996 oldincludedir=$ac_optarg ;;
998 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1000 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1001 prefix=$ac_optarg ;;
1003 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1004 | --program-pre | --program-pr | --program-p)
1005 ac_prev=program_prefix ;;
1006 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1007 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1008 program_prefix=$ac_optarg ;;
1010 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1011 | --program-suf | --program-su | --program-s)
1012 ac_prev=program_suffix ;;
1013 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1014 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1015 program_suffix=$ac_optarg ;;
1017 -program-transform-name | --program-transform-name \
1018 | --program-transform-nam | --program-transform-na \
1019 | --program-transform-n | --program-transform- \
1020 | --program-transform | --program-transfor \
1021 | --program-transfo | --program-transf \
1022 | --program-trans | --program-tran \
1023 | --progr-tra | --program-tr | --program-t)
1024 ac_prev=program_transform_name ;;
1025 -program-transform-name=* | --program-transform-name=* \
1026 | --program-transform-nam=* | --program-transform-na=* \
1027 | --program-transform-n=* | --program-transform-=* \
1028 | --program-transform=* | --program-transfor=* \
1029 | --program-transfo=* | --program-transf=* \
1030 | --program-trans=* | --program-tran=* \
1031 | --progr-tra=* | --program-tr=* | --program-t=*)
1032 program_transform_name=$ac_optarg ;;
1034 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1036 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1037 pdfdir=$ac_optarg ;;
1039 -psdir | --psdir | --psdi | --psd | --ps)
1041 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1044 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1045 | -silent | --silent | --silen | --sile | --sil)
1048 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1050 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1052 sbindir=$ac_optarg ;;
1054 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1055 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1056 | --sharedst | --shareds | --shared | --share | --shar \
1058 ac_prev=sharedstatedir ;;
1059 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1060 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1061 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1063 sharedstatedir=$ac_optarg ;;
1065 -site | --site | --sit)
1067 -site=* | --site=* | --sit=*)
1070 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1072 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1073 srcdir=$ac_optarg ;;
1075 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1076 | --syscon | --sysco | --sysc | --sys | --sy)
1077 ac_prev=sysconfdir ;;
1078 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1079 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1080 sysconfdir=$ac_optarg ;;
1082 -target | --target | --targe | --targ | --tar | --ta | --t)
1083 ac_prev=target_alias ;;
1084 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1085 target_alias=$ac_optarg ;;
1087 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1090 -version | --version | --versio | --versi | --vers | -V)
1091 ac_init_version=: ;;
1094 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1095 # Reject names that are not valid shell variable names.
1096 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1097 as_fn_error $? "invalid package name: $ac_useropt"
1098 ac_useropt_orig=$ac_useropt
1099 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1100 case $ac_user_opts in
1104 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1105 ac_unrecognized_sep=', ';;
1107 eval with_$ac_useropt=\$ac_optarg ;;
1109 -without-* | --without-*)
1110 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1111 # Reject names that are not valid shell variable names.
1112 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1113 as_fn_error $? "invalid package name: $ac_useropt"
1114 ac_useropt_orig=$ac_useropt
1115 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1116 case $ac_user_opts in
1120 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1121 ac_unrecognized_sep=', ';;
1123 eval with_$ac_useropt=no ;;
1126 # Obsolete; use --with-x.
1129 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1130 | --x-incl | --x-inc | --x-in | --x-i)
1131 ac_prev=x_includes ;;
1132 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1133 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1134 x_includes=$ac_optarg ;;
1136 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1137 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1138 ac_prev=x_libraries ;;
1139 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1140 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1141 x_libraries=$ac_optarg ;;
1143 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1144 Try \`$0 --help' for more information"
1148 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1149 # Reject names that are not valid shell variable names.
1150 case $ac_envvar in #(
1151 '' | [0-9]* | *[!_$as_cr_alnum]* )
1152 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1154 eval $ac_envvar=\$ac_optarg
1155 export $ac_envvar ;;
1158 # FIXME: should be removed in autoconf 3.0.
1159 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1160 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1161 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1162 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1168 if test -n "$ac_prev"; then
1169 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1170 as_fn_error $? "missing argument to $ac_option"
1173 if test -n "$ac_unrecognized_opts"; then
1174 case $enable_option_checking in
1176 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1177 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1181 # Check all directory arguments for consistency.
1182 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1183 datadir sysconfdir sharedstatedir localstatedir includedir \
1184 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1185 libdir localedir mandir
1187 eval ac_val=\$$ac_var
1188 # Remove trailing slashes.
1191 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1192 eval $ac_var=\$ac_val;;
1194 # Be sure to have absolute directory names.
1196 [\\/$]* | ?:[\\/]* ) continue;;
1197 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1199 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1202 # There might be people who depend on the old broken behavior: `$host'
1203 # used to hold the argument of --host etc.
1204 # FIXME: To remove some day.
1207 target=$target_alias
1209 # FIXME: To remove some day.
1210 if test "x$host_alias" != x; then
1211 if test "x$build_alias" = x; then
1212 cross_compiling=maybe
1213 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1214 If a cross compiler is detected then cross compile mode will be used" >&2
1215 elif test "x$build_alias" != "x$host_alias"; then
1221 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1223 test "$silent" = yes && exec 6>/dev/null
1226 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1227 ac_ls_di=`ls -di .` &&
1228 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1229 as_fn_error $? "working directory cannot be determined"
1230 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1231 as_fn_error $? "pwd does not report name of working directory"
1234 # Find the source files, if location was not specified.
1235 if test -z "$srcdir"; then
1236 ac_srcdir_defaulted=yes
1237 # Try the directory containing this script, then the parent directory.
1238 ac_confdir=`$as_dirname -- "$as_myself" ||
1239 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1240 X"$as_myself" : 'X\(//\)[^/]' \| \
1241 X"$as_myself" : 'X\(//\)$' \| \
1242 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1243 $as_echo X"$as_myself" |
1244 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1262 if test ! -r "$srcdir/$ac_unique_file"; then
1266 ac_srcdir_defaulted=no
1268 if test ! -r "$srcdir/$ac_unique_file"; then
1269 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1270 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1272 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1274 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1276 # When building in place, set srcdir=.
1277 if test "$ac_abs_confdir" = "$ac_pwd"; then
1280 # Remove unnecessary trailing slashes from srcdir.
1281 # Double slashes in file names in object file debugging info
1282 # mess up M-x gdb in Emacs.
1284 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1286 for ac_var in $ac_precious_vars; do
1287 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1288 eval ac_env_${ac_var}_value=\$${ac_var}
1289 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1290 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1294 # Report the --help message.
1296 if test "$ac_init_help" = "long"; then
1297 # Omit some internal or obsolete options to make the list less imposing.
1298 # This message is too long to be a string in the A/UX 3.1 sh.
1300 \`configure' configures gacela 0.5 to adapt to many kinds of systems.
1302 Usage: $0 [OPTION]... [VAR=VALUE]...
1304 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1305 VAR=VALUE. See below for descriptions of some of the useful variables.
1307 Defaults for the options are specified in brackets.
1310 -h, --help display this help and exit
1311 --help=short display options specific to this package
1312 --help=recursive display the short help of all the included packages
1313 -V, --version display version information and exit
1314 -q, --quiet, --silent do not print \`checking ...' messages
1315 --cache-file=FILE cache test results in FILE [disabled]
1316 -C, --config-cache alias for \`--cache-file=config.cache'
1317 -n, --no-create do not create output files
1318 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1320 Installation directories:
1321 --prefix=PREFIX install architecture-independent files in PREFIX
1322 [$ac_default_prefix]
1323 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1326 By default, \`make install' will install all the files in
1327 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1328 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1329 for instance \`--prefix=\$HOME'.
1331 For better control, use the options below.
1333 Fine tuning of the installation directories:
1334 --bindir=DIR user executables [EPREFIX/bin]
1335 --sbindir=DIR system admin executables [EPREFIX/sbin]
1336 --libexecdir=DIR program executables [EPREFIX/libexec]
1337 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1338 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1339 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1340 --libdir=DIR object code libraries [EPREFIX/lib]
1341 --includedir=DIR C header files [PREFIX/include]
1342 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1343 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1344 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1345 --infodir=DIR info documentation [DATAROOTDIR/info]
1346 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1347 --mandir=DIR man documentation [DATAROOTDIR/man]
1348 --docdir=DIR documentation root [DATAROOTDIR/doc/gacela]
1349 --htmldir=DIR html documentation [DOCDIR]
1350 --dvidir=DIR dvi documentation [DOCDIR]
1351 --pdfdir=DIR pdf documentation [DOCDIR]
1352 --psdir=DIR ps documentation [DOCDIR]
1358 --program-prefix=PREFIX prepend PREFIX to installed program names
1359 --program-suffix=SUFFIX append SUFFIX to installed program names
1360 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1363 --build=BUILD configure for building on BUILD [guessed]
1364 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1368 if test -n "$ac_init_help"; then
1369 case $ac_init_help in
1370 short | recursive ) echo "Configuration of gacela 0.5:";;
1375 --disable-option-checking ignore unrecognized --enable/--with options
1376 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1377 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1378 --enable-shared[=PKGS] build shared libraries [default=yes]
1379 --enable-static[=PKGS] build static libraries [default=yes]
1380 --enable-fast-install[=PKGS]
1381 optimize for fast installation [default=yes]
1382 --disable-dependency-tracking speeds up one-time build
1383 --enable-dependency-tracking do not reject slow dependency extractors
1384 --disable-libtool-lock avoid locking (might break parallel builds)
1385 --disable-rpath do not hardcode runtime library paths
1388 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1389 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1390 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1392 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1393 --with-sysroot=DIR Search for dependent libraries within DIR
1394 (or the compiler's sysroot if not specified).
1395 --with-gnu-ld assume the C compiler uses GNU ld default=no
1397 Some influential environment variables:
1398 CC C compiler command
1399 CFLAGS C compiler flags
1400 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1401 nonstandard directory <lib dir>
1402 LIBS libraries to pass to the linker, e.g. -l<library>
1403 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1404 you have headers in a nonstandard directory <include dir>
1407 Use these variables to override the choices made by `configure' or to help
1408 it to find libraries and programs with nonstandard names/locations.
1410 Report bugs to <jsf@jsancho.org>.
1415 if test "$ac_init_help" = "recursive"; then
1416 # If there are subdirs, report their specific --help.
1417 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1418 test -d "$ac_dir" ||
1419 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1424 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1426 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1427 # A ".." for each directory in $ac_dir_suffix.
1428 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1429 case $ac_top_builddir_sub in
1430 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1431 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1434 ac_abs_top_builddir=$ac_pwd
1435 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1436 # for backward compatibility:
1437 ac_top_builddir=$ac_top_build_prefix
1440 .) # We are building in place.
1442 ac_top_srcdir=$ac_top_builddir_sub
1443 ac_abs_top_srcdir=$ac_pwd ;;
1444 [\\/]* | ?:[\\/]* ) # Absolute name.
1445 ac_srcdir=$srcdir$ac_dir_suffix;
1446 ac_top_srcdir=$srcdir
1447 ac_abs_top_srcdir=$srcdir ;;
1449 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1450 ac_top_srcdir=$ac_top_build_prefix$srcdir
1451 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1453 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1455 cd "$ac_dir" || { ac_status=$?; continue; }
1456 # Check for guested configure.
1457 if test -f "$ac_srcdir/configure.gnu"; then
1459 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1460 elif test -f "$ac_srcdir/configure"; then
1462 $SHELL "$ac_srcdir/configure" --help=recursive
1464 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1466 cd "$ac_pwd" || { ac_status=$?; break; }
1470 test -n "$ac_init_help" && exit $ac_status
1471 if $ac_init_version; then
1473 gacela configure 0.5
1474 generated by GNU Autoconf 2.68
1476 Copyright (C) 2010 Free Software Foundation, Inc.
1477 This configure script is free software; the Free Software Foundation
1478 gives unlimited permission to copy, distribute and modify it.
1483 ## ------------------------ ##
1484 ## Autoconf initialization. ##
1485 ## ------------------------ ##
1487 # ac_fn_c_try_compile LINENO
1488 # --------------------------
1489 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1490 ac_fn_c_try_compile ()
1492 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1493 rm -f conftest.$ac_objext
1494 if { { ac_try="$ac_compile"
1496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1497 *) ac_try_echo=$ac_try;;
1499 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1500 $as_echo "$ac_try_echo"; } >&5
1501 (eval "$ac_compile") 2>conftest.err
1503 if test -s conftest.err; then
1504 grep -v '^ *+' conftest.err >conftest.er1
1505 cat conftest.er1 >&5
1506 mv -f conftest.er1 conftest.err
1508 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1509 test $ac_status = 0; } && {
1510 test -z "$ac_c_werror_flag" ||
1511 test ! -s conftest.err
1512 } && test -s conftest.$ac_objext; then :
1515 $as_echo "$as_me: failed program was:" >&5
1516 sed 's/^/| /' conftest.$ac_ext >&5
1520 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1521 as_fn_set_status $ac_retval
1523 } # ac_fn_c_try_compile
1525 # ac_fn_c_try_link LINENO
1526 # -----------------------
1527 # Try to link conftest.$ac_ext, and return whether this succeeded.
1530 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1531 rm -f conftest.$ac_objext conftest$ac_exeext
1532 if { { ac_try="$ac_link"
1534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1535 *) ac_try_echo=$ac_try;;
1537 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1538 $as_echo "$ac_try_echo"; } >&5
1539 (eval "$ac_link") 2>conftest.err
1541 if test -s conftest.err; then
1542 grep -v '^ *+' conftest.err >conftest.er1
1543 cat conftest.er1 >&5
1544 mv -f conftest.er1 conftest.err
1546 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1547 test $ac_status = 0; } && {
1548 test -z "$ac_c_werror_flag" ||
1549 test ! -s conftest.err
1550 } && test -s conftest$ac_exeext && {
1551 test "$cross_compiling" = yes ||
1552 $as_test_x conftest$ac_exeext
1556 $as_echo "$as_me: failed program was:" >&5
1557 sed 's/^/| /' conftest.$ac_ext >&5
1561 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1562 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1563 # interfere with the next link command; also delete a directory that is
1564 # left behind by Apple's compiler. We do this before executing the actions.
1565 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1566 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1567 as_fn_set_status $ac_retval
1569 } # ac_fn_c_try_link
1571 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1572 # -------------------------------------------------------
1573 # Tests whether HEADER exists and can be compiled using the include files in
1574 # INCLUDES, setting the cache variable VAR accordingly.
1575 ac_fn_c_check_header_compile ()
1577 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1579 $as_echo_n "checking for $2... " >&6; }
1580 if eval \${$3+:} false; then :
1581 $as_echo_n "(cached) " >&6
1583 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1584 /* end confdefs.h. */
1588 if ac_fn_c_try_compile "$LINENO"; then :
1593 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1597 $as_echo "$ac_res" >&6; }
1598 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1600 } # ac_fn_c_check_header_compile
1602 # ac_fn_c_try_cpp LINENO
1603 # ----------------------
1604 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1607 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1608 if { { ac_try="$ac_cpp conftest.$ac_ext"
1610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1611 *) ac_try_echo=$ac_try;;
1613 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1614 $as_echo "$ac_try_echo"; } >&5
1615 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1617 if test -s conftest.err; then
1618 grep -v '^ *+' conftest.err >conftest.er1
1619 cat conftest.er1 >&5
1620 mv -f conftest.er1 conftest.err
1622 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1623 test $ac_status = 0; } > conftest.i && {
1624 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1625 test ! -s conftest.err
1629 $as_echo "$as_me: failed program was:" >&5
1630 sed 's/^/| /' conftest.$ac_ext >&5
1634 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1635 as_fn_set_status $ac_retval
1639 # ac_fn_c_try_run LINENO
1640 # ----------------------
1641 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1642 # that executables *can* be run.
1645 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1646 if { { ac_try="$ac_link"
1648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1649 *) ac_try_echo=$ac_try;;
1651 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1652 $as_echo "$ac_try_echo"; } >&5
1653 (eval "$ac_link") 2>&5
1655 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1656 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1657 { { case "(($ac_try" in
1658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1659 *) ac_try_echo=$ac_try;;
1661 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1662 $as_echo "$ac_try_echo"; } >&5
1663 (eval "$ac_try") 2>&5
1665 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1666 test $ac_status = 0; }; }; then :
1669 $as_echo "$as_me: program exited with status $ac_status" >&5
1670 $as_echo "$as_me: failed program was:" >&5
1671 sed 's/^/| /' conftest.$ac_ext >&5
1673 ac_retval=$ac_status
1675 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1676 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1677 as_fn_set_status $ac_retval
1681 # ac_fn_c_check_func LINENO FUNC VAR
1682 # ----------------------------------
1683 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1684 ac_fn_c_check_func ()
1686 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1688 $as_echo_n "checking for $2... " >&6; }
1689 if eval \${$3+:} false; then :
1690 $as_echo_n "(cached) " >&6
1692 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1693 /* end confdefs.h. */
1694 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1695 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1696 #define $2 innocuous_$2
1698 /* System header to define __stub macros and hopefully few prototypes,
1699 which can conflict with char $2 (); below.
1700 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1701 <limits.h> exists even on freestanding compilers. */
1704 # include <limits.h>
1706 # include <assert.h>
1711 /* Override any GCC internal prototype to avoid an error.
1712 Use char because int might match the return type of a GCC
1713 builtin and then its argument prototype would still apply. */
1718 /* The GNU C library defines this for functions which it implements
1719 to always fail with ENOSYS. Some functions are actually named
1720 something starting with __ and the normal name is an alias. */
1721 #if defined __stub_$2 || defined __stub___$2
1733 if ac_fn_c_try_link "$LINENO"; then :
1738 rm -f core conftest.err conftest.$ac_objext \
1739 conftest$ac_exeext conftest.$ac_ext
1742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1743 $as_echo "$ac_res" >&6; }
1744 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1746 } # ac_fn_c_check_func
1747 cat >config.log <<_ACEOF
1748 This file contains any messages produced by compilers while
1749 running configure, to aid debugging if configure makes a mistake.
1751 It was created by gacela $as_me 0.5, which was
1752 generated by GNU Autoconf 2.68. Invocation command line was
1764 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1765 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1766 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1767 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1768 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1770 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1771 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1773 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1774 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1775 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1776 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1777 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1778 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1779 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1783 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1787 test -z "$as_dir" && as_dir=.
1788 $as_echo "PATH: $as_dir"
1804 # Keep a trace of the command line.
1805 # Strip out --no-create and --no-recursion so they do not pile up.
1806 # Strip out --silent because we don't want to record it for future runs.
1807 # Also quote any args containing shell meta-characters.
1808 # Make two passes to allow for proper duplicate-argument suppression.
1812 ac_must_keep_next=false
1818 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1819 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1820 | -silent | --silent | --silen | --sile | --sil)
1823 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1826 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1828 as_fn_append ac_configure_args1 " '$ac_arg'"
1829 if test $ac_must_keep_next = true; then
1830 ac_must_keep_next=false # Got value, back to normal.
1833 *=* | --config-cache | -C | -disable-* | --disable-* \
1834 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1835 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1836 | -with-* | --with-* | -without-* | --without-* | --x)
1837 case "$ac_configure_args0 " in
1838 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1841 -* ) ac_must_keep_next=true ;;
1844 as_fn_append ac_configure_args " '$ac_arg'"
1849 { ac_configure_args0=; unset ac_configure_args0;}
1850 { ac_configure_args1=; unset ac_configure_args1;}
1852 # When interrupted or exit'd, cleanup temporary files, and complete
1853 # config.log. We remove comments because anyway the quotes in there
1854 # would cause problems or look ugly.
1855 # WARNING: Use '\'' to represent an apostrophe within the trap.
1856 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1857 trap 'exit_status=$?
1858 # Save into config.log some information that might help in debugging.
1862 $as_echo "## ---------------- ##
1863 ## Cache variables. ##
1864 ## ---------------- ##"
1866 # The following way of writing the cache mishandles newlines in values,
1868 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1869 eval ac_val=\$$ac_var
1873 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1874 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1877 _ | IFS | as_nl) ;; #(
1878 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1879 *) { eval $ac_var=; unset $ac_var;} ;;
1884 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1885 *${as_nl}ac_space=\ *)
1887 "s/'\''/'\''\\\\'\'''\''/g;
1888 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1891 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1898 $as_echo "## ----------------- ##
1899 ## Output variables. ##
1900 ## ----------------- ##"
1902 for ac_var in $ac_subst_vars
1904 eval ac_val=\$$ac_var
1906 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1908 $as_echo "$ac_var='\''$ac_val'\''"
1912 if test -n "$ac_subst_files"; then
1913 $as_echo "## ------------------- ##
1914 ## File substitutions. ##
1915 ## ------------------- ##"
1917 for ac_var in $ac_subst_files
1919 eval ac_val=\$$ac_var
1921 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1923 $as_echo "$ac_var='\''$ac_val'\''"
1928 if test -s confdefs.h; then
1929 $as_echo "## ----------- ##
1936 test "$ac_signal" != 0 &&
1937 $as_echo "$as_me: caught signal $ac_signal"
1938 $as_echo "$as_me: exit $exit_status"
1940 rm -f core *.core core.conftest.* &&
1941 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1944 for ac_signal in 1 2 13 15; do
1945 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1949 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1950 rm -f -r conftest* confdefs.h
1952 $as_echo "/* confdefs.h */" > confdefs.h
1954 # Predefined preprocessor variables.
1956 cat >>confdefs.h <<_ACEOF
1957 #define PACKAGE_NAME "$PACKAGE_NAME"
1960 cat >>confdefs.h <<_ACEOF
1961 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1964 cat >>confdefs.h <<_ACEOF
1965 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1968 cat >>confdefs.h <<_ACEOF
1969 #define PACKAGE_STRING "$PACKAGE_STRING"
1972 cat >>confdefs.h <<_ACEOF
1973 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1976 cat >>confdefs.h <<_ACEOF
1977 #define PACKAGE_URL "$PACKAGE_URL"
1981 # Let the site file select an alternate cache file if it wants to.
1982 # Prefer an explicitly selected file to automatically selected ones.
1985 if test -n "$CONFIG_SITE"; then
1986 # We do not want a PATH search for config.site.
1987 case $CONFIG_SITE in #((
1988 -*) ac_site_file1=./$CONFIG_SITE;;
1989 */*) ac_site_file1=$CONFIG_SITE;;
1990 *) ac_site_file1=./$CONFIG_SITE;;
1992 elif test "x$prefix" != xNONE; then
1993 ac_site_file1=$prefix/share/config.site
1994 ac_site_file2=$prefix/etc/config.site
1996 ac_site_file1=$ac_default_prefix/share/config.site
1997 ac_site_file2=$ac_default_prefix/etc/config.site
1999 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2001 test "x$ac_site_file" = xNONE && continue
2002 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2003 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2004 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2005 sed 's/^/| /' "$ac_site_file" >&5
2007 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2008 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2009 as_fn_error $? "failed to load site script $ac_site_file
2010 See \`config.log' for more details" "$LINENO" 5; }
2014 if test -r "$cache_file"; then
2015 # Some versions of bash will fail to source /dev/null (special files
2016 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2017 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2018 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2019 $as_echo "$as_me: loading cache $cache_file" >&6;}
2021 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2022 *) . "./$cache_file";;
2026 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2027 $as_echo "$as_me: creating cache $cache_file" >&6;}
2031 # Check that the precious variables saved in the cache have kept the same
2033 ac_cache_corrupted=false
2034 for ac_var in $ac_precious_vars; do
2035 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2036 eval ac_new_set=\$ac_env_${ac_var}_set
2037 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2038 eval ac_new_val=\$ac_env_${ac_var}_value
2039 case $ac_old_set,$ac_new_set in
2041 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2042 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2043 ac_cache_corrupted=: ;;
2045 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2046 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2047 ac_cache_corrupted=: ;;
2050 if test "x$ac_old_val" != "x$ac_new_val"; then
2051 # differences in whitespace do not lead to failure.
2052 ac_old_val_w=`echo x $ac_old_val`
2053 ac_new_val_w=`echo x $ac_new_val`
2054 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2055 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2056 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2057 ac_cache_corrupted=:
2059 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2060 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2061 eval $ac_var=\$ac_old_val
2063 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2064 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2065 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2066 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2069 # Pass precious variables to config.status.
2070 if test "$ac_new_set" = set; then
2072 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2073 *) ac_arg=$ac_var=$ac_new_val ;;
2075 case " $ac_configure_args " in
2076 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2077 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2081 if $ac_cache_corrupted; then
2082 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2083 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2084 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2085 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2086 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2088 ## -------------------- ##
2089 ## Main body of script. ##
2090 ## -------------------- ##
2093 ac_cpp='$CPP $CPPFLAGS'
2094 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2095 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2096 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2099 am__api_version='1.11'
2102 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2103 if test -f "$ac_dir/install-sh"; then
2105 ac_install_sh="$ac_aux_dir/install-sh -c"
2107 elif test -f "$ac_dir/install.sh"; then
2109 ac_install_sh="$ac_aux_dir/install.sh -c"
2111 elif test -f "$ac_dir/shtool"; then
2113 ac_install_sh="$ac_aux_dir/shtool install -c"
2117 if test -z "$ac_aux_dir"; then
2118 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2121 # These three variables are undocumented and unsupported,
2122 # and are intended to be withdrawn in a future Autoconf release.
2123 # They can cause serious problems if a builder's source tree is in a directory
2124 # whose full name contains unusual characters.
2125 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2126 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2127 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2130 # Find a good install program. We prefer a C program (faster),
2131 # so one script is as good as another. But avoid the broken or
2132 # incompatible versions:
2133 # SysV /etc/install, /usr/sbin/install
2134 # SunOS /usr/etc/install
2135 # IRIX /sbin/install
2137 # AmigaOS /C/install, which installs bootblocks on floppy discs
2138 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2139 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2140 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2141 # OS/2's system install, which has a completely different semantic
2142 # ./install, which can be erroneously created by make from ./install.sh.
2143 # Reject install programs that cannot install multiple files.
2144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2145 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2146 if test -z "$INSTALL"; then
2147 if ${ac_cv_path_install+:} false; then :
2148 $as_echo_n "(cached) " >&6
2150 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2154 test -z "$as_dir" && as_dir=.
2155 # Account for people who put trailing slashes in PATH elements.
2156 case $as_dir/ in #((
2157 ./ | .// | /[cC]/* | \
2158 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2159 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2162 # OSF1 and SCO ODT 3.0 have their own names for install.
2163 # Don't use installbsd from OSF since it installs stuff as root
2165 for ac_prog in ginstall scoinst install; do
2166 for ac_exec_ext in '' $ac_executable_extensions; do
2167 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2168 if test $ac_prog = install &&
2169 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2170 # AIX install. It has an incompatible calling convention.
2172 elif test $ac_prog = install &&
2173 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2174 # program-specific install script used by HP pwplus--don't use.
2177 rm -rf conftest.one conftest.two conftest.dir
2178 echo one > conftest.one
2179 echo two > conftest.two
2181 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2182 test -s conftest.one && test -s conftest.two &&
2183 test -s conftest.dir/conftest.one &&
2184 test -s conftest.dir/conftest.two
2186 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2199 rm -rf conftest.one conftest.two conftest.dir
2202 if test "${ac_cv_path_install+set}" = set; then
2203 INSTALL=$ac_cv_path_install
2205 # As a last resort, use the slow shell script. Don't cache a
2206 # value for INSTALL within a source directory, because that will
2207 # break other packages using the cache if that directory is
2208 # removed, or if the value is a relative name.
2209 INSTALL=$ac_install_sh
2212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2213 $as_echo "$INSTALL" >&6; }
2215 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2216 # It thinks the first close brace ends the variable substitution.
2217 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2219 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2221 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2224 $as_echo_n "checking whether build environment is sane... " >&6; }
2227 echo timestamp > conftest.file
2228 # Reject unsafe characters in $srcdir or the absolute working directory
2229 # name. Accept space and tab only in the latter.
2233 *[\\\"\#\$\&\'\`$am_lf]*)
2234 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2237 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2238 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2241 # Do `set' in a subshell so we don't clobber the current shell's
2242 # arguments. Must try -L first in case configure is actually a
2243 # symlink; some systems play weird games with the mod time of symlinks
2244 # (eg FreeBSD returns the mod time of the symlink's containing
2247 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2248 if test "$*" = "X"; then
2250 set X `ls -t "$srcdir/configure" conftest.file`
2253 if test "$*" != "X $srcdir/configure conftest.file" \
2254 && test "$*" != "X conftest.file $srcdir/configure"; then
2256 # If neither matched, then we have a broken ls. This can happen
2257 # if, for instance, CONFIG_SHELL is bash and it inherits a
2258 # broken ls alias from the environment. This has actually
2259 # happened. Such a system could not be considered "sane".
2260 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2261 alias in your environment" "$LINENO" 5
2264 test "$2" = conftest.file
2270 as_fn_error $? "newly created file is older than distributed files!
2271 Check your system clock" "$LINENO" 5
2273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2274 $as_echo "yes" >&6; }
2275 test "$program_prefix" != NONE &&
2276 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2277 # Use a double $ so make ignores it.
2278 test "$program_suffix" != NONE &&
2279 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2280 # Double any \ or $.
2281 # By default was `s,x,x', remove it if useless.
2282 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2283 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2285 # expand $ac_aux_dir to an absolute path
2286 am_aux_dir=`cd $ac_aux_dir && pwd`
2288 if test x"${MISSING+set}" != xset; then
2291 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2293 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2296 # Use eval to expand $SHELL
2297 if eval "$MISSING --run true"; then
2298 am_missing_run="$MISSING --run "
2301 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2302 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2305 if test x"${install_sh}" != xset; then
2308 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2310 install_sh="\${SHELL} $am_aux_dir/install-sh"
2314 # Installed binaries are usually stripped using `strip' when the user
2315 # run `make install-strip'. However `strip' might not be the right
2316 # tool to use in cross-compilation environments, therefore Automake
2317 # will honor the `STRIP' environment variable to overrule this program.
2318 if test "$cross_compiling" != no; then
2319 if test -n "$ac_tool_prefix"; then
2320 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2321 set dummy ${ac_tool_prefix}strip; ac_word=$2
2322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2323 $as_echo_n "checking for $ac_word... " >&6; }
2324 if ${ac_cv_prog_STRIP+:} false; then :
2325 $as_echo_n "(cached) " >&6
2327 if test -n "$STRIP"; then
2328 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2330 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2334 test -z "$as_dir" && as_dir=.
2335 for ac_exec_ext in '' $ac_executable_extensions; do
2336 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2337 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2338 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2347 STRIP=$ac_cv_prog_STRIP
2348 if test -n "$STRIP"; then
2349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2350 $as_echo "$STRIP" >&6; }
2352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2353 $as_echo "no" >&6; }
2358 if test -z "$ac_cv_prog_STRIP"; then
2360 # Extract the first word of "strip", so it can be a program name with args.
2361 set dummy strip; ac_word=$2
2362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2363 $as_echo_n "checking for $ac_word... " >&6; }
2364 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2365 $as_echo_n "(cached) " >&6
2367 if test -n "$ac_ct_STRIP"; then
2368 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2370 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2374 test -z "$as_dir" && as_dir=.
2375 for ac_exec_ext in '' $ac_executable_extensions; do
2376 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2377 ac_cv_prog_ac_ct_STRIP="strip"
2378 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2387 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2388 if test -n "$ac_ct_STRIP"; then
2389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2390 $as_echo "$ac_ct_STRIP" >&6; }
2392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2393 $as_echo "no" >&6; }
2396 if test "x$ac_ct_STRIP" = x; then
2399 case $cross_compiling:$ac_tool_warned in
2401 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2402 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2403 ac_tool_warned=yes ;;
2408 STRIP="$ac_cv_prog_STRIP"
2412 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2415 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2416 if test -z "$MKDIR_P"; then
2417 if ${ac_cv_path_mkdir+:} false; then :
2418 $as_echo_n "(cached) " >&6
2420 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2421 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2424 test -z "$as_dir" && as_dir=.
2425 for ac_prog in mkdir gmkdir; do
2426 for ac_exec_ext in '' $ac_executable_extensions; do
2427 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2428 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2429 'mkdir (GNU coreutils) '* | \
2430 'mkdir (coreutils) '* | \
2431 'mkdir (fileutils) '4.1*)
2432 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2442 test -d ./--version && rmdir ./--version
2443 if test "${ac_cv_path_mkdir+set}" = set; then
2444 MKDIR_P="$ac_cv_path_mkdir -p"
2446 # As a last resort, use the slow shell script. Don't cache a
2447 # value for MKDIR_P within a source directory, because that will
2448 # break other packages using the cache if that directory is
2449 # removed, or if the value is a relative name.
2450 MKDIR_P="$ac_install_sh -d"
2453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2454 $as_echo "$MKDIR_P" >&6; }
2458 [\\/$]* | ?:[\\/]*) ;;
2459 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2462 for ac_prog in gawk mawk nawk awk
2464 # Extract the first word of "$ac_prog", so it can be a program name with args.
2465 set dummy $ac_prog; ac_word=$2
2466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2467 $as_echo_n "checking for $ac_word... " >&6; }
2468 if ${ac_cv_prog_AWK+:} false; then :
2469 $as_echo_n "(cached) " >&6
2471 if test -n "$AWK"; then
2472 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2474 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2478 test -z "$as_dir" && as_dir=.
2479 for ac_exec_ext in '' $ac_executable_extensions; do
2480 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2481 ac_cv_prog_AWK="$ac_prog"
2482 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2492 if test -n "$AWK"; then
2493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2494 $as_echo "$AWK" >&6; }
2496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2497 $as_echo "no" >&6; }
2501 test -n "$AWK" && break
2504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2505 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2507 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2508 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2509 $as_echo_n "(cached) " >&6
2511 cat >conftest.make <<\_ACEOF
2514 @echo '@@@%%%=$(MAKE)=@@@%%%'
2516 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2517 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2519 eval ac_cv_prog_make_${ac_make}_set=yes;;
2521 eval ac_cv_prog_make_${ac_make}_set=no;;
2525 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2527 $as_echo "yes" >&6; }
2530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2531 $as_echo "no" >&6; }
2532 SET_MAKE="MAKE=${MAKE-make}"
2535 rm -rf .tst 2>/dev/null
2536 mkdir .tst 2>/dev/null
2537 if test -d .tst; then
2542 rmdir .tst 2>/dev/null
2544 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2545 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2546 # is not polluted with repeated "-I."
2547 am__isrc=' -I$(srcdir)'
2548 # test to see if srcdir already configured
2549 if test -f $srcdir/config.status; then
2550 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2554 # test whether we have cygpath
2555 if test -z "$CYGPATH_W"; then
2556 if (cygpath --version) >/dev/null 2>/dev/null; then
2557 CYGPATH_W='cygpath -w'
2564 # Define the identity of the package.
2569 cat >>confdefs.h <<_ACEOF
2570 #define PACKAGE "$PACKAGE"
2574 cat >>confdefs.h <<_ACEOF
2575 #define VERSION "$VERSION"
2578 # Some tools Automake needs.
2580 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2583 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2586 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2589 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2592 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2594 # We need awk for the "check" target. The system "awk" is bad on
2596 # Always define AMTAR for backward compatibility.
2598 AMTAR=${AMTAR-"${am_missing_run}tar"}
2600 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2608 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
2609 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
2614 macro_version='2.4.2'
2615 macro_revision='1.3337'
2629 ltmain="$ac_aux_dir/ltmain.sh"
2631 # Make sure we can run config.sub.
2632 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2633 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2636 $as_echo_n "checking build system type... " >&6; }
2637 if ${ac_cv_build+:} false; then :
2638 $as_echo_n "(cached) " >&6
2640 ac_build_alias=$build_alias
2641 test "x$ac_build_alias" = x &&
2642 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2643 test "x$ac_build_alias" = x &&
2644 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2645 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2646 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2650 $as_echo "$ac_cv_build" >&6; }
2651 case $ac_cv_build in
2653 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2656 ac_save_IFS=$IFS; IFS='-'
2662 # Remember, the first character of IFS is used to create $*,
2663 # except with old shells:
2666 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2670 $as_echo_n "checking host system type... " >&6; }
2671 if ${ac_cv_host+:} false; then :
2672 $as_echo_n "(cached) " >&6
2674 if test "x$host_alias" = x; then
2675 ac_cv_host=$ac_cv_build
2677 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2678 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2683 $as_echo "$ac_cv_host" >&6; }
2686 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2689 ac_save_IFS=$IFS; IFS='-'
2695 # Remember, the first character of IFS is used to create $*,
2696 # except with old shells:
2699 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2702 # Backslashify metacharacters that are still active within
2703 # double-quoted strings.
2704 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
2706 # Same as above, but do not quote variable references.
2707 double_quote_subst='s/\(["`\\]\)/\\\1/g'
2709 # Sed substitution to delay expansion of an escaped shell variable in a
2710 # double_quote_subst'ed string.
2711 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
2713 # Sed substitution to delay expansion of an escaped single quote.
2714 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
2716 # Sed substitution to avoid accidental globbing in evaled expressions
2717 no_glob_subst='s/\*/\\\*/g'
2719 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
2720 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
2721 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
2723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
2724 $as_echo_n "checking how to print strings... " >&6; }
2725 # Test print first, because it will be a builtin if present.
2726 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
2727 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
2729 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
2732 # Use this function as a fallback that always works.
2733 func_fallback_echo ()
2735 eval 'cat <<_LTECHO_EOF
2739 ECHO='func_fallback_echo'
2742 # func_echo_all arg...
2743 # Invoke $ECHO with all args, space-separated.
2750 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
2751 $as_echo "printf" >&6; } ;;
2752 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
2753 $as_echo "print -r" >&6; } ;;
2754 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
2755 $as_echo "cat" >&6; } ;;
2771 DEPDIR="${am__leading_dot}deps"
2773 ac_config_commands="$ac_config_commands depfiles"
2776 am_make=${MAKE-make}
2777 cat > confinc << 'END'
2779 @echo this is the am__doit target
2782 # If we don't find an include directive, just comment out the code.
2783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
2784 $as_echo_n "checking for style of include used by $am_make... " >&6; }
2788 # First try GNU make style include.
2789 echo "include confinc" > confmf
2790 # Ignore all kinds of additional output from `make'.
2791 case `$am_make -s -f confmf 2> /dev/null` in #(
2792 *the\ am__doit\ target*)
2798 # Now try BSD make style include.
2799 if test "$am__include" = "#"; then
2800 echo '.include "confinc"' > confmf
2801 case `$am_make -s -f confmf 2> /dev/null` in #(
2802 *the\ am__doit\ target*)
2803 am__include=.include
2811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
2812 $as_echo "$_am_result" >&6; }
2813 rm -f confinc confmf
2815 # Check whether --enable-dependency-tracking was given.
2816 if test "${enable_dependency_tracking+set}" = set; then :
2817 enableval=$enable_dependency_tracking;
2820 if test "x$enable_dependency_tracking" != xno; then
2821 am_depcomp="$ac_aux_dir/depcomp"
2824 if test "x$enable_dependency_tracking" != xno; then
2834 ac_cpp='$CPP $CPPFLAGS'
2835 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2836 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2837 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2838 if test -n "$ac_tool_prefix"; then
2839 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2840 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2842 $as_echo_n "checking for $ac_word... " >&6; }
2843 if ${ac_cv_prog_CC+:} false; then :
2844 $as_echo_n "(cached) " >&6
2846 if test -n "$CC"; then
2847 ac_cv_prog_CC="$CC" # Let the user override the test.
2849 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2853 test -z "$as_dir" && as_dir=.
2854 for ac_exec_ext in '' $ac_executable_extensions; do
2855 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2856 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2857 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2867 if test -n "$CC"; then
2868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2869 $as_echo "$CC" >&6; }
2871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2872 $as_echo "no" >&6; }
2877 if test -z "$ac_cv_prog_CC"; then
2879 # Extract the first word of "gcc", so it can be a program name with args.
2880 set dummy gcc; ac_word=$2
2881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2882 $as_echo_n "checking for $ac_word... " >&6; }
2883 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2884 $as_echo_n "(cached) " >&6
2886 if test -n "$ac_ct_CC"; then
2887 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2889 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2893 test -z "$as_dir" && as_dir=.
2894 for ac_exec_ext in '' $ac_executable_extensions; do
2895 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2896 ac_cv_prog_ac_ct_CC="gcc"
2897 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2906 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2907 if test -n "$ac_ct_CC"; then
2908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2909 $as_echo "$ac_ct_CC" >&6; }
2911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2912 $as_echo "no" >&6; }
2915 if test "x$ac_ct_CC" = x; then
2918 case $cross_compiling:$ac_tool_warned in
2920 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2921 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2922 ac_tool_warned=yes ;;
2930 if test -z "$CC"; then
2931 if test -n "$ac_tool_prefix"; then
2932 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2933 set dummy ${ac_tool_prefix}cc; ac_word=$2
2934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2935 $as_echo_n "checking for $ac_word... " >&6; }
2936 if ${ac_cv_prog_CC+:} false; then :
2937 $as_echo_n "(cached) " >&6
2939 if test -n "$CC"; then
2940 ac_cv_prog_CC="$CC" # Let the user override the test.
2942 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2946 test -z "$as_dir" && as_dir=.
2947 for ac_exec_ext in '' $ac_executable_extensions; do
2948 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2949 ac_cv_prog_CC="${ac_tool_prefix}cc"
2950 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2960 if test -n "$CC"; then
2961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2962 $as_echo "$CC" >&6; }
2964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2965 $as_echo "no" >&6; }
2971 if test -z "$CC"; then
2972 # Extract the first word of "cc", so it can be a program name with args.
2973 set dummy cc; ac_word=$2
2974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2975 $as_echo_n "checking for $ac_word... " >&6; }
2976 if ${ac_cv_prog_CC+:} false; then :
2977 $as_echo_n "(cached) " >&6
2979 if test -n "$CC"; then
2980 ac_cv_prog_CC="$CC" # Let the user override the test.
2983 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2987 test -z "$as_dir" && as_dir=.
2988 for ac_exec_ext in '' $ac_executable_extensions; do
2989 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2990 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2991 ac_prog_rejected=yes
2995 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3002 if test $ac_prog_rejected = yes; then
3003 # We found a bogon in the path, so make sure we never use it.
3004 set dummy $ac_cv_prog_CC
3006 if test $# != 0; then
3007 # We chose a different compiler from the bogus one.
3008 # However, it has the same basename, so the bogon will be chosen
3009 # first if we set CC to just the basename; use the full file name.
3011 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3017 if test -n "$CC"; then
3018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3019 $as_echo "$CC" >&6; }
3021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3022 $as_echo "no" >&6; }
3027 if test -z "$CC"; then
3028 if test -n "$ac_tool_prefix"; then
3029 for ac_prog in cl.exe
3031 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3032 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3034 $as_echo_n "checking for $ac_word... " >&6; }
3035 if ${ac_cv_prog_CC+:} false; then :
3036 $as_echo_n "(cached) " >&6
3038 if test -n "$CC"; then
3039 ac_cv_prog_CC="$CC" # Let the user override the test.
3041 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3045 test -z "$as_dir" && as_dir=.
3046 for ac_exec_ext in '' $ac_executable_extensions; do
3047 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3048 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3049 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3059 if test -n "$CC"; then
3060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3061 $as_echo "$CC" >&6; }
3063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3064 $as_echo "no" >&6; }
3068 test -n "$CC" && break
3071 if test -z "$CC"; then
3073 for ac_prog in cl.exe
3075 # Extract the first word of "$ac_prog", so it can be a program name with args.
3076 set dummy $ac_prog; ac_word=$2
3077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3078 $as_echo_n "checking for $ac_word... " >&6; }
3079 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3080 $as_echo_n "(cached) " >&6
3082 if test -n "$ac_ct_CC"; then
3083 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3085 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3089 test -z "$as_dir" && as_dir=.
3090 for ac_exec_ext in '' $ac_executable_extensions; do
3091 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3092 ac_cv_prog_ac_ct_CC="$ac_prog"
3093 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3102 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3103 if test -n "$ac_ct_CC"; then
3104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3105 $as_echo "$ac_ct_CC" >&6; }
3107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3108 $as_echo "no" >&6; }
3112 test -n "$ac_ct_CC" && break
3115 if test "x$ac_ct_CC" = x; then
3118 case $cross_compiling:$ac_tool_warned in
3120 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3121 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3122 ac_tool_warned=yes ;;
3131 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3132 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3133 as_fn_error $? "no acceptable C compiler found in \$PATH
3134 See \`config.log' for more details" "$LINENO" 5; }
3136 # Provide some information about the compiler.
3137 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3140 for ac_option in --version -v -V -qversion; do
3141 { { ac_try="$ac_compiler $ac_option >&5"
3143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3144 *) ac_try_echo=$ac_try;;
3146 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3147 $as_echo "$ac_try_echo"; } >&5
3148 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3150 if test -s conftest.err; then
3152 ... rest of stderr output deleted ...
3153 10q' conftest.err >conftest.er1
3154 cat conftest.er1 >&5
3156 rm -f conftest.er1 conftest.err
3157 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3158 test $ac_status = 0; }
3161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3162 /* end confdefs.h. */
3172 ac_clean_files_save=$ac_clean_files
3173 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3174 # Try to create an executable without -o first, disregard a.out.
3175 # It will help us diagnose broken compilers, and finding out an intuition
3177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3178 $as_echo_n "checking whether the C compiler works... " >&6; }
3179 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3181 # The possible output files:
3182 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3185 for ac_file in $ac_files
3188 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3189 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3194 if { { ac_try="$ac_link_default"
3196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3197 *) ac_try_echo=$ac_try;;
3199 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3200 $as_echo "$ac_try_echo"; } >&5
3201 (eval "$ac_link_default") 2>&5
3203 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3204 test $ac_status = 0; }; then :
3205 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3206 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3207 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3208 # so that the user can short-circuit this test for compilers unknown to
3210 for ac_file in $ac_files ''
3212 test -f "$ac_file" || continue
3214 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3217 # We found the default executable, but exeext='' is most
3221 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3223 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3225 # We set ac_cv_exeext here because the later test for it is not
3226 # safe: cross compilers may not add the suffix if given an `-o'
3227 # argument, so we may need to know it at that point already.
3228 # Even if this section looks crufty: it has the advantage of
3235 test "$ac_cv_exeext" = no && ac_cv_exeext=
3240 if test -z "$ac_file"; then :
3241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3242 $as_echo "no" >&6; }
3243 $as_echo "$as_me: failed program was:" >&5
3244 sed 's/^/| /' conftest.$ac_ext >&5
3246 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3247 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3248 as_fn_error 77 "C compiler cannot create executables
3249 See \`config.log' for more details" "$LINENO" 5; }
3251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3252 $as_echo "yes" >&6; }
3254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3255 $as_echo_n "checking for C compiler default output file name... " >&6; }
3256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3257 $as_echo "$ac_file" >&6; }
3258 ac_exeext=$ac_cv_exeext
3260 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3261 ac_clean_files=$ac_clean_files_save
3262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3263 $as_echo_n "checking for suffix of executables... " >&6; }
3264 if { { ac_try="$ac_link"
3266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3267 *) ac_try_echo=$ac_try;;
3269 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3270 $as_echo "$ac_try_echo"; } >&5
3271 (eval "$ac_link") 2>&5
3273 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3274 test $ac_status = 0; }; then :
3275 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3276 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3277 # work properly (i.e., refer to `conftest.exe'), while it won't with
3279 for ac_file in conftest.exe conftest conftest.*; do
3280 test -f "$ac_file" || continue
3282 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3283 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3289 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3290 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3291 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3292 See \`config.log' for more details" "$LINENO" 5; }
3294 rm -f conftest conftest$ac_cv_exeext
3295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3296 $as_echo "$ac_cv_exeext" >&6; }
3298 rm -f conftest.$ac_ext
3299 EXEEXT=$ac_cv_exeext
3301 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3302 /* end confdefs.h. */
3307 FILE *f = fopen ("conftest.out", "w");
3308 return ferror (f) || fclose (f) != 0;
3314 ac_clean_files="$ac_clean_files conftest.out"
3315 # Check that the compiler produces executables we can run. If not, either
3316 # the compiler is broken, or we cross compile.
3317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3318 $as_echo_n "checking whether we are cross compiling... " >&6; }
3319 if test "$cross_compiling" != yes; then
3320 { { ac_try="$ac_link"
3322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3323 *) ac_try_echo=$ac_try;;
3325 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3326 $as_echo "$ac_try_echo"; } >&5
3327 (eval "$ac_link") 2>&5
3329 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3330 test $ac_status = 0; }
3331 if { ac_try='./conftest$ac_cv_exeext'
3332 { { case "(($ac_try" in
3333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3334 *) ac_try_echo=$ac_try;;
3336 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3337 $as_echo "$ac_try_echo"; } >&5
3338 (eval "$ac_try") 2>&5
3340 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3341 test $ac_status = 0; }; }; then
3344 if test "$cross_compiling" = maybe; then
3347 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3348 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3349 as_fn_error $? "cannot run C compiled programs.
3350 If you meant to cross compile, use \`--host'.
3351 See \`config.log' for more details" "$LINENO" 5; }
3355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3356 $as_echo "$cross_compiling" >&6; }
3358 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3359 ac_clean_files=$ac_clean_files_save
3360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3361 $as_echo_n "checking for suffix of object files... " >&6; }
3362 if ${ac_cv_objext+:} false; then :
3363 $as_echo_n "(cached) " >&6
3365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3366 /* end confdefs.h. */
3376 rm -f conftest.o conftest.obj
3377 if { { ac_try="$ac_compile"
3379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3380 *) ac_try_echo=$ac_try;;
3382 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3383 $as_echo "$ac_try_echo"; } >&5
3384 (eval "$ac_compile") 2>&5
3386 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3387 test $ac_status = 0; }; then :
3388 for ac_file in conftest.o conftest.obj conftest.*; do
3389 test -f "$ac_file" || continue;
3391 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3392 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3397 $as_echo "$as_me: failed program was:" >&5
3398 sed 's/^/| /' conftest.$ac_ext >&5
3400 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3401 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3402 as_fn_error $? "cannot compute suffix of object files: cannot compile
3403 See \`config.log' for more details" "$LINENO" 5; }
3405 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3408 $as_echo "$ac_cv_objext" >&6; }
3409 OBJEXT=$ac_cv_objext
3411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3412 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3413 if ${ac_cv_c_compiler_gnu+:} false; then :
3414 $as_echo_n "(cached) " >&6
3416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3417 /* end confdefs.h. */
3430 if ac_fn_c_try_compile "$LINENO"; then :
3435 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3436 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3440 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3441 if test $ac_compiler_gnu = yes; then
3446 ac_test_CFLAGS=${CFLAGS+set}
3447 ac_save_CFLAGS=$CFLAGS
3448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3449 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3450 if ${ac_cv_prog_cc_g+:} false; then :
3451 $as_echo_n "(cached) " >&6
3453 ac_save_c_werror_flag=$ac_c_werror_flag
3454 ac_c_werror_flag=yes
3457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3458 /* end confdefs.h. */
3468 if ac_fn_c_try_compile "$LINENO"; then :
3472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3473 /* end confdefs.h. */
3483 if ac_fn_c_try_compile "$LINENO"; then :
3486 ac_c_werror_flag=$ac_save_c_werror_flag
3488 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3489 /* end confdefs.h. */
3499 if ac_fn_c_try_compile "$LINENO"; then :
3502 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3504 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3506 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3507 ac_c_werror_flag=$ac_save_c_werror_flag
3509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3510 $as_echo "$ac_cv_prog_cc_g" >&6; }
3511 if test "$ac_test_CFLAGS" = set; then
3512 CFLAGS=$ac_save_CFLAGS
3513 elif test $ac_cv_prog_cc_g = yes; then
3514 if test "$GCC" = yes; then
3520 if test "$GCC" = yes; then
3526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3527 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3528 if ${ac_cv_prog_cc_c89+:} false; then :
3529 $as_echo_n "(cached) " >&6
3531 ac_cv_prog_cc_c89=no
3533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3534 /* end confdefs.h. */
3537 #include <sys/types.h>
3538 #include <sys/stat.h>
3539 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3540 struct buf { int x; };
3541 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3542 static char *e (p, i)
3548 static char *f (char * (*g) (char **, int), char **p, ...)
3553 s = g (p, va_arg (v,int));
3558 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3559 function prototypes and stuff, but not '\xHH' hex character constants.
3560 These don't provoke an error unfortunately, instead are silently treated
3561 as 'x'. The following induces an error, until -std is added to get
3562 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3563 array size at least. It's necessary to write '\x00'==0 to get something
3564 that's true only with -std. */
3565 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3567 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3568 inside strings and character constants. */
3570 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3572 int test (int i, double x);
3573 struct s1 {int (*f) (int a);};
3574 struct s2 {int (*f) (double a);};
3575 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3581 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3586 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3587 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3589 CC="$ac_save_CC $ac_arg"
3590 if ac_fn_c_try_compile "$LINENO"; then :
3591 ac_cv_prog_cc_c89=$ac_arg
3593 rm -f core conftest.err conftest.$ac_objext
3594 test "x$ac_cv_prog_cc_c89" != "xno" && break
3596 rm -f conftest.$ac_ext
3601 case "x$ac_cv_prog_cc_c89" in
3603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3604 $as_echo "none needed" >&6; } ;;
3606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3607 $as_echo "unsupported" >&6; } ;;
3609 CC="$CC $ac_cv_prog_cc_c89"
3610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3611 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3613 if test "x$ac_cv_prog_cc_c89" != xno; then :
3618 ac_cpp='$CPP $CPPFLAGS'
3619 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3620 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3621 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3623 depcc="$CC" am_compiler_list=
3625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3626 $as_echo_n "checking dependency style of $depcc... " >&6; }
3627 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3628 $as_echo_n "(cached) " >&6
3630 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3631 # We make a subdir and do the tests there. Otherwise we can end up
3632 # making bogus files that we don't know about and never remove. For
3633 # instance it was reported that on HP-UX the gcc test will end up
3634 # making a dummy file named `D' -- because `-MD' means `put the output
3637 # Copy depcomp to subdir because otherwise we won't find it if we're
3638 # using a relative directory.
3639 cp "$am_depcomp" conftest.dir
3641 # We will build objects and dependencies in a subdirectory because
3642 # it helps to detect inapplicable dependency modes. For instance
3643 # both Tru64's cc and ICC support -MD to output dependencies as a
3644 # side effect of compilation, but ICC will put the dependencies in
3645 # the current directory while Tru64 will put them in the object
3649 am_cv_CC_dependencies_compiler_type=none
3650 if test "$am_compiler_list" = ""; then
3651 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3654 case " $depcc " in #(
3655 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3658 for depmode in $am_compiler_list; do
3659 # Setup a source with many dependencies, because some compilers
3660 # like to wrap large dependency lists on column 80 (with \), and
3661 # we should not choose a depcomp mode which is confused by this.
3663 # We need to recreate these files for each test, as the compiler may
3664 # overwrite some of them when testing with obscure command lines.
3665 # This happens at least with the AIX C compiler.
3667 for i in 1 2 3 4 5 6; do
3668 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3669 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3670 # Solaris 8's {/usr,}/bin/sh.
3671 touch sub/conftst$i.h
3673 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3675 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3676 # mode. It turns out that the SunPro C++ compiler does not properly
3677 # handle `-M -o', and we need to detect this. Also, some Intel
3678 # versions had trouble with output in subdirs
3679 am__obj=sub/conftest.${OBJEXT-o}
3680 am__minus_obj="-o $am__obj"
3683 # This depmode causes a compiler race in universal mode.
3684 test "$am__universal" = false || continue
3687 # after this tag, mechanisms are not by side-effect, so they'll
3688 # only be used when explicitly requested
3689 if test "x$enable_dependency_tracking" = xyes; then
3695 msvisualcpp | msvcmsys)
3696 # This compiler won't grok `-c -o', but also, the minuso test has
3697 # not run yet. These depmodes are late enough in the game, and
3698 # so weak that their functioning should not be impacted.
3699 am__obj=conftest.${OBJEXT-o}
3704 if depmode=$depmode \
3705 source=sub/conftest.c object=$am__obj \
3706 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3707 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3708 >/dev/null 2>conftest.err &&
3709 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3710 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3711 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3712 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3713 # icc doesn't choke on unknown options, it will just issue warnings
3714 # or remarks (even with -Werror). So we grep stderr for any message
3715 # that says an option was ignored or not supported.
3716 # When given -MP, icc 7.0 and 7.1 complain thusly:
3717 # icc: Command line warning: ignoring option '-M'; no argument required
3718 # The diagnosis changed in icc 8.0:
3719 # icc: Command line remark: option '-MP' not supported
3720 if (grep 'ignoring option' conftest.err ||
3721 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3722 am_cv_CC_dependencies_compiler_type=$depmode
3731 am_cv_CC_dependencies_compiler_type=none
3735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3736 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3737 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3740 test "x$enable_dependency_tracking" != xno \
3741 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3743 am__fastdepCC_FALSE='#'
3745 am__fastdepCC_TRUE='#'
3746 am__fastdepCC_FALSE=
3750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
3751 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
3752 if ${ac_cv_path_SED+:} false; then :
3753 $as_echo_n "(cached) " >&6
3755 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
3756 for ac_i in 1 2 3 4 5 6 7; do
3757 ac_script="$ac_script$as_nl$ac_script"
3759 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
3760 { ac_script=; unset ac_script;}
3761 if test -z "$SED"; then
3762 ac_path_SED_found=false
3763 # Loop through the user's path and test for each of PROGNAME-LIST
3764 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3768 test -z "$as_dir" && as_dir=.
3769 for ac_prog in sed gsed; do
3770 for ac_exec_ext in '' $ac_executable_extensions; do
3771 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
3772 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
3773 # Check for GNU ac_path_SED and select it if it is found.
3774 # Check for GNU $ac_path_SED
3775 case `"$ac_path_SED" --version 2>&1` in
3777 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
3780 $as_echo_n 0123456789 >"conftest.in"
3783 cat "conftest.in" "conftest.in" >"conftest.tmp"
3784 mv "conftest.tmp" "conftest.in"
3785 cp "conftest.in" "conftest.nl"
3786 $as_echo '' >> "conftest.nl"
3787 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
3788 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3789 as_fn_arith $ac_count + 1 && ac_count=$as_val
3790 if test $ac_count -gt ${ac_path_SED_max-0}; then
3791 # Best one so far, save it but keep looking for a better one
3792 ac_cv_path_SED="$ac_path_SED"
3793 ac_path_SED_max=$ac_count
3795 # 10*(2^10) chars as input seems more than enough
3796 test $ac_count -gt 10 && break
3798 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3801 $ac_path_SED_found && break 3
3806 if test -z "$ac_cv_path_SED"; then
3807 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
3814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
3815 $as_echo "$ac_cv_path_SED" >&6; }
3816 SED="$ac_cv_path_SED"
3819 test -z "$SED" && SED=sed
3820 Xsed="$SED -e 1s/^X//"
3832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3833 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3834 if ${ac_cv_path_GREP+:} false; then :
3835 $as_echo_n "(cached) " >&6
3837 if test -z "$GREP"; then
3838 ac_path_GREP_found=false
3839 # Loop through the user's path and test for each of PROGNAME-LIST
3840 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3841 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3844 test -z "$as_dir" && as_dir=.
3845 for ac_prog in grep ggrep; do
3846 for ac_exec_ext in '' $ac_executable_extensions; do
3847 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3848 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3849 # Check for GNU ac_path_GREP and select it if it is found.
3850 # Check for GNU $ac_path_GREP
3851 case `"$ac_path_GREP" --version 2>&1` in
3853 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3856 $as_echo_n 0123456789 >"conftest.in"
3859 cat "conftest.in" "conftest.in" >"conftest.tmp"
3860 mv "conftest.tmp" "conftest.in"
3861 cp "conftest.in" "conftest.nl"
3862 $as_echo 'GREP' >> "conftest.nl"
3863 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3864 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3865 as_fn_arith $ac_count + 1 && ac_count=$as_val
3866 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3867 # Best one so far, save it but keep looking for a better one
3868 ac_cv_path_GREP="$ac_path_GREP"
3869 ac_path_GREP_max=$ac_count
3871 # 10*(2^10) chars as input seems more than enough
3872 test $ac_count -gt 10 && break
3874 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3877 $ac_path_GREP_found && break 3
3882 if test -z "$ac_cv_path_GREP"; then
3883 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3886 ac_cv_path_GREP=$GREP
3890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3891 $as_echo "$ac_cv_path_GREP" >&6; }
3892 GREP="$ac_cv_path_GREP"
3895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3896 $as_echo_n "checking for egrep... " >&6; }
3897 if ${ac_cv_path_EGREP+:} false; then :
3898 $as_echo_n "(cached) " >&6
3900 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3901 then ac_cv_path_EGREP="$GREP -E"
3903 if test -z "$EGREP"; then
3904 ac_path_EGREP_found=false
3905 # Loop through the user's path and test for each of PROGNAME-LIST
3906 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3907 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3910 test -z "$as_dir" && as_dir=.
3911 for ac_prog in egrep; do
3912 for ac_exec_ext in '' $ac_executable_extensions; do
3913 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3914 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3915 # Check for GNU ac_path_EGREP and select it if it is found.
3916 # Check for GNU $ac_path_EGREP
3917 case `"$ac_path_EGREP" --version 2>&1` in
3919 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3922 $as_echo_n 0123456789 >"conftest.in"
3925 cat "conftest.in" "conftest.in" >"conftest.tmp"
3926 mv "conftest.tmp" "conftest.in"
3927 cp "conftest.in" "conftest.nl"
3928 $as_echo 'EGREP' >> "conftest.nl"
3929 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3930 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3931 as_fn_arith $ac_count + 1 && ac_count=$as_val
3932 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3933 # Best one so far, save it but keep looking for a better one
3934 ac_cv_path_EGREP="$ac_path_EGREP"
3935 ac_path_EGREP_max=$ac_count
3937 # 10*(2^10) chars as input seems more than enough
3938 test $ac_count -gt 10 && break
3940 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3943 $ac_path_EGREP_found && break 3
3948 if test -z "$ac_cv_path_EGREP"; then
3949 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3952 ac_cv_path_EGREP=$EGREP
3957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3958 $as_echo "$ac_cv_path_EGREP" >&6; }
3959 EGREP="$ac_cv_path_EGREP"
3962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
3963 $as_echo_n "checking for fgrep... " >&6; }
3964 if ${ac_cv_path_FGREP+:} false; then :
3965 $as_echo_n "(cached) " >&6
3967 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
3968 then ac_cv_path_FGREP="$GREP -F"
3970 if test -z "$FGREP"; then
3971 ac_path_FGREP_found=false
3972 # Loop through the user's path and test for each of PROGNAME-LIST
3973 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3974 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3977 test -z "$as_dir" && as_dir=.
3978 for ac_prog in fgrep; do
3979 for ac_exec_ext in '' $ac_executable_extensions; do
3980 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
3981 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
3982 # Check for GNU ac_path_FGREP and select it if it is found.
3983 # Check for GNU $ac_path_FGREP
3984 case `"$ac_path_FGREP" --version 2>&1` in
3986 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
3989 $as_echo_n 0123456789 >"conftest.in"
3992 cat "conftest.in" "conftest.in" >"conftest.tmp"
3993 mv "conftest.tmp" "conftest.in"
3994 cp "conftest.in" "conftest.nl"
3995 $as_echo 'FGREP' >> "conftest.nl"
3996 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
3997 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3998 as_fn_arith $ac_count + 1 && ac_count=$as_val
3999 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4000 # Best one so far, save it but keep looking for a better one
4001 ac_cv_path_FGREP="$ac_path_FGREP"
4002 ac_path_FGREP_max=$ac_count
4004 # 10*(2^10) chars as input seems more than enough
4005 test $ac_count -gt 10 && break
4007 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4010 $ac_path_FGREP_found && break 3
4015 if test -z "$ac_cv_path_FGREP"; then
4016 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4019 ac_cv_path_FGREP=$FGREP
4024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4025 $as_echo "$ac_cv_path_FGREP" >&6; }
4026 FGREP="$ac_cv_path_FGREP"
4029 test -z "$GREP" && GREP=grep
4049 # Check whether --with-gnu-ld was given.
4050 if test "${with_gnu_ld+set}" = set; then :
4051 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4057 if test "$GCC" = yes; then
4058 # Check if gcc -print-prog-name=ld gives a path.
4059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4060 $as_echo_n "checking for ld used by $CC... " >&6; }
4063 # gcc leaves a trailing carriage return which upsets mingw
4064 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4066 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4069 # Accept absolute paths.
4071 re_direlt='/[^/][^/]*/\.\./'
4072 # Canonicalize the pathname of ld
4073 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4074 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4075 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4077 test -z "$LD" && LD="$ac_prog"
4080 # If it fails, then pretend we aren't using GCC.
4084 # If it is relative, then search for the first ld in PATH.
4088 elif test "$with_gnu_ld" = yes; then
4089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4090 $as_echo_n "checking for GNU ld... " >&6; }
4092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4093 $as_echo_n "checking for non-GNU ld... " >&6; }
4095 if ${lt_cv_path_LD+:} false; then :
4096 $as_echo_n "(cached) " >&6
4098 if test -z "$LD"; then
4099 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4100 for ac_dir in $PATH; do
4102 test -z "$ac_dir" && ac_dir=.
4103 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4104 lt_cv_path_LD="$ac_dir/$ac_prog"
4105 # Check to see if the program is GNU ld. I'd rather use --version,
4106 # but apparently some variants of GNU ld only accept -v.
4107 # Break only if it was the GNU/non-GNU ld that we prefer.
4108 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4109 *GNU* | *'with BFD'*)
4110 test "$with_gnu_ld" != no && break
4113 test "$with_gnu_ld" != yes && break
4120 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4125 if test -n "$LD"; then
4126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4127 $as_echo "$LD" >&6; }
4129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4130 $as_echo "no" >&6; }
4132 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4134 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4135 if ${lt_cv_prog_gnu_ld+:} false; then :
4136 $as_echo_n "(cached) " >&6
4138 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4139 case `$LD -v 2>&1 </dev/null` in
4140 *GNU* | *'with BFD'*)
4141 lt_cv_prog_gnu_ld=yes
4144 lt_cv_prog_gnu_ld=no
4148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4149 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4150 with_gnu_ld=$lt_cv_prog_gnu_ld
4160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4161 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4162 if ${lt_cv_path_NM+:} false; then :
4163 $as_echo_n "(cached) " >&6
4165 if test -n "$NM"; then
4166 # Let the user override the test.
4169 lt_nm_to_check="${ac_tool_prefix}nm"
4170 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4171 lt_nm_to_check="$lt_nm_to_check nm"
4173 for lt_tmp_nm in $lt_nm_to_check; do
4174 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4175 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4177 test -z "$ac_dir" && ac_dir=.
4178 tmp_nm="$ac_dir/$lt_tmp_nm"
4179 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4180 # Check to see if the nm accepts a BSD-compat flag.
4181 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4182 # nm: unknown option "B" ignored
4183 # Tru64's nm complains that /dev/null is an invalid object file
4184 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4185 */dev/null* | *'Invalid file or object type'*)
4186 lt_cv_path_NM="$tmp_nm -B"
4190 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4192 lt_cv_path_NM="$tmp_nm -p"
4196 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4197 continue # so that we can try to find one that supports BSD flags
4206 : ${lt_cv_path_NM=no}
4209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4210 $as_echo "$lt_cv_path_NM" >&6; }
4211 if test "$lt_cv_path_NM" != "no"; then
4214 # Didn't find any BSD compatible name lister, look for dumpbin.
4215 if test -n "$DUMPBIN"; then :
4216 # Let the user override the test.
4218 if test -n "$ac_tool_prefix"; then
4219 for ac_prog in dumpbin "link -dump"
4221 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4222 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4224 $as_echo_n "checking for $ac_word... " >&6; }
4225 if ${ac_cv_prog_DUMPBIN+:} false; then :
4226 $as_echo_n "(cached) " >&6
4228 if test -n "$DUMPBIN"; then
4229 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4231 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4235 test -z "$as_dir" && as_dir=.
4236 for ac_exec_ext in '' $ac_executable_extensions; do
4237 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4238 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4239 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4248 DUMPBIN=$ac_cv_prog_DUMPBIN
4249 if test -n "$DUMPBIN"; then
4250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4251 $as_echo "$DUMPBIN" >&6; }
4253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4254 $as_echo "no" >&6; }
4258 test -n "$DUMPBIN" && break
4261 if test -z "$DUMPBIN"; then
4262 ac_ct_DUMPBIN=$DUMPBIN
4263 for ac_prog in dumpbin "link -dump"
4265 # Extract the first word of "$ac_prog", so it can be a program name with args.
4266 set dummy $ac_prog; ac_word=$2
4267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4268 $as_echo_n "checking for $ac_word... " >&6; }
4269 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4270 $as_echo_n "(cached) " >&6
4272 if test -n "$ac_ct_DUMPBIN"; then
4273 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4275 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4279 test -z "$as_dir" && as_dir=.
4280 for ac_exec_ext in '' $ac_executable_extensions; do
4281 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4282 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4283 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4292 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4293 if test -n "$ac_ct_DUMPBIN"; then
4294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4295 $as_echo "$ac_ct_DUMPBIN" >&6; }
4297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4298 $as_echo "no" >&6; }
4302 test -n "$ac_ct_DUMPBIN" && break
4305 if test "x$ac_ct_DUMPBIN" = x; then
4308 case $cross_compiling:$ac_tool_warned in
4310 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4311 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4312 ac_tool_warned=yes ;;
4314 DUMPBIN=$ac_ct_DUMPBIN
4318 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
4320 DUMPBIN="$DUMPBIN -symbols"
4328 if test "$DUMPBIN" != ":"; then
4332 test -z "$NM" && NM=nm
4339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4340 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
4341 if ${lt_cv_nm_interface+:} false; then :
4342 $as_echo_n "(cached) " >&6
4344 lt_cv_nm_interface="BSD nm"
4345 echo "int some_variable = 0;" > conftest.$ac_ext
4346 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4347 (eval "$ac_compile" 2>conftest.err)
4348 cat conftest.err >&5
4349 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4350 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4351 cat conftest.err >&5
4352 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4353 cat conftest.out >&5
4354 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4355 lt_cv_nm_interface="MS dumpbin"
4359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4360 $as_echo "$lt_cv_nm_interface" >&6; }
4362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4363 $as_echo_n "checking whether ln -s works... " >&6; }
4365 if test "$LN_S" = "ln -s"; then
4366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4367 $as_echo "yes" >&6; }
4369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4370 $as_echo "no, using $LN_S" >&6; }
4373 # find the maximum length of command line arguments
4374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4375 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
4376 if ${lt_cv_sys_max_cmd_len+:} false; then :
4377 $as_echo_n "(cached) " >&6
4384 # On DJGPP, this test can blow up pretty badly due to problems in libc
4385 # (any single argument exceeding 2000 bytes causes a buffer overrun
4386 # during glob expansion). Even if it were fixed, the result of this
4387 # check would be larger than it should be.
4388 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4392 # Under GNU Hurd, this test is not required because there is
4393 # no limit to the length of command line arguments.
4394 # Libtool will interpret -1 as no limit whatsoever
4395 lt_cv_sys_max_cmd_len=-1;
4398 cygwin* | mingw* | cegcc*)
4399 # On Win9x/ME, this test blows up -- it succeeds, but takes
4400 # about 5 minutes as the teststring grows exponentially.
4401 # Worse, since 9x/ME are not pre-emptively multitasking,
4402 # you end up with a "frozen" computer, even though with patience
4403 # the test eventually succeeds (with a max line length of 256k).
4404 # Instead, let's just punt: use the minimum linelength reported by
4405 # all of the supported platforms: 8192 (on NT/2K/XP).
4406 lt_cv_sys_max_cmd_len=8192;
4410 # On MiNT this can take a long time and run out of memory.
4411 lt_cv_sys_max_cmd_len=8192;
4415 # On AmigaOS with pdksh, this test takes hours, literally.
4416 # So we just punt and use a minimum line length of 8192.
4417 lt_cv_sys_max_cmd_len=8192;
4420 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4421 # This has been around since 386BSD, at least. Likely further.
4422 if test -x /sbin/sysctl; then
4423 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4424 elif test -x /usr/sbin/sysctl; then
4425 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4427 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4429 # And add a safety zone
4430 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4431 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4435 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4436 lt_cv_sys_max_cmd_len=196608
4440 # The test takes a long time on OS/2.
4441 lt_cv_sys_max_cmd_len=8192
4445 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4446 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4447 # nice to cause kernel panics so lets avoid the loop below.
4448 # First set a reasonable default.
4449 lt_cv_sys_max_cmd_len=16384
4451 if test -x /sbin/sysconfig; then
4452 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4453 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4458 lt_cv_sys_max_cmd_len=102400
4460 sysv5* | sco5v6* | sysv4.2uw2*)
4461 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4462 if test -n "$kargmax"; then
4463 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4465 lt_cv_sys_max_cmd_len=32768
4469 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4470 if test -n "$lt_cv_sys_max_cmd_len"; then
4471 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4472 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4474 # Make teststring a little bigger before we do anything with it.
4475 # a 1K string should be a reasonable start.
4476 for i in 1 2 3 4 5 6 7 8 ; do
4477 teststring=$teststring$teststring
4479 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4480 # If test is not a shell built-in, we'll probably end up computing a
4481 # maximum length that is only half of the actual maximum length, but
4483 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
4484 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
4485 test $i != 17 # 1/2 MB should be enough
4488 teststring=$teststring$teststring
4490 # Only check the string length outside the loop.
4491 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4493 # Add a significant safety factor because C++ compilers can tack on
4494 # massive amounts of additional arguments before passing them to the
4495 # linker. It appears as though 1/2 is a usable value.
4496 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4503 if test -n $lt_cv_sys_max_cmd_len ; then
4504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4505 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4508 $as_echo "none" >&6; }
4510 max_cmd_len=$lt_cv_sys_max_cmd_len
4521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
4522 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4523 # Try some XSI features
4526 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
4528 && eval 'test $(( 1 + 1 )) -eq 2 \
4529 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
4532 $as_echo "$xsi_shell" >&6; }
4535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
4536 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
4538 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4540 && lt_shell_append=yes
4541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
4542 $as_echo "$lt_shell_append" >&6; }
4545 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4555 # test EBCDIC or ASCII
4556 case `echo X|tr X '\101'` in
4557 A) # ASCII based system
4558 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4559 lt_SP2NL='tr \040 \012'
4560 lt_NL2SP='tr \015\012 \040\040'
4562 *) # EBCDIC based system
4563 lt_SP2NL='tr \100 \n'
4564 lt_NL2SP='tr \r\n \100\100'
4576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
4577 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
4578 if ${lt_cv_to_host_file_cmd+:} false; then :
4579 $as_echo_n "(cached) " >&6
4584 *-*-mingw* ) # actually msys
4585 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
4588 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
4590 * ) # otherwise, assume *nix
4591 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
4597 *-*-mingw* ) # actually msys
4598 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
4601 lt_cv_to_host_file_cmd=func_convert_file_noop
4603 * ) # otherwise, assume *nix
4604 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
4608 * ) # unhandled hosts (and "normal" native builds)
4609 lt_cv_to_host_file_cmd=func_convert_file_noop
4615 to_host_file_cmd=$lt_cv_to_host_file_cmd
4616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
4617 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
4623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
4624 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
4625 if ${lt_cv_to_tool_file_cmd+:} false; then :
4626 $as_echo_n "(cached) " >&6
4628 #assume ordinary cross tools, or native build.
4629 lt_cv_to_tool_file_cmd=func_convert_file_noop
4633 *-*-mingw* ) # actually msys
4634 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
4642 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
4643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
4644 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
4650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
4651 $as_echo_n "checking for $LD option to reload object files... " >&6; }
4652 if ${lt_cv_ld_reload_flag+:} false; then :
4653 $as_echo_n "(cached) " >&6
4655 lt_cv_ld_reload_flag='-r'
4657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
4658 $as_echo "$lt_cv_ld_reload_flag" >&6; }
4659 reload_flag=$lt_cv_ld_reload_flag
4660 case $reload_flag in
4662 *) reload_flag=" $reload_flag" ;;
4664 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4666 cygwin* | mingw* | pw32* | cegcc*)
4667 if test "$GCC" != yes; then
4672 if test "$GCC" = yes; then
4673 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4675 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4688 if test -n "$ac_tool_prefix"; then
4689 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4690 set dummy ${ac_tool_prefix}objdump; ac_word=$2
4691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4692 $as_echo_n "checking for $ac_word... " >&6; }
4693 if ${ac_cv_prog_OBJDUMP+:} false; then :
4694 $as_echo_n "(cached) " >&6
4696 if test -n "$OBJDUMP"; then
4697 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4699 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4703 test -z "$as_dir" && as_dir=.
4704 for ac_exec_ext in '' $ac_executable_extensions; do
4705 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4706 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4707 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4716 OBJDUMP=$ac_cv_prog_OBJDUMP
4717 if test -n "$OBJDUMP"; then
4718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
4719 $as_echo "$OBJDUMP" >&6; }
4721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4722 $as_echo "no" >&6; }
4727 if test -z "$ac_cv_prog_OBJDUMP"; then
4728 ac_ct_OBJDUMP=$OBJDUMP
4729 # Extract the first word of "objdump", so it can be a program name with args.
4730 set dummy objdump; ac_word=$2
4731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4732 $as_echo_n "checking for $ac_word... " >&6; }
4733 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
4734 $as_echo_n "(cached) " >&6
4736 if test -n "$ac_ct_OBJDUMP"; then
4737 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4739 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4743 test -z "$as_dir" && as_dir=.
4744 for ac_exec_ext in '' $ac_executable_extensions; do
4745 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4746 ac_cv_prog_ac_ct_OBJDUMP="objdump"
4747 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4756 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4757 if test -n "$ac_ct_OBJDUMP"; then
4758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
4759 $as_echo "$ac_ct_OBJDUMP" >&6; }
4761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4762 $as_echo "no" >&6; }
4765 if test "x$ac_ct_OBJDUMP" = x; then
4768 case $cross_compiling:$ac_tool_warned in
4770 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4771 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4772 ac_tool_warned=yes ;;
4774 OBJDUMP=$ac_ct_OBJDUMP
4777 OBJDUMP="$ac_cv_prog_OBJDUMP"
4780 test -z "$OBJDUMP" && OBJDUMP=objdump
4790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
4791 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
4792 if ${lt_cv_deplibs_check_method+:} false; then :
4793 $as_echo_n "(cached) " >&6
4795 lt_cv_file_magic_cmd='$MAGIC_CMD'
4796 lt_cv_file_magic_test_file=
4797 lt_cv_deplibs_check_method='unknown'
4798 # Need to set the preceding variable on all platforms that support
4799 # interlibrary dependencies.
4800 # 'none' -- dependencies not supported.
4801 # `unknown' -- same as none, but documents that we really don't know.
4802 # 'pass_all' -- all dependencies passed with no checks.
4803 # 'test_compile' -- check by making test program.
4804 # 'file_magic [[regex]]' -- check by looking for files in library path
4805 # which responds to the $file_magic_cmd with a given extended regex.
4806 # If you have `file' or equivalent on your system and you're not sure
4807 # whether `pass_all' will *always* work, you probably want this one.
4811 lt_cv_deplibs_check_method=pass_all
4815 lt_cv_deplibs_check_method=pass_all
4819 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4820 lt_cv_file_magic_cmd='/usr/bin/file -L'
4821 lt_cv_file_magic_test_file=/shlib/libc.so
4825 # func_win32_libid is a shell function defined in ltmain.sh
4826 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4827 lt_cv_file_magic_cmd='func_win32_libid'
4831 # Base MSYS/MinGW do not provide the 'file' command needed by
4832 # func_win32_libid shell function, so use a weaker test based on 'objdump',
4833 # unless we find 'file', for example because we are cross-compiling.
4834 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
4835 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
4836 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4837 lt_cv_file_magic_cmd='func_win32_libid'
4839 # Keep this pattern in sync with the one in func_win32_libid.
4840 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
4841 lt_cv_file_magic_cmd='$OBJDUMP -f'
4846 # use the weaker test based on 'objdump'. See mingw*.
4847 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
4848 lt_cv_file_magic_cmd='$OBJDUMP -f'
4851 darwin* | rhapsody*)
4852 lt_cv_deplibs_check_method=pass_all
4855 freebsd* | dragonfly*)
4856 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4859 # Not sure whether the presence of OpenBSD here was a mistake.
4860 # Let's accept both of them until this is cleared up.
4861 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4862 lt_cv_file_magic_cmd=/usr/bin/file
4863 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4867 lt_cv_deplibs_check_method=pass_all
4872 lt_cv_deplibs_check_method=pass_all
4876 lt_cv_deplibs_check_method=pass_all
4879 hpux10.20* | hpux11*)
4880 lt_cv_file_magic_cmd=/usr/bin/file
4883 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4884 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4887 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]'
4888 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4891 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
4892 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4898 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4899 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4902 irix5* | irix6* | nonstopux*)
4904 *-32|*"-32 ") libmagic=32-bit;;
4905 *-n32|*"-n32 ") libmagic=N32;;
4906 *-64|*"-64 ") libmagic=64-bit;;
4907 *) libmagic=never-match;;
4909 lt_cv_deplibs_check_method=pass_all
4912 # This must be glibc/ELF.
4913 linux* | k*bsd*-gnu | kopensolaris*-gnu)
4914 lt_cv_deplibs_check_method=pass_all
4917 netbsd* | netbsdelf*-gnu)
4918 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4919 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4921 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4926 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4927 lt_cv_file_magic_cmd=/usr/bin/file
4928 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4932 lt_cv_deplibs_check_method=pass_all
4936 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4937 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4939 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4943 osf3* | osf4* | osf5*)
4944 lt_cv_deplibs_check_method=pass_all
4948 lt_cv_deplibs_check_method=pass_all
4952 lt_cv_deplibs_check_method=pass_all
4955 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4956 lt_cv_deplibs_check_method=pass_all
4960 case $host_vendor in
4962 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]'
4963 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4966 lt_cv_deplibs_check_method=pass_all
4969 lt_cv_file_magic_cmd='/bin/file'
4970 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4973 lt_cv_file_magic_cmd='/bin/file'
4974 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4975 lt_cv_file_magic_test_file=/lib/libc.so
4978 lt_cv_deplibs_check_method=pass_all
4981 lt_cv_deplibs_check_method=pass_all
4987 lt_cv_deplibs_check_method=pass_all
4992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
4993 $as_echo "$lt_cv_deplibs_check_method" >&6; }
4997 if test "$build" = "$host"; then
5000 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5003 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5009 file_magic_cmd=$lt_cv_file_magic_cmd
5010 deplibs_check_method=$lt_cv_deplibs_check_method
5011 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5034 if test -n "$ac_tool_prefix"; then
5035 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5036 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5038 $as_echo_n "checking for $ac_word... " >&6; }
5039 if ${ac_cv_prog_DLLTOOL+:} false; then :
5040 $as_echo_n "(cached) " >&6
5042 if test -n "$DLLTOOL"; then
5043 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5045 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5049 test -z "$as_dir" && as_dir=.
5050 for ac_exec_ext in '' $ac_executable_extensions; do
5051 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5052 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5053 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5062 DLLTOOL=$ac_cv_prog_DLLTOOL
5063 if test -n "$DLLTOOL"; then
5064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5065 $as_echo "$DLLTOOL" >&6; }
5067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5068 $as_echo "no" >&6; }
5073 if test -z "$ac_cv_prog_DLLTOOL"; then
5074 ac_ct_DLLTOOL=$DLLTOOL
5075 # Extract the first word of "dlltool", so it can be a program name with args.
5076 set dummy dlltool; ac_word=$2
5077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5078 $as_echo_n "checking for $ac_word... " >&6; }
5079 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5080 $as_echo_n "(cached) " >&6
5082 if test -n "$ac_ct_DLLTOOL"; then
5083 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5085 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5089 test -z "$as_dir" && as_dir=.
5090 for ac_exec_ext in '' $ac_executable_extensions; do
5091 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5092 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5093 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5102 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5103 if test -n "$ac_ct_DLLTOOL"; then
5104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5105 $as_echo "$ac_ct_DLLTOOL" >&6; }
5107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5108 $as_echo "no" >&6; }
5111 if test "x$ac_ct_DLLTOOL" = x; then
5114 case $cross_compiling:$ac_tool_warned in
5116 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5117 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5118 ac_tool_warned=yes ;;
5120 DLLTOOL=$ac_ct_DLLTOOL
5123 DLLTOOL="$ac_cv_prog_DLLTOOL"
5126 test -z "$DLLTOOL" && DLLTOOL=dlltool
5137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5138 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5139 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5140 $as_echo_n "(cached) " >&6
5142 lt_cv_sharedlib_from_linklib_cmd='unknown'
5145 cygwin* | mingw* | pw32* | cegcc*)
5146 # two different shell functions defined in ltmain.sh
5147 # decide which to use based on capabilities of $DLLTOOL
5148 case `$DLLTOOL --help 2>&1` in
5149 *--identify-strict*)
5150 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5153 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5158 # fallback: assume linklib IS sharedlib
5159 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
5164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5165 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5166 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5167 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5176 if test -n "$ac_tool_prefix"; then
5179 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5180 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5182 $as_echo_n "checking for $ac_word... " >&6; }
5183 if ${ac_cv_prog_AR+:} false; then :
5184 $as_echo_n "(cached) " >&6
5186 if test -n "$AR"; then
5187 ac_cv_prog_AR="$AR" # Let the user override the test.
5189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5193 test -z "$as_dir" && as_dir=.
5194 for ac_exec_ext in '' $ac_executable_extensions; do
5195 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5196 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5197 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5207 if test -n "$AR"; then
5208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5209 $as_echo "$AR" >&6; }
5211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5212 $as_echo "no" >&6; }
5216 test -n "$AR" && break
5219 if test -z "$AR"; then
5223 # Extract the first word of "$ac_prog", so it can be a program name with args.
5224 set dummy $ac_prog; ac_word=$2
5225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5226 $as_echo_n "checking for $ac_word... " >&6; }
5227 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5228 $as_echo_n "(cached) " >&6
5230 if test -n "$ac_ct_AR"; then
5231 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5233 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5237 test -z "$as_dir" && as_dir=.
5238 for ac_exec_ext in '' $ac_executable_extensions; do
5239 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5240 ac_cv_prog_ac_ct_AR="$ac_prog"
5241 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5250 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5251 if test -n "$ac_ct_AR"; then
5252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5253 $as_echo "$ac_ct_AR" >&6; }
5255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5256 $as_echo "no" >&6; }
5260 test -n "$ac_ct_AR" && break
5263 if test "x$ac_ct_AR" = x; then
5266 case $cross_compiling:$ac_tool_warned in
5268 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5269 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5270 ac_tool_warned=yes ;;
5289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5290 $as_echo_n "checking for archiver @FILE support... " >&6; }
5291 if ${lt_cv_ar_at_file+:} false; then :
5292 $as_echo_n "(cached) " >&6
5295 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5296 /* end confdefs.h. */
5306 if ac_fn_c_try_compile "$LINENO"; then :
5307 echo conftest.$ac_objext > conftest.lst
5308 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5309 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5310 (eval $lt_ar_try) 2>&5
5312 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5313 test $ac_status = 0; }
5314 if test "$ac_status" -eq 0; then
5315 # Ensure the archiver fails upon bogus file names.
5316 rm -f conftest.$ac_objext libconftest.a
5317 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5318 (eval $lt_ar_try) 2>&5
5320 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5321 test $ac_status = 0; }
5322 if test "$ac_status" -ne 0; then
5326 rm -f conftest.* libconftest.a
5329 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
5333 $as_echo "$lt_cv_ar_at_file" >&6; }
5335 if test "x$lt_cv_ar_at_file" = xno; then
5338 archiver_list_spec=$lt_cv_ar_at_file
5347 if test -n "$ac_tool_prefix"; then
5348 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5349 set dummy ${ac_tool_prefix}strip; ac_word=$2
5350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5351 $as_echo_n "checking for $ac_word... " >&6; }
5352 if ${ac_cv_prog_STRIP+:} false; then :
5353 $as_echo_n "(cached) " >&6
5355 if test -n "$STRIP"; then
5356 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5358 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5362 test -z "$as_dir" && as_dir=.
5363 for ac_exec_ext in '' $ac_executable_extensions; do
5364 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5365 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5366 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5375 STRIP=$ac_cv_prog_STRIP
5376 if test -n "$STRIP"; then
5377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5378 $as_echo "$STRIP" >&6; }
5380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5381 $as_echo "no" >&6; }
5386 if test -z "$ac_cv_prog_STRIP"; then
5388 # Extract the first word of "strip", so it can be a program name with args.
5389 set dummy strip; ac_word=$2
5390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5391 $as_echo_n "checking for $ac_word... " >&6; }
5392 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5393 $as_echo_n "(cached) " >&6
5395 if test -n "$ac_ct_STRIP"; then
5396 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5398 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5402 test -z "$as_dir" && as_dir=.
5403 for ac_exec_ext in '' $ac_executable_extensions; do
5404 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5405 ac_cv_prog_ac_ct_STRIP="strip"
5406 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5415 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5416 if test -n "$ac_ct_STRIP"; then
5417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5418 $as_echo "$ac_ct_STRIP" >&6; }
5420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5421 $as_echo "no" >&6; }
5424 if test "x$ac_ct_STRIP" = x; then
5427 case $cross_compiling:$ac_tool_warned in
5429 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5430 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5431 ac_tool_warned=yes ;;
5436 STRIP="$ac_cv_prog_STRIP"
5439 test -z "$STRIP" && STRIP=:
5446 if test -n "$ac_tool_prefix"; then
5447 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5448 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5450 $as_echo_n "checking for $ac_word... " >&6; }
5451 if ${ac_cv_prog_RANLIB+:} false; then :
5452 $as_echo_n "(cached) " >&6
5454 if test -n "$RANLIB"; then
5455 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5457 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5461 test -z "$as_dir" && as_dir=.
5462 for ac_exec_ext in '' $ac_executable_extensions; do
5463 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5464 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5465 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5474 RANLIB=$ac_cv_prog_RANLIB
5475 if test -n "$RANLIB"; then
5476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5477 $as_echo "$RANLIB" >&6; }
5479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5480 $as_echo "no" >&6; }
5485 if test -z "$ac_cv_prog_RANLIB"; then
5486 ac_ct_RANLIB=$RANLIB
5487 # Extract the first word of "ranlib", so it can be a program name with args.
5488 set dummy ranlib; ac_word=$2
5489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5490 $as_echo_n "checking for $ac_word... " >&6; }
5491 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5492 $as_echo_n "(cached) " >&6
5494 if test -n "$ac_ct_RANLIB"; then
5495 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5497 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5501 test -z "$as_dir" && as_dir=.
5502 for ac_exec_ext in '' $ac_executable_extensions; do
5503 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5504 ac_cv_prog_ac_ct_RANLIB="ranlib"
5505 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5514 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5515 if test -n "$ac_ct_RANLIB"; then
5516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5517 $as_echo "$ac_ct_RANLIB" >&6; }
5519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5520 $as_echo "no" >&6; }
5523 if test "x$ac_ct_RANLIB" = x; then
5526 case $cross_compiling:$ac_tool_warned in
5528 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5529 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5530 ac_tool_warned=yes ;;
5532 RANLIB=$ac_ct_RANLIB
5535 RANLIB="$ac_cv_prog_RANLIB"
5538 test -z "$RANLIB" && RANLIB=:
5545 # Determine commands to create old-style static archives.
5546 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5547 old_postinstall_cmds='chmod 644 $oldlib'
5548 old_postuninstall_cmds=
5550 if test -n "$RANLIB"; then
5553 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
5556 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
5559 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
5564 lock_old_archive_extraction=yes ;;
5566 lock_old_archive_extraction=no ;;
5607 # If no C compiler was specified, use CC.
5610 # If no C compiler flags were specified, use CFLAGS.
5611 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5613 # Allow CC to be a program name with arguments.
5617 # Check for command to grab the raw symbol name followed by C symbol from nm.
5618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5619 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5620 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
5621 $as_echo_n "(cached) " >&6
5624 # These are sane defaults that work on at least a few old systems.
5625 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5627 # Character class describing NM global symbol codes.
5628 symcode='[BCDEGRST]'
5630 # Regexp to match symbols that can be accessed directly from C.
5631 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5633 # Define system-specific variables.
5638 cygwin* | mingw* | pw32* | cegcc*)
5639 symcode='[ABCDGISTW]'
5642 if test "$host_cpu" = ia64; then
5643 symcode='[ABCDEGRST]'
5647 symcode='[BCDEGRST]'
5650 symcode='[BCDEGQRST]'
5661 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5669 # If we're using GNU nm, then use its standard symbol codes.
5670 case `$NM -V 2>&1` in
5671 *GNU* | *'with BFD'*)
5672 symcode='[ABCDGIRSTW]' ;;
5675 # Transform an extracted symbol line into a proper C declaration.
5676 # Some systems (esp. on ia64) link data and code symbols differently,
5677 # so use this general approach.
5678 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5680 # Transform an extracted symbol line into symbol name and symbol address
5681 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
5682 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'"
5684 # Handle CRLF in mingw tool chain
5688 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5692 # Try without a prefix underscore, then with it.
5693 for ac_symprfx in "" "_"; do
5695 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5696 symxfrm="\\1 $ac_symprfx\\2 \\2"
5698 # Write the raw and C identifiers.
5699 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5700 # Fake it for dumpbin and say T for any non-static function
5701 # and D for any global variable.
5702 # Also find C++ and __fastcall symbols from MSVC++,
5703 # which start with @ or ?.
5704 lt_cv_sys_global_symbol_pipe="$AWK '"\
5705 " {last_section=section; section=\$ 3};"\
5706 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
5707 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5708 " \$ 0!~/External *\|/{next};"\
5709 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5710 " {if(hide[section]) next};"\
5711 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5712 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5713 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
5714 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5715 " ' prfx=^$ac_symprfx"
5717 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5719 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
5721 # Check to see that the pipe works correctly.
5725 cat > conftest.$ac_ext <<_LT_EOF
5730 void nm_test_func(void);
5731 void nm_test_func(void){}
5735 int main(){nm_test_var='a';nm_test_func();return(0);}
5738 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5739 (eval $ac_compile) 2>&5
5741 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5742 test $ac_status = 0; }; then
5743 # Now try to grab the symbols.
5745 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
5746 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
5748 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5749 test $ac_status = 0; } && test -s "$nlist"; then
5750 # Try sorting and uniquifying the output.
5751 if sort "$nlist" | uniq > "$nlist"T; then
5752 mv -f "$nlist"T "$nlist"
5757 # Make sure that we snagged all the symbols we need.
5758 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5759 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5760 cat <<_LT_EOF > conftest.$ac_ext
5761 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
5762 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
5763 /* DATA imports from DLLs on WIN32 con't be const, because runtime
5764 relocations are performed -- see ld's documentation on pseudo-relocs. */
5765 # define LT_DLSYM_CONST
5766 #elif defined(__osf__)
5767 /* This system does not cope well with relocations in const data. */
5768 # define LT_DLSYM_CONST
5770 # define LT_DLSYM_CONST const
5778 # Now generate the symbol file.
5779 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5781 cat <<_LT_EOF >> conftest.$ac_ext
5783 /* The mapping between symbol names and symbols. */
5784 LT_DLSYM_CONST struct {
5788 lt__PROGRAM__LTX_preloaded_symbols[] =
5790 { "@PROGRAM@", (void *) 0 },
5792 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5793 cat <<\_LT_EOF >> conftest.$ac_ext
5797 /* This works around a problem in FreeBSD linker */
5798 #ifdef FREEBSD_WORKAROUND
5799 static const void *lt_preloaded_setup() {
5800 return lt__PROGRAM__LTX_preloaded_symbols;
5808 # Now try linking the two files.
5809 mv conftest.$ac_objext conftstm.$ac_objext
5810 lt_globsym_save_LIBS=$LIBS
5811 lt_globsym_save_CFLAGS=$CFLAGS
5812 LIBS="conftstm.$ac_objext"
5813 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5814 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
5815 (eval $ac_link) 2>&5
5817 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5818 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
5821 LIBS=$lt_globsym_save_LIBS
5822 CFLAGS=$lt_globsym_save_CFLAGS
5824 echo "cannot find nm_test_func in $nlist" >&5
5827 echo "cannot find nm_test_var in $nlist" >&5
5830 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5833 echo "$progname: failed program was:" >&5
5834 cat conftest.$ac_ext >&5
5836 rm -rf conftest* conftst*
5838 # Do not use the global_symbol_pipe unless it works.
5839 if test "$pipe_works" = yes; then
5842 lt_cv_sys_global_symbol_pipe=
5848 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5849 lt_cv_sys_global_symbol_to_cdecl=
5851 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5853 $as_echo "failed" >&6; }
5855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
5856 $as_echo "ok" >&6; }
5859 # Response file support.
5860 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5861 nm_file_list_spec='@'
5862 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
5863 nm_file_list_spec='@'
5892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
5893 $as_echo_n "checking for sysroot... " >&6; }
5895 # Check whether --with-sysroot was given.
5896 if test "${with_sysroot+set}" = set; then :
5897 withval=$with_sysroot;
5904 case ${with_sysroot} in #(
5906 if test "$GCC" = yes; then
5907 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
5911 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
5916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
5917 $as_echo "${with_sysroot}" >&6; }
5918 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
5922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
5923 $as_echo "${lt_sysroot:-no}" >&6; }
5929 # Check whether --enable-libtool-lock was given.
5930 if test "${enable_libtool_lock+set}" = set; then :
5931 enableval=$enable_libtool_lock;
5934 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5936 # Some flags need to be propagated to the compiler or linker for good
5940 # Find out which ABI we are using.
5941 echo 'int i;' > conftest.$ac_ext
5942 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5943 (eval $ac_compile) 2>&5
5945 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5946 test $ac_status = 0; }; then
5947 case `/usr/bin/file conftest.$ac_objext` in
5959 # Find out which ABI we are using.
5960 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
5961 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5962 (eval $ac_compile) 2>&5
5964 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5965 test $ac_status = 0; }; then
5966 if test "$lt_cv_prog_gnu_ld" = yes; then
5967 case `/usr/bin/file conftest.$ac_objext` in
5969 LD="${LD-ld} -melf32bsmip"
5972 LD="${LD-ld} -melf32bmipn32"
5975 LD="${LD-ld} -melf64bmip"
5979 case `/usr/bin/file conftest.$ac_objext` in
5995 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
5996 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
5997 # Find out which ABI we are using.
5998 echo 'int i;' > conftest.$ac_ext
5999 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6000 (eval $ac_compile) 2>&5
6002 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6003 test $ac_status = 0; }; then
6004 case `/usr/bin/file conftest.o` in
6007 x86_64-*kfreebsd*-gnu)
6008 LD="${LD-ld} -m elf_i386_fbsd"
6011 LD="${LD-ld} -m elf_i386"
6013 ppc64-*linux*|powerpc64-*linux*)
6014 LD="${LD-ld} -m elf32ppclinux"
6017 LD="${LD-ld} -m elf_s390"
6020 LD="${LD-ld} -m elf32_sparc"
6026 x86_64-*kfreebsd*-gnu)
6027 LD="${LD-ld} -m elf_x86_64_fbsd"
6030 LD="${LD-ld} -m elf_x86_64"
6032 ppc*-*linux*|powerpc*-*linux*)
6033 LD="${LD-ld} -m elf64ppc"
6035 s390*-*linux*|s390*-*tpf*)
6036 LD="${LD-ld} -m elf64_s390"
6039 LD="${LD-ld} -m elf64_sparc"
6049 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6050 SAVE_CFLAGS="$CFLAGS"
6051 CFLAGS="$CFLAGS -belf"
6052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6053 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6054 if ${lt_cv_cc_needs_belf+:} false; then :
6055 $as_echo_n "(cached) " >&6
6058 ac_cpp='$CPP $CPPFLAGS'
6059 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6060 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6061 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6063 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6064 /* end confdefs.h. */
6074 if ac_fn_c_try_link "$LINENO"; then :
6075 lt_cv_cc_needs_belf=yes
6077 lt_cv_cc_needs_belf=no
6079 rm -f core conftest.err conftest.$ac_objext \
6080 conftest$ac_exeext conftest.$ac_ext
6082 ac_cpp='$CPP $CPPFLAGS'
6083 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6084 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6085 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6089 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6090 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6091 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6092 CFLAGS="$SAVE_CFLAGS"
6096 # Find out which ABI we are using.
6097 echo 'int i;' > conftest.$ac_ext
6098 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6099 (eval $ac_compile) 2>&5
6101 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6102 test $ac_status = 0; }; then
6103 case `/usr/bin/file conftest.o` in
6105 case $lt_cv_prog_gnu_ld in
6109 LD="${LD-ld} -m elf_x86_64"
6112 LD="${LD-ld} -m elf64_sparc"
6115 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
6116 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6121 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6133 need_locks="$enable_libtool_lock"
6135 if test -n "$ac_tool_prefix"; then
6136 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6137 set dummy ${ac_tool_prefix}mt; ac_word=$2
6138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6139 $as_echo_n "checking for $ac_word... " >&6; }
6140 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6141 $as_echo_n "(cached) " >&6
6143 if test -n "$MANIFEST_TOOL"; then
6144 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6146 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6150 test -z "$as_dir" && as_dir=.
6151 for ac_exec_ext in '' $ac_executable_extensions; do
6152 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6153 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6154 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6163 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6164 if test -n "$MANIFEST_TOOL"; then
6165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6166 $as_echo "$MANIFEST_TOOL" >&6; }
6168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6169 $as_echo "no" >&6; }
6174 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6175 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6176 # Extract the first word of "mt", so it can be a program name with args.
6177 set dummy mt; ac_word=$2
6178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6179 $as_echo_n "checking for $ac_word... " >&6; }
6180 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6181 $as_echo_n "(cached) " >&6
6183 if test -n "$ac_ct_MANIFEST_TOOL"; then
6184 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6190 test -z "$as_dir" && as_dir=.
6191 for ac_exec_ext in '' $ac_executable_extensions; do
6192 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6193 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6194 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6203 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6204 if test -n "$ac_ct_MANIFEST_TOOL"; then
6205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6206 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6209 $as_echo "no" >&6; }
6212 if test "x$ac_ct_MANIFEST_TOOL" = x; then
6215 case $cross_compiling:$ac_tool_warned in
6217 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6218 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6219 ac_tool_warned=yes ;;
6221 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6224 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6227 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6229 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6230 if ${lt_cv_path_mainfest_tool+:} false; then :
6231 $as_echo_n "(cached) " >&6
6233 lt_cv_path_mainfest_tool=no
6234 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6235 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6236 cat conftest.err >&5
6237 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6238 lt_cv_path_mainfest_tool=yes
6242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6243 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
6244 if test "x$lt_cv_path_mainfest_tool" != xyes; then
6254 rhapsody* | darwin*)
6255 if test -n "$ac_tool_prefix"; then
6256 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6257 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6259 $as_echo_n "checking for $ac_word... " >&6; }
6260 if ${ac_cv_prog_DSYMUTIL+:} false; then :
6261 $as_echo_n "(cached) " >&6
6263 if test -n "$DSYMUTIL"; then
6264 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6266 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6270 test -z "$as_dir" && as_dir=.
6271 for ac_exec_ext in '' $ac_executable_extensions; do
6272 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6273 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6274 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6283 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6284 if test -n "$DSYMUTIL"; then
6285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6286 $as_echo "$DSYMUTIL" >&6; }
6288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6289 $as_echo "no" >&6; }
6294 if test -z "$ac_cv_prog_DSYMUTIL"; then
6295 ac_ct_DSYMUTIL=$DSYMUTIL
6296 # Extract the first word of "dsymutil", so it can be a program name with args.
6297 set dummy dsymutil; ac_word=$2
6298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6299 $as_echo_n "checking for $ac_word... " >&6; }
6300 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6301 $as_echo_n "(cached) " >&6
6303 if test -n "$ac_ct_DSYMUTIL"; then
6304 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6306 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6310 test -z "$as_dir" && as_dir=.
6311 for ac_exec_ext in '' $ac_executable_extensions; do
6312 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6313 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6314 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6323 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6324 if test -n "$ac_ct_DSYMUTIL"; then
6325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6326 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6329 $as_echo "no" >&6; }
6332 if test "x$ac_ct_DSYMUTIL" = x; then
6335 case $cross_compiling:$ac_tool_warned in
6337 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6338 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6339 ac_tool_warned=yes ;;
6341 DSYMUTIL=$ac_ct_DSYMUTIL
6344 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6347 if test -n "$ac_tool_prefix"; then
6348 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6349 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6351 $as_echo_n "checking for $ac_word... " >&6; }
6352 if ${ac_cv_prog_NMEDIT+:} false; then :
6353 $as_echo_n "(cached) " >&6
6355 if test -n "$NMEDIT"; then
6356 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6358 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6362 test -z "$as_dir" && as_dir=.
6363 for ac_exec_ext in '' $ac_executable_extensions; do
6364 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6365 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6366 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6375 NMEDIT=$ac_cv_prog_NMEDIT
6376 if test -n "$NMEDIT"; then
6377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6378 $as_echo "$NMEDIT" >&6; }
6380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6381 $as_echo "no" >&6; }
6386 if test -z "$ac_cv_prog_NMEDIT"; then
6387 ac_ct_NMEDIT=$NMEDIT
6388 # Extract the first word of "nmedit", so it can be a program name with args.
6389 set dummy nmedit; ac_word=$2
6390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6391 $as_echo_n "checking for $ac_word... " >&6; }
6392 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
6393 $as_echo_n "(cached) " >&6
6395 if test -n "$ac_ct_NMEDIT"; then
6396 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6398 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6402 test -z "$as_dir" && as_dir=.
6403 for ac_exec_ext in '' $ac_executable_extensions; do
6404 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6405 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6406 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6415 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6416 if test -n "$ac_ct_NMEDIT"; then
6417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6418 $as_echo "$ac_ct_NMEDIT" >&6; }
6420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6421 $as_echo "no" >&6; }
6424 if test "x$ac_ct_NMEDIT" = x; then
6427 case $cross_compiling:$ac_tool_warned in
6429 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6430 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6431 ac_tool_warned=yes ;;
6433 NMEDIT=$ac_ct_NMEDIT
6436 NMEDIT="$ac_cv_prog_NMEDIT"
6439 if test -n "$ac_tool_prefix"; then
6440 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6441 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6443 $as_echo_n "checking for $ac_word... " >&6; }
6444 if ${ac_cv_prog_LIPO+:} false; then :
6445 $as_echo_n "(cached) " >&6
6447 if test -n "$LIPO"; then
6448 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6450 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6454 test -z "$as_dir" && as_dir=.
6455 for ac_exec_ext in '' $ac_executable_extensions; do
6456 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6457 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6458 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6467 LIPO=$ac_cv_prog_LIPO
6468 if test -n "$LIPO"; then
6469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6470 $as_echo "$LIPO" >&6; }
6472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6473 $as_echo "no" >&6; }
6478 if test -z "$ac_cv_prog_LIPO"; then
6480 # Extract the first word of "lipo", so it can be a program name with args.
6481 set dummy lipo; ac_word=$2
6482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6483 $as_echo_n "checking for $ac_word... " >&6; }
6484 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
6485 $as_echo_n "(cached) " >&6
6487 if test -n "$ac_ct_LIPO"; then
6488 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6490 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6494 test -z "$as_dir" && as_dir=.
6495 for ac_exec_ext in '' $ac_executable_extensions; do
6496 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6497 ac_cv_prog_ac_ct_LIPO="lipo"
6498 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6507 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6508 if test -n "$ac_ct_LIPO"; then
6509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6510 $as_echo "$ac_ct_LIPO" >&6; }
6512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6513 $as_echo "no" >&6; }
6516 if test "x$ac_ct_LIPO" = x; then
6519 case $cross_compiling:$ac_tool_warned in
6521 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6522 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6523 ac_tool_warned=yes ;;
6528 LIPO="$ac_cv_prog_LIPO"
6531 if test -n "$ac_tool_prefix"; then
6532 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6533 set dummy ${ac_tool_prefix}otool; ac_word=$2
6534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6535 $as_echo_n "checking for $ac_word... " >&6; }
6536 if ${ac_cv_prog_OTOOL+:} false; then :
6537 $as_echo_n "(cached) " >&6
6539 if test -n "$OTOOL"; then
6540 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6542 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6546 test -z "$as_dir" && as_dir=.
6547 for ac_exec_ext in '' $ac_executable_extensions; do
6548 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6549 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6550 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6559 OTOOL=$ac_cv_prog_OTOOL
6560 if test -n "$OTOOL"; then
6561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6562 $as_echo "$OTOOL" >&6; }
6564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6565 $as_echo "no" >&6; }
6570 if test -z "$ac_cv_prog_OTOOL"; then
6572 # Extract the first word of "otool", so it can be a program name with args.
6573 set dummy otool; ac_word=$2
6574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6575 $as_echo_n "checking for $ac_word... " >&6; }
6576 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
6577 $as_echo_n "(cached) " >&6
6579 if test -n "$ac_ct_OTOOL"; then
6580 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6582 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6586 test -z "$as_dir" && as_dir=.
6587 for ac_exec_ext in '' $ac_executable_extensions; do
6588 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6589 ac_cv_prog_ac_ct_OTOOL="otool"
6590 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6599 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6600 if test -n "$ac_ct_OTOOL"; then
6601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6602 $as_echo "$ac_ct_OTOOL" >&6; }
6604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6605 $as_echo "no" >&6; }
6608 if test "x$ac_ct_OTOOL" = x; then
6611 case $cross_compiling:$ac_tool_warned in
6613 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6614 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6615 ac_tool_warned=yes ;;
6620 OTOOL="$ac_cv_prog_OTOOL"
6623 if test -n "$ac_tool_prefix"; then
6624 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6625 set dummy ${ac_tool_prefix}otool64; ac_word=$2
6626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6627 $as_echo_n "checking for $ac_word... " >&6; }
6628 if ${ac_cv_prog_OTOOL64+:} false; then :
6629 $as_echo_n "(cached) " >&6
6631 if test -n "$OTOOL64"; then
6632 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6634 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6638 test -z "$as_dir" && as_dir=.
6639 for ac_exec_ext in '' $ac_executable_extensions; do
6640 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6641 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6642 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6651 OTOOL64=$ac_cv_prog_OTOOL64
6652 if test -n "$OTOOL64"; then
6653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6654 $as_echo "$OTOOL64" >&6; }
6656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6657 $as_echo "no" >&6; }
6662 if test -z "$ac_cv_prog_OTOOL64"; then
6663 ac_ct_OTOOL64=$OTOOL64
6664 # Extract the first word of "otool64", so it can be a program name with args.
6665 set dummy otool64; ac_word=$2
6666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6667 $as_echo_n "checking for $ac_word... " >&6; }
6668 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
6669 $as_echo_n "(cached) " >&6
6671 if test -n "$ac_ct_OTOOL64"; then
6672 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6674 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6678 test -z "$as_dir" && as_dir=.
6679 for ac_exec_ext in '' $ac_executable_extensions; do
6680 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6681 ac_cv_prog_ac_ct_OTOOL64="otool64"
6682 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6691 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6692 if test -n "$ac_ct_OTOOL64"; then
6693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
6694 $as_echo "$ac_ct_OTOOL64" >&6; }
6696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6697 $as_echo "no" >&6; }
6700 if test "x$ac_ct_OTOOL64" = x; then
6703 case $cross_compiling:$ac_tool_warned in
6705 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6706 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6707 ac_tool_warned=yes ;;
6709 OTOOL64=$ac_ct_OTOOL64
6712 OTOOL64="$ac_cv_prog_OTOOL64"
6741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
6742 $as_echo_n "checking for -single_module linker flag... " >&6; }
6743 if ${lt_cv_apple_cc_single_mod+:} false; then :
6744 $as_echo_n "(cached) " >&6
6746 lt_cv_apple_cc_single_mod=no
6747 if test -z "${LT_MULTI_MODULE}"; then
6748 # By default we will add the -single_module flag. You can override
6749 # by either setting the environment variable LT_MULTI_MODULE
6750 # non-empty at configure time, or by adding -multi_module to the
6752 rm -rf libconftest.dylib*
6753 echo "int foo(void){return 1;}" > conftest.c
6754 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6755 -dynamiclib -Wl,-single_module conftest.c" >&5
6756 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6757 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6759 # If there is a non-empty error log, and "single_module"
6760 # appears in it, assume the flag caused a linker warning
6761 if test -s conftest.err && $GREP single_module conftest.err; then
6762 cat conftest.err >&5
6763 # Otherwise, if the output was created with a 0 exit code from
6764 # the compiler, it worked.
6765 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
6766 lt_cv_apple_cc_single_mod=yes
6768 cat conftest.err >&5
6770 rm -rf libconftest.dylib*
6774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
6775 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
6778 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
6779 if ${lt_cv_ld_exported_symbols_list+:} false; then :
6780 $as_echo_n "(cached) " >&6
6782 lt_cv_ld_exported_symbols_list=no
6783 save_LDFLAGS=$LDFLAGS
6784 echo "_main" > conftest.sym
6785 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6787 /* end confdefs.h. */
6797 if ac_fn_c_try_link "$LINENO"; then :
6798 lt_cv_ld_exported_symbols_list=yes
6800 lt_cv_ld_exported_symbols_list=no
6802 rm -f core conftest.err conftest.$ac_objext \
6803 conftest$ac_exeext conftest.$ac_ext
6804 LDFLAGS="$save_LDFLAGS"
6807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
6808 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
6810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
6811 $as_echo_n "checking for -force_load linker flag... " >&6; }
6812 if ${lt_cv_ld_force_load+:} false; then :
6813 $as_echo_n "(cached) " >&6
6815 lt_cv_ld_force_load=no
6816 cat > conftest.c << _LT_EOF
6817 int forced_loaded() { return 2;}
6819 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
6820 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
6821 echo "$AR cru libconftest.a conftest.o" >&5
6822 $AR cru libconftest.a conftest.o 2>&5
6823 echo "$RANLIB libconftest.a" >&5
6824 $RANLIB libconftest.a 2>&5
6825 cat > conftest.c << _LT_EOF
6826 int main() { return 0;}
6828 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
6829 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
6831 if test -s conftest.err && $GREP force_load conftest.err; then
6832 cat conftest.err >&5
6833 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
6834 lt_cv_ld_force_load=yes
6836 cat conftest.err >&5
6838 rm -f conftest.err libconftest.a conftest conftest.c
6839 rm -rf conftest.dSYM
6842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
6843 $as_echo "$lt_cv_ld_force_load" >&6; }
6845 rhapsody* | darwin1.[012])
6846 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6848 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6849 darwin*) # darwin 5.x on
6850 # if running on 10.5 or later, the deployment target defaults
6851 # to the OS version, if on x86, and 10.4, the deployment
6852 # target defaults to 10.4. Don't you love it?
6853 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6854 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6855 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6857 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6859 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6863 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
6864 _lt_dar_single_mod='$single_module'
6866 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
6867 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
6869 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
6871 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
6872 _lt_dsymutil='~$DSYMUTIL $lib || :'
6880 ac_cpp='$CPP $CPPFLAGS'
6881 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6882 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6883 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
6885 $as_echo_n "checking how to run the C preprocessor... " >&6; }
6886 # On Suns, sometimes $CPP names a directory.
6887 if test -n "$CPP" && test -d "$CPP"; then
6890 if test -z "$CPP"; then
6891 if ${ac_cv_prog_CPP+:} false; then :
6892 $as_echo_n "(cached) " >&6
6894 # Double quotes because CPP needs to be expanded
6895 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6898 for ac_c_preproc_warn_flag in '' yes
6900 # Use a header file that comes with gcc, so configuring glibc
6901 # with a fresh cross-compiler works.
6902 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6903 # <limits.h> exists even on freestanding compilers.
6904 # On the NeXT, cc -E runs the code through the compiler's parser,
6905 # not just through cpp. "Syntax error" is here to catch this case.
6906 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6907 /* end confdefs.h. */
6909 # include <limits.h>
6911 # include <assert.h>
6915 if ac_fn_c_try_cpp "$LINENO"; then :
6918 # Broken: fails on valid input.
6921 rm -f conftest.err conftest.i conftest.$ac_ext
6923 # OK, works on sane cases. Now check whether nonexistent headers
6924 # can be detected and how.
6925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6926 /* end confdefs.h. */
6927 #include <ac_nonexistent.h>
6929 if ac_fn_c_try_cpp "$LINENO"; then :
6930 # Broken: success on invalid input.
6933 # Passes both tests.
6937 rm -f conftest.err conftest.i conftest.$ac_ext
6940 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6941 rm -f conftest.i conftest.err conftest.$ac_ext
6942 if $ac_preproc_ok; then :
6954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
6955 $as_echo "$CPP" >&6; }
6957 for ac_c_preproc_warn_flag in '' yes
6959 # Use a header file that comes with gcc, so configuring glibc
6960 # with a fresh cross-compiler works.
6961 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6962 # <limits.h> exists even on freestanding compilers.
6963 # On the NeXT, cc -E runs the code through the compiler's parser,
6964 # not just through cpp. "Syntax error" is here to catch this case.
6965 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6966 /* end confdefs.h. */
6968 # include <limits.h>
6970 # include <assert.h>
6974 if ac_fn_c_try_cpp "$LINENO"; then :
6977 # Broken: fails on valid input.
6980 rm -f conftest.err conftest.i conftest.$ac_ext
6982 # OK, works on sane cases. Now check whether nonexistent headers
6983 # can be detected and how.
6984 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6985 /* end confdefs.h. */
6986 #include <ac_nonexistent.h>
6988 if ac_fn_c_try_cpp "$LINENO"; then :
6989 # Broken: success on invalid input.
6992 # Passes both tests.
6996 rm -f conftest.err conftest.i conftest.$ac_ext
6999 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7000 rm -f conftest.i conftest.err conftest.$ac_ext
7001 if $ac_preproc_ok; then :
7004 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7005 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7006 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7007 See \`config.log' for more details" "$LINENO" 5; }
7011 ac_cpp='$CPP $CPPFLAGS'
7012 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7013 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7014 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7018 $as_echo_n "checking for ANSI C header files... " >&6; }
7019 if ${ac_cv_header_stdc+:} false; then :
7020 $as_echo_n "(cached) " >&6
7022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7023 /* end confdefs.h. */
7037 if ac_fn_c_try_compile "$LINENO"; then :
7038 ac_cv_header_stdc=yes
7040 ac_cv_header_stdc=no
7042 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7044 if test $ac_cv_header_stdc = yes; then
7045 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7047 /* end confdefs.h. */
7051 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7052 $EGREP "memchr" >/dev/null 2>&1; then :
7055 ac_cv_header_stdc=no
7061 if test $ac_cv_header_stdc = yes; then
7062 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7063 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7064 /* end confdefs.h. */
7068 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7069 $EGREP "free" >/dev/null 2>&1; then :
7072 ac_cv_header_stdc=no
7078 if test $ac_cv_header_stdc = yes; then
7079 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7080 if test "$cross_compiling" = yes; then :
7083 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7084 /* end confdefs.h. */
7087 #if ((' ' & 0x0FF) == 0x020)
7088 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7089 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7091 # define ISLOWER(c) \
7092 (('a' <= (c) && (c) <= 'i') \
7093 || ('j' <= (c) && (c) <= 'r') \
7094 || ('s' <= (c) && (c) <= 'z'))
7095 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7098 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7103 for (i = 0; i < 256; i++)
7104 if (XOR (islower (i), ISLOWER (i))
7105 || toupper (i) != TOUPPER (i))
7110 if ac_fn_c_try_run "$LINENO"; then :
7113 ac_cv_header_stdc=no
7115 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7116 conftest.$ac_objext conftest.beam conftest.$ac_ext
7121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7122 $as_echo "$ac_cv_header_stdc" >&6; }
7123 if test $ac_cv_header_stdc = yes; then
7125 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7129 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7130 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7131 inttypes.h stdint.h unistd.h
7133 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7134 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7136 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7137 cat >>confdefs.h <<_ACEOF
7138 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7146 for ac_header in dlfcn.h
7148 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7150 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7151 cat >>confdefs.h <<_ACEOF
7152 #define HAVE_DLFCN_H 1
7173 # Check whether --enable-shared was given.
7174 if test "${enable_shared+set}" = set; then :
7175 enableval=$enable_shared; p=${PACKAGE-default}
7177 yes) enable_shared=yes ;;
7178 no) enable_shared=no ;;
7181 # Look at the argument we got. We use all the common list separators.
7182 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7183 for pkg in $enableval; do
7185 if test "X$pkg" = "X$p"; then
7204 # Check whether --enable-static was given.
7205 if test "${enable_static+set}" = set; then :
7206 enableval=$enable_static; p=${PACKAGE-default}
7208 yes) enable_static=yes ;;
7209 no) enable_static=no ;;
7212 # Look at the argument we got. We use all the common list separators.
7213 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7214 for pkg in $enableval; do
7216 if test "X$pkg" = "X$p"; then
7236 # Check whether --with-pic was given.
7237 if test "${with_pic+set}" = set; then :
7238 withval=$with_pic; lt_p=${PACKAGE-default}
7240 yes|no) pic_mode=$withval ;;
7243 # Look at the argument we got. We use all the common list separators.
7244 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7245 for lt_pkg in $withval; do
7247 if test "X$lt_pkg" = "X$lt_p"; then
7259 test -z "$pic_mode" && pic_mode=default
7267 # Check whether --enable-fast-install was given.
7268 if test "${enable_fast_install+set}" = set; then :
7269 enableval=$enable_fast_install; p=${PACKAGE-default}
7271 yes) enable_fast_install=yes ;;
7272 no) enable_fast_install=no ;;
7274 enable_fast_install=no
7275 # Look at the argument we got. We use all the common list separators.
7276 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7277 for pkg in $enableval; do
7279 if test "X$pkg" = "X$p"; then
7280 enable_fast_install=yes
7287 enable_fast_install=yes
7300 # This can be used to rebuild libtool when needed
7301 LIBTOOL_DEPS="$ltmain"
7303 # Always use our own libtool.
7304 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7335 test -z "$LN_S" && LN_S="ln -s"
7350 if test -n "${ZSH_VERSION+set}" ; then
7351 setopt NO_GLOB_SUBST
7354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7355 $as_echo_n "checking for objdir... " >&6; }
7356 if ${lt_cv_objdir+:} false; then :
7357 $as_echo_n "(cached) " >&6
7359 rm -f .libs 2>/dev/null
7360 mkdir .libs 2>/dev/null
7361 if test -d .libs; then
7364 # MS-DOS does not allow filenames that begin with a dot.
7367 rmdir .libs 2>/dev/null
7369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7370 $as_echo "$lt_cv_objdir" >&6; }
7371 objdir=$lt_cv_objdir
7377 cat >>confdefs.h <<_ACEOF
7378 #define LT_OBJDIR "$lt_cv_objdir/"
7386 # AIX sometimes has problems with the GCC collect2 program. For some
7387 # reason, if we set the COLLECT_NAMES environment variable, the problems
7388 # vanish in a puff of smoke.
7389 if test "X${COLLECT_NAMES+set}" != Xset; then
7391 export COLLECT_NAMES
7398 can_build_shared=yes
7400 # All known linkers require a `.a' archive for static linking (except MSVC,
7401 # which needs '.lib').
7404 with_gnu_ld="$lt_cv_prog_gnu_ld"
7407 old_CFLAGS="$CFLAGS"
7409 # Set sane defaults for various variables
7410 test -z "$CC" && CC=cc
7411 test -z "$LTCC" && LTCC=$CC
7412 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7413 test -z "$LD" && LD=ld
7414 test -z "$ac_objext" && ac_objext=o
7416 for cc_temp in $compiler""; do
7418 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7419 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7424 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7427 # Only perform the check for file, if the check method requires it
7428 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7429 case $deplibs_check_method in
7431 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7433 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7434 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7435 $as_echo_n "(cached) " >&6
7439 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7442 lt_save_MAGIC_CMD="$MAGIC_CMD"
7443 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7444 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7445 for ac_dir in $ac_dummy; do
7447 test -z "$ac_dir" && ac_dir=.
7448 if test -f $ac_dir/${ac_tool_prefix}file; then
7449 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7450 if test -n "$file_magic_test_file"; then
7451 case $deplibs_check_method in
7453 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7454 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7455 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7456 $EGREP "$file_magic_regex" > /dev/null; then
7461 *** Warning: the command libtool uses to detect shared libraries,
7462 *** $file_magic_cmd, produces output that libtool cannot recognize.
7463 *** The result is that libtool may fail to recognize shared libraries
7464 *** as such. This will affect the creation of libtool libraries that
7465 *** depend on shared libraries, but programs linked with such libtool
7466 *** libraries will work regardless of this problem. Nevertheless, you
7467 *** may want to report the problem to your system manager and/or to
7468 *** bug-libtool@gnu.org
7478 MAGIC_CMD="$lt_save_MAGIC_CMD"
7483 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7484 if test -n "$MAGIC_CMD"; then
7485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7486 $as_echo "$MAGIC_CMD" >&6; }
7488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7489 $as_echo "no" >&6; }
7496 if test -z "$lt_cv_path_MAGIC_CMD"; then
7497 if test -n "$ac_tool_prefix"; then
7498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7499 $as_echo_n "checking for file... " >&6; }
7500 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7501 $as_echo_n "(cached) " >&6
7505 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7508 lt_save_MAGIC_CMD="$MAGIC_CMD"
7509 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7510 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7511 for ac_dir in $ac_dummy; do
7513 test -z "$ac_dir" && ac_dir=.
7514 if test -f $ac_dir/file; then
7515 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7516 if test -n "$file_magic_test_file"; then
7517 case $deplibs_check_method in
7519 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7520 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7521 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7522 $EGREP "$file_magic_regex" > /dev/null; then
7527 *** Warning: the command libtool uses to detect shared libraries,
7528 *** $file_magic_cmd, produces output that libtool cannot recognize.
7529 *** The result is that libtool may fail to recognize shared libraries
7530 *** as such. This will affect the creation of libtool libraries that
7531 *** depend on shared libraries, but programs linked with such libtool
7532 *** libraries will work regardless of this problem. Nevertheless, you
7533 *** may want to report the problem to your system manager and/or to
7534 *** bug-libtool@gnu.org
7544 MAGIC_CMD="$lt_save_MAGIC_CMD"
7549 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7550 if test -n "$MAGIC_CMD"; then
7551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7552 $as_echo "$MAGIC_CMD" >&6; }
7554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7555 $as_echo "no" >&6; }
7568 # Use C for the default configuration in the libtool script
7572 ac_cpp='$CPP $CPPFLAGS'
7573 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7574 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7575 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7578 # Source file extension for C test sources.
7581 # Object file extension for compiled C test sources.
7585 # Code to be used in simple compile tests
7586 lt_simple_compile_test_code="int some_variable = 0;"
7588 # Code to be used in simple link tests
7589 lt_simple_link_test_code='int main(){return(0);}'
7597 # If no C compiler was specified, use CC.
7600 # If no C compiler flags were specified, use CFLAGS.
7601 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7603 # Allow CC to be a program name with arguments.
7606 # Save the default compiler, since it gets overwritten when the other
7607 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7608 compiler_DEFAULT=$CC
7610 # save warnings/boilerplate of simple test code
7611 ac_outfile=conftest.$ac_objext
7612 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7613 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7614 _lt_compiler_boilerplate=`cat conftest.err`
7617 ac_outfile=conftest.$ac_objext
7618 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7619 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7620 _lt_linker_boilerplate=`cat conftest.err`
7625 ## There is no encapsulation within the following macros, do not change
7626 ## the running order or otherwise move them around unless you know exactly
7627 ## what you are doing...
7628 if test -n "$compiler"; then
7630 lt_prog_compiler_no_builtin_flag=
7632 if test "$GCC" = yes; then
7633 case $cc_basename in
7635 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
7637 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
7640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7641 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7642 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
7643 $as_echo_n "(cached) " >&6
7645 lt_cv_prog_compiler_rtti_exceptions=no
7646 ac_outfile=conftest.$ac_objext
7647 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7648 lt_compiler_flag="-fno-rtti -fno-exceptions"
7649 # Insert the option either (1) after the last *FLAGS variable, or
7650 # (2) before a word containing "conftest.", or (3) at the end.
7651 # Note that $ac_compile itself does not contain backslashes and begins
7652 # with a dollar sign (not a hyphen), so the echo should work correctly.
7653 # The option is referenced via a variable to avoid confusing sed.
7654 lt_compile=`echo "$ac_compile" | $SED \
7655 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7656 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7657 -e 's:$: $lt_compiler_flag:'`
7658 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7659 (eval "$lt_compile" 2>conftest.err)
7661 cat conftest.err >&5
7662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7663 if (exit $ac_status) && test -s "$ac_outfile"; then
7664 # The compiler can only warn and ignore the option if not recognized
7665 # So say no if there are warnings other than the usual output.
7666 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
7667 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7668 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7669 lt_cv_prog_compiler_rtti_exceptions=yes
7675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7676 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7678 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7679 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7691 lt_prog_compiler_wl=
7692 lt_prog_compiler_pic=
7693 lt_prog_compiler_static=
7696 if test "$GCC" = yes; then
7697 lt_prog_compiler_wl='-Wl,'
7698 lt_prog_compiler_static='-static'
7702 # All AIX code is PIC.
7703 if test "$host_cpu" = ia64; then
7704 # AIX 5 now supports IA64 processor
7705 lt_prog_compiler_static='-Bstatic'
7712 # see comment about AmigaOS4 .so support
7713 lt_prog_compiler_pic='-fPIC'
7716 # FIXME: we need at least 68020 code to build shared libraries, but
7717 # adding the `-m68020' flag to GCC prevents building anything better,
7719 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7724 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7725 # PIC is the default for these OSes.
7728 mingw* | cygwin* | pw32* | os2* | cegcc*)
7729 # This hack is so that the source file can tell whether it is being
7730 # built for inclusion in a dll (and should export symbols for example).
7731 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7732 # (--disable-auto-import) libraries
7733 lt_prog_compiler_pic='-DDLL_EXPORT'
7736 darwin* | rhapsody*)
7737 # PIC is the default on this platform
7738 # Common symbols not allowed in MH_DYLIB files
7739 lt_prog_compiler_pic='-fno-common'
7743 # PIC is the default for Haiku.
7744 # The "-static" flag exists, but is broken.
7745 lt_prog_compiler_static=
7749 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7750 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
7751 # sets the default TLS model and affects inlining.
7757 lt_prog_compiler_pic='-fPIC'
7763 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7764 # Instead, we relocate shared libraries at runtime.
7768 # Just because we use GCC doesn't mean we suddenly get shared libraries
7769 # on systems that don't support them.
7770 lt_prog_compiler_can_build_shared=no
7775 # QNX uses GNU C++, but need to define -shared option too, otherwise
7777 lt_prog_compiler_pic='-fPIC -shared'
7781 if test -d /usr/nec; then
7782 lt_prog_compiler_pic=-Kconform_pic
7787 lt_prog_compiler_pic='-fPIC'
7791 case $cc_basename in
7792 nvcc*) # Cuda Compiler Driver 2.2
7793 lt_prog_compiler_wl='-Xlinker '
7794 if test -n "$lt_prog_compiler_pic"; then
7795 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
7800 # PORTME Check for flag to pass linker flags through the system compiler.
7803 lt_prog_compiler_wl='-Wl,'
7804 if test "$host_cpu" = ia64; then
7805 # AIX 5 now supports IA64 processor
7806 lt_prog_compiler_static='-Bstatic'
7808 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7812 mingw* | cygwin* | pw32* | os2* | cegcc*)
7813 # This hack is so that the source file can tell whether it is being
7814 # built for inclusion in a dll (and should export symbols for example).
7815 lt_prog_compiler_pic='-DDLL_EXPORT'
7818 hpux9* | hpux10* | hpux11*)
7819 lt_prog_compiler_wl='-Wl,'
7820 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7827 lt_prog_compiler_pic='+Z'
7830 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7831 lt_prog_compiler_static='${wl}-a ${wl}archive'
7834 irix5* | irix6* | nonstopux*)
7835 lt_prog_compiler_wl='-Wl,'
7836 # PIC (with -KPIC) is the default.
7837 lt_prog_compiler_static='-non_shared'
7840 linux* | k*bsd*-gnu | kopensolaris*-gnu)
7841 case $cc_basename in
7842 # old Intel for x86_64 which still supported -KPIC.
7844 lt_prog_compiler_wl='-Wl,'
7845 lt_prog_compiler_pic='-KPIC'
7846 lt_prog_compiler_static='-static'
7848 # icc used to be incompatible with GCC.
7849 # ICC 10 doesn't accept -KPIC any more.
7851 lt_prog_compiler_wl='-Wl,'
7852 lt_prog_compiler_pic='-fPIC'
7853 lt_prog_compiler_static='-static'
7855 # Lahey Fortran 8.1.
7857 lt_prog_compiler_wl='-Wl,'
7858 lt_prog_compiler_pic='--shared'
7859 lt_prog_compiler_static='--static'
7862 # NAG Fortran compiler
7863 lt_prog_compiler_wl='-Wl,-Wl,,'
7864 lt_prog_compiler_pic='-PIC'
7865 lt_prog_compiler_static='-Bstatic'
7867 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
7868 # Portland Group compilers (*not* the Pentium gcc compiler,
7869 # which looks to be a dead project)
7870 lt_prog_compiler_wl='-Wl,'
7871 lt_prog_compiler_pic='-fpic'
7872 lt_prog_compiler_static='-Bstatic'
7875 lt_prog_compiler_wl='-Wl,'
7876 # All Alpha code is PIC.
7877 lt_prog_compiler_static='-non_shared'
7879 xl* | bgxl* | bgf* | mpixl*)
7880 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
7881 lt_prog_compiler_wl='-Wl,'
7882 lt_prog_compiler_pic='-qpic'
7883 lt_prog_compiler_static='-qstaticlink'
7886 case `$CC -V 2>&1 | sed 5q` in
7887 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
7888 # Sun Fortran 8.3 passes all unrecognized flags to the linker
7889 lt_prog_compiler_pic='-KPIC'
7890 lt_prog_compiler_static='-Bstatic'
7891 lt_prog_compiler_wl=''
7893 *Sun\ F* | *Sun*Fortran*)
7894 lt_prog_compiler_pic='-KPIC'
7895 lt_prog_compiler_static='-Bstatic'
7896 lt_prog_compiler_wl='-Qoption ld '
7900 lt_prog_compiler_pic='-KPIC'
7901 lt_prog_compiler_static='-Bstatic'
7902 lt_prog_compiler_wl='-Wl,'
7904 *Intel*\ [CF]*Compiler*)
7905 lt_prog_compiler_wl='-Wl,'
7906 lt_prog_compiler_pic='-fPIC'
7907 lt_prog_compiler_static='-static'
7910 lt_prog_compiler_wl='-Wl,'
7911 lt_prog_compiler_pic='-fpic'
7912 lt_prog_compiler_static='-Bstatic'
7920 lt_prog_compiler_pic='-KPIC'
7921 lt_prog_compiler_static='-Bstatic'
7925 # QNX uses GNU C++, but need to define -shared option too, otherwise
7927 lt_prog_compiler_pic='-fPIC -shared'
7930 osf3* | osf4* | osf5*)
7931 lt_prog_compiler_wl='-Wl,'
7932 # All OSF/1 code is PIC.
7933 lt_prog_compiler_static='-non_shared'
7937 lt_prog_compiler_static='-non_shared'
7941 lt_prog_compiler_pic='-KPIC'
7942 lt_prog_compiler_static='-Bstatic'
7943 case $cc_basename in
7944 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
7945 lt_prog_compiler_wl='-Qoption ld ';;
7947 lt_prog_compiler_wl='-Wl,';;
7952 lt_prog_compiler_wl='-Qoption ld '
7953 lt_prog_compiler_pic='-PIC'
7954 lt_prog_compiler_static='-Bstatic'
7957 sysv4 | sysv4.2uw2* | sysv4.3*)
7958 lt_prog_compiler_wl='-Wl,'
7959 lt_prog_compiler_pic='-KPIC'
7960 lt_prog_compiler_static='-Bstatic'
7964 if test -d /usr/nec ;then
7965 lt_prog_compiler_pic='-Kconform_pic'
7966 lt_prog_compiler_static='-Bstatic'
7970 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7971 lt_prog_compiler_wl='-Wl,'
7972 lt_prog_compiler_pic='-KPIC'
7973 lt_prog_compiler_static='-Bstatic'
7977 lt_prog_compiler_wl='-Wl,'
7978 lt_prog_compiler_can_build_shared=no
7982 lt_prog_compiler_pic='-pic'
7983 lt_prog_compiler_static='-Bstatic'
7987 lt_prog_compiler_can_build_shared=no
7993 # For platforms which do not support PIC, -DPIC is meaningless:
7995 lt_prog_compiler_pic=
7998 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8003 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8004 if ${lt_cv_prog_compiler_pic+:} false; then :
8005 $as_echo_n "(cached) " >&6
8007 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8010 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8011 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8014 # Check to make sure the PIC flag actually works.
8016 if test -n "$lt_prog_compiler_pic"; then
8017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8018 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8019 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8020 $as_echo_n "(cached) " >&6
8022 lt_cv_prog_compiler_pic_works=no
8023 ac_outfile=conftest.$ac_objext
8024 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8025 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8026 # Insert the option either (1) after the last *FLAGS variable, or
8027 # (2) before a word containing "conftest.", or (3) at the end.
8028 # Note that $ac_compile itself does not contain backslashes and begins
8029 # with a dollar sign (not a hyphen), so the echo should work correctly.
8030 # The option is referenced via a variable to avoid confusing sed.
8031 lt_compile=`echo "$ac_compile" | $SED \
8032 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8033 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8034 -e 's:$: $lt_compiler_flag:'`
8035 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8036 (eval "$lt_compile" 2>conftest.err)
8038 cat conftest.err >&5
8039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8040 if (exit $ac_status) && test -s "$ac_outfile"; then
8041 # The compiler can only warn and ignore the option if not recognized
8042 # So say no if there are warnings other than the usual output.
8043 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8044 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8045 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8046 lt_cv_prog_compiler_pic_works=yes
8052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8053 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8055 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8056 case $lt_prog_compiler_pic in
8058 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8061 lt_prog_compiler_pic=
8062 lt_prog_compiler_can_build_shared=no
8078 # Check to make sure the static flag actually works.
8080 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8082 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8083 if ${lt_cv_prog_compiler_static_works+:} false; then :
8084 $as_echo_n "(cached) " >&6
8086 lt_cv_prog_compiler_static_works=no
8087 save_LDFLAGS="$LDFLAGS"
8088 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8089 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8090 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8091 # The linker can only warn and ignore the option if not recognized
8092 # So say no if there are warnings
8093 if test -s conftest.err; then
8094 # Append any errors to the config.log.
8095 cat conftest.err 1>&5
8096 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8097 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8098 if diff conftest.exp conftest.er2 >/dev/null; then
8099 lt_cv_prog_compiler_static_works=yes
8102 lt_cv_prog_compiler_static_works=yes
8106 LDFLAGS="$save_LDFLAGS"
8109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8110 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8112 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8115 lt_prog_compiler_static=
8124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8125 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8126 if ${lt_cv_prog_compiler_c_o+:} false; then :
8127 $as_echo_n "(cached) " >&6
8129 lt_cv_prog_compiler_c_o=no
8130 $RM -r conftest 2>/dev/null
8134 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8136 lt_compiler_flag="-o out/conftest2.$ac_objext"
8137 # Insert the option either (1) after the last *FLAGS variable, or
8138 # (2) before a word containing "conftest.", or (3) at the end.
8139 # Note that $ac_compile itself does not contain backslashes and begins
8140 # with a dollar sign (not a hyphen), so the echo should work correctly.
8141 lt_compile=`echo "$ac_compile" | $SED \
8142 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8143 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8144 -e 's:$: $lt_compiler_flag:'`
8145 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8146 (eval "$lt_compile" 2>out/conftest.err)
8148 cat out/conftest.err >&5
8149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8150 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8152 # The compiler can only warn and ignore the option if not recognized
8153 # So say no if there are warnings
8154 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8155 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8156 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8157 lt_cv_prog_compiler_c_o=yes
8162 # SGI C++ compiler will create directory out/ii_files/ for
8163 # template instantiation
8164 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8165 $RM out/* && rmdir out
8171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8172 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8180 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8181 if ${lt_cv_prog_compiler_c_o+:} false; then :
8182 $as_echo_n "(cached) " >&6
8184 lt_cv_prog_compiler_c_o=no
8185 $RM -r conftest 2>/dev/null
8189 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8191 lt_compiler_flag="-o out/conftest2.$ac_objext"
8192 # Insert the option either (1) after the last *FLAGS variable, or
8193 # (2) before a word containing "conftest.", or (3) at the end.
8194 # Note that $ac_compile itself does not contain backslashes and begins
8195 # with a dollar sign (not a hyphen), so the echo should work correctly.
8196 lt_compile=`echo "$ac_compile" | $SED \
8197 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8198 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8199 -e 's:$: $lt_compiler_flag:'`
8200 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8201 (eval "$lt_compile" 2>out/conftest.err)
8203 cat out/conftest.err >&5
8204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8205 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8207 # The compiler can only warn and ignore the option if not recognized
8208 # So say no if there are warnings
8209 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8210 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8211 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8212 lt_cv_prog_compiler_c_o=yes
8217 # SGI C++ compiler will create directory out/ii_files/ for
8218 # template instantiation
8219 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8220 $RM out/* && rmdir out
8226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8227 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8232 hard_links="nottested"
8233 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8234 # do not overwrite the value of need_locks provided by the user
8235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8236 $as_echo_n "checking if we can lock with hard links... " >&6; }
8239 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8241 ln conftest.a conftest.b 2>&5 || hard_links=no
8242 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8244 $as_echo "$hard_links" >&6; }
8245 if test "$hard_links" = no; then
8246 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8247 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8260 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8263 allow_undefined_flag=
8264 always_export_symbols=no
8266 archive_expsym_cmds=
8267 compiler_needs_object=no
8268 enable_shared_with_static_runtimes=no
8269 export_dynamic_flag_spec=
8270 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8271 hardcode_automatic=no
8273 hardcode_direct_absolute=no
8274 hardcode_libdir_flag_spec=
8275 hardcode_libdir_separator=
8277 hardcode_shlibpath_var=unsupported
8279 link_all_deplibs=unknown
8282 old_archive_from_new_cmds=
8283 old_archive_from_expsyms_cmds=
8284 thread_safe_flag_spec=
8285 whole_archive_flag_spec=
8286 # include_expsyms should be a list of space-separated symbols to be *always*
8287 # included in the symbol list
8289 # exclude_expsyms can be an extended regexp of symbols to exclude
8290 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8291 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8292 # as well as any symbol that contains `d'.
8293 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8294 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8295 # platforms (ab)use it in PIC code, but their linkers get confused if
8296 # the symbol is explicitly referenced. Since portable code cannot
8297 # rely on this symbol name, it's probably fine to never include it in
8298 # preloaded symbol tables.
8299 # Exclude shared library initialization/finalization symbols.
8300 extract_expsyms_cmds=
8303 cygwin* | mingw* | pw32* | cegcc*)
8304 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8305 # When not using gcc, we currently assume that we are using
8306 # Microsoft Visual C++.
8307 if test "$GCC" != yes; then
8312 # we just hope/assume this is gcc and not c89 (= MSVC++)
8318 linux* | k*bsd*-gnu | gnu*)
8325 # On some targets, GNU ld is compatible enough with the native linker
8326 # that we're better off using the native interface for both.
8327 lt_use_gnu_ld_interface=no
8328 if test "$with_gnu_ld" = yes; then
8331 # The AIX port of GNU ld has always aspired to compatibility
8332 # with the native linker. However, as the warning in the GNU ld
8333 # block says, versions before 2.19.5* couldn't really create working
8334 # shared libraries, regardless of the interface used.
8335 case `$LD -v 2>&1` in
8336 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8337 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8338 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8340 lt_use_gnu_ld_interface=yes
8345 lt_use_gnu_ld_interface=yes
8350 if test "$lt_use_gnu_ld_interface" = yes; then
8351 # If archive_cmds runs LD, not CC, wlarc should be empty
8354 # Set some defaults for GNU ld with shared library support. These
8355 # are reset later if shared libraries are not supported. Putting them
8356 # here allows them to be overridden if necessary.
8357 runpath_var=LD_RUN_PATH
8358 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8359 export_dynamic_flag_spec='${wl}--export-dynamic'
8360 # ancient GNU ld didn't support --whole-archive et. al.
8361 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8362 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8364 whole_archive_flag_spec=
8366 supports_anon_versioning=no
8367 case `$LD -v 2>&1` in
8368 *GNU\ gold*) supports_anon_versioning=yes ;;
8369 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8370 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8371 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8372 *\ 2.11.*) ;; # other 2.11 versions
8373 *) supports_anon_versioning=yes ;;
8376 # See if GNU ld supports shared libraries.
8379 # On AIX/PPC, the GNU linker is very broken
8380 if test "$host_cpu" != ia64; then
8384 *** Warning: the GNU linker, at least up to release 2.19, is reported
8385 *** to be unable to reliably create shared libraries on AIX.
8386 *** Therefore, libtool is disabling shared libraries support. If you
8387 *** really care for shared libraries, you may want to install binutils
8388 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8389 *** You will then need to restart the configuration process.
8398 # see comment about AmigaOS4 .so support
8399 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8400 archive_expsym_cmds=''
8403 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)'
8404 hardcode_libdir_flag_spec='-L$libdir'
8405 hardcode_minus_L=yes
8411 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8412 allow_undefined_flag=unsupported
8413 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8414 # support --undefined. This deserves some investigation. FIXME
8415 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8421 cygwin* | mingw* | pw32* | cegcc*)
8422 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8423 # as there is no search path for DLLs.
8424 hardcode_libdir_flag_spec='-L$libdir'
8425 export_dynamic_flag_spec='${wl}--export-all-symbols'
8426 allow_undefined_flag=unsupported
8427 always_export_symbols=no
8428 enable_shared_with_static_runtimes=yes
8429 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'
8430 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
8432 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8433 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8434 # If the export-symbols file already is a .def file (1st line
8435 # is EXPORTS), use it as is; otherwise, prepend...
8436 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8437 cp $export_symbols $output_objdir/$soname.def;
8439 echo EXPORTS > $output_objdir/$soname.def;
8440 cat $export_symbols >> $output_objdir/$soname.def;
8442 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8449 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8450 link_all_deplibs=yes
8455 hardcode_shlibpath_var=no
8456 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8457 export_dynamic_flag_spec='${wl}-E'
8458 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8459 # Instead, shared libraries are loaded at an image base (0x10000000 by
8460 # default) and relocated if they conflict, which is a slow very memory
8461 # consuming and fragmenting process. To avoid this, we pick a random,
8462 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8463 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8464 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8465 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'
8468 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8470 if test "$host_os" = linux-dietlibc; then
8471 case $cc_basename in
8472 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8475 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8476 && test "$tmp_diet" = no
8478 tmp_addflag=' $pic_flag'
8479 tmp_sharedflag='-shared'
8480 case $cc_basename,$host_cpu in
8481 pgcc*) # Portland Group C compiler
8482 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'
8483 tmp_addflag=' $pic_flag'
8485 pgf77* | pgf90* | pgf95* | pgfortran*)
8486 # Portland Group f77 and f90 compilers
8487 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'
8488 tmp_addflag=' $pic_flag -Mnomain' ;;
8489 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8490 tmp_addflag=' -i_dynamic' ;;
8491 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8492 tmp_addflag=' -i_dynamic -nofor_main' ;;
8493 ifc* | ifort*) # Intel Fortran compiler
8494 tmp_addflag=' -nofor_main' ;;
8495 lf95*) # Lahey Fortran 8.1
8496 whole_archive_flag_spec=
8497 tmp_sharedflag='--shared' ;;
8498 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8499 tmp_sharedflag='-qmkshrobj'
8501 nvcc*) # Cuda Compiler Driver 2.2
8502 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'
8503 compiler_needs_object=yes
8506 case `$CC -V 2>&1 | sed 5q` in
8507 *Sun\ C*) # Sun C 5.9
8508 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'
8509 compiler_needs_object=yes
8510 tmp_sharedflag='-G' ;;
8511 *Sun\ F*) # Sun Fortran 8.3
8512 tmp_sharedflag='-G' ;;
8514 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8516 if test "x$supports_anon_versioning" = xyes; then
8517 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8518 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8519 echo "local: *; };" >> $output_objdir/$libname.ver~
8520 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8523 case $cc_basename in
8524 xlf* | bgf* | bgxlf* | mpixlf*)
8525 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8526 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8527 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8528 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
8529 if test "x$supports_anon_versioning" = xyes; then
8530 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8531 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8532 echo "local: *; };" >> $output_objdir/$libname.ver~
8533 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8542 netbsd* | netbsdelf*-gnu)
8543 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8544 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8547 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8548 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8553 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8557 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8558 *** create shared libraries on Solaris systems. Therefore, libtool
8559 *** is disabling shared libraries support. We urge you to upgrade GNU
8560 *** binutils to release 2.9.1 or newer. Another option is to modify
8561 *** your PATH or compiler configuration so that the native linker is
8562 *** used, and then restart.
8565 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8566 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8567 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8573 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8574 case `$LD -v 2>&1` in
8575 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8579 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8580 *** reliably create shared libraries on SCO systems. Therefore, libtool
8581 *** is disabling shared libraries support. We urge you to upgrade GNU
8582 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8583 *** your PATH or compiler configuration so that the native linker is
8584 *** used, and then restart.
8589 # For security reasons, it is highly recommended that you always
8590 # use absolute paths for naming shared libraries, and exclude the
8591 # DT_RUNPATH tag from executables and libraries. But doing so
8592 # requires that you compile everything twice, which is a pain.
8593 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8594 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8595 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8596 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8605 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8608 hardcode_shlibpath_var=no
8612 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8613 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8614 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8621 if test "$ld_shlibs" = no; then
8623 hardcode_libdir_flag_spec=
8624 export_dynamic_flag_spec=
8625 whole_archive_flag_spec=
8628 # PORTME fill in a description of your system's linker (not GNU ld)
8631 allow_undefined_flag=unsupported
8632 always_export_symbols=yes
8633 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'
8634 # Note: this linker hardcodes the directories in LIBPATH if there
8635 # are no directories specified by -L.
8636 hardcode_minus_L=yes
8637 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8638 # Neither direct hardcoding nor static linking is supported with a
8640 hardcode_direct=unsupported
8645 if test "$host_cpu" = ia64; then
8646 # On IA64, the linker does run time linking by default, so we don't
8647 # have to do anything special.
8648 aix_use_runtimelinking=no
8649 exp_sym_flag='-Bexport'
8652 # If we're using GNU nm, then we don't want the "-C" option.
8653 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8654 # Also, AIX nm treats weak defined symbols like other global
8655 # defined symbols, whereas GNU nm marks them as "W".
8656 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8657 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'
8659 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'
8661 aix_use_runtimelinking=no
8663 # Test if we are trying to use run time linking or normal
8664 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8665 # need to do runtime linking.
8666 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8667 for ld_flag in $LDFLAGS; do
8668 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8669 aix_use_runtimelinking=yes
8676 exp_sym_flag='-bexport'
8677 no_entry_flag='-bnoentry'
8680 # When large executables or shared objects are built, AIX ld can
8681 # have problems creating the table of contents. If linking a library
8682 # or program results in "error TOC overflow" add -mminimal-toc to
8683 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8684 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8688 hardcode_direct_absolute=yes
8689 hardcode_libdir_separator=':'
8690 link_all_deplibs=yes
8691 file_list_spec='${wl}-f,'
8693 if test "$GCC" = yes; then
8694 case $host_os in aix4.[012]|aix4.[012].*)
8695 # We only want to do this on AIX 4.2 and lower, the check
8696 # below for broken collect2 doesn't work under 4.3+
8697 collect2name=`${CC} -print-prog-name=collect2`
8698 if test -f "$collect2name" &&
8699 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8701 # We have reworked collect2
8704 # We have old collect2
8705 hardcode_direct=unsupported
8706 # It fails to find uninstalled libraries when the uninstalled
8707 # path is not listed in the libpath. Setting hardcode_minus_L
8708 # to unsupported forces relinking
8709 hardcode_minus_L=yes
8710 hardcode_libdir_flag_spec='-L$libdir'
8711 hardcode_libdir_separator=
8715 shared_flag='-shared'
8716 if test "$aix_use_runtimelinking" = yes; then
8717 shared_flag="$shared_flag "'${wl}-G'
8722 if test "$host_cpu" = ia64; then
8723 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8724 # chokes on -Wl,-G. The following line is correct:
8727 if test "$aix_use_runtimelinking" = yes; then
8728 shared_flag='${wl}-G'
8730 shared_flag='${wl}-bM:SRE'
8735 export_dynamic_flag_spec='${wl}-bexpall'
8736 # It seems that -bexpall does not export symbols beginning with
8737 # underscore (_), so it is better to generate a list of symbols to export.
8738 always_export_symbols=yes
8739 if test "$aix_use_runtimelinking" = yes; then
8740 # Warning - without using the other runtime loading flags (-brtl),
8741 # -berok will link without error, but may produce a broken library.
8742 allow_undefined_flag='-berok'
8743 # Determine the default libpath from the value encoded in an
8745 if test "${lt_cv_aix_libpath+set}" = set; then
8746 aix_libpath=$lt_cv_aix_libpath
8748 if ${lt_cv_aix_libpath_+:} false; then :
8749 $as_echo_n "(cached) " >&6
8751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8752 /* end confdefs.h. */
8762 if ac_fn_c_try_link "$LINENO"; then :
8764 lt_aix_libpath_sed='
8765 /Import File Strings/,/^$/ {
8767 s/^0 *\([^ ]*\) *$/\1/
8771 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8772 # Check for a 64-bit object if we didn't find anything.
8773 if test -z "$lt_cv_aix_libpath_"; then
8774 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8777 rm -f core conftest.err conftest.$ac_objext \
8778 conftest$ac_exeext conftest.$ac_ext
8779 if test -z "$lt_cv_aix_libpath_"; then
8780 lt_cv_aix_libpath_="/usr/lib:/lib"
8785 aix_libpath=$lt_cv_aix_libpath_
8788 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8789 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
8791 if test "$host_cpu" = ia64; then
8792 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8793 allow_undefined_flag="-z nodefs"
8794 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
8796 # Determine the default libpath from the value encoded in an
8798 if test "${lt_cv_aix_libpath+set}" = set; then
8799 aix_libpath=$lt_cv_aix_libpath
8801 if ${lt_cv_aix_libpath_+:} false; then :
8802 $as_echo_n "(cached) " >&6
8804 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8805 /* end confdefs.h. */
8815 if ac_fn_c_try_link "$LINENO"; then :
8817 lt_aix_libpath_sed='
8818 /Import File Strings/,/^$/ {
8820 s/^0 *\([^ ]*\) *$/\1/
8824 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8825 # Check for a 64-bit object if we didn't find anything.
8826 if test -z "$lt_cv_aix_libpath_"; then
8827 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8830 rm -f core conftest.err conftest.$ac_objext \
8831 conftest$ac_exeext conftest.$ac_ext
8832 if test -z "$lt_cv_aix_libpath_"; then
8833 lt_cv_aix_libpath_="/usr/lib:/lib"
8838 aix_libpath=$lt_cv_aix_libpath_
8841 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8842 # Warning - without using the other run time loading flags,
8843 # -berok will link without error, but may produce a broken library.
8844 no_undefined_flag=' ${wl}-bernotok'
8845 allow_undefined_flag=' ${wl}-berok'
8846 if test "$with_gnu_ld" = yes; then
8847 # We only use this code for GNU lds that support --whole-archive.
8848 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
8850 # Exported symbols can be pulled into shared objects from archives
8851 whole_archive_flag_spec='$convenience'
8853 archive_cmds_need_lc=yes
8854 # This is similar to how AIX traditionally builds its shared libraries.
8855 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
8863 # see comment about AmigaOS4 .so support
8864 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8865 archive_expsym_cmds=''
8868 archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
8869 hardcode_libdir_flag_spec='-L$libdir'
8870 hardcode_minus_L=yes
8876 export_dynamic_flag_spec=-rdynamic
8879 cygwin* | mingw* | pw32* | cegcc*)
8880 # When not using gcc, we currently assume that we are using
8881 # Microsoft Visual C++.
8882 # hardcode_libdir_flag_spec is actually meaningless, as there is
8883 # no search path for DLLs.
8884 case $cc_basename in
8887 hardcode_libdir_flag_spec=' '
8888 allow_undefined_flag=unsupported
8889 always_export_symbols=yes
8891 # Tell ltmain to make .lib files, not .a files.
8893 # Tell ltmain to make .dll files, not .so files.
8895 # FIXME: Setting linknames here is a bad hack.
8896 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
8897 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8898 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
8900 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
8902 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
8904 # The linker will not automatically build a static lib if we build a DLL.
8905 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
8906 enable_shared_with_static_runtimes=yes
8907 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
8908 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8910 old_postinstall_cmds='chmod 644 $oldlib'
8911 postlink_cmds='lt_outputfile="@OUTPUT@"~
8912 lt_tool_outputfile="@TOOL_OUTPUT@"~
8913 case $lt_outputfile in
8916 lt_outputfile="$lt_outputfile.exe"
8917 lt_tool_outputfile="$lt_tool_outputfile.exe"
8920 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
8921 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
8922 $RM "$lt_outputfile.manifest";
8926 # Assume MSVC wrapper
8927 hardcode_libdir_flag_spec=' '
8928 allow_undefined_flag=unsupported
8929 # Tell ltmain to make .lib files, not .a files.
8931 # Tell ltmain to make .dll files, not .so files.
8933 # FIXME: Setting linknames here is a bad hack.
8934 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
8935 # The linker will automatically build a .lib file if we build a DLL.
8936 old_archive_from_new_cmds='true'
8937 # FIXME: Should let the user specify the lib program.
8938 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8939 enable_shared_with_static_runtimes=yes
8944 darwin* | rhapsody*)
8947 archive_cmds_need_lc=no
8949 hardcode_automatic=yes
8950 hardcode_shlibpath_var=unsupported
8951 if test "$lt_cv_ld_force_load" = "yes"; then
8952 whole_archive_flag_spec='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
8955 whole_archive_flag_spec=''
8957 link_all_deplibs=yes
8958 allow_undefined_flag="$_lt_dar_allow_undefined"
8959 case $cc_basename in
8960 ifort*) _lt_dar_can_shared=yes ;;
8961 *) _lt_dar_can_shared=$GCC ;;
8963 if test "$_lt_dar_can_shared" = "yes"; then
8964 output_verbose_link_cmd=func_echo_all
8965 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8966 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8967 archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
8968 module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
8977 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8978 hardcode_libdir_flag_spec='-L$libdir'
8979 hardcode_shlibpath_var=no
8982 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8983 # support. Future versions do this automatically, but an explicit c++rt0.o
8984 # does not break anything, and helps significantly (at the cost of a little
8987 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8988 hardcode_libdir_flag_spec='-R$libdir'
8990 hardcode_shlibpath_var=no
8993 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8995 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8997 hardcode_minus_L=yes
8998 hardcode_shlibpath_var=no
9001 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9002 freebsd* | dragonfly*)
9003 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9004 hardcode_libdir_flag_spec='-R$libdir'
9006 hardcode_shlibpath_var=no
9010 if test "$GCC" = yes; then
9011 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9013 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9015 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9016 hardcode_libdir_separator=:
9019 # hardcode_minus_L: Not really in the search PATH,
9020 # but as the default location of the library.
9021 hardcode_minus_L=yes
9022 export_dynamic_flag_spec='${wl}-E'
9026 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9027 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9029 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9031 if test "$with_gnu_ld" = no; then
9032 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9033 hardcode_libdir_separator=:
9035 hardcode_direct_absolute=yes
9036 export_dynamic_flag_spec='${wl}-E'
9037 # hardcode_minus_L: Not really in the search PATH,
9038 # but as the default location of the library.
9039 hardcode_minus_L=yes
9044 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9047 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9050 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9053 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9059 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9062 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9066 # Older versions of the 11.00 compiler do not understand -b yet
9067 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9069 $as_echo_n "checking if $CC understands -b... " >&6; }
9070 if ${lt_cv_prog_compiler__b+:} false; then :
9071 $as_echo_n "(cached) " >&6
9073 lt_cv_prog_compiler__b=no
9074 save_LDFLAGS="$LDFLAGS"
9075 LDFLAGS="$LDFLAGS -b"
9076 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9077 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9078 # The linker can only warn and ignore the option if not recognized
9079 # So say no if there are warnings
9080 if test -s conftest.err; then
9081 # Append any errors to the config.log.
9082 cat conftest.err 1>&5
9083 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9084 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9085 if diff conftest.exp conftest.er2 >/dev/null; then
9086 lt_cv_prog_compiler__b=yes
9089 lt_cv_prog_compiler__b=yes
9093 LDFLAGS="$save_LDFLAGS"
9096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9097 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9099 if test x"$lt_cv_prog_compiler__b" = xyes; then
9100 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9102 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9108 if test "$with_gnu_ld" = no; then
9109 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9110 hardcode_libdir_separator=:
9115 hardcode_shlibpath_var=no
9119 hardcode_direct_absolute=yes
9120 export_dynamic_flag_spec='${wl}-E'
9122 # hardcode_minus_L: Not really in the search PATH,
9123 # but as the default location of the library.
9124 hardcode_minus_L=yes
9130 irix5* | irix6* | nonstopux*)
9131 if test "$GCC" = yes; then
9132 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9133 # Try to use the -exported_symbol ld option, if it does not
9134 # work, assume that -exports_file does not work either and
9135 # implicitly export all symbols.
9136 # This should be the same for all languages, so no per-tag cache variable.
9137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9138 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9139 if ${lt_cv_irix_exported_symbol+:} false; then :
9140 $as_echo_n "(cached) " >&6
9142 save_LDFLAGS="$LDFLAGS"
9143 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9145 /* end confdefs.h. */
9146 int foo (void) { return 0; }
9148 if ac_fn_c_try_link "$LINENO"; then :
9149 lt_cv_irix_exported_symbol=yes
9151 lt_cv_irix_exported_symbol=no
9153 rm -f core conftest.err conftest.$ac_objext \
9154 conftest$ac_exeext conftest.$ac_ext
9155 LDFLAGS="$save_LDFLAGS"
9157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9158 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
9159 if test "$lt_cv_irix_exported_symbol" = yes; then
9160 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
9163 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
9164 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
9166 archive_cmds_need_lc='no'
9167 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9168 hardcode_libdir_separator=:
9170 link_all_deplibs=yes
9173 netbsd* | netbsdelf*-gnu)
9174 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9175 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9177 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9179 hardcode_libdir_flag_spec='-R$libdir'
9181 hardcode_shlibpath_var=no
9185 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9187 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9188 hardcode_libdir_separator=:
9189 hardcode_shlibpath_var=no
9196 if test -f /usr/libexec/ld.so; then
9198 hardcode_shlibpath_var=no
9199 hardcode_direct_absolute=yes
9200 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9201 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9202 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9203 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9204 export_dynamic_flag_spec='${wl}-E'
9207 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9208 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9209 hardcode_libdir_flag_spec='-R$libdir'
9212 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9213 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9223 hardcode_libdir_flag_spec='-L$libdir'
9224 hardcode_minus_L=yes
9225 allow_undefined_flag=unsupported
9226 archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
9227 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9231 if test "$GCC" = yes; then
9232 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9233 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9235 allow_undefined_flag=' -expect_unresolved \*'
9236 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
9238 archive_cmds_need_lc='no'
9239 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9240 hardcode_libdir_separator=:
9243 osf4* | osf5*) # as osf3* with the addition of -msym flag
9244 if test "$GCC" = yes; then
9245 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9246 archive_cmds='$CC -shared${allow_undefined_flag} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9247 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9249 allow_undefined_flag=' -expect_unresolved \*'
9250 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
9251 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
9252 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
9254 # Both c and cxx compiler support -rpath directly
9255 hardcode_libdir_flag_spec='-rpath $libdir'
9257 archive_cmds_need_lc='no'
9258 hardcode_libdir_separator=:
9262 no_undefined_flag=' -z defs'
9263 if test "$GCC" = yes; then
9265 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9266 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9267 $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9269 case `$CC -V 2>&1` in
9272 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9273 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9274 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9278 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9279 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9280 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9284 hardcode_libdir_flag_spec='-R$libdir'
9285 hardcode_shlibpath_var=no
9287 solaris2.[0-5] | solaris2.[0-5].*) ;;
9289 # The compiler driver will combine and reorder linker options,
9290 # but understands `-z linker_flag'. GCC discards it without `$wl',
9291 # but is careful enough not to reorder.
9292 # Supported since Solaris 2.6 (maybe 2.5.1?)
9293 if test "$GCC" = yes; then
9294 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9296 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9300 link_all_deplibs=yes
9304 if test "x$host_vendor" = xsequent; then
9305 # Use $CC to link under sequent, because it throws in some extra .o
9306 # files that make .init and .fini sections work.
9307 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9309 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9311 hardcode_libdir_flag_spec='-L$libdir'
9313 hardcode_minus_L=yes
9314 hardcode_shlibpath_var=no
9318 case $host_vendor in
9320 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9321 hardcode_direct=yes # is this really true???
9324 ## LD is ld it makes a PLAMLIB
9325 ## CC just makes a GrossModule.
9326 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9327 reload_cmds='$CC -r -o $output$reload_objs'
9331 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9332 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9335 runpath_var='LD_RUN_PATH'
9336 hardcode_shlibpath_var=no
9340 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9341 hardcode_shlibpath_var=no
9342 export_dynamic_flag_spec='-Bexport'
9346 if test -d /usr/nec; then
9347 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9348 hardcode_shlibpath_var=no
9349 runpath_var=LD_RUN_PATH
9350 hardcode_runpath_var=yes
9355 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9356 no_undefined_flag='${wl}-z,text'
9357 archive_cmds_need_lc=no
9358 hardcode_shlibpath_var=no
9359 runpath_var='LD_RUN_PATH'
9361 if test "$GCC" = yes; then
9362 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9363 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9365 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9366 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9370 sysv5* | sco3.2v5* | sco5v6*)
9371 # Note: We can NOT use -z defs as we might desire, because we do not
9372 # link with -lc, and that would cause any symbols used from libc to
9373 # always be unresolved, which means just about no library would
9374 # ever link correctly. If we're not using GNU ld we use -z text
9375 # though, which does catch some bad symbols but isn't as heavy-handed
9377 no_undefined_flag='${wl}-z,text'
9378 allow_undefined_flag='${wl}-z,nodefs'
9379 archive_cmds_need_lc=no
9380 hardcode_shlibpath_var=no
9381 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9382 hardcode_libdir_separator=':'
9383 link_all_deplibs=yes
9384 export_dynamic_flag_spec='${wl}-Bexport'
9385 runpath_var='LD_RUN_PATH'
9387 if test "$GCC" = yes; then
9388 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9389 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9391 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9392 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9397 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9398 hardcode_libdir_flag_spec='-L$libdir'
9399 hardcode_shlibpath_var=no
9407 if test x$host_vendor = xsni; then
9409 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9410 export_dynamic_flag_spec='${wl}-Blargedynsym'
9416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9417 $as_echo "$ld_shlibs" >&6; }
9418 test "$ld_shlibs" = no && can_build_shared=no
9420 with_gnu_ld=$with_gnu_ld
9437 # Do we need to explicitly link libc?
9439 case "x$archive_cmds_need_lc" in
9441 # Assume -lc should be added
9442 archive_cmds_need_lc=yes
9444 if test "$enable_shared" = yes && test "$GCC" = yes; then
9445 case $archive_cmds in
9447 # FIXME: we may have to deal with multi-command sequences.
9450 # Test whether the compiler implicitly links with -lc since on some
9451 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9452 # to ld, don't add -lc before -lgcc.
9453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9454 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9455 if ${lt_cv_archive_cmds_need_lc+:} false; then :
9456 $as_echo_n "(cached) " >&6
9459 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9461 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9462 (eval $ac_compile) 2>&5
9464 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9465 test $ac_status = 0; } 2>conftest.err; then
9468 libobjs=conftest.$ac_objext
9470 wl=$lt_prog_compiler_wl
9471 pic_flag=$lt_prog_compiler_pic
9477 lt_save_allow_undefined_flag=$allow_undefined_flag
9478 allow_undefined_flag=
9479 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9480 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9482 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9483 test $ac_status = 0; }
9485 lt_cv_archive_cmds_need_lc=no
9487 lt_cv_archive_cmds_need_lc=yes
9489 allow_undefined_flag=$lt_save_allow_undefined_flag
9491 cat conftest.err 1>&5
9496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9497 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9498 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9657 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9659 if test "$GCC" = yes; then
9661 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9662 *) lt_awk_arg="/^libraries:/" ;;
9665 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
9666 *) lt_sed_strip_eq="s,=/,/,g" ;;
9668 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
9669 case $lt_search_path_spec in
9671 # if the path contains ";" then we assume it to be the separator
9672 # otherwise default to the standard path separator (i.e. ":") - it is
9673 # assumed that no part of a normal pathname contains ";" but that should
9674 # okay in the real world where ";" in dirpaths is itself problematic.
9675 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
9678 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
9681 # Ok, now we have the path, separated by spaces, we can step through it
9682 # and add multilib dir if necessary.
9683 lt_tmp_lt_search_path_spec=
9684 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9685 for lt_sys_path in $lt_search_path_spec; do
9686 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9687 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9689 test -d "$lt_sys_path" && \
9690 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9693 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
9694 BEGIN {RS=" "; FS="/|\n";} {
9697 for (lt_i = NF; lt_i > 0; lt_i--) {
9698 if ($lt_i != "" && $lt_i != ".") {
9699 if ($lt_i == "..") {
9702 if (lt_count == 0) {
9703 lt_foo="/" $lt_i lt_foo;
9710 if (lt_foo != "") { lt_freq[lt_foo]++; }
9711 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9713 # AWK program above erroneously prepends '/' to C:/dos/paths
9716 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
9717 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
9719 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
9721 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9724 libname_spec='lib$name'
9732 shlibpath_overrides_runpath=unknown
9734 dynamic_linker="$host_os ld.so"
9735 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9736 need_lib_prefix=unknown
9737 hardcode_into_libs=no
9739 # when you set need_version to no, make sure it does not cause -set_version
9740 # flags to be left without arguments
9741 need_version=unknown
9745 version_type=linux # correct to gnu/linux during the next big refactor
9746 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9747 shlibpath_var=LIBPATH
9749 # AIX 3 has no versioning support, so we append a major version to the name.
9750 soname_spec='${libname}${release}${shared_ext}$major'
9754 version_type=linux # correct to gnu/linux during the next big refactor
9757 hardcode_into_libs=yes
9758 if test "$host_cpu" = ia64; then
9759 # AIX 5 supports IA64
9760 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9761 shlibpath_var=LD_LIBRARY_PATH
9763 # With GCC up to 2.95.x, collect2 would create an import file
9764 # for dependence libraries. The import file would start with
9765 # the line `#! .'. This would cause the generated library to
9766 # depend on `.', always an invalid library. This was fixed in
9767 # development snapshots of GCC prior to 3.0.
9769 aix4 | aix4.[01] | aix4.[01].*)
9770 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9772 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9779 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9780 # soname into executable. Probably we can add versioning support to
9781 # collect2, so additional links can be useful in future.
9782 if test "$aix_use_runtimelinking" = yes; then
9783 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9784 # instead of lib<name>.a to let people know that these are not
9785 # typical AIX shared libraries.
9786 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9788 # We preserve .a as extension for shared libraries through AIX4.2
9789 # and later when we are not doing run time linking.
9790 library_names_spec='${libname}${release}.a $libname.a'
9791 soname_spec='${libname}${release}${shared_ext}$major'
9793 shlibpath_var=LIBPATH
9800 # Since July 2007 AmigaOS4 officially supports .so libraries.
9801 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9802 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9805 library_names_spec='$libname.ixlibrary $libname.a'
9806 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9807 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
9813 library_names_spec='${libname}${shared_ext}'
9814 dynamic_linker="$host_os ld.so"
9815 shlibpath_var=LIBRARY_PATH
9819 version_type=linux # correct to gnu/linux during the next big refactor
9821 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9822 soname_spec='${libname}${release}${shared_ext}$major'
9823 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9824 shlibpath_var=LD_LIBRARY_PATH
9825 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9826 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9827 # the default ld.so.conf also contains /usr/contrib/lib and
9828 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9829 # libtool to hard-code these into programs
9832 cygwin* | mingw* | pw32* | cegcc*)
9833 version_type=windows
9838 case $GCC,$cc_basename in
9841 library_names_spec='$libname.dll.a'
9842 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9843 postinstall_cmds='base_file=`basename \${file}`~
9844 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9845 dldir=$destdir/`dirname \$dlpath`~
9846 test -d \$dldir || mkdir -p \$dldir~
9847 $install_prog $dir/$dlname \$dldir/$dlname~
9848 chmod a+x \$dldir/$dlname~
9849 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9850 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9852 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9853 dlpath=$dir/\$dldll~
9855 shlibpath_overrides_runpath=yes
9859 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9860 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9862 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
9865 # MinGW DLLs use traditional 'lib' prefix
9866 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9869 # pw32 DLLs use 'pw' prefix rather than 'lib'
9870 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9873 dynamic_linker='Win32 ld.exe'
9878 libname_spec='$name'
9879 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9880 library_names_spec='${libname}.dll.lib'
9884 sys_lib_search_path_spec=
9890 # Let DOS variable expansion print the short 8.3 style file name.
9891 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
9892 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
9895 # Convert to MSYS style.
9896 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
9899 # Convert to unix form, then to dos form, then back to unix form
9900 # but this time dos style (no spaces!) so that the unix form looks
9901 # like /cygdrive/c/PROGRA~1:/cygdr...
9902 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
9903 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
9904 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9907 sys_lib_search_path_spec="$LIB"
9908 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
9909 # It is most probably a Windows format PATH.
9910 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9912 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9914 # FIXME: find the short name or the path components, as spaces are
9915 # common. (e.g. "Program Files" -> "PROGRA~1")
9919 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9920 postinstall_cmds='base_file=`basename \${file}`~
9921 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9922 dldir=$destdir/`dirname \$dlpath`~
9923 test -d \$dldir || mkdir -p \$dldir~
9924 $install_prog $dir/$dlname \$dldir/$dlname'
9925 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9926 dlpath=$dir/\$dldll~
9928 shlibpath_overrides_runpath=yes
9929 dynamic_linker='Win32 link.exe'
9933 # Assume MSVC wrapper
9934 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9935 dynamic_linker='Win32 ld.exe'
9938 # FIXME: first we should search . and the directory the executable is in
9942 darwin* | rhapsody*)
9943 dynamic_linker="$host_os dyld"
9947 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9948 soname_spec='${libname}${release}${major}$shared_ext'
9949 shlibpath_overrides_runpath=yes
9950 shlibpath_var=DYLD_LIBRARY_PATH
9951 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9953 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9954 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9958 version_type=linux # correct to gnu/linux during the next big refactor
9961 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9962 soname_spec='${libname}${release}${shared_ext}$major'
9963 shlibpath_var=LD_LIBRARY_PATH
9966 freebsd* | dragonfly*)
9967 # DragonFly does not have aout. When/if they implement a new
9968 # versioning mechanism, adjust this.
9969 if test -x /usr/bin/objformat; then
9970 objformat=`/usr/bin/objformat`
9973 freebsd[23].*) objformat=aout ;;
9977 version_type=freebsd-$objformat
9978 case $version_type in
9980 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9985 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9989 shlibpath_var=LD_LIBRARY_PATH
9992 shlibpath_overrides_runpath=yes
9994 freebsd3.[01]* | freebsdelf3.[01]*)
9995 shlibpath_overrides_runpath=yes
9996 hardcode_into_libs=yes
9998 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9999 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10000 shlibpath_overrides_runpath=no
10001 hardcode_into_libs=yes
10003 *) # from 4.6 on, and DragonFly
10004 shlibpath_overrides_runpath=yes
10005 hardcode_into_libs=yes
10011 version_type=linux # correct to gnu/linux during the next big refactor
10014 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10015 soname_spec='${libname}${release}${shared_ext}$major'
10016 shlibpath_var=LD_LIBRARY_PATH
10017 shlibpath_overrides_runpath=no
10018 hardcode_into_libs=yes
10022 version_type=linux # correct to gnu/linux during the next big refactor
10025 dynamic_linker="$host_os runtime_loader"
10026 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10027 soname_spec='${libname}${release}${shared_ext}$major'
10028 shlibpath_var=LIBRARY_PATH
10029 shlibpath_overrides_runpath=yes
10030 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10031 hardcode_into_libs=yes
10034 hpux9* | hpux10* | hpux11*)
10035 # Give a soname corresponding to the major version so that dld.sl refuses to
10036 # link against other versions.
10043 hardcode_into_libs=yes
10044 dynamic_linker="$host_os dld.so"
10045 shlibpath_var=LD_LIBRARY_PATH
10046 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10047 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10048 soname_spec='${libname}${release}${shared_ext}$major'
10049 if test "X$HPUX_IA64_MODE" = X32; then
10050 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10052 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10054 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10058 hardcode_into_libs=yes
10059 dynamic_linker="$host_os dld.sl"
10060 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10061 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10062 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10063 soname_spec='${libname}${release}${shared_ext}$major'
10064 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10065 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10069 dynamic_linker="$host_os dld.sl"
10070 shlibpath_var=SHLIB_PATH
10071 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10072 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10073 soname_spec='${libname}${release}${shared_ext}$major'
10076 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10077 postinstall_cmds='chmod 555 $lib'
10078 # or fails outright, so override atomically:
10079 install_override_mode=555
10083 version_type=linux # correct to gnu/linux during the next big refactor
10086 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10087 soname_spec='${libname}${release}${shared_ext}$major'
10088 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10089 shlibpath_var=LD_LIBRARY_PATH
10090 shlibpath_overrides_runpath=no
10091 hardcode_into_libs=yes
10094 irix5* | irix6* | nonstopux*)
10096 nonstopux*) version_type=nonstopux ;;
10098 if test "$lt_cv_prog_gnu_ld" = yes; then
10099 version_type=linux # correct to gnu/linux during the next big refactor
10106 soname_spec='${libname}${release}${shared_ext}$major'
10107 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10109 irix5* | nonstopux*)
10110 libsuff= shlibsuff=
10113 case $LD in # libtool.m4 will add one of these switches to LD
10114 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10115 libsuff= shlibsuff= libmagic=32-bit;;
10116 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10117 libsuff=32 shlibsuff=N32 libmagic=N32;;
10118 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10119 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10120 *) libsuff= shlibsuff= libmagic=never-match;;
10124 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10125 shlibpath_overrides_runpath=no
10126 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10127 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10128 hardcode_into_libs=yes
10131 # No shared lib support for Linux oldld, aout, or coff.
10132 linux*oldld* | linux*aout* | linux*coff*)
10136 # This must be glibc/ELF.
10137 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10138 version_type=linux # correct to gnu/linux during the next big refactor
10141 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10142 soname_spec='${libname}${release}${shared_ext}$major'
10143 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10144 shlibpath_var=LD_LIBRARY_PATH
10145 shlibpath_overrides_runpath=no
10147 # Some binutils ld are patched to set DT_RUNPATH
10148 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10149 $as_echo_n "(cached) " >&6
10151 lt_cv_shlibpath_overrides_runpath=no
10152 save_LDFLAGS=$LDFLAGS
10153 save_libdir=$libdir
10154 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10155 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10157 /* end confdefs.h. */
10167 if ac_fn_c_try_link "$LINENO"; then :
10168 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10169 lt_cv_shlibpath_overrides_runpath=yes
10172 rm -f core conftest.err conftest.$ac_objext \
10173 conftest$ac_exeext conftest.$ac_ext
10174 LDFLAGS=$save_LDFLAGS
10175 libdir=$save_libdir
10179 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10181 # This implies no fast_install, which is unacceptable.
10182 # Some rework will be needed to allow for fast_install
10183 # before this can be enabled.
10184 hardcode_into_libs=yes
10186 # Append ld.so.conf contents to the search path
10187 if test -f /etc/ld.so.conf; then
10188 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
10189 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10192 # We used to test for /lib/ld.so.1 and disable shared libraries on
10193 # powerpc, because MkLinux only supported shared libraries with the
10194 # GNU dynamic linker. Since this was broken with cross compilers,
10195 # most powerpc-linux boxes support dynamic linking these days and
10196 # people can always --disable-shared, the test was removed, and we
10197 # assume the GNU/Linux dynamic linker is in use.
10198 dynamic_linker='GNU/Linux ld.so'
10205 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10206 soname_spec='${libname}${release}${shared_ext}$major'
10207 shlibpath_var=LD_LIBRARY_PATH
10208 shlibpath_overrides_runpath=no
10209 hardcode_into_libs=yes
10210 dynamic_linker='NetBSD ld.elf_so'
10217 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10218 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10219 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10220 dynamic_linker='NetBSD (a.out) ld.so'
10222 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10223 soname_spec='${libname}${release}${shared_ext}$major'
10224 dynamic_linker='NetBSD ld.elf_so'
10226 shlibpath_var=LD_LIBRARY_PATH
10227 shlibpath_overrides_runpath=yes
10228 hardcode_into_libs=yes
10232 version_type=linux # correct to gnu/linux during the next big refactor
10233 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10234 shlibpath_var=LD_LIBRARY_PATH
10235 shlibpath_overrides_runpath=yes
10242 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10243 soname_spec='${libname}${release}${shared_ext}$major'
10244 shlibpath_var=LD_LIBRARY_PATH
10245 shlibpath_overrides_runpath=no
10246 hardcode_into_libs=yes
10247 dynamic_linker='ldqnx.so'
10252 sys_lib_dlsearch_path_spec="/usr/lib"
10254 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10256 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10257 *) need_version=no ;;
10259 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10260 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10261 shlibpath_var=LD_LIBRARY_PATH
10262 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10264 openbsd2.[89] | openbsd2.[89].*)
10265 shlibpath_overrides_runpath=no
10268 shlibpath_overrides_runpath=yes
10272 shlibpath_overrides_runpath=yes
10277 libname_spec='$name'
10280 library_names_spec='$libname${shared_ext} $libname.a'
10281 dynamic_linker='OS/2 ld.exe'
10282 shlibpath_var=LIBPATH
10285 osf3* | osf4* | osf5*)
10289 soname_spec='${libname}${release}${shared_ext}$major'
10290 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10291 shlibpath_var=LD_LIBRARY_PATH
10292 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10293 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10301 version_type=linux # correct to gnu/linux during the next big refactor
10304 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10305 soname_spec='${libname}${release}${shared_ext}$major'
10306 shlibpath_var=LD_LIBRARY_PATH
10307 shlibpath_overrides_runpath=yes
10308 hardcode_into_libs=yes
10309 # ldd complains unless libraries are executable
10310 postinstall_cmds='chmod +x $lib'
10315 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10316 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10317 shlibpath_var=LD_LIBRARY_PATH
10318 shlibpath_overrides_runpath=yes
10319 if test "$with_gnu_ld" = yes; then
10326 version_type=linux # correct to gnu/linux during the next big refactor
10327 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10328 soname_spec='${libname}${release}${shared_ext}$major'
10329 shlibpath_var=LD_LIBRARY_PATH
10330 case $host_vendor in
10332 shlibpath_overrides_runpath=no
10334 runpath_var=LD_RUN_PATH
10342 shlibpath_overrides_runpath=no
10343 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10349 if test -d /usr/nec ;then
10350 version_type=linux # correct to gnu/linux during the next big refactor
10351 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10352 soname_spec='$libname${shared_ext}.$major'
10353 shlibpath_var=LD_LIBRARY_PATH
10357 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10358 version_type=freebsd-elf
10361 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10362 soname_spec='${libname}${release}${shared_ext}$major'
10363 shlibpath_var=LD_LIBRARY_PATH
10364 shlibpath_overrides_runpath=yes
10365 hardcode_into_libs=yes
10366 if test "$with_gnu_ld" = yes; then
10367 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10369 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10372 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10376 sys_lib_dlsearch_path_spec='/usr/lib'
10380 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10381 version_type=linux # correct to gnu/linux during the next big refactor
10384 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10385 shlibpath_var=LD_LIBRARY_PATH
10386 shlibpath_overrides_runpath=no
10387 hardcode_into_libs=yes
10391 version_type=linux # correct to gnu/linux during the next big refactor
10392 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10393 soname_spec='${libname}${release}${shared_ext}$major'
10394 shlibpath_var=LD_LIBRARY_PATH
10401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10402 $as_echo "$dynamic_linker" >&6; }
10403 test "$dynamic_linker" = no && can_build_shared=no
10405 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10406 if test "$GCC" = yes; then
10407 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10410 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10411 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10413 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10414 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10509 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10511 if test -n "$hardcode_libdir_flag_spec" ||
10512 test -n "$runpath_var" ||
10513 test "X$hardcode_automatic" = "Xyes" ; then
10515 # We can hardcode non-existent directories.
10516 if test "$hardcode_direct" != no &&
10517 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10518 # have to relink, otherwise we might link with an installed library
10519 # when we should be linking with a yet-to-be-installed one
10520 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10521 test "$hardcode_minus_L" != no; then
10522 # Linking always hardcodes the temporary library directory.
10523 hardcode_action=relink
10525 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10526 hardcode_action=immediate
10529 # We cannot hardcode anything, or else we can only hardcode existing
10531 hardcode_action=unsupported
10533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10534 $as_echo "$hardcode_action" >&6; }
10536 if test "$hardcode_action" = relink ||
10537 test "$inherit_rpath" = yes; then
10538 # Fast installation is not supported
10539 enable_fast_install=no
10540 elif test "$shlibpath_overrides_runpath" = yes ||
10541 test "$enable_shared" = no; then
10542 # Fast installation is not necessary
10543 enable_fast_install=needless
10551 if test "x$enable_dlopen" != xyes; then
10552 enable_dlopen=unknown
10553 enable_dlopen_self=unknown
10554 enable_dlopen_self_static=unknown
10561 lt_cv_dlopen="load_add_on"
10563 lt_cv_dlopen_self=yes
10566 mingw* | pw32* | cegcc*)
10567 lt_cv_dlopen="LoadLibrary"
10572 lt_cv_dlopen="dlopen"
10577 # if libdl is installed we need to link against it
10578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10579 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10580 if ${ac_cv_lib_dl_dlopen+:} false; then :
10581 $as_echo_n "(cached) " >&6
10583 ac_check_lib_save_LIBS=$LIBS
10585 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10586 /* end confdefs.h. */
10588 /* Override any GCC internal prototype to avoid an error.
10589 Use char because int might match the return type of a GCC
10590 builtin and then its argument prototype would still apply. */
10603 if ac_fn_c_try_link "$LINENO"; then :
10604 ac_cv_lib_dl_dlopen=yes
10606 ac_cv_lib_dl_dlopen=no
10608 rm -f core conftest.err conftest.$ac_objext \
10609 conftest$ac_exeext conftest.$ac_ext
10610 LIBS=$ac_check_lib_save_LIBS
10612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10613 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10614 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10615 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10618 lt_cv_dlopen="dyld"
10620 lt_cv_dlopen_self=yes
10627 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10628 if test "x$ac_cv_func_shl_load" = xyes; then :
10629 lt_cv_dlopen="shl_load"
10631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10632 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10633 if ${ac_cv_lib_dld_shl_load+:} false; then :
10634 $as_echo_n "(cached) " >&6
10636 ac_check_lib_save_LIBS=$LIBS
10638 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10639 /* end confdefs.h. */
10641 /* Override any GCC internal prototype to avoid an error.
10642 Use char because int might match the return type of a GCC
10643 builtin and then its argument prototype would still apply. */
10651 return shl_load ();
10656 if ac_fn_c_try_link "$LINENO"; then :
10657 ac_cv_lib_dld_shl_load=yes
10659 ac_cv_lib_dld_shl_load=no
10661 rm -f core conftest.err conftest.$ac_objext \
10662 conftest$ac_exeext conftest.$ac_ext
10663 LIBS=$ac_check_lib_save_LIBS
10665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10666 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10667 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
10668 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10670 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10671 if test "x$ac_cv_func_dlopen" = xyes; then :
10672 lt_cv_dlopen="dlopen"
10674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10675 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10676 if ${ac_cv_lib_dl_dlopen+:} false; then :
10677 $as_echo_n "(cached) " >&6
10679 ac_check_lib_save_LIBS=$LIBS
10681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10682 /* end confdefs.h. */
10684 /* Override any GCC internal prototype to avoid an error.
10685 Use char because int might match the return type of a GCC
10686 builtin and then its argument prototype would still apply. */
10699 if ac_fn_c_try_link "$LINENO"; then :
10700 ac_cv_lib_dl_dlopen=yes
10702 ac_cv_lib_dl_dlopen=no
10704 rm -f core conftest.err conftest.$ac_objext \
10705 conftest$ac_exeext conftest.$ac_ext
10706 LIBS=$ac_check_lib_save_LIBS
10708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10709 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10710 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10711 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10714 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10715 if ${ac_cv_lib_svld_dlopen+:} false; then :
10716 $as_echo_n "(cached) " >&6
10718 ac_check_lib_save_LIBS=$LIBS
10719 LIBS="-lsvld $LIBS"
10720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10721 /* end confdefs.h. */
10723 /* Override any GCC internal prototype to avoid an error.
10724 Use char because int might match the return type of a GCC
10725 builtin and then its argument prototype would still apply. */
10738 if ac_fn_c_try_link "$LINENO"; then :
10739 ac_cv_lib_svld_dlopen=yes
10741 ac_cv_lib_svld_dlopen=no
10743 rm -f core conftest.err conftest.$ac_objext \
10744 conftest$ac_exeext conftest.$ac_ext
10745 LIBS=$ac_check_lib_save_LIBS
10747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10748 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10749 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
10750 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10753 $as_echo_n "checking for dld_link in -ldld... " >&6; }
10754 if ${ac_cv_lib_dld_dld_link+:} false; then :
10755 $as_echo_n "(cached) " >&6
10757 ac_check_lib_save_LIBS=$LIBS
10759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10760 /* end confdefs.h. */
10762 /* Override any GCC internal prototype to avoid an error.
10763 Use char because int might match the return type of a GCC
10764 builtin and then its argument prototype would still apply. */
10772 return dld_link ();
10777 if ac_fn_c_try_link "$LINENO"; then :
10778 ac_cv_lib_dld_dld_link=yes
10780 ac_cv_lib_dld_dld_link=no
10782 rm -f core conftest.err conftest.$ac_objext \
10783 conftest$ac_exeext conftest.$ac_ext
10784 LIBS=$ac_check_lib_save_LIBS
10786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
10787 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10788 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
10789 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10810 if test "x$lt_cv_dlopen" != xno; then
10816 case $lt_cv_dlopen in
10818 save_CPPFLAGS="$CPPFLAGS"
10819 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10821 save_LDFLAGS="$LDFLAGS"
10822 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10825 LIBS="$lt_cv_dlopen_libs $LIBS"
10827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
10828 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
10829 if ${lt_cv_dlopen_self+:} false; then :
10830 $as_echo_n "(cached) " >&6
10832 if test "$cross_compiling" = yes; then :
10833 lt_cv_dlopen_self=cross
10835 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10836 lt_status=$lt_dlunknown
10837 cat > conftest.$ac_ext <<_LT_EOF
10838 #line $LINENO "configure"
10839 #include "confdefs.h"
10848 # define LT_DLGLOBAL RTLD_GLOBAL
10851 # define LT_DLGLOBAL DL_GLOBAL
10853 # define LT_DLGLOBAL 0
10857 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10858 find out it does not work in some platform. */
10859 #ifndef LT_DLLAZY_OR_NOW
10861 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10864 # define LT_DLLAZY_OR_NOW DL_LAZY
10867 # define LT_DLLAZY_OR_NOW RTLD_NOW
10870 # define LT_DLLAZY_OR_NOW DL_NOW
10872 # define LT_DLLAZY_OR_NOW 0
10879 /* When -fvisbility=hidden is used, assume the code has been annotated
10880 correspondingly for the symbols needed. */
10881 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
10882 int fnord () __attribute__((visibility("default")));
10885 int fnord () { return 42; }
10888 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10889 int status = $lt_dlunknown;
10893 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10896 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10897 else puts (dlerror ());
10899 /* dlclose (self); */
10907 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10908 (eval $ac_link) 2>&5
10910 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10911 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10912 (./conftest; exit; ) >&5 2>/dev/null
10914 case x$lt_status in
10915 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10916 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10917 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10920 # compilation failed
10921 lt_cv_dlopen_self=no
10928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
10929 $as_echo "$lt_cv_dlopen_self" >&6; }
10931 if test "x$lt_cv_dlopen_self" = xyes; then
10932 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
10934 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
10935 if ${lt_cv_dlopen_self_static+:} false; then :
10936 $as_echo_n "(cached) " >&6
10938 if test "$cross_compiling" = yes; then :
10939 lt_cv_dlopen_self_static=cross
10941 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10942 lt_status=$lt_dlunknown
10943 cat > conftest.$ac_ext <<_LT_EOF
10944 #line $LINENO "configure"
10945 #include "confdefs.h"
10954 # define LT_DLGLOBAL RTLD_GLOBAL
10957 # define LT_DLGLOBAL DL_GLOBAL
10959 # define LT_DLGLOBAL 0
10963 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10964 find out it does not work in some platform. */
10965 #ifndef LT_DLLAZY_OR_NOW
10967 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10970 # define LT_DLLAZY_OR_NOW DL_LAZY
10973 # define LT_DLLAZY_OR_NOW RTLD_NOW
10976 # define LT_DLLAZY_OR_NOW DL_NOW
10978 # define LT_DLLAZY_OR_NOW 0
10985 /* When -fvisbility=hidden is used, assume the code has been annotated
10986 correspondingly for the symbols needed. */
10987 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
10988 int fnord () __attribute__((visibility("default")));
10991 int fnord () { return 42; }
10994 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10995 int status = $lt_dlunknown;
10999 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11002 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11003 else puts (dlerror ());
11005 /* dlclose (self); */
11013 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11014 (eval $ac_link) 2>&5
11016 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11017 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11018 (./conftest; exit; ) >&5 2>/dev/null
11020 case x$lt_status in
11021 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11022 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11023 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11026 # compilation failed
11027 lt_cv_dlopen_self_static=no
11034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11035 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11038 CPPFLAGS="$save_CPPFLAGS"
11039 LDFLAGS="$save_LDFLAGS"
11044 case $lt_cv_dlopen_self in
11045 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11046 *) enable_dlopen_self=unknown ;;
11049 case $lt_cv_dlopen_self_static in
11050 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11051 *) enable_dlopen_self_static=unknown ;;
11073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11074 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11075 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11076 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11077 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11079 $as_echo "yes" >&6; }
11081 # FIXME - insert some real tests, host_os isn't really good enough
11084 if test -n "$STRIP" ; then
11085 striplib="$STRIP -x"
11086 old_striplib="$STRIP -S"
11087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11088 $as_echo "yes" >&6; }
11090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11091 $as_echo "no" >&6; }
11095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11096 $as_echo "no" >&6; }
11112 # Report which library types will actually be built
11113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11114 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11116 $as_echo "$can_build_shared" >&6; }
11118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11119 $as_echo_n "checking whether to build shared libraries... " >&6; }
11120 test "$can_build_shared" = "no" && enable_shared=no
11122 # On AIX, shared libraries and static libraries use the same namespace, and
11123 # are all built from PIC.
11126 test "$enable_shared" = yes && enable_static=no
11127 if test -n "$RANLIB"; then
11128 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11129 postinstall_cmds='$RANLIB $lib'
11134 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11135 test "$enable_shared" = yes && enable_static=no
11139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11140 $as_echo "$enable_shared" >&6; }
11142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11143 $as_echo_n "checking whether to build static libraries... " >&6; }
11144 # Make sure either enable_shared or enable_static is yes.
11145 test "$enable_shared" = yes || enable_static=yes
11146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11147 $as_echo "$enable_static" >&6; }
11154 ac_cpp='$CPP $CPPFLAGS'
11155 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11156 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11157 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11175 ac_config_commands="$ac_config_commands libtool"
11180 # Only expand once:
11184 ac_cpp='$CPP $CPPFLAGS'
11185 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11186 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11187 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11188 if test -n "$ac_tool_prefix"; then
11189 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
11190 set dummy ${ac_tool_prefix}gcc; ac_word=$2
11191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11192 $as_echo_n "checking for $ac_word... " >&6; }
11193 if ${ac_cv_prog_CC+:} false; then :
11194 $as_echo_n "(cached) " >&6
11196 if test -n "$CC"; then
11197 ac_cv_prog_CC="$CC" # Let the user override the test.
11199 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11200 for as_dir in $PATH
11203 test -z "$as_dir" && as_dir=.
11204 for ac_exec_ext in '' $ac_executable_extensions; do
11205 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11206 ac_cv_prog_CC="${ac_tool_prefix}gcc"
11207 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11217 if test -n "$CC"; then
11218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11219 $as_echo "$CC" >&6; }
11221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11222 $as_echo "no" >&6; }
11227 if test -z "$ac_cv_prog_CC"; then
11229 # Extract the first word of "gcc", so it can be a program name with args.
11230 set dummy gcc; ac_word=$2
11231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11232 $as_echo_n "checking for $ac_word... " >&6; }
11233 if ${ac_cv_prog_ac_ct_CC+:} false; then :
11234 $as_echo_n "(cached) " >&6
11236 if test -n "$ac_ct_CC"; then
11237 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11239 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11240 for as_dir in $PATH
11243 test -z "$as_dir" && as_dir=.
11244 for ac_exec_ext in '' $ac_executable_extensions; do
11245 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11246 ac_cv_prog_ac_ct_CC="gcc"
11247 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11256 ac_ct_CC=$ac_cv_prog_ac_ct_CC
11257 if test -n "$ac_ct_CC"; then
11258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
11259 $as_echo "$ac_ct_CC" >&6; }
11261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11262 $as_echo "no" >&6; }
11265 if test "x$ac_ct_CC" = x; then
11268 case $cross_compiling:$ac_tool_warned in
11270 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11271 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11272 ac_tool_warned=yes ;;
11277 CC="$ac_cv_prog_CC"
11280 if test -z "$CC"; then
11281 if test -n "$ac_tool_prefix"; then
11282 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
11283 set dummy ${ac_tool_prefix}cc; ac_word=$2
11284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11285 $as_echo_n "checking for $ac_word... " >&6; }
11286 if ${ac_cv_prog_CC+:} false; then :
11287 $as_echo_n "(cached) " >&6
11289 if test -n "$CC"; then
11290 ac_cv_prog_CC="$CC" # Let the user override the test.
11292 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11293 for as_dir in $PATH
11296 test -z "$as_dir" && as_dir=.
11297 for ac_exec_ext in '' $ac_executable_extensions; do
11298 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11299 ac_cv_prog_CC="${ac_tool_prefix}cc"
11300 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11310 if test -n "$CC"; then
11311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11312 $as_echo "$CC" >&6; }
11314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11315 $as_echo "no" >&6; }
11321 if test -z "$CC"; then
11322 # Extract the first word of "cc", so it can be a program name with args.
11323 set dummy cc; ac_word=$2
11324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11325 $as_echo_n "checking for $ac_word... " >&6; }
11326 if ${ac_cv_prog_CC+:} false; then :
11327 $as_echo_n "(cached) " >&6
11329 if test -n "$CC"; then
11330 ac_cv_prog_CC="$CC" # Let the user override the test.
11332 ac_prog_rejected=no
11333 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11334 for as_dir in $PATH
11337 test -z "$as_dir" && as_dir=.
11338 for ac_exec_ext in '' $ac_executable_extensions; do
11339 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11340 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
11341 ac_prog_rejected=yes
11345 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11352 if test $ac_prog_rejected = yes; then
11353 # We found a bogon in the path, so make sure we never use it.
11354 set dummy $ac_cv_prog_CC
11356 if test $# != 0; then
11357 # We chose a different compiler from the bogus one.
11358 # However, it has the same basename, so the bogon will be chosen
11359 # first if we set CC to just the basename; use the full file name.
11361 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
11367 if test -n "$CC"; then
11368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11369 $as_echo "$CC" >&6; }
11371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11372 $as_echo "no" >&6; }
11377 if test -z "$CC"; then
11378 if test -n "$ac_tool_prefix"; then
11379 for ac_prog in cl.exe
11381 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11382 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11384 $as_echo_n "checking for $ac_word... " >&6; }
11385 if ${ac_cv_prog_CC+:} false; then :
11386 $as_echo_n "(cached) " >&6
11388 if test -n "$CC"; then
11389 ac_cv_prog_CC="$CC" # Let the user override the test.
11391 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11392 for as_dir in $PATH
11395 test -z "$as_dir" && as_dir=.
11396 for ac_exec_ext in '' $ac_executable_extensions; do
11397 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11398 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
11399 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11409 if test -n "$CC"; then
11410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11411 $as_echo "$CC" >&6; }
11413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11414 $as_echo "no" >&6; }
11418 test -n "$CC" && break
11421 if test -z "$CC"; then
11423 for ac_prog in cl.exe
11425 # Extract the first word of "$ac_prog", so it can be a program name with args.
11426 set dummy $ac_prog; ac_word=$2
11427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11428 $as_echo_n "checking for $ac_word... " >&6; }
11429 if ${ac_cv_prog_ac_ct_CC+:} false; then :
11430 $as_echo_n "(cached) " >&6
11432 if test -n "$ac_ct_CC"; then
11433 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11435 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11436 for as_dir in $PATH
11439 test -z "$as_dir" && as_dir=.
11440 for ac_exec_ext in '' $ac_executable_extensions; do
11441 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11442 ac_cv_prog_ac_ct_CC="$ac_prog"
11443 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11452 ac_ct_CC=$ac_cv_prog_ac_ct_CC
11453 if test -n "$ac_ct_CC"; then
11454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
11455 $as_echo "$ac_ct_CC" >&6; }
11457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11458 $as_echo "no" >&6; }
11462 test -n "$ac_ct_CC" && break
11465 if test "x$ac_ct_CC" = x; then
11468 case $cross_compiling:$ac_tool_warned in
11470 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11471 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11472 ac_tool_warned=yes ;;
11481 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11482 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11483 as_fn_error $? "no acceptable C compiler found in \$PATH
11484 See \`config.log' for more details" "$LINENO" 5; }
11486 # Provide some information about the compiler.
11487 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
11490 for ac_option in --version -v -V -qversion; do
11491 { { ac_try="$ac_compiler $ac_option >&5"
11492 case "(($ac_try" in
11493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11494 *) ac_try_echo=$ac_try;;
11496 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11497 $as_echo "$ac_try_echo"; } >&5
11498 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
11500 if test -s conftest.err; then
11502 ... rest of stderr output deleted ...
11503 10q' conftest.err >conftest.er1
11504 cat conftest.er1 >&5
11506 rm -f conftest.er1 conftest.err
11507 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11508 test $ac_status = 0; }
11511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
11512 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
11513 if ${ac_cv_c_compiler_gnu+:} false; then :
11514 $as_echo_n "(cached) " >&6
11516 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11517 /* end confdefs.h. */
11530 if ac_fn_c_try_compile "$LINENO"; then :
11531 ac_compiler_gnu=yes
11535 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11536 ac_cv_c_compiler_gnu=$ac_compiler_gnu
11539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
11540 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
11541 if test $ac_compiler_gnu = yes; then
11546 ac_test_CFLAGS=${CFLAGS+set}
11547 ac_save_CFLAGS=$CFLAGS
11548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
11549 $as_echo_n "checking whether $CC accepts -g... " >&6; }
11550 if ${ac_cv_prog_cc_g+:} false; then :
11551 $as_echo_n "(cached) " >&6
11553 ac_save_c_werror_flag=$ac_c_werror_flag
11554 ac_c_werror_flag=yes
11557 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11558 /* end confdefs.h. */
11568 if ac_fn_c_try_compile "$LINENO"; then :
11569 ac_cv_prog_cc_g=yes
11572 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11573 /* end confdefs.h. */
11583 if ac_fn_c_try_compile "$LINENO"; then :
11586 ac_c_werror_flag=$ac_save_c_werror_flag
11588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11589 /* end confdefs.h. */
11599 if ac_fn_c_try_compile "$LINENO"; then :
11600 ac_cv_prog_cc_g=yes
11602 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11604 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11606 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11607 ac_c_werror_flag=$ac_save_c_werror_flag
11609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
11610 $as_echo "$ac_cv_prog_cc_g" >&6; }
11611 if test "$ac_test_CFLAGS" = set; then
11612 CFLAGS=$ac_save_CFLAGS
11613 elif test $ac_cv_prog_cc_g = yes; then
11614 if test "$GCC" = yes; then
11620 if test "$GCC" = yes; then
11626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
11627 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
11628 if ${ac_cv_prog_cc_c89+:} false; then :
11629 $as_echo_n "(cached) " >&6
11631 ac_cv_prog_cc_c89=no
11633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11634 /* end confdefs.h. */
11635 #include <stdarg.h>
11637 #include <sys/types.h>
11638 #include <sys/stat.h>
11639 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
11640 struct buf { int x; };
11641 FILE * (*rcsopen) (struct buf *, struct stat *, int);
11642 static char *e (p, i)
11648 static char *f (char * (*g) (char **, int), char **p, ...)
11653 s = g (p, va_arg (v,int));
11658 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
11659 function prototypes and stuff, but not '\xHH' hex character constants.
11660 These don't provoke an error unfortunately, instead are silently treated
11661 as 'x'. The following induces an error, until -std is added to get
11662 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
11663 array size at least. It's necessary to write '\x00'==0 to get something
11664 that's true only with -std. */
11665 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
11667 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
11668 inside strings and character constants. */
11670 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
11672 int test (int i, double x);
11673 struct s1 {int (*f) (int a);};
11674 struct s2 {int (*f) (double a);};
11675 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
11681 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
11686 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
11687 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
11689 CC="$ac_save_CC $ac_arg"
11690 if ac_fn_c_try_compile "$LINENO"; then :
11691 ac_cv_prog_cc_c89=$ac_arg
11693 rm -f core conftest.err conftest.$ac_objext
11694 test "x$ac_cv_prog_cc_c89" != "xno" && break
11696 rm -f conftest.$ac_ext
11701 case "x$ac_cv_prog_cc_c89" in
11703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
11704 $as_echo "none needed" >&6; } ;;
11706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
11707 $as_echo "unsupported" >&6; } ;;
11709 CC="$CC $ac_cv_prog_cc_c89"
11710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
11711 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
11713 if test "x$ac_cv_prog_cc_c89" != xno; then :
11718 ac_cpp='$CPP $CPPFLAGS'
11719 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11720 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11721 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11723 depcc="$CC" am_compiler_list=
11725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
11726 $as_echo_n "checking dependency style of $depcc... " >&6; }
11727 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
11728 $as_echo_n "(cached) " >&6
11730 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
11731 # We make a subdir and do the tests there. Otherwise we can end up
11732 # making bogus files that we don't know about and never remove. For
11733 # instance it was reported that on HP-UX the gcc test will end up
11734 # making a dummy file named `D' -- because `-MD' means `put the output
11737 # Copy depcomp to subdir because otherwise we won't find it if we're
11738 # using a relative directory.
11739 cp "$am_depcomp" conftest.dir
11741 # We will build objects and dependencies in a subdirectory because
11742 # it helps to detect inapplicable dependency modes. For instance
11743 # both Tru64's cc and ICC support -MD to output dependencies as a
11744 # side effect of compilation, but ICC will put the dependencies in
11745 # the current directory while Tru64 will put them in the object
11749 am_cv_CC_dependencies_compiler_type=none
11750 if test "$am_compiler_list" = ""; then
11751 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
11753 am__universal=false
11754 case " $depcc " in #(
11755 *\ -arch\ *\ -arch\ *) am__universal=true ;;
11758 for depmode in $am_compiler_list; do
11759 # Setup a source with many dependencies, because some compilers
11760 # like to wrap large dependency lists on column 80 (with \), and
11761 # we should not choose a depcomp mode which is confused by this.
11763 # We need to recreate these files for each test, as the compiler may
11764 # overwrite some of them when testing with obscure command lines.
11765 # This happens at least with the AIX C compiler.
11767 for i in 1 2 3 4 5 6; do
11768 echo '#include "conftst'$i'.h"' >> sub/conftest.c
11769 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
11770 # Solaris 8's {/usr,}/bin/sh.
11771 touch sub/conftst$i.h
11773 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
11775 # We check with `-c' and `-o' for the sake of the "dashmstdout"
11776 # mode. It turns out that the SunPro C++ compiler does not properly
11777 # handle `-M -o', and we need to detect this. Also, some Intel
11778 # versions had trouble with output in subdirs
11779 am__obj=sub/conftest.${OBJEXT-o}
11780 am__minus_obj="-o $am__obj"
11783 # This depmode causes a compiler race in universal mode.
11784 test "$am__universal" = false || continue
11787 # after this tag, mechanisms are not by side-effect, so they'll
11788 # only be used when explicitly requested
11789 if test "x$enable_dependency_tracking" = xyes; then
11795 msvisualcpp | msvcmsys)
11796 # This compiler won't grok `-c -o', but also, the minuso test has
11797 # not run yet. These depmodes are late enough in the game, and
11798 # so weak that their functioning should not be impacted.
11799 am__obj=conftest.${OBJEXT-o}
11804 if depmode=$depmode \
11805 source=sub/conftest.c object=$am__obj \
11806 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
11807 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
11808 >/dev/null 2>conftest.err &&
11809 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
11810 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
11811 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
11812 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
11813 # icc doesn't choke on unknown options, it will just issue warnings
11814 # or remarks (even with -Werror). So we grep stderr for any message
11815 # that says an option was ignored or not supported.
11816 # When given -MP, icc 7.0 and 7.1 complain thusly:
11817 # icc: Command line warning: ignoring option '-M'; no argument required
11818 # The diagnosis changed in icc 8.0:
11819 # icc: Command line remark: option '-MP' not supported
11820 if (grep 'ignoring option' conftest.err ||
11821 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
11822 am_cv_CC_dependencies_compiler_type=$depmode
11829 rm -rf conftest.dir
11831 am_cv_CC_dependencies_compiler_type=none
11835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
11836 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
11837 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
11840 test "x$enable_dependency_tracking" != xno \
11841 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
11842 am__fastdepCC_TRUE=
11843 am__fastdepCC_FALSE='#'
11845 am__fastdepCC_TRUE='#'
11846 am__fastdepCC_FALSE=
11851 # Extract the first word of "guile", so it can be a program name with args.
11852 set dummy guile; ac_word=$2
11853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11854 $as_echo_n "checking for $ac_word... " >&6; }
11855 if ${ac_cv_path_GUILE+:} false; then :
11856 $as_echo_n "(cached) " >&6
11860 ac_cv_path_GUILE="$GUILE" # Let the user override the test with a path.
11863 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11864 for as_dir in $PATH
11867 test -z "$as_dir" && as_dir=.
11868 for ac_exec_ext in '' $ac_executable_extensions; do
11869 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11870 ac_cv_path_GUILE="$as_dir/$ac_word$ac_exec_ext"
11871 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11881 GUILE=$ac_cv_path_GUILE
11882 if test -n "$GUILE"; then
11883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GUILE" >&5
11884 $as_echo "$GUILE" >&6; }
11886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11887 $as_echo "no" >&6; }
11891 if test "$GUILE" = "" ; then
11892 as_fn_error $? "guile required but not found" "$LINENO" 5
11895 # Extract the first word of "guile-config", so it can be a program name with args.
11896 set dummy guile-config; ac_word=$2
11897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11898 $as_echo_n "checking for $ac_word... " >&6; }
11899 if ${ac_cv_path_GUILE_CONFIG+:} false; then :
11900 $as_echo_n "(cached) " >&6
11902 case $GUILE_CONFIG in
11904 ac_cv_path_GUILE_CONFIG="$GUILE_CONFIG" # Let the user override the test with a path.
11907 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11908 for as_dir in $PATH
11911 test -z "$as_dir" && as_dir=.
11912 for ac_exec_ext in '' $ac_executable_extensions; do
11913 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11914 ac_cv_path_GUILE_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11915 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11925 GUILE_CONFIG=$ac_cv_path_GUILE_CONFIG
11926 if test -n "$GUILE_CONFIG"; then
11927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GUILE_CONFIG" >&5
11928 $as_echo "$GUILE_CONFIG" >&6; }
11930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11931 $as_echo "no" >&6; }
11935 if test "$GUILE_CONFIG" = "" ; then
11936 as_fn_error $? "guile-config required but not found" "$LINENO" 5
11939 # Extract the first word of "guile-tools", so it can be a program name with args.
11940 set dummy guile-tools; ac_word=$2
11941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11942 $as_echo_n "checking for $ac_word... " >&6; }
11943 if ${ac_cv_path_GUILE_TOOLS+:} false; then :
11944 $as_echo_n "(cached) " >&6
11946 case $GUILE_TOOLS in
11948 ac_cv_path_GUILE_TOOLS="$GUILE_TOOLS" # Let the user override the test with a path.
11951 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11952 for as_dir in $PATH
11955 test -z "$as_dir" && as_dir=.
11956 for ac_exec_ext in '' $ac_executable_extensions; do
11957 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11958 ac_cv_path_GUILE_TOOLS="$as_dir/$ac_word$ac_exec_ext"
11959 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11969 GUILE_TOOLS=$ac_cv_path_GUILE_TOOLS
11970 if test -n "$GUILE_TOOLS"; then
11971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GUILE_TOOLS" >&5
11972 $as_echo "$GUILE_TOOLS" >&6; }
11974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11975 $as_echo "no" >&6; }
11982 # Check whether --with-gnu-ld was given.
11983 if test "${with_gnu_ld+set}" = set; then :
11984 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11989 # Prepare PATH_SEPARATOR.
11990 # The user is always right.
11991 if test "${PATH_SEPARATOR+set}" != set; then
11992 echo "#! /bin/sh" >conf$$.sh
11993 echo "exit 0" >>conf$$.sh
11995 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12003 if test "$GCC" = yes; then
12004 # Check if gcc -print-prog-name=ld gives a path.
12005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
12006 $as_echo_n "checking for ld used by GCC... " >&6; }
12009 # gcc leaves a trailing carriage return which upsets mingw
12010 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12012 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12015 # Accept absolute paths.
12016 [\\/]* | [A-Za-z]:[\\/]*)
12017 re_direlt='/[^/][^/]*/\.\./'
12018 # Canonicalize the path of ld
12019 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
12020 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
12021 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
12023 test -z "$LD" && LD="$ac_prog"
12026 # If it fails, then pretend we aren't using GCC.
12030 # If it is relative, then search for the first ld in PATH.
12031 with_gnu_ld=unknown
12034 elif test "$with_gnu_ld" = yes; then
12035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12036 $as_echo_n "checking for GNU ld... " >&6; }
12038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12039 $as_echo_n "checking for non-GNU ld... " >&6; }
12041 if ${acl_cv_path_LD+:} false; then :
12042 $as_echo_n "(cached) " >&6
12044 if test -z "$LD"; then
12045 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
12046 for ac_dir in $PATH; do
12047 test -z "$ac_dir" && ac_dir=.
12048 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12049 acl_cv_path_LD="$ac_dir/$ac_prog"
12050 # Check to see if the program is GNU ld. I'd rather use --version,
12051 # but apparently some GNU ld's only accept -v.
12052 # Break only if it was the GNU/non-GNU ld that we prefer.
12053 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
12054 *GNU* | *'with BFD'*)
12055 test "$with_gnu_ld" != no && break ;;
12057 test "$with_gnu_ld" != yes && break ;;
12063 acl_cv_path_LD="$LD" # Let the user override the test with a path.
12067 LD="$acl_cv_path_LD"
12068 if test -n "$LD"; then
12069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12070 $as_echo "$LD" >&6; }
12072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12073 $as_echo "no" >&6; }
12075 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
12076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12077 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12078 if ${acl_cv_prog_gnu_ld+:} false; then :
12079 $as_echo_n "(cached) " >&6
12081 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
12082 case `$LD -v 2>&1 </dev/null` in
12083 *GNU* | *'with BFD'*)
12084 acl_cv_prog_gnu_ld=yes ;;
12086 acl_cv_prog_gnu_ld=no ;;
12089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
12090 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
12091 with_gnu_ld=$acl_cv_prog_gnu_ld
12096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
12097 $as_echo_n "checking for shared library run path origin... " >&6; }
12098 if ${acl_cv_rpath+:} false; then :
12099 $as_echo_n "(cached) " >&6
12102 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
12103 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
12105 rm -f ./conftest.sh
12109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
12110 $as_echo "$acl_cv_rpath" >&6; }
12112 acl_libext="$acl_cv_libext"
12113 acl_shlibext="$acl_cv_shlibext"
12114 acl_libname_spec="$acl_cv_libname_spec"
12115 acl_library_names_spec="$acl_cv_library_names_spec"
12116 acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
12117 acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
12118 acl_hardcode_direct="$acl_cv_hardcode_direct"
12119 acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
12120 # Check whether --enable-rpath was given.
12121 if test "${enable_rpath+set}" = set; then :
12122 enableval=$enable_rpath; :
12134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit host" >&5
12135 $as_echo_n "checking for 64-bit host... " >&6; }
12136 if ${gl_cv_solaris_64bit+:} false; then :
12137 $as_echo_n "(cached) " >&6
12139 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12140 /* end confdefs.h. */
12147 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12148 $EGREP "sixtyfour bits" >/dev/null 2>&1; then :
12149 gl_cv_solaris_64bit=yes
12151 gl_cv_solaris_64bit=no
12157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_solaris_64bit" >&5
12158 $as_echo "$gl_cv_solaris_64bit" >&6; }
12159 if test $gl_cv_solaris_64bit = yes; then
12160 acl_libdirstem=lib/64
12161 case "$host_cpu" in
12162 sparc*) acl_libdirstem2=lib/sparcv9 ;;
12163 i*86 | x86_64) acl_libdirstem2=lib/amd64 ;;
12168 searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
12169 if test -n "$searchpath"; then
12170 acl_save_IFS="${IFS= }"; IFS=":"
12171 for searchdir in $searchpath; do
12172 if test -d "$searchdir"; then
12173 case "$searchdir" in
12174 */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
12176 # Better ignore directories of this form. They are misleading.
12178 *) searchdir=`cd "$searchdir" && pwd`
12179 case "$searchdir" in
12180 */lib64 ) acl_libdirstem=lib64 ;;
12185 IFS="$acl_save_IFS"
12189 test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem"
12192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking libguile compile flags" >&5
12193 $as_echo_n "checking libguile compile flags... " >&6; }
12194 GUILE_CFLAGS="`$GUILE_CONFIG compile`"
12195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GUILE_CFLAGS" >&5
12196 $as_echo "$GUILE_CFLAGS" >&6; }
12198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking libguile link flags" >&5
12199 $as_echo_n "checking libguile link flags... " >&6; }
12200 GUILE_LDFLAGS="`$GUILE_CONFIG link`"
12201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GUILE_LDFLAGS" >&5
12202 $as_echo "$GUILE_LDFLAGS" >&6; }
12208 if test "$enable_rpath" != no; then
12209 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
12212 for opt in $GUILE_LDFLAGS; do
12213 if test -n "$next"; then
12215 if test "X$dir" != "X/usr/$acl_libdirstem" \
12216 && test "X$dir" != "X/usr/$acl_libdirstem2"; then
12217 rpathdirs="$rpathdirs $dir"
12223 -L*) dir=`echo "X$opt" | sed -e 's,^X-L,,'`
12224 if test "X$dir" != "X/usr/$acl_libdirstem" \
12225 && test "X$dir" != "X/usr/$acl_libdirstem2"; then
12226 rpathdirs="$rpathdirs $dir"
12233 if test "X$rpathdirs" != "X"; then
12234 if test -n """"; then
12235 for dir in $rpathdirs; do
12236 GUILE_LIBS="${GUILE_LIBS}${GUILE_LIBS:+ }-R$dir"
12239 if test -n "$acl_hardcode_libdir_separator"; then
12241 for dir in $rpathdirs; do
12242 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$dir"
12244 acl_save_libdir="$libdir"
12246 eval flag=\"$acl_hardcode_libdir_flag_spec\"
12247 libdir="$acl_save_libdir"
12250 for dir in $rpathdirs; do
12251 acl_save_libdir="$libdir"
12253 eval flag=\"$acl_hardcode_libdir_flag_spec\"
12254 libdir="$acl_save_libdir"
12255 GUILE_LIBS="${GUILE_LIBS}${GUILE_LIBS:+ }$flag"
12264 GUILE_LIBS="$GUILE_LDFLAGS $GUILE_LIBS"
12269 if test "$enable_rpath" != no; then
12270 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
12273 for opt in $GUILE_LDFLAGS; do
12274 if test -n "$next"; then
12276 if test "X$dir" != "X/usr/$acl_libdirstem" \
12277 && test "X$dir" != "X/usr/$acl_libdirstem2"; then
12278 rpathdirs="$rpathdirs $dir"
12284 -L*) dir=`echo "X$opt" | sed -e 's,^X-L,,'`
12285 if test "X$dir" != "X/usr/$acl_libdirstem" \
12286 && test "X$dir" != "X/usr/$acl_libdirstem2"; then
12287 rpathdirs="$rpathdirs $dir"
12294 if test "X$rpathdirs" != "X"; then
12295 if test -n ""yes""; then
12296 for dir in $rpathdirs; do
12297 GUILE_LTLIBS="${GUILE_LTLIBS}${GUILE_LTLIBS:+ }-R$dir"
12300 if test -n "$acl_hardcode_libdir_separator"; then
12302 for dir in $rpathdirs; do
12303 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$dir"
12305 acl_save_libdir="$libdir"
12307 eval flag=\"$acl_hardcode_libdir_flag_spec\"
12308 libdir="$acl_save_libdir"
12309 GUILE_LTLIBS="$flag"
12311 for dir in $rpathdirs; do
12312 acl_save_libdir="$libdir"
12314 eval flag=\"$acl_hardcode_libdir_flag_spec\"
12315 libdir="$acl_save_libdir"
12316 GUILE_LTLIBS="${GUILE_LTLIBS}${GUILE_LTLIBS:+ }$flag"
12325 GUILE_LTLIBS="$GUILE_LDFLAGS $GUILE_LTLIBS"
12334 for lib in SDL SDL_image SDL_gfx SDL_mixer ; do
12335 as_ac_Lib=`$as_echo "ac_cv_lib_${lib}''_main" | $as_tr_sh`
12336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -l${lib}" >&5
12337 $as_echo_n "checking for main in -l${lib}... " >&6; }
12338 if eval \${$as_ac_Lib+:} false; then :
12339 $as_echo_n "(cached) " >&6
12341 ac_check_lib_save_LIBS=$LIBS
12342 LIBS="-l${lib} $LIBS"
12343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12344 /* end confdefs.h. */
12355 if ac_fn_c_try_link "$LINENO"; then :
12356 eval "$as_ac_Lib=yes"
12358 eval "$as_ac_Lib=no"
12360 rm -f core conftest.err conftest.$ac_objext \
12361 conftest$ac_exeext conftest.$ac_ext
12362 LIBS=$ac_check_lib_save_LIBS
12364 eval ac_res=\$$as_ac_Lib
12365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
12366 $as_echo "$ac_res" >&6; }
12367 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
12368 SDL_LIBS="${SDL_LIBS} -l${lib}"
12370 as_fn_error $? "*** ${lib} library not found!" "$LINENO" 5
12376 for lib in GL GLU ; do
12377 as_ac_Lib=`$as_echo "ac_cv_lib_${lib}''_main" | $as_tr_sh`
12378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -l${lib}" >&5
12379 $as_echo_n "checking for main in -l${lib}... " >&6; }
12380 if eval \${$as_ac_Lib+:} false; then :
12381 $as_echo_n "(cached) " >&6
12383 ac_check_lib_save_LIBS=$LIBS
12384 LIBS="-l${lib} $LIBS"
12385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12386 /* end confdefs.h. */
12397 if ac_fn_c_try_link "$LINENO"; then :
12398 eval "$as_ac_Lib=yes"
12400 eval "$as_ac_Lib=no"
12402 rm -f core conftest.err conftest.$ac_objext \
12403 conftest$ac_exeext conftest.$ac_ext
12404 LIBS=$ac_check_lib_save_LIBS
12406 eval ac_res=\$$as_ac_Lib
12407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
12408 $as_echo "$ac_res" >&6; }
12409 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
12410 GL_LIBS="${GL_LIBS} -l${lib}"
12412 as_fn_error $? "*** ${lib} library not found!" "$LINENO" 5
12418 for lib in ftgl ; do
12419 as_ac_Lib=`$as_echo "ac_cv_lib_${lib}''_main" | $as_tr_sh`
12420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -l${lib}" >&5
12421 $as_echo_n "checking for main in -l${lib}... " >&6; }
12422 if eval \${$as_ac_Lib+:} false; then :
12423 $as_echo_n "(cached) " >&6
12425 ac_check_lib_save_LIBS=$LIBS
12426 LIBS="-l${lib} $LIBS"
12427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12428 /* end confdefs.h. */
12439 if ac_fn_c_try_link "$LINENO"; then :
12440 eval "$as_ac_Lib=yes"
12442 eval "$as_ac_Lib=no"
12444 rm -f core conftest.err conftest.$ac_objext \
12445 conftest$ac_exeext conftest.$ac_ext
12446 LIBS=$ac_check_lib_save_LIBS
12448 eval ac_res=\$$as_ac_Lib
12449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
12450 $as_echo "$ac_res" >&6; }
12451 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
12452 FTGL_LIBS="${FTGL_LIBS} -l${lib}"
12454 as_fn_error $? "*** ${lib} library not found!" "$LINENO" 5
12463 ac_config_headers="$ac_config_headers config.h"
12465 ac_config_files="$ac_config_files Makefile src/Makefile"
12467 cat >confcache <<\_ACEOF
12468 # This file is a shell script that caches the results of configure
12469 # tests run on this system so they can be shared between configure
12470 # scripts and configure runs, see configure's option --config-cache.
12471 # It is not useful on other systems. If it contains results you don't
12472 # want to keep, you may remove or edit it.
12474 # config.status only pays attention to the cache file if you give it
12475 # the --recheck option to rerun configure.
12477 # `ac_cv_env_foo' variables (set or unset) will be overridden when
12478 # loading this file, other *unset* `ac_cv_foo' will be assigned the
12479 # following values.
12483 # The following way of writing the cache mishandles newlines in values,
12484 # but we know of no workaround that is simple, portable, and efficient.
12485 # So, we kill variables containing newlines.
12486 # Ultrix sh set writes to stderr and can't be redirected directly,
12487 # and sets the high bit in the cache file unless we assign to the vars.
12489 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12490 eval ac_val=\$$ac_var
12494 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
12495 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
12498 _ | IFS | as_nl) ;; #(
12499 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
12500 *) { eval $ac_var=; unset $ac_var;} ;;
12506 case $as_nl`(ac_space=' '; set) 2>&1` in #(
12507 *${as_nl}ac_space=\ *)
12508 # `set' does not quote correctly, so add quotes: double-quote
12509 # substitution turns \\\\ into \\, and sed turns \\ into \.
12512 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12515 # `set' quotes correctly as required by POSIX, so do not add quotes.
12516 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
12525 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12527 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12529 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12530 if test -w "$cache_file"; then
12531 if test "x$cache_file" != "x/dev/null"; then
12532 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
12533 $as_echo "$as_me: updating cache $cache_file" >&6;}
12534 if test ! -f "$cache_file" || test -h "$cache_file"; then
12535 cat confcache >"$cache_file"
12537 case $cache_file in #(
12539 mv -f confcache "$cache_file"$$ &&
12540 mv -f "$cache_file"$$ "$cache_file" ;; #(
12542 mv -f confcache "$cache_file" ;;
12547 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
12548 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
12553 test "x$prefix" = xNONE && prefix=$ac_default_prefix
12554 # Let make expand exec_prefix.
12555 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12557 DEFS=-DHAVE_CONFIG_H
12562 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12563 # 1. Remove the extension, and $U if already installed.
12564 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
12565 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
12566 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
12567 # will be set to the directory where LIBOBJS objects are built.
12568 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12569 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
12571 LIBOBJS=$ac_libobjs
12573 LTLIBOBJS=$ac_ltlibobjs
12576 if test -n "$EXEEXT"; then
12578 am__EXEEXT_FALSE='#'
12580 am__EXEEXT_TRUE='#'
12584 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
12585 as_fn_error $? "conditional \"AMDEP\" was never defined.
12586 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12588 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
12589 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
12590 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12592 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
12593 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
12594 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12597 : "${CONFIG_STATUS=./config.status}"
12599 ac_clean_files_save=$ac_clean_files
12600 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12601 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
12602 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
12604 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
12606 # Generated by $as_me.
12607 # Run this file to recreate the current configuration.
12608 # Compiler output produced by configure, useful for debugging
12609 # configure, is in config.log if it exists.
12612 ac_cs_recheck=false
12615 SHELL=\${CONFIG_SHELL-$SHELL}
12618 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
12619 ## -------------------- ##
12620 ## M4sh Initialization. ##
12621 ## -------------------- ##
12623 # Be more Bourne compatible
12624 DUALCASE=1; export DUALCASE # for MKS sh
12625 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
12628 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
12629 # is contrary to our usage. Disable this feature.
12630 alias -g '${1+"$@"}'='"$@"'
12631 setopt NO_GLOB_SUBST
12633 case `(set -o) 2>/dev/null` in #(
12645 # Printing a long string crashes Solaris 7 /usr/bin/printf.
12646 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12647 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
12648 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
12649 # Prefer a ksh shell builtin over an external printf program on Solaris,
12650 # but without wasting forks for bash or zsh.
12651 if test -z "$BASH_VERSION$ZSH_VERSION" \
12652 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
12653 as_echo='print -r --'
12654 as_echo_n='print -rn --'
12655 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
12656 as_echo='printf %s\n'
12657 as_echo_n='printf %s'
12659 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
12660 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
12661 as_echo_n='/usr/ucb/echo -n'
12663 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
12664 as_echo_n_body='eval
12668 expr "X$arg" : "X\\(.*\\)$as_nl";
12669 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
12671 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
12673 export as_echo_n_body
12674 as_echo_n='sh -c $as_echo_n_body as_echo'
12676 export as_echo_body
12677 as_echo='sh -c $as_echo_body as_echo'
12680 # The user is always right.
12681 if test "${PATH_SEPARATOR+set}" != set; then
12683 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
12684 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
12691 # We need space, tab and new line, in precisely that order. Quoting is
12692 # there to prevent editors from complaining about space-tab.
12693 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
12694 # splitting by setting IFS to empty value.)
12697 # Find who we are. Look in the path if we contain no directory separator.
12700 *[\\/]* ) as_myself=$0 ;;
12701 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12702 for as_dir in $PATH
12705 test -z "$as_dir" && as_dir=.
12706 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12712 # We did not find ourselves, most probably we were run as `sh COMMAND'
12713 # in which case we are not to be found in the path.
12714 if test "x$as_myself" = x; then
12717 if test ! -f "$as_myself"; then
12718 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
12722 # Unset variables that we do not need and which cause bugs (e.g. in
12723 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
12724 # suppresses any "Segmentation fault" message there. '((' could
12725 # trigger a bug in pdksh 5.2.14.
12726 for as_var in BASH_ENV ENV MAIL MAILPATH
12727 do eval test x\${$as_var+set} = xset \
12728 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
12741 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12744 # as_fn_error STATUS ERROR [LINENO LOG_FD]
12745 # ----------------------------------------
12746 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
12747 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
12748 # script with STATUS, using 1 if that was 0.
12751 as_status=$1; test $as_status -eq 0 && as_status=1
12753 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
12754 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
12756 $as_echo "$as_me: error: $2" >&2
12757 as_fn_exit $as_status
12761 # as_fn_set_status STATUS
12762 # -----------------------
12763 # Set $? to STATUS, without forking.
12764 as_fn_set_status ()
12767 } # as_fn_set_status
12769 # as_fn_exit STATUS
12770 # -----------------
12771 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
12775 as_fn_set_status $1
12781 # Portably unset VAR.
12784 { eval $1=; unset $1;}
12786 as_unset=as_fn_unset
12787 # as_fn_append VAR VALUE
12788 # ----------------------
12789 # Append the text in VALUE to the end of the definition contained in VAR. Take
12790 # advantage of any shell optimizations that allow amortized linear growth over
12791 # repeated appends, instead of the typical quadratic growth present in naive
12793 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
12794 eval 'as_fn_append ()
12805 # as_fn_arith ARG...
12806 # ------------------
12807 # Perform arithmetic evaluation on the ARGs, and store the result in the
12808 # global $as_val. Take advantage of shells that can avoid forks. The arguments
12809 # must be portable across $(()) and expr.
12810 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
12811 eval 'as_fn_arith ()
12818 as_val=`expr "$@" || test $? -eq 1`
12823 if expr a : '\(a\)' >/dev/null 2>&1 &&
12824 test "X`expr 00001 : '.*\(...\)'`" = X001; then
12830 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
12831 as_basename=basename
12836 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
12842 as_me=`$as_basename -- "$0" ||
12843 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12844 X"$0" : 'X\(//\)$' \| \
12845 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
12847 sed '/^.*\/\([^/][^/]*\)\/*$/{
12861 # Avoid depending upon Character Ranges.
12862 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12863 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12864 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12865 as_cr_digits='0123456789'
12866 as_cr_alnum=$as_cr_Letters$as_cr_digits
12868 ECHO_C= ECHO_N= ECHO_T=
12869 case `echo -n x` in #(((((
12871 case `echo 'xy\c'` in
12872 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
12874 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
12881 rm -f conf$$ conf$$.exe conf$$.file
12882 if test -d conf$$.dir; then
12883 rm -f conf$$.dir/conf$$.file
12886 mkdir conf$$.dir 2>/dev/null
12888 if (echo >conf$$.file) 2>/dev/null; then
12889 if ln -s conf$$.file conf$$ 2>/dev/null; then
12891 # ... but there are two gotchas:
12892 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
12893 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
12894 # In both cases, we have to default to `cp -p'.
12895 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
12897 elif ln conf$$.file conf$$ 2>/dev/null; then
12905 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
12906 rmdir conf$$.dir 2>/dev/null
12911 # Create "$as_dir" as a directory, including parents if necessary.
12916 -*) as_dir=./$as_dir;;
12918 test -d "$as_dir" || eval $as_mkdir_p || {
12922 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
12923 *) as_qdir=$as_dir;;
12925 as_dirs="'$as_qdir' $as_dirs"
12926 as_dir=`$as_dirname -- "$as_dir" ||
12927 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12928 X"$as_dir" : 'X\(//\)[^/]' \| \
12929 X"$as_dir" : 'X\(//\)$' \| \
12930 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12931 $as_echo X"$as_dir" |
12932 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12936 /^X\(\/\/\)[^/].*/{
12949 test -d "$as_dir" && break
12951 test -z "$as_dirs" || eval "mkdir $as_dirs"
12952 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
12956 if mkdir -p . 2>/dev/null; then
12957 as_mkdir_p='mkdir -p "$as_dir"'
12959 test -d ./-p && rmdir ./-p
12963 if test -x / >/dev/null 2>&1; then
12964 as_test_x='test -x'
12966 if ls -dL / >/dev/null 2>&1; then
12973 if test -d "$1"; then
12979 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
12980 ???[sx]*):;;*)false;;esac;fi
12984 as_executable_p=$as_test_x
12986 # Sed expression to map a string onto a valid CPP name.
12987 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12989 # Sed expression to map a string onto a valid variable name.
12990 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12994 ## ----------------------------------- ##
12995 ## Main body of $CONFIG_STATUS script. ##
12996 ## ----------------------------------- ##
12998 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
13000 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13001 # Save the log message, to keep $0 and so on meaningful, and to
13002 # report actual input values of CONFIG_FILES etc. instead of their
13003 # values after options handling.
13005 This file was extended by gacela $as_me 0.5, which was
13006 generated by GNU Autoconf 2.68. Invocation command line was
13008 CONFIG_FILES = $CONFIG_FILES
13009 CONFIG_HEADERS = $CONFIG_HEADERS
13010 CONFIG_LINKS = $CONFIG_LINKS
13011 CONFIG_COMMANDS = $CONFIG_COMMANDS
13014 on `(hostname || uname -n) 2>/dev/null | sed 1q`
13019 case $ac_config_files in *"
13020 "*) set x $ac_config_files; shift; ac_config_files=$*;;
13023 case $ac_config_headers in *"
13024 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
13028 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13029 # Files that config.status was made for.
13030 config_files="$ac_config_files"
13031 config_headers="$ac_config_headers"
13032 config_commands="$ac_config_commands"
13036 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13038 \`$as_me' instantiates files and other configuration actions
13039 from templates according to the current configuration. Unless the files
13040 and actions are specified as TAGs, all are instantiated by default.
13042 Usage: $0 [OPTION]... [TAG]...
13044 -h, --help print this help, then exit
13045 -V, --version print version number and configuration settings, then exit
13046 --config print configuration, then exit
13047 -q, --quiet, --silent
13048 do not print progress messages
13049 -d, --debug don't remove temporary files
13050 --recheck update $as_me by reconfiguring in the same conditions
13051 --file=FILE[:TEMPLATE]
13052 instantiate the configuration file FILE
13053 --header=FILE[:TEMPLATE]
13054 instantiate the configuration header FILE
13056 Configuration files:
13059 Configuration headers:
13062 Configuration commands:
13065 Report bugs to <jsf@jsancho.org>."
13068 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13069 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
13071 gacela config.status 0.5
13072 configured by $0, generated by GNU Autoconf 2.68,
13073 with options \\"\$ac_cs_config\\"
13075 Copyright (C) 2010 Free Software Foundation, Inc.
13076 This config.status script is free software; the Free Software Foundation
13077 gives unlimited permission to copy, distribute and modify it."
13084 test -n "\$AWK" || AWK=awk
13087 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13088 # The default lists apply if the user does not specify any file.
13094 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13095 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
13099 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13111 # Handling of the options.
13112 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13114 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
13115 $as_echo "$ac_cs_version"; exit ;;
13116 --config | --confi | --conf | --con | --co | --c )
13117 $as_echo "$ac_cs_config"; exit ;;
13118 --debug | --debu | --deb | --de | --d | -d )
13120 --file | --fil | --fi | --f )
13123 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13124 '') as_fn_error $? "missing file argument" ;;
13126 as_fn_append CONFIG_FILES " '$ac_optarg'"
13127 ac_need_defaults=false;;
13128 --header | --heade | --head | --hea )
13131 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13133 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
13134 ac_need_defaults=false;;
13136 # Conflict between --help and --header
13137 as_fn_error $? "ambiguous option: \`$1'
13138 Try \`$0 --help' for more information.";;
13139 --help | --hel | -h )
13140 $as_echo "$ac_cs_usage"; exit ;;
13141 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13142 | -silent | --silent | --silen | --sile | --sil | --si | --s)
13145 # This is an error.
13146 -*) as_fn_error $? "unrecognized option: \`$1'
13147 Try \`$0 --help' for more information." ;;
13149 *) as_fn_append ac_config_targets " $1"
13150 ac_need_defaults=false ;;
13156 ac_configure_extra_args=
13158 if $ac_cs_silent; then
13160 ac_configure_extra_args="$ac_configure_extra_args --silent"
13164 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13165 if \$ac_cs_recheck; then
13166 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13168 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
13169 CONFIG_SHELL='$SHELL'
13170 export CONFIG_SHELL
13175 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13179 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13180 ## Running $as_me. ##
13186 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13190 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
13193 # The HP-UX ksh and POSIX shell print the target directory to stdout
13194 # if CDPATH is set.
13195 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13197 sed_quote_subst='$sed_quote_subst'
13198 double_quote_subst='$double_quote_subst'
13199 delay_variable_subst='$delay_variable_subst'
13200 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
13201 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
13202 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
13203 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
13204 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
13205 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
13206 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
13207 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
13208 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
13209 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
13210 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
13211 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
13212 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
13213 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
13214 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
13215 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
13216 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
13217 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
13218 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
13219 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
13220 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
13221 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
13222 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
13223 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
13224 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
13225 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
13226 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
13227 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
13228 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
13229 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
13230 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
13231 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
13232 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
13233 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
13234 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
13235 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
13236 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
13237 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
13238 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
13239 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
13240 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
13241 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
13242 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
13243 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
13244 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
13245 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13246 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13247 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
13248 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
13249 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
13250 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
13251 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
13252 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
13253 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
13254 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
13255 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
13256 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"`'
13257 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
13258 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
13259 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
13260 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
13261 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
13262 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
13263 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
13264 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
13265 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
13266 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
13267 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
13268 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
13269 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
13270 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
13271 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
13272 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
13273 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
13274 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
13275 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13276 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
13277 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
13278 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
13279 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
13280 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
13281 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
13282 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13283 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
13284 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13285 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
13286 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13287 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
13288 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
13289 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
13290 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
13291 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
13292 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
13293 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
13294 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
13295 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
13296 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
13297 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
13298 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
13299 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
13300 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
13301 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
13302 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
13303 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
13304 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
13305 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
13306 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
13307 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
13308 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
13309 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
13310 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
13311 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
13312 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
13313 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
13314 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
13315 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
13316 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
13317 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13318 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13319 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
13320 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
13321 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
13322 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
13323 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
13324 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
13325 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
13326 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
13327 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
13328 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
13329 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
13332 LTCFLAGS='$LTCFLAGS'
13333 compiler='$compiler_DEFAULT'
13335 # A function that is used when there is no print builtin or printf.
13336 func_fallback_echo ()
13338 eval 'cat <<_LTECHO_EOF
13343 # Quote evaled strings.
13358 deplibs_check_method \
13363 sharedlib_from_linklib_cmd \
13366 archiver_list_spec \
13372 lt_cv_sys_global_symbol_pipe \
13373 lt_cv_sys_global_symbol_to_cdecl \
13374 lt_cv_sys_global_symbol_to_c_name_address \
13375 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
13376 nm_file_list_spec \
13377 lt_prog_compiler_no_builtin_flag \
13378 lt_prog_compiler_pic \
13379 lt_prog_compiler_wl \
13380 lt_prog_compiler_static \
13381 lt_cv_prog_compiler_c_o \
13390 export_dynamic_flag_spec \
13391 whole_archive_flag_spec \
13392 compiler_needs_object \
13394 allow_undefined_flag \
13395 no_undefined_flag \
13396 hardcode_libdir_flag_spec \
13397 hardcode_libdir_separator \
13401 variables_saved_for_relink \
13403 library_names_spec \
13405 install_override_mode \
13409 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
13410 *[\\\\\\\`\\"\\\$]*)
13411 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
13414 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13419 # Double-quote double-evaled strings.
13420 for var in reload_cmds \
13421 old_postinstall_cmds \
13422 old_postuninstall_cmds \
13424 extract_expsyms_cmds \
13425 old_archive_from_new_cmds \
13426 old_archive_from_expsyms_cmds \
13428 archive_expsym_cmds \
13430 module_expsym_cmds \
13431 export_symbols_cmds \
13435 postuninstall_cmds \
13437 sys_lib_search_path_spec \
13438 sys_lib_dlsearch_path_spec; do
13439 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
13440 *[\\\\\\\`\\"\\\$]*)
13441 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
13444 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13449 ac_aux_dir='$ac_aux_dir'
13450 xsi_shell='$xsi_shell'
13451 lt_shell_append='$lt_shell_append'
13453 # See if we are running on zsh, and set the options which allow our
13454 # commands through without removal of \ escapes INIT.
13455 if test -n "\${ZSH_VERSION+set}" ; then
13456 setopt NO_GLOB_SUBST
13462 TIMESTAMP='$TIMESTAMP'
13471 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13473 # Handling of arguments.
13474 for ac_config_target in $ac_config_targets
13476 case $ac_config_target in
13477 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
13478 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
13479 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
13480 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13481 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
13483 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
13488 # If the user did not use the arguments to specify the items to instantiate,
13489 # then the envvar interface is used. Set only those that are not.
13490 # We use the long form for the default assignment because of an extremely
13491 # bizarre bug on SunOS 4.1.3.
13492 if $ac_need_defaults; then
13493 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13494 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
13495 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13498 # Have a temporary directory for convenience. Make it in the build tree
13499 # simply because there is no reason against having it here, and in addition,
13500 # creating and moving files from /tmp can sometimes cause problems.
13501 # Hook for its removal unless debugging.
13502 # Note that there is a small window in which the directory will not be cleaned:
13503 # after its creation but before its name has been assigned to `$tmp'.
13507 trap 'exit_status=$?
13508 : "${ac_tmp:=$tmp}"
13509 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
13511 trap 'as_fn_exit 1' 1 2 13 15
13513 # Create a (secure) tmp directory for tmp files.
13516 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
13520 tmp=./conf$$-$RANDOM
13521 (umask 077 && mkdir "$tmp")
13522 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
13525 # Set up the scripts for CONFIG_FILES section.
13526 # No need to generate them if there are no CONFIG_FILES.
13527 # This happens for instance with `./config.status config.h'.
13528 if test -n "$CONFIG_FILES"; then
13531 ac_cr=`echo X | tr X '\015'`
13532 # On cygwin, bash can eat \r inside `` if the user requested igncr.
13533 # But we know of no other shell where ac_cr would be empty at this
13534 # point, so we can use a bashism as a fallback.
13535 if test "x$ac_cr" = x; then
13536 eval ac_cr=\$\'\\r\'
13538 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
13539 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
13542 ac_cs_awk_cr=$ac_cr
13545 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
13550 echo "cat >conf$$subs.awk <<_ACEOF" &&
13551 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
13553 } >conf$$subs.sh ||
13554 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13555 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
13557 for ac_last_try in false false false false false :; do
13558 . ./conf$$subs.sh ||
13559 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13561 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
13562 if test $ac_delim_n = $ac_delim_num; then
13564 elif $ac_last_try; then
13565 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13567 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13570 rm -f conf$$subs.sh
13572 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13573 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
13577 s/^/S["/; s/!.*/"]=/
13587 s/\(.\{148\}\)..*/\1/
13589 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
13594 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13601 s/\(.\{148\}\)..*/\1/
13603 s/["\\]/\\&/g; s/^/"/; s/$/"/
13607 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13612 ' <conf$$subs.awk | sed '
13617 ' >>$CONFIG_STATUS || ac_write_fail=1
13618 rm -f conf$$subs.awk
13619 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13621 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
13622 for (key in S) S_is_set[key] = 1
13628 nfields = split(line, field, "@")
13630 len = length(field[1])
13631 for (i = 2; i < nfields; i++) {
13633 keylen = length(key)
13634 if (S_is_set[key]) {
13636 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
13637 len += length(value) + length(field[++i])
13648 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13649 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
13650 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
13653 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
13654 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
13657 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
13658 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
13659 # trailing colons and then remove the whole line if VPATH becomes empty
13660 # (actually we leave an empty line to preserve line numbers).
13661 if test "x$srcdir" = x.; then
13662 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
13680 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13681 fi # test -n "$CONFIG_FILES"
13683 # Set up the scripts for CONFIG_HEADERS section.
13684 # No need to generate them if there are no CONFIG_HEADERS.
13685 # This happens for instance with `./config.status Makefile'.
13686 if test -n "$CONFIG_HEADERS"; then
13687 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
13691 # Transform confdefs.h into an awk script `defines.awk', embedded as
13692 # here-document in config.status, that substitutes the proper values into
13693 # config.h.in to produce config.h.
13695 # Create a delimiter string that does not exist in confdefs.h, to ease
13696 # handling of long lines.
13698 for ac_last_try in false false :; do
13699 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
13700 if test -z "$ac_tt"; then
13702 elif $ac_last_try; then
13703 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
13705 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13709 # For the awk script, D is an array of macro values keyed by name,
13710 # likewise P contains macro parameters if any. Preserve backslash
13711 # newline sequences.
13713 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
13715 s/.\{148\}/&'"$ac_delim"'/g
13718 s/^[ ]*#[ ]*define[ ][ ]*/ /
13725 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13727 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
13731 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13732 D["\1"]=" \3\\\\\\n"\\/p
13734 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
13739 s/.\{148\}/&'"$ac_delim"'/g
13744 s/["\\]/\\&/g; s/^/"/; s/$/"/p
13747 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
13749 ' <confdefs.h | sed '
13750 s/'"$ac_delim"'/"\\\
13751 "/g' >>$CONFIG_STATUS || ac_write_fail=1
13753 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13754 for (key in D) D_is_set[key] = 1
13757 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
13759 split(line, arg, " ")
13760 if (arg[1] == "#") {
13764 defundef = substr(arg[1], 2)
13767 split(mac1, mac2, "(") #)
13769 prefix = substr(line, 1, index(line, defundef) - 1)
13770 if (D_is_set[macro]) {
13771 # Preserve the white space surrounding the "#".
13772 print prefix "define", macro P[macro] D[macro]
13775 # Replace #undef with comments. This is necessary, for example,
13776 # in the case of _POSIX_SOURCE, which is predefined and required
13777 # on some systems where configure will not decide to define it.
13778 if (defundef == "undef") {
13779 print "/*", prefix defundef, macro, "*/"
13787 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13788 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
13789 fi # test -n "$CONFIG_HEADERS"
13792 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
13797 :[FHLC]) ac_mode=$ac_tag; continue;;
13799 case $ac_mode$ac_tag in
13801 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
13802 :[FH]-) ac_tag=-:-;;
13803 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
13820 -) ac_f="$ac_tmp/stdin";;
13821 *) # Look for the file first in the build tree, then in the source tree
13822 # (if the path is not absolute). The absolute path cannot be DOS-style,
13823 # because $ac_f cannot contain `:'.
13827 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
13829 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
13831 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
13832 as_fn_append ac_file_inputs " '$ac_f'"
13835 # Let's still pretend it is `configure' which instantiates (i.e., don't
13836 # use $as_me), people would be surprised to read:
13837 # /* config.h. Generated by config.status. */
13838 configure_input='Generated from '`
13839 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
13841 if test x"$ac_file" != x-; then
13842 configure_input="$ac_file. $configure_input"
13843 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
13844 $as_echo "$as_me: creating $ac_file" >&6;}
13846 # Neutralize special characters interpreted by sed in replacement strings.
13847 case $configure_input in #(
13848 *\&* | *\|* | *\\* )
13849 ac_sed_conf_input=`$as_echo "$configure_input" |
13850 sed 's/[\\\\&|]/\\\\&/g'`;; #(
13851 *) ac_sed_conf_input=$configure_input;;
13855 *:-:* | *:-) cat >"$ac_tmp/stdin" \
13856 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
13861 ac_dir=`$as_dirname -- "$ac_file" ||
13862 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13863 X"$ac_file" : 'X\(//\)[^/]' \| \
13864 X"$ac_file" : 'X\(//\)$' \| \
13865 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
13866 $as_echo X"$ac_file" |
13867 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13871 /^X\(\/\/\)[^/].*/{
13884 as_dir="$ac_dir"; as_fn_mkdir_p
13888 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
13890 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
13891 # A ".." for each directory in $ac_dir_suffix.
13892 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
13893 case $ac_top_builddir_sub in
13894 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
13895 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
13898 ac_abs_top_builddir=$ac_pwd
13899 ac_abs_builddir=$ac_pwd$ac_dir_suffix
13900 # for backward compatibility:
13901 ac_top_builddir=$ac_top_build_prefix
13904 .) # We are building in place.
13906 ac_top_srcdir=$ac_top_builddir_sub
13907 ac_abs_top_srcdir=$ac_pwd ;;
13908 [\\/]* | ?:[\\/]* ) # Absolute name.
13909 ac_srcdir=$srcdir$ac_dir_suffix;
13910 ac_top_srcdir=$srcdir
13911 ac_abs_top_srcdir=$srcdir ;;
13912 *) # Relative name.
13913 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
13914 ac_top_srcdir=$ac_top_build_prefix$srcdir
13915 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
13917 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
13927 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
13928 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
13930 ac_MKDIR_P=$MKDIR_P
13932 [\\/$]* | ?:[\\/]* ) ;;
13933 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
13937 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13938 # If the template does not know about datarootdir, expand it.
13939 # FIXME: This hack should be removed a few years after 2.60.
13940 ac_datarootdir_hack=; ac_datarootdir_seen=
13951 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
13952 *datarootdir*) ac_datarootdir_seen=yes;;
13953 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
13954 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
13955 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
13957 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13958 ac_datarootdir_hack='
13959 s&@datadir@&$datadir&g
13960 s&@docdir@&$docdir&g
13961 s&@infodir@&$infodir&g
13962 s&@localedir@&$localedir&g
13963 s&@mandir@&$mandir&g
13964 s&\\\${datarootdir}&$datarootdir&g' ;;
13968 # Neutralize VPATH when `$srcdir' = `.'.
13969 # Shell code in configure.ac might set extrasub.
13970 # FIXME: do we really want to maintain this feature?
13971 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13972 ac_sed_extra="$ac_vpsub
13975 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13977 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13978 s|@configure_input@|$ac_sed_conf_input|;t t
13979 s&@top_builddir@&$ac_top_builddir_sub&;t t
13980 s&@top_build_prefix@&$ac_top_build_prefix&;t t
13981 s&@srcdir@&$ac_srcdir&;t t
13982 s&@abs_srcdir@&$ac_abs_srcdir&;t t
13983 s&@top_srcdir@&$ac_top_srcdir&;t t
13984 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
13985 s&@builddir@&$ac_builddir&;t t
13986 s&@abs_builddir@&$ac_abs_builddir&;t t
13987 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
13988 s&@INSTALL@&$ac_INSTALL&;t t
13989 s&@MKDIR_P@&$ac_MKDIR_P&;t t
13990 $ac_datarootdir_hack
13992 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
13993 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13995 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
13996 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
13997 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
13998 "$ac_tmp/out"`; test -z "$ac_out"; } &&
13999 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14000 which seems to be undefined. Please make sure it is defined" >&5
14001 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14002 which seems to be undefined. Please make sure it is defined" >&2;}
14004 rm -f "$ac_tmp/stdin"
14006 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
14007 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
14009 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14015 if test x"$ac_file" != x-; then
14017 $as_echo "/* $configure_input */" \
14018 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
14019 } >"$ac_tmp/config.h" \
14020 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14021 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
14022 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
14023 $as_echo "$as_me: $ac_file is unchanged" >&6;}
14026 mv "$ac_tmp/config.h" "$ac_file" \
14027 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14030 $as_echo "/* $configure_input */" \
14031 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
14032 || as_fn_error $? "could not create -" "$LINENO" 5
14034 # Compute "$ac_file"'s index in $config_headers.
14037 for _am_header in $config_headers :; do
14038 case $_am_header in
14039 $_am_arg | $_am_arg:* )
14042 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
14045 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
14046 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14047 X"$_am_arg" : 'X\(//\)[^/]' \| \
14048 X"$_am_arg" : 'X\(//\)$' \| \
14049 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
14050 $as_echo X"$_am_arg" |
14051 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14055 /^X\(\/\/\)[^/].*/{
14067 s/.*/./; q'`/stamp-h$_am_stamp_count
14070 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
14071 $as_echo "$as_me: executing $ac_file commands" >&6;}
14076 case $ac_file$ac_mode in
14077 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
14078 # Autoconf 2.62 quotes --file arguments for eval, but not when files
14079 # are listed without --file. Let's play safe and only enable the eval
14080 # if we detect the quoting.
14081 case $CONFIG_FILES in
14082 *\'*) eval set x "$CONFIG_FILES" ;;
14083 *) set x $CONFIG_FILES ;;
14088 # Strip MF so we end up with the name of the file.
14089 mf=`echo "$mf" | sed -e 's/:.*$//'`
14090 # Check whether this is an Automake generated Makefile or not.
14091 # We used to match only the files named `Makefile.in', but
14092 # some people rename them; so instead we look at the file content.
14093 # Grep'ing the first line is not enough: some people post-process
14094 # each Makefile.in and add a new line on top of each file to say so.
14095 # Grep'ing the whole file is not good either: AIX grep has a line
14096 # limit of 2048, but all sed's we know have understand at least 4000.
14097 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
14098 dirpart=`$as_dirname -- "$mf" ||
14099 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14100 X"$mf" : 'X\(//\)[^/]' \| \
14101 X"$mf" : 'X\(//\)$' \| \
14102 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
14104 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14108 /^X\(\/\/\)[^/].*/{
14124 # Extract the definition of DEPDIR, am__include, and am__quote
14125 # from the Makefile without running `make'.
14126 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
14127 test -z "$DEPDIR" && continue
14128 am__include=`sed -n 's/^am__include = //p' < "$mf"`
14129 test -z "am__include" && continue
14130 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
14131 # When using ansi2knr, U may be empty or an underscore; expand it
14132 U=`sed -n 's/^U = //p' < "$mf"`
14133 # Find all dependency output files, they are included files with
14134 # $(DEPDIR) in their names. We invoke sed twice because it is the
14135 # simplest approach to changing $(DEPDIR) to its actual value in the
14137 for file in `sed -n "
14138 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
14139 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
14140 # Make sure the directory exists.
14141 test -f "$dirpart/$file" && continue
14142 fdir=`$as_dirname -- "$file" ||
14143 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14144 X"$file" : 'X\(//\)[^/]' \| \
14145 X"$file" : 'X\(//\)$' \| \
14146 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
14147 $as_echo X"$file" |
14148 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14152 /^X\(\/\/\)[^/].*/{
14165 as_dir=$dirpart/$fdir; as_fn_mkdir_p
14166 # echo "creating $dirpart/$file"
14167 echo '# dummy' > "$dirpart/$file"
14174 # See if we are running on zsh, and set the options which allow our
14175 # commands through without removal of \ escapes.
14176 if test -n "${ZSH_VERSION+set}" ; then
14177 setopt NO_GLOB_SUBST
14180 cfgfile="${ofile}T"
14181 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
14184 cat <<_LT_EOF >> "$cfgfile"
14187 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
14188 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
14189 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14190 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
14192 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
14193 # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
14195 # Written by Gordon Matzigkeit, 1996
14197 # This file is part of GNU Libtool.
14199 # GNU Libtool is free software; you can redistribute it and/or
14200 # modify it under the terms of the GNU General Public License as
14201 # published by the Free Software Foundation; either version 2 of
14202 # the License, or (at your option) any later version.
14204 # As a special exception to the GNU General Public License,
14205 # if you distribute this file as part of a program or library that
14206 # is built using GNU Libtool, you may include this file under the
14207 # same distribution terms that you use for the rest of that program.
14209 # GNU Libtool is distributed in the hope that it will be useful,
14210 # but WITHOUT ANY WARRANTY; without even the implied warranty of
14211 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14212 # GNU General Public License for more details.
14214 # You should have received a copy of the GNU General Public License
14215 # along with GNU Libtool; see the file COPYING. If not, a copy
14216 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
14217 # obtained by writing to the Free Software Foundation, Inc.,
14218 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
14221 # The names of the tagged configurations supported by this script.
14224 # ### BEGIN LIBTOOL CONFIG
14226 # Which release of libtool.m4 was used?
14227 macro_version=$macro_version
14228 macro_revision=$macro_revision
14230 # Whether or not to build shared libraries.
14231 build_libtool_libs=$enable_shared
14233 # Whether or not to build static libraries.
14234 build_old_libs=$enable_static
14236 # What type of objects to build.
14239 # Whether or not to optimize for fast installation.
14240 fast_install=$enable_fast_install
14242 # Shell to use when invoking shell scripts.
14245 # An echo program that protects backslashes.
14248 # The PATH separator for the build system.
14249 PATH_SEPARATOR=$lt_PATH_SEPARATOR
14252 host_alias=$host_alias
14256 # The build system.
14257 build_alias=$build_alias
14261 # A sed program that does not truncate output.
14264 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
14265 Xsed="\$SED -e 1s/^X//"
14267 # A grep program that handles long lines.
14273 # A literal string matcher.
14276 # A BSD- or MS-compatible name lister.
14279 # Whether we need soft or hard links.
14282 # What is the maximum length of a command?
14283 max_cmd_len=$max_cmd_len
14285 # Object file suffix (normally "o").
14288 # Executable file suffix (normally "").
14291 # whether the shell understands "unset".
14294 # turn spaces into newlines.
14297 # turn newlines into spaces.
14300 # convert \$build file names to \$host format.
14301 to_host_file_cmd=$lt_cv_to_host_file_cmd
14303 # convert \$build files to toolchain format.
14304 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
14306 # An object symbol dumper.
14307 OBJDUMP=$lt_OBJDUMP
14309 # Method to check whether dependent libraries are shared objects.
14310 deplibs_check_method=$lt_deplibs_check_method
14312 # Command to use when deplibs_check_method = "file_magic".
14313 file_magic_cmd=$lt_file_magic_cmd
14315 # How to find potential files when deplibs_check_method = "file_magic".
14316 file_magic_glob=$lt_file_magic_glob
14318 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
14319 want_nocaseglob=$lt_want_nocaseglob
14321 # DLL creation program.
14322 DLLTOOL=$lt_DLLTOOL
14324 # Command to associate shared and link libraries.
14325 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
14330 # Flags to create an archive.
14331 AR_FLAGS=$lt_AR_FLAGS
14333 # How to feed a file listing to the archiver.
14334 archiver_list_spec=$lt_archiver_list_spec
14336 # A symbol stripping program.
14339 # Commands used to install an old-style archive.
14341 old_postinstall_cmds=$lt_old_postinstall_cmds
14342 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14344 # Whether to use a lock for old archive extraction.
14345 lock_old_archive_extraction=$lock_old_archive_extraction
14350 # LTCC compiler flags.
14351 LTCFLAGS=$lt_CFLAGS
14353 # Take the output of nm and produce a listing of raw symbols and C names.
14354 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14356 # Transform the output of nm in a proper C declaration.
14357 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14359 # Transform the output of nm in a C name address pair.
14360 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14362 # Transform the output of nm in a C name address pair when lib prefix is needed.
14363 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
14365 # Specify filename containing input files for \$NM.
14366 nm_file_list_spec=$lt_nm_file_list_spec
14368 # The root where to search for dependent libraries,and in which our libraries should be installed.
14369 lt_sysroot=$lt_sysroot
14371 # The name of the directory that contains temporary libtool files.
14374 # Used to examine libraries when file_magic_cmd begins with "file".
14375 MAGIC_CMD=$MAGIC_CMD
14377 # Must we lock files when doing compilation?
14378 need_locks=$lt_need_locks
14381 MANIFEST_TOOL=$lt_MANIFEST_TOOL
14383 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
14384 DSYMUTIL=$lt_DSYMUTIL
14386 # Tool to change global to local symbols on Mac OS X.
14389 # Tool to manipulate fat objects and archives on Mac OS X.
14392 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
14395 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
14396 OTOOL64=$lt_OTOOL64
14398 # Old archive suffix (normally "a").
14401 # Shared library suffix (normally ".so").
14402 shrext_cmds=$lt_shrext_cmds
14404 # The commands to extract the exported symbol list from a shared archive.
14405 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14407 # Variables whose values should be saved in libtool wrapper scripts and
14408 # restored at link time.
14409 variables_saved_for_relink=$lt_variables_saved_for_relink
14411 # Do we need the "lib" prefix for modules?
14412 need_lib_prefix=$need_lib_prefix
14414 # Do we need a version for libraries?
14415 need_version=$need_version
14417 # Library versioning type.
14418 version_type=$version_type
14420 # Shared library runtime path variable.
14421 runpath_var=$runpath_var
14423 # Shared library path variable.
14424 shlibpath_var=$shlibpath_var
14426 # Is shlibpath searched before the hard-coded library search path?
14427 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14429 # Format of library name prefix.
14430 libname_spec=$lt_libname_spec
14432 # List of archive names. First name is the real one, the rest are links.
14433 # The last name is the one that the linker finds with -lNAME
14434 library_names_spec=$lt_library_names_spec
14436 # The coded name of the library, if different from the real name.
14437 soname_spec=$lt_soname_spec
14439 # Permission mode override for installation of shared libraries.
14440 install_override_mode=$lt_install_override_mode
14442 # Command to use after installation of a shared archive.
14443 postinstall_cmds=$lt_postinstall_cmds
14445 # Command to use after uninstallation of a shared archive.
14446 postuninstall_cmds=$lt_postuninstall_cmds
14448 # Commands used to finish a libtool library installation in a directory.
14449 finish_cmds=$lt_finish_cmds
14451 # As "finish_cmds", except a single script fragment to be evaled but
14453 finish_eval=$lt_finish_eval
14455 # Whether we should hardcode library paths into libraries.
14456 hardcode_into_libs=$hardcode_into_libs
14458 # Compile-time system search path for libraries.
14459 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14461 # Run-time system search path for libraries.
14462 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14464 # Whether dlopen is supported.
14465 dlopen_support=$enable_dlopen
14467 # Whether dlopen of programs is supported.
14468 dlopen_self=$enable_dlopen_self
14470 # Whether dlopen of statically linked programs is supported.
14471 dlopen_self_static=$enable_dlopen_self_static
14473 # Commands to strip libraries.
14474 old_striplib=$lt_old_striplib
14475 striplib=$lt_striplib
14478 # The linker used to build libraries.
14481 # How to create reloadable object files.
14482 reload_flag=$lt_reload_flag
14483 reload_cmds=$lt_reload_cmds
14485 # Commands used to build an old-style archive.
14486 old_archive_cmds=$lt_old_archive_cmds
14488 # A language specific compiler.
14491 # Is the compiler the GNU compiler?
14494 # Compiler flag to turn off builtin functions.
14495 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
14497 # Additional compiler flags for building library objects.
14498 pic_flag=$lt_lt_prog_compiler_pic
14500 # How to pass a linker flag through the compiler.
14501 wl=$lt_lt_prog_compiler_wl
14503 # Compiler flag to prevent dynamic linking.
14504 link_static_flag=$lt_lt_prog_compiler_static
14506 # Does compiler simultaneously support -c and -o options?
14507 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
14509 # Whether or not to add -lc for building shared libraries.
14510 build_libtool_need_lc=$archive_cmds_need_lc
14512 # Whether or not to disallow shared libs when runtime libs are static.
14513 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
14515 # Compiler flag to allow reflexive dlopens.
14516 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
14518 # Compiler flag to generate shared objects directly from archives.
14519 whole_archive_flag_spec=$lt_whole_archive_flag_spec
14521 # Whether the compiler copes with passing no objects directly.
14522 compiler_needs_object=$lt_compiler_needs_object
14524 # Create an old-style archive from a shared archive.
14525 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
14527 # Create a temporary old-style archive to link instead of a shared archive.
14528 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
14530 # Commands used to build a shared archive.
14531 archive_cmds=$lt_archive_cmds
14532 archive_expsym_cmds=$lt_archive_expsym_cmds
14534 # Commands used to build a loadable module if different from building
14535 # a shared archive.
14536 module_cmds=$lt_module_cmds
14537 module_expsym_cmds=$lt_module_expsym_cmds
14539 # Whether we are building with GNU ld or not.
14540 with_gnu_ld=$lt_with_gnu_ld
14542 # Flag that allows shared libraries with undefined symbols to be built.
14543 allow_undefined_flag=$lt_allow_undefined_flag
14545 # Flag that enforces no undefined symbols.
14546 no_undefined_flag=$lt_no_undefined_flag
14548 # Flag to hardcode \$libdir into a binary during linking.
14549 # This must work even if \$libdir does not exist
14550 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
14552 # Whether we need a single "-rpath" flag with a separated argument.
14553 hardcode_libdir_separator=$lt_hardcode_libdir_separator
14555 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14556 # DIR into the resulting binary.
14557 hardcode_direct=$hardcode_direct
14559 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14560 # DIR into the resulting binary and the resulting library dependency is
14561 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
14562 # library is relocated.
14563 hardcode_direct_absolute=$hardcode_direct_absolute
14565 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
14566 # into the resulting binary.
14567 hardcode_minus_L=$hardcode_minus_L
14569 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
14570 # into the resulting binary.
14571 hardcode_shlibpath_var=$hardcode_shlibpath_var
14573 # Set to "yes" if building a shared library automatically hardcodes DIR
14574 # into the library and all subsequent libraries and executables linked
14576 hardcode_automatic=$hardcode_automatic
14578 # Set to yes if linker adds runtime paths of dependent libraries
14579 # to runtime path list.
14580 inherit_rpath=$inherit_rpath
14582 # Whether libtool must link a program against all its dependency libraries.
14583 link_all_deplibs=$link_all_deplibs
14585 # Set to "yes" if exported symbols are required.
14586 always_export_symbols=$always_export_symbols
14588 # The commands to list exported symbols.
14589 export_symbols_cmds=$lt_export_symbols_cmds
14591 # Symbols that should not be listed in the preloaded symbols.
14592 exclude_expsyms=$lt_exclude_expsyms
14594 # Symbols that must always be exported.
14595 include_expsyms=$lt_include_expsyms
14597 # Commands necessary for linking programs (against libraries) with templates.
14598 prelink_cmds=$lt_prelink_cmds
14600 # Commands necessary for finishing linking programs.
14601 postlink_cmds=$lt_postlink_cmds
14603 # Specify filename containing input files.
14604 file_list_spec=$lt_file_list_spec
14606 # How to hardcode a shared library path into an executable.
14607 hardcode_action=$hardcode_action
14609 # ### END LIBTOOL CONFIG
14615 cat <<\_LT_EOF >> "$cfgfile"
14616 # AIX sometimes has problems with the GCC collect2 program. For some
14617 # reason, if we set the COLLECT_NAMES environment variable, the problems
14618 # vanish in a puff of smoke.
14619 if test "X${COLLECT_NAMES+set}" != Xset; then
14621 export COLLECT_NAMES
14628 ltmain="$ac_aux_dir/ltmain.sh"
14631 # We use sed instead of cat because bash on DJGPP gets confused if
14632 # if finds mixed CR/LF and LF-only lines. Since sed operates in
14633 # text mode, it properly converts lines to CR/LF. This bash problem
14634 # is reportedly fixed, but why not run on old versions too?
14635 sed '$q' "$ltmain" >> "$cfgfile" \
14636 || (rm -f "$cfgfile"; exit 1)
14638 if test x"$xsi_shell" = xyes; then
14639 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
14643 \ */*) func_dirname_result="${1%/*}${2}" ;;\
14644 \ * ) func_dirname_result="${3}" ;;\
14646 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
14647 && mv -f "$cfgfile.tmp" "$cfgfile" \
14648 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14649 test 0 -eq $? || _lt_function_replace_fail=:
14652 sed -e '/^func_basename ()$/,/^} # func_basename /c\
14655 \ func_basename_result="${1##*/}"\
14656 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
14657 && mv -f "$cfgfile.tmp" "$cfgfile" \
14658 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14659 test 0 -eq $? || _lt_function_replace_fail=:
14662 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
14663 func_dirname_and_basename ()\
14666 \ */*) func_dirname_result="${1%/*}${2}" ;;\
14667 \ * ) func_dirname_result="${3}" ;;\
14669 \ func_basename_result="${1##*/}"\
14670 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
14671 && mv -f "$cfgfile.tmp" "$cfgfile" \
14672 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14673 test 0 -eq $? || _lt_function_replace_fail=:
14676 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
14679 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
14680 \ # positional parameters, so assign one to ordinary parameter first.\
14681 \ func_stripname_result=${3}\
14682 \ func_stripname_result=${func_stripname_result#"${1}"}\
14683 \ func_stripname_result=${func_stripname_result%"${2}"}\
14684 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
14685 && mv -f "$cfgfile.tmp" "$cfgfile" \
14686 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14687 test 0 -eq $? || _lt_function_replace_fail=:
14690 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
14691 func_split_long_opt ()\
14693 \ func_split_long_opt_name=${1%%=*}\
14694 \ func_split_long_opt_arg=${1#*=}\
14695 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
14696 && mv -f "$cfgfile.tmp" "$cfgfile" \
14697 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14698 test 0 -eq $? || _lt_function_replace_fail=:
14701 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
14702 func_split_short_opt ()\
14704 \ func_split_short_opt_arg=${1#??}\
14705 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
14706 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
14707 && mv -f "$cfgfile.tmp" "$cfgfile" \
14708 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14709 test 0 -eq $? || _lt_function_replace_fail=:
14712 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
14716 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
14717 \ *) func_lo2o_result=${1} ;;\
14719 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
14720 && mv -f "$cfgfile.tmp" "$cfgfile" \
14721 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14722 test 0 -eq $? || _lt_function_replace_fail=:
14725 sed -e '/^func_xform ()$/,/^} # func_xform /c\
14728 func_xform_result=${1%.*}.lo\
14729 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
14730 && mv -f "$cfgfile.tmp" "$cfgfile" \
14731 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14732 test 0 -eq $? || _lt_function_replace_fail=:
14735 sed -e '/^func_arith ()$/,/^} # func_arith /c\
14738 func_arith_result=$(( $* ))\
14739 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
14740 && mv -f "$cfgfile.tmp" "$cfgfile" \
14741 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14742 test 0 -eq $? || _lt_function_replace_fail=:
14745 sed -e '/^func_len ()$/,/^} # func_len /c\
14748 func_len_result=${#1}\
14749 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
14750 && mv -f "$cfgfile.tmp" "$cfgfile" \
14751 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14752 test 0 -eq $? || _lt_function_replace_fail=:
14756 if test x"$lt_shell_append" = xyes; then
14757 sed -e '/^func_append ()$/,/^} # func_append /c\
14760 eval "${1}+=\\${2}"\
14761 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
14762 && mv -f "$cfgfile.tmp" "$cfgfile" \
14763 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14764 test 0 -eq $? || _lt_function_replace_fail=:
14767 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
14768 func_append_quoted ()\
14770 \ func_quote_for_eval "${2}"\
14771 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
14772 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
14773 && mv -f "$cfgfile.tmp" "$cfgfile" \
14774 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14775 test 0 -eq $? || _lt_function_replace_fail=:
14778 # Save a `func_append' function call where possible by direct use of '+='
14779 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
14780 && mv -f "$cfgfile.tmp" "$cfgfile" \
14781 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14782 test 0 -eq $? || _lt_function_replace_fail=:
14784 # Save a `func_append' function call even when '+=' is not available
14785 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
14786 && mv -f "$cfgfile.tmp" "$cfgfile" \
14787 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14788 test 0 -eq $? || _lt_function_replace_fail=:
14791 if test x"$_lt_function_replace_fail" = x":"; then
14792 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
14793 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
14797 mv -f "$cfgfile" "$ofile" ||
14798 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
14809 ac_clean_files=$ac_clean_files_save
14811 test $ac_write_fail = 0 ||
14812 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
14815 # configure is writing to config.log, and then calls config.status.
14816 # config.status does its own redirection, appending to config.log.
14817 # Unfortunately, on DOS this fails, as config.log is still kept open
14818 # by configure, so config.status won't be able to write to it; its
14819 # output is simply discarded. So we exec the FD to /dev/null,
14820 # effectively closing config.log, so it can be properly (re)opened and
14821 # appended to by config.status. When coming back to configure, we
14822 # need to make the FD available again.
14823 if test "$no_create" != yes; then
14825 ac_config_status_args=
14826 test "$silent" = yes &&
14827 ac_config_status_args="$ac_config_status_args --quiet"
14829 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
14831 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14832 # would make configure fail if this is the last instruction.
14833 $ac_cs_success || as_fn_exit 1
14835 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
14836 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
14837 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}