2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.68 for f77demo 1.0.
5 # Report bugs to <bug-libtool@gnu.org>.
8 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
13 # This configure script is free software; the Free Software Foundation
14 # gives unlimited permission to copy, distribute and modify it.
15 ## -------------------- ##
16 ## M4sh Initialization. ##
17 ## -------------------- ##
19 # Be more Bourne compatible
20 DUALCASE=1; export DUALCASE # for MKS sh
21 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
24 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25 # is contrary to our usage. Disable this feature.
26 alias -g '${1+"$@"}'='"$@"'
29 case `(set -o) 2>/dev/null` in #(
41 # Printing a long string crashes Solaris 7 /usr/bin/printf.
42 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45 # Prefer a ksh shell builtin over an external printf program on Solaris,
46 # but without wasting forks for bash or zsh.
47 if test -z "$BASH_VERSION$ZSH_VERSION" \
48 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo_n='print -rn --'
51 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
55 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57 as_echo_n='/usr/ucb/echo -n'
59 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
64 expr "X$arg" : "X\\(.*\\)$as_nl";
65 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
67 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
70 as_echo_n='sh -c $as_echo_n_body as_echo'
73 as_echo='sh -c $as_echo_body as_echo'
76 # The user is always right.
77 if test "${PATH_SEPARATOR+set}" != set; then
79 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
87 # We need space, tab and new line, in precisely that order. Quoting is
88 # there to prevent editors from complaining about space-tab.
89 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
90 # splitting by setting IFS to empty value.)
93 # Find who we are. Look in the path if we contain no directory separator.
96 *[\\/]* ) as_myself=$0 ;;
97 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
101 test -z "$as_dir" && as_dir=.
102 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
108 # We did not find ourselves, most probably we were run as `sh COMMAND'
109 # in which case we are not to be found in the path.
110 if test "x$as_myself" = x; then
113 if test ! -f "$as_myself"; then
114 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
118 # Unset variables that we do not need and which cause bugs (e.g. in
119 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
120 # suppresses any "Segmentation fault" message there. '((' could
121 # trigger a bug in pdksh 5.2.14.
122 for as_var in BASH_ENV ENV MAIL MAILPATH
123 do eval test x\${$as_var+set} = xset \
124 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
137 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
139 if test "x$CONFIG_SHELL" = x; then
140 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
143 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
144 # is contrary to our usage. Disable this feature.
145 alias -g '\${1+\"\$@\"}'='\"\$@\"'
148 case \`(set -o) 2>/dev/null\` in #(
156 as_required="as_fn_return () { (exit \$1); }
157 as_fn_success () { as_fn_return 0; }
158 as_fn_failure () { as_fn_return 1; }
159 as_fn_ret_success () { return 0; }
160 as_fn_ret_failure () { return 1; }
163 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
164 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
165 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
166 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
167 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
170 exitcode=1; echo positional parameters were not saved.
172 test x\$exitcode = x0 || exit 1"
173 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
174 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
175 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
176 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
178 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
179 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
180 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
181 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
182 PATH=/empty FPATH=/empty; export PATH FPATH
183 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
184 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
185 test \$(( 1 + 1 )) = 2 || exit 1"
186 if (eval "$as_required") 2>/dev/null; then :
191 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
196 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
199 test -z "$as_dir" && as_dir=.
203 for as_base in sh bash ksh sh5; do
204 # Try only shells that exist, to save several forks.
205 as_shell=$as_dir/$as_base
206 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
207 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
208 CONFIG_SHELL=$as_shell as_have_required=yes
209 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
217 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
218 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
219 CONFIG_SHELL=$SHELL as_have_required=yes
224 if test "x$CONFIG_SHELL" != x; then :
225 # We cannot yet assume a decent shell, so we have to provide a
226 # neutralization value for shells without unset; and this also
227 # works around shells that cannot unset nonexistent variables.
228 # Preserve -v and -x to the replacement shell.
231 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
234 *v*x* | *x*v* ) as_opts=-vx ;;
239 exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
242 if test x$as_have_required = xno; then :
243 $as_echo "$0: This script requires a shell more modern than all"
244 $as_echo "$0: the shells that I found on your system."
245 if test x${ZSH_VERSION+set} = xset ; then
246 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
247 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
249 $as_echo "$0: Please tell bug-autoconf@gnu.org and
250 $0: bug-libtool@gnu.org about your system, including any
251 $0: error possibly output before this message. Then install
252 $0: a modern shell, or manually run the script under such a
253 $0: shell if you do have one."
259 SHELL=${CONFIG_SHELL-/bin/sh}
261 # Unset more variables known to interfere with behavior of common tools.
262 CLICOLOR_FORCE= GREP_OPTIONS=
263 unset CLICOLOR_FORCE GREP_OPTIONS
265 ## --------------------- ##
266 ## M4sh Shell Functions. ##
267 ## --------------------- ##
270 # Portably unset VAR.
273 { eval $1=; unset $1;}
277 # as_fn_set_status STATUS
278 # -----------------------
279 # Set $? to STATUS, without forking.
287 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
297 # Create "$as_dir" as a directory, including parents if necessary.
302 -*) as_dir=./$as_dir;;
304 test -d "$as_dir" || eval $as_mkdir_p || {
308 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
311 as_dirs="'$as_qdir' $as_dirs"
312 as_dir=`$as_dirname -- "$as_dir" ||
313 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
314 X"$as_dir" : 'X\(//\)[^/]' \| \
315 X"$as_dir" : 'X\(//\)$' \| \
316 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
317 $as_echo X"$as_dir" |
318 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
335 test -d "$as_dir" && break
337 test -z "$as_dirs" || eval "mkdir $as_dirs"
338 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
342 # as_fn_append VAR VALUE
343 # ----------------------
344 # Append the text in VALUE to the end of the definition contained in VAR. Take
345 # advantage of any shell optimizations that allow amortized linear growth over
346 # repeated appends, instead of the typical quadratic growth present in naive
348 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
349 eval 'as_fn_append ()
362 # Perform arithmetic evaluation on the ARGs, and store the result in the
363 # global $as_val. Take advantage of shells that can avoid forks. The arguments
364 # must be portable across $(()) and expr.
365 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
373 as_val=`expr "$@" || test $? -eq 1`
378 # as_fn_error STATUS ERROR [LINENO LOG_FD]
379 # ----------------------------------------
380 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
381 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
382 # script with STATUS, using 1 if that was 0.
385 as_status=$1; test $as_status -eq 0 && as_status=1
387 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
388 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
390 $as_echo "$as_me: error: $2" >&2
391 as_fn_exit $as_status
394 if expr a : '\(a\)' >/dev/null 2>&1 &&
395 test "X`expr 00001 : '.*\(...\)'`" = X001; then
401 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
407 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
413 as_me=`$as_basename -- "$0" ||
414 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
415 X"$0" : 'X\(//\)$' \| \
416 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
418 sed '/^.*\/\([^/][^/]*\)\/*$/{
432 # Avoid depending upon Character Ranges.
433 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
434 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
435 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
436 as_cr_digits='0123456789'
437 as_cr_alnum=$as_cr_Letters$as_cr_digits
440 as_lineno_1=$LINENO as_lineno_1a=$LINENO
441 as_lineno_2=$LINENO as_lineno_2a=$LINENO
442 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
443 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
444 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
456 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
460 chmod +x "$as_me.lineno" ||
461 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
463 # Don't try to exec as it changes $[0], causing all sort of problems
464 # (the dirname of $[0] is not the place where we might find the
465 # original and so on. Autoconf is especially sensitive to this).
467 # Exit status is that of the last command.
471 ECHO_C= ECHO_N= ECHO_T=
472 case `echo -n x` in #(((((
474 case `echo 'xy\c'` in
475 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
477 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
484 rm -f conf$$ conf$$.exe conf$$.file
485 if test -d conf$$.dir; then
486 rm -f conf$$.dir/conf$$.file
489 mkdir conf$$.dir 2>/dev/null
491 if (echo >conf$$.file) 2>/dev/null; then
492 if ln -s conf$$.file conf$$ 2>/dev/null; then
494 # ... but there are two gotchas:
495 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
496 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
497 # In both cases, we have to default to `cp -p'.
498 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
500 elif ln conf$$.file conf$$ 2>/dev/null; then
508 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
509 rmdir conf$$.dir 2>/dev/null
511 if mkdir -p . 2>/dev/null; then
512 as_mkdir_p='mkdir -p "$as_dir"'
514 test -d ./-p && rmdir ./-p
518 if test -x / >/dev/null 2>&1; then
521 if ls -dL / >/dev/null 2>&1; then
528 if test -d "$1"; then
534 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
535 ???[sx]*):;;*)false;;esac;fi
539 as_executable_p=$as_test_x
541 # Sed expression to map a string onto a valid CPP name.
542 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
544 # Sed expression to map a string onto a valid variable name.
545 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
547 SHELL=${CONFIG_SHELL-/bin/sh}
550 test -n "$DJDIR" || exec 7<&0 </dev/null
554 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
555 # so uname gets run too.
556 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
561 ac_default_prefix=/usr/local
563 ac_config_libobj_dir=.
570 # Identity of this package.
571 PACKAGE_NAME='f77demo'
572 PACKAGE_TARNAME='f77demo'
573 PACKAGE_VERSION='1.0'
574 PACKAGE_STRING='f77demo 1.0'
575 PACKAGE_BUGREPORT='bug-libtool@gnu.org'
578 ac_unique_file="foof.f"
579 # Factoring default headers for most tests.
580 ac_includes_default="\
582 #ifdef HAVE_SYS_TYPES_H
583 # include <sys/types.h>
585 #ifdef HAVE_SYS_STAT_H
586 # include <sys/stat.h>
592 # ifdef HAVE_STDLIB_H
597 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
602 #ifdef HAVE_STRINGS_H
603 # include <strings.h>
605 #ifdef HAVE_INTTYPES_H
606 # include <inttypes.h>
615 ac_subst_vars='am__EXEEXT_FALSE
678 INSTALL_STRIP_PROGRAM
720 program_transform_name
733 enable_option_checking
735 enable_dependency_tracking
744 ac_precious_vars='build_alias
757 # Initialize some variables set by options.
759 ac_init_version=false
760 ac_unrecognized_opts=
762 # The variables have the same names as the options, with
763 # dashes changed to underlines.
771 program_transform_name=s,x,x,
779 # Installation directory options.
780 # These are left unexpanded so users can "make install exec_prefix=/foo"
781 # and all the variables that are supposed to be based on exec_prefix
782 # by default will actually change.
783 # Use braces instead of parens because sh, perl, etc. also accept them.
784 # (The list follows the same order as the GNU Coding Standards.)
785 bindir='${exec_prefix}/bin'
786 sbindir='${exec_prefix}/sbin'
787 libexecdir='${exec_prefix}/libexec'
788 datarootdir='${prefix}/share'
789 datadir='${datarootdir}'
790 sysconfdir='${prefix}/etc'
791 sharedstatedir='${prefix}/com'
792 localstatedir='${prefix}/var'
793 includedir='${prefix}/include'
794 oldincludedir='/usr/include'
795 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
796 infodir='${datarootdir}/info'
801 libdir='${exec_prefix}/lib'
802 localedir='${datarootdir}/locale'
803 mandir='${datarootdir}/man'
809 # If the previous option needs an argument, assign it.
810 if test -n "$ac_prev"; then
811 eval $ac_prev=\$ac_option
817 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
822 # Accept the important Cygnus configure options, so we can diagnose typos.
824 case $ac_dashdash$ac_option in
828 -bindir | --bindir | --bindi | --bind | --bin | --bi)
830 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
833 -build | --build | --buil | --bui | --bu)
834 ac_prev=build_alias ;;
835 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
836 build_alias=$ac_optarg ;;
838 -cache-file | --cache-file | --cache-fil | --cache-fi \
839 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
840 ac_prev=cache_file ;;
841 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
842 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
843 cache_file=$ac_optarg ;;
846 cache_file=config.cache ;;
848 -datadir | --datadir | --datadi | --datad)
850 -datadir=* | --datadir=* | --datadi=* | --datad=*)
851 datadir=$ac_optarg ;;
853 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
854 | --dataroo | --dataro | --datar)
855 ac_prev=datarootdir ;;
856 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
857 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
858 datarootdir=$ac_optarg ;;
860 -disable-* | --disable-*)
861 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
862 # Reject names that are not valid shell variable names.
863 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
864 as_fn_error $? "invalid feature name: $ac_useropt"
865 ac_useropt_orig=$ac_useropt
866 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
867 case $ac_user_opts in
871 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
872 ac_unrecognized_sep=', ';;
874 eval enable_$ac_useropt=no ;;
876 -docdir | --docdir | --docdi | --doc | --do)
878 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
881 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
883 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
886 -enable-* | --enable-*)
887 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
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--enable-$ac_useropt_orig"
898 ac_unrecognized_sep=', ';;
900 eval enable_$ac_useropt=\$ac_optarg ;;
902 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
903 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
904 | --exec | --exe | --ex)
905 ac_prev=exec_prefix ;;
906 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
907 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
908 | --exec=* | --exe=* | --ex=*)
909 exec_prefix=$ac_optarg ;;
911 -gas | --gas | --ga | --g)
912 # Obsolete; use --with-gas.
915 -help | --help | --hel | --he | -h)
917 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
918 ac_init_help=recursive ;;
919 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
920 ac_init_help=short ;;
922 -host | --host | --hos | --ho)
923 ac_prev=host_alias ;;
924 -host=* | --host=* | --hos=* | --ho=*)
925 host_alias=$ac_optarg ;;
927 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
929 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
931 htmldir=$ac_optarg ;;
933 -includedir | --includedir | --includedi | --included | --include \
934 | --includ | --inclu | --incl | --inc)
935 ac_prev=includedir ;;
936 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
937 | --includ=* | --inclu=* | --incl=* | --inc=*)
938 includedir=$ac_optarg ;;
940 -infodir | --infodir | --infodi | --infod | --info | --inf)
942 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
943 infodir=$ac_optarg ;;
945 -libdir | --libdir | --libdi | --libd)
947 -libdir=* | --libdir=* | --libdi=* | --libd=*)
950 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
951 | --libexe | --libex | --libe)
952 ac_prev=libexecdir ;;
953 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
954 | --libexe=* | --libex=* | --libe=*)
955 libexecdir=$ac_optarg ;;
957 -localedir | --localedir | --localedi | --localed | --locale)
959 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
960 localedir=$ac_optarg ;;
962 -localstatedir | --localstatedir | --localstatedi | --localstated \
963 | --localstate | --localstat | --localsta | --localst | --locals)
964 ac_prev=localstatedir ;;
965 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
966 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
967 localstatedir=$ac_optarg ;;
969 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
971 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
975 # Obsolete; use --without-fp.
978 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
979 | --no-cr | --no-c | -n)
982 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
983 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
986 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
987 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
988 | --oldin | --oldi | --old | --ol | --o)
989 ac_prev=oldincludedir ;;
990 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
991 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
992 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
993 oldincludedir=$ac_optarg ;;
995 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
997 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1000 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1001 | --program-pre | --program-pr | --program-p)
1002 ac_prev=program_prefix ;;
1003 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1004 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1005 program_prefix=$ac_optarg ;;
1007 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1008 | --program-suf | --program-su | --program-s)
1009 ac_prev=program_suffix ;;
1010 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1011 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1012 program_suffix=$ac_optarg ;;
1014 -program-transform-name | --program-transform-name \
1015 | --program-transform-nam | --program-transform-na \
1016 | --program-transform-n | --program-transform- \
1017 | --program-transform | --program-transfor \
1018 | --program-transfo | --program-transf \
1019 | --program-trans | --program-tran \
1020 | --progr-tra | --program-tr | --program-t)
1021 ac_prev=program_transform_name ;;
1022 -program-transform-name=* | --program-transform-name=* \
1023 | --program-transform-nam=* | --program-transform-na=* \
1024 | --program-transform-n=* | --program-transform-=* \
1025 | --program-transform=* | --program-transfor=* \
1026 | --program-transfo=* | --program-transf=* \
1027 | --program-trans=* | --program-tran=* \
1028 | --progr-tra=* | --program-tr=* | --program-t=*)
1029 program_transform_name=$ac_optarg ;;
1031 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1033 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1034 pdfdir=$ac_optarg ;;
1036 -psdir | --psdir | --psdi | --psd | --ps)
1038 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1041 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1042 | -silent | --silent | --silen | --sile | --sil)
1045 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1047 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1049 sbindir=$ac_optarg ;;
1051 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1052 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1053 | --sharedst | --shareds | --shared | --share | --shar \
1055 ac_prev=sharedstatedir ;;
1056 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1057 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1058 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1060 sharedstatedir=$ac_optarg ;;
1062 -site | --site | --sit)
1064 -site=* | --site=* | --sit=*)
1067 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1069 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1070 srcdir=$ac_optarg ;;
1072 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1073 | --syscon | --sysco | --sysc | --sys | --sy)
1074 ac_prev=sysconfdir ;;
1075 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1076 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1077 sysconfdir=$ac_optarg ;;
1079 -target | --target | --targe | --targ | --tar | --ta | --t)
1080 ac_prev=target_alias ;;
1081 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1082 target_alias=$ac_optarg ;;
1084 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1087 -version | --version | --versio | --versi | --vers | -V)
1088 ac_init_version=: ;;
1091 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1092 # Reject names that are not valid shell variable names.
1093 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1094 as_fn_error $? "invalid package name: $ac_useropt"
1095 ac_useropt_orig=$ac_useropt
1096 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1097 case $ac_user_opts in
1101 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1102 ac_unrecognized_sep=', ';;
1104 eval with_$ac_useropt=\$ac_optarg ;;
1106 -without-* | --without-*)
1107 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1108 # Reject names that are not valid shell variable names.
1109 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1110 as_fn_error $? "invalid package name: $ac_useropt"
1111 ac_useropt_orig=$ac_useropt
1112 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1113 case $ac_user_opts in
1117 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1118 ac_unrecognized_sep=', ';;
1120 eval with_$ac_useropt=no ;;
1123 # Obsolete; use --with-x.
1126 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1127 | --x-incl | --x-inc | --x-in | --x-i)
1128 ac_prev=x_includes ;;
1129 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1130 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1131 x_includes=$ac_optarg ;;
1133 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1134 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1135 ac_prev=x_libraries ;;
1136 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1137 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1138 x_libraries=$ac_optarg ;;
1140 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1141 Try \`$0 --help' for more information"
1145 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1146 # Reject names that are not valid shell variable names.
1147 case $ac_envvar in #(
1148 '' | [0-9]* | *[!_$as_cr_alnum]* )
1149 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1151 eval $ac_envvar=\$ac_optarg
1152 export $ac_envvar ;;
1155 # FIXME: should be removed in autoconf 3.0.
1156 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1157 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1158 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1159 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1165 if test -n "$ac_prev"; then
1166 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1167 as_fn_error $? "missing argument to $ac_option"
1170 if test -n "$ac_unrecognized_opts"; then
1171 case $enable_option_checking in
1173 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1174 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1178 # Check all directory arguments for consistency.
1179 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1180 datadir sysconfdir sharedstatedir localstatedir includedir \
1181 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1182 libdir localedir mandir
1184 eval ac_val=\$$ac_var
1185 # Remove trailing slashes.
1188 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1189 eval $ac_var=\$ac_val;;
1191 # Be sure to have absolute directory names.
1193 [\\/$]* | ?:[\\/]* ) continue;;
1194 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1196 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1199 # There might be people who depend on the old broken behavior: `$host'
1200 # used to hold the argument of --host etc.
1201 # FIXME: To remove some day.
1204 target=$target_alias
1206 # FIXME: To remove some day.
1207 if test "x$host_alias" != x; then
1208 if test "x$build_alias" = x; then
1209 cross_compiling=maybe
1210 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1211 If a cross compiler is detected then cross compile mode will be used" >&2
1212 elif test "x$build_alias" != "x$host_alias"; then
1218 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1220 test "$silent" = yes && exec 6>/dev/null
1223 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1224 ac_ls_di=`ls -di .` &&
1225 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1226 as_fn_error $? "working directory cannot be determined"
1227 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1228 as_fn_error $? "pwd does not report name of working directory"
1231 # Find the source files, if location was not specified.
1232 if test -z "$srcdir"; then
1233 ac_srcdir_defaulted=yes
1234 # Try the directory containing this script, then the parent directory.
1235 ac_confdir=`$as_dirname -- "$as_myself" ||
1236 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1237 X"$as_myself" : 'X\(//\)[^/]' \| \
1238 X"$as_myself" : 'X\(//\)$' \| \
1239 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1240 $as_echo X"$as_myself" |
1241 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1259 if test ! -r "$srcdir/$ac_unique_file"; then
1263 ac_srcdir_defaulted=no
1265 if test ! -r "$srcdir/$ac_unique_file"; then
1266 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1267 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1269 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1271 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1273 # When building in place, set srcdir=.
1274 if test "$ac_abs_confdir" = "$ac_pwd"; then
1277 # Remove unnecessary trailing slashes from srcdir.
1278 # Double slashes in file names in object file debugging info
1279 # mess up M-x gdb in Emacs.
1281 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1283 for ac_var in $ac_precious_vars; do
1284 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1285 eval ac_env_${ac_var}_value=\$${ac_var}
1286 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1287 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1291 # Report the --help message.
1293 if test "$ac_init_help" = "long"; then
1294 # Omit some internal or obsolete options to make the list less imposing.
1295 # This message is too long to be a string in the A/UX 3.1 sh.
1297 \`configure' configures f77demo 1.0 to adapt to many kinds of systems.
1299 Usage: $0 [OPTION]... [VAR=VALUE]...
1301 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1302 VAR=VALUE. See below for descriptions of some of the useful variables.
1304 Defaults for the options are specified in brackets.
1307 -h, --help display this help and exit
1308 --help=short display options specific to this package
1309 --help=recursive display the short help of all the included packages
1310 -V, --version display version information and exit
1311 -q, --quiet, --silent do not print \`checking ...' messages
1312 --cache-file=FILE cache test results in FILE [disabled]
1313 -C, --config-cache alias for \`--cache-file=config.cache'
1314 -n, --no-create do not create output files
1315 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1317 Installation directories:
1318 --prefix=PREFIX install architecture-independent files in PREFIX
1319 [$ac_default_prefix]
1320 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1323 By default, \`make install' will install all the files in
1324 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1325 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1326 for instance \`--prefix=\$HOME'.
1328 For better control, use the options below.
1330 Fine tuning of the installation directories:
1331 --bindir=DIR user executables [EPREFIX/bin]
1332 --sbindir=DIR system admin executables [EPREFIX/sbin]
1333 --libexecdir=DIR program executables [EPREFIX/libexec]
1334 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1335 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1336 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1337 --libdir=DIR object code libraries [EPREFIX/lib]
1338 --includedir=DIR C header files [PREFIX/include]
1339 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1340 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1341 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1342 --infodir=DIR info documentation [DATAROOTDIR/info]
1343 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1344 --mandir=DIR man documentation [DATAROOTDIR/man]
1345 --docdir=DIR documentation root [DATAROOTDIR/doc/f77demo]
1346 --htmldir=DIR html documentation [DOCDIR]
1347 --dvidir=DIR dvi documentation [DOCDIR]
1348 --pdfdir=DIR pdf documentation [DOCDIR]
1349 --psdir=DIR ps documentation [DOCDIR]
1355 --program-prefix=PREFIX prepend PREFIX to installed program names
1356 --program-suffix=SUFFIX append SUFFIX to installed program names
1357 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1360 --build=BUILD configure for building on BUILD [guessed]
1361 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1365 if test -n "$ac_init_help"; then
1366 case $ac_init_help in
1367 short | recursive ) echo "Configuration of f77demo 1.0:";;
1372 --disable-option-checking ignore unrecognized --enable/--with options
1373 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1374 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1375 --disable-dependency-tracking speeds up one-time build
1376 --enable-dependency-tracking do not reject slow dependency extractors
1377 --enable-shared[=PKGS] build shared libraries [default=yes]
1378 --enable-static[=PKGS] build static libraries [default=yes]
1379 --enable-fast-install[=PKGS]
1380 optimize for fast installation [default=yes]
1381 --disable-libtool-lock avoid locking (might break parallel builds)
1384 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1385 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1386 --with-dist ignore errors not affecting `make dist'
1387 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1389 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1390 --with-sysroot=DIR Search for dependent libraries within DIR
1391 (or the compiler's sysroot if not specified).
1393 Some influential environment variables:
1394 CC C compiler command
1395 CFLAGS C compiler flags
1396 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1397 nonstandard directory <lib dir>
1398 LIBS libraries to pass to the linker, e.g. -l<library>
1399 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1400 you have headers in a nonstandard directory <include dir>
1401 F77 Fortran 77 compiler command
1402 FFLAGS Fortran 77 compiler flags
1405 Use these variables to override the choices made by `configure' or to help
1406 it to find libraries and programs with nonstandard names/locations.
1408 Report bugs to <bug-libtool@gnu.org>.
1413 if test "$ac_init_help" = "recursive"; then
1414 # If there are subdirs, report their specific --help.
1415 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1416 test -d "$ac_dir" ||
1417 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1422 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1424 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1425 # A ".." for each directory in $ac_dir_suffix.
1426 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1427 case $ac_top_builddir_sub in
1428 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1429 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1432 ac_abs_top_builddir=$ac_pwd
1433 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1434 # for backward compatibility:
1435 ac_top_builddir=$ac_top_build_prefix
1438 .) # We are building in place.
1440 ac_top_srcdir=$ac_top_builddir_sub
1441 ac_abs_top_srcdir=$ac_pwd ;;
1442 [\\/]* | ?:[\\/]* ) # Absolute name.
1443 ac_srcdir=$srcdir$ac_dir_suffix;
1444 ac_top_srcdir=$srcdir
1445 ac_abs_top_srcdir=$srcdir ;;
1447 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1448 ac_top_srcdir=$ac_top_build_prefix$srcdir
1449 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1451 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1453 cd "$ac_dir" || { ac_status=$?; continue; }
1454 # Check for guested configure.
1455 if test -f "$ac_srcdir/configure.gnu"; then
1457 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1458 elif test -f "$ac_srcdir/configure"; then
1460 $SHELL "$ac_srcdir/configure" --help=recursive
1462 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1464 cd "$ac_pwd" || { ac_status=$?; break; }
1468 test -n "$ac_init_help" && exit $ac_status
1469 if $ac_init_version; then
1471 f77demo configure 1.0
1472 generated by GNU Autoconf 2.68
1474 Copyright (C) 2010 Free Software Foundation, Inc.
1475 This configure script is free software; the Free Software Foundation
1476 gives unlimited permission to copy, distribute and modify it.
1481 ## ------------------------ ##
1482 ## Autoconf initialization. ##
1483 ## ------------------------ ##
1485 # ac_fn_c_try_compile LINENO
1486 # --------------------------
1487 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1488 ac_fn_c_try_compile ()
1490 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1491 rm -f conftest.$ac_objext
1492 if { { ac_try="$ac_compile"
1494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1495 *) ac_try_echo=$ac_try;;
1497 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1498 $as_echo "$ac_try_echo"; } >&5
1499 (eval "$ac_compile") 2>conftest.err
1501 if test -s conftest.err; then
1502 grep -v '^ *+' conftest.err >conftest.er1
1503 cat conftest.er1 >&5
1504 mv -f conftest.er1 conftest.err
1506 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1507 test $ac_status = 0; } && {
1508 test -z "$ac_c_werror_flag" ||
1509 test ! -s conftest.err
1510 } && test -s conftest.$ac_objext; then :
1513 $as_echo "$as_me: failed program was:" >&5
1514 sed 's/^/| /' conftest.$ac_ext >&5
1518 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1519 as_fn_set_status $ac_retval
1521 } # ac_fn_c_try_compile
1523 # ac_fn_f77_try_compile LINENO
1524 # ----------------------------
1525 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1526 ac_fn_f77_try_compile ()
1528 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1529 rm -f conftest.$ac_objext
1530 if { { ac_try="$ac_compile"
1532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1533 *) ac_try_echo=$ac_try;;
1535 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1536 $as_echo "$ac_try_echo"; } >&5
1537 (eval "$ac_compile") 2>conftest.err
1539 if test -s conftest.err; then
1540 grep -v '^ *+' conftest.err >conftest.er1
1541 cat conftest.er1 >&5
1542 mv -f conftest.er1 conftest.err
1544 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1545 test $ac_status = 0; } && {
1546 test -z "$ac_f77_werror_flag" ||
1547 test ! -s conftest.err
1548 } && test -s conftest.$ac_objext; then :
1551 $as_echo "$as_me: failed program was:" >&5
1552 sed 's/^/| /' conftest.$ac_ext >&5
1556 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1557 as_fn_set_status $ac_retval
1559 } # ac_fn_f77_try_compile
1561 # ac_fn_c_try_link LINENO
1562 # -----------------------
1563 # Try to link conftest.$ac_ext, and return whether this succeeded.
1566 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1567 rm -f conftest.$ac_objext conftest$ac_exeext
1568 if { { ac_try="$ac_link"
1570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1571 *) ac_try_echo=$ac_try;;
1573 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1574 $as_echo "$ac_try_echo"; } >&5
1575 (eval "$ac_link") 2>conftest.err
1577 if test -s conftest.err; then
1578 grep -v '^ *+' conftest.err >conftest.er1
1579 cat conftest.er1 >&5
1580 mv -f conftest.er1 conftest.err
1582 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1583 test $ac_status = 0; } && {
1584 test -z "$ac_c_werror_flag" ||
1585 test ! -s conftest.err
1586 } && test -s conftest$ac_exeext && {
1587 test "$cross_compiling" = yes ||
1588 $as_test_x conftest$ac_exeext
1592 $as_echo "$as_me: failed program was:" >&5
1593 sed 's/^/| /' conftest.$ac_ext >&5
1597 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1598 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1599 # interfere with the next link command; also delete a directory that is
1600 # left behind by Apple's compiler. We do this before executing the actions.
1601 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1602 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1603 as_fn_set_status $ac_retval
1605 } # ac_fn_c_try_link
1607 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1608 # -------------------------------------------------------
1609 # Tests whether HEADER exists and can be compiled using the include files in
1610 # INCLUDES, setting the cache variable VAR accordingly.
1611 ac_fn_c_check_header_compile ()
1613 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1615 $as_echo_n "checking for $2... " >&6; }
1616 if eval \${$3+:} false; then :
1617 $as_echo_n "(cached) " >&6
1619 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1620 /* end confdefs.h. */
1624 if ac_fn_c_try_compile "$LINENO"; then :
1629 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1633 $as_echo "$ac_res" >&6; }
1634 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1636 } # ac_fn_c_check_header_compile
1638 # ac_fn_c_try_cpp LINENO
1639 # ----------------------
1640 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1643 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1644 if { { ac_try="$ac_cpp conftest.$ac_ext"
1646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1647 *) ac_try_echo=$ac_try;;
1649 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1650 $as_echo "$ac_try_echo"; } >&5
1651 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1653 if test -s conftest.err; then
1654 grep -v '^ *+' conftest.err >conftest.er1
1655 cat conftest.er1 >&5
1656 mv -f conftest.er1 conftest.err
1658 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1659 test $ac_status = 0; } > conftest.i && {
1660 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1661 test ! -s conftest.err
1665 $as_echo "$as_me: failed program was:" >&5
1666 sed 's/^/| /' conftest.$ac_ext >&5
1670 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1671 as_fn_set_status $ac_retval
1675 # ac_fn_c_try_run LINENO
1676 # ----------------------
1677 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1678 # that executables *can* be run.
1681 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1682 if { { ac_try="$ac_link"
1684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1685 *) ac_try_echo=$ac_try;;
1687 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1688 $as_echo "$ac_try_echo"; } >&5
1689 (eval "$ac_link") 2>&5
1691 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1692 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1693 { { case "(($ac_try" in
1694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1695 *) ac_try_echo=$ac_try;;
1697 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1698 $as_echo "$ac_try_echo"; } >&5
1699 (eval "$ac_try") 2>&5
1701 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1702 test $ac_status = 0; }; }; then :
1705 $as_echo "$as_me: program exited with status $ac_status" >&5
1706 $as_echo "$as_me: failed program was:" >&5
1707 sed 's/^/| /' conftest.$ac_ext >&5
1709 ac_retval=$ac_status
1711 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1712 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1713 as_fn_set_status $ac_retval
1717 # ac_fn_c_check_func LINENO FUNC VAR
1718 # ----------------------------------
1719 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1720 ac_fn_c_check_func ()
1722 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1724 $as_echo_n "checking for $2... " >&6; }
1725 if eval \${$3+:} false; then :
1726 $as_echo_n "(cached) " >&6
1728 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1729 /* end confdefs.h. */
1730 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1731 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1732 #define $2 innocuous_$2
1734 /* System header to define __stub macros and hopefully few prototypes,
1735 which can conflict with char $2 (); below.
1736 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1737 <limits.h> exists even on freestanding compilers. */
1740 # include <limits.h>
1742 # include <assert.h>
1747 /* Override any GCC internal prototype to avoid an error.
1748 Use char because int might match the return type of a GCC
1749 builtin and then its argument prototype would still apply. */
1754 /* The GNU C library defines this for functions which it implements
1755 to always fail with ENOSYS. Some functions are actually named
1756 something starting with __ and the normal name is an alias. */
1757 #if defined __stub_$2 || defined __stub___$2
1761 #ifdef F77_DUMMY_MAIN
1766 int F77_DUMMY_MAIN() { return 1; }
1777 if ac_fn_c_try_link "$LINENO"; then :
1782 rm -f core conftest.err conftest.$ac_objext \
1783 conftest$ac_exeext conftest.$ac_ext
1786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1787 $as_echo "$ac_res" >&6; }
1788 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1790 } # ac_fn_c_check_func
1792 # ac_fn_f77_try_link LINENO
1793 # -------------------------
1794 # Try to link conftest.$ac_ext, and return whether this succeeded.
1795 ac_fn_f77_try_link ()
1797 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1798 rm -f conftest.$ac_objext conftest$ac_exeext
1799 if { { ac_try="$ac_link"
1801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1802 *) ac_try_echo=$ac_try;;
1804 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1805 $as_echo "$ac_try_echo"; } >&5
1806 (eval "$ac_link") 2>conftest.err
1808 if test -s conftest.err; then
1809 grep -v '^ *+' conftest.err >conftest.er1
1810 cat conftest.er1 >&5
1811 mv -f conftest.er1 conftest.err
1813 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1814 test $ac_status = 0; } && {
1815 test -z "$ac_f77_werror_flag" ||
1816 test ! -s conftest.err
1817 } && test -s conftest$ac_exeext && {
1818 test "$cross_compiling" = yes ||
1819 $as_test_x conftest$ac_exeext
1823 $as_echo "$as_me: failed program was:" >&5
1824 sed 's/^/| /' conftest.$ac_ext >&5
1828 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1829 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1830 # interfere with the next link command; also delete a directory that is
1831 # left behind by Apple's compiler. We do this before executing the actions.
1832 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1833 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1834 as_fn_set_status $ac_retval
1836 } # ac_fn_f77_try_link
1837 cat >config.log <<_ACEOF
1838 This file contains any messages produced by compilers while
1839 running configure, to aid debugging if configure makes a mistake.
1841 It was created by f77demo $as_me 1.0, which was
1842 generated by GNU Autoconf 2.68. Invocation command line was
1854 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1855 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1856 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1857 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1858 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1860 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1861 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1863 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1864 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1865 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1866 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1867 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1868 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1869 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1873 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1877 test -z "$as_dir" && as_dir=.
1878 $as_echo "PATH: $as_dir"
1894 # Keep a trace of the command line.
1895 # Strip out --no-create and --no-recursion so they do not pile up.
1896 # Strip out --silent because we don't want to record it for future runs.
1897 # Also quote any args containing shell meta-characters.
1898 # Make two passes to allow for proper duplicate-argument suppression.
1902 ac_must_keep_next=false
1908 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1909 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1910 | -silent | --silent | --silen | --sile | --sil)
1913 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1916 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1918 as_fn_append ac_configure_args1 " '$ac_arg'"
1919 if test $ac_must_keep_next = true; then
1920 ac_must_keep_next=false # Got value, back to normal.
1923 *=* | --config-cache | -C | -disable-* | --disable-* \
1924 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1925 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1926 | -with-* | --with-* | -without-* | --without-* | --x)
1927 case "$ac_configure_args0 " in
1928 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1931 -* ) ac_must_keep_next=true ;;
1934 as_fn_append ac_configure_args " '$ac_arg'"
1939 { ac_configure_args0=; unset ac_configure_args0;}
1940 { ac_configure_args1=; unset ac_configure_args1;}
1942 # When interrupted or exit'd, cleanup temporary files, and complete
1943 # config.log. We remove comments because anyway the quotes in there
1944 # would cause problems or look ugly.
1945 # WARNING: Use '\'' to represent an apostrophe within the trap.
1946 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1947 trap 'exit_status=$?
1948 # Save into config.log some information that might help in debugging.
1952 $as_echo "## ---------------- ##
1953 ## Cache variables. ##
1954 ## ---------------- ##"
1956 # The following way of writing the cache mishandles newlines in values,
1958 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1959 eval ac_val=\$$ac_var
1963 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1964 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1967 _ | IFS | as_nl) ;; #(
1968 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1969 *) { eval $ac_var=; unset $ac_var;} ;;
1974 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1975 *${as_nl}ac_space=\ *)
1977 "s/'\''/'\''\\\\'\'''\''/g;
1978 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1981 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1988 $as_echo "## ----------------- ##
1989 ## Output variables. ##
1990 ## ----------------- ##"
1992 for ac_var in $ac_subst_vars
1994 eval ac_val=\$$ac_var
1996 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1998 $as_echo "$ac_var='\''$ac_val'\''"
2002 if test -n "$ac_subst_files"; then
2003 $as_echo "## ------------------- ##
2004 ## File substitutions. ##
2005 ## ------------------- ##"
2007 for ac_var in $ac_subst_files
2009 eval ac_val=\$$ac_var
2011 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2013 $as_echo "$ac_var='\''$ac_val'\''"
2018 if test -s confdefs.h; then
2019 $as_echo "## ----------- ##
2026 test "$ac_signal" != 0 &&
2027 $as_echo "$as_me: caught signal $ac_signal"
2028 $as_echo "$as_me: exit $exit_status"
2030 rm -f core *.core core.conftest.* &&
2031 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2034 for ac_signal in 1 2 13 15; do
2035 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2039 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2040 rm -f -r conftest* confdefs.h
2042 $as_echo "/* confdefs.h */" > confdefs.h
2044 # Predefined preprocessor variables.
2046 cat >>confdefs.h <<_ACEOF
2047 #define PACKAGE_NAME "$PACKAGE_NAME"
2050 cat >>confdefs.h <<_ACEOF
2051 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2054 cat >>confdefs.h <<_ACEOF
2055 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2058 cat >>confdefs.h <<_ACEOF
2059 #define PACKAGE_STRING "$PACKAGE_STRING"
2062 cat >>confdefs.h <<_ACEOF
2063 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2066 cat >>confdefs.h <<_ACEOF
2067 #define PACKAGE_URL "$PACKAGE_URL"
2071 # Let the site file select an alternate cache file if it wants to.
2072 # Prefer an explicitly selected file to automatically selected ones.
2075 if test -n "$CONFIG_SITE"; then
2076 # We do not want a PATH search for config.site.
2077 case $CONFIG_SITE in #((
2078 -*) ac_site_file1=./$CONFIG_SITE;;
2079 */*) ac_site_file1=$CONFIG_SITE;;
2080 *) ac_site_file1=./$CONFIG_SITE;;
2082 elif test "x$prefix" != xNONE; then
2083 ac_site_file1=$prefix/share/config.site
2084 ac_site_file2=$prefix/etc/config.site
2086 ac_site_file1=$ac_default_prefix/share/config.site
2087 ac_site_file2=$ac_default_prefix/etc/config.site
2089 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2091 test "x$ac_site_file" = xNONE && continue
2092 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2093 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2094 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2095 sed 's/^/| /' "$ac_site_file" >&5
2097 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2098 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2099 as_fn_error $? "failed to load site script $ac_site_file
2100 See \`config.log' for more details" "$LINENO" 5; }
2104 if test -r "$cache_file"; then
2105 # Some versions of bash will fail to source /dev/null (special files
2106 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2107 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2108 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2109 $as_echo "$as_me: loading cache $cache_file" >&6;}
2111 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2112 *) . "./$cache_file";;
2116 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2117 $as_echo "$as_me: creating cache $cache_file" >&6;}
2121 # Check that the precious variables saved in the cache have kept the same
2123 ac_cache_corrupted=false
2124 for ac_var in $ac_precious_vars; do
2125 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2126 eval ac_new_set=\$ac_env_${ac_var}_set
2127 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2128 eval ac_new_val=\$ac_env_${ac_var}_value
2129 case $ac_old_set,$ac_new_set in
2131 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2132 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2133 ac_cache_corrupted=: ;;
2135 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2136 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2137 ac_cache_corrupted=: ;;
2140 if test "x$ac_old_val" != "x$ac_new_val"; then
2141 # differences in whitespace do not lead to failure.
2142 ac_old_val_w=`echo x $ac_old_val`
2143 ac_new_val_w=`echo x $ac_new_val`
2144 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2145 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2146 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2147 ac_cache_corrupted=:
2149 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2150 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2151 eval $ac_var=\$ac_old_val
2153 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2154 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2155 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2156 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2159 # Pass precious variables to config.status.
2160 if test "$ac_new_set" = set; then
2162 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2163 *) ac_arg=$ac_var=$ac_new_val ;;
2165 case " $ac_configure_args " in
2166 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2167 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2171 if $ac_cache_corrupted; then
2172 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2173 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2174 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2175 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2176 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2178 ## -------------------- ##
2179 ## Main body of script. ##
2180 ## -------------------- ##
2183 ac_cpp='$CPP $CPPFLAGS'
2184 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2185 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2186 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2189 ac_config_headers="$ac_config_headers config.h:config-h.in"
2193 for ac_dir in ../../libltdl/config "$srcdir"/../../libltdl/config; do
2194 if test -f "$ac_dir/install-sh"; then
2196 ac_install_sh="$ac_aux_dir/install-sh -c"
2198 elif test -f "$ac_dir/install.sh"; then
2200 ac_install_sh="$ac_aux_dir/install.sh -c"
2202 elif test -f "$ac_dir/shtool"; then
2204 ac_install_sh="$ac_aux_dir/shtool install -c"
2208 if test -z "$ac_aux_dir"; then
2209 as_fn_error $? "cannot find install-sh, install.sh, or shtool in ../../libltdl/config \"$srcdir\"/../../libltdl/config" "$LINENO" 5
2212 # These three variables are undocumented and unsupported,
2213 # and are intended to be withdrawn in a future Autoconf release.
2214 # They can cause serious problems if a builder's source tree is in a directory
2215 # whose full name contains unusual characters.
2216 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2217 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2218 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2223 # Check whether --with-dist was given.
2224 if test "${with_dist+set}" = set; then :
2229 ## ------------------------ ##
2230 ## Automake Initialisation. ##
2231 ## ------------------------ ##
2232 am__api_version='1.11'
2234 # Find a good install program. We prefer a C program (faster),
2235 # so one script is as good as another. But avoid the broken or
2236 # incompatible versions:
2237 # SysV /etc/install, /usr/sbin/install
2238 # SunOS /usr/etc/install
2239 # IRIX /sbin/install
2241 # AmigaOS /C/install, which installs bootblocks on floppy discs
2242 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2243 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2244 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2245 # OS/2's system install, which has a completely different semantic
2246 # ./install, which can be erroneously created by make from ./install.sh.
2247 # Reject install programs that cannot install multiple files.
2248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2249 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2250 if test -z "$INSTALL"; then
2251 if ${ac_cv_path_install+:} false; then :
2252 $as_echo_n "(cached) " >&6
2254 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2258 test -z "$as_dir" && as_dir=.
2259 # Account for people who put trailing slashes in PATH elements.
2260 case $as_dir/ in #((
2261 ./ | .// | /[cC]/* | \
2262 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2263 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2266 # OSF1 and SCO ODT 3.0 have their own names for install.
2267 # Don't use installbsd from OSF since it installs stuff as root
2269 for ac_prog in ginstall scoinst install; do
2270 for ac_exec_ext in '' $ac_executable_extensions; do
2271 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2272 if test $ac_prog = install &&
2273 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2274 # AIX install. It has an incompatible calling convention.
2276 elif test $ac_prog = install &&
2277 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2278 # program-specific install script used by HP pwplus--don't use.
2281 rm -rf conftest.one conftest.two conftest.dir
2282 echo one > conftest.one
2283 echo two > conftest.two
2285 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2286 test -s conftest.one && test -s conftest.two &&
2287 test -s conftest.dir/conftest.one &&
2288 test -s conftest.dir/conftest.two
2290 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2303 rm -rf conftest.one conftest.two conftest.dir
2306 if test "${ac_cv_path_install+set}" = set; then
2307 INSTALL=$ac_cv_path_install
2309 # As a last resort, use the slow shell script. Don't cache a
2310 # value for INSTALL within a source directory, because that will
2311 # break other packages using the cache if that directory is
2312 # removed, or if the value is a relative name.
2313 INSTALL=$ac_install_sh
2316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2317 $as_echo "$INSTALL" >&6; }
2319 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2320 # It thinks the first close brace ends the variable substitution.
2321 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2323 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2325 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2328 $as_echo_n "checking whether build environment is sane... " >&6; }
2331 echo timestamp > conftest.file
2332 # Reject unsafe characters in $srcdir or the absolute working directory
2333 # name. Accept space and tab only in the latter.
2337 *[\\\"\#\$\&\'\`$am_lf]*)
2338 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2341 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2342 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2345 # Do `set' in a subshell so we don't clobber the current shell's
2346 # arguments. Must try -L first in case configure is actually a
2347 # symlink; some systems play weird games with the mod time of symlinks
2348 # (eg FreeBSD returns the mod time of the symlink's containing
2351 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2352 if test "$*" = "X"; then
2354 set X `ls -t "$srcdir/configure" conftest.file`
2357 if test "$*" != "X $srcdir/configure conftest.file" \
2358 && test "$*" != "X conftest.file $srcdir/configure"; then
2360 # If neither matched, then we have a broken ls. This can happen
2361 # if, for instance, CONFIG_SHELL is bash and it inherits a
2362 # broken ls alias from the environment. This has actually
2363 # happened. Such a system could not be considered "sane".
2364 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2365 alias in your environment" "$LINENO" 5
2368 test "$2" = conftest.file
2374 as_fn_error $? "newly created file is older than distributed files!
2375 Check your system clock" "$LINENO" 5
2377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2378 $as_echo "yes" >&6; }
2379 test "$program_prefix" != NONE &&
2380 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2381 # Use a double $ so make ignores it.
2382 test "$program_suffix" != NONE &&
2383 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2384 # Double any \ or $.
2385 # By default was `s,x,x', remove it if useless.
2386 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2387 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2389 # expand $ac_aux_dir to an absolute path
2390 am_aux_dir=`cd $ac_aux_dir && pwd`
2392 if test x"${MISSING+set}" != xset; then
2395 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2397 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2400 # Use eval to expand $SHELL
2401 if eval "$MISSING --run true"; then
2402 am_missing_run="$MISSING --run "
2405 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2406 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2409 if test x"${install_sh}" != xset; then
2412 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2414 install_sh="\${SHELL} $am_aux_dir/install-sh"
2418 # Installed binaries are usually stripped using `strip' when the user
2419 # run `make install-strip'. However `strip' might not be the right
2420 # tool to use in cross-compilation environments, therefore Automake
2421 # will honor the `STRIP' environment variable to overrule this program.
2422 if test "$cross_compiling" != no; then
2423 if test -n "$ac_tool_prefix"; then
2424 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2425 set dummy ${ac_tool_prefix}strip; ac_word=$2
2426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2427 $as_echo_n "checking for $ac_word... " >&6; }
2428 if ${ac_cv_prog_STRIP+:} false; then :
2429 $as_echo_n "(cached) " >&6
2431 if test -n "$STRIP"; then
2432 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2434 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2438 test -z "$as_dir" && as_dir=.
2439 for ac_exec_ext in '' $ac_executable_extensions; do
2440 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2441 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2442 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2451 STRIP=$ac_cv_prog_STRIP
2452 if test -n "$STRIP"; then
2453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2454 $as_echo "$STRIP" >&6; }
2456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2457 $as_echo "no" >&6; }
2462 if test -z "$ac_cv_prog_STRIP"; then
2464 # Extract the first word of "strip", so it can be a program name with args.
2465 set dummy strip; ac_word=$2
2466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2467 $as_echo_n "checking for $ac_word... " >&6; }
2468 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2469 $as_echo_n "(cached) " >&6
2471 if test -n "$ac_ct_STRIP"; then
2472 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2474 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2478 test -z "$as_dir" && as_dir=.
2479 for ac_exec_ext in '' $ac_executable_extensions; do
2480 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2481 ac_cv_prog_ac_ct_STRIP="strip"
2482 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2491 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2492 if test -n "$ac_ct_STRIP"; then
2493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2494 $as_echo "$ac_ct_STRIP" >&6; }
2496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2497 $as_echo "no" >&6; }
2500 if test "x$ac_ct_STRIP" = x; then
2503 case $cross_compiling:$ac_tool_warned in
2505 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2506 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2507 ac_tool_warned=yes ;;
2512 STRIP="$ac_cv_prog_STRIP"
2516 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2519 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2520 if test -z "$MKDIR_P"; then
2521 if ${ac_cv_path_mkdir+:} false; then :
2522 $as_echo_n "(cached) " >&6
2524 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2525 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2528 test -z "$as_dir" && as_dir=.
2529 for ac_prog in mkdir gmkdir; do
2530 for ac_exec_ext in '' $ac_executable_extensions; do
2531 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2532 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2533 'mkdir (GNU coreutils) '* | \
2534 'mkdir (coreutils) '* | \
2535 'mkdir (fileutils) '4.1*)
2536 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2546 test -d ./--version && rmdir ./--version
2547 if test "${ac_cv_path_mkdir+set}" = set; then
2548 MKDIR_P="$ac_cv_path_mkdir -p"
2550 # As a last resort, use the slow shell script. Don't cache a
2551 # value for MKDIR_P within a source directory, because that will
2552 # break other packages using the cache if that directory is
2553 # removed, or if the value is a relative name.
2554 MKDIR_P="$ac_install_sh -d"
2557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2558 $as_echo "$MKDIR_P" >&6; }
2562 [\\/$]* | ?:[\\/]*) ;;
2563 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2566 for ac_prog in gawk mawk nawk awk
2568 # Extract the first word of "$ac_prog", so it can be a program name with args.
2569 set dummy $ac_prog; ac_word=$2
2570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2571 $as_echo_n "checking for $ac_word... " >&6; }
2572 if ${ac_cv_prog_AWK+:} false; then :
2573 $as_echo_n "(cached) " >&6
2575 if test -n "$AWK"; then
2576 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2578 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2582 test -z "$as_dir" && as_dir=.
2583 for ac_exec_ext in '' $ac_executable_extensions; do
2584 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2585 ac_cv_prog_AWK="$ac_prog"
2586 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2596 if test -n "$AWK"; then
2597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2598 $as_echo "$AWK" >&6; }
2600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2601 $as_echo "no" >&6; }
2605 test -n "$AWK" && break
2608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2609 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2611 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2612 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2613 $as_echo_n "(cached) " >&6
2615 cat >conftest.make <<\_ACEOF
2618 @echo '@@@%%%=$(MAKE)=@@@%%%'
2620 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2621 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2623 eval ac_cv_prog_make_${ac_make}_set=yes;;
2625 eval ac_cv_prog_make_${ac_make}_set=no;;
2629 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2631 $as_echo "yes" >&6; }
2634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2635 $as_echo "no" >&6; }
2636 SET_MAKE="MAKE=${MAKE-make}"
2639 rm -rf .tst 2>/dev/null
2640 mkdir .tst 2>/dev/null
2641 if test -d .tst; then
2646 rmdir .tst 2>/dev/null
2648 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2649 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2650 # is not polluted with repeated "-I."
2651 am__isrc=' -I$(srcdir)'
2652 # test to see if srcdir already configured
2653 if test -f $srcdir/config.status; then
2654 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2658 # test whether we have cygpath
2659 if test -z "$CYGPATH_W"; then
2660 if (cygpath --version) >/dev/null 2>/dev/null; then
2661 CYGPATH_W='cygpath -w'
2668 # Define the identity of the package.
2673 cat >>confdefs.h <<_ACEOF
2674 #define PACKAGE "$PACKAGE"
2678 cat >>confdefs.h <<_ACEOF
2679 #define VERSION "$VERSION"
2682 # Some tools Automake needs.
2684 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2687 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2690 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2693 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2696 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2698 # We need awk for the "check" target. The system "awk" is bad on
2700 # Always define AMTAR for backward compatibility.
2702 AMTAR=${AMTAR-"${am_missing_run}tar"}
2704 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2712 ## ------------------ ##
2713 ## C compiler checks. ##
2714 ## ------------------ ##
2716 ac_cpp='$CPP $CPPFLAGS'
2717 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2718 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2719 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2720 if test -n "$ac_tool_prefix"; then
2721 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2722 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2724 $as_echo_n "checking for $ac_word... " >&6; }
2725 if ${ac_cv_prog_CC+:} false; then :
2726 $as_echo_n "(cached) " >&6
2728 if test -n "$CC"; then
2729 ac_cv_prog_CC="$CC" # Let the user override the test.
2731 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2735 test -z "$as_dir" && as_dir=.
2736 for ac_exec_ext in '' $ac_executable_extensions; do
2737 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2738 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2739 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2749 if test -n "$CC"; then
2750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2751 $as_echo "$CC" >&6; }
2753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2754 $as_echo "no" >&6; }
2759 if test -z "$ac_cv_prog_CC"; then
2761 # Extract the first word of "gcc", so it can be a program name with args.
2762 set dummy gcc; ac_word=$2
2763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2764 $as_echo_n "checking for $ac_word... " >&6; }
2765 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2766 $as_echo_n "(cached) " >&6
2768 if test -n "$ac_ct_CC"; then
2769 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2771 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2775 test -z "$as_dir" && as_dir=.
2776 for ac_exec_ext in '' $ac_executable_extensions; do
2777 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2778 ac_cv_prog_ac_ct_CC="gcc"
2779 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2788 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2789 if test -n "$ac_ct_CC"; then
2790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2791 $as_echo "$ac_ct_CC" >&6; }
2793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2794 $as_echo "no" >&6; }
2797 if test "x$ac_ct_CC" = x; then
2800 case $cross_compiling:$ac_tool_warned in
2802 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2803 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2804 ac_tool_warned=yes ;;
2812 if test -z "$CC"; then
2813 if test -n "$ac_tool_prefix"; then
2814 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2815 set dummy ${ac_tool_prefix}cc; ac_word=$2
2816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2817 $as_echo_n "checking for $ac_word... " >&6; }
2818 if ${ac_cv_prog_CC+:} false; then :
2819 $as_echo_n "(cached) " >&6
2821 if test -n "$CC"; then
2822 ac_cv_prog_CC="$CC" # Let the user override the test.
2824 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2828 test -z "$as_dir" && as_dir=.
2829 for ac_exec_ext in '' $ac_executable_extensions; do
2830 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2831 ac_cv_prog_CC="${ac_tool_prefix}cc"
2832 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2842 if test -n "$CC"; then
2843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2844 $as_echo "$CC" >&6; }
2846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2847 $as_echo "no" >&6; }
2853 if test -z "$CC"; then
2854 # Extract the first word of "cc", so it can be a program name with args.
2855 set dummy cc; ac_word=$2
2856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2857 $as_echo_n "checking for $ac_word... " >&6; }
2858 if ${ac_cv_prog_CC+:} false; then :
2859 $as_echo_n "(cached) " >&6
2861 if test -n "$CC"; then
2862 ac_cv_prog_CC="$CC" # Let the user override the test.
2865 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2869 test -z "$as_dir" && as_dir=.
2870 for ac_exec_ext in '' $ac_executable_extensions; do
2871 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2872 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2873 ac_prog_rejected=yes
2877 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2884 if test $ac_prog_rejected = yes; then
2885 # We found a bogon in the path, so make sure we never use it.
2886 set dummy $ac_cv_prog_CC
2888 if test $# != 0; then
2889 # We chose a different compiler from the bogus one.
2890 # However, it has the same basename, so the bogon will be chosen
2891 # first if we set CC to just the basename; use the full file name.
2893 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2899 if test -n "$CC"; then
2900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2901 $as_echo "$CC" >&6; }
2903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2904 $as_echo "no" >&6; }
2909 if test -z "$CC"; then
2910 if test -n "$ac_tool_prefix"; then
2911 for ac_prog in cl.exe
2913 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2914 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2916 $as_echo_n "checking for $ac_word... " >&6; }
2917 if ${ac_cv_prog_CC+:} false; then :
2918 $as_echo_n "(cached) " >&6
2920 if test -n "$CC"; then
2921 ac_cv_prog_CC="$CC" # Let the user override the test.
2923 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2927 test -z "$as_dir" && as_dir=.
2928 for ac_exec_ext in '' $ac_executable_extensions; do
2929 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2930 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2931 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2941 if test -n "$CC"; then
2942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2943 $as_echo "$CC" >&6; }
2945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2946 $as_echo "no" >&6; }
2950 test -n "$CC" && break
2953 if test -z "$CC"; then
2955 for ac_prog in cl.exe
2957 # Extract the first word of "$ac_prog", so it can be a program name with args.
2958 set dummy $ac_prog; ac_word=$2
2959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2960 $as_echo_n "checking for $ac_word... " >&6; }
2961 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2962 $as_echo_n "(cached) " >&6
2964 if test -n "$ac_ct_CC"; then
2965 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2967 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2971 test -z "$as_dir" && as_dir=.
2972 for ac_exec_ext in '' $ac_executable_extensions; do
2973 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2974 ac_cv_prog_ac_ct_CC="$ac_prog"
2975 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2984 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2985 if test -n "$ac_ct_CC"; then
2986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2987 $as_echo "$ac_ct_CC" >&6; }
2989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2990 $as_echo "no" >&6; }
2994 test -n "$ac_ct_CC" && break
2997 if test "x$ac_ct_CC" = x; then
3000 case $cross_compiling:$ac_tool_warned in
3002 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3003 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3004 ac_tool_warned=yes ;;
3013 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3014 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3015 as_fn_error $? "no acceptable C compiler found in \$PATH
3016 See \`config.log' for more details" "$LINENO" 5; }
3018 # Provide some information about the compiler.
3019 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3022 for ac_option in --version -v -V -qversion; do
3023 { { ac_try="$ac_compiler $ac_option >&5"
3025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3026 *) ac_try_echo=$ac_try;;
3028 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3029 $as_echo "$ac_try_echo"; } >&5
3030 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3032 if test -s conftest.err; then
3034 ... rest of stderr output deleted ...
3035 10q' conftest.err >conftest.er1
3036 cat conftest.er1 >&5
3038 rm -f conftest.er1 conftest.err
3039 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3040 test $ac_status = 0; }
3043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3044 /* end confdefs.h. */
3054 ac_clean_files_save=$ac_clean_files
3055 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3056 # Try to create an executable without -o first, disregard a.out.
3057 # It will help us diagnose broken compilers, and finding out an intuition
3059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3060 $as_echo_n "checking whether the C compiler works... " >&6; }
3061 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3063 # The possible output files:
3064 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3067 for ac_file in $ac_files
3070 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3071 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3076 if { { ac_try="$ac_link_default"
3078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3079 *) ac_try_echo=$ac_try;;
3081 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3082 $as_echo "$ac_try_echo"; } >&5
3083 (eval "$ac_link_default") 2>&5
3085 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3086 test $ac_status = 0; }; then :
3087 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3088 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3089 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3090 # so that the user can short-circuit this test for compilers unknown to
3092 for ac_file in $ac_files ''
3094 test -f "$ac_file" || continue
3096 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3099 # We found the default executable, but exeext='' is most
3103 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3105 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3107 # We set ac_cv_exeext here because the later test for it is not
3108 # safe: cross compilers may not add the suffix if given an `-o'
3109 # argument, so we may need to know it at that point already.
3110 # Even if this section looks crufty: it has the advantage of
3117 test "$ac_cv_exeext" = no && ac_cv_exeext=
3122 if test -z "$ac_file"; then :
3123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3124 $as_echo "no" >&6; }
3125 $as_echo "$as_me: failed program was:" >&5
3126 sed 's/^/| /' conftest.$ac_ext >&5
3128 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3129 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3130 as_fn_error 77 "C compiler cannot create executables
3131 See \`config.log' for more details" "$LINENO" 5; }
3133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3134 $as_echo "yes" >&6; }
3136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3137 $as_echo_n "checking for C compiler default output file name... " >&6; }
3138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3139 $as_echo "$ac_file" >&6; }
3140 ac_exeext=$ac_cv_exeext
3142 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3143 ac_clean_files=$ac_clean_files_save
3144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3145 $as_echo_n "checking for suffix of executables... " >&6; }
3146 if { { ac_try="$ac_link"
3148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3149 *) ac_try_echo=$ac_try;;
3151 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3152 $as_echo "$ac_try_echo"; } >&5
3153 (eval "$ac_link") 2>&5
3155 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3156 test $ac_status = 0; }; then :
3157 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3158 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3159 # work properly (i.e., refer to `conftest.exe'), while it won't with
3161 for ac_file in conftest.exe conftest conftest.*; do
3162 test -f "$ac_file" || continue
3164 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3165 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3171 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3172 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3173 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3174 See \`config.log' for more details" "$LINENO" 5; }
3176 rm -f conftest conftest$ac_cv_exeext
3177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3178 $as_echo "$ac_cv_exeext" >&6; }
3180 rm -f conftest.$ac_ext
3181 EXEEXT=$ac_cv_exeext
3183 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3184 /* end confdefs.h. */
3189 FILE *f = fopen ("conftest.out", "w");
3190 return ferror (f) || fclose (f) != 0;
3196 ac_clean_files="$ac_clean_files conftest.out"
3197 # Check that the compiler produces executables we can run. If not, either
3198 # the compiler is broken, or we cross compile.
3199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3200 $as_echo_n "checking whether we are cross compiling... " >&6; }
3201 if test "$cross_compiling" != yes; then
3202 { { ac_try="$ac_link"
3204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3205 *) ac_try_echo=$ac_try;;
3207 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3208 $as_echo "$ac_try_echo"; } >&5
3209 (eval "$ac_link") 2>&5
3211 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3212 test $ac_status = 0; }
3213 if { ac_try='./conftest$ac_cv_exeext'
3214 { { case "(($ac_try" in
3215 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3216 *) ac_try_echo=$ac_try;;
3218 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3219 $as_echo "$ac_try_echo"; } >&5
3220 (eval "$ac_try") 2>&5
3222 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3223 test $ac_status = 0; }; }; then
3226 if test "$cross_compiling" = maybe; then
3229 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3230 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3231 as_fn_error $? "cannot run C compiled programs.
3232 If you meant to cross compile, use \`--host'.
3233 See \`config.log' for more details" "$LINENO" 5; }
3237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3238 $as_echo "$cross_compiling" >&6; }
3240 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3241 ac_clean_files=$ac_clean_files_save
3242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3243 $as_echo_n "checking for suffix of object files... " >&6; }
3244 if ${ac_cv_objext+:} false; then :
3245 $as_echo_n "(cached) " >&6
3247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3248 /* end confdefs.h. */
3258 rm -f conftest.o conftest.obj
3259 if { { ac_try="$ac_compile"
3261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3262 *) ac_try_echo=$ac_try;;
3264 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3265 $as_echo "$ac_try_echo"; } >&5
3266 (eval "$ac_compile") 2>&5
3268 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3269 test $ac_status = 0; }; then :
3270 for ac_file in conftest.o conftest.obj conftest.*; do
3271 test -f "$ac_file" || continue;
3273 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3274 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3279 $as_echo "$as_me: failed program was:" >&5
3280 sed 's/^/| /' conftest.$ac_ext >&5
3282 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3283 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3284 as_fn_error $? "cannot compute suffix of object files: cannot compile
3285 See \`config.log' for more details" "$LINENO" 5; }
3287 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3290 $as_echo "$ac_cv_objext" >&6; }
3291 OBJEXT=$ac_cv_objext
3293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3294 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3295 if ${ac_cv_c_compiler_gnu+:} false; then :
3296 $as_echo_n "(cached) " >&6
3298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3299 /* end confdefs.h. */
3312 if ac_fn_c_try_compile "$LINENO"; then :
3317 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3318 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3322 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3323 if test $ac_compiler_gnu = yes; then
3328 ac_test_CFLAGS=${CFLAGS+set}
3329 ac_save_CFLAGS=$CFLAGS
3330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3331 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3332 if ${ac_cv_prog_cc_g+:} false; then :
3333 $as_echo_n "(cached) " >&6
3335 ac_save_c_werror_flag=$ac_c_werror_flag
3336 ac_c_werror_flag=yes
3339 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3340 /* end confdefs.h. */
3350 if ac_fn_c_try_compile "$LINENO"; then :
3354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3355 /* end confdefs.h. */
3365 if ac_fn_c_try_compile "$LINENO"; then :
3368 ac_c_werror_flag=$ac_save_c_werror_flag
3370 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3371 /* end confdefs.h. */
3381 if ac_fn_c_try_compile "$LINENO"; then :
3384 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3386 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3388 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3389 ac_c_werror_flag=$ac_save_c_werror_flag
3391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3392 $as_echo "$ac_cv_prog_cc_g" >&6; }
3393 if test "$ac_test_CFLAGS" = set; then
3394 CFLAGS=$ac_save_CFLAGS
3395 elif test $ac_cv_prog_cc_g = yes; then
3396 if test "$GCC" = yes; then
3402 if test "$GCC" = yes; then
3408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3409 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3410 if ${ac_cv_prog_cc_c89+:} false; then :
3411 $as_echo_n "(cached) " >&6
3413 ac_cv_prog_cc_c89=no
3415 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3416 /* end confdefs.h. */
3419 #include <sys/types.h>
3420 #include <sys/stat.h>
3421 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3422 struct buf { int x; };
3423 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3424 static char *e (p, i)
3430 static char *f (char * (*g) (char **, int), char **p, ...)
3435 s = g (p, va_arg (v,int));
3440 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3441 function prototypes and stuff, but not '\xHH' hex character constants.
3442 These don't provoke an error unfortunately, instead are silently treated
3443 as 'x'. The following induces an error, until -std is added to get
3444 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3445 array size at least. It's necessary to write '\x00'==0 to get something
3446 that's true only with -std. */
3447 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3449 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3450 inside strings and character constants. */
3452 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3454 int test (int i, double x);
3455 struct s1 {int (*f) (int a);};
3456 struct s2 {int (*f) (double a);};
3457 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3463 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3468 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3469 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3471 CC="$ac_save_CC $ac_arg"
3472 if ac_fn_c_try_compile "$LINENO"; then :
3473 ac_cv_prog_cc_c89=$ac_arg
3475 rm -f core conftest.err conftest.$ac_objext
3476 test "x$ac_cv_prog_cc_c89" != "xno" && break
3478 rm -f conftest.$ac_ext
3483 case "x$ac_cv_prog_cc_c89" in
3485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3486 $as_echo "none needed" >&6; } ;;
3488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3489 $as_echo "unsupported" >&6; } ;;
3491 CC="$CC $ac_cv_prog_cc_c89"
3492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3493 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3495 if test "x$ac_cv_prog_cc_c89" != xno; then :
3500 ac_cpp='$CPP $CPPFLAGS'
3501 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3502 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3503 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3504 DEPDIR="${am__leading_dot}deps"
3506 ac_config_commands="$ac_config_commands depfiles"
3509 am_make=${MAKE-make}
3510 cat > confinc << 'END'
3512 @echo this is the am__doit target
3515 # If we don't find an include directive, just comment out the code.
3516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3517 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3521 # First try GNU make style include.
3522 echo "include confinc" > confmf
3523 # Ignore all kinds of additional output from `make'.
3524 case `$am_make -s -f confmf 2> /dev/null` in #(
3525 *the\ am__doit\ target*)
3531 # Now try BSD make style include.
3532 if test "$am__include" = "#"; then
3533 echo '.include "confinc"' > confmf
3534 case `$am_make -s -f confmf 2> /dev/null` in #(
3535 *the\ am__doit\ target*)
3536 am__include=.include
3544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3545 $as_echo "$_am_result" >&6; }
3546 rm -f confinc confmf
3548 # Check whether --enable-dependency-tracking was given.
3549 if test "${enable_dependency_tracking+set}" = set; then :
3550 enableval=$enable_dependency_tracking;
3553 if test "x$enable_dependency_tracking" != xno; then
3554 am_depcomp="$ac_aux_dir/depcomp"
3557 if test "x$enable_dependency_tracking" != xno; then
3567 depcc="$CC" am_compiler_list=
3569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3570 $as_echo_n "checking dependency style of $depcc... " >&6; }
3571 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3572 $as_echo_n "(cached) " >&6
3574 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3575 # We make a subdir and do the tests there. Otherwise we can end up
3576 # making bogus files that we don't know about and never remove. For
3577 # instance it was reported that on HP-UX the gcc test will end up
3578 # making a dummy file named `D' -- because `-MD' means `put the output
3581 # Copy depcomp to subdir because otherwise we won't find it if we're
3582 # using a relative directory.
3583 cp "$am_depcomp" conftest.dir
3585 # We will build objects and dependencies in a subdirectory because
3586 # it helps to detect inapplicable dependency modes. For instance
3587 # both Tru64's cc and ICC support -MD to output dependencies as a
3588 # side effect of compilation, but ICC will put the dependencies in
3589 # the current directory while Tru64 will put them in the object
3593 am_cv_CC_dependencies_compiler_type=none
3594 if test "$am_compiler_list" = ""; then
3595 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3598 case " $depcc " in #(
3599 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3602 for depmode in $am_compiler_list; do
3603 # Setup a source with many dependencies, because some compilers
3604 # like to wrap large dependency lists on column 80 (with \), and
3605 # we should not choose a depcomp mode which is confused by this.
3607 # We need to recreate these files for each test, as the compiler may
3608 # overwrite some of them when testing with obscure command lines.
3609 # This happens at least with the AIX C compiler.
3611 for i in 1 2 3 4 5 6; do
3612 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3613 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3614 # Solaris 8's {/usr,}/bin/sh.
3615 touch sub/conftst$i.h
3617 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3619 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3620 # mode. It turns out that the SunPro C++ compiler does not properly
3621 # handle `-M -o', and we need to detect this. Also, some Intel
3622 # versions had trouble with output in subdirs
3623 am__obj=sub/conftest.${OBJEXT-o}
3624 am__minus_obj="-o $am__obj"
3627 # This depmode causes a compiler race in universal mode.
3628 test "$am__universal" = false || continue
3631 # after this tag, mechanisms are not by side-effect, so they'll
3632 # only be used when explicitly requested
3633 if test "x$enable_dependency_tracking" = xyes; then
3639 msvisualcpp | msvcmsys)
3640 # This compiler won't grok `-c -o', but also, the minuso test has
3641 # not run yet. These depmodes are late enough in the game, and
3642 # so weak that their functioning should not be impacted.
3643 am__obj=conftest.${OBJEXT-o}
3648 if depmode=$depmode \
3649 source=sub/conftest.c object=$am__obj \
3650 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3651 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3652 >/dev/null 2>conftest.err &&
3653 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3654 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3655 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3656 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3657 # icc doesn't choke on unknown options, it will just issue warnings
3658 # or remarks (even with -Werror). So we grep stderr for any message
3659 # that says an option was ignored or not supported.
3660 # When given -MP, icc 7.0 and 7.1 complain thusly:
3661 # icc: Command line warning: ignoring option '-M'; no argument required
3662 # The diagnosis changed in icc 8.0:
3663 # icc: Command line remark: option '-MP' not supported
3664 if (grep 'ignoring option' conftest.err ||
3665 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3666 am_cv_CC_dependencies_compiler_type=$depmode
3675 am_cv_CC_dependencies_compiler_type=none
3679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3680 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3681 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3684 test "x$enable_dependency_tracking" != xno \
3685 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3687 am__fastdepCC_FALSE='#'
3689 am__fastdepCC_TRUE='#'
3690 am__fastdepCC_FALSE=
3695 ## ------------------------ ##
3696 ## Fortran compiler checks. ##
3697 ## ------------------------ ##
3699 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
3700 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3701 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
3702 if test -n "$ac_tool_prefix"; then
3703 for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgfortran pgf95 lf95 ftn
3705 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3706 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3708 $as_echo_n "checking for $ac_word... " >&6; }
3709 if ${ac_cv_prog_F77+:} false; then :
3710 $as_echo_n "(cached) " >&6
3712 if test -n "$F77"; then
3713 ac_cv_prog_F77="$F77" # Let the user override the test.
3715 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3719 test -z "$as_dir" && as_dir=.
3720 for ac_exec_ext in '' $ac_executable_extensions; do
3721 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3722 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
3723 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3733 if test -n "$F77"; then
3734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $F77" >&5
3735 $as_echo "$F77" >&6; }
3737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3738 $as_echo "no" >&6; }
3742 test -n "$F77" && break
3745 if test -z "$F77"; then
3747 for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgfortran pgf95 lf95 ftn
3749 # Extract the first word of "$ac_prog", so it can be a program name with args.
3750 set dummy $ac_prog; ac_word=$2
3751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3752 $as_echo_n "checking for $ac_word... " >&6; }
3753 if ${ac_cv_prog_ac_ct_F77+:} false; then :
3754 $as_echo_n "(cached) " >&6
3756 if test -n "$ac_ct_F77"; then
3757 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
3759 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3763 test -z "$as_dir" && as_dir=.
3764 for ac_exec_ext in '' $ac_executable_extensions; do
3765 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3766 ac_cv_prog_ac_ct_F77="$ac_prog"
3767 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3776 ac_ct_F77=$ac_cv_prog_ac_ct_F77
3777 if test -n "$ac_ct_F77"; then
3778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_F77" >&5
3779 $as_echo "$ac_ct_F77" >&6; }
3781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3782 $as_echo "no" >&6; }
3786 test -n "$ac_ct_F77" && break
3789 if test "x$ac_ct_F77" = x; then
3792 case $cross_compiling:$ac_tool_warned in
3794 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3795 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3796 ac_tool_warned=yes ;;
3803 # Provide some information about the compiler.
3804 $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran 77 compiler version" >&5
3807 for ac_option in --version -v -V -qversion; do
3808 { { ac_try="$ac_compiler $ac_option >&5"
3810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3811 *) ac_try_echo=$ac_try;;
3813 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3814 $as_echo "$ac_try_echo"; } >&5
3815 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3817 if test -s conftest.err; then
3819 ... rest of stderr output deleted ...
3820 10q' conftest.err >conftest.er1
3821 cat conftest.er1 >&5
3823 rm -f conftest.er1 conftest.err
3824 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3825 test $ac_status = 0; }
3829 # If we don't use `.F' as extension, the preprocessor is not run on the
3830 # input file. (Note that this only needs to work for GNU compilers.)
3833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Fortran 77 compiler" >&5
3834 $as_echo_n "checking whether we are using the GNU Fortran 77 compiler... " >&6; }
3835 if ${ac_cv_f77_compiler_gnu+:} false; then :
3836 $as_echo_n "(cached) " >&6
3838 cat > conftest.$ac_ext <<_ACEOF
3846 if ac_fn_f77_try_compile "$LINENO"; then :
3851 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3852 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
3855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f77_compiler_gnu" >&5
3856 $as_echo "$ac_cv_f77_compiler_gnu" >&6; }
3858 ac_test_FFLAGS=${FFLAGS+set}
3859 ac_save_FFLAGS=$FFLAGS
3861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $F77 accepts -g" >&5
3862 $as_echo_n "checking whether $F77 accepts -g... " >&6; }
3863 if ${ac_cv_prog_f77_g+:} false; then :
3864 $as_echo_n "(cached) " >&6
3867 cat > conftest.$ac_ext <<_ACEOF
3872 if ac_fn_f77_try_compile "$LINENO"; then :
3873 ac_cv_prog_f77_g=yes
3877 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_f77_g" >&5
3881 $as_echo "$ac_cv_prog_f77_g" >&6; }
3882 if test "$ac_test_FFLAGS" = set; then
3883 FFLAGS=$ac_save_FFLAGS
3884 elif test $ac_cv_prog_f77_g = yes; then
3885 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
3891 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
3898 if test $ac_compiler_gnu = yes; then
3904 ac_cpp='$CPP $CPPFLAGS'
3905 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3906 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3907 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3909 if test -z "$with_dist"; then
3912 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
3913 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3914 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
3915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to get verbose linking output from $F77" >&5
3916 $as_echo_n "checking how to get verbose linking output from $F77... " >&6; }
3917 if ${ac_cv_prog_f77_v+:} false; then :
3918 $as_echo_n "(cached) " >&6
3920 cat > conftest.$ac_ext <<_ACEOF
3925 if ac_fn_f77_try_compile "$LINENO"; then :
3927 # Try some options frequently used verbose output
3928 for ac_verb in -v -verbose --verbose -V -\#\#\#; do
3929 cat > conftest.$ac_ext <<_ACEOF
3935 # Compile and link our simple test program by passing a flag (argument
3936 # 1 to this macro) to the Fortran compiler in order to get
3937 # "verbose" output that we can then parse for the Fortran linker
3939 ac_save_FFLAGS=$FFLAGS
3940 FFLAGS="$FFLAGS $ac_verb"
3941 eval "set x $ac_link"
3943 $as_echo "$as_me:${as_lineno-$LINENO}: $*" >&5
3944 # gfortran 4.3 outputs lines setting COLLECT_GCC_OPTIONS, COMPILER_PATH,
3945 # LIBRARY_PATH; skip all such settings.
3946 ac_f77_v_output=`eval $ac_link 5>&1 2>&1 |
3947 sed '/^Driving:/d; /^Configured with:/d;
3948 '"/^[_$as_cr_Letters][_$as_cr_alnum]*=/d"`
3949 $as_echo "$ac_f77_v_output" >&5
3950 FFLAGS=$ac_save_FFLAGS
3954 # On HP/UX there is a line like: "LPATH is: /foo:/bar:/baz" where
3955 # /foo, /bar, and /baz are search directories for the Fortran linker.
3956 # Here, we change these into -L/foo -L/bar -L/baz (and put it first):
3957 ac_f77_v_output="`echo $ac_f77_v_output |
3959 sed 's|.*LPATH is\(: *[^ ]*\).*|\1|;s|: */| -L/|g'` $ac_f77_v_output"
3961 # FIXME: we keep getting bitten by quoted arguments; a more general fix
3962 # that detects unbalanced quotes in FLIBS should be implemented
3963 # and (ugh) tested at some point.
3964 case $ac_f77_v_output in
3965 # If we are using xlf then replace all the commas with spaces.
3967 ac_f77_v_output=`echo $ac_f77_v_output | sed 's/,/ /g'` ;;
3969 # With Intel ifc, ignore the quoted -mGLOB_options_string stuff (quoted
3970 # $LIBS confuse us, and the libraries appear later in the output anyway).
3971 *mGLOB_options_string*)
3972 ac_f77_v_output=`echo $ac_f77_v_output | sed 's/"-mGLOB[^"]*"/ /g'` ;;
3974 # Portland Group compiler has singly- or doubly-quoted -cmdline argument
3975 # Singly-quoted arguments were reported for versions 5.2-4 and 6.0-4.
3976 # Doubly-quoted arguments were reported for "PGF90/x86 Linux/x86 5.0-2".
3977 *-cmdline\ * | *-ignore\ * | *-def\ *)
3978 ac_f77_v_output=`echo $ac_f77_v_output | sed "\
3979 s/-cmdline *'[^']*'/ /g; s/-cmdline *\"[^\"]*\"/ /g
3980 s/-ignore *'[^']*'/ /g; s/-ignore *\"[^\"]*\"/ /g
3981 s/-def *'[^']*'/ /g; s/-def *\"[^\"]*\"/ /g"` ;;
3983 # If we are using Cray Fortran then delete quotes.
3985 ac_f77_v_output=`echo $ac_f77_v_output | sed 's/"//g'` ;;
3989 # look for -l* and *.a constructs in the output
3990 for ac_arg in $ac_f77_v_output; do
3992 [\\/]*.a | ?:[\\/]*.a | -[lLRu]*)
3993 ac_cv_prog_f77_v=$ac_verb
3998 if test -z "$ac_cv_prog_f77_v"; then
3999 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot determine how to obtain linking information from $F77" >&5
4000 $as_echo "$as_me: WARNING: cannot determine how to obtain linking information from $F77" >&2;}
4003 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: compilation failed" >&5
4004 $as_echo "$as_me: WARNING: compilation failed" >&2;}
4006 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_f77_v" >&5
4010 $as_echo "$ac_cv_prog_f77_v" >&6; }
4011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran 77 libraries of $F77" >&5
4012 $as_echo_n "checking for Fortran 77 libraries of $F77... " >&6; }
4013 if ${ac_cv_f77_libs+:} false; then :
4014 $as_echo_n "(cached) " >&6
4016 if test "x$FLIBS" != "x"; then
4017 ac_cv_f77_libs="$FLIBS" # Let the user override the test.
4020 cat > conftest.$ac_ext <<_ACEOF
4026 # Compile and link our simple test program by passing a flag (argument
4027 # 1 to this macro) to the Fortran compiler in order to get
4028 # "verbose" output that we can then parse for the Fortran linker
4030 ac_save_FFLAGS=$FFLAGS
4031 FFLAGS="$FFLAGS $ac_cv_prog_f77_v"
4032 eval "set x $ac_link"
4034 $as_echo "$as_me:${as_lineno-$LINENO}: $*" >&5
4035 # gfortran 4.3 outputs lines setting COLLECT_GCC_OPTIONS, COMPILER_PATH,
4036 # LIBRARY_PATH; skip all such settings.
4037 ac_f77_v_output=`eval $ac_link 5>&1 2>&1 |
4038 sed '/^Driving:/d; /^Configured with:/d;
4039 '"/^[_$as_cr_Letters][_$as_cr_alnum]*=/d"`
4040 $as_echo "$ac_f77_v_output" >&5
4041 FFLAGS=$ac_save_FFLAGS
4045 # On HP/UX there is a line like: "LPATH is: /foo:/bar:/baz" where
4046 # /foo, /bar, and /baz are search directories for the Fortran linker.
4047 # Here, we change these into -L/foo -L/bar -L/baz (and put it first):
4048 ac_f77_v_output="`echo $ac_f77_v_output |
4050 sed 's|.*LPATH is\(: *[^ ]*\).*|\1|;s|: */| -L/|g'` $ac_f77_v_output"
4052 # FIXME: we keep getting bitten by quoted arguments; a more general fix
4053 # that detects unbalanced quotes in FLIBS should be implemented
4054 # and (ugh) tested at some point.
4055 case $ac_f77_v_output in
4056 # If we are using xlf then replace all the commas with spaces.
4058 ac_f77_v_output=`echo $ac_f77_v_output | sed 's/,/ /g'` ;;
4060 # With Intel ifc, ignore the quoted -mGLOB_options_string stuff (quoted
4061 # $LIBS confuse us, and the libraries appear later in the output anyway).
4062 *mGLOB_options_string*)
4063 ac_f77_v_output=`echo $ac_f77_v_output | sed 's/"-mGLOB[^"]*"/ /g'` ;;
4065 # Portland Group compiler has singly- or doubly-quoted -cmdline argument
4066 # Singly-quoted arguments were reported for versions 5.2-4 and 6.0-4.
4067 # Doubly-quoted arguments were reported for "PGF90/x86 Linux/x86 5.0-2".
4068 *-cmdline\ * | *-ignore\ * | *-def\ *)
4069 ac_f77_v_output=`echo $ac_f77_v_output | sed "\
4070 s/-cmdline *'[^']*'/ /g; s/-cmdline *\"[^\"]*\"/ /g
4071 s/-ignore *'[^']*'/ /g; s/-ignore *\"[^\"]*\"/ /g
4072 s/-def *'[^']*'/ /g; s/-def *\"[^\"]*\"/ /g"` ;;
4074 # If we are using Cray Fortran then delete quotes.
4076 ac_f77_v_output=`echo $ac_f77_v_output | sed 's/"//g'` ;;
4083 # Save positional arguments (if any)
4084 ac_save_positional="$@"
4086 set X $ac_f77_v_output
4087 while test $# != 1; do
4091 [\\/]*.a | ?:[\\/]*.a)
4093 for ac_i in $ac_cv_f77_libs; do
4094 if test x"$ac_arg" = x"$ac_i"; then
4100 if test x"$ac_exists" = xtrue; then :
4103 ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg"
4108 for ac_i in $ac_cv_f77_libs; do
4109 if test x"$ac_arg" = x"$ac_i"; then
4115 if test x"$ac_exists" = xtrue; then :
4118 if test "$ac_compiler_gnu" = yes; then
4119 for ac_link_opt in $ac_arg; do
4120 ac_cv_f77_libs="$ac_cv_f77_libs -Xlinker $ac_link_opt"
4123 ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg"
4127 # Ignore these flags.
4128 -lang* | -lcrt*.o | -lc | -lgcc* | -lSystem | -libmil | -little \
4129 |-LANG:=* | -LIST:* | -LNO:* | -link)
4132 test x"$CYGWIN" != xyes && ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg"
4135 # These flags, when seen by themselves, take an argument.
4136 # We remove the space between option and argument and re-iterate
4137 # unless we find an empty arg or a new option (starting with -)
4148 for ac_j in `$as_echo "$ac_arg" | sed -e 's/-YP,/-L/;s/:/ -L/g'`; do
4150 for ac_i in $ac_cv_f77_libs; do
4151 if test x"$ac_j" = x"$ac_i"; then
4157 if test x"$ac_exists" = xtrue; then :
4160 ac_arg="$ac_arg $ac_j"
4161 ac_cv_f77_libs="$ac_cv_f77_libs $ac_j"
4167 for ac_i in $ac_cv_f77_libs; do
4168 if test x"$ac_arg" = x"$ac_i"; then
4174 if test x"$ac_exists" = xtrue; then :
4177 ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg"
4180 -zallextract*| -zdefaultextract)
4181 ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg"
4183 # Ignore everything else.
4186 # restore positional arguments
4187 set X $ac_save_positional; shift
4189 # We only consider "LD_RUN_PATH" on Solaris systems. If this is seen,
4190 # then we insist that the "run path" must be an absolute path (i.e. it
4191 # must begin with a "/").
4192 case `(uname -sr) 2>/dev/null` in
4194 ac_ld_run_path=`$as_echo "$ac_f77_v_output" |
4195 sed -n 's,^.*LD_RUN_PATH *= *\(/[^ ]*\).*$,-R\1,p'`
4196 test "x$ac_ld_run_path" != x &&
4197 if test "$ac_compiler_gnu" = yes; then
4198 for ac_link_opt in $ac_ld_run_path; do
4199 ac_cv_f77_libs="$ac_cv_f77_libs -Xlinker $ac_link_opt"
4202 ac_cv_f77_libs="$ac_cv_f77_libs $ac_ld_run_path"
4206 fi # test "x$[]_AC_LANG_PREFIX[]LIBS" = "x"
4209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f77_libs" >&5
4210 $as_echo "$ac_cv_f77_libs" >&6; }
4211 FLIBS="$ac_cv_f77_libs"
4215 ac_cpp='$CPP $CPPFLAGS'
4216 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4217 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4218 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4222 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4223 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4224 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dummy main to link with Fortran 77 libraries" >&5
4227 $as_echo_n "checking for dummy main to link with Fortran 77 libraries... " >&6; }
4228 if ${ac_cv_f77_dummy_main+:} false; then :
4229 $as_echo_n "(cached) " >&6
4231 ac_f77_dm_save_LIBS=$LIBS
4233 ac_fortran_dm_var=F77_DUMMY_MAIN
4235 ac_cpp='$CPP $CPPFLAGS'
4236 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4237 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4238 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4240 # First, try linking without a dummy main:
4241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4242 /* end confdefs.h. */
4244 #ifdef F77_DUMMY_MAIN
4249 int F77_DUMMY_MAIN() { return 1; }
4260 if ac_fn_c_try_link "$LINENO"; then :
4261 ac_cv_fortran_dummy_main=none
4263 ac_cv_fortran_dummy_main=unknown
4265 rm -f core conftest.err conftest.$ac_objext \
4266 conftest$ac_exeext conftest.$ac_ext
4268 if test $ac_cv_fortran_dummy_main = unknown; then
4269 for ac_func in MAIN__ MAIN_ __main MAIN _MAIN __MAIN main_ main__ _main; do
4270 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4271 /* end confdefs.h. */
4272 #define $ac_fortran_dm_var $ac_func
4273 #ifdef F77_DUMMY_MAIN
4278 int F77_DUMMY_MAIN() { return 1; }
4289 if ac_fn_c_try_link "$LINENO"; then :
4290 ac_cv_fortran_dummy_main=$ac_func; break
4292 rm -f core conftest.err conftest.$ac_objext \
4293 conftest$ac_exeext conftest.$ac_ext
4297 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4298 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4299 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4300 ac_cv_f77_dummy_main=$ac_cv_fortran_dummy_main
4302 LIBS=$ac_f77_dm_save_LIBS
4305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f77_dummy_main" >&5
4306 $as_echo "$ac_cv_f77_dummy_main" >&6; }
4307 F77_DUMMY_MAIN=$ac_cv_f77_dummy_main
4308 if test "$F77_DUMMY_MAIN" != unknown; then :
4309 if test $F77_DUMMY_MAIN != none; then
4311 cat >>confdefs.h <<_ACEOF
4312 #define F77_DUMMY_MAIN $F77_DUMMY_MAIN
4315 if test "x$ac_cv_fc_dummy_main" = "x$ac_cv_f77_dummy_main"; then
4317 $as_echo "#define FC_DUMMY_MAIN_EQ_F77 1" >>confdefs.h
4322 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4323 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4324 as_fn_error $? "linking to Fortran libraries from C fails
4325 See \`config.log' for more details" "$LINENO" 5; }
4329 ac_cpp='$CPP $CPPFLAGS'
4330 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4331 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4332 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4335 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4336 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4337 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran 77 name-mangling scheme" >&5
4339 $as_echo_n "checking for Fortran 77 name-mangling scheme... " >&6; }
4340 if ${ac_cv_f77_mangling+:} false; then :
4341 $as_echo_n "(cached) " >&6
4343 cat > conftest.$ac_ext <<_ACEOF
4347 subroutine foo_bar()
4351 if ac_fn_f77_try_compile "$LINENO"; then :
4352 mv conftest.$ac_objext cfortran_test.$ac_objext
4355 LIBS="cfortran_test.$ac_objext $LIBS $FLIBS"
4358 ac_cpp='$CPP $CPPFLAGS'
4359 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4360 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4361 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4363 for ac_foobar in foobar FOOBAR; do
4364 for ac_underscore in "" "_"; do
4365 ac_func="$ac_foobar$ac_underscore"
4366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4367 /* end confdefs.h. */
4369 /* Override any GCC internal prototype to avoid an error.
4370 Use char because int might match the return type of a GCC
4371 builtin and then its argument prototype would still apply. */
4376 #ifdef F77_DUMMY_MAIN
4381 int F77_DUMMY_MAIN() { return 1; }
4392 if ac_fn_c_try_link "$LINENO"; then :
4393 ac_success=yes; break 2
4395 rm -f core conftest.err conftest.$ac_objext \
4396 conftest$ac_exeext conftest.$ac_ext
4400 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4401 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4402 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4404 if test "$ac_success" = "yes"; then
4417 ac_cpp='$CPP $CPPFLAGS'
4418 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4419 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4420 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4422 for ac_extra in "" "_"; do
4423 ac_func="$ac_foo_bar$ac_underscore$ac_extra"
4424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4425 /* end confdefs.h. */
4427 /* Override any GCC internal prototype to avoid an error.
4428 Use char because int might match the return type of a GCC
4429 builtin and then its argument prototype would still apply. */
4434 #ifdef F77_DUMMY_MAIN
4439 int F77_DUMMY_MAIN() { return 1; }
4450 if ac_fn_c_try_link "$LINENO"; then :
4451 ac_success_extra=yes; break
4453 rm -f core conftest.err conftest.$ac_objext \
4454 conftest$ac_exeext conftest.$ac_ext
4457 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4458 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4459 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4461 if test "$ac_success_extra" = "yes"; then
4462 ac_cv_f77_mangling="$ac_case case"
4463 if test -z "$ac_underscore"; then
4464 ac_cv_f77_mangling="$ac_cv_f77_mangling, no underscore"
4466 ac_cv_f77_mangling="$ac_cv_f77_mangling, underscore"
4468 if test -z "$ac_extra"; then
4469 ac_cv_f77_mangling="$ac_cv_f77_mangling, no extra underscore"
4471 ac_cv_f77_mangling="$ac_cv_f77_mangling, extra underscore"
4474 ac_cv_f77_mangling="unknown"
4477 ac_cv_f77_mangling="unknown"
4482 rm -f cfortran_test*
4484 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4485 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4486 as_fn_error $? "cannot compile a simple Fortran program
4487 See \`config.log' for more details" "$LINENO" 5; }
4489 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f77_mangling" >&5
4493 $as_echo "$ac_cv_f77_mangling" >&6; }
4496 ac_cpp='$CPP $CPPFLAGS'
4497 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4498 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4499 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4502 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4503 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4504 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4505 case $ac_cv_f77_mangling in
4506 "lower case, no underscore, no extra underscore")
4507 $as_echo "#define F77_FUNC(name,NAME) name" >>confdefs.h
4509 $as_echo "#define F77_FUNC_(name,NAME) name" >>confdefs.h
4511 "lower case, no underscore, extra underscore")
4512 $as_echo "#define F77_FUNC(name,NAME) name" >>confdefs.h
4514 $as_echo "#define F77_FUNC_(name,NAME) name ## _" >>confdefs.h
4516 "lower case, underscore, no extra underscore")
4517 $as_echo "#define F77_FUNC(name,NAME) name ## _" >>confdefs.h
4519 $as_echo "#define F77_FUNC_(name,NAME) name ## _" >>confdefs.h
4521 "lower case, underscore, extra underscore")
4522 $as_echo "#define F77_FUNC(name,NAME) name ## _" >>confdefs.h
4524 $as_echo "#define F77_FUNC_(name,NAME) name ## __" >>confdefs.h
4526 "upper case, no underscore, no extra underscore")
4527 $as_echo "#define F77_FUNC(name,NAME) NAME" >>confdefs.h
4529 $as_echo "#define F77_FUNC_(name,NAME) NAME" >>confdefs.h
4531 "upper case, no underscore, extra underscore")
4532 $as_echo "#define F77_FUNC(name,NAME) NAME" >>confdefs.h
4534 $as_echo "#define F77_FUNC_(name,NAME) NAME ## _" >>confdefs.h
4536 "upper case, underscore, no extra underscore")
4537 $as_echo "#define F77_FUNC(name,NAME) NAME ## _" >>confdefs.h
4539 $as_echo "#define F77_FUNC_(name,NAME) NAME ## _" >>confdefs.h
4541 "upper case, underscore, extra underscore")
4542 $as_echo "#define F77_FUNC(name,NAME) NAME ## _" >>confdefs.h
4544 $as_echo "#define F77_FUNC_(name,NAME) NAME ## __" >>confdefs.h
4547 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unknown Fortran name-mangling scheme" >&5
4548 $as_echo "$as_me: WARNING: unknown Fortran name-mangling scheme" >&2;}
4553 ac_cpp='$CPP $CPPFLAGS'
4554 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4555 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4556 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4560 ## ----------------------- ##
4561 ## Libtool initialisation. ##
4562 ## ----------------------- ##
4565 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4566 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4571 macro_version='2.4.2'
4572 macro_revision='1.3337'
4586 ltmain="$ac_aux_dir/ltmain.sh"
4588 # Make sure we can run config.sub.
4589 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4590 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4593 $as_echo_n "checking build system type... " >&6; }
4594 if ${ac_cv_build+:} false; then :
4595 $as_echo_n "(cached) " >&6
4597 ac_build_alias=$build_alias
4598 test "x$ac_build_alias" = x &&
4599 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4600 test "x$ac_build_alias" = x &&
4601 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4602 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4603 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4607 $as_echo "$ac_cv_build" >&6; }
4608 case $ac_cv_build in
4610 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4613 ac_save_IFS=$IFS; IFS='-'
4619 # Remember, the first character of IFS is used to create $*,
4620 # except with old shells:
4623 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4627 $as_echo_n "checking host system type... " >&6; }
4628 if ${ac_cv_host+:} false; then :
4629 $as_echo_n "(cached) " >&6
4631 if test "x$host_alias" = x; then
4632 ac_cv_host=$ac_cv_build
4634 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4635 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4640 $as_echo "$ac_cv_host" >&6; }
4643 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4646 ac_save_IFS=$IFS; IFS='-'
4652 # Remember, the first character of IFS is used to create $*,
4653 # except with old shells:
4656 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4659 # Backslashify metacharacters that are still active within
4660 # double-quoted strings.
4661 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4663 # Same as above, but do not quote variable references.
4664 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4666 # Sed substitution to delay expansion of an escaped shell variable in a
4667 # double_quote_subst'ed string.
4668 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4670 # Sed substitution to delay expansion of an escaped single quote.
4671 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4673 # Sed substitution to avoid accidental globbing in evaled expressions
4674 no_glob_subst='s/\*/\\\*/g'
4676 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4677 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4678 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4681 $as_echo_n "checking how to print strings... " >&6; }
4682 # Test print first, because it will be a builtin if present.
4683 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4684 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4686 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4689 # Use this function as a fallback that always works.
4690 func_fallback_echo ()
4692 eval 'cat <<_LTECHO_EOF
4696 ECHO='func_fallback_echo'
4699 # func_echo_all arg...
4700 # Invoke $ECHO with all args, space-separated.
4707 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4708 $as_echo "printf" >&6; } ;;
4709 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4710 $as_echo "print -r" >&6; } ;;
4711 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4712 $as_echo "cat" >&6; } ;;
4728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4729 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4730 if ${ac_cv_path_SED+:} false; then :
4731 $as_echo_n "(cached) " >&6
4733 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4734 for ac_i in 1 2 3 4 5 6 7; do
4735 ac_script="$ac_script$as_nl$ac_script"
4737 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4738 { ac_script=; unset ac_script;}
4739 if test -z "$SED"; then
4740 ac_path_SED_found=false
4741 # Loop through the user's path and test for each of PROGNAME-LIST
4742 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4746 test -z "$as_dir" && as_dir=.
4747 for ac_prog in sed gsed; do
4748 for ac_exec_ext in '' $ac_executable_extensions; do
4749 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4750 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4751 # Check for GNU ac_path_SED and select it if it is found.
4752 # Check for GNU $ac_path_SED
4753 case `"$ac_path_SED" --version 2>&1` in
4755 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4758 $as_echo_n 0123456789 >"conftest.in"
4761 cat "conftest.in" "conftest.in" >"conftest.tmp"
4762 mv "conftest.tmp" "conftest.in"
4763 cp "conftest.in" "conftest.nl"
4764 $as_echo '' >> "conftest.nl"
4765 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4766 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4767 as_fn_arith $ac_count + 1 && ac_count=$as_val
4768 if test $ac_count -gt ${ac_path_SED_max-0}; then
4769 # Best one so far, save it but keep looking for a better one
4770 ac_cv_path_SED="$ac_path_SED"
4771 ac_path_SED_max=$ac_count
4773 # 10*(2^10) chars as input seems more than enough
4774 test $ac_count -gt 10 && break
4776 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4779 $ac_path_SED_found && break 3
4784 if test -z "$ac_cv_path_SED"; then
4785 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4793 $as_echo "$ac_cv_path_SED" >&6; }
4794 SED="$ac_cv_path_SED"
4797 test -z "$SED" && SED=sed
4798 Xsed="$SED -e 1s/^X//"
4810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4811 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4812 if ${ac_cv_path_GREP+:} false; then :
4813 $as_echo_n "(cached) " >&6
4815 if test -z "$GREP"; then
4816 ac_path_GREP_found=false
4817 # Loop through the user's path and test for each of PROGNAME-LIST
4818 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4819 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4822 test -z "$as_dir" && as_dir=.
4823 for ac_prog in grep ggrep; do
4824 for ac_exec_ext in '' $ac_executable_extensions; do
4825 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4826 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4827 # Check for GNU ac_path_GREP and select it if it is found.
4828 # Check for GNU $ac_path_GREP
4829 case `"$ac_path_GREP" --version 2>&1` in
4831 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4834 $as_echo_n 0123456789 >"conftest.in"
4837 cat "conftest.in" "conftest.in" >"conftest.tmp"
4838 mv "conftest.tmp" "conftest.in"
4839 cp "conftest.in" "conftest.nl"
4840 $as_echo 'GREP' >> "conftest.nl"
4841 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4842 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4843 as_fn_arith $ac_count + 1 && ac_count=$as_val
4844 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4845 # Best one so far, save it but keep looking for a better one
4846 ac_cv_path_GREP="$ac_path_GREP"
4847 ac_path_GREP_max=$ac_count
4849 # 10*(2^10) chars as input seems more than enough
4850 test $ac_count -gt 10 && break
4852 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4855 $ac_path_GREP_found && break 3
4860 if test -z "$ac_cv_path_GREP"; then
4861 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4864 ac_cv_path_GREP=$GREP
4868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4869 $as_echo "$ac_cv_path_GREP" >&6; }
4870 GREP="$ac_cv_path_GREP"
4873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4874 $as_echo_n "checking for egrep... " >&6; }
4875 if ${ac_cv_path_EGREP+:} false; then :
4876 $as_echo_n "(cached) " >&6
4878 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4879 then ac_cv_path_EGREP="$GREP -E"
4881 if test -z "$EGREP"; then
4882 ac_path_EGREP_found=false
4883 # Loop through the user's path and test for each of PROGNAME-LIST
4884 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4885 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4888 test -z "$as_dir" && as_dir=.
4889 for ac_prog in egrep; do
4890 for ac_exec_ext in '' $ac_executable_extensions; do
4891 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4892 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4893 # Check for GNU ac_path_EGREP and select it if it is found.
4894 # Check for GNU $ac_path_EGREP
4895 case `"$ac_path_EGREP" --version 2>&1` in
4897 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4900 $as_echo_n 0123456789 >"conftest.in"
4903 cat "conftest.in" "conftest.in" >"conftest.tmp"
4904 mv "conftest.tmp" "conftest.in"
4905 cp "conftest.in" "conftest.nl"
4906 $as_echo 'EGREP' >> "conftest.nl"
4907 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4908 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4909 as_fn_arith $ac_count + 1 && ac_count=$as_val
4910 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4911 # Best one so far, save it but keep looking for a better one
4912 ac_cv_path_EGREP="$ac_path_EGREP"
4913 ac_path_EGREP_max=$ac_count
4915 # 10*(2^10) chars as input seems more than enough
4916 test $ac_count -gt 10 && break
4918 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4921 $ac_path_EGREP_found && break 3
4926 if test -z "$ac_cv_path_EGREP"; then
4927 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4930 ac_cv_path_EGREP=$EGREP
4935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4936 $as_echo "$ac_cv_path_EGREP" >&6; }
4937 EGREP="$ac_cv_path_EGREP"
4940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4941 $as_echo_n "checking for fgrep... " >&6; }
4942 if ${ac_cv_path_FGREP+:} false; then :
4943 $as_echo_n "(cached) " >&6
4945 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4946 then ac_cv_path_FGREP="$GREP -F"
4948 if test -z "$FGREP"; then
4949 ac_path_FGREP_found=false
4950 # Loop through the user's path and test for each of PROGNAME-LIST
4951 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4952 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4955 test -z "$as_dir" && as_dir=.
4956 for ac_prog in fgrep; do
4957 for ac_exec_ext in '' $ac_executable_extensions; do
4958 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4959 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4960 # Check for GNU ac_path_FGREP and select it if it is found.
4961 # Check for GNU $ac_path_FGREP
4962 case `"$ac_path_FGREP" --version 2>&1` in
4964 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4967 $as_echo_n 0123456789 >"conftest.in"
4970 cat "conftest.in" "conftest.in" >"conftest.tmp"
4971 mv "conftest.tmp" "conftest.in"
4972 cp "conftest.in" "conftest.nl"
4973 $as_echo 'FGREP' >> "conftest.nl"
4974 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4975 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4976 as_fn_arith $ac_count + 1 && ac_count=$as_val
4977 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4978 # Best one so far, save it but keep looking for a better one
4979 ac_cv_path_FGREP="$ac_path_FGREP"
4980 ac_path_FGREP_max=$ac_count
4982 # 10*(2^10) chars as input seems more than enough
4983 test $ac_count -gt 10 && break
4985 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4988 $ac_path_FGREP_found && break 3
4993 if test -z "$ac_cv_path_FGREP"; then
4994 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4997 ac_cv_path_FGREP=$FGREP
5002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5003 $as_echo "$ac_cv_path_FGREP" >&6; }
5004 FGREP="$ac_cv_path_FGREP"
5007 test -z "$GREP" && GREP=grep
5027 # Check whether --with-gnu-ld was given.
5028 if test "${with_gnu_ld+set}" = set; then :
5029 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5035 if test "$GCC" = yes; then
5036 # Check if gcc -print-prog-name=ld gives a path.
5037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5038 $as_echo_n "checking for ld used by $CC... " >&6; }
5041 # gcc leaves a trailing carriage return which upsets mingw
5042 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5044 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5047 # Accept absolute paths.
5049 re_direlt='/[^/][^/]*/\.\./'
5050 # Canonicalize the pathname of ld
5051 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5052 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5053 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5055 test -z "$LD" && LD="$ac_prog"
5058 # If it fails, then pretend we aren't using GCC.
5062 # If it is relative, then search for the first ld in PATH.
5066 elif test "$with_gnu_ld" = yes; then
5067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5068 $as_echo_n "checking for GNU ld... " >&6; }
5070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5071 $as_echo_n "checking for non-GNU ld... " >&6; }
5073 if ${lt_cv_path_LD+:} false; then :
5074 $as_echo_n "(cached) " >&6
5076 if test -z "$LD"; then
5077 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5078 for ac_dir in $PATH; do
5080 test -z "$ac_dir" && ac_dir=.
5081 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5082 lt_cv_path_LD="$ac_dir/$ac_prog"
5083 # Check to see if the program is GNU ld. I'd rather use --version,
5084 # but apparently some variants of GNU ld only accept -v.
5085 # Break only if it was the GNU/non-GNU ld that we prefer.
5086 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5087 *GNU* | *'with BFD'*)
5088 test "$with_gnu_ld" != no && break
5091 test "$with_gnu_ld" != yes && break
5098 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5103 if test -n "$LD"; then
5104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5105 $as_echo "$LD" >&6; }
5107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5108 $as_echo "no" >&6; }
5110 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5112 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5113 if ${lt_cv_prog_gnu_ld+:} false; then :
5114 $as_echo_n "(cached) " >&6
5116 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5117 case `$LD -v 2>&1 </dev/null` in
5118 *GNU* | *'with BFD'*)
5119 lt_cv_prog_gnu_ld=yes
5122 lt_cv_prog_gnu_ld=no
5126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5127 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5128 with_gnu_ld=$lt_cv_prog_gnu_ld
5138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5139 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5140 if ${lt_cv_path_NM+:} false; then :
5141 $as_echo_n "(cached) " >&6
5143 if test -n "$NM"; then
5144 # Let the user override the test.
5147 lt_nm_to_check="${ac_tool_prefix}nm"
5148 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5149 lt_nm_to_check="$lt_nm_to_check nm"
5151 for lt_tmp_nm in $lt_nm_to_check; do
5152 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5153 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5155 test -z "$ac_dir" && ac_dir=.
5156 tmp_nm="$ac_dir/$lt_tmp_nm"
5157 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5158 # Check to see if the nm accepts a BSD-compat flag.
5159 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5160 # nm: unknown option "B" ignored
5161 # Tru64's nm complains that /dev/null is an invalid object file
5162 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5163 */dev/null* | *'Invalid file or object type'*)
5164 lt_cv_path_NM="$tmp_nm -B"
5168 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5170 lt_cv_path_NM="$tmp_nm -p"
5174 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5175 continue # so that we can try to find one that supports BSD flags
5184 : ${lt_cv_path_NM=no}
5187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5188 $as_echo "$lt_cv_path_NM" >&6; }
5189 if test "$lt_cv_path_NM" != "no"; then
5192 # Didn't find any BSD compatible name lister, look for dumpbin.
5193 if test -n "$DUMPBIN"; then :
5194 # Let the user override the test.
5196 if test -n "$ac_tool_prefix"; then
5197 for ac_prog in dumpbin "link -dump"
5199 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5200 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5202 $as_echo_n "checking for $ac_word... " >&6; }
5203 if ${ac_cv_prog_DUMPBIN+:} false; then :
5204 $as_echo_n "(cached) " >&6
5206 if test -n "$DUMPBIN"; then
5207 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5209 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5213 test -z "$as_dir" && as_dir=.
5214 for ac_exec_ext in '' $ac_executable_extensions; do
5215 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5216 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5217 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5226 DUMPBIN=$ac_cv_prog_DUMPBIN
5227 if test -n "$DUMPBIN"; then
5228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5229 $as_echo "$DUMPBIN" >&6; }
5231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5232 $as_echo "no" >&6; }
5236 test -n "$DUMPBIN" && break
5239 if test -z "$DUMPBIN"; then
5240 ac_ct_DUMPBIN=$DUMPBIN
5241 for ac_prog in dumpbin "link -dump"
5243 # Extract the first word of "$ac_prog", so it can be a program name with args.
5244 set dummy $ac_prog; ac_word=$2
5245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5246 $as_echo_n "checking for $ac_word... " >&6; }
5247 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5248 $as_echo_n "(cached) " >&6
5250 if test -n "$ac_ct_DUMPBIN"; then
5251 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5253 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5257 test -z "$as_dir" && as_dir=.
5258 for ac_exec_ext in '' $ac_executable_extensions; do
5259 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5260 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5261 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5270 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5271 if test -n "$ac_ct_DUMPBIN"; then
5272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5273 $as_echo "$ac_ct_DUMPBIN" >&6; }
5275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5276 $as_echo "no" >&6; }
5280 test -n "$ac_ct_DUMPBIN" && break
5283 if test "x$ac_ct_DUMPBIN" = x; then
5286 case $cross_compiling:$ac_tool_warned in
5288 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5289 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5290 ac_tool_warned=yes ;;
5292 DUMPBIN=$ac_ct_DUMPBIN
5296 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5298 DUMPBIN="$DUMPBIN -symbols"
5306 if test "$DUMPBIN" != ":"; then
5310 test -z "$NM" && NM=nm
5317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5318 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5319 if ${lt_cv_nm_interface+:} false; then :
5320 $as_echo_n "(cached) " >&6
5322 lt_cv_nm_interface="BSD nm"
5323 echo "int some_variable = 0;" > conftest.$ac_ext
5324 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5325 (eval "$ac_compile" 2>conftest.err)
5326 cat conftest.err >&5
5327 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5328 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5329 cat conftest.err >&5
5330 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5331 cat conftest.out >&5
5332 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5333 lt_cv_nm_interface="MS dumpbin"
5337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5338 $as_echo "$lt_cv_nm_interface" >&6; }
5340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5341 $as_echo_n "checking whether ln -s works... " >&6; }
5343 if test "$LN_S" = "ln -s"; then
5344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5345 $as_echo "yes" >&6; }
5347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5348 $as_echo "no, using $LN_S" >&6; }
5351 # find the maximum length of command line arguments
5352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5353 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5354 if ${lt_cv_sys_max_cmd_len+:} false; then :
5355 $as_echo_n "(cached) " >&6
5362 # On DJGPP, this test can blow up pretty badly due to problems in libc
5363 # (any single argument exceeding 2000 bytes causes a buffer overrun
5364 # during glob expansion). Even if it were fixed, the result of this
5365 # check would be larger than it should be.
5366 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5370 # Under GNU Hurd, this test is not required because there is
5371 # no limit to the length of command line arguments.
5372 # Libtool will interpret -1 as no limit whatsoever
5373 lt_cv_sys_max_cmd_len=-1;
5376 cygwin* | mingw* | cegcc*)
5377 # On Win9x/ME, this test blows up -- it succeeds, but takes
5378 # about 5 minutes as the teststring grows exponentially.
5379 # Worse, since 9x/ME are not pre-emptively multitasking,
5380 # you end up with a "frozen" computer, even though with patience
5381 # the test eventually succeeds (with a max line length of 256k).
5382 # Instead, let's just punt: use the minimum linelength reported by
5383 # all of the supported platforms: 8192 (on NT/2K/XP).
5384 lt_cv_sys_max_cmd_len=8192;
5388 # On MiNT this can take a long time and run out of memory.
5389 lt_cv_sys_max_cmd_len=8192;
5393 # On AmigaOS with pdksh, this test takes hours, literally.
5394 # So we just punt and use a minimum line length of 8192.
5395 lt_cv_sys_max_cmd_len=8192;
5398 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5399 # This has been around since 386BSD, at least. Likely further.
5400 if test -x /sbin/sysctl; then
5401 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5402 elif test -x /usr/sbin/sysctl; then
5403 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5405 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5407 # And add a safety zone
5408 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5409 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5413 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5414 lt_cv_sys_max_cmd_len=196608
5418 # The test takes a long time on OS/2.
5419 lt_cv_sys_max_cmd_len=8192
5423 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5424 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5425 # nice to cause kernel panics so lets avoid the loop below.
5426 # First set a reasonable default.
5427 lt_cv_sys_max_cmd_len=16384
5429 if test -x /sbin/sysconfig; then
5430 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5431 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5436 lt_cv_sys_max_cmd_len=102400
5438 sysv5* | sco5v6* | sysv4.2uw2*)
5439 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5440 if test -n "$kargmax"; then
5441 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5443 lt_cv_sys_max_cmd_len=32768
5447 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5448 if test -n "$lt_cv_sys_max_cmd_len"; then
5449 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5450 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5452 # Make teststring a little bigger before we do anything with it.
5453 # a 1K string should be a reasonable start.
5454 for i in 1 2 3 4 5 6 7 8 ; do
5455 teststring=$teststring$teststring
5457 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5458 # If test is not a shell built-in, we'll probably end up computing a
5459 # maximum length that is only half of the actual maximum length, but
5461 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
5462 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5463 test $i != 17 # 1/2 MB should be enough
5466 teststring=$teststring$teststring
5468 # Only check the string length outside the loop.
5469 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5471 # Add a significant safety factor because C++ compilers can tack on
5472 # massive amounts of additional arguments before passing them to the
5473 # linker. It appears as though 1/2 is a usable value.
5474 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5481 if test -n $lt_cv_sys_max_cmd_len ; then
5482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5483 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5486 $as_echo "none" >&6; }
5488 max_cmd_len=$lt_cv_sys_max_cmd_len
5499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5500 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5501 # Try some XSI features
5504 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
5506 && eval 'test $(( 1 + 1 )) -eq 2 \
5507 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5510 $as_echo "$xsi_shell" >&6; }
5513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5514 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5516 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5518 && lt_shell_append=yes
5519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5520 $as_echo "$lt_shell_append" >&6; }
5523 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5533 # test EBCDIC or ASCII
5534 case `echo X|tr X '\101'` in
5535 A) # ASCII based system
5536 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5537 lt_SP2NL='tr \040 \012'
5538 lt_NL2SP='tr \015\012 \040\040'
5540 *) # EBCDIC based system
5541 lt_SP2NL='tr \100 \n'
5542 lt_NL2SP='tr \r\n \100\100'
5554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5555 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5556 if ${lt_cv_to_host_file_cmd+:} false; then :
5557 $as_echo_n "(cached) " >&6
5562 *-*-mingw* ) # actually msys
5563 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5566 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5568 * ) # otherwise, assume *nix
5569 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5575 *-*-mingw* ) # actually msys
5576 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5579 lt_cv_to_host_file_cmd=func_convert_file_noop
5581 * ) # otherwise, assume *nix
5582 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5586 * ) # unhandled hosts (and "normal" native builds)
5587 lt_cv_to_host_file_cmd=func_convert_file_noop
5593 to_host_file_cmd=$lt_cv_to_host_file_cmd
5594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5595 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
5601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5602 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5603 if ${lt_cv_to_tool_file_cmd+:} false; then :
5604 $as_echo_n "(cached) " >&6
5606 #assume ordinary cross tools, or native build.
5607 lt_cv_to_tool_file_cmd=func_convert_file_noop
5611 *-*-mingw* ) # actually msys
5612 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5620 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5622 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5629 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5630 if ${lt_cv_ld_reload_flag+:} false; then :
5631 $as_echo_n "(cached) " >&6
5633 lt_cv_ld_reload_flag='-r'
5635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5636 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5637 reload_flag=$lt_cv_ld_reload_flag
5638 case $reload_flag in
5640 *) reload_flag=" $reload_flag" ;;
5642 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5644 cygwin* | mingw* | pw32* | cegcc*)
5645 if test "$GCC" != yes; then
5650 if test "$GCC" = yes; then
5651 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5653 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5666 if test -n "$ac_tool_prefix"; then
5667 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5668 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5670 $as_echo_n "checking for $ac_word... " >&6; }
5671 if ${ac_cv_prog_OBJDUMP+:} false; then :
5672 $as_echo_n "(cached) " >&6
5674 if test -n "$OBJDUMP"; then
5675 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5677 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5681 test -z "$as_dir" && as_dir=.
5682 for ac_exec_ext in '' $ac_executable_extensions; do
5683 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5684 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5685 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5694 OBJDUMP=$ac_cv_prog_OBJDUMP
5695 if test -n "$OBJDUMP"; then
5696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5697 $as_echo "$OBJDUMP" >&6; }
5699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5700 $as_echo "no" >&6; }
5705 if test -z "$ac_cv_prog_OBJDUMP"; then
5706 ac_ct_OBJDUMP=$OBJDUMP
5707 # Extract the first word of "objdump", so it can be a program name with args.
5708 set dummy objdump; ac_word=$2
5709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5710 $as_echo_n "checking for $ac_word... " >&6; }
5711 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5712 $as_echo_n "(cached) " >&6
5714 if test -n "$ac_ct_OBJDUMP"; then
5715 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5717 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5721 test -z "$as_dir" && as_dir=.
5722 for ac_exec_ext in '' $ac_executable_extensions; do
5723 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5724 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5725 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5734 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5735 if test -n "$ac_ct_OBJDUMP"; then
5736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5737 $as_echo "$ac_ct_OBJDUMP" >&6; }
5739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5740 $as_echo "no" >&6; }
5743 if test "x$ac_ct_OBJDUMP" = x; then
5746 case $cross_compiling:$ac_tool_warned in
5748 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5749 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5750 ac_tool_warned=yes ;;
5752 OBJDUMP=$ac_ct_OBJDUMP
5755 OBJDUMP="$ac_cv_prog_OBJDUMP"
5758 test -z "$OBJDUMP" && OBJDUMP=objdump
5768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5769 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5770 if ${lt_cv_deplibs_check_method+:} false; then :
5771 $as_echo_n "(cached) " >&6
5773 lt_cv_file_magic_cmd='$MAGIC_CMD'
5774 lt_cv_file_magic_test_file=
5775 lt_cv_deplibs_check_method='unknown'
5776 # Need to set the preceding variable on all platforms that support
5777 # interlibrary dependencies.
5778 # 'none' -- dependencies not supported.
5779 # `unknown' -- same as none, but documents that we really don't know.
5780 # 'pass_all' -- all dependencies passed with no checks.
5781 # 'test_compile' -- check by making test program.
5782 # 'file_magic [[regex]]' -- check by looking for files in library path
5783 # which responds to the $file_magic_cmd with a given extended regex.
5784 # If you have `file' or equivalent on your system and you're not sure
5785 # whether `pass_all' will *always* work, you probably want this one.
5789 lt_cv_deplibs_check_method=pass_all
5793 lt_cv_deplibs_check_method=pass_all
5797 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5798 lt_cv_file_magic_cmd='/usr/bin/file -L'
5799 lt_cv_file_magic_test_file=/shlib/libc.so
5803 # func_win32_libid is a shell function defined in ltmain.sh
5804 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5805 lt_cv_file_magic_cmd='func_win32_libid'
5809 # Base MSYS/MinGW do not provide the 'file' command needed by
5810 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5811 # unless we find 'file', for example because we are cross-compiling.
5812 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5813 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5814 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5815 lt_cv_file_magic_cmd='func_win32_libid'
5817 # Keep this pattern in sync with the one in func_win32_libid.
5818 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5819 lt_cv_file_magic_cmd='$OBJDUMP -f'
5824 # use the weaker test based on 'objdump'. See mingw*.
5825 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5826 lt_cv_file_magic_cmd='$OBJDUMP -f'
5829 darwin* | rhapsody*)
5830 lt_cv_deplibs_check_method=pass_all
5833 freebsd* | dragonfly*)
5834 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5837 # Not sure whether the presence of OpenBSD here was a mistake.
5838 # Let's accept both of them until this is cleared up.
5839 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5840 lt_cv_file_magic_cmd=/usr/bin/file
5841 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5845 lt_cv_deplibs_check_method=pass_all
5850 lt_cv_deplibs_check_method=pass_all
5854 lt_cv_deplibs_check_method=pass_all
5857 hpux10.20* | hpux11*)
5858 lt_cv_file_magic_cmd=/usr/bin/file
5861 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5862 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5865 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]'
5866 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5869 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5870 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5876 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5877 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5880 irix5* | irix6* | nonstopux*)
5882 *-32|*"-32 ") libmagic=32-bit;;
5883 *-n32|*"-n32 ") libmagic=N32;;
5884 *-64|*"-64 ") libmagic=64-bit;;
5885 *) libmagic=never-match;;
5887 lt_cv_deplibs_check_method=pass_all
5890 # This must be glibc/ELF.
5891 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5892 lt_cv_deplibs_check_method=pass_all
5896 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5897 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5899 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5904 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5905 lt_cv_file_magic_cmd=/usr/bin/file
5906 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5910 lt_cv_deplibs_check_method=pass_all
5914 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5915 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5917 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5921 osf3* | osf4* | osf5*)
5922 lt_cv_deplibs_check_method=pass_all
5926 lt_cv_deplibs_check_method=pass_all
5930 lt_cv_deplibs_check_method=pass_all
5933 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5934 lt_cv_deplibs_check_method=pass_all
5938 case $host_vendor in
5940 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]'
5941 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5944 lt_cv_deplibs_check_method=pass_all
5947 lt_cv_file_magic_cmd='/bin/file'
5948 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5951 lt_cv_file_magic_cmd='/bin/file'
5952 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5953 lt_cv_file_magic_test_file=/lib/libc.so
5956 lt_cv_deplibs_check_method=pass_all
5959 lt_cv_deplibs_check_method=pass_all
5965 lt_cv_deplibs_check_method=pass_all
5970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5971 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5975 if test "$build" = "$host"; then
5978 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5981 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5987 file_magic_cmd=$lt_cv_file_magic_cmd
5988 deplibs_check_method=$lt_cv_deplibs_check_method
5989 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6012 if test -n "$ac_tool_prefix"; then
6013 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6014 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6016 $as_echo_n "checking for $ac_word... " >&6; }
6017 if ${ac_cv_prog_DLLTOOL+:} false; then :
6018 $as_echo_n "(cached) " >&6
6020 if test -n "$DLLTOOL"; then
6021 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6023 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6027 test -z "$as_dir" && as_dir=.
6028 for ac_exec_ext in '' $ac_executable_extensions; do
6029 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6030 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6031 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6040 DLLTOOL=$ac_cv_prog_DLLTOOL
6041 if test -n "$DLLTOOL"; then
6042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6043 $as_echo "$DLLTOOL" >&6; }
6045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6046 $as_echo "no" >&6; }
6051 if test -z "$ac_cv_prog_DLLTOOL"; then
6052 ac_ct_DLLTOOL=$DLLTOOL
6053 # Extract the first word of "dlltool", so it can be a program name with args.
6054 set dummy dlltool; ac_word=$2
6055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6056 $as_echo_n "checking for $ac_word... " >&6; }
6057 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6058 $as_echo_n "(cached) " >&6
6060 if test -n "$ac_ct_DLLTOOL"; then
6061 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6063 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6067 test -z "$as_dir" && as_dir=.
6068 for ac_exec_ext in '' $ac_executable_extensions; do
6069 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6070 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6071 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6080 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6081 if test -n "$ac_ct_DLLTOOL"; then
6082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6083 $as_echo "$ac_ct_DLLTOOL" >&6; }
6085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6086 $as_echo "no" >&6; }
6089 if test "x$ac_ct_DLLTOOL" = x; then
6092 case $cross_compiling:$ac_tool_warned in
6094 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6095 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6096 ac_tool_warned=yes ;;
6098 DLLTOOL=$ac_ct_DLLTOOL
6101 DLLTOOL="$ac_cv_prog_DLLTOOL"
6104 test -z "$DLLTOOL" && DLLTOOL=dlltool
6115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6116 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6117 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6118 $as_echo_n "(cached) " >&6
6120 lt_cv_sharedlib_from_linklib_cmd='unknown'
6123 cygwin* | mingw* | pw32* | cegcc*)
6124 # two different shell functions defined in ltmain.sh
6125 # decide which to use based on capabilities of $DLLTOOL
6126 case `$DLLTOOL --help 2>&1` in
6127 *--identify-strict*)
6128 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6131 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6136 # fallback: assume linklib IS sharedlib
6137 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
6142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6143 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6144 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6145 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6153 if test -n "$ac_tool_prefix"; then
6156 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6157 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6159 $as_echo_n "checking for $ac_word... " >&6; }
6160 if ${ac_cv_prog_AR+:} false; then :
6161 $as_echo_n "(cached) " >&6
6163 if test -n "$AR"; then
6164 ac_cv_prog_AR="$AR" # Let the user override the test.
6166 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6170 test -z "$as_dir" && as_dir=.
6171 for ac_exec_ext in '' $ac_executable_extensions; do
6172 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6173 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6174 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6184 if test -n "$AR"; then
6185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6186 $as_echo "$AR" >&6; }
6188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6189 $as_echo "no" >&6; }
6193 test -n "$AR" && break
6196 if test -z "$AR"; then
6200 # Extract the first word of "$ac_prog", so it can be a program name with args.
6201 set dummy $ac_prog; ac_word=$2
6202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6203 $as_echo_n "checking for $ac_word... " >&6; }
6204 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6205 $as_echo_n "(cached) " >&6
6207 if test -n "$ac_ct_AR"; then
6208 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6214 test -z "$as_dir" && as_dir=.
6215 for ac_exec_ext in '' $ac_executable_extensions; do
6216 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6217 ac_cv_prog_ac_ct_AR="$ac_prog"
6218 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6227 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6228 if test -n "$ac_ct_AR"; then
6229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6230 $as_echo "$ac_ct_AR" >&6; }
6232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6233 $as_echo "no" >&6; }
6237 test -n "$ac_ct_AR" && break
6240 if test "x$ac_ct_AR" = 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 ;;
6266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6267 $as_echo_n "checking for archiver @FILE support... " >&6; }
6268 if ${lt_cv_ar_at_file+:} false; then :
6269 $as_echo_n "(cached) " >&6
6272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6273 /* end confdefs.h. */
6275 #ifdef F77_DUMMY_MAIN
6280 int F77_DUMMY_MAIN() { return 1; }
6291 if ac_fn_c_try_compile "$LINENO"; then :
6292 echo conftest.$ac_objext > conftest.lst
6293 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6294 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6295 (eval $lt_ar_try) 2>&5
6297 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6298 test $ac_status = 0; }
6299 if test "$ac_status" -eq 0; then
6300 # Ensure the archiver fails upon bogus file names.
6301 rm -f conftest.$ac_objext libconftest.a
6302 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6303 (eval $lt_ar_try) 2>&5
6305 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6306 test $ac_status = 0; }
6307 if test "$ac_status" -ne 0; then
6311 rm -f conftest.* libconftest.a
6314 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6318 $as_echo "$lt_cv_ar_at_file" >&6; }
6320 if test "x$lt_cv_ar_at_file" = xno; then
6323 archiver_list_spec=$lt_cv_ar_at_file
6332 if test -n "$ac_tool_prefix"; then
6333 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6334 set dummy ${ac_tool_prefix}strip; ac_word=$2
6335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6336 $as_echo_n "checking for $ac_word... " >&6; }
6337 if ${ac_cv_prog_STRIP+:} false; then :
6338 $as_echo_n "(cached) " >&6
6340 if test -n "$STRIP"; then
6341 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6343 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6347 test -z "$as_dir" && as_dir=.
6348 for ac_exec_ext in '' $ac_executable_extensions; do
6349 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6350 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6351 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6360 STRIP=$ac_cv_prog_STRIP
6361 if test -n "$STRIP"; then
6362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6363 $as_echo "$STRIP" >&6; }
6365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6366 $as_echo "no" >&6; }
6371 if test -z "$ac_cv_prog_STRIP"; then
6373 # Extract the first word of "strip", so it can be a program name with args.
6374 set dummy strip; ac_word=$2
6375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6376 $as_echo_n "checking for $ac_word... " >&6; }
6377 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6378 $as_echo_n "(cached) " >&6
6380 if test -n "$ac_ct_STRIP"; then
6381 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6383 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6387 test -z "$as_dir" && as_dir=.
6388 for ac_exec_ext in '' $ac_executable_extensions; do
6389 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6390 ac_cv_prog_ac_ct_STRIP="strip"
6391 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6400 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6401 if test -n "$ac_ct_STRIP"; then
6402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6403 $as_echo "$ac_ct_STRIP" >&6; }
6405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6406 $as_echo "no" >&6; }
6409 if test "x$ac_ct_STRIP" = x; then
6412 case $cross_compiling:$ac_tool_warned in
6414 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6415 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6416 ac_tool_warned=yes ;;
6421 STRIP="$ac_cv_prog_STRIP"
6424 test -z "$STRIP" && STRIP=:
6431 if test -n "$ac_tool_prefix"; then
6432 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6433 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6435 $as_echo_n "checking for $ac_word... " >&6; }
6436 if ${ac_cv_prog_RANLIB+:} false; then :
6437 $as_echo_n "(cached) " >&6
6439 if test -n "$RANLIB"; then
6440 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6442 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6446 test -z "$as_dir" && as_dir=.
6447 for ac_exec_ext in '' $ac_executable_extensions; do
6448 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6449 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6450 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6459 RANLIB=$ac_cv_prog_RANLIB
6460 if test -n "$RANLIB"; then
6461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6462 $as_echo "$RANLIB" >&6; }
6464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6465 $as_echo "no" >&6; }
6470 if test -z "$ac_cv_prog_RANLIB"; then
6471 ac_ct_RANLIB=$RANLIB
6472 # Extract the first word of "ranlib", so it can be a program name with args.
6473 set dummy ranlib; ac_word=$2
6474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6475 $as_echo_n "checking for $ac_word... " >&6; }
6476 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6477 $as_echo_n "(cached) " >&6
6479 if test -n "$ac_ct_RANLIB"; then
6480 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6482 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6486 test -z "$as_dir" && as_dir=.
6487 for ac_exec_ext in '' $ac_executable_extensions; do
6488 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6489 ac_cv_prog_ac_ct_RANLIB="ranlib"
6490 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6499 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6500 if test -n "$ac_ct_RANLIB"; then
6501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6502 $as_echo "$ac_ct_RANLIB" >&6; }
6504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6505 $as_echo "no" >&6; }
6508 if test "x$ac_ct_RANLIB" = x; then
6511 case $cross_compiling:$ac_tool_warned in
6513 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6514 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6515 ac_tool_warned=yes ;;
6517 RANLIB=$ac_ct_RANLIB
6520 RANLIB="$ac_cv_prog_RANLIB"
6523 test -z "$RANLIB" && RANLIB=:
6530 # Determine commands to create old-style static archives.
6531 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6532 old_postinstall_cmds='chmod 644 $oldlib'
6533 old_postuninstall_cmds=
6535 if test -n "$RANLIB"; then
6538 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6541 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6544 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6549 lock_old_archive_extraction=yes ;;
6551 lock_old_archive_extraction=no ;;
6592 # If no C compiler was specified, use CC.
6595 # If no C compiler flags were specified, use CFLAGS.
6596 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6598 # Allow CC to be a program name with arguments.
6602 # Check for command to grab the raw symbol name followed by C symbol from nm.
6603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6604 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6605 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6606 $as_echo_n "(cached) " >&6
6609 # These are sane defaults that work on at least a few old systems.
6610 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6612 # Character class describing NM global symbol codes.
6613 symcode='[BCDEGRST]'
6615 # Regexp to match symbols that can be accessed directly from C.
6616 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6618 # Define system-specific variables.
6623 cygwin* | mingw* | pw32* | cegcc*)
6624 symcode='[ABCDGISTW]'
6627 if test "$host_cpu" = ia64; then
6628 symcode='[ABCDEGRST]'
6632 symcode='[BCDEGRST]'
6635 symcode='[BCDEGQRST]'
6646 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6654 # If we're using GNU nm, then use its standard symbol codes.
6655 case `$NM -V 2>&1` in
6656 *GNU* | *'with BFD'*)
6657 symcode='[ABCDGIRSTW]' ;;
6660 # Transform an extracted symbol line into a proper C declaration.
6661 # Some systems (esp. on ia64) link data and code symbols differently,
6662 # so use this general approach.
6663 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6665 # Transform an extracted symbol line into symbol name and symbol address
6666 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6667 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'"
6669 # Handle CRLF in mingw tool chain
6673 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6677 # Try without a prefix underscore, then with it.
6678 for ac_symprfx in "" "_"; do
6680 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6681 symxfrm="\\1 $ac_symprfx\\2 \\2"
6683 # Write the raw and C identifiers.
6684 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6685 # Fake it for dumpbin and say T for any non-static function
6686 # and D for any global variable.
6687 # Also find C++ and __fastcall symbols from MSVC++,
6688 # which start with @ or ?.
6689 lt_cv_sys_global_symbol_pipe="$AWK '"\
6690 " {last_section=section; section=\$ 3};"\
6691 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6692 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6693 " \$ 0!~/External *\|/{next};"\
6694 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6695 " {if(hide[section]) next};"\
6696 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6697 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6698 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6699 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6700 " ' prfx=^$ac_symprfx"
6702 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6704 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6706 # Check to see that the pipe works correctly.
6710 cat > conftest.$ac_ext <<_LT_EOF
6715 void nm_test_func(void);
6716 void nm_test_func(void){}
6720 int main(){nm_test_var='a';nm_test_func();return(0);}
6723 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6724 (eval $ac_compile) 2>&5
6726 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6727 test $ac_status = 0; }; then
6728 # Now try to grab the symbols.
6730 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6731 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6733 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6734 test $ac_status = 0; } && test -s "$nlist"; then
6735 # Try sorting and uniquifying the output.
6736 if sort "$nlist" | uniq > "$nlist"T; then
6737 mv -f "$nlist"T "$nlist"
6742 # Make sure that we snagged all the symbols we need.
6743 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6744 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6745 cat <<_LT_EOF > conftest.$ac_ext
6746 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
6747 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
6748 /* DATA imports from DLLs on WIN32 con't be const, because runtime
6749 relocations are performed -- see ld's documentation on pseudo-relocs. */
6750 # define LT_DLSYM_CONST
6751 #elif defined(__osf__)
6752 /* This system does not cope well with relocations in const data. */
6753 # define LT_DLSYM_CONST
6755 # define LT_DLSYM_CONST const
6763 # Now generate the symbol file.
6764 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6766 cat <<_LT_EOF >> conftest.$ac_ext
6768 /* The mapping between symbol names and symbols. */
6769 LT_DLSYM_CONST struct {
6773 lt__PROGRAM__LTX_preloaded_symbols[] =
6775 { "@PROGRAM@", (void *) 0 },
6777 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6778 cat <<\_LT_EOF >> conftest.$ac_ext
6782 /* This works around a problem in FreeBSD linker */
6783 #ifdef FREEBSD_WORKAROUND
6784 static const void *lt_preloaded_setup() {
6785 return lt__PROGRAM__LTX_preloaded_symbols;
6793 # Now try linking the two files.
6794 mv conftest.$ac_objext conftstm.$ac_objext
6795 lt_globsym_save_LIBS=$LIBS
6796 lt_globsym_save_CFLAGS=$CFLAGS
6797 LIBS="conftstm.$ac_objext"
6798 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6799 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6800 (eval $ac_link) 2>&5
6802 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6803 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6806 LIBS=$lt_globsym_save_LIBS
6807 CFLAGS=$lt_globsym_save_CFLAGS
6809 echo "cannot find nm_test_func in $nlist" >&5
6812 echo "cannot find nm_test_var in $nlist" >&5
6815 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6818 echo "$progname: failed program was:" >&5
6819 cat conftest.$ac_ext >&5
6821 rm -rf conftest* conftst*
6823 # Do not use the global_symbol_pipe unless it works.
6824 if test "$pipe_works" = yes; then
6827 lt_cv_sys_global_symbol_pipe=
6833 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6834 lt_cv_sys_global_symbol_to_cdecl=
6836 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6838 $as_echo "failed" >&6; }
6840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6841 $as_echo "ok" >&6; }
6844 # Response file support.
6845 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6846 nm_file_list_spec='@'
6847 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6848 nm_file_list_spec='@'
6877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6878 $as_echo_n "checking for sysroot... " >&6; }
6880 # Check whether --with-sysroot was given.
6881 if test "${with_sysroot+set}" = set; then :
6882 withval=$with_sysroot;
6889 case ${with_sysroot} in #(
6891 if test "$GCC" = yes; then
6892 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6896 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
6902 $as_echo "${with_sysroot}" >&6; }
6903 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6908 $as_echo "${lt_sysroot:-no}" >&6; }
6914 # Check whether --enable-libtool-lock was given.
6915 if test "${enable_libtool_lock+set}" = set; then :
6916 enableval=$enable_libtool_lock;
6919 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6921 # Some flags need to be propagated to the compiler or linker for good
6925 # Find out which ABI we are using.
6926 echo 'int i;' > conftest.$ac_ext
6927 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6928 (eval $ac_compile) 2>&5
6930 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6931 test $ac_status = 0; }; then
6932 case `/usr/bin/file conftest.$ac_objext` in
6944 # Find out which ABI we are using.
6945 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6946 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6947 (eval $ac_compile) 2>&5
6949 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6950 test $ac_status = 0; }; then
6951 if test "$lt_cv_prog_gnu_ld" = yes; then
6952 case `/usr/bin/file conftest.$ac_objext` in
6954 LD="${LD-ld} -melf32bsmip"
6957 LD="${LD-ld} -melf32bmipn32"
6960 LD="${LD-ld} -melf64bmip"
6964 case `/usr/bin/file conftest.$ac_objext` in
6980 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6981 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6982 # Find out which ABI we are using.
6983 echo 'int i;' > conftest.$ac_ext
6984 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6985 (eval $ac_compile) 2>&5
6987 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6988 test $ac_status = 0; }; then
6989 case `/usr/bin/file conftest.o` in
6992 x86_64-*kfreebsd*-gnu)
6993 LD="${LD-ld} -m elf_i386_fbsd"
6996 LD="${LD-ld} -m elf_i386"
6998 ppc64-*linux*|powerpc64-*linux*)
6999 LD="${LD-ld} -m elf32ppclinux"
7002 LD="${LD-ld} -m elf_s390"
7005 LD="${LD-ld} -m elf32_sparc"
7011 x86_64-*kfreebsd*-gnu)
7012 LD="${LD-ld} -m elf_x86_64_fbsd"
7015 LD="${LD-ld} -m elf_x86_64"
7017 ppc*-*linux*|powerpc*-*linux*)
7018 LD="${LD-ld} -m elf64ppc"
7020 s390*-*linux*|s390*-*tpf*)
7021 LD="${LD-ld} -m elf64_s390"
7024 LD="${LD-ld} -m elf64_sparc"
7034 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7035 SAVE_CFLAGS="$CFLAGS"
7036 CFLAGS="$CFLAGS -belf"
7037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7038 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7039 if ${lt_cv_cc_needs_belf+:} false; then :
7040 $as_echo_n "(cached) " >&6
7043 ac_cpp='$CPP $CPPFLAGS'
7044 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7045 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7046 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7048 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7049 /* end confdefs.h. */
7051 #ifdef F77_DUMMY_MAIN
7056 int F77_DUMMY_MAIN() { return 1; }
7067 if ac_fn_c_try_link "$LINENO"; then :
7068 lt_cv_cc_needs_belf=yes
7070 lt_cv_cc_needs_belf=no
7072 rm -f core conftest.err conftest.$ac_objext \
7073 conftest$ac_exeext conftest.$ac_ext
7075 ac_cpp='$CPP $CPPFLAGS'
7076 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7077 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7078 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7082 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7083 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7084 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7085 CFLAGS="$SAVE_CFLAGS"
7089 # Find out which ABI we are using.
7090 echo 'int i;' > conftest.$ac_ext
7091 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7092 (eval $ac_compile) 2>&5
7094 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7095 test $ac_status = 0; }; then
7096 case `/usr/bin/file conftest.o` in
7098 case $lt_cv_prog_gnu_ld in
7102 LD="${LD-ld} -m elf_x86_64"
7105 LD="${LD-ld} -m elf64_sparc"
7108 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
7109 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7114 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7126 need_locks="$enable_libtool_lock"
7128 if test -n "$ac_tool_prefix"; then
7129 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7130 set dummy ${ac_tool_prefix}mt; ac_word=$2
7131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7132 $as_echo_n "checking for $ac_word... " >&6; }
7133 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7134 $as_echo_n "(cached) " >&6
7136 if test -n "$MANIFEST_TOOL"; then
7137 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7139 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7143 test -z "$as_dir" && as_dir=.
7144 for ac_exec_ext in '' $ac_executable_extensions; do
7145 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7146 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7147 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7156 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7157 if test -n "$MANIFEST_TOOL"; then
7158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7159 $as_echo "$MANIFEST_TOOL" >&6; }
7161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7162 $as_echo "no" >&6; }
7167 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7168 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7169 # Extract the first word of "mt", so it can be a program name with args.
7170 set dummy mt; ac_word=$2
7171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7172 $as_echo_n "checking for $ac_word... " >&6; }
7173 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7174 $as_echo_n "(cached) " >&6
7176 if test -n "$ac_ct_MANIFEST_TOOL"; then
7177 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7179 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7183 test -z "$as_dir" && as_dir=.
7184 for ac_exec_ext in '' $ac_executable_extensions; do
7185 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7186 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7187 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7196 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7197 if test -n "$ac_ct_MANIFEST_TOOL"; then
7198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7199 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7202 $as_echo "no" >&6; }
7205 if test "x$ac_ct_MANIFEST_TOOL" = x; then
7208 case $cross_compiling:$ac_tool_warned in
7210 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7211 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7212 ac_tool_warned=yes ;;
7214 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7217 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7220 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7222 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7223 if ${lt_cv_path_mainfest_tool+:} false; then :
7224 $as_echo_n "(cached) " >&6
7226 lt_cv_path_mainfest_tool=no
7227 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7228 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7229 cat conftest.err >&5
7230 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7231 lt_cv_path_mainfest_tool=yes
7235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7236 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
7237 if test "x$lt_cv_path_mainfest_tool" != xyes; then
7247 rhapsody* | darwin*)
7248 if test -n "$ac_tool_prefix"; then
7249 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7250 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7252 $as_echo_n "checking for $ac_word... " >&6; }
7253 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7254 $as_echo_n "(cached) " >&6
7256 if test -n "$DSYMUTIL"; then
7257 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7259 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7263 test -z "$as_dir" && as_dir=.
7264 for ac_exec_ext in '' $ac_executable_extensions; do
7265 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7266 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7267 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7276 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7277 if test -n "$DSYMUTIL"; then
7278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7279 $as_echo "$DSYMUTIL" >&6; }
7281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7282 $as_echo "no" >&6; }
7287 if test -z "$ac_cv_prog_DSYMUTIL"; then
7288 ac_ct_DSYMUTIL=$DSYMUTIL
7289 # Extract the first word of "dsymutil", so it can be a program name with args.
7290 set dummy dsymutil; ac_word=$2
7291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7292 $as_echo_n "checking for $ac_word... " >&6; }
7293 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7294 $as_echo_n "(cached) " >&6
7296 if test -n "$ac_ct_DSYMUTIL"; then
7297 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7299 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7303 test -z "$as_dir" && as_dir=.
7304 for ac_exec_ext in '' $ac_executable_extensions; do
7305 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7306 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7307 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7316 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7317 if test -n "$ac_ct_DSYMUTIL"; then
7318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7319 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7322 $as_echo "no" >&6; }
7325 if test "x$ac_ct_DSYMUTIL" = x; then
7328 case $cross_compiling:$ac_tool_warned in
7330 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7331 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7332 ac_tool_warned=yes ;;
7334 DSYMUTIL=$ac_ct_DSYMUTIL
7337 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7340 if test -n "$ac_tool_prefix"; then
7341 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7342 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7344 $as_echo_n "checking for $ac_word... " >&6; }
7345 if ${ac_cv_prog_NMEDIT+:} false; then :
7346 $as_echo_n "(cached) " >&6
7348 if test -n "$NMEDIT"; then
7349 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7351 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7355 test -z "$as_dir" && as_dir=.
7356 for ac_exec_ext in '' $ac_executable_extensions; do
7357 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7358 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7359 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7368 NMEDIT=$ac_cv_prog_NMEDIT
7369 if test -n "$NMEDIT"; then
7370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7371 $as_echo "$NMEDIT" >&6; }
7373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7374 $as_echo "no" >&6; }
7379 if test -z "$ac_cv_prog_NMEDIT"; then
7380 ac_ct_NMEDIT=$NMEDIT
7381 # Extract the first word of "nmedit", so it can be a program name with args.
7382 set dummy nmedit; ac_word=$2
7383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7384 $as_echo_n "checking for $ac_word... " >&6; }
7385 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7386 $as_echo_n "(cached) " >&6
7388 if test -n "$ac_ct_NMEDIT"; then
7389 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7391 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7395 test -z "$as_dir" && as_dir=.
7396 for ac_exec_ext in '' $ac_executable_extensions; do
7397 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7398 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7399 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7408 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7409 if test -n "$ac_ct_NMEDIT"; then
7410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7411 $as_echo "$ac_ct_NMEDIT" >&6; }
7413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7414 $as_echo "no" >&6; }
7417 if test "x$ac_ct_NMEDIT" = x; then
7420 case $cross_compiling:$ac_tool_warned in
7422 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7423 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7424 ac_tool_warned=yes ;;
7426 NMEDIT=$ac_ct_NMEDIT
7429 NMEDIT="$ac_cv_prog_NMEDIT"
7432 if test -n "$ac_tool_prefix"; then
7433 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7434 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7436 $as_echo_n "checking for $ac_word... " >&6; }
7437 if ${ac_cv_prog_LIPO+:} false; then :
7438 $as_echo_n "(cached) " >&6
7440 if test -n "$LIPO"; then
7441 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7443 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7447 test -z "$as_dir" && as_dir=.
7448 for ac_exec_ext in '' $ac_executable_extensions; do
7449 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7450 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7451 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7460 LIPO=$ac_cv_prog_LIPO
7461 if test -n "$LIPO"; then
7462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7463 $as_echo "$LIPO" >&6; }
7465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7466 $as_echo "no" >&6; }
7471 if test -z "$ac_cv_prog_LIPO"; then
7473 # Extract the first word of "lipo", so it can be a program name with args.
7474 set dummy lipo; ac_word=$2
7475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7476 $as_echo_n "checking for $ac_word... " >&6; }
7477 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7478 $as_echo_n "(cached) " >&6
7480 if test -n "$ac_ct_LIPO"; then
7481 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7483 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7487 test -z "$as_dir" && as_dir=.
7488 for ac_exec_ext in '' $ac_executable_extensions; do
7489 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7490 ac_cv_prog_ac_ct_LIPO="lipo"
7491 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7500 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7501 if test -n "$ac_ct_LIPO"; then
7502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7503 $as_echo "$ac_ct_LIPO" >&6; }
7505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7506 $as_echo "no" >&6; }
7509 if test "x$ac_ct_LIPO" = x; then
7512 case $cross_compiling:$ac_tool_warned in
7514 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7515 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7516 ac_tool_warned=yes ;;
7521 LIPO="$ac_cv_prog_LIPO"
7524 if test -n "$ac_tool_prefix"; then
7525 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7526 set dummy ${ac_tool_prefix}otool; ac_word=$2
7527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7528 $as_echo_n "checking for $ac_word... " >&6; }
7529 if ${ac_cv_prog_OTOOL+:} false; then :
7530 $as_echo_n "(cached) " >&6
7532 if test -n "$OTOOL"; then
7533 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7535 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7539 test -z "$as_dir" && as_dir=.
7540 for ac_exec_ext in '' $ac_executable_extensions; do
7541 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7542 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7543 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7552 OTOOL=$ac_cv_prog_OTOOL
7553 if test -n "$OTOOL"; then
7554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7555 $as_echo "$OTOOL" >&6; }
7557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7558 $as_echo "no" >&6; }
7563 if test -z "$ac_cv_prog_OTOOL"; then
7565 # Extract the first word of "otool", so it can be a program name with args.
7566 set dummy otool; ac_word=$2
7567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7568 $as_echo_n "checking for $ac_word... " >&6; }
7569 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7570 $as_echo_n "(cached) " >&6
7572 if test -n "$ac_ct_OTOOL"; then
7573 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7575 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7579 test -z "$as_dir" && as_dir=.
7580 for ac_exec_ext in '' $ac_executable_extensions; do
7581 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7582 ac_cv_prog_ac_ct_OTOOL="otool"
7583 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7592 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7593 if test -n "$ac_ct_OTOOL"; then
7594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7595 $as_echo "$ac_ct_OTOOL" >&6; }
7597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7598 $as_echo "no" >&6; }
7601 if test "x$ac_ct_OTOOL" = x; then
7604 case $cross_compiling:$ac_tool_warned in
7606 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7607 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7608 ac_tool_warned=yes ;;
7613 OTOOL="$ac_cv_prog_OTOOL"
7616 if test -n "$ac_tool_prefix"; then
7617 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7618 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7620 $as_echo_n "checking for $ac_word... " >&6; }
7621 if ${ac_cv_prog_OTOOL64+:} false; then :
7622 $as_echo_n "(cached) " >&6
7624 if test -n "$OTOOL64"; then
7625 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7627 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7631 test -z "$as_dir" && as_dir=.
7632 for ac_exec_ext in '' $ac_executable_extensions; do
7633 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7634 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7635 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7644 OTOOL64=$ac_cv_prog_OTOOL64
7645 if test -n "$OTOOL64"; then
7646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7647 $as_echo "$OTOOL64" >&6; }
7649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7650 $as_echo "no" >&6; }
7655 if test -z "$ac_cv_prog_OTOOL64"; then
7656 ac_ct_OTOOL64=$OTOOL64
7657 # Extract the first word of "otool64", so it can be a program name with args.
7658 set dummy otool64; ac_word=$2
7659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7660 $as_echo_n "checking for $ac_word... " >&6; }
7661 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7662 $as_echo_n "(cached) " >&6
7664 if test -n "$ac_ct_OTOOL64"; then
7665 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7667 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7671 test -z "$as_dir" && as_dir=.
7672 for ac_exec_ext in '' $ac_executable_extensions; do
7673 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7674 ac_cv_prog_ac_ct_OTOOL64="otool64"
7675 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7684 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7685 if test -n "$ac_ct_OTOOL64"; then
7686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7687 $as_echo "$ac_ct_OTOOL64" >&6; }
7689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7690 $as_echo "no" >&6; }
7693 if test "x$ac_ct_OTOOL64" = x; then
7696 case $cross_compiling:$ac_tool_warned in
7698 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7699 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7700 ac_tool_warned=yes ;;
7702 OTOOL64=$ac_ct_OTOOL64
7705 OTOOL64="$ac_cv_prog_OTOOL64"
7734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7735 $as_echo_n "checking for -single_module linker flag... " >&6; }
7736 if ${lt_cv_apple_cc_single_mod+:} false; then :
7737 $as_echo_n "(cached) " >&6
7739 lt_cv_apple_cc_single_mod=no
7740 if test -z "${LT_MULTI_MODULE}"; then
7741 # By default we will add the -single_module flag. You can override
7742 # by either setting the environment variable LT_MULTI_MODULE
7743 # non-empty at configure time, or by adding -multi_module to the
7745 rm -rf libconftest.dylib*
7746 echo "int foo(void){return 1;}" > conftest.c
7747 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7748 -dynamiclib -Wl,-single_module conftest.c" >&5
7749 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7750 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7752 # If there is a non-empty error log, and "single_module"
7753 # appears in it, assume the flag caused a linker warning
7754 if test -s conftest.err && $GREP single_module conftest.err; then
7755 cat conftest.err >&5
7756 # Otherwise, if the output was created with a 0 exit code from
7757 # the compiler, it worked.
7758 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
7759 lt_cv_apple_cc_single_mod=yes
7761 cat conftest.err >&5
7763 rm -rf libconftest.dylib*
7767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7768 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7771 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7772 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7773 $as_echo_n "(cached) " >&6
7775 lt_cv_ld_exported_symbols_list=no
7776 save_LDFLAGS=$LDFLAGS
7777 echo "_main" > conftest.sym
7778 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7779 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7780 /* end confdefs.h. */
7782 #ifdef F77_DUMMY_MAIN
7787 int F77_DUMMY_MAIN() { return 1; }
7798 if ac_fn_c_try_link "$LINENO"; then :
7799 lt_cv_ld_exported_symbols_list=yes
7801 lt_cv_ld_exported_symbols_list=no
7803 rm -f core conftest.err conftest.$ac_objext \
7804 conftest$ac_exeext conftest.$ac_ext
7805 LDFLAGS="$save_LDFLAGS"
7808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7809 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7812 $as_echo_n "checking for -force_load linker flag... " >&6; }
7813 if ${lt_cv_ld_force_load+:} false; then :
7814 $as_echo_n "(cached) " >&6
7816 lt_cv_ld_force_load=no
7817 cat > conftest.c << _LT_EOF
7818 int forced_loaded() { return 2;}
7820 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7821 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7822 echo "$AR cru libconftest.a conftest.o" >&5
7823 $AR cru libconftest.a conftest.o 2>&5
7824 echo "$RANLIB libconftest.a" >&5
7825 $RANLIB libconftest.a 2>&5
7826 cat > conftest.c << _LT_EOF
7827 int main() { return 0;}
7829 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7830 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7832 if test -s conftest.err && $GREP force_load conftest.err; then
7833 cat conftest.err >&5
7834 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
7835 lt_cv_ld_force_load=yes
7837 cat conftest.err >&5
7839 rm -f conftest.err libconftest.a conftest conftest.c
7840 rm -rf conftest.dSYM
7843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7844 $as_echo "$lt_cv_ld_force_load" >&6; }
7846 rhapsody* | darwin1.[012])
7847 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7849 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7850 darwin*) # darwin 5.x on
7851 # if running on 10.5 or later, the deployment target defaults
7852 # to the OS version, if on x86, and 10.4, the deployment
7853 # target defaults to 10.4. Don't you love it?
7854 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7855 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7856 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7858 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7860 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7864 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7865 _lt_dar_single_mod='$single_module'
7867 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7868 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7870 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7872 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7873 _lt_dsymutil='~$DSYMUTIL $lib || :'
7881 ac_cpp='$CPP $CPPFLAGS'
7882 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7883 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7884 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7886 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7887 # On Suns, sometimes $CPP names a directory.
7888 if test -n "$CPP" && test -d "$CPP"; then
7891 if test -z "$CPP"; then
7892 if ${ac_cv_prog_CPP+:} false; then :
7893 $as_echo_n "(cached) " >&6
7895 # Double quotes because CPP needs to be expanded
7896 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7899 for ac_c_preproc_warn_flag in '' yes
7901 # Use a header file that comes with gcc, so configuring glibc
7902 # with a fresh cross-compiler works.
7903 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7904 # <limits.h> exists even on freestanding compilers.
7905 # On the NeXT, cc -E runs the code through the compiler's parser,
7906 # not just through cpp. "Syntax error" is here to catch this case.
7907 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7908 /* end confdefs.h. */
7910 # include <limits.h>
7912 # include <assert.h>
7916 if ac_fn_c_try_cpp "$LINENO"; then :
7919 # Broken: fails on valid input.
7922 rm -f conftest.err conftest.i conftest.$ac_ext
7924 # OK, works on sane cases. Now check whether nonexistent headers
7925 # can be detected and how.
7926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7927 /* end confdefs.h. */
7928 #include <ac_nonexistent.h>
7930 if ac_fn_c_try_cpp "$LINENO"; then :
7931 # Broken: success on invalid input.
7934 # Passes both tests.
7938 rm -f conftest.err conftest.i conftest.$ac_ext
7941 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7942 rm -f conftest.i conftest.err conftest.$ac_ext
7943 if $ac_preproc_ok; then :
7955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7956 $as_echo "$CPP" >&6; }
7958 for ac_c_preproc_warn_flag in '' yes
7960 # Use a header file that comes with gcc, so configuring glibc
7961 # with a fresh cross-compiler works.
7962 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7963 # <limits.h> exists even on freestanding compilers.
7964 # On the NeXT, cc -E runs the code through the compiler's parser,
7965 # not just through cpp. "Syntax error" is here to catch this case.
7966 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7967 /* end confdefs.h. */
7969 # include <limits.h>
7971 # include <assert.h>
7975 if ac_fn_c_try_cpp "$LINENO"; then :
7978 # Broken: fails on valid input.
7981 rm -f conftest.err conftest.i conftest.$ac_ext
7983 # OK, works on sane cases. Now check whether nonexistent headers
7984 # can be detected and how.
7985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7986 /* end confdefs.h. */
7987 #include <ac_nonexistent.h>
7989 if ac_fn_c_try_cpp "$LINENO"; then :
7990 # Broken: success on invalid input.
7993 # Passes both tests.
7997 rm -f conftest.err conftest.i conftest.$ac_ext
8000 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8001 rm -f conftest.i conftest.err conftest.$ac_ext
8002 if $ac_preproc_ok; then :
8005 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8006 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8007 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
8008 See \`config.log' for more details" "$LINENO" 5; }
8012 ac_cpp='$CPP $CPPFLAGS'
8013 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8014 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8015 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8019 $as_echo_n "checking for ANSI C header files... " >&6; }
8020 if ${ac_cv_header_stdc+:} false; then :
8021 $as_echo_n "(cached) " >&6
8023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8024 /* end confdefs.h. */
8030 #ifdef F77_DUMMY_MAIN
8035 int F77_DUMMY_MAIN() { return 1; }
8046 if ac_fn_c_try_compile "$LINENO"; then :
8047 ac_cv_header_stdc=yes
8049 ac_cv_header_stdc=no
8051 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8053 if test $ac_cv_header_stdc = yes; then
8054 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8055 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8056 /* end confdefs.h. */
8060 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8061 $EGREP "memchr" >/dev/null 2>&1; then :
8064 ac_cv_header_stdc=no
8070 if test $ac_cv_header_stdc = yes; then
8071 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8073 /* end confdefs.h. */
8077 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8078 $EGREP "free" >/dev/null 2>&1; then :
8081 ac_cv_header_stdc=no
8087 if test $ac_cv_header_stdc = yes; then
8088 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8089 if test "$cross_compiling" = yes; then :
8092 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8093 /* end confdefs.h. */
8096 #if ((' ' & 0x0FF) == 0x020)
8097 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8098 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8100 # define ISLOWER(c) \
8101 (('a' <= (c) && (c) <= 'i') \
8102 || ('j' <= (c) && (c) <= 'r') \
8103 || ('s' <= (c) && (c) <= 'z'))
8104 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8107 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8112 for (i = 0; i < 256; i++)
8113 if (XOR (islower (i), ISLOWER (i))
8114 || toupper (i) != TOUPPER (i))
8119 if ac_fn_c_try_run "$LINENO"; then :
8122 ac_cv_header_stdc=no
8124 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8125 conftest.$ac_objext conftest.beam conftest.$ac_ext
8130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8131 $as_echo "$ac_cv_header_stdc" >&6; }
8132 if test $ac_cv_header_stdc = yes; then
8134 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8138 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8139 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8140 inttypes.h stdint.h unistd.h
8142 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8143 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8145 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8146 cat >>confdefs.h <<_ACEOF
8147 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8155 for ac_header in dlfcn.h
8157 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8159 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8160 cat >>confdefs.h <<_ACEOF
8161 #define HAVE_DLFCN_H 1
8182 # Check whether --enable-shared was given.
8183 if test "${enable_shared+set}" = set; then :
8184 enableval=$enable_shared; p=${PACKAGE-default}
8186 yes) enable_shared=yes ;;
8187 no) enable_shared=no ;;
8190 # Look at the argument we got. We use all the common list separators.
8191 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8192 for pkg in $enableval; do
8194 if test "X$pkg" = "X$p"; then
8213 # Check whether --enable-static was given.
8214 if test "${enable_static+set}" = set; then :
8215 enableval=$enable_static; p=${PACKAGE-default}
8217 yes) enable_static=yes ;;
8218 no) enable_static=no ;;
8221 # Look at the argument we got. We use all the common list separators.
8222 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8223 for pkg in $enableval; do
8225 if test "X$pkg" = "X$p"; then
8245 # Check whether --with-pic was given.
8246 if test "${with_pic+set}" = set; then :
8247 withval=$with_pic; lt_p=${PACKAGE-default}
8249 yes|no) pic_mode=$withval ;;
8252 # Look at the argument we got. We use all the common list separators.
8253 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8254 for lt_pkg in $withval; do
8256 if test "X$lt_pkg" = "X$lt_p"; then
8268 test -z "$pic_mode" && pic_mode=default
8276 # Check whether --enable-fast-install was given.
8277 if test "${enable_fast_install+set}" = set; then :
8278 enableval=$enable_fast_install; p=${PACKAGE-default}
8280 yes) enable_fast_install=yes ;;
8281 no) enable_fast_install=no ;;
8283 enable_fast_install=no
8284 # Look at the argument we got. We use all the common list separators.
8285 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8286 for pkg in $enableval; do
8288 if test "X$pkg" = "X$p"; then
8289 enable_fast_install=yes
8296 enable_fast_install=yes
8309 # This can be used to rebuild libtool when needed
8310 LIBTOOL_DEPS="$ltmain"
8312 # Always use our own libtool.
8313 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8344 test -z "$LN_S" && LN_S="ln -s"
8359 if test -n "${ZSH_VERSION+set}" ; then
8360 setopt NO_GLOB_SUBST
8363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8364 $as_echo_n "checking for objdir... " >&6; }
8365 if ${lt_cv_objdir+:} false; then :
8366 $as_echo_n "(cached) " >&6
8368 rm -f .libs 2>/dev/null
8369 mkdir .libs 2>/dev/null
8370 if test -d .libs; then
8373 # MS-DOS does not allow filenames that begin with a dot.
8376 rmdir .libs 2>/dev/null
8378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8379 $as_echo "$lt_cv_objdir" >&6; }
8380 objdir=$lt_cv_objdir
8386 cat >>confdefs.h <<_ACEOF
8387 #define LT_OBJDIR "$lt_cv_objdir/"
8395 # AIX sometimes has problems with the GCC collect2 program. For some
8396 # reason, if we set the COLLECT_NAMES environment variable, the problems
8397 # vanish in a puff of smoke.
8398 if test "X${COLLECT_NAMES+set}" != Xset; then
8400 export COLLECT_NAMES
8407 can_build_shared=yes
8409 # All known linkers require a `.a' archive for static linking (except MSVC,
8410 # which needs '.lib').
8413 with_gnu_ld="$lt_cv_prog_gnu_ld"
8416 old_CFLAGS="$CFLAGS"
8418 # Set sane defaults for various variables
8419 test -z "$CC" && CC=cc
8420 test -z "$LTCC" && LTCC=$CC
8421 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8422 test -z "$LD" && LD=ld
8423 test -z "$ac_objext" && ac_objext=o
8425 for cc_temp in $compiler""; do
8427 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8428 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8433 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8436 # Only perform the check for file, if the check method requires it
8437 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8438 case $deplibs_check_method in
8440 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8442 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8443 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8444 $as_echo_n "(cached) " >&6
8448 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8451 lt_save_MAGIC_CMD="$MAGIC_CMD"
8452 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8453 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8454 for ac_dir in $ac_dummy; do
8456 test -z "$ac_dir" && ac_dir=.
8457 if test -f $ac_dir/${ac_tool_prefix}file; then
8458 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8459 if test -n "$file_magic_test_file"; then
8460 case $deplibs_check_method in
8462 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8463 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8464 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8465 $EGREP "$file_magic_regex" > /dev/null; then
8470 *** Warning: the command libtool uses to detect shared libraries,
8471 *** $file_magic_cmd, produces output that libtool cannot recognize.
8472 *** The result is that libtool may fail to recognize shared libraries
8473 *** as such. This will affect the creation of libtool libraries that
8474 *** depend on shared libraries, but programs linked with such libtool
8475 *** libraries will work regardless of this problem. Nevertheless, you
8476 *** may want to report the problem to your system manager and/or to
8477 *** bug-libtool@gnu.org
8487 MAGIC_CMD="$lt_save_MAGIC_CMD"
8492 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8493 if test -n "$MAGIC_CMD"; then
8494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8495 $as_echo "$MAGIC_CMD" >&6; }
8497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8498 $as_echo "no" >&6; }
8505 if test -z "$lt_cv_path_MAGIC_CMD"; then
8506 if test -n "$ac_tool_prefix"; then
8507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8508 $as_echo_n "checking for file... " >&6; }
8509 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8510 $as_echo_n "(cached) " >&6
8514 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8517 lt_save_MAGIC_CMD="$MAGIC_CMD"
8518 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8519 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8520 for ac_dir in $ac_dummy; do
8522 test -z "$ac_dir" && ac_dir=.
8523 if test -f $ac_dir/file; then
8524 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8525 if test -n "$file_magic_test_file"; then
8526 case $deplibs_check_method in
8528 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8529 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8530 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8531 $EGREP "$file_magic_regex" > /dev/null; then
8536 *** Warning: the command libtool uses to detect shared libraries,
8537 *** $file_magic_cmd, produces output that libtool cannot recognize.
8538 *** The result is that libtool may fail to recognize shared libraries
8539 *** as such. This will affect the creation of libtool libraries that
8540 *** depend on shared libraries, but programs linked with such libtool
8541 *** libraries will work regardless of this problem. Nevertheless, you
8542 *** may want to report the problem to your system manager and/or to
8543 *** bug-libtool@gnu.org
8553 MAGIC_CMD="$lt_save_MAGIC_CMD"
8558 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8559 if test -n "$MAGIC_CMD"; then
8560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8561 $as_echo "$MAGIC_CMD" >&6; }
8563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8564 $as_echo "no" >&6; }
8577 # Use C for the default configuration in the libtool script
8581 ac_cpp='$CPP $CPPFLAGS'
8582 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8583 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8584 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8587 # Source file extension for C test sources.
8590 # Object file extension for compiled C test sources.
8594 # Code to be used in simple compile tests
8595 lt_simple_compile_test_code="int some_variable = 0;"
8597 # Code to be used in simple link tests
8598 lt_simple_link_test_code='int main(){return(0);}'
8606 # If no C compiler was specified, use CC.
8609 # If no C compiler flags were specified, use CFLAGS.
8610 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8612 # Allow CC to be a program name with arguments.
8615 # Save the default compiler, since it gets overwritten when the other
8616 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8617 compiler_DEFAULT=$CC
8619 # save warnings/boilerplate of simple test code
8620 ac_outfile=conftest.$ac_objext
8621 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8622 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8623 _lt_compiler_boilerplate=`cat conftest.err`
8626 ac_outfile=conftest.$ac_objext
8627 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8628 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8629 _lt_linker_boilerplate=`cat conftest.err`
8634 ## There is no encapsulation within the following macros, do not change
8635 ## the running order or otherwise move them around unless you know exactly
8636 ## what you are doing...
8637 if test -n "$compiler"; then
8639 lt_prog_compiler_no_builtin_flag=
8641 if test "$GCC" = yes; then
8642 case $cc_basename in
8644 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8646 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8650 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8651 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8652 $as_echo_n "(cached) " >&6
8654 lt_cv_prog_compiler_rtti_exceptions=no
8655 ac_outfile=conftest.$ac_objext
8656 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8657 lt_compiler_flag="-fno-rtti -fno-exceptions"
8658 # Insert the option either (1) after the last *FLAGS variable, or
8659 # (2) before a word containing "conftest.", or (3) at the end.
8660 # Note that $ac_compile itself does not contain backslashes and begins
8661 # with a dollar sign (not a hyphen), so the echo should work correctly.
8662 # The option is referenced via a variable to avoid confusing sed.
8663 lt_compile=`echo "$ac_compile" | $SED \
8664 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8665 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8666 -e 's:$: $lt_compiler_flag:'`
8667 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8668 (eval "$lt_compile" 2>conftest.err)
8670 cat conftest.err >&5
8671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8672 if (exit $ac_status) && test -s "$ac_outfile"; then
8673 # The compiler can only warn and ignore the option if not recognized
8674 # So say no if there are warnings other than the usual output.
8675 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8676 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8677 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8678 lt_cv_prog_compiler_rtti_exceptions=yes
8684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8685 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8687 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8688 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8700 lt_prog_compiler_wl=
8701 lt_prog_compiler_pic=
8702 lt_prog_compiler_static=
8705 if test "$GCC" = yes; then
8706 lt_prog_compiler_wl='-Wl,'
8707 lt_prog_compiler_static='-static'
8711 # All AIX code is PIC.
8712 if test "$host_cpu" = ia64; then
8713 # AIX 5 now supports IA64 processor
8714 lt_prog_compiler_static='-Bstatic'
8721 # see comment about AmigaOS4 .so support
8722 lt_prog_compiler_pic='-fPIC'
8725 # FIXME: we need at least 68020 code to build shared libraries, but
8726 # adding the `-m68020' flag to GCC prevents building anything better,
8728 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8733 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8734 # PIC is the default for these OSes.
8737 mingw* | cygwin* | pw32* | os2* | cegcc*)
8738 # This hack is so that the source file can tell whether it is being
8739 # built for inclusion in a dll (and should export symbols for example).
8740 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8741 # (--disable-auto-import) libraries
8742 lt_prog_compiler_pic='-DDLL_EXPORT'
8745 darwin* | rhapsody*)
8746 # PIC is the default on this platform
8747 # Common symbols not allowed in MH_DYLIB files
8748 lt_prog_compiler_pic='-fno-common'
8752 # PIC is the default for Haiku.
8753 # The "-static" flag exists, but is broken.
8754 lt_prog_compiler_static=
8758 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8759 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8760 # sets the default TLS model and affects inlining.
8766 lt_prog_compiler_pic='-fPIC'
8772 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8773 # Instead, we relocate shared libraries at runtime.
8777 # Just because we use GCC doesn't mean we suddenly get shared libraries
8778 # on systems that don't support them.
8779 lt_prog_compiler_can_build_shared=no
8784 # QNX uses GNU C++, but need to define -shared option too, otherwise
8786 lt_prog_compiler_pic='-fPIC -shared'
8790 if test -d /usr/nec; then
8791 lt_prog_compiler_pic=-Kconform_pic
8796 lt_prog_compiler_pic='-fPIC'
8800 case $cc_basename in
8801 nvcc*) # Cuda Compiler Driver 2.2
8802 lt_prog_compiler_wl='-Xlinker '
8803 if test -n "$lt_prog_compiler_pic"; then
8804 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8809 # PORTME Check for flag to pass linker flags through the system compiler.
8812 lt_prog_compiler_wl='-Wl,'
8813 if test "$host_cpu" = ia64; then
8814 # AIX 5 now supports IA64 processor
8815 lt_prog_compiler_static='-Bstatic'
8817 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8821 mingw* | cygwin* | pw32* | os2* | cegcc*)
8822 # This hack is so that the source file can tell whether it is being
8823 # built for inclusion in a dll (and should export symbols for example).
8824 lt_prog_compiler_pic='-DDLL_EXPORT'
8827 hpux9* | hpux10* | hpux11*)
8828 lt_prog_compiler_wl='-Wl,'
8829 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8836 lt_prog_compiler_pic='+Z'
8839 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8840 lt_prog_compiler_static='${wl}-a ${wl}archive'
8843 irix5* | irix6* | nonstopux*)
8844 lt_prog_compiler_wl='-Wl,'
8845 # PIC (with -KPIC) is the default.
8846 lt_prog_compiler_static='-non_shared'
8849 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8850 case $cc_basename in
8851 # old Intel for x86_64 which still supported -KPIC.
8853 lt_prog_compiler_wl='-Wl,'
8854 lt_prog_compiler_pic='-KPIC'
8855 lt_prog_compiler_static='-static'
8857 # icc used to be incompatible with GCC.
8858 # ICC 10 doesn't accept -KPIC any more.
8860 lt_prog_compiler_wl='-Wl,'
8861 lt_prog_compiler_pic='-fPIC'
8862 lt_prog_compiler_static='-static'
8864 # Lahey Fortran 8.1.
8866 lt_prog_compiler_wl='-Wl,'
8867 lt_prog_compiler_pic='--shared'
8868 lt_prog_compiler_static='--static'
8871 # NAG Fortran compiler
8872 lt_prog_compiler_wl='-Wl,-Wl,,'
8873 lt_prog_compiler_pic='-PIC'
8874 lt_prog_compiler_static='-Bstatic'
8876 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8877 # Portland Group compilers (*not* the Pentium gcc compiler,
8878 # which looks to be a dead project)
8879 lt_prog_compiler_wl='-Wl,'
8880 lt_prog_compiler_pic='-fpic'
8881 lt_prog_compiler_static='-Bstatic'
8884 lt_prog_compiler_wl='-Wl,'
8885 # All Alpha code is PIC.
8886 lt_prog_compiler_static='-non_shared'
8888 xl* | bgxl* | bgf* | mpixl*)
8889 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8890 lt_prog_compiler_wl='-Wl,'
8891 lt_prog_compiler_pic='-qpic'
8892 lt_prog_compiler_static='-qstaticlink'
8895 case `$CC -V 2>&1 | sed 5q` in
8896 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8897 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8898 lt_prog_compiler_pic='-KPIC'
8899 lt_prog_compiler_static='-Bstatic'
8900 lt_prog_compiler_wl=''
8902 *Sun\ F* | *Sun*Fortran*)
8903 lt_prog_compiler_pic='-KPIC'
8904 lt_prog_compiler_static='-Bstatic'
8905 lt_prog_compiler_wl='-Qoption ld '
8909 lt_prog_compiler_pic='-KPIC'
8910 lt_prog_compiler_static='-Bstatic'
8911 lt_prog_compiler_wl='-Wl,'
8913 *Intel*\ [CF]*Compiler*)
8914 lt_prog_compiler_wl='-Wl,'
8915 lt_prog_compiler_pic='-fPIC'
8916 lt_prog_compiler_static='-static'
8919 lt_prog_compiler_wl='-Wl,'
8920 lt_prog_compiler_pic='-fpic'
8921 lt_prog_compiler_static='-Bstatic'
8929 lt_prog_compiler_pic='-KPIC'
8930 lt_prog_compiler_static='-Bstatic'
8934 # QNX uses GNU C++, but need to define -shared option too, otherwise
8936 lt_prog_compiler_pic='-fPIC -shared'
8939 osf3* | osf4* | osf5*)
8940 lt_prog_compiler_wl='-Wl,'
8941 # All OSF/1 code is PIC.
8942 lt_prog_compiler_static='-non_shared'
8946 lt_prog_compiler_static='-non_shared'
8950 lt_prog_compiler_pic='-KPIC'
8951 lt_prog_compiler_static='-Bstatic'
8952 case $cc_basename in
8953 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8954 lt_prog_compiler_wl='-Qoption ld ';;
8956 lt_prog_compiler_wl='-Wl,';;
8961 lt_prog_compiler_wl='-Qoption ld '
8962 lt_prog_compiler_pic='-PIC'
8963 lt_prog_compiler_static='-Bstatic'
8966 sysv4 | sysv4.2uw2* | sysv4.3*)
8967 lt_prog_compiler_wl='-Wl,'
8968 lt_prog_compiler_pic='-KPIC'
8969 lt_prog_compiler_static='-Bstatic'
8973 if test -d /usr/nec ;then
8974 lt_prog_compiler_pic='-Kconform_pic'
8975 lt_prog_compiler_static='-Bstatic'
8979 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8980 lt_prog_compiler_wl='-Wl,'
8981 lt_prog_compiler_pic='-KPIC'
8982 lt_prog_compiler_static='-Bstatic'
8986 lt_prog_compiler_wl='-Wl,'
8987 lt_prog_compiler_can_build_shared=no
8991 lt_prog_compiler_pic='-pic'
8992 lt_prog_compiler_static='-Bstatic'
8996 lt_prog_compiler_can_build_shared=no
9002 # For platforms which do not support PIC, -DPIC is meaningless:
9004 lt_prog_compiler_pic=
9007 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9012 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9013 if ${lt_cv_prog_compiler_pic+:} false; then :
9014 $as_echo_n "(cached) " >&6
9016 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9019 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
9020 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9023 # Check to make sure the PIC flag actually works.
9025 if test -n "$lt_prog_compiler_pic"; then
9026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9027 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9028 if ${lt_cv_prog_compiler_pic_works+:} false; then :
9029 $as_echo_n "(cached) " >&6
9031 lt_cv_prog_compiler_pic_works=no
9032 ac_outfile=conftest.$ac_objext
9033 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9034 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9035 # Insert the option either (1) after the last *FLAGS variable, or
9036 # (2) before a word containing "conftest.", or (3) at the end.
9037 # Note that $ac_compile itself does not contain backslashes and begins
9038 # with a dollar sign (not a hyphen), so the echo should work correctly.
9039 # The option is referenced via a variable to avoid confusing sed.
9040 lt_compile=`echo "$ac_compile" | $SED \
9041 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9042 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9043 -e 's:$: $lt_compiler_flag:'`
9044 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9045 (eval "$lt_compile" 2>conftest.err)
9047 cat conftest.err >&5
9048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9049 if (exit $ac_status) && test -s "$ac_outfile"; then
9050 # The compiler can only warn and ignore the option if not recognized
9051 # So say no if there are warnings other than the usual output.
9052 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9053 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9054 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9055 lt_cv_prog_compiler_pic_works=yes
9061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9062 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9064 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9065 case $lt_prog_compiler_pic in
9067 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9070 lt_prog_compiler_pic=
9071 lt_prog_compiler_can_build_shared=no
9087 # Check to make sure the static flag actually works.
9089 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9091 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9092 if ${lt_cv_prog_compiler_static_works+:} false; then :
9093 $as_echo_n "(cached) " >&6
9095 lt_cv_prog_compiler_static_works=no
9096 save_LDFLAGS="$LDFLAGS"
9097 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9098 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9099 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9100 # The linker can only warn and ignore the option if not recognized
9101 # So say no if there are warnings
9102 if test -s conftest.err; then
9103 # Append any errors to the config.log.
9104 cat conftest.err 1>&5
9105 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9106 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9107 if diff conftest.exp conftest.er2 >/dev/null; then
9108 lt_cv_prog_compiler_static_works=yes
9111 lt_cv_prog_compiler_static_works=yes
9115 LDFLAGS="$save_LDFLAGS"
9118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9119 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9121 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9124 lt_prog_compiler_static=
9133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9134 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9135 if ${lt_cv_prog_compiler_c_o+:} false; then :
9136 $as_echo_n "(cached) " >&6
9138 lt_cv_prog_compiler_c_o=no
9139 $RM -r conftest 2>/dev/null
9143 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9145 lt_compiler_flag="-o out/conftest2.$ac_objext"
9146 # Insert the option either (1) after the last *FLAGS variable, or
9147 # (2) before a word containing "conftest.", or (3) at the end.
9148 # Note that $ac_compile itself does not contain backslashes and begins
9149 # with a dollar sign (not a hyphen), so the echo should work correctly.
9150 lt_compile=`echo "$ac_compile" | $SED \
9151 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9152 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9153 -e 's:$: $lt_compiler_flag:'`
9154 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9155 (eval "$lt_compile" 2>out/conftest.err)
9157 cat out/conftest.err >&5
9158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9159 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9161 # The compiler can only warn and ignore the option if not recognized
9162 # So say no if there are warnings
9163 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9164 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9165 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9166 lt_cv_prog_compiler_c_o=yes
9171 # SGI C++ compiler will create directory out/ii_files/ for
9172 # template instantiation
9173 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9174 $RM out/* && rmdir out
9180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9181 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9189 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9190 if ${lt_cv_prog_compiler_c_o+:} false; then :
9191 $as_echo_n "(cached) " >&6
9193 lt_cv_prog_compiler_c_o=no
9194 $RM -r conftest 2>/dev/null
9198 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9200 lt_compiler_flag="-o out/conftest2.$ac_objext"
9201 # Insert the option either (1) after the last *FLAGS variable, or
9202 # (2) before a word containing "conftest.", or (3) at the end.
9203 # Note that $ac_compile itself does not contain backslashes and begins
9204 # with a dollar sign (not a hyphen), so the echo should work correctly.
9205 lt_compile=`echo "$ac_compile" | $SED \
9206 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9207 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9208 -e 's:$: $lt_compiler_flag:'`
9209 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9210 (eval "$lt_compile" 2>out/conftest.err)
9212 cat out/conftest.err >&5
9213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9214 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9216 # The compiler can only warn and ignore the option if not recognized
9217 # So say no if there are warnings
9218 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9219 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9220 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9221 lt_cv_prog_compiler_c_o=yes
9226 # SGI C++ compiler will create directory out/ii_files/ for
9227 # template instantiation
9228 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9229 $RM out/* && rmdir out
9235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9236 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9241 hard_links="nottested"
9242 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9243 # do not overwrite the value of need_locks provided by the user
9244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9245 $as_echo_n "checking if we can lock with hard links... " >&6; }
9248 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9250 ln conftest.a conftest.b 2>&5 || hard_links=no
9251 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9253 $as_echo "$hard_links" >&6; }
9254 if test "$hard_links" = no; then
9255 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9256 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9269 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9272 allow_undefined_flag=
9273 always_export_symbols=no
9275 archive_expsym_cmds=
9276 compiler_needs_object=no
9277 enable_shared_with_static_runtimes=no
9278 export_dynamic_flag_spec=
9279 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9280 hardcode_automatic=no
9282 hardcode_direct_absolute=no
9283 hardcode_libdir_flag_spec=
9284 hardcode_libdir_separator=
9286 hardcode_shlibpath_var=unsupported
9288 link_all_deplibs=unknown
9291 old_archive_from_new_cmds=
9292 old_archive_from_expsyms_cmds=
9293 thread_safe_flag_spec=
9294 whole_archive_flag_spec=
9295 # include_expsyms should be a list of space-separated symbols to be *always*
9296 # included in the symbol list
9298 # exclude_expsyms can be an extended regexp of symbols to exclude
9299 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9300 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9301 # as well as any symbol that contains `d'.
9302 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9303 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9304 # platforms (ab)use it in PIC code, but their linkers get confused if
9305 # the symbol is explicitly referenced. Since portable code cannot
9306 # rely on this symbol name, it's probably fine to never include it in
9307 # preloaded symbol tables.
9308 # Exclude shared library initialization/finalization symbols.
9309 extract_expsyms_cmds=
9312 cygwin* | mingw* | pw32* | cegcc*)
9313 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9314 # When not using gcc, we currently assume that we are using
9315 # Microsoft Visual C++.
9316 if test "$GCC" != yes; then
9321 # we just hope/assume this is gcc and not c89 (= MSVC++)
9331 # On some targets, GNU ld is compatible enough with the native linker
9332 # that we're better off using the native interface for both.
9333 lt_use_gnu_ld_interface=no
9334 if test "$with_gnu_ld" = yes; then
9337 # The AIX port of GNU ld has always aspired to compatibility
9338 # with the native linker. However, as the warning in the GNU ld
9339 # block says, versions before 2.19.5* couldn't really create working
9340 # shared libraries, regardless of the interface used.
9341 case `$LD -v 2>&1` in
9342 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9343 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9344 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9346 lt_use_gnu_ld_interface=yes
9351 lt_use_gnu_ld_interface=yes
9356 if test "$lt_use_gnu_ld_interface" = yes; then
9357 # If archive_cmds runs LD, not CC, wlarc should be empty
9360 # Set some defaults for GNU ld with shared library support. These
9361 # are reset later if shared libraries are not supported. Putting them
9362 # here allows them to be overridden if necessary.
9363 runpath_var=LD_RUN_PATH
9364 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9365 export_dynamic_flag_spec='${wl}--export-dynamic'
9366 # ancient GNU ld didn't support --whole-archive et. al.
9367 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9368 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9370 whole_archive_flag_spec=
9372 supports_anon_versioning=no
9373 case `$LD -v 2>&1` in
9374 *GNU\ gold*) supports_anon_versioning=yes ;;
9375 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9376 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9377 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9378 *\ 2.11.*) ;; # other 2.11 versions
9379 *) supports_anon_versioning=yes ;;
9382 # See if GNU ld supports shared libraries.
9385 # On AIX/PPC, the GNU linker is very broken
9386 if test "$host_cpu" != ia64; then
9390 *** Warning: the GNU linker, at least up to release 2.19, is reported
9391 *** to be unable to reliably create shared libraries on AIX.
9392 *** Therefore, libtool is disabling shared libraries support. If you
9393 *** really care for shared libraries, you may want to install binutils
9394 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9395 *** You will then need to restart the configuration process.
9404 # see comment about AmigaOS4 .so support
9405 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9406 archive_expsym_cmds=''
9409 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)'
9410 hardcode_libdir_flag_spec='-L$libdir'
9411 hardcode_minus_L=yes
9417 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9418 allow_undefined_flag=unsupported
9419 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9420 # support --undefined. This deserves some investigation. FIXME
9421 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9427 cygwin* | mingw* | pw32* | cegcc*)
9428 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9429 # as there is no search path for DLLs.
9430 hardcode_libdir_flag_spec='-L$libdir'
9431 export_dynamic_flag_spec='${wl}--export-all-symbols'
9432 allow_undefined_flag=unsupported
9433 always_export_symbols=no
9434 enable_shared_with_static_runtimes=yes
9435 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'
9436 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9438 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9439 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9440 # If the export-symbols file already is a .def file (1st line
9441 # is EXPORTS), use it as is; otherwise, prepend...
9442 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9443 cp $export_symbols $output_objdir/$soname.def;
9445 echo EXPORTS > $output_objdir/$soname.def;
9446 cat $export_symbols >> $output_objdir/$soname.def;
9448 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9455 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9456 link_all_deplibs=yes
9461 hardcode_shlibpath_var=no
9462 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9463 export_dynamic_flag_spec='${wl}-E'
9464 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9465 # Instead, shared libraries are loaded at an image base (0x10000000 by
9466 # default) and relocated if they conflict, which is a slow very memory
9467 # consuming and fragmenting process. To avoid this, we pick a random,
9468 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9469 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9470 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9471 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'
9474 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9476 if test "$host_os" = linux-dietlibc; then
9477 case $cc_basename in
9478 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9481 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9482 && test "$tmp_diet" = no
9484 tmp_addflag=' $pic_flag'
9485 tmp_sharedflag='-shared'
9486 case $cc_basename,$host_cpu in
9487 pgcc*) # Portland Group C compiler
9488 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'
9489 tmp_addflag=' $pic_flag'
9491 pgf77* | pgf90* | pgf95* | pgfortran*)
9492 # Portland Group f77 and f90 compilers
9493 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'
9494 tmp_addflag=' $pic_flag -Mnomain' ;;
9495 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9496 tmp_addflag=' -i_dynamic' ;;
9497 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9498 tmp_addflag=' -i_dynamic -nofor_main' ;;
9499 ifc* | ifort*) # Intel Fortran compiler
9500 tmp_addflag=' -nofor_main' ;;
9501 lf95*) # Lahey Fortran 8.1
9502 whole_archive_flag_spec=
9503 tmp_sharedflag='--shared' ;;
9504 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9505 tmp_sharedflag='-qmkshrobj'
9507 nvcc*) # Cuda Compiler Driver 2.2
9508 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'
9509 compiler_needs_object=yes
9512 case `$CC -V 2>&1 | sed 5q` in
9513 *Sun\ C*) # Sun C 5.9
9514 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'
9515 compiler_needs_object=yes
9516 tmp_sharedflag='-G' ;;
9517 *Sun\ F*) # Sun Fortran 8.3
9518 tmp_sharedflag='-G' ;;
9520 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9522 if test "x$supports_anon_versioning" = xyes; then
9523 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9524 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9525 echo "local: *; };" >> $output_objdir/$libname.ver~
9526 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9529 case $cc_basename in
9530 xlf* | bgf* | bgxlf* | mpixlf*)
9531 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9532 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9533 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9534 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9535 if test "x$supports_anon_versioning" = xyes; then
9536 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9537 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9538 echo "local: *; };" >> $output_objdir/$libname.ver~
9539 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9549 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9550 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9553 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9554 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9559 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9563 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9564 *** create shared libraries on Solaris systems. Therefore, libtool
9565 *** is disabling shared libraries support. We urge you to upgrade GNU
9566 *** binutils to release 2.9.1 or newer. Another option is to modify
9567 *** your PATH or compiler configuration so that the native linker is
9568 *** used, and then restart.
9571 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9572 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9573 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9579 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9580 case `$LD -v 2>&1` in
9581 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9585 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9586 *** reliably create shared libraries on SCO systems. Therefore, libtool
9587 *** is disabling shared libraries support. We urge you to upgrade GNU
9588 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9589 *** your PATH or compiler configuration so that the native linker is
9590 *** used, and then restart.
9595 # For security reasons, it is highly recommended that you always
9596 # use absolute paths for naming shared libraries, and exclude the
9597 # DT_RUNPATH tag from executables and libraries. But doing so
9598 # requires that you compile everything twice, which is a pain.
9599 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9600 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9601 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9602 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9611 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9614 hardcode_shlibpath_var=no
9618 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9619 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9620 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9627 if test "$ld_shlibs" = no; then
9629 hardcode_libdir_flag_spec=
9630 export_dynamic_flag_spec=
9631 whole_archive_flag_spec=
9634 # PORTME fill in a description of your system's linker (not GNU ld)
9637 allow_undefined_flag=unsupported
9638 always_export_symbols=yes
9639 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'
9640 # Note: this linker hardcodes the directories in LIBPATH if there
9641 # are no directories specified by -L.
9642 hardcode_minus_L=yes
9643 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9644 # Neither direct hardcoding nor static linking is supported with a
9646 hardcode_direct=unsupported
9651 if test "$host_cpu" = ia64; then
9652 # On IA64, the linker does run time linking by default, so we don't
9653 # have to do anything special.
9654 aix_use_runtimelinking=no
9655 exp_sym_flag='-Bexport'
9658 # If we're using GNU nm, then we don't want the "-C" option.
9659 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9660 # Also, AIX nm treats weak defined symbols like other global
9661 # defined symbols, whereas GNU nm marks them as "W".
9662 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9663 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'
9665 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'
9667 aix_use_runtimelinking=no
9669 # Test if we are trying to use run time linking or normal
9670 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9671 # need to do runtime linking.
9672 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9673 for ld_flag in $LDFLAGS; do
9674 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9675 aix_use_runtimelinking=yes
9682 exp_sym_flag='-bexport'
9683 no_entry_flag='-bnoentry'
9686 # When large executables or shared objects are built, AIX ld can
9687 # have problems creating the table of contents. If linking a library
9688 # or program results in "error TOC overflow" add -mminimal-toc to
9689 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9690 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9694 hardcode_direct_absolute=yes
9695 hardcode_libdir_separator=':'
9696 link_all_deplibs=yes
9697 file_list_spec='${wl}-f,'
9699 if test "$GCC" = yes; then
9700 case $host_os in aix4.[012]|aix4.[012].*)
9701 # We only want to do this on AIX 4.2 and lower, the check
9702 # below for broken collect2 doesn't work under 4.3+
9703 collect2name=`${CC} -print-prog-name=collect2`
9704 if test -f "$collect2name" &&
9705 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9707 # We have reworked collect2
9710 # We have old collect2
9711 hardcode_direct=unsupported
9712 # It fails to find uninstalled libraries when the uninstalled
9713 # path is not listed in the libpath. Setting hardcode_minus_L
9714 # to unsupported forces relinking
9715 hardcode_minus_L=yes
9716 hardcode_libdir_flag_spec='-L$libdir'
9717 hardcode_libdir_separator=
9721 shared_flag='-shared'
9722 if test "$aix_use_runtimelinking" = yes; then
9723 shared_flag="$shared_flag "'${wl}-G'
9727 if test "$host_cpu" = ia64; then
9728 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9729 # chokes on -Wl,-G. The following line is correct:
9732 if test "$aix_use_runtimelinking" = yes; then
9733 shared_flag='${wl}-G'
9735 shared_flag='${wl}-bM:SRE'
9740 export_dynamic_flag_spec='${wl}-bexpall'
9741 # It seems that -bexpall does not export symbols beginning with
9742 # underscore (_), so it is better to generate a list of symbols to export.
9743 always_export_symbols=yes
9744 if test "$aix_use_runtimelinking" = yes; then
9745 # Warning - without using the other runtime loading flags (-brtl),
9746 # -berok will link without error, but may produce a broken library.
9747 allow_undefined_flag='-berok'
9748 # Determine the default libpath from the value encoded in an
9750 if test "${lt_cv_aix_libpath+set}" = set; then
9751 aix_libpath=$lt_cv_aix_libpath
9753 if ${lt_cv_aix_libpath_+:} false; then :
9754 $as_echo_n "(cached) " >&6
9756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9757 /* end confdefs.h. */
9759 #ifdef F77_DUMMY_MAIN
9764 int F77_DUMMY_MAIN() { return 1; }
9775 if ac_fn_c_try_link "$LINENO"; then :
9777 lt_aix_libpath_sed='
9778 /Import File Strings/,/^$/ {
9780 s/^0 *\([^ ]*\) *$/\1/
9784 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9785 # Check for a 64-bit object if we didn't find anything.
9786 if test -z "$lt_cv_aix_libpath_"; then
9787 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9790 rm -f core conftest.err conftest.$ac_objext \
9791 conftest$ac_exeext conftest.$ac_ext
9792 if test -z "$lt_cv_aix_libpath_"; then
9793 lt_cv_aix_libpath_="/usr/lib:/lib"
9798 aix_libpath=$lt_cv_aix_libpath_
9801 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9802 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"
9804 if test "$host_cpu" = ia64; then
9805 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9806 allow_undefined_flag="-z nodefs"
9807 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"
9809 # Determine the default libpath from the value encoded in an
9811 if test "${lt_cv_aix_libpath+set}" = set; then
9812 aix_libpath=$lt_cv_aix_libpath
9814 if ${lt_cv_aix_libpath_+:} false; then :
9815 $as_echo_n "(cached) " >&6
9817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9818 /* end confdefs.h. */
9820 #ifdef F77_DUMMY_MAIN
9825 int F77_DUMMY_MAIN() { return 1; }
9836 if ac_fn_c_try_link "$LINENO"; then :
9838 lt_aix_libpath_sed='
9839 /Import File Strings/,/^$/ {
9841 s/^0 *\([^ ]*\) *$/\1/
9845 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9846 # Check for a 64-bit object if we didn't find anything.
9847 if test -z "$lt_cv_aix_libpath_"; then
9848 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9851 rm -f core conftest.err conftest.$ac_objext \
9852 conftest$ac_exeext conftest.$ac_ext
9853 if test -z "$lt_cv_aix_libpath_"; then
9854 lt_cv_aix_libpath_="/usr/lib:/lib"
9859 aix_libpath=$lt_cv_aix_libpath_
9862 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9863 # Warning - without using the other run time loading flags,
9864 # -berok will link without error, but may produce a broken library.
9865 no_undefined_flag=' ${wl}-bernotok'
9866 allow_undefined_flag=' ${wl}-berok'
9867 if test "$with_gnu_ld" = yes; then
9868 # We only use this code for GNU lds that support --whole-archive.
9869 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9871 # Exported symbols can be pulled into shared objects from archives
9872 whole_archive_flag_spec='$convenience'
9874 archive_cmds_need_lc=yes
9875 # This is similar to how AIX traditionally builds its shared libraries.
9876 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'
9884 # see comment about AmigaOS4 .so support
9885 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9886 archive_expsym_cmds=''
9889 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)'
9890 hardcode_libdir_flag_spec='-L$libdir'
9891 hardcode_minus_L=yes
9897 export_dynamic_flag_spec=-rdynamic
9900 cygwin* | mingw* | pw32* | cegcc*)
9901 # When not using gcc, we currently assume that we are using
9902 # Microsoft Visual C++.
9903 # hardcode_libdir_flag_spec is actually meaningless, as there is
9904 # no search path for DLLs.
9905 case $cc_basename in
9908 hardcode_libdir_flag_spec=' '
9909 allow_undefined_flag=unsupported
9910 always_export_symbols=yes
9912 # Tell ltmain to make .lib files, not .a files.
9914 # Tell ltmain to make .dll files, not .so files.
9916 # FIXME: Setting linknames here is a bad hack.
9917 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9918 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9919 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9921 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9923 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9925 # The linker will not automatically build a static lib if we build a DLL.
9926 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9927 enable_shared_with_static_runtimes=yes
9928 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9929 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9931 old_postinstall_cmds='chmod 644 $oldlib'
9932 postlink_cmds='lt_outputfile="@OUTPUT@"~
9933 lt_tool_outputfile="@TOOL_OUTPUT@"~
9934 case $lt_outputfile in
9937 lt_outputfile="$lt_outputfile.exe"
9938 lt_tool_outputfile="$lt_tool_outputfile.exe"
9941 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9942 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9943 $RM "$lt_outputfile.manifest";
9947 # Assume MSVC wrapper
9948 hardcode_libdir_flag_spec=' '
9949 allow_undefined_flag=unsupported
9950 # Tell ltmain to make .lib files, not .a files.
9952 # Tell ltmain to make .dll files, not .so files.
9954 # FIXME: Setting linknames here is a bad hack.
9955 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9956 # The linker will automatically build a .lib file if we build a DLL.
9957 old_archive_from_new_cmds='true'
9958 # FIXME: Should let the user specify the lib program.
9959 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9960 enable_shared_with_static_runtimes=yes
9965 darwin* | rhapsody*)
9968 archive_cmds_need_lc=no
9970 hardcode_automatic=yes
9971 hardcode_shlibpath_var=unsupported
9972 if test "$lt_cv_ld_force_load" = "yes"; then
9973 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\"`'
9976 whole_archive_flag_spec=''
9978 link_all_deplibs=yes
9979 allow_undefined_flag="$_lt_dar_allow_undefined"
9980 case $cc_basename in
9981 ifort*) _lt_dar_can_shared=yes ;;
9982 *) _lt_dar_can_shared=$GCC ;;
9984 if test "$_lt_dar_can_shared" = "yes"; then
9985 output_verbose_link_cmd=func_echo_all
9986 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9987 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9988 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}"
9989 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}"
9998 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9999 hardcode_libdir_flag_spec='-L$libdir'
10000 hardcode_shlibpath_var=no
10003 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10004 # support. Future versions do this automatically, but an explicit c++rt0.o
10005 # does not break anything, and helps significantly (at the cost of a little
10008 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10009 hardcode_libdir_flag_spec='-R$libdir'
10010 hardcode_direct=yes
10011 hardcode_shlibpath_var=no
10014 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10016 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10017 hardcode_direct=yes
10018 hardcode_minus_L=yes
10019 hardcode_shlibpath_var=no
10022 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10023 freebsd* | dragonfly*)
10024 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10025 hardcode_libdir_flag_spec='-R$libdir'
10026 hardcode_direct=yes
10027 hardcode_shlibpath_var=no
10031 if test "$GCC" = yes; then
10032 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'
10034 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'
10036 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10037 hardcode_libdir_separator=:
10038 hardcode_direct=yes
10040 # hardcode_minus_L: Not really in the search PATH,
10041 # but as the default location of the library.
10042 hardcode_minus_L=yes
10043 export_dynamic_flag_spec='${wl}-E'
10047 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10048 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10050 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10052 if test "$with_gnu_ld" = no; then
10053 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10054 hardcode_libdir_separator=:
10055 hardcode_direct=yes
10056 hardcode_direct_absolute=yes
10057 export_dynamic_flag_spec='${wl}-E'
10058 # hardcode_minus_L: Not really in the search PATH,
10059 # but as the default location of the library.
10060 hardcode_minus_L=yes
10065 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10068 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10071 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10074 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10080 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10083 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10087 # Older versions of the 11.00 compiler do not understand -b yet
10088 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10090 $as_echo_n "checking if $CC understands -b... " >&6; }
10091 if ${lt_cv_prog_compiler__b+:} false; then :
10092 $as_echo_n "(cached) " >&6
10094 lt_cv_prog_compiler__b=no
10095 save_LDFLAGS="$LDFLAGS"
10096 LDFLAGS="$LDFLAGS -b"
10097 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10098 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10099 # The linker can only warn and ignore the option if not recognized
10100 # So say no if there are warnings
10101 if test -s conftest.err; then
10102 # Append any errors to the config.log.
10103 cat conftest.err 1>&5
10104 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10105 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10106 if diff conftest.exp conftest.er2 >/dev/null; then
10107 lt_cv_prog_compiler__b=yes
10110 lt_cv_prog_compiler__b=yes
10114 LDFLAGS="$save_LDFLAGS"
10117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10118 $as_echo "$lt_cv_prog_compiler__b" >&6; }
10120 if test x"$lt_cv_prog_compiler__b" = xyes; then
10121 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10123 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10129 if test "$with_gnu_ld" = no; then
10130 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10131 hardcode_libdir_separator=:
10136 hardcode_shlibpath_var=no
10139 hardcode_direct=yes
10140 hardcode_direct_absolute=yes
10141 export_dynamic_flag_spec='${wl}-E'
10143 # hardcode_minus_L: Not really in the search PATH,
10144 # but as the default location of the library.
10145 hardcode_minus_L=yes
10151 irix5* | irix6* | nonstopux*)
10152 if test "$GCC" = yes; then
10153 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'
10154 # Try to use the -exported_symbol ld option, if it does not
10155 # work, assume that -exports_file does not work either and
10156 # implicitly export all symbols.
10157 # This should be the same for all languages, so no per-tag cache variable.
10158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10159 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10160 if ${lt_cv_irix_exported_symbol+:} false; then :
10161 $as_echo_n "(cached) " >&6
10163 save_LDFLAGS="$LDFLAGS"
10164 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10165 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10166 /* end confdefs.h. */
10167 int foo (void) { return 0; }
10169 if ac_fn_c_try_link "$LINENO"; then :
10170 lt_cv_irix_exported_symbol=yes
10172 lt_cv_irix_exported_symbol=no
10174 rm -f core conftest.err conftest.$ac_objext \
10175 conftest$ac_exeext conftest.$ac_ext
10176 LDFLAGS="$save_LDFLAGS"
10178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10179 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
10180 if test "$lt_cv_irix_exported_symbol" = yes; then
10181 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'
10184 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'
10185 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'
10187 archive_cmds_need_lc='no'
10188 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10189 hardcode_libdir_separator=:
10191 link_all_deplibs=yes
10195 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10196 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10198 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10200 hardcode_libdir_flag_spec='-R$libdir'
10201 hardcode_direct=yes
10202 hardcode_shlibpath_var=no
10206 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10207 hardcode_direct=yes
10208 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10209 hardcode_libdir_separator=:
10210 hardcode_shlibpath_var=no
10217 if test -f /usr/libexec/ld.so; then
10218 hardcode_direct=yes
10219 hardcode_shlibpath_var=no
10220 hardcode_direct_absolute=yes
10221 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10222 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10223 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10224 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10225 export_dynamic_flag_spec='${wl}-E'
10228 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10229 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10230 hardcode_libdir_flag_spec='-R$libdir'
10233 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10234 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10244 hardcode_libdir_flag_spec='-L$libdir'
10245 hardcode_minus_L=yes
10246 allow_undefined_flag=unsupported
10247 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'
10248 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10252 if test "$GCC" = yes; then
10253 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10254 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'
10256 allow_undefined_flag=' -expect_unresolved \*'
10257 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'
10259 archive_cmds_need_lc='no'
10260 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10261 hardcode_libdir_separator=:
10264 osf4* | osf5*) # as osf3* with the addition of -msym flag
10265 if test "$GCC" = yes; then
10266 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10267 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'
10268 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10270 allow_undefined_flag=' -expect_unresolved \*'
10271 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'
10272 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~
10273 $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'
10275 # Both c and cxx compiler support -rpath directly
10276 hardcode_libdir_flag_spec='-rpath $libdir'
10278 archive_cmds_need_lc='no'
10279 hardcode_libdir_separator=:
10283 no_undefined_flag=' -z defs'
10284 if test "$GCC" = yes; then
10286 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10287 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10288 $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'
10290 case `$CC -V 2>&1` in
10293 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10294 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10295 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10299 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10300 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10301 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10305 hardcode_libdir_flag_spec='-R$libdir'
10306 hardcode_shlibpath_var=no
10308 solaris2.[0-5] | solaris2.[0-5].*) ;;
10310 # The compiler driver will combine and reorder linker options,
10311 # but understands `-z linker_flag'. GCC discards it without `$wl',
10312 # but is careful enough not to reorder.
10313 # Supported since Solaris 2.6 (maybe 2.5.1?)
10314 if test "$GCC" = yes; then
10315 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10317 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10321 link_all_deplibs=yes
10325 if test "x$host_vendor" = xsequent; then
10326 # Use $CC to link under sequent, because it throws in some extra .o
10327 # files that make .init and .fini sections work.
10328 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10330 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10332 hardcode_libdir_flag_spec='-L$libdir'
10333 hardcode_direct=yes
10334 hardcode_minus_L=yes
10335 hardcode_shlibpath_var=no
10339 case $host_vendor in
10341 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10342 hardcode_direct=yes # is this really true???
10345 ## LD is ld it makes a PLAMLIB
10346 ## CC just makes a GrossModule.
10347 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10348 reload_cmds='$CC -r -o $output$reload_objs'
10352 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10353 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10356 runpath_var='LD_RUN_PATH'
10357 hardcode_shlibpath_var=no
10361 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10362 hardcode_shlibpath_var=no
10363 export_dynamic_flag_spec='-Bexport'
10367 if test -d /usr/nec; then
10368 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10369 hardcode_shlibpath_var=no
10370 runpath_var=LD_RUN_PATH
10371 hardcode_runpath_var=yes
10376 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10377 no_undefined_flag='${wl}-z,text'
10378 archive_cmds_need_lc=no
10379 hardcode_shlibpath_var=no
10380 runpath_var='LD_RUN_PATH'
10382 if test "$GCC" = yes; then
10383 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10384 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10386 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10387 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10391 sysv5* | sco3.2v5* | sco5v6*)
10392 # Note: We can NOT use -z defs as we might desire, because we do not
10393 # link with -lc, and that would cause any symbols used from libc to
10394 # always be unresolved, which means just about no library would
10395 # ever link correctly. If we're not using GNU ld we use -z text
10396 # though, which does catch some bad symbols but isn't as heavy-handed
10398 no_undefined_flag='${wl}-z,text'
10399 allow_undefined_flag='${wl}-z,nodefs'
10400 archive_cmds_need_lc=no
10401 hardcode_shlibpath_var=no
10402 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10403 hardcode_libdir_separator=':'
10404 link_all_deplibs=yes
10405 export_dynamic_flag_spec='${wl}-Bexport'
10406 runpath_var='LD_RUN_PATH'
10408 if test "$GCC" = yes; then
10409 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10410 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10412 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10413 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10418 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10419 hardcode_libdir_flag_spec='-L$libdir'
10420 hardcode_shlibpath_var=no
10428 if test x$host_vendor = xsni; then
10430 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10431 export_dynamic_flag_spec='${wl}-Blargedynsym'
10437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10438 $as_echo "$ld_shlibs" >&6; }
10439 test "$ld_shlibs" = no && can_build_shared=no
10441 with_gnu_ld=$with_gnu_ld
10458 # Do we need to explicitly link libc?
10460 case "x$archive_cmds_need_lc" in
10462 # Assume -lc should be added
10463 archive_cmds_need_lc=yes
10465 if test "$enable_shared" = yes && test "$GCC" = yes; then
10466 case $archive_cmds in
10468 # FIXME: we may have to deal with multi-command sequences.
10471 # Test whether the compiler implicitly links with -lc since on some
10472 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10473 # to ld, don't add -lc before -lgcc.
10474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10475 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10476 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10477 $as_echo_n "(cached) " >&6
10480 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10482 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10483 (eval $ac_compile) 2>&5
10485 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10486 test $ac_status = 0; } 2>conftest.err; then
10489 libobjs=conftest.$ac_objext
10491 wl=$lt_prog_compiler_wl
10492 pic_flag=$lt_prog_compiler_pic
10498 lt_save_allow_undefined_flag=$allow_undefined_flag
10499 allow_undefined_flag=
10500 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10501 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10503 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10504 test $ac_status = 0; }
10506 lt_cv_archive_cmds_need_lc=no
10508 lt_cv_archive_cmds_need_lc=yes
10510 allow_undefined_flag=$lt_save_allow_undefined_flag
10512 cat conftest.err 1>&5
10517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10518 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10519 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10678 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10680 if test "$GCC" = yes; then
10682 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10683 *) lt_awk_arg="/^libraries:/" ;;
10686 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10687 *) lt_sed_strip_eq="s,=/,/,g" ;;
10689 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10690 case $lt_search_path_spec in
10692 # if the path contains ";" then we assume it to be the separator
10693 # otherwise default to the standard path separator (i.e. ":") - it is
10694 # assumed that no part of a normal pathname contains ";" but that should
10695 # okay in the real world where ";" in dirpaths is itself problematic.
10696 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10699 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10702 # Ok, now we have the path, separated by spaces, we can step through it
10703 # and add multilib dir if necessary.
10704 lt_tmp_lt_search_path_spec=
10705 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10706 for lt_sys_path in $lt_search_path_spec; do
10707 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10708 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10710 test -d "$lt_sys_path" && \
10711 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10714 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10715 BEGIN {RS=" "; FS="/|\n";} {
10718 for (lt_i = NF; lt_i > 0; lt_i--) {
10719 if ($lt_i != "" && $lt_i != ".") {
10720 if ($lt_i == "..") {
10723 if (lt_count == 0) {
10724 lt_foo="/" $lt_i lt_foo;
10731 if (lt_foo != "") { lt_freq[lt_foo]++; }
10732 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10734 # AWK program above erroneously prepends '/' to C:/dos/paths
10737 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10738 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10740 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10742 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10744 library_names_spec=
10745 libname_spec='lib$name'
10749 postuninstall_cmds=
10753 shlibpath_overrides_runpath=unknown
10755 dynamic_linker="$host_os ld.so"
10756 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10757 need_lib_prefix=unknown
10758 hardcode_into_libs=no
10760 # when you set need_version to no, make sure it does not cause -set_version
10761 # flags to be left without arguments
10762 need_version=unknown
10766 version_type=linux # correct to gnu/linux during the next big refactor
10767 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10768 shlibpath_var=LIBPATH
10770 # AIX 3 has no versioning support, so we append a major version to the name.
10771 soname_spec='${libname}${release}${shared_ext}$major'
10775 version_type=linux # correct to gnu/linux during the next big refactor
10778 hardcode_into_libs=yes
10779 if test "$host_cpu" = ia64; then
10780 # AIX 5 supports IA64
10781 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10782 shlibpath_var=LD_LIBRARY_PATH
10784 # With GCC up to 2.95.x, collect2 would create an import file
10785 # for dependence libraries. The import file would start with
10786 # the line `#! .'. This would cause the generated library to
10787 # depend on `.', always an invalid library. This was fixed in
10788 # development snapshots of GCC prior to 3.0.
10790 aix4 | aix4.[01] | aix4.[01].*)
10791 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10793 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10796 can_build_shared=no
10800 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10801 # soname into executable. Probably we can add versioning support to
10802 # collect2, so additional links can be useful in future.
10803 if test "$aix_use_runtimelinking" = yes; then
10804 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10805 # instead of lib<name>.a to let people know that these are not
10806 # typical AIX shared libraries.
10807 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10809 # We preserve .a as extension for shared libraries through AIX4.2
10810 # and later when we are not doing run time linking.
10811 library_names_spec='${libname}${release}.a $libname.a'
10812 soname_spec='${libname}${release}${shared_ext}$major'
10814 shlibpath_var=LIBPATH
10821 # Since July 2007 AmigaOS4 officially supports .so libraries.
10822 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10823 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10826 library_names_spec='$libname.ixlibrary $libname.a'
10827 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10828 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'
10834 library_names_spec='${libname}${shared_ext}'
10835 dynamic_linker="$host_os ld.so"
10836 shlibpath_var=LIBRARY_PATH
10840 version_type=linux # correct to gnu/linux during the next big refactor
10842 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10843 soname_spec='${libname}${release}${shared_ext}$major'
10844 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10845 shlibpath_var=LD_LIBRARY_PATH
10846 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10847 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10848 # the default ld.so.conf also contains /usr/contrib/lib and
10849 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10850 # libtool to hard-code these into programs
10853 cygwin* | mingw* | pw32* | cegcc*)
10854 version_type=windows
10859 case $GCC,$cc_basename in
10862 library_names_spec='$libname.dll.a'
10863 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10864 postinstall_cmds='base_file=`basename \${file}`~
10865 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10866 dldir=$destdir/`dirname \$dlpath`~
10867 test -d \$dldir || mkdir -p \$dldir~
10868 $install_prog $dir/$dlname \$dldir/$dlname~
10869 chmod a+x \$dldir/$dlname~
10870 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10871 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10873 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10874 dlpath=$dir/\$dldll~
10876 shlibpath_overrides_runpath=yes
10880 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10881 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10883 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10886 # MinGW DLLs use traditional 'lib' prefix
10887 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10890 # pw32 DLLs use 'pw' prefix rather than 'lib'
10891 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10894 dynamic_linker='Win32 ld.exe'
10899 libname_spec='$name'
10900 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10901 library_names_spec='${libname}.dll.lib'
10905 sys_lib_search_path_spec=
10908 for lt_path in $LIB
10911 # Let DOS variable expansion print the short 8.3 style file name.
10912 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10913 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10916 # Convert to MSYS style.
10917 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10920 # Convert to unix form, then to dos form, then back to unix form
10921 # but this time dos style (no spaces!) so that the unix form looks
10922 # like /cygdrive/c/PROGRA~1:/cygdr...
10923 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10924 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10925 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10928 sys_lib_search_path_spec="$LIB"
10929 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10930 # It is most probably a Windows format PATH.
10931 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10933 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10935 # FIXME: find the short name or the path components, as spaces are
10936 # common. (e.g. "Program Files" -> "PROGRA~1")
10940 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10941 postinstall_cmds='base_file=`basename \${file}`~
10942 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10943 dldir=$destdir/`dirname \$dlpath`~
10944 test -d \$dldir || mkdir -p \$dldir~
10945 $install_prog $dir/$dlname \$dldir/$dlname'
10946 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10947 dlpath=$dir/\$dldll~
10949 shlibpath_overrides_runpath=yes
10950 dynamic_linker='Win32 link.exe'
10954 # Assume MSVC wrapper
10955 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10956 dynamic_linker='Win32 ld.exe'
10959 # FIXME: first we should search . and the directory the executable is in
10963 darwin* | rhapsody*)
10964 dynamic_linker="$host_os dyld"
10965 version_type=darwin
10968 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10969 soname_spec='${libname}${release}${major}$shared_ext'
10970 shlibpath_overrides_runpath=yes
10971 shlibpath_var=DYLD_LIBRARY_PATH
10972 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10974 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10975 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10979 version_type=linux # correct to gnu/linux during the next big refactor
10982 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10983 soname_spec='${libname}${release}${shared_ext}$major'
10984 shlibpath_var=LD_LIBRARY_PATH
10987 freebsd* | dragonfly*)
10988 # DragonFly does not have aout. When/if they implement a new
10989 # versioning mechanism, adjust this.
10990 if test -x /usr/bin/objformat; then
10991 objformat=`/usr/bin/objformat`
10994 freebsd[23].*) objformat=aout ;;
10995 *) objformat=elf ;;
10998 version_type=freebsd-$objformat
10999 case $version_type in
11001 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11006 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11010 shlibpath_var=LD_LIBRARY_PATH
11013 shlibpath_overrides_runpath=yes
11015 freebsd3.[01]* | freebsdelf3.[01]*)
11016 shlibpath_overrides_runpath=yes
11017 hardcode_into_libs=yes
11019 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11020 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11021 shlibpath_overrides_runpath=no
11022 hardcode_into_libs=yes
11024 *) # from 4.6 on, and DragonFly
11025 shlibpath_overrides_runpath=yes
11026 hardcode_into_libs=yes
11032 version_type=linux # correct to gnu/linux during the next big refactor
11035 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11036 soname_spec='${libname}${release}${shared_ext}$major'
11037 shlibpath_var=LD_LIBRARY_PATH
11038 shlibpath_overrides_runpath=no
11039 hardcode_into_libs=yes
11043 version_type=linux # correct to gnu/linux during the next big refactor
11046 dynamic_linker="$host_os runtime_loader"
11047 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11048 soname_spec='${libname}${release}${shared_ext}$major'
11049 shlibpath_var=LIBRARY_PATH
11050 shlibpath_overrides_runpath=yes
11051 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11052 hardcode_into_libs=yes
11055 hpux9* | hpux10* | hpux11*)
11056 # Give a soname corresponding to the major version so that dld.sl refuses to
11057 # link against other versions.
11064 hardcode_into_libs=yes
11065 dynamic_linker="$host_os dld.so"
11066 shlibpath_var=LD_LIBRARY_PATH
11067 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11068 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11069 soname_spec='${libname}${release}${shared_ext}$major'
11070 if test "X$HPUX_IA64_MODE" = X32; then
11071 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11073 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11075 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11079 hardcode_into_libs=yes
11080 dynamic_linker="$host_os dld.sl"
11081 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11082 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11083 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11084 soname_spec='${libname}${release}${shared_ext}$major'
11085 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11086 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11090 dynamic_linker="$host_os dld.sl"
11091 shlibpath_var=SHLIB_PATH
11092 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11093 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11094 soname_spec='${libname}${release}${shared_ext}$major'
11097 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11098 postinstall_cmds='chmod 555 $lib'
11099 # or fails outright, so override atomically:
11100 install_override_mode=555
11104 version_type=linux # correct to gnu/linux during the next big refactor
11107 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11108 soname_spec='${libname}${release}${shared_ext}$major'
11109 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11110 shlibpath_var=LD_LIBRARY_PATH
11111 shlibpath_overrides_runpath=no
11112 hardcode_into_libs=yes
11115 irix5* | irix6* | nonstopux*)
11117 nonstopux*) version_type=nonstopux ;;
11119 if test "$lt_cv_prog_gnu_ld" = yes; then
11120 version_type=linux # correct to gnu/linux during the next big refactor
11127 soname_spec='${libname}${release}${shared_ext}$major'
11128 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11130 irix5* | nonstopux*)
11131 libsuff= shlibsuff=
11134 case $LD in # libtool.m4 will add one of these switches to LD
11135 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11136 libsuff= shlibsuff= libmagic=32-bit;;
11137 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11138 libsuff=32 shlibsuff=N32 libmagic=N32;;
11139 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11140 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11141 *) libsuff= shlibsuff= libmagic=never-match;;
11145 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11146 shlibpath_overrides_runpath=no
11147 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11148 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11149 hardcode_into_libs=yes
11152 # No shared lib support for Linux oldld, aout, or coff.
11153 linux*oldld* | linux*aout* | linux*coff*)
11157 # This must be glibc/ELF.
11158 linux* | k*bsd*-gnu | kopensolaris*-gnu)
11159 version_type=linux # correct to gnu/linux during the next big refactor
11162 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11163 soname_spec='${libname}${release}${shared_ext}$major'
11164 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11165 shlibpath_var=LD_LIBRARY_PATH
11166 shlibpath_overrides_runpath=no
11168 # Some binutils ld are patched to set DT_RUNPATH
11169 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11170 $as_echo_n "(cached) " >&6
11172 lt_cv_shlibpath_overrides_runpath=no
11173 save_LDFLAGS=$LDFLAGS
11174 save_libdir=$libdir
11175 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11176 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11178 /* end confdefs.h. */
11180 #ifdef F77_DUMMY_MAIN
11182 # ifdef __cplusplus
11185 int F77_DUMMY_MAIN() { return 1; }
11196 if ac_fn_c_try_link "$LINENO"; then :
11197 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11198 lt_cv_shlibpath_overrides_runpath=yes
11201 rm -f core conftest.err conftest.$ac_objext \
11202 conftest$ac_exeext conftest.$ac_ext
11203 LDFLAGS=$save_LDFLAGS
11204 libdir=$save_libdir
11208 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11210 # This implies no fast_install, which is unacceptable.
11211 # Some rework will be needed to allow for fast_install
11212 # before this can be enabled.
11213 hardcode_into_libs=yes
11215 # Append ld.so.conf contents to the search path
11216 if test -f /etc/ld.so.conf; then
11217 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' ' '`
11218 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11221 # We used to test for /lib/ld.so.1 and disable shared libraries on
11222 # powerpc, because MkLinux only supported shared libraries with the
11223 # GNU dynamic linker. Since this was broken with cross compilers,
11224 # most powerpc-linux boxes support dynamic linking these days and
11225 # people can always --disable-shared, the test was removed, and we
11226 # assume the GNU/Linux dynamic linker is in use.
11227 dynamic_linker='GNU/Linux ld.so'
11234 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11235 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11236 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11237 dynamic_linker='NetBSD (a.out) ld.so'
11239 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11240 soname_spec='${libname}${release}${shared_ext}$major'
11241 dynamic_linker='NetBSD ld.elf_so'
11243 shlibpath_var=LD_LIBRARY_PATH
11244 shlibpath_overrides_runpath=yes
11245 hardcode_into_libs=yes
11249 version_type=linux # correct to gnu/linux during the next big refactor
11250 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11251 shlibpath_var=LD_LIBRARY_PATH
11252 shlibpath_overrides_runpath=yes
11259 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11260 soname_spec='${libname}${release}${shared_ext}$major'
11261 shlibpath_var=LD_LIBRARY_PATH
11262 shlibpath_overrides_runpath=no
11263 hardcode_into_libs=yes
11264 dynamic_linker='ldqnx.so'
11269 sys_lib_dlsearch_path_spec="/usr/lib"
11271 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11273 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11274 *) need_version=no ;;
11276 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11277 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11278 shlibpath_var=LD_LIBRARY_PATH
11279 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11281 openbsd2.[89] | openbsd2.[89].*)
11282 shlibpath_overrides_runpath=no
11285 shlibpath_overrides_runpath=yes
11289 shlibpath_overrides_runpath=yes
11294 libname_spec='$name'
11297 library_names_spec='$libname${shared_ext} $libname.a'
11298 dynamic_linker='OS/2 ld.exe'
11299 shlibpath_var=LIBPATH
11302 osf3* | osf4* | osf5*)
11306 soname_spec='${libname}${release}${shared_ext}$major'
11307 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11308 shlibpath_var=LD_LIBRARY_PATH
11309 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11310 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11318 version_type=linux # correct to gnu/linux during the next big refactor
11321 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11322 soname_spec='${libname}${release}${shared_ext}$major'
11323 shlibpath_var=LD_LIBRARY_PATH
11324 shlibpath_overrides_runpath=yes
11325 hardcode_into_libs=yes
11326 # ldd complains unless libraries are executable
11327 postinstall_cmds='chmod +x $lib'
11332 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11333 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11334 shlibpath_var=LD_LIBRARY_PATH
11335 shlibpath_overrides_runpath=yes
11336 if test "$with_gnu_ld" = yes; then
11343 version_type=linux # correct to gnu/linux during the next big refactor
11344 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11345 soname_spec='${libname}${release}${shared_ext}$major'
11346 shlibpath_var=LD_LIBRARY_PATH
11347 case $host_vendor in
11349 shlibpath_overrides_runpath=no
11351 runpath_var=LD_RUN_PATH
11359 shlibpath_overrides_runpath=no
11360 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11366 if test -d /usr/nec ;then
11367 version_type=linux # correct to gnu/linux during the next big refactor
11368 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11369 soname_spec='$libname${shared_ext}.$major'
11370 shlibpath_var=LD_LIBRARY_PATH
11374 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11375 version_type=freebsd-elf
11378 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11379 soname_spec='${libname}${release}${shared_ext}$major'
11380 shlibpath_var=LD_LIBRARY_PATH
11381 shlibpath_overrides_runpath=yes
11382 hardcode_into_libs=yes
11383 if test "$with_gnu_ld" = yes; then
11384 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11386 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11389 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11393 sys_lib_dlsearch_path_spec='/usr/lib'
11397 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11398 version_type=linux # correct to gnu/linux during the next big refactor
11401 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11402 shlibpath_var=LD_LIBRARY_PATH
11403 shlibpath_overrides_runpath=no
11404 hardcode_into_libs=yes
11408 version_type=linux # correct to gnu/linux during the next big refactor
11409 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11410 soname_spec='${libname}${release}${shared_ext}$major'
11411 shlibpath_var=LD_LIBRARY_PATH
11418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11419 $as_echo "$dynamic_linker" >&6; }
11420 test "$dynamic_linker" = no && can_build_shared=no
11422 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11423 if test "$GCC" = yes; then
11424 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11427 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11428 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11430 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11431 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11526 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11528 if test -n "$hardcode_libdir_flag_spec" ||
11529 test -n "$runpath_var" ||
11530 test "X$hardcode_automatic" = "Xyes" ; then
11532 # We can hardcode non-existent directories.
11533 if test "$hardcode_direct" != no &&
11534 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11535 # have to relink, otherwise we might link with an installed library
11536 # when we should be linking with a yet-to-be-installed one
11537 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11538 test "$hardcode_minus_L" != no; then
11539 # Linking always hardcodes the temporary library directory.
11540 hardcode_action=relink
11542 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11543 hardcode_action=immediate
11546 # We cannot hardcode anything, or else we can only hardcode existing
11548 hardcode_action=unsupported
11550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11551 $as_echo "$hardcode_action" >&6; }
11553 if test "$hardcode_action" = relink ||
11554 test "$inherit_rpath" = yes; then
11555 # Fast installation is not supported
11556 enable_fast_install=no
11557 elif test "$shlibpath_overrides_runpath" = yes ||
11558 test "$enable_shared" = no; then
11559 # Fast installation is not necessary
11560 enable_fast_install=needless
11568 if test "x$enable_dlopen" != xyes; then
11569 enable_dlopen=unknown
11570 enable_dlopen_self=unknown
11571 enable_dlopen_self_static=unknown
11578 lt_cv_dlopen="load_add_on"
11580 lt_cv_dlopen_self=yes
11583 mingw* | pw32* | cegcc*)
11584 lt_cv_dlopen="LoadLibrary"
11589 lt_cv_dlopen="dlopen"
11594 # if libdl is installed we need to link against it
11595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11596 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11597 if ${ac_cv_lib_dl_dlopen+:} false; then :
11598 $as_echo_n "(cached) " >&6
11600 ac_check_lib_save_LIBS=$LIBS
11602 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11603 /* end confdefs.h. */
11605 /* Override any GCC internal prototype to avoid an error.
11606 Use char because int might match the return type of a GCC
11607 builtin and then its argument prototype would still apply. */
11612 #ifdef F77_DUMMY_MAIN
11614 # ifdef __cplusplus
11617 int F77_DUMMY_MAIN() { return 1; }
11628 if ac_fn_c_try_link "$LINENO"; then :
11629 ac_cv_lib_dl_dlopen=yes
11631 ac_cv_lib_dl_dlopen=no
11633 rm -f core conftest.err conftest.$ac_objext \
11634 conftest$ac_exeext conftest.$ac_ext
11635 LIBS=$ac_check_lib_save_LIBS
11637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11638 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11639 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11640 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11643 lt_cv_dlopen="dyld"
11645 lt_cv_dlopen_self=yes
11652 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11653 if test "x$ac_cv_func_shl_load" = xyes; then :
11654 lt_cv_dlopen="shl_load"
11656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11657 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11658 if ${ac_cv_lib_dld_shl_load+:} false; then :
11659 $as_echo_n "(cached) " >&6
11661 ac_check_lib_save_LIBS=$LIBS
11663 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11664 /* end confdefs.h. */
11666 /* Override any GCC internal prototype to avoid an error.
11667 Use char because int might match the return type of a GCC
11668 builtin and then its argument prototype would still apply. */
11673 #ifdef F77_DUMMY_MAIN
11675 # ifdef __cplusplus
11678 int F77_DUMMY_MAIN() { return 1; }
11684 return shl_load ();
11689 if ac_fn_c_try_link "$LINENO"; then :
11690 ac_cv_lib_dld_shl_load=yes
11692 ac_cv_lib_dld_shl_load=no
11694 rm -f core conftest.err conftest.$ac_objext \
11695 conftest$ac_exeext conftest.$ac_ext
11696 LIBS=$ac_check_lib_save_LIBS
11698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11699 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11700 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11701 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11703 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11704 if test "x$ac_cv_func_dlopen" = xyes; then :
11705 lt_cv_dlopen="dlopen"
11707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11708 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11709 if ${ac_cv_lib_dl_dlopen+:} false; then :
11710 $as_echo_n "(cached) " >&6
11712 ac_check_lib_save_LIBS=$LIBS
11714 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11715 /* end confdefs.h. */
11717 /* Override any GCC internal prototype to avoid an error.
11718 Use char because int might match the return type of a GCC
11719 builtin and then its argument prototype would still apply. */
11724 #ifdef F77_DUMMY_MAIN
11726 # ifdef __cplusplus
11729 int F77_DUMMY_MAIN() { return 1; }
11740 if ac_fn_c_try_link "$LINENO"; then :
11741 ac_cv_lib_dl_dlopen=yes
11743 ac_cv_lib_dl_dlopen=no
11745 rm -f core conftest.err conftest.$ac_objext \
11746 conftest$ac_exeext conftest.$ac_ext
11747 LIBS=$ac_check_lib_save_LIBS
11749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11750 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11751 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11752 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11755 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11756 if ${ac_cv_lib_svld_dlopen+:} false; then :
11757 $as_echo_n "(cached) " >&6
11759 ac_check_lib_save_LIBS=$LIBS
11760 LIBS="-lsvld $LIBS"
11761 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11762 /* end confdefs.h. */
11764 /* Override any GCC internal prototype to avoid an error.
11765 Use char because int might match the return type of a GCC
11766 builtin and then its argument prototype would still apply. */
11771 #ifdef F77_DUMMY_MAIN
11773 # ifdef __cplusplus
11776 int F77_DUMMY_MAIN() { return 1; }
11787 if ac_fn_c_try_link "$LINENO"; then :
11788 ac_cv_lib_svld_dlopen=yes
11790 ac_cv_lib_svld_dlopen=no
11792 rm -f core conftest.err conftest.$ac_objext \
11793 conftest$ac_exeext conftest.$ac_ext
11794 LIBS=$ac_check_lib_save_LIBS
11796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11797 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11798 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11799 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11802 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11803 if ${ac_cv_lib_dld_dld_link+:} false; then :
11804 $as_echo_n "(cached) " >&6
11806 ac_check_lib_save_LIBS=$LIBS
11808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11809 /* end confdefs.h. */
11811 /* Override any GCC internal prototype to avoid an error.
11812 Use char because int might match the return type of a GCC
11813 builtin and then its argument prototype would still apply. */
11818 #ifdef F77_DUMMY_MAIN
11820 # ifdef __cplusplus
11823 int F77_DUMMY_MAIN() { return 1; }
11829 return dld_link ();
11834 if ac_fn_c_try_link "$LINENO"; then :
11835 ac_cv_lib_dld_dld_link=yes
11837 ac_cv_lib_dld_dld_link=no
11839 rm -f core conftest.err conftest.$ac_objext \
11840 conftest$ac_exeext conftest.$ac_ext
11841 LIBS=$ac_check_lib_save_LIBS
11843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11844 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11845 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11846 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11867 if test "x$lt_cv_dlopen" != xno; then
11873 case $lt_cv_dlopen in
11875 save_CPPFLAGS="$CPPFLAGS"
11876 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11878 save_LDFLAGS="$LDFLAGS"
11879 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11882 LIBS="$lt_cv_dlopen_libs $LIBS"
11884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11885 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11886 if ${lt_cv_dlopen_self+:} false; then :
11887 $as_echo_n "(cached) " >&6
11889 if test "$cross_compiling" = yes; then :
11890 lt_cv_dlopen_self=cross
11892 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11893 lt_status=$lt_dlunknown
11894 cat > conftest.$ac_ext <<_LT_EOF
11895 #line $LINENO "configure"
11896 #include "confdefs.h"
11905 # define LT_DLGLOBAL RTLD_GLOBAL
11908 # define LT_DLGLOBAL DL_GLOBAL
11910 # define LT_DLGLOBAL 0
11914 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11915 find out it does not work in some platform. */
11916 #ifndef LT_DLLAZY_OR_NOW
11918 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11921 # define LT_DLLAZY_OR_NOW DL_LAZY
11924 # define LT_DLLAZY_OR_NOW RTLD_NOW
11927 # define LT_DLLAZY_OR_NOW DL_NOW
11929 # define LT_DLLAZY_OR_NOW 0
11936 /* When -fvisbility=hidden is used, assume the code has been annotated
11937 correspondingly for the symbols needed. */
11938 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11939 int fnord () __attribute__((visibility("default")));
11942 int fnord () { return 42; }
11945 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11946 int status = $lt_dlunknown;
11950 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11953 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11954 else puts (dlerror ());
11956 /* dlclose (self); */
11964 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11965 (eval $ac_link) 2>&5
11967 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11968 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11969 (./conftest; exit; ) >&5 2>/dev/null
11971 case x$lt_status in
11972 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11973 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11974 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11977 # compilation failed
11978 lt_cv_dlopen_self=no
11985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11986 $as_echo "$lt_cv_dlopen_self" >&6; }
11988 if test "x$lt_cv_dlopen_self" = xyes; then
11989 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11991 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11992 if ${lt_cv_dlopen_self_static+:} false; then :
11993 $as_echo_n "(cached) " >&6
11995 if test "$cross_compiling" = yes; then :
11996 lt_cv_dlopen_self_static=cross
11998 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11999 lt_status=$lt_dlunknown
12000 cat > conftest.$ac_ext <<_LT_EOF
12001 #line $LINENO "configure"
12002 #include "confdefs.h"
12011 # define LT_DLGLOBAL RTLD_GLOBAL
12014 # define LT_DLGLOBAL DL_GLOBAL
12016 # define LT_DLGLOBAL 0
12020 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12021 find out it does not work in some platform. */
12022 #ifndef LT_DLLAZY_OR_NOW
12024 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12027 # define LT_DLLAZY_OR_NOW DL_LAZY
12030 # define LT_DLLAZY_OR_NOW RTLD_NOW
12033 # define LT_DLLAZY_OR_NOW DL_NOW
12035 # define LT_DLLAZY_OR_NOW 0
12042 /* When -fvisbility=hidden is used, assume the code has been annotated
12043 correspondingly for the symbols needed. */
12044 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12045 int fnord () __attribute__((visibility("default")));
12048 int fnord () { return 42; }
12051 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12052 int status = $lt_dlunknown;
12056 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12059 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12060 else puts (dlerror ());
12062 /* dlclose (self); */
12070 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12071 (eval $ac_link) 2>&5
12073 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12074 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12075 (./conftest; exit; ) >&5 2>/dev/null
12077 case x$lt_status in
12078 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12079 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12080 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12083 # compilation failed
12084 lt_cv_dlopen_self_static=no
12091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12092 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12095 CPPFLAGS="$save_CPPFLAGS"
12096 LDFLAGS="$save_LDFLAGS"
12101 case $lt_cv_dlopen_self in
12102 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12103 *) enable_dlopen_self=unknown ;;
12106 case $lt_cv_dlopen_self_static in
12107 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12108 *) enable_dlopen_self_static=unknown ;;
12130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12131 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12132 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12133 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12134 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12136 $as_echo "yes" >&6; }
12138 # FIXME - insert some real tests, host_os isn't really good enough
12141 if test -n "$STRIP" ; then
12142 striplib="$STRIP -x"
12143 old_striplib="$STRIP -S"
12144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12145 $as_echo "yes" >&6; }
12147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12148 $as_echo "no" >&6; }
12152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12153 $as_echo "no" >&6; }
12169 # Report which library types will actually be built
12170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12171 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12173 $as_echo "$can_build_shared" >&6; }
12175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12176 $as_echo_n "checking whether to build shared libraries... " >&6; }
12177 test "$can_build_shared" = "no" && enable_shared=no
12179 # On AIX, shared libraries and static libraries use the same namespace, and
12180 # are all built from PIC.
12183 test "$enable_shared" = yes && enable_static=no
12184 if test -n "$RANLIB"; then
12185 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12186 postinstall_cmds='$RANLIB $lib'
12191 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12192 test "$enable_shared" = yes && enable_static=no
12196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12197 $as_echo "$enable_shared" >&6; }
12199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12200 $as_echo_n "checking whether to build static libraries... " >&6; }
12201 # Make sure either enable_shared or enable_static is yes.
12202 test "$enable_shared" = yes || enable_static=yes
12203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12204 $as_echo "$enable_static" >&6; }
12211 ac_cpp='$CPP $CPPFLAGS'
12212 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12213 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12214 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12221 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
12222 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12223 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
12225 if test -z "$F77" || test "X$F77" = "Xno"; then
12226 _lt_disable_F77=yes
12229 archive_cmds_need_lc_F77=no
12230 allow_undefined_flag_F77=
12231 always_export_symbols_F77=no
12232 archive_expsym_cmds_F77=
12233 export_dynamic_flag_spec_F77=
12234 hardcode_direct_F77=no
12235 hardcode_direct_absolute_F77=no
12236 hardcode_libdir_flag_spec_F77=
12237 hardcode_libdir_separator_F77=
12238 hardcode_minus_L_F77=no
12239 hardcode_automatic_F77=no
12240 inherit_rpath_F77=no
12242 module_expsym_cmds_F77=
12243 link_all_deplibs_F77=unknown
12244 old_archive_cmds_F77=$old_archive_cmds
12245 reload_flag_F77=$reload_flag
12246 reload_cmds_F77=$reload_cmds
12247 no_undefined_flag_F77=
12248 whole_archive_flag_spec_F77=
12249 enable_shared_with_static_runtimes_F77=no
12251 # Source file extension for f77 test sources.
12254 # Object file extension for compiled f77 test sources.
12258 # No sense in running all these tests if we already determined that
12259 # the F77 compiler isn't working. Some variables (like enable_shared)
12260 # are currently assumed to apply to all compilers on this platform,
12261 # and will be corrupted by setting them based on a non-working compiler.
12262 if test "$_lt_disable_F77" != yes; then
12263 # Code to be used in simple compile tests
12264 lt_simple_compile_test_code="\
12270 # Code to be used in simple link tests
12271 lt_simple_link_test_code="\
12276 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12283 # If no C compiler was specified, use CC.
12286 # If no C compiler flags were specified, use CFLAGS.
12287 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12289 # Allow CC to be a program name with arguments.
12293 # save warnings/boilerplate of simple test code
12294 ac_outfile=conftest.$ac_objext
12295 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12296 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12297 _lt_compiler_boilerplate=`cat conftest.err`
12300 ac_outfile=conftest.$ac_objext
12301 echo "$lt_simple_link_test_code" >conftest.$ac_ext
12302 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12303 _lt_linker_boilerplate=`cat conftest.err`
12307 # Allow CC to be a program name with arguments.
12310 lt_save_CFLAGS=$CFLAGS
12315 for cc_temp in $compiler""; do
12317 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12318 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12323 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
12326 if test -n "$compiler"; then
12327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12328 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12330 $as_echo "$can_build_shared" >&6; }
12332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12333 $as_echo_n "checking whether to build shared libraries... " >&6; }
12334 test "$can_build_shared" = "no" && enable_shared=no
12336 # On AIX, shared libraries and static libraries use the same namespace, and
12337 # are all built from PIC.
12340 test "$enable_shared" = yes && enable_static=no
12341 if test -n "$RANLIB"; then
12342 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12343 postinstall_cmds='$RANLIB $lib'
12347 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12348 test "$enable_shared" = yes && enable_static=no
12352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12353 $as_echo "$enable_shared" >&6; }
12355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12356 $as_echo_n "checking whether to build static libraries... " >&6; }
12357 # Make sure either enable_shared or enable_static is yes.
12358 test "$enable_shared" = yes || enable_static=yes
12359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12360 $as_echo "$enable_static" >&6; }
12366 ## There is no encapsulation within the following macros, do not change
12367 ## the running order or otherwise move them around unless you know exactly
12368 ## what you are doing...
12369 lt_prog_compiler_wl_F77=
12370 lt_prog_compiler_pic_F77=
12371 lt_prog_compiler_static_F77=
12374 if test "$GCC" = yes; then
12375 lt_prog_compiler_wl_F77='-Wl,'
12376 lt_prog_compiler_static_F77='-static'
12380 # All AIX code is PIC.
12381 if test "$host_cpu" = ia64; then
12382 # AIX 5 now supports IA64 processor
12383 lt_prog_compiler_static_F77='-Bstatic'
12390 # see comment about AmigaOS4 .so support
12391 lt_prog_compiler_pic_F77='-fPIC'
12394 # FIXME: we need at least 68020 code to build shared libraries, but
12395 # adding the `-m68020' flag to GCC prevents building anything better,
12397 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
12402 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12403 # PIC is the default for these OSes.
12406 mingw* | cygwin* | pw32* | os2* | cegcc*)
12407 # This hack is so that the source file can tell whether it is being
12408 # built for inclusion in a dll (and should export symbols for example).
12409 # Although the cygwin gcc ignores -fPIC, still need this for old-style
12410 # (--disable-auto-import) libraries
12411 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
12414 darwin* | rhapsody*)
12415 # PIC is the default on this platform
12416 # Common symbols not allowed in MH_DYLIB files
12417 lt_prog_compiler_pic_F77='-fno-common'
12421 # PIC is the default for Haiku.
12422 # The "-static" flag exists, but is broken.
12423 lt_prog_compiler_static_F77=
12427 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
12428 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
12429 # sets the default TLS model and affects inlining.
12435 lt_prog_compiler_pic_F77='-fPIC'
12441 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12442 # Instead, we relocate shared libraries at runtime.
12446 # Just because we use GCC doesn't mean we suddenly get shared libraries
12447 # on systems that don't support them.
12448 lt_prog_compiler_can_build_shared_F77=no
12453 # QNX uses GNU C++, but need to define -shared option too, otherwise
12454 # it will coredump.
12455 lt_prog_compiler_pic_F77='-fPIC -shared'
12459 if test -d /usr/nec; then
12460 lt_prog_compiler_pic_F77=-Kconform_pic
12465 lt_prog_compiler_pic_F77='-fPIC'
12469 case $cc_basename in
12470 nvcc*) # Cuda Compiler Driver 2.2
12471 lt_prog_compiler_wl_F77='-Xlinker '
12472 if test -n "$lt_prog_compiler_pic_F77"; then
12473 lt_prog_compiler_pic_F77="-Xcompiler $lt_prog_compiler_pic_F77"
12478 # PORTME Check for flag to pass linker flags through the system compiler.
12481 lt_prog_compiler_wl_F77='-Wl,'
12482 if test "$host_cpu" = ia64; then
12483 # AIX 5 now supports IA64 processor
12484 lt_prog_compiler_static_F77='-Bstatic'
12486 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
12490 mingw* | cygwin* | pw32* | os2* | cegcc*)
12491 # This hack is so that the source file can tell whether it is being
12492 # built for inclusion in a dll (and should export symbols for example).
12493 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
12496 hpux9* | hpux10* | hpux11*)
12497 lt_prog_compiler_wl_F77='-Wl,'
12498 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12499 # not for PA HP-UX.
12505 lt_prog_compiler_pic_F77='+Z'
12508 # Is there a better lt_prog_compiler_static that works with the bundled CC?
12509 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
12512 irix5* | irix6* | nonstopux*)
12513 lt_prog_compiler_wl_F77='-Wl,'
12514 # PIC (with -KPIC) is the default.
12515 lt_prog_compiler_static_F77='-non_shared'
12518 linux* | k*bsd*-gnu | kopensolaris*-gnu)
12519 case $cc_basename in
12520 # old Intel for x86_64 which still supported -KPIC.
12522 lt_prog_compiler_wl_F77='-Wl,'
12523 lt_prog_compiler_pic_F77='-KPIC'
12524 lt_prog_compiler_static_F77='-static'
12526 # icc used to be incompatible with GCC.
12527 # ICC 10 doesn't accept -KPIC any more.
12529 lt_prog_compiler_wl_F77='-Wl,'
12530 lt_prog_compiler_pic_F77='-fPIC'
12531 lt_prog_compiler_static_F77='-static'
12533 # Lahey Fortran 8.1.
12535 lt_prog_compiler_wl_F77='-Wl,'
12536 lt_prog_compiler_pic_F77='--shared'
12537 lt_prog_compiler_static_F77='--static'
12540 # NAG Fortran compiler
12541 lt_prog_compiler_wl_F77='-Wl,-Wl,,'
12542 lt_prog_compiler_pic_F77='-PIC'
12543 lt_prog_compiler_static_F77='-Bstatic'
12545 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
12546 # Portland Group compilers (*not* the Pentium gcc compiler,
12547 # which looks to be a dead project)
12548 lt_prog_compiler_wl_F77='-Wl,'
12549 lt_prog_compiler_pic_F77='-fpic'
12550 lt_prog_compiler_static_F77='-Bstatic'
12553 lt_prog_compiler_wl_F77='-Wl,'
12554 # All Alpha code is PIC.
12555 lt_prog_compiler_static_F77='-non_shared'
12557 xl* | bgxl* | bgf* | mpixl*)
12558 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
12559 lt_prog_compiler_wl_F77='-Wl,'
12560 lt_prog_compiler_pic_F77='-qpic'
12561 lt_prog_compiler_static_F77='-qstaticlink'
12564 case `$CC -V 2>&1 | sed 5q` in
12565 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
12566 # Sun Fortran 8.3 passes all unrecognized flags to the linker
12567 lt_prog_compiler_pic_F77='-KPIC'
12568 lt_prog_compiler_static_F77='-Bstatic'
12569 lt_prog_compiler_wl_F77=''
12571 *Sun\ F* | *Sun*Fortran*)
12572 lt_prog_compiler_pic_F77='-KPIC'
12573 lt_prog_compiler_static_F77='-Bstatic'
12574 lt_prog_compiler_wl_F77='-Qoption ld '
12578 lt_prog_compiler_pic_F77='-KPIC'
12579 lt_prog_compiler_static_F77='-Bstatic'
12580 lt_prog_compiler_wl_F77='-Wl,'
12582 *Intel*\ [CF]*Compiler*)
12583 lt_prog_compiler_wl_F77='-Wl,'
12584 lt_prog_compiler_pic_F77='-fPIC'
12585 lt_prog_compiler_static_F77='-static'
12588 lt_prog_compiler_wl_F77='-Wl,'
12589 lt_prog_compiler_pic_F77='-fpic'
12590 lt_prog_compiler_static_F77='-Bstatic'
12598 lt_prog_compiler_pic_F77='-KPIC'
12599 lt_prog_compiler_static_F77='-Bstatic'
12603 # QNX uses GNU C++, but need to define -shared option too, otherwise
12604 # it will coredump.
12605 lt_prog_compiler_pic_F77='-fPIC -shared'
12608 osf3* | osf4* | osf5*)
12609 lt_prog_compiler_wl_F77='-Wl,'
12610 # All OSF/1 code is PIC.
12611 lt_prog_compiler_static_F77='-non_shared'
12615 lt_prog_compiler_static_F77='-non_shared'
12619 lt_prog_compiler_pic_F77='-KPIC'
12620 lt_prog_compiler_static_F77='-Bstatic'
12621 case $cc_basename in
12622 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
12623 lt_prog_compiler_wl_F77='-Qoption ld ';;
12625 lt_prog_compiler_wl_F77='-Wl,';;
12630 lt_prog_compiler_wl_F77='-Qoption ld '
12631 lt_prog_compiler_pic_F77='-PIC'
12632 lt_prog_compiler_static_F77='-Bstatic'
12635 sysv4 | sysv4.2uw2* | sysv4.3*)
12636 lt_prog_compiler_wl_F77='-Wl,'
12637 lt_prog_compiler_pic_F77='-KPIC'
12638 lt_prog_compiler_static_F77='-Bstatic'
12642 if test -d /usr/nec ;then
12643 lt_prog_compiler_pic_F77='-Kconform_pic'
12644 lt_prog_compiler_static_F77='-Bstatic'
12648 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12649 lt_prog_compiler_wl_F77='-Wl,'
12650 lt_prog_compiler_pic_F77='-KPIC'
12651 lt_prog_compiler_static_F77='-Bstatic'
12655 lt_prog_compiler_wl_F77='-Wl,'
12656 lt_prog_compiler_can_build_shared_F77=no
12660 lt_prog_compiler_pic_F77='-pic'
12661 lt_prog_compiler_static_F77='-Bstatic'
12665 lt_prog_compiler_can_build_shared_F77=no
12671 # For platforms which do not support PIC, -DPIC is meaningless:
12673 lt_prog_compiler_pic_F77=
12676 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
12680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
12681 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
12682 if ${lt_cv_prog_compiler_pic_F77+:} false; then :
12683 $as_echo_n "(cached) " >&6
12685 lt_cv_prog_compiler_pic_F77=$lt_prog_compiler_pic_F77
12687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_F77" >&5
12688 $as_echo "$lt_cv_prog_compiler_pic_F77" >&6; }
12689 lt_prog_compiler_pic_F77=$lt_cv_prog_compiler_pic_F77
12692 # Check to make sure the PIC flag actually works.
12694 if test -n "$lt_prog_compiler_pic_F77"; then
12695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
12696 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... " >&6; }
12697 if ${lt_cv_prog_compiler_pic_works_F77+:} false; then :
12698 $as_echo_n "(cached) " >&6
12700 lt_cv_prog_compiler_pic_works_F77=no
12701 ac_outfile=conftest.$ac_objext
12702 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12703 lt_compiler_flag="$lt_prog_compiler_pic_F77"
12704 # Insert the option either (1) after the last *FLAGS variable, or
12705 # (2) before a word containing "conftest.", or (3) at the end.
12706 # Note that $ac_compile itself does not contain backslashes and begins
12707 # with a dollar sign (not a hyphen), so the echo should work correctly.
12708 # The option is referenced via a variable to avoid confusing sed.
12709 lt_compile=`echo "$ac_compile" | $SED \
12710 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12711 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12712 -e 's:$: $lt_compiler_flag:'`
12713 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12714 (eval "$lt_compile" 2>conftest.err)
12716 cat conftest.err >&5
12717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12718 if (exit $ac_status) && test -s "$ac_outfile"; then
12719 # The compiler can only warn and ignore the option if not recognized
12720 # So say no if there are warnings other than the usual output.
12721 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
12722 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12723 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12724 lt_cv_prog_compiler_pic_works_F77=yes
12730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_F77" >&5
12731 $as_echo "$lt_cv_prog_compiler_pic_works_F77" >&6; }
12733 if test x"$lt_cv_prog_compiler_pic_works_F77" = xyes; then
12734 case $lt_prog_compiler_pic_F77 in
12736 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
12739 lt_prog_compiler_pic_F77=
12740 lt_prog_compiler_can_build_shared_F77=no
12750 # Check to make sure the static flag actually works.
12752 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
12753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12754 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
12755 if ${lt_cv_prog_compiler_static_works_F77+:} false; then :
12756 $as_echo_n "(cached) " >&6
12758 lt_cv_prog_compiler_static_works_F77=no
12759 save_LDFLAGS="$LDFLAGS"
12760 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12761 echo "$lt_simple_link_test_code" > conftest.$ac_ext
12762 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12763 # The linker can only warn and ignore the option if not recognized
12764 # So say no if there are warnings
12765 if test -s conftest.err; then
12766 # Append any errors to the config.log.
12767 cat conftest.err 1>&5
12768 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
12769 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12770 if diff conftest.exp conftest.er2 >/dev/null; then
12771 lt_cv_prog_compiler_static_works_F77=yes
12774 lt_cv_prog_compiler_static_works_F77=yes
12778 LDFLAGS="$save_LDFLAGS"
12781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_F77" >&5
12782 $as_echo "$lt_cv_prog_compiler_static_works_F77" >&6; }
12784 if test x"$lt_cv_prog_compiler_static_works_F77" = xyes; then
12787 lt_prog_compiler_static_F77=
12793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12794 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12795 if ${lt_cv_prog_compiler_c_o_F77+:} false; then :
12796 $as_echo_n "(cached) " >&6
12798 lt_cv_prog_compiler_c_o_F77=no
12799 $RM -r conftest 2>/dev/null
12803 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12805 lt_compiler_flag="-o out/conftest2.$ac_objext"
12806 # Insert the option either (1) after the last *FLAGS variable, or
12807 # (2) before a word containing "conftest.", or (3) at the end.
12808 # Note that $ac_compile itself does not contain backslashes and begins
12809 # with a dollar sign (not a hyphen), so the echo should work correctly.
12810 lt_compile=`echo "$ac_compile" | $SED \
12811 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12812 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12813 -e 's:$: $lt_compiler_flag:'`
12814 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12815 (eval "$lt_compile" 2>out/conftest.err)
12817 cat out/conftest.err >&5
12818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12819 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12821 # The compiler can only warn and ignore the option if not recognized
12822 # So say no if there are warnings
12823 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
12824 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12825 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12826 lt_cv_prog_compiler_c_o_F77=yes
12831 # SGI C++ compiler will create directory out/ii_files/ for
12832 # template instantiation
12833 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12834 $RM out/* && rmdir out
12840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_F77" >&5
12841 $as_echo "$lt_cv_prog_compiler_c_o_F77" >&6; }
12845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12846 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12847 if ${lt_cv_prog_compiler_c_o_F77+:} false; then :
12848 $as_echo_n "(cached) " >&6
12850 lt_cv_prog_compiler_c_o_F77=no
12851 $RM -r conftest 2>/dev/null
12855 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12857 lt_compiler_flag="-o out/conftest2.$ac_objext"
12858 # Insert the option either (1) after the last *FLAGS variable, or
12859 # (2) before a word containing "conftest.", or (3) at the end.
12860 # Note that $ac_compile itself does not contain backslashes and begins
12861 # with a dollar sign (not a hyphen), so the echo should work correctly.
12862 lt_compile=`echo "$ac_compile" | $SED \
12863 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12864 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12865 -e 's:$: $lt_compiler_flag:'`
12866 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12867 (eval "$lt_compile" 2>out/conftest.err)
12869 cat out/conftest.err >&5
12870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12871 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12873 # The compiler can only warn and ignore the option if not recognized
12874 # So say no if there are warnings
12875 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
12876 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12877 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12878 lt_cv_prog_compiler_c_o_F77=yes
12883 # SGI C++ compiler will create directory out/ii_files/ for
12884 # template instantiation
12885 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12886 $RM out/* && rmdir out
12892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_F77" >&5
12893 $as_echo "$lt_cv_prog_compiler_c_o_F77" >&6; }
12898 hard_links="nottested"
12899 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
12900 # do not overwrite the value of need_locks provided by the user
12901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
12902 $as_echo_n "checking if we can lock with hard links... " >&6; }
12905 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12907 ln conftest.a conftest.b 2>&5 || hard_links=no
12908 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
12910 $as_echo "$hard_links" >&6; }
12911 if test "$hard_links" = no; then
12912 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12913 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12923 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12926 allow_undefined_flag_F77=
12927 always_export_symbols_F77=no
12929 archive_expsym_cmds_F77=
12930 compiler_needs_object_F77=no
12931 enable_shared_with_static_runtimes_F77=no
12932 export_dynamic_flag_spec_F77=
12933 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12934 hardcode_automatic_F77=no
12935 hardcode_direct_F77=no
12936 hardcode_direct_absolute_F77=no
12937 hardcode_libdir_flag_spec_F77=
12938 hardcode_libdir_separator_F77=
12939 hardcode_minus_L_F77=no
12940 hardcode_shlibpath_var_F77=unsupported
12941 inherit_rpath_F77=no
12942 link_all_deplibs_F77=unknown
12944 module_expsym_cmds_F77=
12945 old_archive_from_new_cmds_F77=
12946 old_archive_from_expsyms_cmds_F77=
12947 thread_safe_flag_spec_F77=
12948 whole_archive_flag_spec_F77=
12949 # include_expsyms should be a list of space-separated symbols to be *always*
12950 # included in the symbol list
12951 include_expsyms_F77=
12952 # exclude_expsyms can be an extended regexp of symbols to exclude
12953 # it will be wrapped by ` (' and `)$', so one must not match beginning or
12954 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
12955 # as well as any symbol that contains `d'.
12956 exclude_expsyms_F77='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
12957 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12958 # platforms (ab)use it in PIC code, but their linkers get confused if
12959 # the symbol is explicitly referenced. Since portable code cannot
12960 # rely on this symbol name, it's probably fine to never include it in
12961 # preloaded symbol tables.
12962 # Exclude shared library initialization/finalization symbols.
12963 extract_expsyms_cmds=
12966 cygwin* | mingw* | pw32* | cegcc*)
12967 # FIXME: the MSVC++ port hasn't been tested in a loooong time
12968 # When not using gcc, we currently assume that we are using
12969 # Microsoft Visual C++.
12970 if test "$GCC" != yes; then
12975 # we just hope/assume this is gcc and not c89 (= MSVC++)
12985 # On some targets, GNU ld is compatible enough with the native linker
12986 # that we're better off using the native interface for both.
12987 lt_use_gnu_ld_interface=no
12988 if test "$with_gnu_ld" = yes; then
12991 # The AIX port of GNU ld has always aspired to compatibility
12992 # with the native linker. However, as the warning in the GNU ld
12993 # block says, versions before 2.19.5* couldn't really create working
12994 # shared libraries, regardless of the interface used.
12995 case `$LD -v 2>&1` in
12996 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
12997 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
12998 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
13000 lt_use_gnu_ld_interface=yes
13005 lt_use_gnu_ld_interface=yes
13010 if test "$lt_use_gnu_ld_interface" = yes; then
13011 # If archive_cmds runs LD, not CC, wlarc should be empty
13014 # Set some defaults for GNU ld with shared library support. These
13015 # are reset later if shared libraries are not supported. Putting them
13016 # here allows them to be overridden if necessary.
13017 runpath_var=LD_RUN_PATH
13018 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13019 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
13020 # ancient GNU ld didn't support --whole-archive et. al.
13021 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
13022 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13024 whole_archive_flag_spec_F77=
13026 supports_anon_versioning=no
13027 case `$LD -v 2>&1` in
13028 *GNU\ gold*) supports_anon_versioning=yes ;;
13029 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13030 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13031 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13032 *\ 2.11.*) ;; # other 2.11 versions
13033 *) supports_anon_versioning=yes ;;
13036 # See if GNU ld supports shared libraries.
13039 # On AIX/PPC, the GNU linker is very broken
13040 if test "$host_cpu" != ia64; then
13044 *** Warning: the GNU linker, at least up to release 2.19, is reported
13045 *** to be unable to reliably create shared libraries on AIX.
13046 *** Therefore, libtool is disabling shared libraries support. If you
13047 *** really care for shared libraries, you may want to install binutils
13048 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
13049 *** You will then need to restart the configuration process.
13058 # see comment about AmigaOS4 .so support
13059 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13060 archive_expsym_cmds_F77=''
13063 archive_cmds_F77='$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)'
13064 hardcode_libdir_flag_spec_F77='-L$libdir'
13065 hardcode_minus_L_F77=yes
13071 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13072 allow_undefined_flag_F77=unsupported
13073 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13074 # support --undefined. This deserves some investigation. FIXME
13075 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13081 cygwin* | mingw* | pw32* | cegcc*)
13082 # _LT_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
13083 # as there is no search path for DLLs.
13084 hardcode_libdir_flag_spec_F77='-L$libdir'
13085 export_dynamic_flag_spec_F77='${wl}--export-all-symbols'
13086 allow_undefined_flag_F77=unsupported
13087 always_export_symbols_F77=no
13088 enable_shared_with_static_runtimes_F77=yes
13089 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
13090 exclude_expsyms_F77='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
13092 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13093 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13094 # If the export-symbols file already is a .def file (1st line
13095 # is EXPORTS), use it as is; otherwise, prepend...
13096 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13097 cp $export_symbols $output_objdir/$soname.def;
13099 echo EXPORTS > $output_objdir/$soname.def;
13100 cat $export_symbols >> $output_objdir/$soname.def;
13102 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13109 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13110 link_all_deplibs_F77=yes
13114 hardcode_direct_F77=no
13115 hardcode_shlibpath_var_F77=no
13116 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13117 export_dynamic_flag_spec_F77='${wl}-E'
13118 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13119 # Instead, shared libraries are loaded at an image base (0x10000000 by
13120 # default) and relocated if they conflict, which is a slow very memory
13121 # consuming and fragmenting process. To avoid this, we pick a random,
13122 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13123 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13124 archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
13125 archive_expsym_cmds_F77='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'
13128 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
13130 if test "$host_os" = linux-dietlibc; then
13131 case $cc_basename in
13132 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
13135 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
13136 && test "$tmp_diet" = no
13138 tmp_addflag=' $pic_flag'
13139 tmp_sharedflag='-shared'
13140 case $cc_basename,$host_cpu in
13141 pgcc*) # Portland Group C compiler
13142 whole_archive_flag_spec_F77='${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'
13143 tmp_addflag=' $pic_flag'
13145 pgf77* | pgf90* | pgf95* | pgfortran*)
13146 # Portland Group f77 and f90 compilers
13147 whole_archive_flag_spec_F77='${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'
13148 tmp_addflag=' $pic_flag -Mnomain' ;;
13149 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
13150 tmp_addflag=' -i_dynamic' ;;
13151 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
13152 tmp_addflag=' -i_dynamic -nofor_main' ;;
13153 ifc* | ifort*) # Intel Fortran compiler
13154 tmp_addflag=' -nofor_main' ;;
13155 lf95*) # Lahey Fortran 8.1
13156 whole_archive_flag_spec_F77=
13157 tmp_sharedflag='--shared' ;;
13158 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
13159 tmp_sharedflag='-qmkshrobj'
13161 nvcc*) # Cuda Compiler Driver 2.2
13162 whole_archive_flag_spec_F77='${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'
13163 compiler_needs_object_F77=yes
13166 case `$CC -V 2>&1 | sed 5q` in
13167 *Sun\ C*) # Sun C 5.9
13168 whole_archive_flag_spec_F77='${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'
13169 compiler_needs_object_F77=yes
13170 tmp_sharedflag='-G' ;;
13171 *Sun\ F*) # Sun Fortran 8.3
13172 tmp_sharedflag='-G' ;;
13174 archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13176 if test "x$supports_anon_versioning" = xyes; then
13177 archive_expsym_cmds_F77='echo "{ global:" > $output_objdir/$libname.ver~
13178 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13179 echo "local: *; };" >> $output_objdir/$libname.ver~
13180 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13183 case $cc_basename in
13184 xlf* | bgf* | bgxlf* | mpixlf*)
13185 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
13186 whole_archive_flag_spec_F77='--whole-archive$convenience --no-whole-archive'
13187 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13188 archive_cmds_F77='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
13189 if test "x$supports_anon_versioning" = xyes; then
13190 archive_expsym_cmds_F77='echo "{ global:" > $output_objdir/$libname.ver~
13191 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13192 echo "local: *; };" >> $output_objdir/$libname.ver~
13193 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
13203 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13204 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13207 archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13208 archive_expsym_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13213 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
13217 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
13218 *** create shared libraries on Solaris systems. Therefore, libtool
13219 *** is disabling shared libraries support. We urge you to upgrade GNU
13220 *** binutils to release 2.9.1 or newer. Another option is to modify
13221 *** your PATH or compiler configuration so that the native linker is
13222 *** used, and then restart.
13225 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13226 archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13227 archive_expsym_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13233 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
13234 case `$LD -v 2>&1` in
13235 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
13239 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
13240 *** reliably create shared libraries on SCO systems. Therefore, libtool
13241 *** is disabling shared libraries support. We urge you to upgrade GNU
13242 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
13243 *** your PATH or compiler configuration so that the native linker is
13244 *** used, and then restart.
13249 # For security reasons, it is highly recommended that you always
13250 # use absolute paths for naming shared libraries, and exclude the
13251 # DT_RUNPATH tag from executables and libraries. But doing so
13252 # requires that you compile everything twice, which is a pain.
13253 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13254 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13255 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13256 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13265 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13267 hardcode_direct_F77=yes
13268 hardcode_shlibpath_var_F77=no
13272 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13273 archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13274 archive_expsym_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13281 if test "$ld_shlibs_F77" = no; then
13283 hardcode_libdir_flag_spec_F77=
13284 export_dynamic_flag_spec_F77=
13285 whole_archive_flag_spec_F77=
13288 # PORTME fill in a description of your system's linker (not GNU ld)
13291 allow_undefined_flag_F77=unsupported
13292 always_export_symbols_F77=yes
13293 archive_expsym_cmds_F77='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
13294 # Note: this linker hardcodes the directories in LIBPATH if there
13295 # are no directories specified by -L.
13296 hardcode_minus_L_F77=yes
13297 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
13298 # Neither direct hardcoding nor static linking is supported with a
13300 hardcode_direct_F77=unsupported
13305 if test "$host_cpu" = ia64; then
13306 # On IA64, the linker does run time linking by default, so we don't
13307 # have to do anything special.
13308 aix_use_runtimelinking=no
13309 exp_sym_flag='-Bexport'
13312 # If we're using GNU nm, then we don't want the "-C" option.
13313 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13314 # Also, AIX nm treats weak defined symbols like other global
13315 # defined symbols, whereas GNU nm marks them as "W".
13316 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
13317 export_symbols_cmds_F77='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
13319 export_symbols_cmds_F77='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
13321 aix_use_runtimelinking=no
13323 # Test if we are trying to use run time linking or normal
13324 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13325 # need to do runtime linking.
13326 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13327 for ld_flag in $LDFLAGS; do
13328 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13329 aix_use_runtimelinking=yes
13336 exp_sym_flag='-bexport'
13337 no_entry_flag='-bnoentry'
13340 # When large executables or shared objects are built, AIX ld can
13341 # have problems creating the table of contents. If linking a library
13342 # or program results in "error TOC overflow" add -mminimal-toc to
13343 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13344 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13346 archive_cmds_F77=''
13347 hardcode_direct_F77=yes
13348 hardcode_direct_absolute_F77=yes
13349 hardcode_libdir_separator_F77=':'
13350 link_all_deplibs_F77=yes
13351 file_list_spec_F77='${wl}-f,'
13353 if test "$GCC" = yes; then
13354 case $host_os in aix4.[012]|aix4.[012].*)
13355 # We only want to do this on AIX 4.2 and lower, the check
13356 # below for broken collect2 doesn't work under 4.3+
13357 collect2name=`${CC} -print-prog-name=collect2`
13358 if test -f "$collect2name" &&
13359 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13361 # We have reworked collect2
13364 # We have old collect2
13365 hardcode_direct_F77=unsupported
13366 # It fails to find uninstalled libraries when the uninstalled
13367 # path is not listed in the libpath. Setting hardcode_minus_L
13368 # to unsupported forces relinking
13369 hardcode_minus_L_F77=yes
13370 hardcode_libdir_flag_spec_F77='-L$libdir'
13371 hardcode_libdir_separator_F77=
13375 shared_flag='-shared'
13376 if test "$aix_use_runtimelinking" = yes; then
13377 shared_flag="$shared_flag "'${wl}-G'
13381 if test "$host_cpu" = ia64; then
13382 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13383 # chokes on -Wl,-G. The following line is correct:
13386 if test "$aix_use_runtimelinking" = yes; then
13387 shared_flag='${wl}-G'
13389 shared_flag='${wl}-bM:SRE'
13394 export_dynamic_flag_spec_F77='${wl}-bexpall'
13395 # It seems that -bexpall does not export symbols beginning with
13396 # underscore (_), so it is better to generate a list of symbols to export.
13397 always_export_symbols_F77=yes
13398 if test "$aix_use_runtimelinking" = yes; then
13399 # Warning - without using the other runtime loading flags (-brtl),
13400 # -berok will link without error, but may produce a broken library.
13401 allow_undefined_flag_F77='-berok'
13402 # Determine the default libpath from the value encoded in an
13403 # empty executable.
13404 if test "${lt_cv_aix_libpath+set}" = set; then
13405 aix_libpath=$lt_cv_aix_libpath
13407 if ${lt_cv_aix_libpath__F77+:} false; then :
13408 $as_echo_n "(cached) " >&6
13410 cat > conftest.$ac_ext <<_ACEOF
13415 if ac_fn_f77_try_link "$LINENO"; then :
13417 lt_aix_libpath_sed='
13418 /Import File Strings/,/^$/ {
13420 s/^0 *\([^ ]*\) *$/\1/
13424 lt_cv_aix_libpath__F77=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13425 # Check for a 64-bit object if we didn't find anything.
13426 if test -z "$lt_cv_aix_libpath__F77"; then
13427 lt_cv_aix_libpath__F77=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13430 rm -f core conftest.err conftest.$ac_objext \
13431 conftest$ac_exeext conftest.$ac_ext
13432 if test -z "$lt_cv_aix_libpath__F77"; then
13433 lt_cv_aix_libpath__F77="/usr/lib:/lib"
13438 aix_libpath=$lt_cv_aix_libpath__F77
13441 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13442 archive_expsym_cmds_F77='$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"
13444 if test "$host_cpu" = ia64; then
13445 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
13446 allow_undefined_flag_F77="-z nodefs"
13447 archive_expsym_cmds_F77="\$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"
13449 # Determine the default libpath from the value encoded in an
13450 # empty executable.
13451 if test "${lt_cv_aix_libpath+set}" = set; then
13452 aix_libpath=$lt_cv_aix_libpath
13454 if ${lt_cv_aix_libpath__F77+:} false; then :
13455 $as_echo_n "(cached) " >&6
13457 cat > conftest.$ac_ext <<_ACEOF
13462 if ac_fn_f77_try_link "$LINENO"; then :
13464 lt_aix_libpath_sed='
13465 /Import File Strings/,/^$/ {
13467 s/^0 *\([^ ]*\) *$/\1/
13471 lt_cv_aix_libpath__F77=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13472 # Check for a 64-bit object if we didn't find anything.
13473 if test -z "$lt_cv_aix_libpath__F77"; then
13474 lt_cv_aix_libpath__F77=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13477 rm -f core conftest.err conftest.$ac_objext \
13478 conftest$ac_exeext conftest.$ac_ext
13479 if test -z "$lt_cv_aix_libpath__F77"; then
13480 lt_cv_aix_libpath__F77="/usr/lib:/lib"
13485 aix_libpath=$lt_cv_aix_libpath__F77
13488 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13489 # Warning - without using the other run time loading flags,
13490 # -berok will link without error, but may produce a broken library.
13491 no_undefined_flag_F77=' ${wl}-bernotok'
13492 allow_undefined_flag_F77=' ${wl}-berok'
13493 if test "$with_gnu_ld" = yes; then
13494 # We only use this code for GNU lds that support --whole-archive.
13495 whole_archive_flag_spec_F77='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13497 # Exported symbols can be pulled into shared objects from archives
13498 whole_archive_flag_spec_F77='$convenience'
13500 archive_cmds_need_lc_F77=yes
13501 # This is similar to how AIX traditionally builds its shared libraries.
13502 archive_expsym_cmds_F77="\$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'
13510 # see comment about AmigaOS4 .so support
13511 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13512 archive_expsym_cmds_F77=''
13515 archive_cmds_F77='$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)'
13516 hardcode_libdir_flag_spec_F77='-L$libdir'
13517 hardcode_minus_L_F77=yes
13523 export_dynamic_flag_spec_F77=-rdynamic
13526 cygwin* | mingw* | pw32* | cegcc*)
13527 # When not using gcc, we currently assume that we are using
13528 # Microsoft Visual C++.
13529 # hardcode_libdir_flag_spec is actually meaningless, as there is
13530 # no search path for DLLs.
13531 case $cc_basename in
13534 hardcode_libdir_flag_spec_F77=' '
13535 allow_undefined_flag_F77=unsupported
13536 always_export_symbols_F77=yes
13537 file_list_spec_F77='@'
13538 # Tell ltmain to make .lib files, not .a files.
13540 # Tell ltmain to make .dll files, not .so files.
13542 # FIXME: Setting linknames here is a bad hack.
13543 archive_cmds_F77='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
13544 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13545 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
13547 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
13549 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
13551 # The linker will not automatically build a static lib if we build a DLL.
13552 # _LT_TAGVAR(old_archive_from_new_cmds, F77)='true'
13553 enable_shared_with_static_runtimes_F77=yes
13554 exclude_expsyms_F77='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
13555 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
13557 old_postinstall_cmds_F77='chmod 644 $oldlib'
13558 postlink_cmds_F77='lt_outputfile="@OUTPUT@"~
13559 lt_tool_outputfile="@TOOL_OUTPUT@"~
13560 case $lt_outputfile in
13563 lt_outputfile="$lt_outputfile.exe"
13564 lt_tool_outputfile="$lt_tool_outputfile.exe"
13567 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
13568 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
13569 $RM "$lt_outputfile.manifest";
13573 # Assume MSVC wrapper
13574 hardcode_libdir_flag_spec_F77=' '
13575 allow_undefined_flag_F77=unsupported
13576 # Tell ltmain to make .lib files, not .a files.
13578 # Tell ltmain to make .dll files, not .so files.
13580 # FIXME: Setting linknames here is a bad hack.
13581 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
13582 # The linker will automatically build a .lib file if we build a DLL.
13583 old_archive_from_new_cmds_F77='true'
13584 # FIXME: Should let the user specify the lib program.
13585 old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs'
13586 enable_shared_with_static_runtimes_F77=yes
13591 darwin* | rhapsody*)
13594 archive_cmds_need_lc_F77=no
13595 hardcode_direct_F77=no
13596 hardcode_automatic_F77=yes
13597 hardcode_shlibpath_var_F77=unsupported
13598 if test "$lt_cv_ld_force_load" = "yes"; then
13599 whole_archive_flag_spec_F77='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
13600 compiler_needs_object_F77=yes
13602 whole_archive_flag_spec_F77=''
13604 link_all_deplibs_F77=yes
13605 allow_undefined_flag_F77="$_lt_dar_allow_undefined"
13606 case $cc_basename in
13607 ifort*) _lt_dar_can_shared=yes ;;
13608 *) _lt_dar_can_shared=$GCC ;;
13610 if test "$_lt_dar_can_shared" = "yes"; then
13611 output_verbose_link_cmd=func_echo_all
13612 archive_cmds_F77="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
13613 module_cmds_F77="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13614 archive_expsym_cmds_F77="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}"
13615 module_expsym_cmds_F77="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}"
13624 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13625 hardcode_libdir_flag_spec_F77='-L$libdir'
13626 hardcode_shlibpath_var_F77=no
13629 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13630 # support. Future versions do this automatically, but an explicit c++rt0.o
13631 # does not break anything, and helps significantly (at the cost of a little
13634 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13635 hardcode_libdir_flag_spec_F77='-R$libdir'
13636 hardcode_direct_F77=yes
13637 hardcode_shlibpath_var_F77=no
13640 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13642 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13643 hardcode_direct_F77=yes
13644 hardcode_minus_L_F77=yes
13645 hardcode_shlibpath_var_F77=no
13648 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13649 freebsd* | dragonfly*)
13650 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13651 hardcode_libdir_flag_spec_F77='-R$libdir'
13652 hardcode_direct_F77=yes
13653 hardcode_shlibpath_var_F77=no
13657 if test "$GCC" = yes; then
13658 archive_cmds_F77='$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'
13660 archive_cmds_F77='$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'
13662 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13663 hardcode_libdir_separator_F77=:
13664 hardcode_direct_F77=yes
13666 # hardcode_minus_L: Not really in the search PATH,
13667 # but as the default location of the library.
13668 hardcode_minus_L_F77=yes
13669 export_dynamic_flag_spec_F77='${wl}-E'
13673 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
13674 archive_cmds_F77='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13676 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13678 if test "$with_gnu_ld" = no; then
13679 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13680 hardcode_libdir_separator_F77=:
13681 hardcode_direct_F77=yes
13682 hardcode_direct_absolute_F77=yes
13683 export_dynamic_flag_spec_F77='${wl}-E'
13684 # hardcode_minus_L: Not really in the search PATH,
13685 # but as the default location of the library.
13686 hardcode_minus_L_F77=yes
13691 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
13694 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13697 archive_cmds_F77='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13700 archive_cmds_F77='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13706 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13709 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13712 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13716 if test "$with_gnu_ld" = no; then
13717 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13718 hardcode_libdir_separator_F77=:
13722 hardcode_direct_F77=no
13723 hardcode_shlibpath_var_F77=no
13726 hardcode_direct_F77=yes
13727 hardcode_direct_absolute_F77=yes
13728 export_dynamic_flag_spec_F77='${wl}-E'
13730 # hardcode_minus_L: Not really in the search PATH,
13731 # but as the default location of the library.
13732 hardcode_minus_L_F77=yes
13738 irix5* | irix6* | nonstopux*)
13739 if test "$GCC" = yes; then
13740 archive_cmds_F77='$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'
13741 # Try to use the -exported_symbol ld option, if it does not
13742 # work, assume that -exports_file does not work either and
13743 # implicitly export all symbols.
13744 # This should be the same for all languages, so no per-tag cache variable.
13745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
13746 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
13747 if ${lt_cv_irix_exported_symbol+:} false; then :
13748 $as_echo_n "(cached) " >&6
13750 save_LDFLAGS="$LDFLAGS"
13751 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
13752 cat > conftest.$ac_ext <<_ACEOF
13757 if ac_fn_f77_try_link "$LINENO"; then :
13758 lt_cv_irix_exported_symbol=yes
13760 lt_cv_irix_exported_symbol=no
13762 rm -f core conftest.err conftest.$ac_objext \
13763 conftest$ac_exeext conftest.$ac_ext
13764 LDFLAGS="$save_LDFLAGS"
13766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
13767 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
13768 if test "$lt_cv_irix_exported_symbol" = yes; then
13769 archive_expsym_cmds_F77='$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'
13772 archive_cmds_F77='$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'
13773 archive_expsym_cmds_F77='$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'
13775 archive_cmds_need_lc_F77='no'
13776 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13777 hardcode_libdir_separator_F77=:
13778 inherit_rpath_F77=yes
13779 link_all_deplibs_F77=yes
13783 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13784 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
13786 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
13788 hardcode_libdir_flag_spec_F77='-R$libdir'
13789 hardcode_direct_F77=yes
13790 hardcode_shlibpath_var_F77=no
13794 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13795 hardcode_direct_F77=yes
13796 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13797 hardcode_libdir_separator_F77=:
13798 hardcode_shlibpath_var_F77=no
13805 if test -f /usr/libexec/ld.so; then
13806 hardcode_direct_F77=yes
13807 hardcode_shlibpath_var_F77=no
13808 hardcode_direct_absolute_F77=yes
13809 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13810 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13811 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
13812 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13813 export_dynamic_flag_spec_F77='${wl}-E'
13816 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
13817 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13818 hardcode_libdir_flag_spec_F77='-R$libdir'
13821 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13822 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13832 hardcode_libdir_flag_spec_F77='-L$libdir'
13833 hardcode_minus_L_F77=yes
13834 allow_undefined_flag_F77=unsupported
13835 archive_cmds_F77='$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'
13836 old_archive_from_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
13840 if test "$GCC" = yes; then
13841 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
13842 archive_cmds_F77='$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'
13844 allow_undefined_flag_F77=' -expect_unresolved \*'
13845 archive_cmds_F77='$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'
13847 archive_cmds_need_lc_F77='no'
13848 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13849 hardcode_libdir_separator_F77=:
13852 osf4* | osf5*) # as osf3* with the addition of -msym flag
13853 if test "$GCC" = yes; then
13854 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
13855 archive_cmds_F77='$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'
13856 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13858 allow_undefined_flag_F77=' -expect_unresolved \*'
13859 archive_cmds_F77='$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'
13860 archive_expsym_cmds_F77='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
13861 $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'
13863 # Both c and cxx compiler support -rpath directly
13864 hardcode_libdir_flag_spec_F77='-rpath $libdir'
13866 archive_cmds_need_lc_F77='no'
13867 hardcode_libdir_separator_F77=:
13871 no_undefined_flag_F77=' -z defs'
13872 if test "$GCC" = yes; then
13874 archive_cmds_F77='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13875 archive_expsym_cmds_F77='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13876 $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'
13878 case `$CC -V 2>&1` in
13881 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13882 archive_expsym_cmds_F77='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13883 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
13887 archive_cmds_F77='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
13888 archive_expsym_cmds_F77='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13889 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
13893 hardcode_libdir_flag_spec_F77='-R$libdir'
13894 hardcode_shlibpath_var_F77=no
13896 solaris2.[0-5] | solaris2.[0-5].*) ;;
13898 # The compiler driver will combine and reorder linker options,
13899 # but understands `-z linker_flag'. GCC discards it without `$wl',
13900 # but is careful enough not to reorder.
13901 # Supported since Solaris 2.6 (maybe 2.5.1?)
13902 if test "$GCC" = yes; then
13903 whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13905 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract'
13909 link_all_deplibs_F77=yes
13913 if test "x$host_vendor" = xsequent; then
13914 # Use $CC to link under sequent, because it throws in some extra .o
13915 # files that make .init and .fini sections work.
13916 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13918 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13920 hardcode_libdir_flag_spec_F77='-L$libdir'
13921 hardcode_direct_F77=yes
13922 hardcode_minus_L_F77=yes
13923 hardcode_shlibpath_var_F77=no
13927 case $host_vendor in
13929 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13930 hardcode_direct_F77=yes # is this really true???
13933 ## LD is ld it makes a PLAMLIB
13934 ## CC just makes a GrossModule.
13935 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13936 reload_cmds_F77='$CC -r -o $output$reload_objs'
13937 hardcode_direct_F77=no
13940 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13941 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
13944 runpath_var='LD_RUN_PATH'
13945 hardcode_shlibpath_var_F77=no
13949 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13950 hardcode_shlibpath_var_F77=no
13951 export_dynamic_flag_spec_F77='-Bexport'
13955 if test -d /usr/nec; then
13956 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13957 hardcode_shlibpath_var_F77=no
13958 runpath_var=LD_RUN_PATH
13959 hardcode_runpath_var=yes
13964 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13965 no_undefined_flag_F77='${wl}-z,text'
13966 archive_cmds_need_lc_F77=no
13967 hardcode_shlibpath_var_F77=no
13968 runpath_var='LD_RUN_PATH'
13970 if test "$GCC" = yes; then
13971 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13972 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13974 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13975 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13979 sysv5* | sco3.2v5* | sco5v6*)
13980 # Note: We can NOT use -z defs as we might desire, because we do not
13981 # link with -lc, and that would cause any symbols used from libc to
13982 # always be unresolved, which means just about no library would
13983 # ever link correctly. If we're not using GNU ld we use -z text
13984 # though, which does catch some bad symbols but isn't as heavy-handed
13986 no_undefined_flag_F77='${wl}-z,text'
13987 allow_undefined_flag_F77='${wl}-z,nodefs'
13988 archive_cmds_need_lc_F77=no
13989 hardcode_shlibpath_var_F77=no
13990 hardcode_libdir_flag_spec_F77='${wl}-R,$libdir'
13991 hardcode_libdir_separator_F77=':'
13992 link_all_deplibs_F77=yes
13993 export_dynamic_flag_spec_F77='${wl}-Bexport'
13994 runpath_var='LD_RUN_PATH'
13996 if test "$GCC" = yes; then
13997 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13998 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14000 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14001 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14006 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14007 hardcode_libdir_flag_spec_F77='-L$libdir'
14008 hardcode_shlibpath_var_F77=no
14016 if test x$host_vendor = xsni; then
14018 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14019 export_dynamic_flag_spec_F77='${wl}-Blargedynsym'
14025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_F77" >&5
14026 $as_echo "$ld_shlibs_F77" >&6; }
14027 test "$ld_shlibs_F77" = no && can_build_shared=no
14029 with_gnu_ld_F77=$with_gnu_ld
14037 # Do we need to explicitly link libc?
14039 case "x$archive_cmds_need_lc_F77" in
14041 # Assume -lc should be added
14042 archive_cmds_need_lc_F77=yes
14044 if test "$enable_shared" = yes && test "$GCC" = yes; then
14045 case $archive_cmds_F77 in
14047 # FIXME: we may have to deal with multi-command sequences.
14050 # Test whether the compiler implicitly links with -lc since on some
14051 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14052 # to ld, don't add -lc before -lgcc.
14053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14054 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
14055 if ${lt_cv_archive_cmds_need_lc_F77+:} false; then :
14056 $as_echo_n "(cached) " >&6
14059 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14061 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14062 (eval $ac_compile) 2>&5
14064 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14065 test $ac_status = 0; } 2>conftest.err; then
14068 libobjs=conftest.$ac_objext
14070 wl=$lt_prog_compiler_wl_F77
14071 pic_flag=$lt_prog_compiler_pic_F77
14077 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
14078 allow_undefined_flag_F77=
14079 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_F77 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
14080 (eval $archive_cmds_F77 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14082 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14083 test $ac_status = 0; }
14085 lt_cv_archive_cmds_need_lc_F77=no
14087 lt_cv_archive_cmds_need_lc_F77=yes
14089 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
14091 cat conftest.err 1>&5
14096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_F77" >&5
14097 $as_echo "$lt_cv_archive_cmds_need_lc_F77" >&6; }
14098 archive_cmds_need_lc_F77=$lt_cv_archive_cmds_need_lc_F77
14166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14167 $as_echo_n "checking dynamic linker characteristics... " >&6; }
14169 library_names_spec=
14170 libname_spec='lib$name'
14174 postuninstall_cmds=
14178 shlibpath_overrides_runpath=unknown
14180 dynamic_linker="$host_os ld.so"
14181 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14182 need_lib_prefix=unknown
14183 hardcode_into_libs=no
14185 # when you set need_version to no, make sure it does not cause -set_version
14186 # flags to be left without arguments
14187 need_version=unknown
14191 version_type=linux # correct to gnu/linux during the next big refactor
14192 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14193 shlibpath_var=LIBPATH
14195 # AIX 3 has no versioning support, so we append a major version to the name.
14196 soname_spec='${libname}${release}${shared_ext}$major'
14200 version_type=linux # correct to gnu/linux during the next big refactor
14203 hardcode_into_libs=yes
14204 if test "$host_cpu" = ia64; then
14205 # AIX 5 supports IA64
14206 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14207 shlibpath_var=LD_LIBRARY_PATH
14209 # With GCC up to 2.95.x, collect2 would create an import file
14210 # for dependence libraries. The import file would start with
14211 # the line `#! .'. This would cause the generated library to
14212 # depend on `.', always an invalid library. This was fixed in
14213 # development snapshots of GCC prior to 3.0.
14215 aix4 | aix4.[01] | aix4.[01].*)
14216 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14218 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14221 can_build_shared=no
14225 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14226 # soname into executable. Probably we can add versioning support to
14227 # collect2, so additional links can be useful in future.
14228 if test "$aix_use_runtimelinking" = yes; then
14229 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14230 # instead of lib<name>.a to let people know that these are not
14231 # typical AIX shared libraries.
14232 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14234 # We preserve .a as extension for shared libraries through AIX4.2
14235 # and later when we are not doing run time linking.
14236 library_names_spec='${libname}${release}.a $libname.a'
14237 soname_spec='${libname}${release}${shared_ext}$major'
14239 shlibpath_var=LIBPATH
14246 # Since July 2007 AmigaOS4 officially supports .so libraries.
14247 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14248 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14251 library_names_spec='$libname.ixlibrary $libname.a'
14252 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14253 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'
14259 library_names_spec='${libname}${shared_ext}'
14260 dynamic_linker="$host_os ld.so"
14261 shlibpath_var=LIBRARY_PATH
14265 version_type=linux # correct to gnu/linux during the next big refactor
14267 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14268 soname_spec='${libname}${release}${shared_ext}$major'
14269 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14270 shlibpath_var=LD_LIBRARY_PATH
14271 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14272 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14273 # the default ld.so.conf also contains /usr/contrib/lib and
14274 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14275 # libtool to hard-code these into programs
14278 cygwin* | mingw* | pw32* | cegcc*)
14279 version_type=windows
14284 case $GCC,$cc_basename in
14287 library_names_spec='$libname.dll.a'
14288 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14289 postinstall_cmds='base_file=`basename \${file}`~
14290 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14291 dldir=$destdir/`dirname \$dlpath`~
14292 test -d \$dldir || mkdir -p \$dldir~
14293 $install_prog $dir/$dlname \$dldir/$dlname~
14294 chmod a+x \$dldir/$dlname~
14295 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14296 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14298 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14299 dlpath=$dir/\$dldll~
14301 shlibpath_overrides_runpath=yes
14305 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14306 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14310 # MinGW DLLs use traditional 'lib' prefix
14311 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14314 # pw32 DLLs use 'pw' prefix rather than 'lib'
14315 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14318 dynamic_linker='Win32 ld.exe'
14323 libname_spec='$name'
14324 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14325 library_names_spec='${libname}.dll.lib'
14329 sys_lib_search_path_spec=
14332 for lt_path in $LIB
14335 # Let DOS variable expansion print the short 8.3 style file name.
14336 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
14337 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
14340 # Convert to MSYS style.
14341 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
14344 # Convert to unix form, then to dos form, then back to unix form
14345 # but this time dos style (no spaces!) so that the unix form looks
14346 # like /cygdrive/c/PROGRA~1:/cygdr...
14347 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
14348 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
14349 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14352 sys_lib_search_path_spec="$LIB"
14353 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
14354 # It is most probably a Windows format PATH.
14355 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14357 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14359 # FIXME: find the short name or the path components, as spaces are
14360 # common. (e.g. "Program Files" -> "PROGRA~1")
14364 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14365 postinstall_cmds='base_file=`basename \${file}`~
14366 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14367 dldir=$destdir/`dirname \$dlpath`~
14368 test -d \$dldir || mkdir -p \$dldir~
14369 $install_prog $dir/$dlname \$dldir/$dlname'
14370 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14371 dlpath=$dir/\$dldll~
14373 shlibpath_overrides_runpath=yes
14374 dynamic_linker='Win32 link.exe'
14378 # Assume MSVC wrapper
14379 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14380 dynamic_linker='Win32 ld.exe'
14383 # FIXME: first we should search . and the directory the executable is in
14387 darwin* | rhapsody*)
14388 dynamic_linker="$host_os dyld"
14389 version_type=darwin
14392 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14393 soname_spec='${libname}${release}${major}$shared_ext'
14394 shlibpath_overrides_runpath=yes
14395 shlibpath_var=DYLD_LIBRARY_PATH
14396 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14398 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14402 version_type=linux # correct to gnu/linux during the next big refactor
14405 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14406 soname_spec='${libname}${release}${shared_ext}$major'
14407 shlibpath_var=LD_LIBRARY_PATH
14410 freebsd* | dragonfly*)
14411 # DragonFly does not have aout. When/if they implement a new
14412 # versioning mechanism, adjust this.
14413 if test -x /usr/bin/objformat; then
14414 objformat=`/usr/bin/objformat`
14417 freebsd[23].*) objformat=aout ;;
14418 *) objformat=elf ;;
14421 version_type=freebsd-$objformat
14422 case $version_type in
14424 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14429 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14433 shlibpath_var=LD_LIBRARY_PATH
14436 shlibpath_overrides_runpath=yes
14438 freebsd3.[01]* | freebsdelf3.[01]*)
14439 shlibpath_overrides_runpath=yes
14440 hardcode_into_libs=yes
14442 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14443 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14444 shlibpath_overrides_runpath=no
14445 hardcode_into_libs=yes
14447 *) # from 4.6 on, and DragonFly
14448 shlibpath_overrides_runpath=yes
14449 hardcode_into_libs=yes
14455 version_type=linux # correct to gnu/linux during the next big refactor
14458 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14459 soname_spec='${libname}${release}${shared_ext}$major'
14460 shlibpath_var=LD_LIBRARY_PATH
14461 shlibpath_overrides_runpath=no
14462 hardcode_into_libs=yes
14466 version_type=linux # correct to gnu/linux during the next big refactor
14469 dynamic_linker="$host_os runtime_loader"
14470 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14471 soname_spec='${libname}${release}${shared_ext}$major'
14472 shlibpath_var=LIBRARY_PATH
14473 shlibpath_overrides_runpath=yes
14474 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
14475 hardcode_into_libs=yes
14478 hpux9* | hpux10* | hpux11*)
14479 # Give a soname corresponding to the major version so that dld.sl refuses to
14480 # link against other versions.
14487 hardcode_into_libs=yes
14488 dynamic_linker="$host_os dld.so"
14489 shlibpath_var=LD_LIBRARY_PATH
14490 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14491 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14492 soname_spec='${libname}${release}${shared_ext}$major'
14493 if test "X$HPUX_IA64_MODE" = X32; then
14494 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14496 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14498 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14502 hardcode_into_libs=yes
14503 dynamic_linker="$host_os dld.sl"
14504 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14505 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14506 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14507 soname_spec='${libname}${release}${shared_ext}$major'
14508 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14509 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14513 dynamic_linker="$host_os dld.sl"
14514 shlibpath_var=SHLIB_PATH
14515 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14516 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14517 soname_spec='${libname}${release}${shared_ext}$major'
14520 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
14521 postinstall_cmds='chmod 555 $lib'
14522 # or fails outright, so override atomically:
14523 install_override_mode=555
14527 version_type=linux # correct to gnu/linux during the next big refactor
14530 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14531 soname_spec='${libname}${release}${shared_ext}$major'
14532 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14533 shlibpath_var=LD_LIBRARY_PATH
14534 shlibpath_overrides_runpath=no
14535 hardcode_into_libs=yes
14538 irix5* | irix6* | nonstopux*)
14540 nonstopux*) version_type=nonstopux ;;
14542 if test "$lt_cv_prog_gnu_ld" = yes; then
14543 version_type=linux # correct to gnu/linux during the next big refactor
14550 soname_spec='${libname}${release}${shared_ext}$major'
14551 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14553 irix5* | nonstopux*)
14554 libsuff= shlibsuff=
14557 case $LD in # libtool.m4 will add one of these switches to LD
14558 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14559 libsuff= shlibsuff= libmagic=32-bit;;
14560 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14561 libsuff=32 shlibsuff=N32 libmagic=N32;;
14562 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14563 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14564 *) libsuff= shlibsuff= libmagic=never-match;;
14568 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14569 shlibpath_overrides_runpath=no
14570 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14571 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14572 hardcode_into_libs=yes
14575 # No shared lib support for Linux oldld, aout, or coff.
14576 linux*oldld* | linux*aout* | linux*coff*)
14580 # This must be glibc/ELF.
14581 linux* | k*bsd*-gnu | kopensolaris*-gnu)
14582 version_type=linux # correct to gnu/linux during the next big refactor
14585 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14586 soname_spec='${libname}${release}${shared_ext}$major'
14587 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14588 shlibpath_var=LD_LIBRARY_PATH
14589 shlibpath_overrides_runpath=no
14591 # Some binutils ld are patched to set DT_RUNPATH
14592 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
14593 $as_echo_n "(cached) " >&6
14595 lt_cv_shlibpath_overrides_runpath=no
14596 save_LDFLAGS=$LDFLAGS
14597 save_libdir=$libdir
14598 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_F77\"; \
14599 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_F77\""
14600 cat > conftest.$ac_ext <<_ACEOF
14605 if ac_fn_f77_try_link "$LINENO"; then :
14606 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
14607 lt_cv_shlibpath_overrides_runpath=yes
14610 rm -f core conftest.err conftest.$ac_objext \
14611 conftest$ac_exeext conftest.$ac_ext
14612 LDFLAGS=$save_LDFLAGS
14613 libdir=$save_libdir
14617 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
14619 # This implies no fast_install, which is unacceptable.
14620 # Some rework will be needed to allow for fast_install
14621 # before this can be enabled.
14622 hardcode_into_libs=yes
14624 # Append ld.so.conf contents to the search path
14625 if test -f /etc/ld.so.conf; then
14626 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' ' '`
14627 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14630 # We used to test for /lib/ld.so.1 and disable shared libraries on
14631 # powerpc, because MkLinux only supported shared libraries with the
14632 # GNU dynamic linker. Since this was broken with cross compilers,
14633 # most powerpc-linux boxes support dynamic linking these days and
14634 # people can always --disable-shared, the test was removed, and we
14635 # assume the GNU/Linux dynamic linker is in use.
14636 dynamic_linker='GNU/Linux ld.so'
14643 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14644 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14645 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14646 dynamic_linker='NetBSD (a.out) ld.so'
14648 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14649 soname_spec='${libname}${release}${shared_ext}$major'
14650 dynamic_linker='NetBSD ld.elf_so'
14652 shlibpath_var=LD_LIBRARY_PATH
14653 shlibpath_overrides_runpath=yes
14654 hardcode_into_libs=yes
14658 version_type=linux # correct to gnu/linux during the next big refactor
14659 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14660 shlibpath_var=LD_LIBRARY_PATH
14661 shlibpath_overrides_runpath=yes
14668 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14669 soname_spec='${libname}${release}${shared_ext}$major'
14670 shlibpath_var=LD_LIBRARY_PATH
14671 shlibpath_overrides_runpath=no
14672 hardcode_into_libs=yes
14673 dynamic_linker='ldqnx.so'
14678 sys_lib_dlsearch_path_spec="/usr/lib"
14680 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14682 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14683 *) need_version=no ;;
14685 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14686 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14687 shlibpath_var=LD_LIBRARY_PATH
14688 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14690 openbsd2.[89] | openbsd2.[89].*)
14691 shlibpath_overrides_runpath=no
14694 shlibpath_overrides_runpath=yes
14698 shlibpath_overrides_runpath=yes
14703 libname_spec='$name'
14706 library_names_spec='$libname${shared_ext} $libname.a'
14707 dynamic_linker='OS/2 ld.exe'
14708 shlibpath_var=LIBPATH
14711 osf3* | osf4* | osf5*)
14715 soname_spec='${libname}${release}${shared_ext}$major'
14716 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14717 shlibpath_var=LD_LIBRARY_PATH
14718 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14719 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14727 version_type=linux # correct to gnu/linux during the next big refactor
14730 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14731 soname_spec='${libname}${release}${shared_ext}$major'
14732 shlibpath_var=LD_LIBRARY_PATH
14733 shlibpath_overrides_runpath=yes
14734 hardcode_into_libs=yes
14735 # ldd complains unless libraries are executable
14736 postinstall_cmds='chmod +x $lib'
14741 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14742 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14743 shlibpath_var=LD_LIBRARY_PATH
14744 shlibpath_overrides_runpath=yes
14745 if test "$with_gnu_ld" = yes; then
14752 version_type=linux # correct to gnu/linux during the next big refactor
14753 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14754 soname_spec='${libname}${release}${shared_ext}$major'
14755 shlibpath_var=LD_LIBRARY_PATH
14756 case $host_vendor in
14758 shlibpath_overrides_runpath=no
14760 runpath_var=LD_RUN_PATH
14768 shlibpath_overrides_runpath=no
14769 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14775 if test -d /usr/nec ;then
14776 version_type=linux # correct to gnu/linux during the next big refactor
14777 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14778 soname_spec='$libname${shared_ext}.$major'
14779 shlibpath_var=LD_LIBRARY_PATH
14783 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14784 version_type=freebsd-elf
14787 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14788 soname_spec='${libname}${release}${shared_ext}$major'
14789 shlibpath_var=LD_LIBRARY_PATH
14790 shlibpath_overrides_runpath=yes
14791 hardcode_into_libs=yes
14792 if test "$with_gnu_ld" = yes; then
14793 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14795 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14798 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14802 sys_lib_dlsearch_path_spec='/usr/lib'
14806 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
14807 version_type=linux # correct to gnu/linux during the next big refactor
14810 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14811 shlibpath_var=LD_LIBRARY_PATH
14812 shlibpath_overrides_runpath=no
14813 hardcode_into_libs=yes
14817 version_type=linux # correct to gnu/linux during the next big refactor
14818 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14819 soname_spec='${libname}${release}${shared_ext}$major'
14820 shlibpath_var=LD_LIBRARY_PATH
14827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
14828 $as_echo "$dynamic_linker" >&6; }
14829 test "$dynamic_linker" = no && can_build_shared=no
14831 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14832 if test "$GCC" = yes; then
14833 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14836 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
14837 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
14839 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
14840 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
14880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
14881 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
14882 hardcode_action_F77=
14883 if test -n "$hardcode_libdir_flag_spec_F77" ||
14884 test -n "$runpath_var_F77" ||
14885 test "X$hardcode_automatic_F77" = "Xyes" ; then
14887 # We can hardcode non-existent directories.
14888 if test "$hardcode_direct_F77" != no &&
14889 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14890 # have to relink, otherwise we might link with an installed library
14891 # when we should be linking with a yet-to-be-installed one
14892 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
14893 test "$hardcode_minus_L_F77" != no; then
14894 # Linking always hardcodes the temporary library directory.
14895 hardcode_action_F77=relink
14897 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14898 hardcode_action_F77=immediate
14901 # We cannot hardcode anything, or else we can only hardcode existing
14903 hardcode_action_F77=unsupported
14905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_F77" >&5
14906 $as_echo "$hardcode_action_F77" >&6; }
14908 if test "$hardcode_action_F77" = relink ||
14909 test "$inherit_rpath_F77" = yes; then
14910 # Fast installation is not supported
14911 enable_fast_install=no
14912 elif test "$shlibpath_overrides_runpath" = yes ||
14913 test "$enable_shared" = no; then
14914 # Fast installation is not necessary
14915 enable_fast_install=needless
14924 fi # test -n "$compiler"
14928 CFLAGS="$lt_save_CFLAGS"
14929 fi # test "$_lt_disable_F77" != yes
14932 ac_cpp='$CPP $CPPFLAGS'
14933 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14934 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14935 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14949 ac_config_commands="$ac_config_commands libtool"
14954 # Only expand once:
14962 ac_config_files="$ac_config_files Makefile"
14964 cat >confcache <<\_ACEOF
14965 # This file is a shell script that caches the results of configure
14966 # tests run on this system so they can be shared between configure
14967 # scripts and configure runs, see configure's option --config-cache.
14968 # It is not useful on other systems. If it contains results you don't
14969 # want to keep, you may remove or edit it.
14971 # config.status only pays attention to the cache file if you give it
14972 # the --recheck option to rerun configure.
14974 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14975 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14976 # following values.
14980 # The following way of writing the cache mishandles newlines in values,
14981 # but we know of no workaround that is simple, portable, and efficient.
14982 # So, we kill variables containing newlines.
14983 # Ultrix sh set writes to stderr and can't be redirected directly,
14984 # and sets the high bit in the cache file unless we assign to the vars.
14986 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14987 eval ac_val=\$$ac_var
14991 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14992 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14995 _ | IFS | as_nl) ;; #(
14996 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14997 *) { eval $ac_var=; unset $ac_var;} ;;
15003 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15004 *${as_nl}ac_space=\ *)
15005 # `set' does not quote correctly, so add quotes: double-quote
15006 # substitution turns \\\\ into \\, and sed turns \\ into \.
15009 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15012 # `set' quotes correctly as required by POSIX, so do not add quotes.
15013 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15022 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15024 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15026 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15027 if test -w "$cache_file"; then
15028 if test "x$cache_file" != "x/dev/null"; then
15029 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15030 $as_echo "$as_me: updating cache $cache_file" >&6;}
15031 if test ! -f "$cache_file" || test -h "$cache_file"; then
15032 cat confcache >"$cache_file"
15034 case $cache_file in #(
15036 mv -f confcache "$cache_file"$$ &&
15037 mv -f "$cache_file"$$ "$cache_file" ;; #(
15039 mv -f confcache "$cache_file" ;;
15044 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15045 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15050 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15051 # Let make expand exec_prefix.
15052 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15054 DEFS=-DHAVE_CONFIG_H
15059 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15060 # 1. Remove the extension, and $U if already installed.
15061 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15062 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15063 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15064 # will be set to the directory where LIBOBJS objects are built.
15065 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15066 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15068 LIBOBJS=$ac_libobjs
15070 LTLIBOBJS=$ac_ltlibobjs
15073 if test -n "$EXEEXT"; then
15075 am__EXEEXT_FALSE='#'
15077 am__EXEEXT_TRUE='#'
15081 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
15082 as_fn_error $? "conditional \"AMDEP\" was never defined.
15083 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15085 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
15086 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
15087 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15090 : "${CONFIG_STATUS=./config.status}"
15092 ac_clean_files_save=$ac_clean_files
15093 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15094 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15095 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15097 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15099 # Generated by $as_me.
15100 # Run this file to recreate the current configuration.
15101 # Compiler output produced by configure, useful for debugging
15102 # configure, is in config.log if it exists.
15105 ac_cs_recheck=false
15108 SHELL=\${CONFIG_SHELL-$SHELL}
15111 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15112 ## -------------------- ##
15113 ## M4sh Initialization. ##
15114 ## -------------------- ##
15116 # Be more Bourne compatible
15117 DUALCASE=1; export DUALCASE # for MKS sh
15118 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
15121 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15122 # is contrary to our usage. Disable this feature.
15123 alias -g '${1+"$@"}'='"$@"'
15124 setopt NO_GLOB_SUBST
15126 case `(set -o) 2>/dev/null` in #(
15138 # Printing a long string crashes Solaris 7 /usr/bin/printf.
15139 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15140 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15141 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15142 # Prefer a ksh shell builtin over an external printf program on Solaris,
15143 # but without wasting forks for bash or zsh.
15144 if test -z "$BASH_VERSION$ZSH_VERSION" \
15145 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15146 as_echo='print -r --'
15147 as_echo_n='print -rn --'
15148 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15149 as_echo='printf %s\n'
15150 as_echo_n='printf %s'
15152 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15153 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15154 as_echo_n='/usr/ucb/echo -n'
15156 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15157 as_echo_n_body='eval
15161 expr "X$arg" : "X\\(.*\\)$as_nl";
15162 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15164 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15166 export as_echo_n_body
15167 as_echo_n='sh -c $as_echo_n_body as_echo'
15169 export as_echo_body
15170 as_echo='sh -c $as_echo_body as_echo'
15173 # The user is always right.
15174 if test "${PATH_SEPARATOR+set}" != set; then
15176 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15177 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15184 # We need space, tab and new line, in precisely that order. Quoting is
15185 # there to prevent editors from complaining about space-tab.
15186 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15187 # splitting by setting IFS to empty value.)
15190 # Find who we are. Look in the path if we contain no directory separator.
15193 *[\\/]* ) as_myself=$0 ;;
15194 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15195 for as_dir in $PATH
15198 test -z "$as_dir" && as_dir=.
15199 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15205 # We did not find ourselves, most probably we were run as `sh COMMAND'
15206 # in which case we are not to be found in the path.
15207 if test "x$as_myself" = x; then
15210 if test ! -f "$as_myself"; then
15211 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15215 # Unset variables that we do not need and which cause bugs (e.g. in
15216 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
15217 # suppresses any "Segmentation fault" message there. '((' could
15218 # trigger a bug in pdksh 5.2.14.
15219 for as_var in BASH_ENV ENV MAIL MAILPATH
15220 do eval test x\${$as_var+set} = xset \
15221 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15234 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15237 # as_fn_error STATUS ERROR [LINENO LOG_FD]
15238 # ----------------------------------------
15239 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15240 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15241 # script with STATUS, using 1 if that was 0.
15244 as_status=$1; test $as_status -eq 0 && as_status=1
15246 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15247 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
15249 $as_echo "$as_me: error: $2" >&2
15250 as_fn_exit $as_status
15254 # as_fn_set_status STATUS
15255 # -----------------------
15256 # Set $? to STATUS, without forking.
15257 as_fn_set_status ()
15260 } # as_fn_set_status
15262 # as_fn_exit STATUS
15263 # -----------------
15264 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15268 as_fn_set_status $1
15274 # Portably unset VAR.
15277 { eval $1=; unset $1;}
15279 as_unset=as_fn_unset
15280 # as_fn_append VAR VALUE
15281 # ----------------------
15282 # Append the text in VALUE to the end of the definition contained in VAR. Take
15283 # advantage of any shell optimizations that allow amortized linear growth over
15284 # repeated appends, instead of the typical quadratic growth present in naive
15286 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15287 eval 'as_fn_append ()
15298 # as_fn_arith ARG...
15299 # ------------------
15300 # Perform arithmetic evaluation on the ARGs, and store the result in the
15301 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15302 # must be portable across $(()) and expr.
15303 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15304 eval 'as_fn_arith ()
15311 as_val=`expr "$@" || test $? -eq 1`
15316 if expr a : '\(a\)' >/dev/null 2>&1 &&
15317 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15323 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15324 as_basename=basename
15329 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15335 as_me=`$as_basename -- "$0" ||
15336 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15337 X"$0" : 'X\(//\)$' \| \
15338 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15340 sed '/^.*\/\([^/][^/]*\)\/*$/{
15354 # Avoid depending upon Character Ranges.
15355 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15356 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15357 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15358 as_cr_digits='0123456789'
15359 as_cr_alnum=$as_cr_Letters$as_cr_digits
15361 ECHO_C= ECHO_N= ECHO_T=
15362 case `echo -n x` in #(((((
15364 case `echo 'xy\c'` in
15365 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15367 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
15374 rm -f conf$$ conf$$.exe conf$$.file
15375 if test -d conf$$.dir; then
15376 rm -f conf$$.dir/conf$$.file
15379 mkdir conf$$.dir 2>/dev/null
15381 if (echo >conf$$.file) 2>/dev/null; then
15382 if ln -s conf$$.file conf$$ 2>/dev/null; then
15384 # ... but there are two gotchas:
15385 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15386 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15387 # In both cases, we have to default to `cp -p'.
15388 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15390 elif ln conf$$.file conf$$ 2>/dev/null; then
15398 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15399 rmdir conf$$.dir 2>/dev/null
15404 # Create "$as_dir" as a directory, including parents if necessary.
15409 -*) as_dir=./$as_dir;;
15411 test -d "$as_dir" || eval $as_mkdir_p || {
15415 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15416 *) as_qdir=$as_dir;;
15418 as_dirs="'$as_qdir' $as_dirs"
15419 as_dir=`$as_dirname -- "$as_dir" ||
15420 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15421 X"$as_dir" : 'X\(//\)[^/]' \| \
15422 X"$as_dir" : 'X\(//\)$' \| \
15423 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15424 $as_echo X"$as_dir" |
15425 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15429 /^X\(\/\/\)[^/].*/{
15442 test -d "$as_dir" && break
15444 test -z "$as_dirs" || eval "mkdir $as_dirs"
15445 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
15449 if mkdir -p . 2>/dev/null; then
15450 as_mkdir_p='mkdir -p "$as_dir"'
15452 test -d ./-p && rmdir ./-p
15456 if test -x / >/dev/null 2>&1; then
15457 as_test_x='test -x'
15459 if ls -dL / >/dev/null 2>&1; then
15466 if test -d "$1"; then
15472 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
15473 ???[sx]*):;;*)false;;esac;fi
15477 as_executable_p=$as_test_x
15479 # Sed expression to map a string onto a valid CPP name.
15480 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15482 # Sed expression to map a string onto a valid variable name.
15483 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15487 ## ----------------------------------- ##
15488 ## Main body of $CONFIG_STATUS script. ##
15489 ## ----------------------------------- ##
15491 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15493 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15494 # Save the log message, to keep $0 and so on meaningful, and to
15495 # report actual input values of CONFIG_FILES etc. instead of their
15496 # values after options handling.
15498 This file was extended by f77demo $as_me 1.0, which was
15499 generated by GNU Autoconf 2.68. Invocation command line was
15501 CONFIG_FILES = $CONFIG_FILES
15502 CONFIG_HEADERS = $CONFIG_HEADERS
15503 CONFIG_LINKS = $CONFIG_LINKS
15504 CONFIG_COMMANDS = $CONFIG_COMMANDS
15507 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15512 case $ac_config_files in *"
15513 "*) set x $ac_config_files; shift; ac_config_files=$*;;
15516 case $ac_config_headers in *"
15517 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15521 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15522 # Files that config.status was made for.
15523 config_files="$ac_config_files"
15524 config_headers="$ac_config_headers"
15525 config_commands="$ac_config_commands"
15529 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15531 \`$as_me' instantiates files and other configuration actions
15532 from templates according to the current configuration. Unless the files
15533 and actions are specified as TAGs, all are instantiated by default.
15535 Usage: $0 [OPTION]... [TAG]...
15537 -h, --help print this help, then exit
15538 -V, --version print version number and configuration settings, then exit
15539 --config print configuration, then exit
15540 -q, --quiet, --silent
15541 do not print progress messages
15542 -d, --debug don't remove temporary files
15543 --recheck update $as_me by reconfiguring in the same conditions
15544 --file=FILE[:TEMPLATE]
15545 instantiate the configuration file FILE
15546 --header=FILE[:TEMPLATE]
15547 instantiate the configuration header FILE
15549 Configuration files:
15552 Configuration headers:
15555 Configuration commands:
15558 Report bugs to <bug-libtool@gnu.org>."
15561 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15562 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
15564 f77demo config.status 1.0
15565 configured by $0, generated by GNU Autoconf 2.68,
15566 with options \\"\$ac_cs_config\\"
15568 Copyright (C) 2010 Free Software Foundation, Inc.
15569 This config.status script is free software; the Free Software Foundation
15570 gives unlimited permission to copy, distribute and modify it."
15577 test -n "\$AWK" || AWK=awk
15580 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15581 # The default lists apply if the user does not specify any file.
15587 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15588 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15592 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15604 # Handling of the options.
15605 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15607 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15608 $as_echo "$ac_cs_version"; exit ;;
15609 --config | --confi | --conf | --con | --co | --c )
15610 $as_echo "$ac_cs_config"; exit ;;
15611 --debug | --debu | --deb | --de | --d | -d )
15613 --file | --fil | --fi | --f )
15616 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15617 '') as_fn_error $? "missing file argument" ;;
15619 as_fn_append CONFIG_FILES " '$ac_optarg'"
15620 ac_need_defaults=false;;
15621 --header | --heade | --head | --hea )
15624 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15626 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
15627 ac_need_defaults=false;;
15629 # Conflict between --help and --header
15630 as_fn_error $? "ambiguous option: \`$1'
15631 Try \`$0 --help' for more information.";;
15632 --help | --hel | -h )
15633 $as_echo "$ac_cs_usage"; exit ;;
15634 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15635 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15638 # This is an error.
15639 -*) as_fn_error $? "unrecognized option: \`$1'
15640 Try \`$0 --help' for more information." ;;
15642 *) as_fn_append ac_config_targets " $1"
15643 ac_need_defaults=false ;;
15649 ac_configure_extra_args=
15651 if $ac_cs_silent; then
15653 ac_configure_extra_args="$ac_configure_extra_args --silent"
15657 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15658 if \$ac_cs_recheck; then
15659 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15661 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15662 CONFIG_SHELL='$SHELL'
15663 export CONFIG_SHELL
15668 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15672 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15673 ## Running $as_me. ##
15679 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15683 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
15686 # The HP-UX ksh and POSIX shell print the target directory to stdout
15687 # if CDPATH is set.
15688 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15690 sed_quote_subst='$sed_quote_subst'
15691 double_quote_subst='$double_quote_subst'
15692 delay_variable_subst='$delay_variable_subst'
15693 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
15694 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
15695 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
15696 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
15697 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
15698 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
15699 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
15700 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
15701 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
15702 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
15703 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
15704 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
15705 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
15706 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
15707 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
15708 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
15709 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
15710 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
15711 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
15712 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
15713 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
15714 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
15715 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
15716 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
15717 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
15718 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
15719 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
15720 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
15721 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
15722 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
15723 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
15724 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
15725 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
15726 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
15727 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
15728 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
15729 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
15730 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
15731 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
15732 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
15733 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
15734 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
15735 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
15736 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
15737 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
15738 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15739 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15740 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
15741 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
15742 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
15743 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
15744 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
15745 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
15746 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
15747 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
15748 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
15749 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"`'
15750 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
15751 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
15752 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
15753 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
15754 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
15755 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
15756 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
15757 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
15758 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
15759 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
15760 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
15761 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
15762 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
15763 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
15764 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
15765 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
15766 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
15767 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
15768 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15769 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
15770 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
15771 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
15772 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
15773 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
15774 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
15775 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15776 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
15777 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15778 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
15779 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15780 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
15781 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
15782 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
15783 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
15784 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
15785 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
15786 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
15787 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
15788 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
15789 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
15790 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
15791 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
15792 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
15793 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
15794 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
15795 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
15796 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
15797 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
15798 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
15799 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
15800 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
15801 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
15802 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
15803 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
15804 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
15805 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
15806 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
15807 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
15808 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
15809 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
15810 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15811 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15812 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
15813 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
15814 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
15815 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
15816 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
15817 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
15818 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
15819 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
15820 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
15821 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
15822 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
15823 LD_F77='`$ECHO "$LD_F77" | $SED "$delay_single_quote_subst"`'
15824 reload_flag_F77='`$ECHO "$reload_flag_F77" | $SED "$delay_single_quote_subst"`'
15825 reload_cmds_F77='`$ECHO "$reload_cmds_F77" | $SED "$delay_single_quote_subst"`'
15826 old_archive_cmds_F77='`$ECHO "$old_archive_cmds_F77" | $SED "$delay_single_quote_subst"`'
15827 compiler_F77='`$ECHO "$compiler_F77" | $SED "$delay_single_quote_subst"`'
15828 GCC_F77='`$ECHO "$GCC_F77" | $SED "$delay_single_quote_subst"`'
15829 lt_prog_compiler_no_builtin_flag_F77='`$ECHO "$lt_prog_compiler_no_builtin_flag_F77" | $SED "$delay_single_quote_subst"`'
15830 lt_prog_compiler_pic_F77='`$ECHO "$lt_prog_compiler_pic_F77" | $SED "$delay_single_quote_subst"`'
15831 lt_prog_compiler_wl_F77='`$ECHO "$lt_prog_compiler_wl_F77" | $SED "$delay_single_quote_subst"`'
15832 lt_prog_compiler_static_F77='`$ECHO "$lt_prog_compiler_static_F77" | $SED "$delay_single_quote_subst"`'
15833 lt_cv_prog_compiler_c_o_F77='`$ECHO "$lt_cv_prog_compiler_c_o_F77" | $SED "$delay_single_quote_subst"`'
15834 archive_cmds_need_lc_F77='`$ECHO "$archive_cmds_need_lc_F77" | $SED "$delay_single_quote_subst"`'
15835 enable_shared_with_static_runtimes_F77='`$ECHO "$enable_shared_with_static_runtimes_F77" | $SED "$delay_single_quote_subst"`'
15836 export_dynamic_flag_spec_F77='`$ECHO "$export_dynamic_flag_spec_F77" | $SED "$delay_single_quote_subst"`'
15837 whole_archive_flag_spec_F77='`$ECHO "$whole_archive_flag_spec_F77" | $SED "$delay_single_quote_subst"`'
15838 compiler_needs_object_F77='`$ECHO "$compiler_needs_object_F77" | $SED "$delay_single_quote_subst"`'
15839 old_archive_from_new_cmds_F77='`$ECHO "$old_archive_from_new_cmds_F77" | $SED "$delay_single_quote_subst"`'
15840 old_archive_from_expsyms_cmds_F77='`$ECHO "$old_archive_from_expsyms_cmds_F77" | $SED "$delay_single_quote_subst"`'
15841 archive_cmds_F77='`$ECHO "$archive_cmds_F77" | $SED "$delay_single_quote_subst"`'
15842 archive_expsym_cmds_F77='`$ECHO "$archive_expsym_cmds_F77" | $SED "$delay_single_quote_subst"`'
15843 module_cmds_F77='`$ECHO "$module_cmds_F77" | $SED "$delay_single_quote_subst"`'
15844 module_expsym_cmds_F77='`$ECHO "$module_expsym_cmds_F77" | $SED "$delay_single_quote_subst"`'
15845 with_gnu_ld_F77='`$ECHO "$with_gnu_ld_F77" | $SED "$delay_single_quote_subst"`'
15846 allow_undefined_flag_F77='`$ECHO "$allow_undefined_flag_F77" | $SED "$delay_single_quote_subst"`'
15847 no_undefined_flag_F77='`$ECHO "$no_undefined_flag_F77" | $SED "$delay_single_quote_subst"`'
15848 hardcode_libdir_flag_spec_F77='`$ECHO "$hardcode_libdir_flag_spec_F77" | $SED "$delay_single_quote_subst"`'
15849 hardcode_libdir_separator_F77='`$ECHO "$hardcode_libdir_separator_F77" | $SED "$delay_single_quote_subst"`'
15850 hardcode_direct_F77='`$ECHO "$hardcode_direct_F77" | $SED "$delay_single_quote_subst"`'
15851 hardcode_direct_absolute_F77='`$ECHO "$hardcode_direct_absolute_F77" | $SED "$delay_single_quote_subst"`'
15852 hardcode_minus_L_F77='`$ECHO "$hardcode_minus_L_F77" | $SED "$delay_single_quote_subst"`'
15853 hardcode_shlibpath_var_F77='`$ECHO "$hardcode_shlibpath_var_F77" | $SED "$delay_single_quote_subst"`'
15854 hardcode_automatic_F77='`$ECHO "$hardcode_automatic_F77" | $SED "$delay_single_quote_subst"`'
15855 inherit_rpath_F77='`$ECHO "$inherit_rpath_F77" | $SED "$delay_single_quote_subst"`'
15856 link_all_deplibs_F77='`$ECHO "$link_all_deplibs_F77" | $SED "$delay_single_quote_subst"`'
15857 always_export_symbols_F77='`$ECHO "$always_export_symbols_F77" | $SED "$delay_single_quote_subst"`'
15858 export_symbols_cmds_F77='`$ECHO "$export_symbols_cmds_F77" | $SED "$delay_single_quote_subst"`'
15859 exclude_expsyms_F77='`$ECHO "$exclude_expsyms_F77" | $SED "$delay_single_quote_subst"`'
15860 include_expsyms_F77='`$ECHO "$include_expsyms_F77" | $SED "$delay_single_quote_subst"`'
15861 prelink_cmds_F77='`$ECHO "$prelink_cmds_F77" | $SED "$delay_single_quote_subst"`'
15862 postlink_cmds_F77='`$ECHO "$postlink_cmds_F77" | $SED "$delay_single_quote_subst"`'
15863 file_list_spec_F77='`$ECHO "$file_list_spec_F77" | $SED "$delay_single_quote_subst"`'
15864 hardcode_action_F77='`$ECHO "$hardcode_action_F77" | $SED "$delay_single_quote_subst"`'
15867 LTCFLAGS='$LTCFLAGS'
15868 compiler='$compiler_DEFAULT'
15870 # A function that is used when there is no print builtin or printf.
15871 func_fallback_echo ()
15873 eval 'cat <<_LTECHO_EOF
15878 # Quote evaled strings.
15893 deplibs_check_method \
15898 sharedlib_from_linklib_cmd \
15901 archiver_list_spec \
15907 lt_cv_sys_global_symbol_pipe \
15908 lt_cv_sys_global_symbol_to_cdecl \
15909 lt_cv_sys_global_symbol_to_c_name_address \
15910 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
15911 nm_file_list_spec \
15912 lt_prog_compiler_no_builtin_flag \
15913 lt_prog_compiler_pic \
15914 lt_prog_compiler_wl \
15915 lt_prog_compiler_static \
15916 lt_cv_prog_compiler_c_o \
15925 export_dynamic_flag_spec \
15926 whole_archive_flag_spec \
15927 compiler_needs_object \
15929 allow_undefined_flag \
15930 no_undefined_flag \
15931 hardcode_libdir_flag_spec \
15932 hardcode_libdir_separator \
15936 variables_saved_for_relink \
15938 library_names_spec \
15940 install_override_mode \
15947 lt_prog_compiler_no_builtin_flag_F77 \
15948 lt_prog_compiler_pic_F77 \
15949 lt_prog_compiler_wl_F77 \
15950 lt_prog_compiler_static_F77 \
15951 lt_cv_prog_compiler_c_o_F77 \
15952 export_dynamic_flag_spec_F77 \
15953 whole_archive_flag_spec_F77 \
15954 compiler_needs_object_F77 \
15956 allow_undefined_flag_F77 \
15957 no_undefined_flag_F77 \
15958 hardcode_libdir_flag_spec_F77 \
15959 hardcode_libdir_separator_F77 \
15960 exclude_expsyms_F77 \
15961 include_expsyms_F77 \
15962 file_list_spec_F77; do
15963 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15964 *[\\\\\\\`\\"\\\$]*)
15965 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
15968 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15973 # Double-quote double-evaled strings.
15974 for var in reload_cmds \
15975 old_postinstall_cmds \
15976 old_postuninstall_cmds \
15978 extract_expsyms_cmds \
15979 old_archive_from_new_cmds \
15980 old_archive_from_expsyms_cmds \
15982 archive_expsym_cmds \
15984 module_expsym_cmds \
15985 export_symbols_cmds \
15989 postuninstall_cmds \
15991 sys_lib_search_path_spec \
15992 sys_lib_dlsearch_path_spec \
15994 old_archive_cmds_F77 \
15995 old_archive_from_new_cmds_F77 \
15996 old_archive_from_expsyms_cmds_F77 \
15998 archive_expsym_cmds_F77 \
16000 module_expsym_cmds_F77 \
16001 export_symbols_cmds_F77 \
16003 postlink_cmds_F77; do
16004 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16005 *[\\\\\\\`\\"\\\$]*)
16006 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
16009 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16014 ac_aux_dir='$ac_aux_dir'
16015 xsi_shell='$xsi_shell'
16016 lt_shell_append='$lt_shell_append'
16018 # See if we are running on zsh, and set the options which allow our
16019 # commands through without removal of \ escapes INIT.
16020 if test -n "\${ZSH_VERSION+set}" ; then
16021 setopt NO_GLOB_SUBST
16027 TIMESTAMP='$TIMESTAMP'
16038 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16040 # Handling of arguments.
16041 for ac_config_target in $ac_config_targets
16043 case $ac_config_target in
16044 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config-h.in" ;;
16045 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
16046 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
16047 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16049 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
16054 # If the user did not use the arguments to specify the items to instantiate,
16055 # then the envvar interface is used. Set only those that are not.
16056 # We use the long form for the default assignment because of an extremely
16057 # bizarre bug on SunOS 4.1.3.
16058 if $ac_need_defaults; then
16059 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16060 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16061 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16064 # Have a temporary directory for convenience. Make it in the build tree
16065 # simply because there is no reason against having it here, and in addition,
16066 # creating and moving files from /tmp can sometimes cause problems.
16067 # Hook for its removal unless debugging.
16068 # Note that there is a small window in which the directory will not be cleaned:
16069 # after its creation but before its name has been assigned to `$tmp'.
16073 trap 'exit_status=$?
16074 : "${ac_tmp:=$tmp}"
16075 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
16077 trap 'as_fn_exit 1' 1 2 13 15
16079 # Create a (secure) tmp directory for tmp files.
16082 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16086 tmp=./conf$$-$RANDOM
16087 (umask 077 && mkdir "$tmp")
16088 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
16091 # Set up the scripts for CONFIG_FILES section.
16092 # No need to generate them if there are no CONFIG_FILES.
16093 # This happens for instance with `./config.status config.h'.
16094 if test -n "$CONFIG_FILES"; then
16097 ac_cr=`echo X | tr X '\015'`
16098 # On cygwin, bash can eat \r inside `` if the user requested igncr.
16099 # But we know of no other shell where ac_cr would be empty at this
16100 # point, so we can use a bashism as a fallback.
16101 if test "x$ac_cr" = x; then
16102 eval ac_cr=\$\'\\r\'
16104 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16105 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16108 ac_cs_awk_cr=$ac_cr
16111 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
16116 echo "cat >conf$$subs.awk <<_ACEOF" &&
16117 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16119 } >conf$$subs.sh ||
16120 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16121 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
16123 for ac_last_try in false false false false false :; do
16124 . ./conf$$subs.sh ||
16125 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16127 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16128 if test $ac_delim_n = $ac_delim_num; then
16130 elif $ac_last_try; then
16131 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16133 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16136 rm -f conf$$subs.sh
16138 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16139 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
16143 s/^/S["/; s/!.*/"]=/
16153 s/\(.\{148\}\)..*/\1/
16155 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16160 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16167 s/\(.\{148\}\)..*/\1/
16169 s/["\\]/\\&/g; s/^/"/; s/$/"/
16173 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16178 ' <conf$$subs.awk | sed '
16183 ' >>$CONFIG_STATUS || ac_write_fail=1
16184 rm -f conf$$subs.awk
16185 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16187 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
16188 for (key in S) S_is_set[key] = 1
16194 nfields = split(line, field, "@")
16196 len = length(field[1])
16197 for (i = 2; i < nfields; i++) {
16199 keylen = length(key)
16200 if (S_is_set[key]) {
16202 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16203 len += length(value) + length(field[++i])
16214 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16215 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16216 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16219 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
16220 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
16223 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
16224 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
16225 # trailing colons and then remove the whole line if VPATH becomes empty
16226 # (actually we leave an empty line to preserve line numbers).
16227 if test "x$srcdir" = x.; then
16228 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
16246 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16247 fi # test -n "$CONFIG_FILES"
16249 # Set up the scripts for CONFIG_HEADERS section.
16250 # No need to generate them if there are no CONFIG_HEADERS.
16251 # This happens for instance with `./config.status Makefile'.
16252 if test -n "$CONFIG_HEADERS"; then
16253 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
16257 # Transform confdefs.h into an awk script `defines.awk', embedded as
16258 # here-document in config.status, that substitutes the proper values into
16259 # config.h.in to produce config.h.
16261 # Create a delimiter string that does not exist in confdefs.h, to ease
16262 # handling of long lines.
16264 for ac_last_try in false false :; do
16265 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
16266 if test -z "$ac_tt"; then
16268 elif $ac_last_try; then
16269 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
16271 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16275 # For the awk script, D is an array of macro values keyed by name,
16276 # likewise P contains macro parameters if any. Preserve backslash
16277 # newline sequences.
16279 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16281 s/.\{148\}/&'"$ac_delim"'/g
16284 s/^[ ]*#[ ]*define[ ][ ]*/ /
16291 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16293 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
16297 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16298 D["\1"]=" \3\\\\\\n"\\/p
16300 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16305 s/.\{148\}/&'"$ac_delim"'/g
16310 s/["\\]/\\&/g; s/^/"/; s/$/"/p
16313 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16315 ' <confdefs.h | sed '
16316 s/'"$ac_delim"'/"\\\
16317 "/g' >>$CONFIG_STATUS || ac_write_fail=1
16319 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16320 for (key in D) D_is_set[key] = 1
16323 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16325 split(line, arg, " ")
16326 if (arg[1] == "#") {
16330 defundef = substr(arg[1], 2)
16333 split(mac1, mac2, "(") #)
16335 prefix = substr(line, 1, index(line, defundef) - 1)
16336 if (D_is_set[macro]) {
16337 # Preserve the white space surrounding the "#".
16338 print prefix "define", macro P[macro] D[macro]
16341 # Replace #undef with comments. This is necessary, for example,
16342 # in the case of _POSIX_SOURCE, which is predefined and required
16343 # on some systems where configure will not decide to define it.
16344 if (defundef == "undef") {
16345 print "/*", prefix defundef, macro, "*/"
16353 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16354 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
16355 fi # test -n "$CONFIG_HEADERS"
16358 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
16363 :[FHLC]) ac_mode=$ac_tag; continue;;
16365 case $ac_mode$ac_tag in
16367 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
16368 :[FH]-) ac_tag=-:-;;
16369 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16386 -) ac_f="$ac_tmp/stdin";;
16387 *) # Look for the file first in the build tree, then in the source tree
16388 # (if the path is not absolute). The absolute path cannot be DOS-style,
16389 # because $ac_f cannot contain `:'.
16393 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16395 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
16397 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16398 as_fn_append ac_file_inputs " '$ac_f'"
16401 # Let's still pretend it is `configure' which instantiates (i.e., don't
16402 # use $as_me), people would be surprised to read:
16403 # /* config.h. Generated by config.status. */
16404 configure_input='Generated from '`
16405 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16407 if test x"$ac_file" != x-; then
16408 configure_input="$ac_file. $configure_input"
16409 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16410 $as_echo "$as_me: creating $ac_file" >&6;}
16412 # Neutralize special characters interpreted by sed in replacement strings.
16413 case $configure_input in #(
16414 *\&* | *\|* | *\\* )
16415 ac_sed_conf_input=`$as_echo "$configure_input" |
16416 sed 's/[\\\\&|]/\\\\&/g'`;; #(
16417 *) ac_sed_conf_input=$configure_input;;
16421 *:-:* | *:-) cat >"$ac_tmp/stdin" \
16422 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
16427 ac_dir=`$as_dirname -- "$ac_file" ||
16428 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16429 X"$ac_file" : 'X\(//\)[^/]' \| \
16430 X"$ac_file" : 'X\(//\)$' \| \
16431 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16432 $as_echo X"$ac_file" |
16433 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16437 /^X\(\/\/\)[^/].*/{
16450 as_dir="$ac_dir"; as_fn_mkdir_p
16454 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16456 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16457 # A ".." for each directory in $ac_dir_suffix.
16458 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16459 case $ac_top_builddir_sub in
16460 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16461 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16464 ac_abs_top_builddir=$ac_pwd
16465 ac_abs_builddir=$ac_pwd$ac_dir_suffix
16466 # for backward compatibility:
16467 ac_top_builddir=$ac_top_build_prefix
16470 .) # We are building in place.
16472 ac_top_srcdir=$ac_top_builddir_sub
16473 ac_abs_top_srcdir=$ac_pwd ;;
16474 [\\/]* | ?:[\\/]* ) # Absolute name.
16475 ac_srcdir=$srcdir$ac_dir_suffix;
16476 ac_top_srcdir=$srcdir
16477 ac_abs_top_srcdir=$srcdir ;;
16478 *) # Relative name.
16479 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16480 ac_top_srcdir=$ac_top_build_prefix$srcdir
16481 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16483 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16493 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16494 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16496 ac_MKDIR_P=$MKDIR_P
16498 [\\/$]* | ?:[\\/]* ) ;;
16499 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
16503 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16504 # If the template does not know about datarootdir, expand it.
16505 # FIXME: This hack should be removed a few years after 2.60.
16506 ac_datarootdir_hack=; ac_datarootdir_seen=
16517 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16518 *datarootdir*) ac_datarootdir_seen=yes;;
16519 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16520 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16521 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16523 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16524 ac_datarootdir_hack='
16525 s&@datadir@&$datadir&g
16526 s&@docdir@&$docdir&g
16527 s&@infodir@&$infodir&g
16528 s&@localedir@&$localedir&g
16529 s&@mandir@&$mandir&g
16530 s&\\\${datarootdir}&$datarootdir&g' ;;
16534 # Neutralize VPATH when `$srcdir' = `.'.
16535 # Shell code in configure.ac might set extrasub.
16536 # FIXME: do we really want to maintain this feature?
16537 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16538 ac_sed_extra="$ac_vpsub
16541 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16543 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16544 s|@configure_input@|$ac_sed_conf_input|;t t
16545 s&@top_builddir@&$ac_top_builddir_sub&;t t
16546 s&@top_build_prefix@&$ac_top_build_prefix&;t t
16547 s&@srcdir@&$ac_srcdir&;t t
16548 s&@abs_srcdir@&$ac_abs_srcdir&;t t
16549 s&@top_srcdir@&$ac_top_srcdir&;t t
16550 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16551 s&@builddir@&$ac_builddir&;t t
16552 s&@abs_builddir@&$ac_abs_builddir&;t t
16553 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16554 s&@INSTALL@&$ac_INSTALL&;t t
16555 s&@MKDIR_P@&$ac_MKDIR_P&;t t
16556 $ac_datarootdir_hack
16558 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
16559 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16561 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16562 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
16563 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
16564 "$ac_tmp/out"`; test -z "$ac_out"; } &&
16565 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16566 which seems to be undefined. Please make sure it is defined" >&5
16567 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16568 which seems to be undefined. Please make sure it is defined" >&2;}
16570 rm -f "$ac_tmp/stdin"
16572 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
16573 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
16575 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16581 if test x"$ac_file" != x-; then
16583 $as_echo "/* $configure_input */" \
16584 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
16585 } >"$ac_tmp/config.h" \
16586 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16587 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
16588 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16589 $as_echo "$as_me: $ac_file is unchanged" >&6;}
16592 mv "$ac_tmp/config.h" "$ac_file" \
16593 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16596 $as_echo "/* $configure_input */" \
16597 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
16598 || as_fn_error $? "could not create -" "$LINENO" 5
16600 # Compute "$ac_file"'s index in $config_headers.
16603 for _am_header in $config_headers :; do
16604 case $_am_header in
16605 $_am_arg | $_am_arg:* )
16608 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
16611 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
16612 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16613 X"$_am_arg" : 'X\(//\)[^/]' \| \
16614 X"$_am_arg" : 'X\(//\)$' \| \
16615 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
16616 $as_echo X"$_am_arg" |
16617 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16621 /^X\(\/\/\)[^/].*/{
16633 s/.*/./; q'`/stamp-h$_am_stamp_count
16636 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16637 $as_echo "$as_me: executing $ac_file commands" >&6;}
16642 case $ac_file$ac_mode in
16643 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
16644 # Autoconf 2.62 quotes --file arguments for eval, but not when files
16645 # are listed without --file. Let's play safe and only enable the eval
16646 # if we detect the quoting.
16647 case $CONFIG_FILES in
16648 *\'*) eval set x "$CONFIG_FILES" ;;
16649 *) set x $CONFIG_FILES ;;
16654 # Strip MF so we end up with the name of the file.
16655 mf=`echo "$mf" | sed -e 's/:.*$//'`
16656 # Check whether this is an Automake generated Makefile or not.
16657 # We used to match only the files named `Makefile.in', but
16658 # some people rename them; so instead we look at the file content.
16659 # Grep'ing the first line is not enough: some people post-process
16660 # each Makefile.in and add a new line on top of each file to say so.
16661 # Grep'ing the whole file is not good either: AIX grep has a line
16662 # limit of 2048, but all sed's we know have understand at least 4000.
16663 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
16664 dirpart=`$as_dirname -- "$mf" ||
16665 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16666 X"$mf" : 'X\(//\)[^/]' \| \
16667 X"$mf" : 'X\(//\)$' \| \
16668 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
16670 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16674 /^X\(\/\/\)[^/].*/{
16690 # Extract the definition of DEPDIR, am__include, and am__quote
16691 # from the Makefile without running `make'.
16692 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
16693 test -z "$DEPDIR" && continue
16694 am__include=`sed -n 's/^am__include = //p' < "$mf"`
16695 test -z "am__include" && continue
16696 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
16697 # When using ansi2knr, U may be empty or an underscore; expand it
16698 U=`sed -n 's/^U = //p' < "$mf"`
16699 # Find all dependency output files, they are included files with
16700 # $(DEPDIR) in their names. We invoke sed twice because it is the
16701 # simplest approach to changing $(DEPDIR) to its actual value in the
16703 for file in `sed -n "
16704 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
16705 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
16706 # Make sure the directory exists.
16707 test -f "$dirpart/$file" && continue
16708 fdir=`$as_dirname -- "$file" ||
16709 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16710 X"$file" : 'X\(//\)[^/]' \| \
16711 X"$file" : 'X\(//\)$' \| \
16712 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
16713 $as_echo X"$file" |
16714 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16718 /^X\(\/\/\)[^/].*/{
16731 as_dir=$dirpart/$fdir; as_fn_mkdir_p
16732 # echo "creating $dirpart/$file"
16733 echo '# dummy' > "$dirpart/$file"
16740 # See if we are running on zsh, and set the options which allow our
16741 # commands through without removal of \ escapes.
16742 if test -n "${ZSH_VERSION+set}" ; then
16743 setopt NO_GLOB_SUBST
16746 cfgfile="${ofile}T"
16747 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
16750 cat <<_LT_EOF >> "$cfgfile"
16753 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
16754 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
16755 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16756 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
16758 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
16759 # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
16761 # Written by Gordon Matzigkeit, 1996
16763 # This file is part of GNU Libtool.
16765 # GNU Libtool is free software; you can redistribute it and/or
16766 # modify it under the terms of the GNU General Public License as
16767 # published by the Free Software Foundation; either version 2 of
16768 # the License, or (at your option) any later version.
16770 # As a special exception to the GNU General Public License,
16771 # if you distribute this file as part of a program or library that
16772 # is built using GNU Libtool, you may include this file under the
16773 # same distribution terms that you use for the rest of that program.
16775 # GNU Libtool is distributed in the hope that it will be useful,
16776 # but WITHOUT ANY WARRANTY; without even the implied warranty of
16777 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16778 # GNU General Public License for more details.
16780 # You should have received a copy of the GNU General Public License
16781 # along with GNU Libtool; see the file COPYING. If not, a copy
16782 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
16783 # obtained by writing to the Free Software Foundation, Inc.,
16784 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
16787 # The names of the tagged configurations supported by this script.
16788 available_tags="F77 "
16790 # ### BEGIN LIBTOOL CONFIG
16792 # Which release of libtool.m4 was used?
16793 macro_version=$macro_version
16794 macro_revision=$macro_revision
16796 # Whether or not to build shared libraries.
16797 build_libtool_libs=$enable_shared
16799 # Whether or not to build static libraries.
16800 build_old_libs=$enable_static
16802 # What type of objects to build.
16805 # Whether or not to optimize for fast installation.
16806 fast_install=$enable_fast_install
16808 # Shell to use when invoking shell scripts.
16811 # An echo program that protects backslashes.
16814 # The PATH separator for the build system.
16815 PATH_SEPARATOR=$lt_PATH_SEPARATOR
16818 host_alias=$host_alias
16822 # The build system.
16823 build_alias=$build_alias
16827 # A sed program that does not truncate output.
16830 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
16831 Xsed="\$SED -e 1s/^X//"
16833 # A grep program that handles long lines.
16839 # A literal string matcher.
16842 # A BSD- or MS-compatible name lister.
16845 # Whether we need soft or hard links.
16848 # What is the maximum length of a command?
16849 max_cmd_len=$max_cmd_len
16851 # Object file suffix (normally "o").
16854 # Executable file suffix (normally "").
16857 # whether the shell understands "unset".
16860 # turn spaces into newlines.
16863 # turn newlines into spaces.
16866 # convert \$build file names to \$host format.
16867 to_host_file_cmd=$lt_cv_to_host_file_cmd
16869 # convert \$build files to toolchain format.
16870 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
16872 # An object symbol dumper.
16873 OBJDUMP=$lt_OBJDUMP
16875 # Method to check whether dependent libraries are shared objects.
16876 deplibs_check_method=$lt_deplibs_check_method
16878 # Command to use when deplibs_check_method = "file_magic".
16879 file_magic_cmd=$lt_file_magic_cmd
16881 # How to find potential files when deplibs_check_method = "file_magic".
16882 file_magic_glob=$lt_file_magic_glob
16884 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
16885 want_nocaseglob=$lt_want_nocaseglob
16887 # DLL creation program.
16888 DLLTOOL=$lt_DLLTOOL
16890 # Command to associate shared and link libraries.
16891 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
16896 # Flags to create an archive.
16897 AR_FLAGS=$lt_AR_FLAGS
16899 # How to feed a file listing to the archiver.
16900 archiver_list_spec=$lt_archiver_list_spec
16902 # A symbol stripping program.
16905 # Commands used to install an old-style archive.
16907 old_postinstall_cmds=$lt_old_postinstall_cmds
16908 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16910 # Whether to use a lock for old archive extraction.
16911 lock_old_archive_extraction=$lock_old_archive_extraction
16916 # LTCC compiler flags.
16917 LTCFLAGS=$lt_CFLAGS
16919 # Take the output of nm and produce a listing of raw symbols and C names.
16920 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16922 # Transform the output of nm in a proper C declaration.
16923 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16925 # Transform the output of nm in a C name address pair.
16926 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16928 # Transform the output of nm in a C name address pair when lib prefix is needed.
16929 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
16931 # Specify filename containing input files for \$NM.
16932 nm_file_list_spec=$lt_nm_file_list_spec
16934 # The root where to search for dependent libraries,and in which our libraries should be installed.
16935 lt_sysroot=$lt_sysroot
16937 # The name of the directory that contains temporary libtool files.
16940 # Used to examine libraries when file_magic_cmd begins with "file".
16941 MAGIC_CMD=$MAGIC_CMD
16943 # Must we lock files when doing compilation?
16944 need_locks=$lt_need_locks
16947 MANIFEST_TOOL=$lt_MANIFEST_TOOL
16949 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
16950 DSYMUTIL=$lt_DSYMUTIL
16952 # Tool to change global to local symbols on Mac OS X.
16955 # Tool to manipulate fat objects and archives on Mac OS X.
16958 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
16961 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
16962 OTOOL64=$lt_OTOOL64
16964 # Old archive suffix (normally "a").
16967 # Shared library suffix (normally ".so").
16968 shrext_cmds=$lt_shrext_cmds
16970 # The commands to extract the exported symbol list from a shared archive.
16971 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16973 # Variables whose values should be saved in libtool wrapper scripts and
16974 # restored at link time.
16975 variables_saved_for_relink=$lt_variables_saved_for_relink
16977 # Do we need the "lib" prefix for modules?
16978 need_lib_prefix=$need_lib_prefix
16980 # Do we need a version for libraries?
16981 need_version=$need_version
16983 # Library versioning type.
16984 version_type=$version_type
16986 # Shared library runtime path variable.
16987 runpath_var=$runpath_var
16989 # Shared library path variable.
16990 shlibpath_var=$shlibpath_var
16992 # Is shlibpath searched before the hard-coded library search path?
16993 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16995 # Format of library name prefix.
16996 libname_spec=$lt_libname_spec
16998 # List of archive names. First name is the real one, the rest are links.
16999 # The last name is the one that the linker finds with -lNAME
17000 library_names_spec=$lt_library_names_spec
17002 # The coded name of the library, if different from the real name.
17003 soname_spec=$lt_soname_spec
17005 # Permission mode override for installation of shared libraries.
17006 install_override_mode=$lt_install_override_mode
17008 # Command to use after installation of a shared archive.
17009 postinstall_cmds=$lt_postinstall_cmds
17011 # Command to use after uninstallation of a shared archive.
17012 postuninstall_cmds=$lt_postuninstall_cmds
17014 # Commands used to finish a libtool library installation in a directory.
17015 finish_cmds=$lt_finish_cmds
17017 # As "finish_cmds", except a single script fragment to be evaled but
17019 finish_eval=$lt_finish_eval
17021 # Whether we should hardcode library paths into libraries.
17022 hardcode_into_libs=$hardcode_into_libs
17024 # Compile-time system search path for libraries.
17025 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17027 # Run-time system search path for libraries.
17028 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17030 # Whether dlopen is supported.
17031 dlopen_support=$enable_dlopen
17033 # Whether dlopen of programs is supported.
17034 dlopen_self=$enable_dlopen_self
17036 # Whether dlopen of statically linked programs is supported.
17037 dlopen_self_static=$enable_dlopen_self_static
17039 # Commands to strip libraries.
17040 old_striplib=$lt_old_striplib
17041 striplib=$lt_striplib
17044 # The linker used to build libraries.
17047 # How to create reloadable object files.
17048 reload_flag=$lt_reload_flag
17049 reload_cmds=$lt_reload_cmds
17051 # Commands used to build an old-style archive.
17052 old_archive_cmds=$lt_old_archive_cmds
17054 # A language specific compiler.
17057 # Is the compiler the GNU compiler?
17060 # Compiler flag to turn off builtin functions.
17061 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
17063 # Additional compiler flags for building library objects.
17064 pic_flag=$lt_lt_prog_compiler_pic
17066 # How to pass a linker flag through the compiler.
17067 wl=$lt_lt_prog_compiler_wl
17069 # Compiler flag to prevent dynamic linking.
17070 link_static_flag=$lt_lt_prog_compiler_static
17072 # Does compiler simultaneously support -c and -o options?
17073 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
17075 # Whether or not to add -lc for building shared libraries.
17076 build_libtool_need_lc=$archive_cmds_need_lc
17078 # Whether or not to disallow shared libs when runtime libs are static.
17079 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17081 # Compiler flag to allow reflexive dlopens.
17082 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17084 # Compiler flag to generate shared objects directly from archives.
17085 whole_archive_flag_spec=$lt_whole_archive_flag_spec
17087 # Whether the compiler copes with passing no objects directly.
17088 compiler_needs_object=$lt_compiler_needs_object
17090 # Create an old-style archive from a shared archive.
17091 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17093 # Create a temporary old-style archive to link instead of a shared archive.
17094 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17096 # Commands used to build a shared archive.
17097 archive_cmds=$lt_archive_cmds
17098 archive_expsym_cmds=$lt_archive_expsym_cmds
17100 # Commands used to build a loadable module if different from building
17101 # a shared archive.
17102 module_cmds=$lt_module_cmds
17103 module_expsym_cmds=$lt_module_expsym_cmds
17105 # Whether we are building with GNU ld or not.
17106 with_gnu_ld=$lt_with_gnu_ld
17108 # Flag that allows shared libraries with undefined symbols to be built.
17109 allow_undefined_flag=$lt_allow_undefined_flag
17111 # Flag that enforces no undefined symbols.
17112 no_undefined_flag=$lt_no_undefined_flag
17114 # Flag to hardcode \$libdir into a binary during linking.
17115 # This must work even if \$libdir does not exist
17116 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17118 # Whether we need a single "-rpath" flag with a separated argument.
17119 hardcode_libdir_separator=$lt_hardcode_libdir_separator
17121 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17122 # DIR into the resulting binary.
17123 hardcode_direct=$hardcode_direct
17125 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17126 # DIR into the resulting binary and the resulting library dependency is
17127 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
17128 # library is relocated.
17129 hardcode_direct_absolute=$hardcode_direct_absolute
17131 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17132 # into the resulting binary.
17133 hardcode_minus_L=$hardcode_minus_L
17135 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17136 # into the resulting binary.
17137 hardcode_shlibpath_var=$hardcode_shlibpath_var
17139 # Set to "yes" if building a shared library automatically hardcodes DIR
17140 # into the library and all subsequent libraries and executables linked
17142 hardcode_automatic=$hardcode_automatic
17144 # Set to yes if linker adds runtime paths of dependent libraries
17145 # to runtime path list.
17146 inherit_rpath=$inherit_rpath
17148 # Whether libtool must link a program against all its dependency libraries.
17149 link_all_deplibs=$link_all_deplibs
17151 # Set to "yes" if exported symbols are required.
17152 always_export_symbols=$always_export_symbols
17154 # The commands to list exported symbols.
17155 export_symbols_cmds=$lt_export_symbols_cmds
17157 # Symbols that should not be listed in the preloaded symbols.
17158 exclude_expsyms=$lt_exclude_expsyms
17160 # Symbols that must always be exported.
17161 include_expsyms=$lt_include_expsyms
17163 # Commands necessary for linking programs (against libraries) with templates.
17164 prelink_cmds=$lt_prelink_cmds
17166 # Commands necessary for finishing linking programs.
17167 postlink_cmds=$lt_postlink_cmds
17169 # Specify filename containing input files.
17170 file_list_spec=$lt_file_list_spec
17172 # How to hardcode a shared library path into an executable.
17173 hardcode_action=$hardcode_action
17175 # ### END LIBTOOL CONFIG
17181 cat <<\_LT_EOF >> "$cfgfile"
17182 # AIX sometimes has problems with the GCC collect2 program. For some
17183 # reason, if we set the COLLECT_NAMES environment variable, the problems
17184 # vanish in a puff of smoke.
17185 if test "X${COLLECT_NAMES+set}" != Xset; then
17187 export COLLECT_NAMES
17194 ltmain="$ac_aux_dir/ltmain.sh"
17197 # We use sed instead of cat because bash on DJGPP gets confused if
17198 # if finds mixed CR/LF and LF-only lines. Since sed operates in
17199 # text mode, it properly converts lines to CR/LF. This bash problem
17200 # is reportedly fixed, but why not run on old versions too?
17201 sed '$q' "$ltmain" >> "$cfgfile" \
17202 || (rm -f "$cfgfile"; exit 1)
17204 if test x"$xsi_shell" = xyes; then
17205 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
17209 \ */*) func_dirname_result="${1%/*}${2}" ;;\
17210 \ * ) func_dirname_result="${3}" ;;\
17212 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
17213 && mv -f "$cfgfile.tmp" "$cfgfile" \
17214 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17215 test 0 -eq $? || _lt_function_replace_fail=:
17218 sed -e '/^func_basename ()$/,/^} # func_basename /c\
17221 \ func_basename_result="${1##*/}"\
17222 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
17223 && mv -f "$cfgfile.tmp" "$cfgfile" \
17224 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17225 test 0 -eq $? || _lt_function_replace_fail=:
17228 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
17229 func_dirname_and_basename ()\
17232 \ */*) func_dirname_result="${1%/*}${2}" ;;\
17233 \ * ) func_dirname_result="${3}" ;;\
17235 \ func_basename_result="${1##*/}"\
17236 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
17237 && mv -f "$cfgfile.tmp" "$cfgfile" \
17238 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17239 test 0 -eq $? || _lt_function_replace_fail=:
17242 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
17245 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
17246 \ # positional parameters, so assign one to ordinary parameter first.\
17247 \ func_stripname_result=${3}\
17248 \ func_stripname_result=${func_stripname_result#"${1}"}\
17249 \ func_stripname_result=${func_stripname_result%"${2}"}\
17250 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
17251 && mv -f "$cfgfile.tmp" "$cfgfile" \
17252 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17253 test 0 -eq $? || _lt_function_replace_fail=:
17256 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
17257 func_split_long_opt ()\
17259 \ func_split_long_opt_name=${1%%=*}\
17260 \ func_split_long_opt_arg=${1#*=}\
17261 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
17262 && mv -f "$cfgfile.tmp" "$cfgfile" \
17263 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17264 test 0 -eq $? || _lt_function_replace_fail=:
17267 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
17268 func_split_short_opt ()\
17270 \ func_split_short_opt_arg=${1#??}\
17271 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
17272 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
17273 && mv -f "$cfgfile.tmp" "$cfgfile" \
17274 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17275 test 0 -eq $? || _lt_function_replace_fail=:
17278 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
17282 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
17283 \ *) func_lo2o_result=${1} ;;\
17285 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
17286 && mv -f "$cfgfile.tmp" "$cfgfile" \
17287 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17288 test 0 -eq $? || _lt_function_replace_fail=:
17291 sed -e '/^func_xform ()$/,/^} # func_xform /c\
17294 func_xform_result=${1%.*}.lo\
17295 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
17296 && mv -f "$cfgfile.tmp" "$cfgfile" \
17297 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17298 test 0 -eq $? || _lt_function_replace_fail=:
17301 sed -e '/^func_arith ()$/,/^} # func_arith /c\
17304 func_arith_result=$(( $* ))\
17305 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
17306 && mv -f "$cfgfile.tmp" "$cfgfile" \
17307 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17308 test 0 -eq $? || _lt_function_replace_fail=:
17311 sed -e '/^func_len ()$/,/^} # func_len /c\
17314 func_len_result=${#1}\
17315 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
17316 && mv -f "$cfgfile.tmp" "$cfgfile" \
17317 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17318 test 0 -eq $? || _lt_function_replace_fail=:
17322 if test x"$lt_shell_append" = xyes; then
17323 sed -e '/^func_append ()$/,/^} # func_append /c\
17326 eval "${1}+=\\${2}"\
17327 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
17328 && mv -f "$cfgfile.tmp" "$cfgfile" \
17329 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17330 test 0 -eq $? || _lt_function_replace_fail=:
17333 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
17334 func_append_quoted ()\
17336 \ func_quote_for_eval "${2}"\
17337 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
17338 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
17339 && mv -f "$cfgfile.tmp" "$cfgfile" \
17340 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17341 test 0 -eq $? || _lt_function_replace_fail=:
17344 # Save a `func_append' function call where possible by direct use of '+='
17345 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
17346 && mv -f "$cfgfile.tmp" "$cfgfile" \
17347 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17348 test 0 -eq $? || _lt_function_replace_fail=:
17350 # Save a `func_append' function call even when '+=' is not available
17351 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
17352 && mv -f "$cfgfile.tmp" "$cfgfile" \
17353 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17354 test 0 -eq $? || _lt_function_replace_fail=:
17357 if test x"$_lt_function_replace_fail" = x":"; then
17358 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
17359 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
17363 mv -f "$cfgfile" "$ofile" ||
17364 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
17368 cat <<_LT_EOF >> "$ofile"
17370 # ### BEGIN LIBTOOL TAG CONFIG: F77
17372 # The linker used to build libraries.
17375 # How to create reloadable object files.
17376 reload_flag=$lt_reload_flag_F77
17377 reload_cmds=$lt_reload_cmds_F77
17379 # Commands used to build an old-style archive.
17380 old_archive_cmds=$lt_old_archive_cmds_F77
17382 # A language specific compiler.
17383 CC=$lt_compiler_F77
17385 # Is the compiler the GNU compiler?
17388 # Compiler flag to turn off builtin functions.
17389 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
17391 # Additional compiler flags for building library objects.
17392 pic_flag=$lt_lt_prog_compiler_pic_F77
17394 # How to pass a linker flag through the compiler.
17395 wl=$lt_lt_prog_compiler_wl_F77
17397 # Compiler flag to prevent dynamic linking.
17398 link_static_flag=$lt_lt_prog_compiler_static_F77
17400 # Does compiler simultaneously support -c and -o options?
17401 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
17403 # Whether or not to add -lc for building shared libraries.
17404 build_libtool_need_lc=$archive_cmds_need_lc_F77
17406 # Whether or not to disallow shared libs when runtime libs are static.
17407 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
17409 # Compiler flag to allow reflexive dlopens.
17410 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
17412 # Compiler flag to generate shared objects directly from archives.
17413 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
17415 # Whether the compiler copes with passing no objects directly.
17416 compiler_needs_object=$lt_compiler_needs_object_F77
17418 # Create an old-style archive from a shared archive.
17419 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
17421 # Create a temporary old-style archive to link instead of a shared archive.
17422 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
17424 # Commands used to build a shared archive.
17425 archive_cmds=$lt_archive_cmds_F77
17426 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
17428 # Commands used to build a loadable module if different from building
17429 # a shared archive.
17430 module_cmds=$lt_module_cmds_F77
17431 module_expsym_cmds=$lt_module_expsym_cmds_F77
17433 # Whether we are building with GNU ld or not.
17434 with_gnu_ld=$lt_with_gnu_ld_F77
17436 # Flag that allows shared libraries with undefined symbols to be built.
17437 allow_undefined_flag=$lt_allow_undefined_flag_F77
17439 # Flag that enforces no undefined symbols.
17440 no_undefined_flag=$lt_no_undefined_flag_F77
17442 # Flag to hardcode \$libdir into a binary during linking.
17443 # This must work even if \$libdir does not exist
17444 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
17446 # Whether we need a single "-rpath" flag with a separated argument.
17447 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
17449 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17450 # DIR into the resulting binary.
17451 hardcode_direct=$hardcode_direct_F77
17453 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17454 # DIR into the resulting binary and the resulting library dependency is
17455 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
17456 # library is relocated.
17457 hardcode_direct_absolute=$hardcode_direct_absolute_F77
17459 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17460 # into the resulting binary.
17461 hardcode_minus_L=$hardcode_minus_L_F77
17463 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17464 # into the resulting binary.
17465 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
17467 # Set to "yes" if building a shared library automatically hardcodes DIR
17468 # into the library and all subsequent libraries and executables linked
17470 hardcode_automatic=$hardcode_automatic_F77
17472 # Set to yes if linker adds runtime paths of dependent libraries
17473 # to runtime path list.
17474 inherit_rpath=$inherit_rpath_F77
17476 # Whether libtool must link a program against all its dependency libraries.
17477 link_all_deplibs=$link_all_deplibs_F77
17479 # Set to "yes" if exported symbols are required.
17480 always_export_symbols=$always_export_symbols_F77
17482 # The commands to list exported symbols.
17483 export_symbols_cmds=$lt_export_symbols_cmds_F77
17485 # Symbols that should not be listed in the preloaded symbols.
17486 exclude_expsyms=$lt_exclude_expsyms_F77
17488 # Symbols that must always be exported.
17489 include_expsyms=$lt_include_expsyms_F77
17491 # Commands necessary for linking programs (against libraries) with templates.
17492 prelink_cmds=$lt_prelink_cmds_F77
17494 # Commands necessary for finishing linking programs.
17495 postlink_cmds=$lt_postlink_cmds_F77
17497 # Specify filename containing input files.
17498 file_list_spec=$lt_file_list_spec_F77
17500 # How to hardcode a shared library path into an executable.
17501 hardcode_action=$hardcode_action_F77
17503 # ### END LIBTOOL TAG CONFIG: F77
17514 ac_clean_files=$ac_clean_files_save
17516 test $ac_write_fail = 0 ||
17517 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
17520 # configure is writing to config.log, and then calls config.status.
17521 # config.status does its own redirection, appending to config.log.
17522 # Unfortunately, on DOS this fails, as config.log is still kept open
17523 # by configure, so config.status won't be able to write to it; its
17524 # output is simply discarded. So we exec the FD to /dev/null,
17525 # effectively closing config.log, so it can be properly (re)opened and
17526 # appended to by config.status. When coming back to configure, we
17527 # need to make the FD available again.
17528 if test "$no_create" != yes; then
17530 ac_config_status_args=
17531 test "$silent" = yes &&
17532 ac_config_status_args="$ac_config_status_args --quiet"
17534 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17536 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17537 # would make configure fail if this is the last instruction.
17538 $ac_cs_success || as_fn_exit 1
17540 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17541 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17542 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}