2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for gacela 0.5.
5 # Report bugs to <jsf@jsancho.org>.
8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
27 case `(set -o) 2>/dev/null` in #(
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68 as_echo_n='sh -c $as_echo_n_body as_echo'
71 as_echo='sh -c $as_echo_body as_echo'
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
91 # Find who we are. Look in the path if we contain no directory separator.
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
99 test -z "$as_dir" && as_dir=.
100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
111 if test ! -f "$as_myself"; then
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there. '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
137 # Use a proper internal environment variable to ensure we don't fall
138 # into an infinite loop, continuously re-executing ourselves.
139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140 _as_can_reexec=no; export _as_can_reexec;
141 # We cannot yet assume a decent shell, so we have to provide a
142 # neutralization value for shells without unset; and this also
143 # works around shells that cannot unset nonexistent variables.
144 # Preserve -v and -x to the replacement shell.
147 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
149 *v*x* | *x*v* ) as_opts=-vx ;;
154 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155 # Admittedly, this is quite paranoid, since all the known shells bail
156 # out after a failed `exec'.
157 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
160 # We don't want this to propagate to other subprocesses.
161 { _as_can_reexec=; unset _as_can_reexec;}
162 if test "x$CONFIG_SHELL" = x; then
163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167 # is contrary to our usage. Disable this feature.
168 alias -g '\${1+\"\$@\"}'='\"\$@\"'
171 case \`(set -o) 2>/dev/null\` in #(
179 as_required="as_fn_return () { (exit \$1); }
180 as_fn_success () { as_fn_return 0; }
181 as_fn_failure () { as_fn_return 1; }
182 as_fn_ret_success () { return 0; }
183 as_fn_ret_failure () { return 1; }
186 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
193 exitcode=1; echo positional parameters were not saved.
195 test x\$exitcode = x0 || exit 1
197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
202 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
203 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
204 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
205 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206 PATH=/empty FPATH=/empty; export PATH FPATH
207 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
208 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
209 test \$(( 1 + 1 )) = 2 || exit 1"
210 if (eval "$as_required") 2>/dev/null; then :
215 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
220 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
223 test -z "$as_dir" && as_dir=.
227 for as_base in sh bash ksh sh5; do
228 # Try only shells that exist, to save several forks.
229 as_shell=$as_dir/$as_base
230 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
231 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
232 CONFIG_SHELL=$as_shell as_have_required=yes
233 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
241 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
243 CONFIG_SHELL=$SHELL as_have_required=yes
248 if test "x$CONFIG_SHELL" != x; then :
250 # We cannot yet assume a decent shell, so we have to provide a
251 # neutralization value for shells without unset; and this also
252 # works around shells that cannot unset nonexistent variables.
253 # Preserve -v and -x to the replacement shell.
256 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
258 *v*x* | *x*v* ) as_opts=-vx ;;
263 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264 # Admittedly, this is quite paranoid, since all the known shells bail
265 # out after a failed `exec'.
266 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
270 if test x$as_have_required = xno; then :
271 $as_echo "$0: This script requires a shell more modern than all"
272 $as_echo "$0: the shells that I found on your system."
273 if test x${ZSH_VERSION+set} = xset ; then
274 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
275 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
277 $as_echo "$0: Please tell bug-autoconf@gnu.org and jsf@jsancho.org
278 $0: about your system, including any error possibly output
279 $0: before this message. Then install a modern shell, or
280 $0: manually run the script under such a shell if you do
287 SHELL=${CONFIG_SHELL-/bin/sh}
289 # Unset more variables known to interfere with behavior of common tools.
290 CLICOLOR_FORCE= GREP_OPTIONS=
291 unset CLICOLOR_FORCE GREP_OPTIONS
293 ## --------------------- ##
294 ## M4sh Shell Functions. ##
295 ## --------------------- ##
298 # Portably unset VAR.
301 { eval $1=; unset $1;}
305 # as_fn_set_status STATUS
306 # -----------------------
307 # Set $? to STATUS, without forking.
315 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
325 # Create "$as_dir" as a directory, including parents if necessary.
330 -*) as_dir=./$as_dir;;
332 test -d "$as_dir" || eval $as_mkdir_p || {
336 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
339 as_dirs="'$as_qdir' $as_dirs"
340 as_dir=`$as_dirname -- "$as_dir" ||
341 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
342 X"$as_dir" : 'X\(//\)[^/]' \| \
343 X"$as_dir" : 'X\(//\)$' \| \
344 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
345 $as_echo X"$as_dir" |
346 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
363 test -d "$as_dir" && break
365 test -z "$as_dirs" || eval "mkdir $as_dirs"
366 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
371 # as_fn_executable_p FILE
372 # -----------------------
373 # Test if FILE is an executable regular file.
374 as_fn_executable_p ()
376 test -f "$1" && test -x "$1"
377 } # as_fn_executable_p
378 # as_fn_append VAR VALUE
379 # ----------------------
380 # Append the text in VALUE to the end of the definition contained in VAR. Take
381 # advantage of any shell optimizations that allow amortized linear growth over
382 # repeated appends, instead of the typical quadratic growth present in naive
384 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
385 eval 'as_fn_append ()
398 # Perform arithmetic evaluation on the ARGs, and store the result in the
399 # global $as_val. Take advantage of shells that can avoid forks. The arguments
400 # must be portable across $(()) and expr.
401 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
409 as_val=`expr "$@" || test $? -eq 1`
414 # as_fn_error STATUS ERROR [LINENO LOG_FD]
415 # ----------------------------------------
416 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
417 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
418 # script with STATUS, using 1 if that was 0.
421 as_status=$1; test $as_status -eq 0 && as_status=1
423 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
424 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
426 $as_echo "$as_me: error: $2" >&2
427 as_fn_exit $as_status
430 if expr a : '\(a\)' >/dev/null 2>&1 &&
431 test "X`expr 00001 : '.*\(...\)'`" = X001; then
437 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
443 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
449 as_me=`$as_basename -- "$0" ||
450 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
451 X"$0" : 'X\(//\)$' \| \
452 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
454 sed '/^.*\/\([^/][^/]*\)\/*$/{
468 # Avoid depending upon Character Ranges.
469 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
470 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
471 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
472 as_cr_digits='0123456789'
473 as_cr_alnum=$as_cr_Letters$as_cr_digits
476 as_lineno_1=$LINENO as_lineno_1a=$LINENO
477 as_lineno_2=$LINENO as_lineno_2a=$LINENO
478 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
479 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
480 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
492 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
496 chmod +x "$as_me.lineno" ||
497 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
499 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
500 # already done that, so ensure we don't try to do so again and fall
501 # in an infinite loop. This has already happened in practice.
502 _as_can_reexec=no; export _as_can_reexec
503 # Don't try to exec as it changes $[0], causing all sort of problems
504 # (the dirname of $[0] is not the place where we might find the
505 # original and so on. Autoconf is especially sensitive to this).
507 # Exit status is that of the last command.
511 ECHO_C= ECHO_N= ECHO_T=
512 case `echo -n x` in #(((((
514 case `echo 'xy\c'` in
515 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
517 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
524 rm -f conf$$ conf$$.exe conf$$.file
525 if test -d conf$$.dir; then
526 rm -f conf$$.dir/conf$$.file
529 mkdir conf$$.dir 2>/dev/null
531 if (echo >conf$$.file) 2>/dev/null; then
532 if ln -s conf$$.file conf$$ 2>/dev/null; then
534 # ... but there are two gotchas:
535 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
536 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
537 # In both cases, we have to default to `cp -pR'.
538 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
540 elif ln conf$$.file conf$$ 2>/dev/null; then
548 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
549 rmdir conf$$.dir 2>/dev/null
551 if mkdir -p . 2>/dev/null; then
552 as_mkdir_p='mkdir -p "$as_dir"'
554 test -d ./-p && rmdir ./-p
559 as_executable_p=as_fn_executable_p
561 # Sed expression to map a string onto a valid CPP name.
562 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
564 # Sed expression to map a string onto a valid variable name.
565 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
567 SHELL=${CONFIG_SHELL-/bin/sh}
570 test -n "$DJDIR" || exec 7<&0 </dev/null
574 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
575 # so uname gets run too.
576 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
581 ac_default_prefix=/usr/local
583 ac_config_libobj_dir=.
590 # Identity of this package.
591 PACKAGE_NAME='gacela'
592 PACKAGE_TARNAME='gacela'
593 PACKAGE_VERSION='0.5'
594 PACKAGE_STRING='gacela 0.5'
595 PACKAGE_BUGREPORT='jsf@jsancho.org'
598 # Factoring default headers for most tests.
599 ac_includes_default="\
601 #ifdef HAVE_SYS_TYPES_H
602 # include <sys/types.h>
604 #ifdef HAVE_SYS_STAT_H
605 # include <sys/stat.h>
611 # ifdef HAVE_STDLIB_H
616 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
621 #ifdef HAVE_STRINGS_H
622 # include <strings.h>
624 #ifdef HAVE_INTTYPES_H
625 # include <inttypes.h>
634 ac_unique_file="src/sdl.c"
635 ac_subst_vars='am__EXEEXT_FALSE
702 INSTALL_STRIP_PROGRAM
744 program_transform_name
757 enable_option_checking
762 enable_dependency_tracking
767 ac_precious_vars='build_alias
783 # Initialize some variables set by options.
785 ac_init_version=false
786 ac_unrecognized_opts=
788 # The variables have the same names as the options, with
789 # dashes changed to underlines.
797 program_transform_name=s,x,x,
805 # Installation directory options.
806 # These are left unexpanded so users can "make install exec_prefix=/foo"
807 # and all the variables that are supposed to be based on exec_prefix
808 # by default will actually change.
809 # Use braces instead of parens because sh, perl, etc. also accept them.
810 # (The list follows the same order as the GNU Coding Standards.)
811 bindir='${exec_prefix}/bin'
812 sbindir='${exec_prefix}/sbin'
813 libexecdir='${exec_prefix}/libexec'
814 datarootdir='${prefix}/share'
815 datadir='${datarootdir}'
816 sysconfdir='${prefix}/etc'
817 sharedstatedir='${prefix}/com'
818 localstatedir='${prefix}/var'
819 includedir='${prefix}/include'
820 oldincludedir='/usr/include'
821 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
822 infodir='${datarootdir}/info'
827 libdir='${exec_prefix}/lib'
828 localedir='${datarootdir}/locale'
829 mandir='${datarootdir}/man'
835 # If the previous option needs an argument, assign it.
836 if test -n "$ac_prev"; then
837 eval $ac_prev=\$ac_option
843 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
848 # Accept the important Cygnus configure options, so we can diagnose typos.
850 case $ac_dashdash$ac_option in
854 -bindir | --bindir | --bindi | --bind | --bin | --bi)
856 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
859 -build | --build | --buil | --bui | --bu)
860 ac_prev=build_alias ;;
861 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
862 build_alias=$ac_optarg ;;
864 -cache-file | --cache-file | --cache-fil | --cache-fi \
865 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
866 ac_prev=cache_file ;;
867 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
868 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
869 cache_file=$ac_optarg ;;
872 cache_file=config.cache ;;
874 -datadir | --datadir | --datadi | --datad)
876 -datadir=* | --datadir=* | --datadi=* | --datad=*)
877 datadir=$ac_optarg ;;
879 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
880 | --dataroo | --dataro | --datar)
881 ac_prev=datarootdir ;;
882 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
883 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
884 datarootdir=$ac_optarg ;;
886 -disable-* | --disable-*)
887 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
888 # Reject names that are not valid shell variable names.
889 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
890 as_fn_error $? "invalid feature name: $ac_useropt"
891 ac_useropt_orig=$ac_useropt
892 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
893 case $ac_user_opts in
897 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
898 ac_unrecognized_sep=', ';;
900 eval enable_$ac_useropt=no ;;
902 -docdir | --docdir | --docdi | --doc | --do)
904 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
907 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
909 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
912 -enable-* | --enable-*)
913 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
914 # Reject names that are not valid shell variable names.
915 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
916 as_fn_error $? "invalid feature name: $ac_useropt"
917 ac_useropt_orig=$ac_useropt
918 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
919 case $ac_user_opts in
923 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
924 ac_unrecognized_sep=', ';;
926 eval enable_$ac_useropt=\$ac_optarg ;;
928 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
929 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
930 | --exec | --exe | --ex)
931 ac_prev=exec_prefix ;;
932 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
933 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
934 | --exec=* | --exe=* | --ex=*)
935 exec_prefix=$ac_optarg ;;
937 -gas | --gas | --ga | --g)
938 # Obsolete; use --with-gas.
941 -help | --help | --hel | --he | -h)
943 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
944 ac_init_help=recursive ;;
945 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
946 ac_init_help=short ;;
948 -host | --host | --hos | --ho)
949 ac_prev=host_alias ;;
950 -host=* | --host=* | --hos=* | --ho=*)
951 host_alias=$ac_optarg ;;
953 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
955 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
957 htmldir=$ac_optarg ;;
959 -includedir | --includedir | --includedi | --included | --include \
960 | --includ | --inclu | --incl | --inc)
961 ac_prev=includedir ;;
962 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
963 | --includ=* | --inclu=* | --incl=* | --inc=*)
964 includedir=$ac_optarg ;;
966 -infodir | --infodir | --infodi | --infod | --info | --inf)
968 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
969 infodir=$ac_optarg ;;
971 -libdir | --libdir | --libdi | --libd)
973 -libdir=* | --libdir=* | --libdi=* | --libd=*)
976 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
977 | --libexe | --libex | --libe)
978 ac_prev=libexecdir ;;
979 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
980 | --libexe=* | --libex=* | --libe=*)
981 libexecdir=$ac_optarg ;;
983 -localedir | --localedir | --localedi | --localed | --locale)
985 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
986 localedir=$ac_optarg ;;
988 -localstatedir | --localstatedir | --localstatedi | --localstated \
989 | --localstate | --localstat | --localsta | --localst | --locals)
990 ac_prev=localstatedir ;;
991 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
992 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
993 localstatedir=$ac_optarg ;;
995 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
997 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1000 -nfp | --nfp | --nf)
1001 # Obsolete; use --without-fp.
1004 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1005 | --no-cr | --no-c | -n)
1008 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1009 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1012 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1013 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1014 | --oldin | --oldi | --old | --ol | --o)
1015 ac_prev=oldincludedir ;;
1016 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1017 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1018 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1019 oldincludedir=$ac_optarg ;;
1021 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1023 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1024 prefix=$ac_optarg ;;
1026 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1027 | --program-pre | --program-pr | --program-p)
1028 ac_prev=program_prefix ;;
1029 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1030 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1031 program_prefix=$ac_optarg ;;
1033 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1034 | --program-suf | --program-su | --program-s)
1035 ac_prev=program_suffix ;;
1036 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1037 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1038 program_suffix=$ac_optarg ;;
1040 -program-transform-name | --program-transform-name \
1041 | --program-transform-nam | --program-transform-na \
1042 | --program-transform-n | --program-transform- \
1043 | --program-transform | --program-transfor \
1044 | --program-transfo | --program-transf \
1045 | --program-trans | --program-tran \
1046 | --progr-tra | --program-tr | --program-t)
1047 ac_prev=program_transform_name ;;
1048 -program-transform-name=* | --program-transform-name=* \
1049 | --program-transform-nam=* | --program-transform-na=* \
1050 | --program-transform-n=* | --program-transform-=* \
1051 | --program-transform=* | --program-transfor=* \
1052 | --program-transfo=* | --program-transf=* \
1053 | --program-trans=* | --program-tran=* \
1054 | --progr-tra=* | --program-tr=* | --program-t=*)
1055 program_transform_name=$ac_optarg ;;
1057 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1059 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1060 pdfdir=$ac_optarg ;;
1062 -psdir | --psdir | --psdi | --psd | --ps)
1064 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1067 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1068 | -silent | --silent | --silen | --sile | --sil)
1071 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1073 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1075 sbindir=$ac_optarg ;;
1077 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1078 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1079 | --sharedst | --shareds | --shared | --share | --shar \
1081 ac_prev=sharedstatedir ;;
1082 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1083 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1084 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1086 sharedstatedir=$ac_optarg ;;
1088 -site | --site | --sit)
1090 -site=* | --site=* | --sit=*)
1093 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1095 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1096 srcdir=$ac_optarg ;;
1098 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1099 | --syscon | --sysco | --sysc | --sys | --sy)
1100 ac_prev=sysconfdir ;;
1101 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1102 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1103 sysconfdir=$ac_optarg ;;
1105 -target | --target | --targe | --targ | --tar | --ta | --t)
1106 ac_prev=target_alias ;;
1107 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1108 target_alias=$ac_optarg ;;
1110 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1113 -version | --version | --versio | --versi | --vers | -V)
1114 ac_init_version=: ;;
1117 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1118 # Reject names that are not valid shell variable names.
1119 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1120 as_fn_error $? "invalid package name: $ac_useropt"
1121 ac_useropt_orig=$ac_useropt
1122 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1123 case $ac_user_opts in
1127 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1128 ac_unrecognized_sep=', ';;
1130 eval with_$ac_useropt=\$ac_optarg ;;
1132 -without-* | --without-*)
1133 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1134 # Reject names that are not valid shell variable names.
1135 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1136 as_fn_error $? "invalid package name: $ac_useropt"
1137 ac_useropt_orig=$ac_useropt
1138 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1139 case $ac_user_opts in
1143 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1144 ac_unrecognized_sep=', ';;
1146 eval with_$ac_useropt=no ;;
1149 # Obsolete; use --with-x.
1152 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1153 | --x-incl | --x-inc | --x-in | --x-i)
1154 ac_prev=x_includes ;;
1155 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1156 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1157 x_includes=$ac_optarg ;;
1159 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1160 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1161 ac_prev=x_libraries ;;
1162 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1163 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1164 x_libraries=$ac_optarg ;;
1166 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1167 Try \`$0 --help' for more information"
1171 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1172 # Reject names that are not valid shell variable names.
1173 case $ac_envvar in #(
1174 '' | [0-9]* | *[!_$as_cr_alnum]* )
1175 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1177 eval $ac_envvar=\$ac_optarg
1178 export $ac_envvar ;;
1181 # FIXME: should be removed in autoconf 3.0.
1182 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1183 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1184 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1185 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1191 if test -n "$ac_prev"; then
1192 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1193 as_fn_error $? "missing argument to $ac_option"
1196 if test -n "$ac_unrecognized_opts"; then
1197 case $enable_option_checking in
1199 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1200 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1204 # Check all directory arguments for consistency.
1205 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1206 datadir sysconfdir sharedstatedir localstatedir includedir \
1207 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1208 libdir localedir mandir
1210 eval ac_val=\$$ac_var
1211 # Remove trailing slashes.
1214 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1215 eval $ac_var=\$ac_val;;
1217 # Be sure to have absolute directory names.
1219 [\\/$]* | ?:[\\/]* ) continue;;
1220 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1222 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1225 # There might be people who depend on the old broken behavior: `$host'
1226 # used to hold the argument of --host etc.
1227 # FIXME: To remove some day.
1230 target=$target_alias
1232 # FIXME: To remove some day.
1233 if test "x$host_alias" != x; then
1234 if test "x$build_alias" = x; then
1235 cross_compiling=maybe
1236 elif test "x$build_alias" != "x$host_alias"; then
1242 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1244 test "$silent" = yes && exec 6>/dev/null
1247 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1248 ac_ls_di=`ls -di .` &&
1249 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1250 as_fn_error $? "working directory cannot be determined"
1251 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1252 as_fn_error $? "pwd does not report name of working directory"
1255 # Find the source files, if location was not specified.
1256 if test -z "$srcdir"; then
1257 ac_srcdir_defaulted=yes
1258 # Try the directory containing this script, then the parent directory.
1259 ac_confdir=`$as_dirname -- "$as_myself" ||
1260 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1261 X"$as_myself" : 'X\(//\)[^/]' \| \
1262 X"$as_myself" : 'X\(//\)$' \| \
1263 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1264 $as_echo X"$as_myself" |
1265 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1283 if test ! -r "$srcdir/$ac_unique_file"; then
1287 ac_srcdir_defaulted=no
1289 if test ! -r "$srcdir/$ac_unique_file"; then
1290 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1291 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1293 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1295 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1297 # When building in place, set srcdir=.
1298 if test "$ac_abs_confdir" = "$ac_pwd"; then
1301 # Remove unnecessary trailing slashes from srcdir.
1302 # Double slashes in file names in object file debugging info
1303 # mess up M-x gdb in Emacs.
1305 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1307 for ac_var in $ac_precious_vars; do
1308 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1309 eval ac_env_${ac_var}_value=\$${ac_var}
1310 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1311 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1315 # Report the --help message.
1317 if test "$ac_init_help" = "long"; then
1318 # Omit some internal or obsolete options to make the list less imposing.
1319 # This message is too long to be a string in the A/UX 3.1 sh.
1321 \`configure' configures gacela 0.5 to adapt to many kinds of systems.
1323 Usage: $0 [OPTION]... [VAR=VALUE]...
1325 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1326 VAR=VALUE. See below for descriptions of some of the useful variables.
1328 Defaults for the options are specified in brackets.
1331 -h, --help display this help and exit
1332 --help=short display options specific to this package
1333 --help=recursive display the short help of all the included packages
1334 -V, --version display version information and exit
1335 -q, --quiet, --silent do not print \`checking ...' messages
1336 --cache-file=FILE cache test results in FILE [disabled]
1337 -C, --config-cache alias for \`--cache-file=config.cache'
1338 -n, --no-create do not create output files
1339 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1341 Installation directories:
1342 --prefix=PREFIX install architecture-independent files in PREFIX
1343 [$ac_default_prefix]
1344 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1347 By default, \`make install' will install all the files in
1348 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1349 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1350 for instance \`--prefix=\$HOME'.
1352 For better control, use the options below.
1354 Fine tuning of the installation directories:
1355 --bindir=DIR user executables [EPREFIX/bin]
1356 --sbindir=DIR system admin executables [EPREFIX/sbin]
1357 --libexecdir=DIR program executables [EPREFIX/libexec]
1358 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1359 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1360 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1361 --libdir=DIR object code libraries [EPREFIX/lib]
1362 --includedir=DIR C header files [PREFIX/include]
1363 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1364 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1365 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1366 --infodir=DIR info documentation [DATAROOTDIR/info]
1367 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1368 --mandir=DIR man documentation [DATAROOTDIR/man]
1369 --docdir=DIR documentation root [DATAROOTDIR/doc/gacela]
1370 --htmldir=DIR html documentation [DOCDIR]
1371 --dvidir=DIR dvi documentation [DOCDIR]
1372 --pdfdir=DIR pdf documentation [DOCDIR]
1373 --psdir=DIR ps documentation [DOCDIR]
1379 --program-prefix=PREFIX prepend PREFIX to installed program names
1380 --program-suffix=SUFFIX append SUFFIX to installed program names
1381 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1384 --build=BUILD configure for building on BUILD [guessed]
1385 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1389 if test -n "$ac_init_help"; then
1390 case $ac_init_help in
1391 short | recursive ) echo "Configuration of gacela 0.5:";;
1396 --disable-option-checking ignore unrecognized --enable/--with options
1397 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1398 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1399 --enable-shared[=PKGS] build shared libraries [default=yes]
1400 --enable-static[=PKGS] build static libraries [default=yes]
1401 --enable-fast-install[=PKGS]
1402 optimize for fast installation [default=yes]
1403 --disable-dependency-tracking speeds up one-time build
1404 --enable-dependency-tracking do not reject slow dependency extractors
1405 --disable-libtool-lock avoid locking (might break parallel builds)
1408 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1409 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1410 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1412 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1413 --with-sysroot=DIR Search for dependent libraries within DIR
1414 (or the compiler's sysroot if not specified).
1416 Some influential environment variables:
1417 CC C compiler command
1418 CFLAGS C compiler flags
1419 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1420 nonstandard directory <lib dir>
1421 LIBS libraries to pass to the linker, e.g. -l<library>
1422 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1423 you have headers in a nonstandard directory <include dir>
1425 PKG_CONFIG path to pkg-config utility
1427 directories to add to pkg-config's search path
1429 path overriding pkg-config's built-in search path
1431 C compiler flags for GUILE, overriding pkg-config
1432 GUILE_LIBS linker flags for GUILE, overriding pkg-config
1434 Use these variables to override the choices made by `configure' or to help
1435 it to find libraries and programs with nonstandard names/locations.
1437 Report bugs to <jsf@jsancho.org>.
1442 if test "$ac_init_help" = "recursive"; then
1443 # If there are subdirs, report their specific --help.
1444 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1445 test -d "$ac_dir" ||
1446 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1451 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1453 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1454 # A ".." for each directory in $ac_dir_suffix.
1455 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1456 case $ac_top_builddir_sub in
1457 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1458 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1461 ac_abs_top_builddir=$ac_pwd
1462 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1463 # for backward compatibility:
1464 ac_top_builddir=$ac_top_build_prefix
1467 .) # We are building in place.
1469 ac_top_srcdir=$ac_top_builddir_sub
1470 ac_abs_top_srcdir=$ac_pwd ;;
1471 [\\/]* | ?:[\\/]* ) # Absolute name.
1472 ac_srcdir=$srcdir$ac_dir_suffix;
1473 ac_top_srcdir=$srcdir
1474 ac_abs_top_srcdir=$srcdir ;;
1476 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1477 ac_top_srcdir=$ac_top_build_prefix$srcdir
1478 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1480 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1482 cd "$ac_dir" || { ac_status=$?; continue; }
1483 # Check for guested configure.
1484 if test -f "$ac_srcdir/configure.gnu"; then
1486 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1487 elif test -f "$ac_srcdir/configure"; then
1489 $SHELL "$ac_srcdir/configure" --help=recursive
1491 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1493 cd "$ac_pwd" || { ac_status=$?; break; }
1497 test -n "$ac_init_help" && exit $ac_status
1498 if $ac_init_version; then
1500 gacela configure 0.5
1501 generated by GNU Autoconf 2.69
1503 Copyright (C) 2012 Free Software Foundation, Inc.
1504 This configure script is free software; the Free Software Foundation
1505 gives unlimited permission to copy, distribute and modify it.
1510 ## ------------------------ ##
1511 ## Autoconf initialization. ##
1512 ## ------------------------ ##
1514 # ac_fn_c_try_compile LINENO
1515 # --------------------------
1516 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1517 ac_fn_c_try_compile ()
1519 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1520 rm -f conftest.$ac_objext
1521 if { { ac_try="$ac_compile"
1523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1524 *) ac_try_echo=$ac_try;;
1526 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1527 $as_echo "$ac_try_echo"; } >&5
1528 (eval "$ac_compile") 2>conftest.err
1530 if test -s conftest.err; then
1531 grep -v '^ *+' conftest.err >conftest.er1
1532 cat conftest.er1 >&5
1533 mv -f conftest.er1 conftest.err
1535 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1536 test $ac_status = 0; } && {
1537 test -z "$ac_c_werror_flag" ||
1538 test ! -s conftest.err
1539 } && test -s conftest.$ac_objext; then :
1542 $as_echo "$as_me: failed program was:" >&5
1543 sed 's/^/| /' conftest.$ac_ext >&5
1547 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1548 as_fn_set_status $ac_retval
1550 } # ac_fn_c_try_compile
1552 # ac_fn_c_try_link LINENO
1553 # -----------------------
1554 # Try to link conftest.$ac_ext, and return whether this succeeded.
1557 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1558 rm -f conftest.$ac_objext conftest$ac_exeext
1559 if { { ac_try="$ac_link"
1561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1562 *) ac_try_echo=$ac_try;;
1564 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1565 $as_echo "$ac_try_echo"; } >&5
1566 (eval "$ac_link") 2>conftest.err
1568 if test -s conftest.err; then
1569 grep -v '^ *+' conftest.err >conftest.er1
1570 cat conftest.er1 >&5
1571 mv -f conftest.er1 conftest.err
1573 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1574 test $ac_status = 0; } && {
1575 test -z "$ac_c_werror_flag" ||
1576 test ! -s conftest.err
1577 } && test -s conftest$ac_exeext && {
1578 test "$cross_compiling" = yes ||
1579 test -x conftest$ac_exeext
1583 $as_echo "$as_me: failed program was:" >&5
1584 sed 's/^/| /' conftest.$ac_ext >&5
1588 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1589 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1590 # interfere with the next link command; also delete a directory that is
1591 # left behind by Apple's compiler. We do this before executing the actions.
1592 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1593 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1594 as_fn_set_status $ac_retval
1596 } # ac_fn_c_try_link
1598 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1599 # -------------------------------------------------------
1600 # Tests whether HEADER exists and can be compiled using the include files in
1601 # INCLUDES, setting the cache variable VAR accordingly.
1602 ac_fn_c_check_header_compile ()
1604 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1606 $as_echo_n "checking for $2... " >&6; }
1607 if eval \${$3+:} false; then :
1608 $as_echo_n "(cached) " >&6
1610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1611 /* end confdefs.h. */
1615 if ac_fn_c_try_compile "$LINENO"; then :
1620 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1624 $as_echo "$ac_res" >&6; }
1625 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1627 } # ac_fn_c_check_header_compile
1629 # ac_fn_c_try_cpp LINENO
1630 # ----------------------
1631 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1634 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1635 if { { ac_try="$ac_cpp conftest.$ac_ext"
1637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1638 *) ac_try_echo=$ac_try;;
1640 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1641 $as_echo "$ac_try_echo"; } >&5
1642 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1644 if test -s conftest.err; then
1645 grep -v '^ *+' conftest.err >conftest.er1
1646 cat conftest.er1 >&5
1647 mv -f conftest.er1 conftest.err
1649 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1650 test $ac_status = 0; } > conftest.i && {
1651 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1652 test ! -s conftest.err
1656 $as_echo "$as_me: failed program was:" >&5
1657 sed 's/^/| /' conftest.$ac_ext >&5
1661 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1662 as_fn_set_status $ac_retval
1666 # ac_fn_c_try_run LINENO
1667 # ----------------------
1668 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1669 # that executables *can* be run.
1672 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1673 if { { ac_try="$ac_link"
1675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1676 *) ac_try_echo=$ac_try;;
1678 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1679 $as_echo "$ac_try_echo"; } >&5
1680 (eval "$ac_link") 2>&5
1682 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1683 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1684 { { case "(($ac_try" in
1685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1686 *) ac_try_echo=$ac_try;;
1688 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1689 $as_echo "$ac_try_echo"; } >&5
1690 (eval "$ac_try") 2>&5
1692 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1693 test $ac_status = 0; }; }; then :
1696 $as_echo "$as_me: program exited with status $ac_status" >&5
1697 $as_echo "$as_me: failed program was:" >&5
1698 sed 's/^/| /' conftest.$ac_ext >&5
1700 ac_retval=$ac_status
1702 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1703 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1704 as_fn_set_status $ac_retval
1708 # ac_fn_c_check_func LINENO FUNC VAR
1709 # ----------------------------------
1710 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1711 ac_fn_c_check_func ()
1713 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1715 $as_echo_n "checking for $2... " >&6; }
1716 if eval \${$3+:} false; then :
1717 $as_echo_n "(cached) " >&6
1719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1720 /* end confdefs.h. */
1721 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1722 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1723 #define $2 innocuous_$2
1725 /* System header to define __stub macros and hopefully few prototypes,
1726 which can conflict with char $2 (); below.
1727 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1728 <limits.h> exists even on freestanding compilers. */
1731 # include <limits.h>
1733 # include <assert.h>
1738 /* Override any GCC internal prototype to avoid an error.
1739 Use char because int might match the return type of a GCC
1740 builtin and then its argument prototype would still apply. */
1745 /* The GNU C library defines this for functions which it implements
1746 to always fail with ENOSYS. Some functions are actually named
1747 something starting with __ and the normal name is an alias. */
1748 #if defined __stub_$2 || defined __stub___$2
1760 if ac_fn_c_try_link "$LINENO"; then :
1765 rm -f core conftest.err conftest.$ac_objext \
1766 conftest$ac_exeext conftest.$ac_ext
1769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1770 $as_echo "$ac_res" >&6; }
1771 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1773 } # ac_fn_c_check_func
1774 cat >config.log <<_ACEOF
1775 This file contains any messages produced by compilers while
1776 running configure, to aid debugging if configure makes a mistake.
1778 It was created by gacela $as_me 0.5, which was
1779 generated by GNU Autoconf 2.69. Invocation command line was
1791 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1792 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1793 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1794 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1795 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1797 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1798 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1800 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1801 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1802 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1803 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1804 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1805 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1806 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1810 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1814 test -z "$as_dir" && as_dir=.
1815 $as_echo "PATH: $as_dir"
1831 # Keep a trace of the command line.
1832 # Strip out --no-create and --no-recursion so they do not pile up.
1833 # Strip out --silent because we don't want to record it for future runs.
1834 # Also quote any args containing shell meta-characters.
1835 # Make two passes to allow for proper duplicate-argument suppression.
1839 ac_must_keep_next=false
1845 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1846 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1847 | -silent | --silent | --silen | --sile | --sil)
1850 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1853 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1855 as_fn_append ac_configure_args1 " '$ac_arg'"
1856 if test $ac_must_keep_next = true; then
1857 ac_must_keep_next=false # Got value, back to normal.
1860 *=* | --config-cache | -C | -disable-* | --disable-* \
1861 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1862 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1863 | -with-* | --with-* | -without-* | --without-* | --x)
1864 case "$ac_configure_args0 " in
1865 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1868 -* ) ac_must_keep_next=true ;;
1871 as_fn_append ac_configure_args " '$ac_arg'"
1876 { ac_configure_args0=; unset ac_configure_args0;}
1877 { ac_configure_args1=; unset ac_configure_args1;}
1879 # When interrupted or exit'd, cleanup temporary files, and complete
1880 # config.log. We remove comments because anyway the quotes in there
1881 # would cause problems or look ugly.
1882 # WARNING: Use '\'' to represent an apostrophe within the trap.
1883 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1884 trap 'exit_status=$?
1885 # Save into config.log some information that might help in debugging.
1889 $as_echo "## ---------------- ##
1890 ## Cache variables. ##
1891 ## ---------------- ##"
1893 # The following way of writing the cache mishandles newlines in values,
1895 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1896 eval ac_val=\$$ac_var
1900 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1901 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1904 _ | IFS | as_nl) ;; #(
1905 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1906 *) { eval $ac_var=; unset $ac_var;} ;;
1911 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1912 *${as_nl}ac_space=\ *)
1914 "s/'\''/'\''\\\\'\'''\''/g;
1915 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1918 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1925 $as_echo "## ----------------- ##
1926 ## Output variables. ##
1927 ## ----------------- ##"
1929 for ac_var in $ac_subst_vars
1931 eval ac_val=\$$ac_var
1933 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1935 $as_echo "$ac_var='\''$ac_val'\''"
1939 if test -n "$ac_subst_files"; then
1940 $as_echo "## ------------------- ##
1941 ## File substitutions. ##
1942 ## ------------------- ##"
1944 for ac_var in $ac_subst_files
1946 eval ac_val=\$$ac_var
1948 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1950 $as_echo "$ac_var='\''$ac_val'\''"
1955 if test -s confdefs.h; then
1956 $as_echo "## ----------- ##
1963 test "$ac_signal" != 0 &&
1964 $as_echo "$as_me: caught signal $ac_signal"
1965 $as_echo "$as_me: exit $exit_status"
1967 rm -f core *.core core.conftest.* &&
1968 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1971 for ac_signal in 1 2 13 15; do
1972 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1976 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1977 rm -f -r conftest* confdefs.h
1979 $as_echo "/* confdefs.h */" > confdefs.h
1981 # Predefined preprocessor variables.
1983 cat >>confdefs.h <<_ACEOF
1984 #define PACKAGE_NAME "$PACKAGE_NAME"
1987 cat >>confdefs.h <<_ACEOF
1988 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1991 cat >>confdefs.h <<_ACEOF
1992 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1995 cat >>confdefs.h <<_ACEOF
1996 #define PACKAGE_STRING "$PACKAGE_STRING"
1999 cat >>confdefs.h <<_ACEOF
2000 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2003 cat >>confdefs.h <<_ACEOF
2004 #define PACKAGE_URL "$PACKAGE_URL"
2008 # Let the site file select an alternate cache file if it wants to.
2009 # Prefer an explicitly selected file to automatically selected ones.
2012 if test -n "$CONFIG_SITE"; then
2013 # We do not want a PATH search for config.site.
2014 case $CONFIG_SITE in #((
2015 -*) ac_site_file1=./$CONFIG_SITE;;
2016 */*) ac_site_file1=$CONFIG_SITE;;
2017 *) ac_site_file1=./$CONFIG_SITE;;
2019 elif test "x$prefix" != xNONE; then
2020 ac_site_file1=$prefix/share/config.site
2021 ac_site_file2=$prefix/etc/config.site
2023 ac_site_file1=$ac_default_prefix/share/config.site
2024 ac_site_file2=$ac_default_prefix/etc/config.site
2026 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2028 test "x$ac_site_file" = xNONE && continue
2029 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2030 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2031 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2032 sed 's/^/| /' "$ac_site_file" >&5
2034 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2035 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2036 as_fn_error $? "failed to load site script $ac_site_file
2037 See \`config.log' for more details" "$LINENO" 5; }
2041 if test -r "$cache_file"; then
2042 # Some versions of bash will fail to source /dev/null (special files
2043 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2044 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2045 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2046 $as_echo "$as_me: loading cache $cache_file" >&6;}
2048 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2049 *) . "./$cache_file";;
2053 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2054 $as_echo "$as_me: creating cache $cache_file" >&6;}
2058 # Check that the precious variables saved in the cache have kept the same
2060 ac_cache_corrupted=false
2061 for ac_var in $ac_precious_vars; do
2062 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2063 eval ac_new_set=\$ac_env_${ac_var}_set
2064 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2065 eval ac_new_val=\$ac_env_${ac_var}_value
2066 case $ac_old_set,$ac_new_set in
2068 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2069 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2070 ac_cache_corrupted=: ;;
2072 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2073 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2074 ac_cache_corrupted=: ;;
2077 if test "x$ac_old_val" != "x$ac_new_val"; then
2078 # differences in whitespace do not lead to failure.
2079 ac_old_val_w=`echo x $ac_old_val`
2080 ac_new_val_w=`echo x $ac_new_val`
2081 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2082 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2083 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2084 ac_cache_corrupted=:
2086 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2087 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2088 eval $ac_var=\$ac_old_val
2090 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2091 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2092 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2093 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2096 # Pass precious variables to config.status.
2097 if test "$ac_new_set" = set; then
2099 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2100 *) ac_arg=$ac_var=$ac_new_val ;;
2102 case " $ac_configure_args " in
2103 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2104 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2108 if $ac_cache_corrupted; then
2109 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2110 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2111 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2112 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2113 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2115 ## -------------------- ##
2116 ## Main body of script. ##
2117 ## -------------------- ##
2120 ac_cpp='$CPP $CPPFLAGS'
2121 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2122 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2123 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2126 am__api_version='1.11'
2129 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2130 if test -f "$ac_dir/install-sh"; then
2132 ac_install_sh="$ac_aux_dir/install-sh -c"
2134 elif test -f "$ac_dir/install.sh"; then
2136 ac_install_sh="$ac_aux_dir/install.sh -c"
2138 elif test -f "$ac_dir/shtool"; then
2140 ac_install_sh="$ac_aux_dir/shtool install -c"
2144 if test -z "$ac_aux_dir"; then
2145 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2148 # These three variables are undocumented and unsupported,
2149 # and are intended to be withdrawn in a future Autoconf release.
2150 # They can cause serious problems if a builder's source tree is in a directory
2151 # whose full name contains unusual characters.
2152 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2153 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2154 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2157 # Find a good install program. We prefer a C program (faster),
2158 # so one script is as good as another. But avoid the broken or
2159 # incompatible versions:
2160 # SysV /etc/install, /usr/sbin/install
2161 # SunOS /usr/etc/install
2162 # IRIX /sbin/install
2164 # AmigaOS /C/install, which installs bootblocks on floppy discs
2165 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2166 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2167 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2168 # OS/2's system install, which has a completely different semantic
2169 # ./install, which can be erroneously created by make from ./install.sh.
2170 # Reject install programs that cannot install multiple files.
2171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2172 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2173 if test -z "$INSTALL"; then
2174 if ${ac_cv_path_install+:} false; then :
2175 $as_echo_n "(cached) " >&6
2177 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2181 test -z "$as_dir" && as_dir=.
2182 # Account for people who put trailing slashes in PATH elements.
2183 case $as_dir/ in #((
2184 ./ | .// | /[cC]/* | \
2185 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2186 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2189 # OSF1 and SCO ODT 3.0 have their own names for install.
2190 # Don't use installbsd from OSF since it installs stuff as root
2192 for ac_prog in ginstall scoinst install; do
2193 for ac_exec_ext in '' $ac_executable_extensions; do
2194 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2195 if test $ac_prog = install &&
2196 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2197 # AIX install. It has an incompatible calling convention.
2199 elif test $ac_prog = install &&
2200 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2201 # program-specific install script used by HP pwplus--don't use.
2204 rm -rf conftest.one conftest.two conftest.dir
2205 echo one > conftest.one
2206 echo two > conftest.two
2208 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2209 test -s conftest.one && test -s conftest.two &&
2210 test -s conftest.dir/conftest.one &&
2211 test -s conftest.dir/conftest.two
2213 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2226 rm -rf conftest.one conftest.two conftest.dir
2229 if test "${ac_cv_path_install+set}" = set; then
2230 INSTALL=$ac_cv_path_install
2232 # As a last resort, use the slow shell script. Don't cache a
2233 # value for INSTALL within a source directory, because that will
2234 # break other packages using the cache if that directory is
2235 # removed, or if the value is a relative name.
2236 INSTALL=$ac_install_sh
2239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2240 $as_echo "$INSTALL" >&6; }
2242 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2243 # It thinks the first close brace ends the variable substitution.
2244 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2246 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2248 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2251 $as_echo_n "checking whether build environment is sane... " >&6; }
2254 echo timestamp > conftest.file
2255 # Reject unsafe characters in $srcdir or the absolute working directory
2256 # name. Accept space and tab only in the latter.
2260 *[\\\"\#\$\&\'\`$am_lf]*)
2261 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2264 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2265 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2268 # Do `set' in a subshell so we don't clobber the current shell's
2269 # arguments. Must try -L first in case configure is actually a
2270 # symlink; some systems play weird games with the mod time of symlinks
2271 # (eg FreeBSD returns the mod time of the symlink's containing
2274 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2275 if test "$*" = "X"; then
2277 set X `ls -t "$srcdir/configure" conftest.file`
2280 if test "$*" != "X $srcdir/configure conftest.file" \
2281 && test "$*" != "X conftest.file $srcdir/configure"; then
2283 # If neither matched, then we have a broken ls. This can happen
2284 # if, for instance, CONFIG_SHELL is bash and it inherits a
2285 # broken ls alias from the environment. This has actually
2286 # happened. Such a system could not be considered "sane".
2287 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2288 alias in your environment" "$LINENO" 5
2291 test "$2" = conftest.file
2297 as_fn_error $? "newly created file is older than distributed files!
2298 Check your system clock" "$LINENO" 5
2300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2301 $as_echo "yes" >&6; }
2302 test "$program_prefix" != NONE &&
2303 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2304 # Use a double $ so make ignores it.
2305 test "$program_suffix" != NONE &&
2306 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2307 # Double any \ or $.
2308 # By default was `s,x,x', remove it if useless.
2309 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2310 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2312 # expand $ac_aux_dir to an absolute path
2313 am_aux_dir=`cd $ac_aux_dir && pwd`
2315 if test x"${MISSING+set}" != xset; then
2318 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2320 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2323 # Use eval to expand $SHELL
2324 if eval "$MISSING --run true"; then
2325 am_missing_run="$MISSING --run "
2328 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2329 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2332 if test x"${install_sh}" != xset; then
2335 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2337 install_sh="\${SHELL} $am_aux_dir/install-sh"
2341 # Installed binaries are usually stripped using `strip' when the user
2342 # run `make install-strip'. However `strip' might not be the right
2343 # tool to use in cross-compilation environments, therefore Automake
2344 # will honor the `STRIP' environment variable to overrule this program.
2345 if test "$cross_compiling" != no; then
2346 if test -n "$ac_tool_prefix"; then
2347 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2348 set dummy ${ac_tool_prefix}strip; ac_word=$2
2349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2350 $as_echo_n "checking for $ac_word... " >&6; }
2351 if ${ac_cv_prog_STRIP+:} false; then :
2352 $as_echo_n "(cached) " >&6
2354 if test -n "$STRIP"; then
2355 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2357 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2361 test -z "$as_dir" && as_dir=.
2362 for ac_exec_ext in '' $ac_executable_extensions; do
2363 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2364 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2365 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2374 STRIP=$ac_cv_prog_STRIP
2375 if test -n "$STRIP"; then
2376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2377 $as_echo "$STRIP" >&6; }
2379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2380 $as_echo "no" >&6; }
2385 if test -z "$ac_cv_prog_STRIP"; then
2387 # Extract the first word of "strip", so it can be a program name with args.
2388 set dummy strip; ac_word=$2
2389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2390 $as_echo_n "checking for $ac_word... " >&6; }
2391 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2392 $as_echo_n "(cached) " >&6
2394 if test -n "$ac_ct_STRIP"; then
2395 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2397 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2401 test -z "$as_dir" && as_dir=.
2402 for ac_exec_ext in '' $ac_executable_extensions; do
2403 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2404 ac_cv_prog_ac_ct_STRIP="strip"
2405 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2414 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2415 if test -n "$ac_ct_STRIP"; then
2416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2417 $as_echo "$ac_ct_STRIP" >&6; }
2419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2420 $as_echo "no" >&6; }
2423 if test "x$ac_ct_STRIP" = x; then
2426 case $cross_compiling:$ac_tool_warned in
2428 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2429 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2430 ac_tool_warned=yes ;;
2435 STRIP="$ac_cv_prog_STRIP"
2439 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2442 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2443 if test -z "$MKDIR_P"; then
2444 if ${ac_cv_path_mkdir+:} false; then :
2445 $as_echo_n "(cached) " >&6
2447 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2448 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2451 test -z "$as_dir" && as_dir=.
2452 for ac_prog in mkdir gmkdir; do
2453 for ac_exec_ext in '' $ac_executable_extensions; do
2454 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2455 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2456 'mkdir (GNU coreutils) '* | \
2457 'mkdir (coreutils) '* | \
2458 'mkdir (fileutils) '4.1*)
2459 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2469 test -d ./--version && rmdir ./--version
2470 if test "${ac_cv_path_mkdir+set}" = set; then
2471 MKDIR_P="$ac_cv_path_mkdir -p"
2473 # As a last resort, use the slow shell script. Don't cache a
2474 # value for MKDIR_P within a source directory, because that will
2475 # break other packages using the cache if that directory is
2476 # removed, or if the value is a relative name.
2477 MKDIR_P="$ac_install_sh -d"
2480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2481 $as_echo "$MKDIR_P" >&6; }
2485 [\\/$]* | ?:[\\/]*) ;;
2486 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2489 for ac_prog in gawk mawk nawk awk
2491 # Extract the first word of "$ac_prog", so it can be a program name with args.
2492 set dummy $ac_prog; ac_word=$2
2493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2494 $as_echo_n "checking for $ac_word... " >&6; }
2495 if ${ac_cv_prog_AWK+:} false; then :
2496 $as_echo_n "(cached) " >&6
2498 if test -n "$AWK"; then
2499 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2501 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2505 test -z "$as_dir" && as_dir=.
2506 for ac_exec_ext in '' $ac_executable_extensions; do
2507 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2508 ac_cv_prog_AWK="$ac_prog"
2509 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2519 if test -n "$AWK"; then
2520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2521 $as_echo "$AWK" >&6; }
2523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2524 $as_echo "no" >&6; }
2528 test -n "$AWK" && break
2531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2532 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2534 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2535 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2536 $as_echo_n "(cached) " >&6
2538 cat >conftest.make <<\_ACEOF
2541 @echo '@@@%%%=$(MAKE)=@@@%%%'
2543 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2544 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2546 eval ac_cv_prog_make_${ac_make}_set=yes;;
2548 eval ac_cv_prog_make_${ac_make}_set=no;;
2552 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2554 $as_echo "yes" >&6; }
2557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2558 $as_echo "no" >&6; }
2559 SET_MAKE="MAKE=${MAKE-make}"
2562 rm -rf .tst 2>/dev/null
2563 mkdir .tst 2>/dev/null
2564 if test -d .tst; then
2569 rmdir .tst 2>/dev/null
2571 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2572 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2573 # is not polluted with repeated "-I."
2574 am__isrc=' -I$(srcdir)'
2575 # test to see if srcdir already configured
2576 if test -f $srcdir/config.status; then
2577 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2581 # test whether we have cygpath
2582 if test -z "$CYGPATH_W"; then
2583 if (cygpath --version) >/dev/null 2>/dev/null; then
2584 CYGPATH_W='cygpath -w'
2591 # Define the identity of the package.
2596 cat >>confdefs.h <<_ACEOF
2597 #define PACKAGE "$PACKAGE"
2601 cat >>confdefs.h <<_ACEOF
2602 #define VERSION "$VERSION"
2605 # Some tools Automake needs.
2607 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2610 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2613 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2616 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2619 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2621 # We need awk for the "check" target. The system "awk" is bad on
2623 # Always define AMTAR for backward compatibility. Yes, it's still used
2624 # in the wild :-( We should find a proper way to deprecate it ...
2627 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2635 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
2636 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
2641 macro_version='2.4.2'
2642 macro_revision='1.3337'
2656 ltmain="$ac_aux_dir/ltmain.sh"
2658 # Make sure we can run config.sub.
2659 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2660 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2663 $as_echo_n "checking build system type... " >&6; }
2664 if ${ac_cv_build+:} false; then :
2665 $as_echo_n "(cached) " >&6
2667 ac_build_alias=$build_alias
2668 test "x$ac_build_alias" = x &&
2669 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2670 test "x$ac_build_alias" = x &&
2671 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2672 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2673 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2677 $as_echo "$ac_cv_build" >&6; }
2678 case $ac_cv_build in
2680 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2683 ac_save_IFS=$IFS; IFS='-'
2689 # Remember, the first character of IFS is used to create $*,
2690 # except with old shells:
2693 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2697 $as_echo_n "checking host system type... " >&6; }
2698 if ${ac_cv_host+:} false; then :
2699 $as_echo_n "(cached) " >&6
2701 if test "x$host_alias" = x; then
2702 ac_cv_host=$ac_cv_build
2704 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2705 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2710 $as_echo "$ac_cv_host" >&6; }
2713 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2716 ac_save_IFS=$IFS; IFS='-'
2722 # Remember, the first character of IFS is used to create $*,
2723 # except with old shells:
2726 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2729 # Backslashify metacharacters that are still active within
2730 # double-quoted strings.
2731 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
2733 # Same as above, but do not quote variable references.
2734 double_quote_subst='s/\(["`\\]\)/\\\1/g'
2736 # Sed substitution to delay expansion of an escaped shell variable in a
2737 # double_quote_subst'ed string.
2738 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
2740 # Sed substitution to delay expansion of an escaped single quote.
2741 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
2743 # Sed substitution to avoid accidental globbing in evaled expressions
2744 no_glob_subst='s/\*/\\\*/g'
2746 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
2747 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
2748 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
2750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
2751 $as_echo_n "checking how to print strings... " >&6; }
2752 # Test print first, because it will be a builtin if present.
2753 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
2754 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
2756 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
2759 # Use this function as a fallback that always works.
2760 func_fallback_echo ()
2762 eval 'cat <<_LTECHO_EOF
2766 ECHO='func_fallback_echo'
2769 # func_echo_all arg...
2770 # Invoke $ECHO with all args, space-separated.
2777 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
2778 $as_echo "printf" >&6; } ;;
2779 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
2780 $as_echo "print -r" >&6; } ;;
2781 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
2782 $as_echo "cat" >&6; } ;;
2798 DEPDIR="${am__leading_dot}deps"
2800 ac_config_commands="$ac_config_commands depfiles"
2803 am_make=${MAKE-make}
2804 cat > confinc << 'END'
2806 @echo this is the am__doit target
2809 # If we don't find an include directive, just comment out the code.
2810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
2811 $as_echo_n "checking for style of include used by $am_make... " >&6; }
2815 # First try GNU make style include.
2816 echo "include confinc" > confmf
2817 # Ignore all kinds of additional output from `make'.
2818 case `$am_make -s -f confmf 2> /dev/null` in #(
2819 *the\ am__doit\ target*)
2825 # Now try BSD make style include.
2826 if test "$am__include" = "#"; then
2827 echo '.include "confinc"' > confmf
2828 case `$am_make -s -f confmf 2> /dev/null` in #(
2829 *the\ am__doit\ target*)
2830 am__include=.include
2838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
2839 $as_echo "$_am_result" >&6; }
2840 rm -f confinc confmf
2842 # Check whether --enable-dependency-tracking was given.
2843 if test "${enable_dependency_tracking+set}" = set; then :
2844 enableval=$enable_dependency_tracking;
2847 if test "x$enable_dependency_tracking" != xno; then
2848 am_depcomp="$ac_aux_dir/depcomp"
2852 if test "x$enable_dependency_tracking" != xno; then
2862 ac_cpp='$CPP $CPPFLAGS'
2863 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2864 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2865 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2866 if test -n "$ac_tool_prefix"; then
2867 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2868 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2870 $as_echo_n "checking for $ac_word... " >&6; }
2871 if ${ac_cv_prog_CC+:} false; then :
2872 $as_echo_n "(cached) " >&6
2874 if test -n "$CC"; then
2875 ac_cv_prog_CC="$CC" # Let the user override the test.
2877 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2881 test -z "$as_dir" && as_dir=.
2882 for ac_exec_ext in '' $ac_executable_extensions; do
2883 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2884 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2885 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2895 if test -n "$CC"; then
2896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2897 $as_echo "$CC" >&6; }
2899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2900 $as_echo "no" >&6; }
2905 if test -z "$ac_cv_prog_CC"; then
2907 # Extract the first word of "gcc", so it can be a program name with args.
2908 set dummy gcc; ac_word=$2
2909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2910 $as_echo_n "checking for $ac_word... " >&6; }
2911 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2912 $as_echo_n "(cached) " >&6
2914 if test -n "$ac_ct_CC"; then
2915 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2917 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2921 test -z "$as_dir" && as_dir=.
2922 for ac_exec_ext in '' $ac_executable_extensions; do
2923 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2924 ac_cv_prog_ac_ct_CC="gcc"
2925 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2934 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2935 if test -n "$ac_ct_CC"; then
2936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2937 $as_echo "$ac_ct_CC" >&6; }
2939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2940 $as_echo "no" >&6; }
2943 if test "x$ac_ct_CC" = x; then
2946 case $cross_compiling:$ac_tool_warned in
2948 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2949 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2950 ac_tool_warned=yes ;;
2958 if test -z "$CC"; then
2959 if test -n "$ac_tool_prefix"; then
2960 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2961 set dummy ${ac_tool_prefix}cc; ac_word=$2
2962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2963 $as_echo_n "checking for $ac_word... " >&6; }
2964 if ${ac_cv_prog_CC+:} false; then :
2965 $as_echo_n "(cached) " >&6
2967 if test -n "$CC"; then
2968 ac_cv_prog_CC="$CC" # Let the user override the test.
2970 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2974 test -z "$as_dir" && as_dir=.
2975 for ac_exec_ext in '' $ac_executable_extensions; do
2976 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2977 ac_cv_prog_CC="${ac_tool_prefix}cc"
2978 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2988 if test -n "$CC"; then
2989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2990 $as_echo "$CC" >&6; }
2992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2993 $as_echo "no" >&6; }
2999 if test -z "$CC"; then
3000 # Extract the first word of "cc", so it can be a program name with args.
3001 set dummy cc; ac_word=$2
3002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3003 $as_echo_n "checking for $ac_word... " >&6; }
3004 if ${ac_cv_prog_CC+:} false; then :
3005 $as_echo_n "(cached) " >&6
3007 if test -n "$CC"; then
3008 ac_cv_prog_CC="$CC" # Let the user override the test.
3011 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3015 test -z "$as_dir" && as_dir=.
3016 for ac_exec_ext in '' $ac_executable_extensions; do
3017 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3018 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3019 ac_prog_rejected=yes
3023 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3030 if test $ac_prog_rejected = yes; then
3031 # We found a bogon in the path, so make sure we never use it.
3032 set dummy $ac_cv_prog_CC
3034 if test $# != 0; then
3035 # We chose a different compiler from the bogus one.
3036 # However, it has the same basename, so the bogon will be chosen
3037 # first if we set CC to just the basename; use the full file name.
3039 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3045 if test -n "$CC"; then
3046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3047 $as_echo "$CC" >&6; }
3049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3050 $as_echo "no" >&6; }
3055 if test -z "$CC"; then
3056 if test -n "$ac_tool_prefix"; then
3057 for ac_prog in cl.exe
3059 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3060 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3062 $as_echo_n "checking for $ac_word... " >&6; }
3063 if ${ac_cv_prog_CC+:} false; then :
3064 $as_echo_n "(cached) " >&6
3066 if test -n "$CC"; then
3067 ac_cv_prog_CC="$CC" # Let the user override the test.
3069 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3073 test -z "$as_dir" && as_dir=.
3074 for ac_exec_ext in '' $ac_executable_extensions; do
3075 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3076 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3077 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3087 if test -n "$CC"; then
3088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3089 $as_echo "$CC" >&6; }
3091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3092 $as_echo "no" >&6; }
3096 test -n "$CC" && break
3099 if test -z "$CC"; then
3101 for ac_prog in cl.exe
3103 # Extract the first word of "$ac_prog", so it can be a program name with args.
3104 set dummy $ac_prog; ac_word=$2
3105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3106 $as_echo_n "checking for $ac_word... " >&6; }
3107 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3108 $as_echo_n "(cached) " >&6
3110 if test -n "$ac_ct_CC"; then
3111 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3113 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3117 test -z "$as_dir" && as_dir=.
3118 for ac_exec_ext in '' $ac_executable_extensions; do
3119 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3120 ac_cv_prog_ac_ct_CC="$ac_prog"
3121 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3130 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3131 if test -n "$ac_ct_CC"; then
3132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3133 $as_echo "$ac_ct_CC" >&6; }
3135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3136 $as_echo "no" >&6; }
3140 test -n "$ac_ct_CC" && break
3143 if test "x$ac_ct_CC" = x; then
3146 case $cross_compiling:$ac_tool_warned in
3148 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3149 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3150 ac_tool_warned=yes ;;
3159 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3160 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3161 as_fn_error $? "no acceptable C compiler found in \$PATH
3162 See \`config.log' for more details" "$LINENO" 5; }
3164 # Provide some information about the compiler.
3165 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3168 for ac_option in --version -v -V -qversion; do
3169 { { ac_try="$ac_compiler $ac_option >&5"
3171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3172 *) ac_try_echo=$ac_try;;
3174 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3175 $as_echo "$ac_try_echo"; } >&5
3176 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3178 if test -s conftest.err; then
3180 ... rest of stderr output deleted ...
3181 10q' conftest.err >conftest.er1
3182 cat conftest.er1 >&5
3184 rm -f conftest.er1 conftest.err
3185 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3186 test $ac_status = 0; }
3189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3190 /* end confdefs.h. */
3200 ac_clean_files_save=$ac_clean_files
3201 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3202 # Try to create an executable without -o first, disregard a.out.
3203 # It will help us diagnose broken compilers, and finding out an intuition
3205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3206 $as_echo_n "checking whether the C compiler works... " >&6; }
3207 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3209 # The possible output files:
3210 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3213 for ac_file in $ac_files
3216 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3217 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3222 if { { ac_try="$ac_link_default"
3224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3225 *) ac_try_echo=$ac_try;;
3227 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3228 $as_echo "$ac_try_echo"; } >&5
3229 (eval "$ac_link_default") 2>&5
3231 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3232 test $ac_status = 0; }; then :
3233 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3234 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3235 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3236 # so that the user can short-circuit this test for compilers unknown to
3238 for ac_file in $ac_files ''
3240 test -f "$ac_file" || continue
3242 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3245 # We found the default executable, but exeext='' is most
3249 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3251 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3253 # We set ac_cv_exeext here because the later test for it is not
3254 # safe: cross compilers may not add the suffix if given an `-o'
3255 # argument, so we may need to know it at that point already.
3256 # Even if this section looks crufty: it has the advantage of
3263 test "$ac_cv_exeext" = no && ac_cv_exeext=
3268 if test -z "$ac_file"; then :
3269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3270 $as_echo "no" >&6; }
3271 $as_echo "$as_me: failed program was:" >&5
3272 sed 's/^/| /' conftest.$ac_ext >&5
3274 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3275 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3276 as_fn_error 77 "C compiler cannot create executables
3277 See \`config.log' for more details" "$LINENO" 5; }
3279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3280 $as_echo "yes" >&6; }
3282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3283 $as_echo_n "checking for C compiler default output file name... " >&6; }
3284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3285 $as_echo "$ac_file" >&6; }
3286 ac_exeext=$ac_cv_exeext
3288 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3289 ac_clean_files=$ac_clean_files_save
3290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3291 $as_echo_n "checking for suffix of executables... " >&6; }
3292 if { { ac_try="$ac_link"
3294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3295 *) ac_try_echo=$ac_try;;
3297 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3298 $as_echo "$ac_try_echo"; } >&5
3299 (eval "$ac_link") 2>&5
3301 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3302 test $ac_status = 0; }; then :
3303 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3304 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3305 # work properly (i.e., refer to `conftest.exe'), while it won't with
3307 for ac_file in conftest.exe conftest conftest.*; do
3308 test -f "$ac_file" || continue
3310 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3311 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3317 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3318 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3319 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3320 See \`config.log' for more details" "$LINENO" 5; }
3322 rm -f conftest conftest$ac_cv_exeext
3323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3324 $as_echo "$ac_cv_exeext" >&6; }
3326 rm -f conftest.$ac_ext
3327 EXEEXT=$ac_cv_exeext
3329 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3330 /* end confdefs.h. */
3335 FILE *f = fopen ("conftest.out", "w");
3336 return ferror (f) || fclose (f) != 0;
3342 ac_clean_files="$ac_clean_files conftest.out"
3343 # Check that the compiler produces executables we can run. If not, either
3344 # the compiler is broken, or we cross compile.
3345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3346 $as_echo_n "checking whether we are cross compiling... " >&6; }
3347 if test "$cross_compiling" != yes; then
3348 { { ac_try="$ac_link"
3350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3351 *) ac_try_echo=$ac_try;;
3353 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3354 $as_echo "$ac_try_echo"; } >&5
3355 (eval "$ac_link") 2>&5
3357 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3358 test $ac_status = 0; }
3359 if { ac_try='./conftest$ac_cv_exeext'
3360 { { case "(($ac_try" in
3361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3362 *) ac_try_echo=$ac_try;;
3364 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3365 $as_echo "$ac_try_echo"; } >&5
3366 (eval "$ac_try") 2>&5
3368 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3369 test $ac_status = 0; }; }; then
3372 if test "$cross_compiling" = maybe; then
3375 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3376 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3377 as_fn_error $? "cannot run C compiled programs.
3378 If you meant to cross compile, use \`--host'.
3379 See \`config.log' for more details" "$LINENO" 5; }
3383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3384 $as_echo "$cross_compiling" >&6; }
3386 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3387 ac_clean_files=$ac_clean_files_save
3388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3389 $as_echo_n "checking for suffix of object files... " >&6; }
3390 if ${ac_cv_objext+:} false; then :
3391 $as_echo_n "(cached) " >&6
3393 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3394 /* end confdefs.h. */
3404 rm -f conftest.o conftest.obj
3405 if { { ac_try="$ac_compile"
3407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3408 *) ac_try_echo=$ac_try;;
3410 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3411 $as_echo "$ac_try_echo"; } >&5
3412 (eval "$ac_compile") 2>&5
3414 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3415 test $ac_status = 0; }; then :
3416 for ac_file in conftest.o conftest.obj conftest.*; do
3417 test -f "$ac_file" || continue;
3419 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3420 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3425 $as_echo "$as_me: failed program was:" >&5
3426 sed 's/^/| /' conftest.$ac_ext >&5
3428 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3429 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3430 as_fn_error $? "cannot compute suffix of object files: cannot compile
3431 See \`config.log' for more details" "$LINENO" 5; }
3433 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3436 $as_echo "$ac_cv_objext" >&6; }
3437 OBJEXT=$ac_cv_objext
3439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3440 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3441 if ${ac_cv_c_compiler_gnu+:} false; then :
3442 $as_echo_n "(cached) " >&6
3444 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3445 /* end confdefs.h. */
3458 if ac_fn_c_try_compile "$LINENO"; then :
3463 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3464 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3468 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3469 if test $ac_compiler_gnu = yes; then
3474 ac_test_CFLAGS=${CFLAGS+set}
3475 ac_save_CFLAGS=$CFLAGS
3476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3477 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3478 if ${ac_cv_prog_cc_g+:} false; then :
3479 $as_echo_n "(cached) " >&6
3481 ac_save_c_werror_flag=$ac_c_werror_flag
3482 ac_c_werror_flag=yes
3485 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3486 /* end confdefs.h. */
3496 if ac_fn_c_try_compile "$LINENO"; then :
3500 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3501 /* end confdefs.h. */
3511 if ac_fn_c_try_compile "$LINENO"; then :
3514 ac_c_werror_flag=$ac_save_c_werror_flag
3516 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3517 /* end confdefs.h. */
3527 if ac_fn_c_try_compile "$LINENO"; then :
3530 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3532 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3534 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3535 ac_c_werror_flag=$ac_save_c_werror_flag
3537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3538 $as_echo "$ac_cv_prog_cc_g" >&6; }
3539 if test "$ac_test_CFLAGS" = set; then
3540 CFLAGS=$ac_save_CFLAGS
3541 elif test $ac_cv_prog_cc_g = yes; then
3542 if test "$GCC" = yes; then
3548 if test "$GCC" = yes; then
3554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3555 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3556 if ${ac_cv_prog_cc_c89+:} false; then :
3557 $as_echo_n "(cached) " >&6
3559 ac_cv_prog_cc_c89=no
3561 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3562 /* end confdefs.h. */
3566 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3567 struct buf { int x; };
3568 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3569 static char *e (p, i)
3575 static char *f (char * (*g) (char **, int), char **p, ...)
3580 s = g (p, va_arg (v,int));
3585 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3586 function prototypes and stuff, but not '\xHH' hex character constants.
3587 These don't provoke an error unfortunately, instead are silently treated
3588 as 'x'. The following induces an error, until -std is added to get
3589 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3590 array size at least. It's necessary to write '\x00'==0 to get something
3591 that's true only with -std. */
3592 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3594 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3595 inside strings and character constants. */
3597 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3599 int test (int i, double x);
3600 struct s1 {int (*f) (int a);};
3601 struct s2 {int (*f) (double a);};
3602 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3608 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3613 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3614 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3616 CC="$ac_save_CC $ac_arg"
3617 if ac_fn_c_try_compile "$LINENO"; then :
3618 ac_cv_prog_cc_c89=$ac_arg
3620 rm -f core conftest.err conftest.$ac_objext
3621 test "x$ac_cv_prog_cc_c89" != "xno" && break
3623 rm -f conftest.$ac_ext
3628 case "x$ac_cv_prog_cc_c89" in
3630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3631 $as_echo "none needed" >&6; } ;;
3633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3634 $as_echo "unsupported" >&6; } ;;
3636 CC="$CC $ac_cv_prog_cc_c89"
3637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3638 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3640 if test "x$ac_cv_prog_cc_c89" != xno; then :
3645 ac_cpp='$CPP $CPPFLAGS'
3646 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3647 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3648 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3650 depcc="$CC" am_compiler_list=
3652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3653 $as_echo_n "checking dependency style of $depcc... " >&6; }
3654 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3655 $as_echo_n "(cached) " >&6
3657 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3658 # We make a subdir and do the tests there. Otherwise we can end up
3659 # making bogus files that we don't know about and never remove. For
3660 # instance it was reported that on HP-UX the gcc test will end up
3661 # making a dummy file named `D' -- because `-MD' means `put the output
3665 # Copy depcomp to subdir because otherwise we won't find it if we're
3666 # using a relative directory.
3667 cp "$am_depcomp" conftest.dir
3669 # We will build objects and dependencies in a subdirectory because
3670 # it helps to detect inapplicable dependency modes. For instance
3671 # both Tru64's cc and ICC support -MD to output dependencies as a
3672 # side effect of compilation, but ICC will put the dependencies in
3673 # the current directory while Tru64 will put them in the object
3677 am_cv_CC_dependencies_compiler_type=none
3678 if test "$am_compiler_list" = ""; then
3679 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3682 case " $depcc " in #(
3683 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3686 for depmode in $am_compiler_list; do
3687 # Setup a source with many dependencies, because some compilers
3688 # like to wrap large dependency lists on column 80 (with \), and
3689 # we should not choose a depcomp mode which is confused by this.
3691 # We need to recreate these files for each test, as the compiler may
3692 # overwrite some of them when testing with obscure command lines.
3693 # This happens at least with the AIX C compiler.
3695 for i in 1 2 3 4 5 6; do
3696 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3697 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3698 # Solaris 8's {/usr,}/bin/sh.
3699 touch sub/conftst$i.h
3701 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3703 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3704 # mode. It turns out that the SunPro C++ compiler does not properly
3705 # handle `-M -o', and we need to detect this. Also, some Intel
3706 # versions had trouble with output in subdirs
3707 am__obj=sub/conftest.${OBJEXT-o}
3708 am__minus_obj="-o $am__obj"
3711 # This depmode causes a compiler race in universal mode.
3712 test "$am__universal" = false || continue
3715 # after this tag, mechanisms are not by side-effect, so they'll
3716 # only be used when explicitly requested
3717 if test "x$enable_dependency_tracking" = xyes; then
3723 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3724 # This compiler won't grok `-c -o', but also, the minuso test has
3725 # not run yet. These depmodes are late enough in the game, and
3726 # so weak that their functioning should not be impacted.
3727 am__obj=conftest.${OBJEXT-o}
3732 if depmode=$depmode \
3733 source=sub/conftest.c object=$am__obj \
3734 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3735 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3736 >/dev/null 2>conftest.err &&
3737 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3738 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3739 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3740 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3741 # icc doesn't choke on unknown options, it will just issue warnings
3742 # or remarks (even with -Werror). So we grep stderr for any message
3743 # that says an option was ignored or not supported.
3744 # When given -MP, icc 7.0 and 7.1 complain thusly:
3745 # icc: Command line warning: ignoring option '-M'; no argument required
3746 # The diagnosis changed in icc 8.0:
3747 # icc: Command line remark: option '-MP' not supported
3748 if (grep 'ignoring option' conftest.err ||
3749 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3750 am_cv_CC_dependencies_compiler_type=$depmode
3759 am_cv_CC_dependencies_compiler_type=none
3763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3764 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3765 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3768 test "x$enable_dependency_tracking" != xno \
3769 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3771 am__fastdepCC_FALSE='#'
3773 am__fastdepCC_TRUE='#'
3774 am__fastdepCC_FALSE=
3778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
3779 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
3780 if ${ac_cv_path_SED+:} false; then :
3781 $as_echo_n "(cached) " >&6
3783 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
3784 for ac_i in 1 2 3 4 5 6 7; do
3785 ac_script="$ac_script$as_nl$ac_script"
3787 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
3788 { ac_script=; unset ac_script;}
3789 if test -z "$SED"; then
3790 ac_path_SED_found=false
3791 # Loop through the user's path and test for each of PROGNAME-LIST
3792 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3796 test -z "$as_dir" && as_dir=.
3797 for ac_prog in sed gsed; do
3798 for ac_exec_ext in '' $ac_executable_extensions; do
3799 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
3800 as_fn_executable_p "$ac_path_SED" || continue
3801 # Check for GNU ac_path_SED and select it if it is found.
3802 # Check for GNU $ac_path_SED
3803 case `"$ac_path_SED" --version 2>&1` in
3805 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
3808 $as_echo_n 0123456789 >"conftest.in"
3811 cat "conftest.in" "conftest.in" >"conftest.tmp"
3812 mv "conftest.tmp" "conftest.in"
3813 cp "conftest.in" "conftest.nl"
3814 $as_echo '' >> "conftest.nl"
3815 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
3816 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3817 as_fn_arith $ac_count + 1 && ac_count=$as_val
3818 if test $ac_count -gt ${ac_path_SED_max-0}; then
3819 # Best one so far, save it but keep looking for a better one
3820 ac_cv_path_SED="$ac_path_SED"
3821 ac_path_SED_max=$ac_count
3823 # 10*(2^10) chars as input seems more than enough
3824 test $ac_count -gt 10 && break
3826 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3829 $ac_path_SED_found && break 3
3834 if test -z "$ac_cv_path_SED"; then
3835 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
3842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
3843 $as_echo "$ac_cv_path_SED" >&6; }
3844 SED="$ac_cv_path_SED"
3847 test -z "$SED" && SED=sed
3848 Xsed="$SED -e 1s/^X//"
3860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3861 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3862 if ${ac_cv_path_GREP+:} false; then :
3863 $as_echo_n "(cached) " >&6
3865 if test -z "$GREP"; then
3866 ac_path_GREP_found=false
3867 # Loop through the user's path and test for each of PROGNAME-LIST
3868 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3869 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3872 test -z "$as_dir" && as_dir=.
3873 for ac_prog in grep ggrep; do
3874 for ac_exec_ext in '' $ac_executable_extensions; do
3875 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3876 as_fn_executable_p "$ac_path_GREP" || continue
3877 # Check for GNU ac_path_GREP and select it if it is found.
3878 # Check for GNU $ac_path_GREP
3879 case `"$ac_path_GREP" --version 2>&1` in
3881 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3884 $as_echo_n 0123456789 >"conftest.in"
3887 cat "conftest.in" "conftest.in" >"conftest.tmp"
3888 mv "conftest.tmp" "conftest.in"
3889 cp "conftest.in" "conftest.nl"
3890 $as_echo 'GREP' >> "conftest.nl"
3891 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3892 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3893 as_fn_arith $ac_count + 1 && ac_count=$as_val
3894 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3895 # Best one so far, save it but keep looking for a better one
3896 ac_cv_path_GREP="$ac_path_GREP"
3897 ac_path_GREP_max=$ac_count
3899 # 10*(2^10) chars as input seems more than enough
3900 test $ac_count -gt 10 && break
3902 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3905 $ac_path_GREP_found && break 3
3910 if test -z "$ac_cv_path_GREP"; then
3911 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3914 ac_cv_path_GREP=$GREP
3918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3919 $as_echo "$ac_cv_path_GREP" >&6; }
3920 GREP="$ac_cv_path_GREP"
3923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3924 $as_echo_n "checking for egrep... " >&6; }
3925 if ${ac_cv_path_EGREP+:} false; then :
3926 $as_echo_n "(cached) " >&6
3928 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3929 then ac_cv_path_EGREP="$GREP -E"
3931 if test -z "$EGREP"; then
3932 ac_path_EGREP_found=false
3933 # Loop through the user's path and test for each of PROGNAME-LIST
3934 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3935 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3938 test -z "$as_dir" && as_dir=.
3939 for ac_prog in egrep; do
3940 for ac_exec_ext in '' $ac_executable_extensions; do
3941 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3942 as_fn_executable_p "$ac_path_EGREP" || continue
3943 # Check for GNU ac_path_EGREP and select it if it is found.
3944 # Check for GNU $ac_path_EGREP
3945 case `"$ac_path_EGREP" --version 2>&1` in
3947 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3950 $as_echo_n 0123456789 >"conftest.in"
3953 cat "conftest.in" "conftest.in" >"conftest.tmp"
3954 mv "conftest.tmp" "conftest.in"
3955 cp "conftest.in" "conftest.nl"
3956 $as_echo 'EGREP' >> "conftest.nl"
3957 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3958 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3959 as_fn_arith $ac_count + 1 && ac_count=$as_val
3960 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3961 # Best one so far, save it but keep looking for a better one
3962 ac_cv_path_EGREP="$ac_path_EGREP"
3963 ac_path_EGREP_max=$ac_count
3965 # 10*(2^10) chars as input seems more than enough
3966 test $ac_count -gt 10 && break
3968 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3971 $ac_path_EGREP_found && break 3
3976 if test -z "$ac_cv_path_EGREP"; then
3977 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3980 ac_cv_path_EGREP=$EGREP
3985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3986 $as_echo "$ac_cv_path_EGREP" >&6; }
3987 EGREP="$ac_cv_path_EGREP"
3990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
3991 $as_echo_n "checking for fgrep... " >&6; }
3992 if ${ac_cv_path_FGREP+:} false; then :
3993 $as_echo_n "(cached) " >&6
3995 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
3996 then ac_cv_path_FGREP="$GREP -F"
3998 if test -z "$FGREP"; then
3999 ac_path_FGREP_found=false
4000 # Loop through the user's path and test for each of PROGNAME-LIST
4001 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4002 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4005 test -z "$as_dir" && as_dir=.
4006 for ac_prog in fgrep; do
4007 for ac_exec_ext in '' $ac_executable_extensions; do
4008 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4009 as_fn_executable_p "$ac_path_FGREP" || continue
4010 # Check for GNU ac_path_FGREP and select it if it is found.
4011 # Check for GNU $ac_path_FGREP
4012 case `"$ac_path_FGREP" --version 2>&1` in
4014 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4017 $as_echo_n 0123456789 >"conftest.in"
4020 cat "conftest.in" "conftest.in" >"conftest.tmp"
4021 mv "conftest.tmp" "conftest.in"
4022 cp "conftest.in" "conftest.nl"
4023 $as_echo 'FGREP' >> "conftest.nl"
4024 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4025 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4026 as_fn_arith $ac_count + 1 && ac_count=$as_val
4027 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4028 # Best one so far, save it but keep looking for a better one
4029 ac_cv_path_FGREP="$ac_path_FGREP"
4030 ac_path_FGREP_max=$ac_count
4032 # 10*(2^10) chars as input seems more than enough
4033 test $ac_count -gt 10 && break
4035 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4038 $ac_path_FGREP_found && break 3
4043 if test -z "$ac_cv_path_FGREP"; then
4044 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4047 ac_cv_path_FGREP=$FGREP
4052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4053 $as_echo "$ac_cv_path_FGREP" >&6; }
4054 FGREP="$ac_cv_path_FGREP"
4057 test -z "$GREP" && GREP=grep
4077 # Check whether --with-gnu-ld was given.
4078 if test "${with_gnu_ld+set}" = set; then :
4079 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4085 if test "$GCC" = yes; then
4086 # Check if gcc -print-prog-name=ld gives a path.
4087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4088 $as_echo_n "checking for ld used by $CC... " >&6; }
4091 # gcc leaves a trailing carriage return which upsets mingw
4092 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4094 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4097 # Accept absolute paths.
4099 re_direlt='/[^/][^/]*/\.\./'
4100 # Canonicalize the pathname of ld
4101 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4102 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4103 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4105 test -z "$LD" && LD="$ac_prog"
4108 # If it fails, then pretend we aren't using GCC.
4112 # If it is relative, then search for the first ld in PATH.
4116 elif test "$with_gnu_ld" = yes; then
4117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4118 $as_echo_n "checking for GNU ld... " >&6; }
4120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4121 $as_echo_n "checking for non-GNU ld... " >&6; }
4123 if ${lt_cv_path_LD+:} false; then :
4124 $as_echo_n "(cached) " >&6
4126 if test -z "$LD"; then
4127 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4128 for ac_dir in $PATH; do
4130 test -z "$ac_dir" && ac_dir=.
4131 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4132 lt_cv_path_LD="$ac_dir/$ac_prog"
4133 # Check to see if the program is GNU ld. I'd rather use --version,
4134 # but apparently some variants of GNU ld only accept -v.
4135 # Break only if it was the GNU/non-GNU ld that we prefer.
4136 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4137 *GNU* | *'with BFD'*)
4138 test "$with_gnu_ld" != no && break
4141 test "$with_gnu_ld" != yes && break
4148 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4153 if test -n "$LD"; then
4154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4155 $as_echo "$LD" >&6; }
4157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4158 $as_echo "no" >&6; }
4160 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4162 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4163 if ${lt_cv_prog_gnu_ld+:} false; then :
4164 $as_echo_n "(cached) " >&6
4166 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4167 case `$LD -v 2>&1 </dev/null` in
4168 *GNU* | *'with BFD'*)
4169 lt_cv_prog_gnu_ld=yes
4172 lt_cv_prog_gnu_ld=no
4176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4177 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4178 with_gnu_ld=$lt_cv_prog_gnu_ld
4188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4189 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4190 if ${lt_cv_path_NM+:} false; then :
4191 $as_echo_n "(cached) " >&6
4193 if test -n "$NM"; then
4194 # Let the user override the test.
4197 lt_nm_to_check="${ac_tool_prefix}nm"
4198 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4199 lt_nm_to_check="$lt_nm_to_check nm"
4201 for lt_tmp_nm in $lt_nm_to_check; do
4202 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4203 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4205 test -z "$ac_dir" && ac_dir=.
4206 tmp_nm="$ac_dir/$lt_tmp_nm"
4207 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4208 # Check to see if the nm accepts a BSD-compat flag.
4209 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4210 # nm: unknown option "B" ignored
4211 # Tru64's nm complains that /dev/null is an invalid object file
4212 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4213 */dev/null* | *'Invalid file or object type'*)
4214 lt_cv_path_NM="$tmp_nm -B"
4218 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4220 lt_cv_path_NM="$tmp_nm -p"
4224 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4225 continue # so that we can try to find one that supports BSD flags
4234 : ${lt_cv_path_NM=no}
4237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4238 $as_echo "$lt_cv_path_NM" >&6; }
4239 if test "$lt_cv_path_NM" != "no"; then
4242 # Didn't find any BSD compatible name lister, look for dumpbin.
4243 if test -n "$DUMPBIN"; then :
4244 # Let the user override the test.
4246 if test -n "$ac_tool_prefix"; then
4247 for ac_prog in dumpbin "link -dump"
4249 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4250 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4252 $as_echo_n "checking for $ac_word... " >&6; }
4253 if ${ac_cv_prog_DUMPBIN+:} false; then :
4254 $as_echo_n "(cached) " >&6
4256 if test -n "$DUMPBIN"; then
4257 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4259 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4263 test -z "$as_dir" && as_dir=.
4264 for ac_exec_ext in '' $ac_executable_extensions; do
4265 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4266 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4267 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4276 DUMPBIN=$ac_cv_prog_DUMPBIN
4277 if test -n "$DUMPBIN"; then
4278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4279 $as_echo "$DUMPBIN" >&6; }
4281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4282 $as_echo "no" >&6; }
4286 test -n "$DUMPBIN" && break
4289 if test -z "$DUMPBIN"; then
4290 ac_ct_DUMPBIN=$DUMPBIN
4291 for ac_prog in dumpbin "link -dump"
4293 # Extract the first word of "$ac_prog", so it can be a program name with args.
4294 set dummy $ac_prog; ac_word=$2
4295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4296 $as_echo_n "checking for $ac_word... " >&6; }
4297 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4298 $as_echo_n "(cached) " >&6
4300 if test -n "$ac_ct_DUMPBIN"; then
4301 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4303 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4307 test -z "$as_dir" && as_dir=.
4308 for ac_exec_ext in '' $ac_executable_extensions; do
4309 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4310 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4311 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4320 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4321 if test -n "$ac_ct_DUMPBIN"; then
4322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4323 $as_echo "$ac_ct_DUMPBIN" >&6; }
4325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4326 $as_echo "no" >&6; }
4330 test -n "$ac_ct_DUMPBIN" && break
4333 if test "x$ac_ct_DUMPBIN" = x; then
4336 case $cross_compiling:$ac_tool_warned in
4338 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4339 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4340 ac_tool_warned=yes ;;
4342 DUMPBIN=$ac_ct_DUMPBIN
4346 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
4348 DUMPBIN="$DUMPBIN -symbols"
4356 if test "$DUMPBIN" != ":"; then
4360 test -z "$NM" && NM=nm
4367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4368 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
4369 if ${lt_cv_nm_interface+:} false; then :
4370 $as_echo_n "(cached) " >&6
4372 lt_cv_nm_interface="BSD nm"
4373 echo "int some_variable = 0;" > conftest.$ac_ext
4374 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4375 (eval "$ac_compile" 2>conftest.err)
4376 cat conftest.err >&5
4377 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4378 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4379 cat conftest.err >&5
4380 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4381 cat conftest.out >&5
4382 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4383 lt_cv_nm_interface="MS dumpbin"
4387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4388 $as_echo "$lt_cv_nm_interface" >&6; }
4390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4391 $as_echo_n "checking whether ln -s works... " >&6; }
4393 if test "$LN_S" = "ln -s"; then
4394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4395 $as_echo "yes" >&6; }
4397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4398 $as_echo "no, using $LN_S" >&6; }
4401 # find the maximum length of command line arguments
4402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4403 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
4404 if ${lt_cv_sys_max_cmd_len+:} false; then :
4405 $as_echo_n "(cached) " >&6
4412 # On DJGPP, this test can blow up pretty badly due to problems in libc
4413 # (any single argument exceeding 2000 bytes causes a buffer overrun
4414 # during glob expansion). Even if it were fixed, the result of this
4415 # check would be larger than it should be.
4416 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4420 # Under GNU Hurd, this test is not required because there is
4421 # no limit to the length of command line arguments.
4422 # Libtool will interpret -1 as no limit whatsoever
4423 lt_cv_sys_max_cmd_len=-1;
4426 cygwin* | mingw* | cegcc*)
4427 # On Win9x/ME, this test blows up -- it succeeds, but takes
4428 # about 5 minutes as the teststring grows exponentially.
4429 # Worse, since 9x/ME are not pre-emptively multitasking,
4430 # you end up with a "frozen" computer, even though with patience
4431 # the test eventually succeeds (with a max line length of 256k).
4432 # Instead, let's just punt: use the minimum linelength reported by
4433 # all of the supported platforms: 8192 (on NT/2K/XP).
4434 lt_cv_sys_max_cmd_len=8192;
4438 # On MiNT this can take a long time and run out of memory.
4439 lt_cv_sys_max_cmd_len=8192;
4443 # On AmigaOS with pdksh, this test takes hours, literally.
4444 # So we just punt and use a minimum line length of 8192.
4445 lt_cv_sys_max_cmd_len=8192;
4448 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4449 # This has been around since 386BSD, at least. Likely further.
4450 if test -x /sbin/sysctl; then
4451 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4452 elif test -x /usr/sbin/sysctl; then
4453 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4455 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4457 # And add a safety zone
4458 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4459 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4463 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4464 lt_cv_sys_max_cmd_len=196608
4468 # The test takes a long time on OS/2.
4469 lt_cv_sys_max_cmd_len=8192
4473 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4474 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4475 # nice to cause kernel panics so lets avoid the loop below.
4476 # First set a reasonable default.
4477 lt_cv_sys_max_cmd_len=16384
4479 if test -x /sbin/sysconfig; then
4480 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4481 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4486 lt_cv_sys_max_cmd_len=102400
4488 sysv5* | sco5v6* | sysv4.2uw2*)
4489 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4490 if test -n "$kargmax"; then
4491 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4493 lt_cv_sys_max_cmd_len=32768
4497 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4498 if test -n "$lt_cv_sys_max_cmd_len"; then
4499 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4500 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4502 # Make teststring a little bigger before we do anything with it.
4503 # a 1K string should be a reasonable start.
4504 for i in 1 2 3 4 5 6 7 8 ; do
4505 teststring=$teststring$teststring
4507 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4508 # If test is not a shell built-in, we'll probably end up computing a
4509 # maximum length that is only half of the actual maximum length, but
4511 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
4512 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
4513 test $i != 17 # 1/2 MB should be enough
4516 teststring=$teststring$teststring
4518 # Only check the string length outside the loop.
4519 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4521 # Add a significant safety factor because C++ compilers can tack on
4522 # massive amounts of additional arguments before passing them to the
4523 # linker. It appears as though 1/2 is a usable value.
4524 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4531 if test -n $lt_cv_sys_max_cmd_len ; then
4532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4533 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4536 $as_echo "none" >&6; }
4538 max_cmd_len=$lt_cv_sys_max_cmd_len
4549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
4550 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4551 # Try some XSI features
4554 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
4556 && eval 'test $(( 1 + 1 )) -eq 2 \
4557 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
4560 $as_echo "$xsi_shell" >&6; }
4563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
4564 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
4566 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4568 && lt_shell_append=yes
4569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
4570 $as_echo "$lt_shell_append" >&6; }
4573 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4583 # test EBCDIC or ASCII
4584 case `echo X|tr X '\101'` in
4585 A) # ASCII based system
4586 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4587 lt_SP2NL='tr \040 \012'
4588 lt_NL2SP='tr \015\012 \040\040'
4590 *) # EBCDIC based system
4591 lt_SP2NL='tr \100 \n'
4592 lt_NL2SP='tr \r\n \100\100'
4604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
4605 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
4606 if ${lt_cv_to_host_file_cmd+:} false; then :
4607 $as_echo_n "(cached) " >&6
4612 *-*-mingw* ) # actually msys
4613 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
4616 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
4618 * ) # otherwise, assume *nix
4619 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
4625 *-*-mingw* ) # actually msys
4626 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
4629 lt_cv_to_host_file_cmd=func_convert_file_noop
4631 * ) # otherwise, assume *nix
4632 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
4636 * ) # unhandled hosts (and "normal" native builds)
4637 lt_cv_to_host_file_cmd=func_convert_file_noop
4643 to_host_file_cmd=$lt_cv_to_host_file_cmd
4644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
4645 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
4651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
4652 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
4653 if ${lt_cv_to_tool_file_cmd+:} false; then :
4654 $as_echo_n "(cached) " >&6
4656 #assume ordinary cross tools, or native build.
4657 lt_cv_to_tool_file_cmd=func_convert_file_noop
4661 *-*-mingw* ) # actually msys
4662 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
4670 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
4671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
4672 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
4678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
4679 $as_echo_n "checking for $LD option to reload object files... " >&6; }
4680 if ${lt_cv_ld_reload_flag+:} false; then :
4681 $as_echo_n "(cached) " >&6
4683 lt_cv_ld_reload_flag='-r'
4685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
4686 $as_echo "$lt_cv_ld_reload_flag" >&6; }
4687 reload_flag=$lt_cv_ld_reload_flag
4688 case $reload_flag in
4690 *) reload_flag=" $reload_flag" ;;
4692 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4694 cygwin* | mingw* | pw32* | cegcc*)
4695 if test "$GCC" != yes; then
4700 if test "$GCC" = yes; then
4701 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4703 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4716 if test -n "$ac_tool_prefix"; then
4717 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4718 set dummy ${ac_tool_prefix}objdump; ac_word=$2
4719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4720 $as_echo_n "checking for $ac_word... " >&6; }
4721 if ${ac_cv_prog_OBJDUMP+:} false; then :
4722 $as_echo_n "(cached) " >&6
4724 if test -n "$OBJDUMP"; then
4725 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4727 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4731 test -z "$as_dir" && as_dir=.
4732 for ac_exec_ext in '' $ac_executable_extensions; do
4733 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4734 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4735 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4744 OBJDUMP=$ac_cv_prog_OBJDUMP
4745 if test -n "$OBJDUMP"; then
4746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
4747 $as_echo "$OBJDUMP" >&6; }
4749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4750 $as_echo "no" >&6; }
4755 if test -z "$ac_cv_prog_OBJDUMP"; then
4756 ac_ct_OBJDUMP=$OBJDUMP
4757 # Extract the first word of "objdump", so it can be a program name with args.
4758 set dummy objdump; ac_word=$2
4759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4760 $as_echo_n "checking for $ac_word... " >&6; }
4761 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
4762 $as_echo_n "(cached) " >&6
4764 if test -n "$ac_ct_OBJDUMP"; then
4765 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4767 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4771 test -z "$as_dir" && as_dir=.
4772 for ac_exec_ext in '' $ac_executable_extensions; do
4773 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4774 ac_cv_prog_ac_ct_OBJDUMP="objdump"
4775 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4784 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4785 if test -n "$ac_ct_OBJDUMP"; then
4786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
4787 $as_echo "$ac_ct_OBJDUMP" >&6; }
4789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4790 $as_echo "no" >&6; }
4793 if test "x$ac_ct_OBJDUMP" = x; then
4796 case $cross_compiling:$ac_tool_warned in
4798 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4799 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4800 ac_tool_warned=yes ;;
4802 OBJDUMP=$ac_ct_OBJDUMP
4805 OBJDUMP="$ac_cv_prog_OBJDUMP"
4808 test -z "$OBJDUMP" && OBJDUMP=objdump
4818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
4819 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
4820 if ${lt_cv_deplibs_check_method+:} false; then :
4821 $as_echo_n "(cached) " >&6
4823 lt_cv_file_magic_cmd='$MAGIC_CMD'
4824 lt_cv_file_magic_test_file=
4825 lt_cv_deplibs_check_method='unknown'
4826 # Need to set the preceding variable on all platforms that support
4827 # interlibrary dependencies.
4828 # 'none' -- dependencies not supported.
4829 # `unknown' -- same as none, but documents that we really don't know.
4830 # 'pass_all' -- all dependencies passed with no checks.
4831 # 'test_compile' -- check by making test program.
4832 # 'file_magic [[regex]]' -- check by looking for files in library path
4833 # which responds to the $file_magic_cmd with a given extended regex.
4834 # If you have `file' or equivalent on your system and you're not sure
4835 # whether `pass_all' will *always* work, you probably want this one.
4839 lt_cv_deplibs_check_method=pass_all
4843 lt_cv_deplibs_check_method=pass_all
4847 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4848 lt_cv_file_magic_cmd='/usr/bin/file -L'
4849 lt_cv_file_magic_test_file=/shlib/libc.so
4853 # func_win32_libid is a shell function defined in ltmain.sh
4854 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4855 lt_cv_file_magic_cmd='func_win32_libid'
4859 # Base MSYS/MinGW do not provide the 'file' command needed by
4860 # func_win32_libid shell function, so use a weaker test based on 'objdump',
4861 # unless we find 'file', for example because we are cross-compiling.
4862 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
4863 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
4864 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4865 lt_cv_file_magic_cmd='func_win32_libid'
4867 # Keep this pattern in sync with the one in func_win32_libid.
4868 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
4869 lt_cv_file_magic_cmd='$OBJDUMP -f'
4874 # use the weaker test based on 'objdump'. See mingw*.
4875 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
4876 lt_cv_file_magic_cmd='$OBJDUMP -f'
4879 darwin* | rhapsody*)
4880 lt_cv_deplibs_check_method=pass_all
4883 freebsd* | dragonfly*)
4884 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4887 # Not sure whether the presence of OpenBSD here was a mistake.
4888 # Let's accept both of them until this is cleared up.
4889 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4890 lt_cv_file_magic_cmd=/usr/bin/file
4891 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4895 lt_cv_deplibs_check_method=pass_all
4900 lt_cv_deplibs_check_method=pass_all
4904 lt_cv_deplibs_check_method=pass_all
4907 hpux10.20* | hpux11*)
4908 lt_cv_file_magic_cmd=/usr/bin/file
4911 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4912 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4915 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]'
4916 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4919 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
4920 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4926 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4927 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4930 irix5* | irix6* | nonstopux*)
4932 *-32|*"-32 ") libmagic=32-bit;;
4933 *-n32|*"-n32 ") libmagic=N32;;
4934 *-64|*"-64 ") libmagic=64-bit;;
4935 *) libmagic=never-match;;
4937 lt_cv_deplibs_check_method=pass_all
4940 # This must be glibc/ELF.
4941 linux* | k*bsd*-gnu | kopensolaris*-gnu)
4942 lt_cv_deplibs_check_method=pass_all
4945 netbsd* | netbsdelf*-gnu)
4946 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4947 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4949 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4954 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4955 lt_cv_file_magic_cmd=/usr/bin/file
4956 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4960 lt_cv_deplibs_check_method=pass_all
4964 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4965 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4967 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4971 osf3* | osf4* | osf5*)
4972 lt_cv_deplibs_check_method=pass_all
4976 lt_cv_deplibs_check_method=pass_all
4980 lt_cv_deplibs_check_method=pass_all
4983 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4984 lt_cv_deplibs_check_method=pass_all
4988 case $host_vendor in
4990 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]'
4991 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4994 lt_cv_deplibs_check_method=pass_all
4997 lt_cv_file_magic_cmd='/bin/file'
4998 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5001 lt_cv_file_magic_cmd='/bin/file'
5002 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5003 lt_cv_file_magic_test_file=/lib/libc.so
5006 lt_cv_deplibs_check_method=pass_all
5009 lt_cv_deplibs_check_method=pass_all
5015 lt_cv_deplibs_check_method=pass_all
5020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5021 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5025 if test "$build" = "$host"; then
5028 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5031 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5037 file_magic_cmd=$lt_cv_file_magic_cmd
5038 deplibs_check_method=$lt_cv_deplibs_check_method
5039 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5062 if test -n "$ac_tool_prefix"; then
5063 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5064 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5066 $as_echo_n "checking for $ac_word... " >&6; }
5067 if ${ac_cv_prog_DLLTOOL+:} false; then :
5068 $as_echo_n "(cached) " >&6
5070 if test -n "$DLLTOOL"; then
5071 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5073 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5077 test -z "$as_dir" && as_dir=.
5078 for ac_exec_ext in '' $ac_executable_extensions; do
5079 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5080 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5081 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5090 DLLTOOL=$ac_cv_prog_DLLTOOL
5091 if test -n "$DLLTOOL"; then
5092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5093 $as_echo "$DLLTOOL" >&6; }
5095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5096 $as_echo "no" >&6; }
5101 if test -z "$ac_cv_prog_DLLTOOL"; then
5102 ac_ct_DLLTOOL=$DLLTOOL
5103 # Extract the first word of "dlltool", so it can be a program name with args.
5104 set dummy dlltool; ac_word=$2
5105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5106 $as_echo_n "checking for $ac_word... " >&6; }
5107 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5108 $as_echo_n "(cached) " >&6
5110 if test -n "$ac_ct_DLLTOOL"; then
5111 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5113 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5117 test -z "$as_dir" && as_dir=.
5118 for ac_exec_ext in '' $ac_executable_extensions; do
5119 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5120 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5121 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5130 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5131 if test -n "$ac_ct_DLLTOOL"; then
5132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5133 $as_echo "$ac_ct_DLLTOOL" >&6; }
5135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5136 $as_echo "no" >&6; }
5139 if test "x$ac_ct_DLLTOOL" = x; then
5142 case $cross_compiling:$ac_tool_warned in
5144 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5145 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5146 ac_tool_warned=yes ;;
5148 DLLTOOL=$ac_ct_DLLTOOL
5151 DLLTOOL="$ac_cv_prog_DLLTOOL"
5154 test -z "$DLLTOOL" && DLLTOOL=dlltool
5165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5166 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5167 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5168 $as_echo_n "(cached) " >&6
5170 lt_cv_sharedlib_from_linklib_cmd='unknown'
5173 cygwin* | mingw* | pw32* | cegcc*)
5174 # two different shell functions defined in ltmain.sh
5175 # decide which to use based on capabilities of $DLLTOOL
5176 case `$DLLTOOL --help 2>&1` in
5177 *--identify-strict*)
5178 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5181 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5186 # fallback: assume linklib IS sharedlib
5187 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
5192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5193 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5194 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5195 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5204 if test -n "$ac_tool_prefix"; then
5207 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5208 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5210 $as_echo_n "checking for $ac_word... " >&6; }
5211 if ${ac_cv_prog_AR+:} false; then :
5212 $as_echo_n "(cached) " >&6
5214 if test -n "$AR"; then
5215 ac_cv_prog_AR="$AR" # Let the user override the test.
5217 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5221 test -z "$as_dir" && as_dir=.
5222 for ac_exec_ext in '' $ac_executable_extensions; do
5223 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5224 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5225 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5235 if test -n "$AR"; then
5236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5237 $as_echo "$AR" >&6; }
5239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5240 $as_echo "no" >&6; }
5244 test -n "$AR" && break
5247 if test -z "$AR"; then
5251 # Extract the first word of "$ac_prog", so it can be a program name with args.
5252 set dummy $ac_prog; ac_word=$2
5253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5254 $as_echo_n "checking for $ac_word... " >&6; }
5255 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5256 $as_echo_n "(cached) " >&6
5258 if test -n "$ac_ct_AR"; then
5259 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5261 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5265 test -z "$as_dir" && as_dir=.
5266 for ac_exec_ext in '' $ac_executable_extensions; do
5267 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5268 ac_cv_prog_ac_ct_AR="$ac_prog"
5269 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5278 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5279 if test -n "$ac_ct_AR"; then
5280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5281 $as_echo "$ac_ct_AR" >&6; }
5283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5284 $as_echo "no" >&6; }
5288 test -n "$ac_ct_AR" && break
5291 if test "x$ac_ct_AR" = x; then
5294 case $cross_compiling:$ac_tool_warned in
5296 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5297 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5298 ac_tool_warned=yes ;;
5317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5318 $as_echo_n "checking for archiver @FILE support... " >&6; }
5319 if ${lt_cv_ar_at_file+:} false; then :
5320 $as_echo_n "(cached) " >&6
5323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5324 /* end confdefs.h. */
5334 if ac_fn_c_try_compile "$LINENO"; then :
5335 echo conftest.$ac_objext > conftest.lst
5336 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5337 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5338 (eval $lt_ar_try) 2>&5
5340 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5341 test $ac_status = 0; }
5342 if test "$ac_status" -eq 0; then
5343 # Ensure the archiver fails upon bogus file names.
5344 rm -f conftest.$ac_objext libconftest.a
5345 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5346 (eval $lt_ar_try) 2>&5
5348 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5349 test $ac_status = 0; }
5350 if test "$ac_status" -ne 0; then
5354 rm -f conftest.* libconftest.a
5357 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
5361 $as_echo "$lt_cv_ar_at_file" >&6; }
5363 if test "x$lt_cv_ar_at_file" = xno; then
5366 archiver_list_spec=$lt_cv_ar_at_file
5375 if test -n "$ac_tool_prefix"; then
5376 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5377 set dummy ${ac_tool_prefix}strip; ac_word=$2
5378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5379 $as_echo_n "checking for $ac_word... " >&6; }
5380 if ${ac_cv_prog_STRIP+:} false; then :
5381 $as_echo_n "(cached) " >&6
5383 if test -n "$STRIP"; then
5384 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5386 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5390 test -z "$as_dir" && as_dir=.
5391 for ac_exec_ext in '' $ac_executable_extensions; do
5392 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5393 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5394 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5403 STRIP=$ac_cv_prog_STRIP
5404 if test -n "$STRIP"; then
5405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5406 $as_echo "$STRIP" >&6; }
5408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5409 $as_echo "no" >&6; }
5414 if test -z "$ac_cv_prog_STRIP"; then
5416 # Extract the first word of "strip", so it can be a program name with args.
5417 set dummy strip; ac_word=$2
5418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5419 $as_echo_n "checking for $ac_word... " >&6; }
5420 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5421 $as_echo_n "(cached) " >&6
5423 if test -n "$ac_ct_STRIP"; then
5424 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5426 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5430 test -z "$as_dir" && as_dir=.
5431 for ac_exec_ext in '' $ac_executable_extensions; do
5432 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5433 ac_cv_prog_ac_ct_STRIP="strip"
5434 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5443 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5444 if test -n "$ac_ct_STRIP"; then
5445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5446 $as_echo "$ac_ct_STRIP" >&6; }
5448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5449 $as_echo "no" >&6; }
5452 if test "x$ac_ct_STRIP" = x; then
5455 case $cross_compiling:$ac_tool_warned in
5457 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5458 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5459 ac_tool_warned=yes ;;
5464 STRIP="$ac_cv_prog_STRIP"
5467 test -z "$STRIP" && STRIP=:
5474 if test -n "$ac_tool_prefix"; then
5475 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5476 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5478 $as_echo_n "checking for $ac_word... " >&6; }
5479 if ${ac_cv_prog_RANLIB+:} false; then :
5480 $as_echo_n "(cached) " >&6
5482 if test -n "$RANLIB"; then
5483 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5485 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5489 test -z "$as_dir" && as_dir=.
5490 for ac_exec_ext in '' $ac_executable_extensions; do
5491 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5492 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5493 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5502 RANLIB=$ac_cv_prog_RANLIB
5503 if test -n "$RANLIB"; then
5504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5505 $as_echo "$RANLIB" >&6; }
5507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5508 $as_echo "no" >&6; }
5513 if test -z "$ac_cv_prog_RANLIB"; then
5514 ac_ct_RANLIB=$RANLIB
5515 # Extract the first word of "ranlib", so it can be a program name with args.
5516 set dummy ranlib; ac_word=$2
5517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5518 $as_echo_n "checking for $ac_word... " >&6; }
5519 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5520 $as_echo_n "(cached) " >&6
5522 if test -n "$ac_ct_RANLIB"; then
5523 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5525 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5529 test -z "$as_dir" && as_dir=.
5530 for ac_exec_ext in '' $ac_executable_extensions; do
5531 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5532 ac_cv_prog_ac_ct_RANLIB="ranlib"
5533 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5542 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5543 if test -n "$ac_ct_RANLIB"; then
5544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5545 $as_echo "$ac_ct_RANLIB" >&6; }
5547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5548 $as_echo "no" >&6; }
5551 if test "x$ac_ct_RANLIB" = x; then
5554 case $cross_compiling:$ac_tool_warned in
5556 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5557 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5558 ac_tool_warned=yes ;;
5560 RANLIB=$ac_ct_RANLIB
5563 RANLIB="$ac_cv_prog_RANLIB"
5566 test -z "$RANLIB" && RANLIB=:
5573 # Determine commands to create old-style static archives.
5574 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5575 old_postinstall_cmds='chmod 644 $oldlib'
5576 old_postuninstall_cmds=
5578 if test -n "$RANLIB"; then
5581 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
5584 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
5587 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
5592 lock_old_archive_extraction=yes ;;
5594 lock_old_archive_extraction=no ;;
5635 # If no C compiler was specified, use CC.
5638 # If no C compiler flags were specified, use CFLAGS.
5639 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5641 # Allow CC to be a program name with arguments.
5645 # Check for command to grab the raw symbol name followed by C symbol from nm.
5646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5647 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5648 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
5649 $as_echo_n "(cached) " >&6
5652 # These are sane defaults that work on at least a few old systems.
5653 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5655 # Character class describing NM global symbol codes.
5656 symcode='[BCDEGRST]'
5658 # Regexp to match symbols that can be accessed directly from C.
5659 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5661 # Define system-specific variables.
5666 cygwin* | mingw* | pw32* | cegcc*)
5667 symcode='[ABCDGISTW]'
5670 if test "$host_cpu" = ia64; then
5671 symcode='[ABCDEGRST]'
5675 symcode='[BCDEGRST]'
5678 symcode='[BCDEGQRST]'
5689 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5697 # If we're using GNU nm, then use its standard symbol codes.
5698 case `$NM -V 2>&1` in
5699 *GNU* | *'with BFD'*)
5700 symcode='[ABCDGIRSTW]' ;;
5703 # Transform an extracted symbol line into a proper C declaration.
5704 # Some systems (esp. on ia64) link data and code symbols differently,
5705 # so use this general approach.
5706 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5708 # Transform an extracted symbol line into symbol name and symbol address
5709 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
5710 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'"
5712 # Handle CRLF in mingw tool chain
5716 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5720 # Try without a prefix underscore, then with it.
5721 for ac_symprfx in "" "_"; do
5723 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5724 symxfrm="\\1 $ac_symprfx\\2 \\2"
5726 # Write the raw and C identifiers.
5727 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5728 # Fake it for dumpbin and say T for any non-static function
5729 # and D for any global variable.
5730 # Also find C++ and __fastcall symbols from MSVC++,
5731 # which start with @ or ?.
5732 lt_cv_sys_global_symbol_pipe="$AWK '"\
5733 " {last_section=section; section=\$ 3};"\
5734 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
5735 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5736 " \$ 0!~/External *\|/{next};"\
5737 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5738 " {if(hide[section]) next};"\
5739 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5740 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5741 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
5742 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5743 " ' prfx=^$ac_symprfx"
5745 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5747 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
5749 # Check to see that the pipe works correctly.
5753 cat > conftest.$ac_ext <<_LT_EOF
5758 void nm_test_func(void);
5759 void nm_test_func(void){}
5763 int main(){nm_test_var='a';nm_test_func();return(0);}
5766 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5767 (eval $ac_compile) 2>&5
5769 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5770 test $ac_status = 0; }; then
5771 # Now try to grab the symbols.
5773 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
5774 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
5776 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5777 test $ac_status = 0; } && test -s "$nlist"; then
5778 # Try sorting and uniquifying the output.
5779 if sort "$nlist" | uniq > "$nlist"T; then
5780 mv -f "$nlist"T "$nlist"
5785 # Make sure that we snagged all the symbols we need.
5786 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5787 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5788 cat <<_LT_EOF > conftest.$ac_ext
5789 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
5790 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
5791 /* DATA imports from DLLs on WIN32 con't be const, because runtime
5792 relocations are performed -- see ld's documentation on pseudo-relocs. */
5793 # define LT_DLSYM_CONST
5794 #elif defined(__osf__)
5795 /* This system does not cope well with relocations in const data. */
5796 # define LT_DLSYM_CONST
5798 # define LT_DLSYM_CONST const
5806 # Now generate the symbol file.
5807 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5809 cat <<_LT_EOF >> conftest.$ac_ext
5811 /* The mapping between symbol names and symbols. */
5812 LT_DLSYM_CONST struct {
5816 lt__PROGRAM__LTX_preloaded_symbols[] =
5818 { "@PROGRAM@", (void *) 0 },
5820 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5821 cat <<\_LT_EOF >> conftest.$ac_ext
5825 /* This works around a problem in FreeBSD linker */
5826 #ifdef FREEBSD_WORKAROUND
5827 static const void *lt_preloaded_setup() {
5828 return lt__PROGRAM__LTX_preloaded_symbols;
5836 # Now try linking the two files.
5837 mv conftest.$ac_objext conftstm.$ac_objext
5838 lt_globsym_save_LIBS=$LIBS
5839 lt_globsym_save_CFLAGS=$CFLAGS
5840 LIBS="conftstm.$ac_objext"
5841 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5842 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
5843 (eval $ac_link) 2>&5
5845 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5846 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
5849 LIBS=$lt_globsym_save_LIBS
5850 CFLAGS=$lt_globsym_save_CFLAGS
5852 echo "cannot find nm_test_func in $nlist" >&5
5855 echo "cannot find nm_test_var in $nlist" >&5
5858 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5861 echo "$progname: failed program was:" >&5
5862 cat conftest.$ac_ext >&5
5864 rm -rf conftest* conftst*
5866 # Do not use the global_symbol_pipe unless it works.
5867 if test "$pipe_works" = yes; then
5870 lt_cv_sys_global_symbol_pipe=
5876 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5877 lt_cv_sys_global_symbol_to_cdecl=
5879 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5881 $as_echo "failed" >&6; }
5883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
5884 $as_echo "ok" >&6; }
5887 # Response file support.
5888 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5889 nm_file_list_spec='@'
5890 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
5891 nm_file_list_spec='@'
5920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
5921 $as_echo_n "checking for sysroot... " >&6; }
5923 # Check whether --with-sysroot was given.
5924 if test "${with_sysroot+set}" = set; then :
5925 withval=$with_sysroot;
5932 case ${with_sysroot} in #(
5934 if test "$GCC" = yes; then
5935 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
5939 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
5944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
5945 $as_echo "${with_sysroot}" >&6; }
5946 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
5950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
5951 $as_echo "${lt_sysroot:-no}" >&6; }
5957 # Check whether --enable-libtool-lock was given.
5958 if test "${enable_libtool_lock+set}" = set; then :
5959 enableval=$enable_libtool_lock;
5962 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5964 # Some flags need to be propagated to the compiler or linker for good
5968 # Find out which ABI we are using.
5969 echo 'int i;' > conftest.$ac_ext
5970 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5971 (eval $ac_compile) 2>&5
5973 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5974 test $ac_status = 0; }; then
5975 case `/usr/bin/file conftest.$ac_objext` in
5987 # Find out which ABI we are using.
5988 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
5989 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5990 (eval $ac_compile) 2>&5
5992 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5993 test $ac_status = 0; }; then
5994 if test "$lt_cv_prog_gnu_ld" = yes; then
5995 case `/usr/bin/file conftest.$ac_objext` in
5997 LD="${LD-ld} -melf32bsmip"
6000 LD="${LD-ld} -melf32bmipn32"
6003 LD="${LD-ld} -melf64bmip"
6007 case `/usr/bin/file conftest.$ac_objext` in
6023 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6024 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6025 # Find out which ABI we are using.
6026 echo 'int i;' > conftest.$ac_ext
6027 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6028 (eval $ac_compile) 2>&5
6030 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6031 test $ac_status = 0; }; then
6032 case `/usr/bin/file conftest.o` in
6035 x86_64-*kfreebsd*-gnu)
6036 LD="${LD-ld} -m elf_i386_fbsd"
6039 LD="${LD-ld} -m elf_i386"
6041 ppc64-*linux*|powerpc64-*linux*)
6042 LD="${LD-ld} -m elf32ppclinux"
6045 LD="${LD-ld} -m elf_s390"
6048 LD="${LD-ld} -m elf32_sparc"
6054 x86_64-*kfreebsd*-gnu)
6055 LD="${LD-ld} -m elf_x86_64_fbsd"
6058 LD="${LD-ld} -m elf_x86_64"
6060 ppc*-*linux*|powerpc*-*linux*)
6061 LD="${LD-ld} -m elf64ppc"
6063 s390*-*linux*|s390*-*tpf*)
6064 LD="${LD-ld} -m elf64_s390"
6067 LD="${LD-ld} -m elf64_sparc"
6077 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6078 SAVE_CFLAGS="$CFLAGS"
6079 CFLAGS="$CFLAGS -belf"
6080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6081 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6082 if ${lt_cv_cc_needs_belf+:} false; then :
6083 $as_echo_n "(cached) " >&6
6086 ac_cpp='$CPP $CPPFLAGS'
6087 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6088 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6089 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6092 /* end confdefs.h. */
6102 if ac_fn_c_try_link "$LINENO"; then :
6103 lt_cv_cc_needs_belf=yes
6105 lt_cv_cc_needs_belf=no
6107 rm -f core conftest.err conftest.$ac_objext \
6108 conftest$ac_exeext conftest.$ac_ext
6110 ac_cpp='$CPP $CPPFLAGS'
6111 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6112 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6113 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6117 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6118 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6119 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6120 CFLAGS="$SAVE_CFLAGS"
6124 # Find out which ABI we are using.
6125 echo 'int i;' > conftest.$ac_ext
6126 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6127 (eval $ac_compile) 2>&5
6129 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6130 test $ac_status = 0; }; then
6131 case `/usr/bin/file conftest.o` in
6133 case $lt_cv_prog_gnu_ld in
6137 LD="${LD-ld} -m elf_x86_64"
6140 LD="${LD-ld} -m elf64_sparc"
6143 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
6144 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6149 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6161 need_locks="$enable_libtool_lock"
6163 if test -n "$ac_tool_prefix"; then
6164 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6165 set dummy ${ac_tool_prefix}mt; ac_word=$2
6166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6167 $as_echo_n "checking for $ac_word... " >&6; }
6168 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6169 $as_echo_n "(cached) " >&6
6171 if test -n "$MANIFEST_TOOL"; then
6172 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6174 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6178 test -z "$as_dir" && as_dir=.
6179 for ac_exec_ext in '' $ac_executable_extensions; do
6180 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6181 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6182 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6191 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6192 if test -n "$MANIFEST_TOOL"; then
6193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6194 $as_echo "$MANIFEST_TOOL" >&6; }
6196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6197 $as_echo "no" >&6; }
6202 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6203 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6204 # Extract the first word of "mt", so it can be a program name with args.
6205 set dummy mt; ac_word=$2
6206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6207 $as_echo_n "checking for $ac_word... " >&6; }
6208 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6209 $as_echo_n "(cached) " >&6
6211 if test -n "$ac_ct_MANIFEST_TOOL"; then
6212 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6214 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6218 test -z "$as_dir" && as_dir=.
6219 for ac_exec_ext in '' $ac_executable_extensions; do
6220 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6221 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6222 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6231 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6232 if test -n "$ac_ct_MANIFEST_TOOL"; then
6233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6234 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6237 $as_echo "no" >&6; }
6240 if test "x$ac_ct_MANIFEST_TOOL" = x; then
6243 case $cross_compiling:$ac_tool_warned in
6245 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6246 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6247 ac_tool_warned=yes ;;
6249 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6252 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6255 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6257 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6258 if ${lt_cv_path_mainfest_tool+:} false; then :
6259 $as_echo_n "(cached) " >&6
6261 lt_cv_path_mainfest_tool=no
6262 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6263 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6264 cat conftest.err >&5
6265 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6266 lt_cv_path_mainfest_tool=yes
6270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6271 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
6272 if test "x$lt_cv_path_mainfest_tool" != xyes; then
6282 rhapsody* | darwin*)
6283 if test -n "$ac_tool_prefix"; then
6284 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6285 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6287 $as_echo_n "checking for $ac_word... " >&6; }
6288 if ${ac_cv_prog_DSYMUTIL+:} false; then :
6289 $as_echo_n "(cached) " >&6
6291 if test -n "$DSYMUTIL"; then
6292 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6294 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6298 test -z "$as_dir" && as_dir=.
6299 for ac_exec_ext in '' $ac_executable_extensions; do
6300 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6301 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6302 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6311 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6312 if test -n "$DSYMUTIL"; then
6313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6314 $as_echo "$DSYMUTIL" >&6; }
6316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6317 $as_echo "no" >&6; }
6322 if test -z "$ac_cv_prog_DSYMUTIL"; then
6323 ac_ct_DSYMUTIL=$DSYMUTIL
6324 # Extract the first word of "dsymutil", so it can be a program name with args.
6325 set dummy dsymutil; ac_word=$2
6326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6327 $as_echo_n "checking for $ac_word... " >&6; }
6328 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6329 $as_echo_n "(cached) " >&6
6331 if test -n "$ac_ct_DSYMUTIL"; then
6332 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6334 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6338 test -z "$as_dir" && as_dir=.
6339 for ac_exec_ext in '' $ac_executable_extensions; do
6340 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6341 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6342 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6351 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6352 if test -n "$ac_ct_DSYMUTIL"; then
6353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6354 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6357 $as_echo "no" >&6; }
6360 if test "x$ac_ct_DSYMUTIL" = x; then
6363 case $cross_compiling:$ac_tool_warned in
6365 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6366 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6367 ac_tool_warned=yes ;;
6369 DSYMUTIL=$ac_ct_DSYMUTIL
6372 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6375 if test -n "$ac_tool_prefix"; then
6376 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6377 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6379 $as_echo_n "checking for $ac_word... " >&6; }
6380 if ${ac_cv_prog_NMEDIT+:} false; then :
6381 $as_echo_n "(cached) " >&6
6383 if test -n "$NMEDIT"; then
6384 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6386 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6390 test -z "$as_dir" && as_dir=.
6391 for ac_exec_ext in '' $ac_executable_extensions; do
6392 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6393 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6394 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6403 NMEDIT=$ac_cv_prog_NMEDIT
6404 if test -n "$NMEDIT"; then
6405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6406 $as_echo "$NMEDIT" >&6; }
6408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6409 $as_echo "no" >&6; }
6414 if test -z "$ac_cv_prog_NMEDIT"; then
6415 ac_ct_NMEDIT=$NMEDIT
6416 # Extract the first word of "nmedit", so it can be a program name with args.
6417 set dummy nmedit; ac_word=$2
6418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6419 $as_echo_n "checking for $ac_word... " >&6; }
6420 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
6421 $as_echo_n "(cached) " >&6
6423 if test -n "$ac_ct_NMEDIT"; then
6424 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6426 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6430 test -z "$as_dir" && as_dir=.
6431 for ac_exec_ext in '' $ac_executable_extensions; do
6432 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6433 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6434 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6443 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6444 if test -n "$ac_ct_NMEDIT"; then
6445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6446 $as_echo "$ac_ct_NMEDIT" >&6; }
6448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6449 $as_echo "no" >&6; }
6452 if test "x$ac_ct_NMEDIT" = x; then
6455 case $cross_compiling:$ac_tool_warned in
6457 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6458 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6459 ac_tool_warned=yes ;;
6461 NMEDIT=$ac_ct_NMEDIT
6464 NMEDIT="$ac_cv_prog_NMEDIT"
6467 if test -n "$ac_tool_prefix"; then
6468 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6469 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6471 $as_echo_n "checking for $ac_word... " >&6; }
6472 if ${ac_cv_prog_LIPO+:} false; then :
6473 $as_echo_n "(cached) " >&6
6475 if test -n "$LIPO"; then
6476 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6478 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6482 test -z "$as_dir" && as_dir=.
6483 for ac_exec_ext in '' $ac_executable_extensions; do
6484 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6485 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6486 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6495 LIPO=$ac_cv_prog_LIPO
6496 if test -n "$LIPO"; then
6497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6498 $as_echo "$LIPO" >&6; }
6500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6501 $as_echo "no" >&6; }
6506 if test -z "$ac_cv_prog_LIPO"; then
6508 # Extract the first word of "lipo", so it can be a program name with args.
6509 set dummy lipo; ac_word=$2
6510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6511 $as_echo_n "checking for $ac_word... " >&6; }
6512 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
6513 $as_echo_n "(cached) " >&6
6515 if test -n "$ac_ct_LIPO"; then
6516 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6518 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6522 test -z "$as_dir" && as_dir=.
6523 for ac_exec_ext in '' $ac_executable_extensions; do
6524 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6525 ac_cv_prog_ac_ct_LIPO="lipo"
6526 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6535 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6536 if test -n "$ac_ct_LIPO"; then
6537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6538 $as_echo "$ac_ct_LIPO" >&6; }
6540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6541 $as_echo "no" >&6; }
6544 if test "x$ac_ct_LIPO" = x; then
6547 case $cross_compiling:$ac_tool_warned in
6549 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6550 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6551 ac_tool_warned=yes ;;
6556 LIPO="$ac_cv_prog_LIPO"
6559 if test -n "$ac_tool_prefix"; then
6560 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6561 set dummy ${ac_tool_prefix}otool; ac_word=$2
6562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6563 $as_echo_n "checking for $ac_word... " >&6; }
6564 if ${ac_cv_prog_OTOOL+:} false; then :
6565 $as_echo_n "(cached) " >&6
6567 if test -n "$OTOOL"; then
6568 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6570 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6574 test -z "$as_dir" && as_dir=.
6575 for ac_exec_ext in '' $ac_executable_extensions; do
6576 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6577 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6578 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6587 OTOOL=$ac_cv_prog_OTOOL
6588 if test -n "$OTOOL"; then
6589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6590 $as_echo "$OTOOL" >&6; }
6592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6593 $as_echo "no" >&6; }
6598 if test -z "$ac_cv_prog_OTOOL"; then
6600 # Extract the first word of "otool", so it can be a program name with args.
6601 set dummy otool; ac_word=$2
6602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6603 $as_echo_n "checking for $ac_word... " >&6; }
6604 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
6605 $as_echo_n "(cached) " >&6
6607 if test -n "$ac_ct_OTOOL"; then
6608 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6610 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6614 test -z "$as_dir" && as_dir=.
6615 for ac_exec_ext in '' $ac_executable_extensions; do
6616 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6617 ac_cv_prog_ac_ct_OTOOL="otool"
6618 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6627 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6628 if test -n "$ac_ct_OTOOL"; then
6629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6630 $as_echo "$ac_ct_OTOOL" >&6; }
6632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6633 $as_echo "no" >&6; }
6636 if test "x$ac_ct_OTOOL" = x; then
6639 case $cross_compiling:$ac_tool_warned in
6641 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6642 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6643 ac_tool_warned=yes ;;
6648 OTOOL="$ac_cv_prog_OTOOL"
6651 if test -n "$ac_tool_prefix"; then
6652 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6653 set dummy ${ac_tool_prefix}otool64; ac_word=$2
6654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6655 $as_echo_n "checking for $ac_word... " >&6; }
6656 if ${ac_cv_prog_OTOOL64+:} false; then :
6657 $as_echo_n "(cached) " >&6
6659 if test -n "$OTOOL64"; then
6660 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6662 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6666 test -z "$as_dir" && as_dir=.
6667 for ac_exec_ext in '' $ac_executable_extensions; do
6668 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6669 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6670 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6679 OTOOL64=$ac_cv_prog_OTOOL64
6680 if test -n "$OTOOL64"; then
6681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6682 $as_echo "$OTOOL64" >&6; }
6684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6685 $as_echo "no" >&6; }
6690 if test -z "$ac_cv_prog_OTOOL64"; then
6691 ac_ct_OTOOL64=$OTOOL64
6692 # Extract the first word of "otool64", so it can be a program name with args.
6693 set dummy otool64; ac_word=$2
6694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6695 $as_echo_n "checking for $ac_word... " >&6; }
6696 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
6697 $as_echo_n "(cached) " >&6
6699 if test -n "$ac_ct_OTOOL64"; then
6700 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6702 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6706 test -z "$as_dir" && as_dir=.
6707 for ac_exec_ext in '' $ac_executable_extensions; do
6708 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6709 ac_cv_prog_ac_ct_OTOOL64="otool64"
6710 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6719 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6720 if test -n "$ac_ct_OTOOL64"; then
6721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
6722 $as_echo "$ac_ct_OTOOL64" >&6; }
6724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6725 $as_echo "no" >&6; }
6728 if test "x$ac_ct_OTOOL64" = x; then
6731 case $cross_compiling:$ac_tool_warned in
6733 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6734 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6735 ac_tool_warned=yes ;;
6737 OTOOL64=$ac_ct_OTOOL64
6740 OTOOL64="$ac_cv_prog_OTOOL64"
6769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
6770 $as_echo_n "checking for -single_module linker flag... " >&6; }
6771 if ${lt_cv_apple_cc_single_mod+:} false; then :
6772 $as_echo_n "(cached) " >&6
6774 lt_cv_apple_cc_single_mod=no
6775 if test -z "${LT_MULTI_MODULE}"; then
6776 # By default we will add the -single_module flag. You can override
6777 # by either setting the environment variable LT_MULTI_MODULE
6778 # non-empty at configure time, or by adding -multi_module to the
6780 rm -rf libconftest.dylib*
6781 echo "int foo(void){return 1;}" > conftest.c
6782 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6783 -dynamiclib -Wl,-single_module conftest.c" >&5
6784 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6785 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6787 # If there is a non-empty error log, and "single_module"
6788 # appears in it, assume the flag caused a linker warning
6789 if test -s conftest.err && $GREP single_module conftest.err; then
6790 cat conftest.err >&5
6791 # Otherwise, if the output was created with a 0 exit code from
6792 # the compiler, it worked.
6793 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
6794 lt_cv_apple_cc_single_mod=yes
6796 cat conftest.err >&5
6798 rm -rf libconftest.dylib*
6802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
6803 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
6806 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
6807 if ${lt_cv_ld_exported_symbols_list+:} false; then :
6808 $as_echo_n "(cached) " >&6
6810 lt_cv_ld_exported_symbols_list=no
6811 save_LDFLAGS=$LDFLAGS
6812 echo "_main" > conftest.sym
6813 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6814 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6815 /* end confdefs.h. */
6825 if ac_fn_c_try_link "$LINENO"; then :
6826 lt_cv_ld_exported_symbols_list=yes
6828 lt_cv_ld_exported_symbols_list=no
6830 rm -f core conftest.err conftest.$ac_objext \
6831 conftest$ac_exeext conftest.$ac_ext
6832 LDFLAGS="$save_LDFLAGS"
6835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
6836 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
6838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
6839 $as_echo_n "checking for -force_load linker flag... " >&6; }
6840 if ${lt_cv_ld_force_load+:} false; then :
6841 $as_echo_n "(cached) " >&6
6843 lt_cv_ld_force_load=no
6844 cat > conftest.c << _LT_EOF
6845 int forced_loaded() { return 2;}
6847 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
6848 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
6849 echo "$AR cru libconftest.a conftest.o" >&5
6850 $AR cru libconftest.a conftest.o 2>&5
6851 echo "$RANLIB libconftest.a" >&5
6852 $RANLIB libconftest.a 2>&5
6853 cat > conftest.c << _LT_EOF
6854 int main() { return 0;}
6856 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
6857 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
6859 if test -s conftest.err && $GREP force_load conftest.err; then
6860 cat conftest.err >&5
6861 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
6862 lt_cv_ld_force_load=yes
6864 cat conftest.err >&5
6866 rm -f conftest.err libconftest.a conftest conftest.c
6867 rm -rf conftest.dSYM
6870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
6871 $as_echo "$lt_cv_ld_force_load" >&6; }
6873 rhapsody* | darwin1.[012])
6874 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6876 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6877 darwin*) # darwin 5.x on
6878 # if running on 10.5 or later, the deployment target defaults
6879 # to the OS version, if on x86, and 10.4, the deployment
6880 # target defaults to 10.4. Don't you love it?
6881 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6882 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6883 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6885 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6887 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6891 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
6892 _lt_dar_single_mod='$single_module'
6894 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
6895 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
6897 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
6899 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
6900 _lt_dsymutil='~$DSYMUTIL $lib || :'
6908 ac_cpp='$CPP $CPPFLAGS'
6909 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6910 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6911 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
6913 $as_echo_n "checking how to run the C preprocessor... " >&6; }
6914 # On Suns, sometimes $CPP names a directory.
6915 if test -n "$CPP" && test -d "$CPP"; then
6918 if test -z "$CPP"; then
6919 if ${ac_cv_prog_CPP+:} false; then :
6920 $as_echo_n "(cached) " >&6
6922 # Double quotes because CPP needs to be expanded
6923 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6926 for ac_c_preproc_warn_flag in '' yes
6928 # Use a header file that comes with gcc, so configuring glibc
6929 # with a fresh cross-compiler works.
6930 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6931 # <limits.h> exists even on freestanding compilers.
6932 # On the NeXT, cc -E runs the code through the compiler's parser,
6933 # not just through cpp. "Syntax error" is here to catch this case.
6934 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6935 /* end confdefs.h. */
6937 # include <limits.h>
6939 # include <assert.h>
6943 if ac_fn_c_try_cpp "$LINENO"; then :
6946 # Broken: fails on valid input.
6949 rm -f conftest.err conftest.i conftest.$ac_ext
6951 # OK, works on sane cases. Now check whether nonexistent headers
6952 # can be detected and how.
6953 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6954 /* end confdefs.h. */
6955 #include <ac_nonexistent.h>
6957 if ac_fn_c_try_cpp "$LINENO"; then :
6958 # Broken: success on invalid input.
6961 # Passes both tests.
6965 rm -f conftest.err conftest.i conftest.$ac_ext
6968 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6969 rm -f conftest.i conftest.err conftest.$ac_ext
6970 if $ac_preproc_ok; then :
6982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
6983 $as_echo "$CPP" >&6; }
6985 for ac_c_preproc_warn_flag in '' yes
6987 # Use a header file that comes with gcc, so configuring glibc
6988 # with a fresh cross-compiler works.
6989 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6990 # <limits.h> exists even on freestanding compilers.
6991 # On the NeXT, cc -E runs the code through the compiler's parser,
6992 # not just through cpp. "Syntax error" is here to catch this case.
6993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6994 /* end confdefs.h. */
6996 # include <limits.h>
6998 # include <assert.h>
7002 if ac_fn_c_try_cpp "$LINENO"; then :
7005 # Broken: fails on valid input.
7008 rm -f conftest.err conftest.i conftest.$ac_ext
7010 # OK, works on sane cases. Now check whether nonexistent headers
7011 # can be detected and how.
7012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7013 /* end confdefs.h. */
7014 #include <ac_nonexistent.h>
7016 if ac_fn_c_try_cpp "$LINENO"; then :
7017 # Broken: success on invalid input.
7020 # Passes both tests.
7024 rm -f conftest.err conftest.i conftest.$ac_ext
7027 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7028 rm -f conftest.i conftest.err conftest.$ac_ext
7029 if $ac_preproc_ok; then :
7032 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7033 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7034 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7035 See \`config.log' for more details" "$LINENO" 5; }
7039 ac_cpp='$CPP $CPPFLAGS'
7040 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7041 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7042 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7046 $as_echo_n "checking for ANSI C header files... " >&6; }
7047 if ${ac_cv_header_stdc+:} false; then :
7048 $as_echo_n "(cached) " >&6
7050 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7051 /* end confdefs.h. */
7065 if ac_fn_c_try_compile "$LINENO"; then :
7066 ac_cv_header_stdc=yes
7068 ac_cv_header_stdc=no
7070 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7072 if test $ac_cv_header_stdc = yes; then
7073 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7075 /* end confdefs.h. */
7079 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7080 $EGREP "memchr" >/dev/null 2>&1; then :
7083 ac_cv_header_stdc=no
7089 if test $ac_cv_header_stdc = yes; then
7090 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7092 /* end confdefs.h. */
7096 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7097 $EGREP "free" >/dev/null 2>&1; then :
7100 ac_cv_header_stdc=no
7106 if test $ac_cv_header_stdc = yes; then
7107 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7108 if test "$cross_compiling" = yes; then :
7111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7112 /* end confdefs.h. */
7115 #if ((' ' & 0x0FF) == 0x020)
7116 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7117 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7119 # define ISLOWER(c) \
7120 (('a' <= (c) && (c) <= 'i') \
7121 || ('j' <= (c) && (c) <= 'r') \
7122 || ('s' <= (c) && (c) <= 'z'))
7123 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7126 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7131 for (i = 0; i < 256; i++)
7132 if (XOR (islower (i), ISLOWER (i))
7133 || toupper (i) != TOUPPER (i))
7138 if ac_fn_c_try_run "$LINENO"; then :
7141 ac_cv_header_stdc=no
7143 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7144 conftest.$ac_objext conftest.beam conftest.$ac_ext
7149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7150 $as_echo "$ac_cv_header_stdc" >&6; }
7151 if test $ac_cv_header_stdc = yes; then
7153 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7157 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7158 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7159 inttypes.h stdint.h unistd.h
7161 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7162 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7164 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7165 cat >>confdefs.h <<_ACEOF
7166 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7174 for ac_header in dlfcn.h
7176 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7178 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7179 cat >>confdefs.h <<_ACEOF
7180 #define HAVE_DLFCN_H 1
7201 # Check whether --enable-shared was given.
7202 if test "${enable_shared+set}" = set; then :
7203 enableval=$enable_shared; p=${PACKAGE-default}
7205 yes) enable_shared=yes ;;
7206 no) enable_shared=no ;;
7209 # Look at the argument we got. We use all the common list separators.
7210 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7211 for pkg in $enableval; do
7213 if test "X$pkg" = "X$p"; then
7232 # Check whether --enable-static was given.
7233 if test "${enable_static+set}" = set; then :
7234 enableval=$enable_static; p=${PACKAGE-default}
7236 yes) enable_static=yes ;;
7237 no) enable_static=no ;;
7240 # Look at the argument we got. We use all the common list separators.
7241 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7242 for pkg in $enableval; do
7244 if test "X$pkg" = "X$p"; then
7264 # Check whether --with-pic was given.
7265 if test "${with_pic+set}" = set; then :
7266 withval=$with_pic; lt_p=${PACKAGE-default}
7268 yes|no) pic_mode=$withval ;;
7271 # Look at the argument we got. We use all the common list separators.
7272 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7273 for lt_pkg in $withval; do
7275 if test "X$lt_pkg" = "X$lt_p"; then
7287 test -z "$pic_mode" && pic_mode=default
7295 # Check whether --enable-fast-install was given.
7296 if test "${enable_fast_install+set}" = set; then :
7297 enableval=$enable_fast_install; p=${PACKAGE-default}
7299 yes) enable_fast_install=yes ;;
7300 no) enable_fast_install=no ;;
7302 enable_fast_install=no
7303 # Look at the argument we got. We use all the common list separators.
7304 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7305 for pkg in $enableval; do
7307 if test "X$pkg" = "X$p"; then
7308 enable_fast_install=yes
7315 enable_fast_install=yes
7328 # This can be used to rebuild libtool when needed
7329 LIBTOOL_DEPS="$ltmain"
7331 # Always use our own libtool.
7332 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7363 test -z "$LN_S" && LN_S="ln -s"
7378 if test -n "${ZSH_VERSION+set}" ; then
7379 setopt NO_GLOB_SUBST
7382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7383 $as_echo_n "checking for objdir... " >&6; }
7384 if ${lt_cv_objdir+:} false; then :
7385 $as_echo_n "(cached) " >&6
7387 rm -f .libs 2>/dev/null
7388 mkdir .libs 2>/dev/null
7389 if test -d .libs; then
7392 # MS-DOS does not allow filenames that begin with a dot.
7395 rmdir .libs 2>/dev/null
7397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7398 $as_echo "$lt_cv_objdir" >&6; }
7399 objdir=$lt_cv_objdir
7405 cat >>confdefs.h <<_ACEOF
7406 #define LT_OBJDIR "$lt_cv_objdir/"
7414 # AIX sometimes has problems with the GCC collect2 program. For some
7415 # reason, if we set the COLLECT_NAMES environment variable, the problems
7416 # vanish in a puff of smoke.
7417 if test "X${COLLECT_NAMES+set}" != Xset; then
7419 export COLLECT_NAMES
7426 can_build_shared=yes
7428 # All known linkers require a `.a' archive for static linking (except MSVC,
7429 # which needs '.lib').
7432 with_gnu_ld="$lt_cv_prog_gnu_ld"
7435 old_CFLAGS="$CFLAGS"
7437 # Set sane defaults for various variables
7438 test -z "$CC" && CC=cc
7439 test -z "$LTCC" && LTCC=$CC
7440 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7441 test -z "$LD" && LD=ld
7442 test -z "$ac_objext" && ac_objext=o
7444 for cc_temp in $compiler""; do
7446 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7447 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7452 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7455 # Only perform the check for file, if the check method requires it
7456 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7457 case $deplibs_check_method in
7459 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7461 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7462 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7463 $as_echo_n "(cached) " >&6
7467 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7470 lt_save_MAGIC_CMD="$MAGIC_CMD"
7471 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7472 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7473 for ac_dir in $ac_dummy; do
7475 test -z "$ac_dir" && ac_dir=.
7476 if test -f $ac_dir/${ac_tool_prefix}file; then
7477 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7478 if test -n "$file_magic_test_file"; then
7479 case $deplibs_check_method in
7481 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7482 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7483 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7484 $EGREP "$file_magic_regex" > /dev/null; then
7489 *** Warning: the command libtool uses to detect shared libraries,
7490 *** $file_magic_cmd, produces output that libtool cannot recognize.
7491 *** The result is that libtool may fail to recognize shared libraries
7492 *** as such. This will affect the creation of libtool libraries that
7493 *** depend on shared libraries, but programs linked with such libtool
7494 *** libraries will work regardless of this problem. Nevertheless, you
7495 *** may want to report the problem to your system manager and/or to
7496 *** bug-libtool@gnu.org
7506 MAGIC_CMD="$lt_save_MAGIC_CMD"
7511 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7512 if test -n "$MAGIC_CMD"; then
7513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7514 $as_echo "$MAGIC_CMD" >&6; }
7516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7517 $as_echo "no" >&6; }
7524 if test -z "$lt_cv_path_MAGIC_CMD"; then
7525 if test -n "$ac_tool_prefix"; then
7526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7527 $as_echo_n "checking for file... " >&6; }
7528 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7529 $as_echo_n "(cached) " >&6
7533 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7536 lt_save_MAGIC_CMD="$MAGIC_CMD"
7537 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7538 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7539 for ac_dir in $ac_dummy; do
7541 test -z "$ac_dir" && ac_dir=.
7542 if test -f $ac_dir/file; then
7543 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7544 if test -n "$file_magic_test_file"; then
7545 case $deplibs_check_method in
7547 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7548 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7549 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7550 $EGREP "$file_magic_regex" > /dev/null; then
7555 *** Warning: the command libtool uses to detect shared libraries,
7556 *** $file_magic_cmd, produces output that libtool cannot recognize.
7557 *** The result is that libtool may fail to recognize shared libraries
7558 *** as such. This will affect the creation of libtool libraries that
7559 *** depend on shared libraries, but programs linked with such libtool
7560 *** libraries will work regardless of this problem. Nevertheless, you
7561 *** may want to report the problem to your system manager and/or to
7562 *** bug-libtool@gnu.org
7572 MAGIC_CMD="$lt_save_MAGIC_CMD"
7577 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7578 if test -n "$MAGIC_CMD"; then
7579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7580 $as_echo "$MAGIC_CMD" >&6; }
7582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7583 $as_echo "no" >&6; }
7596 # Use C for the default configuration in the libtool script
7600 ac_cpp='$CPP $CPPFLAGS'
7601 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7602 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7603 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7606 # Source file extension for C test sources.
7609 # Object file extension for compiled C test sources.
7613 # Code to be used in simple compile tests
7614 lt_simple_compile_test_code="int some_variable = 0;"
7616 # Code to be used in simple link tests
7617 lt_simple_link_test_code='int main(){return(0);}'
7625 # If no C compiler was specified, use CC.
7628 # If no C compiler flags were specified, use CFLAGS.
7629 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7631 # Allow CC to be a program name with arguments.
7634 # Save the default compiler, since it gets overwritten when the other
7635 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7636 compiler_DEFAULT=$CC
7638 # save warnings/boilerplate of simple test code
7639 ac_outfile=conftest.$ac_objext
7640 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7641 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7642 _lt_compiler_boilerplate=`cat conftest.err`
7645 ac_outfile=conftest.$ac_objext
7646 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7647 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7648 _lt_linker_boilerplate=`cat conftest.err`
7653 ## There is no encapsulation within the following macros, do not change
7654 ## the running order or otherwise move them around unless you know exactly
7655 ## what you are doing...
7656 if test -n "$compiler"; then
7658 lt_prog_compiler_no_builtin_flag=
7660 if test "$GCC" = yes; then
7661 case $cc_basename in
7663 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
7665 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
7668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7669 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7670 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
7671 $as_echo_n "(cached) " >&6
7673 lt_cv_prog_compiler_rtti_exceptions=no
7674 ac_outfile=conftest.$ac_objext
7675 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7676 lt_compiler_flag="-fno-rtti -fno-exceptions"
7677 # Insert the option either (1) after the last *FLAGS variable, or
7678 # (2) before a word containing "conftest.", or (3) at the end.
7679 # Note that $ac_compile itself does not contain backslashes and begins
7680 # with a dollar sign (not a hyphen), so the echo should work correctly.
7681 # The option is referenced via a variable to avoid confusing sed.
7682 lt_compile=`echo "$ac_compile" | $SED \
7683 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7684 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7685 -e 's:$: $lt_compiler_flag:'`
7686 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7687 (eval "$lt_compile" 2>conftest.err)
7689 cat conftest.err >&5
7690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7691 if (exit $ac_status) && test -s "$ac_outfile"; then
7692 # The compiler can only warn and ignore the option if not recognized
7693 # So say no if there are warnings other than the usual output.
7694 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
7695 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7696 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7697 lt_cv_prog_compiler_rtti_exceptions=yes
7703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7704 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7706 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7707 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7719 lt_prog_compiler_wl=
7720 lt_prog_compiler_pic=
7721 lt_prog_compiler_static=
7724 if test "$GCC" = yes; then
7725 lt_prog_compiler_wl='-Wl,'
7726 lt_prog_compiler_static='-static'
7730 # All AIX code is PIC.
7731 if test "$host_cpu" = ia64; then
7732 # AIX 5 now supports IA64 processor
7733 lt_prog_compiler_static='-Bstatic'
7740 # see comment about AmigaOS4 .so support
7741 lt_prog_compiler_pic='-fPIC'
7744 # FIXME: we need at least 68020 code to build shared libraries, but
7745 # adding the `-m68020' flag to GCC prevents building anything better,
7747 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7752 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7753 # PIC is the default for these OSes.
7756 mingw* | cygwin* | pw32* | os2* | cegcc*)
7757 # This hack is so that the source file can tell whether it is being
7758 # built for inclusion in a dll (and should export symbols for example).
7759 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7760 # (--disable-auto-import) libraries
7761 lt_prog_compiler_pic='-DDLL_EXPORT'
7764 darwin* | rhapsody*)
7765 # PIC is the default on this platform
7766 # Common symbols not allowed in MH_DYLIB files
7767 lt_prog_compiler_pic='-fno-common'
7771 # PIC is the default for Haiku.
7772 # The "-static" flag exists, but is broken.
7773 lt_prog_compiler_static=
7777 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7778 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
7779 # sets the default TLS model and affects inlining.
7785 lt_prog_compiler_pic='-fPIC'
7791 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7792 # Instead, we relocate shared libraries at runtime.
7796 # Just because we use GCC doesn't mean we suddenly get shared libraries
7797 # on systems that don't support them.
7798 lt_prog_compiler_can_build_shared=no
7803 # QNX uses GNU C++, but need to define -shared option too, otherwise
7805 lt_prog_compiler_pic='-fPIC -shared'
7809 if test -d /usr/nec; then
7810 lt_prog_compiler_pic=-Kconform_pic
7815 lt_prog_compiler_pic='-fPIC'
7819 case $cc_basename in
7820 nvcc*) # Cuda Compiler Driver 2.2
7821 lt_prog_compiler_wl='-Xlinker '
7822 if test -n "$lt_prog_compiler_pic"; then
7823 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
7828 # PORTME Check for flag to pass linker flags through the system compiler.
7831 lt_prog_compiler_wl='-Wl,'
7832 if test "$host_cpu" = ia64; then
7833 # AIX 5 now supports IA64 processor
7834 lt_prog_compiler_static='-Bstatic'
7836 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7840 mingw* | cygwin* | pw32* | os2* | cegcc*)
7841 # This hack is so that the source file can tell whether it is being
7842 # built for inclusion in a dll (and should export symbols for example).
7843 lt_prog_compiler_pic='-DDLL_EXPORT'
7846 hpux9* | hpux10* | hpux11*)
7847 lt_prog_compiler_wl='-Wl,'
7848 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7855 lt_prog_compiler_pic='+Z'
7858 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7859 lt_prog_compiler_static='${wl}-a ${wl}archive'
7862 irix5* | irix6* | nonstopux*)
7863 lt_prog_compiler_wl='-Wl,'
7864 # PIC (with -KPIC) is the default.
7865 lt_prog_compiler_static='-non_shared'
7868 linux* | k*bsd*-gnu | kopensolaris*-gnu)
7869 case $cc_basename in
7870 # old Intel for x86_64 which still supported -KPIC.
7872 lt_prog_compiler_wl='-Wl,'
7873 lt_prog_compiler_pic='-KPIC'
7874 lt_prog_compiler_static='-static'
7876 # icc used to be incompatible with GCC.
7877 # ICC 10 doesn't accept -KPIC any more.
7879 lt_prog_compiler_wl='-Wl,'
7880 lt_prog_compiler_pic='-fPIC'
7881 lt_prog_compiler_static='-static'
7883 # Lahey Fortran 8.1.
7885 lt_prog_compiler_wl='-Wl,'
7886 lt_prog_compiler_pic='--shared'
7887 lt_prog_compiler_static='--static'
7890 # NAG Fortran compiler
7891 lt_prog_compiler_wl='-Wl,-Wl,,'
7892 lt_prog_compiler_pic='-PIC'
7893 lt_prog_compiler_static='-Bstatic'
7895 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
7896 # Portland Group compilers (*not* the Pentium gcc compiler,
7897 # which looks to be a dead project)
7898 lt_prog_compiler_wl='-Wl,'
7899 lt_prog_compiler_pic='-fpic'
7900 lt_prog_compiler_static='-Bstatic'
7903 lt_prog_compiler_wl='-Wl,'
7904 # All Alpha code is PIC.
7905 lt_prog_compiler_static='-non_shared'
7907 xl* | bgxl* | bgf* | mpixl*)
7908 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
7909 lt_prog_compiler_wl='-Wl,'
7910 lt_prog_compiler_pic='-qpic'
7911 lt_prog_compiler_static='-qstaticlink'
7914 case `$CC -V 2>&1 | sed 5q` in
7915 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
7916 # Sun Fortran 8.3 passes all unrecognized flags to the linker
7917 lt_prog_compiler_pic='-KPIC'
7918 lt_prog_compiler_static='-Bstatic'
7919 lt_prog_compiler_wl=''
7921 *Sun\ F* | *Sun*Fortran*)
7922 lt_prog_compiler_pic='-KPIC'
7923 lt_prog_compiler_static='-Bstatic'
7924 lt_prog_compiler_wl='-Qoption ld '
7928 lt_prog_compiler_pic='-KPIC'
7929 lt_prog_compiler_static='-Bstatic'
7930 lt_prog_compiler_wl='-Wl,'
7932 *Intel*\ [CF]*Compiler*)
7933 lt_prog_compiler_wl='-Wl,'
7934 lt_prog_compiler_pic='-fPIC'
7935 lt_prog_compiler_static='-static'
7938 lt_prog_compiler_wl='-Wl,'
7939 lt_prog_compiler_pic='-fpic'
7940 lt_prog_compiler_static='-Bstatic'
7948 lt_prog_compiler_pic='-KPIC'
7949 lt_prog_compiler_static='-Bstatic'
7953 # QNX uses GNU C++, but need to define -shared option too, otherwise
7955 lt_prog_compiler_pic='-fPIC -shared'
7958 osf3* | osf4* | osf5*)
7959 lt_prog_compiler_wl='-Wl,'
7960 # All OSF/1 code is PIC.
7961 lt_prog_compiler_static='-non_shared'
7965 lt_prog_compiler_static='-non_shared'
7969 lt_prog_compiler_pic='-KPIC'
7970 lt_prog_compiler_static='-Bstatic'
7971 case $cc_basename in
7972 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
7973 lt_prog_compiler_wl='-Qoption ld ';;
7975 lt_prog_compiler_wl='-Wl,';;
7980 lt_prog_compiler_wl='-Qoption ld '
7981 lt_prog_compiler_pic='-PIC'
7982 lt_prog_compiler_static='-Bstatic'
7985 sysv4 | sysv4.2uw2* | sysv4.3*)
7986 lt_prog_compiler_wl='-Wl,'
7987 lt_prog_compiler_pic='-KPIC'
7988 lt_prog_compiler_static='-Bstatic'
7992 if test -d /usr/nec ;then
7993 lt_prog_compiler_pic='-Kconform_pic'
7994 lt_prog_compiler_static='-Bstatic'
7998 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7999 lt_prog_compiler_wl='-Wl,'
8000 lt_prog_compiler_pic='-KPIC'
8001 lt_prog_compiler_static='-Bstatic'
8005 lt_prog_compiler_wl='-Wl,'
8006 lt_prog_compiler_can_build_shared=no
8010 lt_prog_compiler_pic='-pic'
8011 lt_prog_compiler_static='-Bstatic'
8015 lt_prog_compiler_can_build_shared=no
8021 # For platforms which do not support PIC, -DPIC is meaningless:
8023 lt_prog_compiler_pic=
8026 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8031 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8032 if ${lt_cv_prog_compiler_pic+:} false; then :
8033 $as_echo_n "(cached) " >&6
8035 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8038 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8039 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8042 # Check to make sure the PIC flag actually works.
8044 if test -n "$lt_prog_compiler_pic"; then
8045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8046 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8047 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8048 $as_echo_n "(cached) " >&6
8050 lt_cv_prog_compiler_pic_works=no
8051 ac_outfile=conftest.$ac_objext
8052 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8053 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8054 # Insert the option either (1) after the last *FLAGS variable, or
8055 # (2) before a word containing "conftest.", or (3) at the end.
8056 # Note that $ac_compile itself does not contain backslashes and begins
8057 # with a dollar sign (not a hyphen), so the echo should work correctly.
8058 # The option is referenced via a variable to avoid confusing sed.
8059 lt_compile=`echo "$ac_compile" | $SED \
8060 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8061 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8062 -e 's:$: $lt_compiler_flag:'`
8063 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8064 (eval "$lt_compile" 2>conftest.err)
8066 cat conftest.err >&5
8067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8068 if (exit $ac_status) && test -s "$ac_outfile"; then
8069 # The compiler can only warn and ignore the option if not recognized
8070 # So say no if there are warnings other than the usual output.
8071 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8072 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8073 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8074 lt_cv_prog_compiler_pic_works=yes
8080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8081 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8083 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8084 case $lt_prog_compiler_pic in
8086 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8089 lt_prog_compiler_pic=
8090 lt_prog_compiler_can_build_shared=no
8106 # Check to make sure the static flag actually works.
8108 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8110 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8111 if ${lt_cv_prog_compiler_static_works+:} false; then :
8112 $as_echo_n "(cached) " >&6
8114 lt_cv_prog_compiler_static_works=no
8115 save_LDFLAGS="$LDFLAGS"
8116 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8117 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8118 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8119 # The linker can only warn and ignore the option if not recognized
8120 # So say no if there are warnings
8121 if test -s conftest.err; then
8122 # Append any errors to the config.log.
8123 cat conftest.err 1>&5
8124 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8125 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8126 if diff conftest.exp conftest.er2 >/dev/null; then
8127 lt_cv_prog_compiler_static_works=yes
8130 lt_cv_prog_compiler_static_works=yes
8134 LDFLAGS="$save_LDFLAGS"
8137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8138 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8140 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8143 lt_prog_compiler_static=
8152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8153 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8154 if ${lt_cv_prog_compiler_c_o+:} false; then :
8155 $as_echo_n "(cached) " >&6
8157 lt_cv_prog_compiler_c_o=no
8158 $RM -r conftest 2>/dev/null
8162 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8164 lt_compiler_flag="-o out/conftest2.$ac_objext"
8165 # Insert the option either (1) after the last *FLAGS variable, or
8166 # (2) before a word containing "conftest.", or (3) at the end.
8167 # Note that $ac_compile itself does not contain backslashes and begins
8168 # with a dollar sign (not a hyphen), so the echo should work correctly.
8169 lt_compile=`echo "$ac_compile" | $SED \
8170 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8171 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8172 -e 's:$: $lt_compiler_flag:'`
8173 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8174 (eval "$lt_compile" 2>out/conftest.err)
8176 cat out/conftest.err >&5
8177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8178 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8180 # The compiler can only warn and ignore the option if not recognized
8181 # So say no if there are warnings
8182 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8183 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8184 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8185 lt_cv_prog_compiler_c_o=yes
8190 # SGI C++ compiler will create directory out/ii_files/ for
8191 # template instantiation
8192 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8193 $RM out/* && rmdir out
8199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8200 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8208 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8209 if ${lt_cv_prog_compiler_c_o+:} false; then :
8210 $as_echo_n "(cached) " >&6
8212 lt_cv_prog_compiler_c_o=no
8213 $RM -r conftest 2>/dev/null
8217 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8219 lt_compiler_flag="-o out/conftest2.$ac_objext"
8220 # Insert the option either (1) after the last *FLAGS variable, or
8221 # (2) before a word containing "conftest.", or (3) at the end.
8222 # Note that $ac_compile itself does not contain backslashes and begins
8223 # with a dollar sign (not a hyphen), so the echo should work correctly.
8224 lt_compile=`echo "$ac_compile" | $SED \
8225 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8226 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8227 -e 's:$: $lt_compiler_flag:'`
8228 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8229 (eval "$lt_compile" 2>out/conftest.err)
8231 cat out/conftest.err >&5
8232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8233 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8235 # The compiler can only warn and ignore the option if not recognized
8236 # So say no if there are warnings
8237 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8238 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8239 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8240 lt_cv_prog_compiler_c_o=yes
8245 # SGI C++ compiler will create directory out/ii_files/ for
8246 # template instantiation
8247 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8248 $RM out/* && rmdir out
8254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8255 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8260 hard_links="nottested"
8261 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8262 # do not overwrite the value of need_locks provided by the user
8263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8264 $as_echo_n "checking if we can lock with hard links... " >&6; }
8267 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8269 ln conftest.a conftest.b 2>&5 || hard_links=no
8270 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8272 $as_echo "$hard_links" >&6; }
8273 if test "$hard_links" = no; then
8274 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8275 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8288 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8291 allow_undefined_flag=
8292 always_export_symbols=no
8294 archive_expsym_cmds=
8295 compiler_needs_object=no
8296 enable_shared_with_static_runtimes=no
8297 export_dynamic_flag_spec=
8298 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8299 hardcode_automatic=no
8301 hardcode_direct_absolute=no
8302 hardcode_libdir_flag_spec=
8303 hardcode_libdir_separator=
8305 hardcode_shlibpath_var=unsupported
8307 link_all_deplibs=unknown
8310 old_archive_from_new_cmds=
8311 old_archive_from_expsyms_cmds=
8312 thread_safe_flag_spec=
8313 whole_archive_flag_spec=
8314 # include_expsyms should be a list of space-separated symbols to be *always*
8315 # included in the symbol list
8317 # exclude_expsyms can be an extended regexp of symbols to exclude
8318 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8319 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8320 # as well as any symbol that contains `d'.
8321 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8322 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8323 # platforms (ab)use it in PIC code, but their linkers get confused if
8324 # the symbol is explicitly referenced. Since portable code cannot
8325 # rely on this symbol name, it's probably fine to never include it in
8326 # preloaded symbol tables.
8327 # Exclude shared library initialization/finalization symbols.
8328 extract_expsyms_cmds=
8331 cygwin* | mingw* | pw32* | cegcc*)
8332 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8333 # When not using gcc, we currently assume that we are using
8334 # Microsoft Visual C++.
8335 if test "$GCC" != yes; then
8340 # we just hope/assume this is gcc and not c89 (= MSVC++)
8346 linux* | k*bsd*-gnu | gnu*)
8353 # On some targets, GNU ld is compatible enough with the native linker
8354 # that we're better off using the native interface for both.
8355 lt_use_gnu_ld_interface=no
8356 if test "$with_gnu_ld" = yes; then
8359 # The AIX port of GNU ld has always aspired to compatibility
8360 # with the native linker. However, as the warning in the GNU ld
8361 # block says, versions before 2.19.5* couldn't really create working
8362 # shared libraries, regardless of the interface used.
8363 case `$LD -v 2>&1` in
8364 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8365 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8366 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8368 lt_use_gnu_ld_interface=yes
8373 lt_use_gnu_ld_interface=yes
8378 if test "$lt_use_gnu_ld_interface" = yes; then
8379 # If archive_cmds runs LD, not CC, wlarc should be empty
8382 # Set some defaults for GNU ld with shared library support. These
8383 # are reset later if shared libraries are not supported. Putting them
8384 # here allows them to be overridden if necessary.
8385 runpath_var=LD_RUN_PATH
8386 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8387 export_dynamic_flag_spec='${wl}--export-dynamic'
8388 # ancient GNU ld didn't support --whole-archive et. al.
8389 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8390 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8392 whole_archive_flag_spec=
8394 supports_anon_versioning=no
8395 case `$LD -v 2>&1` in
8396 *GNU\ gold*) supports_anon_versioning=yes ;;
8397 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8398 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8399 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8400 *\ 2.11.*) ;; # other 2.11 versions
8401 *) supports_anon_versioning=yes ;;
8404 # See if GNU ld supports shared libraries.
8407 # On AIX/PPC, the GNU linker is very broken
8408 if test "$host_cpu" != ia64; then
8412 *** Warning: the GNU linker, at least up to release 2.19, is reported
8413 *** to be unable to reliably create shared libraries on AIX.
8414 *** Therefore, libtool is disabling shared libraries support. If you
8415 *** really care for shared libraries, you may want to install binutils
8416 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8417 *** You will then need to restart the configuration process.
8426 # see comment about AmigaOS4 .so support
8427 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8428 archive_expsym_cmds=''
8431 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)'
8432 hardcode_libdir_flag_spec='-L$libdir'
8433 hardcode_minus_L=yes
8439 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8440 allow_undefined_flag=unsupported
8441 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8442 # support --undefined. This deserves some investigation. FIXME
8443 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8449 cygwin* | mingw* | pw32* | cegcc*)
8450 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8451 # as there is no search path for DLLs.
8452 hardcode_libdir_flag_spec='-L$libdir'
8453 export_dynamic_flag_spec='${wl}--export-all-symbols'
8454 allow_undefined_flag=unsupported
8455 always_export_symbols=no
8456 enable_shared_with_static_runtimes=yes
8457 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'
8458 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
8460 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8461 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8462 # If the export-symbols file already is a .def file (1st line
8463 # is EXPORTS), use it as is; otherwise, prepend...
8464 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8465 cp $export_symbols $output_objdir/$soname.def;
8467 echo EXPORTS > $output_objdir/$soname.def;
8468 cat $export_symbols >> $output_objdir/$soname.def;
8470 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8477 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8478 link_all_deplibs=yes
8483 hardcode_shlibpath_var=no
8484 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8485 export_dynamic_flag_spec='${wl}-E'
8486 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8487 # Instead, shared libraries are loaded at an image base (0x10000000 by
8488 # default) and relocated if they conflict, which is a slow very memory
8489 # consuming and fragmenting process. To avoid this, we pick a random,
8490 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8491 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8492 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8493 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'
8496 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8498 if test "$host_os" = linux-dietlibc; then
8499 case $cc_basename in
8500 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8503 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8504 && test "$tmp_diet" = no
8506 tmp_addflag=' $pic_flag'
8507 tmp_sharedflag='-shared'
8508 case $cc_basename,$host_cpu in
8509 pgcc*) # Portland Group C compiler
8510 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'
8511 tmp_addflag=' $pic_flag'
8513 pgf77* | pgf90* | pgf95* | pgfortran*)
8514 # Portland Group f77 and f90 compilers
8515 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'
8516 tmp_addflag=' $pic_flag -Mnomain' ;;
8517 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8518 tmp_addflag=' -i_dynamic' ;;
8519 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8520 tmp_addflag=' -i_dynamic -nofor_main' ;;
8521 ifc* | ifort*) # Intel Fortran compiler
8522 tmp_addflag=' -nofor_main' ;;
8523 lf95*) # Lahey Fortran 8.1
8524 whole_archive_flag_spec=
8525 tmp_sharedflag='--shared' ;;
8526 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8527 tmp_sharedflag='-qmkshrobj'
8529 nvcc*) # Cuda Compiler Driver 2.2
8530 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'
8531 compiler_needs_object=yes
8534 case `$CC -V 2>&1 | sed 5q` in
8535 *Sun\ C*) # Sun C 5.9
8536 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'
8537 compiler_needs_object=yes
8538 tmp_sharedflag='-G' ;;
8539 *Sun\ F*) # Sun Fortran 8.3
8540 tmp_sharedflag='-G' ;;
8542 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8544 if test "x$supports_anon_versioning" = xyes; then
8545 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8546 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8547 echo "local: *; };" >> $output_objdir/$libname.ver~
8548 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8551 case $cc_basename in
8552 xlf* | bgf* | bgxlf* | mpixlf*)
8553 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8554 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8555 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8556 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
8557 if test "x$supports_anon_versioning" = xyes; then
8558 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8559 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8560 echo "local: *; };" >> $output_objdir/$libname.ver~
8561 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8570 netbsd* | netbsdelf*-gnu)
8571 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8572 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8575 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8576 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8581 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8585 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8586 *** create shared libraries on Solaris systems. Therefore, libtool
8587 *** is disabling shared libraries support. We urge you to upgrade GNU
8588 *** binutils to release 2.9.1 or newer. Another option is to modify
8589 *** your PATH or compiler configuration so that the native linker is
8590 *** used, and then restart.
8593 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8594 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8595 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8601 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8602 case `$LD -v 2>&1` in
8603 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8607 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8608 *** reliably create shared libraries on SCO systems. Therefore, libtool
8609 *** is disabling shared libraries support. We urge you to upgrade GNU
8610 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8611 *** your PATH or compiler configuration so that the native linker is
8612 *** used, and then restart.
8617 # For security reasons, it is highly recommended that you always
8618 # use absolute paths for naming shared libraries, and exclude the
8619 # DT_RUNPATH tag from executables and libraries. But doing so
8620 # requires that you compile everything twice, which is a pain.
8621 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8622 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8623 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8624 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8633 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8636 hardcode_shlibpath_var=no
8640 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8641 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8642 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8649 if test "$ld_shlibs" = no; then
8651 hardcode_libdir_flag_spec=
8652 export_dynamic_flag_spec=
8653 whole_archive_flag_spec=
8656 # PORTME fill in a description of your system's linker (not GNU ld)
8659 allow_undefined_flag=unsupported
8660 always_export_symbols=yes
8661 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'
8662 # Note: this linker hardcodes the directories in LIBPATH if there
8663 # are no directories specified by -L.
8664 hardcode_minus_L=yes
8665 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8666 # Neither direct hardcoding nor static linking is supported with a
8668 hardcode_direct=unsupported
8673 if test "$host_cpu" = ia64; then
8674 # On IA64, the linker does run time linking by default, so we don't
8675 # have to do anything special.
8676 aix_use_runtimelinking=no
8677 exp_sym_flag='-Bexport'
8680 # If we're using GNU nm, then we don't want the "-C" option.
8681 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8682 # Also, AIX nm treats weak defined symbols like other global
8683 # defined symbols, whereas GNU nm marks them as "W".
8684 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8685 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'
8687 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'
8689 aix_use_runtimelinking=no
8691 # Test if we are trying to use run time linking or normal
8692 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8693 # need to do runtime linking.
8694 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8695 for ld_flag in $LDFLAGS; do
8696 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8697 aix_use_runtimelinking=yes
8704 exp_sym_flag='-bexport'
8705 no_entry_flag='-bnoentry'
8708 # When large executables or shared objects are built, AIX ld can
8709 # have problems creating the table of contents. If linking a library
8710 # or program results in "error TOC overflow" add -mminimal-toc to
8711 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8712 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8716 hardcode_direct_absolute=yes
8717 hardcode_libdir_separator=':'
8718 link_all_deplibs=yes
8719 file_list_spec='${wl}-f,'
8721 if test "$GCC" = yes; then
8722 case $host_os in aix4.[012]|aix4.[012].*)
8723 # We only want to do this on AIX 4.2 and lower, the check
8724 # below for broken collect2 doesn't work under 4.3+
8725 collect2name=`${CC} -print-prog-name=collect2`
8726 if test -f "$collect2name" &&
8727 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8729 # We have reworked collect2
8732 # We have old collect2
8733 hardcode_direct=unsupported
8734 # It fails to find uninstalled libraries when the uninstalled
8735 # path is not listed in the libpath. Setting hardcode_minus_L
8736 # to unsupported forces relinking
8737 hardcode_minus_L=yes
8738 hardcode_libdir_flag_spec='-L$libdir'
8739 hardcode_libdir_separator=
8743 shared_flag='-shared'
8744 if test "$aix_use_runtimelinking" = yes; then
8745 shared_flag="$shared_flag "'${wl}-G'
8750 if test "$host_cpu" = ia64; then
8751 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8752 # chokes on -Wl,-G. The following line is correct:
8755 if test "$aix_use_runtimelinking" = yes; then
8756 shared_flag='${wl}-G'
8758 shared_flag='${wl}-bM:SRE'
8763 export_dynamic_flag_spec='${wl}-bexpall'
8764 # It seems that -bexpall does not export symbols beginning with
8765 # underscore (_), so it is better to generate a list of symbols to export.
8766 always_export_symbols=yes
8767 if test "$aix_use_runtimelinking" = yes; then
8768 # Warning - without using the other runtime loading flags (-brtl),
8769 # -berok will link without error, but may produce a broken library.
8770 allow_undefined_flag='-berok'
8771 # Determine the default libpath from the value encoded in an
8773 if test "${lt_cv_aix_libpath+set}" = set; then
8774 aix_libpath=$lt_cv_aix_libpath
8776 if ${lt_cv_aix_libpath_+:} false; then :
8777 $as_echo_n "(cached) " >&6
8779 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8780 /* end confdefs.h. */
8790 if ac_fn_c_try_link "$LINENO"; then :
8792 lt_aix_libpath_sed='
8793 /Import File Strings/,/^$/ {
8795 s/^0 *\([^ ]*\) *$/\1/
8799 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8800 # Check for a 64-bit object if we didn't find anything.
8801 if test -z "$lt_cv_aix_libpath_"; then
8802 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8805 rm -f core conftest.err conftest.$ac_objext \
8806 conftest$ac_exeext conftest.$ac_ext
8807 if test -z "$lt_cv_aix_libpath_"; then
8808 lt_cv_aix_libpath_="/usr/lib:/lib"
8813 aix_libpath=$lt_cv_aix_libpath_
8816 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8817 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"
8819 if test "$host_cpu" = ia64; then
8820 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8821 allow_undefined_flag="-z nodefs"
8822 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"
8824 # Determine the default libpath from the value encoded in an
8826 if test "${lt_cv_aix_libpath+set}" = set; then
8827 aix_libpath=$lt_cv_aix_libpath
8829 if ${lt_cv_aix_libpath_+:} false; then :
8830 $as_echo_n "(cached) " >&6
8832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8833 /* end confdefs.h. */
8843 if ac_fn_c_try_link "$LINENO"; then :
8845 lt_aix_libpath_sed='
8846 /Import File Strings/,/^$/ {
8848 s/^0 *\([^ ]*\) *$/\1/
8852 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8853 # Check for a 64-bit object if we didn't find anything.
8854 if test -z "$lt_cv_aix_libpath_"; then
8855 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8858 rm -f core conftest.err conftest.$ac_objext \
8859 conftest$ac_exeext conftest.$ac_ext
8860 if test -z "$lt_cv_aix_libpath_"; then
8861 lt_cv_aix_libpath_="/usr/lib:/lib"
8866 aix_libpath=$lt_cv_aix_libpath_
8869 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8870 # Warning - without using the other run time loading flags,
8871 # -berok will link without error, but may produce a broken library.
8872 no_undefined_flag=' ${wl}-bernotok'
8873 allow_undefined_flag=' ${wl}-berok'
8874 if test "$with_gnu_ld" = yes; then
8875 # We only use this code for GNU lds that support --whole-archive.
8876 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
8878 # Exported symbols can be pulled into shared objects from archives
8879 whole_archive_flag_spec='$convenience'
8881 archive_cmds_need_lc=yes
8882 # This is similar to how AIX traditionally builds its shared libraries.
8883 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'
8891 # see comment about AmigaOS4 .so support
8892 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8893 archive_expsym_cmds=''
8896 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)'
8897 hardcode_libdir_flag_spec='-L$libdir'
8898 hardcode_minus_L=yes
8904 export_dynamic_flag_spec=-rdynamic
8907 cygwin* | mingw* | pw32* | cegcc*)
8908 # When not using gcc, we currently assume that we are using
8909 # Microsoft Visual C++.
8910 # hardcode_libdir_flag_spec is actually meaningless, as there is
8911 # no search path for DLLs.
8912 case $cc_basename in
8915 hardcode_libdir_flag_spec=' '
8916 allow_undefined_flag=unsupported
8917 always_export_symbols=yes
8919 # Tell ltmain to make .lib files, not .a files.
8921 # Tell ltmain to make .dll files, not .so files.
8923 # FIXME: Setting linknames here is a bad hack.
8924 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
8925 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8926 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
8928 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
8930 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
8932 # The linker will not automatically build a static lib if we build a DLL.
8933 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
8934 enable_shared_with_static_runtimes=yes
8935 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
8936 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8938 old_postinstall_cmds='chmod 644 $oldlib'
8939 postlink_cmds='lt_outputfile="@OUTPUT@"~
8940 lt_tool_outputfile="@TOOL_OUTPUT@"~
8941 case $lt_outputfile in
8944 lt_outputfile="$lt_outputfile.exe"
8945 lt_tool_outputfile="$lt_tool_outputfile.exe"
8948 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
8949 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
8950 $RM "$lt_outputfile.manifest";
8954 # Assume MSVC wrapper
8955 hardcode_libdir_flag_spec=' '
8956 allow_undefined_flag=unsupported
8957 # Tell ltmain to make .lib files, not .a files.
8959 # Tell ltmain to make .dll files, not .so files.
8961 # FIXME: Setting linknames here is a bad hack.
8962 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
8963 # The linker will automatically build a .lib file if we build a DLL.
8964 old_archive_from_new_cmds='true'
8965 # FIXME: Should let the user specify the lib program.
8966 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8967 enable_shared_with_static_runtimes=yes
8972 darwin* | rhapsody*)
8975 archive_cmds_need_lc=no
8977 hardcode_automatic=yes
8978 hardcode_shlibpath_var=unsupported
8979 if test "$lt_cv_ld_force_load" = "yes"; then
8980 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\"`'
8983 whole_archive_flag_spec=''
8985 link_all_deplibs=yes
8986 allow_undefined_flag="$_lt_dar_allow_undefined"
8987 case $cc_basename in
8988 ifort*) _lt_dar_can_shared=yes ;;
8989 *) _lt_dar_can_shared=$GCC ;;
8991 if test "$_lt_dar_can_shared" = "yes"; then
8992 output_verbose_link_cmd=func_echo_all
8993 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8994 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8995 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}"
8996 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}"
9005 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9006 hardcode_libdir_flag_spec='-L$libdir'
9007 hardcode_shlibpath_var=no
9010 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9011 # support. Future versions do this automatically, but an explicit c++rt0.o
9012 # does not break anything, and helps significantly (at the cost of a little
9015 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9016 hardcode_libdir_flag_spec='-R$libdir'
9018 hardcode_shlibpath_var=no
9021 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9023 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9025 hardcode_minus_L=yes
9026 hardcode_shlibpath_var=no
9029 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9030 freebsd* | dragonfly*)
9031 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9032 hardcode_libdir_flag_spec='-R$libdir'
9034 hardcode_shlibpath_var=no
9038 if test "$GCC" = yes; then
9039 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'
9041 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'
9043 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9044 hardcode_libdir_separator=:
9047 # hardcode_minus_L: Not really in the search PATH,
9048 # but as the default location of the library.
9049 hardcode_minus_L=yes
9050 export_dynamic_flag_spec='${wl}-E'
9054 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9055 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9057 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9059 if test "$with_gnu_ld" = no; then
9060 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9061 hardcode_libdir_separator=:
9063 hardcode_direct_absolute=yes
9064 export_dynamic_flag_spec='${wl}-E'
9065 # hardcode_minus_L: Not really in the search PATH,
9066 # but as the default location of the library.
9067 hardcode_minus_L=yes
9072 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9075 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9078 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9081 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9087 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9090 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9094 # Older versions of the 11.00 compiler do not understand -b yet
9095 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9097 $as_echo_n "checking if $CC understands -b... " >&6; }
9098 if ${lt_cv_prog_compiler__b+:} false; then :
9099 $as_echo_n "(cached) " >&6
9101 lt_cv_prog_compiler__b=no
9102 save_LDFLAGS="$LDFLAGS"
9103 LDFLAGS="$LDFLAGS -b"
9104 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9105 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9106 # The linker can only warn and ignore the option if not recognized
9107 # So say no if there are warnings
9108 if test -s conftest.err; then
9109 # Append any errors to the config.log.
9110 cat conftest.err 1>&5
9111 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9112 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9113 if diff conftest.exp conftest.er2 >/dev/null; then
9114 lt_cv_prog_compiler__b=yes
9117 lt_cv_prog_compiler__b=yes
9121 LDFLAGS="$save_LDFLAGS"
9124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9125 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9127 if test x"$lt_cv_prog_compiler__b" = xyes; then
9128 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9130 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9136 if test "$with_gnu_ld" = no; then
9137 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9138 hardcode_libdir_separator=:
9143 hardcode_shlibpath_var=no
9147 hardcode_direct_absolute=yes
9148 export_dynamic_flag_spec='${wl}-E'
9150 # hardcode_minus_L: Not really in the search PATH,
9151 # but as the default location of the library.
9152 hardcode_minus_L=yes
9158 irix5* | irix6* | nonstopux*)
9159 if test "$GCC" = yes; then
9160 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'
9161 # Try to use the -exported_symbol ld option, if it does not
9162 # work, assume that -exports_file does not work either and
9163 # implicitly export all symbols.
9164 # This should be the same for all languages, so no per-tag cache variable.
9165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9166 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9167 if ${lt_cv_irix_exported_symbol+:} false; then :
9168 $as_echo_n "(cached) " >&6
9170 save_LDFLAGS="$LDFLAGS"
9171 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9172 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9173 /* end confdefs.h. */
9174 int foo (void) { return 0; }
9176 if ac_fn_c_try_link "$LINENO"; then :
9177 lt_cv_irix_exported_symbol=yes
9179 lt_cv_irix_exported_symbol=no
9181 rm -f core conftest.err conftest.$ac_objext \
9182 conftest$ac_exeext conftest.$ac_ext
9183 LDFLAGS="$save_LDFLAGS"
9185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9186 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
9187 if test "$lt_cv_irix_exported_symbol" = yes; then
9188 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'
9191 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'
9192 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'
9194 archive_cmds_need_lc='no'
9195 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9196 hardcode_libdir_separator=:
9198 link_all_deplibs=yes
9201 netbsd* | netbsdelf*-gnu)
9202 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9203 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9205 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9207 hardcode_libdir_flag_spec='-R$libdir'
9209 hardcode_shlibpath_var=no
9213 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9215 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9216 hardcode_libdir_separator=:
9217 hardcode_shlibpath_var=no
9224 if test -f /usr/libexec/ld.so; then
9226 hardcode_shlibpath_var=no
9227 hardcode_direct_absolute=yes
9228 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9229 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9230 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9231 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9232 export_dynamic_flag_spec='${wl}-E'
9235 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9236 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9237 hardcode_libdir_flag_spec='-R$libdir'
9240 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9241 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9251 hardcode_libdir_flag_spec='-L$libdir'
9252 hardcode_minus_L=yes
9253 allow_undefined_flag=unsupported
9254 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'
9255 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9259 if test "$GCC" = yes; then
9260 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9261 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'
9263 allow_undefined_flag=' -expect_unresolved \*'
9264 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'
9266 archive_cmds_need_lc='no'
9267 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9268 hardcode_libdir_separator=:
9271 osf4* | osf5*) # as osf3* with the addition of -msym flag
9272 if test "$GCC" = yes; then
9273 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9274 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'
9275 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9277 allow_undefined_flag=' -expect_unresolved \*'
9278 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'
9279 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~
9280 $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'
9282 # Both c and cxx compiler support -rpath directly
9283 hardcode_libdir_flag_spec='-rpath $libdir'
9285 archive_cmds_need_lc='no'
9286 hardcode_libdir_separator=:
9290 no_undefined_flag=' -z defs'
9291 if test "$GCC" = yes; then
9293 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9294 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9295 $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'
9297 case `$CC -V 2>&1` in
9300 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9301 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9302 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9306 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9307 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9308 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9312 hardcode_libdir_flag_spec='-R$libdir'
9313 hardcode_shlibpath_var=no
9315 solaris2.[0-5] | solaris2.[0-5].*) ;;
9317 # The compiler driver will combine and reorder linker options,
9318 # but understands `-z linker_flag'. GCC discards it without `$wl',
9319 # but is careful enough not to reorder.
9320 # Supported since Solaris 2.6 (maybe 2.5.1?)
9321 if test "$GCC" = yes; then
9322 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9324 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9328 link_all_deplibs=yes
9332 if test "x$host_vendor" = xsequent; then
9333 # Use $CC to link under sequent, because it throws in some extra .o
9334 # files that make .init and .fini sections work.
9335 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9337 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9339 hardcode_libdir_flag_spec='-L$libdir'
9341 hardcode_minus_L=yes
9342 hardcode_shlibpath_var=no
9346 case $host_vendor in
9348 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9349 hardcode_direct=yes # is this really true???
9352 ## LD is ld it makes a PLAMLIB
9353 ## CC just makes a GrossModule.
9354 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9355 reload_cmds='$CC -r -o $output$reload_objs'
9359 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9360 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9363 runpath_var='LD_RUN_PATH'
9364 hardcode_shlibpath_var=no
9368 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9369 hardcode_shlibpath_var=no
9370 export_dynamic_flag_spec='-Bexport'
9374 if test -d /usr/nec; then
9375 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9376 hardcode_shlibpath_var=no
9377 runpath_var=LD_RUN_PATH
9378 hardcode_runpath_var=yes
9383 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9384 no_undefined_flag='${wl}-z,text'
9385 archive_cmds_need_lc=no
9386 hardcode_shlibpath_var=no
9387 runpath_var='LD_RUN_PATH'
9389 if test "$GCC" = yes; then
9390 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9391 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9393 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9394 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9398 sysv5* | sco3.2v5* | sco5v6*)
9399 # Note: We can NOT use -z defs as we might desire, because we do not
9400 # link with -lc, and that would cause any symbols used from libc to
9401 # always be unresolved, which means just about no library would
9402 # ever link correctly. If we're not using GNU ld we use -z text
9403 # though, which does catch some bad symbols but isn't as heavy-handed
9405 no_undefined_flag='${wl}-z,text'
9406 allow_undefined_flag='${wl}-z,nodefs'
9407 archive_cmds_need_lc=no
9408 hardcode_shlibpath_var=no
9409 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9410 hardcode_libdir_separator=':'
9411 link_all_deplibs=yes
9412 export_dynamic_flag_spec='${wl}-Bexport'
9413 runpath_var='LD_RUN_PATH'
9415 if test "$GCC" = yes; then
9416 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9417 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9419 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9420 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9425 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9426 hardcode_libdir_flag_spec='-L$libdir'
9427 hardcode_shlibpath_var=no
9435 if test x$host_vendor = xsni; then
9437 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9438 export_dynamic_flag_spec='${wl}-Blargedynsym'
9444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9445 $as_echo "$ld_shlibs" >&6; }
9446 test "$ld_shlibs" = no && can_build_shared=no
9448 with_gnu_ld=$with_gnu_ld
9465 # Do we need to explicitly link libc?
9467 case "x$archive_cmds_need_lc" in
9469 # Assume -lc should be added
9470 archive_cmds_need_lc=yes
9472 if test "$enable_shared" = yes && test "$GCC" = yes; then
9473 case $archive_cmds in
9475 # FIXME: we may have to deal with multi-command sequences.
9478 # Test whether the compiler implicitly links with -lc since on some
9479 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9480 # to ld, don't add -lc before -lgcc.
9481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9482 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9483 if ${lt_cv_archive_cmds_need_lc+:} false; then :
9484 $as_echo_n "(cached) " >&6
9487 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9489 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9490 (eval $ac_compile) 2>&5
9492 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9493 test $ac_status = 0; } 2>conftest.err; then
9496 libobjs=conftest.$ac_objext
9498 wl=$lt_prog_compiler_wl
9499 pic_flag=$lt_prog_compiler_pic
9505 lt_save_allow_undefined_flag=$allow_undefined_flag
9506 allow_undefined_flag=
9507 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9508 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9510 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9511 test $ac_status = 0; }
9513 lt_cv_archive_cmds_need_lc=no
9515 lt_cv_archive_cmds_need_lc=yes
9517 allow_undefined_flag=$lt_save_allow_undefined_flag
9519 cat conftest.err 1>&5
9524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9525 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9526 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9685 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9687 if test "$GCC" = yes; then
9689 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9690 *) lt_awk_arg="/^libraries:/" ;;
9693 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
9694 *) lt_sed_strip_eq="s,=/,/,g" ;;
9696 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
9697 case $lt_search_path_spec in
9699 # if the path contains ";" then we assume it to be the separator
9700 # otherwise default to the standard path separator (i.e. ":") - it is
9701 # assumed that no part of a normal pathname contains ";" but that should
9702 # okay in the real world where ";" in dirpaths is itself problematic.
9703 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
9706 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
9709 # Ok, now we have the path, separated by spaces, we can step through it
9710 # and add multilib dir if necessary.
9711 lt_tmp_lt_search_path_spec=
9712 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9713 for lt_sys_path in $lt_search_path_spec; do
9714 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9715 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9717 test -d "$lt_sys_path" && \
9718 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9721 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
9722 BEGIN {RS=" "; FS="/|\n";} {
9725 for (lt_i = NF; lt_i > 0; lt_i--) {
9726 if ($lt_i != "" && $lt_i != ".") {
9727 if ($lt_i == "..") {
9730 if (lt_count == 0) {
9731 lt_foo="/" $lt_i lt_foo;
9738 if (lt_foo != "") { lt_freq[lt_foo]++; }
9739 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9741 # AWK program above erroneously prepends '/' to C:/dos/paths
9744 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
9745 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
9747 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
9749 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9752 libname_spec='lib$name'
9760 shlibpath_overrides_runpath=unknown
9762 dynamic_linker="$host_os ld.so"
9763 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9764 need_lib_prefix=unknown
9765 hardcode_into_libs=no
9767 # when you set need_version to no, make sure it does not cause -set_version
9768 # flags to be left without arguments
9769 need_version=unknown
9773 version_type=linux # correct to gnu/linux during the next big refactor
9774 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9775 shlibpath_var=LIBPATH
9777 # AIX 3 has no versioning support, so we append a major version to the name.
9778 soname_spec='${libname}${release}${shared_ext}$major'
9782 version_type=linux # correct to gnu/linux during the next big refactor
9785 hardcode_into_libs=yes
9786 if test "$host_cpu" = ia64; then
9787 # AIX 5 supports IA64
9788 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9789 shlibpath_var=LD_LIBRARY_PATH
9791 # With GCC up to 2.95.x, collect2 would create an import file
9792 # for dependence libraries. The import file would start with
9793 # the line `#! .'. This would cause the generated library to
9794 # depend on `.', always an invalid library. This was fixed in
9795 # development snapshots of GCC prior to 3.0.
9797 aix4 | aix4.[01] | aix4.[01].*)
9798 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9800 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9807 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9808 # soname into executable. Probably we can add versioning support to
9809 # collect2, so additional links can be useful in future.
9810 if test "$aix_use_runtimelinking" = yes; then
9811 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9812 # instead of lib<name>.a to let people know that these are not
9813 # typical AIX shared libraries.
9814 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9816 # We preserve .a as extension for shared libraries through AIX4.2
9817 # and later when we are not doing run time linking.
9818 library_names_spec='${libname}${release}.a $libname.a'
9819 soname_spec='${libname}${release}${shared_ext}$major'
9821 shlibpath_var=LIBPATH
9828 # Since July 2007 AmigaOS4 officially supports .so libraries.
9829 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9830 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9833 library_names_spec='$libname.ixlibrary $libname.a'
9834 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9835 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'
9841 library_names_spec='${libname}${shared_ext}'
9842 dynamic_linker="$host_os ld.so"
9843 shlibpath_var=LIBRARY_PATH
9847 version_type=linux # correct to gnu/linux during the next big refactor
9849 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9850 soname_spec='${libname}${release}${shared_ext}$major'
9851 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9852 shlibpath_var=LD_LIBRARY_PATH
9853 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9854 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9855 # the default ld.so.conf also contains /usr/contrib/lib and
9856 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9857 # libtool to hard-code these into programs
9860 cygwin* | mingw* | pw32* | cegcc*)
9861 version_type=windows
9866 case $GCC,$cc_basename in
9869 library_names_spec='$libname.dll.a'
9870 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9871 postinstall_cmds='base_file=`basename \${file}`~
9872 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9873 dldir=$destdir/`dirname \$dlpath`~
9874 test -d \$dldir || mkdir -p \$dldir~
9875 $install_prog $dir/$dlname \$dldir/$dlname~
9876 chmod a+x \$dldir/$dlname~
9877 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9878 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9880 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9881 dlpath=$dir/\$dldll~
9883 shlibpath_overrides_runpath=yes
9887 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9888 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9890 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
9893 # MinGW DLLs use traditional 'lib' prefix
9894 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9897 # pw32 DLLs use 'pw' prefix rather than 'lib'
9898 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9901 dynamic_linker='Win32 ld.exe'
9906 libname_spec='$name'
9907 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9908 library_names_spec='${libname}.dll.lib'
9912 sys_lib_search_path_spec=
9918 # Let DOS variable expansion print the short 8.3 style file name.
9919 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
9920 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
9923 # Convert to MSYS style.
9924 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
9927 # Convert to unix form, then to dos form, then back to unix form
9928 # but this time dos style (no spaces!) so that the unix form looks
9929 # like /cygdrive/c/PROGRA~1:/cygdr...
9930 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
9931 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
9932 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9935 sys_lib_search_path_spec="$LIB"
9936 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
9937 # It is most probably a Windows format PATH.
9938 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9940 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9942 # FIXME: find the short name or the path components, as spaces are
9943 # common. (e.g. "Program Files" -> "PROGRA~1")
9947 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9948 postinstall_cmds='base_file=`basename \${file}`~
9949 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9950 dldir=$destdir/`dirname \$dlpath`~
9951 test -d \$dldir || mkdir -p \$dldir~
9952 $install_prog $dir/$dlname \$dldir/$dlname'
9953 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9954 dlpath=$dir/\$dldll~
9956 shlibpath_overrides_runpath=yes
9957 dynamic_linker='Win32 link.exe'
9961 # Assume MSVC wrapper
9962 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9963 dynamic_linker='Win32 ld.exe'
9966 # FIXME: first we should search . and the directory the executable is in
9970 darwin* | rhapsody*)
9971 dynamic_linker="$host_os dyld"
9975 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9976 soname_spec='${libname}${release}${major}$shared_ext'
9977 shlibpath_overrides_runpath=yes
9978 shlibpath_var=DYLD_LIBRARY_PATH
9979 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9981 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9982 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9986 version_type=linux # correct to gnu/linux during the next big refactor
9989 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9990 soname_spec='${libname}${release}${shared_ext}$major'
9991 shlibpath_var=LD_LIBRARY_PATH
9994 freebsd* | dragonfly*)
9995 # DragonFly does not have aout. When/if they implement a new
9996 # versioning mechanism, adjust this.
9997 if test -x /usr/bin/objformat; then
9998 objformat=`/usr/bin/objformat`
10001 freebsd[23].*) objformat=aout ;;
10002 *) objformat=elf ;;
10005 version_type=freebsd-$objformat
10006 case $version_type in
10008 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10013 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10017 shlibpath_var=LD_LIBRARY_PATH
10020 shlibpath_overrides_runpath=yes
10022 freebsd3.[01]* | freebsdelf3.[01]*)
10023 shlibpath_overrides_runpath=yes
10024 hardcode_into_libs=yes
10026 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10027 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10028 shlibpath_overrides_runpath=no
10029 hardcode_into_libs=yes
10031 *) # from 4.6 on, and DragonFly
10032 shlibpath_overrides_runpath=yes
10033 hardcode_into_libs=yes
10039 version_type=linux # correct to gnu/linux during the next big refactor
10042 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10043 soname_spec='${libname}${release}${shared_ext}$major'
10044 shlibpath_var=LD_LIBRARY_PATH
10045 shlibpath_overrides_runpath=no
10046 hardcode_into_libs=yes
10050 version_type=linux # correct to gnu/linux during the next big refactor
10053 dynamic_linker="$host_os runtime_loader"
10054 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10055 soname_spec='${libname}${release}${shared_ext}$major'
10056 shlibpath_var=LIBRARY_PATH
10057 shlibpath_overrides_runpath=yes
10058 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10059 hardcode_into_libs=yes
10062 hpux9* | hpux10* | hpux11*)
10063 # Give a soname corresponding to the major version so that dld.sl refuses to
10064 # link against other versions.
10071 hardcode_into_libs=yes
10072 dynamic_linker="$host_os dld.so"
10073 shlibpath_var=LD_LIBRARY_PATH
10074 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10075 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10076 soname_spec='${libname}${release}${shared_ext}$major'
10077 if test "X$HPUX_IA64_MODE" = X32; then
10078 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10080 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10082 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10086 hardcode_into_libs=yes
10087 dynamic_linker="$host_os dld.sl"
10088 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10089 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10090 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10091 soname_spec='${libname}${release}${shared_ext}$major'
10092 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10093 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10097 dynamic_linker="$host_os dld.sl"
10098 shlibpath_var=SHLIB_PATH
10099 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10100 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10101 soname_spec='${libname}${release}${shared_ext}$major'
10104 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10105 postinstall_cmds='chmod 555 $lib'
10106 # or fails outright, so override atomically:
10107 install_override_mode=555
10111 version_type=linux # correct to gnu/linux during the next big refactor
10114 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10115 soname_spec='${libname}${release}${shared_ext}$major'
10116 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10117 shlibpath_var=LD_LIBRARY_PATH
10118 shlibpath_overrides_runpath=no
10119 hardcode_into_libs=yes
10122 irix5* | irix6* | nonstopux*)
10124 nonstopux*) version_type=nonstopux ;;
10126 if test "$lt_cv_prog_gnu_ld" = yes; then
10127 version_type=linux # correct to gnu/linux during the next big refactor
10134 soname_spec='${libname}${release}${shared_ext}$major'
10135 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10137 irix5* | nonstopux*)
10138 libsuff= shlibsuff=
10141 case $LD in # libtool.m4 will add one of these switches to LD
10142 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10143 libsuff= shlibsuff= libmagic=32-bit;;
10144 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10145 libsuff=32 shlibsuff=N32 libmagic=N32;;
10146 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10147 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10148 *) libsuff= shlibsuff= libmagic=never-match;;
10152 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10153 shlibpath_overrides_runpath=no
10154 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10155 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10156 hardcode_into_libs=yes
10159 # No shared lib support for Linux oldld, aout, or coff.
10160 linux*oldld* | linux*aout* | linux*coff*)
10164 # This must be glibc/ELF.
10165 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10166 version_type=linux # correct to gnu/linux during the next big refactor
10169 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10170 soname_spec='${libname}${release}${shared_ext}$major'
10171 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10172 shlibpath_var=LD_LIBRARY_PATH
10173 shlibpath_overrides_runpath=no
10175 # Some binutils ld are patched to set DT_RUNPATH
10176 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10177 $as_echo_n "(cached) " >&6
10179 lt_cv_shlibpath_overrides_runpath=no
10180 save_LDFLAGS=$LDFLAGS
10181 save_libdir=$libdir
10182 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10183 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10185 /* end confdefs.h. */
10195 if ac_fn_c_try_link "$LINENO"; then :
10196 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10197 lt_cv_shlibpath_overrides_runpath=yes
10200 rm -f core conftest.err conftest.$ac_objext \
10201 conftest$ac_exeext conftest.$ac_ext
10202 LDFLAGS=$save_LDFLAGS
10203 libdir=$save_libdir
10207 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10209 # This implies no fast_install, which is unacceptable.
10210 # Some rework will be needed to allow for fast_install
10211 # before this can be enabled.
10212 hardcode_into_libs=yes
10214 # Append ld.so.conf contents to the search path
10215 if test -f /etc/ld.so.conf; then
10216 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' ' '`
10217 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10220 # We used to test for /lib/ld.so.1 and disable shared libraries on
10221 # powerpc, because MkLinux only supported shared libraries with the
10222 # GNU dynamic linker. Since this was broken with cross compilers,
10223 # most powerpc-linux boxes support dynamic linking these days and
10224 # people can always --disable-shared, the test was removed, and we
10225 # assume the GNU/Linux dynamic linker is in use.
10226 dynamic_linker='GNU/Linux ld.so'
10233 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10234 soname_spec='${libname}${release}${shared_ext}$major'
10235 shlibpath_var=LD_LIBRARY_PATH
10236 shlibpath_overrides_runpath=no
10237 hardcode_into_libs=yes
10238 dynamic_linker='NetBSD ld.elf_so'
10245 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10246 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10247 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10248 dynamic_linker='NetBSD (a.out) ld.so'
10250 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10251 soname_spec='${libname}${release}${shared_ext}$major'
10252 dynamic_linker='NetBSD ld.elf_so'
10254 shlibpath_var=LD_LIBRARY_PATH
10255 shlibpath_overrides_runpath=yes
10256 hardcode_into_libs=yes
10260 version_type=linux # correct to gnu/linux during the next big refactor
10261 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10262 shlibpath_var=LD_LIBRARY_PATH
10263 shlibpath_overrides_runpath=yes
10270 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10271 soname_spec='${libname}${release}${shared_ext}$major'
10272 shlibpath_var=LD_LIBRARY_PATH
10273 shlibpath_overrides_runpath=no
10274 hardcode_into_libs=yes
10275 dynamic_linker='ldqnx.so'
10280 sys_lib_dlsearch_path_spec="/usr/lib"
10282 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10284 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10285 *) need_version=no ;;
10287 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10288 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10289 shlibpath_var=LD_LIBRARY_PATH
10290 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10292 openbsd2.[89] | openbsd2.[89].*)
10293 shlibpath_overrides_runpath=no
10296 shlibpath_overrides_runpath=yes
10300 shlibpath_overrides_runpath=yes
10305 libname_spec='$name'
10308 library_names_spec='$libname${shared_ext} $libname.a'
10309 dynamic_linker='OS/2 ld.exe'
10310 shlibpath_var=LIBPATH
10313 osf3* | osf4* | osf5*)
10317 soname_spec='${libname}${release}${shared_ext}$major'
10318 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10319 shlibpath_var=LD_LIBRARY_PATH
10320 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10321 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10329 version_type=linux # correct to gnu/linux during the next big refactor
10332 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10333 soname_spec='${libname}${release}${shared_ext}$major'
10334 shlibpath_var=LD_LIBRARY_PATH
10335 shlibpath_overrides_runpath=yes
10336 hardcode_into_libs=yes
10337 # ldd complains unless libraries are executable
10338 postinstall_cmds='chmod +x $lib'
10343 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10344 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10345 shlibpath_var=LD_LIBRARY_PATH
10346 shlibpath_overrides_runpath=yes
10347 if test "$with_gnu_ld" = yes; then
10354 version_type=linux # correct to gnu/linux during the next big refactor
10355 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10356 soname_spec='${libname}${release}${shared_ext}$major'
10357 shlibpath_var=LD_LIBRARY_PATH
10358 case $host_vendor in
10360 shlibpath_overrides_runpath=no
10362 runpath_var=LD_RUN_PATH
10370 shlibpath_overrides_runpath=no
10371 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10377 if test -d /usr/nec ;then
10378 version_type=linux # correct to gnu/linux during the next big refactor
10379 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10380 soname_spec='$libname${shared_ext}.$major'
10381 shlibpath_var=LD_LIBRARY_PATH
10385 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10386 version_type=freebsd-elf
10389 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10390 soname_spec='${libname}${release}${shared_ext}$major'
10391 shlibpath_var=LD_LIBRARY_PATH
10392 shlibpath_overrides_runpath=yes
10393 hardcode_into_libs=yes
10394 if test "$with_gnu_ld" = yes; then
10395 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10397 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10400 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10404 sys_lib_dlsearch_path_spec='/usr/lib'
10408 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10409 version_type=linux # correct to gnu/linux during the next big refactor
10412 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10413 shlibpath_var=LD_LIBRARY_PATH
10414 shlibpath_overrides_runpath=no
10415 hardcode_into_libs=yes
10419 version_type=linux # correct to gnu/linux during the next big refactor
10420 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10421 soname_spec='${libname}${release}${shared_ext}$major'
10422 shlibpath_var=LD_LIBRARY_PATH
10429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10430 $as_echo "$dynamic_linker" >&6; }
10431 test "$dynamic_linker" = no && can_build_shared=no
10433 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10434 if test "$GCC" = yes; then
10435 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10438 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10439 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10441 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10442 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10537 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10539 if test -n "$hardcode_libdir_flag_spec" ||
10540 test -n "$runpath_var" ||
10541 test "X$hardcode_automatic" = "Xyes" ; then
10543 # We can hardcode non-existent directories.
10544 if test "$hardcode_direct" != no &&
10545 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10546 # have to relink, otherwise we might link with an installed library
10547 # when we should be linking with a yet-to-be-installed one
10548 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10549 test "$hardcode_minus_L" != no; then
10550 # Linking always hardcodes the temporary library directory.
10551 hardcode_action=relink
10553 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10554 hardcode_action=immediate
10557 # We cannot hardcode anything, or else we can only hardcode existing
10559 hardcode_action=unsupported
10561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10562 $as_echo "$hardcode_action" >&6; }
10564 if test "$hardcode_action" = relink ||
10565 test "$inherit_rpath" = yes; then
10566 # Fast installation is not supported
10567 enable_fast_install=no
10568 elif test "$shlibpath_overrides_runpath" = yes ||
10569 test "$enable_shared" = no; then
10570 # Fast installation is not necessary
10571 enable_fast_install=needless
10579 if test "x$enable_dlopen" != xyes; then
10580 enable_dlopen=unknown
10581 enable_dlopen_self=unknown
10582 enable_dlopen_self_static=unknown
10589 lt_cv_dlopen="load_add_on"
10591 lt_cv_dlopen_self=yes
10594 mingw* | pw32* | cegcc*)
10595 lt_cv_dlopen="LoadLibrary"
10600 lt_cv_dlopen="dlopen"
10605 # if libdl is installed we need to link against it
10606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10607 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10608 if ${ac_cv_lib_dl_dlopen+:} false; then :
10609 $as_echo_n "(cached) " >&6
10611 ac_check_lib_save_LIBS=$LIBS
10613 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10614 /* end confdefs.h. */
10616 /* Override any GCC internal prototype to avoid an error.
10617 Use char because int might match the return type of a GCC
10618 builtin and then its argument prototype would still apply. */
10631 if ac_fn_c_try_link "$LINENO"; then :
10632 ac_cv_lib_dl_dlopen=yes
10634 ac_cv_lib_dl_dlopen=no
10636 rm -f core conftest.err conftest.$ac_objext \
10637 conftest$ac_exeext conftest.$ac_ext
10638 LIBS=$ac_check_lib_save_LIBS
10640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10641 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10642 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10643 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10646 lt_cv_dlopen="dyld"
10648 lt_cv_dlopen_self=yes
10655 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10656 if test "x$ac_cv_func_shl_load" = xyes; then :
10657 lt_cv_dlopen="shl_load"
10659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10660 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10661 if ${ac_cv_lib_dld_shl_load+:} false; then :
10662 $as_echo_n "(cached) " >&6
10664 ac_check_lib_save_LIBS=$LIBS
10666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10667 /* end confdefs.h. */
10669 /* Override any GCC internal prototype to avoid an error.
10670 Use char because int might match the return type of a GCC
10671 builtin and then its argument prototype would still apply. */
10679 return shl_load ();
10684 if ac_fn_c_try_link "$LINENO"; then :
10685 ac_cv_lib_dld_shl_load=yes
10687 ac_cv_lib_dld_shl_load=no
10689 rm -f core conftest.err conftest.$ac_objext \
10690 conftest$ac_exeext conftest.$ac_ext
10691 LIBS=$ac_check_lib_save_LIBS
10693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10694 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10695 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
10696 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10698 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10699 if test "x$ac_cv_func_dlopen" = xyes; then :
10700 lt_cv_dlopen="dlopen"
10702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10703 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10704 if ${ac_cv_lib_dl_dlopen+:} false; then :
10705 $as_echo_n "(cached) " >&6
10707 ac_check_lib_save_LIBS=$LIBS
10709 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10710 /* end confdefs.h. */
10712 /* Override any GCC internal prototype to avoid an error.
10713 Use char because int might match the return type of a GCC
10714 builtin and then its argument prototype would still apply. */
10727 if ac_fn_c_try_link "$LINENO"; then :
10728 ac_cv_lib_dl_dlopen=yes
10730 ac_cv_lib_dl_dlopen=no
10732 rm -f core conftest.err conftest.$ac_objext \
10733 conftest$ac_exeext conftest.$ac_ext
10734 LIBS=$ac_check_lib_save_LIBS
10736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10737 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10738 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10739 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10742 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10743 if ${ac_cv_lib_svld_dlopen+:} false; then :
10744 $as_echo_n "(cached) " >&6
10746 ac_check_lib_save_LIBS=$LIBS
10747 LIBS="-lsvld $LIBS"
10748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10749 /* end confdefs.h. */
10751 /* Override any GCC internal prototype to avoid an error.
10752 Use char because int might match the return type of a GCC
10753 builtin and then its argument prototype would still apply. */
10766 if ac_fn_c_try_link "$LINENO"; then :
10767 ac_cv_lib_svld_dlopen=yes
10769 ac_cv_lib_svld_dlopen=no
10771 rm -f core conftest.err conftest.$ac_objext \
10772 conftest$ac_exeext conftest.$ac_ext
10773 LIBS=$ac_check_lib_save_LIBS
10775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10776 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10777 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
10778 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10781 $as_echo_n "checking for dld_link in -ldld... " >&6; }
10782 if ${ac_cv_lib_dld_dld_link+:} false; then :
10783 $as_echo_n "(cached) " >&6
10785 ac_check_lib_save_LIBS=$LIBS
10787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10788 /* end confdefs.h. */
10790 /* Override any GCC internal prototype to avoid an error.
10791 Use char because int might match the return type of a GCC
10792 builtin and then its argument prototype would still apply. */
10800 return dld_link ();
10805 if ac_fn_c_try_link "$LINENO"; then :
10806 ac_cv_lib_dld_dld_link=yes
10808 ac_cv_lib_dld_dld_link=no
10810 rm -f core conftest.err conftest.$ac_objext \
10811 conftest$ac_exeext conftest.$ac_ext
10812 LIBS=$ac_check_lib_save_LIBS
10814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
10815 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10816 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
10817 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10838 if test "x$lt_cv_dlopen" != xno; then
10844 case $lt_cv_dlopen in
10846 save_CPPFLAGS="$CPPFLAGS"
10847 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10849 save_LDFLAGS="$LDFLAGS"
10850 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10853 LIBS="$lt_cv_dlopen_libs $LIBS"
10855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
10856 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
10857 if ${lt_cv_dlopen_self+:} false; then :
10858 $as_echo_n "(cached) " >&6
10860 if test "$cross_compiling" = yes; then :
10861 lt_cv_dlopen_self=cross
10863 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10864 lt_status=$lt_dlunknown
10865 cat > conftest.$ac_ext <<_LT_EOF
10866 #line $LINENO "configure"
10867 #include "confdefs.h"
10876 # define LT_DLGLOBAL RTLD_GLOBAL
10879 # define LT_DLGLOBAL DL_GLOBAL
10881 # define LT_DLGLOBAL 0
10885 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10886 find out it does not work in some platform. */
10887 #ifndef LT_DLLAZY_OR_NOW
10889 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10892 # define LT_DLLAZY_OR_NOW DL_LAZY
10895 # define LT_DLLAZY_OR_NOW RTLD_NOW
10898 # define LT_DLLAZY_OR_NOW DL_NOW
10900 # define LT_DLLAZY_OR_NOW 0
10907 /* When -fvisbility=hidden is used, assume the code has been annotated
10908 correspondingly for the symbols needed. */
10909 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
10910 int fnord () __attribute__((visibility("default")));
10913 int fnord () { return 42; }
10916 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10917 int status = $lt_dlunknown;
10921 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10924 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10925 else puts (dlerror ());
10927 /* dlclose (self); */
10935 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10936 (eval $ac_link) 2>&5
10938 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10939 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10940 (./conftest; exit; ) >&5 2>/dev/null
10942 case x$lt_status in
10943 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10944 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10945 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10948 # compilation failed
10949 lt_cv_dlopen_self=no
10956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
10957 $as_echo "$lt_cv_dlopen_self" >&6; }
10959 if test "x$lt_cv_dlopen_self" = xyes; then
10960 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
10962 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
10963 if ${lt_cv_dlopen_self_static+:} false; then :
10964 $as_echo_n "(cached) " >&6
10966 if test "$cross_compiling" = yes; then :
10967 lt_cv_dlopen_self_static=cross
10969 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10970 lt_status=$lt_dlunknown
10971 cat > conftest.$ac_ext <<_LT_EOF
10972 #line $LINENO "configure"
10973 #include "confdefs.h"
10982 # define LT_DLGLOBAL RTLD_GLOBAL
10985 # define LT_DLGLOBAL DL_GLOBAL
10987 # define LT_DLGLOBAL 0
10991 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10992 find out it does not work in some platform. */
10993 #ifndef LT_DLLAZY_OR_NOW
10995 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10998 # define LT_DLLAZY_OR_NOW DL_LAZY
11001 # define LT_DLLAZY_OR_NOW RTLD_NOW
11004 # define LT_DLLAZY_OR_NOW DL_NOW
11006 # define LT_DLLAZY_OR_NOW 0
11013 /* When -fvisbility=hidden is used, assume the code has been annotated
11014 correspondingly for the symbols needed. */
11015 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11016 int fnord () __attribute__((visibility("default")));
11019 int fnord () { return 42; }
11022 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11023 int status = $lt_dlunknown;
11027 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11030 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11031 else puts (dlerror ());
11033 /* dlclose (self); */
11041 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11042 (eval $ac_link) 2>&5
11044 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11045 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11046 (./conftest; exit; ) >&5 2>/dev/null
11048 case x$lt_status in
11049 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11050 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11051 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11054 # compilation failed
11055 lt_cv_dlopen_self_static=no
11062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11063 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11066 CPPFLAGS="$save_CPPFLAGS"
11067 LDFLAGS="$save_LDFLAGS"
11072 case $lt_cv_dlopen_self in
11073 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11074 *) enable_dlopen_self=unknown ;;
11077 case $lt_cv_dlopen_self_static in
11078 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11079 *) enable_dlopen_self_static=unknown ;;
11101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11102 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11103 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11104 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11105 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11107 $as_echo "yes" >&6; }
11109 # FIXME - insert some real tests, host_os isn't really good enough
11112 if test -n "$STRIP" ; then
11113 striplib="$STRIP -x"
11114 old_striplib="$STRIP -S"
11115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11116 $as_echo "yes" >&6; }
11118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11119 $as_echo "no" >&6; }
11123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11124 $as_echo "no" >&6; }
11140 # Report which library types will actually be built
11141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11142 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11144 $as_echo "$can_build_shared" >&6; }
11146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11147 $as_echo_n "checking whether to build shared libraries... " >&6; }
11148 test "$can_build_shared" = "no" && enable_shared=no
11150 # On AIX, shared libraries and static libraries use the same namespace, and
11151 # are all built from PIC.
11154 test "$enable_shared" = yes && enable_static=no
11155 if test -n "$RANLIB"; then
11156 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11157 postinstall_cmds='$RANLIB $lib'
11162 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11163 test "$enable_shared" = yes && enable_static=no
11167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11168 $as_echo "$enable_shared" >&6; }
11170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11171 $as_echo_n "checking whether to build static libraries... " >&6; }
11172 # Make sure either enable_shared or enable_static is yes.
11173 test "$enable_shared" = yes || enable_static=yes
11174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11175 $as_echo "$enable_static" >&6; }
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
11203 ac_config_commands="$ac_config_commands libtool"
11208 # Only expand once:
11212 ac_cpp='$CPP $CPPFLAGS'
11213 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11214 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11215 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11216 if test -n "$ac_tool_prefix"; then
11217 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
11218 set dummy ${ac_tool_prefix}gcc; ac_word=$2
11219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11220 $as_echo_n "checking for $ac_word... " >&6; }
11221 if ${ac_cv_prog_CC+:} false; then :
11222 $as_echo_n "(cached) " >&6
11224 if test -n "$CC"; then
11225 ac_cv_prog_CC="$CC" # Let the user override the test.
11227 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11228 for as_dir in $PATH
11231 test -z "$as_dir" && as_dir=.
11232 for ac_exec_ext in '' $ac_executable_extensions; do
11233 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11234 ac_cv_prog_CC="${ac_tool_prefix}gcc"
11235 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11245 if test -n "$CC"; then
11246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11247 $as_echo "$CC" >&6; }
11249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11250 $as_echo "no" >&6; }
11255 if test -z "$ac_cv_prog_CC"; then
11257 # Extract the first word of "gcc", so it can be a program name with args.
11258 set dummy gcc; ac_word=$2
11259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11260 $as_echo_n "checking for $ac_word... " >&6; }
11261 if ${ac_cv_prog_ac_ct_CC+:} false; then :
11262 $as_echo_n "(cached) " >&6
11264 if test -n "$ac_ct_CC"; then
11265 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11267 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11268 for as_dir in $PATH
11271 test -z "$as_dir" && as_dir=.
11272 for ac_exec_ext in '' $ac_executable_extensions; do
11273 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11274 ac_cv_prog_ac_ct_CC="gcc"
11275 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11284 ac_ct_CC=$ac_cv_prog_ac_ct_CC
11285 if test -n "$ac_ct_CC"; then
11286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
11287 $as_echo "$ac_ct_CC" >&6; }
11289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11290 $as_echo "no" >&6; }
11293 if test "x$ac_ct_CC" = x; then
11296 case $cross_compiling:$ac_tool_warned in
11298 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11299 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11300 ac_tool_warned=yes ;;
11305 CC="$ac_cv_prog_CC"
11308 if test -z "$CC"; then
11309 if test -n "$ac_tool_prefix"; then
11310 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
11311 set dummy ${ac_tool_prefix}cc; ac_word=$2
11312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11313 $as_echo_n "checking for $ac_word... " >&6; }
11314 if ${ac_cv_prog_CC+:} false; then :
11315 $as_echo_n "(cached) " >&6
11317 if test -n "$CC"; then
11318 ac_cv_prog_CC="$CC" # Let the user override the test.
11320 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11321 for as_dir in $PATH
11324 test -z "$as_dir" && as_dir=.
11325 for ac_exec_ext in '' $ac_executable_extensions; do
11326 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11327 ac_cv_prog_CC="${ac_tool_prefix}cc"
11328 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11338 if test -n "$CC"; then
11339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11340 $as_echo "$CC" >&6; }
11342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11343 $as_echo "no" >&6; }
11349 if test -z "$CC"; then
11350 # Extract the first word of "cc", so it can be a program name with args.
11351 set dummy cc; ac_word=$2
11352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11353 $as_echo_n "checking for $ac_word... " >&6; }
11354 if ${ac_cv_prog_CC+:} false; then :
11355 $as_echo_n "(cached) " >&6
11357 if test -n "$CC"; then
11358 ac_cv_prog_CC="$CC" # Let the user override the test.
11360 ac_prog_rejected=no
11361 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11362 for as_dir in $PATH
11365 test -z "$as_dir" && as_dir=.
11366 for ac_exec_ext in '' $ac_executable_extensions; do
11367 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11368 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
11369 ac_prog_rejected=yes
11373 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11380 if test $ac_prog_rejected = yes; then
11381 # We found a bogon in the path, so make sure we never use it.
11382 set dummy $ac_cv_prog_CC
11384 if test $# != 0; then
11385 # We chose a different compiler from the bogus one.
11386 # However, it has the same basename, so the bogon will be chosen
11387 # first if we set CC to just the basename; use the full file name.
11389 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
11395 if test -n "$CC"; then
11396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11397 $as_echo "$CC" >&6; }
11399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11400 $as_echo "no" >&6; }
11405 if test -z "$CC"; then
11406 if test -n "$ac_tool_prefix"; then
11407 for ac_prog in cl.exe
11409 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11410 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11412 $as_echo_n "checking for $ac_word... " >&6; }
11413 if ${ac_cv_prog_CC+:} false; then :
11414 $as_echo_n "(cached) " >&6
11416 if test -n "$CC"; then
11417 ac_cv_prog_CC="$CC" # Let the user override the test.
11419 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11420 for as_dir in $PATH
11423 test -z "$as_dir" && as_dir=.
11424 for ac_exec_ext in '' $ac_executable_extensions; do
11425 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11426 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
11427 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11437 if test -n "$CC"; then
11438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11439 $as_echo "$CC" >&6; }
11441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11442 $as_echo "no" >&6; }
11446 test -n "$CC" && break
11449 if test -z "$CC"; then
11451 for ac_prog in cl.exe
11453 # Extract the first word of "$ac_prog", so it can be a program name with args.
11454 set dummy $ac_prog; ac_word=$2
11455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11456 $as_echo_n "checking for $ac_word... " >&6; }
11457 if ${ac_cv_prog_ac_ct_CC+:} false; then :
11458 $as_echo_n "(cached) " >&6
11460 if test -n "$ac_ct_CC"; then
11461 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11463 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11464 for as_dir in $PATH
11467 test -z "$as_dir" && as_dir=.
11468 for ac_exec_ext in '' $ac_executable_extensions; do
11469 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11470 ac_cv_prog_ac_ct_CC="$ac_prog"
11471 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11480 ac_ct_CC=$ac_cv_prog_ac_ct_CC
11481 if test -n "$ac_ct_CC"; then
11482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
11483 $as_echo "$ac_ct_CC" >&6; }
11485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11486 $as_echo "no" >&6; }
11490 test -n "$ac_ct_CC" && break
11493 if test "x$ac_ct_CC" = x; then
11496 case $cross_compiling:$ac_tool_warned in
11498 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11499 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11500 ac_tool_warned=yes ;;
11509 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11510 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11511 as_fn_error $? "no acceptable C compiler found in \$PATH
11512 See \`config.log' for more details" "$LINENO" 5; }
11514 # Provide some information about the compiler.
11515 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
11518 for ac_option in --version -v -V -qversion; do
11519 { { ac_try="$ac_compiler $ac_option >&5"
11520 case "(($ac_try" in
11521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11522 *) ac_try_echo=$ac_try;;
11524 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11525 $as_echo "$ac_try_echo"; } >&5
11526 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
11528 if test -s conftest.err; then
11530 ... rest of stderr output deleted ...
11531 10q' conftest.err >conftest.er1
11532 cat conftest.er1 >&5
11534 rm -f conftest.er1 conftest.err
11535 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11536 test $ac_status = 0; }
11539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
11540 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
11541 if ${ac_cv_c_compiler_gnu+:} false; then :
11542 $as_echo_n "(cached) " >&6
11544 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11545 /* end confdefs.h. */
11558 if ac_fn_c_try_compile "$LINENO"; then :
11559 ac_compiler_gnu=yes
11563 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11564 ac_cv_c_compiler_gnu=$ac_compiler_gnu
11567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
11568 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
11569 if test $ac_compiler_gnu = yes; then
11574 ac_test_CFLAGS=${CFLAGS+set}
11575 ac_save_CFLAGS=$CFLAGS
11576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
11577 $as_echo_n "checking whether $CC accepts -g... " >&6; }
11578 if ${ac_cv_prog_cc_g+:} false; then :
11579 $as_echo_n "(cached) " >&6
11581 ac_save_c_werror_flag=$ac_c_werror_flag
11582 ac_c_werror_flag=yes
11585 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11586 /* end confdefs.h. */
11596 if ac_fn_c_try_compile "$LINENO"; then :
11597 ac_cv_prog_cc_g=yes
11600 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11601 /* end confdefs.h. */
11611 if ac_fn_c_try_compile "$LINENO"; then :
11614 ac_c_werror_flag=$ac_save_c_werror_flag
11616 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11617 /* end confdefs.h. */
11627 if ac_fn_c_try_compile "$LINENO"; then :
11628 ac_cv_prog_cc_g=yes
11630 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11632 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11634 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11635 ac_c_werror_flag=$ac_save_c_werror_flag
11637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
11638 $as_echo "$ac_cv_prog_cc_g" >&6; }
11639 if test "$ac_test_CFLAGS" = set; then
11640 CFLAGS=$ac_save_CFLAGS
11641 elif test $ac_cv_prog_cc_g = yes; then
11642 if test "$GCC" = yes; then
11648 if test "$GCC" = yes; then
11654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
11655 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
11656 if ${ac_cv_prog_cc_c89+:} false; then :
11657 $as_echo_n "(cached) " >&6
11659 ac_cv_prog_cc_c89=no
11661 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11662 /* end confdefs.h. */
11663 #include <stdarg.h>
11666 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
11667 struct buf { int x; };
11668 FILE * (*rcsopen) (struct buf *, struct stat *, int);
11669 static char *e (p, i)
11675 static char *f (char * (*g) (char **, int), char **p, ...)
11680 s = g (p, va_arg (v,int));
11685 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
11686 function prototypes and stuff, but not '\xHH' hex character constants.
11687 These don't provoke an error unfortunately, instead are silently treated
11688 as 'x'. The following induces an error, until -std is added to get
11689 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
11690 array size at least. It's necessary to write '\x00'==0 to get something
11691 that's true only with -std. */
11692 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
11694 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
11695 inside strings and character constants. */
11697 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
11699 int test (int i, double x);
11700 struct s1 {int (*f) (int a);};
11701 struct s2 {int (*f) (double a);};
11702 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
11708 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
11713 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
11714 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
11716 CC="$ac_save_CC $ac_arg"
11717 if ac_fn_c_try_compile "$LINENO"; then :
11718 ac_cv_prog_cc_c89=$ac_arg
11720 rm -f core conftest.err conftest.$ac_objext
11721 test "x$ac_cv_prog_cc_c89" != "xno" && break
11723 rm -f conftest.$ac_ext
11728 case "x$ac_cv_prog_cc_c89" in
11730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
11731 $as_echo "none needed" >&6; } ;;
11733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
11734 $as_echo "unsupported" >&6; } ;;
11736 CC="$CC $ac_cv_prog_cc_c89"
11737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
11738 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
11740 if test "x$ac_cv_prog_cc_c89" != xno; then :
11745 ac_cpp='$CPP $CPPFLAGS'
11746 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11747 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11748 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11750 depcc="$CC" am_compiler_list=
11752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
11753 $as_echo_n "checking dependency style of $depcc... " >&6; }
11754 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
11755 $as_echo_n "(cached) " >&6
11757 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
11758 # We make a subdir and do the tests there. Otherwise we can end up
11759 # making bogus files that we don't know about and never remove. For
11760 # instance it was reported that on HP-UX the gcc test will end up
11761 # making a dummy file named `D' -- because `-MD' means `put the output
11763 rm -rf conftest.dir
11765 # Copy depcomp to subdir because otherwise we won't find it if we're
11766 # using a relative directory.
11767 cp "$am_depcomp" conftest.dir
11769 # We will build objects and dependencies in a subdirectory because
11770 # it helps to detect inapplicable dependency modes. For instance
11771 # both Tru64's cc and ICC support -MD to output dependencies as a
11772 # side effect of compilation, but ICC will put the dependencies in
11773 # the current directory while Tru64 will put them in the object
11777 am_cv_CC_dependencies_compiler_type=none
11778 if test "$am_compiler_list" = ""; then
11779 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
11781 am__universal=false
11782 case " $depcc " in #(
11783 *\ -arch\ *\ -arch\ *) am__universal=true ;;
11786 for depmode in $am_compiler_list; do
11787 # Setup a source with many dependencies, because some compilers
11788 # like to wrap large dependency lists on column 80 (with \), and
11789 # we should not choose a depcomp mode which is confused by this.
11791 # We need to recreate these files for each test, as the compiler may
11792 # overwrite some of them when testing with obscure command lines.
11793 # This happens at least with the AIX C compiler.
11795 for i in 1 2 3 4 5 6; do
11796 echo '#include "conftst'$i'.h"' >> sub/conftest.c
11797 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
11798 # Solaris 8's {/usr,}/bin/sh.
11799 touch sub/conftst$i.h
11801 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
11803 # We check with `-c' and `-o' for the sake of the "dashmstdout"
11804 # mode. It turns out that the SunPro C++ compiler does not properly
11805 # handle `-M -o', and we need to detect this. Also, some Intel
11806 # versions had trouble with output in subdirs
11807 am__obj=sub/conftest.${OBJEXT-o}
11808 am__minus_obj="-o $am__obj"
11811 # This depmode causes a compiler race in universal mode.
11812 test "$am__universal" = false || continue
11815 # after this tag, mechanisms are not by side-effect, so they'll
11816 # only be used when explicitly requested
11817 if test "x$enable_dependency_tracking" = xyes; then
11823 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
11824 # This compiler won't grok `-c -o', but also, the minuso test has
11825 # not run yet. These depmodes are late enough in the game, and
11826 # so weak that their functioning should not be impacted.
11827 am__obj=conftest.${OBJEXT-o}
11832 if depmode=$depmode \
11833 source=sub/conftest.c object=$am__obj \
11834 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
11835 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
11836 >/dev/null 2>conftest.err &&
11837 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
11838 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
11839 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
11840 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
11841 # icc doesn't choke on unknown options, it will just issue warnings
11842 # or remarks (even with -Werror). So we grep stderr for any message
11843 # that says an option was ignored or not supported.
11844 # When given -MP, icc 7.0 and 7.1 complain thusly:
11845 # icc: Command line warning: ignoring option '-M'; no argument required
11846 # The diagnosis changed in icc 8.0:
11847 # icc: Command line remark: option '-MP' not supported
11848 if (grep 'ignoring option' conftest.err ||
11849 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
11850 am_cv_CC_dependencies_compiler_type=$depmode
11857 rm -rf conftest.dir
11859 am_cv_CC_dependencies_compiler_type=none
11863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
11864 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
11865 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
11868 test "x$enable_dependency_tracking" != xno \
11869 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
11870 am__fastdepCC_TRUE=
11871 am__fastdepCC_FALSE='#'
11873 am__fastdepCC_TRUE='#'
11874 am__fastdepCC_FALSE=
11887 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
11888 if test -n "$ac_tool_prefix"; then
11889 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
11890 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
11891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11892 $as_echo_n "checking for $ac_word... " >&6; }
11893 if ${ac_cv_path_PKG_CONFIG+:} false; then :
11894 $as_echo_n "(cached) " >&6
11896 case $PKG_CONFIG in
11898 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11901 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11902 for as_dir in $PATH
11905 test -z "$as_dir" && as_dir=.
11906 for ac_exec_ext in '' $ac_executable_extensions; do
11907 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11908 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11909 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11919 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11920 if test -n "$PKG_CONFIG"; then
11921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11922 $as_echo "$PKG_CONFIG" >&6; }
11924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11925 $as_echo "no" >&6; }
11930 if test -z "$ac_cv_path_PKG_CONFIG"; then
11931 ac_pt_PKG_CONFIG=$PKG_CONFIG
11932 # Extract the first word of "pkg-config", so it can be a program name with args.
11933 set dummy pkg-config; ac_word=$2
11934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11935 $as_echo_n "checking for $ac_word... " >&6; }
11936 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
11937 $as_echo_n "(cached) " >&6
11939 case $ac_pt_PKG_CONFIG in
11941 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
11944 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11945 for as_dir in $PATH
11948 test -z "$as_dir" && as_dir=.
11949 for ac_exec_ext in '' $ac_executable_extensions; do
11950 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11951 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11952 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11962 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
11963 if test -n "$ac_pt_PKG_CONFIG"; then
11964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
11965 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
11967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11968 $as_echo "no" >&6; }
11971 if test "x$ac_pt_PKG_CONFIG" = x; then
11974 case $cross_compiling:$ac_tool_warned in
11976 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11977 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11978 ac_tool_warned=yes ;;
11980 PKG_CONFIG=$ac_pt_PKG_CONFIG
11983 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
11987 if test -n "$PKG_CONFIG"; then
11988 _pkg_min_version=0.9.0
11989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
11990 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
11991 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
11992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11993 $as_echo "yes" >&6; }
11995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11996 $as_echo "no" >&6; }
12002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GUILE" >&5
12003 $as_echo_n "checking for GUILE... " >&6; }
12005 if test -n "$GUILE_CFLAGS"; then
12006 pkg_cv_GUILE_CFLAGS="$GUILE_CFLAGS"
12007 elif test -n "$PKG_CONFIG"; then
12008 if test -n "$PKG_CONFIG" && \
12009 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"guile-2.0\""; } >&5
12010 ($PKG_CONFIG --exists --print-errors "guile-2.0") 2>&5
12012 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12013 test $ac_status = 0; }; then
12014 pkg_cv_GUILE_CFLAGS=`$PKG_CONFIG --cflags "guile-2.0" 2>/dev/null`
12015 test "x$?" != "x0" && pkg_failed=yes
12022 if test -n "$GUILE_LIBS"; then
12023 pkg_cv_GUILE_LIBS="$GUILE_LIBS"
12024 elif test -n "$PKG_CONFIG"; then
12025 if test -n "$PKG_CONFIG" && \
12026 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"guile-2.0\""; } >&5
12027 ($PKG_CONFIG --exists --print-errors "guile-2.0") 2>&5
12029 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12030 test $ac_status = 0; }; then
12031 pkg_cv_GUILE_LIBS=`$PKG_CONFIG --libs "guile-2.0" 2>/dev/null`
12032 test "x$?" != "x0" && pkg_failed=yes
12042 if test $pkg_failed = yes; then
12043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12044 $as_echo "no" >&6; }
12046 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12047 _pkg_short_errors_supported=yes
12049 _pkg_short_errors_supported=no
12051 if test $_pkg_short_errors_supported = yes; then
12052 GUILE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "guile-2.0" 2>&1`
12054 GUILE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "guile-2.0" 2>&1`
12056 # Put the nasty error message in config.log where it belongs
12057 echo "$GUILE_PKG_ERRORS" >&5
12059 as_fn_error $? "Package requirements (guile-2.0) were not met:
12063 Consider adjusting the PKG_CONFIG_PATH environment variable if you
12064 installed software in a non-standard prefix.
12066 Alternatively, you may set the environment variables GUILE_CFLAGS
12067 and GUILE_LIBS to avoid the need to call pkg-config.
12068 See the pkg-config man page for more details." "$LINENO" 5
12069 elif test $pkg_failed = untried; then
12070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12071 $as_echo "no" >&6; }
12072 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12073 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12074 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
12075 is in your PATH or set the PKG_CONFIG environment variable to the full
12076 path to pkg-config.
12078 Alternatively, you may set the environment variables GUILE_CFLAGS
12079 and GUILE_LIBS to avoid the need to call pkg-config.
12080 See the pkg-config man page for more details.
12082 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
12083 See \`config.log' for more details" "$LINENO" 5; }
12085 GUILE_CFLAGS=$pkg_cv_GUILE_CFLAGS
12086 GUILE_LIBS=$pkg_cv_GUILE_LIBS
12087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12088 $as_echo "yes" >&6; }
12093 for lib in SDL SDL_image SDL_gfx SDL_mixer ; do
12094 as_ac_Lib=`$as_echo "ac_cv_lib_${lib}''_main" | $as_tr_sh`
12095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -l${lib}" >&5
12096 $as_echo_n "checking for main in -l${lib}... " >&6; }
12097 if eval \${$as_ac_Lib+:} false; then :
12098 $as_echo_n "(cached) " >&6
12100 ac_check_lib_save_LIBS=$LIBS
12101 LIBS="-l${lib} $LIBS"
12102 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12103 /* end confdefs.h. */
12114 if ac_fn_c_try_link "$LINENO"; then :
12115 eval "$as_ac_Lib=yes"
12117 eval "$as_ac_Lib=no"
12119 rm -f core conftest.err conftest.$ac_objext \
12120 conftest$ac_exeext conftest.$ac_ext
12121 LIBS=$ac_check_lib_save_LIBS
12123 eval ac_res=\$$as_ac_Lib
12124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
12125 $as_echo "$ac_res" >&6; }
12126 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
12127 SDL_LIBS="${SDL_LIBS} -l${lib}"
12129 as_fn_error $? "*** ${lib} library not found!" "$LINENO" 5
12135 for lib in GL GLU ; do
12136 as_ac_Lib=`$as_echo "ac_cv_lib_${lib}''_main" | $as_tr_sh`
12137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -l${lib}" >&5
12138 $as_echo_n "checking for main in -l${lib}... " >&6; }
12139 if eval \${$as_ac_Lib+:} false; then :
12140 $as_echo_n "(cached) " >&6
12142 ac_check_lib_save_LIBS=$LIBS
12143 LIBS="-l${lib} $LIBS"
12144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12145 /* end confdefs.h. */
12156 if ac_fn_c_try_link "$LINENO"; then :
12157 eval "$as_ac_Lib=yes"
12159 eval "$as_ac_Lib=no"
12161 rm -f core conftest.err conftest.$ac_objext \
12162 conftest$ac_exeext conftest.$ac_ext
12163 LIBS=$ac_check_lib_save_LIBS
12165 eval ac_res=\$$as_ac_Lib
12166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
12167 $as_echo "$ac_res" >&6; }
12168 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
12169 GL_LIBS="${GL_LIBS} -l${lib}"
12171 as_fn_error $? "*** ${lib} library not found!" "$LINENO" 5
12177 for lib in ftgl ; do
12178 as_ac_Lib=`$as_echo "ac_cv_lib_${lib}''_main" | $as_tr_sh`
12179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -l${lib}" >&5
12180 $as_echo_n "checking for main in -l${lib}... " >&6; }
12181 if eval \${$as_ac_Lib+:} false; then :
12182 $as_echo_n "(cached) " >&6
12184 ac_check_lib_save_LIBS=$LIBS
12185 LIBS="-l${lib} $LIBS"
12186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12187 /* end confdefs.h. */
12198 if ac_fn_c_try_link "$LINENO"; then :
12199 eval "$as_ac_Lib=yes"
12201 eval "$as_ac_Lib=no"
12203 rm -f core conftest.err conftest.$ac_objext \
12204 conftest$ac_exeext conftest.$ac_ext
12205 LIBS=$ac_check_lib_save_LIBS
12207 eval ac_res=\$$as_ac_Lib
12208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
12209 $as_echo "$ac_res" >&6; }
12210 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
12211 FTGL_LIBS="${FTGL_LIBS} -l${lib}"
12213 as_fn_error $? "*** ${lib} library not found!" "$LINENO" 5
12222 ac_config_headers="$ac_config_headers config.h"
12224 ac_config_files="$ac_config_files Makefile src/Makefile"
12226 cat >confcache <<\_ACEOF
12227 # This file is a shell script that caches the results of configure
12228 # tests run on this system so they can be shared between configure
12229 # scripts and configure runs, see configure's option --config-cache.
12230 # It is not useful on other systems. If it contains results you don't
12231 # want to keep, you may remove or edit it.
12233 # config.status only pays attention to the cache file if you give it
12234 # the --recheck option to rerun configure.
12236 # `ac_cv_env_foo' variables (set or unset) will be overridden when
12237 # loading this file, other *unset* `ac_cv_foo' will be assigned the
12238 # following values.
12242 # The following way of writing the cache mishandles newlines in values,
12243 # but we know of no workaround that is simple, portable, and efficient.
12244 # So, we kill variables containing newlines.
12245 # Ultrix sh set writes to stderr and can't be redirected directly,
12246 # and sets the high bit in the cache file unless we assign to the vars.
12248 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12249 eval ac_val=\$$ac_var
12253 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
12254 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
12257 _ | IFS | as_nl) ;; #(
12258 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
12259 *) { eval $ac_var=; unset $ac_var;} ;;
12265 case $as_nl`(ac_space=' '; set) 2>&1` in #(
12266 *${as_nl}ac_space=\ *)
12267 # `set' does not quote correctly, so add quotes: double-quote
12268 # substitution turns \\\\ into \\, and sed turns \\ into \.
12271 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12274 # `set' quotes correctly as required by POSIX, so do not add quotes.
12275 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
12284 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12286 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12288 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12289 if test -w "$cache_file"; then
12290 if test "x$cache_file" != "x/dev/null"; then
12291 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
12292 $as_echo "$as_me: updating cache $cache_file" >&6;}
12293 if test ! -f "$cache_file" || test -h "$cache_file"; then
12294 cat confcache >"$cache_file"
12296 case $cache_file in #(
12298 mv -f confcache "$cache_file"$$ &&
12299 mv -f "$cache_file"$$ "$cache_file" ;; #(
12301 mv -f confcache "$cache_file" ;;
12306 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
12307 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
12312 test "x$prefix" = xNONE && prefix=$ac_default_prefix
12313 # Let make expand exec_prefix.
12314 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12316 DEFS=-DHAVE_CONFIG_H
12321 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12322 # 1. Remove the extension, and $U if already installed.
12323 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
12324 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
12325 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
12326 # will be set to the directory where LIBOBJS objects are built.
12327 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12328 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
12330 LIBOBJS=$ac_libobjs
12332 LTLIBOBJS=$ac_ltlibobjs
12335 if test -n "$EXEEXT"; then
12337 am__EXEEXT_FALSE='#'
12339 am__EXEEXT_TRUE='#'
12343 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
12344 as_fn_error $? "conditional \"AMDEP\" was never defined.
12345 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12347 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
12348 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
12349 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12351 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
12352 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
12353 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12356 : "${CONFIG_STATUS=./config.status}"
12358 ac_clean_files_save=$ac_clean_files
12359 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12360 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
12361 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
12363 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
12365 # Generated by $as_me.
12366 # Run this file to recreate the current configuration.
12367 # Compiler output produced by configure, useful for debugging
12368 # configure, is in config.log if it exists.
12371 ac_cs_recheck=false
12374 SHELL=\${CONFIG_SHELL-$SHELL}
12377 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
12378 ## -------------------- ##
12379 ## M4sh Initialization. ##
12380 ## -------------------- ##
12382 # Be more Bourne compatible
12383 DUALCASE=1; export DUALCASE # for MKS sh
12384 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
12387 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
12388 # is contrary to our usage. Disable this feature.
12389 alias -g '${1+"$@"}'='"$@"'
12390 setopt NO_GLOB_SUBST
12392 case `(set -o) 2>/dev/null` in #(
12404 # Printing a long string crashes Solaris 7 /usr/bin/printf.
12405 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12406 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
12407 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
12408 # Prefer a ksh shell builtin over an external printf program on Solaris,
12409 # but without wasting forks for bash or zsh.
12410 if test -z "$BASH_VERSION$ZSH_VERSION" \
12411 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
12412 as_echo='print -r --'
12413 as_echo_n='print -rn --'
12414 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
12415 as_echo='printf %s\n'
12416 as_echo_n='printf %s'
12418 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
12419 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
12420 as_echo_n='/usr/ucb/echo -n'
12422 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
12423 as_echo_n_body='eval
12427 expr "X$arg" : "X\\(.*\\)$as_nl";
12428 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
12430 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
12432 export as_echo_n_body
12433 as_echo_n='sh -c $as_echo_n_body as_echo'
12435 export as_echo_body
12436 as_echo='sh -c $as_echo_body as_echo'
12439 # The user is always right.
12440 if test "${PATH_SEPARATOR+set}" != set; then
12442 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
12443 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
12450 # We need space, tab and new line, in precisely that order. Quoting is
12451 # there to prevent editors from complaining about space-tab.
12452 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
12453 # splitting by setting IFS to empty value.)
12456 # Find who we are. Look in the path if we contain no directory separator.
12459 *[\\/]* ) as_myself=$0 ;;
12460 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12461 for as_dir in $PATH
12464 test -z "$as_dir" && as_dir=.
12465 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12471 # We did not find ourselves, most probably we were run as `sh COMMAND'
12472 # in which case we are not to be found in the path.
12473 if test "x$as_myself" = x; then
12476 if test ! -f "$as_myself"; then
12477 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
12481 # Unset variables that we do not need and which cause bugs (e.g. in
12482 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
12483 # suppresses any "Segmentation fault" message there. '((' could
12484 # trigger a bug in pdksh 5.2.14.
12485 for as_var in BASH_ENV ENV MAIL MAILPATH
12486 do eval test x\${$as_var+set} = xset \
12487 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
12500 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12503 # as_fn_error STATUS ERROR [LINENO LOG_FD]
12504 # ----------------------------------------
12505 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
12506 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
12507 # script with STATUS, using 1 if that was 0.
12510 as_status=$1; test $as_status -eq 0 && as_status=1
12512 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
12513 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
12515 $as_echo "$as_me: error: $2" >&2
12516 as_fn_exit $as_status
12520 # as_fn_set_status STATUS
12521 # -----------------------
12522 # Set $? to STATUS, without forking.
12523 as_fn_set_status ()
12526 } # as_fn_set_status
12528 # as_fn_exit STATUS
12529 # -----------------
12530 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
12534 as_fn_set_status $1
12540 # Portably unset VAR.
12543 { eval $1=; unset $1;}
12545 as_unset=as_fn_unset
12546 # as_fn_append VAR VALUE
12547 # ----------------------
12548 # Append the text in VALUE to the end of the definition contained in VAR. Take
12549 # advantage of any shell optimizations that allow amortized linear growth over
12550 # repeated appends, instead of the typical quadratic growth present in naive
12552 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
12553 eval 'as_fn_append ()
12564 # as_fn_arith ARG...
12565 # ------------------
12566 # Perform arithmetic evaluation on the ARGs, and store the result in the
12567 # global $as_val. Take advantage of shells that can avoid forks. The arguments
12568 # must be portable across $(()) and expr.
12569 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
12570 eval 'as_fn_arith ()
12577 as_val=`expr "$@" || test $? -eq 1`
12582 if expr a : '\(a\)' >/dev/null 2>&1 &&
12583 test "X`expr 00001 : '.*\(...\)'`" = X001; then
12589 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
12590 as_basename=basename
12595 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
12601 as_me=`$as_basename -- "$0" ||
12602 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12603 X"$0" : 'X\(//\)$' \| \
12604 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
12606 sed '/^.*\/\([^/][^/]*\)\/*$/{
12620 # Avoid depending upon Character Ranges.
12621 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12622 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12623 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12624 as_cr_digits='0123456789'
12625 as_cr_alnum=$as_cr_Letters$as_cr_digits
12627 ECHO_C= ECHO_N= ECHO_T=
12628 case `echo -n x` in #(((((
12630 case `echo 'xy\c'` in
12631 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
12633 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
12640 rm -f conf$$ conf$$.exe conf$$.file
12641 if test -d conf$$.dir; then
12642 rm -f conf$$.dir/conf$$.file
12645 mkdir conf$$.dir 2>/dev/null
12647 if (echo >conf$$.file) 2>/dev/null; then
12648 if ln -s conf$$.file conf$$ 2>/dev/null; then
12650 # ... but there are two gotchas:
12651 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
12652 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
12653 # In both cases, we have to default to `cp -pR'.
12654 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
12656 elif ln conf$$.file conf$$ 2>/dev/null; then
12664 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
12665 rmdir conf$$.dir 2>/dev/null
12670 # Create "$as_dir" as a directory, including parents if necessary.
12675 -*) as_dir=./$as_dir;;
12677 test -d "$as_dir" || eval $as_mkdir_p || {
12681 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
12682 *) as_qdir=$as_dir;;
12684 as_dirs="'$as_qdir' $as_dirs"
12685 as_dir=`$as_dirname -- "$as_dir" ||
12686 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12687 X"$as_dir" : 'X\(//\)[^/]' \| \
12688 X"$as_dir" : 'X\(//\)$' \| \
12689 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12690 $as_echo X"$as_dir" |
12691 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12695 /^X\(\/\/\)[^/].*/{
12708 test -d "$as_dir" && break
12710 test -z "$as_dirs" || eval "mkdir $as_dirs"
12711 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
12715 if mkdir -p . 2>/dev/null; then
12716 as_mkdir_p='mkdir -p "$as_dir"'
12718 test -d ./-p && rmdir ./-p
12723 # as_fn_executable_p FILE
12724 # -----------------------
12725 # Test if FILE is an executable regular file.
12726 as_fn_executable_p ()
12728 test -f "$1" && test -x "$1"
12729 } # as_fn_executable_p
12730 as_test_x='test -x'
12731 as_executable_p=as_fn_executable_p
12733 # Sed expression to map a string onto a valid CPP name.
12734 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12736 # Sed expression to map a string onto a valid variable name.
12737 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12741 ## ----------------------------------- ##
12742 ## Main body of $CONFIG_STATUS script. ##
12743 ## ----------------------------------- ##
12745 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
12747 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12748 # Save the log message, to keep $0 and so on meaningful, and to
12749 # report actual input values of CONFIG_FILES etc. instead of their
12750 # values after options handling.
12752 This file was extended by gacela $as_me 0.5, which was
12753 generated by GNU Autoconf 2.69. Invocation command line was
12755 CONFIG_FILES = $CONFIG_FILES
12756 CONFIG_HEADERS = $CONFIG_HEADERS
12757 CONFIG_LINKS = $CONFIG_LINKS
12758 CONFIG_COMMANDS = $CONFIG_COMMANDS
12761 on `(hostname || uname -n) 2>/dev/null | sed 1q`
12766 case $ac_config_files in *"
12767 "*) set x $ac_config_files; shift; ac_config_files=$*;;
12770 case $ac_config_headers in *"
12771 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
12775 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12776 # Files that config.status was made for.
12777 config_files="$ac_config_files"
12778 config_headers="$ac_config_headers"
12779 config_commands="$ac_config_commands"
12783 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12785 \`$as_me' instantiates files and other configuration actions
12786 from templates according to the current configuration. Unless the files
12787 and actions are specified as TAGs, all are instantiated by default.
12789 Usage: $0 [OPTION]... [TAG]...
12791 -h, --help print this help, then exit
12792 -V, --version print version number and configuration settings, then exit
12793 --config print configuration, then exit
12794 -q, --quiet, --silent
12795 do not print progress messages
12796 -d, --debug don't remove temporary files
12797 --recheck update $as_me by reconfiguring in the same conditions
12798 --file=FILE[:TEMPLATE]
12799 instantiate the configuration file FILE
12800 --header=FILE[:TEMPLATE]
12801 instantiate the configuration header FILE
12803 Configuration files:
12806 Configuration headers:
12809 Configuration commands:
12812 Report bugs to <jsf@jsancho.org>."
12815 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12816 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
12818 gacela config.status 0.5
12819 configured by $0, generated by GNU Autoconf 2.69,
12820 with options \\"\$ac_cs_config\\"
12822 Copyright (C) 2012 Free Software Foundation, Inc.
12823 This config.status script is free software; the Free Software Foundation
12824 gives unlimited permission to copy, distribute and modify it."
12831 test -n "\$AWK" || AWK=awk
12834 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12835 # The default lists apply if the user does not specify any file.
12841 ac_option=`expr "X$1" : 'X\([^=]*\)='`
12842 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
12846 ac_option=`expr "X$1" : 'X\([^=]*\)='`
12858 # Handling of the options.
12859 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12861 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
12862 $as_echo "$ac_cs_version"; exit ;;
12863 --config | --confi | --conf | --con | --co | --c )
12864 $as_echo "$ac_cs_config"; exit ;;
12865 --debug | --debu | --deb | --de | --d | -d )
12867 --file | --fil | --fi | --f )
12870 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12871 '') as_fn_error $? "missing file argument" ;;
12873 as_fn_append CONFIG_FILES " '$ac_optarg'"
12874 ac_need_defaults=false;;
12875 --header | --heade | --head | --hea )
12878 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12880 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
12881 ac_need_defaults=false;;
12883 # Conflict between --help and --header
12884 as_fn_error $? "ambiguous option: \`$1'
12885 Try \`$0 --help' for more information.";;
12886 --help | --hel | -h )
12887 $as_echo "$ac_cs_usage"; exit ;;
12888 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12889 | -silent | --silent | --silen | --sile | --sil | --si | --s)
12892 # This is an error.
12893 -*) as_fn_error $? "unrecognized option: \`$1'
12894 Try \`$0 --help' for more information." ;;
12896 *) as_fn_append ac_config_targets " $1"
12897 ac_need_defaults=false ;;
12903 ac_configure_extra_args=
12905 if $ac_cs_silent; then
12907 ac_configure_extra_args="$ac_configure_extra_args --silent"
12911 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12912 if \$ac_cs_recheck; then
12913 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12915 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
12916 CONFIG_SHELL='$SHELL'
12917 export CONFIG_SHELL
12922 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12926 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12927 ## Running $as_me. ##
12933 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12937 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
12940 # The HP-UX ksh and POSIX shell print the target directory to stdout
12941 # if CDPATH is set.
12942 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12944 sed_quote_subst='$sed_quote_subst'
12945 double_quote_subst='$double_quote_subst'
12946 delay_variable_subst='$delay_variable_subst'
12947 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
12948 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
12949 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
12950 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
12951 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
12952 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
12953 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
12954 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
12955 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
12956 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
12957 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
12958 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
12959 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
12960 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
12961 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
12962 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
12963 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
12964 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
12965 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
12966 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
12967 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
12968 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
12969 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
12970 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
12971 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
12972 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
12973 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
12974 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
12975 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
12976 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
12977 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
12978 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
12979 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
12980 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
12981 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
12982 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
12983 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
12984 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
12985 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
12986 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
12987 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
12988 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
12989 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
12990 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
12991 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
12992 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
12993 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
12994 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
12995 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
12996 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
12997 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
12998 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
12999 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
13000 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
13001 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
13002 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
13003 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"`'
13004 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
13005 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
13006 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
13007 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
13008 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
13009 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
13010 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
13011 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
13012 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
13013 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
13014 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
13015 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
13016 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
13017 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
13018 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
13019 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
13020 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
13021 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
13022 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13023 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
13024 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
13025 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
13026 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
13027 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
13028 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
13029 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13030 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
13031 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13032 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
13033 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13034 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
13035 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
13036 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
13037 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
13038 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
13039 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
13040 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
13041 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
13042 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
13043 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
13044 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
13045 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
13046 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
13047 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
13048 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
13049 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
13050 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
13051 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
13052 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
13053 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
13054 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
13055 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
13056 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
13057 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
13058 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
13059 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
13060 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
13061 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
13062 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
13063 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
13064 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13065 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13066 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
13067 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
13068 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
13069 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
13070 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
13071 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
13072 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
13073 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
13074 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
13075 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
13076 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
13079 LTCFLAGS='$LTCFLAGS'
13080 compiler='$compiler_DEFAULT'
13082 # A function that is used when there is no print builtin or printf.
13083 func_fallback_echo ()
13085 eval 'cat <<_LTECHO_EOF
13090 # Quote evaled strings.
13105 deplibs_check_method \
13110 sharedlib_from_linklib_cmd \
13113 archiver_list_spec \
13119 lt_cv_sys_global_symbol_pipe \
13120 lt_cv_sys_global_symbol_to_cdecl \
13121 lt_cv_sys_global_symbol_to_c_name_address \
13122 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
13123 nm_file_list_spec \
13124 lt_prog_compiler_no_builtin_flag \
13125 lt_prog_compiler_pic \
13126 lt_prog_compiler_wl \
13127 lt_prog_compiler_static \
13128 lt_cv_prog_compiler_c_o \
13137 export_dynamic_flag_spec \
13138 whole_archive_flag_spec \
13139 compiler_needs_object \
13141 allow_undefined_flag \
13142 no_undefined_flag \
13143 hardcode_libdir_flag_spec \
13144 hardcode_libdir_separator \
13148 variables_saved_for_relink \
13150 library_names_spec \
13152 install_override_mode \
13156 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
13157 *[\\\\\\\`\\"\\\$]*)
13158 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
13161 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13166 # Double-quote double-evaled strings.
13167 for var in reload_cmds \
13168 old_postinstall_cmds \
13169 old_postuninstall_cmds \
13171 extract_expsyms_cmds \
13172 old_archive_from_new_cmds \
13173 old_archive_from_expsyms_cmds \
13175 archive_expsym_cmds \
13177 module_expsym_cmds \
13178 export_symbols_cmds \
13182 postuninstall_cmds \
13184 sys_lib_search_path_spec \
13185 sys_lib_dlsearch_path_spec; do
13186 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
13187 *[\\\\\\\`\\"\\\$]*)
13188 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
13191 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13196 ac_aux_dir='$ac_aux_dir'
13197 xsi_shell='$xsi_shell'
13198 lt_shell_append='$lt_shell_append'
13200 # See if we are running on zsh, and set the options which allow our
13201 # commands through without removal of \ escapes INIT.
13202 if test -n "\${ZSH_VERSION+set}" ; then
13203 setopt NO_GLOB_SUBST
13209 TIMESTAMP='$TIMESTAMP'
13218 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13220 # Handling of arguments.
13221 for ac_config_target in $ac_config_targets
13223 case $ac_config_target in
13224 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
13225 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
13226 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
13227 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13228 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
13230 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
13235 # If the user did not use the arguments to specify the items to instantiate,
13236 # then the envvar interface is used. Set only those that are not.
13237 # We use the long form for the default assignment because of an extremely
13238 # bizarre bug on SunOS 4.1.3.
13239 if $ac_need_defaults; then
13240 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13241 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
13242 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13245 # Have a temporary directory for convenience. Make it in the build tree
13246 # simply because there is no reason against having it here, and in addition,
13247 # creating and moving files from /tmp can sometimes cause problems.
13248 # Hook for its removal unless debugging.
13249 # Note that there is a small window in which the directory will not be cleaned:
13250 # after its creation but before its name has been assigned to `$tmp'.
13254 trap 'exit_status=$?
13255 : "${ac_tmp:=$tmp}"
13256 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
13258 trap 'as_fn_exit 1' 1 2 13 15
13260 # Create a (secure) tmp directory for tmp files.
13263 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
13267 tmp=./conf$$-$RANDOM
13268 (umask 077 && mkdir "$tmp")
13269 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
13272 # Set up the scripts for CONFIG_FILES section.
13273 # No need to generate them if there are no CONFIG_FILES.
13274 # This happens for instance with `./config.status config.h'.
13275 if test -n "$CONFIG_FILES"; then
13278 ac_cr=`echo X | tr X '\015'`
13279 # On cygwin, bash can eat \r inside `` if the user requested igncr.
13280 # But we know of no other shell where ac_cr would be empty at this
13281 # point, so we can use a bashism as a fallback.
13282 if test "x$ac_cr" = x; then
13283 eval ac_cr=\$\'\\r\'
13285 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
13286 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
13289 ac_cs_awk_cr=$ac_cr
13292 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
13297 echo "cat >conf$$subs.awk <<_ACEOF" &&
13298 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
13300 } >conf$$subs.sh ||
13301 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13302 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
13304 for ac_last_try in false false false false false :; do
13305 . ./conf$$subs.sh ||
13306 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13308 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
13309 if test $ac_delim_n = $ac_delim_num; then
13311 elif $ac_last_try; then
13312 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13314 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13317 rm -f conf$$subs.sh
13319 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13320 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
13324 s/^/S["/; s/!.*/"]=/
13334 s/\(.\{148\}\)..*/\1/
13336 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
13341 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13348 s/\(.\{148\}\)..*/\1/
13350 s/["\\]/\\&/g; s/^/"/; s/$/"/
13354 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13359 ' <conf$$subs.awk | sed '
13364 ' >>$CONFIG_STATUS || ac_write_fail=1
13365 rm -f conf$$subs.awk
13366 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13368 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
13369 for (key in S) S_is_set[key] = 1
13375 nfields = split(line, field, "@")
13377 len = length(field[1])
13378 for (i = 2; i < nfields; i++) {
13380 keylen = length(key)
13381 if (S_is_set[key]) {
13383 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
13384 len += length(value) + length(field[++i])
13395 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13396 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
13397 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
13400 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
13401 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
13404 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
13405 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
13406 # trailing colons and then remove the whole line if VPATH becomes empty
13407 # (actually we leave an empty line to preserve line numbers).
13408 if test "x$srcdir" = x.; then
13409 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
13427 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13428 fi # test -n "$CONFIG_FILES"
13430 # Set up the scripts for CONFIG_HEADERS section.
13431 # No need to generate them if there are no CONFIG_HEADERS.
13432 # This happens for instance with `./config.status Makefile'.
13433 if test -n "$CONFIG_HEADERS"; then
13434 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
13438 # Transform confdefs.h into an awk script `defines.awk', embedded as
13439 # here-document in config.status, that substitutes the proper values into
13440 # config.h.in to produce config.h.
13442 # Create a delimiter string that does not exist in confdefs.h, to ease
13443 # handling of long lines.
13445 for ac_last_try in false false :; do
13446 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
13447 if test -z "$ac_tt"; then
13449 elif $ac_last_try; then
13450 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
13452 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13456 # For the awk script, D is an array of macro values keyed by name,
13457 # likewise P contains macro parameters if any. Preserve backslash
13458 # newline sequences.
13460 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
13462 s/.\{148\}/&'"$ac_delim"'/g
13465 s/^[ ]*#[ ]*define[ ][ ]*/ /
13472 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13474 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
13478 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13479 D["\1"]=" \3\\\\\\n"\\/p
13481 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
13486 s/.\{148\}/&'"$ac_delim"'/g
13491 s/["\\]/\\&/g; s/^/"/; s/$/"/p
13494 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
13496 ' <confdefs.h | sed '
13497 s/'"$ac_delim"'/"\\\
13498 "/g' >>$CONFIG_STATUS || ac_write_fail=1
13500 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13501 for (key in D) D_is_set[key] = 1
13504 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
13506 split(line, arg, " ")
13507 if (arg[1] == "#") {
13511 defundef = substr(arg[1], 2)
13514 split(mac1, mac2, "(") #)
13516 prefix = substr(line, 1, index(line, defundef) - 1)
13517 if (D_is_set[macro]) {
13518 # Preserve the white space surrounding the "#".
13519 print prefix "define", macro P[macro] D[macro]
13522 # Replace #undef with comments. This is necessary, for example,
13523 # in the case of _POSIX_SOURCE, which is predefined and required
13524 # on some systems where configure will not decide to define it.
13525 if (defundef == "undef") {
13526 print "/*", prefix defundef, macro, "*/"
13534 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13535 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
13536 fi # test -n "$CONFIG_HEADERS"
13539 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
13544 :[FHLC]) ac_mode=$ac_tag; continue;;
13546 case $ac_mode$ac_tag in
13548 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
13549 :[FH]-) ac_tag=-:-;;
13550 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
13567 -) ac_f="$ac_tmp/stdin";;
13568 *) # Look for the file first in the build tree, then in the source tree
13569 # (if the path is not absolute). The absolute path cannot be DOS-style,
13570 # because $ac_f cannot contain `:'.
13574 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
13576 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
13578 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
13579 as_fn_append ac_file_inputs " '$ac_f'"
13582 # Let's still pretend it is `configure' which instantiates (i.e., don't
13583 # use $as_me), people would be surprised to read:
13584 # /* config.h. Generated by config.status. */
13585 configure_input='Generated from '`
13586 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
13588 if test x"$ac_file" != x-; then
13589 configure_input="$ac_file. $configure_input"
13590 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
13591 $as_echo "$as_me: creating $ac_file" >&6;}
13593 # Neutralize special characters interpreted by sed in replacement strings.
13594 case $configure_input in #(
13595 *\&* | *\|* | *\\* )
13596 ac_sed_conf_input=`$as_echo "$configure_input" |
13597 sed 's/[\\\\&|]/\\\\&/g'`;; #(
13598 *) ac_sed_conf_input=$configure_input;;
13602 *:-:* | *:-) cat >"$ac_tmp/stdin" \
13603 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
13608 ac_dir=`$as_dirname -- "$ac_file" ||
13609 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13610 X"$ac_file" : 'X\(//\)[^/]' \| \
13611 X"$ac_file" : 'X\(//\)$' \| \
13612 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
13613 $as_echo X"$ac_file" |
13614 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13618 /^X\(\/\/\)[^/].*/{
13631 as_dir="$ac_dir"; as_fn_mkdir_p
13635 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
13637 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
13638 # A ".." for each directory in $ac_dir_suffix.
13639 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
13640 case $ac_top_builddir_sub in
13641 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
13642 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
13645 ac_abs_top_builddir=$ac_pwd
13646 ac_abs_builddir=$ac_pwd$ac_dir_suffix
13647 # for backward compatibility:
13648 ac_top_builddir=$ac_top_build_prefix
13651 .) # We are building in place.
13653 ac_top_srcdir=$ac_top_builddir_sub
13654 ac_abs_top_srcdir=$ac_pwd ;;
13655 [\\/]* | ?:[\\/]* ) # Absolute name.
13656 ac_srcdir=$srcdir$ac_dir_suffix;
13657 ac_top_srcdir=$srcdir
13658 ac_abs_top_srcdir=$srcdir ;;
13659 *) # Relative name.
13660 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
13661 ac_top_srcdir=$ac_top_build_prefix$srcdir
13662 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
13664 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
13674 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
13675 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
13677 ac_MKDIR_P=$MKDIR_P
13679 [\\/$]* | ?:[\\/]* ) ;;
13680 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
13684 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13685 # If the template does not know about datarootdir, expand it.
13686 # FIXME: This hack should be removed a few years after 2.60.
13687 ac_datarootdir_hack=; ac_datarootdir_seen=
13698 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
13699 *datarootdir*) ac_datarootdir_seen=yes;;
13700 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
13701 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
13702 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
13704 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13705 ac_datarootdir_hack='
13706 s&@datadir@&$datadir&g
13707 s&@docdir@&$docdir&g
13708 s&@infodir@&$infodir&g
13709 s&@localedir@&$localedir&g
13710 s&@mandir@&$mandir&g
13711 s&\\\${datarootdir}&$datarootdir&g' ;;
13715 # Neutralize VPATH when `$srcdir' = `.'.
13716 # Shell code in configure.ac might set extrasub.
13717 # FIXME: do we really want to maintain this feature?
13718 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13719 ac_sed_extra="$ac_vpsub
13722 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13724 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13725 s|@configure_input@|$ac_sed_conf_input|;t t
13726 s&@top_builddir@&$ac_top_builddir_sub&;t t
13727 s&@top_build_prefix@&$ac_top_build_prefix&;t t
13728 s&@srcdir@&$ac_srcdir&;t t
13729 s&@abs_srcdir@&$ac_abs_srcdir&;t t
13730 s&@top_srcdir@&$ac_top_srcdir&;t t
13731 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
13732 s&@builddir@&$ac_builddir&;t t
13733 s&@abs_builddir@&$ac_abs_builddir&;t t
13734 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
13735 s&@INSTALL@&$ac_INSTALL&;t t
13736 s&@MKDIR_P@&$ac_MKDIR_P&;t t
13737 $ac_datarootdir_hack
13739 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
13740 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13742 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
13743 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
13744 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
13745 "$ac_tmp/out"`; test -z "$ac_out"; } &&
13746 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13747 which seems to be undefined. Please make sure it is defined" >&5
13748 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13749 which seems to be undefined. Please make sure it is defined" >&2;}
13751 rm -f "$ac_tmp/stdin"
13753 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
13754 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
13756 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13762 if test x"$ac_file" != x-; then
13764 $as_echo "/* $configure_input */" \
13765 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
13766 } >"$ac_tmp/config.h" \
13767 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13768 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
13769 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
13770 $as_echo "$as_me: $ac_file is unchanged" >&6;}
13773 mv "$ac_tmp/config.h" "$ac_file" \
13774 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13777 $as_echo "/* $configure_input */" \
13778 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
13779 || as_fn_error $? "could not create -" "$LINENO" 5
13781 # Compute "$ac_file"'s index in $config_headers.
13784 for _am_header in $config_headers :; do
13785 case $_am_header in
13786 $_am_arg | $_am_arg:* )
13789 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
13792 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
13793 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13794 X"$_am_arg" : 'X\(//\)[^/]' \| \
13795 X"$_am_arg" : 'X\(//\)$' \| \
13796 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
13797 $as_echo X"$_am_arg" |
13798 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13802 /^X\(\/\/\)[^/].*/{
13814 s/.*/./; q'`/stamp-h$_am_stamp_count
13817 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
13818 $as_echo "$as_me: executing $ac_file commands" >&6;}
13823 case $ac_file$ac_mode in
13824 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
13825 # Autoconf 2.62 quotes --file arguments for eval, but not when files
13826 # are listed without --file. Let's play safe and only enable the eval
13827 # if we detect the quoting.
13828 case $CONFIG_FILES in
13829 *\'*) eval set x "$CONFIG_FILES" ;;
13830 *) set x $CONFIG_FILES ;;
13835 # Strip MF so we end up with the name of the file.
13836 mf=`echo "$mf" | sed -e 's/:.*$//'`
13837 # Check whether this is an Automake generated Makefile or not.
13838 # We used to match only the files named `Makefile.in', but
13839 # some people rename them; so instead we look at the file content.
13840 # Grep'ing the first line is not enough: some people post-process
13841 # each Makefile.in and add a new line on top of each file to say so.
13842 # Grep'ing the whole file is not good either: AIX grep has a line
13843 # limit of 2048, but all sed's we know have understand at least 4000.
13844 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
13845 dirpart=`$as_dirname -- "$mf" ||
13846 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13847 X"$mf" : 'X\(//\)[^/]' \| \
13848 X"$mf" : 'X\(//\)$' \| \
13849 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
13851 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13855 /^X\(\/\/\)[^/].*/{
13871 # Extract the definition of DEPDIR, am__include, and am__quote
13872 # from the Makefile without running `make'.
13873 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
13874 test -z "$DEPDIR" && continue
13875 am__include=`sed -n 's/^am__include = //p' < "$mf"`
13876 test -z "am__include" && continue
13877 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
13878 # When using ansi2knr, U may be empty or an underscore; expand it
13879 U=`sed -n 's/^U = //p' < "$mf"`
13880 # Find all dependency output files, they are included files with
13881 # $(DEPDIR) in their names. We invoke sed twice because it is the
13882 # simplest approach to changing $(DEPDIR) to its actual value in the
13884 for file in `sed -n "
13885 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
13886 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
13887 # Make sure the directory exists.
13888 test -f "$dirpart/$file" && continue
13889 fdir=`$as_dirname -- "$file" ||
13890 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13891 X"$file" : 'X\(//\)[^/]' \| \
13892 X"$file" : 'X\(//\)$' \| \
13893 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
13894 $as_echo X"$file" |
13895 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13899 /^X\(\/\/\)[^/].*/{
13912 as_dir=$dirpart/$fdir; as_fn_mkdir_p
13913 # echo "creating $dirpart/$file"
13914 echo '# dummy' > "$dirpart/$file"
13921 # See if we are running on zsh, and set the options which allow our
13922 # commands through without removal of \ escapes.
13923 if test -n "${ZSH_VERSION+set}" ; then
13924 setopt NO_GLOB_SUBST
13927 cfgfile="${ofile}T"
13928 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
13931 cat <<_LT_EOF >> "$cfgfile"
13934 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
13935 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
13936 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13937 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
13939 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
13940 # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
13942 # Written by Gordon Matzigkeit, 1996
13944 # This file is part of GNU Libtool.
13946 # GNU Libtool is free software; you can redistribute it and/or
13947 # modify it under the terms of the GNU General Public License as
13948 # published by the Free Software Foundation; either version 2 of
13949 # the License, or (at your option) any later version.
13951 # As a special exception to the GNU General Public License,
13952 # if you distribute this file as part of a program or library that
13953 # is built using GNU Libtool, you may include this file under the
13954 # same distribution terms that you use for the rest of that program.
13956 # GNU Libtool is distributed in the hope that it will be useful,
13957 # but WITHOUT ANY WARRANTY; without even the implied warranty of
13958 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13959 # GNU General Public License for more details.
13961 # You should have received a copy of the GNU General Public License
13962 # along with GNU Libtool; see the file COPYING. If not, a copy
13963 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
13964 # obtained by writing to the Free Software Foundation, Inc.,
13965 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
13968 # The names of the tagged configurations supported by this script.
13971 # ### BEGIN LIBTOOL CONFIG
13973 # Which release of libtool.m4 was used?
13974 macro_version=$macro_version
13975 macro_revision=$macro_revision
13977 # Whether or not to build shared libraries.
13978 build_libtool_libs=$enable_shared
13980 # Whether or not to build static libraries.
13981 build_old_libs=$enable_static
13983 # What type of objects to build.
13986 # Whether or not to optimize for fast installation.
13987 fast_install=$enable_fast_install
13989 # Shell to use when invoking shell scripts.
13992 # An echo program that protects backslashes.
13995 # The PATH separator for the build system.
13996 PATH_SEPARATOR=$lt_PATH_SEPARATOR
13999 host_alias=$host_alias
14003 # The build system.
14004 build_alias=$build_alias
14008 # A sed program that does not truncate output.
14011 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
14012 Xsed="\$SED -e 1s/^X//"
14014 # A grep program that handles long lines.
14020 # A literal string matcher.
14023 # A BSD- or MS-compatible name lister.
14026 # Whether we need soft or hard links.
14029 # What is the maximum length of a command?
14030 max_cmd_len=$max_cmd_len
14032 # Object file suffix (normally "o").
14035 # Executable file suffix (normally "").
14038 # whether the shell understands "unset".
14041 # turn spaces into newlines.
14044 # turn newlines into spaces.
14047 # convert \$build file names to \$host format.
14048 to_host_file_cmd=$lt_cv_to_host_file_cmd
14050 # convert \$build files to toolchain format.
14051 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
14053 # An object symbol dumper.
14054 OBJDUMP=$lt_OBJDUMP
14056 # Method to check whether dependent libraries are shared objects.
14057 deplibs_check_method=$lt_deplibs_check_method
14059 # Command to use when deplibs_check_method = "file_magic".
14060 file_magic_cmd=$lt_file_magic_cmd
14062 # How to find potential files when deplibs_check_method = "file_magic".
14063 file_magic_glob=$lt_file_magic_glob
14065 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
14066 want_nocaseglob=$lt_want_nocaseglob
14068 # DLL creation program.
14069 DLLTOOL=$lt_DLLTOOL
14071 # Command to associate shared and link libraries.
14072 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
14077 # Flags to create an archive.
14078 AR_FLAGS=$lt_AR_FLAGS
14080 # How to feed a file listing to the archiver.
14081 archiver_list_spec=$lt_archiver_list_spec
14083 # A symbol stripping program.
14086 # Commands used to install an old-style archive.
14088 old_postinstall_cmds=$lt_old_postinstall_cmds
14089 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14091 # Whether to use a lock for old archive extraction.
14092 lock_old_archive_extraction=$lock_old_archive_extraction
14097 # LTCC compiler flags.
14098 LTCFLAGS=$lt_CFLAGS
14100 # Take the output of nm and produce a listing of raw symbols and C names.
14101 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14103 # Transform the output of nm in a proper C declaration.
14104 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14106 # Transform the output of nm in a C name address pair.
14107 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14109 # Transform the output of nm in a C name address pair when lib prefix is needed.
14110 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
14112 # Specify filename containing input files for \$NM.
14113 nm_file_list_spec=$lt_nm_file_list_spec
14115 # The root where to search for dependent libraries,and in which our libraries should be installed.
14116 lt_sysroot=$lt_sysroot
14118 # The name of the directory that contains temporary libtool files.
14121 # Used to examine libraries when file_magic_cmd begins with "file".
14122 MAGIC_CMD=$MAGIC_CMD
14124 # Must we lock files when doing compilation?
14125 need_locks=$lt_need_locks
14128 MANIFEST_TOOL=$lt_MANIFEST_TOOL
14130 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
14131 DSYMUTIL=$lt_DSYMUTIL
14133 # Tool to change global to local symbols on Mac OS X.
14136 # Tool to manipulate fat objects and archives on Mac OS X.
14139 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
14142 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
14143 OTOOL64=$lt_OTOOL64
14145 # Old archive suffix (normally "a").
14148 # Shared library suffix (normally ".so").
14149 shrext_cmds=$lt_shrext_cmds
14151 # The commands to extract the exported symbol list from a shared archive.
14152 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14154 # Variables whose values should be saved in libtool wrapper scripts and
14155 # restored at link time.
14156 variables_saved_for_relink=$lt_variables_saved_for_relink
14158 # Do we need the "lib" prefix for modules?
14159 need_lib_prefix=$need_lib_prefix
14161 # Do we need a version for libraries?
14162 need_version=$need_version
14164 # Library versioning type.
14165 version_type=$version_type
14167 # Shared library runtime path variable.
14168 runpath_var=$runpath_var
14170 # Shared library path variable.
14171 shlibpath_var=$shlibpath_var
14173 # Is shlibpath searched before the hard-coded library search path?
14174 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14176 # Format of library name prefix.
14177 libname_spec=$lt_libname_spec
14179 # List of archive names. First name is the real one, the rest are links.
14180 # The last name is the one that the linker finds with -lNAME
14181 library_names_spec=$lt_library_names_spec
14183 # The coded name of the library, if different from the real name.
14184 soname_spec=$lt_soname_spec
14186 # Permission mode override for installation of shared libraries.
14187 install_override_mode=$lt_install_override_mode
14189 # Command to use after installation of a shared archive.
14190 postinstall_cmds=$lt_postinstall_cmds
14192 # Command to use after uninstallation of a shared archive.
14193 postuninstall_cmds=$lt_postuninstall_cmds
14195 # Commands used to finish a libtool library installation in a directory.
14196 finish_cmds=$lt_finish_cmds
14198 # As "finish_cmds", except a single script fragment to be evaled but
14200 finish_eval=$lt_finish_eval
14202 # Whether we should hardcode library paths into libraries.
14203 hardcode_into_libs=$hardcode_into_libs
14205 # Compile-time system search path for libraries.
14206 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14208 # Run-time system search path for libraries.
14209 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14211 # Whether dlopen is supported.
14212 dlopen_support=$enable_dlopen
14214 # Whether dlopen of programs is supported.
14215 dlopen_self=$enable_dlopen_self
14217 # Whether dlopen of statically linked programs is supported.
14218 dlopen_self_static=$enable_dlopen_self_static
14220 # Commands to strip libraries.
14221 old_striplib=$lt_old_striplib
14222 striplib=$lt_striplib
14225 # The linker used to build libraries.
14228 # How to create reloadable object files.
14229 reload_flag=$lt_reload_flag
14230 reload_cmds=$lt_reload_cmds
14232 # Commands used to build an old-style archive.
14233 old_archive_cmds=$lt_old_archive_cmds
14235 # A language specific compiler.
14238 # Is the compiler the GNU compiler?
14241 # Compiler flag to turn off builtin functions.
14242 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
14244 # Additional compiler flags for building library objects.
14245 pic_flag=$lt_lt_prog_compiler_pic
14247 # How to pass a linker flag through the compiler.
14248 wl=$lt_lt_prog_compiler_wl
14250 # Compiler flag to prevent dynamic linking.
14251 link_static_flag=$lt_lt_prog_compiler_static
14253 # Does compiler simultaneously support -c and -o options?
14254 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
14256 # Whether or not to add -lc for building shared libraries.
14257 build_libtool_need_lc=$archive_cmds_need_lc
14259 # Whether or not to disallow shared libs when runtime libs are static.
14260 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
14262 # Compiler flag to allow reflexive dlopens.
14263 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
14265 # Compiler flag to generate shared objects directly from archives.
14266 whole_archive_flag_spec=$lt_whole_archive_flag_spec
14268 # Whether the compiler copes with passing no objects directly.
14269 compiler_needs_object=$lt_compiler_needs_object
14271 # Create an old-style archive from a shared archive.
14272 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
14274 # Create a temporary old-style archive to link instead of a shared archive.
14275 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
14277 # Commands used to build a shared archive.
14278 archive_cmds=$lt_archive_cmds
14279 archive_expsym_cmds=$lt_archive_expsym_cmds
14281 # Commands used to build a loadable module if different from building
14282 # a shared archive.
14283 module_cmds=$lt_module_cmds
14284 module_expsym_cmds=$lt_module_expsym_cmds
14286 # Whether we are building with GNU ld or not.
14287 with_gnu_ld=$lt_with_gnu_ld
14289 # Flag that allows shared libraries with undefined symbols to be built.
14290 allow_undefined_flag=$lt_allow_undefined_flag
14292 # Flag that enforces no undefined symbols.
14293 no_undefined_flag=$lt_no_undefined_flag
14295 # Flag to hardcode \$libdir into a binary during linking.
14296 # This must work even if \$libdir does not exist
14297 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
14299 # Whether we need a single "-rpath" flag with a separated argument.
14300 hardcode_libdir_separator=$lt_hardcode_libdir_separator
14302 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14303 # DIR into the resulting binary.
14304 hardcode_direct=$hardcode_direct
14306 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14307 # DIR into the resulting binary and the resulting library dependency is
14308 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
14309 # library is relocated.
14310 hardcode_direct_absolute=$hardcode_direct_absolute
14312 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
14313 # into the resulting binary.
14314 hardcode_minus_L=$hardcode_minus_L
14316 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
14317 # into the resulting binary.
14318 hardcode_shlibpath_var=$hardcode_shlibpath_var
14320 # Set to "yes" if building a shared library automatically hardcodes DIR
14321 # into the library and all subsequent libraries and executables linked
14323 hardcode_automatic=$hardcode_automatic
14325 # Set to yes if linker adds runtime paths of dependent libraries
14326 # to runtime path list.
14327 inherit_rpath=$inherit_rpath
14329 # Whether libtool must link a program against all its dependency libraries.
14330 link_all_deplibs=$link_all_deplibs
14332 # Set to "yes" if exported symbols are required.
14333 always_export_symbols=$always_export_symbols
14335 # The commands to list exported symbols.
14336 export_symbols_cmds=$lt_export_symbols_cmds
14338 # Symbols that should not be listed in the preloaded symbols.
14339 exclude_expsyms=$lt_exclude_expsyms
14341 # Symbols that must always be exported.
14342 include_expsyms=$lt_include_expsyms
14344 # Commands necessary for linking programs (against libraries) with templates.
14345 prelink_cmds=$lt_prelink_cmds
14347 # Commands necessary for finishing linking programs.
14348 postlink_cmds=$lt_postlink_cmds
14350 # Specify filename containing input files.
14351 file_list_spec=$lt_file_list_spec
14353 # How to hardcode a shared library path into an executable.
14354 hardcode_action=$hardcode_action
14356 # ### END LIBTOOL CONFIG
14362 cat <<\_LT_EOF >> "$cfgfile"
14363 # AIX sometimes has problems with the GCC collect2 program. For some
14364 # reason, if we set the COLLECT_NAMES environment variable, the problems
14365 # vanish in a puff of smoke.
14366 if test "X${COLLECT_NAMES+set}" != Xset; then
14368 export COLLECT_NAMES
14375 ltmain="$ac_aux_dir/ltmain.sh"
14378 # We use sed instead of cat because bash on DJGPP gets confused if
14379 # if finds mixed CR/LF and LF-only lines. Since sed operates in
14380 # text mode, it properly converts lines to CR/LF. This bash problem
14381 # is reportedly fixed, but why not run on old versions too?
14382 sed '$q' "$ltmain" >> "$cfgfile" \
14383 || (rm -f "$cfgfile"; exit 1)
14385 if test x"$xsi_shell" = xyes; then
14386 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
14390 \ */*) func_dirname_result="${1%/*}${2}" ;;\
14391 \ * ) func_dirname_result="${3}" ;;\
14393 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
14394 && mv -f "$cfgfile.tmp" "$cfgfile" \
14395 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14396 test 0 -eq $? || _lt_function_replace_fail=:
14399 sed -e '/^func_basename ()$/,/^} # func_basename /c\
14402 \ func_basename_result="${1##*/}"\
14403 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
14404 && mv -f "$cfgfile.tmp" "$cfgfile" \
14405 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14406 test 0 -eq $? || _lt_function_replace_fail=:
14409 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
14410 func_dirname_and_basename ()\
14413 \ */*) func_dirname_result="${1%/*}${2}" ;;\
14414 \ * ) func_dirname_result="${3}" ;;\
14416 \ func_basename_result="${1##*/}"\
14417 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
14418 && mv -f "$cfgfile.tmp" "$cfgfile" \
14419 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14420 test 0 -eq $? || _lt_function_replace_fail=:
14423 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
14426 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
14427 \ # positional parameters, so assign one to ordinary parameter first.\
14428 \ func_stripname_result=${3}\
14429 \ func_stripname_result=${func_stripname_result#"${1}"}\
14430 \ func_stripname_result=${func_stripname_result%"${2}"}\
14431 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
14432 && mv -f "$cfgfile.tmp" "$cfgfile" \
14433 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14434 test 0 -eq $? || _lt_function_replace_fail=:
14437 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
14438 func_split_long_opt ()\
14440 \ func_split_long_opt_name=${1%%=*}\
14441 \ func_split_long_opt_arg=${1#*=}\
14442 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
14443 && mv -f "$cfgfile.tmp" "$cfgfile" \
14444 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14445 test 0 -eq $? || _lt_function_replace_fail=:
14448 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
14449 func_split_short_opt ()\
14451 \ func_split_short_opt_arg=${1#??}\
14452 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
14453 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
14454 && mv -f "$cfgfile.tmp" "$cfgfile" \
14455 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14456 test 0 -eq $? || _lt_function_replace_fail=:
14459 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
14463 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
14464 \ *) func_lo2o_result=${1} ;;\
14466 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
14467 && mv -f "$cfgfile.tmp" "$cfgfile" \
14468 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14469 test 0 -eq $? || _lt_function_replace_fail=:
14472 sed -e '/^func_xform ()$/,/^} # func_xform /c\
14475 func_xform_result=${1%.*}.lo\
14476 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
14477 && mv -f "$cfgfile.tmp" "$cfgfile" \
14478 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14479 test 0 -eq $? || _lt_function_replace_fail=:
14482 sed -e '/^func_arith ()$/,/^} # func_arith /c\
14485 func_arith_result=$(( $* ))\
14486 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
14487 && mv -f "$cfgfile.tmp" "$cfgfile" \
14488 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14489 test 0 -eq $? || _lt_function_replace_fail=:
14492 sed -e '/^func_len ()$/,/^} # func_len /c\
14495 func_len_result=${#1}\
14496 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
14497 && mv -f "$cfgfile.tmp" "$cfgfile" \
14498 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14499 test 0 -eq $? || _lt_function_replace_fail=:
14503 if test x"$lt_shell_append" = xyes; then
14504 sed -e '/^func_append ()$/,/^} # func_append /c\
14507 eval "${1}+=\\${2}"\
14508 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
14509 && mv -f "$cfgfile.tmp" "$cfgfile" \
14510 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14511 test 0 -eq $? || _lt_function_replace_fail=:
14514 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
14515 func_append_quoted ()\
14517 \ func_quote_for_eval "${2}"\
14518 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
14519 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
14520 && mv -f "$cfgfile.tmp" "$cfgfile" \
14521 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14522 test 0 -eq $? || _lt_function_replace_fail=:
14525 # Save a `func_append' function call where possible by direct use of '+='
14526 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
14527 && mv -f "$cfgfile.tmp" "$cfgfile" \
14528 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14529 test 0 -eq $? || _lt_function_replace_fail=:
14531 # Save a `func_append' function call even when '+=' is not available
14532 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
14533 && mv -f "$cfgfile.tmp" "$cfgfile" \
14534 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14535 test 0 -eq $? || _lt_function_replace_fail=:
14538 if test x"$_lt_function_replace_fail" = x":"; then
14539 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
14540 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
14544 mv -f "$cfgfile" "$ofile" ||
14545 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
14556 ac_clean_files=$ac_clean_files_save
14558 test $ac_write_fail = 0 ||
14559 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
14562 # configure is writing to config.log, and then calls config.status.
14563 # config.status does its own redirection, appending to config.log.
14564 # Unfortunately, on DOS this fails, as config.log is still kept open
14565 # by configure, so config.status won't be able to write to it; its
14566 # output is simply discarded. So we exec the FD to /dev/null,
14567 # effectively closing config.log, so it can be properly (re)opened and
14568 # appended to by config.status. When coming back to configure, we
14569 # need to make the FD available again.
14570 if test "$no_create" != yes; then
14572 ac_config_status_args=
14573 test "$silent" = yes &&
14574 ac_config_status_args="$ac_config_status_args --quiet"
14576 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
14578 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14579 # would make configure fail if this is the last instruction.
14580 $ac_cs_success || as_fn_exit 1
14582 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
14583 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
14584 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}