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
681 INSTALL_STRIP_PROGRAM
723 program_transform_name
736 enable_option_checking
741 enable_dependency_tracking
747 ac_precious_vars='build_alias
758 # Initialize some variables set by options.
760 ac_init_version=false
761 ac_unrecognized_opts=
763 # The variables have the same names as the options, with
764 # dashes changed to underlines.
772 program_transform_name=s,x,x,
780 # Installation directory options.
781 # These are left unexpanded so users can "make install exec_prefix=/foo"
782 # and all the variables that are supposed to be based on exec_prefix
783 # by default will actually change.
784 # Use braces instead of parens because sh, perl, etc. also accept them.
785 # (The list follows the same order as the GNU Coding Standards.)
786 bindir='${exec_prefix}/bin'
787 sbindir='${exec_prefix}/sbin'
788 libexecdir='${exec_prefix}/libexec'
789 datarootdir='${prefix}/share'
790 datadir='${datarootdir}'
791 sysconfdir='${prefix}/etc'
792 sharedstatedir='${prefix}/com'
793 localstatedir='${prefix}/var'
794 includedir='${prefix}/include'
795 oldincludedir='/usr/include'
796 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
797 infodir='${datarootdir}/info'
802 libdir='${exec_prefix}/lib'
803 localedir='${datarootdir}/locale'
804 mandir='${datarootdir}/man'
810 # If the previous option needs an argument, assign it.
811 if test -n "$ac_prev"; then
812 eval $ac_prev=\$ac_option
818 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
823 # Accept the important Cygnus configure options, so we can diagnose typos.
825 case $ac_dashdash$ac_option in
829 -bindir | --bindir | --bindi | --bind | --bin | --bi)
831 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
834 -build | --build | --buil | --bui | --bu)
835 ac_prev=build_alias ;;
836 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
837 build_alias=$ac_optarg ;;
839 -cache-file | --cache-file | --cache-fil | --cache-fi \
840 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
841 ac_prev=cache_file ;;
842 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
843 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
844 cache_file=$ac_optarg ;;
847 cache_file=config.cache ;;
849 -datadir | --datadir | --datadi | --datad)
851 -datadir=* | --datadir=* | --datadi=* | --datad=*)
852 datadir=$ac_optarg ;;
854 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
855 | --dataroo | --dataro | --datar)
856 ac_prev=datarootdir ;;
857 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
858 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
859 datarootdir=$ac_optarg ;;
861 -disable-* | --disable-*)
862 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
863 # Reject names that are not valid shell variable names.
864 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
865 as_fn_error $? "invalid feature name: $ac_useropt"
866 ac_useropt_orig=$ac_useropt
867 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
868 case $ac_user_opts in
872 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
873 ac_unrecognized_sep=', ';;
875 eval enable_$ac_useropt=no ;;
877 -docdir | --docdir | --docdi | --doc | --do)
879 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
882 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
884 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
887 -enable-* | --enable-*)
888 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
889 # Reject names that are not valid shell variable names.
890 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
891 as_fn_error $? "invalid feature name: $ac_useropt"
892 ac_useropt_orig=$ac_useropt
893 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
894 case $ac_user_opts in
898 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
899 ac_unrecognized_sep=', ';;
901 eval enable_$ac_useropt=\$ac_optarg ;;
903 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
904 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
905 | --exec | --exe | --ex)
906 ac_prev=exec_prefix ;;
907 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
908 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
909 | --exec=* | --exe=* | --ex=*)
910 exec_prefix=$ac_optarg ;;
912 -gas | --gas | --ga | --g)
913 # Obsolete; use --with-gas.
916 -help | --help | --hel | --he | -h)
918 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
919 ac_init_help=recursive ;;
920 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
921 ac_init_help=short ;;
923 -host | --host | --hos | --ho)
924 ac_prev=host_alias ;;
925 -host=* | --host=* | --hos=* | --ho=*)
926 host_alias=$ac_optarg ;;
928 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
930 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
932 htmldir=$ac_optarg ;;
934 -includedir | --includedir | --includedi | --included | --include \
935 | --includ | --inclu | --incl | --inc)
936 ac_prev=includedir ;;
937 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
938 | --includ=* | --inclu=* | --incl=* | --inc=*)
939 includedir=$ac_optarg ;;
941 -infodir | --infodir | --infodi | --infod | --info | --inf)
943 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
944 infodir=$ac_optarg ;;
946 -libdir | --libdir | --libdi | --libd)
948 -libdir=* | --libdir=* | --libdi=* | --libd=*)
951 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
952 | --libexe | --libex | --libe)
953 ac_prev=libexecdir ;;
954 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
955 | --libexe=* | --libex=* | --libe=*)
956 libexecdir=$ac_optarg ;;
958 -localedir | --localedir | --localedi | --localed | --locale)
960 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
961 localedir=$ac_optarg ;;
963 -localstatedir | --localstatedir | --localstatedi | --localstated \
964 | --localstate | --localstat | --localsta | --localst | --locals)
965 ac_prev=localstatedir ;;
966 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
967 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
968 localstatedir=$ac_optarg ;;
970 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
972 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
976 # Obsolete; use --without-fp.
979 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
980 | --no-cr | --no-c | -n)
983 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
984 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
987 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
988 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
989 | --oldin | --oldi | --old | --ol | --o)
990 ac_prev=oldincludedir ;;
991 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
992 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
993 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
994 oldincludedir=$ac_optarg ;;
996 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
998 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1001 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1002 | --program-pre | --program-pr | --program-p)
1003 ac_prev=program_prefix ;;
1004 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1005 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1006 program_prefix=$ac_optarg ;;
1008 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1009 | --program-suf | --program-su | --program-s)
1010 ac_prev=program_suffix ;;
1011 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1012 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1013 program_suffix=$ac_optarg ;;
1015 -program-transform-name | --program-transform-name \
1016 | --program-transform-nam | --program-transform-na \
1017 | --program-transform-n | --program-transform- \
1018 | --program-transform | --program-transfor \
1019 | --program-transfo | --program-transf \
1020 | --program-trans | --program-tran \
1021 | --progr-tra | --program-tr | --program-t)
1022 ac_prev=program_transform_name ;;
1023 -program-transform-name=* | --program-transform-name=* \
1024 | --program-transform-nam=* | --program-transform-na=* \
1025 | --program-transform-n=* | --program-transform-=* \
1026 | --program-transform=* | --program-transfor=* \
1027 | --program-transfo=* | --program-transf=* \
1028 | --program-trans=* | --program-tran=* \
1029 | --progr-tra=* | --program-tr=* | --program-t=*)
1030 program_transform_name=$ac_optarg ;;
1032 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1034 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1035 pdfdir=$ac_optarg ;;
1037 -psdir | --psdir | --psdi | --psd | --ps)
1039 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1042 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1043 | -silent | --silent | --silen | --sile | --sil)
1046 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1048 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1050 sbindir=$ac_optarg ;;
1052 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1053 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1054 | --sharedst | --shareds | --shared | --share | --shar \
1056 ac_prev=sharedstatedir ;;
1057 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1058 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1059 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1061 sharedstatedir=$ac_optarg ;;
1063 -site | --site | --sit)
1065 -site=* | --site=* | --sit=*)
1068 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1070 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1071 srcdir=$ac_optarg ;;
1073 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1074 | --syscon | --sysco | --sysc | --sys | --sy)
1075 ac_prev=sysconfdir ;;
1076 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1077 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1078 sysconfdir=$ac_optarg ;;
1080 -target | --target | --targe | --targ | --tar | --ta | --t)
1081 ac_prev=target_alias ;;
1082 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1083 target_alias=$ac_optarg ;;
1085 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1088 -version | --version | --versio | --versi | --vers | -V)
1089 ac_init_version=: ;;
1092 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1093 # Reject names that are not valid shell variable names.
1094 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1095 as_fn_error $? "invalid package name: $ac_useropt"
1096 ac_useropt_orig=$ac_useropt
1097 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1098 case $ac_user_opts in
1102 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1103 ac_unrecognized_sep=', ';;
1105 eval with_$ac_useropt=\$ac_optarg ;;
1107 -without-* | --without-*)
1108 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1109 # Reject names that are not valid shell variable names.
1110 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1111 as_fn_error $? "invalid package name: $ac_useropt"
1112 ac_useropt_orig=$ac_useropt
1113 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1114 case $ac_user_opts in
1118 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1119 ac_unrecognized_sep=', ';;
1121 eval with_$ac_useropt=no ;;
1124 # Obsolete; use --with-x.
1127 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1128 | --x-incl | --x-inc | --x-in | --x-i)
1129 ac_prev=x_includes ;;
1130 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1131 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1132 x_includes=$ac_optarg ;;
1134 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1135 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1136 ac_prev=x_libraries ;;
1137 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1138 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1139 x_libraries=$ac_optarg ;;
1141 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1142 Try \`$0 --help' for more information"
1146 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1147 # Reject names that are not valid shell variable names.
1148 case $ac_envvar in #(
1149 '' | [0-9]* | *[!_$as_cr_alnum]* )
1150 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1152 eval $ac_envvar=\$ac_optarg
1153 export $ac_envvar ;;
1156 # FIXME: should be removed in autoconf 3.0.
1157 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1158 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1159 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1160 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1166 if test -n "$ac_prev"; then
1167 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1168 as_fn_error $? "missing argument to $ac_option"
1171 if test -n "$ac_unrecognized_opts"; then
1172 case $enable_option_checking in
1174 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1175 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1179 # Check all directory arguments for consistency.
1180 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1181 datadir sysconfdir sharedstatedir localstatedir includedir \
1182 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1183 libdir localedir mandir
1185 eval ac_val=\$$ac_var
1186 # Remove trailing slashes.
1189 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1190 eval $ac_var=\$ac_val;;
1192 # Be sure to have absolute directory names.
1194 [\\/$]* | ?:[\\/]* ) continue;;
1195 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1197 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1200 # There might be people who depend on the old broken behavior: `$host'
1201 # used to hold the argument of --host etc.
1202 # FIXME: To remove some day.
1205 target=$target_alias
1207 # FIXME: To remove some day.
1208 if test "x$host_alias" != x; then
1209 if test "x$build_alias" = x; then
1210 cross_compiling=maybe
1211 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1212 If a cross compiler is detected then cross compile mode will be used" >&2
1213 elif test "x$build_alias" != "x$host_alias"; then
1219 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1221 test "$silent" = yes && exec 6>/dev/null
1224 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1225 ac_ls_di=`ls -di .` &&
1226 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1227 as_fn_error $? "working directory cannot be determined"
1228 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1229 as_fn_error $? "pwd does not report name of working directory"
1232 # Find the source files, if location was not specified.
1233 if test -z "$srcdir"; then
1234 ac_srcdir_defaulted=yes
1235 # Try the directory containing this script, then the parent directory.
1236 ac_confdir=`$as_dirname -- "$as_myself" ||
1237 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1238 X"$as_myself" : 'X\(//\)[^/]' \| \
1239 X"$as_myself" : 'X\(//\)$' \| \
1240 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1241 $as_echo X"$as_myself" |
1242 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1260 if test ! -r "$srcdir/$ac_unique_file"; then
1264 ac_srcdir_defaulted=no
1266 if test ! -r "$srcdir/$ac_unique_file"; then
1267 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1268 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1270 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1272 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1274 # When building in place, set srcdir=.
1275 if test "$ac_abs_confdir" = "$ac_pwd"; then
1278 # Remove unnecessary trailing slashes from srcdir.
1279 # Double slashes in file names in object file debugging info
1280 # mess up M-x gdb in Emacs.
1282 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1284 for ac_var in $ac_precious_vars; do
1285 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1286 eval ac_env_${ac_var}_value=\$${ac_var}
1287 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1288 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1292 # Report the --help message.
1294 if test "$ac_init_help" = "long"; then
1295 # Omit some internal or obsolete options to make the list less imposing.
1296 # This message is too long to be a string in the A/UX 3.1 sh.
1298 \`configure' configures gacela 0.5 to adapt to many kinds of systems.
1300 Usage: $0 [OPTION]... [VAR=VALUE]...
1302 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1303 VAR=VALUE. See below for descriptions of some of the useful variables.
1305 Defaults for the options are specified in brackets.
1308 -h, --help display this help and exit
1309 --help=short display options specific to this package
1310 --help=recursive display the short help of all the included packages
1311 -V, --version display version information and exit
1312 -q, --quiet, --silent do not print \`checking ...' messages
1313 --cache-file=FILE cache test results in FILE [disabled]
1314 -C, --config-cache alias for \`--cache-file=config.cache'
1315 -n, --no-create do not create output files
1316 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1318 Installation directories:
1319 --prefix=PREFIX install architecture-independent files in PREFIX
1320 [$ac_default_prefix]
1321 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1324 By default, \`make install' will install all the files in
1325 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1326 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1327 for instance \`--prefix=\$HOME'.
1329 For better control, use the options below.
1331 Fine tuning of the installation directories:
1332 --bindir=DIR user executables [EPREFIX/bin]
1333 --sbindir=DIR system admin executables [EPREFIX/sbin]
1334 --libexecdir=DIR program executables [EPREFIX/libexec]
1335 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1336 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1337 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1338 --libdir=DIR object code libraries [EPREFIX/lib]
1339 --includedir=DIR C header files [PREFIX/include]
1340 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1341 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1342 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1343 --infodir=DIR info documentation [DATAROOTDIR/info]
1344 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1345 --mandir=DIR man documentation [DATAROOTDIR/man]
1346 --docdir=DIR documentation root [DATAROOTDIR/doc/gacela]
1347 --htmldir=DIR html documentation [DOCDIR]
1348 --dvidir=DIR dvi documentation [DOCDIR]
1349 --pdfdir=DIR pdf documentation [DOCDIR]
1350 --psdir=DIR ps documentation [DOCDIR]
1356 --program-prefix=PREFIX prepend PREFIX to installed program names
1357 --program-suffix=SUFFIX append SUFFIX to installed program names
1358 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1361 --build=BUILD configure for building on BUILD [guessed]
1362 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1366 if test -n "$ac_init_help"; then
1367 case $ac_init_help in
1368 short | recursive ) echo "Configuration of gacela 0.5:";;
1373 --disable-option-checking ignore unrecognized --enable/--with options
1374 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1375 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1376 --enable-shared[=PKGS] build shared libraries [default=yes]
1377 --enable-static[=PKGS] build static libraries [default=yes]
1378 --enable-fast-install[=PKGS]
1379 optimize for fast installation [default=yes]
1380 --disable-dependency-tracking speeds up one-time build
1381 --enable-dependency-tracking do not reject slow dependency extractors
1382 --disable-libtool-lock avoid locking (might break parallel builds)
1383 --disable-rpath do not hardcode runtime library paths
1386 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1387 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1388 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1390 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1391 --with-sysroot=DIR Search for dependent libraries within DIR
1392 (or the compiler's sysroot if not specified).
1393 --with-gnu-ld assume the C compiler uses GNU ld default=no
1395 Some influential environment variables:
1396 CC C compiler command
1397 CFLAGS C compiler flags
1398 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1399 nonstandard directory <lib dir>
1400 LIBS libraries to pass to the linker, e.g. -l<library>
1401 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1402 you have headers in a nonstandard directory <include dir>
1405 Use these variables to override the choices made by `configure' or to help
1406 it to find libraries and programs with nonstandard names/locations.
1408 Report bugs to <jsf@jsancho.org>.
1413 if test "$ac_init_help" = "recursive"; then
1414 # If there are subdirs, report their specific --help.
1415 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1416 test -d "$ac_dir" ||
1417 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1422 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1424 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1425 # A ".." for each directory in $ac_dir_suffix.
1426 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1427 case $ac_top_builddir_sub in
1428 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1429 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1432 ac_abs_top_builddir=$ac_pwd
1433 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1434 # for backward compatibility:
1435 ac_top_builddir=$ac_top_build_prefix
1438 .) # We are building in place.
1440 ac_top_srcdir=$ac_top_builddir_sub
1441 ac_abs_top_srcdir=$ac_pwd ;;
1442 [\\/]* | ?:[\\/]* ) # Absolute name.
1443 ac_srcdir=$srcdir$ac_dir_suffix;
1444 ac_top_srcdir=$srcdir
1445 ac_abs_top_srcdir=$srcdir ;;
1447 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1448 ac_top_srcdir=$ac_top_build_prefix$srcdir
1449 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1451 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1453 cd "$ac_dir" || { ac_status=$?; continue; }
1454 # Check for guested configure.
1455 if test -f "$ac_srcdir/configure.gnu"; then
1457 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1458 elif test -f "$ac_srcdir/configure"; then
1460 $SHELL "$ac_srcdir/configure" --help=recursive
1462 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1464 cd "$ac_pwd" || { ac_status=$?; break; }
1468 test -n "$ac_init_help" && exit $ac_status
1469 if $ac_init_version; then
1471 gacela configure 0.5
1472 generated by GNU Autoconf 2.68
1474 Copyright (C) 2010 Free Software Foundation, Inc.
1475 This configure script is free software; the Free Software Foundation
1476 gives unlimited permission to copy, distribute and modify it.
1481 ## ------------------------ ##
1482 ## Autoconf initialization. ##
1483 ## ------------------------ ##
1485 # ac_fn_c_try_compile LINENO
1486 # --------------------------
1487 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1488 ac_fn_c_try_compile ()
1490 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1491 rm -f conftest.$ac_objext
1492 if { { ac_try="$ac_compile"
1494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1495 *) ac_try_echo=$ac_try;;
1497 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1498 $as_echo "$ac_try_echo"; } >&5
1499 (eval "$ac_compile") 2>conftest.err
1501 if test -s conftest.err; then
1502 grep -v '^ *+' conftest.err >conftest.er1
1503 cat conftest.er1 >&5
1504 mv -f conftest.er1 conftest.err
1506 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1507 test $ac_status = 0; } && {
1508 test -z "$ac_c_werror_flag" ||
1509 test ! -s conftest.err
1510 } && test -s conftest.$ac_objext; then :
1513 $as_echo "$as_me: failed program was:" >&5
1514 sed 's/^/| /' conftest.$ac_ext >&5
1518 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1519 as_fn_set_status $ac_retval
1521 } # ac_fn_c_try_compile
1523 # ac_fn_c_try_link LINENO
1524 # -----------------------
1525 # Try to link conftest.$ac_ext, and return whether this succeeded.
1528 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1529 rm -f conftest.$ac_objext conftest$ac_exeext
1530 if { { ac_try="$ac_link"
1532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1533 *) ac_try_echo=$ac_try;;
1535 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1536 $as_echo "$ac_try_echo"; } >&5
1537 (eval "$ac_link") 2>conftest.err
1539 if test -s conftest.err; then
1540 grep -v '^ *+' conftest.err >conftest.er1
1541 cat conftest.er1 >&5
1542 mv -f conftest.er1 conftest.err
1544 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1545 test $ac_status = 0; } && {
1546 test -z "$ac_c_werror_flag" ||
1547 test ! -s conftest.err
1548 } && test -s conftest$ac_exeext && {
1549 test "$cross_compiling" = yes ||
1550 $as_test_x conftest$ac_exeext
1554 $as_echo "$as_me: failed program was:" >&5
1555 sed 's/^/| /' conftest.$ac_ext >&5
1559 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1560 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1561 # interfere with the next link command; also delete a directory that is
1562 # left behind by Apple's compiler. We do this before executing the actions.
1563 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1564 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1565 as_fn_set_status $ac_retval
1567 } # ac_fn_c_try_link
1569 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1570 # -------------------------------------------------------
1571 # Tests whether HEADER exists and can be compiled using the include files in
1572 # INCLUDES, setting the cache variable VAR accordingly.
1573 ac_fn_c_check_header_compile ()
1575 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1577 $as_echo_n "checking for $2... " >&6; }
1578 if eval \${$3+:} false; then :
1579 $as_echo_n "(cached) " >&6
1581 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1582 /* end confdefs.h. */
1586 if ac_fn_c_try_compile "$LINENO"; then :
1591 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1595 $as_echo "$ac_res" >&6; }
1596 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1598 } # ac_fn_c_check_header_compile
1600 # ac_fn_c_try_cpp LINENO
1601 # ----------------------
1602 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1605 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1606 if { { ac_try="$ac_cpp conftest.$ac_ext"
1608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1609 *) ac_try_echo=$ac_try;;
1611 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1612 $as_echo "$ac_try_echo"; } >&5
1613 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1615 if test -s conftest.err; then
1616 grep -v '^ *+' conftest.err >conftest.er1
1617 cat conftest.er1 >&5
1618 mv -f conftest.er1 conftest.err
1620 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1621 test $ac_status = 0; } > conftest.i && {
1622 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1623 test ! -s conftest.err
1627 $as_echo "$as_me: failed program was:" >&5
1628 sed 's/^/| /' conftest.$ac_ext >&5
1632 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1633 as_fn_set_status $ac_retval
1637 # ac_fn_c_try_run LINENO
1638 # ----------------------
1639 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1640 # that executables *can* be run.
1643 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1644 if { { ac_try="$ac_link"
1646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1647 *) ac_try_echo=$ac_try;;
1649 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1650 $as_echo "$ac_try_echo"; } >&5
1651 (eval "$ac_link") 2>&5
1653 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1654 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1655 { { case "(($ac_try" in
1656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1657 *) ac_try_echo=$ac_try;;
1659 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1660 $as_echo "$ac_try_echo"; } >&5
1661 (eval "$ac_try") 2>&5
1663 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1664 test $ac_status = 0; }; }; then :
1667 $as_echo "$as_me: program exited with status $ac_status" >&5
1668 $as_echo "$as_me: failed program was:" >&5
1669 sed 's/^/| /' conftest.$ac_ext >&5
1671 ac_retval=$ac_status
1673 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1674 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1675 as_fn_set_status $ac_retval
1679 # ac_fn_c_check_func LINENO FUNC VAR
1680 # ----------------------------------
1681 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1682 ac_fn_c_check_func ()
1684 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1686 $as_echo_n "checking for $2... " >&6; }
1687 if eval \${$3+:} false; then :
1688 $as_echo_n "(cached) " >&6
1690 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1691 /* end confdefs.h. */
1692 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1693 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1694 #define $2 innocuous_$2
1696 /* System header to define __stub macros and hopefully few prototypes,
1697 which can conflict with char $2 (); below.
1698 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1699 <limits.h> exists even on freestanding compilers. */
1702 # include <limits.h>
1704 # include <assert.h>
1709 /* Override any GCC internal prototype to avoid an error.
1710 Use char because int might match the return type of a GCC
1711 builtin and then its argument prototype would still apply. */
1716 /* The GNU C library defines this for functions which it implements
1717 to always fail with ENOSYS. Some functions are actually named
1718 something starting with __ and the normal name is an alias. */
1719 #if defined __stub_$2 || defined __stub___$2
1731 if ac_fn_c_try_link "$LINENO"; then :
1736 rm -f core conftest.err conftest.$ac_objext \
1737 conftest$ac_exeext conftest.$ac_ext
1740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1741 $as_echo "$ac_res" >&6; }
1742 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1744 } # ac_fn_c_check_func
1745 cat >config.log <<_ACEOF
1746 This file contains any messages produced by compilers while
1747 running configure, to aid debugging if configure makes a mistake.
1749 It was created by gacela $as_me 0.5, which was
1750 generated by GNU Autoconf 2.68. Invocation command line was
1762 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1763 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1764 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1765 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1766 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1768 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1769 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1771 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1772 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1773 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1774 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1775 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1776 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1777 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1781 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1785 test -z "$as_dir" && as_dir=.
1786 $as_echo "PATH: $as_dir"
1802 # Keep a trace of the command line.
1803 # Strip out --no-create and --no-recursion so they do not pile up.
1804 # Strip out --silent because we don't want to record it for future runs.
1805 # Also quote any args containing shell meta-characters.
1806 # Make two passes to allow for proper duplicate-argument suppression.
1810 ac_must_keep_next=false
1816 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1817 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1818 | -silent | --silent | --silen | --sile | --sil)
1821 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1824 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1826 as_fn_append ac_configure_args1 " '$ac_arg'"
1827 if test $ac_must_keep_next = true; then
1828 ac_must_keep_next=false # Got value, back to normal.
1831 *=* | --config-cache | -C | -disable-* | --disable-* \
1832 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1833 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1834 | -with-* | --with-* | -without-* | --without-* | --x)
1835 case "$ac_configure_args0 " in
1836 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1839 -* ) ac_must_keep_next=true ;;
1842 as_fn_append ac_configure_args " '$ac_arg'"
1847 { ac_configure_args0=; unset ac_configure_args0;}
1848 { ac_configure_args1=; unset ac_configure_args1;}
1850 # When interrupted or exit'd, cleanup temporary files, and complete
1851 # config.log. We remove comments because anyway the quotes in there
1852 # would cause problems or look ugly.
1853 # WARNING: Use '\'' to represent an apostrophe within the trap.
1854 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1855 trap 'exit_status=$?
1856 # Save into config.log some information that might help in debugging.
1860 $as_echo "## ---------------- ##
1861 ## Cache variables. ##
1862 ## ---------------- ##"
1864 # The following way of writing the cache mishandles newlines in values,
1866 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1867 eval ac_val=\$$ac_var
1871 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1872 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1875 _ | IFS | as_nl) ;; #(
1876 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1877 *) { eval $ac_var=; unset $ac_var;} ;;
1882 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1883 *${as_nl}ac_space=\ *)
1885 "s/'\''/'\''\\\\'\'''\''/g;
1886 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1889 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1896 $as_echo "## ----------------- ##
1897 ## Output variables. ##
1898 ## ----------------- ##"
1900 for ac_var in $ac_subst_vars
1902 eval ac_val=\$$ac_var
1904 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1906 $as_echo "$ac_var='\''$ac_val'\''"
1910 if test -n "$ac_subst_files"; then
1911 $as_echo "## ------------------- ##
1912 ## File substitutions. ##
1913 ## ------------------- ##"
1915 for ac_var in $ac_subst_files
1917 eval ac_val=\$$ac_var
1919 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1921 $as_echo "$ac_var='\''$ac_val'\''"
1926 if test -s confdefs.h; then
1927 $as_echo "## ----------- ##
1934 test "$ac_signal" != 0 &&
1935 $as_echo "$as_me: caught signal $ac_signal"
1936 $as_echo "$as_me: exit $exit_status"
1938 rm -f core *.core core.conftest.* &&
1939 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1942 for ac_signal in 1 2 13 15; do
1943 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1947 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1948 rm -f -r conftest* confdefs.h
1950 $as_echo "/* confdefs.h */" > confdefs.h
1952 # Predefined preprocessor variables.
1954 cat >>confdefs.h <<_ACEOF
1955 #define PACKAGE_NAME "$PACKAGE_NAME"
1958 cat >>confdefs.h <<_ACEOF
1959 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1962 cat >>confdefs.h <<_ACEOF
1963 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1966 cat >>confdefs.h <<_ACEOF
1967 #define PACKAGE_STRING "$PACKAGE_STRING"
1970 cat >>confdefs.h <<_ACEOF
1971 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1974 cat >>confdefs.h <<_ACEOF
1975 #define PACKAGE_URL "$PACKAGE_URL"
1979 # Let the site file select an alternate cache file if it wants to.
1980 # Prefer an explicitly selected file to automatically selected ones.
1983 if test -n "$CONFIG_SITE"; then
1984 # We do not want a PATH search for config.site.
1985 case $CONFIG_SITE in #((
1986 -*) ac_site_file1=./$CONFIG_SITE;;
1987 */*) ac_site_file1=$CONFIG_SITE;;
1988 *) ac_site_file1=./$CONFIG_SITE;;
1990 elif test "x$prefix" != xNONE; then
1991 ac_site_file1=$prefix/share/config.site
1992 ac_site_file2=$prefix/etc/config.site
1994 ac_site_file1=$ac_default_prefix/share/config.site
1995 ac_site_file2=$ac_default_prefix/etc/config.site
1997 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1999 test "x$ac_site_file" = xNONE && continue
2000 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2001 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2002 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2003 sed 's/^/| /' "$ac_site_file" >&5
2005 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2006 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2007 as_fn_error $? "failed to load site script $ac_site_file
2008 See \`config.log' for more details" "$LINENO" 5; }
2012 if test -r "$cache_file"; then
2013 # Some versions of bash will fail to source /dev/null (special files
2014 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2015 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2016 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2017 $as_echo "$as_me: loading cache $cache_file" >&6;}
2019 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2020 *) . "./$cache_file";;
2024 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2025 $as_echo "$as_me: creating cache $cache_file" >&6;}
2029 # Check that the precious variables saved in the cache have kept the same
2031 ac_cache_corrupted=false
2032 for ac_var in $ac_precious_vars; do
2033 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2034 eval ac_new_set=\$ac_env_${ac_var}_set
2035 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2036 eval ac_new_val=\$ac_env_${ac_var}_value
2037 case $ac_old_set,$ac_new_set in
2039 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2040 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2041 ac_cache_corrupted=: ;;
2043 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2044 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2045 ac_cache_corrupted=: ;;
2048 if test "x$ac_old_val" != "x$ac_new_val"; then
2049 # differences in whitespace do not lead to failure.
2050 ac_old_val_w=`echo x $ac_old_val`
2051 ac_new_val_w=`echo x $ac_new_val`
2052 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2053 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2054 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2055 ac_cache_corrupted=:
2057 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2058 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2059 eval $ac_var=\$ac_old_val
2061 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2062 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2063 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2064 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2067 # Pass precious variables to config.status.
2068 if test "$ac_new_set" = set; then
2070 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2071 *) ac_arg=$ac_var=$ac_new_val ;;
2073 case " $ac_configure_args " in
2074 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2075 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2079 if $ac_cache_corrupted; then
2080 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2081 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2082 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2083 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2084 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2086 ## -------------------- ##
2087 ## Main body of script. ##
2088 ## -------------------- ##
2091 ac_cpp='$CPP $CPPFLAGS'
2092 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2093 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2094 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2097 am__api_version='1.11'
2100 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2101 if test -f "$ac_dir/install-sh"; then
2103 ac_install_sh="$ac_aux_dir/install-sh -c"
2105 elif test -f "$ac_dir/install.sh"; then
2107 ac_install_sh="$ac_aux_dir/install.sh -c"
2109 elif test -f "$ac_dir/shtool"; then
2111 ac_install_sh="$ac_aux_dir/shtool install -c"
2115 if test -z "$ac_aux_dir"; then
2116 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2119 # These three variables are undocumented and unsupported,
2120 # and are intended to be withdrawn in a future Autoconf release.
2121 # They can cause serious problems if a builder's source tree is in a directory
2122 # whose full name contains unusual characters.
2123 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2124 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2125 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2128 # Find a good install program. We prefer a C program (faster),
2129 # so one script is as good as another. But avoid the broken or
2130 # incompatible versions:
2131 # SysV /etc/install, /usr/sbin/install
2132 # SunOS /usr/etc/install
2133 # IRIX /sbin/install
2135 # AmigaOS /C/install, which installs bootblocks on floppy discs
2136 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2137 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2138 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2139 # OS/2's system install, which has a completely different semantic
2140 # ./install, which can be erroneously created by make from ./install.sh.
2141 # Reject install programs that cannot install multiple files.
2142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2143 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2144 if test -z "$INSTALL"; then
2145 if ${ac_cv_path_install+:} false; then :
2146 $as_echo_n "(cached) " >&6
2148 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2152 test -z "$as_dir" && as_dir=.
2153 # Account for people who put trailing slashes in PATH elements.
2154 case $as_dir/ in #((
2155 ./ | .// | /[cC]/* | \
2156 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2157 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2160 # OSF1 and SCO ODT 3.0 have their own names for install.
2161 # Don't use installbsd from OSF since it installs stuff as root
2163 for ac_prog in ginstall scoinst install; do
2164 for ac_exec_ext in '' $ac_executable_extensions; do
2165 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2166 if test $ac_prog = install &&
2167 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2168 # AIX install. It has an incompatible calling convention.
2170 elif test $ac_prog = install &&
2171 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2172 # program-specific install script used by HP pwplus--don't use.
2175 rm -rf conftest.one conftest.two conftest.dir
2176 echo one > conftest.one
2177 echo two > conftest.two
2179 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2180 test -s conftest.one && test -s conftest.two &&
2181 test -s conftest.dir/conftest.one &&
2182 test -s conftest.dir/conftest.two
2184 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2197 rm -rf conftest.one conftest.two conftest.dir
2200 if test "${ac_cv_path_install+set}" = set; then
2201 INSTALL=$ac_cv_path_install
2203 # As a last resort, use the slow shell script. Don't cache a
2204 # value for INSTALL within a source directory, because that will
2205 # break other packages using the cache if that directory is
2206 # removed, or if the value is a relative name.
2207 INSTALL=$ac_install_sh
2210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2211 $as_echo "$INSTALL" >&6; }
2213 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2214 # It thinks the first close brace ends the variable substitution.
2215 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2217 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2219 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2222 $as_echo_n "checking whether build environment is sane... " >&6; }
2225 echo timestamp > conftest.file
2226 # Reject unsafe characters in $srcdir or the absolute working directory
2227 # name. Accept space and tab only in the latter.
2231 *[\\\"\#\$\&\'\`$am_lf]*)
2232 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2235 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2236 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2239 # Do `set' in a subshell so we don't clobber the current shell's
2240 # arguments. Must try -L first in case configure is actually a
2241 # symlink; some systems play weird games with the mod time of symlinks
2242 # (eg FreeBSD returns the mod time of the symlink's containing
2245 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2246 if test "$*" = "X"; then
2248 set X `ls -t "$srcdir/configure" conftest.file`
2251 if test "$*" != "X $srcdir/configure conftest.file" \
2252 && test "$*" != "X conftest.file $srcdir/configure"; then
2254 # If neither matched, then we have a broken ls. This can happen
2255 # if, for instance, CONFIG_SHELL is bash and it inherits a
2256 # broken ls alias from the environment. This has actually
2257 # happened. Such a system could not be considered "sane".
2258 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2259 alias in your environment" "$LINENO" 5
2262 test "$2" = conftest.file
2268 as_fn_error $? "newly created file is older than distributed files!
2269 Check your system clock" "$LINENO" 5
2271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2272 $as_echo "yes" >&6; }
2273 test "$program_prefix" != NONE &&
2274 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2275 # Use a double $ so make ignores it.
2276 test "$program_suffix" != NONE &&
2277 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2278 # Double any \ or $.
2279 # By default was `s,x,x', remove it if useless.
2280 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2281 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2283 # expand $ac_aux_dir to an absolute path
2284 am_aux_dir=`cd $ac_aux_dir && pwd`
2286 if test x"${MISSING+set}" != xset; then
2289 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2291 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2294 # Use eval to expand $SHELL
2295 if eval "$MISSING --run true"; then
2296 am_missing_run="$MISSING --run "
2299 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2300 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2303 if test x"${install_sh}" != xset; then
2306 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2308 install_sh="\${SHELL} $am_aux_dir/install-sh"
2312 # Installed binaries are usually stripped using `strip' when the user
2313 # run `make install-strip'. However `strip' might not be the right
2314 # tool to use in cross-compilation environments, therefore Automake
2315 # will honor the `STRIP' environment variable to overrule this program.
2316 if test "$cross_compiling" != no; then
2317 if test -n "$ac_tool_prefix"; then
2318 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2319 set dummy ${ac_tool_prefix}strip; ac_word=$2
2320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2321 $as_echo_n "checking for $ac_word... " >&6; }
2322 if ${ac_cv_prog_STRIP+:} false; then :
2323 $as_echo_n "(cached) " >&6
2325 if test -n "$STRIP"; then
2326 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2328 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2332 test -z "$as_dir" && as_dir=.
2333 for ac_exec_ext in '' $ac_executable_extensions; do
2334 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2335 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2336 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2345 STRIP=$ac_cv_prog_STRIP
2346 if test -n "$STRIP"; then
2347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2348 $as_echo "$STRIP" >&6; }
2350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2351 $as_echo "no" >&6; }
2356 if test -z "$ac_cv_prog_STRIP"; then
2358 # Extract the first word of "strip", so it can be a program name with args.
2359 set dummy strip; ac_word=$2
2360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2361 $as_echo_n "checking for $ac_word... " >&6; }
2362 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2363 $as_echo_n "(cached) " >&6
2365 if test -n "$ac_ct_STRIP"; then
2366 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2368 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2372 test -z "$as_dir" && as_dir=.
2373 for ac_exec_ext in '' $ac_executable_extensions; do
2374 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2375 ac_cv_prog_ac_ct_STRIP="strip"
2376 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2385 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2386 if test -n "$ac_ct_STRIP"; then
2387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2388 $as_echo "$ac_ct_STRIP" >&6; }
2390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2391 $as_echo "no" >&6; }
2394 if test "x$ac_ct_STRIP" = x; then
2397 case $cross_compiling:$ac_tool_warned in
2399 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2400 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2401 ac_tool_warned=yes ;;
2406 STRIP="$ac_cv_prog_STRIP"
2410 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2413 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2414 if test -z "$MKDIR_P"; then
2415 if ${ac_cv_path_mkdir+:} false; then :
2416 $as_echo_n "(cached) " >&6
2418 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2419 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2422 test -z "$as_dir" && as_dir=.
2423 for ac_prog in mkdir gmkdir; do
2424 for ac_exec_ext in '' $ac_executable_extensions; do
2425 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2426 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2427 'mkdir (GNU coreutils) '* | \
2428 'mkdir (coreutils) '* | \
2429 'mkdir (fileutils) '4.1*)
2430 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2440 test -d ./--version && rmdir ./--version
2441 if test "${ac_cv_path_mkdir+set}" = set; then
2442 MKDIR_P="$ac_cv_path_mkdir -p"
2444 # As a last resort, use the slow shell script. Don't cache a
2445 # value for MKDIR_P within a source directory, because that will
2446 # break other packages using the cache if that directory is
2447 # removed, or if the value is a relative name.
2448 MKDIR_P="$ac_install_sh -d"
2451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2452 $as_echo "$MKDIR_P" >&6; }
2456 [\\/$]* | ?:[\\/]*) ;;
2457 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2460 for ac_prog in gawk mawk nawk awk
2462 # Extract the first word of "$ac_prog", so it can be a program name with args.
2463 set dummy $ac_prog; ac_word=$2
2464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2465 $as_echo_n "checking for $ac_word... " >&6; }
2466 if ${ac_cv_prog_AWK+:} false; then :
2467 $as_echo_n "(cached) " >&6
2469 if test -n "$AWK"; then
2470 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2472 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2476 test -z "$as_dir" && as_dir=.
2477 for ac_exec_ext in '' $ac_executable_extensions; do
2478 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2479 ac_cv_prog_AWK="$ac_prog"
2480 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2490 if test -n "$AWK"; then
2491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2492 $as_echo "$AWK" >&6; }
2494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2495 $as_echo "no" >&6; }
2499 test -n "$AWK" && break
2502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2503 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2505 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2506 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2507 $as_echo_n "(cached) " >&6
2509 cat >conftest.make <<\_ACEOF
2512 @echo '@@@%%%=$(MAKE)=@@@%%%'
2514 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2515 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2517 eval ac_cv_prog_make_${ac_make}_set=yes;;
2519 eval ac_cv_prog_make_${ac_make}_set=no;;
2523 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2525 $as_echo "yes" >&6; }
2528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2529 $as_echo "no" >&6; }
2530 SET_MAKE="MAKE=${MAKE-make}"
2533 rm -rf .tst 2>/dev/null
2534 mkdir .tst 2>/dev/null
2535 if test -d .tst; then
2540 rmdir .tst 2>/dev/null
2542 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2543 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2544 # is not polluted with repeated "-I."
2545 am__isrc=' -I$(srcdir)'
2546 # test to see if srcdir already configured
2547 if test -f $srcdir/config.status; then
2548 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2552 # test whether we have cygpath
2553 if test -z "$CYGPATH_W"; then
2554 if (cygpath --version) >/dev/null 2>/dev/null; then
2555 CYGPATH_W='cygpath -w'
2562 # Define the identity of the package.
2567 cat >>confdefs.h <<_ACEOF
2568 #define PACKAGE "$PACKAGE"
2572 cat >>confdefs.h <<_ACEOF
2573 #define VERSION "$VERSION"
2576 # Some tools Automake needs.
2578 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2581 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2584 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2587 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2590 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2592 # We need awk for the "check" target. The system "awk" is bad on
2594 # Always define AMTAR for backward compatibility.
2596 AMTAR=${AMTAR-"${am_missing_run}tar"}
2598 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2606 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
2607 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
2612 macro_version='2.4.2'
2613 macro_revision='1.3337'
2627 ltmain="$ac_aux_dir/ltmain.sh"
2629 # Make sure we can run config.sub.
2630 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2631 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2634 $as_echo_n "checking build system type... " >&6; }
2635 if ${ac_cv_build+:} false; then :
2636 $as_echo_n "(cached) " >&6
2638 ac_build_alias=$build_alias
2639 test "x$ac_build_alias" = x &&
2640 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2641 test "x$ac_build_alias" = x &&
2642 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2643 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2644 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2648 $as_echo "$ac_cv_build" >&6; }
2649 case $ac_cv_build in
2651 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2654 ac_save_IFS=$IFS; IFS='-'
2660 # Remember, the first character of IFS is used to create $*,
2661 # except with old shells:
2664 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2668 $as_echo_n "checking host system type... " >&6; }
2669 if ${ac_cv_host+:} false; then :
2670 $as_echo_n "(cached) " >&6
2672 if test "x$host_alias" = x; then
2673 ac_cv_host=$ac_cv_build
2675 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2676 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2681 $as_echo "$ac_cv_host" >&6; }
2684 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2687 ac_save_IFS=$IFS; IFS='-'
2693 # Remember, the first character of IFS is used to create $*,
2694 # except with old shells:
2697 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2700 # Backslashify metacharacters that are still active within
2701 # double-quoted strings.
2702 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
2704 # Same as above, but do not quote variable references.
2705 double_quote_subst='s/\(["`\\]\)/\\\1/g'
2707 # Sed substitution to delay expansion of an escaped shell variable in a
2708 # double_quote_subst'ed string.
2709 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
2711 # Sed substitution to delay expansion of an escaped single quote.
2712 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
2714 # Sed substitution to avoid accidental globbing in evaled expressions
2715 no_glob_subst='s/\*/\\\*/g'
2717 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
2718 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
2719 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
2721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
2722 $as_echo_n "checking how to print strings... " >&6; }
2723 # Test print first, because it will be a builtin if present.
2724 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
2725 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
2727 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
2730 # Use this function as a fallback that always works.
2731 func_fallback_echo ()
2733 eval 'cat <<_LTECHO_EOF
2737 ECHO='func_fallback_echo'
2740 # func_echo_all arg...
2741 # Invoke $ECHO with all args, space-separated.
2748 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
2749 $as_echo "printf" >&6; } ;;
2750 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
2751 $as_echo "print -r" >&6; } ;;
2752 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
2753 $as_echo "cat" >&6; } ;;
2769 DEPDIR="${am__leading_dot}deps"
2771 ac_config_commands="$ac_config_commands depfiles"
2774 am_make=${MAKE-make}
2775 cat > confinc << 'END'
2777 @echo this is the am__doit target
2780 # If we don't find an include directive, just comment out the code.
2781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
2782 $as_echo_n "checking for style of include used by $am_make... " >&6; }
2786 # First try GNU make style include.
2787 echo "include confinc" > confmf
2788 # Ignore all kinds of additional output from `make'.
2789 case `$am_make -s -f confmf 2> /dev/null` in #(
2790 *the\ am__doit\ target*)
2796 # Now try BSD make style include.
2797 if test "$am__include" = "#"; then
2798 echo '.include "confinc"' > confmf
2799 case `$am_make -s -f confmf 2> /dev/null` in #(
2800 *the\ am__doit\ target*)
2801 am__include=.include
2809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
2810 $as_echo "$_am_result" >&6; }
2811 rm -f confinc confmf
2813 # Check whether --enable-dependency-tracking was given.
2814 if test "${enable_dependency_tracking+set}" = set; then :
2815 enableval=$enable_dependency_tracking;
2818 if test "x$enable_dependency_tracking" != xno; then
2819 am_depcomp="$ac_aux_dir/depcomp"
2822 if test "x$enable_dependency_tracking" != xno; then
2832 ac_cpp='$CPP $CPPFLAGS'
2833 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2834 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2835 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2836 if test -n "$ac_tool_prefix"; then
2837 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2838 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2840 $as_echo_n "checking for $ac_word... " >&6; }
2841 if ${ac_cv_prog_CC+:} false; then :
2842 $as_echo_n "(cached) " >&6
2844 if test -n "$CC"; then
2845 ac_cv_prog_CC="$CC" # Let the user override the test.
2847 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2851 test -z "$as_dir" && as_dir=.
2852 for ac_exec_ext in '' $ac_executable_extensions; do
2853 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2854 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2855 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2865 if test -n "$CC"; then
2866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2867 $as_echo "$CC" >&6; }
2869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2870 $as_echo "no" >&6; }
2875 if test -z "$ac_cv_prog_CC"; then
2877 # Extract the first word of "gcc", so it can be a program name with args.
2878 set dummy gcc; ac_word=$2
2879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2880 $as_echo_n "checking for $ac_word... " >&6; }
2881 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2882 $as_echo_n "(cached) " >&6
2884 if test -n "$ac_ct_CC"; then
2885 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2887 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2891 test -z "$as_dir" && as_dir=.
2892 for ac_exec_ext in '' $ac_executable_extensions; do
2893 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2894 ac_cv_prog_ac_ct_CC="gcc"
2895 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2904 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2905 if test -n "$ac_ct_CC"; then
2906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2907 $as_echo "$ac_ct_CC" >&6; }
2909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2910 $as_echo "no" >&6; }
2913 if test "x$ac_ct_CC" = x; then
2916 case $cross_compiling:$ac_tool_warned in
2918 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2919 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2920 ac_tool_warned=yes ;;
2928 if test -z "$CC"; then
2929 if test -n "$ac_tool_prefix"; then
2930 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2931 set dummy ${ac_tool_prefix}cc; ac_word=$2
2932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2933 $as_echo_n "checking for $ac_word... " >&6; }
2934 if ${ac_cv_prog_CC+:} false; then :
2935 $as_echo_n "(cached) " >&6
2937 if test -n "$CC"; then
2938 ac_cv_prog_CC="$CC" # Let the user override the test.
2940 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2944 test -z "$as_dir" && as_dir=.
2945 for ac_exec_ext in '' $ac_executable_extensions; do
2946 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2947 ac_cv_prog_CC="${ac_tool_prefix}cc"
2948 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2958 if test -n "$CC"; then
2959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2960 $as_echo "$CC" >&6; }
2962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2963 $as_echo "no" >&6; }
2969 if test -z "$CC"; then
2970 # Extract the first word of "cc", so it can be a program name with args.
2971 set dummy cc; ac_word=$2
2972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2973 $as_echo_n "checking for $ac_word... " >&6; }
2974 if ${ac_cv_prog_CC+:} false; then :
2975 $as_echo_n "(cached) " >&6
2977 if test -n "$CC"; then
2978 ac_cv_prog_CC="$CC" # Let the user override the test.
2981 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2985 test -z "$as_dir" && as_dir=.
2986 for ac_exec_ext in '' $ac_executable_extensions; do
2987 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2988 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2989 ac_prog_rejected=yes
2993 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3000 if test $ac_prog_rejected = yes; then
3001 # We found a bogon in the path, so make sure we never use it.
3002 set dummy $ac_cv_prog_CC
3004 if test $# != 0; then
3005 # We chose a different compiler from the bogus one.
3006 # However, it has the same basename, so the bogon will be chosen
3007 # first if we set CC to just the basename; use the full file name.
3009 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3015 if test -n "$CC"; then
3016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3017 $as_echo "$CC" >&6; }
3019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3020 $as_echo "no" >&6; }
3025 if test -z "$CC"; then
3026 if test -n "$ac_tool_prefix"; then
3027 for ac_prog in cl.exe
3029 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3030 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3032 $as_echo_n "checking for $ac_word... " >&6; }
3033 if ${ac_cv_prog_CC+:} false; then :
3034 $as_echo_n "(cached) " >&6
3036 if test -n "$CC"; then
3037 ac_cv_prog_CC="$CC" # Let the user override the test.
3039 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3043 test -z "$as_dir" && as_dir=.
3044 for ac_exec_ext in '' $ac_executable_extensions; do
3045 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3046 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3047 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3057 if test -n "$CC"; then
3058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3059 $as_echo "$CC" >&6; }
3061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3062 $as_echo "no" >&6; }
3066 test -n "$CC" && break
3069 if test -z "$CC"; then
3071 for ac_prog in cl.exe
3073 # Extract the first word of "$ac_prog", so it can be a program name with args.
3074 set dummy $ac_prog; ac_word=$2
3075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3076 $as_echo_n "checking for $ac_word... " >&6; }
3077 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3078 $as_echo_n "(cached) " >&6
3080 if test -n "$ac_ct_CC"; then
3081 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3083 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3087 test -z "$as_dir" && as_dir=.
3088 for ac_exec_ext in '' $ac_executable_extensions; do
3089 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3090 ac_cv_prog_ac_ct_CC="$ac_prog"
3091 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3100 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3101 if test -n "$ac_ct_CC"; then
3102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3103 $as_echo "$ac_ct_CC" >&6; }
3105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3106 $as_echo "no" >&6; }
3110 test -n "$ac_ct_CC" && break
3113 if test "x$ac_ct_CC" = x; then
3116 case $cross_compiling:$ac_tool_warned in
3118 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3119 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3120 ac_tool_warned=yes ;;
3129 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3130 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3131 as_fn_error $? "no acceptable C compiler found in \$PATH
3132 See \`config.log' for more details" "$LINENO" 5; }
3134 # Provide some information about the compiler.
3135 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3138 for ac_option in --version -v -V -qversion; do
3139 { { ac_try="$ac_compiler $ac_option >&5"
3141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3142 *) ac_try_echo=$ac_try;;
3144 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3145 $as_echo "$ac_try_echo"; } >&5
3146 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3148 if test -s conftest.err; then
3150 ... rest of stderr output deleted ...
3151 10q' conftest.err >conftest.er1
3152 cat conftest.er1 >&5
3154 rm -f conftest.er1 conftest.err
3155 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3156 test $ac_status = 0; }
3159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3160 /* end confdefs.h. */
3170 ac_clean_files_save=$ac_clean_files
3171 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3172 # Try to create an executable without -o first, disregard a.out.
3173 # It will help us diagnose broken compilers, and finding out an intuition
3175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3176 $as_echo_n "checking whether the C compiler works... " >&6; }
3177 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3179 # The possible output files:
3180 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3183 for ac_file in $ac_files
3186 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3187 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3192 if { { ac_try="$ac_link_default"
3194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3195 *) ac_try_echo=$ac_try;;
3197 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3198 $as_echo "$ac_try_echo"; } >&5
3199 (eval "$ac_link_default") 2>&5
3201 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3202 test $ac_status = 0; }; then :
3203 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3204 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3205 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3206 # so that the user can short-circuit this test for compilers unknown to
3208 for ac_file in $ac_files ''
3210 test -f "$ac_file" || continue
3212 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3215 # We found the default executable, but exeext='' is most
3219 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3221 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3223 # We set ac_cv_exeext here because the later test for it is not
3224 # safe: cross compilers may not add the suffix if given an `-o'
3225 # argument, so we may need to know it at that point already.
3226 # Even if this section looks crufty: it has the advantage of
3233 test "$ac_cv_exeext" = no && ac_cv_exeext=
3238 if test -z "$ac_file"; then :
3239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3240 $as_echo "no" >&6; }
3241 $as_echo "$as_me: failed program was:" >&5
3242 sed 's/^/| /' conftest.$ac_ext >&5
3244 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3245 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3246 as_fn_error 77 "C compiler cannot create executables
3247 See \`config.log' for more details" "$LINENO" 5; }
3249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3250 $as_echo "yes" >&6; }
3252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3253 $as_echo_n "checking for C compiler default output file name... " >&6; }
3254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3255 $as_echo "$ac_file" >&6; }
3256 ac_exeext=$ac_cv_exeext
3258 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3259 ac_clean_files=$ac_clean_files_save
3260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3261 $as_echo_n "checking for suffix of executables... " >&6; }
3262 if { { ac_try="$ac_link"
3264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3265 *) ac_try_echo=$ac_try;;
3267 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3268 $as_echo "$ac_try_echo"; } >&5
3269 (eval "$ac_link") 2>&5
3271 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3272 test $ac_status = 0; }; then :
3273 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3274 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3275 # work properly (i.e., refer to `conftest.exe'), while it won't with
3277 for ac_file in conftest.exe conftest conftest.*; do
3278 test -f "$ac_file" || continue
3280 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3281 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3287 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3288 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3289 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3290 See \`config.log' for more details" "$LINENO" 5; }
3292 rm -f conftest conftest$ac_cv_exeext
3293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3294 $as_echo "$ac_cv_exeext" >&6; }
3296 rm -f conftest.$ac_ext
3297 EXEEXT=$ac_cv_exeext
3299 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3300 /* end confdefs.h. */
3305 FILE *f = fopen ("conftest.out", "w");
3306 return ferror (f) || fclose (f) != 0;
3312 ac_clean_files="$ac_clean_files conftest.out"
3313 # Check that the compiler produces executables we can run. If not, either
3314 # the compiler is broken, or we cross compile.
3315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3316 $as_echo_n "checking whether we are cross compiling... " >&6; }
3317 if test "$cross_compiling" != yes; then
3318 { { ac_try="$ac_link"
3320 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3321 *) ac_try_echo=$ac_try;;
3323 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3324 $as_echo "$ac_try_echo"; } >&5
3325 (eval "$ac_link") 2>&5
3327 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3328 test $ac_status = 0; }
3329 if { ac_try='./conftest$ac_cv_exeext'
3330 { { case "(($ac_try" in
3331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3332 *) ac_try_echo=$ac_try;;
3334 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3335 $as_echo "$ac_try_echo"; } >&5
3336 (eval "$ac_try") 2>&5
3338 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3339 test $ac_status = 0; }; }; then
3342 if test "$cross_compiling" = maybe; then
3345 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3346 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3347 as_fn_error $? "cannot run C compiled programs.
3348 If you meant to cross compile, use \`--host'.
3349 See \`config.log' for more details" "$LINENO" 5; }
3353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3354 $as_echo "$cross_compiling" >&6; }
3356 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3357 ac_clean_files=$ac_clean_files_save
3358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3359 $as_echo_n "checking for suffix of object files... " >&6; }
3360 if ${ac_cv_objext+:} false; then :
3361 $as_echo_n "(cached) " >&6
3363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3364 /* end confdefs.h. */
3374 rm -f conftest.o conftest.obj
3375 if { { ac_try="$ac_compile"
3377 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3378 *) ac_try_echo=$ac_try;;
3380 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3381 $as_echo "$ac_try_echo"; } >&5
3382 (eval "$ac_compile") 2>&5
3384 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3385 test $ac_status = 0; }; then :
3386 for ac_file in conftest.o conftest.obj conftest.*; do
3387 test -f "$ac_file" || continue;
3389 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3390 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3395 $as_echo "$as_me: failed program was:" >&5
3396 sed 's/^/| /' conftest.$ac_ext >&5
3398 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3399 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3400 as_fn_error $? "cannot compute suffix of object files: cannot compile
3401 See \`config.log' for more details" "$LINENO" 5; }
3403 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3406 $as_echo "$ac_cv_objext" >&6; }
3407 OBJEXT=$ac_cv_objext
3409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3410 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3411 if ${ac_cv_c_compiler_gnu+:} false; then :
3412 $as_echo_n "(cached) " >&6
3414 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3415 /* end confdefs.h. */
3428 if ac_fn_c_try_compile "$LINENO"; then :
3433 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3434 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3438 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3439 if test $ac_compiler_gnu = yes; then
3444 ac_test_CFLAGS=${CFLAGS+set}
3445 ac_save_CFLAGS=$CFLAGS
3446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3447 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3448 if ${ac_cv_prog_cc_g+:} false; then :
3449 $as_echo_n "(cached) " >&6
3451 ac_save_c_werror_flag=$ac_c_werror_flag
3452 ac_c_werror_flag=yes
3455 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3456 /* end confdefs.h. */
3466 if ac_fn_c_try_compile "$LINENO"; then :
3470 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3471 /* end confdefs.h. */
3481 if ac_fn_c_try_compile "$LINENO"; then :
3484 ac_c_werror_flag=$ac_save_c_werror_flag
3486 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3487 /* end confdefs.h. */
3497 if ac_fn_c_try_compile "$LINENO"; then :
3500 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3502 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3504 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3505 ac_c_werror_flag=$ac_save_c_werror_flag
3507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3508 $as_echo "$ac_cv_prog_cc_g" >&6; }
3509 if test "$ac_test_CFLAGS" = set; then
3510 CFLAGS=$ac_save_CFLAGS
3511 elif test $ac_cv_prog_cc_g = yes; then
3512 if test "$GCC" = yes; then
3518 if test "$GCC" = yes; then
3524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3525 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3526 if ${ac_cv_prog_cc_c89+:} false; then :
3527 $as_echo_n "(cached) " >&6
3529 ac_cv_prog_cc_c89=no
3531 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3532 /* end confdefs.h. */
3535 #include <sys/types.h>
3536 #include <sys/stat.h>
3537 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3538 struct buf { int x; };
3539 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3540 static char *e (p, i)
3546 static char *f (char * (*g) (char **, int), char **p, ...)
3551 s = g (p, va_arg (v,int));
3556 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3557 function prototypes and stuff, but not '\xHH' hex character constants.
3558 These don't provoke an error unfortunately, instead are silently treated
3559 as 'x'. The following induces an error, until -std is added to get
3560 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3561 array size at least. It's necessary to write '\x00'==0 to get something
3562 that's true only with -std. */
3563 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3565 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3566 inside strings and character constants. */
3568 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3570 int test (int i, double x);
3571 struct s1 {int (*f) (int a);};
3572 struct s2 {int (*f) (double a);};
3573 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3579 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3584 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3585 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3587 CC="$ac_save_CC $ac_arg"
3588 if ac_fn_c_try_compile "$LINENO"; then :
3589 ac_cv_prog_cc_c89=$ac_arg
3591 rm -f core conftest.err conftest.$ac_objext
3592 test "x$ac_cv_prog_cc_c89" != "xno" && break
3594 rm -f conftest.$ac_ext
3599 case "x$ac_cv_prog_cc_c89" in
3601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3602 $as_echo "none needed" >&6; } ;;
3604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3605 $as_echo "unsupported" >&6; } ;;
3607 CC="$CC $ac_cv_prog_cc_c89"
3608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3609 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3611 if test "x$ac_cv_prog_cc_c89" != xno; then :
3616 ac_cpp='$CPP $CPPFLAGS'
3617 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3618 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3619 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3621 depcc="$CC" am_compiler_list=
3623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3624 $as_echo_n "checking dependency style of $depcc... " >&6; }
3625 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3626 $as_echo_n "(cached) " >&6
3628 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3629 # We make a subdir and do the tests there. Otherwise we can end up
3630 # making bogus files that we don't know about and never remove. For
3631 # instance it was reported that on HP-UX the gcc test will end up
3632 # making a dummy file named `D' -- because `-MD' means `put the output
3635 # Copy depcomp to subdir because otherwise we won't find it if we're
3636 # using a relative directory.
3637 cp "$am_depcomp" conftest.dir
3639 # We will build objects and dependencies in a subdirectory because
3640 # it helps to detect inapplicable dependency modes. For instance
3641 # both Tru64's cc and ICC support -MD to output dependencies as a
3642 # side effect of compilation, but ICC will put the dependencies in
3643 # the current directory while Tru64 will put them in the object
3647 am_cv_CC_dependencies_compiler_type=none
3648 if test "$am_compiler_list" = ""; then
3649 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3652 case " $depcc " in #(
3653 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3656 for depmode in $am_compiler_list; do
3657 # Setup a source with many dependencies, because some compilers
3658 # like to wrap large dependency lists on column 80 (with \), and
3659 # we should not choose a depcomp mode which is confused by this.
3661 # We need to recreate these files for each test, as the compiler may
3662 # overwrite some of them when testing with obscure command lines.
3663 # This happens at least with the AIX C compiler.
3665 for i in 1 2 3 4 5 6; do
3666 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3667 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3668 # Solaris 8's {/usr,}/bin/sh.
3669 touch sub/conftst$i.h
3671 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3673 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3674 # mode. It turns out that the SunPro C++ compiler does not properly
3675 # handle `-M -o', and we need to detect this. Also, some Intel
3676 # versions had trouble with output in subdirs
3677 am__obj=sub/conftest.${OBJEXT-o}
3678 am__minus_obj="-o $am__obj"
3681 # This depmode causes a compiler race in universal mode.
3682 test "$am__universal" = false || continue
3685 # after this tag, mechanisms are not by side-effect, so they'll
3686 # only be used when explicitly requested
3687 if test "x$enable_dependency_tracking" = xyes; then
3693 msvisualcpp | msvcmsys)
3694 # This compiler won't grok `-c -o', but also, the minuso test has
3695 # not run yet. These depmodes are late enough in the game, and
3696 # so weak that their functioning should not be impacted.
3697 am__obj=conftest.${OBJEXT-o}
3702 if depmode=$depmode \
3703 source=sub/conftest.c object=$am__obj \
3704 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3705 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3706 >/dev/null 2>conftest.err &&
3707 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3708 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3709 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3710 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3711 # icc doesn't choke on unknown options, it will just issue warnings
3712 # or remarks (even with -Werror). So we grep stderr for any message
3713 # that says an option was ignored or not supported.
3714 # When given -MP, icc 7.0 and 7.1 complain thusly:
3715 # icc: Command line warning: ignoring option '-M'; no argument required
3716 # The diagnosis changed in icc 8.0:
3717 # icc: Command line remark: option '-MP' not supported
3718 if (grep 'ignoring option' conftest.err ||
3719 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3720 am_cv_CC_dependencies_compiler_type=$depmode
3729 am_cv_CC_dependencies_compiler_type=none
3733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3734 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3735 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3738 test "x$enable_dependency_tracking" != xno \
3739 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3741 am__fastdepCC_FALSE='#'
3743 am__fastdepCC_TRUE='#'
3744 am__fastdepCC_FALSE=
3748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
3749 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
3750 if ${ac_cv_path_SED+:} false; then :
3751 $as_echo_n "(cached) " >&6
3753 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
3754 for ac_i in 1 2 3 4 5 6 7; do
3755 ac_script="$ac_script$as_nl$ac_script"
3757 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
3758 { ac_script=; unset ac_script;}
3759 if test -z "$SED"; then
3760 ac_path_SED_found=false
3761 # Loop through the user's path and test for each of PROGNAME-LIST
3762 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3766 test -z "$as_dir" && as_dir=.
3767 for ac_prog in sed gsed; do
3768 for ac_exec_ext in '' $ac_executable_extensions; do
3769 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
3770 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
3771 # Check for GNU ac_path_SED and select it if it is found.
3772 # Check for GNU $ac_path_SED
3773 case `"$ac_path_SED" --version 2>&1` in
3775 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
3778 $as_echo_n 0123456789 >"conftest.in"
3781 cat "conftest.in" "conftest.in" >"conftest.tmp"
3782 mv "conftest.tmp" "conftest.in"
3783 cp "conftest.in" "conftest.nl"
3784 $as_echo '' >> "conftest.nl"
3785 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
3786 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3787 as_fn_arith $ac_count + 1 && ac_count=$as_val
3788 if test $ac_count -gt ${ac_path_SED_max-0}; then
3789 # Best one so far, save it but keep looking for a better one
3790 ac_cv_path_SED="$ac_path_SED"
3791 ac_path_SED_max=$ac_count
3793 # 10*(2^10) chars as input seems more than enough
3794 test $ac_count -gt 10 && break
3796 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3799 $ac_path_SED_found && break 3
3804 if test -z "$ac_cv_path_SED"; then
3805 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
3812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
3813 $as_echo "$ac_cv_path_SED" >&6; }
3814 SED="$ac_cv_path_SED"
3817 test -z "$SED" && SED=sed
3818 Xsed="$SED -e 1s/^X//"
3830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3831 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3832 if ${ac_cv_path_GREP+:} false; then :
3833 $as_echo_n "(cached) " >&6
3835 if test -z "$GREP"; then
3836 ac_path_GREP_found=false
3837 # Loop through the user's path and test for each of PROGNAME-LIST
3838 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3839 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3842 test -z "$as_dir" && as_dir=.
3843 for ac_prog in grep ggrep; do
3844 for ac_exec_ext in '' $ac_executable_extensions; do
3845 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3846 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3847 # Check for GNU ac_path_GREP and select it if it is found.
3848 # Check for GNU $ac_path_GREP
3849 case `"$ac_path_GREP" --version 2>&1` in
3851 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3854 $as_echo_n 0123456789 >"conftest.in"
3857 cat "conftest.in" "conftest.in" >"conftest.tmp"
3858 mv "conftest.tmp" "conftest.in"
3859 cp "conftest.in" "conftest.nl"
3860 $as_echo 'GREP' >> "conftest.nl"
3861 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3862 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3863 as_fn_arith $ac_count + 1 && ac_count=$as_val
3864 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3865 # Best one so far, save it but keep looking for a better one
3866 ac_cv_path_GREP="$ac_path_GREP"
3867 ac_path_GREP_max=$ac_count
3869 # 10*(2^10) chars as input seems more than enough
3870 test $ac_count -gt 10 && break
3872 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3875 $ac_path_GREP_found && break 3
3880 if test -z "$ac_cv_path_GREP"; then
3881 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3884 ac_cv_path_GREP=$GREP
3888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3889 $as_echo "$ac_cv_path_GREP" >&6; }
3890 GREP="$ac_cv_path_GREP"
3893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3894 $as_echo_n "checking for egrep... " >&6; }
3895 if ${ac_cv_path_EGREP+:} false; then :
3896 $as_echo_n "(cached) " >&6
3898 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3899 then ac_cv_path_EGREP="$GREP -E"
3901 if test -z "$EGREP"; then
3902 ac_path_EGREP_found=false
3903 # Loop through the user's path and test for each of PROGNAME-LIST
3904 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3905 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3908 test -z "$as_dir" && as_dir=.
3909 for ac_prog in egrep; do
3910 for ac_exec_ext in '' $ac_executable_extensions; do
3911 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3912 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3913 # Check for GNU ac_path_EGREP and select it if it is found.
3914 # Check for GNU $ac_path_EGREP
3915 case `"$ac_path_EGREP" --version 2>&1` in
3917 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3920 $as_echo_n 0123456789 >"conftest.in"
3923 cat "conftest.in" "conftest.in" >"conftest.tmp"
3924 mv "conftest.tmp" "conftest.in"
3925 cp "conftest.in" "conftest.nl"
3926 $as_echo 'EGREP' >> "conftest.nl"
3927 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3928 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3929 as_fn_arith $ac_count + 1 && ac_count=$as_val
3930 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3931 # Best one so far, save it but keep looking for a better one
3932 ac_cv_path_EGREP="$ac_path_EGREP"
3933 ac_path_EGREP_max=$ac_count
3935 # 10*(2^10) chars as input seems more than enough
3936 test $ac_count -gt 10 && break
3938 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3941 $ac_path_EGREP_found && break 3
3946 if test -z "$ac_cv_path_EGREP"; then
3947 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3950 ac_cv_path_EGREP=$EGREP
3955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3956 $as_echo "$ac_cv_path_EGREP" >&6; }
3957 EGREP="$ac_cv_path_EGREP"
3960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
3961 $as_echo_n "checking for fgrep... " >&6; }
3962 if ${ac_cv_path_FGREP+:} false; then :
3963 $as_echo_n "(cached) " >&6
3965 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
3966 then ac_cv_path_FGREP="$GREP -F"
3968 if test -z "$FGREP"; then
3969 ac_path_FGREP_found=false
3970 # Loop through the user's path and test for each of PROGNAME-LIST
3971 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3972 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3975 test -z "$as_dir" && as_dir=.
3976 for ac_prog in fgrep; do
3977 for ac_exec_ext in '' $ac_executable_extensions; do
3978 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
3979 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
3980 # Check for GNU ac_path_FGREP and select it if it is found.
3981 # Check for GNU $ac_path_FGREP
3982 case `"$ac_path_FGREP" --version 2>&1` in
3984 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
3987 $as_echo_n 0123456789 >"conftest.in"
3990 cat "conftest.in" "conftest.in" >"conftest.tmp"
3991 mv "conftest.tmp" "conftest.in"
3992 cp "conftest.in" "conftest.nl"
3993 $as_echo 'FGREP' >> "conftest.nl"
3994 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
3995 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3996 as_fn_arith $ac_count + 1 && ac_count=$as_val
3997 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
3998 # Best one so far, save it but keep looking for a better one
3999 ac_cv_path_FGREP="$ac_path_FGREP"
4000 ac_path_FGREP_max=$ac_count
4002 # 10*(2^10) chars as input seems more than enough
4003 test $ac_count -gt 10 && break
4005 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4008 $ac_path_FGREP_found && break 3
4013 if test -z "$ac_cv_path_FGREP"; then
4014 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4017 ac_cv_path_FGREP=$FGREP
4022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4023 $as_echo "$ac_cv_path_FGREP" >&6; }
4024 FGREP="$ac_cv_path_FGREP"
4027 test -z "$GREP" && GREP=grep
4047 # Check whether --with-gnu-ld was given.
4048 if test "${with_gnu_ld+set}" = set; then :
4049 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4055 if test "$GCC" = yes; then
4056 # Check if gcc -print-prog-name=ld gives a path.
4057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4058 $as_echo_n "checking for ld used by $CC... " >&6; }
4061 # gcc leaves a trailing carriage return which upsets mingw
4062 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4064 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4067 # Accept absolute paths.
4069 re_direlt='/[^/][^/]*/\.\./'
4070 # Canonicalize the pathname of ld
4071 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4072 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4073 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4075 test -z "$LD" && LD="$ac_prog"
4078 # If it fails, then pretend we aren't using GCC.
4082 # If it is relative, then search for the first ld in PATH.
4086 elif test "$with_gnu_ld" = yes; then
4087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4088 $as_echo_n "checking for GNU ld... " >&6; }
4090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4091 $as_echo_n "checking for non-GNU ld... " >&6; }
4093 if ${lt_cv_path_LD+:} false; then :
4094 $as_echo_n "(cached) " >&6
4096 if test -z "$LD"; then
4097 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4098 for ac_dir in $PATH; do
4100 test -z "$ac_dir" && ac_dir=.
4101 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4102 lt_cv_path_LD="$ac_dir/$ac_prog"
4103 # Check to see if the program is GNU ld. I'd rather use --version,
4104 # but apparently some variants of GNU ld only accept -v.
4105 # Break only if it was the GNU/non-GNU ld that we prefer.
4106 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4107 *GNU* | *'with BFD'*)
4108 test "$with_gnu_ld" != no && break
4111 test "$with_gnu_ld" != yes && break
4118 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4123 if test -n "$LD"; then
4124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4125 $as_echo "$LD" >&6; }
4127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4128 $as_echo "no" >&6; }
4130 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4132 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4133 if ${lt_cv_prog_gnu_ld+:} false; then :
4134 $as_echo_n "(cached) " >&6
4136 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4137 case `$LD -v 2>&1 </dev/null` in
4138 *GNU* | *'with BFD'*)
4139 lt_cv_prog_gnu_ld=yes
4142 lt_cv_prog_gnu_ld=no
4146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4147 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4148 with_gnu_ld=$lt_cv_prog_gnu_ld
4158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4159 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4160 if ${lt_cv_path_NM+:} false; then :
4161 $as_echo_n "(cached) " >&6
4163 if test -n "$NM"; then
4164 # Let the user override the test.
4167 lt_nm_to_check="${ac_tool_prefix}nm"
4168 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4169 lt_nm_to_check="$lt_nm_to_check nm"
4171 for lt_tmp_nm in $lt_nm_to_check; do
4172 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4173 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4175 test -z "$ac_dir" && ac_dir=.
4176 tmp_nm="$ac_dir/$lt_tmp_nm"
4177 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4178 # Check to see if the nm accepts a BSD-compat flag.
4179 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4180 # nm: unknown option "B" ignored
4181 # Tru64's nm complains that /dev/null is an invalid object file
4182 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4183 */dev/null* | *'Invalid file or object type'*)
4184 lt_cv_path_NM="$tmp_nm -B"
4188 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4190 lt_cv_path_NM="$tmp_nm -p"
4194 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4195 continue # so that we can try to find one that supports BSD flags
4204 : ${lt_cv_path_NM=no}
4207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4208 $as_echo "$lt_cv_path_NM" >&6; }
4209 if test "$lt_cv_path_NM" != "no"; then
4212 # Didn't find any BSD compatible name lister, look for dumpbin.
4213 if test -n "$DUMPBIN"; then :
4214 # Let the user override the test.
4216 if test -n "$ac_tool_prefix"; then
4217 for ac_prog in dumpbin "link -dump"
4219 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4220 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4222 $as_echo_n "checking for $ac_word... " >&6; }
4223 if ${ac_cv_prog_DUMPBIN+:} false; then :
4224 $as_echo_n "(cached) " >&6
4226 if test -n "$DUMPBIN"; then
4227 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4229 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4233 test -z "$as_dir" && as_dir=.
4234 for ac_exec_ext in '' $ac_executable_extensions; do
4235 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4236 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4237 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4246 DUMPBIN=$ac_cv_prog_DUMPBIN
4247 if test -n "$DUMPBIN"; then
4248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4249 $as_echo "$DUMPBIN" >&6; }
4251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4252 $as_echo "no" >&6; }
4256 test -n "$DUMPBIN" && break
4259 if test -z "$DUMPBIN"; then
4260 ac_ct_DUMPBIN=$DUMPBIN
4261 for ac_prog in dumpbin "link -dump"
4263 # Extract the first word of "$ac_prog", so it can be a program name with args.
4264 set dummy $ac_prog; ac_word=$2
4265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4266 $as_echo_n "checking for $ac_word... " >&6; }
4267 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4268 $as_echo_n "(cached) " >&6
4270 if test -n "$ac_ct_DUMPBIN"; then
4271 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4273 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4277 test -z "$as_dir" && as_dir=.
4278 for ac_exec_ext in '' $ac_executable_extensions; do
4279 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4280 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4281 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4290 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4291 if test -n "$ac_ct_DUMPBIN"; then
4292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4293 $as_echo "$ac_ct_DUMPBIN" >&6; }
4295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4296 $as_echo "no" >&6; }
4300 test -n "$ac_ct_DUMPBIN" && break
4303 if test "x$ac_ct_DUMPBIN" = x; then
4306 case $cross_compiling:$ac_tool_warned in
4308 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4309 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4310 ac_tool_warned=yes ;;
4312 DUMPBIN=$ac_ct_DUMPBIN
4316 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
4318 DUMPBIN="$DUMPBIN -symbols"
4326 if test "$DUMPBIN" != ":"; then
4330 test -z "$NM" && NM=nm
4337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4338 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
4339 if ${lt_cv_nm_interface+:} false; then :
4340 $as_echo_n "(cached) " >&6
4342 lt_cv_nm_interface="BSD nm"
4343 echo "int some_variable = 0;" > conftest.$ac_ext
4344 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4345 (eval "$ac_compile" 2>conftest.err)
4346 cat conftest.err >&5
4347 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4348 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4349 cat conftest.err >&5
4350 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4351 cat conftest.out >&5
4352 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4353 lt_cv_nm_interface="MS dumpbin"
4357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4358 $as_echo "$lt_cv_nm_interface" >&6; }
4360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4361 $as_echo_n "checking whether ln -s works... " >&6; }
4363 if test "$LN_S" = "ln -s"; then
4364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4365 $as_echo "yes" >&6; }
4367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4368 $as_echo "no, using $LN_S" >&6; }
4371 # find the maximum length of command line arguments
4372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4373 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
4374 if ${lt_cv_sys_max_cmd_len+:} false; then :
4375 $as_echo_n "(cached) " >&6
4382 # On DJGPP, this test can blow up pretty badly due to problems in libc
4383 # (any single argument exceeding 2000 bytes causes a buffer overrun
4384 # during glob expansion). Even if it were fixed, the result of this
4385 # check would be larger than it should be.
4386 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4390 # Under GNU Hurd, this test is not required because there is
4391 # no limit to the length of command line arguments.
4392 # Libtool will interpret -1 as no limit whatsoever
4393 lt_cv_sys_max_cmd_len=-1;
4396 cygwin* | mingw* | cegcc*)
4397 # On Win9x/ME, this test blows up -- it succeeds, but takes
4398 # about 5 minutes as the teststring grows exponentially.
4399 # Worse, since 9x/ME are not pre-emptively multitasking,
4400 # you end up with a "frozen" computer, even though with patience
4401 # the test eventually succeeds (with a max line length of 256k).
4402 # Instead, let's just punt: use the minimum linelength reported by
4403 # all of the supported platforms: 8192 (on NT/2K/XP).
4404 lt_cv_sys_max_cmd_len=8192;
4408 # On MiNT this can take a long time and run out of memory.
4409 lt_cv_sys_max_cmd_len=8192;
4413 # On AmigaOS with pdksh, this test takes hours, literally.
4414 # So we just punt and use a minimum line length of 8192.
4415 lt_cv_sys_max_cmd_len=8192;
4418 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4419 # This has been around since 386BSD, at least. Likely further.
4420 if test -x /sbin/sysctl; then
4421 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4422 elif test -x /usr/sbin/sysctl; then
4423 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4425 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4427 # And add a safety zone
4428 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4429 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4433 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4434 lt_cv_sys_max_cmd_len=196608
4438 # The test takes a long time on OS/2.
4439 lt_cv_sys_max_cmd_len=8192
4443 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4444 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4445 # nice to cause kernel panics so lets avoid the loop below.
4446 # First set a reasonable default.
4447 lt_cv_sys_max_cmd_len=16384
4449 if test -x /sbin/sysconfig; then
4450 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4451 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4456 lt_cv_sys_max_cmd_len=102400
4458 sysv5* | sco5v6* | sysv4.2uw2*)
4459 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4460 if test -n "$kargmax"; then
4461 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4463 lt_cv_sys_max_cmd_len=32768
4467 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4468 if test -n "$lt_cv_sys_max_cmd_len"; then
4469 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4470 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4472 # Make teststring a little bigger before we do anything with it.
4473 # a 1K string should be a reasonable start.
4474 for i in 1 2 3 4 5 6 7 8 ; do
4475 teststring=$teststring$teststring
4477 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4478 # If test is not a shell built-in, we'll probably end up computing a
4479 # maximum length that is only half of the actual maximum length, but
4481 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
4482 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
4483 test $i != 17 # 1/2 MB should be enough
4486 teststring=$teststring$teststring
4488 # Only check the string length outside the loop.
4489 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4491 # Add a significant safety factor because C++ compilers can tack on
4492 # massive amounts of additional arguments before passing them to the
4493 # linker. It appears as though 1/2 is a usable value.
4494 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4501 if test -n $lt_cv_sys_max_cmd_len ; then
4502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4503 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4506 $as_echo "none" >&6; }
4508 max_cmd_len=$lt_cv_sys_max_cmd_len
4519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
4520 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4521 # Try some XSI features
4524 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
4526 && eval 'test $(( 1 + 1 )) -eq 2 \
4527 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
4530 $as_echo "$xsi_shell" >&6; }
4533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
4534 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
4536 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4538 && lt_shell_append=yes
4539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
4540 $as_echo "$lt_shell_append" >&6; }
4543 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4553 # test EBCDIC or ASCII
4554 case `echo X|tr X '\101'` in
4555 A) # ASCII based system
4556 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4557 lt_SP2NL='tr \040 \012'
4558 lt_NL2SP='tr \015\012 \040\040'
4560 *) # EBCDIC based system
4561 lt_SP2NL='tr \100 \n'
4562 lt_NL2SP='tr \r\n \100\100'
4574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
4575 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
4576 if ${lt_cv_to_host_file_cmd+:} false; then :
4577 $as_echo_n "(cached) " >&6
4582 *-*-mingw* ) # actually msys
4583 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
4586 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
4588 * ) # otherwise, assume *nix
4589 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
4595 *-*-mingw* ) # actually msys
4596 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
4599 lt_cv_to_host_file_cmd=func_convert_file_noop
4601 * ) # otherwise, assume *nix
4602 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
4606 * ) # unhandled hosts (and "normal" native builds)
4607 lt_cv_to_host_file_cmd=func_convert_file_noop
4613 to_host_file_cmd=$lt_cv_to_host_file_cmd
4614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
4615 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
4621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
4622 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
4623 if ${lt_cv_to_tool_file_cmd+:} false; then :
4624 $as_echo_n "(cached) " >&6
4626 #assume ordinary cross tools, or native build.
4627 lt_cv_to_tool_file_cmd=func_convert_file_noop
4631 *-*-mingw* ) # actually msys
4632 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
4640 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
4641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
4642 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
4648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
4649 $as_echo_n "checking for $LD option to reload object files... " >&6; }
4650 if ${lt_cv_ld_reload_flag+:} false; then :
4651 $as_echo_n "(cached) " >&6
4653 lt_cv_ld_reload_flag='-r'
4655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
4656 $as_echo "$lt_cv_ld_reload_flag" >&6; }
4657 reload_flag=$lt_cv_ld_reload_flag
4658 case $reload_flag in
4660 *) reload_flag=" $reload_flag" ;;
4662 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4664 cygwin* | mingw* | pw32* | cegcc*)
4665 if test "$GCC" != yes; then
4670 if test "$GCC" = yes; then
4671 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4673 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4686 if test -n "$ac_tool_prefix"; then
4687 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4688 set dummy ${ac_tool_prefix}objdump; ac_word=$2
4689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4690 $as_echo_n "checking for $ac_word... " >&6; }
4691 if ${ac_cv_prog_OBJDUMP+:} false; then :
4692 $as_echo_n "(cached) " >&6
4694 if test -n "$OBJDUMP"; then
4695 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4697 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4701 test -z "$as_dir" && as_dir=.
4702 for ac_exec_ext in '' $ac_executable_extensions; do
4703 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4704 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4705 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4714 OBJDUMP=$ac_cv_prog_OBJDUMP
4715 if test -n "$OBJDUMP"; then
4716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
4717 $as_echo "$OBJDUMP" >&6; }
4719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4720 $as_echo "no" >&6; }
4725 if test -z "$ac_cv_prog_OBJDUMP"; then
4726 ac_ct_OBJDUMP=$OBJDUMP
4727 # Extract the first word of "objdump", so it can be a program name with args.
4728 set dummy objdump; ac_word=$2
4729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4730 $as_echo_n "checking for $ac_word... " >&6; }
4731 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
4732 $as_echo_n "(cached) " >&6
4734 if test -n "$ac_ct_OBJDUMP"; then
4735 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4737 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4741 test -z "$as_dir" && as_dir=.
4742 for ac_exec_ext in '' $ac_executable_extensions; do
4743 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4744 ac_cv_prog_ac_ct_OBJDUMP="objdump"
4745 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4754 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4755 if test -n "$ac_ct_OBJDUMP"; then
4756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
4757 $as_echo "$ac_ct_OBJDUMP" >&6; }
4759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4760 $as_echo "no" >&6; }
4763 if test "x$ac_ct_OBJDUMP" = x; then
4766 case $cross_compiling:$ac_tool_warned in
4768 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4769 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4770 ac_tool_warned=yes ;;
4772 OBJDUMP=$ac_ct_OBJDUMP
4775 OBJDUMP="$ac_cv_prog_OBJDUMP"
4778 test -z "$OBJDUMP" && OBJDUMP=objdump
4788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
4789 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
4790 if ${lt_cv_deplibs_check_method+:} false; then :
4791 $as_echo_n "(cached) " >&6
4793 lt_cv_file_magic_cmd='$MAGIC_CMD'
4794 lt_cv_file_magic_test_file=
4795 lt_cv_deplibs_check_method='unknown'
4796 # Need to set the preceding variable on all platforms that support
4797 # interlibrary dependencies.
4798 # 'none' -- dependencies not supported.
4799 # `unknown' -- same as none, but documents that we really don't know.
4800 # 'pass_all' -- all dependencies passed with no checks.
4801 # 'test_compile' -- check by making test program.
4802 # 'file_magic [[regex]]' -- check by looking for files in library path
4803 # which responds to the $file_magic_cmd with a given extended regex.
4804 # If you have `file' or equivalent on your system and you're not sure
4805 # whether `pass_all' will *always* work, you probably want this one.
4809 lt_cv_deplibs_check_method=pass_all
4813 lt_cv_deplibs_check_method=pass_all
4817 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4818 lt_cv_file_magic_cmd='/usr/bin/file -L'
4819 lt_cv_file_magic_test_file=/shlib/libc.so
4823 # func_win32_libid is a shell function defined in ltmain.sh
4824 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4825 lt_cv_file_magic_cmd='func_win32_libid'
4829 # Base MSYS/MinGW do not provide the 'file' command needed by
4830 # func_win32_libid shell function, so use a weaker test based on 'objdump',
4831 # unless we find 'file', for example because we are cross-compiling.
4832 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
4833 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
4834 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4835 lt_cv_file_magic_cmd='func_win32_libid'
4837 # Keep this pattern in sync with the one in func_win32_libid.
4838 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
4839 lt_cv_file_magic_cmd='$OBJDUMP -f'
4844 # use the weaker test based on 'objdump'. See mingw*.
4845 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
4846 lt_cv_file_magic_cmd='$OBJDUMP -f'
4849 darwin* | rhapsody*)
4850 lt_cv_deplibs_check_method=pass_all
4853 freebsd* | dragonfly*)
4854 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4857 # Not sure whether the presence of OpenBSD here was a mistake.
4858 # Let's accept both of them until this is cleared up.
4859 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4860 lt_cv_file_magic_cmd=/usr/bin/file
4861 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4865 lt_cv_deplibs_check_method=pass_all
4870 lt_cv_deplibs_check_method=pass_all
4874 lt_cv_deplibs_check_method=pass_all
4877 hpux10.20* | hpux11*)
4878 lt_cv_file_magic_cmd=/usr/bin/file
4881 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4882 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4885 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]'
4886 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4889 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
4890 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4896 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4897 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4900 irix5* | irix6* | nonstopux*)
4902 *-32|*"-32 ") libmagic=32-bit;;
4903 *-n32|*"-n32 ") libmagic=N32;;
4904 *-64|*"-64 ") libmagic=64-bit;;
4905 *) libmagic=never-match;;
4907 lt_cv_deplibs_check_method=pass_all
4910 # This must be glibc/ELF.
4911 linux* | k*bsd*-gnu | kopensolaris*-gnu)
4912 lt_cv_deplibs_check_method=pass_all
4915 netbsd* | netbsdelf*-gnu)
4916 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4917 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4919 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4924 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4925 lt_cv_file_magic_cmd=/usr/bin/file
4926 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4930 lt_cv_deplibs_check_method=pass_all
4934 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4935 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4937 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4941 osf3* | osf4* | osf5*)
4942 lt_cv_deplibs_check_method=pass_all
4946 lt_cv_deplibs_check_method=pass_all
4950 lt_cv_deplibs_check_method=pass_all
4953 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4954 lt_cv_deplibs_check_method=pass_all
4958 case $host_vendor in
4960 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]'
4961 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4964 lt_cv_deplibs_check_method=pass_all
4967 lt_cv_file_magic_cmd='/bin/file'
4968 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4971 lt_cv_file_magic_cmd='/bin/file'
4972 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4973 lt_cv_file_magic_test_file=/lib/libc.so
4976 lt_cv_deplibs_check_method=pass_all
4979 lt_cv_deplibs_check_method=pass_all
4985 lt_cv_deplibs_check_method=pass_all
4990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
4991 $as_echo "$lt_cv_deplibs_check_method" >&6; }
4995 if test "$build" = "$host"; then
4998 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5001 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5007 file_magic_cmd=$lt_cv_file_magic_cmd
5008 deplibs_check_method=$lt_cv_deplibs_check_method
5009 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5032 if test -n "$ac_tool_prefix"; then
5033 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5034 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5036 $as_echo_n "checking for $ac_word... " >&6; }
5037 if ${ac_cv_prog_DLLTOOL+:} false; then :
5038 $as_echo_n "(cached) " >&6
5040 if test -n "$DLLTOOL"; then
5041 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5043 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5047 test -z "$as_dir" && as_dir=.
5048 for ac_exec_ext in '' $ac_executable_extensions; do
5049 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5050 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5051 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5060 DLLTOOL=$ac_cv_prog_DLLTOOL
5061 if test -n "$DLLTOOL"; then
5062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5063 $as_echo "$DLLTOOL" >&6; }
5065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5066 $as_echo "no" >&6; }
5071 if test -z "$ac_cv_prog_DLLTOOL"; then
5072 ac_ct_DLLTOOL=$DLLTOOL
5073 # Extract the first word of "dlltool", so it can be a program name with args.
5074 set dummy dlltool; ac_word=$2
5075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5076 $as_echo_n "checking for $ac_word... " >&6; }
5077 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5078 $as_echo_n "(cached) " >&6
5080 if test -n "$ac_ct_DLLTOOL"; then
5081 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5083 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5087 test -z "$as_dir" && as_dir=.
5088 for ac_exec_ext in '' $ac_executable_extensions; do
5089 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5090 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5091 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5100 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5101 if test -n "$ac_ct_DLLTOOL"; then
5102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5103 $as_echo "$ac_ct_DLLTOOL" >&6; }
5105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5106 $as_echo "no" >&6; }
5109 if test "x$ac_ct_DLLTOOL" = x; then
5112 case $cross_compiling:$ac_tool_warned in
5114 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5115 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5116 ac_tool_warned=yes ;;
5118 DLLTOOL=$ac_ct_DLLTOOL
5121 DLLTOOL="$ac_cv_prog_DLLTOOL"
5124 test -z "$DLLTOOL" && DLLTOOL=dlltool
5135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5136 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5137 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5138 $as_echo_n "(cached) " >&6
5140 lt_cv_sharedlib_from_linklib_cmd='unknown'
5143 cygwin* | mingw* | pw32* | cegcc*)
5144 # two different shell functions defined in ltmain.sh
5145 # decide which to use based on capabilities of $DLLTOOL
5146 case `$DLLTOOL --help 2>&1` in
5147 *--identify-strict*)
5148 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5151 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5156 # fallback: assume linklib IS sharedlib
5157 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
5162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5163 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5164 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5165 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5174 if test -n "$ac_tool_prefix"; then
5177 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5178 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5180 $as_echo_n "checking for $ac_word... " >&6; }
5181 if ${ac_cv_prog_AR+:} false; then :
5182 $as_echo_n "(cached) " >&6
5184 if test -n "$AR"; then
5185 ac_cv_prog_AR="$AR" # Let the user override the test.
5187 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5191 test -z "$as_dir" && as_dir=.
5192 for ac_exec_ext in '' $ac_executable_extensions; do
5193 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5194 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5195 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5205 if test -n "$AR"; then
5206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5207 $as_echo "$AR" >&6; }
5209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5210 $as_echo "no" >&6; }
5214 test -n "$AR" && break
5217 if test -z "$AR"; then
5221 # Extract the first word of "$ac_prog", so it can be a program name with args.
5222 set dummy $ac_prog; ac_word=$2
5223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5224 $as_echo_n "checking for $ac_word... " >&6; }
5225 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5226 $as_echo_n "(cached) " >&6
5228 if test -n "$ac_ct_AR"; then
5229 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5231 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5235 test -z "$as_dir" && as_dir=.
5236 for ac_exec_ext in '' $ac_executable_extensions; do
5237 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5238 ac_cv_prog_ac_ct_AR="$ac_prog"
5239 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5248 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5249 if test -n "$ac_ct_AR"; then
5250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5251 $as_echo "$ac_ct_AR" >&6; }
5253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5254 $as_echo "no" >&6; }
5258 test -n "$ac_ct_AR" && break
5261 if test "x$ac_ct_AR" = x; then
5264 case $cross_compiling:$ac_tool_warned in
5266 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5267 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5268 ac_tool_warned=yes ;;
5287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5288 $as_echo_n "checking for archiver @FILE support... " >&6; }
5289 if ${lt_cv_ar_at_file+:} false; then :
5290 $as_echo_n "(cached) " >&6
5293 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5294 /* end confdefs.h. */
5304 if ac_fn_c_try_compile "$LINENO"; then :
5305 echo conftest.$ac_objext > conftest.lst
5306 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5307 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5308 (eval $lt_ar_try) 2>&5
5310 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5311 test $ac_status = 0; }
5312 if test "$ac_status" -eq 0; then
5313 # Ensure the archiver fails upon bogus file names.
5314 rm -f conftest.$ac_objext libconftest.a
5315 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5316 (eval $lt_ar_try) 2>&5
5318 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5319 test $ac_status = 0; }
5320 if test "$ac_status" -ne 0; then
5324 rm -f conftest.* libconftest.a
5327 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
5331 $as_echo "$lt_cv_ar_at_file" >&6; }
5333 if test "x$lt_cv_ar_at_file" = xno; then
5336 archiver_list_spec=$lt_cv_ar_at_file
5345 if test -n "$ac_tool_prefix"; then
5346 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5347 set dummy ${ac_tool_prefix}strip; ac_word=$2
5348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5349 $as_echo_n "checking for $ac_word... " >&6; }
5350 if ${ac_cv_prog_STRIP+:} false; then :
5351 $as_echo_n "(cached) " >&6
5353 if test -n "$STRIP"; then
5354 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5356 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5360 test -z "$as_dir" && as_dir=.
5361 for ac_exec_ext in '' $ac_executable_extensions; do
5362 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5363 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5364 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5373 STRIP=$ac_cv_prog_STRIP
5374 if test -n "$STRIP"; then
5375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5376 $as_echo "$STRIP" >&6; }
5378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5379 $as_echo "no" >&6; }
5384 if test -z "$ac_cv_prog_STRIP"; then
5386 # Extract the first word of "strip", so it can be a program name with args.
5387 set dummy strip; ac_word=$2
5388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5389 $as_echo_n "checking for $ac_word... " >&6; }
5390 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5391 $as_echo_n "(cached) " >&6
5393 if test -n "$ac_ct_STRIP"; then
5394 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5396 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5400 test -z "$as_dir" && as_dir=.
5401 for ac_exec_ext in '' $ac_executable_extensions; do
5402 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5403 ac_cv_prog_ac_ct_STRIP="strip"
5404 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5413 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5414 if test -n "$ac_ct_STRIP"; then
5415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5416 $as_echo "$ac_ct_STRIP" >&6; }
5418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5419 $as_echo "no" >&6; }
5422 if test "x$ac_ct_STRIP" = x; then
5425 case $cross_compiling:$ac_tool_warned in
5427 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5428 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5429 ac_tool_warned=yes ;;
5434 STRIP="$ac_cv_prog_STRIP"
5437 test -z "$STRIP" && STRIP=:
5444 if test -n "$ac_tool_prefix"; then
5445 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5446 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5448 $as_echo_n "checking for $ac_word... " >&6; }
5449 if ${ac_cv_prog_RANLIB+:} false; then :
5450 $as_echo_n "(cached) " >&6
5452 if test -n "$RANLIB"; then
5453 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5455 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5459 test -z "$as_dir" && as_dir=.
5460 for ac_exec_ext in '' $ac_executable_extensions; do
5461 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5462 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5463 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5472 RANLIB=$ac_cv_prog_RANLIB
5473 if test -n "$RANLIB"; then
5474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5475 $as_echo "$RANLIB" >&6; }
5477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5478 $as_echo "no" >&6; }
5483 if test -z "$ac_cv_prog_RANLIB"; then
5484 ac_ct_RANLIB=$RANLIB
5485 # Extract the first word of "ranlib", so it can be a program name with args.
5486 set dummy ranlib; ac_word=$2
5487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5488 $as_echo_n "checking for $ac_word... " >&6; }
5489 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5490 $as_echo_n "(cached) " >&6
5492 if test -n "$ac_ct_RANLIB"; then
5493 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5495 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5499 test -z "$as_dir" && as_dir=.
5500 for ac_exec_ext in '' $ac_executable_extensions; do
5501 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5502 ac_cv_prog_ac_ct_RANLIB="ranlib"
5503 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5512 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5513 if test -n "$ac_ct_RANLIB"; then
5514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5515 $as_echo "$ac_ct_RANLIB" >&6; }
5517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5518 $as_echo "no" >&6; }
5521 if test "x$ac_ct_RANLIB" = x; then
5524 case $cross_compiling:$ac_tool_warned in
5526 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5527 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5528 ac_tool_warned=yes ;;
5530 RANLIB=$ac_ct_RANLIB
5533 RANLIB="$ac_cv_prog_RANLIB"
5536 test -z "$RANLIB" && RANLIB=:
5543 # Determine commands to create old-style static archives.
5544 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5545 old_postinstall_cmds='chmod 644 $oldlib'
5546 old_postuninstall_cmds=
5548 if test -n "$RANLIB"; then
5551 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
5554 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
5557 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
5562 lock_old_archive_extraction=yes ;;
5564 lock_old_archive_extraction=no ;;
5605 # If no C compiler was specified, use CC.
5608 # If no C compiler flags were specified, use CFLAGS.
5609 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5611 # Allow CC to be a program name with arguments.
5615 # Check for command to grab the raw symbol name followed by C symbol from nm.
5616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5617 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5618 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
5619 $as_echo_n "(cached) " >&6
5622 # These are sane defaults that work on at least a few old systems.
5623 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5625 # Character class describing NM global symbol codes.
5626 symcode='[BCDEGRST]'
5628 # Regexp to match symbols that can be accessed directly from C.
5629 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5631 # Define system-specific variables.
5636 cygwin* | mingw* | pw32* | cegcc*)
5637 symcode='[ABCDGISTW]'
5640 if test "$host_cpu" = ia64; then
5641 symcode='[ABCDEGRST]'
5645 symcode='[BCDEGRST]'
5648 symcode='[BCDEGQRST]'
5659 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5667 # If we're using GNU nm, then use its standard symbol codes.
5668 case `$NM -V 2>&1` in
5669 *GNU* | *'with BFD'*)
5670 symcode='[ABCDGIRSTW]' ;;
5673 # Transform an extracted symbol line into a proper C declaration.
5674 # Some systems (esp. on ia64) link data and code symbols differently,
5675 # so use this general approach.
5676 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5678 # Transform an extracted symbol line into symbol name and symbol address
5679 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
5680 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'"
5682 # Handle CRLF in mingw tool chain
5686 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5690 # Try without a prefix underscore, then with it.
5691 for ac_symprfx in "" "_"; do
5693 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5694 symxfrm="\\1 $ac_symprfx\\2 \\2"
5696 # Write the raw and C identifiers.
5697 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5698 # Fake it for dumpbin and say T for any non-static function
5699 # and D for any global variable.
5700 # Also find C++ and __fastcall symbols from MSVC++,
5701 # which start with @ or ?.
5702 lt_cv_sys_global_symbol_pipe="$AWK '"\
5703 " {last_section=section; section=\$ 3};"\
5704 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
5705 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5706 " \$ 0!~/External *\|/{next};"\
5707 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5708 " {if(hide[section]) next};"\
5709 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5710 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5711 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
5712 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5713 " ' prfx=^$ac_symprfx"
5715 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5717 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
5719 # Check to see that the pipe works correctly.
5723 cat > conftest.$ac_ext <<_LT_EOF
5728 void nm_test_func(void);
5729 void nm_test_func(void){}
5733 int main(){nm_test_var='a';nm_test_func();return(0);}
5736 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5737 (eval $ac_compile) 2>&5
5739 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5740 test $ac_status = 0; }; then
5741 # Now try to grab the symbols.
5743 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
5744 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
5746 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5747 test $ac_status = 0; } && test -s "$nlist"; then
5748 # Try sorting and uniquifying the output.
5749 if sort "$nlist" | uniq > "$nlist"T; then
5750 mv -f "$nlist"T "$nlist"
5755 # Make sure that we snagged all the symbols we need.
5756 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5757 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5758 cat <<_LT_EOF > conftest.$ac_ext
5759 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
5760 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
5761 /* DATA imports from DLLs on WIN32 con't be const, because runtime
5762 relocations are performed -- see ld's documentation on pseudo-relocs. */
5763 # define LT_DLSYM_CONST
5764 #elif defined(__osf__)
5765 /* This system does not cope well with relocations in const data. */
5766 # define LT_DLSYM_CONST
5768 # define LT_DLSYM_CONST const
5776 # Now generate the symbol file.
5777 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5779 cat <<_LT_EOF >> conftest.$ac_ext
5781 /* The mapping between symbol names and symbols. */
5782 LT_DLSYM_CONST struct {
5786 lt__PROGRAM__LTX_preloaded_symbols[] =
5788 { "@PROGRAM@", (void *) 0 },
5790 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5791 cat <<\_LT_EOF >> conftest.$ac_ext
5795 /* This works around a problem in FreeBSD linker */
5796 #ifdef FREEBSD_WORKAROUND
5797 static const void *lt_preloaded_setup() {
5798 return lt__PROGRAM__LTX_preloaded_symbols;
5806 # Now try linking the two files.
5807 mv conftest.$ac_objext conftstm.$ac_objext
5808 lt_globsym_save_LIBS=$LIBS
5809 lt_globsym_save_CFLAGS=$CFLAGS
5810 LIBS="conftstm.$ac_objext"
5811 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5812 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
5813 (eval $ac_link) 2>&5
5815 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5816 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
5819 LIBS=$lt_globsym_save_LIBS
5820 CFLAGS=$lt_globsym_save_CFLAGS
5822 echo "cannot find nm_test_func in $nlist" >&5
5825 echo "cannot find nm_test_var in $nlist" >&5
5828 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5831 echo "$progname: failed program was:" >&5
5832 cat conftest.$ac_ext >&5
5834 rm -rf conftest* conftst*
5836 # Do not use the global_symbol_pipe unless it works.
5837 if test "$pipe_works" = yes; then
5840 lt_cv_sys_global_symbol_pipe=
5846 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5847 lt_cv_sys_global_symbol_to_cdecl=
5849 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5851 $as_echo "failed" >&6; }
5853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
5854 $as_echo "ok" >&6; }
5857 # Response file support.
5858 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5859 nm_file_list_spec='@'
5860 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
5861 nm_file_list_spec='@'
5890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
5891 $as_echo_n "checking for sysroot... " >&6; }
5893 # Check whether --with-sysroot was given.
5894 if test "${with_sysroot+set}" = set; then :
5895 withval=$with_sysroot;
5902 case ${with_sysroot} in #(
5904 if test "$GCC" = yes; then
5905 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
5909 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
5914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
5915 $as_echo "${with_sysroot}" >&6; }
5916 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
5920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
5921 $as_echo "${lt_sysroot:-no}" >&6; }
5927 # Check whether --enable-libtool-lock was given.
5928 if test "${enable_libtool_lock+set}" = set; then :
5929 enableval=$enable_libtool_lock;
5932 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5934 # Some flags need to be propagated to the compiler or linker for good
5938 # Find out which ABI we are using.
5939 echo 'int i;' > conftest.$ac_ext
5940 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5941 (eval $ac_compile) 2>&5
5943 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5944 test $ac_status = 0; }; then
5945 case `/usr/bin/file conftest.$ac_objext` in
5957 # Find out which ABI we are using.
5958 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
5959 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5960 (eval $ac_compile) 2>&5
5962 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5963 test $ac_status = 0; }; then
5964 if test "$lt_cv_prog_gnu_ld" = yes; then
5965 case `/usr/bin/file conftest.$ac_objext` in
5967 LD="${LD-ld} -melf32bsmip"
5970 LD="${LD-ld} -melf32bmipn32"
5973 LD="${LD-ld} -melf64bmip"
5977 case `/usr/bin/file conftest.$ac_objext` in
5993 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
5994 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
5995 # Find out which ABI we are using.
5996 echo 'int i;' > conftest.$ac_ext
5997 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5998 (eval $ac_compile) 2>&5
6000 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6001 test $ac_status = 0; }; then
6002 case `/usr/bin/file conftest.o` in
6005 x86_64-*kfreebsd*-gnu)
6006 LD="${LD-ld} -m elf_i386_fbsd"
6009 LD="${LD-ld} -m elf_i386"
6011 ppc64-*linux*|powerpc64-*linux*)
6012 LD="${LD-ld} -m elf32ppclinux"
6015 LD="${LD-ld} -m elf_s390"
6018 LD="${LD-ld} -m elf32_sparc"
6024 x86_64-*kfreebsd*-gnu)
6025 LD="${LD-ld} -m elf_x86_64_fbsd"
6028 LD="${LD-ld} -m elf_x86_64"
6030 ppc*-*linux*|powerpc*-*linux*)
6031 LD="${LD-ld} -m elf64ppc"
6033 s390*-*linux*|s390*-*tpf*)
6034 LD="${LD-ld} -m elf64_s390"
6037 LD="${LD-ld} -m elf64_sparc"
6047 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6048 SAVE_CFLAGS="$CFLAGS"
6049 CFLAGS="$CFLAGS -belf"
6050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6051 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6052 if ${lt_cv_cc_needs_belf+:} false; then :
6053 $as_echo_n "(cached) " >&6
6056 ac_cpp='$CPP $CPPFLAGS'
6057 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6058 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6059 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6062 /* end confdefs.h. */
6072 if ac_fn_c_try_link "$LINENO"; then :
6073 lt_cv_cc_needs_belf=yes
6075 lt_cv_cc_needs_belf=no
6077 rm -f core conftest.err conftest.$ac_objext \
6078 conftest$ac_exeext conftest.$ac_ext
6080 ac_cpp='$CPP $CPPFLAGS'
6081 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6082 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6083 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6087 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6088 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6089 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6090 CFLAGS="$SAVE_CFLAGS"
6094 # Find out which ABI we are using.
6095 echo 'int i;' > conftest.$ac_ext
6096 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6097 (eval $ac_compile) 2>&5
6099 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6100 test $ac_status = 0; }; then
6101 case `/usr/bin/file conftest.o` in
6103 case $lt_cv_prog_gnu_ld in
6107 LD="${LD-ld} -m elf_x86_64"
6110 LD="${LD-ld} -m elf64_sparc"
6113 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
6114 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6119 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6131 need_locks="$enable_libtool_lock"
6133 if test -n "$ac_tool_prefix"; then
6134 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6135 set dummy ${ac_tool_prefix}mt; ac_word=$2
6136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6137 $as_echo_n "checking for $ac_word... " >&6; }
6138 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6139 $as_echo_n "(cached) " >&6
6141 if test -n "$MANIFEST_TOOL"; then
6142 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6144 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6148 test -z "$as_dir" && as_dir=.
6149 for ac_exec_ext in '' $ac_executable_extensions; do
6150 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6151 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6152 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6161 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6162 if test -n "$MANIFEST_TOOL"; then
6163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6164 $as_echo "$MANIFEST_TOOL" >&6; }
6166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6167 $as_echo "no" >&6; }
6172 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6173 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6174 # Extract the first word of "mt", so it can be a program name with args.
6175 set dummy mt; ac_word=$2
6176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6177 $as_echo_n "checking for $ac_word... " >&6; }
6178 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6179 $as_echo_n "(cached) " >&6
6181 if test -n "$ac_ct_MANIFEST_TOOL"; then
6182 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6184 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6188 test -z "$as_dir" && as_dir=.
6189 for ac_exec_ext in '' $ac_executable_extensions; do
6190 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6191 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6192 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6201 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6202 if test -n "$ac_ct_MANIFEST_TOOL"; then
6203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6204 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6207 $as_echo "no" >&6; }
6210 if test "x$ac_ct_MANIFEST_TOOL" = x; then
6213 case $cross_compiling:$ac_tool_warned in
6215 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6216 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6217 ac_tool_warned=yes ;;
6219 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6222 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6225 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6227 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6228 if ${lt_cv_path_mainfest_tool+:} false; then :
6229 $as_echo_n "(cached) " >&6
6231 lt_cv_path_mainfest_tool=no
6232 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6233 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6234 cat conftest.err >&5
6235 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6236 lt_cv_path_mainfest_tool=yes
6240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6241 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
6242 if test "x$lt_cv_path_mainfest_tool" != xyes; then
6252 rhapsody* | darwin*)
6253 if test -n "$ac_tool_prefix"; then
6254 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6255 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6257 $as_echo_n "checking for $ac_word... " >&6; }
6258 if ${ac_cv_prog_DSYMUTIL+:} false; then :
6259 $as_echo_n "(cached) " >&6
6261 if test -n "$DSYMUTIL"; then
6262 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6264 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6268 test -z "$as_dir" && as_dir=.
6269 for ac_exec_ext in '' $ac_executable_extensions; do
6270 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6271 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6272 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6281 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6282 if test -n "$DSYMUTIL"; then
6283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6284 $as_echo "$DSYMUTIL" >&6; }
6286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6287 $as_echo "no" >&6; }
6292 if test -z "$ac_cv_prog_DSYMUTIL"; then
6293 ac_ct_DSYMUTIL=$DSYMUTIL
6294 # Extract the first word of "dsymutil", so it can be a program name with args.
6295 set dummy dsymutil; ac_word=$2
6296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6297 $as_echo_n "checking for $ac_word... " >&6; }
6298 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6299 $as_echo_n "(cached) " >&6
6301 if test -n "$ac_ct_DSYMUTIL"; then
6302 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6304 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6308 test -z "$as_dir" && as_dir=.
6309 for ac_exec_ext in '' $ac_executable_extensions; do
6310 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6311 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6312 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6321 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6322 if test -n "$ac_ct_DSYMUTIL"; then
6323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6324 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6327 $as_echo "no" >&6; }
6330 if test "x$ac_ct_DSYMUTIL" = x; then
6333 case $cross_compiling:$ac_tool_warned in
6335 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6336 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6337 ac_tool_warned=yes ;;
6339 DSYMUTIL=$ac_ct_DSYMUTIL
6342 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6345 if test -n "$ac_tool_prefix"; then
6346 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6347 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6349 $as_echo_n "checking for $ac_word... " >&6; }
6350 if ${ac_cv_prog_NMEDIT+:} false; then :
6351 $as_echo_n "(cached) " >&6
6353 if test -n "$NMEDIT"; then
6354 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6356 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6360 test -z "$as_dir" && as_dir=.
6361 for ac_exec_ext in '' $ac_executable_extensions; do
6362 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6363 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6364 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6373 NMEDIT=$ac_cv_prog_NMEDIT
6374 if test -n "$NMEDIT"; then
6375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6376 $as_echo "$NMEDIT" >&6; }
6378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6379 $as_echo "no" >&6; }
6384 if test -z "$ac_cv_prog_NMEDIT"; then
6385 ac_ct_NMEDIT=$NMEDIT
6386 # Extract the first word of "nmedit", so it can be a program name with args.
6387 set dummy nmedit; ac_word=$2
6388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6389 $as_echo_n "checking for $ac_word... " >&6; }
6390 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
6391 $as_echo_n "(cached) " >&6
6393 if test -n "$ac_ct_NMEDIT"; then
6394 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6396 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6400 test -z "$as_dir" && as_dir=.
6401 for ac_exec_ext in '' $ac_executable_extensions; do
6402 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6403 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6404 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6413 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6414 if test -n "$ac_ct_NMEDIT"; then
6415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6416 $as_echo "$ac_ct_NMEDIT" >&6; }
6418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6419 $as_echo "no" >&6; }
6422 if test "x$ac_ct_NMEDIT" = x; then
6425 case $cross_compiling:$ac_tool_warned in
6427 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6428 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6429 ac_tool_warned=yes ;;
6431 NMEDIT=$ac_ct_NMEDIT
6434 NMEDIT="$ac_cv_prog_NMEDIT"
6437 if test -n "$ac_tool_prefix"; then
6438 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6439 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6441 $as_echo_n "checking for $ac_word... " >&6; }
6442 if ${ac_cv_prog_LIPO+:} false; then :
6443 $as_echo_n "(cached) " >&6
6445 if test -n "$LIPO"; then
6446 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6448 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6452 test -z "$as_dir" && as_dir=.
6453 for ac_exec_ext in '' $ac_executable_extensions; do
6454 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6455 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6456 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6465 LIPO=$ac_cv_prog_LIPO
6466 if test -n "$LIPO"; then
6467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6468 $as_echo "$LIPO" >&6; }
6470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6471 $as_echo "no" >&6; }
6476 if test -z "$ac_cv_prog_LIPO"; then
6478 # Extract the first word of "lipo", so it can be a program name with args.
6479 set dummy lipo; ac_word=$2
6480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6481 $as_echo_n "checking for $ac_word... " >&6; }
6482 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
6483 $as_echo_n "(cached) " >&6
6485 if test -n "$ac_ct_LIPO"; then
6486 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6488 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6492 test -z "$as_dir" && as_dir=.
6493 for ac_exec_ext in '' $ac_executable_extensions; do
6494 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6495 ac_cv_prog_ac_ct_LIPO="lipo"
6496 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6505 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6506 if test -n "$ac_ct_LIPO"; then
6507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6508 $as_echo "$ac_ct_LIPO" >&6; }
6510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6511 $as_echo "no" >&6; }
6514 if test "x$ac_ct_LIPO" = x; then
6517 case $cross_compiling:$ac_tool_warned in
6519 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6520 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6521 ac_tool_warned=yes ;;
6526 LIPO="$ac_cv_prog_LIPO"
6529 if test -n "$ac_tool_prefix"; then
6530 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6531 set dummy ${ac_tool_prefix}otool; ac_word=$2
6532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6533 $as_echo_n "checking for $ac_word... " >&6; }
6534 if ${ac_cv_prog_OTOOL+:} false; then :
6535 $as_echo_n "(cached) " >&6
6537 if test -n "$OTOOL"; then
6538 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6540 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6544 test -z "$as_dir" && as_dir=.
6545 for ac_exec_ext in '' $ac_executable_extensions; do
6546 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6547 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6548 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6557 OTOOL=$ac_cv_prog_OTOOL
6558 if test -n "$OTOOL"; then
6559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6560 $as_echo "$OTOOL" >&6; }
6562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6563 $as_echo "no" >&6; }
6568 if test -z "$ac_cv_prog_OTOOL"; then
6570 # Extract the first word of "otool", so it can be a program name with args.
6571 set dummy otool; ac_word=$2
6572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6573 $as_echo_n "checking for $ac_word... " >&6; }
6574 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
6575 $as_echo_n "(cached) " >&6
6577 if test -n "$ac_ct_OTOOL"; then
6578 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6580 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6584 test -z "$as_dir" && as_dir=.
6585 for ac_exec_ext in '' $ac_executable_extensions; do
6586 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6587 ac_cv_prog_ac_ct_OTOOL="otool"
6588 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6597 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6598 if test -n "$ac_ct_OTOOL"; then
6599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6600 $as_echo "$ac_ct_OTOOL" >&6; }
6602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6603 $as_echo "no" >&6; }
6606 if test "x$ac_ct_OTOOL" = x; then
6609 case $cross_compiling:$ac_tool_warned in
6611 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6612 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6613 ac_tool_warned=yes ;;
6618 OTOOL="$ac_cv_prog_OTOOL"
6621 if test -n "$ac_tool_prefix"; then
6622 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6623 set dummy ${ac_tool_prefix}otool64; ac_word=$2
6624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6625 $as_echo_n "checking for $ac_word... " >&6; }
6626 if ${ac_cv_prog_OTOOL64+:} false; then :
6627 $as_echo_n "(cached) " >&6
6629 if test -n "$OTOOL64"; then
6630 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6632 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6636 test -z "$as_dir" && as_dir=.
6637 for ac_exec_ext in '' $ac_executable_extensions; do
6638 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6639 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6640 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6649 OTOOL64=$ac_cv_prog_OTOOL64
6650 if test -n "$OTOOL64"; then
6651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6652 $as_echo "$OTOOL64" >&6; }
6654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6655 $as_echo "no" >&6; }
6660 if test -z "$ac_cv_prog_OTOOL64"; then
6661 ac_ct_OTOOL64=$OTOOL64
6662 # Extract the first word of "otool64", so it can be a program name with args.
6663 set dummy otool64; ac_word=$2
6664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6665 $as_echo_n "checking for $ac_word... " >&6; }
6666 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
6667 $as_echo_n "(cached) " >&6
6669 if test -n "$ac_ct_OTOOL64"; then
6670 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6672 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6676 test -z "$as_dir" && as_dir=.
6677 for ac_exec_ext in '' $ac_executable_extensions; do
6678 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6679 ac_cv_prog_ac_ct_OTOOL64="otool64"
6680 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6689 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6690 if test -n "$ac_ct_OTOOL64"; then
6691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
6692 $as_echo "$ac_ct_OTOOL64" >&6; }
6694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6695 $as_echo "no" >&6; }
6698 if test "x$ac_ct_OTOOL64" = x; then
6701 case $cross_compiling:$ac_tool_warned in
6703 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6704 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6705 ac_tool_warned=yes ;;
6707 OTOOL64=$ac_ct_OTOOL64
6710 OTOOL64="$ac_cv_prog_OTOOL64"
6739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
6740 $as_echo_n "checking for -single_module linker flag... " >&6; }
6741 if ${lt_cv_apple_cc_single_mod+:} false; then :
6742 $as_echo_n "(cached) " >&6
6744 lt_cv_apple_cc_single_mod=no
6745 if test -z "${LT_MULTI_MODULE}"; then
6746 # By default we will add the -single_module flag. You can override
6747 # by either setting the environment variable LT_MULTI_MODULE
6748 # non-empty at configure time, or by adding -multi_module to the
6750 rm -rf libconftest.dylib*
6751 echo "int foo(void){return 1;}" > conftest.c
6752 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6753 -dynamiclib -Wl,-single_module conftest.c" >&5
6754 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6755 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6757 # If there is a non-empty error log, and "single_module"
6758 # appears in it, assume the flag caused a linker warning
6759 if test -s conftest.err && $GREP single_module conftest.err; then
6760 cat conftest.err >&5
6761 # Otherwise, if the output was created with a 0 exit code from
6762 # the compiler, it worked.
6763 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
6764 lt_cv_apple_cc_single_mod=yes
6766 cat conftest.err >&5
6768 rm -rf libconftest.dylib*
6772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
6773 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
6776 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
6777 if ${lt_cv_ld_exported_symbols_list+:} false; then :
6778 $as_echo_n "(cached) " >&6
6780 lt_cv_ld_exported_symbols_list=no
6781 save_LDFLAGS=$LDFLAGS
6782 echo "_main" > conftest.sym
6783 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6784 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6785 /* end confdefs.h. */
6795 if ac_fn_c_try_link "$LINENO"; then :
6796 lt_cv_ld_exported_symbols_list=yes
6798 lt_cv_ld_exported_symbols_list=no
6800 rm -f core conftest.err conftest.$ac_objext \
6801 conftest$ac_exeext conftest.$ac_ext
6802 LDFLAGS="$save_LDFLAGS"
6805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
6806 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
6808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
6809 $as_echo_n "checking for -force_load linker flag... " >&6; }
6810 if ${lt_cv_ld_force_load+:} false; then :
6811 $as_echo_n "(cached) " >&6
6813 lt_cv_ld_force_load=no
6814 cat > conftest.c << _LT_EOF
6815 int forced_loaded() { return 2;}
6817 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
6818 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
6819 echo "$AR cru libconftest.a conftest.o" >&5
6820 $AR cru libconftest.a conftest.o 2>&5
6821 echo "$RANLIB libconftest.a" >&5
6822 $RANLIB libconftest.a 2>&5
6823 cat > conftest.c << _LT_EOF
6824 int main() { return 0;}
6826 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
6827 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
6829 if test -s conftest.err && $GREP force_load conftest.err; then
6830 cat conftest.err >&5
6831 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
6832 lt_cv_ld_force_load=yes
6834 cat conftest.err >&5
6836 rm -f conftest.err libconftest.a conftest conftest.c
6837 rm -rf conftest.dSYM
6840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
6841 $as_echo "$lt_cv_ld_force_load" >&6; }
6843 rhapsody* | darwin1.[012])
6844 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6846 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6847 darwin*) # darwin 5.x on
6848 # if running on 10.5 or later, the deployment target defaults
6849 # to the OS version, if on x86, and 10.4, the deployment
6850 # target defaults to 10.4. Don't you love it?
6851 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6852 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6853 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6855 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6857 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6861 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
6862 _lt_dar_single_mod='$single_module'
6864 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
6865 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
6867 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
6869 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
6870 _lt_dsymutil='~$DSYMUTIL $lib || :'
6878 ac_cpp='$CPP $CPPFLAGS'
6879 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6880 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6881 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
6883 $as_echo_n "checking how to run the C preprocessor... " >&6; }
6884 # On Suns, sometimes $CPP names a directory.
6885 if test -n "$CPP" && test -d "$CPP"; then
6888 if test -z "$CPP"; then
6889 if ${ac_cv_prog_CPP+:} false; then :
6890 $as_echo_n "(cached) " >&6
6892 # Double quotes because CPP needs to be expanded
6893 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6896 for ac_c_preproc_warn_flag in '' yes
6898 # Use a header file that comes with gcc, so configuring glibc
6899 # with a fresh cross-compiler works.
6900 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6901 # <limits.h> exists even on freestanding compilers.
6902 # On the NeXT, cc -E runs the code through the compiler's parser,
6903 # not just through cpp. "Syntax error" is here to catch this case.
6904 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6905 /* end confdefs.h. */
6907 # include <limits.h>
6909 # include <assert.h>
6913 if ac_fn_c_try_cpp "$LINENO"; then :
6916 # Broken: fails on valid input.
6919 rm -f conftest.err conftest.i conftest.$ac_ext
6921 # OK, works on sane cases. Now check whether nonexistent headers
6922 # can be detected and how.
6923 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6924 /* end confdefs.h. */
6925 #include <ac_nonexistent.h>
6927 if ac_fn_c_try_cpp "$LINENO"; then :
6928 # Broken: success on invalid input.
6931 # Passes both tests.
6935 rm -f conftest.err conftest.i conftest.$ac_ext
6938 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6939 rm -f conftest.i conftest.err conftest.$ac_ext
6940 if $ac_preproc_ok; then :
6952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
6953 $as_echo "$CPP" >&6; }
6955 for ac_c_preproc_warn_flag in '' yes
6957 # Use a header file that comes with gcc, so configuring glibc
6958 # with a fresh cross-compiler works.
6959 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6960 # <limits.h> exists even on freestanding compilers.
6961 # On the NeXT, cc -E runs the code through the compiler's parser,
6962 # not just through cpp. "Syntax error" is here to catch this case.
6963 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6964 /* end confdefs.h. */
6966 # include <limits.h>
6968 # include <assert.h>
6972 if ac_fn_c_try_cpp "$LINENO"; then :
6975 # Broken: fails on valid input.
6978 rm -f conftest.err conftest.i conftest.$ac_ext
6980 # OK, works on sane cases. Now check whether nonexistent headers
6981 # can be detected and how.
6982 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6983 /* end confdefs.h. */
6984 #include <ac_nonexistent.h>
6986 if ac_fn_c_try_cpp "$LINENO"; then :
6987 # Broken: success on invalid input.
6990 # Passes both tests.
6994 rm -f conftest.err conftest.i conftest.$ac_ext
6997 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6998 rm -f conftest.i conftest.err conftest.$ac_ext
6999 if $ac_preproc_ok; then :
7002 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7003 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7004 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7005 See \`config.log' for more details" "$LINENO" 5; }
7009 ac_cpp='$CPP $CPPFLAGS'
7010 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7011 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7012 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7016 $as_echo_n "checking for ANSI C header files... " >&6; }
7017 if ${ac_cv_header_stdc+:} false; then :
7018 $as_echo_n "(cached) " >&6
7020 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7021 /* end confdefs.h. */
7035 if ac_fn_c_try_compile "$LINENO"; then :
7036 ac_cv_header_stdc=yes
7038 ac_cv_header_stdc=no
7040 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7042 if test $ac_cv_header_stdc = yes; then
7043 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7045 /* end confdefs.h. */
7049 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7050 $EGREP "memchr" >/dev/null 2>&1; then :
7053 ac_cv_header_stdc=no
7059 if test $ac_cv_header_stdc = yes; then
7060 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7062 /* end confdefs.h. */
7066 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7067 $EGREP "free" >/dev/null 2>&1; then :
7070 ac_cv_header_stdc=no
7076 if test $ac_cv_header_stdc = yes; then
7077 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7078 if test "$cross_compiling" = yes; then :
7081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7082 /* end confdefs.h. */
7085 #if ((' ' & 0x0FF) == 0x020)
7086 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7087 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7089 # define ISLOWER(c) \
7090 (('a' <= (c) && (c) <= 'i') \
7091 || ('j' <= (c) && (c) <= 'r') \
7092 || ('s' <= (c) && (c) <= 'z'))
7093 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7096 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7101 for (i = 0; i < 256; i++)
7102 if (XOR (islower (i), ISLOWER (i))
7103 || toupper (i) != TOUPPER (i))
7108 if ac_fn_c_try_run "$LINENO"; then :
7111 ac_cv_header_stdc=no
7113 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7114 conftest.$ac_objext conftest.beam conftest.$ac_ext
7119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7120 $as_echo "$ac_cv_header_stdc" >&6; }
7121 if test $ac_cv_header_stdc = yes; then
7123 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7127 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7128 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7129 inttypes.h stdint.h unistd.h
7131 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7132 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7134 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7135 cat >>confdefs.h <<_ACEOF
7136 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7144 for ac_header in dlfcn.h
7146 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7148 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7149 cat >>confdefs.h <<_ACEOF
7150 #define HAVE_DLFCN_H 1
7171 # Check whether --enable-shared was given.
7172 if test "${enable_shared+set}" = set; then :
7173 enableval=$enable_shared; p=${PACKAGE-default}
7175 yes) enable_shared=yes ;;
7176 no) enable_shared=no ;;
7179 # Look at the argument we got. We use all the common list separators.
7180 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7181 for pkg in $enableval; do
7183 if test "X$pkg" = "X$p"; then
7202 # Check whether --enable-static was given.
7203 if test "${enable_static+set}" = set; then :
7204 enableval=$enable_static; p=${PACKAGE-default}
7206 yes) enable_static=yes ;;
7207 no) enable_static=no ;;
7210 # Look at the argument we got. We use all the common list separators.
7211 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7212 for pkg in $enableval; do
7214 if test "X$pkg" = "X$p"; then
7234 # Check whether --with-pic was given.
7235 if test "${with_pic+set}" = set; then :
7236 withval=$with_pic; lt_p=${PACKAGE-default}
7238 yes|no) pic_mode=$withval ;;
7241 # Look at the argument we got. We use all the common list separators.
7242 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7243 for lt_pkg in $withval; do
7245 if test "X$lt_pkg" = "X$lt_p"; then
7257 test -z "$pic_mode" && pic_mode=default
7265 # Check whether --enable-fast-install was given.
7266 if test "${enable_fast_install+set}" = set; then :
7267 enableval=$enable_fast_install; p=${PACKAGE-default}
7269 yes) enable_fast_install=yes ;;
7270 no) enable_fast_install=no ;;
7272 enable_fast_install=no
7273 # Look at the argument we got. We use all the common list separators.
7274 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7275 for pkg in $enableval; do
7277 if test "X$pkg" = "X$p"; then
7278 enable_fast_install=yes
7285 enable_fast_install=yes
7298 # This can be used to rebuild libtool when needed
7299 LIBTOOL_DEPS="$ltmain"
7301 # Always use our own libtool.
7302 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7333 test -z "$LN_S" && LN_S="ln -s"
7348 if test -n "${ZSH_VERSION+set}" ; then
7349 setopt NO_GLOB_SUBST
7352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7353 $as_echo_n "checking for objdir... " >&6; }
7354 if ${lt_cv_objdir+:} false; then :
7355 $as_echo_n "(cached) " >&6
7357 rm -f .libs 2>/dev/null
7358 mkdir .libs 2>/dev/null
7359 if test -d .libs; then
7362 # MS-DOS does not allow filenames that begin with a dot.
7365 rmdir .libs 2>/dev/null
7367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7368 $as_echo "$lt_cv_objdir" >&6; }
7369 objdir=$lt_cv_objdir
7375 cat >>confdefs.h <<_ACEOF
7376 #define LT_OBJDIR "$lt_cv_objdir/"
7384 # AIX sometimes has problems with the GCC collect2 program. For some
7385 # reason, if we set the COLLECT_NAMES environment variable, the problems
7386 # vanish in a puff of smoke.
7387 if test "X${COLLECT_NAMES+set}" != Xset; then
7389 export COLLECT_NAMES
7396 can_build_shared=yes
7398 # All known linkers require a `.a' archive for static linking (except MSVC,
7399 # which needs '.lib').
7402 with_gnu_ld="$lt_cv_prog_gnu_ld"
7405 old_CFLAGS="$CFLAGS"
7407 # Set sane defaults for various variables
7408 test -z "$CC" && CC=cc
7409 test -z "$LTCC" && LTCC=$CC
7410 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7411 test -z "$LD" && LD=ld
7412 test -z "$ac_objext" && ac_objext=o
7414 for cc_temp in $compiler""; do
7416 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7417 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7422 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7425 # Only perform the check for file, if the check method requires it
7426 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7427 case $deplibs_check_method in
7429 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7431 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7432 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7433 $as_echo_n "(cached) " >&6
7437 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7440 lt_save_MAGIC_CMD="$MAGIC_CMD"
7441 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7442 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7443 for ac_dir in $ac_dummy; do
7445 test -z "$ac_dir" && ac_dir=.
7446 if test -f $ac_dir/${ac_tool_prefix}file; then
7447 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7448 if test -n "$file_magic_test_file"; then
7449 case $deplibs_check_method in
7451 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7452 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7453 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7454 $EGREP "$file_magic_regex" > /dev/null; then
7459 *** Warning: the command libtool uses to detect shared libraries,
7460 *** $file_magic_cmd, produces output that libtool cannot recognize.
7461 *** The result is that libtool may fail to recognize shared libraries
7462 *** as such. This will affect the creation of libtool libraries that
7463 *** depend on shared libraries, but programs linked with such libtool
7464 *** libraries will work regardless of this problem. Nevertheless, you
7465 *** may want to report the problem to your system manager and/or to
7466 *** bug-libtool@gnu.org
7476 MAGIC_CMD="$lt_save_MAGIC_CMD"
7481 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7482 if test -n "$MAGIC_CMD"; then
7483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7484 $as_echo "$MAGIC_CMD" >&6; }
7486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7487 $as_echo "no" >&6; }
7494 if test -z "$lt_cv_path_MAGIC_CMD"; then
7495 if test -n "$ac_tool_prefix"; then
7496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7497 $as_echo_n "checking for file... " >&6; }
7498 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7499 $as_echo_n "(cached) " >&6
7503 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7506 lt_save_MAGIC_CMD="$MAGIC_CMD"
7507 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7508 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7509 for ac_dir in $ac_dummy; do
7511 test -z "$ac_dir" && ac_dir=.
7512 if test -f $ac_dir/file; then
7513 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7514 if test -n "$file_magic_test_file"; then
7515 case $deplibs_check_method in
7517 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7518 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7519 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7520 $EGREP "$file_magic_regex" > /dev/null; then
7525 *** Warning: the command libtool uses to detect shared libraries,
7526 *** $file_magic_cmd, produces output that libtool cannot recognize.
7527 *** The result is that libtool may fail to recognize shared libraries
7528 *** as such. This will affect the creation of libtool libraries that
7529 *** depend on shared libraries, but programs linked with such libtool
7530 *** libraries will work regardless of this problem. Nevertheless, you
7531 *** may want to report the problem to your system manager and/or to
7532 *** bug-libtool@gnu.org
7542 MAGIC_CMD="$lt_save_MAGIC_CMD"
7547 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7548 if test -n "$MAGIC_CMD"; then
7549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7550 $as_echo "$MAGIC_CMD" >&6; }
7552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7553 $as_echo "no" >&6; }
7566 # Use C for the default configuration in the libtool script
7570 ac_cpp='$CPP $CPPFLAGS'
7571 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7572 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7573 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7576 # Source file extension for C test sources.
7579 # Object file extension for compiled C test sources.
7583 # Code to be used in simple compile tests
7584 lt_simple_compile_test_code="int some_variable = 0;"
7586 # Code to be used in simple link tests
7587 lt_simple_link_test_code='int main(){return(0);}'
7595 # If no C compiler was specified, use CC.
7598 # If no C compiler flags were specified, use CFLAGS.
7599 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7601 # Allow CC to be a program name with arguments.
7604 # Save the default compiler, since it gets overwritten when the other
7605 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7606 compiler_DEFAULT=$CC
7608 # save warnings/boilerplate of simple test code
7609 ac_outfile=conftest.$ac_objext
7610 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7611 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7612 _lt_compiler_boilerplate=`cat conftest.err`
7615 ac_outfile=conftest.$ac_objext
7616 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7617 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7618 _lt_linker_boilerplate=`cat conftest.err`
7623 ## There is no encapsulation within the following macros, do not change
7624 ## the running order or otherwise move them around unless you know exactly
7625 ## what you are doing...
7626 if test -n "$compiler"; then
7628 lt_prog_compiler_no_builtin_flag=
7630 if test "$GCC" = yes; then
7631 case $cc_basename in
7633 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
7635 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
7638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7639 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7640 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
7641 $as_echo_n "(cached) " >&6
7643 lt_cv_prog_compiler_rtti_exceptions=no
7644 ac_outfile=conftest.$ac_objext
7645 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7646 lt_compiler_flag="-fno-rtti -fno-exceptions"
7647 # Insert the option either (1) after the last *FLAGS variable, or
7648 # (2) before a word containing "conftest.", or (3) at the end.
7649 # Note that $ac_compile itself does not contain backslashes and begins
7650 # with a dollar sign (not a hyphen), so the echo should work correctly.
7651 # The option is referenced via a variable to avoid confusing sed.
7652 lt_compile=`echo "$ac_compile" | $SED \
7653 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7654 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7655 -e 's:$: $lt_compiler_flag:'`
7656 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7657 (eval "$lt_compile" 2>conftest.err)
7659 cat conftest.err >&5
7660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7661 if (exit $ac_status) && test -s "$ac_outfile"; then
7662 # The compiler can only warn and ignore the option if not recognized
7663 # So say no if there are warnings other than the usual output.
7664 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
7665 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7666 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7667 lt_cv_prog_compiler_rtti_exceptions=yes
7673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7674 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7676 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7677 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7689 lt_prog_compiler_wl=
7690 lt_prog_compiler_pic=
7691 lt_prog_compiler_static=
7694 if test "$GCC" = yes; then
7695 lt_prog_compiler_wl='-Wl,'
7696 lt_prog_compiler_static='-static'
7700 # All AIX code is PIC.
7701 if test "$host_cpu" = ia64; then
7702 # AIX 5 now supports IA64 processor
7703 lt_prog_compiler_static='-Bstatic'
7710 # see comment about AmigaOS4 .so support
7711 lt_prog_compiler_pic='-fPIC'
7714 # FIXME: we need at least 68020 code to build shared libraries, but
7715 # adding the `-m68020' flag to GCC prevents building anything better,
7717 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7722 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7723 # PIC is the default for these OSes.
7726 mingw* | cygwin* | pw32* | os2* | cegcc*)
7727 # This hack is so that the source file can tell whether it is being
7728 # built for inclusion in a dll (and should export symbols for example).
7729 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7730 # (--disable-auto-import) libraries
7731 lt_prog_compiler_pic='-DDLL_EXPORT'
7734 darwin* | rhapsody*)
7735 # PIC is the default on this platform
7736 # Common symbols not allowed in MH_DYLIB files
7737 lt_prog_compiler_pic='-fno-common'
7741 # PIC is the default for Haiku.
7742 # The "-static" flag exists, but is broken.
7743 lt_prog_compiler_static=
7747 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7748 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
7749 # sets the default TLS model and affects inlining.
7755 lt_prog_compiler_pic='-fPIC'
7761 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7762 # Instead, we relocate shared libraries at runtime.
7766 # Just because we use GCC doesn't mean we suddenly get shared libraries
7767 # on systems that don't support them.
7768 lt_prog_compiler_can_build_shared=no
7773 # QNX uses GNU C++, but need to define -shared option too, otherwise
7775 lt_prog_compiler_pic='-fPIC -shared'
7779 if test -d /usr/nec; then
7780 lt_prog_compiler_pic=-Kconform_pic
7785 lt_prog_compiler_pic='-fPIC'
7789 case $cc_basename in
7790 nvcc*) # Cuda Compiler Driver 2.2
7791 lt_prog_compiler_wl='-Xlinker '
7792 if test -n "$lt_prog_compiler_pic"; then
7793 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
7798 # PORTME Check for flag to pass linker flags through the system compiler.
7801 lt_prog_compiler_wl='-Wl,'
7802 if test "$host_cpu" = ia64; then
7803 # AIX 5 now supports IA64 processor
7804 lt_prog_compiler_static='-Bstatic'
7806 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7810 mingw* | cygwin* | pw32* | os2* | cegcc*)
7811 # This hack is so that the source file can tell whether it is being
7812 # built for inclusion in a dll (and should export symbols for example).
7813 lt_prog_compiler_pic='-DDLL_EXPORT'
7816 hpux9* | hpux10* | hpux11*)
7817 lt_prog_compiler_wl='-Wl,'
7818 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7825 lt_prog_compiler_pic='+Z'
7828 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7829 lt_prog_compiler_static='${wl}-a ${wl}archive'
7832 irix5* | irix6* | nonstopux*)
7833 lt_prog_compiler_wl='-Wl,'
7834 # PIC (with -KPIC) is the default.
7835 lt_prog_compiler_static='-non_shared'
7838 linux* | k*bsd*-gnu | kopensolaris*-gnu)
7839 case $cc_basename in
7840 # old Intel for x86_64 which still supported -KPIC.
7842 lt_prog_compiler_wl='-Wl,'
7843 lt_prog_compiler_pic='-KPIC'
7844 lt_prog_compiler_static='-static'
7846 # icc used to be incompatible with GCC.
7847 # ICC 10 doesn't accept -KPIC any more.
7849 lt_prog_compiler_wl='-Wl,'
7850 lt_prog_compiler_pic='-fPIC'
7851 lt_prog_compiler_static='-static'
7853 # Lahey Fortran 8.1.
7855 lt_prog_compiler_wl='-Wl,'
7856 lt_prog_compiler_pic='--shared'
7857 lt_prog_compiler_static='--static'
7860 # NAG Fortran compiler
7861 lt_prog_compiler_wl='-Wl,-Wl,,'
7862 lt_prog_compiler_pic='-PIC'
7863 lt_prog_compiler_static='-Bstatic'
7865 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
7866 # Portland Group compilers (*not* the Pentium gcc compiler,
7867 # which looks to be a dead project)
7868 lt_prog_compiler_wl='-Wl,'
7869 lt_prog_compiler_pic='-fpic'
7870 lt_prog_compiler_static='-Bstatic'
7873 lt_prog_compiler_wl='-Wl,'
7874 # All Alpha code is PIC.
7875 lt_prog_compiler_static='-non_shared'
7877 xl* | bgxl* | bgf* | mpixl*)
7878 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
7879 lt_prog_compiler_wl='-Wl,'
7880 lt_prog_compiler_pic='-qpic'
7881 lt_prog_compiler_static='-qstaticlink'
7884 case `$CC -V 2>&1 | sed 5q` in
7885 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
7886 # Sun Fortran 8.3 passes all unrecognized flags to the linker
7887 lt_prog_compiler_pic='-KPIC'
7888 lt_prog_compiler_static='-Bstatic'
7889 lt_prog_compiler_wl=''
7891 *Sun\ F* | *Sun*Fortran*)
7892 lt_prog_compiler_pic='-KPIC'
7893 lt_prog_compiler_static='-Bstatic'
7894 lt_prog_compiler_wl='-Qoption ld '
7898 lt_prog_compiler_pic='-KPIC'
7899 lt_prog_compiler_static='-Bstatic'
7900 lt_prog_compiler_wl='-Wl,'
7902 *Intel*\ [CF]*Compiler*)
7903 lt_prog_compiler_wl='-Wl,'
7904 lt_prog_compiler_pic='-fPIC'
7905 lt_prog_compiler_static='-static'
7908 lt_prog_compiler_wl='-Wl,'
7909 lt_prog_compiler_pic='-fpic'
7910 lt_prog_compiler_static='-Bstatic'
7918 lt_prog_compiler_pic='-KPIC'
7919 lt_prog_compiler_static='-Bstatic'
7923 # QNX uses GNU C++, but need to define -shared option too, otherwise
7925 lt_prog_compiler_pic='-fPIC -shared'
7928 osf3* | osf4* | osf5*)
7929 lt_prog_compiler_wl='-Wl,'
7930 # All OSF/1 code is PIC.
7931 lt_prog_compiler_static='-non_shared'
7935 lt_prog_compiler_static='-non_shared'
7939 lt_prog_compiler_pic='-KPIC'
7940 lt_prog_compiler_static='-Bstatic'
7941 case $cc_basename in
7942 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
7943 lt_prog_compiler_wl='-Qoption ld ';;
7945 lt_prog_compiler_wl='-Wl,';;
7950 lt_prog_compiler_wl='-Qoption ld '
7951 lt_prog_compiler_pic='-PIC'
7952 lt_prog_compiler_static='-Bstatic'
7955 sysv4 | sysv4.2uw2* | sysv4.3*)
7956 lt_prog_compiler_wl='-Wl,'
7957 lt_prog_compiler_pic='-KPIC'
7958 lt_prog_compiler_static='-Bstatic'
7962 if test -d /usr/nec ;then
7963 lt_prog_compiler_pic='-Kconform_pic'
7964 lt_prog_compiler_static='-Bstatic'
7968 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7969 lt_prog_compiler_wl='-Wl,'
7970 lt_prog_compiler_pic='-KPIC'
7971 lt_prog_compiler_static='-Bstatic'
7975 lt_prog_compiler_wl='-Wl,'
7976 lt_prog_compiler_can_build_shared=no
7980 lt_prog_compiler_pic='-pic'
7981 lt_prog_compiler_static='-Bstatic'
7985 lt_prog_compiler_can_build_shared=no
7991 # For platforms which do not support PIC, -DPIC is meaningless:
7993 lt_prog_compiler_pic=
7996 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8001 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8002 if ${lt_cv_prog_compiler_pic+:} false; then :
8003 $as_echo_n "(cached) " >&6
8005 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8008 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8009 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8012 # Check to make sure the PIC flag actually works.
8014 if test -n "$lt_prog_compiler_pic"; then
8015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8016 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8017 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8018 $as_echo_n "(cached) " >&6
8020 lt_cv_prog_compiler_pic_works=no
8021 ac_outfile=conftest.$ac_objext
8022 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8023 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8024 # Insert the option either (1) after the last *FLAGS variable, or
8025 # (2) before a word containing "conftest.", or (3) at the end.
8026 # Note that $ac_compile itself does not contain backslashes and begins
8027 # with a dollar sign (not a hyphen), so the echo should work correctly.
8028 # The option is referenced via a variable to avoid confusing sed.
8029 lt_compile=`echo "$ac_compile" | $SED \
8030 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8031 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8032 -e 's:$: $lt_compiler_flag:'`
8033 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8034 (eval "$lt_compile" 2>conftest.err)
8036 cat conftest.err >&5
8037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8038 if (exit $ac_status) && test -s "$ac_outfile"; then
8039 # The compiler can only warn and ignore the option if not recognized
8040 # So say no if there are warnings other than the usual output.
8041 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8042 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8043 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8044 lt_cv_prog_compiler_pic_works=yes
8050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8051 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8053 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8054 case $lt_prog_compiler_pic in
8056 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8059 lt_prog_compiler_pic=
8060 lt_prog_compiler_can_build_shared=no
8076 # Check to make sure the static flag actually works.
8078 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8080 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8081 if ${lt_cv_prog_compiler_static_works+:} false; then :
8082 $as_echo_n "(cached) " >&6
8084 lt_cv_prog_compiler_static_works=no
8085 save_LDFLAGS="$LDFLAGS"
8086 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8087 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8088 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8089 # The linker can only warn and ignore the option if not recognized
8090 # So say no if there are warnings
8091 if test -s conftest.err; then
8092 # Append any errors to the config.log.
8093 cat conftest.err 1>&5
8094 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8095 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8096 if diff conftest.exp conftest.er2 >/dev/null; then
8097 lt_cv_prog_compiler_static_works=yes
8100 lt_cv_prog_compiler_static_works=yes
8104 LDFLAGS="$save_LDFLAGS"
8107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8108 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8110 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8113 lt_prog_compiler_static=
8122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8123 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8124 if ${lt_cv_prog_compiler_c_o+:} false; then :
8125 $as_echo_n "(cached) " >&6
8127 lt_cv_prog_compiler_c_o=no
8128 $RM -r conftest 2>/dev/null
8132 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8134 lt_compiler_flag="-o out/conftest2.$ac_objext"
8135 # Insert the option either (1) after the last *FLAGS variable, or
8136 # (2) before a word containing "conftest.", or (3) at the end.
8137 # Note that $ac_compile itself does not contain backslashes and begins
8138 # with a dollar sign (not a hyphen), so the echo should work correctly.
8139 lt_compile=`echo "$ac_compile" | $SED \
8140 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8141 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8142 -e 's:$: $lt_compiler_flag:'`
8143 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8144 (eval "$lt_compile" 2>out/conftest.err)
8146 cat out/conftest.err >&5
8147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8148 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8150 # The compiler can only warn and ignore the option if not recognized
8151 # So say no if there are warnings
8152 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8153 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8154 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8155 lt_cv_prog_compiler_c_o=yes
8160 # SGI C++ compiler will create directory out/ii_files/ for
8161 # template instantiation
8162 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8163 $RM out/* && rmdir out
8169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8170 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8178 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8179 if ${lt_cv_prog_compiler_c_o+:} false; then :
8180 $as_echo_n "(cached) " >&6
8182 lt_cv_prog_compiler_c_o=no
8183 $RM -r conftest 2>/dev/null
8187 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8189 lt_compiler_flag="-o out/conftest2.$ac_objext"
8190 # Insert the option either (1) after the last *FLAGS variable, or
8191 # (2) before a word containing "conftest.", or (3) at the end.
8192 # Note that $ac_compile itself does not contain backslashes and begins
8193 # with a dollar sign (not a hyphen), so the echo should work correctly.
8194 lt_compile=`echo "$ac_compile" | $SED \
8195 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8196 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8197 -e 's:$: $lt_compiler_flag:'`
8198 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8199 (eval "$lt_compile" 2>out/conftest.err)
8201 cat out/conftest.err >&5
8202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8203 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8205 # The compiler can only warn and ignore the option if not recognized
8206 # So say no if there are warnings
8207 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8208 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8209 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8210 lt_cv_prog_compiler_c_o=yes
8215 # SGI C++ compiler will create directory out/ii_files/ for
8216 # template instantiation
8217 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8218 $RM out/* && rmdir out
8224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8225 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8230 hard_links="nottested"
8231 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8232 # do not overwrite the value of need_locks provided by the user
8233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8234 $as_echo_n "checking if we can lock with hard links... " >&6; }
8237 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8239 ln conftest.a conftest.b 2>&5 || hard_links=no
8240 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8242 $as_echo "$hard_links" >&6; }
8243 if test "$hard_links" = no; then
8244 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8245 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8258 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8261 allow_undefined_flag=
8262 always_export_symbols=no
8264 archive_expsym_cmds=
8265 compiler_needs_object=no
8266 enable_shared_with_static_runtimes=no
8267 export_dynamic_flag_spec=
8268 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8269 hardcode_automatic=no
8271 hardcode_direct_absolute=no
8272 hardcode_libdir_flag_spec=
8273 hardcode_libdir_separator=
8275 hardcode_shlibpath_var=unsupported
8277 link_all_deplibs=unknown
8280 old_archive_from_new_cmds=
8281 old_archive_from_expsyms_cmds=
8282 thread_safe_flag_spec=
8283 whole_archive_flag_spec=
8284 # include_expsyms should be a list of space-separated symbols to be *always*
8285 # included in the symbol list
8287 # exclude_expsyms can be an extended regexp of symbols to exclude
8288 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8289 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8290 # as well as any symbol that contains `d'.
8291 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8292 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8293 # platforms (ab)use it in PIC code, but their linkers get confused if
8294 # the symbol is explicitly referenced. Since portable code cannot
8295 # rely on this symbol name, it's probably fine to never include it in
8296 # preloaded symbol tables.
8297 # Exclude shared library initialization/finalization symbols.
8298 extract_expsyms_cmds=
8301 cygwin* | mingw* | pw32* | cegcc*)
8302 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8303 # When not using gcc, we currently assume that we are using
8304 # Microsoft Visual C++.
8305 if test "$GCC" != yes; then
8310 # we just hope/assume this is gcc and not c89 (= MSVC++)
8316 linux* | k*bsd*-gnu | gnu*)
8323 # On some targets, GNU ld is compatible enough with the native linker
8324 # that we're better off using the native interface for both.
8325 lt_use_gnu_ld_interface=no
8326 if test "$with_gnu_ld" = yes; then
8329 # The AIX port of GNU ld has always aspired to compatibility
8330 # with the native linker. However, as the warning in the GNU ld
8331 # block says, versions before 2.19.5* couldn't really create working
8332 # shared libraries, regardless of the interface used.
8333 case `$LD -v 2>&1` in
8334 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8335 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8336 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8338 lt_use_gnu_ld_interface=yes
8343 lt_use_gnu_ld_interface=yes
8348 if test "$lt_use_gnu_ld_interface" = yes; then
8349 # If archive_cmds runs LD, not CC, wlarc should be empty
8352 # Set some defaults for GNU ld with shared library support. These
8353 # are reset later if shared libraries are not supported. Putting them
8354 # here allows them to be overridden if necessary.
8355 runpath_var=LD_RUN_PATH
8356 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8357 export_dynamic_flag_spec='${wl}--export-dynamic'
8358 # ancient GNU ld didn't support --whole-archive et. al.
8359 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8360 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8362 whole_archive_flag_spec=
8364 supports_anon_versioning=no
8365 case `$LD -v 2>&1` in
8366 *GNU\ gold*) supports_anon_versioning=yes ;;
8367 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8368 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8369 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8370 *\ 2.11.*) ;; # other 2.11 versions
8371 *) supports_anon_versioning=yes ;;
8374 # See if GNU ld supports shared libraries.
8377 # On AIX/PPC, the GNU linker is very broken
8378 if test "$host_cpu" != ia64; then
8382 *** Warning: the GNU linker, at least up to release 2.19, is reported
8383 *** to be unable to reliably create shared libraries on AIX.
8384 *** Therefore, libtool is disabling shared libraries support. If you
8385 *** really care for shared libraries, you may want to install binutils
8386 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8387 *** You will then need to restart the configuration process.
8396 # see comment about AmigaOS4 .so support
8397 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8398 archive_expsym_cmds=''
8401 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)'
8402 hardcode_libdir_flag_spec='-L$libdir'
8403 hardcode_minus_L=yes
8409 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8410 allow_undefined_flag=unsupported
8411 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8412 # support --undefined. This deserves some investigation. FIXME
8413 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8419 cygwin* | mingw* | pw32* | cegcc*)
8420 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8421 # as there is no search path for DLLs.
8422 hardcode_libdir_flag_spec='-L$libdir'
8423 export_dynamic_flag_spec='${wl}--export-all-symbols'
8424 allow_undefined_flag=unsupported
8425 always_export_symbols=no
8426 enable_shared_with_static_runtimes=yes
8427 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'
8428 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
8430 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8431 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8432 # If the export-symbols file already is a .def file (1st line
8433 # is EXPORTS), use it as is; otherwise, prepend...
8434 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8435 cp $export_symbols $output_objdir/$soname.def;
8437 echo EXPORTS > $output_objdir/$soname.def;
8438 cat $export_symbols >> $output_objdir/$soname.def;
8440 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8447 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8448 link_all_deplibs=yes
8453 hardcode_shlibpath_var=no
8454 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8455 export_dynamic_flag_spec='${wl}-E'
8456 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8457 # Instead, shared libraries are loaded at an image base (0x10000000 by
8458 # default) and relocated if they conflict, which is a slow very memory
8459 # consuming and fragmenting process. To avoid this, we pick a random,
8460 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8461 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8462 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8463 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'
8466 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8468 if test "$host_os" = linux-dietlibc; then
8469 case $cc_basename in
8470 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8473 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8474 && test "$tmp_diet" = no
8476 tmp_addflag=' $pic_flag'
8477 tmp_sharedflag='-shared'
8478 case $cc_basename,$host_cpu in
8479 pgcc*) # Portland Group C compiler
8480 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'
8481 tmp_addflag=' $pic_flag'
8483 pgf77* | pgf90* | pgf95* | pgfortran*)
8484 # Portland Group f77 and f90 compilers
8485 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'
8486 tmp_addflag=' $pic_flag -Mnomain' ;;
8487 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8488 tmp_addflag=' -i_dynamic' ;;
8489 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8490 tmp_addflag=' -i_dynamic -nofor_main' ;;
8491 ifc* | ifort*) # Intel Fortran compiler
8492 tmp_addflag=' -nofor_main' ;;
8493 lf95*) # Lahey Fortran 8.1
8494 whole_archive_flag_spec=
8495 tmp_sharedflag='--shared' ;;
8496 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8497 tmp_sharedflag='-qmkshrobj'
8499 nvcc*) # Cuda Compiler Driver 2.2
8500 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'
8501 compiler_needs_object=yes
8504 case `$CC -V 2>&1 | sed 5q` in
8505 *Sun\ C*) # Sun C 5.9
8506 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'
8507 compiler_needs_object=yes
8508 tmp_sharedflag='-G' ;;
8509 *Sun\ F*) # Sun Fortran 8.3
8510 tmp_sharedflag='-G' ;;
8512 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8514 if test "x$supports_anon_versioning" = xyes; then
8515 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8516 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8517 echo "local: *; };" >> $output_objdir/$libname.ver~
8518 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8521 case $cc_basename in
8522 xlf* | bgf* | bgxlf* | mpixlf*)
8523 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8524 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8525 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8526 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
8527 if test "x$supports_anon_versioning" = xyes; then
8528 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8529 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8530 echo "local: *; };" >> $output_objdir/$libname.ver~
8531 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8540 netbsd* | netbsdelf*-gnu)
8541 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8542 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8545 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8546 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8551 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8555 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8556 *** create shared libraries on Solaris systems. Therefore, libtool
8557 *** is disabling shared libraries support. We urge you to upgrade GNU
8558 *** binutils to release 2.9.1 or newer. Another option is to modify
8559 *** your PATH or compiler configuration so that the native linker is
8560 *** used, and then restart.
8563 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8564 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8565 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8571 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8572 case `$LD -v 2>&1` in
8573 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8577 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8578 *** reliably create shared libraries on SCO systems. Therefore, libtool
8579 *** is disabling shared libraries support. We urge you to upgrade GNU
8580 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8581 *** your PATH or compiler configuration so that the native linker is
8582 *** used, and then restart.
8587 # For security reasons, it is highly recommended that you always
8588 # use absolute paths for naming shared libraries, and exclude the
8589 # DT_RUNPATH tag from executables and libraries. But doing so
8590 # requires that you compile everything twice, which is a pain.
8591 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8592 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8593 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8594 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8603 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8606 hardcode_shlibpath_var=no
8610 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8611 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8612 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8619 if test "$ld_shlibs" = no; then
8621 hardcode_libdir_flag_spec=
8622 export_dynamic_flag_spec=
8623 whole_archive_flag_spec=
8626 # PORTME fill in a description of your system's linker (not GNU ld)
8629 allow_undefined_flag=unsupported
8630 always_export_symbols=yes
8631 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'
8632 # Note: this linker hardcodes the directories in LIBPATH if there
8633 # are no directories specified by -L.
8634 hardcode_minus_L=yes
8635 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8636 # Neither direct hardcoding nor static linking is supported with a
8638 hardcode_direct=unsupported
8643 if test "$host_cpu" = ia64; then
8644 # On IA64, the linker does run time linking by default, so we don't
8645 # have to do anything special.
8646 aix_use_runtimelinking=no
8647 exp_sym_flag='-Bexport'
8650 # If we're using GNU nm, then we don't want the "-C" option.
8651 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8652 # Also, AIX nm treats weak defined symbols like other global
8653 # defined symbols, whereas GNU nm marks them as "W".
8654 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8655 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'
8657 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'
8659 aix_use_runtimelinking=no
8661 # Test if we are trying to use run time linking or normal
8662 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8663 # need to do runtime linking.
8664 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8665 for ld_flag in $LDFLAGS; do
8666 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8667 aix_use_runtimelinking=yes
8674 exp_sym_flag='-bexport'
8675 no_entry_flag='-bnoentry'
8678 # When large executables or shared objects are built, AIX ld can
8679 # have problems creating the table of contents. If linking a library
8680 # or program results in "error TOC overflow" add -mminimal-toc to
8681 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8682 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8686 hardcode_direct_absolute=yes
8687 hardcode_libdir_separator=':'
8688 link_all_deplibs=yes
8689 file_list_spec='${wl}-f,'
8691 if test "$GCC" = yes; then
8692 case $host_os in aix4.[012]|aix4.[012].*)
8693 # We only want to do this on AIX 4.2 and lower, the check
8694 # below for broken collect2 doesn't work under 4.3+
8695 collect2name=`${CC} -print-prog-name=collect2`
8696 if test -f "$collect2name" &&
8697 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8699 # We have reworked collect2
8702 # We have old collect2
8703 hardcode_direct=unsupported
8704 # It fails to find uninstalled libraries when the uninstalled
8705 # path is not listed in the libpath. Setting hardcode_minus_L
8706 # to unsupported forces relinking
8707 hardcode_minus_L=yes
8708 hardcode_libdir_flag_spec='-L$libdir'
8709 hardcode_libdir_separator=
8713 shared_flag='-shared'
8714 if test "$aix_use_runtimelinking" = yes; then
8715 shared_flag="$shared_flag "'${wl}-G'
8720 if test "$host_cpu" = ia64; then
8721 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8722 # chokes on -Wl,-G. The following line is correct:
8725 if test "$aix_use_runtimelinking" = yes; then
8726 shared_flag='${wl}-G'
8728 shared_flag='${wl}-bM:SRE'
8733 export_dynamic_flag_spec='${wl}-bexpall'
8734 # It seems that -bexpall does not export symbols beginning with
8735 # underscore (_), so it is better to generate a list of symbols to export.
8736 always_export_symbols=yes
8737 if test "$aix_use_runtimelinking" = yes; then
8738 # Warning - without using the other runtime loading flags (-brtl),
8739 # -berok will link without error, but may produce a broken library.
8740 allow_undefined_flag='-berok'
8741 # Determine the default libpath from the value encoded in an
8743 if test "${lt_cv_aix_libpath+set}" = set; then
8744 aix_libpath=$lt_cv_aix_libpath
8746 if ${lt_cv_aix_libpath_+:} false; then :
8747 $as_echo_n "(cached) " >&6
8749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8750 /* end confdefs.h. */
8760 if ac_fn_c_try_link "$LINENO"; then :
8762 lt_aix_libpath_sed='
8763 /Import File Strings/,/^$/ {
8765 s/^0 *\([^ ]*\) *$/\1/
8769 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8770 # Check for a 64-bit object if we didn't find anything.
8771 if test -z "$lt_cv_aix_libpath_"; then
8772 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8775 rm -f core conftest.err conftest.$ac_objext \
8776 conftest$ac_exeext conftest.$ac_ext
8777 if test -z "$lt_cv_aix_libpath_"; then
8778 lt_cv_aix_libpath_="/usr/lib:/lib"
8783 aix_libpath=$lt_cv_aix_libpath_
8786 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8787 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"
8789 if test "$host_cpu" = ia64; then
8790 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8791 allow_undefined_flag="-z nodefs"
8792 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"
8794 # Determine the default libpath from the value encoded in an
8796 if test "${lt_cv_aix_libpath+set}" = set; then
8797 aix_libpath=$lt_cv_aix_libpath
8799 if ${lt_cv_aix_libpath_+:} false; then :
8800 $as_echo_n "(cached) " >&6
8802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8803 /* end confdefs.h. */
8813 if ac_fn_c_try_link "$LINENO"; then :
8815 lt_aix_libpath_sed='
8816 /Import File Strings/,/^$/ {
8818 s/^0 *\([^ ]*\) *$/\1/
8822 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8823 # Check for a 64-bit object if we didn't find anything.
8824 if test -z "$lt_cv_aix_libpath_"; then
8825 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8828 rm -f core conftest.err conftest.$ac_objext \
8829 conftest$ac_exeext conftest.$ac_ext
8830 if test -z "$lt_cv_aix_libpath_"; then
8831 lt_cv_aix_libpath_="/usr/lib:/lib"
8836 aix_libpath=$lt_cv_aix_libpath_
8839 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8840 # Warning - without using the other run time loading flags,
8841 # -berok will link without error, but may produce a broken library.
8842 no_undefined_flag=' ${wl}-bernotok'
8843 allow_undefined_flag=' ${wl}-berok'
8844 if test "$with_gnu_ld" = yes; then
8845 # We only use this code for GNU lds that support --whole-archive.
8846 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
8848 # Exported symbols can be pulled into shared objects from archives
8849 whole_archive_flag_spec='$convenience'
8851 archive_cmds_need_lc=yes
8852 # This is similar to how AIX traditionally builds its shared libraries.
8853 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'
8861 # see comment about AmigaOS4 .so support
8862 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8863 archive_expsym_cmds=''
8866 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)'
8867 hardcode_libdir_flag_spec='-L$libdir'
8868 hardcode_minus_L=yes
8874 export_dynamic_flag_spec=-rdynamic
8877 cygwin* | mingw* | pw32* | cegcc*)
8878 # When not using gcc, we currently assume that we are using
8879 # Microsoft Visual C++.
8880 # hardcode_libdir_flag_spec is actually meaningless, as there is
8881 # no search path for DLLs.
8882 case $cc_basename in
8885 hardcode_libdir_flag_spec=' '
8886 allow_undefined_flag=unsupported
8887 always_export_symbols=yes
8889 # Tell ltmain to make .lib files, not .a files.
8891 # Tell ltmain to make .dll files, not .so files.
8893 # FIXME: Setting linknames here is a bad hack.
8894 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
8895 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8896 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
8898 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
8900 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
8902 # The linker will not automatically build a static lib if we build a DLL.
8903 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
8904 enable_shared_with_static_runtimes=yes
8905 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
8906 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8908 old_postinstall_cmds='chmod 644 $oldlib'
8909 postlink_cmds='lt_outputfile="@OUTPUT@"~
8910 lt_tool_outputfile="@TOOL_OUTPUT@"~
8911 case $lt_outputfile in
8914 lt_outputfile="$lt_outputfile.exe"
8915 lt_tool_outputfile="$lt_tool_outputfile.exe"
8918 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
8919 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
8920 $RM "$lt_outputfile.manifest";
8924 # Assume MSVC wrapper
8925 hardcode_libdir_flag_spec=' '
8926 allow_undefined_flag=unsupported
8927 # Tell ltmain to make .lib files, not .a files.
8929 # Tell ltmain to make .dll files, not .so files.
8931 # FIXME: Setting linknames here is a bad hack.
8932 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
8933 # The linker will automatically build a .lib file if we build a DLL.
8934 old_archive_from_new_cmds='true'
8935 # FIXME: Should let the user specify the lib program.
8936 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8937 enable_shared_with_static_runtimes=yes
8942 darwin* | rhapsody*)
8945 archive_cmds_need_lc=no
8947 hardcode_automatic=yes
8948 hardcode_shlibpath_var=unsupported
8949 if test "$lt_cv_ld_force_load" = "yes"; then
8950 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\"`'
8953 whole_archive_flag_spec=''
8955 link_all_deplibs=yes
8956 allow_undefined_flag="$_lt_dar_allow_undefined"
8957 case $cc_basename in
8958 ifort*) _lt_dar_can_shared=yes ;;
8959 *) _lt_dar_can_shared=$GCC ;;
8961 if test "$_lt_dar_can_shared" = "yes"; then
8962 output_verbose_link_cmd=func_echo_all
8963 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8964 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8965 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}"
8966 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}"
8975 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8976 hardcode_libdir_flag_spec='-L$libdir'
8977 hardcode_shlibpath_var=no
8980 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8981 # support. Future versions do this automatically, but an explicit c++rt0.o
8982 # does not break anything, and helps significantly (at the cost of a little
8985 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8986 hardcode_libdir_flag_spec='-R$libdir'
8988 hardcode_shlibpath_var=no
8991 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8993 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8995 hardcode_minus_L=yes
8996 hardcode_shlibpath_var=no
8999 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9000 freebsd* | dragonfly*)
9001 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9002 hardcode_libdir_flag_spec='-R$libdir'
9004 hardcode_shlibpath_var=no
9008 if test "$GCC" = yes; then
9009 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'
9011 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'
9013 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9014 hardcode_libdir_separator=:
9017 # hardcode_minus_L: Not really in the search PATH,
9018 # but as the default location of the library.
9019 hardcode_minus_L=yes
9020 export_dynamic_flag_spec='${wl}-E'
9024 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9025 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9027 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9029 if test "$with_gnu_ld" = no; then
9030 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9031 hardcode_libdir_separator=:
9033 hardcode_direct_absolute=yes
9034 export_dynamic_flag_spec='${wl}-E'
9035 # hardcode_minus_L: Not really in the search PATH,
9036 # but as the default location of the library.
9037 hardcode_minus_L=yes
9042 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9045 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9048 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9051 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9057 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9060 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9064 # Older versions of the 11.00 compiler do not understand -b yet
9065 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9067 $as_echo_n "checking if $CC understands -b... " >&6; }
9068 if ${lt_cv_prog_compiler__b+:} false; then :
9069 $as_echo_n "(cached) " >&6
9071 lt_cv_prog_compiler__b=no
9072 save_LDFLAGS="$LDFLAGS"
9073 LDFLAGS="$LDFLAGS -b"
9074 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9075 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9076 # The linker can only warn and ignore the option if not recognized
9077 # So say no if there are warnings
9078 if test -s conftest.err; then
9079 # Append any errors to the config.log.
9080 cat conftest.err 1>&5
9081 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9082 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9083 if diff conftest.exp conftest.er2 >/dev/null; then
9084 lt_cv_prog_compiler__b=yes
9087 lt_cv_prog_compiler__b=yes
9091 LDFLAGS="$save_LDFLAGS"
9094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9095 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9097 if test x"$lt_cv_prog_compiler__b" = xyes; then
9098 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9100 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9106 if test "$with_gnu_ld" = no; then
9107 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9108 hardcode_libdir_separator=:
9113 hardcode_shlibpath_var=no
9117 hardcode_direct_absolute=yes
9118 export_dynamic_flag_spec='${wl}-E'
9120 # hardcode_minus_L: Not really in the search PATH,
9121 # but as the default location of the library.
9122 hardcode_minus_L=yes
9128 irix5* | irix6* | nonstopux*)
9129 if test "$GCC" = yes; then
9130 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'
9131 # Try to use the -exported_symbol ld option, if it does not
9132 # work, assume that -exports_file does not work either and
9133 # implicitly export all symbols.
9134 # This should be the same for all languages, so no per-tag cache variable.
9135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9136 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9137 if ${lt_cv_irix_exported_symbol+:} false; then :
9138 $as_echo_n "(cached) " >&6
9140 save_LDFLAGS="$LDFLAGS"
9141 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9142 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9143 /* end confdefs.h. */
9144 int foo (void) { return 0; }
9146 if ac_fn_c_try_link "$LINENO"; then :
9147 lt_cv_irix_exported_symbol=yes
9149 lt_cv_irix_exported_symbol=no
9151 rm -f core conftest.err conftest.$ac_objext \
9152 conftest$ac_exeext conftest.$ac_ext
9153 LDFLAGS="$save_LDFLAGS"
9155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9156 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
9157 if test "$lt_cv_irix_exported_symbol" = yes; then
9158 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'
9161 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'
9162 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'
9164 archive_cmds_need_lc='no'
9165 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9166 hardcode_libdir_separator=:
9168 link_all_deplibs=yes
9171 netbsd* | netbsdelf*-gnu)
9172 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9173 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9175 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9177 hardcode_libdir_flag_spec='-R$libdir'
9179 hardcode_shlibpath_var=no
9183 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9185 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9186 hardcode_libdir_separator=:
9187 hardcode_shlibpath_var=no
9194 if test -f /usr/libexec/ld.so; then
9196 hardcode_shlibpath_var=no
9197 hardcode_direct_absolute=yes
9198 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9199 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9200 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9201 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9202 export_dynamic_flag_spec='${wl}-E'
9205 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9206 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9207 hardcode_libdir_flag_spec='-R$libdir'
9210 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9211 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9221 hardcode_libdir_flag_spec='-L$libdir'
9222 hardcode_minus_L=yes
9223 allow_undefined_flag=unsupported
9224 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'
9225 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9229 if test "$GCC" = yes; then
9230 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9231 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'
9233 allow_undefined_flag=' -expect_unresolved \*'
9234 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'
9236 archive_cmds_need_lc='no'
9237 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9238 hardcode_libdir_separator=:
9241 osf4* | osf5*) # as osf3* with the addition of -msym flag
9242 if test "$GCC" = yes; then
9243 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9244 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'
9245 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9247 allow_undefined_flag=' -expect_unresolved \*'
9248 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'
9249 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~
9250 $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'
9252 # Both c and cxx compiler support -rpath directly
9253 hardcode_libdir_flag_spec='-rpath $libdir'
9255 archive_cmds_need_lc='no'
9256 hardcode_libdir_separator=:
9260 no_undefined_flag=' -z defs'
9261 if test "$GCC" = yes; then
9263 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9264 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9265 $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'
9267 case `$CC -V 2>&1` in
9270 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9271 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9272 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9276 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9277 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9278 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9282 hardcode_libdir_flag_spec='-R$libdir'
9283 hardcode_shlibpath_var=no
9285 solaris2.[0-5] | solaris2.[0-5].*) ;;
9287 # The compiler driver will combine and reorder linker options,
9288 # but understands `-z linker_flag'. GCC discards it without `$wl',
9289 # but is careful enough not to reorder.
9290 # Supported since Solaris 2.6 (maybe 2.5.1?)
9291 if test "$GCC" = yes; then
9292 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9294 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9298 link_all_deplibs=yes
9302 if test "x$host_vendor" = xsequent; then
9303 # Use $CC to link under sequent, because it throws in some extra .o
9304 # files that make .init and .fini sections work.
9305 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9307 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9309 hardcode_libdir_flag_spec='-L$libdir'
9311 hardcode_minus_L=yes
9312 hardcode_shlibpath_var=no
9316 case $host_vendor in
9318 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9319 hardcode_direct=yes # is this really true???
9322 ## LD is ld it makes a PLAMLIB
9323 ## CC just makes a GrossModule.
9324 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9325 reload_cmds='$CC -r -o $output$reload_objs'
9329 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9330 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9333 runpath_var='LD_RUN_PATH'
9334 hardcode_shlibpath_var=no
9338 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9339 hardcode_shlibpath_var=no
9340 export_dynamic_flag_spec='-Bexport'
9344 if test -d /usr/nec; then
9345 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9346 hardcode_shlibpath_var=no
9347 runpath_var=LD_RUN_PATH
9348 hardcode_runpath_var=yes
9353 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9354 no_undefined_flag='${wl}-z,text'
9355 archive_cmds_need_lc=no
9356 hardcode_shlibpath_var=no
9357 runpath_var='LD_RUN_PATH'
9359 if test "$GCC" = yes; then
9360 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9361 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9363 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9364 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9368 sysv5* | sco3.2v5* | sco5v6*)
9369 # Note: We can NOT use -z defs as we might desire, because we do not
9370 # link with -lc, and that would cause any symbols used from libc to
9371 # always be unresolved, which means just about no library would
9372 # ever link correctly. If we're not using GNU ld we use -z text
9373 # though, which does catch some bad symbols but isn't as heavy-handed
9375 no_undefined_flag='${wl}-z,text'
9376 allow_undefined_flag='${wl}-z,nodefs'
9377 archive_cmds_need_lc=no
9378 hardcode_shlibpath_var=no
9379 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9380 hardcode_libdir_separator=':'
9381 link_all_deplibs=yes
9382 export_dynamic_flag_spec='${wl}-Bexport'
9383 runpath_var='LD_RUN_PATH'
9385 if test "$GCC" = yes; then
9386 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9387 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9389 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9390 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9395 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9396 hardcode_libdir_flag_spec='-L$libdir'
9397 hardcode_shlibpath_var=no
9405 if test x$host_vendor = xsni; then
9407 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9408 export_dynamic_flag_spec='${wl}-Blargedynsym'
9414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9415 $as_echo "$ld_shlibs" >&6; }
9416 test "$ld_shlibs" = no && can_build_shared=no
9418 with_gnu_ld=$with_gnu_ld
9435 # Do we need to explicitly link libc?
9437 case "x$archive_cmds_need_lc" in
9439 # Assume -lc should be added
9440 archive_cmds_need_lc=yes
9442 if test "$enable_shared" = yes && test "$GCC" = yes; then
9443 case $archive_cmds in
9445 # FIXME: we may have to deal with multi-command sequences.
9448 # Test whether the compiler implicitly links with -lc since on some
9449 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9450 # to ld, don't add -lc before -lgcc.
9451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9452 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9453 if ${lt_cv_archive_cmds_need_lc+:} false; then :
9454 $as_echo_n "(cached) " >&6
9457 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9459 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9460 (eval $ac_compile) 2>&5
9462 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9463 test $ac_status = 0; } 2>conftest.err; then
9466 libobjs=conftest.$ac_objext
9468 wl=$lt_prog_compiler_wl
9469 pic_flag=$lt_prog_compiler_pic
9475 lt_save_allow_undefined_flag=$allow_undefined_flag
9476 allow_undefined_flag=
9477 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9478 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9480 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9481 test $ac_status = 0; }
9483 lt_cv_archive_cmds_need_lc=no
9485 lt_cv_archive_cmds_need_lc=yes
9487 allow_undefined_flag=$lt_save_allow_undefined_flag
9489 cat conftest.err 1>&5
9494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9495 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9496 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9655 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9657 if test "$GCC" = yes; then
9659 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9660 *) lt_awk_arg="/^libraries:/" ;;
9663 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
9664 *) lt_sed_strip_eq="s,=/,/,g" ;;
9666 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
9667 case $lt_search_path_spec in
9669 # if the path contains ";" then we assume it to be the separator
9670 # otherwise default to the standard path separator (i.e. ":") - it is
9671 # assumed that no part of a normal pathname contains ";" but that should
9672 # okay in the real world where ";" in dirpaths is itself problematic.
9673 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
9676 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
9679 # Ok, now we have the path, separated by spaces, we can step through it
9680 # and add multilib dir if necessary.
9681 lt_tmp_lt_search_path_spec=
9682 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9683 for lt_sys_path in $lt_search_path_spec; do
9684 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9685 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9687 test -d "$lt_sys_path" && \
9688 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9691 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
9692 BEGIN {RS=" "; FS="/|\n";} {
9695 for (lt_i = NF; lt_i > 0; lt_i--) {
9696 if ($lt_i != "" && $lt_i != ".") {
9697 if ($lt_i == "..") {
9700 if (lt_count == 0) {
9701 lt_foo="/" $lt_i lt_foo;
9708 if (lt_foo != "") { lt_freq[lt_foo]++; }
9709 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9711 # AWK program above erroneously prepends '/' to C:/dos/paths
9714 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
9715 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
9717 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
9719 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9722 libname_spec='lib$name'
9730 shlibpath_overrides_runpath=unknown
9732 dynamic_linker="$host_os ld.so"
9733 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9734 need_lib_prefix=unknown
9735 hardcode_into_libs=no
9737 # when you set need_version to no, make sure it does not cause -set_version
9738 # flags to be left without arguments
9739 need_version=unknown
9743 version_type=linux # correct to gnu/linux during the next big refactor
9744 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9745 shlibpath_var=LIBPATH
9747 # AIX 3 has no versioning support, so we append a major version to the name.
9748 soname_spec='${libname}${release}${shared_ext}$major'
9752 version_type=linux # correct to gnu/linux during the next big refactor
9755 hardcode_into_libs=yes
9756 if test "$host_cpu" = ia64; then
9757 # AIX 5 supports IA64
9758 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9759 shlibpath_var=LD_LIBRARY_PATH
9761 # With GCC up to 2.95.x, collect2 would create an import file
9762 # for dependence libraries. The import file would start with
9763 # the line `#! .'. This would cause the generated library to
9764 # depend on `.', always an invalid library. This was fixed in
9765 # development snapshots of GCC prior to 3.0.
9767 aix4 | aix4.[01] | aix4.[01].*)
9768 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9770 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9777 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9778 # soname into executable. Probably we can add versioning support to
9779 # collect2, so additional links can be useful in future.
9780 if test "$aix_use_runtimelinking" = yes; then
9781 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9782 # instead of lib<name>.a to let people know that these are not
9783 # typical AIX shared libraries.
9784 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9786 # We preserve .a as extension for shared libraries through AIX4.2
9787 # and later when we are not doing run time linking.
9788 library_names_spec='${libname}${release}.a $libname.a'
9789 soname_spec='${libname}${release}${shared_ext}$major'
9791 shlibpath_var=LIBPATH
9798 # Since July 2007 AmigaOS4 officially supports .so libraries.
9799 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9800 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9803 library_names_spec='$libname.ixlibrary $libname.a'
9804 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9805 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'
9811 library_names_spec='${libname}${shared_ext}'
9812 dynamic_linker="$host_os ld.so"
9813 shlibpath_var=LIBRARY_PATH
9817 version_type=linux # correct to gnu/linux during the next big refactor
9819 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9820 soname_spec='${libname}${release}${shared_ext}$major'
9821 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9822 shlibpath_var=LD_LIBRARY_PATH
9823 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9824 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9825 # the default ld.so.conf also contains /usr/contrib/lib and
9826 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9827 # libtool to hard-code these into programs
9830 cygwin* | mingw* | pw32* | cegcc*)
9831 version_type=windows
9836 case $GCC,$cc_basename in
9839 library_names_spec='$libname.dll.a'
9840 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9841 postinstall_cmds='base_file=`basename \${file}`~
9842 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9843 dldir=$destdir/`dirname \$dlpath`~
9844 test -d \$dldir || mkdir -p \$dldir~
9845 $install_prog $dir/$dlname \$dldir/$dlname~
9846 chmod a+x \$dldir/$dlname~
9847 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9848 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9850 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9851 dlpath=$dir/\$dldll~
9853 shlibpath_overrides_runpath=yes
9857 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9858 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9860 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
9863 # MinGW DLLs use traditional 'lib' prefix
9864 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9867 # pw32 DLLs use 'pw' prefix rather than 'lib'
9868 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9871 dynamic_linker='Win32 ld.exe'
9876 libname_spec='$name'
9877 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9878 library_names_spec='${libname}.dll.lib'
9882 sys_lib_search_path_spec=
9888 # Let DOS variable expansion print the short 8.3 style file name.
9889 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
9890 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
9893 # Convert to MSYS style.
9894 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
9897 # Convert to unix form, then to dos form, then back to unix form
9898 # but this time dos style (no spaces!) so that the unix form looks
9899 # like /cygdrive/c/PROGRA~1:/cygdr...
9900 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
9901 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
9902 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9905 sys_lib_search_path_spec="$LIB"
9906 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
9907 # It is most probably a Windows format PATH.
9908 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9910 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9912 # FIXME: find the short name or the path components, as spaces are
9913 # common. (e.g. "Program Files" -> "PROGRA~1")
9917 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9918 postinstall_cmds='base_file=`basename \${file}`~
9919 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9920 dldir=$destdir/`dirname \$dlpath`~
9921 test -d \$dldir || mkdir -p \$dldir~
9922 $install_prog $dir/$dlname \$dldir/$dlname'
9923 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9924 dlpath=$dir/\$dldll~
9926 shlibpath_overrides_runpath=yes
9927 dynamic_linker='Win32 link.exe'
9931 # Assume MSVC wrapper
9932 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9933 dynamic_linker='Win32 ld.exe'
9936 # FIXME: first we should search . and the directory the executable is in
9940 darwin* | rhapsody*)
9941 dynamic_linker="$host_os dyld"
9945 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9946 soname_spec='${libname}${release}${major}$shared_ext'
9947 shlibpath_overrides_runpath=yes
9948 shlibpath_var=DYLD_LIBRARY_PATH
9949 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9951 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9952 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9956 version_type=linux # correct to gnu/linux during the next big refactor
9959 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9960 soname_spec='${libname}${release}${shared_ext}$major'
9961 shlibpath_var=LD_LIBRARY_PATH
9964 freebsd* | dragonfly*)
9965 # DragonFly does not have aout. When/if they implement a new
9966 # versioning mechanism, adjust this.
9967 if test -x /usr/bin/objformat; then
9968 objformat=`/usr/bin/objformat`
9971 freebsd[23].*) objformat=aout ;;
9975 version_type=freebsd-$objformat
9976 case $version_type in
9978 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9983 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9987 shlibpath_var=LD_LIBRARY_PATH
9990 shlibpath_overrides_runpath=yes
9992 freebsd3.[01]* | freebsdelf3.[01]*)
9993 shlibpath_overrides_runpath=yes
9994 hardcode_into_libs=yes
9996 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9997 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9998 shlibpath_overrides_runpath=no
9999 hardcode_into_libs=yes
10001 *) # from 4.6 on, and DragonFly
10002 shlibpath_overrides_runpath=yes
10003 hardcode_into_libs=yes
10009 version_type=linux # correct to gnu/linux during the next big refactor
10012 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10013 soname_spec='${libname}${release}${shared_ext}$major'
10014 shlibpath_var=LD_LIBRARY_PATH
10015 shlibpath_overrides_runpath=no
10016 hardcode_into_libs=yes
10020 version_type=linux # correct to gnu/linux during the next big refactor
10023 dynamic_linker="$host_os runtime_loader"
10024 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10025 soname_spec='${libname}${release}${shared_ext}$major'
10026 shlibpath_var=LIBRARY_PATH
10027 shlibpath_overrides_runpath=yes
10028 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10029 hardcode_into_libs=yes
10032 hpux9* | hpux10* | hpux11*)
10033 # Give a soname corresponding to the major version so that dld.sl refuses to
10034 # link against other versions.
10041 hardcode_into_libs=yes
10042 dynamic_linker="$host_os dld.so"
10043 shlibpath_var=LD_LIBRARY_PATH
10044 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10045 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10046 soname_spec='${libname}${release}${shared_ext}$major'
10047 if test "X$HPUX_IA64_MODE" = X32; then
10048 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10050 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10052 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10056 hardcode_into_libs=yes
10057 dynamic_linker="$host_os dld.sl"
10058 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10059 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10060 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10061 soname_spec='${libname}${release}${shared_ext}$major'
10062 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10063 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10067 dynamic_linker="$host_os dld.sl"
10068 shlibpath_var=SHLIB_PATH
10069 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10070 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10071 soname_spec='${libname}${release}${shared_ext}$major'
10074 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10075 postinstall_cmds='chmod 555 $lib'
10076 # or fails outright, so override atomically:
10077 install_override_mode=555
10081 version_type=linux # correct to gnu/linux during the next big refactor
10084 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10085 soname_spec='${libname}${release}${shared_ext}$major'
10086 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10087 shlibpath_var=LD_LIBRARY_PATH
10088 shlibpath_overrides_runpath=no
10089 hardcode_into_libs=yes
10092 irix5* | irix6* | nonstopux*)
10094 nonstopux*) version_type=nonstopux ;;
10096 if test "$lt_cv_prog_gnu_ld" = yes; then
10097 version_type=linux # correct to gnu/linux during the next big refactor
10104 soname_spec='${libname}${release}${shared_ext}$major'
10105 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10107 irix5* | nonstopux*)
10108 libsuff= shlibsuff=
10111 case $LD in # libtool.m4 will add one of these switches to LD
10112 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10113 libsuff= shlibsuff= libmagic=32-bit;;
10114 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10115 libsuff=32 shlibsuff=N32 libmagic=N32;;
10116 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10117 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10118 *) libsuff= shlibsuff= libmagic=never-match;;
10122 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10123 shlibpath_overrides_runpath=no
10124 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10125 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10126 hardcode_into_libs=yes
10129 # No shared lib support for Linux oldld, aout, or coff.
10130 linux*oldld* | linux*aout* | linux*coff*)
10134 # This must be glibc/ELF.
10135 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10136 version_type=linux # correct to gnu/linux during the next big refactor
10139 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10140 soname_spec='${libname}${release}${shared_ext}$major'
10141 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10142 shlibpath_var=LD_LIBRARY_PATH
10143 shlibpath_overrides_runpath=no
10145 # Some binutils ld are patched to set DT_RUNPATH
10146 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10147 $as_echo_n "(cached) " >&6
10149 lt_cv_shlibpath_overrides_runpath=no
10150 save_LDFLAGS=$LDFLAGS
10151 save_libdir=$libdir
10152 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10153 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10154 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10155 /* end confdefs.h. */
10165 if ac_fn_c_try_link "$LINENO"; then :
10166 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10167 lt_cv_shlibpath_overrides_runpath=yes
10170 rm -f core conftest.err conftest.$ac_objext \
10171 conftest$ac_exeext conftest.$ac_ext
10172 LDFLAGS=$save_LDFLAGS
10173 libdir=$save_libdir
10177 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10179 # This implies no fast_install, which is unacceptable.
10180 # Some rework will be needed to allow for fast_install
10181 # before this can be enabled.
10182 hardcode_into_libs=yes
10184 # Append ld.so.conf contents to the search path
10185 if test -f /etc/ld.so.conf; then
10186 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' ' '`
10187 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10190 # We used to test for /lib/ld.so.1 and disable shared libraries on
10191 # powerpc, because MkLinux only supported shared libraries with the
10192 # GNU dynamic linker. Since this was broken with cross compilers,
10193 # most powerpc-linux boxes support dynamic linking these days and
10194 # people can always --disable-shared, the test was removed, and we
10195 # assume the GNU/Linux dynamic linker is in use.
10196 dynamic_linker='GNU/Linux ld.so'
10203 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10204 soname_spec='${libname}${release}${shared_ext}$major'
10205 shlibpath_var=LD_LIBRARY_PATH
10206 shlibpath_overrides_runpath=no
10207 hardcode_into_libs=yes
10208 dynamic_linker='NetBSD ld.elf_so'
10215 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10216 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10217 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10218 dynamic_linker='NetBSD (a.out) ld.so'
10220 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10221 soname_spec='${libname}${release}${shared_ext}$major'
10222 dynamic_linker='NetBSD ld.elf_so'
10224 shlibpath_var=LD_LIBRARY_PATH
10225 shlibpath_overrides_runpath=yes
10226 hardcode_into_libs=yes
10230 version_type=linux # correct to gnu/linux during the next big refactor
10231 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10232 shlibpath_var=LD_LIBRARY_PATH
10233 shlibpath_overrides_runpath=yes
10240 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10241 soname_spec='${libname}${release}${shared_ext}$major'
10242 shlibpath_var=LD_LIBRARY_PATH
10243 shlibpath_overrides_runpath=no
10244 hardcode_into_libs=yes
10245 dynamic_linker='ldqnx.so'
10250 sys_lib_dlsearch_path_spec="/usr/lib"
10252 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10254 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10255 *) need_version=no ;;
10257 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10258 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10259 shlibpath_var=LD_LIBRARY_PATH
10260 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10262 openbsd2.[89] | openbsd2.[89].*)
10263 shlibpath_overrides_runpath=no
10266 shlibpath_overrides_runpath=yes
10270 shlibpath_overrides_runpath=yes
10275 libname_spec='$name'
10278 library_names_spec='$libname${shared_ext} $libname.a'
10279 dynamic_linker='OS/2 ld.exe'
10280 shlibpath_var=LIBPATH
10283 osf3* | osf4* | osf5*)
10287 soname_spec='${libname}${release}${shared_ext}$major'
10288 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10289 shlibpath_var=LD_LIBRARY_PATH
10290 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10291 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10299 version_type=linux # correct to gnu/linux during the next big refactor
10302 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10303 soname_spec='${libname}${release}${shared_ext}$major'
10304 shlibpath_var=LD_LIBRARY_PATH
10305 shlibpath_overrides_runpath=yes
10306 hardcode_into_libs=yes
10307 # ldd complains unless libraries are executable
10308 postinstall_cmds='chmod +x $lib'
10313 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10314 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10315 shlibpath_var=LD_LIBRARY_PATH
10316 shlibpath_overrides_runpath=yes
10317 if test "$with_gnu_ld" = yes; then
10324 version_type=linux # correct to gnu/linux during the next big refactor
10325 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10326 soname_spec='${libname}${release}${shared_ext}$major'
10327 shlibpath_var=LD_LIBRARY_PATH
10328 case $host_vendor in
10330 shlibpath_overrides_runpath=no
10332 runpath_var=LD_RUN_PATH
10340 shlibpath_overrides_runpath=no
10341 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10347 if test -d /usr/nec ;then
10348 version_type=linux # correct to gnu/linux during the next big refactor
10349 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10350 soname_spec='$libname${shared_ext}.$major'
10351 shlibpath_var=LD_LIBRARY_PATH
10355 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10356 version_type=freebsd-elf
10359 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10360 soname_spec='${libname}${release}${shared_ext}$major'
10361 shlibpath_var=LD_LIBRARY_PATH
10362 shlibpath_overrides_runpath=yes
10363 hardcode_into_libs=yes
10364 if test "$with_gnu_ld" = yes; then
10365 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10367 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10370 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10374 sys_lib_dlsearch_path_spec='/usr/lib'
10378 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10379 version_type=linux # correct to gnu/linux during the next big refactor
10382 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10383 shlibpath_var=LD_LIBRARY_PATH
10384 shlibpath_overrides_runpath=no
10385 hardcode_into_libs=yes
10389 version_type=linux # correct to gnu/linux during the next big refactor
10390 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10391 soname_spec='${libname}${release}${shared_ext}$major'
10392 shlibpath_var=LD_LIBRARY_PATH
10399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10400 $as_echo "$dynamic_linker" >&6; }
10401 test "$dynamic_linker" = no && can_build_shared=no
10403 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10404 if test "$GCC" = yes; then
10405 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10408 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10409 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10411 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10412 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10507 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10509 if test -n "$hardcode_libdir_flag_spec" ||
10510 test -n "$runpath_var" ||
10511 test "X$hardcode_automatic" = "Xyes" ; then
10513 # We can hardcode non-existent directories.
10514 if test "$hardcode_direct" != no &&
10515 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10516 # have to relink, otherwise we might link with an installed library
10517 # when we should be linking with a yet-to-be-installed one
10518 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10519 test "$hardcode_minus_L" != no; then
10520 # Linking always hardcodes the temporary library directory.
10521 hardcode_action=relink
10523 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10524 hardcode_action=immediate
10527 # We cannot hardcode anything, or else we can only hardcode existing
10529 hardcode_action=unsupported
10531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10532 $as_echo "$hardcode_action" >&6; }
10534 if test "$hardcode_action" = relink ||
10535 test "$inherit_rpath" = yes; then
10536 # Fast installation is not supported
10537 enable_fast_install=no
10538 elif test "$shlibpath_overrides_runpath" = yes ||
10539 test "$enable_shared" = no; then
10540 # Fast installation is not necessary
10541 enable_fast_install=needless
10549 if test "x$enable_dlopen" != xyes; then
10550 enable_dlopen=unknown
10551 enable_dlopen_self=unknown
10552 enable_dlopen_self_static=unknown
10559 lt_cv_dlopen="load_add_on"
10561 lt_cv_dlopen_self=yes
10564 mingw* | pw32* | cegcc*)
10565 lt_cv_dlopen="LoadLibrary"
10570 lt_cv_dlopen="dlopen"
10575 # if libdl is installed we need to link against it
10576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10577 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10578 if ${ac_cv_lib_dl_dlopen+:} false; then :
10579 $as_echo_n "(cached) " >&6
10581 ac_check_lib_save_LIBS=$LIBS
10583 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10584 /* end confdefs.h. */
10586 /* Override any GCC internal prototype to avoid an error.
10587 Use char because int might match the return type of a GCC
10588 builtin and then its argument prototype would still apply. */
10601 if ac_fn_c_try_link "$LINENO"; then :
10602 ac_cv_lib_dl_dlopen=yes
10604 ac_cv_lib_dl_dlopen=no
10606 rm -f core conftest.err conftest.$ac_objext \
10607 conftest$ac_exeext conftest.$ac_ext
10608 LIBS=$ac_check_lib_save_LIBS
10610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10611 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10612 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10613 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10616 lt_cv_dlopen="dyld"
10618 lt_cv_dlopen_self=yes
10625 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10626 if test "x$ac_cv_func_shl_load" = xyes; then :
10627 lt_cv_dlopen="shl_load"
10629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10630 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10631 if ${ac_cv_lib_dld_shl_load+:} false; then :
10632 $as_echo_n "(cached) " >&6
10634 ac_check_lib_save_LIBS=$LIBS
10636 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10637 /* end confdefs.h. */
10639 /* Override any GCC internal prototype to avoid an error.
10640 Use char because int might match the return type of a GCC
10641 builtin and then its argument prototype would still apply. */
10649 return shl_load ();
10654 if ac_fn_c_try_link "$LINENO"; then :
10655 ac_cv_lib_dld_shl_load=yes
10657 ac_cv_lib_dld_shl_load=no
10659 rm -f core conftest.err conftest.$ac_objext \
10660 conftest$ac_exeext conftest.$ac_ext
10661 LIBS=$ac_check_lib_save_LIBS
10663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10664 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10665 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
10666 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10668 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10669 if test "x$ac_cv_func_dlopen" = xyes; then :
10670 lt_cv_dlopen="dlopen"
10672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10673 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10674 if ${ac_cv_lib_dl_dlopen+:} false; then :
10675 $as_echo_n "(cached) " >&6
10677 ac_check_lib_save_LIBS=$LIBS
10679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10680 /* end confdefs.h. */
10682 /* Override any GCC internal prototype to avoid an error.
10683 Use char because int might match the return type of a GCC
10684 builtin and then its argument prototype would still apply. */
10697 if ac_fn_c_try_link "$LINENO"; then :
10698 ac_cv_lib_dl_dlopen=yes
10700 ac_cv_lib_dl_dlopen=no
10702 rm -f core conftest.err conftest.$ac_objext \
10703 conftest$ac_exeext conftest.$ac_ext
10704 LIBS=$ac_check_lib_save_LIBS
10706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10707 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10708 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10709 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10712 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10713 if ${ac_cv_lib_svld_dlopen+:} false; then :
10714 $as_echo_n "(cached) " >&6
10716 ac_check_lib_save_LIBS=$LIBS
10717 LIBS="-lsvld $LIBS"
10718 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10719 /* end confdefs.h. */
10721 /* Override any GCC internal prototype to avoid an error.
10722 Use char because int might match the return type of a GCC
10723 builtin and then its argument prototype would still apply. */
10736 if ac_fn_c_try_link "$LINENO"; then :
10737 ac_cv_lib_svld_dlopen=yes
10739 ac_cv_lib_svld_dlopen=no
10741 rm -f core conftest.err conftest.$ac_objext \
10742 conftest$ac_exeext conftest.$ac_ext
10743 LIBS=$ac_check_lib_save_LIBS
10745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10746 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10747 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
10748 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10751 $as_echo_n "checking for dld_link in -ldld... " >&6; }
10752 if ${ac_cv_lib_dld_dld_link+:} false; then :
10753 $as_echo_n "(cached) " >&6
10755 ac_check_lib_save_LIBS=$LIBS
10757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10758 /* end confdefs.h. */
10760 /* Override any GCC internal prototype to avoid an error.
10761 Use char because int might match the return type of a GCC
10762 builtin and then its argument prototype would still apply. */
10770 return dld_link ();
10775 if ac_fn_c_try_link "$LINENO"; then :
10776 ac_cv_lib_dld_dld_link=yes
10778 ac_cv_lib_dld_dld_link=no
10780 rm -f core conftest.err conftest.$ac_objext \
10781 conftest$ac_exeext conftest.$ac_ext
10782 LIBS=$ac_check_lib_save_LIBS
10784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
10785 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10786 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
10787 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10808 if test "x$lt_cv_dlopen" != xno; then
10814 case $lt_cv_dlopen in
10816 save_CPPFLAGS="$CPPFLAGS"
10817 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10819 save_LDFLAGS="$LDFLAGS"
10820 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10823 LIBS="$lt_cv_dlopen_libs $LIBS"
10825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
10826 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
10827 if ${lt_cv_dlopen_self+:} false; then :
10828 $as_echo_n "(cached) " >&6
10830 if test "$cross_compiling" = yes; then :
10831 lt_cv_dlopen_self=cross
10833 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10834 lt_status=$lt_dlunknown
10835 cat > conftest.$ac_ext <<_LT_EOF
10836 #line $LINENO "configure"
10837 #include "confdefs.h"
10846 # define LT_DLGLOBAL RTLD_GLOBAL
10849 # define LT_DLGLOBAL DL_GLOBAL
10851 # define LT_DLGLOBAL 0
10855 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10856 find out it does not work in some platform. */
10857 #ifndef LT_DLLAZY_OR_NOW
10859 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10862 # define LT_DLLAZY_OR_NOW DL_LAZY
10865 # define LT_DLLAZY_OR_NOW RTLD_NOW
10868 # define LT_DLLAZY_OR_NOW DL_NOW
10870 # define LT_DLLAZY_OR_NOW 0
10877 /* When -fvisbility=hidden is used, assume the code has been annotated
10878 correspondingly for the symbols needed. */
10879 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
10880 int fnord () __attribute__((visibility("default")));
10883 int fnord () { return 42; }
10886 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10887 int status = $lt_dlunknown;
10891 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10894 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10895 else puts (dlerror ());
10897 /* dlclose (self); */
10905 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10906 (eval $ac_link) 2>&5
10908 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10909 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10910 (./conftest; exit; ) >&5 2>/dev/null
10912 case x$lt_status in
10913 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10914 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10915 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10918 # compilation failed
10919 lt_cv_dlopen_self=no
10926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
10927 $as_echo "$lt_cv_dlopen_self" >&6; }
10929 if test "x$lt_cv_dlopen_self" = xyes; then
10930 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
10932 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
10933 if ${lt_cv_dlopen_self_static+:} false; then :
10934 $as_echo_n "(cached) " >&6
10936 if test "$cross_compiling" = yes; then :
10937 lt_cv_dlopen_self_static=cross
10939 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10940 lt_status=$lt_dlunknown
10941 cat > conftest.$ac_ext <<_LT_EOF
10942 #line $LINENO "configure"
10943 #include "confdefs.h"
10952 # define LT_DLGLOBAL RTLD_GLOBAL
10955 # define LT_DLGLOBAL DL_GLOBAL
10957 # define LT_DLGLOBAL 0
10961 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10962 find out it does not work in some platform. */
10963 #ifndef LT_DLLAZY_OR_NOW
10965 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10968 # define LT_DLLAZY_OR_NOW DL_LAZY
10971 # define LT_DLLAZY_OR_NOW RTLD_NOW
10974 # define LT_DLLAZY_OR_NOW DL_NOW
10976 # define LT_DLLAZY_OR_NOW 0
10983 /* When -fvisbility=hidden is used, assume the code has been annotated
10984 correspondingly for the symbols needed. */
10985 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
10986 int fnord () __attribute__((visibility("default")));
10989 int fnord () { return 42; }
10992 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10993 int status = $lt_dlunknown;
10997 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11000 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11001 else puts (dlerror ());
11003 /* dlclose (self); */
11011 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11012 (eval $ac_link) 2>&5
11014 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11015 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11016 (./conftest; exit; ) >&5 2>/dev/null
11018 case x$lt_status in
11019 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11020 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11021 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11024 # compilation failed
11025 lt_cv_dlopen_self_static=no
11032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11033 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11036 CPPFLAGS="$save_CPPFLAGS"
11037 LDFLAGS="$save_LDFLAGS"
11042 case $lt_cv_dlopen_self in
11043 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11044 *) enable_dlopen_self=unknown ;;
11047 case $lt_cv_dlopen_self_static in
11048 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11049 *) enable_dlopen_self_static=unknown ;;
11071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11072 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11073 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11074 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11075 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11077 $as_echo "yes" >&6; }
11079 # FIXME - insert some real tests, host_os isn't really good enough
11082 if test -n "$STRIP" ; then
11083 striplib="$STRIP -x"
11084 old_striplib="$STRIP -S"
11085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11086 $as_echo "yes" >&6; }
11088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11089 $as_echo "no" >&6; }
11093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11094 $as_echo "no" >&6; }
11110 # Report which library types will actually be built
11111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11112 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11114 $as_echo "$can_build_shared" >&6; }
11116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11117 $as_echo_n "checking whether to build shared libraries... " >&6; }
11118 test "$can_build_shared" = "no" && enable_shared=no
11120 # On AIX, shared libraries and static libraries use the same namespace, and
11121 # are all built from PIC.
11124 test "$enable_shared" = yes && enable_static=no
11125 if test -n "$RANLIB"; then
11126 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11127 postinstall_cmds='$RANLIB $lib'
11132 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11133 test "$enable_shared" = yes && enable_static=no
11137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11138 $as_echo "$enable_shared" >&6; }
11140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11141 $as_echo_n "checking whether to build static libraries... " >&6; }
11142 # Make sure either enable_shared or enable_static is yes.
11143 test "$enable_shared" = yes || enable_static=yes
11144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11145 $as_echo "$enable_static" >&6; }
11152 ac_cpp='$CPP $CPPFLAGS'
11153 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11154 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11155 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11173 ac_config_commands="$ac_config_commands libtool"
11178 # Only expand once:
11182 ac_cpp='$CPP $CPPFLAGS'
11183 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11184 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11185 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11186 if test -n "$ac_tool_prefix"; then
11187 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
11188 set dummy ${ac_tool_prefix}gcc; ac_word=$2
11189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11190 $as_echo_n "checking for $ac_word... " >&6; }
11191 if ${ac_cv_prog_CC+:} false; then :
11192 $as_echo_n "(cached) " >&6
11194 if test -n "$CC"; then
11195 ac_cv_prog_CC="$CC" # Let the user override the test.
11197 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11198 for as_dir in $PATH
11201 test -z "$as_dir" && as_dir=.
11202 for ac_exec_ext in '' $ac_executable_extensions; do
11203 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11204 ac_cv_prog_CC="${ac_tool_prefix}gcc"
11205 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11215 if test -n "$CC"; then
11216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11217 $as_echo "$CC" >&6; }
11219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11220 $as_echo "no" >&6; }
11225 if test -z "$ac_cv_prog_CC"; then
11227 # Extract the first word of "gcc", so it can be a program name with args.
11228 set dummy gcc; ac_word=$2
11229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11230 $as_echo_n "checking for $ac_word... " >&6; }
11231 if ${ac_cv_prog_ac_ct_CC+:} false; then :
11232 $as_echo_n "(cached) " >&6
11234 if test -n "$ac_ct_CC"; then
11235 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11237 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11238 for as_dir in $PATH
11241 test -z "$as_dir" && as_dir=.
11242 for ac_exec_ext in '' $ac_executable_extensions; do
11243 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11244 ac_cv_prog_ac_ct_CC="gcc"
11245 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11254 ac_ct_CC=$ac_cv_prog_ac_ct_CC
11255 if test -n "$ac_ct_CC"; then
11256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
11257 $as_echo "$ac_ct_CC" >&6; }
11259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11260 $as_echo "no" >&6; }
11263 if test "x$ac_ct_CC" = x; then
11266 case $cross_compiling:$ac_tool_warned in
11268 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11269 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11270 ac_tool_warned=yes ;;
11275 CC="$ac_cv_prog_CC"
11278 if test -z "$CC"; then
11279 if test -n "$ac_tool_prefix"; then
11280 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
11281 set dummy ${ac_tool_prefix}cc; ac_word=$2
11282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11283 $as_echo_n "checking for $ac_word... " >&6; }
11284 if ${ac_cv_prog_CC+:} false; then :
11285 $as_echo_n "(cached) " >&6
11287 if test -n "$CC"; then
11288 ac_cv_prog_CC="$CC" # Let the user override the test.
11290 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11291 for as_dir in $PATH
11294 test -z "$as_dir" && as_dir=.
11295 for ac_exec_ext in '' $ac_executable_extensions; do
11296 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11297 ac_cv_prog_CC="${ac_tool_prefix}cc"
11298 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11308 if test -n "$CC"; then
11309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11310 $as_echo "$CC" >&6; }
11312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11313 $as_echo "no" >&6; }
11319 if test -z "$CC"; then
11320 # Extract the first word of "cc", so it can be a program name with args.
11321 set dummy cc; ac_word=$2
11322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11323 $as_echo_n "checking for $ac_word... " >&6; }
11324 if ${ac_cv_prog_CC+:} false; then :
11325 $as_echo_n "(cached) " >&6
11327 if test -n "$CC"; then
11328 ac_cv_prog_CC="$CC" # Let the user override the test.
11330 ac_prog_rejected=no
11331 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11332 for as_dir in $PATH
11335 test -z "$as_dir" && as_dir=.
11336 for ac_exec_ext in '' $ac_executable_extensions; do
11337 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11338 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
11339 ac_prog_rejected=yes
11343 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11350 if test $ac_prog_rejected = yes; then
11351 # We found a bogon in the path, so make sure we never use it.
11352 set dummy $ac_cv_prog_CC
11354 if test $# != 0; then
11355 # We chose a different compiler from the bogus one.
11356 # However, it has the same basename, so the bogon will be chosen
11357 # first if we set CC to just the basename; use the full file name.
11359 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
11365 if test -n "$CC"; then
11366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11367 $as_echo "$CC" >&6; }
11369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11370 $as_echo "no" >&6; }
11375 if test -z "$CC"; then
11376 if test -n "$ac_tool_prefix"; then
11377 for ac_prog in cl.exe
11379 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11380 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11382 $as_echo_n "checking for $ac_word... " >&6; }
11383 if ${ac_cv_prog_CC+:} false; then :
11384 $as_echo_n "(cached) " >&6
11386 if test -n "$CC"; then
11387 ac_cv_prog_CC="$CC" # Let the user override the test.
11389 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11390 for as_dir in $PATH
11393 test -z "$as_dir" && as_dir=.
11394 for ac_exec_ext in '' $ac_executable_extensions; do
11395 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11396 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
11397 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11407 if test -n "$CC"; then
11408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11409 $as_echo "$CC" >&6; }
11411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11412 $as_echo "no" >&6; }
11416 test -n "$CC" && break
11419 if test -z "$CC"; then
11421 for ac_prog in cl.exe
11423 # Extract the first word of "$ac_prog", so it can be a program name with args.
11424 set dummy $ac_prog; ac_word=$2
11425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11426 $as_echo_n "checking for $ac_word... " >&6; }
11427 if ${ac_cv_prog_ac_ct_CC+:} false; then :
11428 $as_echo_n "(cached) " >&6
11430 if test -n "$ac_ct_CC"; then
11431 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11433 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11434 for as_dir in $PATH
11437 test -z "$as_dir" && as_dir=.
11438 for ac_exec_ext in '' $ac_executable_extensions; do
11439 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11440 ac_cv_prog_ac_ct_CC="$ac_prog"
11441 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11450 ac_ct_CC=$ac_cv_prog_ac_ct_CC
11451 if test -n "$ac_ct_CC"; then
11452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
11453 $as_echo "$ac_ct_CC" >&6; }
11455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11456 $as_echo "no" >&6; }
11460 test -n "$ac_ct_CC" && break
11463 if test "x$ac_ct_CC" = x; then
11466 case $cross_compiling:$ac_tool_warned in
11468 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11469 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11470 ac_tool_warned=yes ;;
11479 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11480 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11481 as_fn_error $? "no acceptable C compiler found in \$PATH
11482 See \`config.log' for more details" "$LINENO" 5; }
11484 # Provide some information about the compiler.
11485 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
11488 for ac_option in --version -v -V -qversion; do
11489 { { ac_try="$ac_compiler $ac_option >&5"
11490 case "(($ac_try" in
11491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11492 *) ac_try_echo=$ac_try;;
11494 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11495 $as_echo "$ac_try_echo"; } >&5
11496 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
11498 if test -s conftest.err; then
11500 ... rest of stderr output deleted ...
11501 10q' conftest.err >conftest.er1
11502 cat conftest.er1 >&5
11504 rm -f conftest.er1 conftest.err
11505 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11506 test $ac_status = 0; }
11509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
11510 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
11511 if ${ac_cv_c_compiler_gnu+:} false; then :
11512 $as_echo_n "(cached) " >&6
11514 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11515 /* end confdefs.h. */
11528 if ac_fn_c_try_compile "$LINENO"; then :
11529 ac_compiler_gnu=yes
11533 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11534 ac_cv_c_compiler_gnu=$ac_compiler_gnu
11537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
11538 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
11539 if test $ac_compiler_gnu = yes; then
11544 ac_test_CFLAGS=${CFLAGS+set}
11545 ac_save_CFLAGS=$CFLAGS
11546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
11547 $as_echo_n "checking whether $CC accepts -g... " >&6; }
11548 if ${ac_cv_prog_cc_g+:} false; then :
11549 $as_echo_n "(cached) " >&6
11551 ac_save_c_werror_flag=$ac_c_werror_flag
11552 ac_c_werror_flag=yes
11555 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11556 /* end confdefs.h. */
11566 if ac_fn_c_try_compile "$LINENO"; then :
11567 ac_cv_prog_cc_g=yes
11570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11571 /* end confdefs.h. */
11581 if ac_fn_c_try_compile "$LINENO"; then :
11584 ac_c_werror_flag=$ac_save_c_werror_flag
11586 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11587 /* end confdefs.h. */
11597 if ac_fn_c_try_compile "$LINENO"; then :
11598 ac_cv_prog_cc_g=yes
11600 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11602 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11604 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11605 ac_c_werror_flag=$ac_save_c_werror_flag
11607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
11608 $as_echo "$ac_cv_prog_cc_g" >&6; }
11609 if test "$ac_test_CFLAGS" = set; then
11610 CFLAGS=$ac_save_CFLAGS
11611 elif test $ac_cv_prog_cc_g = yes; then
11612 if test "$GCC" = yes; then
11618 if test "$GCC" = yes; then
11624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
11625 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
11626 if ${ac_cv_prog_cc_c89+:} false; then :
11627 $as_echo_n "(cached) " >&6
11629 ac_cv_prog_cc_c89=no
11631 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11632 /* end confdefs.h. */
11633 #include <stdarg.h>
11635 #include <sys/types.h>
11636 #include <sys/stat.h>
11637 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
11638 struct buf { int x; };
11639 FILE * (*rcsopen) (struct buf *, struct stat *, int);
11640 static char *e (p, i)
11646 static char *f (char * (*g) (char **, int), char **p, ...)
11651 s = g (p, va_arg (v,int));
11656 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
11657 function prototypes and stuff, but not '\xHH' hex character constants.
11658 These don't provoke an error unfortunately, instead are silently treated
11659 as 'x'. The following induces an error, until -std is added to get
11660 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
11661 array size at least. It's necessary to write '\x00'==0 to get something
11662 that's true only with -std. */
11663 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
11665 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
11666 inside strings and character constants. */
11668 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
11670 int test (int i, double x);
11671 struct s1 {int (*f) (int a);};
11672 struct s2 {int (*f) (double a);};
11673 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
11679 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
11684 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
11685 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
11687 CC="$ac_save_CC $ac_arg"
11688 if ac_fn_c_try_compile "$LINENO"; then :
11689 ac_cv_prog_cc_c89=$ac_arg
11691 rm -f core conftest.err conftest.$ac_objext
11692 test "x$ac_cv_prog_cc_c89" != "xno" && break
11694 rm -f conftest.$ac_ext
11699 case "x$ac_cv_prog_cc_c89" in
11701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
11702 $as_echo "none needed" >&6; } ;;
11704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
11705 $as_echo "unsupported" >&6; } ;;
11707 CC="$CC $ac_cv_prog_cc_c89"
11708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
11709 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
11711 if test "x$ac_cv_prog_cc_c89" != xno; then :
11716 ac_cpp='$CPP $CPPFLAGS'
11717 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11718 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11719 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11721 depcc="$CC" am_compiler_list=
11723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
11724 $as_echo_n "checking dependency style of $depcc... " >&6; }
11725 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
11726 $as_echo_n "(cached) " >&6
11728 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
11729 # We make a subdir and do the tests there. Otherwise we can end up
11730 # making bogus files that we don't know about and never remove. For
11731 # instance it was reported that on HP-UX the gcc test will end up
11732 # making a dummy file named `D' -- because `-MD' means `put the output
11735 # Copy depcomp to subdir because otherwise we won't find it if we're
11736 # using a relative directory.
11737 cp "$am_depcomp" conftest.dir
11739 # We will build objects and dependencies in a subdirectory because
11740 # it helps to detect inapplicable dependency modes. For instance
11741 # both Tru64's cc and ICC support -MD to output dependencies as a
11742 # side effect of compilation, but ICC will put the dependencies in
11743 # the current directory while Tru64 will put them in the object
11747 am_cv_CC_dependencies_compiler_type=none
11748 if test "$am_compiler_list" = ""; then
11749 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
11751 am__universal=false
11752 case " $depcc " in #(
11753 *\ -arch\ *\ -arch\ *) am__universal=true ;;
11756 for depmode in $am_compiler_list; do
11757 # Setup a source with many dependencies, because some compilers
11758 # like to wrap large dependency lists on column 80 (with \), and
11759 # we should not choose a depcomp mode which is confused by this.
11761 # We need to recreate these files for each test, as the compiler may
11762 # overwrite some of them when testing with obscure command lines.
11763 # This happens at least with the AIX C compiler.
11765 for i in 1 2 3 4 5 6; do
11766 echo '#include "conftst'$i'.h"' >> sub/conftest.c
11767 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
11768 # Solaris 8's {/usr,}/bin/sh.
11769 touch sub/conftst$i.h
11771 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
11773 # We check with `-c' and `-o' for the sake of the "dashmstdout"
11774 # mode. It turns out that the SunPro C++ compiler does not properly
11775 # handle `-M -o', and we need to detect this. Also, some Intel
11776 # versions had trouble with output in subdirs
11777 am__obj=sub/conftest.${OBJEXT-o}
11778 am__minus_obj="-o $am__obj"
11781 # This depmode causes a compiler race in universal mode.
11782 test "$am__universal" = false || continue
11785 # after this tag, mechanisms are not by side-effect, so they'll
11786 # only be used when explicitly requested
11787 if test "x$enable_dependency_tracking" = xyes; then
11793 msvisualcpp | msvcmsys)
11794 # This compiler won't grok `-c -o', but also, the minuso test has
11795 # not run yet. These depmodes are late enough in the game, and
11796 # so weak that their functioning should not be impacted.
11797 am__obj=conftest.${OBJEXT-o}
11802 if depmode=$depmode \
11803 source=sub/conftest.c object=$am__obj \
11804 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
11805 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
11806 >/dev/null 2>conftest.err &&
11807 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
11808 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
11809 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
11810 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
11811 # icc doesn't choke on unknown options, it will just issue warnings
11812 # or remarks (even with -Werror). So we grep stderr for any message
11813 # that says an option was ignored or not supported.
11814 # When given -MP, icc 7.0 and 7.1 complain thusly:
11815 # icc: Command line warning: ignoring option '-M'; no argument required
11816 # The diagnosis changed in icc 8.0:
11817 # icc: Command line remark: option '-MP' not supported
11818 if (grep 'ignoring option' conftest.err ||
11819 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
11820 am_cv_CC_dependencies_compiler_type=$depmode
11827 rm -rf conftest.dir
11829 am_cv_CC_dependencies_compiler_type=none
11833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
11834 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
11835 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
11838 test "x$enable_dependency_tracking" != xno \
11839 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
11840 am__fastdepCC_TRUE=
11841 am__fastdepCC_FALSE='#'
11843 am__fastdepCC_TRUE='#'
11844 am__fastdepCC_FALSE=
11849 # Extract the first word of "guile", so it can be a program name with args.
11850 set dummy guile; ac_word=$2
11851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11852 $as_echo_n "checking for $ac_word... " >&6; }
11853 if ${ac_cv_path_GUILE+:} false; then :
11854 $as_echo_n "(cached) " >&6
11858 ac_cv_path_GUILE="$GUILE" # Let the user override the test with a path.
11861 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11862 for as_dir in $PATH
11865 test -z "$as_dir" && as_dir=.
11866 for ac_exec_ext in '' $ac_executable_extensions; do
11867 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11868 ac_cv_path_GUILE="$as_dir/$ac_word$ac_exec_ext"
11869 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11879 GUILE=$ac_cv_path_GUILE
11880 if test -n "$GUILE"; then
11881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GUILE" >&5
11882 $as_echo "$GUILE" >&6; }
11884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11885 $as_echo "no" >&6; }
11889 if test "$GUILE" = "" ; then
11890 as_fn_error $? "guile required but not found" "$LINENO" 5
11893 # Extract the first word of "guile-config", so it can be a program name with args.
11894 set dummy guile-config; ac_word=$2
11895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11896 $as_echo_n "checking for $ac_word... " >&6; }
11897 if ${ac_cv_path_GUILE_CONFIG+:} false; then :
11898 $as_echo_n "(cached) " >&6
11900 case $GUILE_CONFIG in
11902 ac_cv_path_GUILE_CONFIG="$GUILE_CONFIG" # Let the user override the test with a path.
11905 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11906 for as_dir in $PATH
11909 test -z "$as_dir" && as_dir=.
11910 for ac_exec_ext in '' $ac_executable_extensions; do
11911 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11912 ac_cv_path_GUILE_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11913 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11923 GUILE_CONFIG=$ac_cv_path_GUILE_CONFIG
11924 if test -n "$GUILE_CONFIG"; then
11925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GUILE_CONFIG" >&5
11926 $as_echo "$GUILE_CONFIG" >&6; }
11928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11929 $as_echo "no" >&6; }
11933 if test "$GUILE_CONFIG" = "" ; then
11934 as_fn_error $? "guile-config required but not found" "$LINENO" 5
11937 # Extract the first word of "guile-tools", so it can be a program name with args.
11938 set dummy guile-tools; ac_word=$2
11939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11940 $as_echo_n "checking for $ac_word... " >&6; }
11941 if ${ac_cv_path_GUILE_TOOLS+:} false; then :
11942 $as_echo_n "(cached) " >&6
11944 case $GUILE_TOOLS in
11946 ac_cv_path_GUILE_TOOLS="$GUILE_TOOLS" # Let the user override the test with a path.
11949 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11950 for as_dir in $PATH
11953 test -z "$as_dir" && as_dir=.
11954 for ac_exec_ext in '' $ac_executable_extensions; do
11955 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11956 ac_cv_path_GUILE_TOOLS="$as_dir/$ac_word$ac_exec_ext"
11957 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11967 GUILE_TOOLS=$ac_cv_path_GUILE_TOOLS
11968 if test -n "$GUILE_TOOLS"; then
11969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GUILE_TOOLS" >&5
11970 $as_echo "$GUILE_TOOLS" >&6; }
11972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11973 $as_echo "no" >&6; }
11980 # Check whether --with-gnu-ld was given.
11981 if test "${with_gnu_ld+set}" = set; then :
11982 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11987 # Prepare PATH_SEPARATOR.
11988 # The user is always right.
11989 if test "${PATH_SEPARATOR+set}" != set; then
11990 echo "#! /bin/sh" >conf$$.sh
11991 echo "exit 0" >>conf$$.sh
11993 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12001 if test "$GCC" = yes; then
12002 # Check if gcc -print-prog-name=ld gives a path.
12003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
12004 $as_echo_n "checking for ld used by GCC... " >&6; }
12007 # gcc leaves a trailing carriage return which upsets mingw
12008 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12010 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12013 # Accept absolute paths.
12014 [\\/]* | [A-Za-z]:[\\/]*)
12015 re_direlt='/[^/][^/]*/\.\./'
12016 # Canonicalize the path of ld
12017 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
12018 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
12019 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
12021 test -z "$LD" && LD="$ac_prog"
12024 # If it fails, then pretend we aren't using GCC.
12028 # If it is relative, then search for the first ld in PATH.
12029 with_gnu_ld=unknown
12032 elif test "$with_gnu_ld" = yes; then
12033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12034 $as_echo_n "checking for GNU ld... " >&6; }
12036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12037 $as_echo_n "checking for non-GNU ld... " >&6; }
12039 if ${acl_cv_path_LD+:} false; then :
12040 $as_echo_n "(cached) " >&6
12042 if test -z "$LD"; then
12043 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
12044 for ac_dir in $PATH; do
12045 test -z "$ac_dir" && ac_dir=.
12046 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12047 acl_cv_path_LD="$ac_dir/$ac_prog"
12048 # Check to see if the program is GNU ld. I'd rather use --version,
12049 # but apparently some GNU ld's only accept -v.
12050 # Break only if it was the GNU/non-GNU ld that we prefer.
12051 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
12052 *GNU* | *'with BFD'*)
12053 test "$with_gnu_ld" != no && break ;;
12055 test "$with_gnu_ld" != yes && break ;;
12061 acl_cv_path_LD="$LD" # Let the user override the test with a path.
12065 LD="$acl_cv_path_LD"
12066 if test -n "$LD"; then
12067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12068 $as_echo "$LD" >&6; }
12070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12071 $as_echo "no" >&6; }
12073 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
12074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12075 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12076 if ${acl_cv_prog_gnu_ld+:} false; then :
12077 $as_echo_n "(cached) " >&6
12079 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
12080 case `$LD -v 2>&1 </dev/null` in
12081 *GNU* | *'with BFD'*)
12082 acl_cv_prog_gnu_ld=yes ;;
12084 acl_cv_prog_gnu_ld=no ;;
12087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
12088 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
12089 with_gnu_ld=$acl_cv_prog_gnu_ld
12094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
12095 $as_echo_n "checking for shared library run path origin... " >&6; }
12096 if ${acl_cv_rpath+:} false; then :
12097 $as_echo_n "(cached) " >&6
12100 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
12101 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
12103 rm -f ./conftest.sh
12107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
12108 $as_echo "$acl_cv_rpath" >&6; }
12110 acl_libext="$acl_cv_libext"
12111 acl_shlibext="$acl_cv_shlibext"
12112 acl_libname_spec="$acl_cv_libname_spec"
12113 acl_library_names_spec="$acl_cv_library_names_spec"
12114 acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
12115 acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
12116 acl_hardcode_direct="$acl_cv_hardcode_direct"
12117 acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
12118 # Check whether --enable-rpath was given.
12119 if test "${enable_rpath+set}" = set; then :
12120 enableval=$enable_rpath; :
12132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit host" >&5
12133 $as_echo_n "checking for 64-bit host... " >&6; }
12134 if ${gl_cv_solaris_64bit+:} false; then :
12135 $as_echo_n "(cached) " >&6
12137 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12138 /* end confdefs.h. */
12145 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12146 $EGREP "sixtyfour bits" >/dev/null 2>&1; then :
12147 gl_cv_solaris_64bit=yes
12149 gl_cv_solaris_64bit=no
12155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_solaris_64bit" >&5
12156 $as_echo "$gl_cv_solaris_64bit" >&6; }
12157 if test $gl_cv_solaris_64bit = yes; then
12158 acl_libdirstem=lib/64
12159 case "$host_cpu" in
12160 sparc*) acl_libdirstem2=lib/sparcv9 ;;
12161 i*86 | x86_64) acl_libdirstem2=lib/amd64 ;;
12166 searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
12167 if test -n "$searchpath"; then
12168 acl_save_IFS="${IFS= }"; IFS=":"
12169 for searchdir in $searchpath; do
12170 if test -d "$searchdir"; then
12171 case "$searchdir" in
12172 */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
12174 # Better ignore directories of this form. They are misleading.
12176 *) searchdir=`cd "$searchdir" && pwd`
12177 case "$searchdir" in
12178 */lib64 ) acl_libdirstem=lib64 ;;
12183 IFS="$acl_save_IFS"
12187 test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem"
12190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking libguile compile flags" >&5
12191 $as_echo_n "checking libguile compile flags... " >&6; }
12192 GUILE_CFLAGS="`$GUILE_CONFIG compile`"
12193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GUILE_CFLAGS" >&5
12194 $as_echo "$GUILE_CFLAGS" >&6; }
12196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking libguile link flags" >&5
12197 $as_echo_n "checking libguile link flags... " >&6; }
12198 GUILE_LDFLAGS="`$GUILE_CONFIG link`"
12199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GUILE_LDFLAGS" >&5
12200 $as_echo "$GUILE_LDFLAGS" >&6; }
12206 if test "$enable_rpath" != no; then
12207 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
12210 for opt in $GUILE_LDFLAGS; do
12211 if test -n "$next"; then
12213 if test "X$dir" != "X/usr/$acl_libdirstem" \
12214 && test "X$dir" != "X/usr/$acl_libdirstem2"; then
12215 rpathdirs="$rpathdirs $dir"
12221 -L*) dir=`echo "X$opt" | sed -e 's,^X-L,,'`
12222 if test "X$dir" != "X/usr/$acl_libdirstem" \
12223 && test "X$dir" != "X/usr/$acl_libdirstem2"; then
12224 rpathdirs="$rpathdirs $dir"
12231 if test "X$rpathdirs" != "X"; then
12232 if test -n """"; then
12233 for dir in $rpathdirs; do
12234 GUILE_LIBS="${GUILE_LIBS}${GUILE_LIBS:+ }-R$dir"
12237 if test -n "$acl_hardcode_libdir_separator"; then
12239 for dir in $rpathdirs; do
12240 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$dir"
12242 acl_save_libdir="$libdir"
12244 eval flag=\"$acl_hardcode_libdir_flag_spec\"
12245 libdir="$acl_save_libdir"
12248 for dir in $rpathdirs; do
12249 acl_save_libdir="$libdir"
12251 eval flag=\"$acl_hardcode_libdir_flag_spec\"
12252 libdir="$acl_save_libdir"
12253 GUILE_LIBS="${GUILE_LIBS}${GUILE_LIBS:+ }$flag"
12262 GUILE_LIBS="$GUILE_LDFLAGS $GUILE_LIBS"
12267 if test "$enable_rpath" != no; then
12268 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
12271 for opt in $GUILE_LDFLAGS; do
12272 if test -n "$next"; then
12274 if test "X$dir" != "X/usr/$acl_libdirstem" \
12275 && test "X$dir" != "X/usr/$acl_libdirstem2"; then
12276 rpathdirs="$rpathdirs $dir"
12282 -L*) dir=`echo "X$opt" | sed -e 's,^X-L,,'`
12283 if test "X$dir" != "X/usr/$acl_libdirstem" \
12284 && test "X$dir" != "X/usr/$acl_libdirstem2"; then
12285 rpathdirs="$rpathdirs $dir"
12292 if test "X$rpathdirs" != "X"; then
12293 if test -n ""yes""; then
12294 for dir in $rpathdirs; do
12295 GUILE_LTLIBS="${GUILE_LTLIBS}${GUILE_LTLIBS:+ }-R$dir"
12298 if test -n "$acl_hardcode_libdir_separator"; then
12300 for dir in $rpathdirs; do
12301 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$dir"
12303 acl_save_libdir="$libdir"
12305 eval flag=\"$acl_hardcode_libdir_flag_spec\"
12306 libdir="$acl_save_libdir"
12307 GUILE_LTLIBS="$flag"
12309 for dir in $rpathdirs; do
12310 acl_save_libdir="$libdir"
12312 eval flag=\"$acl_hardcode_libdir_flag_spec\"
12313 libdir="$acl_save_libdir"
12314 GUILE_LTLIBS="${GUILE_LTLIBS}${GUILE_LTLIBS:+ }$flag"
12323 GUILE_LTLIBS="$GUILE_LDFLAGS $GUILE_LTLIBS"
12331 for lib in SDL SDL_image SDL_gfx SDL_mixer ; do
12332 as_ac_Lib=`$as_echo "ac_cv_lib_${lib}''_main" | $as_tr_sh`
12333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -l${lib}" >&5
12334 $as_echo_n "checking for main in -l${lib}... " >&6; }
12335 if eval \${$as_ac_Lib+:} false; then :
12336 $as_echo_n "(cached) " >&6
12338 ac_check_lib_save_LIBS=$LIBS
12339 LIBS="-l${lib} $LIBS"
12340 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12341 /* end confdefs.h. */
12352 if ac_fn_c_try_link "$LINENO"; then :
12353 eval "$as_ac_Lib=yes"
12355 eval "$as_ac_Lib=no"
12357 rm -f core conftest.err conftest.$ac_objext \
12358 conftest$ac_exeext conftest.$ac_ext
12359 LIBS=$ac_check_lib_save_LIBS
12361 eval ac_res=\$$as_ac_Lib
12362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
12363 $as_echo "$ac_res" >&6; }
12364 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
12365 SDL_LIBS="-l${lib} $SDL_LIBS"
12367 as_fn_error $? "*** ${lib} library not found!" "$LINENO" 5
12372 for lib in GL GLU ; do
12373 as_ac_Lib=`$as_echo "ac_cv_lib_${lib}''_main" | $as_tr_sh`
12374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -l${lib}" >&5
12375 $as_echo_n "checking for main in -l${lib}... " >&6; }
12376 if eval \${$as_ac_Lib+:} false; then :
12377 $as_echo_n "(cached) " >&6
12379 ac_check_lib_save_LIBS=$LIBS
12380 LIBS="-l${lib} $LIBS"
12381 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12382 /* end confdefs.h. */
12393 if ac_fn_c_try_link "$LINENO"; then :
12394 eval "$as_ac_Lib=yes"
12396 eval "$as_ac_Lib=no"
12398 rm -f core conftest.err conftest.$ac_objext \
12399 conftest$ac_exeext conftest.$ac_ext
12400 LIBS=$ac_check_lib_save_LIBS
12402 eval ac_res=\$$as_ac_Lib
12403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
12404 $as_echo "$ac_res" >&6; }
12405 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
12406 GL_LIBS="-l${lib} $GL_LIBS"
12408 as_fn_error $? "*** ${lib} library not found!" "$LINENO" 5
12412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lftgl" >&5
12413 $as_echo_n "checking for main in -lftgl... " >&6; }
12414 if ${ac_cv_lib_ftgl_main+:} false; then :
12415 $as_echo_n "(cached) " >&6
12417 ac_check_lib_save_LIBS=$LIBS
12418 LIBS="-lftgl $LIBS"
12419 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12420 /* end confdefs.h. */
12431 if ac_fn_c_try_link "$LINENO"; then :
12432 ac_cv_lib_ftgl_main=yes
12434 ac_cv_lib_ftgl_main=no
12436 rm -f core conftest.err conftest.$ac_objext \
12437 conftest$ac_exeext conftest.$ac_ext
12438 LIBS=$ac_check_lib_save_LIBS
12440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ftgl_main" >&5
12441 $as_echo "$ac_cv_lib_ftgl_main" >&6; }
12442 if test "x$ac_cv_lib_ftgl_main" = xyes; then :
12443 FTGL_LIBS="-lftgl $FTGL_LIBS"
12445 as_fn_error $? "*** FTGL library not found!" "$LINENO" 5
12451 ac_config_headers="$ac_config_headers config.h"
12453 ac_config_files="$ac_config_files Makefile src/Makefile"
12455 cat >confcache <<\_ACEOF
12456 # This file is a shell script that caches the results of configure
12457 # tests run on this system so they can be shared between configure
12458 # scripts and configure runs, see configure's option --config-cache.
12459 # It is not useful on other systems. If it contains results you don't
12460 # want to keep, you may remove or edit it.
12462 # config.status only pays attention to the cache file if you give it
12463 # the --recheck option to rerun configure.
12465 # `ac_cv_env_foo' variables (set or unset) will be overridden when
12466 # loading this file, other *unset* `ac_cv_foo' will be assigned the
12467 # following values.
12471 # The following way of writing the cache mishandles newlines in values,
12472 # but we know of no workaround that is simple, portable, and efficient.
12473 # So, we kill variables containing newlines.
12474 # Ultrix sh set writes to stderr and can't be redirected directly,
12475 # and sets the high bit in the cache file unless we assign to the vars.
12477 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12478 eval ac_val=\$$ac_var
12482 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
12483 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
12486 _ | IFS | as_nl) ;; #(
12487 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
12488 *) { eval $ac_var=; unset $ac_var;} ;;
12494 case $as_nl`(ac_space=' '; set) 2>&1` in #(
12495 *${as_nl}ac_space=\ *)
12496 # `set' does not quote correctly, so add quotes: double-quote
12497 # substitution turns \\\\ into \\, and sed turns \\ into \.
12500 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12503 # `set' quotes correctly as required by POSIX, so do not add quotes.
12504 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
12513 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12515 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12517 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12518 if test -w "$cache_file"; then
12519 if test "x$cache_file" != "x/dev/null"; then
12520 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
12521 $as_echo "$as_me: updating cache $cache_file" >&6;}
12522 if test ! -f "$cache_file" || test -h "$cache_file"; then
12523 cat confcache >"$cache_file"
12525 case $cache_file in #(
12527 mv -f confcache "$cache_file"$$ &&
12528 mv -f "$cache_file"$$ "$cache_file" ;; #(
12530 mv -f confcache "$cache_file" ;;
12535 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
12536 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
12541 test "x$prefix" = xNONE && prefix=$ac_default_prefix
12542 # Let make expand exec_prefix.
12543 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12545 DEFS=-DHAVE_CONFIG_H
12550 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12551 # 1. Remove the extension, and $U if already installed.
12552 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
12553 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
12554 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
12555 # will be set to the directory where LIBOBJS objects are built.
12556 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12557 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
12559 LIBOBJS=$ac_libobjs
12561 LTLIBOBJS=$ac_ltlibobjs
12564 if test -n "$EXEEXT"; then
12566 am__EXEEXT_FALSE='#'
12568 am__EXEEXT_TRUE='#'
12572 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
12573 as_fn_error $? "conditional \"AMDEP\" was never defined.
12574 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12576 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
12577 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
12578 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12580 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
12581 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
12582 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12585 : "${CONFIG_STATUS=./config.status}"
12587 ac_clean_files_save=$ac_clean_files
12588 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12589 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
12590 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
12592 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
12594 # Generated by $as_me.
12595 # Run this file to recreate the current configuration.
12596 # Compiler output produced by configure, useful for debugging
12597 # configure, is in config.log if it exists.
12600 ac_cs_recheck=false
12603 SHELL=\${CONFIG_SHELL-$SHELL}
12606 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
12607 ## -------------------- ##
12608 ## M4sh Initialization. ##
12609 ## -------------------- ##
12611 # Be more Bourne compatible
12612 DUALCASE=1; export DUALCASE # for MKS sh
12613 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
12616 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
12617 # is contrary to our usage. Disable this feature.
12618 alias -g '${1+"$@"}'='"$@"'
12619 setopt NO_GLOB_SUBST
12621 case `(set -o) 2>/dev/null` in #(
12633 # Printing a long string crashes Solaris 7 /usr/bin/printf.
12634 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12635 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
12636 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
12637 # Prefer a ksh shell builtin over an external printf program on Solaris,
12638 # but without wasting forks for bash or zsh.
12639 if test -z "$BASH_VERSION$ZSH_VERSION" \
12640 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
12641 as_echo='print -r --'
12642 as_echo_n='print -rn --'
12643 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
12644 as_echo='printf %s\n'
12645 as_echo_n='printf %s'
12647 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
12648 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
12649 as_echo_n='/usr/ucb/echo -n'
12651 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
12652 as_echo_n_body='eval
12656 expr "X$arg" : "X\\(.*\\)$as_nl";
12657 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
12659 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
12661 export as_echo_n_body
12662 as_echo_n='sh -c $as_echo_n_body as_echo'
12664 export as_echo_body
12665 as_echo='sh -c $as_echo_body as_echo'
12668 # The user is always right.
12669 if test "${PATH_SEPARATOR+set}" != set; then
12671 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
12672 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
12679 # We need space, tab and new line, in precisely that order. Quoting is
12680 # there to prevent editors from complaining about space-tab.
12681 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
12682 # splitting by setting IFS to empty value.)
12685 # Find who we are. Look in the path if we contain no directory separator.
12688 *[\\/]* ) as_myself=$0 ;;
12689 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12690 for as_dir in $PATH
12693 test -z "$as_dir" && as_dir=.
12694 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12700 # We did not find ourselves, most probably we were run as `sh COMMAND'
12701 # in which case we are not to be found in the path.
12702 if test "x$as_myself" = x; then
12705 if test ! -f "$as_myself"; then
12706 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
12710 # Unset variables that we do not need and which cause bugs (e.g. in
12711 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
12712 # suppresses any "Segmentation fault" message there. '((' could
12713 # trigger a bug in pdksh 5.2.14.
12714 for as_var in BASH_ENV ENV MAIL MAILPATH
12715 do eval test x\${$as_var+set} = xset \
12716 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
12729 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12732 # as_fn_error STATUS ERROR [LINENO LOG_FD]
12733 # ----------------------------------------
12734 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
12735 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
12736 # script with STATUS, using 1 if that was 0.
12739 as_status=$1; test $as_status -eq 0 && as_status=1
12741 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
12742 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
12744 $as_echo "$as_me: error: $2" >&2
12745 as_fn_exit $as_status
12749 # as_fn_set_status STATUS
12750 # -----------------------
12751 # Set $? to STATUS, without forking.
12752 as_fn_set_status ()
12755 } # as_fn_set_status
12757 # as_fn_exit STATUS
12758 # -----------------
12759 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
12763 as_fn_set_status $1
12769 # Portably unset VAR.
12772 { eval $1=; unset $1;}
12774 as_unset=as_fn_unset
12775 # as_fn_append VAR VALUE
12776 # ----------------------
12777 # Append the text in VALUE to the end of the definition contained in VAR. Take
12778 # advantage of any shell optimizations that allow amortized linear growth over
12779 # repeated appends, instead of the typical quadratic growth present in naive
12781 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
12782 eval 'as_fn_append ()
12793 # as_fn_arith ARG...
12794 # ------------------
12795 # Perform arithmetic evaluation on the ARGs, and store the result in the
12796 # global $as_val. Take advantage of shells that can avoid forks. The arguments
12797 # must be portable across $(()) and expr.
12798 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
12799 eval 'as_fn_arith ()
12806 as_val=`expr "$@" || test $? -eq 1`
12811 if expr a : '\(a\)' >/dev/null 2>&1 &&
12812 test "X`expr 00001 : '.*\(...\)'`" = X001; then
12818 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
12819 as_basename=basename
12824 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
12830 as_me=`$as_basename -- "$0" ||
12831 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12832 X"$0" : 'X\(//\)$' \| \
12833 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
12835 sed '/^.*\/\([^/][^/]*\)\/*$/{
12849 # Avoid depending upon Character Ranges.
12850 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12851 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12852 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12853 as_cr_digits='0123456789'
12854 as_cr_alnum=$as_cr_Letters$as_cr_digits
12856 ECHO_C= ECHO_N= ECHO_T=
12857 case `echo -n x` in #(((((
12859 case `echo 'xy\c'` in
12860 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
12862 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
12869 rm -f conf$$ conf$$.exe conf$$.file
12870 if test -d conf$$.dir; then
12871 rm -f conf$$.dir/conf$$.file
12874 mkdir conf$$.dir 2>/dev/null
12876 if (echo >conf$$.file) 2>/dev/null; then
12877 if ln -s conf$$.file conf$$ 2>/dev/null; then
12879 # ... but there are two gotchas:
12880 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
12881 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
12882 # In both cases, we have to default to `cp -p'.
12883 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
12885 elif ln conf$$.file conf$$ 2>/dev/null; then
12893 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
12894 rmdir conf$$.dir 2>/dev/null
12899 # Create "$as_dir" as a directory, including parents if necessary.
12904 -*) as_dir=./$as_dir;;
12906 test -d "$as_dir" || eval $as_mkdir_p || {
12910 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
12911 *) as_qdir=$as_dir;;
12913 as_dirs="'$as_qdir' $as_dirs"
12914 as_dir=`$as_dirname -- "$as_dir" ||
12915 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12916 X"$as_dir" : 'X\(//\)[^/]' \| \
12917 X"$as_dir" : 'X\(//\)$' \| \
12918 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12919 $as_echo X"$as_dir" |
12920 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12924 /^X\(\/\/\)[^/].*/{
12937 test -d "$as_dir" && break
12939 test -z "$as_dirs" || eval "mkdir $as_dirs"
12940 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
12944 if mkdir -p . 2>/dev/null; then
12945 as_mkdir_p='mkdir -p "$as_dir"'
12947 test -d ./-p && rmdir ./-p
12951 if test -x / >/dev/null 2>&1; then
12952 as_test_x='test -x'
12954 if ls -dL / >/dev/null 2>&1; then
12961 if test -d "$1"; then
12967 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
12968 ???[sx]*):;;*)false;;esac;fi
12972 as_executable_p=$as_test_x
12974 # Sed expression to map a string onto a valid CPP name.
12975 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12977 # Sed expression to map a string onto a valid variable name.
12978 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12982 ## ----------------------------------- ##
12983 ## Main body of $CONFIG_STATUS script. ##
12984 ## ----------------------------------- ##
12986 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
12988 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12989 # Save the log message, to keep $0 and so on meaningful, and to
12990 # report actual input values of CONFIG_FILES etc. instead of their
12991 # values after options handling.
12993 This file was extended by gacela $as_me 0.5, which was
12994 generated by GNU Autoconf 2.68. Invocation command line was
12996 CONFIG_FILES = $CONFIG_FILES
12997 CONFIG_HEADERS = $CONFIG_HEADERS
12998 CONFIG_LINKS = $CONFIG_LINKS
12999 CONFIG_COMMANDS = $CONFIG_COMMANDS
13002 on `(hostname || uname -n) 2>/dev/null | sed 1q`
13007 case $ac_config_files in *"
13008 "*) set x $ac_config_files; shift; ac_config_files=$*;;
13011 case $ac_config_headers in *"
13012 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
13016 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13017 # Files that config.status was made for.
13018 config_files="$ac_config_files"
13019 config_headers="$ac_config_headers"
13020 config_commands="$ac_config_commands"
13024 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13026 \`$as_me' instantiates files and other configuration actions
13027 from templates according to the current configuration. Unless the files
13028 and actions are specified as TAGs, all are instantiated by default.
13030 Usage: $0 [OPTION]... [TAG]...
13032 -h, --help print this help, then exit
13033 -V, --version print version number and configuration settings, then exit
13034 --config print configuration, then exit
13035 -q, --quiet, --silent
13036 do not print progress messages
13037 -d, --debug don't remove temporary files
13038 --recheck update $as_me by reconfiguring in the same conditions
13039 --file=FILE[:TEMPLATE]
13040 instantiate the configuration file FILE
13041 --header=FILE[:TEMPLATE]
13042 instantiate the configuration header FILE
13044 Configuration files:
13047 Configuration headers:
13050 Configuration commands:
13053 Report bugs to <jsf@jsancho.org>."
13056 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13057 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
13059 gacela config.status 0.5
13060 configured by $0, generated by GNU Autoconf 2.68,
13061 with options \\"\$ac_cs_config\\"
13063 Copyright (C) 2010 Free Software Foundation, Inc.
13064 This config.status script is free software; the Free Software Foundation
13065 gives unlimited permission to copy, distribute and modify it."
13072 test -n "\$AWK" || AWK=awk
13075 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13076 # The default lists apply if the user does not specify any file.
13082 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13083 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
13087 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13099 # Handling of the options.
13100 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13102 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
13103 $as_echo "$ac_cs_version"; exit ;;
13104 --config | --confi | --conf | --con | --co | --c )
13105 $as_echo "$ac_cs_config"; exit ;;
13106 --debug | --debu | --deb | --de | --d | -d )
13108 --file | --fil | --fi | --f )
13111 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13112 '') as_fn_error $? "missing file argument" ;;
13114 as_fn_append CONFIG_FILES " '$ac_optarg'"
13115 ac_need_defaults=false;;
13116 --header | --heade | --head | --hea )
13119 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13121 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
13122 ac_need_defaults=false;;
13124 # Conflict between --help and --header
13125 as_fn_error $? "ambiguous option: \`$1'
13126 Try \`$0 --help' for more information.";;
13127 --help | --hel | -h )
13128 $as_echo "$ac_cs_usage"; exit ;;
13129 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13130 | -silent | --silent | --silen | --sile | --sil | --si | --s)
13133 # This is an error.
13134 -*) as_fn_error $? "unrecognized option: \`$1'
13135 Try \`$0 --help' for more information." ;;
13137 *) as_fn_append ac_config_targets " $1"
13138 ac_need_defaults=false ;;
13144 ac_configure_extra_args=
13146 if $ac_cs_silent; then
13148 ac_configure_extra_args="$ac_configure_extra_args --silent"
13152 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13153 if \$ac_cs_recheck; then
13154 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13156 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
13157 CONFIG_SHELL='$SHELL'
13158 export CONFIG_SHELL
13163 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13167 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13168 ## Running $as_me. ##
13174 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13178 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
13181 # The HP-UX ksh and POSIX shell print the target directory to stdout
13182 # if CDPATH is set.
13183 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13185 sed_quote_subst='$sed_quote_subst'
13186 double_quote_subst='$double_quote_subst'
13187 delay_variable_subst='$delay_variable_subst'
13188 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
13189 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
13190 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
13191 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
13192 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
13193 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
13194 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
13195 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
13196 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
13197 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
13198 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
13199 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
13200 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
13201 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
13202 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
13203 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
13204 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
13205 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
13206 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
13207 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
13208 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
13209 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
13210 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
13211 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
13212 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
13213 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
13214 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
13215 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
13216 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
13217 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
13218 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
13219 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
13220 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
13221 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
13222 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
13223 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
13224 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
13225 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
13226 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
13227 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
13228 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
13229 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
13230 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
13231 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
13232 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
13233 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13234 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13235 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
13236 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
13237 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
13238 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
13239 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
13240 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
13241 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
13242 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
13243 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
13244 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"`'
13245 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
13246 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
13247 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
13248 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
13249 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
13250 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
13251 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
13252 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
13253 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
13254 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
13255 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
13256 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
13257 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
13258 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
13259 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
13260 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
13261 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
13262 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
13263 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13264 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
13265 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
13266 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
13267 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
13268 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
13269 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
13270 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13271 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
13272 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13273 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
13274 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13275 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
13276 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
13277 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
13278 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
13279 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
13280 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
13281 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
13282 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
13283 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
13284 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
13285 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
13286 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
13287 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
13288 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
13289 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
13290 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
13291 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
13292 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
13293 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
13294 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
13295 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
13296 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
13297 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
13298 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
13299 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
13300 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
13301 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
13302 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
13303 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
13304 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
13305 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13306 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13307 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
13308 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
13309 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
13310 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
13311 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
13312 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
13313 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
13314 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
13315 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
13316 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
13317 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
13320 LTCFLAGS='$LTCFLAGS'
13321 compiler='$compiler_DEFAULT'
13323 # A function that is used when there is no print builtin or printf.
13324 func_fallback_echo ()
13326 eval 'cat <<_LTECHO_EOF
13331 # Quote evaled strings.
13346 deplibs_check_method \
13351 sharedlib_from_linklib_cmd \
13354 archiver_list_spec \
13360 lt_cv_sys_global_symbol_pipe \
13361 lt_cv_sys_global_symbol_to_cdecl \
13362 lt_cv_sys_global_symbol_to_c_name_address \
13363 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
13364 nm_file_list_spec \
13365 lt_prog_compiler_no_builtin_flag \
13366 lt_prog_compiler_pic \
13367 lt_prog_compiler_wl \
13368 lt_prog_compiler_static \
13369 lt_cv_prog_compiler_c_o \
13378 export_dynamic_flag_spec \
13379 whole_archive_flag_spec \
13380 compiler_needs_object \
13382 allow_undefined_flag \
13383 no_undefined_flag \
13384 hardcode_libdir_flag_spec \
13385 hardcode_libdir_separator \
13389 variables_saved_for_relink \
13391 library_names_spec \
13393 install_override_mode \
13397 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
13398 *[\\\\\\\`\\"\\\$]*)
13399 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
13402 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13407 # Double-quote double-evaled strings.
13408 for var in reload_cmds \
13409 old_postinstall_cmds \
13410 old_postuninstall_cmds \
13412 extract_expsyms_cmds \
13413 old_archive_from_new_cmds \
13414 old_archive_from_expsyms_cmds \
13416 archive_expsym_cmds \
13418 module_expsym_cmds \
13419 export_symbols_cmds \
13423 postuninstall_cmds \
13425 sys_lib_search_path_spec \
13426 sys_lib_dlsearch_path_spec; do
13427 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
13428 *[\\\\\\\`\\"\\\$]*)
13429 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
13432 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13437 ac_aux_dir='$ac_aux_dir'
13438 xsi_shell='$xsi_shell'
13439 lt_shell_append='$lt_shell_append'
13441 # See if we are running on zsh, and set the options which allow our
13442 # commands through without removal of \ escapes INIT.
13443 if test -n "\${ZSH_VERSION+set}" ; then
13444 setopt NO_GLOB_SUBST
13450 TIMESTAMP='$TIMESTAMP'
13459 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13461 # Handling of arguments.
13462 for ac_config_target in $ac_config_targets
13464 case $ac_config_target in
13465 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
13466 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
13467 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
13468 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13469 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
13471 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
13476 # If the user did not use the arguments to specify the items to instantiate,
13477 # then the envvar interface is used. Set only those that are not.
13478 # We use the long form for the default assignment because of an extremely
13479 # bizarre bug on SunOS 4.1.3.
13480 if $ac_need_defaults; then
13481 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13482 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
13483 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13486 # Have a temporary directory for convenience. Make it in the build tree
13487 # simply because there is no reason against having it here, and in addition,
13488 # creating and moving files from /tmp can sometimes cause problems.
13489 # Hook for its removal unless debugging.
13490 # Note that there is a small window in which the directory will not be cleaned:
13491 # after its creation but before its name has been assigned to `$tmp'.
13495 trap 'exit_status=$?
13496 : "${ac_tmp:=$tmp}"
13497 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
13499 trap 'as_fn_exit 1' 1 2 13 15
13501 # Create a (secure) tmp directory for tmp files.
13504 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
13508 tmp=./conf$$-$RANDOM
13509 (umask 077 && mkdir "$tmp")
13510 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
13513 # Set up the scripts for CONFIG_FILES section.
13514 # No need to generate them if there are no CONFIG_FILES.
13515 # This happens for instance with `./config.status config.h'.
13516 if test -n "$CONFIG_FILES"; then
13519 ac_cr=`echo X | tr X '\015'`
13520 # On cygwin, bash can eat \r inside `` if the user requested igncr.
13521 # But we know of no other shell where ac_cr would be empty at this
13522 # point, so we can use a bashism as a fallback.
13523 if test "x$ac_cr" = x; then
13524 eval ac_cr=\$\'\\r\'
13526 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
13527 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
13530 ac_cs_awk_cr=$ac_cr
13533 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
13538 echo "cat >conf$$subs.awk <<_ACEOF" &&
13539 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
13541 } >conf$$subs.sh ||
13542 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13543 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
13545 for ac_last_try in false false false false false :; do
13546 . ./conf$$subs.sh ||
13547 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13549 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
13550 if test $ac_delim_n = $ac_delim_num; then
13552 elif $ac_last_try; then
13553 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13555 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13558 rm -f conf$$subs.sh
13560 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13561 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
13565 s/^/S["/; s/!.*/"]=/
13575 s/\(.\{148\}\)..*/\1/
13577 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
13582 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13589 s/\(.\{148\}\)..*/\1/
13591 s/["\\]/\\&/g; s/^/"/; s/$/"/
13595 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13600 ' <conf$$subs.awk | sed '
13605 ' >>$CONFIG_STATUS || ac_write_fail=1
13606 rm -f conf$$subs.awk
13607 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13609 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
13610 for (key in S) S_is_set[key] = 1
13616 nfields = split(line, field, "@")
13618 len = length(field[1])
13619 for (i = 2; i < nfields; i++) {
13621 keylen = length(key)
13622 if (S_is_set[key]) {
13624 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
13625 len += length(value) + length(field[++i])
13636 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13637 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
13638 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
13641 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
13642 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
13645 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
13646 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
13647 # trailing colons and then remove the whole line if VPATH becomes empty
13648 # (actually we leave an empty line to preserve line numbers).
13649 if test "x$srcdir" = x.; then
13650 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
13668 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13669 fi # test -n "$CONFIG_FILES"
13671 # Set up the scripts for CONFIG_HEADERS section.
13672 # No need to generate them if there are no CONFIG_HEADERS.
13673 # This happens for instance with `./config.status Makefile'.
13674 if test -n "$CONFIG_HEADERS"; then
13675 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
13679 # Transform confdefs.h into an awk script `defines.awk', embedded as
13680 # here-document in config.status, that substitutes the proper values into
13681 # config.h.in to produce config.h.
13683 # Create a delimiter string that does not exist in confdefs.h, to ease
13684 # handling of long lines.
13686 for ac_last_try in false false :; do
13687 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
13688 if test -z "$ac_tt"; then
13690 elif $ac_last_try; then
13691 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
13693 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13697 # For the awk script, D is an array of macro values keyed by name,
13698 # likewise P contains macro parameters if any. Preserve backslash
13699 # newline sequences.
13701 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
13703 s/.\{148\}/&'"$ac_delim"'/g
13706 s/^[ ]*#[ ]*define[ ][ ]*/ /
13713 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13715 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
13719 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13720 D["\1"]=" \3\\\\\\n"\\/p
13722 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
13727 s/.\{148\}/&'"$ac_delim"'/g
13732 s/["\\]/\\&/g; s/^/"/; s/$/"/p
13735 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
13737 ' <confdefs.h | sed '
13738 s/'"$ac_delim"'/"\\\
13739 "/g' >>$CONFIG_STATUS || ac_write_fail=1
13741 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13742 for (key in D) D_is_set[key] = 1
13745 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
13747 split(line, arg, " ")
13748 if (arg[1] == "#") {
13752 defundef = substr(arg[1], 2)
13755 split(mac1, mac2, "(") #)
13757 prefix = substr(line, 1, index(line, defundef) - 1)
13758 if (D_is_set[macro]) {
13759 # Preserve the white space surrounding the "#".
13760 print prefix "define", macro P[macro] D[macro]
13763 # Replace #undef with comments. This is necessary, for example,
13764 # in the case of _POSIX_SOURCE, which is predefined and required
13765 # on some systems where configure will not decide to define it.
13766 if (defundef == "undef") {
13767 print "/*", prefix defundef, macro, "*/"
13775 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13776 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
13777 fi # test -n "$CONFIG_HEADERS"
13780 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
13785 :[FHLC]) ac_mode=$ac_tag; continue;;
13787 case $ac_mode$ac_tag in
13789 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
13790 :[FH]-) ac_tag=-:-;;
13791 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
13808 -) ac_f="$ac_tmp/stdin";;
13809 *) # Look for the file first in the build tree, then in the source tree
13810 # (if the path is not absolute). The absolute path cannot be DOS-style,
13811 # because $ac_f cannot contain `:'.
13815 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
13817 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
13819 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
13820 as_fn_append ac_file_inputs " '$ac_f'"
13823 # Let's still pretend it is `configure' which instantiates (i.e., don't
13824 # use $as_me), people would be surprised to read:
13825 # /* config.h. Generated by config.status. */
13826 configure_input='Generated from '`
13827 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
13829 if test x"$ac_file" != x-; then
13830 configure_input="$ac_file. $configure_input"
13831 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
13832 $as_echo "$as_me: creating $ac_file" >&6;}
13834 # Neutralize special characters interpreted by sed in replacement strings.
13835 case $configure_input in #(
13836 *\&* | *\|* | *\\* )
13837 ac_sed_conf_input=`$as_echo "$configure_input" |
13838 sed 's/[\\\\&|]/\\\\&/g'`;; #(
13839 *) ac_sed_conf_input=$configure_input;;
13843 *:-:* | *:-) cat >"$ac_tmp/stdin" \
13844 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
13849 ac_dir=`$as_dirname -- "$ac_file" ||
13850 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13851 X"$ac_file" : 'X\(//\)[^/]' \| \
13852 X"$ac_file" : 'X\(//\)$' \| \
13853 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
13854 $as_echo X"$ac_file" |
13855 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13859 /^X\(\/\/\)[^/].*/{
13872 as_dir="$ac_dir"; as_fn_mkdir_p
13876 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
13878 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
13879 # A ".." for each directory in $ac_dir_suffix.
13880 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
13881 case $ac_top_builddir_sub in
13882 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
13883 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
13886 ac_abs_top_builddir=$ac_pwd
13887 ac_abs_builddir=$ac_pwd$ac_dir_suffix
13888 # for backward compatibility:
13889 ac_top_builddir=$ac_top_build_prefix
13892 .) # We are building in place.
13894 ac_top_srcdir=$ac_top_builddir_sub
13895 ac_abs_top_srcdir=$ac_pwd ;;
13896 [\\/]* | ?:[\\/]* ) # Absolute name.
13897 ac_srcdir=$srcdir$ac_dir_suffix;
13898 ac_top_srcdir=$srcdir
13899 ac_abs_top_srcdir=$srcdir ;;
13900 *) # Relative name.
13901 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
13902 ac_top_srcdir=$ac_top_build_prefix$srcdir
13903 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
13905 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
13915 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
13916 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
13918 ac_MKDIR_P=$MKDIR_P
13920 [\\/$]* | ?:[\\/]* ) ;;
13921 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
13925 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13926 # If the template does not know about datarootdir, expand it.
13927 # FIXME: This hack should be removed a few years after 2.60.
13928 ac_datarootdir_hack=; ac_datarootdir_seen=
13939 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
13940 *datarootdir*) ac_datarootdir_seen=yes;;
13941 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
13942 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
13943 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
13945 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13946 ac_datarootdir_hack='
13947 s&@datadir@&$datadir&g
13948 s&@docdir@&$docdir&g
13949 s&@infodir@&$infodir&g
13950 s&@localedir@&$localedir&g
13951 s&@mandir@&$mandir&g
13952 s&\\\${datarootdir}&$datarootdir&g' ;;
13956 # Neutralize VPATH when `$srcdir' = `.'.
13957 # Shell code in configure.ac might set extrasub.
13958 # FIXME: do we really want to maintain this feature?
13959 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13960 ac_sed_extra="$ac_vpsub
13963 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13965 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13966 s|@configure_input@|$ac_sed_conf_input|;t t
13967 s&@top_builddir@&$ac_top_builddir_sub&;t t
13968 s&@top_build_prefix@&$ac_top_build_prefix&;t t
13969 s&@srcdir@&$ac_srcdir&;t t
13970 s&@abs_srcdir@&$ac_abs_srcdir&;t t
13971 s&@top_srcdir@&$ac_top_srcdir&;t t
13972 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
13973 s&@builddir@&$ac_builddir&;t t
13974 s&@abs_builddir@&$ac_abs_builddir&;t t
13975 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
13976 s&@INSTALL@&$ac_INSTALL&;t t
13977 s&@MKDIR_P@&$ac_MKDIR_P&;t t
13978 $ac_datarootdir_hack
13980 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
13981 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13983 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
13984 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
13985 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
13986 "$ac_tmp/out"`; test -z "$ac_out"; } &&
13987 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13988 which seems to be undefined. Please make sure it is defined" >&5
13989 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13990 which seems to be undefined. Please make sure it is defined" >&2;}
13992 rm -f "$ac_tmp/stdin"
13994 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
13995 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
13997 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14003 if test x"$ac_file" != x-; then
14005 $as_echo "/* $configure_input */" \
14006 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
14007 } >"$ac_tmp/config.h" \
14008 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14009 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
14010 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
14011 $as_echo "$as_me: $ac_file is unchanged" >&6;}
14014 mv "$ac_tmp/config.h" "$ac_file" \
14015 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14018 $as_echo "/* $configure_input */" \
14019 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
14020 || as_fn_error $? "could not create -" "$LINENO" 5
14022 # Compute "$ac_file"'s index in $config_headers.
14025 for _am_header in $config_headers :; do
14026 case $_am_header in
14027 $_am_arg | $_am_arg:* )
14030 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
14033 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
14034 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14035 X"$_am_arg" : 'X\(//\)[^/]' \| \
14036 X"$_am_arg" : 'X\(//\)$' \| \
14037 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
14038 $as_echo X"$_am_arg" |
14039 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14043 /^X\(\/\/\)[^/].*/{
14055 s/.*/./; q'`/stamp-h$_am_stamp_count
14058 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
14059 $as_echo "$as_me: executing $ac_file commands" >&6;}
14064 case $ac_file$ac_mode in
14065 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
14066 # Autoconf 2.62 quotes --file arguments for eval, but not when files
14067 # are listed without --file. Let's play safe and only enable the eval
14068 # if we detect the quoting.
14069 case $CONFIG_FILES in
14070 *\'*) eval set x "$CONFIG_FILES" ;;
14071 *) set x $CONFIG_FILES ;;
14076 # Strip MF so we end up with the name of the file.
14077 mf=`echo "$mf" | sed -e 's/:.*$//'`
14078 # Check whether this is an Automake generated Makefile or not.
14079 # We used to match only the files named `Makefile.in', but
14080 # some people rename them; so instead we look at the file content.
14081 # Grep'ing the first line is not enough: some people post-process
14082 # each Makefile.in and add a new line on top of each file to say so.
14083 # Grep'ing the whole file is not good either: AIX grep has a line
14084 # limit of 2048, but all sed's we know have understand at least 4000.
14085 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
14086 dirpart=`$as_dirname -- "$mf" ||
14087 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14088 X"$mf" : 'X\(//\)[^/]' \| \
14089 X"$mf" : 'X\(//\)$' \| \
14090 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
14092 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14096 /^X\(\/\/\)[^/].*/{
14112 # Extract the definition of DEPDIR, am__include, and am__quote
14113 # from the Makefile without running `make'.
14114 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
14115 test -z "$DEPDIR" && continue
14116 am__include=`sed -n 's/^am__include = //p' < "$mf"`
14117 test -z "am__include" && continue
14118 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
14119 # When using ansi2knr, U may be empty or an underscore; expand it
14120 U=`sed -n 's/^U = //p' < "$mf"`
14121 # Find all dependency output files, they are included files with
14122 # $(DEPDIR) in their names. We invoke sed twice because it is the
14123 # simplest approach to changing $(DEPDIR) to its actual value in the
14125 for file in `sed -n "
14126 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
14127 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
14128 # Make sure the directory exists.
14129 test -f "$dirpart/$file" && continue
14130 fdir=`$as_dirname -- "$file" ||
14131 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14132 X"$file" : 'X\(//\)[^/]' \| \
14133 X"$file" : 'X\(//\)$' \| \
14134 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
14135 $as_echo X"$file" |
14136 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14140 /^X\(\/\/\)[^/].*/{
14153 as_dir=$dirpart/$fdir; as_fn_mkdir_p
14154 # echo "creating $dirpart/$file"
14155 echo '# dummy' > "$dirpart/$file"
14162 # See if we are running on zsh, and set the options which allow our
14163 # commands through without removal of \ escapes.
14164 if test -n "${ZSH_VERSION+set}" ; then
14165 setopt NO_GLOB_SUBST
14168 cfgfile="${ofile}T"
14169 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
14172 cat <<_LT_EOF >> "$cfgfile"
14175 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
14176 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
14177 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14178 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
14180 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
14181 # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
14183 # Written by Gordon Matzigkeit, 1996
14185 # This file is part of GNU Libtool.
14187 # GNU Libtool is free software; you can redistribute it and/or
14188 # modify it under the terms of the GNU General Public License as
14189 # published by the Free Software Foundation; either version 2 of
14190 # the License, or (at your option) any later version.
14192 # As a special exception to the GNU General Public License,
14193 # if you distribute this file as part of a program or library that
14194 # is built using GNU Libtool, you may include this file under the
14195 # same distribution terms that you use for the rest of that program.
14197 # GNU Libtool is distributed in the hope that it will be useful,
14198 # but WITHOUT ANY WARRANTY; without even the implied warranty of
14199 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14200 # GNU General Public License for more details.
14202 # You should have received a copy of the GNU General Public License
14203 # along with GNU Libtool; see the file COPYING. If not, a copy
14204 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
14205 # obtained by writing to the Free Software Foundation, Inc.,
14206 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
14209 # The names of the tagged configurations supported by this script.
14212 # ### BEGIN LIBTOOL CONFIG
14214 # Which release of libtool.m4 was used?
14215 macro_version=$macro_version
14216 macro_revision=$macro_revision
14218 # Whether or not to build shared libraries.
14219 build_libtool_libs=$enable_shared
14221 # Whether or not to build static libraries.
14222 build_old_libs=$enable_static
14224 # What type of objects to build.
14227 # Whether or not to optimize for fast installation.
14228 fast_install=$enable_fast_install
14230 # Shell to use when invoking shell scripts.
14233 # An echo program that protects backslashes.
14236 # The PATH separator for the build system.
14237 PATH_SEPARATOR=$lt_PATH_SEPARATOR
14240 host_alias=$host_alias
14244 # The build system.
14245 build_alias=$build_alias
14249 # A sed program that does not truncate output.
14252 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
14253 Xsed="\$SED -e 1s/^X//"
14255 # A grep program that handles long lines.
14261 # A literal string matcher.
14264 # A BSD- or MS-compatible name lister.
14267 # Whether we need soft or hard links.
14270 # What is the maximum length of a command?
14271 max_cmd_len=$max_cmd_len
14273 # Object file suffix (normally "o").
14276 # Executable file suffix (normally "").
14279 # whether the shell understands "unset".
14282 # turn spaces into newlines.
14285 # turn newlines into spaces.
14288 # convert \$build file names to \$host format.
14289 to_host_file_cmd=$lt_cv_to_host_file_cmd
14291 # convert \$build files to toolchain format.
14292 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
14294 # An object symbol dumper.
14295 OBJDUMP=$lt_OBJDUMP
14297 # Method to check whether dependent libraries are shared objects.
14298 deplibs_check_method=$lt_deplibs_check_method
14300 # Command to use when deplibs_check_method = "file_magic".
14301 file_magic_cmd=$lt_file_magic_cmd
14303 # How to find potential files when deplibs_check_method = "file_magic".
14304 file_magic_glob=$lt_file_magic_glob
14306 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
14307 want_nocaseglob=$lt_want_nocaseglob
14309 # DLL creation program.
14310 DLLTOOL=$lt_DLLTOOL
14312 # Command to associate shared and link libraries.
14313 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
14318 # Flags to create an archive.
14319 AR_FLAGS=$lt_AR_FLAGS
14321 # How to feed a file listing to the archiver.
14322 archiver_list_spec=$lt_archiver_list_spec
14324 # A symbol stripping program.
14327 # Commands used to install an old-style archive.
14329 old_postinstall_cmds=$lt_old_postinstall_cmds
14330 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14332 # Whether to use a lock for old archive extraction.
14333 lock_old_archive_extraction=$lock_old_archive_extraction
14338 # LTCC compiler flags.
14339 LTCFLAGS=$lt_CFLAGS
14341 # Take the output of nm and produce a listing of raw symbols and C names.
14342 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14344 # Transform the output of nm in a proper C declaration.
14345 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14347 # Transform the output of nm in a C name address pair.
14348 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14350 # Transform the output of nm in a C name address pair when lib prefix is needed.
14351 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
14353 # Specify filename containing input files for \$NM.
14354 nm_file_list_spec=$lt_nm_file_list_spec
14356 # The root where to search for dependent libraries,and in which our libraries should be installed.
14357 lt_sysroot=$lt_sysroot
14359 # The name of the directory that contains temporary libtool files.
14362 # Used to examine libraries when file_magic_cmd begins with "file".
14363 MAGIC_CMD=$MAGIC_CMD
14365 # Must we lock files when doing compilation?
14366 need_locks=$lt_need_locks
14369 MANIFEST_TOOL=$lt_MANIFEST_TOOL
14371 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
14372 DSYMUTIL=$lt_DSYMUTIL
14374 # Tool to change global to local symbols on Mac OS X.
14377 # Tool to manipulate fat objects and archives on Mac OS X.
14380 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
14383 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
14384 OTOOL64=$lt_OTOOL64
14386 # Old archive suffix (normally "a").
14389 # Shared library suffix (normally ".so").
14390 shrext_cmds=$lt_shrext_cmds
14392 # The commands to extract the exported symbol list from a shared archive.
14393 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14395 # Variables whose values should be saved in libtool wrapper scripts and
14396 # restored at link time.
14397 variables_saved_for_relink=$lt_variables_saved_for_relink
14399 # Do we need the "lib" prefix for modules?
14400 need_lib_prefix=$need_lib_prefix
14402 # Do we need a version for libraries?
14403 need_version=$need_version
14405 # Library versioning type.
14406 version_type=$version_type
14408 # Shared library runtime path variable.
14409 runpath_var=$runpath_var
14411 # Shared library path variable.
14412 shlibpath_var=$shlibpath_var
14414 # Is shlibpath searched before the hard-coded library search path?
14415 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14417 # Format of library name prefix.
14418 libname_spec=$lt_libname_spec
14420 # List of archive names. First name is the real one, the rest are links.
14421 # The last name is the one that the linker finds with -lNAME
14422 library_names_spec=$lt_library_names_spec
14424 # The coded name of the library, if different from the real name.
14425 soname_spec=$lt_soname_spec
14427 # Permission mode override for installation of shared libraries.
14428 install_override_mode=$lt_install_override_mode
14430 # Command to use after installation of a shared archive.
14431 postinstall_cmds=$lt_postinstall_cmds
14433 # Command to use after uninstallation of a shared archive.
14434 postuninstall_cmds=$lt_postuninstall_cmds
14436 # Commands used to finish a libtool library installation in a directory.
14437 finish_cmds=$lt_finish_cmds
14439 # As "finish_cmds", except a single script fragment to be evaled but
14441 finish_eval=$lt_finish_eval
14443 # Whether we should hardcode library paths into libraries.
14444 hardcode_into_libs=$hardcode_into_libs
14446 # Compile-time system search path for libraries.
14447 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14449 # Run-time system search path for libraries.
14450 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14452 # Whether dlopen is supported.
14453 dlopen_support=$enable_dlopen
14455 # Whether dlopen of programs is supported.
14456 dlopen_self=$enable_dlopen_self
14458 # Whether dlopen of statically linked programs is supported.
14459 dlopen_self_static=$enable_dlopen_self_static
14461 # Commands to strip libraries.
14462 old_striplib=$lt_old_striplib
14463 striplib=$lt_striplib
14466 # The linker used to build libraries.
14469 # How to create reloadable object files.
14470 reload_flag=$lt_reload_flag
14471 reload_cmds=$lt_reload_cmds
14473 # Commands used to build an old-style archive.
14474 old_archive_cmds=$lt_old_archive_cmds
14476 # A language specific compiler.
14479 # Is the compiler the GNU compiler?
14482 # Compiler flag to turn off builtin functions.
14483 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
14485 # Additional compiler flags for building library objects.
14486 pic_flag=$lt_lt_prog_compiler_pic
14488 # How to pass a linker flag through the compiler.
14489 wl=$lt_lt_prog_compiler_wl
14491 # Compiler flag to prevent dynamic linking.
14492 link_static_flag=$lt_lt_prog_compiler_static
14494 # Does compiler simultaneously support -c and -o options?
14495 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
14497 # Whether or not to add -lc for building shared libraries.
14498 build_libtool_need_lc=$archive_cmds_need_lc
14500 # Whether or not to disallow shared libs when runtime libs are static.
14501 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
14503 # Compiler flag to allow reflexive dlopens.
14504 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
14506 # Compiler flag to generate shared objects directly from archives.
14507 whole_archive_flag_spec=$lt_whole_archive_flag_spec
14509 # Whether the compiler copes with passing no objects directly.
14510 compiler_needs_object=$lt_compiler_needs_object
14512 # Create an old-style archive from a shared archive.
14513 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
14515 # Create a temporary old-style archive to link instead of a shared archive.
14516 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
14518 # Commands used to build a shared archive.
14519 archive_cmds=$lt_archive_cmds
14520 archive_expsym_cmds=$lt_archive_expsym_cmds
14522 # Commands used to build a loadable module if different from building
14523 # a shared archive.
14524 module_cmds=$lt_module_cmds
14525 module_expsym_cmds=$lt_module_expsym_cmds
14527 # Whether we are building with GNU ld or not.
14528 with_gnu_ld=$lt_with_gnu_ld
14530 # Flag that allows shared libraries with undefined symbols to be built.
14531 allow_undefined_flag=$lt_allow_undefined_flag
14533 # Flag that enforces no undefined symbols.
14534 no_undefined_flag=$lt_no_undefined_flag
14536 # Flag to hardcode \$libdir into a binary during linking.
14537 # This must work even if \$libdir does not exist
14538 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
14540 # Whether we need a single "-rpath" flag with a separated argument.
14541 hardcode_libdir_separator=$lt_hardcode_libdir_separator
14543 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14544 # DIR into the resulting binary.
14545 hardcode_direct=$hardcode_direct
14547 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14548 # DIR into the resulting binary and the resulting library dependency is
14549 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
14550 # library is relocated.
14551 hardcode_direct_absolute=$hardcode_direct_absolute
14553 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
14554 # into the resulting binary.
14555 hardcode_minus_L=$hardcode_minus_L
14557 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
14558 # into the resulting binary.
14559 hardcode_shlibpath_var=$hardcode_shlibpath_var
14561 # Set to "yes" if building a shared library automatically hardcodes DIR
14562 # into the library and all subsequent libraries and executables linked
14564 hardcode_automatic=$hardcode_automatic
14566 # Set to yes if linker adds runtime paths of dependent libraries
14567 # to runtime path list.
14568 inherit_rpath=$inherit_rpath
14570 # Whether libtool must link a program against all its dependency libraries.
14571 link_all_deplibs=$link_all_deplibs
14573 # Set to "yes" if exported symbols are required.
14574 always_export_symbols=$always_export_symbols
14576 # The commands to list exported symbols.
14577 export_symbols_cmds=$lt_export_symbols_cmds
14579 # Symbols that should not be listed in the preloaded symbols.
14580 exclude_expsyms=$lt_exclude_expsyms
14582 # Symbols that must always be exported.
14583 include_expsyms=$lt_include_expsyms
14585 # Commands necessary for linking programs (against libraries) with templates.
14586 prelink_cmds=$lt_prelink_cmds
14588 # Commands necessary for finishing linking programs.
14589 postlink_cmds=$lt_postlink_cmds
14591 # Specify filename containing input files.
14592 file_list_spec=$lt_file_list_spec
14594 # How to hardcode a shared library path into an executable.
14595 hardcode_action=$hardcode_action
14597 # ### END LIBTOOL CONFIG
14603 cat <<\_LT_EOF >> "$cfgfile"
14604 # AIX sometimes has problems with the GCC collect2 program. For some
14605 # reason, if we set the COLLECT_NAMES environment variable, the problems
14606 # vanish in a puff of smoke.
14607 if test "X${COLLECT_NAMES+set}" != Xset; then
14609 export COLLECT_NAMES
14616 ltmain="$ac_aux_dir/ltmain.sh"
14619 # We use sed instead of cat because bash on DJGPP gets confused if
14620 # if finds mixed CR/LF and LF-only lines. Since sed operates in
14621 # text mode, it properly converts lines to CR/LF. This bash problem
14622 # is reportedly fixed, but why not run on old versions too?
14623 sed '$q' "$ltmain" >> "$cfgfile" \
14624 || (rm -f "$cfgfile"; exit 1)
14626 if test x"$xsi_shell" = xyes; then
14627 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
14631 \ */*) func_dirname_result="${1%/*}${2}" ;;\
14632 \ * ) func_dirname_result="${3}" ;;\
14634 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
14635 && mv -f "$cfgfile.tmp" "$cfgfile" \
14636 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14637 test 0 -eq $? || _lt_function_replace_fail=:
14640 sed -e '/^func_basename ()$/,/^} # func_basename /c\
14643 \ func_basename_result="${1##*/}"\
14644 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
14645 && mv -f "$cfgfile.tmp" "$cfgfile" \
14646 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14647 test 0 -eq $? || _lt_function_replace_fail=:
14650 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
14651 func_dirname_and_basename ()\
14654 \ */*) func_dirname_result="${1%/*}${2}" ;;\
14655 \ * ) func_dirname_result="${3}" ;;\
14657 \ func_basename_result="${1##*/}"\
14658 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
14659 && mv -f "$cfgfile.tmp" "$cfgfile" \
14660 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14661 test 0 -eq $? || _lt_function_replace_fail=:
14664 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
14667 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
14668 \ # positional parameters, so assign one to ordinary parameter first.\
14669 \ func_stripname_result=${3}\
14670 \ func_stripname_result=${func_stripname_result#"${1}"}\
14671 \ func_stripname_result=${func_stripname_result%"${2}"}\
14672 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
14673 && mv -f "$cfgfile.tmp" "$cfgfile" \
14674 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14675 test 0 -eq $? || _lt_function_replace_fail=:
14678 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
14679 func_split_long_opt ()\
14681 \ func_split_long_opt_name=${1%%=*}\
14682 \ func_split_long_opt_arg=${1#*=}\
14683 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
14684 && mv -f "$cfgfile.tmp" "$cfgfile" \
14685 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14686 test 0 -eq $? || _lt_function_replace_fail=:
14689 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
14690 func_split_short_opt ()\
14692 \ func_split_short_opt_arg=${1#??}\
14693 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
14694 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
14695 && mv -f "$cfgfile.tmp" "$cfgfile" \
14696 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14697 test 0 -eq $? || _lt_function_replace_fail=:
14700 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
14704 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
14705 \ *) func_lo2o_result=${1} ;;\
14707 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
14708 && mv -f "$cfgfile.tmp" "$cfgfile" \
14709 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14710 test 0 -eq $? || _lt_function_replace_fail=:
14713 sed -e '/^func_xform ()$/,/^} # func_xform /c\
14716 func_xform_result=${1%.*}.lo\
14717 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
14718 && mv -f "$cfgfile.tmp" "$cfgfile" \
14719 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14720 test 0 -eq $? || _lt_function_replace_fail=:
14723 sed -e '/^func_arith ()$/,/^} # func_arith /c\
14726 func_arith_result=$(( $* ))\
14727 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
14728 && mv -f "$cfgfile.tmp" "$cfgfile" \
14729 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14730 test 0 -eq $? || _lt_function_replace_fail=:
14733 sed -e '/^func_len ()$/,/^} # func_len /c\
14736 func_len_result=${#1}\
14737 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
14738 && mv -f "$cfgfile.tmp" "$cfgfile" \
14739 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14740 test 0 -eq $? || _lt_function_replace_fail=:
14744 if test x"$lt_shell_append" = xyes; then
14745 sed -e '/^func_append ()$/,/^} # func_append /c\
14748 eval "${1}+=\\${2}"\
14749 } # Extended-shell func_append 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=:
14755 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
14756 func_append_quoted ()\
14758 \ func_quote_for_eval "${2}"\
14759 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
14760 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
14761 && mv -f "$cfgfile.tmp" "$cfgfile" \
14762 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14763 test 0 -eq $? || _lt_function_replace_fail=:
14766 # Save a `func_append' function call where possible by direct use of '+='
14767 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
14768 && mv -f "$cfgfile.tmp" "$cfgfile" \
14769 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14770 test 0 -eq $? || _lt_function_replace_fail=:
14772 # Save a `func_append' function call even when '+=' is not available
14773 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
14774 && mv -f "$cfgfile.tmp" "$cfgfile" \
14775 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14776 test 0 -eq $? || _lt_function_replace_fail=:
14779 if test x"$_lt_function_replace_fail" = x":"; then
14780 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
14781 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
14785 mv -f "$cfgfile" "$ofile" ||
14786 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
14797 ac_clean_files=$ac_clean_files_save
14799 test $ac_write_fail = 0 ||
14800 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
14803 # configure is writing to config.log, and then calls config.status.
14804 # config.status does its own redirection, appending to config.log.
14805 # Unfortunately, on DOS this fails, as config.log is still kept open
14806 # by configure, so config.status won't be able to write to it; its
14807 # output is simply discarded. So we exec the FD to /dev/null,
14808 # effectively closing config.log, so it can be properly (re)opened and
14809 # appended to by config.status. When coming back to configure, we
14810 # need to make the FD available again.
14811 if test "$no_create" != yes; then
14813 ac_config_status_args=
14814 test "$silent" = yes &&
14815 ac_config_status_args="$ac_config_status_args --quiet"
14817 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
14819 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14820 # would make configure fail if this is the last instruction.
14821 $ac_cs_success || as_fn_exit 1
14823 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
14824 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
14825 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}