Add a trivial script to extract the times from *.report.txt files.
[llvm-testsuite.git] / configure
blob591d95e561d143d9a10eeeba2afd99cf8d319387
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.60 for LLVM-TEST 2.8svn.
5 # Report bugs to <llvmbugs@cs.uiuc.edu>.
7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## --------------------- ##
12 ## M4sh Initialization. ##
13 ## --------------------- ##
15 # Be Bourne compatible
16 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17 emulate sh
18 NULLCMD=:
19 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20 # is contrary to our usage. Disable this feature.
21 alias -g '${1+"$@"}'='"$@"'
22 setopt NO_GLOB_SUBST
23 else
24 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
26 BIN_SH=xpg4; export BIN_SH # for Tru64
27 DUALCASE=1; export DUALCASE # for MKS sh
30 # PATH needs CR
31 # Avoid depending upon Character Ranges.
32 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
33 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
34 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
35 as_cr_digits='0123456789'
36 as_cr_alnum=$as_cr_Letters$as_cr_digits
38 # The user is always right.
39 if test "${PATH_SEPARATOR+set}" != set; then
40 echo "#! /bin/sh" >conf$$.sh
41 echo "exit 0" >>conf$$.sh
42 chmod +x conf$$.sh
43 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
44 PATH_SEPARATOR=';'
45 else
46 PATH_SEPARATOR=:
48 rm -f conf$$.sh
51 # Support unset when possible.
52 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
53 as_unset=unset
54 else
55 as_unset=false
59 # IFS
60 # We need space, tab and new line, in precisely that order. Quoting is
61 # there to prevent editors from complaining about space-tab.
62 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
63 # splitting by setting IFS to empty value.)
64 as_nl='
66 IFS=" "" $as_nl"
68 # Find who we are. Look in the path if we contain no directory separator.
69 case $0 in
70 *[\\/]* ) as_myself=$0 ;;
71 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
72 for as_dir in $PATH
74 IFS=$as_save_IFS
75 test -z "$as_dir" && as_dir=.
76 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
77 done
78 IFS=$as_save_IFS
81 esac
82 # We did not find ourselves, most probably we were run as `sh COMMAND'
83 # in which case we are not to be found in the path.
84 if test "x$as_myself" = x; then
85 as_myself=$0
87 if test ! -f "$as_myself"; then
88 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
89 { (exit 1); exit 1; }
92 # Work around bugs in pre-3.0 UWIN ksh.
93 for as_var in ENV MAIL MAILPATH
94 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
95 done
96 PS1='$ '
97 PS2='> '
98 PS4='+ '
100 # NLS nuisances.
101 for as_var in \
102 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
103 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
104 LC_TELEPHONE LC_TIME
106 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
107 eval $as_var=C; export $as_var
108 else
109 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
111 done
113 # Required to use basename.
114 if expr a : '\(a\)' >/dev/null 2>&1 &&
115 test "X`expr 00001 : '.*\(...\)'`" = X001; then
116 as_expr=expr
117 else
118 as_expr=false
121 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
122 as_basename=basename
123 else
124 as_basename=false
128 # Name of the executable.
129 as_me=`$as_basename -- "$0" ||
130 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
131 X"$0" : 'X\(//\)$' \| \
132 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
133 echo X/"$0" |
134 sed '/^.*\/\([^/][^/]*\)\/*$/{
135 s//\1/
138 /^X\/\(\/\/\)$/{
139 s//\1/
142 /^X\/\(\/\).*/{
143 s//\1/
146 s/.*/./; q'`
148 # CDPATH.
149 $as_unset CDPATH
152 if test "x$CONFIG_SHELL" = x; then
153 if (eval ":") 2>/dev/null; then
154 as_have_required=yes
155 else
156 as_have_required=no
159 if test $as_have_required = yes && (eval ":
160 (as_func_return () {
161 (exit \$1)
163 as_func_success () {
164 as_func_return 0
166 as_func_failure () {
167 as_func_return 1
169 as_func_ret_success () {
170 return 0
172 as_func_ret_failure () {
173 return 1
176 exitcode=0
177 if as_func_success; then
179 else
180 exitcode=1
181 echo as_func_success failed.
184 if as_func_failure; then
185 exitcode=1
186 echo as_func_failure succeeded.
189 if as_func_ret_success; then
191 else
192 exitcode=1
193 echo as_func_ret_success failed.
196 if as_func_ret_failure; then
197 exitcode=1
198 echo as_func_ret_failure succeeded.
201 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
203 else
204 exitcode=1
205 echo positional parameters were not saved.
208 test \$exitcode = 0) || { (exit 1); exit 1; }
211 as_lineno_1=\$LINENO
212 as_lineno_2=\$LINENO
213 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
214 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
215 ") 2> /dev/null; then
217 else
218 as_candidate_shells=
219 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
220 for as_dir in /usr/bin/posix$PATH_SEPARATOR/bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
222 IFS=$as_save_IFS
223 test -z "$as_dir" && as_dir=.
224 case $as_dir in
226 for as_base in sh bash ksh sh5; do
227 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
228 done;;
229 esac
230 done
231 IFS=$as_save_IFS
234 for as_shell in $as_candidate_shells $SHELL; do
235 # Try only shells that exist, to save several forks.
236 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
237 { ("$as_shell") 2> /dev/null <<\_ASEOF
238 # Be Bourne compatible
239 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
240 emulate sh
241 NULLCMD=:
242 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
243 # is contrary to our usage. Disable this feature.
244 alias -g '${1+"$@"}'='"$@"'
245 setopt NO_GLOB_SUBST
246 else
247 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
249 BIN_SH=xpg4; export BIN_SH # for Tru64
250 DUALCASE=1; export DUALCASE # for MKS sh
253 _ASEOF
254 }; then
255 CONFIG_SHELL=$as_shell
256 as_have_required=yes
257 if { "$as_shell" 2> /dev/null <<\_ASEOF
258 # Be Bourne compatible
259 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
260 emulate sh
261 NULLCMD=:
262 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
263 # is contrary to our usage. Disable this feature.
264 alias -g '${1+"$@"}'='"$@"'
265 setopt NO_GLOB_SUBST
266 else
267 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
269 BIN_SH=xpg4; export BIN_SH # for Tru64
270 DUALCASE=1; export DUALCASE # for MKS sh
273 (as_func_return () {
274 (exit $1)
276 as_func_success () {
277 as_func_return 0
279 as_func_failure () {
280 as_func_return 1
282 as_func_ret_success () {
283 return 0
285 as_func_ret_failure () {
286 return 1
289 exitcode=0
290 if as_func_success; then
292 else
293 exitcode=1
294 echo as_func_success failed.
297 if as_func_failure; then
298 exitcode=1
299 echo as_func_failure succeeded.
302 if as_func_ret_success; then
304 else
305 exitcode=1
306 echo as_func_ret_success failed.
309 if as_func_ret_failure; then
310 exitcode=1
311 echo as_func_ret_failure succeeded.
314 if ( set x; as_func_ret_success y && test x = "$1" ); then
316 else
317 exitcode=1
318 echo positional parameters were not saved.
321 test $exitcode = 0) || { (exit 1); exit 1; }
324 as_lineno_1=$LINENO
325 as_lineno_2=$LINENO
326 test "x$as_lineno_1" != "x$as_lineno_2" &&
327 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
329 _ASEOF
330 }; then
331 break
336 done
338 if test "x$CONFIG_SHELL" != x; then
339 for as_var in BASH_ENV ENV
340 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
341 done
342 export CONFIG_SHELL
343 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
347 if test $as_have_required = no; then
348 echo This script requires a shell more modern than all the
349 echo shells that I found on your system. Please install a
350 echo modern shell, or manually run the script under such a
351 echo shell if you do have one.
352 { (exit 1); exit 1; }
362 (eval "as_func_return () {
363 (exit \$1)
365 as_func_success () {
366 as_func_return 0
368 as_func_failure () {
369 as_func_return 1
371 as_func_ret_success () {
372 return 0
374 as_func_ret_failure () {
375 return 1
378 exitcode=0
379 if as_func_success; then
381 else
382 exitcode=1
383 echo as_func_success failed.
386 if as_func_failure; then
387 exitcode=1
388 echo as_func_failure succeeded.
391 if as_func_ret_success; then
393 else
394 exitcode=1
395 echo as_func_ret_success failed.
398 if as_func_ret_failure; then
399 exitcode=1
400 echo as_func_ret_failure succeeded.
403 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
405 else
406 exitcode=1
407 echo positional parameters were not saved.
410 test \$exitcode = 0") || {
411 echo No shell found that supports shell functions.
412 echo Please tell autoconf@gnu.org about your system,
413 echo including any error possibly output before this
414 echo message
419 as_lineno_1=$LINENO
420 as_lineno_2=$LINENO
421 test "x$as_lineno_1" != "x$as_lineno_2" &&
422 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
424 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
425 # uniformly replaced by the line number. The first 'sed' inserts a
426 # line-number line after each line using $LINENO; the second 'sed'
427 # does the real work. The second script uses 'N' to pair each
428 # line-number line with the line containing $LINENO, and appends
429 # trailing '-' during substitution so that $LINENO is not a special
430 # case at line end.
431 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
432 # scripts with optimization help from Paolo Bonzini. Blame Lee
433 # E. McMahon (1931-1989) for sed's syntax. :-)
434 sed -n '
436 /[$]LINENO/=
437 ' <$as_myself |
438 sed '
439 s/[$]LINENO.*/&-/
440 t lineno
442 :lineno
444 :loop
445 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
446 t loop
447 s/-\n.*//
448 ' >$as_me.lineno &&
449 chmod +x "$as_me.lineno" ||
450 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
451 { (exit 1); exit 1; }; }
453 # Don't try to exec as it changes $[0], causing all sort of problems
454 # (the dirname of $[0] is not the place where we might find the
455 # original and so on. Autoconf is especially sensitive to this).
456 . "./$as_me.lineno"
457 # Exit status is that of the last command.
458 exit
462 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
463 as_dirname=dirname
464 else
465 as_dirname=false
468 ECHO_C= ECHO_N= ECHO_T=
469 case `echo -n x` in
470 -n*)
471 case `echo 'x\c'` in
472 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
473 *) ECHO_C='\c';;
474 esac;;
476 ECHO_N='-n';;
477 esac
479 if expr a : '\(a\)' >/dev/null 2>&1 &&
480 test "X`expr 00001 : '.*\(...\)'`" = X001; then
481 as_expr=expr
482 else
483 as_expr=false
486 rm -f conf$$ conf$$.exe conf$$.file
487 if test -d conf$$.dir; then
488 rm -f conf$$.dir/conf$$.file
489 else
490 rm -f conf$$.dir
491 mkdir conf$$.dir
493 echo >conf$$.file
494 if ln -s conf$$.file conf$$ 2>/dev/null; then
495 as_ln_s='ln -s'
496 # ... but there are two gotchas:
497 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
498 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
499 # In both cases, we have to default to `cp -p'.
500 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
501 as_ln_s='cp -p'
502 elif ln conf$$.file conf$$ 2>/dev/null; then
503 as_ln_s=ln
504 else
505 as_ln_s='cp -p'
507 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
508 rmdir conf$$.dir 2>/dev/null
510 if mkdir -p . 2>/dev/null; then
511 as_mkdir_p=:
512 else
513 test -d ./-p && rmdir ./-p
514 as_mkdir_p=false
517 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
518 # systems may use methods other than mode bits to determine executability.
519 cat >conf$$.file <<_ASEOF
520 #! /bin/sh
521 exit 0
522 _ASEOF
523 chmod +x conf$$.file
524 if test -x conf$$.file >/dev/null 2>&1; then
525 as_executable_p="test -x"
526 else
527 as_executable_p=:
529 rm -f conf$$.file
531 # Sed expression to map a string onto a valid CPP name.
532 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
534 # Sed expression to map a string onto a valid variable name.
535 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
540 # Check that we are running under the correct shell.
541 SHELL=${CONFIG_SHELL-/bin/sh}
543 case X$ECHO in
544 X*--fallback-echo)
545 # Remove one level of quotation (which was required for Make).
546 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
548 esac
550 echo=${ECHO-echo}
551 if test "X$1" = X--no-reexec; then
552 # Discard the --no-reexec flag, and continue.
553 shift
554 elif test "X$1" = X--fallback-echo; then
555 # Avoid inline document here, it may be left over
557 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
558 # Yippee, $echo works!
560 else
561 # Restart under the correct shell.
562 exec $SHELL "$0" --no-reexec ${1+"$@"}
565 if test "X$1" = X--fallback-echo; then
566 # used as fallback echo
567 shift
568 cat <<EOF
571 exit 0
574 # The HP-UX ksh and POSIX shell print the target directory to stdout
575 # if CDPATH is set.
576 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
578 if test -z "$ECHO"; then
579 if test "X${echo_test_string+set}" != Xset; then
580 # find a string as large as possible, as long as the shell can cope with it
581 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
582 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
583 if (echo_test_string=`eval $cmd`) 2>/dev/null &&
584 echo_test_string=`eval $cmd` &&
585 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
586 then
587 break
589 done
592 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
593 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
594 test "X$echo_testing_string" = "X$echo_test_string"; then
596 else
597 # The Solaris, AIX, and Digital Unix default echo programs unquote
598 # backslashes. This makes it impossible to quote backslashes using
599 # echo "$something" | sed 's/\\/\\\\/g'
601 # So, first we look for a working echo in the user's PATH.
603 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
604 for dir in $PATH /usr/ucb; do
605 IFS="$lt_save_ifs"
606 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
607 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
608 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
609 test "X$echo_testing_string" = "X$echo_test_string"; then
610 echo="$dir/echo"
611 break
613 done
614 IFS="$lt_save_ifs"
616 if test "X$echo" = Xecho; then
617 # We didn't find a better echo, so look for alternatives.
618 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
619 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
620 test "X$echo_testing_string" = "X$echo_test_string"; then
621 # This shell has a builtin print -r that does the trick.
622 echo='print -r'
623 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
624 test "X$CONFIG_SHELL" != X/bin/ksh; then
625 # If we have ksh, try running configure again with it.
626 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
627 export ORIGINAL_CONFIG_SHELL
628 CONFIG_SHELL=/bin/ksh
629 export CONFIG_SHELL
630 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
631 else
632 # Try using printf.
633 echo='printf %s\n'
634 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
635 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
636 test "X$echo_testing_string" = "X$echo_test_string"; then
637 # Cool, printf works
639 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
640 test "X$echo_testing_string" = 'X\t' &&
641 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
642 test "X$echo_testing_string" = "X$echo_test_string"; then
643 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
644 export CONFIG_SHELL
645 SHELL="$CONFIG_SHELL"
646 export SHELL
647 echo="$CONFIG_SHELL $0 --fallback-echo"
648 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
649 test "X$echo_testing_string" = 'X\t' &&
650 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
651 test "X$echo_testing_string" = "X$echo_test_string"; then
652 echo="$CONFIG_SHELL $0 --fallback-echo"
653 else
654 # maybe with a smaller string...
655 prev=:
657 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
658 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
659 then
660 break
662 prev="$cmd"
663 done
665 if test "$prev" != 'sed 50q "$0"'; then
666 echo_test_string=`eval $prev`
667 export echo_test_string
668 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
669 else
670 # Oops. We lost completely, so just stick with echo.
671 echo=echo
679 # Copy echo and quote the copy suitably for passing to libtool from
680 # the Makefile, instead of quoting the original, which is used later.
681 ECHO=$echo
682 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
683 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
689 tagnames=${tagnames+${tagnames},}CXX
691 tagnames=${tagnames+${tagnames},}F77
693 exec 7<&0 </dev/null 6>&1
695 # Name of the host.
696 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
697 # so uname gets run too.
698 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
701 # Initializations.
703 ac_default_prefix=/usr/local
704 ac_clean_files=
705 ac_config_libobj_dir=.
706 LIBOBJS=
707 cross_compiling=no
708 subdirs=
709 MFLAGS=
710 MAKEFLAGS=
711 SHELL=${CONFIG_SHELL-/bin/sh}
713 # Identity of this package.
714 PACKAGE_NAME='LLVM-TEST'
715 PACKAGE_TARNAME='-llvm-test-'
716 PACKAGE_VERSION='2.8svn'
717 PACKAGE_STRING='LLVM-TEST 2.8svn'
718 PACKAGE_BUGREPORT='llvmbugs@cs.uiuc.edu'
720 ac_unique_file="SingleSource/Benchmarks/Makefile"
721 # Factoring default headers for most tests.
722 ac_includes_default="\
723 #include <stdio.h>
724 #if HAVE_SYS_TYPES_H
725 # include <sys/types.h>
726 #endif
727 #if HAVE_SYS_STAT_H
728 # include <sys/stat.h>
729 #endif
730 #if STDC_HEADERS
731 # include <stdlib.h>
732 # include <stddef.h>
733 #else
734 # if HAVE_STDLIB_H
735 # include <stdlib.h>
736 # endif
737 #endif
738 #if HAVE_STRING_H
739 # if !STDC_HEADERS && HAVE_MEMORY_H
740 # include <memory.h>
741 # endif
742 # include <string.h>
743 #endif
744 #if HAVE_STRINGS_H
745 # include <strings.h>
746 #endif
747 #if HAVE_INTTYPES_H
748 # include <inttypes.h>
749 #endif
750 #if HAVE_STDINT_H
751 # include <stdint.h>
752 #endif
753 #if HAVE_UNISTD_H
754 # include <unistd.h>
755 #endif"
757 ac_subst_vars='SHELL
758 PATH_SEPARATOR
759 PACKAGE_NAME
760 PACKAGE_TARNAME
761 PACKAGE_VERSION
762 PACKAGE_STRING
763 PACKAGE_BUGREPORT
764 exec_prefix
765 prefix
766 program_transform_name
767 bindir
768 sbindir
769 libexecdir
770 datarootdir
771 datadir
772 sysconfdir
773 sharedstatedir
774 localstatedir
775 includedir
776 oldincludedir
777 docdir
778 infodir
779 htmldir
780 dvidir
781 pdfdir
782 psdir
783 libdir
784 localedir
785 mandir
786 DEFS
787 ECHO_C
788 ECHO_N
789 ECHO_T
790 LIBS
791 build_alias
792 host_alias
793 target_alias
794 build
795 build_cpu
796 build_vendor
797 build_os
798 host
799 host_cpu
800 host_vendor
801 host_os
802 target
803 target_cpu
804 target_vendor
805 target_os
806 TARGET_OS
807 ARCH
808 ENDIAN
810 CFLAGS
811 LDFLAGS
812 CPPFLAGS
813 ac_ct_CC
814 EXEEXT
815 OBJEXT
817 GREP
818 EGREP
819 LLVM_SRC
820 LLVM_OBJ
821 LLVM_EXTERNALS
822 SPEC95_ROOT
823 USE_SPEC95
824 SPEC2000_ROOT
825 USE_SPEC2000
826 SPEC2006_ROOT
827 USE_SPEC2006
828 POVRAY_ROOT
829 USE_POVRAY
830 NAMD_ROOT
831 USE_NAMD
832 SWEEP3D_ROOT
833 USE_SWEEP3D
834 FPGROWTH_ROOT
835 USE_FPGROWTH
836 ALP_ROOT
837 USE_ALP
838 NURBS_ROOT
839 USE_NURBS
840 HMMER_ROOT
841 USE_HMMER
842 SKIDMARKS10_ROOT
843 USE_SKIDMARKS10
844 DISABLE_LLC_DIFFS
846 CXXFLAGS
847 ac_ct_CXX
848 ifGNUmake
849 LN_S
850 ECHO
852 RANLIB
853 STRIP
854 CXXCPP
856 FFLAGS
857 ac_ct_F77
858 LIBTOOL
859 USE_F2C
861 F2C_BIN
862 F2C_DIR
863 F2C_INC
864 F2C_LIB
865 USE_F95
867 F95_BIN
868 F95_DIR
869 F95_INC
870 F95_LIB
871 HAVE_RE_COMP
872 SHLIBEXT
873 LIBOBJS
874 LTLIBOBJS'
875 ac_subst_files=''
876 ac_precious_vars='build_alias
877 host_alias
878 target_alias
880 CFLAGS
881 LDFLAGS
882 CPPFLAGS
885 CXXFLAGS
887 CXXCPP
889 FFLAGS'
892 # Initialize some variables set by options.
893 ac_init_help=
894 ac_init_version=false
895 # The variables have the same names as the options, with
896 # dashes changed to underlines.
897 cache_file=/dev/null
898 exec_prefix=NONE
899 no_create=
900 no_recursion=
901 prefix=NONE
902 program_prefix=NONE
903 program_suffix=NONE
904 program_transform_name=s,x,x,
905 silent=
906 site=
907 srcdir=
908 verbose=
909 x_includes=NONE
910 x_libraries=NONE
912 # Installation directory options.
913 # These are left unexpanded so users can "make install exec_prefix=/foo"
914 # and all the variables that are supposed to be based on exec_prefix
915 # by default will actually change.
916 # Use braces instead of parens because sh, perl, etc. also accept them.
917 # (The list follows the same order as the GNU Coding Standards.)
918 bindir='${exec_prefix}/bin'
919 sbindir='${exec_prefix}/sbin'
920 libexecdir='${exec_prefix}/libexec'
921 datarootdir='${prefix}/share'
922 datadir='${datarootdir}'
923 sysconfdir='${prefix}/etc'
924 sharedstatedir='${prefix}/com'
925 localstatedir='${prefix}/var'
926 includedir='${prefix}/include'
927 oldincludedir='/usr/include'
928 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
929 infodir='${datarootdir}/info'
930 htmldir='${docdir}'
931 dvidir='${docdir}'
932 pdfdir='${docdir}'
933 psdir='${docdir}'
934 libdir='${exec_prefix}/lib'
935 localedir='${datarootdir}/locale'
936 mandir='${datarootdir}/man'
938 ac_prev=
939 ac_dashdash=
940 for ac_option
942 # If the previous option needs an argument, assign it.
943 if test -n "$ac_prev"; then
944 eval $ac_prev=\$ac_option
945 ac_prev=
946 continue
949 case $ac_option in
950 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
951 *) ac_optarg=yes ;;
952 esac
954 # Accept the important Cygnus configure options, so we can diagnose typos.
956 case $ac_dashdash$ac_option in
958 ac_dashdash=yes ;;
960 -bindir | --bindir | --bindi | --bind | --bin | --bi)
961 ac_prev=bindir ;;
962 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
963 bindir=$ac_optarg ;;
965 -build | --build | --buil | --bui | --bu)
966 ac_prev=build_alias ;;
967 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
968 build_alias=$ac_optarg ;;
970 -cache-file | --cache-file | --cache-fil | --cache-fi \
971 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
972 ac_prev=cache_file ;;
973 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
974 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
975 cache_file=$ac_optarg ;;
977 --config-cache | -C)
978 cache_file=config.cache ;;
980 -datadir | --datadir | --datadi | --datad)
981 ac_prev=datadir ;;
982 -datadir=* | --datadir=* | --datadi=* | --datad=*)
983 datadir=$ac_optarg ;;
985 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
986 | --dataroo | --dataro | --datar)
987 ac_prev=datarootdir ;;
988 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
989 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
990 datarootdir=$ac_optarg ;;
992 -disable-* | --disable-*)
993 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
994 # Reject names that are not valid shell variable names.
995 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
996 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
997 { (exit 1); exit 1; }; }
998 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
999 eval enable_$ac_feature=no ;;
1001 -docdir | --docdir | --docdi | --doc | --do)
1002 ac_prev=docdir ;;
1003 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1004 docdir=$ac_optarg ;;
1006 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1007 ac_prev=dvidir ;;
1008 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1009 dvidir=$ac_optarg ;;
1011 -enable-* | --enable-*)
1012 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1013 # Reject names that are not valid shell variable names.
1014 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1015 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1016 { (exit 1); exit 1; }; }
1017 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
1018 eval enable_$ac_feature=\$ac_optarg ;;
1020 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1021 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1022 | --exec | --exe | --ex)
1023 ac_prev=exec_prefix ;;
1024 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1025 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1026 | --exec=* | --exe=* | --ex=*)
1027 exec_prefix=$ac_optarg ;;
1029 -gas | --gas | --ga | --g)
1030 # Obsolete; use --with-gas.
1031 with_gas=yes ;;
1033 -help | --help | --hel | --he | -h)
1034 ac_init_help=long ;;
1035 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1036 ac_init_help=recursive ;;
1037 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1038 ac_init_help=short ;;
1040 -host | --host | --hos | --ho)
1041 ac_prev=host_alias ;;
1042 -host=* | --host=* | --hos=* | --ho=*)
1043 host_alias=$ac_optarg ;;
1045 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1046 ac_prev=htmldir ;;
1047 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1048 | --ht=*)
1049 htmldir=$ac_optarg ;;
1051 -includedir | --includedir | --includedi | --included | --include \
1052 | --includ | --inclu | --incl | --inc)
1053 ac_prev=includedir ;;
1054 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1055 | --includ=* | --inclu=* | --incl=* | --inc=*)
1056 includedir=$ac_optarg ;;
1058 -infodir | --infodir | --infodi | --infod | --info | --inf)
1059 ac_prev=infodir ;;
1060 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1061 infodir=$ac_optarg ;;
1063 -libdir | --libdir | --libdi | --libd)
1064 ac_prev=libdir ;;
1065 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1066 libdir=$ac_optarg ;;
1068 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1069 | --libexe | --libex | --libe)
1070 ac_prev=libexecdir ;;
1071 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1072 | --libexe=* | --libex=* | --libe=*)
1073 libexecdir=$ac_optarg ;;
1075 -localedir | --localedir | --localedi | --localed | --locale)
1076 ac_prev=localedir ;;
1077 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1078 localedir=$ac_optarg ;;
1080 -localstatedir | --localstatedir | --localstatedi | --localstated \
1081 | --localstate | --localstat | --localsta | --localst | --locals)
1082 ac_prev=localstatedir ;;
1083 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1084 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1085 localstatedir=$ac_optarg ;;
1087 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1088 ac_prev=mandir ;;
1089 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1090 mandir=$ac_optarg ;;
1092 -nfp | --nfp | --nf)
1093 # Obsolete; use --without-fp.
1094 with_fp=no ;;
1096 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1097 | --no-cr | --no-c | -n)
1098 no_create=yes ;;
1100 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1101 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1102 no_recursion=yes ;;
1104 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1105 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1106 | --oldin | --oldi | --old | --ol | --o)
1107 ac_prev=oldincludedir ;;
1108 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1109 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1110 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1111 oldincludedir=$ac_optarg ;;
1113 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1114 ac_prev=prefix ;;
1115 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1116 prefix=$ac_optarg ;;
1118 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1119 | --program-pre | --program-pr | --program-p)
1120 ac_prev=program_prefix ;;
1121 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1122 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1123 program_prefix=$ac_optarg ;;
1125 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1126 | --program-suf | --program-su | --program-s)
1127 ac_prev=program_suffix ;;
1128 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1129 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1130 program_suffix=$ac_optarg ;;
1132 -program-transform-name | --program-transform-name \
1133 | --program-transform-nam | --program-transform-na \
1134 | --program-transform-n | --program-transform- \
1135 | --program-transform | --program-transfor \
1136 | --program-transfo | --program-transf \
1137 | --program-trans | --program-tran \
1138 | --progr-tra | --program-tr | --program-t)
1139 ac_prev=program_transform_name ;;
1140 -program-transform-name=* | --program-transform-name=* \
1141 | --program-transform-nam=* | --program-transform-na=* \
1142 | --program-transform-n=* | --program-transform-=* \
1143 | --program-transform=* | --program-transfor=* \
1144 | --program-transfo=* | --program-transf=* \
1145 | --program-trans=* | --program-tran=* \
1146 | --progr-tra=* | --program-tr=* | --program-t=*)
1147 program_transform_name=$ac_optarg ;;
1149 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1150 ac_prev=pdfdir ;;
1151 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1152 pdfdir=$ac_optarg ;;
1154 -psdir | --psdir | --psdi | --psd | --ps)
1155 ac_prev=psdir ;;
1156 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1157 psdir=$ac_optarg ;;
1159 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1160 | -silent | --silent | --silen | --sile | --sil)
1161 silent=yes ;;
1163 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1164 ac_prev=sbindir ;;
1165 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1166 | --sbi=* | --sb=*)
1167 sbindir=$ac_optarg ;;
1169 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1170 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1171 | --sharedst | --shareds | --shared | --share | --shar \
1172 | --sha | --sh)
1173 ac_prev=sharedstatedir ;;
1174 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1175 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1176 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1177 | --sha=* | --sh=*)
1178 sharedstatedir=$ac_optarg ;;
1180 -site | --site | --sit)
1181 ac_prev=site ;;
1182 -site=* | --site=* | --sit=*)
1183 site=$ac_optarg ;;
1185 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1186 ac_prev=srcdir ;;
1187 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1188 srcdir=$ac_optarg ;;
1190 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1191 | --syscon | --sysco | --sysc | --sys | --sy)
1192 ac_prev=sysconfdir ;;
1193 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1194 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1195 sysconfdir=$ac_optarg ;;
1197 -target | --target | --targe | --targ | --tar | --ta | --t)
1198 ac_prev=target_alias ;;
1199 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1200 target_alias=$ac_optarg ;;
1202 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1203 verbose=yes ;;
1205 -version | --version | --versio | --versi | --vers | -V)
1206 ac_init_version=: ;;
1208 -with-* | --with-*)
1209 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1210 # Reject names that are not valid shell variable names.
1211 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1212 { echo "$as_me: error: invalid package name: $ac_package" >&2
1213 { (exit 1); exit 1; }; }
1214 ac_package=`echo $ac_package| sed 's/-/_/g'`
1215 eval with_$ac_package=\$ac_optarg ;;
1217 -without-* | --without-*)
1218 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1219 # Reject names that are not valid shell variable names.
1220 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1221 { echo "$as_me: error: invalid package name: $ac_package" >&2
1222 { (exit 1); exit 1; }; }
1223 ac_package=`echo $ac_package | sed 's/-/_/g'`
1224 eval with_$ac_package=no ;;
1226 --x)
1227 # Obsolete; use --with-x.
1228 with_x=yes ;;
1230 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1231 | --x-incl | --x-inc | --x-in | --x-i)
1232 ac_prev=x_includes ;;
1233 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1234 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1235 x_includes=$ac_optarg ;;
1237 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1238 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1239 ac_prev=x_libraries ;;
1240 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1241 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1242 x_libraries=$ac_optarg ;;
1244 -*) { echo "$as_me: error: unrecognized option: $ac_option
1245 Try \`$0 --help' for more information." >&2
1246 { (exit 1); exit 1; }; }
1249 *=*)
1250 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1251 # Reject names that are not valid shell variable names.
1252 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1253 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1254 { (exit 1); exit 1; }; }
1255 eval $ac_envvar=\$ac_optarg
1256 export $ac_envvar ;;
1259 # FIXME: should be removed in autoconf 3.0.
1260 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1261 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1262 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1263 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1266 esac
1267 done
1269 if test -n "$ac_prev"; then
1270 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1271 { echo "$as_me: error: missing argument to $ac_option" >&2
1272 { (exit 1); exit 1; }; }
1275 # Be sure to have absolute directory names.
1276 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1277 datadir sysconfdir sharedstatedir localstatedir includedir \
1278 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1279 libdir localedir mandir
1281 eval ac_val=\$$ac_var
1282 case $ac_val in
1283 [\\/$]* | ?:[\\/]* ) continue;;
1284 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1285 esac
1286 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1287 { (exit 1); exit 1; }; }
1288 done
1290 # There might be people who depend on the old broken behavior: `$host'
1291 # used to hold the argument of --host etc.
1292 # FIXME: To remove some day.
1293 build=$build_alias
1294 host=$host_alias
1295 target=$target_alias
1297 # FIXME: To remove some day.
1298 if test "x$host_alias" != x; then
1299 if test "x$build_alias" = x; then
1300 cross_compiling=maybe
1301 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1302 If a cross compiler is detected then cross compile mode will be used." >&2
1303 elif test "x$build_alias" != "x$host_alias"; then
1304 cross_compiling=yes
1308 ac_tool_prefix=
1309 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1311 test "$silent" = yes && exec 6>/dev/null
1314 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1315 ac_ls_di=`ls -di .` &&
1316 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1317 { echo "$as_me: error: Working directory cannot be determined" >&2
1318 { (exit 1); exit 1; }; }
1319 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1320 { echo "$as_me: error: pwd does not report name of working directory" >&2
1321 { (exit 1); exit 1; }; }
1324 # Find the source files, if location was not specified.
1325 if test -z "$srcdir"; then
1326 ac_srcdir_defaulted=yes
1327 # Try the directory containing this script, then the parent directory.
1328 ac_confdir=`$as_dirname -- "$0" ||
1329 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1330 X"$0" : 'X\(//\)[^/]' \| \
1331 X"$0" : 'X\(//\)$' \| \
1332 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1333 echo X"$0" |
1334 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1335 s//\1/
1338 /^X\(\/\/\)[^/].*/{
1339 s//\1/
1342 /^X\(\/\/\)$/{
1343 s//\1/
1346 /^X\(\/\).*/{
1347 s//\1/
1350 s/.*/./; q'`
1351 srcdir=$ac_confdir
1352 if test ! -r "$srcdir/$ac_unique_file"; then
1353 srcdir=..
1355 else
1356 ac_srcdir_defaulted=no
1358 if test ! -r "$srcdir/$ac_unique_file"; then
1359 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1360 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1361 { (exit 1); exit 1; }; }
1363 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1364 ac_abs_confdir=`(
1365 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1366 { (exit 1); exit 1; }; }
1367 pwd)`
1368 # When building in place, set srcdir=.
1369 if test "$ac_abs_confdir" = "$ac_pwd"; then
1370 srcdir=.
1372 # Remove unnecessary trailing slashes from srcdir.
1373 # Double slashes in file names in object file debugging info
1374 # mess up M-x gdb in Emacs.
1375 case $srcdir in
1376 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1377 esac
1378 for ac_var in $ac_precious_vars; do
1379 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1380 eval ac_env_${ac_var}_value=\$${ac_var}
1381 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1382 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1383 done
1386 # Report the --help message.
1388 if test "$ac_init_help" = "long"; then
1389 # Omit some internal or obsolete options to make the list less imposing.
1390 # This message is too long to be a string in the A/UX 3.1 sh.
1391 cat <<_ACEOF
1392 \`configure' configures LLVM-TEST 2.8svn to adapt to many kinds of systems.
1394 Usage: $0 [OPTION]... [VAR=VALUE]...
1396 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1397 VAR=VALUE. See below for descriptions of some of the useful variables.
1399 Defaults for the options are specified in brackets.
1401 Configuration:
1402 -h, --help display this help and exit
1403 --help=short display options specific to this package
1404 --help=recursive display the short help of all the included packages
1405 -V, --version display version information and exit
1406 -q, --quiet, --silent do not print \`checking...' messages
1407 --cache-file=FILE cache test results in FILE [disabled]
1408 -C, --config-cache alias for \`--cache-file=config.cache'
1409 -n, --no-create do not create output files
1410 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1412 Installation directories:
1413 --prefix=PREFIX install architecture-independent files in PREFIX
1414 [$ac_default_prefix]
1415 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1416 [PREFIX]
1418 By default, \`make install' will install all the files in
1419 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1420 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1421 for instance \`--prefix=\$HOME'.
1423 For better control, use the options below.
1425 Fine tuning of the installation directories:
1426 --bindir=DIR user executables [EPREFIX/bin]
1427 --sbindir=DIR system admin executables [EPREFIX/sbin]
1428 --libexecdir=DIR program executables [EPREFIX/libexec]
1429 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1430 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1431 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1432 --libdir=DIR object code libraries [EPREFIX/lib]
1433 --includedir=DIR C header files [PREFIX/include]
1434 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1435 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1436 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1437 --infodir=DIR info documentation [DATAROOTDIR/info]
1438 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1439 --mandir=DIR man documentation [DATAROOTDIR/man]
1440 --docdir=DIR documentation root [DATAROOTDIR/doc/-llvm-test-]
1441 --htmldir=DIR html documentation [DOCDIR]
1442 --dvidir=DIR dvi documentation [DOCDIR]
1443 --pdfdir=DIR pdf documentation [DOCDIR]
1444 --psdir=DIR ps documentation [DOCDIR]
1445 _ACEOF
1447 cat <<\_ACEOF
1449 System types:
1450 --build=BUILD configure for building on BUILD [guessed]
1451 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1452 --target=TARGET configure for building compilers for TARGET [HOST]
1453 _ACEOF
1456 if test -n "$ac_init_help"; then
1457 case $ac_init_help in
1458 short | recursive ) echo "Configuration of LLVM-TEST 2.8svn:";;
1459 esac
1460 cat <<\_ACEOF
1462 Optional Features:
1463 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1464 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1465 --enable-llc_diffs Enable LLC Diffs when testing (default is YES)
1466 --enable-shared[=PKGS] build shared libraries
1467 [default=yes]
1468 --enable-static[=PKGS] build static libraries
1469 [default=yes]
1470 --enable-fast-install[=PKGS]
1471 optimize for fast installation
1472 [default=yes]
1473 --disable-libtool-lock avoid locking (might break parallel builds)
1475 Optional Packages:
1476 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1477 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1478 --with-llvmsrc=DIR Location of LLVM Source Code
1479 --with-llvmobj=DIR Location of LLVM Object Code
1480 --with-externals=DIR Location of External Test code
1481 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1482 --with-pic try to use only PIC/non-PIC objects [default=use
1483 both]
1484 --with-tags[=TAGS] include additional configurations [automatic]
1485 --with-f2c=DIR Specify that the f2c install prefix is DIR
1486 --with-f2c-bin=DIR Specify that the f2c binary is in DIR
1487 --with-f2c-lib=DIR Specify that f2c libraries are in DIR
1488 --with-f2c-inc=DIR Specify that the f2c includes are in DIR
1489 --with-nag-fortran=DIR Specify that the nag-fortran install prefix is DIR
1490 --with-nag-fortran-bin=DIR
1491 Specify that the nag-fortran binary is in DIR
1492 --with-nag-fortran-lib=DIR
1493 Specify that nag-fortran libraries are in DIR
1494 --with-nag-fortran-inc=DIR
1495 Specify that the nag-fortran includes are in DIR
1497 Some influential environment variables:
1498 CC C compiler command
1499 CFLAGS C compiler flags
1500 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1501 nonstandard directory <lib dir>
1502 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1503 you have headers in a nonstandard directory <include dir>
1504 CPP C preprocessor
1505 CXX C++ compiler command
1506 CXXFLAGS C++ compiler flags
1507 CXXCPP C++ preprocessor
1508 F77 Fortran 77 compiler command
1509 FFLAGS Fortran 77 compiler flags
1511 Use these variables to override the choices made by `configure' or to help
1512 it to find libraries and programs with nonstandard names/locations.
1514 Report bugs to <llvmbugs@cs.uiuc.edu>.
1515 _ACEOF
1516 ac_status=$?
1519 if test "$ac_init_help" = "recursive"; then
1520 # If there are subdirs, report their specific --help.
1521 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1522 test -d "$ac_dir" || continue
1523 ac_builddir=.
1525 case "$ac_dir" in
1526 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1528 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1529 # A ".." for each directory in $ac_dir_suffix.
1530 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1531 case $ac_top_builddir_sub in
1532 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1533 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1534 esac ;;
1535 esac
1536 ac_abs_top_builddir=$ac_pwd
1537 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1538 # for backward compatibility:
1539 ac_top_builddir=$ac_top_build_prefix
1541 case $srcdir in
1542 .) # We are building in place.
1543 ac_srcdir=.
1544 ac_top_srcdir=$ac_top_builddir_sub
1545 ac_abs_top_srcdir=$ac_pwd ;;
1546 [\\/]* | ?:[\\/]* ) # Absolute name.
1547 ac_srcdir=$srcdir$ac_dir_suffix;
1548 ac_top_srcdir=$srcdir
1549 ac_abs_top_srcdir=$srcdir ;;
1550 *) # Relative name.
1551 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1552 ac_top_srcdir=$ac_top_build_prefix$srcdir
1553 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1554 esac
1555 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1557 cd "$ac_dir" || { ac_status=$?; continue; }
1558 # Check for guested configure.
1559 if test -f "$ac_srcdir/configure.gnu"; then
1560 echo &&
1561 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1562 elif test -f "$ac_srcdir/configure"; then
1563 echo &&
1564 $SHELL "$ac_srcdir/configure" --help=recursive
1565 else
1566 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1567 fi || ac_status=$?
1568 cd "$ac_pwd" || { ac_status=$?; break; }
1569 done
1572 test -n "$ac_init_help" && exit $ac_status
1573 if $ac_init_version; then
1574 cat <<\_ACEOF
1575 LLVM-TEST configure 2.8svn
1576 generated by GNU Autoconf 2.60
1578 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1579 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1580 This configure script is free software; the Free Software Foundation
1581 gives unlimited permission to copy, distribute and modify it.
1582 _ACEOF
1583 exit
1585 cat >config.log <<_ACEOF
1586 This file contains any messages produced by compilers while
1587 running configure, to aid debugging if configure makes a mistake.
1589 It was created by LLVM-TEST $as_me 2.8svn, which was
1590 generated by GNU Autoconf 2.60. Invocation command line was
1592 $ $0 $@
1594 _ACEOF
1595 exec 5>>config.log
1597 cat <<_ASUNAME
1598 ## --------- ##
1599 ## Platform. ##
1600 ## --------- ##
1602 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1603 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1604 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1605 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1606 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1608 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1609 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1611 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1612 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1613 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1614 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1615 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1616 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1617 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1619 _ASUNAME
1621 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1622 for as_dir in $PATH
1624 IFS=$as_save_IFS
1625 test -z "$as_dir" && as_dir=.
1626 echo "PATH: $as_dir"
1627 done
1628 IFS=$as_save_IFS
1630 } >&5
1632 cat >&5 <<_ACEOF
1635 ## ----------- ##
1636 ## Core tests. ##
1637 ## ----------- ##
1639 _ACEOF
1642 # Keep a trace of the command line.
1643 # Strip out --no-create and --no-recursion so they do not pile up.
1644 # Strip out --silent because we don't want to record it for future runs.
1645 # Also quote any args containing shell meta-characters.
1646 # Make two passes to allow for proper duplicate-argument suppression.
1647 ac_configure_args=
1648 ac_configure_args0=
1649 ac_configure_args1=
1650 ac_must_keep_next=false
1651 for ac_pass in 1 2
1653 for ac_arg
1655 case $ac_arg in
1656 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1657 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1658 | -silent | --silent | --silen | --sile | --sil)
1659 continue ;;
1660 *\'*)
1661 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1662 esac
1663 case $ac_pass in
1664 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1666 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1667 if test $ac_must_keep_next = true; then
1668 ac_must_keep_next=false # Got value, back to normal.
1669 else
1670 case $ac_arg in
1671 *=* | --config-cache | -C | -disable-* | --disable-* \
1672 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1673 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1674 | -with-* | --with-* | -without-* | --without-* | --x)
1675 case "$ac_configure_args0 " in
1676 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1677 esac
1679 -* ) ac_must_keep_next=true ;;
1680 esac
1682 ac_configure_args="$ac_configure_args '$ac_arg'"
1684 esac
1685 done
1686 done
1687 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1688 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1690 # When interrupted or exit'd, cleanup temporary files, and complete
1691 # config.log. We remove comments because anyway the quotes in there
1692 # would cause problems or look ugly.
1693 # WARNING: Use '\'' to represent an apostrophe within the trap.
1694 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1695 trap 'exit_status=$?
1696 # Save into config.log some information that might help in debugging.
1698 echo
1700 cat <<\_ASBOX
1701 ## ---------------- ##
1702 ## Cache variables. ##
1703 ## ---------------- ##
1704 _ASBOX
1705 echo
1706 # The following way of writing the cache mishandles newlines in values,
1708 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1709 eval ac_val=\$$ac_var
1710 case $ac_val in #(
1711 *${as_nl}*)
1712 case $ac_var in #(
1713 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1714 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1715 esac
1716 case $ac_var in #(
1717 _ | IFS | as_nl) ;; #(
1718 *) $as_unset $ac_var ;;
1719 esac ;;
1720 esac
1721 done
1722 (set) 2>&1 |
1723 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1724 *${as_nl}ac_space=\ *)
1725 sed -n \
1726 "s/'\''/'\''\\\\'\'''\''/g;
1727 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1728 ;; #(
1730 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1732 esac |
1733 sort
1735 echo
1737 cat <<\_ASBOX
1738 ## ----------------- ##
1739 ## Output variables. ##
1740 ## ----------------- ##
1741 _ASBOX
1742 echo
1743 for ac_var in $ac_subst_vars
1745 eval ac_val=\$$ac_var
1746 case $ac_val in
1747 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1748 esac
1749 echo "$ac_var='\''$ac_val'\''"
1750 done | sort
1751 echo
1753 if test -n "$ac_subst_files"; then
1754 cat <<\_ASBOX
1755 ## ------------------- ##
1756 ## File substitutions. ##
1757 ## ------------------- ##
1758 _ASBOX
1759 echo
1760 for ac_var in $ac_subst_files
1762 eval ac_val=\$$ac_var
1763 case $ac_val in
1764 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1765 esac
1766 echo "$ac_var='\''$ac_val'\''"
1767 done | sort
1768 echo
1771 if test -s confdefs.h; then
1772 cat <<\_ASBOX
1773 ## ----------- ##
1774 ## confdefs.h. ##
1775 ## ----------- ##
1776 _ASBOX
1777 echo
1778 cat confdefs.h
1779 echo
1781 test "$ac_signal" != 0 &&
1782 echo "$as_me: caught signal $ac_signal"
1783 echo "$as_me: exit $exit_status"
1784 } >&5
1785 rm -f core *.core core.conftest.* &&
1786 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1787 exit $exit_status
1789 for ac_signal in 1 2 13 15; do
1790 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1791 done
1792 ac_signal=0
1794 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1795 rm -f -r conftest* confdefs.h
1797 # Predefined preprocessor variables.
1799 cat >>confdefs.h <<_ACEOF
1800 #define PACKAGE_NAME "$PACKAGE_NAME"
1801 _ACEOF
1804 cat >>confdefs.h <<_ACEOF
1805 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1806 _ACEOF
1809 cat >>confdefs.h <<_ACEOF
1810 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1811 _ACEOF
1814 cat >>confdefs.h <<_ACEOF
1815 #define PACKAGE_STRING "$PACKAGE_STRING"
1816 _ACEOF
1819 cat >>confdefs.h <<_ACEOF
1820 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1821 _ACEOF
1824 # Let the site file select an alternate cache file if it wants to.
1825 # Prefer explicitly selected file to automatically selected ones.
1826 if test -n "$CONFIG_SITE"; then
1827 set x "$CONFIG_SITE"
1828 elif test "x$prefix" != xNONE; then
1829 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1830 else
1831 set x "$ac_default_prefix/share/config.site" \
1832 "$ac_default_prefix/etc/config.site"
1834 shift
1835 for ac_site_file
1837 if test -r "$ac_site_file"; then
1838 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1839 echo "$as_me: loading site script $ac_site_file" >&6;}
1840 sed 's/^/| /' "$ac_site_file" >&5
1841 . "$ac_site_file"
1843 done
1845 if test -r "$cache_file"; then
1846 # Some versions of bash will fail to source /dev/null (special
1847 # files actually), so we avoid doing that.
1848 if test -f "$cache_file"; then
1849 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1850 echo "$as_me: loading cache $cache_file" >&6;}
1851 case $cache_file in
1852 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1853 *) . "./$cache_file";;
1854 esac
1856 else
1857 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1858 echo "$as_me: creating cache $cache_file" >&6;}
1859 >$cache_file
1862 # Check that the precious variables saved in the cache have kept the same
1863 # value.
1864 ac_cache_corrupted=false
1865 for ac_var in $ac_precious_vars; do
1866 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1867 eval ac_new_set=\$ac_env_${ac_var}_set
1868 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1869 eval ac_new_val=\$ac_env_${ac_var}_value
1870 case $ac_old_set,$ac_new_set in
1871 set,)
1872 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1873 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1874 ac_cache_corrupted=: ;;
1875 ,set)
1876 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1877 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1878 ac_cache_corrupted=: ;;
1879 ,);;
1881 if test "x$ac_old_val" != "x$ac_new_val"; then
1882 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1883 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1884 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1885 echo "$as_me: former value: $ac_old_val" >&2;}
1886 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1887 echo "$as_me: current value: $ac_new_val" >&2;}
1888 ac_cache_corrupted=:
1889 fi;;
1890 esac
1891 # Pass precious variables to config.status.
1892 if test "$ac_new_set" = set; then
1893 case $ac_new_val in
1894 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1895 *) ac_arg=$ac_var=$ac_new_val ;;
1896 esac
1897 case " $ac_configure_args " in
1898 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1899 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1900 esac
1902 done
1903 if $ac_cache_corrupted; then
1904 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1905 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1906 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1907 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1908 { (exit 1); exit 1; }; }
1935 ac_ext=c
1936 ac_cpp='$CPP $CPPFLAGS'
1937 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1938 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1939 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1943 ac_aux_dir=
1944 for ac_dir in autoconf "$srcdir"/autoconf; do
1945 if test -f "$ac_dir/install-sh"; then
1946 ac_aux_dir=$ac_dir
1947 ac_install_sh="$ac_aux_dir/install-sh -c"
1948 break
1949 elif test -f "$ac_dir/install.sh"; then
1950 ac_aux_dir=$ac_dir
1951 ac_install_sh="$ac_aux_dir/install.sh -c"
1952 break
1953 elif test -f "$ac_dir/shtool"; then
1954 ac_aux_dir=$ac_dir
1955 ac_install_sh="$ac_aux_dir/shtool install -c"
1956 break
1958 done
1959 if test -z "$ac_aux_dir"; then
1960 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
1961 echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
1962 { (exit 1); exit 1; }; }
1965 # These three variables are undocumented and unsupported,
1966 # and are intended to be withdrawn in a future Autoconf release.
1967 # They can cause serious problems if a builder's source tree is in a directory
1968 # whose full name contains unusual characters.
1969 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1970 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1971 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1977 ac_config_commands="$ac_config_commands setup"
1979 ac_config_files="$ac_config_files Makefile.config"
1981 ac_config_commands="$ac_config_commands Makefile"
1984 ac_config_commands="$ac_config_commands Makefile.common"
1987 ac_config_commands="$ac_config_commands Makefile.nagfortran"
1990 ac_config_commands="$ac_config_commands Makefile.f2c"
1993 ac_config_commands="$ac_config_commands Makefile.programs"
1996 ac_config_commands="$ac_config_commands Makefile.tests"
1999 ac_config_commands="$ac_config_commands TEST.aa.Makefile"
2002 ac_config_commands="$ac_config_commands TEST.aa.report"
2005 ac_config_commands="$ac_config_commands TEST.example.Makefile"
2008 ac_config_commands="$ac_config_commands TEST.nightly.Makefile"
2011 ac_config_commands="$ac_config_commands TEST.buildrepo.Makefile"
2014 ac_config_commands="$ac_config_commands TEST.jit.Makefile"
2017 ac_config_commands="$ac_config_commands TEST.nightly.report"
2020 ac_config_commands="$ac_config_commands TEST.jit.report"
2023 ac_config_commands="$ac_config_commands TEST.typesafe.Makefile"
2026 ac_config_commands="$ac_config_commands TEST.vtl.Makefile"
2029 ac_config_commands="$ac_config_commands External/Makefile"
2032 ac_config_commands="$ac_config_commands External/Makefile.external"
2035 ac_config_commands="$ac_config_commands External/Povray/Makefile"
2038 ac_config_commands="$ac_config_commands External/SPEC/Makefile"
2041 ac_config_commands="$ac_config_commands External/SPEC/Makefile.spec"
2044 ac_config_commands="$ac_config_commands External/SPEC/Makefile.spec.config"
2047 ac_config_commands="$ac_config_commands External/SPEC/Makefile.spec2006"
2050 ac_config_commands="$ac_config_commands External/SPEC/Makefile.spec2000"
2053 ac_config_commands="$ac_config_commands External/SPEC/Makefile.spec95"
2056 ac_config_commands="$ac_config_commands External/SPEC/CFP2006/Makefile"
2059 ac_config_commands="$ac_config_commands External/SPEC/CINT2006/Makefile"
2062 ac_config_commands="$ac_config_commands External/SPEC/CFP2000/Makefile"
2065 ac_config_commands="$ac_config_commands External/SPEC/CINT2000/Makefile"
2068 ac_config_commands="$ac_config_commands External/SPEC/CFP95/Makefile"
2071 ac_config_commands="$ac_config_commands External/SPEC/CINT95/Makefile"
2074 ac_config_commands="$ac_config_commands External/skidmarks10/Makefile"
2077 ac_config_commands="$ac_config_commands MultiSource/Makefile"
2080 ac_config_commands="$ac_config_commands MultiSource/Makefile.multisrc"
2083 ac_config_commands="$ac_config_commands SingleSource/Makefile"
2086 ac_config_commands="$ac_config_commands SingleSource/Makefile.singlesrc"
2089 ac_config_commands="$ac_config_commands tools/Makefile"
2094 # Make sure we can run config.sub.
2095 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2096 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2097 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2098 { (exit 1); exit 1; }; }
2100 { echo "$as_me:$LINENO: checking build system type" >&5
2101 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2102 if test "${ac_cv_build+set}" = set; then
2103 echo $ECHO_N "(cached) $ECHO_C" >&6
2104 else
2105 ac_build_alias=$build_alias
2106 test "x$ac_build_alias" = x &&
2107 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2108 test "x$ac_build_alias" = x &&
2109 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2110 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2111 { (exit 1); exit 1; }; }
2112 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2113 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2114 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2115 { (exit 1); exit 1; }; }
2118 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2119 echo "${ECHO_T}$ac_cv_build" >&6; }
2120 case $ac_cv_build in
2121 *-*-*) ;;
2122 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2123 echo "$as_me: error: invalid value of canonical build" >&2;}
2124 { (exit 1); exit 1; }; };;
2125 esac
2126 build=$ac_cv_build
2127 ac_save_IFS=$IFS; IFS='-'
2128 set x $ac_cv_build
2129 shift
2130 build_cpu=$1
2131 build_vendor=$2
2132 shift; shift
2133 # Remember, the first character of IFS is used to create $*,
2134 # except with old shells:
2135 build_os=$*
2136 IFS=$ac_save_IFS
2137 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2140 { echo "$as_me:$LINENO: checking host system type" >&5
2141 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2142 if test "${ac_cv_host+set}" = set; then
2143 echo $ECHO_N "(cached) $ECHO_C" >&6
2144 else
2145 if test "x$host_alias" = x; then
2146 ac_cv_host=$ac_cv_build
2147 else
2148 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2149 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2150 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2151 { (exit 1); exit 1; }; }
2155 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2156 echo "${ECHO_T}$ac_cv_host" >&6; }
2157 case $ac_cv_host in
2158 *-*-*) ;;
2159 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2160 echo "$as_me: error: invalid value of canonical host" >&2;}
2161 { (exit 1); exit 1; }; };;
2162 esac
2163 host=$ac_cv_host
2164 ac_save_IFS=$IFS; IFS='-'
2165 set x $ac_cv_host
2166 shift
2167 host_cpu=$1
2168 host_vendor=$2
2169 shift; shift
2170 # Remember, the first character of IFS is used to create $*,
2171 # except with old shells:
2172 host_os=$*
2173 IFS=$ac_save_IFS
2174 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2177 { echo "$as_me:$LINENO: checking target system type" >&5
2178 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
2179 if test "${ac_cv_target+set}" = set; then
2180 echo $ECHO_N "(cached) $ECHO_C" >&6
2181 else
2182 if test "x$target_alias" = x; then
2183 ac_cv_target=$ac_cv_host
2184 else
2185 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2186 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2187 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2188 { (exit 1); exit 1; }; }
2192 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2193 echo "${ECHO_T}$ac_cv_target" >&6; }
2194 case $ac_cv_target in
2195 *-*-*) ;;
2196 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2197 echo "$as_me: error: invalid value of canonical target" >&2;}
2198 { (exit 1); exit 1; }; };;
2199 esac
2200 target=$ac_cv_target
2201 ac_save_IFS=$IFS; IFS='-'
2202 set x $ac_cv_target
2203 shift
2204 target_cpu=$1
2205 target_vendor=$2
2206 shift; shift
2207 # Remember, the first character of IFS is used to create $*,
2208 # except with old shells:
2209 target_os=$*
2210 IFS=$ac_save_IFS
2211 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2214 # The aliases save the names the user supplied, while $host etc.
2215 # will get canonicalized.
2216 test -n "$target_alias" &&
2217 test "$program_prefix$program_suffix$program_transform_name" = \
2218 NONENONEs,x,x, &&
2219 program_prefix=${target_alias}-
2221 { echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5
2222 echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; }
2223 if test "${llvm_cv_target_os_type+set}" = set; then
2224 echo $ECHO_N "(cached) $ECHO_C" >&6
2225 else
2226 case $target in
2227 *-*-aix*)
2228 llvm_cv_target_os_type="AIX" ;;
2229 *-*-irix*)
2230 llvm_cv_target_os_type="IRIX" ;;
2231 *-*-cygwin*)
2232 llvm_cv_target_os_type="Cygwin" ;;
2233 *-*-darwin*)
2234 llvm_cv_target_os_type="Darwin" ;;
2235 *-*-minix*)
2236 llvm_cv_target_os_type="Minix" ;;
2237 *-*-freebsd*)
2238 llvm_cv_target_os_type="FreeBSD" ;;
2239 *-*-openbsd*)
2240 llvm_cv_target_os_type="OpenBSD" ;;
2241 *-*-netbsd*)
2242 llvm_cv_target_os_type="NetBSD" ;;
2243 *-*-dragonfly*)
2244 llvm_cv_target_os_type="DragonFly" ;;
2245 *-*-hpux*)
2246 llvm_cv_target_os_type="HP-UX" ;;
2247 *-*-interix*)
2248 llvm_cv_target_os_type="Interix" ;;
2249 *-*-linux*)
2250 llvm_cv_target_os_type="Linux" ;;
2251 *-*-solaris*)
2252 llvm_cv_target_os_type="SunOS" ;;
2253 *-*-auroraux*)
2254 llvm_cv_target_os_type="AuroraUX" ;;
2255 *-*-win32*)
2256 llvm_cv_target_os_type="Win32" ;;
2257 *-*-mingw*)
2258 llvm_cv_target_os_type="MingW" ;;
2259 *-*-haiku*)
2260 llvm_cv_target_os_type="Haiku" ;;
2261 *-unknown-eabi*)
2262 llvm_cv_target_os_type="Freestanding" ;;
2264 llvm_cv_target_os_type="Unknown" ;;
2265 esac
2267 { echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5
2268 echo "${ECHO_T}$llvm_cv_target_os_type" >&6; }
2270 TARGET_OS=$llvm_cv_target_os_type
2273 { echo "$as_me:$LINENO: checking target architecture" >&5
2274 echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
2275 if test "${llvm_cv_target_arch+set}" = set; then
2276 echo $ECHO_N "(cached) $ECHO_C" >&6
2277 else
2278 case $target in
2279 i?86-*) llvm_cv_target_arch="x86" ;;
2280 amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;;
2281 sparc*-*) llvm_cv_target_arch="Sparc" ;;
2282 powerpc*-*) llvm_cv_target_arch="PowerPC" ;;
2283 alpha*-*) llvm_cv_target_arch="Alpha" ;;
2284 arm*-*) llvm_cv_target_arch="ARM" ;;
2285 mips-*) llvm_cv_target_arch="Mips" ;;
2286 xcore-*) llvm_cv_target_arch="XCore" ;;
2287 msp430-*) llvm_cv_target_arch="MSP430" ;;
2288 s390x-*) llvm_cv_target_arch="SystemZ" ;;
2289 bfin-*) llvm_cv_target_arch="Blackfin" ;;
2290 mblaze-*) llvm_cv_target_arch="MBlaze" ;;
2291 ptx-*) llvm_cv_target_arch="PTX" ;;
2292 *) llvm_cv_target_arch="Unknown" ;;
2293 esac
2295 { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
2296 echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
2297 if test "$llvm_cv_target_arch" = "Unknown" ; then
2298 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
2299 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
2302 # Determine the LLVM native architecture for the target
2303 case "$llvm_cv_target_arch" in
2304 x86) LLVM_NATIVE_ARCH="X86" ;;
2305 x86_64) LLVM_NATIVE_ARCH="X86" ;;
2306 *) LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
2307 esac
2309 ARCH=$llvm_cv_target_arch
2312 ac_ext=c
2313 ac_cpp='$CPP $CPPFLAGS'
2314 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2315 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2316 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2317 if test -n "$ac_tool_prefix"; then
2318 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2319 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2320 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2321 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2322 if test "${ac_cv_prog_CC+set}" = set; then
2323 echo $ECHO_N "(cached) $ECHO_C" >&6
2324 else
2325 if test -n "$CC"; then
2326 ac_cv_prog_CC="$CC" # Let the user override the test.
2327 else
2328 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2329 for as_dir in $PATH
2331 IFS=$as_save_IFS
2332 test -z "$as_dir" && as_dir=.
2333 for ac_exec_ext in '' $ac_executable_extensions; do
2334 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2335 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2336 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2337 break 2
2339 done
2340 done
2341 IFS=$as_save_IFS
2345 CC=$ac_cv_prog_CC
2346 if test -n "$CC"; then
2347 { echo "$as_me:$LINENO: result: $CC" >&5
2348 echo "${ECHO_T}$CC" >&6; }
2349 else
2350 { echo "$as_me:$LINENO: result: no" >&5
2351 echo "${ECHO_T}no" >&6; }
2356 if test -z "$ac_cv_prog_CC"; then
2357 ac_ct_CC=$CC
2358 # Extract the first word of "gcc", so it can be a program name with args.
2359 set dummy gcc; ac_word=$2
2360 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2361 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2362 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2363 echo $ECHO_N "(cached) $ECHO_C" >&6
2364 else
2365 if test -n "$ac_ct_CC"; then
2366 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2367 else
2368 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2369 for as_dir in $PATH
2371 IFS=$as_save_IFS
2372 test -z "$as_dir" && as_dir=.
2373 for ac_exec_ext in '' $ac_executable_extensions; do
2374 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2375 ac_cv_prog_ac_ct_CC="gcc"
2376 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2377 break 2
2379 done
2380 done
2381 IFS=$as_save_IFS
2385 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2386 if test -n "$ac_ct_CC"; then
2387 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2388 echo "${ECHO_T}$ac_ct_CC" >&6; }
2389 else
2390 { echo "$as_me:$LINENO: result: no" >&5
2391 echo "${ECHO_T}no" >&6; }
2394 if test "x$ac_ct_CC" = x; then
2395 CC=""
2396 else
2397 case $cross_compiling:$ac_tool_warned in
2398 yes:)
2399 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2400 whose name does not start with the host triplet. If you think this
2401 configuration is useful to you, please write to autoconf@gnu.org." >&5
2402 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2403 whose name does not start with the host triplet. If you think this
2404 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2405 ac_tool_warned=yes ;;
2406 esac
2407 CC=$ac_ct_CC
2409 else
2410 CC="$ac_cv_prog_CC"
2413 if test -z "$CC"; then
2414 if test -n "$ac_tool_prefix"; then
2415 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2416 set dummy ${ac_tool_prefix}cc; ac_word=$2
2417 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2418 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2419 if test "${ac_cv_prog_CC+set}" = set; then
2420 echo $ECHO_N "(cached) $ECHO_C" >&6
2421 else
2422 if test -n "$CC"; then
2423 ac_cv_prog_CC="$CC" # Let the user override the test.
2424 else
2425 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2426 for as_dir in $PATH
2428 IFS=$as_save_IFS
2429 test -z "$as_dir" && as_dir=.
2430 for ac_exec_ext in '' $ac_executable_extensions; do
2431 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2432 ac_cv_prog_CC="${ac_tool_prefix}cc"
2433 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2434 break 2
2436 done
2437 done
2438 IFS=$as_save_IFS
2442 CC=$ac_cv_prog_CC
2443 if test -n "$CC"; then
2444 { echo "$as_me:$LINENO: result: $CC" >&5
2445 echo "${ECHO_T}$CC" >&6; }
2446 else
2447 { echo "$as_me:$LINENO: result: no" >&5
2448 echo "${ECHO_T}no" >&6; }
2454 if test -z "$CC"; then
2455 # Extract the first word of "cc", so it can be a program name with args.
2456 set dummy cc; ac_word=$2
2457 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2458 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2459 if test "${ac_cv_prog_CC+set}" = set; then
2460 echo $ECHO_N "(cached) $ECHO_C" >&6
2461 else
2462 if test -n "$CC"; then
2463 ac_cv_prog_CC="$CC" # Let the user override the test.
2464 else
2465 ac_prog_rejected=no
2466 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2467 for as_dir in $PATH
2469 IFS=$as_save_IFS
2470 test -z "$as_dir" && as_dir=.
2471 for ac_exec_ext in '' $ac_executable_extensions; do
2472 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2473 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2474 ac_prog_rejected=yes
2475 continue
2477 ac_cv_prog_CC="cc"
2478 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2479 break 2
2481 done
2482 done
2483 IFS=$as_save_IFS
2485 if test $ac_prog_rejected = yes; then
2486 # We found a bogon in the path, so make sure we never use it.
2487 set dummy $ac_cv_prog_CC
2488 shift
2489 if test $# != 0; then
2490 # We chose a different compiler from the bogus one.
2491 # However, it has the same basename, so the bogon will be chosen
2492 # first if we set CC to just the basename; use the full file name.
2493 shift
2494 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2499 CC=$ac_cv_prog_CC
2500 if test -n "$CC"; then
2501 { echo "$as_me:$LINENO: result: $CC" >&5
2502 echo "${ECHO_T}$CC" >&6; }
2503 else
2504 { echo "$as_me:$LINENO: result: no" >&5
2505 echo "${ECHO_T}no" >&6; }
2510 if test -z "$CC"; then
2511 if test -n "$ac_tool_prefix"; then
2512 for ac_prog in cl.exe
2514 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2515 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2516 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2517 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2518 if test "${ac_cv_prog_CC+set}" = set; then
2519 echo $ECHO_N "(cached) $ECHO_C" >&6
2520 else
2521 if test -n "$CC"; then
2522 ac_cv_prog_CC="$CC" # Let the user override the test.
2523 else
2524 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2525 for as_dir in $PATH
2527 IFS=$as_save_IFS
2528 test -z "$as_dir" && as_dir=.
2529 for ac_exec_ext in '' $ac_executable_extensions; do
2530 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2531 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2532 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2533 break 2
2535 done
2536 done
2537 IFS=$as_save_IFS
2541 CC=$ac_cv_prog_CC
2542 if test -n "$CC"; then
2543 { echo "$as_me:$LINENO: result: $CC" >&5
2544 echo "${ECHO_T}$CC" >&6; }
2545 else
2546 { echo "$as_me:$LINENO: result: no" >&5
2547 echo "${ECHO_T}no" >&6; }
2551 test -n "$CC" && break
2552 done
2554 if test -z "$CC"; then
2555 ac_ct_CC=$CC
2556 for ac_prog in cl.exe
2558 # Extract the first word of "$ac_prog", so it can be a program name with args.
2559 set dummy $ac_prog; ac_word=$2
2560 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2561 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2562 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2563 echo $ECHO_N "(cached) $ECHO_C" >&6
2564 else
2565 if test -n "$ac_ct_CC"; then
2566 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2567 else
2568 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2569 for as_dir in $PATH
2571 IFS=$as_save_IFS
2572 test -z "$as_dir" && as_dir=.
2573 for ac_exec_ext in '' $ac_executable_extensions; do
2574 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2575 ac_cv_prog_ac_ct_CC="$ac_prog"
2576 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2577 break 2
2579 done
2580 done
2581 IFS=$as_save_IFS
2585 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2586 if test -n "$ac_ct_CC"; then
2587 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2588 echo "${ECHO_T}$ac_ct_CC" >&6; }
2589 else
2590 { echo "$as_me:$LINENO: result: no" >&5
2591 echo "${ECHO_T}no" >&6; }
2595 test -n "$ac_ct_CC" && break
2596 done
2598 if test "x$ac_ct_CC" = x; then
2599 CC=""
2600 else
2601 case $cross_compiling:$ac_tool_warned in
2602 yes:)
2603 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2604 whose name does not start with the host triplet. If you think this
2605 configuration is useful to you, please write to autoconf@gnu.org." >&5
2606 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2607 whose name does not start with the host triplet. If you think this
2608 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2609 ac_tool_warned=yes ;;
2610 esac
2611 CC=$ac_ct_CC
2618 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2619 See \`config.log' for more details." >&5
2620 echo "$as_me: error: no acceptable C compiler found in \$PATH
2621 See \`config.log' for more details." >&2;}
2622 { (exit 1); exit 1; }; }
2624 # Provide some information about the compiler.
2625 echo "$as_me:$LINENO: checking for C compiler version" >&5
2626 ac_compiler=`set X $ac_compile; echo $2`
2627 { (ac_try="$ac_compiler --version >&5"
2628 case "(($ac_try" in
2629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2630 *) ac_try_echo=$ac_try;;
2631 esac
2632 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2633 (eval "$ac_compiler --version >&5") 2>&5
2634 ac_status=$?
2635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2636 (exit $ac_status); }
2637 { (ac_try="$ac_compiler -v >&5"
2638 case "(($ac_try" in
2639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2640 *) ac_try_echo=$ac_try;;
2641 esac
2642 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2643 (eval "$ac_compiler -v >&5") 2>&5
2644 ac_status=$?
2645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2646 (exit $ac_status); }
2647 { (ac_try="$ac_compiler -V >&5"
2648 case "(($ac_try" in
2649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2650 *) ac_try_echo=$ac_try;;
2651 esac
2652 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2653 (eval "$ac_compiler -V >&5") 2>&5
2654 ac_status=$?
2655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2656 (exit $ac_status); }
2658 cat >conftest.$ac_ext <<_ACEOF
2659 /* confdefs.h. */
2660 _ACEOF
2661 cat confdefs.h >>conftest.$ac_ext
2662 cat >>conftest.$ac_ext <<_ACEOF
2663 /* end confdefs.h. */
2666 main ()
2670 return 0;
2672 _ACEOF
2673 ac_clean_files_save=$ac_clean_files
2674 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2675 # Try to create an executable without -o first, disregard a.out.
2676 # It will help us diagnose broken compilers, and finding out an intuition
2677 # of exeext.
2678 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2679 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2680 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2682 # List of possible output files, starting from the most likely.
2683 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2684 # only as a last resort. b.out is created by i960 compilers.
2685 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2687 # The IRIX 6 linker writes into existing files which may not be
2688 # executable, retaining their permissions. Remove them first so a
2689 # subsequent execution test works.
2690 ac_rmfiles=
2691 for ac_file in $ac_files
2693 case $ac_file in
2694 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2695 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2696 esac
2697 done
2698 rm -f $ac_rmfiles
2700 if { (ac_try="$ac_link_default"
2701 case "(($ac_try" in
2702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2703 *) ac_try_echo=$ac_try;;
2704 esac
2705 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2706 (eval "$ac_link_default") 2>&5
2707 ac_status=$?
2708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2709 (exit $ac_status); }; then
2710 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2711 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2712 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2713 # so that the user can short-circuit this test for compilers unknown to
2714 # Autoconf.
2715 for ac_file in $ac_files
2717 test -f "$ac_file" || continue
2718 case $ac_file in
2719 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2721 [ab].out )
2722 # We found the default executable, but exeext='' is most
2723 # certainly right.
2724 break;;
2725 *.* )
2726 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2727 then :; else
2728 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2730 # We set ac_cv_exeext here because the later test for it is not
2731 # safe: cross compilers may not add the suffix if given an `-o'
2732 # argument, so we may need to know it at that point already.
2733 # Even if this section looks crufty: it has the advantage of
2734 # actually working.
2735 break;;
2737 break;;
2738 esac
2739 done
2740 test "$ac_cv_exeext" = no && ac_cv_exeext=
2742 else
2743 echo "$as_me: failed program was:" >&5
2744 sed 's/^/| /' conftest.$ac_ext >&5
2746 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2747 See \`config.log' for more details." >&5
2748 echo "$as_me: error: C compiler cannot create executables
2749 See \`config.log' for more details." >&2;}
2750 { (exit 77); exit 77; }; }
2753 ac_exeext=$ac_cv_exeext
2754 { echo "$as_me:$LINENO: result: $ac_file" >&5
2755 echo "${ECHO_T}$ac_file" >&6; }
2757 # Check that the compiler produces executables we can run. If not, either
2758 # the compiler is broken, or we cross compile.
2759 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2760 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2761 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2762 # If not cross compiling, check that we can run a simple program.
2763 if test "$cross_compiling" != yes; then
2764 if { ac_try='./$ac_file'
2765 { (case "(($ac_try" in
2766 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2767 *) ac_try_echo=$ac_try;;
2768 esac
2769 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2770 (eval "$ac_try") 2>&5
2771 ac_status=$?
2772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2773 (exit $ac_status); }; }; then
2774 cross_compiling=no
2775 else
2776 if test "$cross_compiling" = maybe; then
2777 cross_compiling=yes
2778 else
2779 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2780 If you meant to cross compile, use \`--host'.
2781 See \`config.log' for more details." >&5
2782 echo "$as_me: error: cannot run C compiled programs.
2783 If you meant to cross compile, use \`--host'.
2784 See \`config.log' for more details." >&2;}
2785 { (exit 1); exit 1; }; }
2789 { echo "$as_me:$LINENO: result: yes" >&5
2790 echo "${ECHO_T}yes" >&6; }
2792 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2793 ac_clean_files=$ac_clean_files_save
2794 # Check that the compiler produces executables we can run. If not, either
2795 # the compiler is broken, or we cross compile.
2796 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2797 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2798 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2799 echo "${ECHO_T}$cross_compiling" >&6; }
2801 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2802 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2803 if { (ac_try="$ac_link"
2804 case "(($ac_try" in
2805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2806 *) ac_try_echo=$ac_try;;
2807 esac
2808 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2809 (eval "$ac_link") 2>&5
2810 ac_status=$?
2811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2812 (exit $ac_status); }; then
2813 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2814 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2815 # work properly (i.e., refer to `conftest.exe'), while it won't with
2816 # `rm'.
2817 for ac_file in conftest.exe conftest conftest.*; do
2818 test -f "$ac_file" || continue
2819 case $ac_file in
2820 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2821 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2822 break;;
2823 * ) break;;
2824 esac
2825 done
2826 else
2827 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2828 See \`config.log' for more details." >&5
2829 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2830 See \`config.log' for more details." >&2;}
2831 { (exit 1); exit 1; }; }
2834 rm -f conftest$ac_cv_exeext
2835 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2836 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2838 rm -f conftest.$ac_ext
2839 EXEEXT=$ac_cv_exeext
2840 ac_exeext=$EXEEXT
2841 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2842 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2843 if test "${ac_cv_objext+set}" = set; then
2844 echo $ECHO_N "(cached) $ECHO_C" >&6
2845 else
2846 cat >conftest.$ac_ext <<_ACEOF
2847 /* confdefs.h. */
2848 _ACEOF
2849 cat confdefs.h >>conftest.$ac_ext
2850 cat >>conftest.$ac_ext <<_ACEOF
2851 /* end confdefs.h. */
2854 main ()
2858 return 0;
2860 _ACEOF
2861 rm -f conftest.o conftest.obj
2862 if { (ac_try="$ac_compile"
2863 case "(($ac_try" in
2864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2865 *) ac_try_echo=$ac_try;;
2866 esac
2867 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2868 (eval "$ac_compile") 2>&5
2869 ac_status=$?
2870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2871 (exit $ac_status); }; then
2872 for ac_file in conftest.o conftest.obj conftest.*; do
2873 test -f "$ac_file" || continue;
2874 case $ac_file in
2875 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2876 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2877 break;;
2878 esac
2879 done
2880 else
2881 echo "$as_me: failed program was:" >&5
2882 sed 's/^/| /' conftest.$ac_ext >&5
2884 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2885 See \`config.log' for more details." >&5
2886 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2887 See \`config.log' for more details." >&2;}
2888 { (exit 1); exit 1; }; }
2891 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2893 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2894 echo "${ECHO_T}$ac_cv_objext" >&6; }
2895 OBJEXT=$ac_cv_objext
2896 ac_objext=$OBJEXT
2897 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2898 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2899 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2900 echo $ECHO_N "(cached) $ECHO_C" >&6
2901 else
2902 cat >conftest.$ac_ext <<_ACEOF
2903 /* confdefs.h. */
2904 _ACEOF
2905 cat confdefs.h >>conftest.$ac_ext
2906 cat >>conftest.$ac_ext <<_ACEOF
2907 /* end confdefs.h. */
2910 main ()
2912 #ifndef __GNUC__
2913 choke me
2914 #endif
2917 return 0;
2919 _ACEOF
2920 rm -f conftest.$ac_objext
2921 if { (ac_try="$ac_compile"
2922 case "(($ac_try" in
2923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2924 *) ac_try_echo=$ac_try;;
2925 esac
2926 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2927 (eval "$ac_compile") 2>conftest.er1
2928 ac_status=$?
2929 grep -v '^ *+' conftest.er1 >conftest.err
2930 rm -f conftest.er1
2931 cat conftest.err >&5
2932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2933 (exit $ac_status); } &&
2934 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2935 { (case "(($ac_try" in
2936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2937 *) ac_try_echo=$ac_try;;
2938 esac
2939 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2940 (eval "$ac_try") 2>&5
2941 ac_status=$?
2942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2943 (exit $ac_status); }; } &&
2944 { ac_try='test -s conftest.$ac_objext'
2945 { (case "(($ac_try" in
2946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2947 *) ac_try_echo=$ac_try;;
2948 esac
2949 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2950 (eval "$ac_try") 2>&5
2951 ac_status=$?
2952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2953 (exit $ac_status); }; }; then
2954 ac_compiler_gnu=yes
2955 else
2956 echo "$as_me: failed program was:" >&5
2957 sed 's/^/| /' conftest.$ac_ext >&5
2959 ac_compiler_gnu=no
2962 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2963 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2966 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2967 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2968 GCC=`test $ac_compiler_gnu = yes && echo yes`
2969 ac_test_CFLAGS=${CFLAGS+set}
2970 ac_save_CFLAGS=$CFLAGS
2971 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2972 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2973 if test "${ac_cv_prog_cc_g+set}" = set; then
2974 echo $ECHO_N "(cached) $ECHO_C" >&6
2975 else
2976 ac_save_c_werror_flag=$ac_c_werror_flag
2977 ac_c_werror_flag=yes
2978 ac_cv_prog_cc_g=no
2979 CFLAGS="-g"
2980 cat >conftest.$ac_ext <<_ACEOF
2981 /* confdefs.h. */
2982 _ACEOF
2983 cat confdefs.h >>conftest.$ac_ext
2984 cat >>conftest.$ac_ext <<_ACEOF
2985 /* end confdefs.h. */
2988 main ()
2992 return 0;
2994 _ACEOF
2995 rm -f conftest.$ac_objext
2996 if { (ac_try="$ac_compile"
2997 case "(($ac_try" in
2998 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2999 *) ac_try_echo=$ac_try;;
3000 esac
3001 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3002 (eval "$ac_compile") 2>conftest.er1
3003 ac_status=$?
3004 grep -v '^ *+' conftest.er1 >conftest.err
3005 rm -f conftest.er1
3006 cat conftest.err >&5
3007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3008 (exit $ac_status); } &&
3009 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3010 { (case "(($ac_try" in
3011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3012 *) ac_try_echo=$ac_try;;
3013 esac
3014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3015 (eval "$ac_try") 2>&5
3016 ac_status=$?
3017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3018 (exit $ac_status); }; } &&
3019 { ac_try='test -s conftest.$ac_objext'
3020 { (case "(($ac_try" in
3021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3022 *) ac_try_echo=$ac_try;;
3023 esac
3024 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3025 (eval "$ac_try") 2>&5
3026 ac_status=$?
3027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3028 (exit $ac_status); }; }; then
3029 ac_cv_prog_cc_g=yes
3030 else
3031 echo "$as_me: failed program was:" >&5
3032 sed 's/^/| /' conftest.$ac_ext >&5
3034 CFLAGS=""
3035 cat >conftest.$ac_ext <<_ACEOF
3036 /* confdefs.h. */
3037 _ACEOF
3038 cat confdefs.h >>conftest.$ac_ext
3039 cat >>conftest.$ac_ext <<_ACEOF
3040 /* end confdefs.h. */
3043 main ()
3047 return 0;
3049 _ACEOF
3050 rm -f conftest.$ac_objext
3051 if { (ac_try="$ac_compile"
3052 case "(($ac_try" in
3053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3054 *) ac_try_echo=$ac_try;;
3055 esac
3056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3057 (eval "$ac_compile") 2>conftest.er1
3058 ac_status=$?
3059 grep -v '^ *+' conftest.er1 >conftest.err
3060 rm -f conftest.er1
3061 cat conftest.err >&5
3062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3063 (exit $ac_status); } &&
3064 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3065 { (case "(($ac_try" in
3066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3067 *) ac_try_echo=$ac_try;;
3068 esac
3069 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3070 (eval "$ac_try") 2>&5
3071 ac_status=$?
3072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3073 (exit $ac_status); }; } &&
3074 { ac_try='test -s conftest.$ac_objext'
3075 { (case "(($ac_try" in
3076 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3077 *) ac_try_echo=$ac_try;;
3078 esac
3079 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3080 (eval "$ac_try") 2>&5
3081 ac_status=$?
3082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3083 (exit $ac_status); }; }; then
3085 else
3086 echo "$as_me: failed program was:" >&5
3087 sed 's/^/| /' conftest.$ac_ext >&5
3089 ac_c_werror_flag=$ac_save_c_werror_flag
3090 CFLAGS="-g"
3091 cat >conftest.$ac_ext <<_ACEOF
3092 /* confdefs.h. */
3093 _ACEOF
3094 cat confdefs.h >>conftest.$ac_ext
3095 cat >>conftest.$ac_ext <<_ACEOF
3096 /* end confdefs.h. */
3099 main ()
3103 return 0;
3105 _ACEOF
3106 rm -f conftest.$ac_objext
3107 if { (ac_try="$ac_compile"
3108 case "(($ac_try" in
3109 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3110 *) ac_try_echo=$ac_try;;
3111 esac
3112 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3113 (eval "$ac_compile") 2>conftest.er1
3114 ac_status=$?
3115 grep -v '^ *+' conftest.er1 >conftest.err
3116 rm -f conftest.er1
3117 cat conftest.err >&5
3118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3119 (exit $ac_status); } &&
3120 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3121 { (case "(($ac_try" in
3122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3123 *) ac_try_echo=$ac_try;;
3124 esac
3125 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3126 (eval "$ac_try") 2>&5
3127 ac_status=$?
3128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3129 (exit $ac_status); }; } &&
3130 { ac_try='test -s conftest.$ac_objext'
3131 { (case "(($ac_try" in
3132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3133 *) ac_try_echo=$ac_try;;
3134 esac
3135 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3136 (eval "$ac_try") 2>&5
3137 ac_status=$?
3138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3139 (exit $ac_status); }; }; then
3140 ac_cv_prog_cc_g=yes
3141 else
3142 echo "$as_me: failed program was:" >&5
3143 sed 's/^/| /' conftest.$ac_ext >&5
3148 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3151 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3154 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3155 ac_c_werror_flag=$ac_save_c_werror_flag
3157 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3158 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3159 if test "$ac_test_CFLAGS" = set; then
3160 CFLAGS=$ac_save_CFLAGS
3161 elif test $ac_cv_prog_cc_g = yes; then
3162 if test "$GCC" = yes; then
3163 CFLAGS="-g -O2"
3164 else
3165 CFLAGS="-g"
3167 else
3168 if test "$GCC" = yes; then
3169 CFLAGS="-O2"
3170 else
3171 CFLAGS=
3174 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3175 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3176 if test "${ac_cv_prog_cc_c89+set}" = set; then
3177 echo $ECHO_N "(cached) $ECHO_C" >&6
3178 else
3179 ac_cv_prog_cc_c89=no
3180 ac_save_CC=$CC
3181 cat >conftest.$ac_ext <<_ACEOF
3182 /* confdefs.h. */
3183 _ACEOF
3184 cat confdefs.h >>conftest.$ac_ext
3185 cat >>conftest.$ac_ext <<_ACEOF
3186 /* end confdefs.h. */
3187 #include <stdarg.h>
3188 #include <stdio.h>
3189 #include <sys/types.h>
3190 #include <sys/stat.h>
3191 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3192 struct buf { int x; };
3193 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3194 static char *e (p, i)
3195 char **p;
3196 int i;
3198 return p[i];
3200 static char *f (char * (*g) (char **, int), char **p, ...)
3202 char *s;
3203 va_list v;
3204 va_start (v,p);
3205 s = g (p, va_arg (v,int));
3206 va_end (v);
3207 return s;
3210 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3211 function prototypes and stuff, but not '\xHH' hex character constants.
3212 These don't provoke an error unfortunately, instead are silently treated
3213 as 'x'. The following induces an error, until -std is added to get
3214 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3215 array size at least. It's necessary to write '\x00'==0 to get something
3216 that's true only with -std. */
3217 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3219 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3220 inside strings and character constants. */
3221 #define FOO(x) 'x'
3222 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3224 int test (int i, double x);
3225 struct s1 {int (*f) (int a);};
3226 struct s2 {int (*f) (double a);};
3227 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3228 int argc;
3229 char **argv;
3231 main ()
3233 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3235 return 0;
3237 _ACEOF
3238 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3239 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3241 CC="$ac_save_CC $ac_arg"
3242 rm -f conftest.$ac_objext
3243 if { (ac_try="$ac_compile"
3244 case "(($ac_try" in
3245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3246 *) ac_try_echo=$ac_try;;
3247 esac
3248 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3249 (eval "$ac_compile") 2>conftest.er1
3250 ac_status=$?
3251 grep -v '^ *+' conftest.er1 >conftest.err
3252 rm -f conftest.er1
3253 cat conftest.err >&5
3254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3255 (exit $ac_status); } &&
3256 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3257 { (case "(($ac_try" in
3258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3259 *) ac_try_echo=$ac_try;;
3260 esac
3261 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3262 (eval "$ac_try") 2>&5
3263 ac_status=$?
3264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3265 (exit $ac_status); }; } &&
3266 { ac_try='test -s conftest.$ac_objext'
3267 { (case "(($ac_try" in
3268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3269 *) ac_try_echo=$ac_try;;
3270 esac
3271 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3272 (eval "$ac_try") 2>&5
3273 ac_status=$?
3274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3275 (exit $ac_status); }; }; then
3276 ac_cv_prog_cc_c89=$ac_arg
3277 else
3278 echo "$as_me: failed program was:" >&5
3279 sed 's/^/| /' conftest.$ac_ext >&5
3284 rm -f core conftest.err conftest.$ac_objext
3285 test "x$ac_cv_prog_cc_c89" != "xno" && break
3286 done
3287 rm -f conftest.$ac_ext
3288 CC=$ac_save_CC
3291 # AC_CACHE_VAL
3292 case "x$ac_cv_prog_cc_c89" in
3294 { echo "$as_me:$LINENO: result: none needed" >&5
3295 echo "${ECHO_T}none needed" >&6; } ;;
3296 xno)
3297 { echo "$as_me:$LINENO: result: unsupported" >&5
3298 echo "${ECHO_T}unsupported" >&6; } ;;
3300 CC="$CC $ac_cv_prog_cc_c89"
3301 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3302 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3303 esac
3306 ac_ext=c
3307 ac_cpp='$CPP $CPPFLAGS'
3308 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3309 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3310 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3313 ac_ext=c
3314 ac_cpp='$CPP $CPPFLAGS'
3315 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3316 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3317 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3318 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3319 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3320 # On Suns, sometimes $CPP names a directory.
3321 if test -n "$CPP" && test -d "$CPP"; then
3322 CPP=
3324 if test -z "$CPP"; then
3325 if test "${ac_cv_prog_CPP+set}" = set; then
3326 echo $ECHO_N "(cached) $ECHO_C" >&6
3327 else
3328 # Double quotes because CPP needs to be expanded
3329 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3331 ac_preproc_ok=false
3332 for ac_c_preproc_warn_flag in '' yes
3334 # Use a header file that comes with gcc, so configuring glibc
3335 # with a fresh cross-compiler works.
3336 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3337 # <limits.h> exists even on freestanding compilers.
3338 # On the NeXT, cc -E runs the code through the compiler's parser,
3339 # not just through cpp. "Syntax error" is here to catch this case.
3340 cat >conftest.$ac_ext <<_ACEOF
3341 /* confdefs.h. */
3342 _ACEOF
3343 cat confdefs.h >>conftest.$ac_ext
3344 cat >>conftest.$ac_ext <<_ACEOF
3345 /* end confdefs.h. */
3346 #ifdef __STDC__
3347 # include <limits.h>
3348 #else
3349 # include <assert.h>
3350 #endif
3351 Syntax error
3352 _ACEOF
3353 if { (ac_try="$ac_cpp conftest.$ac_ext"
3354 case "(($ac_try" in
3355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3356 *) ac_try_echo=$ac_try;;
3357 esac
3358 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3359 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3360 ac_status=$?
3361 grep -v '^ *+' conftest.er1 >conftest.err
3362 rm -f conftest.er1
3363 cat conftest.err >&5
3364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3365 (exit $ac_status); } >/dev/null; then
3366 if test -s conftest.err; then
3367 ac_cpp_err=$ac_c_preproc_warn_flag
3368 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3369 else
3370 ac_cpp_err=
3372 else
3373 ac_cpp_err=yes
3375 if test -z "$ac_cpp_err"; then
3377 else
3378 echo "$as_me: failed program was:" >&5
3379 sed 's/^/| /' conftest.$ac_ext >&5
3381 # Broken: fails on valid input.
3382 continue
3385 rm -f conftest.err conftest.$ac_ext
3387 # OK, works on sane cases. Now check whether nonexistent headers
3388 # can be detected and how.
3389 cat >conftest.$ac_ext <<_ACEOF
3390 /* confdefs.h. */
3391 _ACEOF
3392 cat confdefs.h >>conftest.$ac_ext
3393 cat >>conftest.$ac_ext <<_ACEOF
3394 /* end confdefs.h. */
3395 #include <ac_nonexistent.h>
3396 _ACEOF
3397 if { (ac_try="$ac_cpp conftest.$ac_ext"
3398 case "(($ac_try" in
3399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3400 *) ac_try_echo=$ac_try;;
3401 esac
3402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3403 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3404 ac_status=$?
3405 grep -v '^ *+' conftest.er1 >conftest.err
3406 rm -f conftest.er1
3407 cat conftest.err >&5
3408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3409 (exit $ac_status); } >/dev/null; then
3410 if test -s conftest.err; then
3411 ac_cpp_err=$ac_c_preproc_warn_flag
3412 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3413 else
3414 ac_cpp_err=
3416 else
3417 ac_cpp_err=yes
3419 if test -z "$ac_cpp_err"; then
3420 # Broken: success on invalid input.
3421 continue
3422 else
3423 echo "$as_me: failed program was:" >&5
3424 sed 's/^/| /' conftest.$ac_ext >&5
3426 # Passes both tests.
3427 ac_preproc_ok=:
3428 break
3431 rm -f conftest.err conftest.$ac_ext
3433 done
3434 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3435 rm -f conftest.err conftest.$ac_ext
3436 if $ac_preproc_ok; then
3437 break
3440 done
3441 ac_cv_prog_CPP=$CPP
3444 CPP=$ac_cv_prog_CPP
3445 else
3446 ac_cv_prog_CPP=$CPP
3448 { echo "$as_me:$LINENO: result: $CPP" >&5
3449 echo "${ECHO_T}$CPP" >&6; }
3450 ac_preproc_ok=false
3451 for ac_c_preproc_warn_flag in '' yes
3453 # Use a header file that comes with gcc, so configuring glibc
3454 # with a fresh cross-compiler works.
3455 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3456 # <limits.h> exists even on freestanding compilers.
3457 # On the NeXT, cc -E runs the code through the compiler's parser,
3458 # not just through cpp. "Syntax error" is here to catch this case.
3459 cat >conftest.$ac_ext <<_ACEOF
3460 /* confdefs.h. */
3461 _ACEOF
3462 cat confdefs.h >>conftest.$ac_ext
3463 cat >>conftest.$ac_ext <<_ACEOF
3464 /* end confdefs.h. */
3465 #ifdef __STDC__
3466 # include <limits.h>
3467 #else
3468 # include <assert.h>
3469 #endif
3470 Syntax error
3471 _ACEOF
3472 if { (ac_try="$ac_cpp conftest.$ac_ext"
3473 case "(($ac_try" in
3474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3475 *) ac_try_echo=$ac_try;;
3476 esac
3477 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3478 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3479 ac_status=$?
3480 grep -v '^ *+' conftest.er1 >conftest.err
3481 rm -f conftest.er1
3482 cat conftest.err >&5
3483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3484 (exit $ac_status); } >/dev/null; then
3485 if test -s conftest.err; then
3486 ac_cpp_err=$ac_c_preproc_warn_flag
3487 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3488 else
3489 ac_cpp_err=
3491 else
3492 ac_cpp_err=yes
3494 if test -z "$ac_cpp_err"; then
3496 else
3497 echo "$as_me: failed program was:" >&5
3498 sed 's/^/| /' conftest.$ac_ext >&5
3500 # Broken: fails on valid input.
3501 continue
3504 rm -f conftest.err conftest.$ac_ext
3506 # OK, works on sane cases. Now check whether nonexistent headers
3507 # can be detected and how.
3508 cat >conftest.$ac_ext <<_ACEOF
3509 /* confdefs.h. */
3510 _ACEOF
3511 cat confdefs.h >>conftest.$ac_ext
3512 cat >>conftest.$ac_ext <<_ACEOF
3513 /* end confdefs.h. */
3514 #include <ac_nonexistent.h>
3515 _ACEOF
3516 if { (ac_try="$ac_cpp conftest.$ac_ext"
3517 case "(($ac_try" in
3518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3519 *) ac_try_echo=$ac_try;;
3520 esac
3521 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3522 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3523 ac_status=$?
3524 grep -v '^ *+' conftest.er1 >conftest.err
3525 rm -f conftest.er1
3526 cat conftest.err >&5
3527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3528 (exit $ac_status); } >/dev/null; then
3529 if test -s conftest.err; then
3530 ac_cpp_err=$ac_c_preproc_warn_flag
3531 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3532 else
3533 ac_cpp_err=
3535 else
3536 ac_cpp_err=yes
3538 if test -z "$ac_cpp_err"; then
3539 # Broken: success on invalid input.
3540 continue
3541 else
3542 echo "$as_me: failed program was:" >&5
3543 sed 's/^/| /' conftest.$ac_ext >&5
3545 # Passes both tests.
3546 ac_preproc_ok=:
3547 break
3550 rm -f conftest.err conftest.$ac_ext
3552 done
3553 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3554 rm -f conftest.err conftest.$ac_ext
3555 if $ac_preproc_ok; then
3557 else
3558 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3559 See \`config.log' for more details." >&5
3560 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3561 See \`config.log' for more details." >&2;}
3562 { (exit 1); exit 1; }; }
3565 ac_ext=c
3566 ac_cpp='$CPP $CPPFLAGS'
3567 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3568 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3569 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3572 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3573 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3574 if test "${ac_cv_path_GREP+set}" = set; then
3575 echo $ECHO_N "(cached) $ECHO_C" >&6
3576 else
3577 # Extract the first word of "grep ggrep" to use in msg output
3578 if test -z "$GREP"; then
3579 set dummy grep ggrep; ac_prog_name=$2
3580 if test "${ac_cv_path_GREP+set}" = set; then
3581 echo $ECHO_N "(cached) $ECHO_C" >&6
3582 else
3583 ac_path_GREP_found=false
3584 # Loop through the user's path and test for each of PROGNAME-LIST
3585 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3586 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3588 IFS=$as_save_IFS
3589 test -z "$as_dir" && as_dir=.
3590 for ac_prog in grep ggrep; do
3591 for ac_exec_ext in '' $ac_executable_extensions; do
3592 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3593 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3594 # Check for GNU ac_path_GREP and select it if it is found.
3595 # Check for GNU $ac_path_GREP
3596 case `"$ac_path_GREP" --version 2>&1` in
3597 *GNU*)
3598 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3600 ac_count=0
3601 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3602 while :
3604 cat "conftest.in" "conftest.in" >"conftest.tmp"
3605 mv "conftest.tmp" "conftest.in"
3606 cp "conftest.in" "conftest.nl"
3607 echo 'GREP' >> "conftest.nl"
3608 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3609 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3610 ac_count=`expr $ac_count + 1`
3611 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3612 # Best one so far, save it but keep looking for a better one
3613 ac_cv_path_GREP="$ac_path_GREP"
3614 ac_path_GREP_max=$ac_count
3616 # 10*(2^10) chars as input seems more than enough
3617 test $ac_count -gt 10 && break
3618 done
3619 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3620 esac
3623 $ac_path_GREP_found && break 3
3624 done
3625 done
3627 done
3628 IFS=$as_save_IFS
3633 GREP="$ac_cv_path_GREP"
3634 if test -z "$GREP"; then
3635 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3636 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3637 { (exit 1); exit 1; }; }
3640 else
3641 ac_cv_path_GREP=$GREP
3646 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3647 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3648 GREP="$ac_cv_path_GREP"
3651 { echo "$as_me:$LINENO: checking for egrep" >&5
3652 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3653 if test "${ac_cv_path_EGREP+set}" = set; then
3654 echo $ECHO_N "(cached) $ECHO_C" >&6
3655 else
3656 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3657 then ac_cv_path_EGREP="$GREP -E"
3658 else
3659 # Extract the first word of "egrep" to use in msg output
3660 if test -z "$EGREP"; then
3661 set dummy egrep; ac_prog_name=$2
3662 if test "${ac_cv_path_EGREP+set}" = set; then
3663 echo $ECHO_N "(cached) $ECHO_C" >&6
3664 else
3665 ac_path_EGREP_found=false
3666 # Loop through the user's path and test for each of PROGNAME-LIST
3667 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3668 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3670 IFS=$as_save_IFS
3671 test -z "$as_dir" && as_dir=.
3672 for ac_prog in egrep; do
3673 for ac_exec_ext in '' $ac_executable_extensions; do
3674 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3675 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
3676 # Check for GNU ac_path_EGREP and select it if it is found.
3677 # Check for GNU $ac_path_EGREP
3678 case `"$ac_path_EGREP" --version 2>&1` in
3679 *GNU*)
3680 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3682 ac_count=0
3683 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3684 while :
3686 cat "conftest.in" "conftest.in" >"conftest.tmp"
3687 mv "conftest.tmp" "conftest.in"
3688 cp "conftest.in" "conftest.nl"
3689 echo 'EGREP' >> "conftest.nl"
3690 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3691 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3692 ac_count=`expr $ac_count + 1`
3693 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3694 # Best one so far, save it but keep looking for a better one
3695 ac_cv_path_EGREP="$ac_path_EGREP"
3696 ac_path_EGREP_max=$ac_count
3698 # 10*(2^10) chars as input seems more than enough
3699 test $ac_count -gt 10 && break
3700 done
3701 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3702 esac
3705 $ac_path_EGREP_found && break 3
3706 done
3707 done
3709 done
3710 IFS=$as_save_IFS
3715 EGREP="$ac_cv_path_EGREP"
3716 if test -z "$EGREP"; then
3717 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3718 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3719 { (exit 1); exit 1; }; }
3722 else
3723 ac_cv_path_EGREP=$EGREP
3729 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3730 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3731 EGREP="$ac_cv_path_EGREP"
3734 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3735 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3736 if test "${ac_cv_header_stdc+set}" = set; then
3737 echo $ECHO_N "(cached) $ECHO_C" >&6
3738 else
3739 cat >conftest.$ac_ext <<_ACEOF
3740 /* confdefs.h. */
3741 _ACEOF
3742 cat confdefs.h >>conftest.$ac_ext
3743 cat >>conftest.$ac_ext <<_ACEOF
3744 /* end confdefs.h. */
3745 #include <stdlib.h>
3746 #include <stdarg.h>
3747 #include <string.h>
3748 #include <float.h>
3751 main ()
3755 return 0;
3757 _ACEOF
3758 rm -f conftest.$ac_objext
3759 if { (ac_try="$ac_compile"
3760 case "(($ac_try" in
3761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3762 *) ac_try_echo=$ac_try;;
3763 esac
3764 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3765 (eval "$ac_compile") 2>conftest.er1
3766 ac_status=$?
3767 grep -v '^ *+' conftest.er1 >conftest.err
3768 rm -f conftest.er1
3769 cat conftest.err >&5
3770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3771 (exit $ac_status); } &&
3772 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3773 { (case "(($ac_try" in
3774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3775 *) ac_try_echo=$ac_try;;
3776 esac
3777 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3778 (eval "$ac_try") 2>&5
3779 ac_status=$?
3780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3781 (exit $ac_status); }; } &&
3782 { ac_try='test -s conftest.$ac_objext'
3783 { (case "(($ac_try" in
3784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3785 *) ac_try_echo=$ac_try;;
3786 esac
3787 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3788 (eval "$ac_try") 2>&5
3789 ac_status=$?
3790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3791 (exit $ac_status); }; }; then
3792 ac_cv_header_stdc=yes
3793 else
3794 echo "$as_me: failed program was:" >&5
3795 sed 's/^/| /' conftest.$ac_ext >&5
3797 ac_cv_header_stdc=no
3800 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3802 if test $ac_cv_header_stdc = yes; then
3803 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3804 cat >conftest.$ac_ext <<_ACEOF
3805 /* confdefs.h. */
3806 _ACEOF
3807 cat confdefs.h >>conftest.$ac_ext
3808 cat >>conftest.$ac_ext <<_ACEOF
3809 /* end confdefs.h. */
3810 #include <string.h>
3812 _ACEOF
3813 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3814 $EGREP "memchr" >/dev/null 2>&1; then
3816 else
3817 ac_cv_header_stdc=no
3819 rm -f conftest*
3823 if test $ac_cv_header_stdc = yes; then
3824 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3825 cat >conftest.$ac_ext <<_ACEOF
3826 /* confdefs.h. */
3827 _ACEOF
3828 cat confdefs.h >>conftest.$ac_ext
3829 cat >>conftest.$ac_ext <<_ACEOF
3830 /* end confdefs.h. */
3831 #include <stdlib.h>
3833 _ACEOF
3834 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3835 $EGREP "free" >/dev/null 2>&1; then
3837 else
3838 ac_cv_header_stdc=no
3840 rm -f conftest*
3844 if test $ac_cv_header_stdc = yes; then
3845 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3846 if test "$cross_compiling" = yes; then
3848 else
3849 cat >conftest.$ac_ext <<_ACEOF
3850 /* confdefs.h. */
3851 _ACEOF
3852 cat confdefs.h >>conftest.$ac_ext
3853 cat >>conftest.$ac_ext <<_ACEOF
3854 /* end confdefs.h. */
3855 #include <ctype.h>
3856 #include <stdlib.h>
3857 #if ((' ' & 0x0FF) == 0x020)
3858 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3859 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3860 #else
3861 # define ISLOWER(c) \
3862 (('a' <= (c) && (c) <= 'i') \
3863 || ('j' <= (c) && (c) <= 'r') \
3864 || ('s' <= (c) && (c) <= 'z'))
3865 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3866 #endif
3868 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3870 main ()
3872 int i;
3873 for (i = 0; i < 256; i++)
3874 if (XOR (islower (i), ISLOWER (i))
3875 || toupper (i) != TOUPPER (i))
3876 return 2;
3877 return 0;
3879 _ACEOF
3880 rm -f conftest$ac_exeext
3881 if { (ac_try="$ac_link"
3882 case "(($ac_try" in
3883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3884 *) ac_try_echo=$ac_try;;
3885 esac
3886 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3887 (eval "$ac_link") 2>&5
3888 ac_status=$?
3889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3890 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3891 { (case "(($ac_try" in
3892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3893 *) ac_try_echo=$ac_try;;
3894 esac
3895 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3896 (eval "$ac_try") 2>&5
3897 ac_status=$?
3898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3899 (exit $ac_status); }; }; then
3901 else
3902 echo "$as_me: program exited with status $ac_status" >&5
3903 echo "$as_me: failed program was:" >&5
3904 sed 's/^/| /' conftest.$ac_ext >&5
3906 ( exit $ac_status )
3907 ac_cv_header_stdc=no
3909 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3915 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3916 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
3917 if test $ac_cv_header_stdc = yes; then
3919 cat >>confdefs.h <<\_ACEOF
3920 #define STDC_HEADERS 1
3921 _ACEOF
3925 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3935 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3936 inttypes.h stdint.h unistd.h
3938 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3939 { echo "$as_me:$LINENO: checking for $ac_header" >&5
3940 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
3941 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3942 echo $ECHO_N "(cached) $ECHO_C" >&6
3943 else
3944 cat >conftest.$ac_ext <<_ACEOF
3945 /* confdefs.h. */
3946 _ACEOF
3947 cat confdefs.h >>conftest.$ac_ext
3948 cat >>conftest.$ac_ext <<_ACEOF
3949 /* end confdefs.h. */
3950 $ac_includes_default
3952 #include <$ac_header>
3953 _ACEOF
3954 rm -f conftest.$ac_objext
3955 if { (ac_try="$ac_compile"
3956 case "(($ac_try" in
3957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3958 *) ac_try_echo=$ac_try;;
3959 esac
3960 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3961 (eval "$ac_compile") 2>conftest.er1
3962 ac_status=$?
3963 grep -v '^ *+' conftest.er1 >conftest.err
3964 rm -f conftest.er1
3965 cat conftest.err >&5
3966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3967 (exit $ac_status); } &&
3968 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3969 { (case "(($ac_try" in
3970 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3971 *) ac_try_echo=$ac_try;;
3972 esac
3973 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3974 (eval "$ac_try") 2>&5
3975 ac_status=$?
3976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3977 (exit $ac_status); }; } &&
3978 { ac_try='test -s conftest.$ac_objext'
3979 { (case "(($ac_try" in
3980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3981 *) ac_try_echo=$ac_try;;
3982 esac
3983 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3984 (eval "$ac_try") 2>&5
3985 ac_status=$?
3986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3987 (exit $ac_status); }; }; then
3988 eval "$as_ac_Header=yes"
3989 else
3990 echo "$as_me: failed program was:" >&5
3991 sed 's/^/| /' conftest.$ac_ext >&5
3993 eval "$as_ac_Header=no"
3996 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3998 ac_res=`eval echo '${'$as_ac_Header'}'`
3999 { echo "$as_me:$LINENO: result: $ac_res" >&5
4000 echo "${ECHO_T}$ac_res" >&6; }
4001 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4002 cat >>confdefs.h <<_ACEOF
4003 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4004 _ACEOF
4008 done
4011 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4012 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4013 if test "${ac_cv_c_bigendian+set}" = set; then
4014 echo $ECHO_N "(cached) $ECHO_C" >&6
4015 else
4016 # See if sys/param.h defines the BYTE_ORDER macro.
4017 cat >conftest.$ac_ext <<_ACEOF
4018 /* confdefs.h. */
4019 _ACEOF
4020 cat confdefs.h >>conftest.$ac_ext
4021 cat >>conftest.$ac_ext <<_ACEOF
4022 /* end confdefs.h. */
4023 #include <sys/types.h>
4024 #include <sys/param.h>
4027 main ()
4029 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4030 bogus endian macros
4031 #endif
4034 return 0;
4036 _ACEOF
4037 rm -f conftest.$ac_objext
4038 if { (ac_try="$ac_compile"
4039 case "(($ac_try" in
4040 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4041 *) ac_try_echo=$ac_try;;
4042 esac
4043 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4044 (eval "$ac_compile") 2>conftest.er1
4045 ac_status=$?
4046 grep -v '^ *+' conftest.er1 >conftest.err
4047 rm -f conftest.er1
4048 cat conftest.err >&5
4049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4050 (exit $ac_status); } &&
4051 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4052 { (case "(($ac_try" in
4053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4054 *) ac_try_echo=$ac_try;;
4055 esac
4056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4057 (eval "$ac_try") 2>&5
4058 ac_status=$?
4059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4060 (exit $ac_status); }; } &&
4061 { ac_try='test -s conftest.$ac_objext'
4062 { (case "(($ac_try" in
4063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4064 *) ac_try_echo=$ac_try;;
4065 esac
4066 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4067 (eval "$ac_try") 2>&5
4068 ac_status=$?
4069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4070 (exit $ac_status); }; }; then
4071 # It does; now see whether it defined to BIG_ENDIAN or not.
4072 cat >conftest.$ac_ext <<_ACEOF
4073 /* confdefs.h. */
4074 _ACEOF
4075 cat confdefs.h >>conftest.$ac_ext
4076 cat >>conftest.$ac_ext <<_ACEOF
4077 /* end confdefs.h. */
4078 #include <sys/types.h>
4079 #include <sys/param.h>
4082 main ()
4084 #if BYTE_ORDER != BIG_ENDIAN
4085 not big endian
4086 #endif
4089 return 0;
4091 _ACEOF
4092 rm -f conftest.$ac_objext
4093 if { (ac_try="$ac_compile"
4094 case "(($ac_try" in
4095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4096 *) ac_try_echo=$ac_try;;
4097 esac
4098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4099 (eval "$ac_compile") 2>conftest.er1
4100 ac_status=$?
4101 grep -v '^ *+' conftest.er1 >conftest.err
4102 rm -f conftest.er1
4103 cat conftest.err >&5
4104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4105 (exit $ac_status); } &&
4106 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4107 { (case "(($ac_try" in
4108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4109 *) ac_try_echo=$ac_try;;
4110 esac
4111 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4112 (eval "$ac_try") 2>&5
4113 ac_status=$?
4114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4115 (exit $ac_status); }; } &&
4116 { ac_try='test -s conftest.$ac_objext'
4117 { (case "(($ac_try" in
4118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4119 *) ac_try_echo=$ac_try;;
4120 esac
4121 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4122 (eval "$ac_try") 2>&5
4123 ac_status=$?
4124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4125 (exit $ac_status); }; }; then
4126 ac_cv_c_bigendian=yes
4127 else
4128 echo "$as_me: failed program was:" >&5
4129 sed 's/^/| /' conftest.$ac_ext >&5
4131 ac_cv_c_bigendian=no
4134 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4135 else
4136 echo "$as_me: failed program was:" >&5
4137 sed 's/^/| /' conftest.$ac_ext >&5
4139 # It does not; compile a test program.
4140 if test "$cross_compiling" = yes; then
4141 # try to guess the endianness by grepping values into an object file
4142 ac_cv_c_bigendian=unknown
4143 cat >conftest.$ac_ext <<_ACEOF
4144 /* confdefs.h. */
4145 _ACEOF
4146 cat confdefs.h >>conftest.$ac_ext
4147 cat >>conftest.$ac_ext <<_ACEOF
4148 /* end confdefs.h. */
4149 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4150 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4151 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4152 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4153 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4154 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4156 main ()
4158 _ascii (); _ebcdic ();
4160 return 0;
4162 _ACEOF
4163 rm -f conftest.$ac_objext
4164 if { (ac_try="$ac_compile"
4165 case "(($ac_try" in
4166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4167 *) ac_try_echo=$ac_try;;
4168 esac
4169 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4170 (eval "$ac_compile") 2>conftest.er1
4171 ac_status=$?
4172 grep -v '^ *+' conftest.er1 >conftest.err
4173 rm -f conftest.er1
4174 cat conftest.err >&5
4175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4176 (exit $ac_status); } &&
4177 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4178 { (case "(($ac_try" in
4179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4180 *) ac_try_echo=$ac_try;;
4181 esac
4182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4183 (eval "$ac_try") 2>&5
4184 ac_status=$?
4185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4186 (exit $ac_status); }; } &&
4187 { ac_try='test -s conftest.$ac_objext'
4188 { (case "(($ac_try" in
4189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4190 *) ac_try_echo=$ac_try;;
4191 esac
4192 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4193 (eval "$ac_try") 2>&5
4194 ac_status=$?
4195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4196 (exit $ac_status); }; }; then
4197 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4198 ac_cv_c_bigendian=yes
4200 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4201 if test "$ac_cv_c_bigendian" = unknown; then
4202 ac_cv_c_bigendian=no
4203 else
4204 # finding both strings is unlikely to happen, but who knows?
4205 ac_cv_c_bigendian=unknown
4208 else
4209 echo "$as_me: failed program was:" >&5
4210 sed 's/^/| /' conftest.$ac_ext >&5
4215 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4216 else
4217 cat >conftest.$ac_ext <<_ACEOF
4218 /* confdefs.h. */
4219 _ACEOF
4220 cat confdefs.h >>conftest.$ac_ext
4221 cat >>conftest.$ac_ext <<_ACEOF
4222 /* end confdefs.h. */
4223 $ac_includes_default
4225 main ()
4228 /* Are we little or big endian? From Harbison&Steele. */
4229 union
4231 long int l;
4232 char c[sizeof (long int)];
4233 } u;
4234 u.l = 1;
4235 return u.c[sizeof (long int) - 1] == 1;
4238 return 0;
4240 _ACEOF
4241 rm -f conftest$ac_exeext
4242 if { (ac_try="$ac_link"
4243 case "(($ac_try" in
4244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4245 *) ac_try_echo=$ac_try;;
4246 esac
4247 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4248 (eval "$ac_link") 2>&5
4249 ac_status=$?
4250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4251 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4252 { (case "(($ac_try" in
4253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4254 *) ac_try_echo=$ac_try;;
4255 esac
4256 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4257 (eval "$ac_try") 2>&5
4258 ac_status=$?
4259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4260 (exit $ac_status); }; }; then
4261 ac_cv_c_bigendian=no
4262 else
4263 echo "$as_me: program exited with status $ac_status" >&5
4264 echo "$as_me: failed program was:" >&5
4265 sed 's/^/| /' conftest.$ac_ext >&5
4267 ( exit $ac_status )
4268 ac_cv_c_bigendian=yes
4270 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4276 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4278 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4279 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4280 case $ac_cv_c_bigendian in
4281 yes)
4282 ENDIAN=big
4285 ENDIAN=little
4288 { { echo "$as_me:$LINENO: error: unknown endianness
4289 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4290 echo "$as_me: error: unknown endianness
4291 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4292 { (exit 1); exit 1; }; } ;;
4293 esac
4298 # Check whether --with-llvmsrc was given.
4299 if test "${with_llvmsrc+set}" = set; then
4300 withval=$with_llvmsrc; LLVM_SRC=$withval
4302 else
4303 LLVM_SRC=`cd ${srcdir}/../..; pwd`
4309 # Check whether --with-llvmobj was given.
4310 if test "${with_llvmobj+set}" = set; then
4311 withval=$with_llvmobj; LLVM_OBJ=$withval
4313 else
4314 LLVM_OBJ=`cd ../..; pwd`
4320 # Check whether --with-externals was given.
4321 if test "${with_externals+set}" = set; then
4322 withval=$with_externals; LLVM_EXTERNALS=$withval
4324 else
4325 LLVM_EXTERNALS=$LLVM_SRC/projects/test-suite-externals
4334 { echo "$as_me:$LINENO: checking for spec95 benchmark sources" >&5
4335 echo $ECHO_N "checking for spec95 benchmark sources... $ECHO_C" >&6; }
4336 if test -d "${LLVM_EXTERNALS}/spec95/benchspec" ; then
4337 if test -n "" ; then
4338 if test -e "${LLVM_EXTERNALS}/spec95/benchspec/" ; then
4339 SPEC95_ROOT=${LLVM_EXTERNALS}/spec95/benchspec
4341 USE_SPEC95=USE_SPEC95=1
4343 checkresult="yes, found in ${LLVM_EXTERNALS}/spec95/benchspec"
4344 else
4345 checkresult="no"
4347 else
4348 SPEC95_ROOT=${LLVM_EXTERNALS}/spec95/benchspec
4350 USE_SPEC95=USE_SPEC95=1
4352 checkresult="yes, found in ${LLVM_EXTERNALS}/spec95/benchspec"
4354 else
4355 checkresult="no"
4357 if test "$checkresult" = "no" ; then
4360 checkresult="no, not found in ${LLVM_EXTERNALS}/spec95/benchspec"
4362 { echo "$as_me:$LINENO: result: $checkresult" >&5
4363 echo "${ECHO_T}$checkresult" >&6; }
4372 { echo "$as_me:$LINENO: checking for spec2000 benchmark sources" >&5
4373 echo $ECHO_N "checking for spec2000 benchmark sources... $ECHO_C" >&6; }
4374 if test -d "${LLVM_EXTERNALS}/speccpu2000/benchspec" ; then
4375 if test -n "CINT2000" ; then
4376 if test -e "${LLVM_EXTERNALS}/speccpu2000/benchspec/CINT2000" ; then
4377 SPEC2000_ROOT=${LLVM_EXTERNALS}/speccpu2000/benchspec
4379 USE_SPEC2000=USE_SPEC2000=1
4381 checkresult="yes, found in ${LLVM_EXTERNALS}/speccpu2000/benchspec"
4382 else
4383 checkresult="no"
4385 else
4386 SPEC2000_ROOT=${LLVM_EXTERNALS}/speccpu2000/benchspec
4388 USE_SPEC2000=USE_SPEC2000=1
4390 checkresult="yes, found in ${LLVM_EXTERNALS}/speccpu2000/benchspec"
4392 else
4393 checkresult="no"
4395 if test "$checkresult" = "no" ; then
4398 checkresult="no, not found in ${LLVM_EXTERNALS}/speccpu2000/benchspec"
4400 { echo "$as_me:$LINENO: result: $checkresult" >&5
4401 echo "${ECHO_T}$checkresult" >&6; }
4410 { echo "$as_me:$LINENO: checking for spec2006 benchmark sources" >&5
4411 echo $ECHO_N "checking for spec2006 benchmark sources... $ECHO_C" >&6; }
4412 if test -d "${LLVM_EXTERNALS}/speccpu2006/benchspec" ; then
4413 if test -n "CPU2006" ; then
4414 if test -e "${LLVM_EXTERNALS}/speccpu2006/benchspec/CPU2006" ; then
4415 SPEC2006_ROOT=${LLVM_EXTERNALS}/speccpu2006/benchspec
4417 USE_SPEC2006=USE_SPEC2006=1
4419 checkresult="yes, found in ${LLVM_EXTERNALS}/speccpu2006/benchspec"
4420 else
4421 checkresult="no"
4423 else
4424 SPEC2006_ROOT=${LLVM_EXTERNALS}/speccpu2006/benchspec
4426 USE_SPEC2006=USE_SPEC2006=1
4428 checkresult="yes, found in ${LLVM_EXTERNALS}/speccpu2006/benchspec"
4430 else
4431 checkresult="no"
4433 if test "$checkresult" = "no" ; then
4436 checkresult="no, not found in ${LLVM_EXTERNALS}/speccpu2006/benchspec"
4438 { echo "$as_me:$LINENO: result: $checkresult" >&5
4439 echo "${ECHO_T}$checkresult" >&6; }
4448 { echo "$as_me:$LINENO: checking for povray benchmark sources" >&5
4449 echo $ECHO_N "checking for povray benchmark sources... $ECHO_C" >&6; }
4450 if test -d "${LLVM_EXTERNALS}/povray31" ; then
4451 if test -n "" ; then
4452 if test -e "${LLVM_EXTERNALS}/povray31/" ; then
4453 POVRAY_ROOT=${LLVM_EXTERNALS}/povray31
4455 USE_POVRAY=USE_POVRAY=1
4457 checkresult="yes, found in ${LLVM_EXTERNALS}/povray31"
4458 else
4459 checkresult="no"
4461 else
4462 POVRAY_ROOT=${LLVM_EXTERNALS}/povray31
4464 USE_POVRAY=USE_POVRAY=1
4466 checkresult="yes, found in ${LLVM_EXTERNALS}/povray31"
4468 else
4469 checkresult="no"
4471 if test "$checkresult" = "no" ; then
4474 checkresult="no, not found in ${LLVM_EXTERNALS}/povray31"
4476 { echo "$as_me:$LINENO: result: $checkresult" >&5
4477 echo "${ECHO_T}$checkresult" >&6; }
4486 { echo "$as_me:$LINENO: checking for namd benchmark sources" >&5
4487 echo $ECHO_N "checking for namd benchmark sources... $ECHO_C" >&6; }
4488 if test -d "${LLVM_EXTERNALS}/spec_namd" ; then
4489 if test -n "" ; then
4490 if test -e "${LLVM_EXTERNALS}/spec_namd/" ; then
4491 NAMD_ROOT=${LLVM_EXTERNALS}/spec_namd
4493 USE_NAMD=USE_NAMD=1
4495 checkresult="yes, found in ${LLVM_EXTERNALS}/spec_namd"
4496 else
4497 checkresult="no"
4499 else
4500 NAMD_ROOT=${LLVM_EXTERNALS}/spec_namd
4502 USE_NAMD=USE_NAMD=1
4504 checkresult="yes, found in ${LLVM_EXTERNALS}/spec_namd"
4506 else
4507 checkresult="no"
4509 if test "$checkresult" = "no" ; then
4512 checkresult="no, not found in ${LLVM_EXTERNALS}/spec_namd"
4514 { echo "$as_me:$LINENO: result: $checkresult" >&5
4515 echo "${ECHO_T}$checkresult" >&6; }
4524 { echo "$as_me:$LINENO: checking for sweep3d benchmark sources" >&5
4525 echo $ECHO_N "checking for sweep3d benchmark sources... $ECHO_C" >&6; }
4526 if test -d "${LLVM_EXTERNALS}/sweep3d" ; then
4527 if test -n "" ; then
4528 if test -e "${LLVM_EXTERNALS}/sweep3d/" ; then
4529 SWEEP3D_ROOT=${LLVM_EXTERNALS}/sweep3d
4531 USE_SWEEP3D=USE_SWEEP3D=1
4533 checkresult="yes, found in ${LLVM_EXTERNALS}/sweep3d"
4534 else
4535 checkresult="no"
4537 else
4538 SWEEP3D_ROOT=${LLVM_EXTERNALS}/sweep3d
4540 USE_SWEEP3D=USE_SWEEP3D=1
4542 checkresult="yes, found in ${LLVM_EXTERNALS}/sweep3d"
4544 else
4545 checkresult="no"
4547 if test "$checkresult" = "no" ; then
4550 checkresult="no, not found in ${LLVM_EXTERNALS}/sweep3d"
4552 { echo "$as_me:$LINENO: result: $checkresult" >&5
4553 echo "${ECHO_T}$checkresult" >&6; }
4562 { echo "$as_me:$LINENO: checking for fpgrowth benchmark sources" >&5
4563 echo $ECHO_N "checking for fpgrowth benchmark sources... $ECHO_C" >&6; }
4564 if test -d "${LLVM_EXTERNALS}/fpgrowth" ; then
4565 if test -n "" ; then
4566 if test -e "${LLVM_EXTERNALS}/fpgrowth/" ; then
4567 FPGROWTH_ROOT=${LLVM_EXTERNALS}/fpgrowth
4569 USE_FPGROWTH=USE_FPGROWTH=1
4571 checkresult="yes, found in ${LLVM_EXTERNALS}/fpgrowth"
4572 else
4573 checkresult="no"
4575 else
4576 FPGROWTH_ROOT=${LLVM_EXTERNALS}/fpgrowth
4578 USE_FPGROWTH=USE_FPGROWTH=1
4580 checkresult="yes, found in ${LLVM_EXTERNALS}/fpgrowth"
4582 else
4583 checkresult="no"
4585 if test "$checkresult" = "no" ; then
4588 checkresult="no, not found in ${LLVM_EXTERNALS}/fpgrowth"
4590 { echo "$as_me:$LINENO: result: $checkresult" >&5
4591 echo "${ECHO_T}$checkresult" >&6; }
4600 { echo "$as_me:$LINENO: checking for alp benchmark sources" >&5
4601 echo $ECHO_N "checking for alp benchmark sources... $ECHO_C" >&6; }
4602 if test -d "${LLVM_EXTERNALS}/alp" ; then
4603 if test -n "" ; then
4604 if test -e "${LLVM_EXTERNALS}/alp/" ; then
4605 ALP_ROOT=${LLVM_EXTERNALS}/alp
4607 USE_ALP=USE_ALP=1
4609 checkresult="yes, found in ${LLVM_EXTERNALS}/alp"
4610 else
4611 checkresult="no"
4613 else
4614 ALP_ROOT=${LLVM_EXTERNALS}/alp
4616 USE_ALP=USE_ALP=1
4618 checkresult="yes, found in ${LLVM_EXTERNALS}/alp"
4620 else
4621 checkresult="no"
4623 if test "$checkresult" = "no" ; then
4626 checkresult="no, not found in ${LLVM_EXTERNALS}/alp"
4628 { echo "$as_me:$LINENO: result: $checkresult" >&5
4629 echo "${ECHO_T}$checkresult" >&6; }
4638 { echo "$as_me:$LINENO: checking for nurbs benchmark sources" >&5
4639 echo $ECHO_N "checking for nurbs benchmark sources... $ECHO_C" >&6; }
4640 if test -d "${LLVM_EXTERNALS}/nurbs" ; then
4641 if test -n "" ; then
4642 if test -e "${LLVM_EXTERNALS}/nurbs/" ; then
4643 NURBS_ROOT=${LLVM_EXTERNALS}/nurbs
4645 USE_NURBS=USE_NURBS=1
4647 checkresult="yes, found in ${LLVM_EXTERNALS}/nurbs"
4648 else
4649 checkresult="no"
4651 else
4652 NURBS_ROOT=${LLVM_EXTERNALS}/nurbs
4654 USE_NURBS=USE_NURBS=1
4656 checkresult="yes, found in ${LLVM_EXTERNALS}/nurbs"
4658 else
4659 checkresult="no"
4661 if test "$checkresult" = "no" ; then
4664 checkresult="no, not found in ${LLVM_EXTERNALS}/nurbs"
4666 { echo "$as_me:$LINENO: result: $checkresult" >&5
4667 echo "${ECHO_T}$checkresult" >&6; }
4676 { echo "$as_me:$LINENO: checking for hmmer benchmark sources" >&5
4677 echo $ECHO_N "checking for hmmer benchmark sources... $ECHO_C" >&6; }
4678 if test -d "${LLVM_EXTERNALS}/hmmer" ; then
4679 if test -n "" ; then
4680 if test -e "${LLVM_EXTERNALS}/hmmer/" ; then
4681 HMMER_ROOT=${LLVM_EXTERNALS}/hmmer
4683 USE_HMMER=USE_HMMER=1
4685 checkresult="yes, found in ${LLVM_EXTERNALS}/hmmer"
4686 else
4687 checkresult="no"
4689 else
4690 HMMER_ROOT=${LLVM_EXTERNALS}/hmmer
4692 USE_HMMER=USE_HMMER=1
4694 checkresult="yes, found in ${LLVM_EXTERNALS}/hmmer"
4696 else
4697 checkresult="no"
4699 if test "$checkresult" = "no" ; then
4702 checkresult="no, not found in ${LLVM_EXTERNALS}/hmmer"
4704 { echo "$as_me:$LINENO: result: $checkresult" >&5
4705 echo "${ECHO_T}$checkresult" >&6; }
4714 { echo "$as_me:$LINENO: checking for skidmarks10 benchmark sources" >&5
4715 echo $ECHO_N "checking for skidmarks10 benchmark sources... $ECHO_C" >&6; }
4716 if test -d "${LLVM_EXTERNALS}/skidmarks10" ; then
4717 if test -n "" ; then
4718 if test -e "${LLVM_EXTERNALS}/skidmarks10/" ; then
4719 SKIDMARKS10_ROOT=${LLVM_EXTERNALS}/skidmarks10
4721 USE_SKIDMARKS10=USE_SKIDMARKS10=1
4723 checkresult="yes, found in ${LLVM_EXTERNALS}/skidmarks10"
4724 else
4725 checkresult="no"
4727 else
4728 SKIDMARKS10_ROOT=${LLVM_EXTERNALS}/skidmarks10
4730 USE_SKIDMARKS10=USE_SKIDMARKS10=1
4732 checkresult="yes, found in ${LLVM_EXTERNALS}/skidmarks10"
4734 else
4735 checkresult="no"
4737 if test "$checkresult" = "no" ; then
4740 checkresult="no, not found in ${LLVM_EXTERNALS}/skidmarks10"
4742 { echo "$as_me:$LINENO: result: $checkresult" >&5
4743 echo "${ECHO_T}$checkresult" >&6; }
4749 # Check whether --enable-llc_diffs was given.
4750 if test "${enable_llc_diffs+set}" = set; then
4751 enableval=$enable_llc_diffs;
4752 else
4753 enableval=yes
4756 if test ${enableval} = "no"
4757 then
4758 DISABLE_LLC_DIFFS=DISABLE_LLC_DIFFS:=1
4760 else
4761 DISABLE_LLC_DIFFS=
4766 ac_ext=cpp
4767 ac_cpp='$CXXCPP $CPPFLAGS'
4768 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4769 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4770 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4771 if test -z "$CXX"; then
4772 if test -n "$CCC"; then
4773 CXX=$CCC
4774 else
4775 if test -n "$ac_tool_prefix"; then
4776 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4778 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4779 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4780 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4781 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4782 if test "${ac_cv_prog_CXX+set}" = set; then
4783 echo $ECHO_N "(cached) $ECHO_C" >&6
4784 else
4785 if test -n "$CXX"; then
4786 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4787 else
4788 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4789 for as_dir in $PATH
4791 IFS=$as_save_IFS
4792 test -z "$as_dir" && as_dir=.
4793 for ac_exec_ext in '' $ac_executable_extensions; do
4794 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4795 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4796 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4797 break 2
4799 done
4800 done
4801 IFS=$as_save_IFS
4805 CXX=$ac_cv_prog_CXX
4806 if test -n "$CXX"; then
4807 { echo "$as_me:$LINENO: result: $CXX" >&5
4808 echo "${ECHO_T}$CXX" >&6; }
4809 else
4810 { echo "$as_me:$LINENO: result: no" >&5
4811 echo "${ECHO_T}no" >&6; }
4815 test -n "$CXX" && break
4816 done
4818 if test -z "$CXX"; then
4819 ac_ct_CXX=$CXX
4820 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4822 # Extract the first word of "$ac_prog", so it can be a program name with args.
4823 set dummy $ac_prog; ac_word=$2
4824 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4825 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4826 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
4827 echo $ECHO_N "(cached) $ECHO_C" >&6
4828 else
4829 if test -n "$ac_ct_CXX"; then
4830 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4831 else
4832 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4833 for as_dir in $PATH
4835 IFS=$as_save_IFS
4836 test -z "$as_dir" && as_dir=.
4837 for ac_exec_ext in '' $ac_executable_extensions; do
4838 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4839 ac_cv_prog_ac_ct_CXX="$ac_prog"
4840 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4841 break 2
4843 done
4844 done
4845 IFS=$as_save_IFS
4849 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4850 if test -n "$ac_ct_CXX"; then
4851 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
4852 echo "${ECHO_T}$ac_ct_CXX" >&6; }
4853 else
4854 { echo "$as_me:$LINENO: result: no" >&5
4855 echo "${ECHO_T}no" >&6; }
4859 test -n "$ac_ct_CXX" && break
4860 done
4862 if test "x$ac_ct_CXX" = x; then
4863 CXX="g++"
4864 else
4865 case $cross_compiling:$ac_tool_warned in
4866 yes:)
4867 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4868 whose name does not start with the host triplet. If you think this
4869 configuration is useful to you, please write to autoconf@gnu.org." >&5
4870 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4871 whose name does not start with the host triplet. If you think this
4872 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4873 ac_tool_warned=yes ;;
4874 esac
4875 CXX=$ac_ct_CXX
4881 # Provide some information about the compiler.
4882 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
4883 ac_compiler=`set X $ac_compile; echo $2`
4884 { (ac_try="$ac_compiler --version >&5"
4885 case "(($ac_try" in
4886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4887 *) ac_try_echo=$ac_try;;
4888 esac
4889 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4890 (eval "$ac_compiler --version >&5") 2>&5
4891 ac_status=$?
4892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4893 (exit $ac_status); }
4894 { (ac_try="$ac_compiler -v >&5"
4895 case "(($ac_try" in
4896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4897 *) ac_try_echo=$ac_try;;
4898 esac
4899 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4900 (eval "$ac_compiler -v >&5") 2>&5
4901 ac_status=$?
4902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4903 (exit $ac_status); }
4904 { (ac_try="$ac_compiler -V >&5"
4905 case "(($ac_try" in
4906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4907 *) ac_try_echo=$ac_try;;
4908 esac
4909 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4910 (eval "$ac_compiler -V >&5") 2>&5
4911 ac_status=$?
4912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4913 (exit $ac_status); }
4915 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
4916 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
4917 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
4918 echo $ECHO_N "(cached) $ECHO_C" >&6
4919 else
4920 cat >conftest.$ac_ext <<_ACEOF
4921 /* confdefs.h. */
4922 _ACEOF
4923 cat confdefs.h >>conftest.$ac_ext
4924 cat >>conftest.$ac_ext <<_ACEOF
4925 /* end confdefs.h. */
4928 main ()
4930 #ifndef __GNUC__
4931 choke me
4932 #endif
4935 return 0;
4937 _ACEOF
4938 rm -f conftest.$ac_objext
4939 if { (ac_try="$ac_compile"
4940 case "(($ac_try" in
4941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4942 *) ac_try_echo=$ac_try;;
4943 esac
4944 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4945 (eval "$ac_compile") 2>conftest.er1
4946 ac_status=$?
4947 grep -v '^ *+' conftest.er1 >conftest.err
4948 rm -f conftest.er1
4949 cat conftest.err >&5
4950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4951 (exit $ac_status); } &&
4952 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4953 { (case "(($ac_try" in
4954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4955 *) ac_try_echo=$ac_try;;
4956 esac
4957 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4958 (eval "$ac_try") 2>&5
4959 ac_status=$?
4960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4961 (exit $ac_status); }; } &&
4962 { ac_try='test -s conftest.$ac_objext'
4963 { (case "(($ac_try" in
4964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4965 *) ac_try_echo=$ac_try;;
4966 esac
4967 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4968 (eval "$ac_try") 2>&5
4969 ac_status=$?
4970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4971 (exit $ac_status); }; }; then
4972 ac_compiler_gnu=yes
4973 else
4974 echo "$as_me: failed program was:" >&5
4975 sed 's/^/| /' conftest.$ac_ext >&5
4977 ac_compiler_gnu=no
4980 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4981 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4984 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
4985 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
4986 GXX=`test $ac_compiler_gnu = yes && echo yes`
4987 ac_test_CXXFLAGS=${CXXFLAGS+set}
4988 ac_save_CXXFLAGS=$CXXFLAGS
4989 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
4990 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
4991 if test "${ac_cv_prog_cxx_g+set}" = set; then
4992 echo $ECHO_N "(cached) $ECHO_C" >&6
4993 else
4994 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4995 ac_cxx_werror_flag=yes
4996 ac_cv_prog_cxx_g=no
4997 CXXFLAGS="-g"
4998 cat >conftest.$ac_ext <<_ACEOF
4999 /* confdefs.h. */
5000 _ACEOF
5001 cat confdefs.h >>conftest.$ac_ext
5002 cat >>conftest.$ac_ext <<_ACEOF
5003 /* end confdefs.h. */
5006 main ()
5010 return 0;
5012 _ACEOF
5013 rm -f conftest.$ac_objext
5014 if { (ac_try="$ac_compile"
5015 case "(($ac_try" in
5016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5017 *) ac_try_echo=$ac_try;;
5018 esac
5019 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5020 (eval "$ac_compile") 2>conftest.er1
5021 ac_status=$?
5022 grep -v '^ *+' conftest.er1 >conftest.err
5023 rm -f conftest.er1
5024 cat conftest.err >&5
5025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5026 (exit $ac_status); } &&
5027 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5028 { (case "(($ac_try" in
5029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5030 *) ac_try_echo=$ac_try;;
5031 esac
5032 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5033 (eval "$ac_try") 2>&5
5034 ac_status=$?
5035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5036 (exit $ac_status); }; } &&
5037 { ac_try='test -s conftest.$ac_objext'
5038 { (case "(($ac_try" in
5039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5040 *) ac_try_echo=$ac_try;;
5041 esac
5042 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5043 (eval "$ac_try") 2>&5
5044 ac_status=$?
5045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5046 (exit $ac_status); }; }; then
5047 ac_cv_prog_cxx_g=yes
5048 else
5049 echo "$as_me: failed program was:" >&5
5050 sed 's/^/| /' conftest.$ac_ext >&5
5052 CXXFLAGS=""
5053 cat >conftest.$ac_ext <<_ACEOF
5054 /* confdefs.h. */
5055 _ACEOF
5056 cat confdefs.h >>conftest.$ac_ext
5057 cat >>conftest.$ac_ext <<_ACEOF
5058 /* end confdefs.h. */
5061 main ()
5065 return 0;
5067 _ACEOF
5068 rm -f conftest.$ac_objext
5069 if { (ac_try="$ac_compile"
5070 case "(($ac_try" in
5071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5072 *) ac_try_echo=$ac_try;;
5073 esac
5074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5075 (eval "$ac_compile") 2>conftest.er1
5076 ac_status=$?
5077 grep -v '^ *+' conftest.er1 >conftest.err
5078 rm -f conftest.er1
5079 cat conftest.err >&5
5080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5081 (exit $ac_status); } &&
5082 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5083 { (case "(($ac_try" in
5084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5085 *) ac_try_echo=$ac_try;;
5086 esac
5087 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5088 (eval "$ac_try") 2>&5
5089 ac_status=$?
5090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5091 (exit $ac_status); }; } &&
5092 { ac_try='test -s conftest.$ac_objext'
5093 { (case "(($ac_try" in
5094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5095 *) ac_try_echo=$ac_try;;
5096 esac
5097 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5098 (eval "$ac_try") 2>&5
5099 ac_status=$?
5100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5101 (exit $ac_status); }; }; then
5103 else
5104 echo "$as_me: failed program was:" >&5
5105 sed 's/^/| /' conftest.$ac_ext >&5
5107 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5108 CXXFLAGS="-g"
5109 cat >conftest.$ac_ext <<_ACEOF
5110 /* confdefs.h. */
5111 _ACEOF
5112 cat confdefs.h >>conftest.$ac_ext
5113 cat >>conftest.$ac_ext <<_ACEOF
5114 /* end confdefs.h. */
5117 main ()
5121 return 0;
5123 _ACEOF
5124 rm -f conftest.$ac_objext
5125 if { (ac_try="$ac_compile"
5126 case "(($ac_try" in
5127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5128 *) ac_try_echo=$ac_try;;
5129 esac
5130 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5131 (eval "$ac_compile") 2>conftest.er1
5132 ac_status=$?
5133 grep -v '^ *+' conftest.er1 >conftest.err
5134 rm -f conftest.er1
5135 cat conftest.err >&5
5136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5137 (exit $ac_status); } &&
5138 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5139 { (case "(($ac_try" in
5140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5141 *) ac_try_echo=$ac_try;;
5142 esac
5143 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5144 (eval "$ac_try") 2>&5
5145 ac_status=$?
5146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5147 (exit $ac_status); }; } &&
5148 { ac_try='test -s conftest.$ac_objext'
5149 { (case "(($ac_try" in
5150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5151 *) ac_try_echo=$ac_try;;
5152 esac
5153 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5154 (eval "$ac_try") 2>&5
5155 ac_status=$?
5156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5157 (exit $ac_status); }; }; then
5158 ac_cv_prog_cxx_g=yes
5159 else
5160 echo "$as_me: failed program was:" >&5
5161 sed 's/^/| /' conftest.$ac_ext >&5
5166 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5169 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5172 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5173 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5175 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5176 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
5177 if test "$ac_test_CXXFLAGS" = set; then
5178 CXXFLAGS=$ac_save_CXXFLAGS
5179 elif test $ac_cv_prog_cxx_g = yes; then
5180 if test "$GXX" = yes; then
5181 CXXFLAGS="-g -O2"
5182 else
5183 CXXFLAGS="-g"
5185 else
5186 if test "$GXX" = yes; then
5187 CXXFLAGS="-O2"
5188 else
5189 CXXFLAGS=
5192 ac_ext=c
5193 ac_cpp='$CPP $CPPFLAGS'
5194 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5195 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5196 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5198 ac_ext=c
5199 ac_cpp='$CPP $CPPFLAGS'
5200 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5201 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5202 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5203 if test -n "$ac_tool_prefix"; then
5204 for ac_prog in gcc
5206 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5207 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5208 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5209 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5210 if test "${ac_cv_prog_CC+set}" = set; then
5211 echo $ECHO_N "(cached) $ECHO_C" >&6
5212 else
5213 if test -n "$CC"; then
5214 ac_cv_prog_CC="$CC" # Let the user override the test.
5215 else
5216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5217 for as_dir in $PATH
5219 IFS=$as_save_IFS
5220 test -z "$as_dir" && as_dir=.
5221 for ac_exec_ext in '' $ac_executable_extensions; do
5222 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5223 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5224 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5225 break 2
5227 done
5228 done
5229 IFS=$as_save_IFS
5233 CC=$ac_cv_prog_CC
5234 if test -n "$CC"; then
5235 { echo "$as_me:$LINENO: result: $CC" >&5
5236 echo "${ECHO_T}$CC" >&6; }
5237 else
5238 { echo "$as_me:$LINENO: result: no" >&5
5239 echo "${ECHO_T}no" >&6; }
5243 test -n "$CC" && break
5244 done
5246 if test -z "$CC"; then
5247 ac_ct_CC=$CC
5248 for ac_prog in gcc
5250 # Extract the first word of "$ac_prog", so it can be a program name with args.
5251 set dummy $ac_prog; ac_word=$2
5252 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5253 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5254 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5255 echo $ECHO_N "(cached) $ECHO_C" >&6
5256 else
5257 if test -n "$ac_ct_CC"; then
5258 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5259 else
5260 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5261 for as_dir in $PATH
5263 IFS=$as_save_IFS
5264 test -z "$as_dir" && as_dir=.
5265 for ac_exec_ext in '' $ac_executable_extensions; do
5266 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5267 ac_cv_prog_ac_ct_CC="$ac_prog"
5268 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5269 break 2
5271 done
5272 done
5273 IFS=$as_save_IFS
5277 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5278 if test -n "$ac_ct_CC"; then
5279 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5280 echo "${ECHO_T}$ac_ct_CC" >&6; }
5281 else
5282 { echo "$as_me:$LINENO: result: no" >&5
5283 echo "${ECHO_T}no" >&6; }
5287 test -n "$ac_ct_CC" && break
5288 done
5290 if test "x$ac_ct_CC" = x; then
5291 CC=""
5292 else
5293 case $cross_compiling:$ac_tool_warned in
5294 yes:)
5295 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5296 whose name does not start with the host triplet. If you think this
5297 configuration is useful to you, please write to autoconf@gnu.org." >&5
5298 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5299 whose name does not start with the host triplet. If you think this
5300 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5301 ac_tool_warned=yes ;;
5302 esac
5303 CC=$ac_ct_CC
5308 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
5309 See \`config.log' for more details." >&5
5310 echo "$as_me: error: no acceptable C compiler found in \$PATH
5311 See \`config.log' for more details." >&2;}
5312 { (exit 1); exit 1; }; }
5314 # Provide some information about the compiler.
5315 echo "$as_me:$LINENO: checking for C compiler version" >&5
5316 ac_compiler=`set X $ac_compile; echo $2`
5317 { (ac_try="$ac_compiler --version >&5"
5318 case "(($ac_try" in
5319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5320 *) ac_try_echo=$ac_try;;
5321 esac
5322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5323 (eval "$ac_compiler --version >&5") 2>&5
5324 ac_status=$?
5325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5326 (exit $ac_status); }
5327 { (ac_try="$ac_compiler -v >&5"
5328 case "(($ac_try" in
5329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5330 *) ac_try_echo=$ac_try;;
5331 esac
5332 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5333 (eval "$ac_compiler -v >&5") 2>&5
5334 ac_status=$?
5335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5336 (exit $ac_status); }
5337 { (ac_try="$ac_compiler -V >&5"
5338 case "(($ac_try" in
5339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5340 *) ac_try_echo=$ac_try;;
5341 esac
5342 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5343 (eval "$ac_compiler -V >&5") 2>&5
5344 ac_status=$?
5345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5346 (exit $ac_status); }
5348 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
5349 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
5350 if test "${ac_cv_c_compiler_gnu+set}" = set; then
5351 echo $ECHO_N "(cached) $ECHO_C" >&6
5352 else
5353 cat >conftest.$ac_ext <<_ACEOF
5354 /* confdefs.h. */
5355 _ACEOF
5356 cat confdefs.h >>conftest.$ac_ext
5357 cat >>conftest.$ac_ext <<_ACEOF
5358 /* end confdefs.h. */
5361 main ()
5363 #ifndef __GNUC__
5364 choke me
5365 #endif
5368 return 0;
5370 _ACEOF
5371 rm -f conftest.$ac_objext
5372 if { (ac_try="$ac_compile"
5373 case "(($ac_try" in
5374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5375 *) ac_try_echo=$ac_try;;
5376 esac
5377 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5378 (eval "$ac_compile") 2>conftest.er1
5379 ac_status=$?
5380 grep -v '^ *+' conftest.er1 >conftest.err
5381 rm -f conftest.er1
5382 cat conftest.err >&5
5383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5384 (exit $ac_status); } &&
5385 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5386 { (case "(($ac_try" in
5387 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5388 *) ac_try_echo=$ac_try;;
5389 esac
5390 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5391 (eval "$ac_try") 2>&5
5392 ac_status=$?
5393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5394 (exit $ac_status); }; } &&
5395 { ac_try='test -s conftest.$ac_objext'
5396 { (case "(($ac_try" in
5397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5398 *) ac_try_echo=$ac_try;;
5399 esac
5400 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5401 (eval "$ac_try") 2>&5
5402 ac_status=$?
5403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5404 (exit $ac_status); }; }; then
5405 ac_compiler_gnu=yes
5406 else
5407 echo "$as_me: failed program was:" >&5
5408 sed 's/^/| /' conftest.$ac_ext >&5
5410 ac_compiler_gnu=no
5413 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5414 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5417 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
5418 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
5419 GCC=`test $ac_compiler_gnu = yes && echo yes`
5420 ac_test_CFLAGS=${CFLAGS+set}
5421 ac_save_CFLAGS=$CFLAGS
5422 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
5423 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
5424 if test "${ac_cv_prog_cc_g+set}" = set; then
5425 echo $ECHO_N "(cached) $ECHO_C" >&6
5426 else
5427 ac_save_c_werror_flag=$ac_c_werror_flag
5428 ac_c_werror_flag=yes
5429 ac_cv_prog_cc_g=no
5430 CFLAGS="-g"
5431 cat >conftest.$ac_ext <<_ACEOF
5432 /* confdefs.h. */
5433 _ACEOF
5434 cat confdefs.h >>conftest.$ac_ext
5435 cat >>conftest.$ac_ext <<_ACEOF
5436 /* end confdefs.h. */
5439 main ()
5443 return 0;
5445 _ACEOF
5446 rm -f conftest.$ac_objext
5447 if { (ac_try="$ac_compile"
5448 case "(($ac_try" in
5449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5450 *) ac_try_echo=$ac_try;;
5451 esac
5452 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5453 (eval "$ac_compile") 2>conftest.er1
5454 ac_status=$?
5455 grep -v '^ *+' conftest.er1 >conftest.err
5456 rm -f conftest.er1
5457 cat conftest.err >&5
5458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5459 (exit $ac_status); } &&
5460 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5461 { (case "(($ac_try" in
5462 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5463 *) ac_try_echo=$ac_try;;
5464 esac
5465 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5466 (eval "$ac_try") 2>&5
5467 ac_status=$?
5468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5469 (exit $ac_status); }; } &&
5470 { ac_try='test -s conftest.$ac_objext'
5471 { (case "(($ac_try" in
5472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5473 *) ac_try_echo=$ac_try;;
5474 esac
5475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5476 (eval "$ac_try") 2>&5
5477 ac_status=$?
5478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5479 (exit $ac_status); }; }; then
5480 ac_cv_prog_cc_g=yes
5481 else
5482 echo "$as_me: failed program was:" >&5
5483 sed 's/^/| /' conftest.$ac_ext >&5
5485 CFLAGS=""
5486 cat >conftest.$ac_ext <<_ACEOF
5487 /* confdefs.h. */
5488 _ACEOF
5489 cat confdefs.h >>conftest.$ac_ext
5490 cat >>conftest.$ac_ext <<_ACEOF
5491 /* end confdefs.h. */
5494 main ()
5498 return 0;
5500 _ACEOF
5501 rm -f conftest.$ac_objext
5502 if { (ac_try="$ac_compile"
5503 case "(($ac_try" in
5504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5505 *) ac_try_echo=$ac_try;;
5506 esac
5507 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5508 (eval "$ac_compile") 2>conftest.er1
5509 ac_status=$?
5510 grep -v '^ *+' conftest.er1 >conftest.err
5511 rm -f conftest.er1
5512 cat conftest.err >&5
5513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5514 (exit $ac_status); } &&
5515 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5516 { (case "(($ac_try" in
5517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5518 *) ac_try_echo=$ac_try;;
5519 esac
5520 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5521 (eval "$ac_try") 2>&5
5522 ac_status=$?
5523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5524 (exit $ac_status); }; } &&
5525 { ac_try='test -s conftest.$ac_objext'
5526 { (case "(($ac_try" in
5527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5528 *) ac_try_echo=$ac_try;;
5529 esac
5530 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5531 (eval "$ac_try") 2>&5
5532 ac_status=$?
5533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5534 (exit $ac_status); }; }; then
5536 else
5537 echo "$as_me: failed program was:" >&5
5538 sed 's/^/| /' conftest.$ac_ext >&5
5540 ac_c_werror_flag=$ac_save_c_werror_flag
5541 CFLAGS="-g"
5542 cat >conftest.$ac_ext <<_ACEOF
5543 /* confdefs.h. */
5544 _ACEOF
5545 cat confdefs.h >>conftest.$ac_ext
5546 cat >>conftest.$ac_ext <<_ACEOF
5547 /* end confdefs.h. */
5550 main ()
5554 return 0;
5556 _ACEOF
5557 rm -f conftest.$ac_objext
5558 if { (ac_try="$ac_compile"
5559 case "(($ac_try" in
5560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5561 *) ac_try_echo=$ac_try;;
5562 esac
5563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5564 (eval "$ac_compile") 2>conftest.er1
5565 ac_status=$?
5566 grep -v '^ *+' conftest.er1 >conftest.err
5567 rm -f conftest.er1
5568 cat conftest.err >&5
5569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5570 (exit $ac_status); } &&
5571 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5572 { (case "(($ac_try" in
5573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5574 *) ac_try_echo=$ac_try;;
5575 esac
5576 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5577 (eval "$ac_try") 2>&5
5578 ac_status=$?
5579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5580 (exit $ac_status); }; } &&
5581 { ac_try='test -s conftest.$ac_objext'
5582 { (case "(($ac_try" in
5583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5584 *) ac_try_echo=$ac_try;;
5585 esac
5586 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5587 (eval "$ac_try") 2>&5
5588 ac_status=$?
5589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5590 (exit $ac_status); }; }; then
5591 ac_cv_prog_cc_g=yes
5592 else
5593 echo "$as_me: failed program was:" >&5
5594 sed 's/^/| /' conftest.$ac_ext >&5
5599 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5602 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5605 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5606 ac_c_werror_flag=$ac_save_c_werror_flag
5608 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
5609 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
5610 if test "$ac_test_CFLAGS" = set; then
5611 CFLAGS=$ac_save_CFLAGS
5612 elif test $ac_cv_prog_cc_g = yes; then
5613 if test "$GCC" = yes; then
5614 CFLAGS="-g -O2"
5615 else
5616 CFLAGS="-g"
5618 else
5619 if test "$GCC" = yes; then
5620 CFLAGS="-O2"
5621 else
5622 CFLAGS=
5625 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
5626 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
5627 if test "${ac_cv_prog_cc_c89+set}" = set; then
5628 echo $ECHO_N "(cached) $ECHO_C" >&6
5629 else
5630 ac_cv_prog_cc_c89=no
5631 ac_save_CC=$CC
5632 cat >conftest.$ac_ext <<_ACEOF
5633 /* confdefs.h. */
5634 _ACEOF
5635 cat confdefs.h >>conftest.$ac_ext
5636 cat >>conftest.$ac_ext <<_ACEOF
5637 /* end confdefs.h. */
5638 #include <stdarg.h>
5639 #include <stdio.h>
5640 #include <sys/types.h>
5641 #include <sys/stat.h>
5642 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5643 struct buf { int x; };
5644 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5645 static char *e (p, i)
5646 char **p;
5647 int i;
5649 return p[i];
5651 static char *f (char * (*g) (char **, int), char **p, ...)
5653 char *s;
5654 va_list v;
5655 va_start (v,p);
5656 s = g (p, va_arg (v,int));
5657 va_end (v);
5658 return s;
5661 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5662 function prototypes and stuff, but not '\xHH' hex character constants.
5663 These don't provoke an error unfortunately, instead are silently treated
5664 as 'x'. The following induces an error, until -std is added to get
5665 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5666 array size at least. It's necessary to write '\x00'==0 to get something
5667 that's true only with -std. */
5668 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5670 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5671 inside strings and character constants. */
5672 #define FOO(x) 'x'
5673 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5675 int test (int i, double x);
5676 struct s1 {int (*f) (int a);};
5677 struct s2 {int (*f) (double a);};
5678 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5679 int argc;
5680 char **argv;
5682 main ()
5684 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5686 return 0;
5688 _ACEOF
5689 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5690 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5692 CC="$ac_save_CC $ac_arg"
5693 rm -f conftest.$ac_objext
5694 if { (ac_try="$ac_compile"
5695 case "(($ac_try" in
5696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5697 *) ac_try_echo=$ac_try;;
5698 esac
5699 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5700 (eval "$ac_compile") 2>conftest.er1
5701 ac_status=$?
5702 grep -v '^ *+' conftest.er1 >conftest.err
5703 rm -f conftest.er1
5704 cat conftest.err >&5
5705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5706 (exit $ac_status); } &&
5707 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5708 { (case "(($ac_try" in
5709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5710 *) ac_try_echo=$ac_try;;
5711 esac
5712 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5713 (eval "$ac_try") 2>&5
5714 ac_status=$?
5715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5716 (exit $ac_status); }; } &&
5717 { ac_try='test -s conftest.$ac_objext'
5718 { (case "(($ac_try" in
5719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5720 *) ac_try_echo=$ac_try;;
5721 esac
5722 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5723 (eval "$ac_try") 2>&5
5724 ac_status=$?
5725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5726 (exit $ac_status); }; }; then
5727 ac_cv_prog_cc_c89=$ac_arg
5728 else
5729 echo "$as_me: failed program was:" >&5
5730 sed 's/^/| /' conftest.$ac_ext >&5
5735 rm -f core conftest.err conftest.$ac_objext
5736 test "x$ac_cv_prog_cc_c89" != "xno" && break
5737 done
5738 rm -f conftest.$ac_ext
5739 CC=$ac_save_CC
5742 # AC_CACHE_VAL
5743 case "x$ac_cv_prog_cc_c89" in
5745 { echo "$as_me:$LINENO: result: none needed" >&5
5746 echo "${ECHO_T}none needed" >&6; } ;;
5747 xno)
5748 { echo "$as_me:$LINENO: result: unsupported" >&5
5749 echo "${ECHO_T}unsupported" >&6; } ;;
5751 CC="$CC $ac_cv_prog_cc_c89"
5752 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
5753 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
5754 esac
5757 ac_ext=c
5758 ac_cpp='$CPP $CPPFLAGS'
5759 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5760 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5761 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5763 ac_ext=c
5764 ac_cpp='$CPP $CPPFLAGS'
5765 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5766 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5767 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5768 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5769 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
5770 # On Suns, sometimes $CPP names a directory.
5771 if test -n "$CPP" && test -d "$CPP"; then
5772 CPP=
5774 if test -z "$CPP"; then
5775 if test "${ac_cv_prog_CPP+set}" = set; then
5776 echo $ECHO_N "(cached) $ECHO_C" >&6
5777 else
5778 # Double quotes because CPP needs to be expanded
5779 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5781 ac_preproc_ok=false
5782 for ac_c_preproc_warn_flag in '' yes
5784 # Use a header file that comes with gcc, so configuring glibc
5785 # with a fresh cross-compiler works.
5786 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5787 # <limits.h> exists even on freestanding compilers.
5788 # On the NeXT, cc -E runs the code through the compiler's parser,
5789 # not just through cpp. "Syntax error" is here to catch this case.
5790 cat >conftest.$ac_ext <<_ACEOF
5791 /* confdefs.h. */
5792 _ACEOF
5793 cat confdefs.h >>conftest.$ac_ext
5794 cat >>conftest.$ac_ext <<_ACEOF
5795 /* end confdefs.h. */
5796 #ifdef __STDC__
5797 # include <limits.h>
5798 #else
5799 # include <assert.h>
5800 #endif
5801 Syntax error
5802 _ACEOF
5803 if { (ac_try="$ac_cpp conftest.$ac_ext"
5804 case "(($ac_try" in
5805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5806 *) ac_try_echo=$ac_try;;
5807 esac
5808 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5809 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5810 ac_status=$?
5811 grep -v '^ *+' conftest.er1 >conftest.err
5812 rm -f conftest.er1
5813 cat conftest.err >&5
5814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5815 (exit $ac_status); } >/dev/null; then
5816 if test -s conftest.err; then
5817 ac_cpp_err=$ac_c_preproc_warn_flag
5818 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5819 else
5820 ac_cpp_err=
5822 else
5823 ac_cpp_err=yes
5825 if test -z "$ac_cpp_err"; then
5827 else
5828 echo "$as_me: failed program was:" >&5
5829 sed 's/^/| /' conftest.$ac_ext >&5
5831 # Broken: fails on valid input.
5832 continue
5835 rm -f conftest.err conftest.$ac_ext
5837 # OK, works on sane cases. Now check whether nonexistent headers
5838 # can be detected and how.
5839 cat >conftest.$ac_ext <<_ACEOF
5840 /* confdefs.h. */
5841 _ACEOF
5842 cat confdefs.h >>conftest.$ac_ext
5843 cat >>conftest.$ac_ext <<_ACEOF
5844 /* end confdefs.h. */
5845 #include <ac_nonexistent.h>
5846 _ACEOF
5847 if { (ac_try="$ac_cpp conftest.$ac_ext"
5848 case "(($ac_try" in
5849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5850 *) ac_try_echo=$ac_try;;
5851 esac
5852 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5853 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5854 ac_status=$?
5855 grep -v '^ *+' conftest.er1 >conftest.err
5856 rm -f conftest.er1
5857 cat conftest.err >&5
5858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5859 (exit $ac_status); } >/dev/null; then
5860 if test -s conftest.err; then
5861 ac_cpp_err=$ac_c_preproc_warn_flag
5862 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5863 else
5864 ac_cpp_err=
5866 else
5867 ac_cpp_err=yes
5869 if test -z "$ac_cpp_err"; then
5870 # Broken: success on invalid input.
5871 continue
5872 else
5873 echo "$as_me: failed program was:" >&5
5874 sed 's/^/| /' conftest.$ac_ext >&5
5876 # Passes both tests.
5877 ac_preproc_ok=:
5878 break
5881 rm -f conftest.err conftest.$ac_ext
5883 done
5884 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5885 rm -f conftest.err conftest.$ac_ext
5886 if $ac_preproc_ok; then
5887 break
5890 done
5891 ac_cv_prog_CPP=$CPP
5894 CPP=$ac_cv_prog_CPP
5895 else
5896 ac_cv_prog_CPP=$CPP
5898 { echo "$as_me:$LINENO: result: $CPP" >&5
5899 echo "${ECHO_T}$CPP" >&6; }
5900 ac_preproc_ok=false
5901 for ac_c_preproc_warn_flag in '' yes
5903 # Use a header file that comes with gcc, so configuring glibc
5904 # with a fresh cross-compiler works.
5905 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5906 # <limits.h> exists even on freestanding compilers.
5907 # On the NeXT, cc -E runs the code through the compiler's parser,
5908 # not just through cpp. "Syntax error" is here to catch this case.
5909 cat >conftest.$ac_ext <<_ACEOF
5910 /* confdefs.h. */
5911 _ACEOF
5912 cat confdefs.h >>conftest.$ac_ext
5913 cat >>conftest.$ac_ext <<_ACEOF
5914 /* end confdefs.h. */
5915 #ifdef __STDC__
5916 # include <limits.h>
5917 #else
5918 # include <assert.h>
5919 #endif
5920 Syntax error
5921 _ACEOF
5922 if { (ac_try="$ac_cpp conftest.$ac_ext"
5923 case "(($ac_try" in
5924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5925 *) ac_try_echo=$ac_try;;
5926 esac
5927 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5928 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5929 ac_status=$?
5930 grep -v '^ *+' conftest.er1 >conftest.err
5931 rm -f conftest.er1
5932 cat conftest.err >&5
5933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5934 (exit $ac_status); } >/dev/null; then
5935 if test -s conftest.err; then
5936 ac_cpp_err=$ac_c_preproc_warn_flag
5937 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5938 else
5939 ac_cpp_err=
5941 else
5942 ac_cpp_err=yes
5944 if test -z "$ac_cpp_err"; then
5946 else
5947 echo "$as_me: failed program was:" >&5
5948 sed 's/^/| /' conftest.$ac_ext >&5
5950 # Broken: fails on valid input.
5951 continue
5954 rm -f conftest.err conftest.$ac_ext
5956 # OK, works on sane cases. Now check whether nonexistent headers
5957 # can be detected and how.
5958 cat >conftest.$ac_ext <<_ACEOF
5959 /* confdefs.h. */
5960 _ACEOF
5961 cat confdefs.h >>conftest.$ac_ext
5962 cat >>conftest.$ac_ext <<_ACEOF
5963 /* end confdefs.h. */
5964 #include <ac_nonexistent.h>
5965 _ACEOF
5966 if { (ac_try="$ac_cpp conftest.$ac_ext"
5967 case "(($ac_try" in
5968 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5969 *) ac_try_echo=$ac_try;;
5970 esac
5971 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5972 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5973 ac_status=$?
5974 grep -v '^ *+' conftest.er1 >conftest.err
5975 rm -f conftest.er1
5976 cat conftest.err >&5
5977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5978 (exit $ac_status); } >/dev/null; then
5979 if test -s conftest.err; then
5980 ac_cpp_err=$ac_c_preproc_warn_flag
5981 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5982 else
5983 ac_cpp_err=
5985 else
5986 ac_cpp_err=yes
5988 if test -z "$ac_cpp_err"; then
5989 # Broken: success on invalid input.
5990 continue
5991 else
5992 echo "$as_me: failed program was:" >&5
5993 sed 's/^/| /' conftest.$ac_ext >&5
5995 # Passes both tests.
5996 ac_preproc_ok=:
5997 break
6000 rm -f conftest.err conftest.$ac_ext
6002 done
6003 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6004 rm -f conftest.err conftest.$ac_ext
6005 if $ac_preproc_ok; then
6007 else
6008 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
6009 See \`config.log' for more details." >&5
6010 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6011 See \`config.log' for more details." >&2;}
6012 { (exit 1); exit 1; }; }
6015 ac_ext=c
6016 ac_cpp='$CPP $CPPFLAGS'
6017 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6018 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6019 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6023 { echo "$as_me:$LINENO: checking for GNU make" >&5
6024 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
6025 if test "${llvm_cv_gnu_make_command+set}" = set; then
6026 echo $ECHO_N "(cached) $ECHO_C" >&6
6027 else
6028 llvm_cv_gnu_make_command=''
6029 for a in "$MAKE" make gmake gnumake ; do
6030 if test -z "$a" ; then continue ; fi ;
6031 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
6032 then
6033 llvm_cv_gnu_make_command=$a ;
6034 break;
6036 done
6038 { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
6039 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
6040 if test "x$llvm_cv_gnu_make_command" != "x" ; then
6041 ifGNUmake='' ;
6042 else
6043 ifGNUmake='#' ;
6044 { echo "$as_me:$LINENO: result: \"Not found\"" >&5
6045 echo "${ECHO_T}\"Not found\"" >&6; };
6049 if test -z "$llvm_cv_gnu_make_command" ; then
6050 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
6051 echo "$as_me: error: GNU Make required but not found" >&2;}
6052 { (exit 1); exit 1; }; }
6055 # Check whether --enable-shared was given.
6056 if test "${enable_shared+set}" = set; then
6057 enableval=$enable_shared; p=${PACKAGE-default}
6058 case $enableval in
6059 yes) enable_shared=yes ;;
6060 no) enable_shared=no ;;
6062 enable_shared=no
6063 # Look at the argument we got. We use all the common list separators.
6064 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6065 for pkg in $enableval; do
6066 IFS="$lt_save_ifs"
6067 if test "X$pkg" = "X$p"; then
6068 enable_shared=yes
6070 done
6071 IFS="$lt_save_ifs"
6073 esac
6074 else
6075 enable_shared=yes
6079 # Check whether --enable-static was given.
6080 if test "${enable_static+set}" = set; then
6081 enableval=$enable_static; p=${PACKAGE-default}
6082 case $enableval in
6083 yes) enable_static=yes ;;
6084 no) enable_static=no ;;
6086 enable_static=no
6087 # Look at the argument we got. We use all the common list separators.
6088 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6089 for pkg in $enableval; do
6090 IFS="$lt_save_ifs"
6091 if test "X$pkg" = "X$p"; then
6092 enable_static=yes
6094 done
6095 IFS="$lt_save_ifs"
6097 esac
6098 else
6099 enable_static=yes
6103 # Check whether --enable-fast-install was given.
6104 if test "${enable_fast_install+set}" = set; then
6105 enableval=$enable_fast_install; p=${PACKAGE-default}
6106 case $enableval in
6107 yes) enable_fast_install=yes ;;
6108 no) enable_fast_install=no ;;
6110 enable_fast_install=no
6111 # Look at the argument we got. We use all the common list separators.
6112 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6113 for pkg in $enableval; do
6114 IFS="$lt_save_ifs"
6115 if test "X$pkg" = "X$p"; then
6116 enable_fast_install=yes
6118 done
6119 IFS="$lt_save_ifs"
6121 esac
6122 else
6123 enable_fast_install=yes
6127 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
6128 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
6129 if test "${lt_cv_path_SED+set}" = set; then
6130 echo $ECHO_N "(cached) $ECHO_C" >&6
6131 else
6132 # Loop through the user's path and test for sed and gsed.
6133 # Then use that list of sed's as ones to test for truncation.
6134 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6135 for as_dir in $PATH
6137 IFS=$as_save_IFS
6138 test -z "$as_dir" && as_dir=.
6139 for lt_ac_prog in sed gsed; do
6140 for ac_exec_ext in '' $ac_executable_extensions; do
6141 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
6142 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
6144 done
6145 done
6146 done
6147 lt_ac_max=0
6148 lt_ac_count=0
6149 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
6150 # along with /bin/sed that truncates output.
6151 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
6152 test ! -f $lt_ac_sed && continue
6153 cat /dev/null > conftest.in
6154 lt_ac_count=0
6155 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
6156 # Check for GNU sed and select it if it is found.
6157 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
6158 lt_cv_path_SED=$lt_ac_sed
6159 break
6161 while true; do
6162 cat conftest.in conftest.in >conftest.tmp
6163 mv conftest.tmp conftest.in
6164 cp conftest.in conftest.nl
6165 echo >>conftest.nl
6166 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
6167 cmp -s conftest.out conftest.nl || break
6168 # 10000 chars as input seems more than enough
6169 test $lt_ac_count -gt 10 && break
6170 lt_ac_count=`expr $lt_ac_count + 1`
6171 if test $lt_ac_count -gt $lt_ac_max; then
6172 lt_ac_max=$lt_ac_count
6173 lt_cv_path_SED=$lt_ac_sed
6175 done
6176 done
6180 SED=$lt_cv_path_SED
6181 { echo "$as_me:$LINENO: result: $SED" >&5
6182 echo "${ECHO_T}$SED" >&6; }
6185 # Check whether --with-gnu-ld was given.
6186 if test "${with_gnu_ld+set}" = set; then
6187 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6188 else
6189 with_gnu_ld=no
6192 ac_prog=ld
6193 if test "$GCC" = yes; then
6194 # Check if gcc -print-prog-name=ld gives a path.
6195 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
6196 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
6197 case $host in
6198 *-*-mingw*)
6199 # gcc leaves a trailing carriage return which upsets mingw
6200 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6202 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6203 esac
6204 case $ac_prog in
6205 # Accept absolute paths.
6206 [\\/]* | ?:[\\/]*)
6207 re_direlt='/[^/][^/]*/\.\./'
6208 # Canonicalize the pathname of ld
6209 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
6210 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
6211 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
6212 done
6213 test -z "$LD" && LD="$ac_prog"
6216 # If it fails, then pretend we aren't using GCC.
6217 ac_prog=ld
6220 # If it is relative, then search for the first ld in PATH.
6221 with_gnu_ld=unknown
6223 esac
6224 elif test "$with_gnu_ld" = yes; then
6225 { echo "$as_me:$LINENO: checking for GNU ld" >&5
6226 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
6227 else
6228 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
6229 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
6231 if test "${lt_cv_path_LD+set}" = set; then
6232 echo $ECHO_N "(cached) $ECHO_C" >&6
6233 else
6234 if test -z "$LD"; then
6235 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6236 for ac_dir in $PATH; do
6237 IFS="$lt_save_ifs"
6238 test -z "$ac_dir" && ac_dir=.
6239 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6240 lt_cv_path_LD="$ac_dir/$ac_prog"
6241 # Check to see if the program is GNU ld. I'd rather use --version,
6242 # but apparently some variants of GNU ld only accept -v.
6243 # Break only if it was the GNU/non-GNU ld that we prefer.
6244 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6245 *GNU* | *'with BFD'*)
6246 test "$with_gnu_ld" != no && break
6249 test "$with_gnu_ld" != yes && break
6251 esac
6253 done
6254 IFS="$lt_save_ifs"
6255 else
6256 lt_cv_path_LD="$LD" # Let the user override the test with a path.
6260 LD="$lt_cv_path_LD"
6261 if test -n "$LD"; then
6262 { echo "$as_me:$LINENO: result: $LD" >&5
6263 echo "${ECHO_T}$LD" >&6; }
6264 else
6265 { echo "$as_me:$LINENO: result: no" >&5
6266 echo "${ECHO_T}no" >&6; }
6268 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
6269 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
6270 { (exit 1); exit 1; }; }
6271 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
6272 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
6273 if test "${lt_cv_prog_gnu_ld+set}" = set; then
6274 echo $ECHO_N "(cached) $ECHO_C" >&6
6275 else
6276 # I'd rather use --version here, but apparently some GNU lds only accept -v.
6277 case `$LD -v 2>&1 </dev/null` in
6278 *GNU* | *'with BFD'*)
6279 lt_cv_prog_gnu_ld=yes
6282 lt_cv_prog_gnu_ld=no
6284 esac
6286 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
6287 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
6288 with_gnu_ld=$lt_cv_prog_gnu_ld
6291 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
6292 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
6293 if test "${lt_cv_ld_reload_flag+set}" = set; then
6294 echo $ECHO_N "(cached) $ECHO_C" >&6
6295 else
6296 lt_cv_ld_reload_flag='-r'
6298 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
6299 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
6300 reload_flag=$lt_cv_ld_reload_flag
6301 case $reload_flag in
6302 "" | " "*) ;;
6303 *) reload_flag=" $reload_flag" ;;
6304 esac
6305 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6306 case $host_os in
6307 darwin*)
6308 if test "$GCC" = yes; then
6309 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r $compiler_flags -o $output$reload_objs'
6310 else
6311 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6314 esac
6316 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6317 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
6318 if test "${lt_cv_path_NM+set}" = set; then
6319 echo $ECHO_N "(cached) $ECHO_C" >&6
6320 else
6321 if test -n "$NM"; then
6322 # Let the user override the test.
6323 lt_cv_path_NM="$NM"
6324 else
6325 lt_nm_to_check="${ac_tool_prefix}nm"
6326 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6327 lt_nm_to_check="$lt_nm_to_check nm"
6329 for lt_tmp_nm in $lt_nm_to_check; do
6330 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6331 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6332 IFS="$lt_save_ifs"
6333 test -z "$ac_dir" && ac_dir=.
6334 tmp_nm="$ac_dir/$lt_tmp_nm"
6335 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6336 # Check to see if the nm accepts a BSD-compat flag.
6337 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6338 # nm: unknown option "B" ignored
6339 # Tru64's nm complains that /dev/null is an invalid object file
6340 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6341 */dev/null* | *'Invalid file or object type'*)
6342 lt_cv_path_NM="$tmp_nm -B"
6343 break
6346 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6347 */dev/null*)
6348 lt_cv_path_NM="$tmp_nm -p"
6349 break
6352 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6353 continue # so that we can try to find one that supports BSD flags
6355 esac
6357 esac
6359 done
6360 IFS="$lt_save_ifs"
6361 done
6362 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6365 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6366 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
6367 NM="$lt_cv_path_NM"
6369 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
6370 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6371 LN_S=$as_ln_s
6372 if test "$LN_S" = "ln -s"; then
6373 { echo "$as_me:$LINENO: result: yes" >&5
6374 echo "${ECHO_T}yes" >&6; }
6375 else
6376 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6377 echo "${ECHO_T}no, using $LN_S" >&6; }
6380 { echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
6381 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
6382 if test "${lt_cv_deplibs_check_method+set}" = set; then
6383 echo $ECHO_N "(cached) $ECHO_C" >&6
6384 else
6385 lt_cv_file_magic_cmd='$MAGIC_CMD'
6386 lt_cv_file_magic_test_file=
6387 lt_cv_deplibs_check_method='unknown'
6388 # Need to set the preceding variable on all platforms that support
6389 # interlibrary dependencies.
6390 # 'none' -- dependencies not supported.
6391 # `unknown' -- same as none, but documents that we really don't know.
6392 # 'pass_all' -- all dependencies passed with no checks.
6393 # 'test_compile' -- check by making test program.
6394 # 'file_magic [[regex]]' -- check by looking for files in library path
6395 # which responds to the $file_magic_cmd with a given extended regex.
6396 # If you have `file' or equivalent on your system and you're not sure
6397 # whether `pass_all' will *always* work, you probably want this one.
6399 case $host_os in
6400 aix4* | aix5*)
6401 lt_cv_deplibs_check_method=pass_all
6404 beos*)
6405 lt_cv_deplibs_check_method=pass_all
6408 bsdi[45]*)
6409 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6410 lt_cv_file_magic_cmd='/usr/bin/file -L'
6411 lt_cv_file_magic_test_file=/shlib/libc.so
6414 cygwin*)
6415 # func_win32_libid is a shell function defined in ltmain.sh
6416 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6417 lt_cv_file_magic_cmd='func_win32_libid'
6420 mingw* | pw32*)
6421 # Base MSYS/MinGW do not provide the 'file' command needed by
6422 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
6423 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6424 lt_cv_file_magic_cmd='$OBJDUMP -f'
6427 darwin* | rhapsody*)
6428 lt_cv_deplibs_check_method=pass_all
6431 freebsd* | kfreebsd*-gnu | dragonfly*)
6432 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
6433 case $host_cpu in
6434 i*86 )
6435 # Not sure whether the presence of OpenBSD here was a mistake.
6436 # Let's accept both of them until this is cleared up.
6437 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6438 lt_cv_file_magic_cmd=/usr/bin/file
6439 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6441 esac
6442 else
6443 lt_cv_deplibs_check_method=pass_all
6447 gnu*)
6448 lt_cv_deplibs_check_method=pass_all
6451 hpux10.20* | hpux11*)
6452 lt_cv_file_magic_cmd=/usr/bin/file
6453 case $host_cpu in
6454 ia64*)
6455 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6456 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6458 hppa*64*)
6459 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
6460 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6463 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
6464 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6466 esac
6469 interix3*)
6470 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6471 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6474 irix5* | irix6* | nonstopux*)
6475 case $LD in
6476 *-32|*"-32 ") libmagic=32-bit;;
6477 *-n32|*"-n32 ") libmagic=N32;;
6478 *-64|*"-64 ") libmagic=64-bit;;
6479 *) libmagic=never-match;;
6480 esac
6481 lt_cv_deplibs_check_method=pass_all
6484 # This must be Linux ELF.
6485 linux*)
6486 lt_cv_deplibs_check_method=pass_all
6489 netbsd*)
6490 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
6491 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6492 else
6493 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6497 newos6*)
6498 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6499 lt_cv_file_magic_cmd=/usr/bin/file
6500 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6503 nto-qnx*)
6504 lt_cv_deplibs_check_method=unknown
6507 openbsd*)
6508 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6509 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6510 else
6511 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6515 osf3* | osf4* | osf5*)
6516 lt_cv_deplibs_check_method=pass_all
6519 solaris*)
6520 lt_cv_deplibs_check_method=pass_all
6523 sysv4 | sysv4.3*)
6524 case $host_vendor in
6525 motorola)
6526 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]'
6527 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6529 ncr)
6530 lt_cv_deplibs_check_method=pass_all
6532 sequent)
6533 lt_cv_file_magic_cmd='/bin/file'
6534 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6536 sni)
6537 lt_cv_file_magic_cmd='/bin/file'
6538 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6539 lt_cv_file_magic_test_file=/lib/libc.so
6541 siemens)
6542 lt_cv_deplibs_check_method=pass_all
6545 lt_cv_deplibs_check_method=pass_all
6547 esac
6550 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6551 lt_cv_deplibs_check_method=pass_all
6553 esac
6556 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
6557 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
6558 file_magic_cmd=$lt_cv_file_magic_cmd
6559 deplibs_check_method=$lt_cv_deplibs_check_method
6560 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6565 # If no C compiler was specified, use CC.
6566 LTCC=${LTCC-"$CC"}
6568 # If no C compiler flags were specified, use CFLAGS.
6569 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6571 # Allow CC to be a program name with arguments.
6572 compiler=$CC
6574 # Check whether --enable-libtool-lock was given.
6575 if test "${enable_libtool_lock+set}" = set; then
6576 enableval=$enable_libtool_lock;
6579 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6581 # Some flags need to be propagated to the compiler or linker for good
6582 # libtool support.
6583 case $host in
6584 ia64-*-hpux*)
6585 # Find out which ABI we are using.
6586 echo 'int i;' > conftest.$ac_ext
6587 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6588 (eval $ac_compile) 2>&5
6589 ac_status=$?
6590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6591 (exit $ac_status); }; then
6592 case `/usr/bin/file conftest.$ac_objext` in
6593 *ELF-32*)
6594 HPUX_IA64_MODE="32"
6596 *ELF-64*)
6597 HPUX_IA64_MODE="64"
6599 esac
6601 rm -rf conftest*
6603 *-*-irix6*)
6604 # Find out which ABI we are using.
6605 echo '#line 6605 "configure"' > conftest.$ac_ext
6606 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6607 (eval $ac_compile) 2>&5
6608 ac_status=$?
6609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6610 (exit $ac_status); }; then
6611 if test "$lt_cv_prog_gnu_ld" = yes; then
6612 case `/usr/bin/file conftest.$ac_objext` in
6613 *32-bit*)
6614 LD="${LD-ld} -melf32bsmip"
6616 *N32*)
6617 LD="${LD-ld} -melf32bmipn32"
6619 *64-bit*)
6620 LD="${LD-ld} -melf64bmip"
6622 esac
6623 else
6624 case `/usr/bin/file conftest.$ac_objext` in
6625 *32-bit*)
6626 LD="${LD-ld} -32"
6628 *N32*)
6629 LD="${LD-ld} -n32"
6631 *64-bit*)
6632 LD="${LD-ld} -64"
6634 esac
6637 rm -rf conftest*
6640 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
6641 # Find out which ABI we are using.
6642 echo 'int i;' > conftest.$ac_ext
6643 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6644 (eval $ac_compile) 2>&5
6645 ac_status=$?
6646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6647 (exit $ac_status); }; then
6648 case `/usr/bin/file conftest.o` in
6649 *32-bit*)
6650 case $host in
6651 x86_64-*linux*)
6652 LD="${LD-ld} -m elf_i386"
6654 ppc64-*linux*|powerpc64-*linux*)
6655 LD="${LD-ld} -m elf32ppclinux"
6657 s390x-*linux*)
6658 LD="${LD-ld} -m elf_s390"
6660 sparc64-*linux*)
6661 LD="${LD-ld} -m elf32_sparc"
6663 esac
6665 *64-bit*)
6666 case $host in
6667 x86_64-*linux*)
6668 LD="${LD-ld} -m elf_x86_64"
6670 ppc*-*linux*|powerpc*-*linux*)
6671 LD="${LD-ld} -m elf64ppc"
6673 s390*-*linux*)
6674 LD="${LD-ld} -m elf64_s390"
6676 sparc*-*linux*)
6677 LD="${LD-ld} -m elf64_sparc"
6679 esac
6681 esac
6683 rm -rf conftest*
6686 *-*-sco3.2v5*)
6687 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6688 SAVE_CFLAGS="$CFLAGS"
6689 CFLAGS="$CFLAGS -belf"
6690 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
6691 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
6692 if test "${lt_cv_cc_needs_belf+set}" = set; then
6693 echo $ECHO_N "(cached) $ECHO_C" >&6
6694 else
6695 ac_ext=c
6696 ac_cpp='$CPP $CPPFLAGS'
6697 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6698 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6699 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6701 cat >conftest.$ac_ext <<_ACEOF
6702 /* confdefs.h. */
6703 _ACEOF
6704 cat confdefs.h >>conftest.$ac_ext
6705 cat >>conftest.$ac_ext <<_ACEOF
6706 /* end confdefs.h. */
6709 main ()
6713 return 0;
6715 _ACEOF
6716 rm -f conftest.$ac_objext conftest$ac_exeext
6717 if { (ac_try="$ac_link"
6718 case "(($ac_try" in
6719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6720 *) ac_try_echo=$ac_try;;
6721 esac
6722 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6723 (eval "$ac_link") 2>conftest.er1
6724 ac_status=$?
6725 grep -v '^ *+' conftest.er1 >conftest.err
6726 rm -f conftest.er1
6727 cat conftest.err >&5
6728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6729 (exit $ac_status); } &&
6730 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6731 { (case "(($ac_try" in
6732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6733 *) ac_try_echo=$ac_try;;
6734 esac
6735 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6736 (eval "$ac_try") 2>&5
6737 ac_status=$?
6738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6739 (exit $ac_status); }; } &&
6740 { ac_try='test -s conftest$ac_exeext'
6741 { (case "(($ac_try" in
6742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6743 *) ac_try_echo=$ac_try;;
6744 esac
6745 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6746 (eval "$ac_try") 2>&5
6747 ac_status=$?
6748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6749 (exit $ac_status); }; }; then
6750 lt_cv_cc_needs_belf=yes
6751 else
6752 echo "$as_me: failed program was:" >&5
6753 sed 's/^/| /' conftest.$ac_ext >&5
6755 lt_cv_cc_needs_belf=no
6758 rm -f core conftest.err conftest.$ac_objext \
6759 conftest$ac_exeext conftest.$ac_ext
6760 ac_ext=c
6761 ac_cpp='$CPP $CPPFLAGS'
6762 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6763 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6764 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6767 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
6768 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
6769 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6770 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6771 CFLAGS="$SAVE_CFLAGS"
6774 sparc*-*solaris*)
6775 # Find out which ABI we are using.
6776 echo 'int i;' > conftest.$ac_ext
6777 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6778 (eval $ac_compile) 2>&5
6779 ac_status=$?
6780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6781 (exit $ac_status); }; then
6782 case `/usr/bin/file conftest.o` in
6783 *64-bit*)
6784 case $lt_cv_prog_gnu_ld in
6785 yes*) LD="${LD-ld} -m elf64_sparc" ;;
6786 *) LD="${LD-ld} -64" ;;
6787 esac
6789 esac
6791 rm -rf conftest*
6795 esac
6797 need_locks="$enable_libtool_lock"
6801 for ac_header in dlfcn.h
6803 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6804 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6805 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6806 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6807 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6808 echo $ECHO_N "(cached) $ECHO_C" >&6
6810 ac_res=`eval echo '${'$as_ac_Header'}'`
6811 { echo "$as_me:$LINENO: result: $ac_res" >&5
6812 echo "${ECHO_T}$ac_res" >&6; }
6813 else
6814 # Is the header compilable?
6815 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
6816 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6817 cat >conftest.$ac_ext <<_ACEOF
6818 /* confdefs.h. */
6819 _ACEOF
6820 cat confdefs.h >>conftest.$ac_ext
6821 cat >>conftest.$ac_ext <<_ACEOF
6822 /* end confdefs.h. */
6823 $ac_includes_default
6824 #include <$ac_header>
6825 _ACEOF
6826 rm -f conftest.$ac_objext
6827 if { (ac_try="$ac_compile"
6828 case "(($ac_try" in
6829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6830 *) ac_try_echo=$ac_try;;
6831 esac
6832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6833 (eval "$ac_compile") 2>conftest.er1
6834 ac_status=$?
6835 grep -v '^ *+' conftest.er1 >conftest.err
6836 rm -f conftest.er1
6837 cat conftest.err >&5
6838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6839 (exit $ac_status); } &&
6840 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6841 { (case "(($ac_try" in
6842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6843 *) ac_try_echo=$ac_try;;
6844 esac
6845 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6846 (eval "$ac_try") 2>&5
6847 ac_status=$?
6848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6849 (exit $ac_status); }; } &&
6850 { ac_try='test -s conftest.$ac_objext'
6851 { (case "(($ac_try" in
6852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6853 *) ac_try_echo=$ac_try;;
6854 esac
6855 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6856 (eval "$ac_try") 2>&5
6857 ac_status=$?
6858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6859 (exit $ac_status); }; }; then
6860 ac_header_compiler=yes
6861 else
6862 echo "$as_me: failed program was:" >&5
6863 sed 's/^/| /' conftest.$ac_ext >&5
6865 ac_header_compiler=no
6868 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6869 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6870 echo "${ECHO_T}$ac_header_compiler" >&6; }
6872 # Is the header present?
6873 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
6874 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6875 cat >conftest.$ac_ext <<_ACEOF
6876 /* confdefs.h. */
6877 _ACEOF
6878 cat confdefs.h >>conftest.$ac_ext
6879 cat >>conftest.$ac_ext <<_ACEOF
6880 /* end confdefs.h. */
6881 #include <$ac_header>
6882 _ACEOF
6883 if { (ac_try="$ac_cpp conftest.$ac_ext"
6884 case "(($ac_try" in
6885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6886 *) ac_try_echo=$ac_try;;
6887 esac
6888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6889 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6890 ac_status=$?
6891 grep -v '^ *+' conftest.er1 >conftest.err
6892 rm -f conftest.er1
6893 cat conftest.err >&5
6894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6895 (exit $ac_status); } >/dev/null; then
6896 if test -s conftest.err; then
6897 ac_cpp_err=$ac_c_preproc_warn_flag
6898 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6899 else
6900 ac_cpp_err=
6902 else
6903 ac_cpp_err=yes
6905 if test -z "$ac_cpp_err"; then
6906 ac_header_preproc=yes
6907 else
6908 echo "$as_me: failed program was:" >&5
6909 sed 's/^/| /' conftest.$ac_ext >&5
6911 ac_header_preproc=no
6914 rm -f conftest.err conftest.$ac_ext
6915 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6916 echo "${ECHO_T}$ac_header_preproc" >&6; }
6918 # So? What about this header?
6919 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6920 yes:no: )
6921 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6922 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6923 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6924 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6925 ac_header_preproc=yes
6927 no:yes:* )
6928 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6929 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6930 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6931 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6932 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6933 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6934 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6935 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6936 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6937 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6938 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6939 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6940 ( cat <<\_ASBOX
6941 ## ----------------------------------- ##
6942 ## Report this to llvmbugs@cs.uiuc.edu ##
6943 ## ----------------------------------- ##
6944 _ASBOX
6945 ) | sed "s/^/$as_me: WARNING: /" >&2
6947 esac
6948 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6949 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6950 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6951 echo $ECHO_N "(cached) $ECHO_C" >&6
6952 else
6953 eval "$as_ac_Header=\$ac_header_preproc"
6955 ac_res=`eval echo '${'$as_ac_Header'}'`
6956 { echo "$as_me:$LINENO: result: $ac_res" >&5
6957 echo "${ECHO_T}$ac_res" >&6; }
6960 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6961 cat >>confdefs.h <<_ACEOF
6962 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6963 _ACEOF
6967 done
6971 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
6972 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
6973 (test "X$CXX" != "Xg++"))) ; then
6974 ac_ext=cpp
6975 ac_cpp='$CXXCPP $CPPFLAGS'
6976 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6977 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6978 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6979 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
6980 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
6981 if test -z "$CXXCPP"; then
6982 if test "${ac_cv_prog_CXXCPP+set}" = set; then
6983 echo $ECHO_N "(cached) $ECHO_C" >&6
6984 else
6985 # Double quotes because CXXCPP needs to be expanded
6986 for CXXCPP in "$CXX -E" "/lib/cpp"
6988 ac_preproc_ok=false
6989 for ac_cxx_preproc_warn_flag in '' yes
6991 # Use a header file that comes with gcc, so configuring glibc
6992 # with a fresh cross-compiler works.
6993 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6994 # <limits.h> exists even on freestanding compilers.
6995 # On the NeXT, cc -E runs the code through the compiler's parser,
6996 # not just through cpp. "Syntax error" is here to catch this case.
6997 cat >conftest.$ac_ext <<_ACEOF
6998 /* confdefs.h. */
6999 _ACEOF
7000 cat confdefs.h >>conftest.$ac_ext
7001 cat >>conftest.$ac_ext <<_ACEOF
7002 /* end confdefs.h. */
7003 #ifdef __STDC__
7004 # include <limits.h>
7005 #else
7006 # include <assert.h>
7007 #endif
7008 Syntax error
7009 _ACEOF
7010 if { (ac_try="$ac_cpp conftest.$ac_ext"
7011 case "(($ac_try" in
7012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7013 *) ac_try_echo=$ac_try;;
7014 esac
7015 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7016 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7017 ac_status=$?
7018 grep -v '^ *+' conftest.er1 >conftest.err
7019 rm -f conftest.er1
7020 cat conftest.err >&5
7021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7022 (exit $ac_status); } >/dev/null; then
7023 if test -s conftest.err; then
7024 ac_cpp_err=$ac_cxx_preproc_warn_flag
7025 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7026 else
7027 ac_cpp_err=
7029 else
7030 ac_cpp_err=yes
7032 if test -z "$ac_cpp_err"; then
7034 else
7035 echo "$as_me: failed program was:" >&5
7036 sed 's/^/| /' conftest.$ac_ext >&5
7038 # Broken: fails on valid input.
7039 continue
7042 rm -f conftest.err conftest.$ac_ext
7044 # OK, works on sane cases. Now check whether nonexistent headers
7045 # can be detected and how.
7046 cat >conftest.$ac_ext <<_ACEOF
7047 /* confdefs.h. */
7048 _ACEOF
7049 cat confdefs.h >>conftest.$ac_ext
7050 cat >>conftest.$ac_ext <<_ACEOF
7051 /* end confdefs.h. */
7052 #include <ac_nonexistent.h>
7053 _ACEOF
7054 if { (ac_try="$ac_cpp conftest.$ac_ext"
7055 case "(($ac_try" in
7056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7057 *) ac_try_echo=$ac_try;;
7058 esac
7059 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7060 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7061 ac_status=$?
7062 grep -v '^ *+' conftest.er1 >conftest.err
7063 rm -f conftest.er1
7064 cat conftest.err >&5
7065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7066 (exit $ac_status); } >/dev/null; then
7067 if test -s conftest.err; then
7068 ac_cpp_err=$ac_cxx_preproc_warn_flag
7069 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7070 else
7071 ac_cpp_err=
7073 else
7074 ac_cpp_err=yes
7076 if test -z "$ac_cpp_err"; then
7077 # Broken: success on invalid input.
7078 continue
7079 else
7080 echo "$as_me: failed program was:" >&5
7081 sed 's/^/| /' conftest.$ac_ext >&5
7083 # Passes both tests.
7084 ac_preproc_ok=:
7085 break
7088 rm -f conftest.err conftest.$ac_ext
7090 done
7091 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7092 rm -f conftest.err conftest.$ac_ext
7093 if $ac_preproc_ok; then
7094 break
7097 done
7098 ac_cv_prog_CXXCPP=$CXXCPP
7101 CXXCPP=$ac_cv_prog_CXXCPP
7102 else
7103 ac_cv_prog_CXXCPP=$CXXCPP
7105 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
7106 echo "${ECHO_T}$CXXCPP" >&6; }
7107 ac_preproc_ok=false
7108 for ac_cxx_preproc_warn_flag in '' yes
7110 # Use a header file that comes with gcc, so configuring glibc
7111 # with a fresh cross-compiler works.
7112 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7113 # <limits.h> exists even on freestanding compilers.
7114 # On the NeXT, cc -E runs the code through the compiler's parser,
7115 # not just through cpp. "Syntax error" is here to catch this case.
7116 cat >conftest.$ac_ext <<_ACEOF
7117 /* confdefs.h. */
7118 _ACEOF
7119 cat confdefs.h >>conftest.$ac_ext
7120 cat >>conftest.$ac_ext <<_ACEOF
7121 /* end confdefs.h. */
7122 #ifdef __STDC__
7123 # include <limits.h>
7124 #else
7125 # include <assert.h>
7126 #endif
7127 Syntax error
7128 _ACEOF
7129 if { (ac_try="$ac_cpp conftest.$ac_ext"
7130 case "(($ac_try" in
7131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7132 *) ac_try_echo=$ac_try;;
7133 esac
7134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7135 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7136 ac_status=$?
7137 grep -v '^ *+' conftest.er1 >conftest.err
7138 rm -f conftest.er1
7139 cat conftest.err >&5
7140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7141 (exit $ac_status); } >/dev/null; then
7142 if test -s conftest.err; then
7143 ac_cpp_err=$ac_cxx_preproc_warn_flag
7144 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7145 else
7146 ac_cpp_err=
7148 else
7149 ac_cpp_err=yes
7151 if test -z "$ac_cpp_err"; then
7153 else
7154 echo "$as_me: failed program was:" >&5
7155 sed 's/^/| /' conftest.$ac_ext >&5
7157 # Broken: fails on valid input.
7158 continue
7161 rm -f conftest.err conftest.$ac_ext
7163 # OK, works on sane cases. Now check whether nonexistent headers
7164 # can be detected and how.
7165 cat >conftest.$ac_ext <<_ACEOF
7166 /* confdefs.h. */
7167 _ACEOF
7168 cat confdefs.h >>conftest.$ac_ext
7169 cat >>conftest.$ac_ext <<_ACEOF
7170 /* end confdefs.h. */
7171 #include <ac_nonexistent.h>
7172 _ACEOF
7173 if { (ac_try="$ac_cpp conftest.$ac_ext"
7174 case "(($ac_try" in
7175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7176 *) ac_try_echo=$ac_try;;
7177 esac
7178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7179 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7180 ac_status=$?
7181 grep -v '^ *+' conftest.er1 >conftest.err
7182 rm -f conftest.er1
7183 cat conftest.err >&5
7184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7185 (exit $ac_status); } >/dev/null; then
7186 if test -s conftest.err; then
7187 ac_cpp_err=$ac_cxx_preproc_warn_flag
7188 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7189 else
7190 ac_cpp_err=
7192 else
7193 ac_cpp_err=yes
7195 if test -z "$ac_cpp_err"; then
7196 # Broken: success on invalid input.
7197 continue
7198 else
7199 echo "$as_me: failed program was:" >&5
7200 sed 's/^/| /' conftest.$ac_ext >&5
7202 # Passes both tests.
7203 ac_preproc_ok=:
7204 break
7207 rm -f conftest.err conftest.$ac_ext
7209 done
7210 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7211 rm -f conftest.err conftest.$ac_ext
7212 if $ac_preproc_ok; then
7214 else
7215 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
7216 See \`config.log' for more details." >&5
7217 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
7218 See \`config.log' for more details." >&2;}
7219 { (exit 1); exit 1; }; }
7222 ac_ext=cpp
7223 ac_cpp='$CXXCPP $CPPFLAGS'
7224 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7225 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7226 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7231 ac_ext=f
7232 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
7233 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7234 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
7235 if test -n "$ac_tool_prefix"; then
7236 for ac_prog in g77 f77 xlf frt pgf77 cf77 fort77 fl32 af77 f90 xlf90 pgf90 pghpf epcf90 gfortran g95 f95 fort xlf95 ifort ifc efc pgf95 lf95 ftn
7238 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7239 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7240 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7241 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7242 if test "${ac_cv_prog_F77+set}" = set; then
7243 echo $ECHO_N "(cached) $ECHO_C" >&6
7244 else
7245 if test -n "$F77"; then
7246 ac_cv_prog_F77="$F77" # Let the user override the test.
7247 else
7248 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7249 for as_dir in $PATH
7251 IFS=$as_save_IFS
7252 test -z "$as_dir" && as_dir=.
7253 for ac_exec_ext in '' $ac_executable_extensions; do
7254 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7255 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
7256 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7257 break 2
7259 done
7260 done
7261 IFS=$as_save_IFS
7265 F77=$ac_cv_prog_F77
7266 if test -n "$F77"; then
7267 { echo "$as_me:$LINENO: result: $F77" >&5
7268 echo "${ECHO_T}$F77" >&6; }
7269 else
7270 { echo "$as_me:$LINENO: result: no" >&5
7271 echo "${ECHO_T}no" >&6; }
7275 test -n "$F77" && break
7276 done
7278 if test -z "$F77"; then
7279 ac_ct_F77=$F77
7280 for ac_prog in g77 f77 xlf frt pgf77 cf77 fort77 fl32 af77 f90 xlf90 pgf90 pghpf epcf90 gfortran g95 f95 fort xlf95 ifort ifc efc pgf95 lf95 ftn
7282 # Extract the first word of "$ac_prog", so it can be a program name with args.
7283 set dummy $ac_prog; ac_word=$2
7284 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7285 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7286 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
7287 echo $ECHO_N "(cached) $ECHO_C" >&6
7288 else
7289 if test -n "$ac_ct_F77"; then
7290 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
7291 else
7292 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7293 for as_dir in $PATH
7295 IFS=$as_save_IFS
7296 test -z "$as_dir" && as_dir=.
7297 for ac_exec_ext in '' $ac_executable_extensions; do
7298 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7299 ac_cv_prog_ac_ct_F77="$ac_prog"
7300 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7301 break 2
7303 done
7304 done
7305 IFS=$as_save_IFS
7309 ac_ct_F77=$ac_cv_prog_ac_ct_F77
7310 if test -n "$ac_ct_F77"; then
7311 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
7312 echo "${ECHO_T}$ac_ct_F77" >&6; }
7313 else
7314 { echo "$as_me:$LINENO: result: no" >&5
7315 echo "${ECHO_T}no" >&6; }
7319 test -n "$ac_ct_F77" && break
7320 done
7322 if test "x$ac_ct_F77" = x; then
7323 F77=""
7324 else
7325 case $cross_compiling:$ac_tool_warned in
7326 yes:)
7327 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7328 whose name does not start with the host triplet. If you think this
7329 configuration is useful to you, please write to autoconf@gnu.org." >&5
7330 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7331 whose name does not start with the host triplet. If you think this
7332 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7333 ac_tool_warned=yes ;;
7334 esac
7335 F77=$ac_ct_F77
7340 # Provide some information about the compiler.
7341 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
7342 ac_compiler=`set X $ac_compile; echo $2`
7343 { (ac_try="$ac_compiler --version >&5"
7344 case "(($ac_try" in
7345 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7346 *) ac_try_echo=$ac_try;;
7347 esac
7348 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7349 (eval "$ac_compiler --version >&5") 2>&5
7350 ac_status=$?
7351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7352 (exit $ac_status); }
7353 { (ac_try="$ac_compiler -v >&5"
7354 case "(($ac_try" in
7355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7356 *) ac_try_echo=$ac_try;;
7357 esac
7358 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7359 (eval "$ac_compiler -v >&5") 2>&5
7360 ac_status=$?
7361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7362 (exit $ac_status); }
7363 { (ac_try="$ac_compiler -V >&5"
7364 case "(($ac_try" in
7365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7366 *) ac_try_echo=$ac_try;;
7367 esac
7368 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7369 (eval "$ac_compiler -V >&5") 2>&5
7370 ac_status=$?
7371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7372 (exit $ac_status); }
7373 rm -f a.out
7375 # If we don't use `.F' as extension, the preprocessor is not run on the
7376 # input file. (Note that this only needs to work for GNU compilers.)
7377 ac_save_ext=$ac_ext
7378 ac_ext=F
7379 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
7380 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
7381 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
7382 echo $ECHO_N "(cached) $ECHO_C" >&6
7383 else
7384 cat >conftest.$ac_ext <<_ACEOF
7385 program main
7386 #ifndef __GNUC__
7387 choke me
7388 #endif
7391 _ACEOF
7392 rm -f conftest.$ac_objext
7393 if { (ac_try="$ac_compile"
7394 case "(($ac_try" in
7395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7396 *) ac_try_echo=$ac_try;;
7397 esac
7398 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7399 (eval "$ac_compile") 2>conftest.er1
7400 ac_status=$?
7401 grep -v '^ *+' conftest.er1 >conftest.err
7402 rm -f conftest.er1
7403 cat conftest.err >&5
7404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7405 (exit $ac_status); } &&
7406 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
7407 { (case "(($ac_try" in
7408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7409 *) ac_try_echo=$ac_try;;
7410 esac
7411 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7412 (eval "$ac_try") 2>&5
7413 ac_status=$?
7414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7415 (exit $ac_status); }; } &&
7416 { ac_try='test -s conftest.$ac_objext'
7417 { (case "(($ac_try" in
7418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7419 *) ac_try_echo=$ac_try;;
7420 esac
7421 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7422 (eval "$ac_try") 2>&5
7423 ac_status=$?
7424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7425 (exit $ac_status); }; }; then
7426 ac_compiler_gnu=yes
7427 else
7428 echo "$as_me: failed program was:" >&5
7429 sed 's/^/| /' conftest.$ac_ext >&5
7431 ac_compiler_gnu=no
7434 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7435 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
7438 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
7439 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
7440 ac_ext=$ac_save_ext
7441 ac_test_FFLAGS=${FFLAGS+set}
7442 ac_save_FFLAGS=$FFLAGS
7443 FFLAGS=
7444 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
7445 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
7446 if test "${ac_cv_prog_f77_g+set}" = set; then
7447 echo $ECHO_N "(cached) $ECHO_C" >&6
7448 else
7449 FFLAGS=-g
7450 cat >conftest.$ac_ext <<_ACEOF
7451 program main
7454 _ACEOF
7455 rm -f conftest.$ac_objext
7456 if { (ac_try="$ac_compile"
7457 case "(($ac_try" in
7458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7459 *) ac_try_echo=$ac_try;;
7460 esac
7461 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7462 (eval "$ac_compile") 2>conftest.er1
7463 ac_status=$?
7464 grep -v '^ *+' conftest.er1 >conftest.err
7465 rm -f conftest.er1
7466 cat conftest.err >&5
7467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7468 (exit $ac_status); } &&
7469 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
7470 { (case "(($ac_try" in
7471 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7472 *) ac_try_echo=$ac_try;;
7473 esac
7474 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7475 (eval "$ac_try") 2>&5
7476 ac_status=$?
7477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7478 (exit $ac_status); }; } &&
7479 { ac_try='test -s conftest.$ac_objext'
7480 { (case "(($ac_try" in
7481 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7482 *) ac_try_echo=$ac_try;;
7483 esac
7484 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7485 (eval "$ac_try") 2>&5
7486 ac_status=$?
7487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7488 (exit $ac_status); }; }; then
7489 ac_cv_prog_f77_g=yes
7490 else
7491 echo "$as_me: failed program was:" >&5
7492 sed 's/^/| /' conftest.$ac_ext >&5
7494 ac_cv_prog_f77_g=no
7497 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7500 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
7501 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
7502 if test "$ac_test_FFLAGS" = set; then
7503 FFLAGS=$ac_save_FFLAGS
7504 elif test $ac_cv_prog_f77_g = yes; then
7505 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
7506 FFLAGS="-g -O2"
7507 else
7508 FFLAGS="-g"
7510 else
7511 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
7512 FFLAGS="-O2"
7513 else
7514 FFLAGS=
7518 G77=`test $ac_compiler_gnu = yes && echo yes`
7519 ac_ext=c
7520 ac_cpp='$CPP $CPPFLAGS'
7521 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7522 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7523 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7527 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
7529 # find the maximum length of command line arguments
7530 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
7531 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
7532 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
7533 echo $ECHO_N "(cached) $ECHO_C" >&6
7534 else
7536 teststring="ABCD"
7538 case $build_os in
7539 msdosdjgpp*)
7540 # On DJGPP, this test can blow up pretty badly due to problems in libc
7541 # (any single argument exceeding 2000 bytes causes a buffer overrun
7542 # during glob expansion). Even if it were fixed, the result of this
7543 # check would be larger than it should be.
7544 lt_cv_sys_max_cmd_len=12288; # 12K is about right
7547 gnu*)
7548 # Under GNU Hurd, this test is not required because there is
7549 # no limit to the length of command line arguments.
7550 # Libtool will interpret -1 as no limit whatsoever
7551 lt_cv_sys_max_cmd_len=-1;
7554 cygwin* | mingw*)
7555 # On Win9x/ME, this test blows up -- it succeeds, but takes
7556 # about 5 minutes as the teststring grows exponentially.
7557 # Worse, since 9x/ME are not pre-emptively multitasking,
7558 # you end up with a "frozen" computer, even though with patience
7559 # the test eventually succeeds (with a max line length of 256k).
7560 # Instead, let's just punt: use the minimum linelength reported by
7561 # all of the supported platforms: 8192 (on NT/2K/XP).
7562 lt_cv_sys_max_cmd_len=8192;
7565 amigaos*)
7566 # On AmigaOS with pdksh, this test takes hours, literally.
7567 # So we just punt and use a minimum line length of 8192.
7568 lt_cv_sys_max_cmd_len=8192;
7571 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
7572 # This has been around since 386BSD, at least. Likely further.
7573 if test -x /sbin/sysctl; then
7574 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7575 elif test -x /usr/sbin/sysctl; then
7576 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7577 else
7578 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
7580 # And add a safety zone
7581 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7582 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7585 interix*)
7586 # We know the value 262144 and hardcode it with a safety zone (like BSD)
7587 lt_cv_sys_max_cmd_len=196608
7590 osf*)
7591 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7592 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7593 # nice to cause kernel panics so lets avoid the loop below.
7594 # First set a reasonable default.
7595 lt_cv_sys_max_cmd_len=16384
7597 if test -x /sbin/sysconfig; then
7598 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7599 *1*) lt_cv_sys_max_cmd_len=-1 ;;
7600 esac
7603 sco3.2v5*)
7604 lt_cv_sys_max_cmd_len=102400
7606 sysv5* | sco5v6* | sysv4.2uw2*)
7607 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
7608 if test -n "$kargmax"; then
7609 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
7610 else
7611 lt_cv_sys_max_cmd_len=32768
7615 # If test is not a shell built-in, we'll probably end up computing a
7616 # maximum length that is only half of the actual maximum length, but
7617 # we can't tell.
7618 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7619 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
7620 = "XX$teststring") >/dev/null 2>&1 &&
7621 new_result=`expr "X$teststring" : ".*" 2>&1` &&
7622 lt_cv_sys_max_cmd_len=$new_result &&
7623 test $i != 17 # 1/2 MB should be enough
7625 i=`expr $i + 1`
7626 teststring=$teststring$teststring
7627 done
7628 teststring=
7629 # Add a significant safety factor because C++ compilers can tack on massive
7630 # amounts of additional arguments before passing them to the linker.
7631 # It appears as though 1/2 is a usable value.
7632 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7634 esac
7638 if test -n $lt_cv_sys_max_cmd_len ; then
7639 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
7640 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
7641 else
7642 { echo "$as_me:$LINENO: result: none" >&5
7643 echo "${ECHO_T}none" >&6; }
7649 # Check for command to grab the raw symbol name followed by C symbol from nm.
7650 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
7651 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
7652 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
7653 echo $ECHO_N "(cached) $ECHO_C" >&6
7654 else
7656 # These are sane defaults that work on at least a few old systems.
7657 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7659 # Character class describing NM global symbol codes.
7660 symcode='[BCDEGRST]'
7662 # Regexp to match symbols that can be accessed directly from C.
7663 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7665 # Transform an extracted symbol line into a proper C declaration
7666 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
7668 # Transform an extracted symbol line into symbol name and symbol address
7669 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
7671 # Define system-specific variables.
7672 case $host_os in
7673 aix*)
7674 symcode='[BCDT]'
7676 cygwin* | mingw* | pw32*)
7677 symcode='[ABCDGISTW]'
7679 hpux*) # Its linker distinguishes data from code symbols
7680 if test "$host_cpu" = ia64; then
7681 symcode='[ABCDEGRST]'
7683 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7684 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
7686 linux*)
7687 if test "$host_cpu" = ia64; then
7688 symcode='[ABCDGIRSTW]'
7689 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7690 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
7693 irix* | nonstopux*)
7694 symcode='[BCDEGRST]'
7696 osf*)
7697 symcode='[BCDEGQRST]'
7699 solaris*)
7700 symcode='[BDRT]'
7702 sco3.2v5*)
7703 symcode='[DT]'
7705 sysv4.2uw2*)
7706 symcode='[DT]'
7708 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7709 symcode='[ABDT]'
7711 sysv4)
7712 symcode='[DFNSTU]'
7714 esac
7716 # Handle CRLF in mingw tool chain
7717 opt_cr=
7718 case $build_os in
7719 mingw*)
7720 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7722 esac
7724 # If we're using GNU nm, then use its standard symbol codes.
7725 case `$NM -V 2>&1` in
7726 *GNU* | *'with BFD'*)
7727 symcode='[ABCDGIRSTW]' ;;
7728 esac
7730 # Try without a prefix undercore, then with it.
7731 for ac_symprfx in "" "_"; do
7733 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7734 symxfrm="\\1 $ac_symprfx\\2 \\2"
7736 # Write the raw and C identifiers.
7737 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7739 # Check to see that the pipe works correctly.
7740 pipe_works=no
7742 rm -f conftest*
7743 cat > conftest.$ac_ext <<EOF
7744 #ifdef __cplusplus
7745 extern "C" {
7746 #endif
7747 char nm_test_var;
7748 void nm_test_func(){}
7749 #ifdef __cplusplus
7751 #endif
7752 int main(){nm_test_var='a';nm_test_func();return(0);}
7755 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7756 (eval $ac_compile) 2>&5
7757 ac_status=$?
7758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7759 (exit $ac_status); }; then
7760 # Now try to grab the symbols.
7761 nlist=conftest.nm
7762 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7763 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7764 ac_status=$?
7765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7766 (exit $ac_status); } && test -s "$nlist"; then
7767 # Try sorting and uniquifying the output.
7768 if sort "$nlist" | uniq > "$nlist"T; then
7769 mv -f "$nlist"T "$nlist"
7770 else
7771 rm -f "$nlist"T
7774 # Make sure that we snagged all the symbols we need.
7775 if grep ' nm_test_var$' "$nlist" >/dev/null; then
7776 if grep ' nm_test_func$' "$nlist" >/dev/null; then
7777 cat <<EOF > conftest.$ac_ext
7778 #ifdef __cplusplus
7779 extern "C" {
7780 #endif
7783 # Now generate the symbol file.
7784 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
7786 cat <<EOF >> conftest.$ac_ext
7787 #if defined (__STDC__) && __STDC__
7788 # define lt_ptr_t void *
7789 #else
7790 # define lt_ptr_t char *
7791 # define const
7792 #endif
7794 /* The mapping between symbol names and symbols. */
7795 const struct {
7796 const char *name;
7797 lt_ptr_t address;
7799 lt_preloaded_symbols[] =
7802 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
7803 cat <<\EOF >> conftest.$ac_ext
7804 {0, (lt_ptr_t) 0}
7807 #ifdef __cplusplus
7809 #endif
7811 # Now try linking the two files.
7812 mv conftest.$ac_objext conftstm.$ac_objext
7813 lt_save_LIBS="$LIBS"
7814 lt_save_CFLAGS="$CFLAGS"
7815 LIBS="conftstm.$ac_objext"
7816 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7817 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7818 (eval $ac_link) 2>&5
7819 ac_status=$?
7820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7821 (exit $ac_status); } && test -s conftest${ac_exeext}; then
7822 pipe_works=yes
7824 LIBS="$lt_save_LIBS"
7825 CFLAGS="$lt_save_CFLAGS"
7826 else
7827 echo "cannot find nm_test_func in $nlist" >&5
7829 else
7830 echo "cannot find nm_test_var in $nlist" >&5
7832 else
7833 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7835 else
7836 echo "$progname: failed program was:" >&5
7837 cat conftest.$ac_ext >&5
7839 rm -f conftest* conftst*
7841 # Do not use the global_symbol_pipe unless it works.
7842 if test "$pipe_works" = yes; then
7843 break
7844 else
7845 lt_cv_sys_global_symbol_pipe=
7847 done
7851 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7852 lt_cv_sys_global_symbol_to_cdecl=
7854 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7855 { echo "$as_me:$LINENO: result: failed" >&5
7856 echo "${ECHO_T}failed" >&6; }
7857 else
7858 { echo "$as_me:$LINENO: result: ok" >&5
7859 echo "${ECHO_T}ok" >&6; }
7862 { echo "$as_me:$LINENO: checking for objdir" >&5
7863 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
7864 if test "${lt_cv_objdir+set}" = set; then
7865 echo $ECHO_N "(cached) $ECHO_C" >&6
7866 else
7867 rm -f .libs 2>/dev/null
7868 mkdir .libs 2>/dev/null
7869 if test -d .libs; then
7870 lt_cv_objdir=.libs
7871 else
7872 # MS-DOS does not allow filenames that begin with a dot.
7873 lt_cv_objdir=_libs
7875 rmdir .libs 2>/dev/null
7877 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7878 echo "${ECHO_T}$lt_cv_objdir" >&6; }
7879 objdir=$lt_cv_objdir
7885 case $host_os in
7886 aix3*)
7887 # AIX sometimes has problems with the GCC collect2 program. For some
7888 # reason, if we set the COLLECT_NAMES environment variable, the problems
7889 # vanish in a puff of smoke.
7890 if test "X${COLLECT_NAMES+set}" != Xset; then
7891 COLLECT_NAMES=
7892 export COLLECT_NAMES
7895 esac
7897 # Sed substitution that helps us do robust quoting. It backslashifies
7898 # metacharacters that are still active within double-quoted strings.
7899 Xsed='sed -e 1s/^X//'
7900 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
7902 # Same as above, but do not quote variable references.
7903 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
7905 # Sed substitution to delay expansion of an escaped shell variable in a
7906 # double_quote_subst'ed string.
7907 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7909 # Sed substitution to avoid accidental globbing in evaled expressions
7910 no_glob_subst='s/\*/\\\*/g'
7912 # Constants:
7913 rm="rm -f"
7915 # Global variables:
7916 default_ofile=mklib
7917 can_build_shared=yes
7919 # All known linkers require a `.a' archive for static linking (except MSVC,
7920 # which needs '.lib').
7921 libext=a
7922 ltmain="$ac_aux_dir/ltmain.sh"
7923 ofile="$default_ofile"
7924 with_gnu_ld="$lt_cv_prog_gnu_ld"
7926 if test -n "$ac_tool_prefix"; then
7927 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7928 set dummy ${ac_tool_prefix}ar; ac_word=$2
7929 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7930 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7931 if test "${ac_cv_prog_AR+set}" = set; then
7932 echo $ECHO_N "(cached) $ECHO_C" >&6
7933 else
7934 if test -n "$AR"; then
7935 ac_cv_prog_AR="$AR" # Let the user override the test.
7936 else
7937 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7938 for as_dir in $PATH
7940 IFS=$as_save_IFS
7941 test -z "$as_dir" && as_dir=.
7942 for ac_exec_ext in '' $ac_executable_extensions; do
7943 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7944 ac_cv_prog_AR="${ac_tool_prefix}ar"
7945 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7946 break 2
7948 done
7949 done
7950 IFS=$as_save_IFS
7954 AR=$ac_cv_prog_AR
7955 if test -n "$AR"; then
7956 { echo "$as_me:$LINENO: result: $AR" >&5
7957 echo "${ECHO_T}$AR" >&6; }
7958 else
7959 { echo "$as_me:$LINENO: result: no" >&5
7960 echo "${ECHO_T}no" >&6; }
7965 if test -z "$ac_cv_prog_AR"; then
7966 ac_ct_AR=$AR
7967 # Extract the first word of "ar", so it can be a program name with args.
7968 set dummy ar; ac_word=$2
7969 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7970 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7971 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7972 echo $ECHO_N "(cached) $ECHO_C" >&6
7973 else
7974 if test -n "$ac_ct_AR"; then
7975 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7976 else
7977 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7978 for as_dir in $PATH
7980 IFS=$as_save_IFS
7981 test -z "$as_dir" && as_dir=.
7982 for ac_exec_ext in '' $ac_executable_extensions; do
7983 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7984 ac_cv_prog_ac_ct_AR="ar"
7985 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7986 break 2
7988 done
7989 done
7990 IFS=$as_save_IFS
7994 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7995 if test -n "$ac_ct_AR"; then
7996 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7997 echo "${ECHO_T}$ac_ct_AR" >&6; }
7998 else
7999 { echo "$as_me:$LINENO: result: no" >&5
8000 echo "${ECHO_T}no" >&6; }
8003 if test "x$ac_ct_AR" = x; then
8004 AR="false"
8005 else
8006 case $cross_compiling:$ac_tool_warned in
8007 yes:)
8008 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
8009 whose name does not start with the host triplet. If you think this
8010 configuration is useful to you, please write to autoconf@gnu.org." >&5
8011 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
8012 whose name does not start with the host triplet. If you think this
8013 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
8014 ac_tool_warned=yes ;;
8015 esac
8016 AR=$ac_ct_AR
8018 else
8019 AR="$ac_cv_prog_AR"
8022 if test -n "$ac_tool_prefix"; then
8023 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8024 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8025 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8026 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8027 if test "${ac_cv_prog_RANLIB+set}" = set; then
8028 echo $ECHO_N "(cached) $ECHO_C" >&6
8029 else
8030 if test -n "$RANLIB"; then
8031 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8032 else
8033 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8034 for as_dir in $PATH
8036 IFS=$as_save_IFS
8037 test -z "$as_dir" && as_dir=.
8038 for ac_exec_ext in '' $ac_executable_extensions; do
8039 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8040 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8041 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8042 break 2
8044 done
8045 done
8046 IFS=$as_save_IFS
8050 RANLIB=$ac_cv_prog_RANLIB
8051 if test -n "$RANLIB"; then
8052 { echo "$as_me:$LINENO: result: $RANLIB" >&5
8053 echo "${ECHO_T}$RANLIB" >&6; }
8054 else
8055 { echo "$as_me:$LINENO: result: no" >&5
8056 echo "${ECHO_T}no" >&6; }
8061 if test -z "$ac_cv_prog_RANLIB"; then
8062 ac_ct_RANLIB=$RANLIB
8063 # Extract the first word of "ranlib", so it can be a program name with args.
8064 set dummy ranlib; ac_word=$2
8065 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8066 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8067 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
8068 echo $ECHO_N "(cached) $ECHO_C" >&6
8069 else
8070 if test -n "$ac_ct_RANLIB"; then
8071 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8072 else
8073 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8074 for as_dir in $PATH
8076 IFS=$as_save_IFS
8077 test -z "$as_dir" && as_dir=.
8078 for ac_exec_ext in '' $ac_executable_extensions; do
8079 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8080 ac_cv_prog_ac_ct_RANLIB="ranlib"
8081 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8082 break 2
8084 done
8085 done
8086 IFS=$as_save_IFS
8090 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8091 if test -n "$ac_ct_RANLIB"; then
8092 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
8093 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
8094 else
8095 { echo "$as_me:$LINENO: result: no" >&5
8096 echo "${ECHO_T}no" >&6; }
8099 if test "x$ac_ct_RANLIB" = x; then
8100 RANLIB=":"
8101 else
8102 case $cross_compiling:$ac_tool_warned in
8103 yes:)
8104 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
8105 whose name does not start with the host triplet. If you think this
8106 configuration is useful to you, please write to autoconf@gnu.org." >&5
8107 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
8108 whose name does not start with the host triplet. If you think this
8109 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
8110 ac_tool_warned=yes ;;
8111 esac
8112 RANLIB=$ac_ct_RANLIB
8114 else
8115 RANLIB="$ac_cv_prog_RANLIB"
8118 if test -n "$ac_tool_prefix"; then
8119 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
8120 set dummy ${ac_tool_prefix}strip; ac_word=$2
8121 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8122 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8123 if test "${ac_cv_prog_STRIP+set}" = set; then
8124 echo $ECHO_N "(cached) $ECHO_C" >&6
8125 else
8126 if test -n "$STRIP"; then
8127 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8128 else
8129 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8130 for as_dir in $PATH
8132 IFS=$as_save_IFS
8133 test -z "$as_dir" && as_dir=.
8134 for ac_exec_ext in '' $ac_executable_extensions; do
8135 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8136 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
8137 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8138 break 2
8140 done
8141 done
8142 IFS=$as_save_IFS
8146 STRIP=$ac_cv_prog_STRIP
8147 if test -n "$STRIP"; then
8148 { echo "$as_me:$LINENO: result: $STRIP" >&5
8149 echo "${ECHO_T}$STRIP" >&6; }
8150 else
8151 { echo "$as_me:$LINENO: result: no" >&5
8152 echo "${ECHO_T}no" >&6; }
8157 if test -z "$ac_cv_prog_STRIP"; then
8158 ac_ct_STRIP=$STRIP
8159 # Extract the first word of "strip", so it can be a program name with args.
8160 set dummy strip; ac_word=$2
8161 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8162 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8163 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
8164 echo $ECHO_N "(cached) $ECHO_C" >&6
8165 else
8166 if test -n "$ac_ct_STRIP"; then
8167 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
8168 else
8169 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8170 for as_dir in $PATH
8172 IFS=$as_save_IFS
8173 test -z "$as_dir" && as_dir=.
8174 for ac_exec_ext in '' $ac_executable_extensions; do
8175 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8176 ac_cv_prog_ac_ct_STRIP="strip"
8177 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8178 break 2
8180 done
8181 done
8182 IFS=$as_save_IFS
8186 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
8187 if test -n "$ac_ct_STRIP"; then
8188 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
8189 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
8190 else
8191 { echo "$as_me:$LINENO: result: no" >&5
8192 echo "${ECHO_T}no" >&6; }
8195 if test "x$ac_ct_STRIP" = x; then
8196 STRIP=":"
8197 else
8198 case $cross_compiling:$ac_tool_warned in
8199 yes:)
8200 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
8201 whose name does not start with the host triplet. If you think this
8202 configuration is useful to you, please write to autoconf@gnu.org." >&5
8203 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
8204 whose name does not start with the host triplet. If you think this
8205 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
8206 ac_tool_warned=yes ;;
8207 esac
8208 STRIP=$ac_ct_STRIP
8210 else
8211 STRIP="$ac_cv_prog_STRIP"
8215 old_CC="$CC"
8216 old_CFLAGS="$CFLAGS"
8218 # Set sane defaults for various variables
8219 test -z "$AR" && AR=ar
8220 test -z "$AR_FLAGS" && AR_FLAGS=cru
8221 test -z "$AS" && AS=as
8222 test -z "$CC" && CC=cc
8223 test -z "$LTCC" && LTCC=$CC
8224 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8225 test -z "$DLLTOOL" && DLLTOOL=dlltool
8226 test -z "$LD" && LD=ld
8227 test -z "$LN_S" && LN_S="ln -s"
8228 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8229 test -z "$NM" && NM=nm
8230 test -z "$SED" && SED=sed
8231 test -z "$OBJDUMP" && OBJDUMP=objdump
8232 test -z "$RANLIB" && RANLIB=:
8233 test -z "$STRIP" && STRIP=:
8234 test -z "$ac_objext" && ac_objext=o
8236 # Determine commands to create old-style static archives.
8237 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
8238 old_postinstall_cmds='chmod 644 $oldlib'
8239 old_postuninstall_cmds=
8241 if test -n "$RANLIB"; then
8242 case $host_os in
8243 openbsd*)
8244 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
8247 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
8249 esac
8250 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
8253 for cc_temp in $compiler""; do
8254 case $cc_temp in
8255 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8256 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8257 \-*) ;;
8258 *) break;;
8259 esac
8260 done
8261 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8264 # Only perform the check for file, if the check method requires it
8265 case $deplibs_check_method in
8266 file_magic*)
8267 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8268 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
8269 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
8270 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8271 echo $ECHO_N "(cached) $ECHO_C" >&6
8272 else
8273 case $MAGIC_CMD in
8274 [\\/*] | ?:[\\/]*)
8275 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8278 lt_save_MAGIC_CMD="$MAGIC_CMD"
8279 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8280 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8281 for ac_dir in $ac_dummy; do
8282 IFS="$lt_save_ifs"
8283 test -z "$ac_dir" && ac_dir=.
8284 if test -f $ac_dir/${ac_tool_prefix}file; then
8285 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8286 if test -n "$file_magic_test_file"; then
8287 case $deplibs_check_method in
8288 "file_magic "*)
8289 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8290 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8291 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8292 $EGREP "$file_magic_regex" > /dev/null; then
8294 else
8295 cat <<EOF 1>&2
8297 *** Warning: the command libtool uses to detect shared libraries,
8298 *** $file_magic_cmd, produces output that libtool cannot recognize.
8299 *** The result is that libtool may fail to recognize shared libraries
8300 *** as such. This will affect the creation of libtool libraries that
8301 *** depend on shared libraries, but programs linked with such libtool
8302 *** libraries will work regardless of this problem. Nevertheless, you
8303 *** may want to report the problem to your system manager and/or to
8304 *** bug-libtool@gnu.org
8307 fi ;;
8308 esac
8310 break
8312 done
8313 IFS="$lt_save_ifs"
8314 MAGIC_CMD="$lt_save_MAGIC_CMD"
8316 esac
8319 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8320 if test -n "$MAGIC_CMD"; then
8321 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8322 echo "${ECHO_T}$MAGIC_CMD" >&6; }
8323 else
8324 { echo "$as_me:$LINENO: result: no" >&5
8325 echo "${ECHO_T}no" >&6; }
8328 if test -z "$lt_cv_path_MAGIC_CMD"; then
8329 if test -n "$ac_tool_prefix"; then
8330 { echo "$as_me:$LINENO: checking for file" >&5
8331 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
8332 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8333 echo $ECHO_N "(cached) $ECHO_C" >&6
8334 else
8335 case $MAGIC_CMD in
8336 [\\/*] | ?:[\\/]*)
8337 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8340 lt_save_MAGIC_CMD="$MAGIC_CMD"
8341 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8342 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8343 for ac_dir in $ac_dummy; do
8344 IFS="$lt_save_ifs"
8345 test -z "$ac_dir" && ac_dir=.
8346 if test -f $ac_dir/file; then
8347 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8348 if test -n "$file_magic_test_file"; then
8349 case $deplibs_check_method in
8350 "file_magic "*)
8351 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8352 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8353 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8354 $EGREP "$file_magic_regex" > /dev/null; then
8356 else
8357 cat <<EOF 1>&2
8359 *** Warning: the command libtool uses to detect shared libraries,
8360 *** $file_magic_cmd, produces output that libtool cannot recognize.
8361 *** The result is that libtool may fail to recognize shared libraries
8362 *** as such. This will affect the creation of libtool libraries that
8363 *** depend on shared libraries, but programs linked with such libtool
8364 *** libraries will work regardless of this problem. Nevertheless, you
8365 *** may want to report the problem to your system manager and/or to
8366 *** bug-libtool@gnu.org
8369 fi ;;
8370 esac
8372 break
8374 done
8375 IFS="$lt_save_ifs"
8376 MAGIC_CMD="$lt_save_MAGIC_CMD"
8378 esac
8381 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8382 if test -n "$MAGIC_CMD"; then
8383 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8384 echo "${ECHO_T}$MAGIC_CMD" >&6; }
8385 else
8386 { echo "$as_me:$LINENO: result: no" >&5
8387 echo "${ECHO_T}no" >&6; }
8390 else
8391 MAGIC_CMD=:
8397 esac
8399 enable_dlopen=no
8400 enable_win32_dll=no
8402 # Check whether --enable-libtool-lock was given.
8403 if test "${enable_libtool_lock+set}" = set; then
8404 enableval=$enable_libtool_lock;
8407 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8410 # Check whether --with-pic was given.
8411 if test "${with_pic+set}" = set; then
8412 withval=$with_pic; pic_mode="$withval"
8413 else
8414 pic_mode=default
8417 test -z "$pic_mode" && pic_mode=default
8419 # Use C for the default configuration in the libtool script
8420 tagname=
8421 lt_save_CC="$CC"
8422 ac_ext=c
8423 ac_cpp='$CPP $CPPFLAGS'
8424 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8425 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8426 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8429 # Source file extension for C test sources.
8430 ac_ext=c
8432 # Object file extension for compiled C test sources.
8433 objext=o
8434 objext=$objext
8436 # Code to be used in simple compile tests
8437 lt_simple_compile_test_code="int some_variable = 0;\n"
8439 # Code to be used in simple link tests
8440 lt_simple_link_test_code='int main(){return(0);}\n'
8443 # If no C compiler was specified, use CC.
8444 LTCC=${LTCC-"$CC"}
8446 # If no C compiler flags were specified, use CFLAGS.
8447 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8449 # Allow CC to be a program name with arguments.
8450 compiler=$CC
8453 # save warnings/boilerplate of simple test code
8454 ac_outfile=conftest.$ac_objext
8455 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
8456 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8457 _lt_compiler_boilerplate=`cat conftest.err`
8458 $rm conftest*
8460 ac_outfile=conftest.$ac_objext
8461 printf "$lt_simple_link_test_code" >conftest.$ac_ext
8462 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8463 _lt_linker_boilerplate=`cat conftest.err`
8464 $rm conftest*
8468 lt_prog_compiler_no_builtin_flag=
8470 if test "$GCC" = yes; then
8471 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
8474 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8475 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
8476 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
8477 echo $ECHO_N "(cached) $ECHO_C" >&6
8478 else
8479 lt_cv_prog_compiler_rtti_exceptions=no
8480 ac_outfile=conftest.$ac_objext
8481 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8482 lt_compiler_flag="-fno-rtti -fno-exceptions"
8483 # Insert the option either (1) after the last *FLAGS variable, or
8484 # (2) before a word containing "conftest.", or (3) at the end.
8485 # Note that $ac_compile itself does not contain backslashes and begins
8486 # with a dollar sign (not a hyphen), so the echo should work correctly.
8487 # The option is referenced via a variable to avoid confusing sed.
8488 lt_compile=`echo "$ac_compile" | $SED \
8489 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8490 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8491 -e 's:$: $lt_compiler_flag:'`
8492 (eval echo "\"\$as_me:8492: $lt_compile\"" >&5)
8493 (eval "$lt_compile" 2>conftest.err)
8494 ac_status=$?
8495 cat conftest.err >&5
8496 echo "$as_me:8496: \$? = $ac_status" >&5
8497 if (exit $ac_status) && test -s "$ac_outfile"; then
8498 # The compiler can only warn and ignore the option if not recognized
8499 # So say no if there are warnings other than the usual output.
8500 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8501 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8502 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8503 lt_cv_prog_compiler_rtti_exceptions=yes
8506 $rm conftest*
8509 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8510 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8512 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8513 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8514 else
8520 lt_prog_compiler_wl=
8521 lt_prog_compiler_pic=
8522 lt_prog_compiler_static=
8524 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
8525 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
8527 if test "$GCC" = yes; then
8528 lt_prog_compiler_wl='-Wl,'
8529 lt_prog_compiler_static='-static'
8531 case $host_os in
8532 aix*)
8533 # All AIX code is PIC.
8534 if test "$host_cpu" = ia64; then
8535 # AIX 5 now supports IA64 processor
8536 lt_prog_compiler_static='-Bstatic'
8540 amigaos*)
8541 # FIXME: we need at least 68020 code to build shared libraries, but
8542 # adding the `-m68020' flag to GCC prevents building anything better,
8543 # like `-m68040'.
8544 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8547 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8548 # PIC is the default for these OSes.
8551 mingw* | pw32* | os2*)
8552 # This hack is so that the source file can tell whether it is being
8553 # built for inclusion in a dll (and should export symbols for example).
8554 lt_prog_compiler_pic='-DDLL_EXPORT'
8557 darwin* | rhapsody*)
8558 # PIC is the default on this platform
8559 # Common symbols not allowed in MH_DYLIB files
8560 lt_prog_compiler_pic='-fno-common'
8563 interix3*)
8564 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8565 # Instead, we relocate shared libraries at runtime.
8568 msdosdjgpp*)
8569 # Just because we use GCC doesn't mean we suddenly get shared libraries
8570 # on systems that don't support them.
8571 lt_prog_compiler_can_build_shared=no
8572 enable_shared=no
8575 sysv4*MP*)
8576 if test -d /usr/nec; then
8577 lt_prog_compiler_pic=-Kconform_pic
8581 hpux*)
8582 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8583 # not for PA HP-UX.
8584 case $host_cpu in
8585 hppa*64*|ia64*)
8586 # +Z the default
8589 lt_prog_compiler_pic='-fPIC'
8591 esac
8595 lt_prog_compiler_pic='-fPIC'
8597 esac
8598 else
8599 # PORTME Check for flag to pass linker flags through the system compiler.
8600 case $host_os in
8601 aix*)
8602 lt_prog_compiler_wl='-Wl,'
8603 if test "$host_cpu" = ia64; then
8604 # AIX 5 now supports IA64 processor
8605 lt_prog_compiler_static='-Bstatic'
8606 else
8607 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8610 darwin*)
8611 # PIC is the default on this platform
8612 # Common symbols not allowed in MH_DYLIB files
8613 case $cc_basename in
8614 xlc*)
8615 lt_prog_compiler_pic='-qnocommon'
8616 lt_prog_compiler_wl='-Wl,'
8618 esac
8621 mingw* | pw32* | os2*)
8622 # This hack is so that the source file can tell whether it is being
8623 # built for inclusion in a dll (and should export symbols for example).
8624 lt_prog_compiler_pic='-DDLL_EXPORT'
8627 hpux9* | hpux10* | hpux11*)
8628 lt_prog_compiler_wl='-Wl,'
8629 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8630 # not for PA HP-UX.
8631 case $host_cpu in
8632 hppa*64*|ia64*)
8633 # +Z the default
8636 lt_prog_compiler_pic='+Z'
8638 esac
8639 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8640 lt_prog_compiler_static='${wl}-a ${wl}archive'
8643 irix5* | irix6* | nonstopux*)
8644 lt_prog_compiler_wl='-Wl,'
8645 # PIC (with -KPIC) is the default.
8646 lt_prog_compiler_static='-non_shared'
8649 newsos6)
8650 lt_prog_compiler_pic='-KPIC'
8651 lt_prog_compiler_static='-Bstatic'
8654 linux*)
8655 case $cc_basename in
8656 icc* | ecc*)
8657 lt_prog_compiler_wl='-Wl,'
8658 lt_prog_compiler_pic='-KPIC'
8659 lt_prog_compiler_static='-static'
8661 pgcc* | pgf77* | pgf90* | pgf95*)
8662 # Portland Group compilers (*not* the Pentium gcc compiler,
8663 # which looks to be a dead project)
8664 lt_prog_compiler_wl='-Wl,'
8665 lt_prog_compiler_pic='-fpic'
8666 lt_prog_compiler_static='-Bstatic'
8668 ccc*)
8669 lt_prog_compiler_wl='-Wl,'
8670 # All Alpha code is PIC.
8671 lt_prog_compiler_static='-non_shared'
8673 esac
8676 osf3* | osf4* | osf5*)
8677 lt_prog_compiler_wl='-Wl,'
8678 # All OSF/1 code is PIC.
8679 lt_prog_compiler_static='-non_shared'
8682 solaris*)
8683 lt_prog_compiler_pic='-KPIC'
8684 lt_prog_compiler_static='-Bstatic'
8685 case $cc_basename in
8686 f77* | f90* | f95*)
8687 lt_prog_compiler_wl='-Qoption ld ';;
8689 lt_prog_compiler_wl='-Wl,';;
8690 esac
8693 sunos4*)
8694 lt_prog_compiler_wl='-Qoption ld '
8695 lt_prog_compiler_pic='-PIC'
8696 lt_prog_compiler_static='-Bstatic'
8699 sysv4 | sysv4.2uw2* | sysv4.3*)
8700 lt_prog_compiler_wl='-Wl,'
8701 lt_prog_compiler_pic='-KPIC'
8702 lt_prog_compiler_static='-Bstatic'
8705 sysv4*MP*)
8706 if test -d /usr/nec ;then
8707 lt_prog_compiler_pic='-Kconform_pic'
8708 lt_prog_compiler_static='-Bstatic'
8712 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8713 lt_prog_compiler_wl='-Wl,'
8714 lt_prog_compiler_pic='-KPIC'
8715 lt_prog_compiler_static='-Bstatic'
8718 unicos*)
8719 lt_prog_compiler_wl='-Wl,'
8720 lt_prog_compiler_can_build_shared=no
8723 uts4*)
8724 lt_prog_compiler_pic='-pic'
8725 lt_prog_compiler_static='-Bstatic'
8729 lt_prog_compiler_can_build_shared=no
8731 esac
8734 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
8735 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
8738 # Check to make sure the PIC flag actually works.
8740 if test -n "$lt_prog_compiler_pic"; then
8742 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8743 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
8744 if test "${lt_prog_compiler_pic_works+set}" = set; then
8745 echo $ECHO_N "(cached) $ECHO_C" >&6
8746 else
8747 lt_prog_compiler_pic_works=no
8748 ac_outfile=conftest.$ac_objext
8749 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8750 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8751 # Insert the option either (1) after the last *FLAGS variable, or
8752 # (2) before a word containing "conftest.", or (3) at the end.
8753 # Note that $ac_compile itself does not contain backslashes and begins
8754 # with a dollar sign (not a hyphen), so the echo should work correctly.
8755 # The option is referenced via a variable to avoid confusing sed.
8756 lt_compile=`echo "$ac_compile" | $SED \
8757 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8758 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8759 -e 's:$: $lt_compiler_flag:'`
8760 (eval echo "\"\$as_me:8760: $lt_compile\"" >&5)
8761 (eval "$lt_compile" 2>conftest.err)
8762 ac_status=$?
8763 cat conftest.err >&5
8764 echo "$as_me:8764: \$? = $ac_status" >&5
8765 if (exit $ac_status) && test -s "$ac_outfile"; then
8766 # The compiler can only warn and ignore the option if not recognized
8767 # So say no if there are warnings other than the usual output.
8768 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8769 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8770 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8771 lt_prog_compiler_pic_works=yes
8774 $rm conftest*
8777 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
8778 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
8780 if test x"$lt_prog_compiler_pic_works" = xyes; then
8781 case $lt_prog_compiler_pic in
8782 "" | " "*) ;;
8783 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8784 esac
8785 else
8786 lt_prog_compiler_pic=
8787 lt_prog_compiler_can_build_shared=no
8791 case $host_os in
8792 # For platforms which do not support PIC, -DPIC is meaningless:
8793 *djgpp*)
8794 lt_prog_compiler_pic=
8797 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8799 esac
8802 # Check to make sure the static flag actually works.
8804 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8805 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8806 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
8807 if test "${lt_prog_compiler_static_works+set}" = set; then
8808 echo $ECHO_N "(cached) $ECHO_C" >&6
8809 else
8810 lt_prog_compiler_static_works=no
8811 save_LDFLAGS="$LDFLAGS"
8812 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8813 printf "$lt_simple_link_test_code" > conftest.$ac_ext
8814 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8815 # The linker can only warn and ignore the option if not recognized
8816 # So say no if there are warnings
8817 if test -s conftest.err; then
8818 # Append any errors to the config.log.
8819 cat conftest.err 1>&5
8820 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8821 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8822 if diff conftest.exp conftest.er2 >/dev/null; then
8823 lt_prog_compiler_static_works=yes
8825 else
8826 lt_prog_compiler_static_works=yes
8829 $rm conftest*
8830 LDFLAGS="$save_LDFLAGS"
8833 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
8834 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
8836 if test x"$lt_prog_compiler_static_works" = xyes; then
8838 else
8839 lt_prog_compiler_static=
8843 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8844 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
8845 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8846 echo $ECHO_N "(cached) $ECHO_C" >&6
8847 else
8848 lt_cv_prog_compiler_c_o=no
8849 $rm -r conftest 2>/dev/null
8850 mkdir conftest
8851 cd conftest
8852 mkdir out
8853 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8855 lt_compiler_flag="-o out/conftest2.$ac_objext"
8856 # Insert the option either (1) after the last *FLAGS variable, or
8857 # (2) before a word containing "conftest.", or (3) at the end.
8858 # Note that $ac_compile itself does not contain backslashes and begins
8859 # with a dollar sign (not a hyphen), so the echo should work correctly.
8860 lt_compile=`echo "$ac_compile" | $SED \
8861 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8862 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8863 -e 's:$: $lt_compiler_flag:'`
8864 (eval echo "\"\$as_me:8864: $lt_compile\"" >&5)
8865 (eval "$lt_compile" 2>out/conftest.err)
8866 ac_status=$?
8867 cat out/conftest.err >&5
8868 echo "$as_me:8868: \$? = $ac_status" >&5
8869 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8870 then
8871 # The compiler can only warn and ignore the option if not recognized
8872 # So say no if there are warnings
8873 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8874 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8875 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8876 lt_cv_prog_compiler_c_o=yes
8879 chmod u+w . 2>&5
8880 $rm conftest*
8881 # SGI C++ compiler will create directory out/ii_files/ for
8882 # template instantiation
8883 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
8884 $rm out/* && rmdir out
8885 cd ..
8886 rmdir conftest
8887 $rm conftest*
8890 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8891 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
8894 hard_links="nottested"
8895 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8896 # do not overwrite the value of need_locks provided by the user
8897 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8898 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
8899 hard_links=yes
8900 $rm conftest*
8901 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8902 touch conftest.a
8903 ln conftest.a conftest.b 2>&5 || hard_links=no
8904 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8905 { echo "$as_me:$LINENO: result: $hard_links" >&5
8906 echo "${ECHO_T}$hard_links" >&6; }
8907 if test "$hard_links" = no; then
8908 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8909 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8910 need_locks=warn
8912 else
8913 need_locks=no
8916 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8917 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
8919 runpath_var=
8920 allow_undefined_flag=
8921 enable_shared_with_static_runtimes=no
8922 archive_cmds=
8923 archive_expsym_cmds=
8924 old_archive_From_new_cmds=
8925 old_archive_from_expsyms_cmds=
8926 export_dynamic_flag_spec=
8927 whole_archive_flag_spec=
8928 thread_safe_flag_spec=
8929 hardcode_libdir_flag_spec=
8930 hardcode_libdir_flag_spec_ld=
8931 hardcode_libdir_separator=
8932 hardcode_direct=no
8933 hardcode_minus_L=no
8934 hardcode_shlibpath_var=unsupported
8935 link_all_deplibs=unknown
8936 hardcode_automatic=no
8937 module_cmds=
8938 module_expsym_cmds=
8939 always_export_symbols=no
8940 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8941 # include_expsyms should be a list of space-separated symbols to be *always*
8942 # included in the symbol list
8943 include_expsyms=
8944 # exclude_expsyms can be an extended regexp of symbols to exclude
8945 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8946 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8947 # as well as any symbol that contains `d'.
8948 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
8949 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8950 # platforms (ab)use it in PIC code, but their linkers get confused if
8951 # the symbol is explicitly referenced. Since portable code cannot
8952 # rely on this symbol name, it's probably fine to never include it in
8953 # preloaded symbol tables.
8954 extract_expsyms_cmds=
8955 # Just being paranoid about ensuring that cc_basename is set.
8956 for cc_temp in $compiler""; do
8957 case $cc_temp in
8958 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8959 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8960 \-*) ;;
8961 *) break;;
8962 esac
8963 done
8964 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8966 case $host_os in
8967 cygwin* | mingw* | pw32*)
8968 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8969 # When not using gcc, we currently assume that we are using
8970 # Microsoft Visual C++.
8971 if test "$GCC" != yes; then
8972 with_gnu_ld=no
8975 interix*)
8976 # we just hope/assume this is gcc and not c89 (= MSVC++)
8977 with_gnu_ld=yes
8979 openbsd*)
8980 with_gnu_ld=no
8982 esac
8984 ld_shlibs=yes
8985 if test "$with_gnu_ld" = yes; then
8986 # If archive_cmds runs LD, not CC, wlarc should be empty
8987 wlarc='${wl}'
8989 # Set some defaults for GNU ld with shared library support. These
8990 # are reset later if shared libraries are not supported. Putting them
8991 # here allows them to be overridden if necessary.
8992 runpath_var=LD_RUN_PATH
8993 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8994 export_dynamic_flag_spec='${wl}--export-dynamic'
8995 # ancient GNU ld didn't support --whole-archive et. al.
8996 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8997 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8998 else
8999 whole_archive_flag_spec=
9001 supports_anon_versioning=no
9002 case `$LD -v 2>/dev/null` in
9003 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9004 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9005 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9006 *\ 2.11.*) ;; # other 2.11 versions
9007 *) supports_anon_versioning=yes ;;
9008 esac
9010 # See if GNU ld supports shared libraries.
9011 case $host_os in
9012 aix3* | aix4* | aix5*)
9013 # On AIX/PPC, the GNU linker is very broken
9014 if test "$host_cpu" != ia64; then
9015 ld_shlibs=no
9016 cat <<EOF 1>&2
9018 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
9019 *** to be unable to reliably create shared libraries on AIX.
9020 *** Therefore, libtool is disabling shared libraries support. If you
9021 *** really care for shared libraries, you may want to modify your PATH
9022 *** so that a non-GNU linker is found, and then restart.
9028 amigaos*)
9029 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)'
9030 hardcode_libdir_flag_spec='-L$libdir'
9031 hardcode_minus_L=yes
9033 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
9034 # that the semantics of dynamic libraries on AmigaOS, at least up
9035 # to version 4, is to share data among multiple programs linked
9036 # with the same dynamic library. Since this doesn't match the
9037 # behavior of shared libraries on other platforms, we can't use
9038 # them.
9039 ld_shlibs=no
9042 beos*)
9043 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9044 allow_undefined_flag=unsupported
9045 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9046 # support --undefined. This deserves some investigation. FIXME
9047 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9048 else
9049 ld_shlibs=no
9053 cygwin* | mingw* | pw32*)
9054 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9055 # as there is no search path for DLLs.
9056 hardcode_libdir_flag_spec='-L$libdir'
9057 allow_undefined_flag=unsupported
9058 always_export_symbols=no
9059 enable_shared_with_static_runtimes=yes
9060 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
9062 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
9063 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9064 # If the export-symbols file already is a .def file (1st line
9065 # is EXPORTS), use it as is; otherwise, prepend...
9066 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9067 cp $export_symbols $output_objdir/$soname.def;
9068 else
9069 echo EXPORTS > $output_objdir/$soname.def;
9070 cat $export_symbols >> $output_objdir/$soname.def;
9072 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9073 else
9074 ld_shlibs=no
9078 interix3*)
9079 hardcode_direct=no
9080 hardcode_shlibpath_var=no
9081 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9082 export_dynamic_flag_spec='${wl}-E'
9083 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9084 # Instead, shared libraries are loaded at an image base (0x10000000 by
9085 # default) and relocated if they conflict, which is a slow very memory
9086 # consuming and fragmenting process. To avoid this, we pick a random,
9087 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9088 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9089 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9090 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'
9093 linux*)
9094 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9095 tmp_addflag=
9096 case $cc_basename,$host_cpu in
9097 pgcc*) # Portland Group C compiler
9098 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
9099 tmp_addflag=' $pic_flag'
9101 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
9102 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
9103 tmp_addflag=' $pic_flag -Mnomain' ;;
9104 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9105 tmp_addflag=' -i_dynamic' ;;
9106 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9107 tmp_addflag=' -i_dynamic -nofor_main' ;;
9108 ifc* | ifort*) # Intel Fortran compiler
9109 tmp_addflag=' -nofor_main' ;;
9110 esac
9111 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9113 if test $supports_anon_versioning = yes; then
9114 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
9115 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9116 $echo "local: *; };" >> $output_objdir/$libname.ver~
9117 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9119 else
9120 ld_shlibs=no
9124 netbsd*)
9125 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9126 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9127 wlarc=
9128 else
9129 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9130 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9134 solaris*)
9135 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
9136 ld_shlibs=no
9137 cat <<EOF 1>&2
9139 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9140 *** create shared libraries on Solaris systems. Therefore, libtool
9141 *** is disabling shared libraries support. We urge you to upgrade GNU
9142 *** binutils to release 2.9.1 or newer. Another option is to modify
9143 *** your PATH or compiler configuration so that the native linker is
9144 *** used, and then restart.
9147 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9148 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9149 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9150 else
9151 ld_shlibs=no
9155 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9156 case `$LD -v 2>&1` in
9157 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9158 ld_shlibs=no
9159 cat <<_LT_EOF 1>&2
9161 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9162 *** reliably create shared libraries on SCO systems. Therefore, libtool
9163 *** is disabling shared libraries support. We urge you to upgrade GNU
9164 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9165 *** your PATH or compiler configuration so that the native linker is
9166 *** used, and then restart.
9168 _LT_EOF
9171 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9172 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
9173 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
9174 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
9175 else
9176 ld_shlibs=no
9179 esac
9182 sunos4*)
9183 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9184 wlarc=
9185 hardcode_direct=yes
9186 hardcode_shlibpath_var=no
9190 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9191 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9192 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9193 else
9194 ld_shlibs=no
9197 esac
9199 if test "$ld_shlibs" = no; then
9200 runpath_var=
9201 hardcode_libdir_flag_spec=
9202 export_dynamic_flag_spec=
9203 whole_archive_flag_spec=
9205 else
9206 # PORTME fill in a description of your system's linker (not GNU ld)
9207 case $host_os in
9208 aix3*)
9209 allow_undefined_flag=unsupported
9210 always_export_symbols=yes
9211 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'
9212 # Note: this linker hardcodes the directories in LIBPATH if there
9213 # are no directories specified by -L.
9214 hardcode_minus_L=yes
9215 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9216 # Neither direct hardcoding nor static linking is supported with a
9217 # broken collect2.
9218 hardcode_direct=unsupported
9222 aix4* | aix5*)
9223 if test "$host_cpu" = ia64; then
9224 # On IA64, the linker does run time linking by default, so we don't
9225 # have to do anything special.
9226 aix_use_runtimelinking=no
9227 exp_sym_flag='-Bexport'
9228 no_entry_flag=""
9229 else
9230 # If we're using GNU nm, then we don't want the "-C" option.
9231 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9232 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
9233 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
9234 else
9235 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'
9237 aix_use_runtimelinking=no
9239 # Test if we are trying to use run time linking or normal
9240 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9241 # need to do runtime linking.
9242 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9243 for ld_flag in $LDFLAGS; do
9244 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9245 aix_use_runtimelinking=yes
9246 break
9248 done
9250 esac
9252 exp_sym_flag='-bexport'
9253 no_entry_flag='-bnoentry'
9256 # When large executables or shared objects are built, AIX ld can
9257 # have problems creating the table of contents. If linking a library
9258 # or program results in "error TOC overflow" add -mminimal-toc to
9259 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9260 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9262 archive_cmds=''
9263 hardcode_direct=yes
9264 hardcode_libdir_separator=':'
9265 link_all_deplibs=yes
9267 if test "$GCC" = yes; then
9268 case $host_os in aix4.[012]|aix4.[012].*)
9269 # We only want to do this on AIX 4.2 and lower, the check
9270 # below for broken collect2 doesn't work under 4.3+
9271 collect2name=`${CC} -print-prog-name=collect2`
9272 if test -f "$collect2name" && \
9273 strings "$collect2name" | grep resolve_lib_name >/dev/null
9274 then
9275 # We have reworked collect2
9276 hardcode_direct=yes
9277 else
9278 # We have old collect2
9279 hardcode_direct=unsupported
9280 # It fails to find uninstalled libraries when the uninstalled
9281 # path is not listed in the libpath. Setting hardcode_minus_L
9282 # to unsupported forces relinking
9283 hardcode_minus_L=yes
9284 hardcode_libdir_flag_spec='-L$libdir'
9285 hardcode_libdir_separator=
9288 esac
9289 shared_flag='-shared'
9290 if test "$aix_use_runtimelinking" = yes; then
9291 shared_flag="$shared_flag "'${wl}-G'
9293 else
9294 # not using gcc
9295 if test "$host_cpu" = ia64; then
9296 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9297 # chokes on -Wl,-G. The following line is correct:
9298 shared_flag='-G'
9299 else
9300 if test "$aix_use_runtimelinking" = yes; then
9301 shared_flag='${wl}-G'
9302 else
9303 shared_flag='${wl}-bM:SRE'
9308 # It seems that -bexpall does not export symbols beginning with
9309 # underscore (_), so it is better to generate a list of symbols to export.
9310 always_export_symbols=yes
9311 if test "$aix_use_runtimelinking" = yes; then
9312 # Warning - without using the other runtime loading flags (-brtl),
9313 # -berok will link without error, but may produce a broken library.
9314 allow_undefined_flag='-berok'
9315 # Determine the default libpath from the value encoded in an empty executable.
9316 cat >conftest.$ac_ext <<_ACEOF
9317 /* confdefs.h. */
9318 _ACEOF
9319 cat confdefs.h >>conftest.$ac_ext
9320 cat >>conftest.$ac_ext <<_ACEOF
9321 /* end confdefs.h. */
9324 main ()
9328 return 0;
9330 _ACEOF
9331 rm -f conftest.$ac_objext conftest$ac_exeext
9332 if { (ac_try="$ac_link"
9333 case "(($ac_try" in
9334 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9335 *) ac_try_echo=$ac_try;;
9336 esac
9337 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9338 (eval "$ac_link") 2>conftest.er1
9339 ac_status=$?
9340 grep -v '^ *+' conftest.er1 >conftest.err
9341 rm -f conftest.er1
9342 cat conftest.err >&5
9343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9344 (exit $ac_status); } &&
9345 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9346 { (case "(($ac_try" in
9347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9348 *) ac_try_echo=$ac_try;;
9349 esac
9350 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9351 (eval "$ac_try") 2>&5
9352 ac_status=$?
9353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9354 (exit $ac_status); }; } &&
9355 { ac_try='test -s conftest$ac_exeext'
9356 { (case "(($ac_try" in
9357 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9358 *) ac_try_echo=$ac_try;;
9359 esac
9360 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9361 (eval "$ac_try") 2>&5
9362 ac_status=$?
9363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9364 (exit $ac_status); }; }; then
9366 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9368 # Check for a 64-bit object if we didn't find anything.
9369 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9370 }'`; fi
9371 else
9372 echo "$as_me: failed program was:" >&5
9373 sed 's/^/| /' conftest.$ac_ext >&5
9378 rm -f core conftest.err conftest.$ac_objext \
9379 conftest$ac_exeext conftest.$ac_ext
9380 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9382 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9383 archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
9384 else
9385 if test "$host_cpu" = ia64; then
9386 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9387 allow_undefined_flag="-z nodefs"
9388 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"
9389 else
9390 # Determine the default libpath from the value encoded in an empty executable.
9391 cat >conftest.$ac_ext <<_ACEOF
9392 /* confdefs.h. */
9393 _ACEOF
9394 cat confdefs.h >>conftest.$ac_ext
9395 cat >>conftest.$ac_ext <<_ACEOF
9396 /* end confdefs.h. */
9399 main ()
9403 return 0;
9405 _ACEOF
9406 rm -f conftest.$ac_objext conftest$ac_exeext
9407 if { (ac_try="$ac_link"
9408 case "(($ac_try" in
9409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9410 *) ac_try_echo=$ac_try;;
9411 esac
9412 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9413 (eval "$ac_link") 2>conftest.er1
9414 ac_status=$?
9415 grep -v '^ *+' conftest.er1 >conftest.err
9416 rm -f conftest.er1
9417 cat conftest.err >&5
9418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9419 (exit $ac_status); } &&
9420 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9421 { (case "(($ac_try" in
9422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9423 *) ac_try_echo=$ac_try;;
9424 esac
9425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9426 (eval "$ac_try") 2>&5
9427 ac_status=$?
9428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9429 (exit $ac_status); }; } &&
9430 { ac_try='test -s conftest$ac_exeext'
9431 { (case "(($ac_try" in
9432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9433 *) ac_try_echo=$ac_try;;
9434 esac
9435 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9436 (eval "$ac_try") 2>&5
9437 ac_status=$?
9438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9439 (exit $ac_status); }; }; then
9441 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9443 # Check for a 64-bit object if we didn't find anything.
9444 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9445 }'`; fi
9446 else
9447 echo "$as_me: failed program was:" >&5
9448 sed 's/^/| /' conftest.$ac_ext >&5
9453 rm -f core conftest.err conftest.$ac_objext \
9454 conftest$ac_exeext conftest.$ac_ext
9455 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9457 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9458 # Warning - without using the other run time loading flags,
9459 # -berok will link without error, but may produce a broken library.
9460 no_undefined_flag=' ${wl}-bernotok'
9461 allow_undefined_flag=' ${wl}-berok'
9462 # Exported symbols can be pulled into shared objects from archives
9463 whole_archive_flag_spec='$convenience'
9464 archive_cmds_need_lc=yes
9465 # This is similar to how AIX traditionally builds its shared libraries.
9466 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'
9471 amigaos*)
9472 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)'
9473 hardcode_libdir_flag_spec='-L$libdir'
9474 hardcode_minus_L=yes
9475 # see comment about different semantics on the GNU ld section
9476 ld_shlibs=no
9479 bsdi[45]*)
9480 export_dynamic_flag_spec=-rdynamic
9483 cygwin* | mingw* | pw32*)
9484 # When not using gcc, we currently assume that we are using
9485 # Microsoft Visual C++.
9486 # hardcode_libdir_flag_spec is actually meaningless, as there is
9487 # no search path for DLLs.
9488 hardcode_libdir_flag_spec=' '
9489 allow_undefined_flag=unsupported
9490 # Tell ltmain to make .lib files, not .a files.
9491 libext=lib
9492 # Tell ltmain to make .dll files, not .so files.
9493 shrext_cmds=".dll"
9494 # FIXME: Setting linknames here is a bad hack.
9495 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
9496 # The linker will automatically build a .lib file if we build a DLL.
9497 old_archive_From_new_cmds='true'
9498 # FIXME: Should let the user specify the lib program.
9499 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
9500 fix_srcfile_path='`cygpath -w "$srcfile"`'
9501 enable_shared_with_static_runtimes=yes
9504 darwin* | rhapsody*)
9505 case $host_os in
9506 rhapsody* | darwin1.[012])
9507 allow_undefined_flag='${wl}-undefined ${wl}suppress'
9509 *) # Darwin 1.3 on
9510 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
9511 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9512 else
9513 case ${MACOSX_DEPLOYMENT_TARGET} in
9514 10.[012])
9515 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9517 10.*)
9518 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
9520 esac
9523 esac
9524 archive_cmds_need_lc=no
9525 hardcode_direct=no
9526 hardcode_automatic=yes
9527 hardcode_shlibpath_var=unsupported
9528 whole_archive_flag_spec=''
9529 link_all_deplibs=yes
9530 if test "$GCC" = yes ; then
9531 output_verbose_link_cmd='echo'
9532 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9533 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9534 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
9535 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
9536 module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
9537 else
9538 case $cc_basename in
9539 xlc*)
9540 output_verbose_link_cmd='echo'
9541 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
9542 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9543 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
9544 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
9545 module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
9548 ld_shlibs=no
9550 esac
9554 dgux*)
9555 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9556 hardcode_libdir_flag_spec='-L$libdir'
9557 hardcode_shlibpath_var=no
9560 freebsd1*)
9561 ld_shlibs=no
9564 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9565 # support. Future versions do this automatically, but an explicit c++rt0.o
9566 # does not break anything, and helps significantly (at the cost of a little
9567 # extra space).
9568 freebsd2.2*)
9569 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9570 hardcode_libdir_flag_spec='-R$libdir'
9571 hardcode_direct=yes
9572 hardcode_shlibpath_var=no
9575 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9576 freebsd2*)
9577 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9578 hardcode_direct=yes
9579 hardcode_minus_L=yes
9580 hardcode_shlibpath_var=no
9583 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9584 freebsd* | kfreebsd*-gnu | dragonfly*)
9585 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9586 hardcode_libdir_flag_spec='-R$libdir'
9587 hardcode_direct=yes
9588 hardcode_shlibpath_var=no
9591 hpux9*)
9592 if test "$GCC" = yes; then
9593 archive_cmds='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9594 else
9595 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'
9597 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9598 hardcode_libdir_separator=:
9599 hardcode_direct=yes
9601 # hardcode_minus_L: Not really in the search PATH,
9602 # but as the default location of the library.
9603 hardcode_minus_L=yes
9604 export_dynamic_flag_spec='${wl}-E'
9607 hpux10*)
9608 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9609 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9610 else
9611 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9613 if test "$with_gnu_ld" = no; then
9614 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9615 hardcode_libdir_separator=:
9617 hardcode_direct=yes
9618 export_dynamic_flag_spec='${wl}-E'
9620 # hardcode_minus_L: Not really in the search PATH,
9621 # but as the default location of the library.
9622 hardcode_minus_L=yes
9626 hpux11*)
9627 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9628 case $host_cpu in
9629 hppa*64*)
9630 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9632 ia64*)
9633 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9636 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9638 esac
9639 else
9640 case $host_cpu in
9641 hppa*64*)
9642 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9644 ia64*)
9645 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9648 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9650 esac
9652 if test "$with_gnu_ld" = no; then
9653 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9654 hardcode_libdir_separator=:
9656 case $host_cpu in
9657 hppa*64*|ia64*)
9658 hardcode_libdir_flag_spec_ld='+b $libdir'
9659 hardcode_direct=no
9660 hardcode_shlibpath_var=no
9663 hardcode_direct=yes
9664 export_dynamic_flag_spec='${wl}-E'
9666 # hardcode_minus_L: Not really in the search PATH,
9667 # but as the default location of the library.
9668 hardcode_minus_L=yes
9670 esac
9674 irix5* | irix6* | nonstopux*)
9675 if test "$GCC" = yes; then
9676 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9677 else
9678 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
9679 hardcode_libdir_flag_spec_ld='-rpath $libdir'
9681 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9682 hardcode_libdir_separator=:
9683 link_all_deplibs=yes
9686 netbsd*)
9687 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9688 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9689 else
9690 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9692 hardcode_libdir_flag_spec='-R$libdir'
9693 hardcode_direct=yes
9694 hardcode_shlibpath_var=no
9697 newsos6)
9698 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9699 hardcode_direct=yes
9700 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9701 hardcode_libdir_separator=:
9702 hardcode_shlibpath_var=no
9705 openbsd*)
9706 hardcode_direct=yes
9707 hardcode_shlibpath_var=no
9708 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9709 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9710 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9711 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9712 export_dynamic_flag_spec='${wl}-E'
9713 else
9714 case $host_os in
9715 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9716 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9717 hardcode_libdir_flag_spec='-R$libdir'
9720 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9721 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9723 esac
9727 os2*)
9728 hardcode_libdir_flag_spec='-L$libdir'
9729 hardcode_minus_L=yes
9730 allow_undefined_flag=unsupported
9731 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'
9732 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9735 osf3*)
9736 if test "$GCC" = yes; then
9737 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9738 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9739 else
9740 allow_undefined_flag=' -expect_unresolved \*'
9741 archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
9743 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9744 hardcode_libdir_separator=:
9747 osf4* | osf5*) # as osf3* with the addition of -msym flag
9748 if test "$GCC" = yes; then
9749 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9750 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9751 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9752 else
9753 allow_undefined_flag=' -expect_unresolved \*'
9754 archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
9755 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
9756 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
9758 # Both c and cxx compiler support -rpath directly
9759 hardcode_libdir_flag_spec='-rpath $libdir'
9761 hardcode_libdir_separator=:
9764 solaris*)
9765 no_undefined_flag=' -z text'
9766 if test "$GCC" = yes; then
9767 wlarc='${wl}'
9768 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9769 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9770 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
9771 else
9772 wlarc=''
9773 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9774 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9775 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
9777 hardcode_libdir_flag_spec='-R$libdir'
9778 hardcode_shlibpath_var=no
9779 case $host_os in
9780 solaris2.[0-5] | solaris2.[0-5].*) ;;
9782 # The compiler driver will combine linker options so we
9783 # cannot just pass the convience library names through
9784 # without $wl, iff we do not link with $LD.
9785 # Luckily, gcc supports the same syntax we need for Sun Studio.
9786 # Supported since Solaris 2.6 (maybe 2.5.1?)
9787 case $wlarc in
9789 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
9791 whole_archive_flag_spec='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
9792 esac ;;
9793 esac
9794 link_all_deplibs=yes
9797 sunos4*)
9798 if test "x$host_vendor" = xsequent; then
9799 # Use $CC to link under sequent, because it throws in some extra .o
9800 # files that make .init and .fini sections work.
9801 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9802 else
9803 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9805 hardcode_libdir_flag_spec='-L$libdir'
9806 hardcode_direct=yes
9807 hardcode_minus_L=yes
9808 hardcode_shlibpath_var=no
9811 sysv4)
9812 case $host_vendor in
9813 sni)
9814 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9815 hardcode_direct=yes # is this really true???
9817 siemens)
9818 ## LD is ld it makes a PLAMLIB
9819 ## CC just makes a GrossModule.
9820 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9821 reload_cmds='$CC -r -o $output$reload_objs'
9822 hardcode_direct=no
9824 motorola)
9825 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9826 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9828 esac
9829 runpath_var='LD_RUN_PATH'
9830 hardcode_shlibpath_var=no
9833 sysv4.3*)
9834 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9835 hardcode_shlibpath_var=no
9836 export_dynamic_flag_spec='-Bexport'
9839 sysv4*MP*)
9840 if test -d /usr/nec; then
9841 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9842 hardcode_shlibpath_var=no
9843 runpath_var=LD_RUN_PATH
9844 hardcode_runpath_var=yes
9845 ld_shlibs=yes
9849 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
9850 no_undefined_flag='${wl}-z,text'
9851 archive_cmds_need_lc=no
9852 hardcode_shlibpath_var=no
9853 runpath_var='LD_RUN_PATH'
9855 if test "$GCC" = yes; then
9856 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9857 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9858 else
9859 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9860 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9864 sysv5* | sco3.2v5* | sco5v6*)
9865 # Note: We can NOT use -z defs as we might desire, because we do not
9866 # link with -lc, and that would cause any symbols used from libc to
9867 # always be unresolved, which means just about no library would
9868 # ever link correctly. If we're not using GNU ld we use -z text
9869 # though, which does catch some bad symbols but isn't as heavy-handed
9870 # as -z defs.
9871 no_undefined_flag='${wl}-z,text'
9872 allow_undefined_flag='${wl}-z,nodefs'
9873 archive_cmds_need_lc=no
9874 hardcode_shlibpath_var=no
9875 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
9876 hardcode_libdir_separator=':'
9877 link_all_deplibs=yes
9878 export_dynamic_flag_spec='${wl}-Bexport'
9879 runpath_var='LD_RUN_PATH'
9881 if test "$GCC" = yes; then
9882 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9883 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9884 else
9885 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9886 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9890 uts4*)
9891 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9892 hardcode_libdir_flag_spec='-L$libdir'
9893 hardcode_shlibpath_var=no
9897 ld_shlibs=no
9899 esac
9902 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9903 echo "${ECHO_T}$ld_shlibs" >&6; }
9904 test "$ld_shlibs" = no && can_build_shared=no
9907 # Do we need to explicitly link libc?
9909 case "x$archive_cmds_need_lc" in
9910 x|xyes)
9911 # Assume -lc should be added
9912 archive_cmds_need_lc=yes
9914 if test "$enable_shared" = yes && test "$GCC" = yes; then
9915 case $archive_cmds in
9916 *'~'*)
9917 # FIXME: we may have to deal with multi-command sequences.
9919 '$CC '*)
9920 # Test whether the compiler implicitly links with -lc since on some
9921 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9922 # to ld, don't add -lc before -lgcc.
9923 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9924 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
9925 $rm conftest*
9926 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9928 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9929 (eval $ac_compile) 2>&5
9930 ac_status=$?
9931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9932 (exit $ac_status); } 2>conftest.err; then
9933 soname=conftest
9934 lib=conftest
9935 libobjs=conftest.$ac_objext
9936 deplibs=
9937 wl=$lt_prog_compiler_wl
9938 pic_flag=$lt_prog_compiler_pic
9939 compiler_flags=-v
9940 linker_flags=-v
9941 verstring=
9942 output_objdir=.
9943 libname=conftest
9944 lt_save_allow_undefined_flag=$allow_undefined_flag
9945 allow_undefined_flag=
9946 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
9947 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
9948 ac_status=$?
9949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9950 (exit $ac_status); }
9951 then
9952 archive_cmds_need_lc=no
9953 else
9954 archive_cmds_need_lc=yes
9956 allow_undefined_flag=$lt_save_allow_undefined_flag
9957 else
9958 cat conftest.err 1>&5
9960 $rm conftest*
9961 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9962 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
9964 esac
9967 esac
9969 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9970 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
9971 library_names_spec=
9972 libname_spec='lib$name'
9973 soname_spec=
9974 shrext_cmds=".so"
9975 postinstall_cmds=
9976 postuninstall_cmds=
9977 finish_cmds=
9978 finish_eval=
9979 shlibpath_var=
9980 shlibpath_overrides_runpath=unknown
9981 version_type=none
9982 dynamic_linker="$host_os ld.so"
9983 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9984 if test "$GCC" = yes; then
9985 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9986 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9987 # if the path contains ";" then we assume it to be the separator
9988 # otherwise default to the standard path separator (i.e. ":") - it is
9989 # assumed that no part of a normal pathname contains ";" but that should
9990 # okay in the real world where ";" in dirpaths is itself problematic.
9991 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9992 else
9993 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9995 else
9996 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9998 need_lib_prefix=unknown
9999 hardcode_into_libs=no
10001 # when you set need_version to no, make sure it does not cause -set_version
10002 # flags to be left without arguments
10003 need_version=unknown
10005 case $host_os in
10006 aix3*)
10007 version_type=linux
10008 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10009 shlibpath_var=LIBPATH
10011 # AIX 3 has no versioning support, so we append a major version to the name.
10012 soname_spec='${libname}${release}${shared_ext}$major'
10015 aix4* | aix5*)
10016 version_type=linux
10017 need_lib_prefix=no
10018 need_version=no
10019 hardcode_into_libs=yes
10020 if test "$host_cpu" = ia64; then
10021 # AIX 5 supports IA64
10022 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10023 shlibpath_var=LD_LIBRARY_PATH
10024 else
10025 # With GCC up to 2.95.x, collect2 would create an import file
10026 # for dependence libraries. The import file would start with
10027 # the line `#! .'. This would cause the generated library to
10028 # depend on `.', always an invalid library. This was fixed in
10029 # development snapshots of GCC prior to 3.0.
10030 case $host_os in
10031 aix4 | aix4.[01] | aix4.[01].*)
10032 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10033 echo ' yes '
10034 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
10036 else
10037 can_build_shared=no
10040 esac
10041 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10042 # soname into executable. Probably we can add versioning support to
10043 # collect2, so additional links can be useful in future.
10044 if test "$aix_use_runtimelinking" = yes; then
10045 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10046 # instead of lib<name>.a to let people know that these are not
10047 # typical AIX shared libraries.
10048 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10049 else
10050 # We preserve .a as extension for shared libraries through AIX4.2
10051 # and later when we are not doing run time linking.
10052 library_names_spec='${libname}${release}.a $libname.a'
10053 soname_spec='${libname}${release}${shared_ext}$major'
10055 shlibpath_var=LIBPATH
10059 amigaos*)
10060 library_names_spec='$libname.ixlibrary $libname.a'
10061 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10062 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''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'
10065 beos*)
10066 library_names_spec='${libname}${shared_ext}'
10067 dynamic_linker="$host_os ld.so"
10068 shlibpath_var=LIBRARY_PATH
10071 bsdi[45]*)
10072 version_type=linux
10073 need_version=no
10074 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10075 soname_spec='${libname}${release}${shared_ext}$major'
10076 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10077 shlibpath_var=LD_LIBRARY_PATH
10078 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10079 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10080 # the default ld.so.conf also contains /usr/contrib/lib and
10081 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10082 # libtool to hard-code these into programs
10085 cygwin* | mingw* | pw32*)
10086 version_type=windows
10087 shrext_cmds=".dll"
10088 need_version=no
10089 need_lib_prefix=no
10091 case $GCC,$host_os in
10092 yes,cygwin* | yes,mingw* | yes,pw32*)
10093 library_names_spec='$libname.dll.a'
10094 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10095 postinstall_cmds='base_file=`basename \${file}`~
10096 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
10097 dldir=$destdir/`dirname \$dlpath`~
10098 test -d \$dldir || mkdir -p \$dldir~
10099 $install_prog $dir/$dlname \$dldir/$dlname~
10100 chmod a+x \$dldir/$dlname'
10101 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10102 dlpath=$dir/\$dldll~
10103 $rm \$dlpath'
10104 shlibpath_overrides_runpath=yes
10106 case $host_os in
10107 cygwin*)
10108 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10109 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10110 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
10112 mingw*)
10113 # MinGW DLLs use traditional 'lib' prefix
10114 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10115 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10116 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
10117 # It is most probably a Windows format PATH printed by
10118 # mingw gcc, but we are running on Cygwin. Gcc prints its search
10119 # path with ; separators, and with drive letters. We can handle the
10120 # drive letters (cygwin fileutils understands them), so leave them,
10121 # especially as we might pass files found there to a mingw objdump,
10122 # which wouldn't understand a cygwinified path. Ahh.
10123 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10124 else
10125 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10128 pw32*)
10129 # pw32 DLLs use 'pw' prefix rather than 'lib'
10130 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10132 esac
10136 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10138 esac
10139 dynamic_linker='Win32 ld.exe'
10140 # FIXME: first we should search . and the directory the executable is in
10141 shlibpath_var=PATH
10144 darwin* | rhapsody*)
10145 dynamic_linker="$host_os dyld"
10146 version_type=darwin
10147 need_lib_prefix=no
10148 need_version=no
10149 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10150 soname_spec='${libname}${release}${major}$shared_ext'
10151 shlibpath_overrides_runpath=yes
10152 shlibpath_var=DYLD_LIBRARY_PATH
10153 shrext_cmds='.dylib'
10154 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
10155 if test "$GCC" = yes; then
10156 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
10157 else
10158 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
10160 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10163 dgux*)
10164 version_type=linux
10165 need_lib_prefix=no
10166 need_version=no
10167 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10168 soname_spec='${libname}${release}${shared_ext}$major'
10169 shlibpath_var=LD_LIBRARY_PATH
10172 freebsd1*)
10173 dynamic_linker=no
10176 kfreebsd*-gnu)
10177 version_type=linux
10178 need_lib_prefix=no
10179 need_version=no
10180 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10181 soname_spec='${libname}${release}${shared_ext}$major'
10182 shlibpath_var=LD_LIBRARY_PATH
10183 shlibpath_overrides_runpath=no
10184 hardcode_into_libs=yes
10185 dynamic_linker='GNU ld.so'
10188 freebsd* | dragonfly*)
10189 # DragonFly does not have aout. When/if they implement a new
10190 # versioning mechanism, adjust this.
10191 if test -x /usr/bin/objformat; then
10192 objformat=`/usr/bin/objformat`
10193 else
10194 case $host_os in
10195 freebsd[123]*) objformat=aout ;;
10196 *) objformat=elf ;;
10197 esac
10199 version_type=freebsd-$objformat
10200 case $version_type in
10201 freebsd-elf*)
10202 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10203 need_version=no
10204 need_lib_prefix=no
10206 freebsd-*)
10207 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10208 need_version=yes
10210 esac
10211 shlibpath_var=LD_LIBRARY_PATH
10212 case $host_os in
10213 freebsd2*)
10214 shlibpath_overrides_runpath=yes
10216 freebsd3.[01]* | freebsdelf3.[01]*)
10217 shlibpath_overrides_runpath=yes
10218 hardcode_into_libs=yes
10220 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10221 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10222 shlibpath_overrides_runpath=no
10223 hardcode_into_libs=yes
10225 freebsd*) # from 4.6 on
10226 shlibpath_overrides_runpath=yes
10227 hardcode_into_libs=yes
10229 esac
10232 gnu*)
10233 version_type=linux
10234 need_lib_prefix=no
10235 need_version=no
10236 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10237 soname_spec='${libname}${release}${shared_ext}$major'
10238 shlibpath_var=LD_LIBRARY_PATH
10239 hardcode_into_libs=yes
10242 hpux9* | hpux10* | hpux11*)
10243 # Give a soname corresponding to the major version so that dld.sl refuses to
10244 # link against other versions.
10245 version_type=sunos
10246 need_lib_prefix=no
10247 need_version=no
10248 case $host_cpu in
10249 ia64*)
10250 shrext_cmds='.so'
10251 hardcode_into_libs=yes
10252 dynamic_linker="$host_os dld.so"
10253 shlibpath_var=LD_LIBRARY_PATH
10254 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10255 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10256 soname_spec='${libname}${release}${shared_ext}$major'
10257 if test "X$HPUX_IA64_MODE" = X32; then
10258 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10259 else
10260 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10262 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10264 hppa*64*)
10265 shrext_cmds='.sl'
10266 hardcode_into_libs=yes
10267 dynamic_linker="$host_os dld.sl"
10268 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10269 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10270 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10271 soname_spec='${libname}${release}${shared_ext}$major'
10272 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10273 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10276 shrext_cmds='.sl'
10277 dynamic_linker="$host_os dld.sl"
10278 shlibpath_var=SHLIB_PATH
10279 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10280 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10281 soname_spec='${libname}${release}${shared_ext}$major'
10283 esac
10284 # HP-UX runs *really* slowly unless shared libraries are mode 555.
10285 postinstall_cmds='chmod 555 $lib'
10288 interix3*)
10289 version_type=linux
10290 need_lib_prefix=no
10291 need_version=no
10292 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10293 soname_spec='${libname}${release}${shared_ext}$major'
10294 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10295 shlibpath_var=LD_LIBRARY_PATH
10296 shlibpath_overrides_runpath=no
10297 hardcode_into_libs=yes
10300 irix5* | irix6* | nonstopux*)
10301 case $host_os in
10302 nonstopux*) version_type=nonstopux ;;
10304 if test "$lt_cv_prog_gnu_ld" = yes; then
10305 version_type=linux
10306 else
10307 version_type=irix
10308 fi ;;
10309 esac
10310 need_lib_prefix=no
10311 need_version=no
10312 soname_spec='${libname}${release}${shared_ext}$major'
10313 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10314 case $host_os in
10315 irix5* | nonstopux*)
10316 libsuff= shlibsuff=
10319 case $LD in # libtool.m4 will add one of these switches to LD
10320 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10321 libsuff= shlibsuff= libmagic=32-bit;;
10322 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10323 libsuff=32 shlibsuff=N32 libmagic=N32;;
10324 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10325 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10326 *) libsuff= shlibsuff= libmagic=never-match;;
10327 esac
10329 esac
10330 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10331 shlibpath_overrides_runpath=no
10332 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10333 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10334 hardcode_into_libs=yes
10337 # No shared lib support for Linux oldld, aout, or coff.
10338 linux*oldld* | linux*aout* | linux*coff*)
10339 dynamic_linker=no
10342 # This must be Linux ELF.
10343 linux*)
10344 version_type=linux
10345 need_lib_prefix=no
10346 need_version=no
10347 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10348 soname_spec='${libname}${release}${shared_ext}$major'
10349 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10350 shlibpath_var=LD_LIBRARY_PATH
10351 shlibpath_overrides_runpath=no
10352 # This implies no fast_install, which is unacceptable.
10353 # Some rework will be needed to allow for fast_install
10354 # before this can be enabled.
10355 hardcode_into_libs=yes
10357 # Append ld.so.conf contents to the search path
10358 if test -f /etc/ld.so.conf; then
10359 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
10360 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10363 # We used to test for /lib/ld.so.1 and disable shared libraries on
10364 # powerpc, because MkLinux only supported shared libraries with the
10365 # GNU dynamic linker. Since this was broken with cross compilers,
10366 # most powerpc-linux boxes support dynamic linking these days and
10367 # people can always --disable-shared, the test was removed, and we
10368 # assume the GNU/Linux dynamic linker is in use.
10369 dynamic_linker='GNU/Linux ld.so'
10372 knetbsd*-gnu)
10373 version_type=linux
10374 need_lib_prefix=no
10375 need_version=no
10376 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10377 soname_spec='${libname}${release}${shared_ext}$major'
10378 shlibpath_var=LD_LIBRARY_PATH
10379 shlibpath_overrides_runpath=no
10380 hardcode_into_libs=yes
10381 dynamic_linker='GNU ld.so'
10384 netbsd*)
10385 version_type=sunos
10386 need_lib_prefix=no
10387 need_version=no
10388 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10389 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10390 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10391 dynamic_linker='NetBSD (a.out) ld.so'
10392 else
10393 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10394 soname_spec='${libname}${release}${shared_ext}$major'
10395 dynamic_linker='NetBSD ld.elf_so'
10397 shlibpath_var=LD_LIBRARY_PATH
10398 shlibpath_overrides_runpath=yes
10399 hardcode_into_libs=yes
10402 newsos6)
10403 version_type=linux
10404 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10405 shlibpath_var=LD_LIBRARY_PATH
10406 shlibpath_overrides_runpath=yes
10409 nto-qnx*)
10410 version_type=linux
10411 need_lib_prefix=no
10412 need_version=no
10413 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10414 soname_spec='${libname}${release}${shared_ext}$major'
10415 shlibpath_var=LD_LIBRARY_PATH
10416 shlibpath_overrides_runpath=yes
10419 openbsd*)
10420 version_type=sunos
10421 sys_lib_dlsearch_path_spec="/usr/lib"
10422 need_lib_prefix=no
10423 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10424 case $host_os in
10425 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10426 *) need_version=no ;;
10427 esac
10428 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10429 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10430 shlibpath_var=LD_LIBRARY_PATH
10431 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10432 case $host_os in
10433 openbsd2.[89] | openbsd2.[89].*)
10434 shlibpath_overrides_runpath=no
10437 shlibpath_overrides_runpath=yes
10439 esac
10440 else
10441 shlibpath_overrides_runpath=yes
10445 os2*)
10446 libname_spec='$name'
10447 shrext_cmds=".dll"
10448 need_lib_prefix=no
10449 library_names_spec='$libname${shared_ext} $libname.a'
10450 dynamic_linker='OS/2 ld.exe'
10451 shlibpath_var=LIBPATH
10454 osf3* | osf4* | osf5*)
10455 version_type=osf
10456 need_lib_prefix=no
10457 need_version=no
10458 soname_spec='${libname}${release}${shared_ext}$major'
10459 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10460 shlibpath_var=LD_LIBRARY_PATH
10461 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10462 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10465 solaris*)
10466 version_type=linux
10467 need_lib_prefix=no
10468 need_version=no
10469 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10470 soname_spec='${libname}${release}${shared_ext}$major'
10471 shlibpath_var=LD_LIBRARY_PATH
10472 shlibpath_overrides_runpath=yes
10473 hardcode_into_libs=yes
10474 # ldd complains unless libraries are executable
10475 postinstall_cmds='chmod +x $lib'
10478 sunos4*)
10479 version_type=sunos
10480 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10481 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10482 shlibpath_var=LD_LIBRARY_PATH
10483 shlibpath_overrides_runpath=yes
10484 if test "$with_gnu_ld" = yes; then
10485 need_lib_prefix=no
10487 need_version=yes
10490 sysv4 | sysv4.3*)
10491 version_type=linux
10492 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10493 soname_spec='${libname}${release}${shared_ext}$major'
10494 shlibpath_var=LD_LIBRARY_PATH
10495 case $host_vendor in
10496 sni)
10497 shlibpath_overrides_runpath=no
10498 need_lib_prefix=no
10499 export_dynamic_flag_spec='${wl}-Blargedynsym'
10500 runpath_var=LD_RUN_PATH
10502 siemens)
10503 need_lib_prefix=no
10505 motorola)
10506 need_lib_prefix=no
10507 need_version=no
10508 shlibpath_overrides_runpath=no
10509 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10511 esac
10514 sysv4*MP*)
10515 if test -d /usr/nec ;then
10516 version_type=linux
10517 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10518 soname_spec='$libname${shared_ext}.$major'
10519 shlibpath_var=LD_LIBRARY_PATH
10523 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10524 version_type=freebsd-elf
10525 need_lib_prefix=no
10526 need_version=no
10527 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10528 soname_spec='${libname}${release}${shared_ext}$major'
10529 shlibpath_var=LD_LIBRARY_PATH
10530 hardcode_into_libs=yes
10531 if test "$with_gnu_ld" = yes; then
10532 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10533 shlibpath_overrides_runpath=no
10534 else
10535 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10536 shlibpath_overrides_runpath=yes
10537 case $host_os in
10538 sco3.2v5*)
10539 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10541 esac
10543 sys_lib_dlsearch_path_spec='/usr/lib'
10546 uts4*)
10547 version_type=linux
10548 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10549 soname_spec='${libname}${release}${shared_ext}$major'
10550 shlibpath_var=LD_LIBRARY_PATH
10554 dynamic_linker=no
10556 esac
10557 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10558 echo "${ECHO_T}$dynamic_linker" >&6; }
10559 test "$dynamic_linker" = no && can_build_shared=no
10561 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10562 if test "$GCC" = yes; then
10563 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10566 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10567 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
10568 hardcode_action=
10569 if test -n "$hardcode_libdir_flag_spec" || \
10570 test -n "$runpath_var" || \
10571 test "X$hardcode_automatic" = "Xyes" ; then
10573 # We can hardcode non-existant directories.
10574 if test "$hardcode_direct" != no &&
10575 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10576 # have to relink, otherwise we might link with an installed library
10577 # when we should be linking with a yet-to-be-installed one
10578 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
10579 test "$hardcode_minus_L" != no; then
10580 # Linking always hardcodes the temporary library directory.
10581 hardcode_action=relink
10582 else
10583 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10584 hardcode_action=immediate
10586 else
10587 # We cannot hardcode anything, or else we can only hardcode existing
10588 # directories.
10589 hardcode_action=unsupported
10591 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
10592 echo "${ECHO_T}$hardcode_action" >&6; }
10594 if test "$hardcode_action" = relink; then
10595 # Fast installation is not supported
10596 enable_fast_install=no
10597 elif test "$shlibpath_overrides_runpath" = yes ||
10598 test "$enable_shared" = no; then
10599 # Fast installation is not necessary
10600 enable_fast_install=needless
10603 striplib=
10604 old_striplib=
10605 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10606 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
10607 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
10608 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10609 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10610 { echo "$as_me:$LINENO: result: yes" >&5
10611 echo "${ECHO_T}yes" >&6; }
10612 else
10613 # FIXME - insert some real tests, host_os isn't really good enough
10614 case $host_os in
10615 darwin*)
10616 if test -n "$STRIP" ; then
10617 striplib="$STRIP -x"
10618 { echo "$as_me:$LINENO: result: yes" >&5
10619 echo "${ECHO_T}yes" >&6; }
10620 else
10621 { echo "$as_me:$LINENO: result: no" >&5
10622 echo "${ECHO_T}no" >&6; }
10626 { echo "$as_me:$LINENO: result: no" >&5
10627 echo "${ECHO_T}no" >&6; }
10629 esac
10632 if test "x$enable_dlopen" != xyes; then
10633 enable_dlopen=unknown
10634 enable_dlopen_self=unknown
10635 enable_dlopen_self_static=unknown
10636 else
10637 lt_cv_dlopen=no
10638 lt_cv_dlopen_libs=
10640 case $host_os in
10641 beos*)
10642 lt_cv_dlopen="load_add_on"
10643 lt_cv_dlopen_libs=
10644 lt_cv_dlopen_self=yes
10647 mingw* | pw32*)
10648 lt_cv_dlopen="LoadLibrary"
10649 lt_cv_dlopen_libs=
10652 cygwin*)
10653 lt_cv_dlopen="dlopen"
10654 lt_cv_dlopen_libs=
10657 darwin*)
10658 # if libdl is installed we need to link against it
10659 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10660 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10661 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10662 echo $ECHO_N "(cached) $ECHO_C" >&6
10663 else
10664 ac_check_lib_save_LIBS=$LIBS
10665 LIBS="-ldl $LIBS"
10666 cat >conftest.$ac_ext <<_ACEOF
10667 /* confdefs.h. */
10668 _ACEOF
10669 cat confdefs.h >>conftest.$ac_ext
10670 cat >>conftest.$ac_ext <<_ACEOF
10671 /* end confdefs.h. */
10673 /* Override any GCC internal prototype to avoid an error.
10674 Use char because int might match the return type of a GCC
10675 builtin and then its argument prototype would still apply. */
10676 #ifdef __cplusplus
10677 extern "C"
10678 #endif
10679 char dlopen ();
10681 main ()
10683 return dlopen ();
10685 return 0;
10687 _ACEOF
10688 rm -f conftest.$ac_objext conftest$ac_exeext
10689 if { (ac_try="$ac_link"
10690 case "(($ac_try" in
10691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10692 *) ac_try_echo=$ac_try;;
10693 esac
10694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10695 (eval "$ac_link") 2>conftest.er1
10696 ac_status=$?
10697 grep -v '^ *+' conftest.er1 >conftest.err
10698 rm -f conftest.er1
10699 cat conftest.err >&5
10700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10701 (exit $ac_status); } &&
10702 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10703 { (case "(($ac_try" in
10704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10705 *) ac_try_echo=$ac_try;;
10706 esac
10707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10708 (eval "$ac_try") 2>&5
10709 ac_status=$?
10710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10711 (exit $ac_status); }; } &&
10712 { ac_try='test -s conftest$ac_exeext'
10713 { (case "(($ac_try" in
10714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10715 *) ac_try_echo=$ac_try;;
10716 esac
10717 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10718 (eval "$ac_try") 2>&5
10719 ac_status=$?
10720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10721 (exit $ac_status); }; }; then
10722 ac_cv_lib_dl_dlopen=yes
10723 else
10724 echo "$as_me: failed program was:" >&5
10725 sed 's/^/| /' conftest.$ac_ext >&5
10727 ac_cv_lib_dl_dlopen=no
10730 rm -f core conftest.err conftest.$ac_objext \
10731 conftest$ac_exeext conftest.$ac_ext
10732 LIBS=$ac_check_lib_save_LIBS
10734 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10735 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10736 if test $ac_cv_lib_dl_dlopen = yes; then
10737 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10738 else
10740 lt_cv_dlopen="dyld"
10741 lt_cv_dlopen_libs=
10742 lt_cv_dlopen_self=yes
10749 { echo "$as_me:$LINENO: checking for shl_load" >&5
10750 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
10751 if test "${ac_cv_func_shl_load+set}" = set; then
10752 echo $ECHO_N "(cached) $ECHO_C" >&6
10753 else
10754 cat >conftest.$ac_ext <<_ACEOF
10755 /* confdefs.h. */
10756 _ACEOF
10757 cat confdefs.h >>conftest.$ac_ext
10758 cat >>conftest.$ac_ext <<_ACEOF
10759 /* end confdefs.h. */
10760 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10761 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10762 #define shl_load innocuous_shl_load
10764 /* System header to define __stub macros and hopefully few prototypes,
10765 which can conflict with char shl_load (); below.
10766 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10767 <limits.h> exists even on freestanding compilers. */
10769 #ifdef __STDC__
10770 # include <limits.h>
10771 #else
10772 # include <assert.h>
10773 #endif
10775 #undef shl_load
10777 /* Override any GCC internal prototype to avoid an error.
10778 Use char because int might match the return type of a GCC
10779 builtin and then its argument prototype would still apply. */
10780 #ifdef __cplusplus
10781 extern "C"
10782 #endif
10783 char shl_load ();
10784 /* The GNU C library defines this for functions which it implements
10785 to always fail with ENOSYS. Some functions are actually named
10786 something starting with __ and the normal name is an alias. */
10787 #if defined __stub_shl_load || defined __stub___shl_load
10788 choke me
10789 #endif
10792 main ()
10794 return shl_load ();
10796 return 0;
10798 _ACEOF
10799 rm -f conftest.$ac_objext conftest$ac_exeext
10800 if { (ac_try="$ac_link"
10801 case "(($ac_try" in
10802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10803 *) ac_try_echo=$ac_try;;
10804 esac
10805 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10806 (eval "$ac_link") 2>conftest.er1
10807 ac_status=$?
10808 grep -v '^ *+' conftest.er1 >conftest.err
10809 rm -f conftest.er1
10810 cat conftest.err >&5
10811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10812 (exit $ac_status); } &&
10813 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10814 { (case "(($ac_try" in
10815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10816 *) ac_try_echo=$ac_try;;
10817 esac
10818 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10819 (eval "$ac_try") 2>&5
10820 ac_status=$?
10821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10822 (exit $ac_status); }; } &&
10823 { ac_try='test -s conftest$ac_exeext'
10824 { (case "(($ac_try" in
10825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10826 *) ac_try_echo=$ac_try;;
10827 esac
10828 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10829 (eval "$ac_try") 2>&5
10830 ac_status=$?
10831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10832 (exit $ac_status); }; }; then
10833 ac_cv_func_shl_load=yes
10834 else
10835 echo "$as_me: failed program was:" >&5
10836 sed 's/^/| /' conftest.$ac_ext >&5
10838 ac_cv_func_shl_load=no
10841 rm -f core conftest.err conftest.$ac_objext \
10842 conftest$ac_exeext conftest.$ac_ext
10844 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10845 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
10846 if test $ac_cv_func_shl_load = yes; then
10847 lt_cv_dlopen="shl_load"
10848 else
10849 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10850 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
10851 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10852 echo $ECHO_N "(cached) $ECHO_C" >&6
10853 else
10854 ac_check_lib_save_LIBS=$LIBS
10855 LIBS="-ldld $LIBS"
10856 cat >conftest.$ac_ext <<_ACEOF
10857 /* confdefs.h. */
10858 _ACEOF
10859 cat confdefs.h >>conftest.$ac_ext
10860 cat >>conftest.$ac_ext <<_ACEOF
10861 /* end confdefs.h. */
10863 /* Override any GCC internal prototype to avoid an error.
10864 Use char because int might match the return type of a GCC
10865 builtin and then its argument prototype would still apply. */
10866 #ifdef __cplusplus
10867 extern "C"
10868 #endif
10869 char shl_load ();
10871 main ()
10873 return shl_load ();
10875 return 0;
10877 _ACEOF
10878 rm -f conftest.$ac_objext conftest$ac_exeext
10879 if { (ac_try="$ac_link"
10880 case "(($ac_try" in
10881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10882 *) ac_try_echo=$ac_try;;
10883 esac
10884 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10885 (eval "$ac_link") 2>conftest.er1
10886 ac_status=$?
10887 grep -v '^ *+' conftest.er1 >conftest.err
10888 rm -f conftest.er1
10889 cat conftest.err >&5
10890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10891 (exit $ac_status); } &&
10892 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10893 { (case "(($ac_try" in
10894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10895 *) ac_try_echo=$ac_try;;
10896 esac
10897 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10898 (eval "$ac_try") 2>&5
10899 ac_status=$?
10900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10901 (exit $ac_status); }; } &&
10902 { ac_try='test -s conftest$ac_exeext'
10903 { (case "(($ac_try" in
10904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10905 *) ac_try_echo=$ac_try;;
10906 esac
10907 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10908 (eval "$ac_try") 2>&5
10909 ac_status=$?
10910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10911 (exit $ac_status); }; }; then
10912 ac_cv_lib_dld_shl_load=yes
10913 else
10914 echo "$as_me: failed program was:" >&5
10915 sed 's/^/| /' conftest.$ac_ext >&5
10917 ac_cv_lib_dld_shl_load=no
10920 rm -f core conftest.err conftest.$ac_objext \
10921 conftest$ac_exeext conftest.$ac_ext
10922 LIBS=$ac_check_lib_save_LIBS
10924 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10925 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
10926 if test $ac_cv_lib_dld_shl_load = yes; then
10927 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
10928 else
10929 { echo "$as_me:$LINENO: checking for dlopen" >&5
10930 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
10931 if test "${ac_cv_func_dlopen+set}" = set; then
10932 echo $ECHO_N "(cached) $ECHO_C" >&6
10933 else
10934 cat >conftest.$ac_ext <<_ACEOF
10935 /* confdefs.h. */
10936 _ACEOF
10937 cat confdefs.h >>conftest.$ac_ext
10938 cat >>conftest.$ac_ext <<_ACEOF
10939 /* end confdefs.h. */
10940 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10941 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10942 #define dlopen innocuous_dlopen
10944 /* System header to define __stub macros and hopefully few prototypes,
10945 which can conflict with char dlopen (); below.
10946 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10947 <limits.h> exists even on freestanding compilers. */
10949 #ifdef __STDC__
10950 # include <limits.h>
10951 #else
10952 # include <assert.h>
10953 #endif
10955 #undef dlopen
10957 /* Override any GCC internal prototype to avoid an error.
10958 Use char because int might match the return type of a GCC
10959 builtin and then its argument prototype would still apply. */
10960 #ifdef __cplusplus
10961 extern "C"
10962 #endif
10963 char dlopen ();
10964 /* The GNU C library defines this for functions which it implements
10965 to always fail with ENOSYS. Some functions are actually named
10966 something starting with __ and the normal name is an alias. */
10967 #if defined __stub_dlopen || defined __stub___dlopen
10968 choke me
10969 #endif
10972 main ()
10974 return dlopen ();
10976 return 0;
10978 _ACEOF
10979 rm -f conftest.$ac_objext conftest$ac_exeext
10980 if { (ac_try="$ac_link"
10981 case "(($ac_try" in
10982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10983 *) ac_try_echo=$ac_try;;
10984 esac
10985 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10986 (eval "$ac_link") 2>conftest.er1
10987 ac_status=$?
10988 grep -v '^ *+' conftest.er1 >conftest.err
10989 rm -f conftest.er1
10990 cat conftest.err >&5
10991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10992 (exit $ac_status); } &&
10993 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10994 { (case "(($ac_try" in
10995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10996 *) ac_try_echo=$ac_try;;
10997 esac
10998 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10999 (eval "$ac_try") 2>&5
11000 ac_status=$?
11001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11002 (exit $ac_status); }; } &&
11003 { ac_try='test -s conftest$ac_exeext'
11004 { (case "(($ac_try" in
11005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11006 *) ac_try_echo=$ac_try;;
11007 esac
11008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11009 (eval "$ac_try") 2>&5
11010 ac_status=$?
11011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11012 (exit $ac_status); }; }; then
11013 ac_cv_func_dlopen=yes
11014 else
11015 echo "$as_me: failed program was:" >&5
11016 sed 's/^/| /' conftest.$ac_ext >&5
11018 ac_cv_func_dlopen=no
11021 rm -f core conftest.err conftest.$ac_objext \
11022 conftest$ac_exeext conftest.$ac_ext
11024 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
11025 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
11026 if test $ac_cv_func_dlopen = yes; then
11027 lt_cv_dlopen="dlopen"
11028 else
11029 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11030 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
11031 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11032 echo $ECHO_N "(cached) $ECHO_C" >&6
11033 else
11034 ac_check_lib_save_LIBS=$LIBS
11035 LIBS="-ldl $LIBS"
11036 cat >conftest.$ac_ext <<_ACEOF
11037 /* confdefs.h. */
11038 _ACEOF
11039 cat confdefs.h >>conftest.$ac_ext
11040 cat >>conftest.$ac_ext <<_ACEOF
11041 /* end confdefs.h. */
11043 /* Override any GCC internal prototype to avoid an error.
11044 Use char because int might match the return type of a GCC
11045 builtin and then its argument prototype would still apply. */
11046 #ifdef __cplusplus
11047 extern "C"
11048 #endif
11049 char dlopen ();
11051 main ()
11053 return dlopen ();
11055 return 0;
11057 _ACEOF
11058 rm -f conftest.$ac_objext conftest$ac_exeext
11059 if { (ac_try="$ac_link"
11060 case "(($ac_try" in
11061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11062 *) ac_try_echo=$ac_try;;
11063 esac
11064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11065 (eval "$ac_link") 2>conftest.er1
11066 ac_status=$?
11067 grep -v '^ *+' conftest.er1 >conftest.err
11068 rm -f conftest.er1
11069 cat conftest.err >&5
11070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11071 (exit $ac_status); } &&
11072 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11073 { (case "(($ac_try" in
11074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11075 *) ac_try_echo=$ac_try;;
11076 esac
11077 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11078 (eval "$ac_try") 2>&5
11079 ac_status=$?
11080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11081 (exit $ac_status); }; } &&
11082 { ac_try='test -s conftest$ac_exeext'
11083 { (case "(($ac_try" in
11084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11085 *) ac_try_echo=$ac_try;;
11086 esac
11087 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11088 (eval "$ac_try") 2>&5
11089 ac_status=$?
11090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11091 (exit $ac_status); }; }; then
11092 ac_cv_lib_dl_dlopen=yes
11093 else
11094 echo "$as_me: failed program was:" >&5
11095 sed 's/^/| /' conftest.$ac_ext >&5
11097 ac_cv_lib_dl_dlopen=no
11100 rm -f core conftest.err conftest.$ac_objext \
11101 conftest$ac_exeext conftest.$ac_ext
11102 LIBS=$ac_check_lib_save_LIBS
11104 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11105 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
11106 if test $ac_cv_lib_dl_dlopen = yes; then
11107 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11108 else
11109 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
11110 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
11111 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
11112 echo $ECHO_N "(cached) $ECHO_C" >&6
11113 else
11114 ac_check_lib_save_LIBS=$LIBS
11115 LIBS="-lsvld $LIBS"
11116 cat >conftest.$ac_ext <<_ACEOF
11117 /* confdefs.h. */
11118 _ACEOF
11119 cat confdefs.h >>conftest.$ac_ext
11120 cat >>conftest.$ac_ext <<_ACEOF
11121 /* end confdefs.h. */
11123 /* Override any GCC internal prototype to avoid an error.
11124 Use char because int might match the return type of a GCC
11125 builtin and then its argument prototype would still apply. */
11126 #ifdef __cplusplus
11127 extern "C"
11128 #endif
11129 char dlopen ();
11131 main ()
11133 return dlopen ();
11135 return 0;
11137 _ACEOF
11138 rm -f conftest.$ac_objext conftest$ac_exeext
11139 if { (ac_try="$ac_link"
11140 case "(($ac_try" in
11141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11142 *) ac_try_echo=$ac_try;;
11143 esac
11144 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11145 (eval "$ac_link") 2>conftest.er1
11146 ac_status=$?
11147 grep -v '^ *+' conftest.er1 >conftest.err
11148 rm -f conftest.er1
11149 cat conftest.err >&5
11150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11151 (exit $ac_status); } &&
11152 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11153 { (case "(($ac_try" in
11154 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11155 *) ac_try_echo=$ac_try;;
11156 esac
11157 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11158 (eval "$ac_try") 2>&5
11159 ac_status=$?
11160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11161 (exit $ac_status); }; } &&
11162 { ac_try='test -s conftest$ac_exeext'
11163 { (case "(($ac_try" in
11164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11165 *) ac_try_echo=$ac_try;;
11166 esac
11167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11168 (eval "$ac_try") 2>&5
11169 ac_status=$?
11170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11171 (exit $ac_status); }; }; then
11172 ac_cv_lib_svld_dlopen=yes
11173 else
11174 echo "$as_me: failed program was:" >&5
11175 sed 's/^/| /' conftest.$ac_ext >&5
11177 ac_cv_lib_svld_dlopen=no
11180 rm -f core conftest.err conftest.$ac_objext \
11181 conftest$ac_exeext conftest.$ac_ext
11182 LIBS=$ac_check_lib_save_LIBS
11184 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
11185 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
11186 if test $ac_cv_lib_svld_dlopen = yes; then
11187 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11188 else
11189 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
11190 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
11191 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
11192 echo $ECHO_N "(cached) $ECHO_C" >&6
11193 else
11194 ac_check_lib_save_LIBS=$LIBS
11195 LIBS="-ldld $LIBS"
11196 cat >conftest.$ac_ext <<_ACEOF
11197 /* confdefs.h. */
11198 _ACEOF
11199 cat confdefs.h >>conftest.$ac_ext
11200 cat >>conftest.$ac_ext <<_ACEOF
11201 /* end confdefs.h. */
11203 /* Override any GCC internal prototype to avoid an error.
11204 Use char because int might match the return type of a GCC
11205 builtin and then its argument prototype would still apply. */
11206 #ifdef __cplusplus
11207 extern "C"
11208 #endif
11209 char dld_link ();
11211 main ()
11213 return dld_link ();
11215 return 0;
11217 _ACEOF
11218 rm -f conftest.$ac_objext conftest$ac_exeext
11219 if { (ac_try="$ac_link"
11220 case "(($ac_try" in
11221 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11222 *) ac_try_echo=$ac_try;;
11223 esac
11224 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11225 (eval "$ac_link") 2>conftest.er1
11226 ac_status=$?
11227 grep -v '^ *+' conftest.er1 >conftest.err
11228 rm -f conftest.er1
11229 cat conftest.err >&5
11230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11231 (exit $ac_status); } &&
11232 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11233 { (case "(($ac_try" in
11234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11235 *) ac_try_echo=$ac_try;;
11236 esac
11237 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11238 (eval "$ac_try") 2>&5
11239 ac_status=$?
11240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11241 (exit $ac_status); }; } &&
11242 { ac_try='test -s conftest$ac_exeext'
11243 { (case "(($ac_try" in
11244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11245 *) ac_try_echo=$ac_try;;
11246 esac
11247 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11248 (eval "$ac_try") 2>&5
11249 ac_status=$?
11250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11251 (exit $ac_status); }; }; then
11252 ac_cv_lib_dld_dld_link=yes
11253 else
11254 echo "$as_me: failed program was:" >&5
11255 sed 's/^/| /' conftest.$ac_ext >&5
11257 ac_cv_lib_dld_dld_link=no
11260 rm -f core conftest.err conftest.$ac_objext \
11261 conftest$ac_exeext conftest.$ac_ext
11262 LIBS=$ac_check_lib_save_LIBS
11264 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
11265 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
11266 if test $ac_cv_lib_dld_dld_link = yes; then
11267 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
11286 esac
11288 if test "x$lt_cv_dlopen" != xno; then
11289 enable_dlopen=yes
11290 else
11291 enable_dlopen=no
11294 case $lt_cv_dlopen in
11295 dlopen)
11296 save_CPPFLAGS="$CPPFLAGS"
11297 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11299 save_LDFLAGS="$LDFLAGS"
11300 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11302 save_LIBS="$LIBS"
11303 LIBS="$lt_cv_dlopen_libs $LIBS"
11305 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
11306 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
11307 if test "${lt_cv_dlopen_self+set}" = set; then
11308 echo $ECHO_N "(cached) $ECHO_C" >&6
11309 else
11310 if test "$cross_compiling" = yes; then :
11311 lt_cv_dlopen_self=cross
11312 else
11313 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11314 lt_status=$lt_dlunknown
11315 cat > conftest.$ac_ext <<EOF
11316 #line 11316 "configure"
11317 #include "confdefs.h"
11319 #if HAVE_DLFCN_H
11320 #include <dlfcn.h>
11321 #endif
11323 #include <stdio.h>
11325 #ifdef RTLD_GLOBAL
11326 # define LT_DLGLOBAL RTLD_GLOBAL
11327 #else
11328 # ifdef DL_GLOBAL
11329 # define LT_DLGLOBAL DL_GLOBAL
11330 # else
11331 # define LT_DLGLOBAL 0
11332 # endif
11333 #endif
11335 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11336 find out it does not work in some platform. */
11337 #ifndef LT_DLLAZY_OR_NOW
11338 # ifdef RTLD_LAZY
11339 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11340 # else
11341 # ifdef DL_LAZY
11342 # define LT_DLLAZY_OR_NOW DL_LAZY
11343 # else
11344 # ifdef RTLD_NOW
11345 # define LT_DLLAZY_OR_NOW RTLD_NOW
11346 # else
11347 # ifdef DL_NOW
11348 # define LT_DLLAZY_OR_NOW DL_NOW
11349 # else
11350 # define LT_DLLAZY_OR_NOW 0
11351 # endif
11352 # endif
11353 # endif
11354 # endif
11355 #endif
11357 #ifdef __cplusplus
11358 extern "C" void exit (int);
11359 #endif
11361 void fnord() { int i=42;}
11362 int main ()
11364 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11365 int status = $lt_dlunknown;
11367 if (self)
11369 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11370 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11371 /* dlclose (self); */
11373 else
11374 puts (dlerror ());
11376 exit (status);
11379 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11380 (eval $ac_link) 2>&5
11381 ac_status=$?
11382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11383 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11384 (./conftest; exit; ) >&5 2>/dev/null
11385 lt_status=$?
11386 case x$lt_status in
11387 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11388 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11389 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11390 esac
11391 else :
11392 # compilation failed
11393 lt_cv_dlopen_self=no
11396 rm -fr conftest*
11400 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
11401 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
11403 if test "x$lt_cv_dlopen_self" = xyes; then
11404 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11405 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
11406 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
11407 if test "${lt_cv_dlopen_self_static+set}" = set; then
11408 echo $ECHO_N "(cached) $ECHO_C" >&6
11409 else
11410 if test "$cross_compiling" = yes; then :
11411 lt_cv_dlopen_self_static=cross
11412 else
11413 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11414 lt_status=$lt_dlunknown
11415 cat > conftest.$ac_ext <<EOF
11416 #line 11416 "configure"
11417 #include "confdefs.h"
11419 #if HAVE_DLFCN_H
11420 #include <dlfcn.h>
11421 #endif
11423 #include <stdio.h>
11425 #ifdef RTLD_GLOBAL
11426 # define LT_DLGLOBAL RTLD_GLOBAL
11427 #else
11428 # ifdef DL_GLOBAL
11429 # define LT_DLGLOBAL DL_GLOBAL
11430 # else
11431 # define LT_DLGLOBAL 0
11432 # endif
11433 #endif
11435 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11436 find out it does not work in some platform. */
11437 #ifndef LT_DLLAZY_OR_NOW
11438 # ifdef RTLD_LAZY
11439 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11440 # else
11441 # ifdef DL_LAZY
11442 # define LT_DLLAZY_OR_NOW DL_LAZY
11443 # else
11444 # ifdef RTLD_NOW
11445 # define LT_DLLAZY_OR_NOW RTLD_NOW
11446 # else
11447 # ifdef DL_NOW
11448 # define LT_DLLAZY_OR_NOW DL_NOW
11449 # else
11450 # define LT_DLLAZY_OR_NOW 0
11451 # endif
11452 # endif
11453 # endif
11454 # endif
11455 #endif
11457 #ifdef __cplusplus
11458 extern "C" void exit (int);
11459 #endif
11461 void fnord() { int i=42;}
11462 int main ()
11464 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11465 int status = $lt_dlunknown;
11467 if (self)
11469 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11470 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11471 /* dlclose (self); */
11473 else
11474 puts (dlerror ());
11476 exit (status);
11479 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11480 (eval $ac_link) 2>&5
11481 ac_status=$?
11482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11483 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11484 (./conftest; exit; ) >&5 2>/dev/null
11485 lt_status=$?
11486 case x$lt_status in
11487 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11488 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11489 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11490 esac
11491 else :
11492 # compilation failed
11493 lt_cv_dlopen_self_static=no
11496 rm -fr conftest*
11500 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
11501 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
11504 CPPFLAGS="$save_CPPFLAGS"
11505 LDFLAGS="$save_LDFLAGS"
11506 LIBS="$save_LIBS"
11508 esac
11510 case $lt_cv_dlopen_self in
11511 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11512 *) enable_dlopen_self=unknown ;;
11513 esac
11515 case $lt_cv_dlopen_self_static in
11516 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11517 *) enable_dlopen_self_static=unknown ;;
11518 esac
11522 # Report which library types will actually be built
11523 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
11524 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
11525 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
11526 echo "${ECHO_T}$can_build_shared" >&6; }
11528 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
11529 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
11530 test "$can_build_shared" = "no" && enable_shared=no
11532 # On AIX, shared libraries and static libraries use the same namespace, and
11533 # are all built from PIC.
11534 case $host_os in
11535 aix3*)
11536 test "$enable_shared" = yes && enable_static=no
11537 if test -n "$RANLIB"; then
11538 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11539 postinstall_cmds='$RANLIB $lib'
11543 aix4* | aix5*)
11544 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11545 test "$enable_shared" = yes && enable_static=no
11548 esac
11549 { echo "$as_me:$LINENO: result: $enable_shared" >&5
11550 echo "${ECHO_T}$enable_shared" >&6; }
11552 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
11553 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
11554 # Make sure either enable_shared or enable_static is yes.
11555 test "$enable_shared" = yes || enable_static=yes
11556 { echo "$as_me:$LINENO: result: $enable_static" >&5
11557 echo "${ECHO_T}$enable_static" >&6; }
11559 # The else clause should only fire when bootstrapping the
11560 # libtool distribution, otherwise you forgot to ship ltmain.sh
11561 # with your package, and you will get complaints that there are
11562 # no rules to generate ltmain.sh.
11563 if test -f "$ltmain"; then
11564 # See if we are running on zsh, and set the options which allow our commands through
11565 # without removal of \ escapes.
11566 if test -n "${ZSH_VERSION+set}" ; then
11567 setopt NO_GLOB_SUBST
11569 # Now quote all the things that may contain metacharacters while being
11570 # careful not to overquote the AC_SUBSTed values. We take copies of the
11571 # variables and quote the copies for generation of the libtool script.
11572 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
11573 SED SHELL STRIP \
11574 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
11575 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
11576 deplibs_check_method reload_flag reload_cmds need_locks \
11577 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
11578 lt_cv_sys_global_symbol_to_c_name_address \
11579 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
11580 old_postinstall_cmds old_postuninstall_cmds \
11581 compiler \
11582 CC \
11583 LD \
11584 lt_prog_compiler_wl \
11585 lt_prog_compiler_pic \
11586 lt_prog_compiler_static \
11587 lt_prog_compiler_no_builtin_flag \
11588 export_dynamic_flag_spec \
11589 thread_safe_flag_spec \
11590 whole_archive_flag_spec \
11591 enable_shared_with_static_runtimes \
11592 old_archive_cmds \
11593 old_archive_from_new_cmds \
11594 predep_objects \
11595 postdep_objects \
11596 predeps \
11597 postdeps \
11598 compiler_lib_search_path \
11599 archive_cmds \
11600 archive_expsym_cmds \
11601 postinstall_cmds \
11602 postuninstall_cmds \
11603 old_archive_from_expsyms_cmds \
11604 allow_undefined_flag \
11605 no_undefined_flag \
11606 export_symbols_cmds \
11607 hardcode_libdir_flag_spec \
11608 hardcode_libdir_flag_spec_ld \
11609 hardcode_libdir_separator \
11610 hardcode_automatic \
11611 module_cmds \
11612 module_expsym_cmds \
11613 lt_cv_prog_compiler_c_o \
11614 exclude_expsyms \
11615 include_expsyms; do
11617 case $var in
11618 old_archive_cmds | \
11619 old_archive_from_new_cmds | \
11620 archive_cmds | \
11621 archive_expsym_cmds | \
11622 module_cmds | \
11623 module_expsym_cmds | \
11624 old_archive_from_expsyms_cmds | \
11625 export_symbols_cmds | \
11626 extract_expsyms_cmds | reload_cmds | finish_cmds | \
11627 postinstall_cmds | postuninstall_cmds | \
11628 old_postinstall_cmds | old_postuninstall_cmds | \
11629 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
11630 # Double-quote double-evaled strings.
11631 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
11634 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
11636 esac
11637 done
11639 case $lt_echo in
11640 *'\$0 --fallback-echo"')
11641 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
11643 esac
11645 cfgfile="${ofile}T"
11646 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
11647 $rm -f "$cfgfile"
11648 { echo "$as_me:$LINENO: creating $ofile" >&5
11649 echo "$as_me: creating $ofile" >&6;}
11651 cat <<__EOF__ >> "$cfgfile"
11652 #! $SHELL
11654 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
11655 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
11656 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
11658 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
11659 # Free Software Foundation, Inc.
11661 # This file is part of GNU Libtool:
11662 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
11664 # This program is free software; you can redistribute it and/or modify
11665 # it under the terms of the GNU General Public License as published by
11666 # the Free Software Foundation; either version 2 of the License, or
11667 # (at your option) any later version.
11669 # This program is distributed in the hope that it will be useful, but
11670 # WITHOUT ANY WARRANTY; without even the implied warranty of
11671 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11672 # General Public License for more details.
11674 # You should have received a copy of the GNU General Public License
11675 # along with this program; if not, write to the Free Software
11676 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
11678 # As a special exception to the GNU General Public License, if you
11679 # distribute this file as part of a program that contains a
11680 # configuration script generated by Autoconf, you may include it under
11681 # the same distribution terms that you use for the rest of that program.
11683 # A sed program that does not truncate output.
11684 SED=$lt_SED
11686 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
11687 Xsed="$SED -e 1s/^X//"
11689 # The HP-UX ksh and POSIX shell print the target directory to stdout
11690 # if CDPATH is set.
11691 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11693 # The names of the tagged configurations supported by this script.
11694 available_tags=
11696 # ### BEGIN LIBTOOL CONFIG
11698 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
11700 # Shell to use when invoking shell scripts.
11701 SHELL=$lt_SHELL
11703 # Whether or not to build shared libraries.
11704 build_libtool_libs=$enable_shared
11706 # Whether or not to build static libraries.
11707 build_old_libs=$enable_static
11709 # Whether or not to add -lc for building shared libraries.
11710 build_libtool_need_lc=$archive_cmds_need_lc
11712 # Whether or not to disallow shared libs when runtime libs are static
11713 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
11715 # Whether or not to optimize for fast installation.
11716 fast_install=$enable_fast_install
11718 # The host system.
11719 host_alias=$host_alias
11720 host=$host
11721 host_os=$host_os
11723 # The build system.
11724 build_alias=$build_alias
11725 build=$build
11726 build_os=$build_os
11728 # An echo program that does not interpret backslashes.
11729 echo=$lt_echo
11731 # The archiver.
11732 AR=$lt_AR
11733 AR_FLAGS=$lt_AR_FLAGS
11735 # A C compiler.
11736 LTCC=$lt_LTCC
11738 # LTCC compiler flags.
11739 LTCFLAGS=$lt_LTCFLAGS
11741 # A language-specific compiler.
11742 CC=$lt_compiler
11744 # Is the compiler the GNU C compiler?
11745 with_gcc=$GCC
11747 # An ERE matcher.
11748 EGREP=$lt_EGREP
11750 # The linker used to build libraries.
11751 LD=$lt_LD
11753 # Whether we need hard or soft links.
11754 LN_S=$lt_LN_S
11756 # A BSD-compatible nm program.
11757 NM=$lt_NM
11759 # A symbol stripping program
11760 STRIP=$lt_STRIP
11762 # Used to examine libraries when file_magic_cmd begins "file"
11763 MAGIC_CMD=$MAGIC_CMD
11765 # Used on cygwin: DLL creation program.
11766 DLLTOOL="$DLLTOOL"
11768 # Used on cygwin: object dumper.
11769 OBJDUMP="$OBJDUMP"
11771 # Used on cygwin: assembler.
11772 AS="$AS"
11774 # The name of the directory that contains temporary libtool files.
11775 objdir=$objdir
11777 # How to create reloadable object files.
11778 reload_flag=$lt_reload_flag
11779 reload_cmds=$lt_reload_cmds
11781 # How to pass a linker flag through the compiler.
11782 wl=$lt_lt_prog_compiler_wl
11784 # Object file suffix (normally "o").
11785 objext="$ac_objext"
11787 # Old archive suffix (normally "a").
11788 libext="$libext"
11790 # Shared library suffix (normally ".so").
11791 shrext_cmds='$shrext_cmds'
11793 # Executable file suffix (normally "").
11794 exeext="$exeext"
11796 # Additional compiler flags for building library objects.
11797 pic_flag=$lt_lt_prog_compiler_pic
11798 pic_mode=$pic_mode
11800 # What is the maximum length of a command?
11801 max_cmd_len=$lt_cv_sys_max_cmd_len
11803 # Does compiler simultaneously support -c and -o options?
11804 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
11806 # Must we lock files when doing compilation?
11807 need_locks=$lt_need_locks
11809 # Do we need the lib prefix for modules?
11810 need_lib_prefix=$need_lib_prefix
11812 # Do we need a version for libraries?
11813 need_version=$need_version
11815 # Whether dlopen is supported.
11816 dlopen_support=$enable_dlopen
11818 # Whether dlopen of programs is supported.
11819 dlopen_self=$enable_dlopen_self
11821 # Whether dlopen of statically linked programs is supported.
11822 dlopen_self_static=$enable_dlopen_self_static
11824 # Compiler flag to prevent dynamic linking.
11825 link_static_flag=$lt_lt_prog_compiler_static
11827 # Compiler flag to turn off builtin functions.
11828 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
11830 # Compiler flag to allow reflexive dlopens.
11831 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
11833 # Compiler flag to generate shared objects directly from archives.
11834 whole_archive_flag_spec=$lt_whole_archive_flag_spec
11836 # Compiler flag to generate thread-safe objects.
11837 thread_safe_flag_spec=$lt_thread_safe_flag_spec
11839 # Library versioning type.
11840 version_type=$version_type
11842 # Format of library name prefix.
11843 libname_spec=$lt_libname_spec
11845 # List of archive names. First name is the real one, the rest are links.
11846 # The last name is the one that the linker finds with -lNAME.
11847 library_names_spec=$lt_library_names_spec
11849 # The coded name of the library, if different from the real name.
11850 soname_spec=$lt_soname_spec
11852 # Commands used to build and install an old-style archive.
11853 RANLIB=$lt_RANLIB
11854 old_archive_cmds=$lt_old_archive_cmds
11855 old_postinstall_cmds=$lt_old_postinstall_cmds
11856 old_postuninstall_cmds=$lt_old_postuninstall_cmds
11858 # Create an old-style archive from a shared archive.
11859 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
11861 # Create a temporary old-style archive to link instead of a shared archive.
11862 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
11864 # Commands used to build and install a shared archive.
11865 archive_cmds=$lt_archive_cmds
11866 archive_expsym_cmds=$lt_archive_expsym_cmds
11867 postinstall_cmds=$lt_postinstall_cmds
11868 postuninstall_cmds=$lt_postuninstall_cmds
11870 # Commands used to build a loadable module (assumed same as above if empty)
11871 module_cmds=$lt_module_cmds
11872 module_expsym_cmds=$lt_module_expsym_cmds
11874 # Commands to strip libraries.
11875 old_striplib=$lt_old_striplib
11876 striplib=$lt_striplib
11878 # Dependencies to place before the objects being linked to create a
11879 # shared library.
11880 predep_objects=$lt_predep_objects
11882 # Dependencies to place after the objects being linked to create a
11883 # shared library.
11884 postdep_objects=$lt_postdep_objects
11886 # Dependencies to place before the objects being linked to create a
11887 # shared library.
11888 predeps=$lt_predeps
11890 # Dependencies to place after the objects being linked to create a
11891 # shared library.
11892 postdeps=$lt_postdeps
11894 # The library search path used internally by the compiler when linking
11895 # a shared library.
11896 compiler_lib_search_path=$lt_compiler_lib_search_path
11898 # Method to check whether dependent libraries are shared objects.
11899 deplibs_check_method=$lt_deplibs_check_method
11901 # Command to use when deplibs_check_method == file_magic.
11902 file_magic_cmd=$lt_file_magic_cmd
11904 # Flag that allows shared libraries with undefined symbols to be built.
11905 allow_undefined_flag=$lt_allow_undefined_flag
11907 # Flag that forces no undefined symbols.
11908 no_undefined_flag=$lt_no_undefined_flag
11910 # Commands used to finish a libtool library installation in a directory.
11911 finish_cmds=$lt_finish_cmds
11913 # Same as above, but a single script fragment to be evaled but not shown.
11914 finish_eval=$lt_finish_eval
11916 # Take the output of nm and produce a listing of raw symbols and C names.
11917 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
11919 # Transform the output of nm in a proper C declaration
11920 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
11922 # Transform the output of nm in a C name address pair
11923 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
11925 # This is the shared library runtime path variable.
11926 runpath_var=$runpath_var
11928 # This is the shared library path variable.
11929 shlibpath_var=$shlibpath_var
11931 # Is shlibpath searched before the hard-coded library search path?
11932 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
11934 # How to hardcode a shared library path into an executable.
11935 hardcode_action=$hardcode_action
11937 # Whether we should hardcode library paths into libraries.
11938 hardcode_into_libs=$hardcode_into_libs
11940 # Flag to hardcode \$libdir into a binary during linking.
11941 # This must work even if \$libdir does not exist.
11942 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
11944 # If ld is used when linking, flag to hardcode \$libdir into
11945 # a binary during linking. This must work even if \$libdir does
11946 # not exist.
11947 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
11949 # Whether we need a single -rpath flag with a separated argument.
11950 hardcode_libdir_separator=$lt_hardcode_libdir_separator
11952 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
11953 # resulting binary.
11954 hardcode_direct=$hardcode_direct
11956 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
11957 # resulting binary.
11958 hardcode_minus_L=$hardcode_minus_L
11960 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
11961 # the resulting binary.
11962 hardcode_shlibpath_var=$hardcode_shlibpath_var
11964 # Set to yes if building a shared library automatically hardcodes DIR into the library
11965 # and all subsequent libraries and executables linked against it.
11966 hardcode_automatic=$hardcode_automatic
11968 # Variables whose values should be saved in libtool wrapper scripts and
11969 # restored at relink time.
11970 variables_saved_for_relink="$variables_saved_for_relink"
11972 # Whether libtool must link a program against all its dependency libraries.
11973 link_all_deplibs=$link_all_deplibs
11975 # Compile-time system search path for libraries
11976 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
11978 # Run-time system search path for libraries
11979 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
11981 # Fix the shell variable \$srcfile for the compiler.
11982 fix_srcfile_path="$fix_srcfile_path"
11984 # Set to yes if exported symbols are required.
11985 always_export_symbols=$always_export_symbols
11987 # The commands to list exported symbols.
11988 export_symbols_cmds=$lt_export_symbols_cmds
11990 # The commands to extract the exported symbol list from a shared archive.
11991 extract_expsyms_cmds=$lt_extract_expsyms_cmds
11993 # Symbols that should not be listed in the preloaded symbols.
11994 exclude_expsyms=$lt_exclude_expsyms
11996 # Symbols that must always be exported.
11997 include_expsyms=$lt_include_expsyms
11999 # ### END LIBTOOL CONFIG
12001 __EOF__
12004 case $host_os in
12005 aix3*)
12006 cat <<\EOF >> "$cfgfile"
12008 # AIX sometimes has problems with the GCC collect2 program. For some
12009 # reason, if we set the COLLECT_NAMES environment variable, the problems
12010 # vanish in a puff of smoke.
12011 if test "X${COLLECT_NAMES+set}" != Xset; then
12012 COLLECT_NAMES=
12013 export COLLECT_NAMES
12017 esac
12019 # We use sed instead of cat because bash on DJGPP gets confused if
12020 # if finds mixed CR/LF and LF-only lines. Since sed operates in
12021 # text mode, it properly converts lines to CR/LF. This bash problem
12022 # is reportedly fixed, but why not run on old versions too?
12023 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
12025 mv -f "$cfgfile" "$ofile" || \
12026 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
12027 chmod +x "$ofile"
12029 else
12030 # If there is no Makefile yet, we rely on a make rule to execute
12031 # `config.status --recheck' to rerun these tests and create the
12032 # libtool script then.
12033 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
12034 if test -f "$ltmain_in"; then
12035 test -f Makefile && make "$ltmain"
12040 ac_ext=c
12041 ac_cpp='$CPP $CPPFLAGS'
12042 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12043 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12044 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12046 CC="$lt_save_CC"
12049 # Check whether --with-tags was given.
12050 if test "${with_tags+set}" = set; then
12051 withval=$with_tags; tagnames="$withval"
12055 if test -f "$ltmain" && test -n "$tagnames"; then
12056 if test ! -f "${ofile}"; then
12057 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
12058 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
12061 if test -z "$LTCC"; then
12062 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
12063 if test -z "$LTCC"; then
12064 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
12065 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
12066 else
12067 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
12068 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
12071 if test -z "$LTCFLAGS"; then
12072 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
12075 # Extract list of available tagged configurations in $ofile.
12076 # Note that this assumes the entire list is on one line.
12077 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
12079 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12080 for tagname in $tagnames; do
12081 IFS="$lt_save_ifs"
12082 # Check whether tagname contains only valid characters
12083 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
12084 "") ;;
12085 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
12086 echo "$as_me: error: invalid tag name: $tagname" >&2;}
12087 { (exit 1); exit 1; }; }
12089 esac
12091 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
12092 then
12093 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
12094 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
12095 { (exit 1); exit 1; }; }
12098 # Update the list of available tags.
12099 if test -n "$tagname"; then
12100 echo appending configuration tag \"$tagname\" to $ofile
12102 case $tagname in
12103 CXX)
12104 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12105 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12106 (test "X$CXX" != "Xg++"))) ; then
12107 ac_ext=cpp
12108 ac_cpp='$CXXCPP $CPPFLAGS'
12109 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12110 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12111 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12116 archive_cmds_need_lc_CXX=no
12117 allow_undefined_flag_CXX=
12118 always_export_symbols_CXX=no
12119 archive_expsym_cmds_CXX=
12120 export_dynamic_flag_spec_CXX=
12121 hardcode_direct_CXX=no
12122 hardcode_libdir_flag_spec_CXX=
12123 hardcode_libdir_flag_spec_ld_CXX=
12124 hardcode_libdir_separator_CXX=
12125 hardcode_minus_L_CXX=no
12126 hardcode_shlibpath_var_CXX=unsupported
12127 hardcode_automatic_CXX=no
12128 module_cmds_CXX=
12129 module_expsym_cmds_CXX=
12130 link_all_deplibs_CXX=unknown
12131 old_archive_cmds_CXX=$old_archive_cmds
12132 no_undefined_flag_CXX=
12133 whole_archive_flag_spec_CXX=
12134 enable_shared_with_static_runtimes_CXX=no
12136 # Dependencies to place before and after the object being linked:
12137 predep_objects_CXX=
12138 postdep_objects_CXX=
12139 predeps_CXX=
12140 postdeps_CXX=
12141 compiler_lib_search_path_CXX=
12143 # Source file extension for C++ test sources.
12144 ac_ext=cpp
12146 # Object file extension for compiled C++ test sources.
12147 objext=o
12148 objext_CXX=$objext
12150 # Code to be used in simple compile tests
12151 lt_simple_compile_test_code="int some_variable = 0;\n"
12153 # Code to be used in simple link tests
12154 lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
12156 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12158 # If no C compiler was specified, use CC.
12159 LTCC=${LTCC-"$CC"}
12161 # If no C compiler flags were specified, use CFLAGS.
12162 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12164 # Allow CC to be a program name with arguments.
12165 compiler=$CC
12168 # save warnings/boilerplate of simple test code
12169 ac_outfile=conftest.$ac_objext
12170 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
12171 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12172 _lt_compiler_boilerplate=`cat conftest.err`
12173 $rm conftest*
12175 ac_outfile=conftest.$ac_objext
12176 printf "$lt_simple_link_test_code" >conftest.$ac_ext
12177 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12178 _lt_linker_boilerplate=`cat conftest.err`
12179 $rm conftest*
12182 # Allow CC to be a program name with arguments.
12183 lt_save_CC=$CC
12184 lt_save_LD=$LD
12185 lt_save_GCC=$GCC
12186 GCC=$GXX
12187 lt_save_with_gnu_ld=$with_gnu_ld
12188 lt_save_path_LD=$lt_cv_path_LD
12189 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12190 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12191 else
12192 $as_unset lt_cv_prog_gnu_ld
12194 if test -n "${lt_cv_path_LDCXX+set}"; then
12195 lt_cv_path_LD=$lt_cv_path_LDCXX
12196 else
12197 $as_unset lt_cv_path_LD
12199 test -z "${LDCXX+set}" || LD=$LDCXX
12200 CC=${CXX-"c++"}
12201 compiler=$CC
12202 compiler_CXX=$CC
12203 for cc_temp in $compiler""; do
12204 case $cc_temp in
12205 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12206 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12207 \-*) ;;
12208 *) break;;
12209 esac
12210 done
12211 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
12214 # We don't want -fno-exception wen compiling C++ code, so set the
12215 # no_builtin_flag separately
12216 if test "$GXX" = yes; then
12217 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12218 else
12219 lt_prog_compiler_no_builtin_flag_CXX=
12222 if test "$GXX" = yes; then
12223 # Set up default GNU C++ configuration
12226 # Check whether --with-gnu-ld was given.
12227 if test "${with_gnu_ld+set}" = set; then
12228 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12229 else
12230 with_gnu_ld=no
12233 ac_prog=ld
12234 if test "$GCC" = yes; then
12235 # Check if gcc -print-prog-name=ld gives a path.
12236 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
12237 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
12238 case $host in
12239 *-*-mingw*)
12240 # gcc leaves a trailing carriage return which upsets mingw
12241 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12243 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12244 esac
12245 case $ac_prog in
12246 # Accept absolute paths.
12247 [\\/]* | ?:[\\/]*)
12248 re_direlt='/[^/][^/]*/\.\./'
12249 # Canonicalize the pathname of ld
12250 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
12251 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
12252 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
12253 done
12254 test -z "$LD" && LD="$ac_prog"
12257 # If it fails, then pretend we aren't using GCC.
12258 ac_prog=ld
12261 # If it is relative, then search for the first ld in PATH.
12262 with_gnu_ld=unknown
12264 esac
12265 elif test "$with_gnu_ld" = yes; then
12266 { echo "$as_me:$LINENO: checking for GNU ld" >&5
12267 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
12268 else
12269 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
12270 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
12272 if test "${lt_cv_path_LD+set}" = set; then
12273 echo $ECHO_N "(cached) $ECHO_C" >&6
12274 else
12275 if test -z "$LD"; then
12276 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12277 for ac_dir in $PATH; do
12278 IFS="$lt_save_ifs"
12279 test -z "$ac_dir" && ac_dir=.
12280 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12281 lt_cv_path_LD="$ac_dir/$ac_prog"
12282 # Check to see if the program is GNU ld. I'd rather use --version,
12283 # but apparently some variants of GNU ld only accept -v.
12284 # Break only if it was the GNU/non-GNU ld that we prefer.
12285 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12286 *GNU* | *'with BFD'*)
12287 test "$with_gnu_ld" != no && break
12290 test "$with_gnu_ld" != yes && break
12292 esac
12294 done
12295 IFS="$lt_save_ifs"
12296 else
12297 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12301 LD="$lt_cv_path_LD"
12302 if test -n "$LD"; then
12303 { echo "$as_me:$LINENO: result: $LD" >&5
12304 echo "${ECHO_T}$LD" >&6; }
12305 else
12306 { echo "$as_me:$LINENO: result: no" >&5
12307 echo "${ECHO_T}no" >&6; }
12309 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
12310 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
12311 { (exit 1); exit 1; }; }
12312 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
12313 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
12314 if test "${lt_cv_prog_gnu_ld+set}" = set; then
12315 echo $ECHO_N "(cached) $ECHO_C" >&6
12316 else
12317 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12318 case `$LD -v 2>&1 </dev/null` in
12319 *GNU* | *'with BFD'*)
12320 lt_cv_prog_gnu_ld=yes
12323 lt_cv_prog_gnu_ld=no
12325 esac
12327 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
12328 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
12329 with_gnu_ld=$lt_cv_prog_gnu_ld
12333 # Check if GNU C++ uses GNU ld as the underlying linker, since the
12334 # archiving commands below assume that GNU ld is being used.
12335 if test "$with_gnu_ld" = yes; then
12336 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12337 archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12339 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12340 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12342 # If archive_cmds runs LD, not CC, wlarc should be empty
12343 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12344 # investigate it a little bit more. (MM)
12345 wlarc='${wl}'
12347 # ancient GNU ld didn't support --whole-archive et. al.
12348 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
12349 grep 'no-whole-archive' > /dev/null; then
12350 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12351 else
12352 whole_archive_flag_spec_CXX=
12354 else
12355 with_gnu_ld=no
12356 wlarc=
12358 # A generic and very simple default shared library creation
12359 # command for GNU C++ for the case where it uses the native
12360 # linker, instead of GNU ld. If possible, this setting should
12361 # overridden to take advantage of the native linker features on
12362 # the platform it is being used on.
12363 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12366 # Commands to make compiler produce verbose output that lists
12367 # what "hidden" libraries, object files and flags are used when
12368 # linking a shared library.
12369 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12371 else
12372 GXX=no
12373 with_gnu_ld=no
12374 wlarc=
12377 # PORTME: fill in a description of your system's C++ link characteristics
12378 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12379 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
12380 ld_shlibs_CXX=yes
12381 case $host_os in
12382 aix3*)
12383 # FIXME: insert proper C++ library support
12384 ld_shlibs_CXX=no
12386 aix4* | aix5*)
12387 if test "$host_cpu" = ia64; then
12388 # On IA64, the linker does run time linking by default, so we don't
12389 # have to do anything special.
12390 aix_use_runtimelinking=no
12391 exp_sym_flag='-Bexport'
12392 no_entry_flag=""
12393 else
12394 aix_use_runtimelinking=no
12396 # Test if we are trying to use run time linking or normal
12397 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12398 # need to do runtime linking.
12399 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
12400 for ld_flag in $LDFLAGS; do
12401 case $ld_flag in
12402 *-brtl*)
12403 aix_use_runtimelinking=yes
12404 break
12406 esac
12407 done
12409 esac
12411 exp_sym_flag='-bexport'
12412 no_entry_flag='-bnoentry'
12415 # When large executables or shared objects are built, AIX ld can
12416 # have problems creating the table of contents. If linking a library
12417 # or program results in "error TOC overflow" add -mminimal-toc to
12418 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12419 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12421 archive_cmds_CXX=''
12422 hardcode_direct_CXX=yes
12423 hardcode_libdir_separator_CXX=':'
12424 link_all_deplibs_CXX=yes
12426 if test "$GXX" = yes; then
12427 case $host_os in aix4.[012]|aix4.[012].*)
12428 # We only want to do this on AIX 4.2 and lower, the check
12429 # below for broken collect2 doesn't work under 4.3+
12430 collect2name=`${CC} -print-prog-name=collect2`
12431 if test -f "$collect2name" && \
12432 strings "$collect2name" | grep resolve_lib_name >/dev/null
12433 then
12434 # We have reworked collect2
12435 hardcode_direct_CXX=yes
12436 else
12437 # We have old collect2
12438 hardcode_direct_CXX=unsupported
12439 # It fails to find uninstalled libraries when the uninstalled
12440 # path is not listed in the libpath. Setting hardcode_minus_L
12441 # to unsupported forces relinking
12442 hardcode_minus_L_CXX=yes
12443 hardcode_libdir_flag_spec_CXX='-L$libdir'
12444 hardcode_libdir_separator_CXX=
12447 esac
12448 shared_flag='-shared'
12449 if test "$aix_use_runtimelinking" = yes; then
12450 shared_flag="$shared_flag "'${wl}-G'
12452 else
12453 # not using gcc
12454 if test "$host_cpu" = ia64; then
12455 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12456 # chokes on -Wl,-G. The following line is correct:
12457 shared_flag='-G'
12458 else
12459 if test "$aix_use_runtimelinking" = yes; then
12460 shared_flag='${wl}-G'
12461 else
12462 shared_flag='${wl}-bM:SRE'
12467 # It seems that -bexpall does not export symbols beginning with
12468 # underscore (_), so it is better to generate a list of symbols to export.
12469 always_export_symbols_CXX=yes
12470 if test "$aix_use_runtimelinking" = yes; then
12471 # Warning - without using the other runtime loading flags (-brtl),
12472 # -berok will link without error, but may produce a broken library.
12473 allow_undefined_flag_CXX='-berok'
12474 # Determine the default libpath from the value encoded in an empty executable.
12475 cat >conftest.$ac_ext <<_ACEOF
12476 /* confdefs.h. */
12477 _ACEOF
12478 cat confdefs.h >>conftest.$ac_ext
12479 cat >>conftest.$ac_ext <<_ACEOF
12480 /* end confdefs.h. */
12483 main ()
12487 return 0;
12489 _ACEOF
12490 rm -f conftest.$ac_objext conftest$ac_exeext
12491 if { (ac_try="$ac_link"
12492 case "(($ac_try" in
12493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12494 *) ac_try_echo=$ac_try;;
12495 esac
12496 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12497 (eval "$ac_link") 2>conftest.er1
12498 ac_status=$?
12499 grep -v '^ *+' conftest.er1 >conftest.err
12500 rm -f conftest.er1
12501 cat conftest.err >&5
12502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12503 (exit $ac_status); } &&
12504 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12505 { (case "(($ac_try" in
12506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12507 *) ac_try_echo=$ac_try;;
12508 esac
12509 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12510 (eval "$ac_try") 2>&5
12511 ac_status=$?
12512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12513 (exit $ac_status); }; } &&
12514 { ac_try='test -s conftest$ac_exeext'
12515 { (case "(($ac_try" in
12516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12517 *) ac_try_echo=$ac_try;;
12518 esac
12519 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12520 (eval "$ac_try") 2>&5
12521 ac_status=$?
12522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12523 (exit $ac_status); }; }; then
12525 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
12527 # Check for a 64-bit object if we didn't find anything.
12528 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
12529 }'`; fi
12530 else
12531 echo "$as_me: failed program was:" >&5
12532 sed 's/^/| /' conftest.$ac_ext >&5
12537 rm -f core conftest.err conftest.$ac_objext \
12538 conftest$ac_exeext conftest.$ac_ext
12539 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12541 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12543 archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
12544 else
12545 if test "$host_cpu" = ia64; then
12546 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
12547 allow_undefined_flag_CXX="-z nodefs"
12548 archive_expsym_cmds_CXX="\$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"
12549 else
12550 # Determine the default libpath from the value encoded in an empty executable.
12551 cat >conftest.$ac_ext <<_ACEOF
12552 /* confdefs.h. */
12553 _ACEOF
12554 cat confdefs.h >>conftest.$ac_ext
12555 cat >>conftest.$ac_ext <<_ACEOF
12556 /* end confdefs.h. */
12559 main ()
12563 return 0;
12565 _ACEOF
12566 rm -f conftest.$ac_objext conftest$ac_exeext
12567 if { (ac_try="$ac_link"
12568 case "(($ac_try" in
12569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12570 *) ac_try_echo=$ac_try;;
12571 esac
12572 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12573 (eval "$ac_link") 2>conftest.er1
12574 ac_status=$?
12575 grep -v '^ *+' conftest.er1 >conftest.err
12576 rm -f conftest.er1
12577 cat conftest.err >&5
12578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12579 (exit $ac_status); } &&
12580 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12581 { (case "(($ac_try" in
12582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12583 *) ac_try_echo=$ac_try;;
12584 esac
12585 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12586 (eval "$ac_try") 2>&5
12587 ac_status=$?
12588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12589 (exit $ac_status); }; } &&
12590 { ac_try='test -s conftest$ac_exeext'
12591 { (case "(($ac_try" in
12592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12593 *) ac_try_echo=$ac_try;;
12594 esac
12595 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12596 (eval "$ac_try") 2>&5
12597 ac_status=$?
12598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12599 (exit $ac_status); }; }; then
12601 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
12603 # Check for a 64-bit object if we didn't find anything.
12604 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
12605 }'`; fi
12606 else
12607 echo "$as_me: failed program was:" >&5
12608 sed 's/^/| /' conftest.$ac_ext >&5
12613 rm -f core conftest.err conftest.$ac_objext \
12614 conftest$ac_exeext conftest.$ac_ext
12615 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12617 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12618 # Warning - without using the other run time loading flags,
12619 # -berok will link without error, but may produce a broken library.
12620 no_undefined_flag_CXX=' ${wl}-bernotok'
12621 allow_undefined_flag_CXX=' ${wl}-berok'
12622 # Exported symbols can be pulled into shared objects from archives
12623 whole_archive_flag_spec_CXX='$convenience'
12624 archive_cmds_need_lc_CXX=yes
12625 # This is similar to how AIX traditionally builds its shared libraries.
12626 archive_expsym_cmds_CXX="\$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'
12631 beos*)
12632 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12633 allow_undefined_flag_CXX=unsupported
12634 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12635 # support --undefined. This deserves some investigation. FIXME
12636 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12637 else
12638 ld_shlibs_CXX=no
12642 chorus*)
12643 case $cc_basename in
12645 # FIXME: insert proper C++ library support
12646 ld_shlibs_CXX=no
12648 esac
12651 cygwin* | mingw* | pw32*)
12652 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12653 # as there is no search path for DLLs.
12654 hardcode_libdir_flag_spec_CXX='-L$libdir'
12655 allow_undefined_flag_CXX=unsupported
12656 always_export_symbols_CXX=no
12657 enable_shared_with_static_runtimes_CXX=yes
12659 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
12660 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12661 # If the export-symbols file already is a .def file (1st line
12662 # is EXPORTS), use it as is; otherwise, prepend...
12663 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12664 cp $export_symbols $output_objdir/$soname.def;
12665 else
12666 echo EXPORTS > $output_objdir/$soname.def;
12667 cat $export_symbols >> $output_objdir/$soname.def;
12669 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12670 else
12671 ld_shlibs_CXX=no
12674 darwin* | rhapsody*)
12675 case $host_os in
12676 rhapsody* | darwin1.[012])
12677 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
12679 *) # Darwin 1.3 on
12680 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
12681 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
12682 else
12683 case ${MACOSX_DEPLOYMENT_TARGET} in
12684 10.[012])
12685 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
12687 10.*)
12688 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
12690 esac
12693 esac
12694 archive_cmds_need_lc_CXX=no
12695 hardcode_direct_CXX=no
12696 hardcode_automatic_CXX=yes
12697 hardcode_shlibpath_var_CXX=unsupported
12698 whole_archive_flag_spec_CXX=''
12699 link_all_deplibs_CXX=yes
12701 if test "$GXX" = yes ; then
12702 lt_int_apple_cc_single_mod=no
12703 output_verbose_link_cmd='echo'
12704 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
12705 lt_int_apple_cc_single_mod=yes
12707 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
12708 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
12709 else
12710 archive_cmds_CXX='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
12712 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12713 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
12714 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
12715 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
12716 else
12717 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
12719 module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
12720 else
12721 case $cc_basename in
12722 xlc*)
12723 output_verbose_link_cmd='echo'
12724 archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
12725 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12726 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
12727 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
12728 module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
12731 ld_shlibs_CXX=no
12733 esac
12737 dgux*)
12738 case $cc_basename in
12739 ec++*)
12740 # FIXME: insert proper C++ library support
12741 ld_shlibs_CXX=no
12743 ghcx*)
12744 # Green Hills C++ Compiler
12745 # FIXME: insert proper C++ library support
12746 ld_shlibs_CXX=no
12749 # FIXME: insert proper C++ library support
12750 ld_shlibs_CXX=no
12752 esac
12754 freebsd[12]*)
12755 # C++ shared libraries reported to be fairly broken before switch to ELF
12756 ld_shlibs_CXX=no
12758 freebsd-elf*)
12759 archive_cmds_need_lc_CXX=no
12761 freebsd* | kfreebsd*-gnu | dragonfly*)
12762 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12763 # conventions
12764 ld_shlibs_CXX=yes
12766 gnu*)
12768 hpux9*)
12769 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12770 hardcode_libdir_separator_CXX=:
12771 export_dynamic_flag_spec_CXX='${wl}-E'
12772 hardcode_direct_CXX=yes
12773 hardcode_minus_L_CXX=yes # Not in the search PATH,
12774 # but as the default
12775 # location of the library.
12777 case $cc_basename in
12778 CC*)
12779 # FIXME: insert proper C++ library support
12780 ld_shlibs_CXX=no
12782 aCC*)
12783 archive_cmds_CXX='$rm $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
12784 # Commands to make compiler produce verbose output that lists
12785 # what "hidden" libraries, object files and flags are used when
12786 # linking a shared library.
12788 # There doesn't appear to be a way to prevent this compiler from
12789 # explicitly linking system object files so we need to strip them
12790 # from the output so that they don't get included in the library
12791 # dependencies.
12792 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "[-]L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
12795 if test "$GXX" = yes; then
12796 archive_cmds_CXX='$rm $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
12797 else
12798 # FIXME: insert proper C++ library support
12799 ld_shlibs_CXX=no
12802 esac
12804 hpux10*|hpux11*)
12805 if test $with_gnu_ld = no; then
12806 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12807 hardcode_libdir_separator_CXX=:
12809 case $host_cpu in
12810 hppa*64*|ia64*)
12811 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
12814 export_dynamic_flag_spec_CXX='${wl}-E'
12816 esac
12818 case $host_cpu in
12819 hppa*64*|ia64*)
12820 hardcode_direct_CXX=no
12821 hardcode_shlibpath_var_CXX=no
12824 hardcode_direct_CXX=yes
12825 hardcode_minus_L_CXX=yes # Not in the search PATH,
12826 # but as the default
12827 # location of the library.
12829 esac
12831 case $cc_basename in
12832 CC*)
12833 # FIXME: insert proper C++ library support
12834 ld_shlibs_CXX=no
12836 aCC*)
12837 case $host_cpu in
12838 hppa*64*)
12839 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12841 ia64*)
12842 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12845 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12847 esac
12848 # Commands to make compiler produce verbose output that lists
12849 # what "hidden" libraries, object files and flags are used when
12850 # linking a shared library.
12852 # There doesn't appear to be a way to prevent this compiler from
12853 # explicitly linking system object files so we need to strip them
12854 # from the output so that they don't get included in the library
12855 # dependencies.
12856 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
12859 if test "$GXX" = yes; then
12860 if test $with_gnu_ld = no; then
12861 case $host_cpu in
12862 hppa*64*)
12863 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12865 ia64*)
12866 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12869 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12871 esac
12873 else
12874 # FIXME: insert proper C++ library support
12875 ld_shlibs_CXX=no
12878 esac
12880 interix3*)
12881 hardcode_direct_CXX=no
12882 hardcode_shlibpath_var_CXX=no
12883 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12884 export_dynamic_flag_spec_CXX='${wl}-E'
12885 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12886 # Instead, shared libraries are loaded at an image base (0x10000000 by
12887 # default) and relocated if they conflict, which is a slow very memory
12888 # consuming and fragmenting process. To avoid this, we pick a random,
12889 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12890 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
12891 archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
12892 archive_expsym_cmds_CXX='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'
12894 irix5* | irix6*)
12895 case $cc_basename in
12896 CC*)
12897 # SGI C++
12898 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
12900 # Archives containing C++ object files must be created using
12901 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
12902 # necessary to make sure instantiated templates are included
12903 # in the archive.
12904 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12907 if test "$GXX" = yes; then
12908 if test "$with_gnu_ld" = no; then
12909 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
12910 else
12911 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib'
12914 link_all_deplibs_CXX=yes
12916 esac
12917 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12918 hardcode_libdir_separator_CXX=:
12920 linux*)
12921 case $cc_basename in
12922 KCC*)
12923 # Kuck and Associates, Inc. (KAI) C++ Compiler
12925 # KCC will only create a shared library if the output file
12926 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12927 # to its proper name (with version) after linking.
12928 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
12929 archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
12930 # Commands to make compiler produce verbose output that lists
12931 # what "hidden" libraries, object files and flags are used when
12932 # linking a shared library.
12934 # There doesn't appear to be a way to prevent this compiler from
12935 # explicitly linking system object files so we need to strip them
12936 # from the output so that they don't get included in the library
12937 # dependencies.
12938 output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | grep "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
12940 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
12941 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12943 # Archives containing C++ object files must be created using
12944 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12945 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12947 icpc*)
12948 # Intel C++
12949 with_gnu_ld=yes
12950 # version 8.0 and above of icpc choke on multiply defined symbols
12951 # if we add $predep_objects and $postdep_objects, however 7.1 and
12952 # earlier do not add the objects themselves.
12953 case `$CC -V 2>&1` in
12954 *"Version 7."*)
12955 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12956 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12958 *) # Version 8.0 or newer
12959 tmp_idyn=
12960 case $host_cpu in
12961 ia64*) tmp_idyn=' -i_dynamic';;
12962 esac
12963 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12964 archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12966 esac
12967 archive_cmds_need_lc_CXX=no
12968 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12969 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12970 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12972 pgCC*)
12973 # Portland Group C++ compiler
12974 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12975 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
12977 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12978 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12979 whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
12981 cxx*)
12982 # Compaq C++
12983 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12984 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
12986 runpath_var=LD_RUN_PATH
12987 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12988 hardcode_libdir_separator_CXX=:
12990 # Commands to make compiler produce verbose output that lists
12991 # what "hidden" libraries, object files and flags are used when
12992 # linking a shared library.
12994 # There doesn't appear to be a way to prevent this compiler from
12995 # explicitly linking system object files so we need to strip them
12996 # from the output so that they don't get included in the library
12997 # dependencies.
12998 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
13000 esac
13002 lynxos*)
13003 # FIXME: insert proper C++ library support
13004 ld_shlibs_CXX=no
13006 m88k*)
13007 # FIXME: insert proper C++ library support
13008 ld_shlibs_CXX=no
13010 mvs*)
13011 case $cc_basename in
13012 cxx*)
13013 # FIXME: insert proper C++ library support
13014 ld_shlibs_CXX=no
13017 # FIXME: insert proper C++ library support
13018 ld_shlibs_CXX=no
13020 esac
13022 netbsd*)
13023 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13024 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13025 wlarc=
13026 hardcode_libdir_flag_spec_CXX='-R$libdir'
13027 hardcode_direct_CXX=yes
13028 hardcode_shlibpath_var_CXX=no
13030 # Workaround some broken pre-1.5 toolchains
13031 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13033 openbsd2*)
13034 # C++ shared libraries are fairly broken
13035 ld_shlibs_CXX=no
13037 openbsd*)
13038 hardcode_direct_CXX=yes
13039 hardcode_shlibpath_var_CXX=no
13040 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13041 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13042 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13043 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13044 export_dynamic_flag_spec_CXX='${wl}-E'
13045 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13047 output_verbose_link_cmd='echo'
13049 osf3*)
13050 case $cc_basename in
13051 KCC*)
13052 # Kuck and Associates, Inc. (KAI) C++ Compiler
13054 # KCC will only create a shared library if the output file
13055 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13056 # to its proper name (with version) after linking.
13057 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
13059 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13060 hardcode_libdir_separator_CXX=:
13062 # Archives containing C++ object files must be created using
13063 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13064 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13067 RCC*)
13068 # Rational C++ 2.4.1
13069 # FIXME: insert proper C++ library support
13070 ld_shlibs_CXX=no
13072 cxx*)
13073 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13074 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
13076 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13077 hardcode_libdir_separator_CXX=:
13079 # Commands to make compiler produce verbose output that lists
13080 # what "hidden" libraries, object files and flags are used when
13081 # linking a shared library.
13083 # There doesn't appear to be a way to prevent this compiler from
13084 # explicitly linking system object files so we need to strip them
13085 # from the output so that they don't get included in the library
13086 # dependencies.
13087 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
13090 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13091 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13092 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
13094 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13095 hardcode_libdir_separator_CXX=:
13097 # Commands to make compiler produce verbose output that lists
13098 # what "hidden" libraries, object files and flags are used when
13099 # linking a shared library.
13100 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
13102 else
13103 # FIXME: insert proper C++ library support
13104 ld_shlibs_CXX=no
13107 esac
13109 osf4* | osf5*)
13110 case $cc_basename in
13111 KCC*)
13112 # Kuck and Associates, Inc. (KAI) C++ Compiler
13114 # KCC will only create a shared library if the output file
13115 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13116 # to its proper name (with version) after linking.
13117 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
13119 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13120 hardcode_libdir_separator_CXX=:
13122 # Archives containing C++ object files must be created using
13123 # the KAI C++ compiler.
13124 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
13126 RCC*)
13127 # Rational C++ 2.4.1
13128 # FIXME: insert proper C++ library support
13129 ld_shlibs_CXX=no
13131 cxx*)
13132 allow_undefined_flag_CXX=' -expect_unresolved \*'
13133 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
13134 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13135 echo "-hidden">> $lib.exp~
13136 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~
13137 $rm $lib.exp'
13139 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13140 hardcode_libdir_separator_CXX=:
13142 # Commands to make compiler produce verbose output that lists
13143 # what "hidden" libraries, object files and flags are used when
13144 # linking a shared library.
13146 # There doesn't appear to be a way to prevent this compiler from
13147 # explicitly linking system object files so we need to strip them
13148 # from the output so that they don't get included in the library
13149 # dependencies.
13150 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
13153 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13154 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13155 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
13157 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13158 hardcode_libdir_separator_CXX=:
13160 # Commands to make compiler produce verbose output that lists
13161 # what "hidden" libraries, object files and flags are used when
13162 # linking a shared library.
13163 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
13165 else
13166 # FIXME: insert proper C++ library support
13167 ld_shlibs_CXX=no
13170 esac
13172 psos*)
13173 # FIXME: insert proper C++ library support
13174 ld_shlibs_CXX=no
13176 sunos4*)
13177 case $cc_basename in
13178 CC*)
13179 # Sun C++ 4.x
13180 # FIXME: insert proper C++ library support
13181 ld_shlibs_CXX=no
13183 lcc*)
13184 # Lucid
13185 # FIXME: insert proper C++ library support
13186 ld_shlibs_CXX=no
13189 # FIXME: insert proper C++ library support
13190 ld_shlibs_CXX=no
13192 esac
13194 solaris*)
13195 case $cc_basename in
13196 CC*)
13197 # Sun C++ 4.2, 5.x and Centerline C++
13198 archive_cmds_need_lc_CXX=yes
13199 no_undefined_flag_CXX=' -zdefs'
13200 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13201 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13202 $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
13204 hardcode_libdir_flag_spec_CXX='-R$libdir'
13205 hardcode_shlibpath_var_CXX=no
13206 case $host_os in
13207 solaris2.[0-5] | solaris2.[0-5].*) ;;
13209 # The C++ compiler is used as linker so we must use $wl
13210 # flag to pass the commands to the underlying system
13211 # linker. We must also pass each convience library through
13212 # to the system linker between allextract/defaultextract.
13213 # The C++ compiler will combine linker options so we
13214 # cannot just pass the convience library names through
13215 # without $wl.
13216 # Supported since Solaris 2.6 (maybe 2.5.1?)
13217 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract'
13219 esac
13220 link_all_deplibs_CXX=yes
13222 output_verbose_link_cmd='echo'
13224 # Archives containing C++ object files must be created using
13225 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13226 # necessary to make sure instantiated templates are included
13227 # in the archive.
13228 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13230 gcx*)
13231 # Green Hills C++ Compiler
13232 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13234 # The C++ compiler must be used to create the archive.
13235 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13238 # GNU C++ compiler with Solaris linker
13239 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13240 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13241 if $CC --version | grep -v '^2\.7' > /dev/null; then
13242 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13243 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13244 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
13246 # Commands to make compiler produce verbose output that lists
13247 # what "hidden" libraries, object files and flags are used when
13248 # linking a shared library.
13249 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
13250 else
13251 # g++ 2.7 appears to require `-G' NOT `-shared' on this
13252 # platform.
13253 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13254 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13255 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
13257 # Commands to make compiler produce verbose output that lists
13258 # what "hidden" libraries, object files and flags are used when
13259 # linking a shared library.
13260 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
13263 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13266 esac
13268 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13269 no_undefined_flag_CXX='${wl}-z,text'
13270 archive_cmds_need_lc_CXX=no
13271 hardcode_shlibpath_var_CXX=no
13272 runpath_var='LD_RUN_PATH'
13274 case $cc_basename in
13275 CC*)
13276 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13277 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13280 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13281 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13283 esac
13285 sysv5* | sco3.2v5* | sco5v6*)
13286 # Note: We can NOT use -z defs as we might desire, because we do not
13287 # link with -lc, and that would cause any symbols used from libc to
13288 # always be unresolved, which means just about no library would
13289 # ever link correctly. If we're not using GNU ld we use -z text
13290 # though, which does catch some bad symbols but isn't as heavy-handed
13291 # as -z defs.
13292 # For security reasons, it is highly recommended that you always
13293 # use absolute paths for naming shared libraries, and exclude the
13294 # DT_RUNPATH tag from executables and libraries. But doing so
13295 # requires that you compile everything twice, which is a pain.
13296 # So that behaviour is only enabled if SCOABSPATH is set to a
13297 # non-empty value in the environment. Most likely only useful for
13298 # creating official distributions of packages.
13299 # This is a hack until libtool officially supports absolute path
13300 # names for shared libraries.
13301 no_undefined_flag_CXX='${wl}-z,text'
13302 allow_undefined_flag_CXX='${wl}-z,nodefs'
13303 archive_cmds_need_lc_CXX=no
13304 hardcode_shlibpath_var_CXX=no
13305 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
13306 hardcode_libdir_separator_CXX=':'
13307 link_all_deplibs_CXX=yes
13308 export_dynamic_flag_spec_CXX='${wl}-Bexport'
13309 runpath_var='LD_RUN_PATH'
13311 case $cc_basename in
13312 CC*)
13313 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
13314 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
13317 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
13318 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
13320 esac
13322 tandem*)
13323 case $cc_basename in
13324 NCC*)
13325 # NonStop-UX NCC 3.20
13326 # FIXME: insert proper C++ library support
13327 ld_shlibs_CXX=no
13330 # FIXME: insert proper C++ library support
13331 ld_shlibs_CXX=no
13333 esac
13335 vxworks*)
13336 # FIXME: insert proper C++ library support
13337 ld_shlibs_CXX=no
13340 # FIXME: insert proper C++ library support
13341 ld_shlibs_CXX=no
13343 esac
13344 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
13345 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
13346 test "$ld_shlibs_CXX" = no && can_build_shared=no
13348 GCC_CXX="$GXX"
13349 LD_CXX="$LD"
13352 cat > conftest.$ac_ext <<EOF
13353 class Foo
13355 public:
13356 Foo (void) { a = 0; }
13357 private:
13358 int a;
13362 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13363 (eval $ac_compile) 2>&5
13364 ac_status=$?
13365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13366 (exit $ac_status); }; then
13367 # Parse the compiler output and extract the necessary
13368 # objects, libraries and library flags.
13370 # Sentinel used to keep track of whether or not we are before
13371 # the conftest object file.
13372 pre_test_object_deps_done=no
13374 # The `*' in the case matches for architectures that use `case' in
13375 # $output_verbose_cmd can trigger glob expansion during the loop
13376 # eval without this substitution.
13377 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
13379 for p in `eval $output_verbose_link_cmd`; do
13380 case $p in
13382 -L* | -R* | -l*)
13383 # Some compilers place space between "-{L,R}" and the path.
13384 # Remove the space.
13385 if test $p = "-L" \
13386 || test $p = "-R"; then
13387 prev=$p
13388 continue
13389 else
13390 prev=
13393 if test "$pre_test_object_deps_done" = no; then
13394 case $p in
13395 -L* | -R*)
13396 # Internal compiler library paths should come after those
13397 # provided the user. The postdeps already come after the
13398 # user supplied libs so there is no need to process them.
13399 if test -z "$compiler_lib_search_path_CXX"; then
13400 compiler_lib_search_path_CXX="${prev}${p}"
13401 else
13402 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13405 # The "-l" case would never come before the object being
13406 # linked, so don't bother handling this case.
13407 esac
13408 else
13409 if test -z "$postdeps_CXX"; then
13410 postdeps_CXX="${prev}${p}"
13411 else
13412 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13417 *.$objext)
13418 # This assumes that the test object file only shows up
13419 # once in the compiler output.
13420 if test "$p" = "conftest.$objext"; then
13421 pre_test_object_deps_done=yes
13422 continue
13425 if test "$pre_test_object_deps_done" = no; then
13426 if test -z "$predep_objects_CXX"; then
13427 predep_objects_CXX="$p"
13428 else
13429 predep_objects_CXX="$predep_objects_CXX $p"
13431 else
13432 if test -z "$postdep_objects_CXX"; then
13433 postdep_objects_CXX="$p"
13434 else
13435 postdep_objects_CXX="$postdep_objects_CXX $p"
13440 *) ;; # Ignore the rest.
13442 esac
13443 done
13445 # Clean up.
13446 rm -f a.out a.exe
13447 else
13448 echo "libtool.m4: error: problem compiling CXX test program"
13451 $rm -f confest.$objext
13453 # PORTME: override above test on systems where it is broken
13454 case $host_os in
13455 interix3*)
13456 # Interix 3.5 installs completely hosed .la files for C++, so rather than
13457 # hack all around it, let's just trust "g++" to DTRT.
13458 predep_objects_CXX=
13459 postdep_objects_CXX=
13460 postdeps_CXX=
13463 solaris*)
13464 case $cc_basename in
13465 CC*)
13466 # Adding this requires a known-good setup of shared libraries for
13467 # Sun compiler versions before 5.6, else PIC objects from an old
13468 # archive will be linked into the output, leading to subtle bugs.
13469 postdeps_CXX='-lCstd -lCrun'
13471 esac
13473 esac
13476 case " $postdeps_CXX " in
13477 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
13478 esac
13480 lt_prog_compiler_wl_CXX=
13481 lt_prog_compiler_pic_CXX=
13482 lt_prog_compiler_static_CXX=
13484 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13485 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
13487 # C++ specific cases for pic, static, wl, etc.
13488 if test "$GXX" = yes; then
13489 lt_prog_compiler_wl_CXX='-Wl,'
13490 lt_prog_compiler_static_CXX='-static'
13492 case $host_os in
13493 aix*)
13494 # All AIX code is PIC.
13495 if test "$host_cpu" = ia64; then
13496 # AIX 5 now supports IA64 processor
13497 lt_prog_compiler_static_CXX='-Bstatic'
13500 amigaos*)
13501 # FIXME: we need at least 68020 code to build shared libraries, but
13502 # adding the `-m68020' flag to GCC prevents building anything better,
13503 # like `-m68040'.
13504 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
13506 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13507 # PIC is the default for these OSes.
13509 mingw* | os2* | pw32*)
13510 # This hack is so that the source file can tell whether it is being
13511 # built for inclusion in a dll (and should export symbols for example).
13512 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13514 darwin* | rhapsody*)
13515 # PIC is the default on this platform
13516 # Common symbols not allowed in MH_DYLIB files
13517 lt_prog_compiler_pic_CXX='-fno-common'
13519 *djgpp*)
13520 # DJGPP does not support shared libraries at all
13521 lt_prog_compiler_pic_CXX=
13523 interix3*)
13524 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13525 # Instead, we relocate shared libraries at runtime.
13527 sysv4*MP*)
13528 if test -d /usr/nec; then
13529 lt_prog_compiler_pic_CXX=-Kconform_pic
13532 hpux*)
13533 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13534 # not for PA HP-UX.
13535 case $host_cpu in
13536 hppa*64*|ia64*)
13539 lt_prog_compiler_pic_CXX='-fPIC'
13541 esac
13544 lt_prog_compiler_pic_CXX='-fPIC'
13546 esac
13547 else
13548 case $host_os in
13549 aix4* | aix5*)
13550 # All AIX code is PIC.
13551 if test "$host_cpu" = ia64; then
13552 # AIX 5 now supports IA64 processor
13553 lt_prog_compiler_static_CXX='-Bstatic'
13554 else
13555 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
13558 chorus*)
13559 case $cc_basename in
13560 cxch68*)
13561 # Green Hills C++ Compiler
13562 # _LT_AC_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
13564 esac
13566 darwin*)
13567 # PIC is the default on this platform
13568 # Common symbols not allowed in MH_DYLIB files
13569 case $cc_basename in
13570 xlc*)
13571 lt_prog_compiler_pic_CXX='-qnocommon'
13572 lt_prog_compiler_wl_CXX='-Wl,'
13574 esac
13576 dgux*)
13577 case $cc_basename in
13578 ec++*)
13579 lt_prog_compiler_pic_CXX='-KPIC'
13581 ghcx*)
13582 # Green Hills C++ Compiler
13583 lt_prog_compiler_pic_CXX='-pic'
13587 esac
13589 freebsd* | kfreebsd*-gnu | dragonfly*)
13590 # FreeBSD uses GNU C++
13592 hpux9* | hpux10* | hpux11*)
13593 case $cc_basename in
13594 CC*)
13595 lt_prog_compiler_wl_CXX='-Wl,'
13596 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13597 if test "$host_cpu" != ia64; then
13598 lt_prog_compiler_pic_CXX='+Z'
13601 aCC*)
13602 lt_prog_compiler_wl_CXX='-Wl,'
13603 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13604 case $host_cpu in
13605 hppa*64*|ia64*)
13606 # +Z the default
13609 lt_prog_compiler_pic_CXX='+Z'
13611 esac
13615 esac
13617 interix*)
13618 # This is c89, which is MS Visual C++ (no shared libs)
13619 # Anyone wants to do a port?
13621 irix5* | irix6* | nonstopux*)
13622 case $cc_basename in
13623 CC*)
13624 lt_prog_compiler_wl_CXX='-Wl,'
13625 lt_prog_compiler_static_CXX='-non_shared'
13626 # CC pic flag -KPIC is the default.
13630 esac
13632 linux*)
13633 case $cc_basename in
13634 KCC*)
13635 # KAI C++ Compiler
13636 lt_prog_compiler_wl_CXX='--backend -Wl,'
13637 lt_prog_compiler_pic_CXX='-fPIC'
13639 icpc* | ecpc*)
13640 # Intel C++
13641 lt_prog_compiler_wl_CXX='-Wl,'
13642 lt_prog_compiler_pic_CXX='-KPIC'
13643 lt_prog_compiler_static_CXX='-static'
13645 pgCC*)
13646 # Portland Group C++ compiler.
13647 lt_prog_compiler_wl_CXX='-Wl,'
13648 lt_prog_compiler_pic_CXX='-fpic'
13649 lt_prog_compiler_static_CXX='-Bstatic'
13651 cxx*)
13652 # Compaq C++
13653 # Make sure the PIC flag is empty. It appears that all Alpha
13654 # Linux and Compaq Tru64 Unix objects are PIC.
13655 lt_prog_compiler_pic_CXX=
13656 lt_prog_compiler_static_CXX='-non_shared'
13660 esac
13662 lynxos*)
13664 m88k*)
13666 mvs*)
13667 case $cc_basename in
13668 cxx*)
13669 lt_prog_compiler_pic_CXX='-W c,exportall'
13673 esac
13675 netbsd*)
13677 osf3* | osf4* | osf5*)
13678 case $cc_basename in
13679 KCC*)
13680 lt_prog_compiler_wl_CXX='--backend -Wl,'
13682 RCC*)
13683 # Rational C++ 2.4.1
13684 lt_prog_compiler_pic_CXX='-pic'
13686 cxx*)
13687 # Digital/Compaq C++
13688 lt_prog_compiler_wl_CXX='-Wl,'
13689 # Make sure the PIC flag is empty. It appears that all Alpha
13690 # Linux and Compaq Tru64 Unix objects are PIC.
13691 lt_prog_compiler_pic_CXX=
13692 lt_prog_compiler_static_CXX='-non_shared'
13696 esac
13698 psos*)
13700 solaris*)
13701 case $cc_basename in
13702 CC*)
13703 # Sun C++ 4.2, 5.x and Centerline C++
13704 lt_prog_compiler_pic_CXX='-KPIC'
13705 lt_prog_compiler_static_CXX='-Bstatic'
13706 lt_prog_compiler_wl_CXX='-Qoption ld '
13708 gcx*)
13709 # Green Hills C++ Compiler
13710 lt_prog_compiler_pic_CXX='-PIC'
13714 esac
13716 sunos4*)
13717 case $cc_basename in
13718 CC*)
13719 # Sun C++ 4.x
13720 lt_prog_compiler_pic_CXX='-pic'
13721 lt_prog_compiler_static_CXX='-Bstatic'
13723 lcc*)
13724 # Lucid
13725 lt_prog_compiler_pic_CXX='-pic'
13729 esac
13731 tandem*)
13732 case $cc_basename in
13733 NCC*)
13734 # NonStop-UX NCC 3.20
13735 lt_prog_compiler_pic_CXX='-KPIC'
13739 esac
13741 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13742 case $cc_basename in
13743 CC*)
13744 lt_prog_compiler_wl_CXX='-Wl,'
13745 lt_prog_compiler_pic_CXX='-KPIC'
13746 lt_prog_compiler_static_CXX='-Bstatic'
13748 esac
13750 vxworks*)
13753 lt_prog_compiler_can_build_shared_CXX=no
13755 esac
13758 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
13759 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
13762 # Check to make sure the PIC flag actually works.
13764 if test -n "$lt_prog_compiler_pic_CXX"; then
13766 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
13767 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
13768 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
13769 echo $ECHO_N "(cached) $ECHO_C" >&6
13770 else
13771 lt_prog_compiler_pic_works_CXX=no
13772 ac_outfile=conftest.$ac_objext
13773 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13774 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
13775 # Insert the option either (1) after the last *FLAGS variable, or
13776 # (2) before a word containing "conftest.", or (3) at the end.
13777 # Note that $ac_compile itself does not contain backslashes and begins
13778 # with a dollar sign (not a hyphen), so the echo should work correctly.
13779 # The option is referenced via a variable to avoid confusing sed.
13780 lt_compile=`echo "$ac_compile" | $SED \
13781 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13782 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13783 -e 's:$: $lt_compiler_flag:'`
13784 (eval echo "\"\$as_me:13784: $lt_compile\"" >&5)
13785 (eval "$lt_compile" 2>conftest.err)
13786 ac_status=$?
13787 cat conftest.err >&5
13788 echo "$as_me:13788: \$? = $ac_status" >&5
13789 if (exit $ac_status) && test -s "$ac_outfile"; then
13790 # The compiler can only warn and ignore the option if not recognized
13791 # So say no if there are warnings other than the usual output.
13792 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13793 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13794 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13795 lt_prog_compiler_pic_works_CXX=yes
13798 $rm conftest*
13801 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
13802 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
13804 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
13805 case $lt_prog_compiler_pic_CXX in
13806 "" | " "*) ;;
13807 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
13808 esac
13809 else
13810 lt_prog_compiler_pic_CXX=
13811 lt_prog_compiler_can_build_shared_CXX=no
13815 case $host_os in
13816 # For platforms which do not support PIC, -DPIC is meaningless:
13817 *djgpp*)
13818 lt_prog_compiler_pic_CXX=
13821 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
13823 esac
13826 # Check to make sure the static flag actually works.
13828 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
13829 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13830 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
13831 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
13832 echo $ECHO_N "(cached) $ECHO_C" >&6
13833 else
13834 lt_prog_compiler_static_works_CXX=no
13835 save_LDFLAGS="$LDFLAGS"
13836 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13837 printf "$lt_simple_link_test_code" > conftest.$ac_ext
13838 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13839 # The linker can only warn and ignore the option if not recognized
13840 # So say no if there are warnings
13841 if test -s conftest.err; then
13842 # Append any errors to the config.log.
13843 cat conftest.err 1>&5
13844 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
13845 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13846 if diff conftest.exp conftest.er2 >/dev/null; then
13847 lt_prog_compiler_static_works_CXX=yes
13849 else
13850 lt_prog_compiler_static_works_CXX=yes
13853 $rm conftest*
13854 LDFLAGS="$save_LDFLAGS"
13857 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
13858 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
13860 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
13862 else
13863 lt_prog_compiler_static_CXX=
13867 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13868 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
13869 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
13870 echo $ECHO_N "(cached) $ECHO_C" >&6
13871 else
13872 lt_cv_prog_compiler_c_o_CXX=no
13873 $rm -r conftest 2>/dev/null
13874 mkdir conftest
13875 cd conftest
13876 mkdir out
13877 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13879 lt_compiler_flag="-o out/conftest2.$ac_objext"
13880 # Insert the option either (1) after the last *FLAGS variable, or
13881 # (2) before a word containing "conftest.", or (3) at the end.
13882 # Note that $ac_compile itself does not contain backslashes and begins
13883 # with a dollar sign (not a hyphen), so the echo should work correctly.
13884 lt_compile=`echo "$ac_compile" | $SED \
13885 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13886 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13887 -e 's:$: $lt_compiler_flag:'`
13888 (eval echo "\"\$as_me:13888: $lt_compile\"" >&5)
13889 (eval "$lt_compile" 2>out/conftest.err)
13890 ac_status=$?
13891 cat out/conftest.err >&5
13892 echo "$as_me:13892: \$? = $ac_status" >&5
13893 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13894 then
13895 # The compiler can only warn and ignore the option if not recognized
13896 # So say no if there are warnings
13897 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13898 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13899 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13900 lt_cv_prog_compiler_c_o_CXX=yes
13903 chmod u+w . 2>&5
13904 $rm conftest*
13905 # SGI C++ compiler will create directory out/ii_files/ for
13906 # template instantiation
13907 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13908 $rm out/* && rmdir out
13909 cd ..
13910 rmdir conftest
13911 $rm conftest*
13914 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13915 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
13918 hard_links="nottested"
13919 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
13920 # do not overwrite the value of need_locks provided by the user
13921 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13922 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
13923 hard_links=yes
13924 $rm conftest*
13925 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13926 touch conftest.a
13927 ln conftest.a conftest.b 2>&5 || hard_links=no
13928 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13929 { echo "$as_me:$LINENO: result: $hard_links" >&5
13930 echo "${ECHO_T}$hard_links" >&6; }
13931 if test "$hard_links" = no; then
13932 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13933 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13934 need_locks=warn
13936 else
13937 need_locks=no
13940 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13941 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
13943 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13944 case $host_os in
13945 aix4* | aix5*)
13946 # If we're using GNU nm, then we don't want the "-C" option.
13947 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13948 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13949 export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
13950 else
13951 export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
13954 pw32*)
13955 export_symbols_cmds_CXX="$ltdll_cmds"
13957 cygwin* | mingw*)
13958 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/;/^.* __nm__/s/^.* __nm__\([^ ]*\) [^ ]*/\1 DATA/;/^I /d;/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
13961 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13963 esac
13965 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
13966 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
13967 test "$ld_shlibs_CXX" = no && can_build_shared=no
13970 # Do we need to explicitly link libc?
13972 case "x$archive_cmds_need_lc_CXX" in
13973 x|xyes)
13974 # Assume -lc should be added
13975 archive_cmds_need_lc_CXX=yes
13977 if test "$enable_shared" = yes && test "$GCC" = yes; then
13978 case $archive_cmds_CXX in
13979 *'~'*)
13980 # FIXME: we may have to deal with multi-command sequences.
13982 '$CC '*)
13983 # Test whether the compiler implicitly links with -lc since on some
13984 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13985 # to ld, don't add -lc before -lgcc.
13986 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13987 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
13988 $rm conftest*
13989 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13991 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13992 (eval $ac_compile) 2>&5
13993 ac_status=$?
13994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13995 (exit $ac_status); } 2>conftest.err; then
13996 soname=conftest
13997 lib=conftest
13998 libobjs=conftest.$ac_objext
13999 deplibs=
14000 wl=$lt_prog_compiler_wl_CXX
14001 pic_flag=$lt_prog_compiler_pic_CXX
14002 compiler_flags=-v
14003 linker_flags=-v
14004 verstring=
14005 output_objdir=.
14006 libname=conftest
14007 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14008 allow_undefined_flag_CXX=
14009 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14010 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14011 ac_status=$?
14012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14013 (exit $ac_status); }
14014 then
14015 archive_cmds_need_lc_CXX=no
14016 else
14017 archive_cmds_need_lc_CXX=yes
14019 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14020 else
14021 cat conftest.err 1>&5
14023 $rm conftest*
14024 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
14025 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
14027 esac
14030 esac
14032 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14033 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
14034 library_names_spec=
14035 libname_spec='lib$name'
14036 soname_spec=
14037 shrext_cmds=".so"
14038 postinstall_cmds=
14039 postuninstall_cmds=
14040 finish_cmds=
14041 finish_eval=
14042 shlibpath_var=
14043 shlibpath_overrides_runpath=unknown
14044 version_type=none
14045 dynamic_linker="$host_os ld.so"
14046 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14047 if test "$GCC" = yes; then
14048 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14049 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14050 # if the path contains ";" then we assume it to be the separator
14051 # otherwise default to the standard path separator (i.e. ":") - it is
14052 # assumed that no part of a normal pathname contains ";" but that should
14053 # okay in the real world where ";" in dirpaths is itself problematic.
14054 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14055 else
14056 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14058 else
14059 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14061 need_lib_prefix=unknown
14062 hardcode_into_libs=no
14064 # when you set need_version to no, make sure it does not cause -set_version
14065 # flags to be left without arguments
14066 need_version=unknown
14068 case $host_os in
14069 aix3*)
14070 version_type=linux
14071 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14072 shlibpath_var=LIBPATH
14074 # AIX 3 has no versioning support, so we append a major version to the name.
14075 soname_spec='${libname}${release}${shared_ext}$major'
14078 aix4* | aix5*)
14079 version_type=linux
14080 need_lib_prefix=no
14081 need_version=no
14082 hardcode_into_libs=yes
14083 if test "$host_cpu" = ia64; then
14084 # AIX 5 supports IA64
14085 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14086 shlibpath_var=LD_LIBRARY_PATH
14087 else
14088 # With GCC up to 2.95.x, collect2 would create an import file
14089 # for dependence libraries. The import file would start with
14090 # the line `#! .'. This would cause the generated library to
14091 # depend on `.', always an invalid library. This was fixed in
14092 # development snapshots of GCC prior to 3.0.
14093 case $host_os in
14094 aix4 | aix4.[01] | aix4.[01].*)
14095 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14096 echo ' yes '
14097 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14099 else
14100 can_build_shared=no
14103 esac
14104 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14105 # soname into executable. Probably we can add versioning support to
14106 # collect2, so additional links can be useful in future.
14107 if test "$aix_use_runtimelinking" = yes; then
14108 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14109 # instead of lib<name>.a to let people know that these are not
14110 # typical AIX shared libraries.
14111 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14112 else
14113 # We preserve .a as extension for shared libraries through AIX4.2
14114 # and later when we are not doing run time linking.
14115 library_names_spec='${libname}${release}.a $libname.a'
14116 soname_spec='${libname}${release}${shared_ext}$major'
14118 shlibpath_var=LIBPATH
14122 amigaos*)
14123 library_names_spec='$libname.ixlibrary $libname.a'
14124 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14125 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''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'
14128 beos*)
14129 library_names_spec='${libname}${shared_ext}'
14130 dynamic_linker="$host_os ld.so"
14131 shlibpath_var=LIBRARY_PATH
14134 bsdi[45]*)
14135 version_type=linux
14136 need_version=no
14137 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14138 soname_spec='${libname}${release}${shared_ext}$major'
14139 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14140 shlibpath_var=LD_LIBRARY_PATH
14141 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14142 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14143 # the default ld.so.conf also contains /usr/contrib/lib and
14144 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14145 # libtool to hard-code these into programs
14148 cygwin* | mingw* | pw32*)
14149 version_type=windows
14150 shrext_cmds=".dll"
14151 need_version=no
14152 need_lib_prefix=no
14154 case $GCC,$host_os in
14155 yes,cygwin* | yes,mingw* | yes,pw32*)
14156 library_names_spec='$libname.dll.a'
14157 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14158 postinstall_cmds='base_file=`basename \${file}`~
14159 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14160 dldir=$destdir/`dirname \$dlpath`~
14161 test -d \$dldir || mkdir -p \$dldir~
14162 $install_prog $dir/$dlname \$dldir/$dlname~
14163 chmod a+x \$dldir/$dlname'
14164 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14165 dlpath=$dir/\$dldll~
14166 $rm \$dlpath'
14167 shlibpath_overrides_runpath=yes
14169 case $host_os in
14170 cygwin*)
14171 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14172 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14173 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14175 mingw*)
14176 # MinGW DLLs use traditional 'lib' prefix
14177 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14178 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14179 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14180 # It is most probably a Windows format PATH printed by
14181 # mingw gcc, but we are running on Cygwin. Gcc prints its search
14182 # path with ; separators, and with drive letters. We can handle the
14183 # drive letters (cygwin fileutils understands them), so leave them,
14184 # especially as we might pass files found there to a mingw objdump,
14185 # which wouldn't understand a cygwinified path. Ahh.
14186 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14187 else
14188 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14191 pw32*)
14192 # pw32 DLLs use 'pw' prefix rather than 'lib'
14193 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14195 esac
14199 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14201 esac
14202 dynamic_linker='Win32 ld.exe'
14203 # FIXME: first we should search . and the directory the executable is in
14204 shlibpath_var=PATH
14207 darwin* | rhapsody*)
14208 dynamic_linker="$host_os dyld"
14209 version_type=darwin
14210 need_lib_prefix=no
14211 need_version=no
14212 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14213 soname_spec='${libname}${release}${major}$shared_ext'
14214 shlibpath_overrides_runpath=yes
14215 shlibpath_var=DYLD_LIBRARY_PATH
14216 shrext_cmds='.dylib'
14217 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
14218 if test "$GCC" = yes; then
14219 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
14220 else
14221 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
14223 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14226 dgux*)
14227 version_type=linux
14228 need_lib_prefix=no
14229 need_version=no
14230 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14231 soname_spec='${libname}${release}${shared_ext}$major'
14232 shlibpath_var=LD_LIBRARY_PATH
14235 freebsd1*)
14236 dynamic_linker=no
14239 kfreebsd*-gnu)
14240 version_type=linux
14241 need_lib_prefix=no
14242 need_version=no
14243 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14244 soname_spec='${libname}${release}${shared_ext}$major'
14245 shlibpath_var=LD_LIBRARY_PATH
14246 shlibpath_overrides_runpath=no
14247 hardcode_into_libs=yes
14248 dynamic_linker='GNU ld.so'
14251 freebsd* | dragonfly*)
14252 # DragonFly does not have aout. When/if they implement a new
14253 # versioning mechanism, adjust this.
14254 if test -x /usr/bin/objformat; then
14255 objformat=`/usr/bin/objformat`
14256 else
14257 case $host_os in
14258 freebsd[123]*) objformat=aout ;;
14259 *) objformat=elf ;;
14260 esac
14262 version_type=freebsd-$objformat
14263 case $version_type in
14264 freebsd-elf*)
14265 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14266 need_version=no
14267 need_lib_prefix=no
14269 freebsd-*)
14270 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14271 need_version=yes
14273 esac
14274 shlibpath_var=LD_LIBRARY_PATH
14275 case $host_os in
14276 freebsd2*)
14277 shlibpath_overrides_runpath=yes
14279 freebsd3.[01]* | freebsdelf3.[01]*)
14280 shlibpath_overrides_runpath=yes
14281 hardcode_into_libs=yes
14283 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14284 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14285 shlibpath_overrides_runpath=no
14286 hardcode_into_libs=yes
14288 freebsd*) # from 4.6 on
14289 shlibpath_overrides_runpath=yes
14290 hardcode_into_libs=yes
14292 esac
14295 gnu*)
14296 version_type=linux
14297 need_lib_prefix=no
14298 need_version=no
14299 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14300 soname_spec='${libname}${release}${shared_ext}$major'
14301 shlibpath_var=LD_LIBRARY_PATH
14302 hardcode_into_libs=yes
14305 hpux9* | hpux10* | hpux11*)
14306 # Give a soname corresponding to the major version so that dld.sl refuses to
14307 # link against other versions.
14308 version_type=sunos
14309 need_lib_prefix=no
14310 need_version=no
14311 case $host_cpu in
14312 ia64*)
14313 shrext_cmds='.so'
14314 hardcode_into_libs=yes
14315 dynamic_linker="$host_os dld.so"
14316 shlibpath_var=LD_LIBRARY_PATH
14317 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14318 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14319 soname_spec='${libname}${release}${shared_ext}$major'
14320 if test "X$HPUX_IA64_MODE" = X32; then
14321 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14322 else
14323 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14325 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14327 hppa*64*)
14328 shrext_cmds='.sl'
14329 hardcode_into_libs=yes
14330 dynamic_linker="$host_os dld.sl"
14331 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14332 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14333 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14334 soname_spec='${libname}${release}${shared_ext}$major'
14335 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14336 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14339 shrext_cmds='.sl'
14340 dynamic_linker="$host_os dld.sl"
14341 shlibpath_var=SHLIB_PATH
14342 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14343 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14344 soname_spec='${libname}${release}${shared_ext}$major'
14346 esac
14347 # HP-UX runs *really* slowly unless shared libraries are mode 555.
14348 postinstall_cmds='chmod 555 $lib'
14351 interix3*)
14352 version_type=linux
14353 need_lib_prefix=no
14354 need_version=no
14355 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14356 soname_spec='${libname}${release}${shared_ext}$major'
14357 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14358 shlibpath_var=LD_LIBRARY_PATH
14359 shlibpath_overrides_runpath=no
14360 hardcode_into_libs=yes
14363 irix5* | irix6* | nonstopux*)
14364 case $host_os in
14365 nonstopux*) version_type=nonstopux ;;
14367 if test "$lt_cv_prog_gnu_ld" = yes; then
14368 version_type=linux
14369 else
14370 version_type=irix
14371 fi ;;
14372 esac
14373 need_lib_prefix=no
14374 need_version=no
14375 soname_spec='${libname}${release}${shared_ext}$major'
14376 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14377 case $host_os in
14378 irix5* | nonstopux*)
14379 libsuff= shlibsuff=
14382 case $LD in # libtool.m4 will add one of these switches to LD
14383 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14384 libsuff= shlibsuff= libmagic=32-bit;;
14385 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14386 libsuff=32 shlibsuff=N32 libmagic=N32;;
14387 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14388 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14389 *) libsuff= shlibsuff= libmagic=never-match;;
14390 esac
14392 esac
14393 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14394 shlibpath_overrides_runpath=no
14395 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14396 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14397 hardcode_into_libs=yes
14400 # No shared lib support for Linux oldld, aout, or coff.
14401 linux*oldld* | linux*aout* | linux*coff*)
14402 dynamic_linker=no
14405 # This must be Linux ELF.
14406 linux*)
14407 version_type=linux
14408 need_lib_prefix=no
14409 need_version=no
14410 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14411 soname_spec='${libname}${release}${shared_ext}$major'
14412 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14413 shlibpath_var=LD_LIBRARY_PATH
14414 shlibpath_overrides_runpath=no
14415 # This implies no fast_install, which is unacceptable.
14416 # Some rework will be needed to allow for fast_install
14417 # before this can be enabled.
14418 hardcode_into_libs=yes
14420 # Append ld.so.conf contents to the search path
14421 if test -f /etc/ld.so.conf; then
14422 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
14423 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14426 # We used to test for /lib/ld.so.1 and disable shared libraries on
14427 # powerpc, because MkLinux only supported shared libraries with the
14428 # GNU dynamic linker. Since this was broken with cross compilers,
14429 # most powerpc-linux boxes support dynamic linking these days and
14430 # people can always --disable-shared, the test was removed, and we
14431 # assume the GNU/Linux dynamic linker is in use.
14432 dynamic_linker='GNU/Linux ld.so'
14435 knetbsd*-gnu)
14436 version_type=linux
14437 need_lib_prefix=no
14438 need_version=no
14439 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14440 soname_spec='${libname}${release}${shared_ext}$major'
14441 shlibpath_var=LD_LIBRARY_PATH
14442 shlibpath_overrides_runpath=no
14443 hardcode_into_libs=yes
14444 dynamic_linker='GNU ld.so'
14447 netbsd*)
14448 version_type=sunos
14449 need_lib_prefix=no
14450 need_version=no
14451 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14452 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14453 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14454 dynamic_linker='NetBSD (a.out) ld.so'
14455 else
14456 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14457 soname_spec='${libname}${release}${shared_ext}$major'
14458 dynamic_linker='NetBSD ld.elf_so'
14460 shlibpath_var=LD_LIBRARY_PATH
14461 shlibpath_overrides_runpath=yes
14462 hardcode_into_libs=yes
14465 newsos6)
14466 version_type=linux
14467 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14468 shlibpath_var=LD_LIBRARY_PATH
14469 shlibpath_overrides_runpath=yes
14472 nto-qnx*)
14473 version_type=linux
14474 need_lib_prefix=no
14475 need_version=no
14476 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14477 soname_spec='${libname}${release}${shared_ext}$major'
14478 shlibpath_var=LD_LIBRARY_PATH
14479 shlibpath_overrides_runpath=yes
14482 openbsd*)
14483 version_type=sunos
14484 sys_lib_dlsearch_path_spec="/usr/lib"
14485 need_lib_prefix=no
14486 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14487 case $host_os in
14488 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14489 *) need_version=no ;;
14490 esac
14491 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14492 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14493 shlibpath_var=LD_LIBRARY_PATH
14494 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14495 case $host_os in
14496 openbsd2.[89] | openbsd2.[89].*)
14497 shlibpath_overrides_runpath=no
14500 shlibpath_overrides_runpath=yes
14502 esac
14503 else
14504 shlibpath_overrides_runpath=yes
14508 os2*)
14509 libname_spec='$name'
14510 shrext_cmds=".dll"
14511 need_lib_prefix=no
14512 library_names_spec='$libname${shared_ext} $libname.a'
14513 dynamic_linker='OS/2 ld.exe'
14514 shlibpath_var=LIBPATH
14517 osf3* | osf4* | osf5*)
14518 version_type=osf
14519 need_lib_prefix=no
14520 need_version=no
14521 soname_spec='${libname}${release}${shared_ext}$major'
14522 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14523 shlibpath_var=LD_LIBRARY_PATH
14524 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14525 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14528 solaris*)
14529 version_type=linux
14530 need_lib_prefix=no
14531 need_version=no
14532 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14533 soname_spec='${libname}${release}${shared_ext}$major'
14534 shlibpath_var=LD_LIBRARY_PATH
14535 shlibpath_overrides_runpath=yes
14536 hardcode_into_libs=yes
14537 # ldd complains unless libraries are executable
14538 postinstall_cmds='chmod +x $lib'
14541 sunos4*)
14542 version_type=sunos
14543 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14544 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14545 shlibpath_var=LD_LIBRARY_PATH
14546 shlibpath_overrides_runpath=yes
14547 if test "$with_gnu_ld" = yes; then
14548 need_lib_prefix=no
14550 need_version=yes
14553 sysv4 | sysv4.3*)
14554 version_type=linux
14555 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14556 soname_spec='${libname}${release}${shared_ext}$major'
14557 shlibpath_var=LD_LIBRARY_PATH
14558 case $host_vendor in
14559 sni)
14560 shlibpath_overrides_runpath=no
14561 need_lib_prefix=no
14562 export_dynamic_flag_spec='${wl}-Blargedynsym'
14563 runpath_var=LD_RUN_PATH
14565 siemens)
14566 need_lib_prefix=no
14568 motorola)
14569 need_lib_prefix=no
14570 need_version=no
14571 shlibpath_overrides_runpath=no
14572 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14574 esac
14577 sysv4*MP*)
14578 if test -d /usr/nec ;then
14579 version_type=linux
14580 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14581 soname_spec='$libname${shared_ext}.$major'
14582 shlibpath_var=LD_LIBRARY_PATH
14586 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14587 version_type=freebsd-elf
14588 need_lib_prefix=no
14589 need_version=no
14590 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14591 soname_spec='${libname}${release}${shared_ext}$major'
14592 shlibpath_var=LD_LIBRARY_PATH
14593 hardcode_into_libs=yes
14594 if test "$with_gnu_ld" = yes; then
14595 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14596 shlibpath_overrides_runpath=no
14597 else
14598 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14599 shlibpath_overrides_runpath=yes
14600 case $host_os in
14601 sco3.2v5*)
14602 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14604 esac
14606 sys_lib_dlsearch_path_spec='/usr/lib'
14609 uts4*)
14610 version_type=linux
14611 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14612 soname_spec='${libname}${release}${shared_ext}$major'
14613 shlibpath_var=LD_LIBRARY_PATH
14617 dynamic_linker=no
14619 esac
14620 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14621 echo "${ECHO_T}$dynamic_linker" >&6; }
14622 test "$dynamic_linker" = no && can_build_shared=no
14624 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14625 if test "$GCC" = yes; then
14626 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14629 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
14630 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
14631 hardcode_action_CXX=
14632 if test -n "$hardcode_libdir_flag_spec_CXX" || \
14633 test -n "$runpath_var_CXX" || \
14634 test "X$hardcode_automatic_CXX" = "Xyes" ; then
14636 # We can hardcode non-existant directories.
14637 if test "$hardcode_direct_CXX" != no &&
14638 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14639 # have to relink, otherwise we might link with an installed library
14640 # when we should be linking with a yet-to-be-installed one
14641 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
14642 test "$hardcode_minus_L_CXX" != no; then
14643 # Linking always hardcodes the temporary library directory.
14644 hardcode_action_CXX=relink
14645 else
14646 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14647 hardcode_action_CXX=immediate
14649 else
14650 # We cannot hardcode anything, or else we can only hardcode existing
14651 # directories.
14652 hardcode_action_CXX=unsupported
14654 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
14655 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
14657 if test "$hardcode_action_CXX" = relink; then
14658 # Fast installation is not supported
14659 enable_fast_install=no
14660 elif test "$shlibpath_overrides_runpath" = yes ||
14661 test "$enable_shared" = no; then
14662 # Fast installation is not necessary
14663 enable_fast_install=needless
14667 # The else clause should only fire when bootstrapping the
14668 # libtool distribution, otherwise you forgot to ship ltmain.sh
14669 # with your package, and you will get complaints that there are
14670 # no rules to generate ltmain.sh.
14671 if test -f "$ltmain"; then
14672 # See if we are running on zsh, and set the options which allow our commands through
14673 # without removal of \ escapes.
14674 if test -n "${ZSH_VERSION+set}" ; then
14675 setopt NO_GLOB_SUBST
14677 # Now quote all the things that may contain metacharacters while being
14678 # careful not to overquote the AC_SUBSTed values. We take copies of the
14679 # variables and quote the copies for generation of the libtool script.
14680 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
14681 SED SHELL STRIP \
14682 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14683 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14684 deplibs_check_method reload_flag reload_cmds need_locks \
14685 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14686 lt_cv_sys_global_symbol_to_c_name_address \
14687 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14688 old_postinstall_cmds old_postuninstall_cmds \
14689 compiler_CXX \
14690 CC_CXX \
14691 LD_CXX \
14692 lt_prog_compiler_wl_CXX \
14693 lt_prog_compiler_pic_CXX \
14694 lt_prog_compiler_static_CXX \
14695 lt_prog_compiler_no_builtin_flag_CXX \
14696 export_dynamic_flag_spec_CXX \
14697 thread_safe_flag_spec_CXX \
14698 whole_archive_flag_spec_CXX \
14699 enable_shared_with_static_runtimes_CXX \
14700 old_archive_cmds_CXX \
14701 old_archive_from_new_cmds_CXX \
14702 predep_objects_CXX \
14703 postdep_objects_CXX \
14704 predeps_CXX \
14705 postdeps_CXX \
14706 compiler_lib_search_path_CXX \
14707 archive_cmds_CXX \
14708 archive_expsym_cmds_CXX \
14709 postinstall_cmds_CXX \
14710 postuninstall_cmds_CXX \
14711 old_archive_from_expsyms_cmds_CXX \
14712 allow_undefined_flag_CXX \
14713 no_undefined_flag_CXX \
14714 export_symbols_cmds_CXX \
14715 hardcode_libdir_flag_spec_CXX \
14716 hardcode_libdir_flag_spec_ld_CXX \
14717 hardcode_libdir_separator_CXX \
14718 hardcode_automatic_CXX \
14719 module_cmds_CXX \
14720 module_expsym_cmds_CXX \
14721 lt_cv_prog_compiler_c_o_CXX \
14722 exclude_expsyms_CXX \
14723 include_expsyms_CXX; do
14725 case $var in
14726 old_archive_cmds_CXX | \
14727 old_archive_from_new_cmds_CXX | \
14728 archive_cmds_CXX | \
14729 archive_expsym_cmds_CXX | \
14730 module_cmds_CXX | \
14731 module_expsym_cmds_CXX | \
14732 old_archive_from_expsyms_cmds_CXX | \
14733 export_symbols_cmds_CXX | \
14734 extract_expsyms_cmds | reload_cmds | finish_cmds | \
14735 postinstall_cmds | postuninstall_cmds | \
14736 old_postinstall_cmds | old_postuninstall_cmds | \
14737 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14738 # Double-quote double-evaled strings.
14739 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14742 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14744 esac
14745 done
14747 case $lt_echo in
14748 *'\$0 --fallback-echo"')
14749 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14751 esac
14753 cfgfile="$ofile"
14755 cat <<__EOF__ >> "$cfgfile"
14756 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
14758 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14760 # Shell to use when invoking shell scripts.
14761 SHELL=$lt_SHELL
14763 # Whether or not to build shared libraries.
14764 build_libtool_libs=$enable_shared
14766 # Whether or not to build static libraries.
14767 build_old_libs=$enable_static
14769 # Whether or not to add -lc for building shared libraries.
14770 build_libtool_need_lc=$archive_cmds_need_lc_CXX
14772 # Whether or not to disallow shared libs when runtime libs are static
14773 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
14775 # Whether or not to optimize for fast installation.
14776 fast_install=$enable_fast_install
14778 # The host system.
14779 host_alias=$host_alias
14780 host=$host
14781 host_os=$host_os
14783 # The build system.
14784 build_alias=$build_alias
14785 build=$build
14786 build_os=$build_os
14788 # An echo program that does not interpret backslashes.
14789 echo=$lt_echo
14791 # The archiver.
14792 AR=$lt_AR
14793 AR_FLAGS=$lt_AR_FLAGS
14795 # A C compiler.
14796 LTCC=$lt_LTCC
14798 # LTCC compiler flags.
14799 LTCFLAGS=$lt_LTCFLAGS
14801 # A language-specific compiler.
14802 CC=$lt_compiler_CXX
14804 # Is the compiler the GNU C compiler?
14805 with_gcc=$GCC_CXX
14807 # An ERE matcher.
14808 EGREP=$lt_EGREP
14810 # The linker used to build libraries.
14811 LD=$lt_LD_CXX
14813 # Whether we need hard or soft links.
14814 LN_S=$lt_LN_S
14816 # A BSD-compatible nm program.
14817 NM=$lt_NM
14819 # A symbol stripping program
14820 STRIP=$lt_STRIP
14822 # Used to examine libraries when file_magic_cmd begins "file"
14823 MAGIC_CMD=$MAGIC_CMD
14825 # Used on cygwin: DLL creation program.
14826 DLLTOOL="$DLLTOOL"
14828 # Used on cygwin: object dumper.
14829 OBJDUMP="$OBJDUMP"
14831 # Used on cygwin: assembler.
14832 AS="$AS"
14834 # The name of the directory that contains temporary libtool files.
14835 objdir=$objdir
14837 # How to create reloadable object files.
14838 reload_flag=$lt_reload_flag
14839 reload_cmds=$lt_reload_cmds
14841 # How to pass a linker flag through the compiler.
14842 wl=$lt_lt_prog_compiler_wl_CXX
14844 # Object file suffix (normally "o").
14845 objext="$ac_objext"
14847 # Old archive suffix (normally "a").
14848 libext="$libext"
14850 # Shared library suffix (normally ".so").
14851 shrext_cmds='$shrext_cmds'
14853 # Executable file suffix (normally "").
14854 exeext="$exeext"
14856 # Additional compiler flags for building library objects.
14857 pic_flag=$lt_lt_prog_compiler_pic_CXX
14858 pic_mode=$pic_mode
14860 # What is the maximum length of a command?
14861 max_cmd_len=$lt_cv_sys_max_cmd_len
14863 # Does compiler simultaneously support -c and -o options?
14864 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
14866 # Must we lock files when doing compilation?
14867 need_locks=$lt_need_locks
14869 # Do we need the lib prefix for modules?
14870 need_lib_prefix=$need_lib_prefix
14872 # Do we need a version for libraries?
14873 need_version=$need_version
14875 # Whether dlopen is supported.
14876 dlopen_support=$enable_dlopen
14878 # Whether dlopen of programs is supported.
14879 dlopen_self=$enable_dlopen_self
14881 # Whether dlopen of statically linked programs is supported.
14882 dlopen_self_static=$enable_dlopen_self_static
14884 # Compiler flag to prevent dynamic linking.
14885 link_static_flag=$lt_lt_prog_compiler_static_CXX
14887 # Compiler flag to turn off builtin functions.
14888 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
14890 # Compiler flag to allow reflexive dlopens.
14891 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
14893 # Compiler flag to generate shared objects directly from archives.
14894 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
14896 # Compiler flag to generate thread-safe objects.
14897 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
14899 # Library versioning type.
14900 version_type=$version_type
14902 # Format of library name prefix.
14903 libname_spec=$lt_libname_spec
14905 # List of archive names. First name is the real one, the rest are links.
14906 # The last name is the one that the linker finds with -lNAME.
14907 library_names_spec=$lt_library_names_spec
14909 # The coded name of the library, if different from the real name.
14910 soname_spec=$lt_soname_spec
14912 # Commands used to build and install an old-style archive.
14913 RANLIB=$lt_RANLIB
14914 old_archive_cmds=$lt_old_archive_cmds_CXX
14915 old_postinstall_cmds=$lt_old_postinstall_cmds
14916 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14918 # Create an old-style archive from a shared archive.
14919 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
14921 # Create a temporary old-style archive to link instead of a shared archive.
14922 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
14924 # Commands used to build and install a shared archive.
14925 archive_cmds=$lt_archive_cmds_CXX
14926 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
14927 postinstall_cmds=$lt_postinstall_cmds
14928 postuninstall_cmds=$lt_postuninstall_cmds
14930 # Commands used to build a loadable module (assumed same as above if empty)
14931 module_cmds=$lt_module_cmds_CXX
14932 module_expsym_cmds=$lt_module_expsym_cmds_CXX
14934 # Commands to strip libraries.
14935 old_striplib=$lt_old_striplib
14936 striplib=$lt_striplib
14938 # Dependencies to place before the objects being linked to create a
14939 # shared library.
14940 predep_objects=$lt_predep_objects_CXX
14942 # Dependencies to place after the objects being linked to create a
14943 # shared library.
14944 postdep_objects=$lt_postdep_objects_CXX
14946 # Dependencies to place before the objects being linked to create a
14947 # shared library.
14948 predeps=$lt_predeps_CXX
14950 # Dependencies to place after the objects being linked to create a
14951 # shared library.
14952 postdeps=$lt_postdeps_CXX
14954 # The library search path used internally by the compiler when linking
14955 # a shared library.
14956 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
14958 # Method to check whether dependent libraries are shared objects.
14959 deplibs_check_method=$lt_deplibs_check_method
14961 # Command to use when deplibs_check_method == file_magic.
14962 file_magic_cmd=$lt_file_magic_cmd
14964 # Flag that allows shared libraries with undefined symbols to be built.
14965 allow_undefined_flag=$lt_allow_undefined_flag_CXX
14967 # Flag that forces no undefined symbols.
14968 no_undefined_flag=$lt_no_undefined_flag_CXX
14970 # Commands used to finish a libtool library installation in a directory.
14971 finish_cmds=$lt_finish_cmds
14973 # Same as above, but a single script fragment to be evaled but not shown.
14974 finish_eval=$lt_finish_eval
14976 # Take the output of nm and produce a listing of raw symbols and C names.
14977 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14979 # Transform the output of nm in a proper C declaration
14980 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14982 # Transform the output of nm in a C name address pair
14983 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14985 # This is the shared library runtime path variable.
14986 runpath_var=$runpath_var
14988 # This is the shared library path variable.
14989 shlibpath_var=$shlibpath_var
14991 # Is shlibpath searched before the hard-coded library search path?
14992 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14994 # How to hardcode a shared library path into an executable.
14995 hardcode_action=$hardcode_action_CXX
14997 # Whether we should hardcode library paths into libraries.
14998 hardcode_into_libs=$hardcode_into_libs
15000 # Flag to hardcode \$libdir into a binary during linking.
15001 # This must work even if \$libdir does not exist.
15002 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
15004 # If ld is used when linking, flag to hardcode \$libdir into
15005 # a binary during linking. This must work even if \$libdir does
15006 # not exist.
15007 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
15009 # Whether we need a single -rpath flag with a separated argument.
15010 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
15012 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15013 # resulting binary.
15014 hardcode_direct=$hardcode_direct_CXX
15016 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15017 # resulting binary.
15018 hardcode_minus_L=$hardcode_minus_L_CXX
15020 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15021 # the resulting binary.
15022 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
15024 # Set to yes if building a shared library automatically hardcodes DIR into the library
15025 # and all subsequent libraries and executables linked against it.
15026 hardcode_automatic=$hardcode_automatic_CXX
15028 # Variables whose values should be saved in libtool wrapper scripts and
15029 # restored at relink time.
15030 variables_saved_for_relink="$variables_saved_for_relink"
15032 # Whether libtool must link a program against all its dependency libraries.
15033 link_all_deplibs=$link_all_deplibs_CXX
15035 # Compile-time system search path for libraries
15036 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15038 # Run-time system search path for libraries
15039 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15041 # Fix the shell variable \$srcfile for the compiler.
15042 fix_srcfile_path="$fix_srcfile_path_CXX"
15044 # Set to yes if exported symbols are required.
15045 always_export_symbols=$always_export_symbols_CXX
15047 # The commands to list exported symbols.
15048 export_symbols_cmds=$lt_export_symbols_cmds_CXX
15050 # The commands to extract the exported symbol list from a shared archive.
15051 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15053 # Symbols that should not be listed in the preloaded symbols.
15054 exclude_expsyms=$lt_exclude_expsyms_CXX
15056 # Symbols that must always be exported.
15057 include_expsyms=$lt_include_expsyms_CXX
15059 # ### END LIBTOOL TAG CONFIG: $tagname
15061 __EOF__
15064 else
15065 # If there is no Makefile yet, we rely on a make rule to execute
15066 # `config.status --recheck' to rerun these tests and create the
15067 # libtool script then.
15068 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15069 if test -f "$ltmain_in"; then
15070 test -f Makefile && make "$ltmain"
15075 ac_ext=c
15076 ac_cpp='$CPP $CPPFLAGS'
15077 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15078 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15079 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15081 CC=$lt_save_CC
15082 LDCXX=$LD
15083 LD=$lt_save_LD
15084 GCC=$lt_save_GCC
15085 with_gnu_ldcxx=$with_gnu_ld
15086 with_gnu_ld=$lt_save_with_gnu_ld
15087 lt_cv_path_LDCXX=$lt_cv_path_LD
15088 lt_cv_path_LD=$lt_save_path_LD
15089 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15090 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15092 else
15093 tagname=""
15097 F77)
15098 if test -n "$F77" && test "X$F77" != "Xno"; then
15100 ac_ext=f
15101 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
15102 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15103 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
15106 archive_cmds_need_lc_F77=no
15107 allow_undefined_flag_F77=
15108 always_export_symbols_F77=no
15109 archive_expsym_cmds_F77=
15110 export_dynamic_flag_spec_F77=
15111 hardcode_direct_F77=no
15112 hardcode_libdir_flag_spec_F77=
15113 hardcode_libdir_flag_spec_ld_F77=
15114 hardcode_libdir_separator_F77=
15115 hardcode_minus_L_F77=no
15116 hardcode_automatic_F77=no
15117 module_cmds_F77=
15118 module_expsym_cmds_F77=
15119 link_all_deplibs_F77=unknown
15120 old_archive_cmds_F77=$old_archive_cmds
15121 no_undefined_flag_F77=
15122 whole_archive_flag_spec_F77=
15123 enable_shared_with_static_runtimes_F77=no
15125 # Source file extension for f77 test sources.
15126 ac_ext=f
15128 # Object file extension for compiled f77 test sources.
15129 objext=o
15130 objext_F77=$objext
15132 # Code to be used in simple compile tests
15133 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
15135 # Code to be used in simple link tests
15136 lt_simple_link_test_code=" program t\n end\n"
15138 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15140 # If no C compiler was specified, use CC.
15141 LTCC=${LTCC-"$CC"}
15143 # If no C compiler flags were specified, use CFLAGS.
15144 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15146 # Allow CC to be a program name with arguments.
15147 compiler=$CC
15150 # save warnings/boilerplate of simple test code
15151 ac_outfile=conftest.$ac_objext
15152 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
15153 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15154 _lt_compiler_boilerplate=`cat conftest.err`
15155 $rm conftest*
15157 ac_outfile=conftest.$ac_objext
15158 printf "$lt_simple_link_test_code" >conftest.$ac_ext
15159 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15160 _lt_linker_boilerplate=`cat conftest.err`
15161 $rm conftest*
15164 # Allow CC to be a program name with arguments.
15165 lt_save_CC="$CC"
15166 CC=${F77-"f77"}
15167 compiler=$CC
15168 compiler_F77=$CC
15169 for cc_temp in $compiler""; do
15170 case $cc_temp in
15171 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15172 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15173 \-*) ;;
15174 *) break;;
15175 esac
15176 done
15177 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15180 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
15181 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
15182 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
15183 echo "${ECHO_T}$can_build_shared" >&6; }
15185 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
15186 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
15187 test "$can_build_shared" = "no" && enable_shared=no
15189 # On AIX, shared libraries and static libraries use the same namespace, and
15190 # are all built from PIC.
15191 case $host_os in
15192 aix3*)
15193 test "$enable_shared" = yes && enable_static=no
15194 if test -n "$RANLIB"; then
15195 archive_cmds="$archive_cmds~\$RANLIB \$lib"
15196 postinstall_cmds='$RANLIB $lib'
15199 aix4* | aix5*)
15200 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
15201 test "$enable_shared" = yes && enable_static=no
15204 esac
15205 { echo "$as_me:$LINENO: result: $enable_shared" >&5
15206 echo "${ECHO_T}$enable_shared" >&6; }
15208 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
15209 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
15210 # Make sure either enable_shared or enable_static is yes.
15211 test "$enable_shared" = yes || enable_static=yes
15212 { echo "$as_me:$LINENO: result: $enable_static" >&5
15213 echo "${ECHO_T}$enable_static" >&6; }
15215 GCC_F77="$G77"
15216 LD_F77="$LD"
15218 lt_prog_compiler_wl_F77=
15219 lt_prog_compiler_pic_F77=
15220 lt_prog_compiler_static_F77=
15222 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15223 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
15225 if test "$GCC" = yes; then
15226 lt_prog_compiler_wl_F77='-Wl,'
15227 lt_prog_compiler_static_F77='-static'
15229 case $host_os in
15230 aix*)
15231 # All AIX code is PIC.
15232 if test "$host_cpu" = ia64; then
15233 # AIX 5 now supports IA64 processor
15234 lt_prog_compiler_static_F77='-Bstatic'
15238 amigaos*)
15239 # FIXME: we need at least 68020 code to build shared libraries, but
15240 # adding the `-m68020' flag to GCC prevents building anything better,
15241 # like `-m68040'.
15242 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
15245 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15246 # PIC is the default for these OSes.
15249 mingw* | pw32* | os2*)
15250 # This hack is so that the source file can tell whether it is being
15251 # built for inclusion in a dll (and should export symbols for example).
15252 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
15255 darwin* | rhapsody*)
15256 # PIC is the default on this platform
15257 # Common symbols not allowed in MH_DYLIB files
15258 lt_prog_compiler_pic_F77='-fno-common'
15261 interix3*)
15262 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15263 # Instead, we relocate shared libraries at runtime.
15266 msdosdjgpp*)
15267 # Just because we use GCC doesn't mean we suddenly get shared libraries
15268 # on systems that don't support them.
15269 lt_prog_compiler_can_build_shared_F77=no
15270 enable_shared=no
15273 sysv4*MP*)
15274 if test -d /usr/nec; then
15275 lt_prog_compiler_pic_F77=-Kconform_pic
15279 hpux*)
15280 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15281 # not for PA HP-UX.
15282 case $host_cpu in
15283 hppa*64*|ia64*)
15284 # +Z the default
15287 lt_prog_compiler_pic_F77='-fPIC'
15289 esac
15293 lt_prog_compiler_pic_F77='-fPIC'
15295 esac
15296 else
15297 # PORTME Check for flag to pass linker flags through the system compiler.
15298 case $host_os in
15299 aix*)
15300 lt_prog_compiler_wl_F77='-Wl,'
15301 if test "$host_cpu" = ia64; then
15302 # AIX 5 now supports IA64 processor
15303 lt_prog_compiler_static_F77='-Bstatic'
15304 else
15305 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
15308 darwin*)
15309 # PIC is the default on this platform
15310 # Common symbols not allowed in MH_DYLIB files
15311 case $cc_basename in
15312 xlc*)
15313 lt_prog_compiler_pic_F77='-qnocommon'
15314 lt_prog_compiler_wl_F77='-Wl,'
15316 esac
15319 mingw* | pw32* | os2*)
15320 # This hack is so that the source file can tell whether it is being
15321 # built for inclusion in a dll (and should export symbols for example).
15322 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
15325 hpux9* | hpux10* | hpux11*)
15326 lt_prog_compiler_wl_F77='-Wl,'
15327 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15328 # not for PA HP-UX.
15329 case $host_cpu in
15330 hppa*64*|ia64*)
15331 # +Z the default
15334 lt_prog_compiler_pic_F77='+Z'
15336 esac
15337 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15338 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
15341 irix5* | irix6* | nonstopux*)
15342 lt_prog_compiler_wl_F77='-Wl,'
15343 # PIC (with -KPIC) is the default.
15344 lt_prog_compiler_static_F77='-non_shared'
15347 newsos6)
15348 lt_prog_compiler_pic_F77='-KPIC'
15349 lt_prog_compiler_static_F77='-Bstatic'
15352 linux*)
15353 case $cc_basename in
15354 icc* | ecc*)
15355 lt_prog_compiler_wl_F77='-Wl,'
15356 lt_prog_compiler_pic_F77='-KPIC'
15357 lt_prog_compiler_static_F77='-static'
15359 pgcc* | pgf77* | pgf90* | pgf95*)
15360 # Portland Group compilers (*not* the Pentium gcc compiler,
15361 # which looks to be a dead project)
15362 lt_prog_compiler_wl_F77='-Wl,'
15363 lt_prog_compiler_pic_F77='-fpic'
15364 lt_prog_compiler_static_F77='-Bstatic'
15366 ccc*)
15367 lt_prog_compiler_wl_F77='-Wl,'
15368 # All Alpha code is PIC.
15369 lt_prog_compiler_static_F77='-non_shared'
15371 esac
15374 osf3* | osf4* | osf5*)
15375 lt_prog_compiler_wl_F77='-Wl,'
15376 # All OSF/1 code is PIC.
15377 lt_prog_compiler_static_F77='-non_shared'
15380 solaris*)
15381 lt_prog_compiler_pic_F77='-KPIC'
15382 lt_prog_compiler_static_F77='-Bstatic'
15383 case $cc_basename in
15384 f77* | f90* | f95*)
15385 lt_prog_compiler_wl_F77='-Qoption ld ';;
15387 lt_prog_compiler_wl_F77='-Wl,';;
15388 esac
15391 sunos4*)
15392 lt_prog_compiler_wl_F77='-Qoption ld '
15393 lt_prog_compiler_pic_F77='-PIC'
15394 lt_prog_compiler_static_F77='-Bstatic'
15397 sysv4 | sysv4.2uw2* | sysv4.3*)
15398 lt_prog_compiler_wl_F77='-Wl,'
15399 lt_prog_compiler_pic_F77='-KPIC'
15400 lt_prog_compiler_static_F77='-Bstatic'
15403 sysv4*MP*)
15404 if test -d /usr/nec ;then
15405 lt_prog_compiler_pic_F77='-Kconform_pic'
15406 lt_prog_compiler_static_F77='-Bstatic'
15410 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15411 lt_prog_compiler_wl_F77='-Wl,'
15412 lt_prog_compiler_pic_F77='-KPIC'
15413 lt_prog_compiler_static_F77='-Bstatic'
15416 unicos*)
15417 lt_prog_compiler_wl_F77='-Wl,'
15418 lt_prog_compiler_can_build_shared_F77=no
15421 uts4*)
15422 lt_prog_compiler_pic_F77='-pic'
15423 lt_prog_compiler_static_F77='-Bstatic'
15427 lt_prog_compiler_can_build_shared_F77=no
15429 esac
15432 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
15433 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
15436 # Check to make sure the PIC flag actually works.
15438 if test -n "$lt_prog_compiler_pic_F77"; then
15440 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
15441 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
15442 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
15443 echo $ECHO_N "(cached) $ECHO_C" >&6
15444 else
15445 lt_prog_compiler_pic_works_F77=no
15446 ac_outfile=conftest.$ac_objext
15447 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15448 lt_compiler_flag="$lt_prog_compiler_pic_F77"
15449 # Insert the option either (1) after the last *FLAGS variable, or
15450 # (2) before a word containing "conftest.", or (3) at the end.
15451 # Note that $ac_compile itself does not contain backslashes and begins
15452 # with a dollar sign (not a hyphen), so the echo should work correctly.
15453 # The option is referenced via a variable to avoid confusing sed.
15454 lt_compile=`echo "$ac_compile" | $SED \
15455 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15456 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15457 -e 's:$: $lt_compiler_flag:'`
15458 (eval echo "\"\$as_me:15458: $lt_compile\"" >&5)
15459 (eval "$lt_compile" 2>conftest.err)
15460 ac_status=$?
15461 cat conftest.err >&5
15462 echo "$as_me:15462: \$? = $ac_status" >&5
15463 if (exit $ac_status) && test -s "$ac_outfile"; then
15464 # The compiler can only warn and ignore the option if not recognized
15465 # So say no if there are warnings other than the usual output.
15466 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
15467 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15468 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15469 lt_prog_compiler_pic_works_F77=yes
15472 $rm conftest*
15475 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
15476 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
15478 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
15479 case $lt_prog_compiler_pic_F77 in
15480 "" | " "*) ;;
15481 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
15482 esac
15483 else
15484 lt_prog_compiler_pic_F77=
15485 lt_prog_compiler_can_build_shared_F77=no
15489 case $host_os in
15490 # For platforms which do not support PIC, -DPIC is meaningless:
15491 *djgpp*)
15492 lt_prog_compiler_pic_F77=
15495 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
15497 esac
15500 # Check to make sure the static flag actually works.
15502 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
15503 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15504 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
15505 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
15506 echo $ECHO_N "(cached) $ECHO_C" >&6
15507 else
15508 lt_prog_compiler_static_works_F77=no
15509 save_LDFLAGS="$LDFLAGS"
15510 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15511 printf "$lt_simple_link_test_code" > conftest.$ac_ext
15512 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15513 # The linker can only warn and ignore the option if not recognized
15514 # So say no if there are warnings
15515 if test -s conftest.err; then
15516 # Append any errors to the config.log.
15517 cat conftest.err 1>&5
15518 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
15519 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15520 if diff conftest.exp conftest.er2 >/dev/null; then
15521 lt_prog_compiler_static_works_F77=yes
15523 else
15524 lt_prog_compiler_static_works_F77=yes
15527 $rm conftest*
15528 LDFLAGS="$save_LDFLAGS"
15531 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
15532 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
15534 if test x"$lt_prog_compiler_static_works_F77" = xyes; then
15536 else
15537 lt_prog_compiler_static_F77=
15541 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15542 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
15543 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
15544 echo $ECHO_N "(cached) $ECHO_C" >&6
15545 else
15546 lt_cv_prog_compiler_c_o_F77=no
15547 $rm -r conftest 2>/dev/null
15548 mkdir conftest
15549 cd conftest
15550 mkdir out
15551 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15553 lt_compiler_flag="-o out/conftest2.$ac_objext"
15554 # Insert the option either (1) after the last *FLAGS variable, or
15555 # (2) before a word containing "conftest.", or (3) at the end.
15556 # Note that $ac_compile itself does not contain backslashes and begins
15557 # with a dollar sign (not a hyphen), so the echo should work correctly.
15558 lt_compile=`echo "$ac_compile" | $SED \
15559 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15560 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15561 -e 's:$: $lt_compiler_flag:'`
15562 (eval echo "\"\$as_me:15562: $lt_compile\"" >&5)
15563 (eval "$lt_compile" 2>out/conftest.err)
15564 ac_status=$?
15565 cat out/conftest.err >&5
15566 echo "$as_me:15566: \$? = $ac_status" >&5
15567 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15568 then
15569 # The compiler can only warn and ignore the option if not recognized
15570 # So say no if there are warnings
15571 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
15572 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15573 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15574 lt_cv_prog_compiler_c_o_F77=yes
15577 chmod u+w . 2>&5
15578 $rm conftest*
15579 # SGI C++ compiler will create directory out/ii_files/ for
15580 # template instantiation
15581 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15582 $rm out/* && rmdir out
15583 cd ..
15584 rmdir conftest
15585 $rm conftest*
15588 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
15589 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
15592 hard_links="nottested"
15593 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
15594 # do not overwrite the value of need_locks provided by the user
15595 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15596 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
15597 hard_links=yes
15598 $rm conftest*
15599 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15600 touch conftest.a
15601 ln conftest.a conftest.b 2>&5 || hard_links=no
15602 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15603 { echo "$as_me:$LINENO: result: $hard_links" >&5
15604 echo "${ECHO_T}$hard_links" >&6; }
15605 if test "$hard_links" = no; then
15606 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15607 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15608 need_locks=warn
15610 else
15611 need_locks=no
15614 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15615 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
15617 runpath_var=
15618 allow_undefined_flag_F77=
15619 enable_shared_with_static_runtimes_F77=no
15620 archive_cmds_F77=
15621 archive_expsym_cmds_F77=
15622 old_archive_From_new_cmds_F77=
15623 old_archive_from_expsyms_cmds_F77=
15624 export_dynamic_flag_spec_F77=
15625 whole_archive_flag_spec_F77=
15626 thread_safe_flag_spec_F77=
15627 hardcode_libdir_flag_spec_F77=
15628 hardcode_libdir_flag_spec_ld_F77=
15629 hardcode_libdir_separator_F77=
15630 hardcode_direct_F77=no
15631 hardcode_minus_L_F77=no
15632 hardcode_shlibpath_var_F77=unsupported
15633 link_all_deplibs_F77=unknown
15634 hardcode_automatic_F77=no
15635 module_cmds_F77=
15636 module_expsym_cmds_F77=
15637 always_export_symbols_F77=no
15638 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15639 # include_expsyms should be a list of space-separated symbols to be *always*
15640 # included in the symbol list
15641 include_expsyms_F77=
15642 # exclude_expsyms can be an extended regexp of symbols to exclude
15643 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15644 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15645 # as well as any symbol that contains `d'.
15646 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
15647 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15648 # platforms (ab)use it in PIC code, but their linkers get confused if
15649 # the symbol is explicitly referenced. Since portable code cannot
15650 # rely on this symbol name, it's probably fine to never include it in
15651 # preloaded symbol tables.
15652 extract_expsyms_cmds=
15653 # Just being paranoid about ensuring that cc_basename is set.
15654 for cc_temp in $compiler""; do
15655 case $cc_temp in
15656 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15657 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15658 \-*) ;;
15659 *) break;;
15660 esac
15661 done
15662 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15664 case $host_os in
15665 cygwin* | mingw* | pw32*)
15666 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15667 # When not using gcc, we currently assume that we are using
15668 # Microsoft Visual C++.
15669 if test "$GCC" != yes; then
15670 with_gnu_ld=no
15673 interix*)
15674 # we just hope/assume this is gcc and not c89 (= MSVC++)
15675 with_gnu_ld=yes
15677 openbsd*)
15678 with_gnu_ld=no
15680 esac
15682 ld_shlibs_F77=yes
15683 if test "$with_gnu_ld" = yes; then
15684 # If archive_cmds runs LD, not CC, wlarc should be empty
15685 wlarc='${wl}'
15687 # Set some defaults for GNU ld with shared library support. These
15688 # are reset later if shared libraries are not supported. Putting them
15689 # here allows them to be overridden if necessary.
15690 runpath_var=LD_RUN_PATH
15691 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
15692 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
15693 # ancient GNU ld didn't support --whole-archive et. al.
15694 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15695 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15696 else
15697 whole_archive_flag_spec_F77=
15699 supports_anon_versioning=no
15700 case `$LD -v 2>/dev/null` in
15701 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15702 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15703 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15704 *\ 2.11.*) ;; # other 2.11 versions
15705 *) supports_anon_versioning=yes ;;
15706 esac
15708 # See if GNU ld supports shared libraries.
15709 case $host_os in
15710 aix3* | aix4* | aix5*)
15711 # On AIX/PPC, the GNU linker is very broken
15712 if test "$host_cpu" != ia64; then
15713 ld_shlibs_F77=no
15714 cat <<EOF 1>&2
15716 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
15717 *** to be unable to reliably create shared libraries on AIX.
15718 *** Therefore, libtool is disabling shared libraries support. If you
15719 *** really care for shared libraries, you may want to modify your PATH
15720 *** so that a non-GNU linker is found, and then restart.
15726 amigaos*)
15727 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)'
15728 hardcode_libdir_flag_spec_F77='-L$libdir'
15729 hardcode_minus_L_F77=yes
15731 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15732 # that the semantics of dynamic libraries on AmigaOS, at least up
15733 # to version 4, is to share data among multiple programs linked
15734 # with the same dynamic library. Since this doesn't match the
15735 # behavior of shared libraries on other platforms, we can't use
15736 # them.
15737 ld_shlibs_F77=no
15740 beos*)
15741 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15742 allow_undefined_flag_F77=unsupported
15743 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15744 # support --undefined. This deserves some investigation. FIXME
15745 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15746 else
15747 ld_shlibs_F77=no
15751 cygwin* | mingw* | pw32*)
15752 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
15753 # as there is no search path for DLLs.
15754 hardcode_libdir_flag_spec_F77='-L$libdir'
15755 allow_undefined_flag_F77=unsupported
15756 always_export_symbols_F77=no
15757 enable_shared_with_static_runtimes_F77=yes
15758 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15760 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15761 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15762 # If the export-symbols file already is a .def file (1st line
15763 # is EXPORTS), use it as is; otherwise, prepend...
15764 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15765 cp $export_symbols $output_objdir/$soname.def;
15766 else
15767 echo EXPORTS > $output_objdir/$soname.def;
15768 cat $export_symbols >> $output_objdir/$soname.def;
15770 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15771 else
15772 ld_shlibs_F77=no
15776 interix3*)
15777 hardcode_direct_F77=no
15778 hardcode_shlibpath_var_F77=no
15779 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15780 export_dynamic_flag_spec_F77='${wl}-E'
15781 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15782 # Instead, shared libraries are loaded at an image base (0x10000000 by
15783 # default) and relocated if they conflict, which is a slow very memory
15784 # consuming and fragmenting process. To avoid this, we pick a random,
15785 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15786 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
15787 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'
15788 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'
15791 linux*)
15792 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15793 tmp_addflag=
15794 case $cc_basename,$host_cpu in
15795 pgcc*) # Portland Group C compiler
15796 whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
15797 tmp_addflag=' $pic_flag'
15799 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
15800 whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
15801 tmp_addflag=' $pic_flag -Mnomain' ;;
15802 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
15803 tmp_addflag=' -i_dynamic' ;;
15804 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
15805 tmp_addflag=' -i_dynamic -nofor_main' ;;
15806 ifc* | ifort*) # Intel Fortran compiler
15807 tmp_addflag=' -nofor_main' ;;
15808 esac
15809 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15811 if test $supports_anon_versioning = yes; then
15812 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
15813 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15814 $echo "local: *; };" >> $output_objdir/$libname.ver~
15815 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15817 else
15818 ld_shlibs_F77=no
15822 netbsd*)
15823 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15824 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15825 wlarc=
15826 else
15827 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15828 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15832 solaris*)
15833 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15834 ld_shlibs_F77=no
15835 cat <<EOF 1>&2
15837 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15838 *** create shared libraries on Solaris systems. Therefore, libtool
15839 *** is disabling shared libraries support. We urge you to upgrade GNU
15840 *** binutils to release 2.9.1 or newer. Another option is to modify
15841 *** your PATH or compiler configuration so that the native linker is
15842 *** used, and then restart.
15845 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15846 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15847 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15848 else
15849 ld_shlibs_F77=no
15853 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15854 case `$LD -v 2>&1` in
15855 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15856 ld_shlibs_F77=no
15857 cat <<_LT_EOF 1>&2
15859 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15860 *** reliably create shared libraries on SCO systems. Therefore, libtool
15861 *** is disabling shared libraries support. We urge you to upgrade GNU
15862 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
15863 *** your PATH or compiler configuration so that the native linker is
15864 *** used, and then restart.
15866 _LT_EOF
15869 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15870 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
15871 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
15872 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
15873 else
15874 ld_shlibs_F77=no
15877 esac
15880 sunos4*)
15881 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15882 wlarc=
15883 hardcode_direct_F77=yes
15884 hardcode_shlibpath_var_F77=no
15888 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15889 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15890 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15891 else
15892 ld_shlibs_F77=no
15895 esac
15897 if test "$ld_shlibs_F77" = no; then
15898 runpath_var=
15899 hardcode_libdir_flag_spec_F77=
15900 export_dynamic_flag_spec_F77=
15901 whole_archive_flag_spec_F77=
15903 else
15904 # PORTME fill in a description of your system's linker (not GNU ld)
15905 case $host_os in
15906 aix3*)
15907 allow_undefined_flag_F77=unsupported
15908 always_export_symbols_F77=yes
15909 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'
15910 # Note: this linker hardcodes the directories in LIBPATH if there
15911 # are no directories specified by -L.
15912 hardcode_minus_L_F77=yes
15913 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15914 # Neither direct hardcoding nor static linking is supported with a
15915 # broken collect2.
15916 hardcode_direct_F77=unsupported
15920 aix4* | aix5*)
15921 if test "$host_cpu" = ia64; then
15922 # On IA64, the linker does run time linking by default, so we don't
15923 # have to do anything special.
15924 aix_use_runtimelinking=no
15925 exp_sym_flag='-Bexport'
15926 no_entry_flag=""
15927 else
15928 # If we're using GNU nm, then we don't want the "-C" option.
15929 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15930 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15931 export_symbols_cmds_F77='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
15932 else
15933 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'
15935 aix_use_runtimelinking=no
15937 # Test if we are trying to use run time linking or normal
15938 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15939 # need to do runtime linking.
15940 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15941 for ld_flag in $LDFLAGS; do
15942 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15943 aix_use_runtimelinking=yes
15944 break
15946 done
15948 esac
15950 exp_sym_flag='-bexport'
15951 no_entry_flag='-bnoentry'
15954 # When large executables or shared objects are built, AIX ld can
15955 # have problems creating the table of contents. If linking a library
15956 # or program results in "error TOC overflow" add -mminimal-toc to
15957 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15958 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15960 archive_cmds_F77=''
15961 hardcode_direct_F77=yes
15962 hardcode_libdir_separator_F77=':'
15963 link_all_deplibs_F77=yes
15965 if test "$GCC" = yes; then
15966 case $host_os in aix4.[012]|aix4.[012].*)
15967 # We only want to do this on AIX 4.2 and lower, the check
15968 # below for broken collect2 doesn't work under 4.3+
15969 collect2name=`${CC} -print-prog-name=collect2`
15970 if test -f "$collect2name" && \
15971 strings "$collect2name" | grep resolve_lib_name >/dev/null
15972 then
15973 # We have reworked collect2
15974 hardcode_direct_F77=yes
15975 else
15976 # We have old collect2
15977 hardcode_direct_F77=unsupported
15978 # It fails to find uninstalled libraries when the uninstalled
15979 # path is not listed in the libpath. Setting hardcode_minus_L
15980 # to unsupported forces relinking
15981 hardcode_minus_L_F77=yes
15982 hardcode_libdir_flag_spec_F77='-L$libdir'
15983 hardcode_libdir_separator_F77=
15986 esac
15987 shared_flag='-shared'
15988 if test "$aix_use_runtimelinking" = yes; then
15989 shared_flag="$shared_flag "'${wl}-G'
15991 else
15992 # not using gcc
15993 if test "$host_cpu" = ia64; then
15994 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15995 # chokes on -Wl,-G. The following line is correct:
15996 shared_flag='-G'
15997 else
15998 if test "$aix_use_runtimelinking" = yes; then
15999 shared_flag='${wl}-G'
16000 else
16001 shared_flag='${wl}-bM:SRE'
16006 # It seems that -bexpall does not export symbols beginning with
16007 # underscore (_), so it is better to generate a list of symbols to export.
16008 always_export_symbols_F77=yes
16009 if test "$aix_use_runtimelinking" = yes; then
16010 # Warning - without using the other runtime loading flags (-brtl),
16011 # -berok will link without error, but may produce a broken library.
16012 allow_undefined_flag_F77='-berok'
16013 # Determine the default libpath from the value encoded in an empty executable.
16014 cat >conftest.$ac_ext <<_ACEOF
16015 program main
16018 _ACEOF
16019 rm -f conftest.$ac_objext conftest$ac_exeext
16020 if { (ac_try="$ac_link"
16021 case "(($ac_try" in
16022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16023 *) ac_try_echo=$ac_try;;
16024 esac
16025 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16026 (eval "$ac_link") 2>conftest.er1
16027 ac_status=$?
16028 grep -v '^ *+' conftest.er1 >conftest.err
16029 rm -f conftest.er1
16030 cat conftest.err >&5
16031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16032 (exit $ac_status); } &&
16033 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
16034 { (case "(($ac_try" in
16035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16036 *) ac_try_echo=$ac_try;;
16037 esac
16038 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16039 (eval "$ac_try") 2>&5
16040 ac_status=$?
16041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16042 (exit $ac_status); }; } &&
16043 { ac_try='test -s conftest$ac_exeext'
16044 { (case "(($ac_try" in
16045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16046 *) ac_try_echo=$ac_try;;
16047 esac
16048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16049 (eval "$ac_try") 2>&5
16050 ac_status=$?
16051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16052 (exit $ac_status); }; }; then
16054 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16056 # Check for a 64-bit object if we didn't find anything.
16057 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16058 }'`; fi
16059 else
16060 echo "$as_me: failed program was:" >&5
16061 sed 's/^/| /' conftest.$ac_ext >&5
16066 rm -f core conftest.err conftest.$ac_objext \
16067 conftest$ac_exeext conftest.$ac_ext
16068 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16070 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
16071 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 echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
16072 else
16073 if test "$host_cpu" = ia64; then
16074 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
16075 allow_undefined_flag_F77="-z nodefs"
16076 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"
16077 else
16078 # Determine the default libpath from the value encoded in an empty executable.
16079 cat >conftest.$ac_ext <<_ACEOF
16080 program main
16083 _ACEOF
16084 rm -f conftest.$ac_objext conftest$ac_exeext
16085 if { (ac_try="$ac_link"
16086 case "(($ac_try" in
16087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16088 *) ac_try_echo=$ac_try;;
16089 esac
16090 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16091 (eval "$ac_link") 2>conftest.er1
16092 ac_status=$?
16093 grep -v '^ *+' conftest.er1 >conftest.err
16094 rm -f conftest.er1
16095 cat conftest.err >&5
16096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16097 (exit $ac_status); } &&
16098 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
16099 { (case "(($ac_try" in
16100 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16101 *) ac_try_echo=$ac_try;;
16102 esac
16103 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16104 (eval "$ac_try") 2>&5
16105 ac_status=$?
16106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16107 (exit $ac_status); }; } &&
16108 { ac_try='test -s conftest$ac_exeext'
16109 { (case "(($ac_try" in
16110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16111 *) ac_try_echo=$ac_try;;
16112 esac
16113 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16114 (eval "$ac_try") 2>&5
16115 ac_status=$?
16116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16117 (exit $ac_status); }; }; then
16119 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16121 # Check for a 64-bit object if we didn't find anything.
16122 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16123 }'`; fi
16124 else
16125 echo "$as_me: failed program was:" >&5
16126 sed 's/^/| /' conftest.$ac_ext >&5
16131 rm -f core conftest.err conftest.$ac_objext \
16132 conftest$ac_exeext conftest.$ac_ext
16133 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16135 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
16136 # Warning - without using the other run time loading flags,
16137 # -berok will link without error, but may produce a broken library.
16138 no_undefined_flag_F77=' ${wl}-bernotok'
16139 allow_undefined_flag_F77=' ${wl}-berok'
16140 # Exported symbols can be pulled into shared objects from archives
16141 whole_archive_flag_spec_F77='$convenience'
16142 archive_cmds_need_lc_F77=yes
16143 # This is similar to how AIX traditionally builds its shared libraries.
16144 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'
16149 amigaos*)
16150 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)'
16151 hardcode_libdir_flag_spec_F77='-L$libdir'
16152 hardcode_minus_L_F77=yes
16153 # see comment about different semantics on the GNU ld section
16154 ld_shlibs_F77=no
16157 bsdi[45]*)
16158 export_dynamic_flag_spec_F77=-rdynamic
16161 cygwin* | mingw* | pw32*)
16162 # When not using gcc, we currently assume that we are using
16163 # Microsoft Visual C++.
16164 # hardcode_libdir_flag_spec is actually meaningless, as there is
16165 # no search path for DLLs.
16166 hardcode_libdir_flag_spec_F77=' '
16167 allow_undefined_flag_F77=unsupported
16168 # Tell ltmain to make .lib files, not .a files.
16169 libext=lib
16170 # Tell ltmain to make .dll files, not .so files.
16171 shrext_cmds=".dll"
16172 # FIXME: Setting linknames here is a bad hack.
16173 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
16174 # The linker will automatically build a .lib file if we build a DLL.
16175 old_archive_From_new_cmds_F77='true'
16176 # FIXME: Should let the user specify the lib program.
16177 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
16178 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
16179 enable_shared_with_static_runtimes_F77=yes
16182 darwin* | rhapsody*)
16183 case $host_os in
16184 rhapsody* | darwin1.[012])
16185 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
16187 *) # Darwin 1.3 on
16188 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16189 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16190 else
16191 case ${MACOSX_DEPLOYMENT_TARGET} in
16192 10.[012])
16193 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16195 10.*)
16196 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
16198 esac
16201 esac
16202 archive_cmds_need_lc_F77=no
16203 hardcode_direct_F77=no
16204 hardcode_automatic_F77=yes
16205 hardcode_shlibpath_var_F77=unsupported
16206 whole_archive_flag_spec_F77=''
16207 link_all_deplibs_F77=yes
16208 if test "$GCC" = yes ; then
16209 output_verbose_link_cmd='echo'
16210 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16211 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16212 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16213 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16214 module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16215 else
16216 case $cc_basename in
16217 xlc*)
16218 output_verbose_link_cmd='echo'
16219 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
16220 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16221 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16222 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16223 module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16226 ld_shlibs_F77=no
16228 esac
16232 dgux*)
16233 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16234 hardcode_libdir_flag_spec_F77='-L$libdir'
16235 hardcode_shlibpath_var_F77=no
16238 freebsd1*)
16239 ld_shlibs_F77=no
16242 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16243 # support. Future versions do this automatically, but an explicit c++rt0.o
16244 # does not break anything, and helps significantly (at the cost of a little
16245 # extra space).
16246 freebsd2.2*)
16247 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16248 hardcode_libdir_flag_spec_F77='-R$libdir'
16249 hardcode_direct_F77=yes
16250 hardcode_shlibpath_var_F77=no
16253 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16254 freebsd2*)
16255 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16256 hardcode_direct_F77=yes
16257 hardcode_minus_L_F77=yes
16258 hardcode_shlibpath_var_F77=no
16261 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16262 freebsd* | kfreebsd*-gnu | dragonfly*)
16263 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16264 hardcode_libdir_flag_spec_F77='-R$libdir'
16265 hardcode_direct_F77=yes
16266 hardcode_shlibpath_var_F77=no
16269 hpux9*)
16270 if test "$GCC" = yes; then
16271 archive_cmds_F77='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
16272 else
16273 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'
16275 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
16276 hardcode_libdir_separator_F77=:
16277 hardcode_direct_F77=yes
16279 # hardcode_minus_L: Not really in the search PATH,
16280 # but as the default location of the library.
16281 hardcode_minus_L_F77=yes
16282 export_dynamic_flag_spec_F77='${wl}-E'
16285 hpux10*)
16286 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16287 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16288 else
16289 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16291 if test "$with_gnu_ld" = no; then
16292 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
16293 hardcode_libdir_separator_F77=:
16295 hardcode_direct_F77=yes
16296 export_dynamic_flag_spec_F77='${wl}-E'
16298 # hardcode_minus_L: Not really in the search PATH,
16299 # but as the default location of the library.
16300 hardcode_minus_L_F77=yes
16304 hpux11*)
16305 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16306 case $host_cpu in
16307 hppa*64*)
16308 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16310 ia64*)
16311 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16314 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16316 esac
16317 else
16318 case $host_cpu in
16319 hppa*64*)
16320 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16322 ia64*)
16323 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16326 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16328 esac
16330 if test "$with_gnu_ld" = no; then
16331 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
16332 hardcode_libdir_separator_F77=:
16334 case $host_cpu in
16335 hppa*64*|ia64*)
16336 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
16337 hardcode_direct_F77=no
16338 hardcode_shlibpath_var_F77=no
16341 hardcode_direct_F77=yes
16342 export_dynamic_flag_spec_F77='${wl}-E'
16344 # hardcode_minus_L: Not really in the search PATH,
16345 # but as the default location of the library.
16346 hardcode_minus_L_F77=yes
16348 esac
16352 irix5* | irix6* | nonstopux*)
16353 if test "$GCC" = yes; then
16354 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
16355 else
16356 archive_cmds_F77='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
16357 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
16359 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16360 hardcode_libdir_separator_F77=:
16361 link_all_deplibs_F77=yes
16364 netbsd*)
16365 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16366 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16367 else
16368 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16370 hardcode_libdir_flag_spec_F77='-R$libdir'
16371 hardcode_direct_F77=yes
16372 hardcode_shlibpath_var_F77=no
16375 newsos6)
16376 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16377 hardcode_direct_F77=yes
16378 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16379 hardcode_libdir_separator_F77=:
16380 hardcode_shlibpath_var_F77=no
16383 openbsd*)
16384 hardcode_direct_F77=yes
16385 hardcode_shlibpath_var_F77=no
16386 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16387 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16388 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16389 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
16390 export_dynamic_flag_spec_F77='${wl}-E'
16391 else
16392 case $host_os in
16393 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16394 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16395 hardcode_libdir_flag_spec_F77='-R$libdir'
16398 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16399 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
16401 esac
16405 os2*)
16406 hardcode_libdir_flag_spec_F77='-L$libdir'
16407 hardcode_minus_L_F77=yes
16408 allow_undefined_flag_F77=unsupported
16409 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'
16410 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16413 osf3*)
16414 if test "$GCC" = yes; then
16415 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
16416 archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
16417 else
16418 allow_undefined_flag_F77=' -expect_unresolved \*'
16419 archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
16421 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16422 hardcode_libdir_separator_F77=:
16425 osf4* | osf5*) # as osf3* with the addition of -msym flag
16426 if test "$GCC" = yes; then
16427 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
16428 archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
16429 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16430 else
16431 allow_undefined_flag_F77=' -expect_unresolved \*'
16432 archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
16433 archive_expsym_cmds_F77='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
16434 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
16436 # Both c and cxx compiler support -rpath directly
16437 hardcode_libdir_flag_spec_F77='-rpath $libdir'
16439 hardcode_libdir_separator_F77=:
16442 solaris*)
16443 no_undefined_flag_F77=' -z text'
16444 if test "$GCC" = yes; then
16445 wlarc='${wl}'
16446 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16447 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16448 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16449 else
16450 wlarc=''
16451 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16452 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16453 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16455 hardcode_libdir_flag_spec_F77='-R$libdir'
16456 hardcode_shlibpath_var_F77=no
16457 case $host_os in
16458 solaris2.[0-5] | solaris2.[0-5].*) ;;
16460 # The compiler driver will combine linker options so we
16461 # cannot just pass the convience library names through
16462 # without $wl, iff we do not link with $LD.
16463 # Luckily, gcc supports the same syntax we need for Sun Studio.
16464 # Supported since Solaris 2.6 (maybe 2.5.1?)
16465 case $wlarc in
16467 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
16469 whole_archive_flag_spec_F77='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
16470 esac ;;
16471 esac
16472 link_all_deplibs_F77=yes
16475 sunos4*)
16476 if test "x$host_vendor" = xsequent; then
16477 # Use $CC to link under sequent, because it throws in some extra .o
16478 # files that make .init and .fini sections work.
16479 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16480 else
16481 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16483 hardcode_libdir_flag_spec_F77='-L$libdir'
16484 hardcode_direct_F77=yes
16485 hardcode_minus_L_F77=yes
16486 hardcode_shlibpath_var_F77=no
16489 sysv4)
16490 case $host_vendor in
16491 sni)
16492 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16493 hardcode_direct_F77=yes # is this really true???
16495 siemens)
16496 ## LD is ld it makes a PLAMLIB
16497 ## CC just makes a GrossModule.
16498 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16499 reload_cmds_F77='$CC -r -o $output$reload_objs'
16500 hardcode_direct_F77=no
16502 motorola)
16503 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16504 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
16506 esac
16507 runpath_var='LD_RUN_PATH'
16508 hardcode_shlibpath_var_F77=no
16511 sysv4.3*)
16512 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16513 hardcode_shlibpath_var_F77=no
16514 export_dynamic_flag_spec_F77='-Bexport'
16517 sysv4*MP*)
16518 if test -d /usr/nec; then
16519 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16520 hardcode_shlibpath_var_F77=no
16521 runpath_var=LD_RUN_PATH
16522 hardcode_runpath_var=yes
16523 ld_shlibs_F77=yes
16527 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
16528 no_undefined_flag_F77='${wl}-z,text'
16529 archive_cmds_need_lc_F77=no
16530 hardcode_shlibpath_var_F77=no
16531 runpath_var='LD_RUN_PATH'
16533 if test "$GCC" = yes; then
16534 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16535 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16536 else
16537 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16538 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16542 sysv5* | sco3.2v5* | sco5v6*)
16543 # Note: We can NOT use -z defs as we might desire, because we do not
16544 # link with -lc, and that would cause any symbols used from libc to
16545 # always be unresolved, which means just about no library would
16546 # ever link correctly. If we're not using GNU ld we use -z text
16547 # though, which does catch some bad symbols but isn't as heavy-handed
16548 # as -z defs.
16549 no_undefined_flag_F77='${wl}-z,text'
16550 allow_undefined_flag_F77='${wl}-z,nodefs'
16551 archive_cmds_need_lc_F77=no
16552 hardcode_shlibpath_var_F77=no
16553 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
16554 hardcode_libdir_separator_F77=':'
16555 link_all_deplibs_F77=yes
16556 export_dynamic_flag_spec_F77='${wl}-Bexport'
16557 runpath_var='LD_RUN_PATH'
16559 if test "$GCC" = yes; then
16560 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16561 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16562 else
16563 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16564 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16568 uts4*)
16569 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16570 hardcode_libdir_flag_spec_F77='-L$libdir'
16571 hardcode_shlibpath_var_F77=no
16575 ld_shlibs_F77=no
16577 esac
16580 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
16581 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
16582 test "$ld_shlibs_F77" = no && can_build_shared=no
16585 # Do we need to explicitly link libc?
16587 case "x$archive_cmds_need_lc_F77" in
16588 x|xyes)
16589 # Assume -lc should be added
16590 archive_cmds_need_lc_F77=yes
16592 if test "$enable_shared" = yes && test "$GCC" = yes; then
16593 case $archive_cmds_F77 in
16594 *'~'*)
16595 # FIXME: we may have to deal with multi-command sequences.
16597 '$CC '*)
16598 # Test whether the compiler implicitly links with -lc since on some
16599 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16600 # to ld, don't add -lc before -lgcc.
16601 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16602 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
16603 $rm conftest*
16604 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16606 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16607 (eval $ac_compile) 2>&5
16608 ac_status=$?
16609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16610 (exit $ac_status); } 2>conftest.err; then
16611 soname=conftest
16612 lib=conftest
16613 libobjs=conftest.$ac_objext
16614 deplibs=
16615 wl=$lt_prog_compiler_wl_F77
16616 pic_flag=$lt_prog_compiler_pic_F77
16617 compiler_flags=-v
16618 linker_flags=-v
16619 verstring=
16620 output_objdir=.
16621 libname=conftest
16622 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
16623 allow_undefined_flag_F77=
16624 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16625 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16626 ac_status=$?
16627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16628 (exit $ac_status); }
16629 then
16630 archive_cmds_need_lc_F77=no
16631 else
16632 archive_cmds_need_lc_F77=yes
16634 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
16635 else
16636 cat conftest.err 1>&5
16638 $rm conftest*
16639 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
16640 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
16642 esac
16645 esac
16647 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16648 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
16649 library_names_spec=
16650 libname_spec='lib$name'
16651 soname_spec=
16652 shrext_cmds=".so"
16653 postinstall_cmds=
16654 postuninstall_cmds=
16655 finish_cmds=
16656 finish_eval=
16657 shlibpath_var=
16658 shlibpath_overrides_runpath=unknown
16659 version_type=none
16660 dynamic_linker="$host_os ld.so"
16661 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16662 if test "$GCC" = yes; then
16663 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16664 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16665 # if the path contains ";" then we assume it to be the separator
16666 # otherwise default to the standard path separator (i.e. ":") - it is
16667 # assumed that no part of a normal pathname contains ";" but that should
16668 # okay in the real world where ";" in dirpaths is itself problematic.
16669 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16670 else
16671 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16673 else
16674 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16676 need_lib_prefix=unknown
16677 hardcode_into_libs=no
16679 # when you set need_version to no, make sure it does not cause -set_version
16680 # flags to be left without arguments
16681 need_version=unknown
16683 case $host_os in
16684 aix3*)
16685 version_type=linux
16686 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16687 shlibpath_var=LIBPATH
16689 # AIX 3 has no versioning support, so we append a major version to the name.
16690 soname_spec='${libname}${release}${shared_ext}$major'
16693 aix4* | aix5*)
16694 version_type=linux
16695 need_lib_prefix=no
16696 need_version=no
16697 hardcode_into_libs=yes
16698 if test "$host_cpu" = ia64; then
16699 # AIX 5 supports IA64
16700 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16701 shlibpath_var=LD_LIBRARY_PATH
16702 else
16703 # With GCC up to 2.95.x, collect2 would create an import file
16704 # for dependence libraries. The import file would start with
16705 # the line `#! .'. This would cause the generated library to
16706 # depend on `.', always an invalid library. This was fixed in
16707 # development snapshots of GCC prior to 3.0.
16708 case $host_os in
16709 aix4 | aix4.[01] | aix4.[01].*)
16710 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16711 echo ' yes '
16712 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16714 else
16715 can_build_shared=no
16718 esac
16719 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16720 # soname into executable. Probably we can add versioning support to
16721 # collect2, so additional links can be useful in future.
16722 if test "$aix_use_runtimelinking" = yes; then
16723 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16724 # instead of lib<name>.a to let people know that these are not
16725 # typical AIX shared libraries.
16726 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16727 else
16728 # We preserve .a as extension for shared libraries through AIX4.2
16729 # and later when we are not doing run time linking.
16730 library_names_spec='${libname}${release}.a $libname.a'
16731 soname_spec='${libname}${release}${shared_ext}$major'
16733 shlibpath_var=LIBPATH
16737 amigaos*)
16738 library_names_spec='$libname.ixlibrary $libname.a'
16739 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16740 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''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'
16743 beos*)
16744 library_names_spec='${libname}${shared_ext}'
16745 dynamic_linker="$host_os ld.so"
16746 shlibpath_var=LIBRARY_PATH
16749 bsdi[45]*)
16750 version_type=linux
16751 need_version=no
16752 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16753 soname_spec='${libname}${release}${shared_ext}$major'
16754 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16755 shlibpath_var=LD_LIBRARY_PATH
16756 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16757 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16758 # the default ld.so.conf also contains /usr/contrib/lib and
16759 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16760 # libtool to hard-code these into programs
16763 cygwin* | mingw* | pw32*)
16764 version_type=windows
16765 shrext_cmds=".dll"
16766 need_version=no
16767 need_lib_prefix=no
16769 case $GCC,$host_os in
16770 yes,cygwin* | yes,mingw* | yes,pw32*)
16771 library_names_spec='$libname.dll.a'
16772 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16773 postinstall_cmds='base_file=`basename \${file}`~
16774 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16775 dldir=$destdir/`dirname \$dlpath`~
16776 test -d \$dldir || mkdir -p \$dldir~
16777 $install_prog $dir/$dlname \$dldir/$dlname~
16778 chmod a+x \$dldir/$dlname'
16779 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16780 dlpath=$dir/\$dldll~
16781 $rm \$dlpath'
16782 shlibpath_overrides_runpath=yes
16784 case $host_os in
16785 cygwin*)
16786 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16787 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16788 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16790 mingw*)
16791 # MinGW DLLs use traditional 'lib' prefix
16792 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16793 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16794 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16795 # It is most probably a Windows format PATH printed by
16796 # mingw gcc, but we are running on Cygwin. Gcc prints its search
16797 # path with ; separators, and with drive letters. We can handle the
16798 # drive letters (cygwin fileutils understands them), so leave them,
16799 # especially as we might pass files found there to a mingw objdump,
16800 # which wouldn't understand a cygwinified path. Ahh.
16801 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16802 else
16803 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16806 pw32*)
16807 # pw32 DLLs use 'pw' prefix rather than 'lib'
16808 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16810 esac
16814 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16816 esac
16817 dynamic_linker='Win32 ld.exe'
16818 # FIXME: first we should search . and the directory the executable is in
16819 shlibpath_var=PATH
16822 darwin* | rhapsody*)
16823 dynamic_linker="$host_os dyld"
16824 version_type=darwin
16825 need_lib_prefix=no
16826 need_version=no
16827 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16828 soname_spec='${libname}${release}${major}$shared_ext'
16829 shlibpath_overrides_runpath=yes
16830 shlibpath_var=DYLD_LIBRARY_PATH
16831 shrext_cmds='.dylib'
16832 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16833 if test "$GCC" = yes; then
16834 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
16835 else
16836 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
16838 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16841 dgux*)
16842 version_type=linux
16843 need_lib_prefix=no
16844 need_version=no
16845 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16846 soname_spec='${libname}${release}${shared_ext}$major'
16847 shlibpath_var=LD_LIBRARY_PATH
16850 freebsd1*)
16851 dynamic_linker=no
16854 kfreebsd*-gnu)
16855 version_type=linux
16856 need_lib_prefix=no
16857 need_version=no
16858 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16859 soname_spec='${libname}${release}${shared_ext}$major'
16860 shlibpath_var=LD_LIBRARY_PATH
16861 shlibpath_overrides_runpath=no
16862 hardcode_into_libs=yes
16863 dynamic_linker='GNU ld.so'
16866 freebsd* | dragonfly*)
16867 # DragonFly does not have aout. When/if they implement a new
16868 # versioning mechanism, adjust this.
16869 if test -x /usr/bin/objformat; then
16870 objformat=`/usr/bin/objformat`
16871 else
16872 case $host_os in
16873 freebsd[123]*) objformat=aout ;;
16874 *) objformat=elf ;;
16875 esac
16877 version_type=freebsd-$objformat
16878 case $version_type in
16879 freebsd-elf*)
16880 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16881 need_version=no
16882 need_lib_prefix=no
16884 freebsd-*)
16885 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16886 need_version=yes
16888 esac
16889 shlibpath_var=LD_LIBRARY_PATH
16890 case $host_os in
16891 freebsd2*)
16892 shlibpath_overrides_runpath=yes
16894 freebsd3.[01]* | freebsdelf3.[01]*)
16895 shlibpath_overrides_runpath=yes
16896 hardcode_into_libs=yes
16898 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16899 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16900 shlibpath_overrides_runpath=no
16901 hardcode_into_libs=yes
16903 freebsd*) # from 4.6 on
16904 shlibpath_overrides_runpath=yes
16905 hardcode_into_libs=yes
16907 esac
16910 gnu*)
16911 version_type=linux
16912 need_lib_prefix=no
16913 need_version=no
16914 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16915 soname_spec='${libname}${release}${shared_ext}$major'
16916 shlibpath_var=LD_LIBRARY_PATH
16917 hardcode_into_libs=yes
16920 hpux9* | hpux10* | hpux11*)
16921 # Give a soname corresponding to the major version so that dld.sl refuses to
16922 # link against other versions.
16923 version_type=sunos
16924 need_lib_prefix=no
16925 need_version=no
16926 case $host_cpu in
16927 ia64*)
16928 shrext_cmds='.so'
16929 hardcode_into_libs=yes
16930 dynamic_linker="$host_os dld.so"
16931 shlibpath_var=LD_LIBRARY_PATH
16932 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16933 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16934 soname_spec='${libname}${release}${shared_ext}$major'
16935 if test "X$HPUX_IA64_MODE" = X32; then
16936 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16937 else
16938 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16940 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16942 hppa*64*)
16943 shrext_cmds='.sl'
16944 hardcode_into_libs=yes
16945 dynamic_linker="$host_os dld.sl"
16946 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16947 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16948 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16949 soname_spec='${libname}${release}${shared_ext}$major'
16950 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16951 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16954 shrext_cmds='.sl'
16955 dynamic_linker="$host_os dld.sl"
16956 shlibpath_var=SHLIB_PATH
16957 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16958 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16959 soname_spec='${libname}${release}${shared_ext}$major'
16961 esac
16962 # HP-UX runs *really* slowly unless shared libraries are mode 555.
16963 postinstall_cmds='chmod 555 $lib'
16966 interix3*)
16967 version_type=linux
16968 need_lib_prefix=no
16969 need_version=no
16970 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16971 soname_spec='${libname}${release}${shared_ext}$major'
16972 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16973 shlibpath_var=LD_LIBRARY_PATH
16974 shlibpath_overrides_runpath=no
16975 hardcode_into_libs=yes
16978 irix5* | irix6* | nonstopux*)
16979 case $host_os in
16980 nonstopux*) version_type=nonstopux ;;
16982 if test "$lt_cv_prog_gnu_ld" = yes; then
16983 version_type=linux
16984 else
16985 version_type=irix
16986 fi ;;
16987 esac
16988 need_lib_prefix=no
16989 need_version=no
16990 soname_spec='${libname}${release}${shared_ext}$major'
16991 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16992 case $host_os in
16993 irix5* | nonstopux*)
16994 libsuff= shlibsuff=
16997 case $LD in # libtool.m4 will add one of these switches to LD
16998 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16999 libsuff= shlibsuff= libmagic=32-bit;;
17000 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17001 libsuff=32 shlibsuff=N32 libmagic=N32;;
17002 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17003 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17004 *) libsuff= shlibsuff= libmagic=never-match;;
17005 esac
17007 esac
17008 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17009 shlibpath_overrides_runpath=no
17010 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17011 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17012 hardcode_into_libs=yes
17015 # No shared lib support for Linux oldld, aout, or coff.
17016 linux*oldld* | linux*aout* | linux*coff*)
17017 dynamic_linker=no
17020 # This must be Linux ELF.
17021 linux*)
17022 version_type=linux
17023 need_lib_prefix=no
17024 need_version=no
17025 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17026 soname_spec='${libname}${release}${shared_ext}$major'
17027 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17028 shlibpath_var=LD_LIBRARY_PATH
17029 shlibpath_overrides_runpath=no
17030 # This implies no fast_install, which is unacceptable.
17031 # Some rework will be needed to allow for fast_install
17032 # before this can be enabled.
17033 hardcode_into_libs=yes
17035 # Append ld.so.conf contents to the search path
17036 if test -f /etc/ld.so.conf; then
17037 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
17038 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17041 # We used to test for /lib/ld.so.1 and disable shared libraries on
17042 # powerpc, because MkLinux only supported shared libraries with the
17043 # GNU dynamic linker. Since this was broken with cross compilers,
17044 # most powerpc-linux boxes support dynamic linking these days and
17045 # people can always --disable-shared, the test was removed, and we
17046 # assume the GNU/Linux dynamic linker is in use.
17047 dynamic_linker='GNU/Linux ld.so'
17050 knetbsd*-gnu)
17051 version_type=linux
17052 need_lib_prefix=no
17053 need_version=no
17054 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17055 soname_spec='${libname}${release}${shared_ext}$major'
17056 shlibpath_var=LD_LIBRARY_PATH
17057 shlibpath_overrides_runpath=no
17058 hardcode_into_libs=yes
17059 dynamic_linker='GNU ld.so'
17062 netbsd*)
17063 version_type=sunos
17064 need_lib_prefix=no
17065 need_version=no
17066 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17067 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17068 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17069 dynamic_linker='NetBSD (a.out) ld.so'
17070 else
17071 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17072 soname_spec='${libname}${release}${shared_ext}$major'
17073 dynamic_linker='NetBSD ld.elf_so'
17075 shlibpath_var=LD_LIBRARY_PATH
17076 shlibpath_overrides_runpath=yes
17077 hardcode_into_libs=yes
17080 newsos6)
17081 version_type=linux
17082 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17083 shlibpath_var=LD_LIBRARY_PATH
17084 shlibpath_overrides_runpath=yes
17087 nto-qnx*)
17088 version_type=linux
17089 need_lib_prefix=no
17090 need_version=no
17091 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17092 soname_spec='${libname}${release}${shared_ext}$major'
17093 shlibpath_var=LD_LIBRARY_PATH
17094 shlibpath_overrides_runpath=yes
17097 openbsd*)
17098 version_type=sunos
17099 sys_lib_dlsearch_path_spec="/usr/lib"
17100 need_lib_prefix=no
17101 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17102 case $host_os in
17103 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
17104 *) need_version=no ;;
17105 esac
17106 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17107 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17108 shlibpath_var=LD_LIBRARY_PATH
17109 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17110 case $host_os in
17111 openbsd2.[89] | openbsd2.[89].*)
17112 shlibpath_overrides_runpath=no
17115 shlibpath_overrides_runpath=yes
17117 esac
17118 else
17119 shlibpath_overrides_runpath=yes
17123 os2*)
17124 libname_spec='$name'
17125 shrext_cmds=".dll"
17126 need_lib_prefix=no
17127 library_names_spec='$libname${shared_ext} $libname.a'
17128 dynamic_linker='OS/2 ld.exe'
17129 shlibpath_var=LIBPATH
17132 osf3* | osf4* | osf5*)
17133 version_type=osf
17134 need_lib_prefix=no
17135 need_version=no
17136 soname_spec='${libname}${release}${shared_ext}$major'
17137 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17138 shlibpath_var=LD_LIBRARY_PATH
17139 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17140 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17143 solaris*)
17144 version_type=linux
17145 need_lib_prefix=no
17146 need_version=no
17147 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17148 soname_spec='${libname}${release}${shared_ext}$major'
17149 shlibpath_var=LD_LIBRARY_PATH
17150 shlibpath_overrides_runpath=yes
17151 hardcode_into_libs=yes
17152 # ldd complains unless libraries are executable
17153 postinstall_cmds='chmod +x $lib'
17156 sunos4*)
17157 version_type=sunos
17158 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17159 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17160 shlibpath_var=LD_LIBRARY_PATH
17161 shlibpath_overrides_runpath=yes
17162 if test "$with_gnu_ld" = yes; then
17163 need_lib_prefix=no
17165 need_version=yes
17168 sysv4 | sysv4.3*)
17169 version_type=linux
17170 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17171 soname_spec='${libname}${release}${shared_ext}$major'
17172 shlibpath_var=LD_LIBRARY_PATH
17173 case $host_vendor in
17174 sni)
17175 shlibpath_overrides_runpath=no
17176 need_lib_prefix=no
17177 export_dynamic_flag_spec='${wl}-Blargedynsym'
17178 runpath_var=LD_RUN_PATH
17180 siemens)
17181 need_lib_prefix=no
17183 motorola)
17184 need_lib_prefix=no
17185 need_version=no
17186 shlibpath_overrides_runpath=no
17187 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17189 esac
17192 sysv4*MP*)
17193 if test -d /usr/nec ;then
17194 version_type=linux
17195 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17196 soname_spec='$libname${shared_ext}.$major'
17197 shlibpath_var=LD_LIBRARY_PATH
17201 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17202 version_type=freebsd-elf
17203 need_lib_prefix=no
17204 need_version=no
17205 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17206 soname_spec='${libname}${release}${shared_ext}$major'
17207 shlibpath_var=LD_LIBRARY_PATH
17208 hardcode_into_libs=yes
17209 if test "$with_gnu_ld" = yes; then
17210 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17211 shlibpath_overrides_runpath=no
17212 else
17213 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17214 shlibpath_overrides_runpath=yes
17215 case $host_os in
17216 sco3.2v5*)
17217 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17219 esac
17221 sys_lib_dlsearch_path_spec='/usr/lib'
17224 uts4*)
17225 version_type=linux
17226 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17227 soname_spec='${libname}${release}${shared_ext}$major'
17228 shlibpath_var=LD_LIBRARY_PATH
17232 dynamic_linker=no
17234 esac
17235 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17236 echo "${ECHO_T}$dynamic_linker" >&6; }
17237 test "$dynamic_linker" = no && can_build_shared=no
17239 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17240 if test "$GCC" = yes; then
17241 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17244 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17245 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
17246 hardcode_action_F77=
17247 if test -n "$hardcode_libdir_flag_spec_F77" || \
17248 test -n "$runpath_var_F77" || \
17249 test "X$hardcode_automatic_F77" = "Xyes" ; then
17251 # We can hardcode non-existant directories.
17252 if test "$hardcode_direct_F77" != no &&
17253 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17254 # have to relink, otherwise we might link with an installed library
17255 # when we should be linking with a yet-to-be-installed one
17256 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
17257 test "$hardcode_minus_L_F77" != no; then
17258 # Linking always hardcodes the temporary library directory.
17259 hardcode_action_F77=relink
17260 else
17261 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17262 hardcode_action_F77=immediate
17264 else
17265 # We cannot hardcode anything, or else we can only hardcode existing
17266 # directories.
17267 hardcode_action_F77=unsupported
17269 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
17270 echo "${ECHO_T}$hardcode_action_F77" >&6; }
17272 if test "$hardcode_action_F77" = relink; then
17273 # Fast installation is not supported
17274 enable_fast_install=no
17275 elif test "$shlibpath_overrides_runpath" = yes ||
17276 test "$enable_shared" = no; then
17277 # Fast installation is not necessary
17278 enable_fast_install=needless
17282 # The else clause should only fire when bootstrapping the
17283 # libtool distribution, otherwise you forgot to ship ltmain.sh
17284 # with your package, and you will get complaints that there are
17285 # no rules to generate ltmain.sh.
17286 if test -f "$ltmain"; then
17287 # See if we are running on zsh, and set the options which allow our commands through
17288 # without removal of \ escapes.
17289 if test -n "${ZSH_VERSION+set}" ; then
17290 setopt NO_GLOB_SUBST
17292 # Now quote all the things that may contain metacharacters while being
17293 # careful not to overquote the AC_SUBSTed values. We take copies of the
17294 # variables and quote the copies for generation of the libtool script.
17295 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
17296 SED SHELL STRIP \
17297 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17298 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17299 deplibs_check_method reload_flag reload_cmds need_locks \
17300 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17301 lt_cv_sys_global_symbol_to_c_name_address \
17302 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17303 old_postinstall_cmds old_postuninstall_cmds \
17304 compiler_F77 \
17305 CC_F77 \
17306 LD_F77 \
17307 lt_prog_compiler_wl_F77 \
17308 lt_prog_compiler_pic_F77 \
17309 lt_prog_compiler_static_F77 \
17310 lt_prog_compiler_no_builtin_flag_F77 \
17311 export_dynamic_flag_spec_F77 \
17312 thread_safe_flag_spec_F77 \
17313 whole_archive_flag_spec_F77 \
17314 enable_shared_with_static_runtimes_F77 \
17315 old_archive_cmds_F77 \
17316 old_archive_from_new_cmds_F77 \
17317 predep_objects_F77 \
17318 postdep_objects_F77 \
17319 predeps_F77 \
17320 postdeps_F77 \
17321 compiler_lib_search_path_F77 \
17322 archive_cmds_F77 \
17323 archive_expsym_cmds_F77 \
17324 postinstall_cmds_F77 \
17325 postuninstall_cmds_F77 \
17326 old_archive_from_expsyms_cmds_F77 \
17327 allow_undefined_flag_F77 \
17328 no_undefined_flag_F77 \
17329 export_symbols_cmds_F77 \
17330 hardcode_libdir_flag_spec_F77 \
17331 hardcode_libdir_flag_spec_ld_F77 \
17332 hardcode_libdir_separator_F77 \
17333 hardcode_automatic_F77 \
17334 module_cmds_F77 \
17335 module_expsym_cmds_F77 \
17336 lt_cv_prog_compiler_c_o_F77 \
17337 exclude_expsyms_F77 \
17338 include_expsyms_F77; do
17340 case $var in
17341 old_archive_cmds_F77 | \
17342 old_archive_from_new_cmds_F77 | \
17343 archive_cmds_F77 | \
17344 archive_expsym_cmds_F77 | \
17345 module_cmds_F77 | \
17346 module_expsym_cmds_F77 | \
17347 old_archive_from_expsyms_cmds_F77 | \
17348 export_symbols_cmds_F77 | \
17349 extract_expsyms_cmds | reload_cmds | finish_cmds | \
17350 postinstall_cmds | postuninstall_cmds | \
17351 old_postinstall_cmds | old_postuninstall_cmds | \
17352 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17353 # Double-quote double-evaled strings.
17354 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17357 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17359 esac
17360 done
17362 case $lt_echo in
17363 *'\$0 --fallback-echo"')
17364 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17366 esac
17368 cfgfile="$ofile"
17370 cat <<__EOF__ >> "$cfgfile"
17371 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
17373 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17375 # Shell to use when invoking shell scripts.
17376 SHELL=$lt_SHELL
17378 # Whether or not to build shared libraries.
17379 build_libtool_libs=$enable_shared
17381 # Whether or not to build static libraries.
17382 build_old_libs=$enable_static
17384 # Whether or not to add -lc for building shared libraries.
17385 build_libtool_need_lc=$archive_cmds_need_lc_F77
17387 # Whether or not to disallow shared libs when runtime libs are static
17388 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
17390 # Whether or not to optimize for fast installation.
17391 fast_install=$enable_fast_install
17393 # The host system.
17394 host_alias=$host_alias
17395 host=$host
17396 host_os=$host_os
17398 # The build system.
17399 build_alias=$build_alias
17400 build=$build
17401 build_os=$build_os
17403 # An echo program that does not interpret backslashes.
17404 echo=$lt_echo
17406 # The archiver.
17407 AR=$lt_AR
17408 AR_FLAGS=$lt_AR_FLAGS
17410 # A C compiler.
17411 LTCC=$lt_LTCC
17413 # LTCC compiler flags.
17414 LTCFLAGS=$lt_LTCFLAGS
17416 # A language-specific compiler.
17417 CC=$lt_compiler_F77
17419 # Is the compiler the GNU C compiler?
17420 with_gcc=$GCC_F77
17422 # An ERE matcher.
17423 EGREP=$lt_EGREP
17425 # The linker used to build libraries.
17426 LD=$lt_LD_F77
17428 # Whether we need hard or soft links.
17429 LN_S=$lt_LN_S
17431 # A BSD-compatible nm program.
17432 NM=$lt_NM
17434 # A symbol stripping program
17435 STRIP=$lt_STRIP
17437 # Used to examine libraries when file_magic_cmd begins "file"
17438 MAGIC_CMD=$MAGIC_CMD
17440 # Used on cygwin: DLL creation program.
17441 DLLTOOL="$DLLTOOL"
17443 # Used on cygwin: object dumper.
17444 OBJDUMP="$OBJDUMP"
17446 # Used on cygwin: assembler.
17447 AS="$AS"
17449 # The name of the directory that contains temporary libtool files.
17450 objdir=$objdir
17452 # How to create reloadable object files.
17453 reload_flag=$lt_reload_flag
17454 reload_cmds=$lt_reload_cmds
17456 # How to pass a linker flag through the compiler.
17457 wl=$lt_lt_prog_compiler_wl_F77
17459 # Object file suffix (normally "o").
17460 objext="$ac_objext"
17462 # Old archive suffix (normally "a").
17463 libext="$libext"
17465 # Shared library suffix (normally ".so").
17466 shrext_cmds='$shrext_cmds'
17468 # Executable file suffix (normally "").
17469 exeext="$exeext"
17471 # Additional compiler flags for building library objects.
17472 pic_flag=$lt_lt_prog_compiler_pic_F77
17473 pic_mode=$pic_mode
17475 # What is the maximum length of a command?
17476 max_cmd_len=$lt_cv_sys_max_cmd_len
17478 # Does compiler simultaneously support -c and -o options?
17479 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
17481 # Must we lock files when doing compilation?
17482 need_locks=$lt_need_locks
17484 # Do we need the lib prefix for modules?
17485 need_lib_prefix=$need_lib_prefix
17487 # Do we need a version for libraries?
17488 need_version=$need_version
17490 # Whether dlopen is supported.
17491 dlopen_support=$enable_dlopen
17493 # Whether dlopen of programs is supported.
17494 dlopen_self=$enable_dlopen_self
17496 # Whether dlopen of statically linked programs is supported.
17497 dlopen_self_static=$enable_dlopen_self_static
17499 # Compiler flag to prevent dynamic linking.
17500 link_static_flag=$lt_lt_prog_compiler_static_F77
17502 # Compiler flag to turn off builtin functions.
17503 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
17505 # Compiler flag to allow reflexive dlopens.
17506 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
17508 # Compiler flag to generate shared objects directly from archives.
17509 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
17511 # Compiler flag to generate thread-safe objects.
17512 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
17514 # Library versioning type.
17515 version_type=$version_type
17517 # Format of library name prefix.
17518 libname_spec=$lt_libname_spec
17520 # List of archive names. First name is the real one, the rest are links.
17521 # The last name is the one that the linker finds with -lNAME.
17522 library_names_spec=$lt_library_names_spec
17524 # The coded name of the library, if different from the real name.
17525 soname_spec=$lt_soname_spec
17527 # Commands used to build and install an old-style archive.
17528 RANLIB=$lt_RANLIB
17529 old_archive_cmds=$lt_old_archive_cmds_F77
17530 old_postinstall_cmds=$lt_old_postinstall_cmds
17531 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17533 # Create an old-style archive from a shared archive.
17534 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
17536 # Create a temporary old-style archive to link instead of a shared archive.
17537 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
17539 # Commands used to build and install a shared archive.
17540 archive_cmds=$lt_archive_cmds_F77
17541 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
17542 postinstall_cmds=$lt_postinstall_cmds
17543 postuninstall_cmds=$lt_postuninstall_cmds
17545 # Commands used to build a loadable module (assumed same as above if empty)
17546 module_cmds=$lt_module_cmds_F77
17547 module_expsym_cmds=$lt_module_expsym_cmds_F77
17549 # Commands to strip libraries.
17550 old_striplib=$lt_old_striplib
17551 striplib=$lt_striplib
17553 # Dependencies to place before the objects being linked to create a
17554 # shared library.
17555 predep_objects=$lt_predep_objects_F77
17557 # Dependencies to place after the objects being linked to create a
17558 # shared library.
17559 postdep_objects=$lt_postdep_objects_F77
17561 # Dependencies to place before the objects being linked to create a
17562 # shared library.
17563 predeps=$lt_predeps_F77
17565 # Dependencies to place after the objects being linked to create a
17566 # shared library.
17567 postdeps=$lt_postdeps_F77
17569 # The library search path used internally by the compiler when linking
17570 # a shared library.
17571 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
17573 # Method to check whether dependent libraries are shared objects.
17574 deplibs_check_method=$lt_deplibs_check_method
17576 # Command to use when deplibs_check_method == file_magic.
17577 file_magic_cmd=$lt_file_magic_cmd
17579 # Flag that allows shared libraries with undefined symbols to be built.
17580 allow_undefined_flag=$lt_allow_undefined_flag_F77
17582 # Flag that forces no undefined symbols.
17583 no_undefined_flag=$lt_no_undefined_flag_F77
17585 # Commands used to finish a libtool library installation in a directory.
17586 finish_cmds=$lt_finish_cmds
17588 # Same as above, but a single script fragment to be evaled but not shown.
17589 finish_eval=$lt_finish_eval
17591 # Take the output of nm and produce a listing of raw symbols and C names.
17592 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17594 # Transform the output of nm in a proper C declaration
17595 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17597 # Transform the output of nm in a C name address pair
17598 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17600 # This is the shared library runtime path variable.
17601 runpath_var=$runpath_var
17603 # This is the shared library path variable.
17604 shlibpath_var=$shlibpath_var
17606 # Is shlibpath searched before the hard-coded library search path?
17607 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17609 # How to hardcode a shared library path into an executable.
17610 hardcode_action=$hardcode_action_F77
17612 # Whether we should hardcode library paths into libraries.
17613 hardcode_into_libs=$hardcode_into_libs
17615 # Flag to hardcode \$libdir into a binary during linking.
17616 # This must work even if \$libdir does not exist.
17617 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
17619 # If ld is used when linking, flag to hardcode \$libdir into
17620 # a binary during linking. This must work even if \$libdir does
17621 # not exist.
17622 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
17624 # Whether we need a single -rpath flag with a separated argument.
17625 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
17627 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17628 # resulting binary.
17629 hardcode_direct=$hardcode_direct_F77
17631 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17632 # resulting binary.
17633 hardcode_minus_L=$hardcode_minus_L_F77
17635 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17636 # the resulting binary.
17637 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
17639 # Set to yes if building a shared library automatically hardcodes DIR into the library
17640 # and all subsequent libraries and executables linked against it.
17641 hardcode_automatic=$hardcode_automatic_F77
17643 # Variables whose values should be saved in libtool wrapper scripts and
17644 # restored at relink time.
17645 variables_saved_for_relink="$variables_saved_for_relink"
17647 # Whether libtool must link a program against all its dependency libraries.
17648 link_all_deplibs=$link_all_deplibs_F77
17650 # Compile-time system search path for libraries
17651 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17653 # Run-time system search path for libraries
17654 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17656 # Fix the shell variable \$srcfile for the compiler.
17657 fix_srcfile_path="$fix_srcfile_path_F77"
17659 # Set to yes if exported symbols are required.
17660 always_export_symbols=$always_export_symbols_F77
17662 # The commands to list exported symbols.
17663 export_symbols_cmds=$lt_export_symbols_cmds_F77
17665 # The commands to extract the exported symbol list from a shared archive.
17666 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17668 # Symbols that should not be listed in the preloaded symbols.
17669 exclude_expsyms=$lt_exclude_expsyms_F77
17671 # Symbols that must always be exported.
17672 include_expsyms=$lt_include_expsyms_F77
17674 # ### END LIBTOOL TAG CONFIG: $tagname
17676 __EOF__
17679 else
17680 # If there is no Makefile yet, we rely on a make rule to execute
17681 # `config.status --recheck' to rerun these tests and create the
17682 # libtool script then.
17683 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
17684 if test -f "$ltmain_in"; then
17685 test -f Makefile && make "$ltmain"
17690 ac_ext=c
17691 ac_cpp='$CPP $CPPFLAGS'
17692 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17693 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17694 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17696 CC="$lt_save_CC"
17698 else
17699 tagname=""
17703 GCJ)
17704 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
17705 ac_ext=c
17706 ac_cpp='$CPP $CPPFLAGS'
17707 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17708 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17709 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17712 # Source file extension for Java test sources.
17713 ac_ext=java
17715 # Object file extension for compiled Java test sources.
17716 objext=o
17717 objext_GCJ=$objext
17719 # Code to be used in simple compile tests
17720 lt_simple_compile_test_code="class foo {}\n"
17722 # Code to be used in simple link tests
17723 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
17725 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
17727 # If no C compiler was specified, use CC.
17728 LTCC=${LTCC-"$CC"}
17730 # If no C compiler flags were specified, use CFLAGS.
17731 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
17733 # Allow CC to be a program name with arguments.
17734 compiler=$CC
17737 # save warnings/boilerplate of simple test code
17738 ac_outfile=conftest.$ac_objext
17739 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
17740 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17741 _lt_compiler_boilerplate=`cat conftest.err`
17742 $rm conftest*
17744 ac_outfile=conftest.$ac_objext
17745 printf "$lt_simple_link_test_code" >conftest.$ac_ext
17746 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17747 _lt_linker_boilerplate=`cat conftest.err`
17748 $rm conftest*
17751 # Allow CC to be a program name with arguments.
17752 lt_save_CC="$CC"
17753 CC=${GCJ-"gcj"}
17754 compiler=$CC
17755 compiler_GCJ=$CC
17756 for cc_temp in $compiler""; do
17757 case $cc_temp in
17758 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17759 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17760 \-*) ;;
17761 *) break;;
17762 esac
17763 done
17764 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17767 # GCJ did not exist at the time GCC didn't implicitly link libc in.
17768 archive_cmds_need_lc_GCJ=no
17770 old_archive_cmds_GCJ=$old_archive_cmds
17773 lt_prog_compiler_no_builtin_flag_GCJ=
17775 if test "$GCC" = yes; then
17776 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
17779 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
17780 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
17781 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
17782 echo $ECHO_N "(cached) $ECHO_C" >&6
17783 else
17784 lt_cv_prog_compiler_rtti_exceptions=no
17785 ac_outfile=conftest.$ac_objext
17786 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17787 lt_compiler_flag="-fno-rtti -fno-exceptions"
17788 # Insert the option either (1) after the last *FLAGS variable, or
17789 # (2) before a word containing "conftest.", or (3) at the end.
17790 # Note that $ac_compile itself does not contain backslashes and begins
17791 # with a dollar sign (not a hyphen), so the echo should work correctly.
17792 # The option is referenced via a variable to avoid confusing sed.
17793 lt_compile=`echo "$ac_compile" | $SED \
17794 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17795 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17796 -e 's:$: $lt_compiler_flag:'`
17797 (eval echo "\"\$as_me:17797: $lt_compile\"" >&5)
17798 (eval "$lt_compile" 2>conftest.err)
17799 ac_status=$?
17800 cat conftest.err >&5
17801 echo "$as_me:17801: \$? = $ac_status" >&5
17802 if (exit $ac_status) && test -s "$ac_outfile"; then
17803 # The compiler can only warn and ignore the option if not recognized
17804 # So say no if there are warnings other than the usual output.
17805 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
17806 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17807 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17808 lt_cv_prog_compiler_rtti_exceptions=yes
17811 $rm conftest*
17814 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
17815 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
17817 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
17818 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
17819 else
17825 lt_prog_compiler_wl_GCJ=
17826 lt_prog_compiler_pic_GCJ=
17827 lt_prog_compiler_static_GCJ=
17829 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
17830 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
17832 if test "$GCC" = yes; then
17833 lt_prog_compiler_wl_GCJ='-Wl,'
17834 lt_prog_compiler_static_GCJ='-static'
17836 case $host_os in
17837 aix*)
17838 # All AIX code is PIC.
17839 if test "$host_cpu" = ia64; then
17840 # AIX 5 now supports IA64 processor
17841 lt_prog_compiler_static_GCJ='-Bstatic'
17845 amigaos*)
17846 # FIXME: we need at least 68020 code to build shared libraries, but
17847 # adding the `-m68020' flag to GCC prevents building anything better,
17848 # like `-m68040'.
17849 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
17852 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
17853 # PIC is the default for these OSes.
17856 mingw* | pw32* | os2*)
17857 # This hack is so that the source file can tell whether it is being
17858 # built for inclusion in a dll (and should export symbols for example).
17859 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
17862 darwin* | rhapsody*)
17863 # PIC is the default on this platform
17864 # Common symbols not allowed in MH_DYLIB files
17865 lt_prog_compiler_pic_GCJ='-fno-common'
17868 interix3*)
17869 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
17870 # Instead, we relocate shared libraries at runtime.
17873 msdosdjgpp*)
17874 # Just because we use GCC doesn't mean we suddenly get shared libraries
17875 # on systems that don't support them.
17876 lt_prog_compiler_can_build_shared_GCJ=no
17877 enable_shared=no
17880 sysv4*MP*)
17881 if test -d /usr/nec; then
17882 lt_prog_compiler_pic_GCJ=-Kconform_pic
17886 hpux*)
17887 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17888 # not for PA HP-UX.
17889 case $host_cpu in
17890 hppa*64*|ia64*)
17891 # +Z the default
17894 lt_prog_compiler_pic_GCJ='-fPIC'
17896 esac
17900 lt_prog_compiler_pic_GCJ='-fPIC'
17902 esac
17903 else
17904 # PORTME Check for flag to pass linker flags through the system compiler.
17905 case $host_os in
17906 aix*)
17907 lt_prog_compiler_wl_GCJ='-Wl,'
17908 if test "$host_cpu" = ia64; then
17909 # AIX 5 now supports IA64 processor
17910 lt_prog_compiler_static_GCJ='-Bstatic'
17911 else
17912 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
17915 darwin*)
17916 # PIC is the default on this platform
17917 # Common symbols not allowed in MH_DYLIB files
17918 case $cc_basename in
17919 xlc*)
17920 lt_prog_compiler_pic_GCJ='-qnocommon'
17921 lt_prog_compiler_wl_GCJ='-Wl,'
17923 esac
17926 mingw* | pw32* | os2*)
17927 # This hack is so that the source file can tell whether it is being
17928 # built for inclusion in a dll (and should export symbols for example).
17929 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
17932 hpux9* | hpux10* | hpux11*)
17933 lt_prog_compiler_wl_GCJ='-Wl,'
17934 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17935 # not for PA HP-UX.
17936 case $host_cpu in
17937 hppa*64*|ia64*)
17938 # +Z the default
17941 lt_prog_compiler_pic_GCJ='+Z'
17943 esac
17944 # Is there a better lt_prog_compiler_static that works with the bundled CC?
17945 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
17948 irix5* | irix6* | nonstopux*)
17949 lt_prog_compiler_wl_GCJ='-Wl,'
17950 # PIC (with -KPIC) is the default.
17951 lt_prog_compiler_static_GCJ='-non_shared'
17954 newsos6)
17955 lt_prog_compiler_pic_GCJ='-KPIC'
17956 lt_prog_compiler_static_GCJ='-Bstatic'
17959 linux*)
17960 case $cc_basename in
17961 icc* | ecc*)
17962 lt_prog_compiler_wl_GCJ='-Wl,'
17963 lt_prog_compiler_pic_GCJ='-KPIC'
17964 lt_prog_compiler_static_GCJ='-static'
17966 pgcc* | pgf77* | pgf90* | pgf95*)
17967 # Portland Group compilers (*not* the Pentium gcc compiler,
17968 # which looks to be a dead project)
17969 lt_prog_compiler_wl_GCJ='-Wl,'
17970 lt_prog_compiler_pic_GCJ='-fpic'
17971 lt_prog_compiler_static_GCJ='-Bstatic'
17973 ccc*)
17974 lt_prog_compiler_wl_GCJ='-Wl,'
17975 # All Alpha code is PIC.
17976 lt_prog_compiler_static_GCJ='-non_shared'
17978 esac
17981 osf3* | osf4* | osf5*)
17982 lt_prog_compiler_wl_GCJ='-Wl,'
17983 # All OSF/1 code is PIC.
17984 lt_prog_compiler_static_GCJ='-non_shared'
17987 solaris*)
17988 lt_prog_compiler_pic_GCJ='-KPIC'
17989 lt_prog_compiler_static_GCJ='-Bstatic'
17990 case $cc_basename in
17991 f77* | f90* | f95*)
17992 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
17994 lt_prog_compiler_wl_GCJ='-Wl,';;
17995 esac
17998 sunos4*)
17999 lt_prog_compiler_wl_GCJ='-Qoption ld '
18000 lt_prog_compiler_pic_GCJ='-PIC'
18001 lt_prog_compiler_static_GCJ='-Bstatic'
18004 sysv4 | sysv4.2uw2* | sysv4.3*)
18005 lt_prog_compiler_wl_GCJ='-Wl,'
18006 lt_prog_compiler_pic_GCJ='-KPIC'
18007 lt_prog_compiler_static_GCJ='-Bstatic'
18010 sysv4*MP*)
18011 if test -d /usr/nec ;then
18012 lt_prog_compiler_pic_GCJ='-Kconform_pic'
18013 lt_prog_compiler_static_GCJ='-Bstatic'
18017 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
18018 lt_prog_compiler_wl_GCJ='-Wl,'
18019 lt_prog_compiler_pic_GCJ='-KPIC'
18020 lt_prog_compiler_static_GCJ='-Bstatic'
18023 unicos*)
18024 lt_prog_compiler_wl_GCJ='-Wl,'
18025 lt_prog_compiler_can_build_shared_GCJ=no
18028 uts4*)
18029 lt_prog_compiler_pic_GCJ='-pic'
18030 lt_prog_compiler_static_GCJ='-Bstatic'
18034 lt_prog_compiler_can_build_shared_GCJ=no
18036 esac
18039 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
18040 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
18043 # Check to make sure the PIC flag actually works.
18045 if test -n "$lt_prog_compiler_pic_GCJ"; then
18047 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
18048 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
18049 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
18050 echo $ECHO_N "(cached) $ECHO_C" >&6
18051 else
18052 lt_prog_compiler_pic_works_GCJ=no
18053 ac_outfile=conftest.$ac_objext
18054 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18055 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
18056 # Insert the option either (1) after the last *FLAGS variable, or
18057 # (2) before a word containing "conftest.", or (3) at the end.
18058 # Note that $ac_compile itself does not contain backslashes and begins
18059 # with a dollar sign (not a hyphen), so the echo should work correctly.
18060 # The option is referenced via a variable to avoid confusing sed.
18061 lt_compile=`echo "$ac_compile" | $SED \
18062 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18063 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18064 -e 's:$: $lt_compiler_flag:'`
18065 (eval echo "\"\$as_me:18065: $lt_compile\"" >&5)
18066 (eval "$lt_compile" 2>conftest.err)
18067 ac_status=$?
18068 cat conftest.err >&5
18069 echo "$as_me:18069: \$? = $ac_status" >&5
18070 if (exit $ac_status) && test -s "$ac_outfile"; then
18071 # The compiler can only warn and ignore the option if not recognized
18072 # So say no if there are warnings other than the usual output.
18073 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
18074 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18075 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
18076 lt_prog_compiler_pic_works_GCJ=yes
18079 $rm conftest*
18082 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
18083 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
18085 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
18086 case $lt_prog_compiler_pic_GCJ in
18087 "" | " "*) ;;
18088 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
18089 esac
18090 else
18091 lt_prog_compiler_pic_GCJ=
18092 lt_prog_compiler_can_build_shared_GCJ=no
18096 case $host_os in
18097 # For platforms which do not support PIC, -DPIC is meaningless:
18098 *djgpp*)
18099 lt_prog_compiler_pic_GCJ=
18102 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
18104 esac
18107 # Check to make sure the static flag actually works.
18109 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
18110 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
18111 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
18112 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
18113 echo $ECHO_N "(cached) $ECHO_C" >&6
18114 else
18115 lt_prog_compiler_static_works_GCJ=no
18116 save_LDFLAGS="$LDFLAGS"
18117 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
18118 printf "$lt_simple_link_test_code" > conftest.$ac_ext
18119 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
18120 # The linker can only warn and ignore the option if not recognized
18121 # So say no if there are warnings
18122 if test -s conftest.err; then
18123 # Append any errors to the config.log.
18124 cat conftest.err 1>&5
18125 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
18126 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18127 if diff conftest.exp conftest.er2 >/dev/null; then
18128 lt_prog_compiler_static_works_GCJ=yes
18130 else
18131 lt_prog_compiler_static_works_GCJ=yes
18134 $rm conftest*
18135 LDFLAGS="$save_LDFLAGS"
18138 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
18139 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
18141 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
18143 else
18144 lt_prog_compiler_static_GCJ=
18148 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
18149 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
18150 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
18151 echo $ECHO_N "(cached) $ECHO_C" >&6
18152 else
18153 lt_cv_prog_compiler_c_o_GCJ=no
18154 $rm -r conftest 2>/dev/null
18155 mkdir conftest
18156 cd conftest
18157 mkdir out
18158 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18160 lt_compiler_flag="-o out/conftest2.$ac_objext"
18161 # Insert the option either (1) after the last *FLAGS variable, or
18162 # (2) before a word containing "conftest.", or (3) at the end.
18163 # Note that $ac_compile itself does not contain backslashes and begins
18164 # with a dollar sign (not a hyphen), so the echo should work correctly.
18165 lt_compile=`echo "$ac_compile" | $SED \
18166 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18167 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18168 -e 's:$: $lt_compiler_flag:'`
18169 (eval echo "\"\$as_me:18169: $lt_compile\"" >&5)
18170 (eval "$lt_compile" 2>out/conftest.err)
18171 ac_status=$?
18172 cat out/conftest.err >&5
18173 echo "$as_me:18173: \$? = $ac_status" >&5
18174 if (exit $ac_status) && test -s out/conftest2.$ac_objext
18175 then
18176 # The compiler can only warn and ignore the option if not recognized
18177 # So say no if there are warnings
18178 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
18179 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
18180 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
18181 lt_cv_prog_compiler_c_o_GCJ=yes
18184 chmod u+w . 2>&5
18185 $rm conftest*
18186 # SGI C++ compiler will create directory out/ii_files/ for
18187 # template instantiation
18188 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
18189 $rm out/* && rmdir out
18190 cd ..
18191 rmdir conftest
18192 $rm conftest*
18195 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
18196 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
18199 hard_links="nottested"
18200 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
18201 # do not overwrite the value of need_locks provided by the user
18202 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
18203 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
18204 hard_links=yes
18205 $rm conftest*
18206 ln conftest.a conftest.b 2>/dev/null && hard_links=no
18207 touch conftest.a
18208 ln conftest.a conftest.b 2>&5 || hard_links=no
18209 ln conftest.a conftest.b 2>/dev/null && hard_links=no
18210 { echo "$as_me:$LINENO: result: $hard_links" >&5
18211 echo "${ECHO_T}$hard_links" >&6; }
18212 if test "$hard_links" = no; then
18213 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
18214 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
18215 need_locks=warn
18217 else
18218 need_locks=no
18221 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18222 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
18224 runpath_var=
18225 allow_undefined_flag_GCJ=
18226 enable_shared_with_static_runtimes_GCJ=no
18227 archive_cmds_GCJ=
18228 archive_expsym_cmds_GCJ=
18229 old_archive_From_new_cmds_GCJ=
18230 old_archive_from_expsyms_cmds_GCJ=
18231 export_dynamic_flag_spec_GCJ=
18232 whole_archive_flag_spec_GCJ=
18233 thread_safe_flag_spec_GCJ=
18234 hardcode_libdir_flag_spec_GCJ=
18235 hardcode_libdir_flag_spec_ld_GCJ=
18236 hardcode_libdir_separator_GCJ=
18237 hardcode_direct_GCJ=no
18238 hardcode_minus_L_GCJ=no
18239 hardcode_shlibpath_var_GCJ=unsupported
18240 link_all_deplibs_GCJ=unknown
18241 hardcode_automatic_GCJ=no
18242 module_cmds_GCJ=
18243 module_expsym_cmds_GCJ=
18244 always_export_symbols_GCJ=no
18245 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
18246 # include_expsyms should be a list of space-separated symbols to be *always*
18247 # included in the symbol list
18248 include_expsyms_GCJ=
18249 # exclude_expsyms can be an extended regexp of symbols to exclude
18250 # it will be wrapped by ` (' and `)$', so one must not match beginning or
18251 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
18252 # as well as any symbol that contains `d'.
18253 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
18254 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
18255 # platforms (ab)use it in PIC code, but their linkers get confused if
18256 # the symbol is explicitly referenced. Since portable code cannot
18257 # rely on this symbol name, it's probably fine to never include it in
18258 # preloaded symbol tables.
18259 extract_expsyms_cmds=
18260 # Just being paranoid about ensuring that cc_basename is set.
18261 for cc_temp in $compiler""; do
18262 case $cc_temp in
18263 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18264 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18265 \-*) ;;
18266 *) break;;
18267 esac
18268 done
18269 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18271 case $host_os in
18272 cygwin* | mingw* | pw32*)
18273 # FIXME: the MSVC++ port hasn't been tested in a loooong time
18274 # When not using gcc, we currently assume that we are using
18275 # Microsoft Visual C++.
18276 if test "$GCC" != yes; then
18277 with_gnu_ld=no
18280 interix*)
18281 # we just hope/assume this is gcc and not c89 (= MSVC++)
18282 with_gnu_ld=yes
18284 openbsd*)
18285 with_gnu_ld=no
18287 esac
18289 ld_shlibs_GCJ=yes
18290 if test "$with_gnu_ld" = yes; then
18291 # If archive_cmds runs LD, not CC, wlarc should be empty
18292 wlarc='${wl}'
18294 # Set some defaults for GNU ld with shared library support. These
18295 # are reset later if shared libraries are not supported. Putting them
18296 # here allows them to be overridden if necessary.
18297 runpath_var=LD_RUN_PATH
18298 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
18299 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
18300 # ancient GNU ld didn't support --whole-archive et. al.
18301 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
18302 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18303 else
18304 whole_archive_flag_spec_GCJ=
18306 supports_anon_versioning=no
18307 case `$LD -v 2>/dev/null` in
18308 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
18309 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
18310 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
18311 *\ 2.11.*) ;; # other 2.11 versions
18312 *) supports_anon_versioning=yes ;;
18313 esac
18315 # See if GNU ld supports shared libraries.
18316 case $host_os in
18317 aix3* | aix4* | aix5*)
18318 # On AIX/PPC, the GNU linker is very broken
18319 if test "$host_cpu" != ia64; then
18320 ld_shlibs_GCJ=no
18321 cat <<EOF 1>&2
18323 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
18324 *** to be unable to reliably create shared libraries on AIX.
18325 *** Therefore, libtool is disabling shared libraries support. If you
18326 *** really care for shared libraries, you may want to modify your PATH
18327 *** so that a non-GNU linker is found, and then restart.
18333 amigaos*)
18334 archive_cmds_GCJ='$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)'
18335 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18336 hardcode_minus_L_GCJ=yes
18338 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
18339 # that the semantics of dynamic libraries on AmigaOS, at least up
18340 # to version 4, is to share data among multiple programs linked
18341 # with the same dynamic library. Since this doesn't match the
18342 # behavior of shared libraries on other platforms, we can't use
18343 # them.
18344 ld_shlibs_GCJ=no
18347 beos*)
18348 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18349 allow_undefined_flag_GCJ=unsupported
18350 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18351 # support --undefined. This deserves some investigation. FIXME
18352 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18353 else
18354 ld_shlibs_GCJ=no
18358 cygwin* | mingw* | pw32*)
18359 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
18360 # as there is no search path for DLLs.
18361 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18362 allow_undefined_flag_GCJ=unsupported
18363 always_export_symbols_GCJ=no
18364 enable_shared_with_static_runtimes_GCJ=yes
18365 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
18367 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
18368 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
18369 # If the export-symbols file already is a .def file (1st line
18370 # is EXPORTS), use it as is; otherwise, prepend...
18371 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18372 cp $export_symbols $output_objdir/$soname.def;
18373 else
18374 echo EXPORTS > $output_objdir/$soname.def;
18375 cat $export_symbols >> $output_objdir/$soname.def;
18377 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
18378 else
18379 ld_shlibs_GCJ=no
18383 interix3*)
18384 hardcode_direct_GCJ=no
18385 hardcode_shlibpath_var_GCJ=no
18386 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18387 export_dynamic_flag_spec_GCJ='${wl}-E'
18388 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
18389 # Instead, shared libraries are loaded at an image base (0x10000000 by
18390 # default) and relocated if they conflict, which is a slow very memory
18391 # consuming and fragmenting process. To avoid this, we pick a random,
18392 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
18393 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
18394 archive_cmds_GCJ='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
18395 archive_expsym_cmds_GCJ='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'
18398 linux*)
18399 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18400 tmp_addflag=
18401 case $cc_basename,$host_cpu in
18402 pgcc*) # Portland Group C compiler
18403 whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
18404 tmp_addflag=' $pic_flag'
18406 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
18407 whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
18408 tmp_addflag=' $pic_flag -Mnomain' ;;
18409 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
18410 tmp_addflag=' -i_dynamic' ;;
18411 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
18412 tmp_addflag=' -i_dynamic -nofor_main' ;;
18413 ifc* | ifort*) # Intel Fortran compiler
18414 tmp_addflag=' -nofor_main' ;;
18415 esac
18416 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18418 if test $supports_anon_versioning = yes; then
18419 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
18420 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
18421 $echo "local: *; };" >> $output_objdir/$libname.ver~
18422 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
18424 else
18425 ld_shlibs_GCJ=no
18429 netbsd*)
18430 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18431 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
18432 wlarc=
18433 else
18434 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18435 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18439 solaris*)
18440 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
18441 ld_shlibs_GCJ=no
18442 cat <<EOF 1>&2
18444 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
18445 *** create shared libraries on Solaris systems. Therefore, libtool
18446 *** is disabling shared libraries support. We urge you to upgrade GNU
18447 *** binutils to release 2.9.1 or newer. Another option is to modify
18448 *** your PATH or compiler configuration so that the native linker is
18449 *** used, and then restart.
18452 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18453 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18454 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18455 else
18456 ld_shlibs_GCJ=no
18460 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
18461 case `$LD -v 2>&1` in
18462 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
18463 ld_shlibs_GCJ=no
18464 cat <<_LT_EOF 1>&2
18466 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
18467 *** reliably create shared libraries on SCO systems. Therefore, libtool
18468 *** is disabling shared libraries support. We urge you to upgrade GNU
18469 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
18470 *** your PATH or compiler configuration so that the native linker is
18471 *** used, and then restart.
18473 _LT_EOF
18476 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18477 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
18478 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
18479 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
18480 else
18481 ld_shlibs_GCJ=no
18484 esac
18487 sunos4*)
18488 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18489 wlarc=
18490 hardcode_direct_GCJ=yes
18491 hardcode_shlibpath_var_GCJ=no
18495 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18496 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18497 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18498 else
18499 ld_shlibs_GCJ=no
18502 esac
18504 if test "$ld_shlibs_GCJ" = no; then
18505 runpath_var=
18506 hardcode_libdir_flag_spec_GCJ=
18507 export_dynamic_flag_spec_GCJ=
18508 whole_archive_flag_spec_GCJ=
18510 else
18511 # PORTME fill in a description of your system's linker (not GNU ld)
18512 case $host_os in
18513 aix3*)
18514 allow_undefined_flag_GCJ=unsupported
18515 always_export_symbols_GCJ=yes
18516 archive_expsym_cmds_GCJ='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
18517 # Note: this linker hardcodes the directories in LIBPATH if there
18518 # are no directories specified by -L.
18519 hardcode_minus_L_GCJ=yes
18520 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
18521 # Neither direct hardcoding nor static linking is supported with a
18522 # broken collect2.
18523 hardcode_direct_GCJ=unsupported
18527 aix4* | aix5*)
18528 if test "$host_cpu" = ia64; then
18529 # On IA64, the linker does run time linking by default, so we don't
18530 # have to do anything special.
18531 aix_use_runtimelinking=no
18532 exp_sym_flag='-Bexport'
18533 no_entry_flag=""
18534 else
18535 # If we're using GNU nm, then we don't want the "-C" option.
18536 # -C means demangle to AIX nm, but means don't demangle with GNU nm
18537 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
18538 export_symbols_cmds_GCJ='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
18539 else
18540 export_symbols_cmds_GCJ='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
18542 aix_use_runtimelinking=no
18544 # Test if we are trying to use run time linking or normal
18545 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18546 # need to do runtime linking.
18547 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
18548 for ld_flag in $LDFLAGS; do
18549 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
18550 aix_use_runtimelinking=yes
18551 break
18553 done
18555 esac
18557 exp_sym_flag='-bexport'
18558 no_entry_flag='-bnoentry'
18561 # When large executables or shared objects are built, AIX ld can
18562 # have problems creating the table of contents. If linking a library
18563 # or program results in "error TOC overflow" add -mminimal-toc to
18564 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
18565 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18567 archive_cmds_GCJ=''
18568 hardcode_direct_GCJ=yes
18569 hardcode_libdir_separator_GCJ=':'
18570 link_all_deplibs_GCJ=yes
18572 if test "$GCC" = yes; then
18573 case $host_os in aix4.[012]|aix4.[012].*)
18574 # We only want to do this on AIX 4.2 and lower, the check
18575 # below for broken collect2 doesn't work under 4.3+
18576 collect2name=`${CC} -print-prog-name=collect2`
18577 if test -f "$collect2name" && \
18578 strings "$collect2name" | grep resolve_lib_name >/dev/null
18579 then
18580 # We have reworked collect2
18581 hardcode_direct_GCJ=yes
18582 else
18583 # We have old collect2
18584 hardcode_direct_GCJ=unsupported
18585 # It fails to find uninstalled libraries when the uninstalled
18586 # path is not listed in the libpath. Setting hardcode_minus_L
18587 # to unsupported forces relinking
18588 hardcode_minus_L_GCJ=yes
18589 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18590 hardcode_libdir_separator_GCJ=
18593 esac
18594 shared_flag='-shared'
18595 if test "$aix_use_runtimelinking" = yes; then
18596 shared_flag="$shared_flag "'${wl}-G'
18598 else
18599 # not using gcc
18600 if test "$host_cpu" = ia64; then
18601 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18602 # chokes on -Wl,-G. The following line is correct:
18603 shared_flag='-G'
18604 else
18605 if test "$aix_use_runtimelinking" = yes; then
18606 shared_flag='${wl}-G'
18607 else
18608 shared_flag='${wl}-bM:SRE'
18613 # It seems that -bexpall does not export symbols beginning with
18614 # underscore (_), so it is better to generate a list of symbols to export.
18615 always_export_symbols_GCJ=yes
18616 if test "$aix_use_runtimelinking" = yes; then
18617 # Warning - without using the other runtime loading flags (-brtl),
18618 # -berok will link without error, but may produce a broken library.
18619 allow_undefined_flag_GCJ='-berok'
18620 # Determine the default libpath from the value encoded in an empty executable.
18621 cat >conftest.$ac_ext <<_ACEOF
18622 /* confdefs.h. */
18623 _ACEOF
18624 cat confdefs.h >>conftest.$ac_ext
18625 cat >>conftest.$ac_ext <<_ACEOF
18626 /* end confdefs.h. */
18629 main ()
18633 return 0;
18635 _ACEOF
18636 rm -f conftest.$ac_objext conftest$ac_exeext
18637 if { (ac_try="$ac_link"
18638 case "(($ac_try" in
18639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18640 *) ac_try_echo=$ac_try;;
18641 esac
18642 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18643 (eval "$ac_link") 2>conftest.er1
18644 ac_status=$?
18645 grep -v '^ *+' conftest.er1 >conftest.err
18646 rm -f conftest.er1
18647 cat conftest.err >&5
18648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18649 (exit $ac_status); } &&
18650 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18651 { (case "(($ac_try" in
18652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18653 *) ac_try_echo=$ac_try;;
18654 esac
18655 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18656 (eval "$ac_try") 2>&5
18657 ac_status=$?
18658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18659 (exit $ac_status); }; } &&
18660 { ac_try='test -s conftest$ac_exeext'
18661 { (case "(($ac_try" in
18662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18663 *) ac_try_echo=$ac_try;;
18664 esac
18665 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18666 (eval "$ac_try") 2>&5
18667 ac_status=$?
18668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18669 (exit $ac_status); }; }; then
18671 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
18673 # Check for a 64-bit object if we didn't find anything.
18674 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
18675 }'`; fi
18676 else
18677 echo "$as_me: failed program was:" >&5
18678 sed 's/^/| /' conftest.$ac_ext >&5
18683 rm -f core conftest.err conftest.$ac_objext \
18684 conftest$ac_exeext conftest.$ac_ext
18685 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18687 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
18688 archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
18689 else
18690 if test "$host_cpu" = ia64; then
18691 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
18692 allow_undefined_flag_GCJ="-z nodefs"
18693 archive_expsym_cmds_GCJ="\$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"
18694 else
18695 # Determine the default libpath from the value encoded in an empty executable.
18696 cat >conftest.$ac_ext <<_ACEOF
18697 /* confdefs.h. */
18698 _ACEOF
18699 cat confdefs.h >>conftest.$ac_ext
18700 cat >>conftest.$ac_ext <<_ACEOF
18701 /* end confdefs.h. */
18704 main ()
18708 return 0;
18710 _ACEOF
18711 rm -f conftest.$ac_objext conftest$ac_exeext
18712 if { (ac_try="$ac_link"
18713 case "(($ac_try" in
18714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18715 *) ac_try_echo=$ac_try;;
18716 esac
18717 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18718 (eval "$ac_link") 2>conftest.er1
18719 ac_status=$?
18720 grep -v '^ *+' conftest.er1 >conftest.err
18721 rm -f conftest.er1
18722 cat conftest.err >&5
18723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18724 (exit $ac_status); } &&
18725 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18726 { (case "(($ac_try" in
18727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18728 *) ac_try_echo=$ac_try;;
18729 esac
18730 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18731 (eval "$ac_try") 2>&5
18732 ac_status=$?
18733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18734 (exit $ac_status); }; } &&
18735 { ac_try='test -s conftest$ac_exeext'
18736 { (case "(($ac_try" in
18737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18738 *) ac_try_echo=$ac_try;;
18739 esac
18740 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18741 (eval "$ac_try") 2>&5
18742 ac_status=$?
18743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18744 (exit $ac_status); }; }; then
18746 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
18748 # Check for a 64-bit object if we didn't find anything.
18749 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
18750 }'`; fi
18751 else
18752 echo "$as_me: failed program was:" >&5
18753 sed 's/^/| /' conftest.$ac_ext >&5
18758 rm -f core conftest.err conftest.$ac_objext \
18759 conftest$ac_exeext conftest.$ac_ext
18760 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18762 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
18763 # Warning - without using the other run time loading flags,
18764 # -berok will link without error, but may produce a broken library.
18765 no_undefined_flag_GCJ=' ${wl}-bernotok'
18766 allow_undefined_flag_GCJ=' ${wl}-berok'
18767 # Exported symbols can be pulled into shared objects from archives
18768 whole_archive_flag_spec_GCJ='$convenience'
18769 archive_cmds_need_lc_GCJ=yes
18770 # This is similar to how AIX traditionally builds its shared libraries.
18771 archive_expsym_cmds_GCJ="\$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'
18776 amigaos*)
18777 archive_cmds_GCJ='$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)'
18778 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18779 hardcode_minus_L_GCJ=yes
18780 # see comment about different semantics on the GNU ld section
18781 ld_shlibs_GCJ=no
18784 bsdi[45]*)
18785 export_dynamic_flag_spec_GCJ=-rdynamic
18788 cygwin* | mingw* | pw32*)
18789 # When not using gcc, we currently assume that we are using
18790 # Microsoft Visual C++.
18791 # hardcode_libdir_flag_spec is actually meaningless, as there is
18792 # no search path for DLLs.
18793 hardcode_libdir_flag_spec_GCJ=' '
18794 allow_undefined_flag_GCJ=unsupported
18795 # Tell ltmain to make .lib files, not .a files.
18796 libext=lib
18797 # Tell ltmain to make .dll files, not .so files.
18798 shrext_cmds=".dll"
18799 # FIXME: Setting linknames here is a bad hack.
18800 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
18801 # The linker will automatically build a .lib file if we build a DLL.
18802 old_archive_From_new_cmds_GCJ='true'
18803 # FIXME: Should let the user specify the lib program.
18804 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
18805 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
18806 enable_shared_with_static_runtimes_GCJ=yes
18809 darwin* | rhapsody*)
18810 case $host_os in
18811 rhapsody* | darwin1.[012])
18812 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
18814 *) # Darwin 1.3 on
18815 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
18816 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18817 else
18818 case ${MACOSX_DEPLOYMENT_TARGET} in
18819 10.[012])
18820 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18822 10.*)
18823 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
18825 esac
18828 esac
18829 archive_cmds_need_lc_GCJ=no
18830 hardcode_direct_GCJ=no
18831 hardcode_automatic_GCJ=yes
18832 hardcode_shlibpath_var_GCJ=unsupported
18833 whole_archive_flag_spec_GCJ=''
18834 link_all_deplibs_GCJ=yes
18835 if test "$GCC" = yes ; then
18836 output_verbose_link_cmd='echo'
18837 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
18838 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18839 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18840 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
18841 module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
18842 else
18843 case $cc_basename in
18844 xlc*)
18845 output_verbose_link_cmd='echo'
18846 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
18847 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18848 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18849 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
18850 module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
18853 ld_shlibs_GCJ=no
18855 esac
18859 dgux*)
18860 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18861 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18862 hardcode_shlibpath_var_GCJ=no
18865 freebsd1*)
18866 ld_shlibs_GCJ=no
18869 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
18870 # support. Future versions do this automatically, but an explicit c++rt0.o
18871 # does not break anything, and helps significantly (at the cost of a little
18872 # extra space).
18873 freebsd2.2*)
18874 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
18875 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18876 hardcode_direct_GCJ=yes
18877 hardcode_shlibpath_var_GCJ=no
18880 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
18881 freebsd2*)
18882 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18883 hardcode_direct_GCJ=yes
18884 hardcode_minus_L_GCJ=yes
18885 hardcode_shlibpath_var_GCJ=no
18888 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
18889 freebsd* | kfreebsd*-gnu | dragonfly*)
18890 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
18891 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18892 hardcode_direct_GCJ=yes
18893 hardcode_shlibpath_var_GCJ=no
18896 hpux9*)
18897 if test "$GCC" = yes; then
18898 archive_cmds_GCJ='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
18899 else
18900 archive_cmds_GCJ='$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'
18902 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18903 hardcode_libdir_separator_GCJ=:
18904 hardcode_direct_GCJ=yes
18906 # hardcode_minus_L: Not really in the search PATH,
18907 # but as the default location of the library.
18908 hardcode_minus_L_GCJ=yes
18909 export_dynamic_flag_spec_GCJ='${wl}-E'
18912 hpux10*)
18913 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18914 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18915 else
18916 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
18918 if test "$with_gnu_ld" = no; then
18919 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18920 hardcode_libdir_separator_GCJ=:
18922 hardcode_direct_GCJ=yes
18923 export_dynamic_flag_spec_GCJ='${wl}-E'
18925 # hardcode_minus_L: Not really in the search PATH,
18926 # but as the default location of the library.
18927 hardcode_minus_L_GCJ=yes
18931 hpux11*)
18932 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18933 case $host_cpu in
18934 hppa*64*)
18935 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18937 ia64*)
18938 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18941 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18943 esac
18944 else
18945 case $host_cpu in
18946 hppa*64*)
18947 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18949 ia64*)
18950 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18953 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18955 esac
18957 if test "$with_gnu_ld" = no; then
18958 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18959 hardcode_libdir_separator_GCJ=:
18961 case $host_cpu in
18962 hppa*64*|ia64*)
18963 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
18964 hardcode_direct_GCJ=no
18965 hardcode_shlibpath_var_GCJ=no
18968 hardcode_direct_GCJ=yes
18969 export_dynamic_flag_spec_GCJ='${wl}-E'
18971 # hardcode_minus_L: Not really in the search PATH,
18972 # but as the default location of the library.
18973 hardcode_minus_L_GCJ=yes
18975 esac
18979 irix5* | irix6* | nonstopux*)
18980 if test "$GCC" = yes; then
18981 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
18982 else
18983 archive_cmds_GCJ='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
18984 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
18986 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18987 hardcode_libdir_separator_GCJ=:
18988 link_all_deplibs_GCJ=yes
18991 netbsd*)
18992 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18993 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
18994 else
18995 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
18997 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18998 hardcode_direct_GCJ=yes
18999 hardcode_shlibpath_var_GCJ=no
19002 newsos6)
19003 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19004 hardcode_direct_GCJ=yes
19005 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
19006 hardcode_libdir_separator_GCJ=:
19007 hardcode_shlibpath_var_GCJ=no
19010 openbsd*)
19011 hardcode_direct_GCJ=yes
19012 hardcode_shlibpath_var_GCJ=no
19013 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19014 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
19015 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
19016 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
19017 export_dynamic_flag_spec_GCJ='${wl}-E'
19018 else
19019 case $host_os in
19020 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
19021 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19022 hardcode_libdir_flag_spec_GCJ='-R$libdir'
19025 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
19026 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
19028 esac
19032 os2*)
19033 hardcode_libdir_flag_spec_GCJ='-L$libdir'
19034 hardcode_minus_L_GCJ=yes
19035 allow_undefined_flag_GCJ=unsupported
19036 archive_cmds_GCJ='$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'
19037 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
19040 osf3*)
19041 if test "$GCC" = yes; then
19042 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
19043 archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
19044 else
19045 allow_undefined_flag_GCJ=' -expect_unresolved \*'
19046 archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
19048 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
19049 hardcode_libdir_separator_GCJ=:
19052 osf4* | osf5*) # as osf3* with the addition of -msym flag
19053 if test "$GCC" = yes; then
19054 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
19055 archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
19056 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
19057 else
19058 allow_undefined_flag_GCJ=' -expect_unresolved \*'
19059 archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
19060 archive_expsym_cmds_GCJ='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
19061 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
19063 # Both c and cxx compiler support -rpath directly
19064 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
19066 hardcode_libdir_separator_GCJ=:
19069 solaris*)
19070 no_undefined_flag_GCJ=' -z text'
19071 if test "$GCC" = yes; then
19072 wlarc='${wl}'
19073 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19074 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19075 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
19076 else
19077 wlarc=''
19078 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
19079 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19080 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
19082 hardcode_libdir_flag_spec_GCJ='-R$libdir'
19083 hardcode_shlibpath_var_GCJ=no
19084 case $host_os in
19085 solaris2.[0-5] | solaris2.[0-5].*) ;;
19087 # The compiler driver will combine linker options so we
19088 # cannot just pass the convience library names through
19089 # without $wl, iff we do not link with $LD.
19090 # Luckily, gcc supports the same syntax we need for Sun Studio.
19091 # Supported since Solaris 2.6 (maybe 2.5.1?)
19092 case $wlarc in
19094 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
19096 whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
19097 esac ;;
19098 esac
19099 link_all_deplibs_GCJ=yes
19102 sunos4*)
19103 if test "x$host_vendor" = xsequent; then
19104 # Use $CC to link under sequent, because it throws in some extra .o
19105 # files that make .init and .fini sections work.
19106 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
19107 else
19108 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
19110 hardcode_libdir_flag_spec_GCJ='-L$libdir'
19111 hardcode_direct_GCJ=yes
19112 hardcode_minus_L_GCJ=yes
19113 hardcode_shlibpath_var_GCJ=no
19116 sysv4)
19117 case $host_vendor in
19118 sni)
19119 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19120 hardcode_direct_GCJ=yes # is this really true???
19122 siemens)
19123 ## LD is ld it makes a PLAMLIB
19124 ## CC just makes a GrossModule.
19125 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
19126 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
19127 hardcode_direct_GCJ=no
19129 motorola)
19130 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19131 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
19133 esac
19134 runpath_var='LD_RUN_PATH'
19135 hardcode_shlibpath_var_GCJ=no
19138 sysv4.3*)
19139 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19140 hardcode_shlibpath_var_GCJ=no
19141 export_dynamic_flag_spec_GCJ='-Bexport'
19144 sysv4*MP*)
19145 if test -d /usr/nec; then
19146 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19147 hardcode_shlibpath_var_GCJ=no
19148 runpath_var=LD_RUN_PATH
19149 hardcode_runpath_var=yes
19150 ld_shlibs_GCJ=yes
19154 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
19155 no_undefined_flag_GCJ='${wl}-z,text'
19156 archive_cmds_need_lc_GCJ=no
19157 hardcode_shlibpath_var_GCJ=no
19158 runpath_var='LD_RUN_PATH'
19160 if test "$GCC" = yes; then
19161 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19162 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19163 else
19164 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19165 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19169 sysv5* | sco3.2v5* | sco5v6*)
19170 # Note: We can NOT use -z defs as we might desire, because we do not
19171 # link with -lc, and that would cause any symbols used from libc to
19172 # always be unresolved, which means just about no library would
19173 # ever link correctly. If we're not using GNU ld we use -z text
19174 # though, which does catch some bad symbols but isn't as heavy-handed
19175 # as -z defs.
19176 no_undefined_flag_GCJ='${wl}-z,text'
19177 allow_undefined_flag_GCJ='${wl}-z,nodefs'
19178 archive_cmds_need_lc_GCJ=no
19179 hardcode_shlibpath_var_GCJ=no
19180 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
19181 hardcode_libdir_separator_GCJ=':'
19182 link_all_deplibs_GCJ=yes
19183 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
19184 runpath_var='LD_RUN_PATH'
19186 if test "$GCC" = yes; then
19187 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19188 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19189 else
19190 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19191 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19195 uts4*)
19196 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19197 hardcode_libdir_flag_spec_GCJ='-L$libdir'
19198 hardcode_shlibpath_var_GCJ=no
19202 ld_shlibs_GCJ=no
19204 esac
19207 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
19208 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
19209 test "$ld_shlibs_GCJ" = no && can_build_shared=no
19212 # Do we need to explicitly link libc?
19214 case "x$archive_cmds_need_lc_GCJ" in
19215 x|xyes)
19216 # Assume -lc should be added
19217 archive_cmds_need_lc_GCJ=yes
19219 if test "$enable_shared" = yes && test "$GCC" = yes; then
19220 case $archive_cmds_GCJ in
19221 *'~'*)
19222 # FIXME: we may have to deal with multi-command sequences.
19224 '$CC '*)
19225 # Test whether the compiler implicitly links with -lc since on some
19226 # systems, -lgcc has to come before -lc. If gcc already passes -lc
19227 # to ld, don't add -lc before -lgcc.
19228 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
19229 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
19230 $rm conftest*
19231 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19233 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19234 (eval $ac_compile) 2>&5
19235 ac_status=$?
19236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19237 (exit $ac_status); } 2>conftest.err; then
19238 soname=conftest
19239 lib=conftest
19240 libobjs=conftest.$ac_objext
19241 deplibs=
19242 wl=$lt_prog_compiler_wl_GCJ
19243 pic_flag=$lt_prog_compiler_pic_GCJ
19244 compiler_flags=-v
19245 linker_flags=-v
19246 verstring=
19247 output_objdir=.
19248 libname=conftest
19249 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
19250 allow_undefined_flag_GCJ=
19251 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
19252 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
19253 ac_status=$?
19254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19255 (exit $ac_status); }
19256 then
19257 archive_cmds_need_lc_GCJ=no
19258 else
19259 archive_cmds_need_lc_GCJ=yes
19261 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
19262 else
19263 cat conftest.err 1>&5
19265 $rm conftest*
19266 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
19267 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
19269 esac
19272 esac
19274 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
19275 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
19276 library_names_spec=
19277 libname_spec='lib$name'
19278 soname_spec=
19279 shrext_cmds=".so"
19280 postinstall_cmds=
19281 postuninstall_cmds=
19282 finish_cmds=
19283 finish_eval=
19284 shlibpath_var=
19285 shlibpath_overrides_runpath=unknown
19286 version_type=none
19287 dynamic_linker="$host_os ld.so"
19288 sys_lib_dlsearch_path_spec="/lib /usr/lib"
19289 if test "$GCC" = yes; then
19290 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
19291 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
19292 # if the path contains ";" then we assume it to be the separator
19293 # otherwise default to the standard path separator (i.e. ":") - it is
19294 # assumed that no part of a normal pathname contains ";" but that should
19295 # okay in the real world where ";" in dirpaths is itself problematic.
19296 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19297 else
19298 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
19300 else
19301 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
19303 need_lib_prefix=unknown
19304 hardcode_into_libs=no
19306 # when you set need_version to no, make sure it does not cause -set_version
19307 # flags to be left without arguments
19308 need_version=unknown
19310 case $host_os in
19311 aix3*)
19312 version_type=linux
19313 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
19314 shlibpath_var=LIBPATH
19316 # AIX 3 has no versioning support, so we append a major version to the name.
19317 soname_spec='${libname}${release}${shared_ext}$major'
19320 aix4* | aix5*)
19321 version_type=linux
19322 need_lib_prefix=no
19323 need_version=no
19324 hardcode_into_libs=yes
19325 if test "$host_cpu" = ia64; then
19326 # AIX 5 supports IA64
19327 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
19328 shlibpath_var=LD_LIBRARY_PATH
19329 else
19330 # With GCC up to 2.95.x, collect2 would create an import file
19331 # for dependence libraries. The import file would start with
19332 # the line `#! .'. This would cause the generated library to
19333 # depend on `.', always an invalid library. This was fixed in
19334 # development snapshots of GCC prior to 3.0.
19335 case $host_os in
19336 aix4 | aix4.[01] | aix4.[01].*)
19337 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
19338 echo ' yes '
19339 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
19341 else
19342 can_build_shared=no
19345 esac
19346 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
19347 # soname into executable. Probably we can add versioning support to
19348 # collect2, so additional links can be useful in future.
19349 if test "$aix_use_runtimelinking" = yes; then
19350 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
19351 # instead of lib<name>.a to let people know that these are not
19352 # typical AIX shared libraries.
19353 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19354 else
19355 # We preserve .a as extension for shared libraries through AIX4.2
19356 # and later when we are not doing run time linking.
19357 library_names_spec='${libname}${release}.a $libname.a'
19358 soname_spec='${libname}${release}${shared_ext}$major'
19360 shlibpath_var=LIBPATH
19364 amigaos*)
19365 library_names_spec='$libname.ixlibrary $libname.a'
19366 # Create ${libname}_ixlibrary.a entries in /sys/libs.
19367 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''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'
19370 beos*)
19371 library_names_spec='${libname}${shared_ext}'
19372 dynamic_linker="$host_os ld.so"
19373 shlibpath_var=LIBRARY_PATH
19376 bsdi[45]*)
19377 version_type=linux
19378 need_version=no
19379 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19380 soname_spec='${libname}${release}${shared_ext}$major'
19381 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
19382 shlibpath_var=LD_LIBRARY_PATH
19383 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
19384 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
19385 # the default ld.so.conf also contains /usr/contrib/lib and
19386 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
19387 # libtool to hard-code these into programs
19390 cygwin* | mingw* | pw32*)
19391 version_type=windows
19392 shrext_cmds=".dll"
19393 need_version=no
19394 need_lib_prefix=no
19396 case $GCC,$host_os in
19397 yes,cygwin* | yes,mingw* | yes,pw32*)
19398 library_names_spec='$libname.dll.a'
19399 # DLL is installed to $(libdir)/../bin by postinstall_cmds
19400 postinstall_cmds='base_file=`basename \${file}`~
19401 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
19402 dldir=$destdir/`dirname \$dlpath`~
19403 test -d \$dldir || mkdir -p \$dldir~
19404 $install_prog $dir/$dlname \$dldir/$dlname~
19405 chmod a+x \$dldir/$dlname'
19406 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
19407 dlpath=$dir/\$dldll~
19408 $rm \$dlpath'
19409 shlibpath_overrides_runpath=yes
19411 case $host_os in
19412 cygwin*)
19413 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
19414 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19415 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
19417 mingw*)
19418 # MinGW DLLs use traditional 'lib' prefix
19419 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19420 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
19421 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
19422 # It is most probably a Windows format PATH printed by
19423 # mingw gcc, but we are running on Cygwin. Gcc prints its search
19424 # path with ; separators, and with drive letters. We can handle the
19425 # drive letters (cygwin fileutils understands them), so leave them,
19426 # especially as we might pass files found there to a mingw objdump,
19427 # which wouldn't understand a cygwinified path. Ahh.
19428 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19429 else
19430 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
19433 pw32*)
19434 # pw32 DLLs use 'pw' prefix rather than 'lib'
19435 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19437 esac
19441 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
19443 esac
19444 dynamic_linker='Win32 ld.exe'
19445 # FIXME: first we should search . and the directory the executable is in
19446 shlibpath_var=PATH
19449 darwin* | rhapsody*)
19450 dynamic_linker="$host_os dyld"
19451 version_type=darwin
19452 need_lib_prefix=no
19453 need_version=no
19454 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
19455 soname_spec='${libname}${release}${major}$shared_ext'
19456 shlibpath_overrides_runpath=yes
19457 shlibpath_var=DYLD_LIBRARY_PATH
19458 shrext_cmds='.dylib'
19459 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
19460 if test "$GCC" = yes; then
19461 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
19462 else
19463 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
19465 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
19468 dgux*)
19469 version_type=linux
19470 need_lib_prefix=no
19471 need_version=no
19472 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
19473 soname_spec='${libname}${release}${shared_ext}$major'
19474 shlibpath_var=LD_LIBRARY_PATH
19477 freebsd1*)
19478 dynamic_linker=no
19481 kfreebsd*-gnu)
19482 version_type=linux
19483 need_lib_prefix=no
19484 need_version=no
19485 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19486 soname_spec='${libname}${release}${shared_ext}$major'
19487 shlibpath_var=LD_LIBRARY_PATH
19488 shlibpath_overrides_runpath=no
19489 hardcode_into_libs=yes
19490 dynamic_linker='GNU ld.so'
19493 freebsd* | dragonfly*)
19494 # DragonFly does not have aout. When/if they implement a new
19495 # versioning mechanism, adjust this.
19496 if test -x /usr/bin/objformat; then
19497 objformat=`/usr/bin/objformat`
19498 else
19499 case $host_os in
19500 freebsd[123]*) objformat=aout ;;
19501 *) objformat=elf ;;
19502 esac
19504 version_type=freebsd-$objformat
19505 case $version_type in
19506 freebsd-elf*)
19507 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19508 need_version=no
19509 need_lib_prefix=no
19511 freebsd-*)
19512 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
19513 need_version=yes
19515 esac
19516 shlibpath_var=LD_LIBRARY_PATH
19517 case $host_os in
19518 freebsd2*)
19519 shlibpath_overrides_runpath=yes
19521 freebsd3.[01]* | freebsdelf3.[01]*)
19522 shlibpath_overrides_runpath=yes
19523 hardcode_into_libs=yes
19525 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
19526 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
19527 shlibpath_overrides_runpath=no
19528 hardcode_into_libs=yes
19530 freebsd*) # from 4.6 on
19531 shlibpath_overrides_runpath=yes
19532 hardcode_into_libs=yes
19534 esac
19537 gnu*)
19538 version_type=linux
19539 need_lib_prefix=no
19540 need_version=no
19541 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
19542 soname_spec='${libname}${release}${shared_ext}$major'
19543 shlibpath_var=LD_LIBRARY_PATH
19544 hardcode_into_libs=yes
19547 hpux9* | hpux10* | hpux11*)
19548 # Give a soname corresponding to the major version so that dld.sl refuses to
19549 # link against other versions.
19550 version_type=sunos
19551 need_lib_prefix=no
19552 need_version=no
19553 case $host_cpu in
19554 ia64*)
19555 shrext_cmds='.so'
19556 hardcode_into_libs=yes
19557 dynamic_linker="$host_os dld.so"
19558 shlibpath_var=LD_LIBRARY_PATH
19559 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19560 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19561 soname_spec='${libname}${release}${shared_ext}$major'
19562 if test "X$HPUX_IA64_MODE" = X32; then
19563 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
19564 else
19565 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
19567 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19569 hppa*64*)
19570 shrext_cmds='.sl'
19571 hardcode_into_libs=yes
19572 dynamic_linker="$host_os dld.sl"
19573 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
19574 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19575 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19576 soname_spec='${libname}${release}${shared_ext}$major'
19577 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
19578 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19581 shrext_cmds='.sl'
19582 dynamic_linker="$host_os dld.sl"
19583 shlibpath_var=SHLIB_PATH
19584 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
19585 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19586 soname_spec='${libname}${release}${shared_ext}$major'
19588 esac
19589 # HP-UX runs *really* slowly unless shared libraries are mode 555.
19590 postinstall_cmds='chmod 555 $lib'
19593 interix3*)
19594 version_type=linux
19595 need_lib_prefix=no
19596 need_version=no
19597 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19598 soname_spec='${libname}${release}${shared_ext}$major'
19599 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
19600 shlibpath_var=LD_LIBRARY_PATH
19601 shlibpath_overrides_runpath=no
19602 hardcode_into_libs=yes
19605 irix5* | irix6* | nonstopux*)
19606 case $host_os in
19607 nonstopux*) version_type=nonstopux ;;
19609 if test "$lt_cv_prog_gnu_ld" = yes; then
19610 version_type=linux
19611 else
19612 version_type=irix
19613 fi ;;
19614 esac
19615 need_lib_prefix=no
19616 need_version=no
19617 soname_spec='${libname}${release}${shared_ext}$major'
19618 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
19619 case $host_os in
19620 irix5* | nonstopux*)
19621 libsuff= shlibsuff=
19624 case $LD in # libtool.m4 will add one of these switches to LD
19625 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
19626 libsuff= shlibsuff= libmagic=32-bit;;
19627 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
19628 libsuff=32 shlibsuff=N32 libmagic=N32;;
19629 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
19630 libsuff=64 shlibsuff=64 libmagic=64-bit;;
19631 *) libsuff= shlibsuff= libmagic=never-match;;
19632 esac
19634 esac
19635 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
19636 shlibpath_overrides_runpath=no
19637 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
19638 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
19639 hardcode_into_libs=yes
19642 # No shared lib support for Linux oldld, aout, or coff.
19643 linux*oldld* | linux*aout* | linux*coff*)
19644 dynamic_linker=no
19647 # This must be Linux ELF.
19648 linux*)
19649 version_type=linux
19650 need_lib_prefix=no
19651 need_version=no
19652 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19653 soname_spec='${libname}${release}${shared_ext}$major'
19654 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
19655 shlibpath_var=LD_LIBRARY_PATH
19656 shlibpath_overrides_runpath=no
19657 # This implies no fast_install, which is unacceptable.
19658 # Some rework will be needed to allow for fast_install
19659 # before this can be enabled.
19660 hardcode_into_libs=yes
19662 # Append ld.so.conf contents to the search path
19663 if test -f /etc/ld.so.conf; then
19664 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
19665 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
19668 # We used to test for /lib/ld.so.1 and disable shared libraries on
19669 # powerpc, because MkLinux only supported shared libraries with the
19670 # GNU dynamic linker. Since this was broken with cross compilers,
19671 # most powerpc-linux boxes support dynamic linking these days and
19672 # people can always --disable-shared, the test was removed, and we
19673 # assume the GNU/Linux dynamic linker is in use.
19674 dynamic_linker='GNU/Linux ld.so'
19677 knetbsd*-gnu)
19678 version_type=linux
19679 need_lib_prefix=no
19680 need_version=no
19681 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19682 soname_spec='${libname}${release}${shared_ext}$major'
19683 shlibpath_var=LD_LIBRARY_PATH
19684 shlibpath_overrides_runpath=no
19685 hardcode_into_libs=yes
19686 dynamic_linker='GNU ld.so'
19689 netbsd*)
19690 version_type=sunos
19691 need_lib_prefix=no
19692 need_version=no
19693 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19694 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19695 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19696 dynamic_linker='NetBSD (a.out) ld.so'
19697 else
19698 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19699 soname_spec='${libname}${release}${shared_ext}$major'
19700 dynamic_linker='NetBSD ld.elf_so'
19702 shlibpath_var=LD_LIBRARY_PATH
19703 shlibpath_overrides_runpath=yes
19704 hardcode_into_libs=yes
19707 newsos6)
19708 version_type=linux
19709 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19710 shlibpath_var=LD_LIBRARY_PATH
19711 shlibpath_overrides_runpath=yes
19714 nto-qnx*)
19715 version_type=linux
19716 need_lib_prefix=no
19717 need_version=no
19718 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19719 soname_spec='${libname}${release}${shared_ext}$major'
19720 shlibpath_var=LD_LIBRARY_PATH
19721 shlibpath_overrides_runpath=yes
19724 openbsd*)
19725 version_type=sunos
19726 sys_lib_dlsearch_path_spec="/usr/lib"
19727 need_lib_prefix=no
19728 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
19729 case $host_os in
19730 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
19731 *) need_version=no ;;
19732 esac
19733 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19734 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19735 shlibpath_var=LD_LIBRARY_PATH
19736 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19737 case $host_os in
19738 openbsd2.[89] | openbsd2.[89].*)
19739 shlibpath_overrides_runpath=no
19742 shlibpath_overrides_runpath=yes
19744 esac
19745 else
19746 shlibpath_overrides_runpath=yes
19750 os2*)
19751 libname_spec='$name'
19752 shrext_cmds=".dll"
19753 need_lib_prefix=no
19754 library_names_spec='$libname${shared_ext} $libname.a'
19755 dynamic_linker='OS/2 ld.exe'
19756 shlibpath_var=LIBPATH
19759 osf3* | osf4* | osf5*)
19760 version_type=osf
19761 need_lib_prefix=no
19762 need_version=no
19763 soname_spec='${libname}${release}${shared_ext}$major'
19764 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19765 shlibpath_var=LD_LIBRARY_PATH
19766 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
19767 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
19770 solaris*)
19771 version_type=linux
19772 need_lib_prefix=no
19773 need_version=no
19774 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19775 soname_spec='${libname}${release}${shared_ext}$major'
19776 shlibpath_var=LD_LIBRARY_PATH
19777 shlibpath_overrides_runpath=yes
19778 hardcode_into_libs=yes
19779 # ldd complains unless libraries are executable
19780 postinstall_cmds='chmod +x $lib'
19783 sunos4*)
19784 version_type=sunos
19785 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19786 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
19787 shlibpath_var=LD_LIBRARY_PATH
19788 shlibpath_overrides_runpath=yes
19789 if test "$with_gnu_ld" = yes; then
19790 need_lib_prefix=no
19792 need_version=yes
19795 sysv4 | sysv4.3*)
19796 version_type=linux
19797 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19798 soname_spec='${libname}${release}${shared_ext}$major'
19799 shlibpath_var=LD_LIBRARY_PATH
19800 case $host_vendor in
19801 sni)
19802 shlibpath_overrides_runpath=no
19803 need_lib_prefix=no
19804 export_dynamic_flag_spec='${wl}-Blargedynsym'
19805 runpath_var=LD_RUN_PATH
19807 siemens)
19808 need_lib_prefix=no
19810 motorola)
19811 need_lib_prefix=no
19812 need_version=no
19813 shlibpath_overrides_runpath=no
19814 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
19816 esac
19819 sysv4*MP*)
19820 if test -d /usr/nec ;then
19821 version_type=linux
19822 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
19823 soname_spec='$libname${shared_ext}.$major'
19824 shlibpath_var=LD_LIBRARY_PATH
19828 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
19829 version_type=freebsd-elf
19830 need_lib_prefix=no
19831 need_version=no
19832 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19833 soname_spec='${libname}${release}${shared_ext}$major'
19834 shlibpath_var=LD_LIBRARY_PATH
19835 hardcode_into_libs=yes
19836 if test "$with_gnu_ld" = yes; then
19837 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
19838 shlibpath_overrides_runpath=no
19839 else
19840 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
19841 shlibpath_overrides_runpath=yes
19842 case $host_os in
19843 sco3.2v5*)
19844 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
19846 esac
19848 sys_lib_dlsearch_path_spec='/usr/lib'
19851 uts4*)
19852 version_type=linux
19853 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19854 soname_spec='${libname}${release}${shared_ext}$major'
19855 shlibpath_var=LD_LIBRARY_PATH
19859 dynamic_linker=no
19861 esac
19862 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
19863 echo "${ECHO_T}$dynamic_linker" >&6; }
19864 test "$dynamic_linker" = no && can_build_shared=no
19866 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
19867 if test "$GCC" = yes; then
19868 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
19871 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
19872 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
19873 hardcode_action_GCJ=
19874 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
19875 test -n "$runpath_var_GCJ" || \
19876 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
19878 # We can hardcode non-existant directories.
19879 if test "$hardcode_direct_GCJ" != no &&
19880 # If the only mechanism to avoid hardcoding is shlibpath_var, we
19881 # have to relink, otherwise we might link with an installed library
19882 # when we should be linking with a yet-to-be-installed one
19883 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
19884 test "$hardcode_minus_L_GCJ" != no; then
19885 # Linking always hardcodes the temporary library directory.
19886 hardcode_action_GCJ=relink
19887 else
19888 # We can link without hardcoding, and we can hardcode nonexisting dirs.
19889 hardcode_action_GCJ=immediate
19891 else
19892 # We cannot hardcode anything, or else we can only hardcode existing
19893 # directories.
19894 hardcode_action_GCJ=unsupported
19896 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
19897 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
19899 if test "$hardcode_action_GCJ" = relink; then
19900 # Fast installation is not supported
19901 enable_fast_install=no
19902 elif test "$shlibpath_overrides_runpath" = yes ||
19903 test "$enable_shared" = no; then
19904 # Fast installation is not necessary
19905 enable_fast_install=needless
19909 # The else clause should only fire when bootstrapping the
19910 # libtool distribution, otherwise you forgot to ship ltmain.sh
19911 # with your package, and you will get complaints that there are
19912 # no rules to generate ltmain.sh.
19913 if test -f "$ltmain"; then
19914 # See if we are running on zsh, and set the options which allow our commands through
19915 # without removal of \ escapes.
19916 if test -n "${ZSH_VERSION+set}" ; then
19917 setopt NO_GLOB_SUBST
19919 # Now quote all the things that may contain metacharacters while being
19920 # careful not to overquote the AC_SUBSTed values. We take copies of the
19921 # variables and quote the copies for generation of the libtool script.
19922 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19923 SED SHELL STRIP \
19924 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19925 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19926 deplibs_check_method reload_flag reload_cmds need_locks \
19927 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19928 lt_cv_sys_global_symbol_to_c_name_address \
19929 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19930 old_postinstall_cmds old_postuninstall_cmds \
19931 compiler_GCJ \
19932 CC_GCJ \
19933 LD_GCJ \
19934 lt_prog_compiler_wl_GCJ \
19935 lt_prog_compiler_pic_GCJ \
19936 lt_prog_compiler_static_GCJ \
19937 lt_prog_compiler_no_builtin_flag_GCJ \
19938 export_dynamic_flag_spec_GCJ \
19939 thread_safe_flag_spec_GCJ \
19940 whole_archive_flag_spec_GCJ \
19941 enable_shared_with_static_runtimes_GCJ \
19942 old_archive_cmds_GCJ \
19943 old_archive_from_new_cmds_GCJ \
19944 predep_objects_GCJ \
19945 postdep_objects_GCJ \
19946 predeps_GCJ \
19947 postdeps_GCJ \
19948 compiler_lib_search_path_GCJ \
19949 archive_cmds_GCJ \
19950 archive_expsym_cmds_GCJ \
19951 postinstall_cmds_GCJ \
19952 postuninstall_cmds_GCJ \
19953 old_archive_from_expsyms_cmds_GCJ \
19954 allow_undefined_flag_GCJ \
19955 no_undefined_flag_GCJ \
19956 export_symbols_cmds_GCJ \
19957 hardcode_libdir_flag_spec_GCJ \
19958 hardcode_libdir_flag_spec_ld_GCJ \
19959 hardcode_libdir_separator_GCJ \
19960 hardcode_automatic_GCJ \
19961 module_cmds_GCJ \
19962 module_expsym_cmds_GCJ \
19963 lt_cv_prog_compiler_c_o_GCJ \
19964 exclude_expsyms_GCJ \
19965 include_expsyms_GCJ; do
19967 case $var in
19968 old_archive_cmds_GCJ | \
19969 old_archive_from_new_cmds_GCJ | \
19970 archive_cmds_GCJ | \
19971 archive_expsym_cmds_GCJ | \
19972 module_cmds_GCJ | \
19973 module_expsym_cmds_GCJ | \
19974 old_archive_from_expsyms_cmds_GCJ | \
19975 export_symbols_cmds_GCJ | \
19976 extract_expsyms_cmds | reload_cmds | finish_cmds | \
19977 postinstall_cmds | postuninstall_cmds | \
19978 old_postinstall_cmds | old_postuninstall_cmds | \
19979 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19980 # Double-quote double-evaled strings.
19981 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19984 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19986 esac
19987 done
19989 case $lt_echo in
19990 *'\$0 --fallback-echo"')
19991 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19993 esac
19995 cfgfile="$ofile"
19997 cat <<__EOF__ >> "$cfgfile"
19998 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
20000 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20002 # Shell to use when invoking shell scripts.
20003 SHELL=$lt_SHELL
20005 # Whether or not to build shared libraries.
20006 build_libtool_libs=$enable_shared
20008 # Whether or not to build static libraries.
20009 build_old_libs=$enable_static
20011 # Whether or not to add -lc for building shared libraries.
20012 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
20014 # Whether or not to disallow shared libs when runtime libs are static
20015 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
20017 # Whether or not to optimize for fast installation.
20018 fast_install=$enable_fast_install
20020 # The host system.
20021 host_alias=$host_alias
20022 host=$host
20023 host_os=$host_os
20025 # The build system.
20026 build_alias=$build_alias
20027 build=$build
20028 build_os=$build_os
20030 # An echo program that does not interpret backslashes.
20031 echo=$lt_echo
20033 # The archiver.
20034 AR=$lt_AR
20035 AR_FLAGS=$lt_AR_FLAGS
20037 # A C compiler.
20038 LTCC=$lt_LTCC
20040 # LTCC compiler flags.
20041 LTCFLAGS=$lt_LTCFLAGS
20043 # A language-specific compiler.
20044 CC=$lt_compiler_GCJ
20046 # Is the compiler the GNU C compiler?
20047 with_gcc=$GCC_GCJ
20049 # An ERE matcher.
20050 EGREP=$lt_EGREP
20052 # The linker used to build libraries.
20053 LD=$lt_LD_GCJ
20055 # Whether we need hard or soft links.
20056 LN_S=$lt_LN_S
20058 # A BSD-compatible nm program.
20059 NM=$lt_NM
20061 # A symbol stripping program
20062 STRIP=$lt_STRIP
20064 # Used to examine libraries when file_magic_cmd begins "file"
20065 MAGIC_CMD=$MAGIC_CMD
20067 # Used on cygwin: DLL creation program.
20068 DLLTOOL="$DLLTOOL"
20070 # Used on cygwin: object dumper.
20071 OBJDUMP="$OBJDUMP"
20073 # Used on cygwin: assembler.
20074 AS="$AS"
20076 # The name of the directory that contains temporary libtool files.
20077 objdir=$objdir
20079 # How to create reloadable object files.
20080 reload_flag=$lt_reload_flag
20081 reload_cmds=$lt_reload_cmds
20083 # How to pass a linker flag through the compiler.
20084 wl=$lt_lt_prog_compiler_wl_GCJ
20086 # Object file suffix (normally "o").
20087 objext="$ac_objext"
20089 # Old archive suffix (normally "a").
20090 libext="$libext"
20092 # Shared library suffix (normally ".so").
20093 shrext_cmds='$shrext_cmds'
20095 # Executable file suffix (normally "").
20096 exeext="$exeext"
20098 # Additional compiler flags for building library objects.
20099 pic_flag=$lt_lt_prog_compiler_pic_GCJ
20100 pic_mode=$pic_mode
20102 # What is the maximum length of a command?
20103 max_cmd_len=$lt_cv_sys_max_cmd_len
20105 # Does compiler simultaneously support -c and -o options?
20106 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
20108 # Must we lock files when doing compilation?
20109 need_locks=$lt_need_locks
20111 # Do we need the lib prefix for modules?
20112 need_lib_prefix=$need_lib_prefix
20114 # Do we need a version for libraries?
20115 need_version=$need_version
20117 # Whether dlopen is supported.
20118 dlopen_support=$enable_dlopen
20120 # Whether dlopen of programs is supported.
20121 dlopen_self=$enable_dlopen_self
20123 # Whether dlopen of statically linked programs is supported.
20124 dlopen_self_static=$enable_dlopen_self_static
20126 # Compiler flag to prevent dynamic linking.
20127 link_static_flag=$lt_lt_prog_compiler_static_GCJ
20129 # Compiler flag to turn off builtin functions.
20130 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
20132 # Compiler flag to allow reflexive dlopens.
20133 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
20135 # Compiler flag to generate shared objects directly from archives.
20136 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
20138 # Compiler flag to generate thread-safe objects.
20139 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
20141 # Library versioning type.
20142 version_type=$version_type
20144 # Format of library name prefix.
20145 libname_spec=$lt_libname_spec
20147 # List of archive names. First name is the real one, the rest are links.
20148 # The last name is the one that the linker finds with -lNAME.
20149 library_names_spec=$lt_library_names_spec
20151 # The coded name of the library, if different from the real name.
20152 soname_spec=$lt_soname_spec
20154 # Commands used to build and install an old-style archive.
20155 RANLIB=$lt_RANLIB
20156 old_archive_cmds=$lt_old_archive_cmds_GCJ
20157 old_postinstall_cmds=$lt_old_postinstall_cmds
20158 old_postuninstall_cmds=$lt_old_postuninstall_cmds
20160 # Create an old-style archive from a shared archive.
20161 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
20163 # Create a temporary old-style archive to link instead of a shared archive.
20164 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
20166 # Commands used to build and install a shared archive.
20167 archive_cmds=$lt_archive_cmds_GCJ
20168 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
20169 postinstall_cmds=$lt_postinstall_cmds
20170 postuninstall_cmds=$lt_postuninstall_cmds
20172 # Commands used to build a loadable module (assumed same as above if empty)
20173 module_cmds=$lt_module_cmds_GCJ
20174 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
20176 # Commands to strip libraries.
20177 old_striplib=$lt_old_striplib
20178 striplib=$lt_striplib
20180 # Dependencies to place before the objects being linked to create a
20181 # shared library.
20182 predep_objects=$lt_predep_objects_GCJ
20184 # Dependencies to place after the objects being linked to create a
20185 # shared library.
20186 postdep_objects=$lt_postdep_objects_GCJ
20188 # Dependencies to place before the objects being linked to create a
20189 # shared library.
20190 predeps=$lt_predeps_GCJ
20192 # Dependencies to place after the objects being linked to create a
20193 # shared library.
20194 postdeps=$lt_postdeps_GCJ
20196 # The library search path used internally by the compiler when linking
20197 # a shared library.
20198 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
20200 # Method to check whether dependent libraries are shared objects.
20201 deplibs_check_method=$lt_deplibs_check_method
20203 # Command to use when deplibs_check_method == file_magic.
20204 file_magic_cmd=$lt_file_magic_cmd
20206 # Flag that allows shared libraries with undefined symbols to be built.
20207 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
20209 # Flag that forces no undefined symbols.
20210 no_undefined_flag=$lt_no_undefined_flag_GCJ
20212 # Commands used to finish a libtool library installation in a directory.
20213 finish_cmds=$lt_finish_cmds
20215 # Same as above, but a single script fragment to be evaled but not shown.
20216 finish_eval=$lt_finish_eval
20218 # Take the output of nm and produce a listing of raw symbols and C names.
20219 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20221 # Transform the output of nm in a proper C declaration
20222 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20224 # Transform the output of nm in a C name address pair
20225 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20227 # This is the shared library runtime path variable.
20228 runpath_var=$runpath_var
20230 # This is the shared library path variable.
20231 shlibpath_var=$shlibpath_var
20233 # Is shlibpath searched before the hard-coded library search path?
20234 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20236 # How to hardcode a shared library path into an executable.
20237 hardcode_action=$hardcode_action_GCJ
20239 # Whether we should hardcode library paths into libraries.
20240 hardcode_into_libs=$hardcode_into_libs
20242 # Flag to hardcode \$libdir into a binary during linking.
20243 # This must work even if \$libdir does not exist.
20244 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
20246 # If ld is used when linking, flag to hardcode \$libdir into
20247 # a binary during linking. This must work even if \$libdir does
20248 # not exist.
20249 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
20251 # Whether we need a single -rpath flag with a separated argument.
20252 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
20254 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20255 # resulting binary.
20256 hardcode_direct=$hardcode_direct_GCJ
20258 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20259 # resulting binary.
20260 hardcode_minus_L=$hardcode_minus_L_GCJ
20262 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20263 # the resulting binary.
20264 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
20266 # Set to yes if building a shared library automatically hardcodes DIR into the library
20267 # and all subsequent libraries and executables linked against it.
20268 hardcode_automatic=$hardcode_automatic_GCJ
20270 # Variables whose values should be saved in libtool wrapper scripts and
20271 # restored at relink time.
20272 variables_saved_for_relink="$variables_saved_for_relink"
20274 # Whether libtool must link a program against all its dependency libraries.
20275 link_all_deplibs=$link_all_deplibs_GCJ
20277 # Compile-time system search path for libraries
20278 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20280 # Run-time system search path for libraries
20281 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20283 # Fix the shell variable \$srcfile for the compiler.
20284 fix_srcfile_path="$fix_srcfile_path_GCJ"
20286 # Set to yes if exported symbols are required.
20287 always_export_symbols=$always_export_symbols_GCJ
20289 # The commands to list exported symbols.
20290 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
20292 # The commands to extract the exported symbol list from a shared archive.
20293 extract_expsyms_cmds=$lt_extract_expsyms_cmds
20295 # Symbols that should not be listed in the preloaded symbols.
20296 exclude_expsyms=$lt_exclude_expsyms_GCJ
20298 # Symbols that must always be exported.
20299 include_expsyms=$lt_include_expsyms_GCJ
20301 # ### END LIBTOOL TAG CONFIG: $tagname
20303 __EOF__
20306 else
20307 # If there is no Makefile yet, we rely on a make rule to execute
20308 # `config.status --recheck' to rerun these tests and create the
20309 # libtool script then.
20310 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
20311 if test -f "$ltmain_in"; then
20312 test -f Makefile && make "$ltmain"
20317 ac_ext=c
20318 ac_cpp='$CPP $CPPFLAGS'
20319 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20320 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20321 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20323 CC="$lt_save_CC"
20325 else
20326 tagname=""
20331 ac_ext=c
20332 ac_cpp='$CPP $CPPFLAGS'
20333 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20334 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20335 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20338 # Source file extension for RC test sources.
20339 ac_ext=rc
20341 # Object file extension for compiled RC test sources.
20342 objext=o
20343 objext_RC=$objext
20345 # Code to be used in simple compile tests
20346 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
20348 # Code to be used in simple link tests
20349 lt_simple_link_test_code="$lt_simple_compile_test_code"
20351 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
20353 # If no C compiler was specified, use CC.
20354 LTCC=${LTCC-"$CC"}
20356 # If no C compiler flags were specified, use CFLAGS.
20357 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
20359 # Allow CC to be a program name with arguments.
20360 compiler=$CC
20363 # save warnings/boilerplate of simple test code
20364 ac_outfile=conftest.$ac_objext
20365 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
20366 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
20367 _lt_compiler_boilerplate=`cat conftest.err`
20368 $rm conftest*
20370 ac_outfile=conftest.$ac_objext
20371 printf "$lt_simple_link_test_code" >conftest.$ac_ext
20372 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
20373 _lt_linker_boilerplate=`cat conftest.err`
20374 $rm conftest*
20377 # Allow CC to be a program name with arguments.
20378 lt_save_CC="$CC"
20379 CC=${RC-"windres"}
20380 compiler=$CC
20381 compiler_RC=$CC
20382 for cc_temp in $compiler""; do
20383 case $cc_temp in
20384 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
20385 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
20386 \-*) ;;
20387 *) break;;
20388 esac
20389 done
20390 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
20392 lt_cv_prog_compiler_c_o_RC=yes
20394 # The else clause should only fire when bootstrapping the
20395 # libtool distribution, otherwise you forgot to ship ltmain.sh
20396 # with your package, and you will get complaints that there are
20397 # no rules to generate ltmain.sh.
20398 if test -f "$ltmain"; then
20399 # See if we are running on zsh, and set the options which allow our commands through
20400 # without removal of \ escapes.
20401 if test -n "${ZSH_VERSION+set}" ; then
20402 setopt NO_GLOB_SUBST
20404 # Now quote all the things that may contain metacharacters while being
20405 # careful not to overquote the AC_SUBSTed values. We take copies of the
20406 # variables and quote the copies for generation of the libtool script.
20407 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
20408 SED SHELL STRIP \
20409 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20410 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20411 deplibs_check_method reload_flag reload_cmds need_locks \
20412 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20413 lt_cv_sys_global_symbol_to_c_name_address \
20414 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20415 old_postinstall_cmds old_postuninstall_cmds \
20416 compiler_RC \
20417 CC_RC \
20418 LD_RC \
20419 lt_prog_compiler_wl_RC \
20420 lt_prog_compiler_pic_RC \
20421 lt_prog_compiler_static_RC \
20422 lt_prog_compiler_no_builtin_flag_RC \
20423 export_dynamic_flag_spec_RC \
20424 thread_safe_flag_spec_RC \
20425 whole_archive_flag_spec_RC \
20426 enable_shared_with_static_runtimes_RC \
20427 old_archive_cmds_RC \
20428 old_archive_from_new_cmds_RC \
20429 predep_objects_RC \
20430 postdep_objects_RC \
20431 predeps_RC \
20432 postdeps_RC \
20433 compiler_lib_search_path_RC \
20434 archive_cmds_RC \
20435 archive_expsym_cmds_RC \
20436 postinstall_cmds_RC \
20437 postuninstall_cmds_RC \
20438 old_archive_from_expsyms_cmds_RC \
20439 allow_undefined_flag_RC \
20440 no_undefined_flag_RC \
20441 export_symbols_cmds_RC \
20442 hardcode_libdir_flag_spec_RC \
20443 hardcode_libdir_flag_spec_ld_RC \
20444 hardcode_libdir_separator_RC \
20445 hardcode_automatic_RC \
20446 module_cmds_RC \
20447 module_expsym_cmds_RC \
20448 lt_cv_prog_compiler_c_o_RC \
20449 exclude_expsyms_RC \
20450 include_expsyms_RC; do
20452 case $var in
20453 old_archive_cmds_RC | \
20454 old_archive_from_new_cmds_RC | \
20455 archive_cmds_RC | \
20456 archive_expsym_cmds_RC | \
20457 module_cmds_RC | \
20458 module_expsym_cmds_RC | \
20459 old_archive_from_expsyms_cmds_RC | \
20460 export_symbols_cmds_RC | \
20461 extract_expsyms_cmds | reload_cmds | finish_cmds | \
20462 postinstall_cmds | postuninstall_cmds | \
20463 old_postinstall_cmds | old_postuninstall_cmds | \
20464 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20465 # Double-quote double-evaled strings.
20466 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
20469 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20471 esac
20472 done
20474 case $lt_echo in
20475 *'\$0 --fallback-echo"')
20476 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20478 esac
20480 cfgfile="$ofile"
20482 cat <<__EOF__ >> "$cfgfile"
20483 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
20485 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20487 # Shell to use when invoking shell scripts.
20488 SHELL=$lt_SHELL
20490 # Whether or not to build shared libraries.
20491 build_libtool_libs=$enable_shared
20493 # Whether or not to build static libraries.
20494 build_old_libs=$enable_static
20496 # Whether or not to add -lc for building shared libraries.
20497 build_libtool_need_lc=$archive_cmds_need_lc_RC
20499 # Whether or not to disallow shared libs when runtime libs are static
20500 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
20502 # Whether or not to optimize for fast installation.
20503 fast_install=$enable_fast_install
20505 # The host system.
20506 host_alias=$host_alias
20507 host=$host
20508 host_os=$host_os
20510 # The build system.
20511 build_alias=$build_alias
20512 build=$build
20513 build_os=$build_os
20515 # An echo program that does not interpret backslashes.
20516 echo=$lt_echo
20518 # The archiver.
20519 AR=$lt_AR
20520 AR_FLAGS=$lt_AR_FLAGS
20522 # A C compiler.
20523 LTCC=$lt_LTCC
20525 # LTCC compiler flags.
20526 LTCFLAGS=$lt_LTCFLAGS
20528 # A language-specific compiler.
20529 CC=$lt_compiler_RC
20531 # Is the compiler the GNU C compiler?
20532 with_gcc=$GCC_RC
20534 # An ERE matcher.
20535 EGREP=$lt_EGREP
20537 # The linker used to build libraries.
20538 LD=$lt_LD_RC
20540 # Whether we need hard or soft links.
20541 LN_S=$lt_LN_S
20543 # A BSD-compatible nm program.
20544 NM=$lt_NM
20546 # A symbol stripping program
20547 STRIP=$lt_STRIP
20549 # Used to examine libraries when file_magic_cmd begins "file"
20550 MAGIC_CMD=$MAGIC_CMD
20552 # Used on cygwin: DLL creation program.
20553 DLLTOOL="$DLLTOOL"
20555 # Used on cygwin: object dumper.
20556 OBJDUMP="$OBJDUMP"
20558 # Used on cygwin: assembler.
20559 AS="$AS"
20561 # The name of the directory that contains temporary libtool files.
20562 objdir=$objdir
20564 # How to create reloadable object files.
20565 reload_flag=$lt_reload_flag
20566 reload_cmds=$lt_reload_cmds
20568 # How to pass a linker flag through the compiler.
20569 wl=$lt_lt_prog_compiler_wl_RC
20571 # Object file suffix (normally "o").
20572 objext="$ac_objext"
20574 # Old archive suffix (normally "a").
20575 libext="$libext"
20577 # Shared library suffix (normally ".so").
20578 shrext_cmds='$shrext_cmds'
20580 # Executable file suffix (normally "").
20581 exeext="$exeext"
20583 # Additional compiler flags for building library objects.
20584 pic_flag=$lt_lt_prog_compiler_pic_RC
20585 pic_mode=$pic_mode
20587 # What is the maximum length of a command?
20588 max_cmd_len=$lt_cv_sys_max_cmd_len
20590 # Does compiler simultaneously support -c and -o options?
20591 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
20593 # Must we lock files when doing compilation?
20594 need_locks=$lt_need_locks
20596 # Do we need the lib prefix for modules?
20597 need_lib_prefix=$need_lib_prefix
20599 # Do we need a version for libraries?
20600 need_version=$need_version
20602 # Whether dlopen is supported.
20603 dlopen_support=$enable_dlopen
20605 # Whether dlopen of programs is supported.
20606 dlopen_self=$enable_dlopen_self
20608 # Whether dlopen of statically linked programs is supported.
20609 dlopen_self_static=$enable_dlopen_self_static
20611 # Compiler flag to prevent dynamic linking.
20612 link_static_flag=$lt_lt_prog_compiler_static_RC
20614 # Compiler flag to turn off builtin functions.
20615 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
20617 # Compiler flag to allow reflexive dlopens.
20618 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
20620 # Compiler flag to generate shared objects directly from archives.
20621 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
20623 # Compiler flag to generate thread-safe objects.
20624 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
20626 # Library versioning type.
20627 version_type=$version_type
20629 # Format of library name prefix.
20630 libname_spec=$lt_libname_spec
20632 # List of archive names. First name is the real one, the rest are links.
20633 # The last name is the one that the linker finds with -lNAME.
20634 library_names_spec=$lt_library_names_spec
20636 # The coded name of the library, if different from the real name.
20637 soname_spec=$lt_soname_spec
20639 # Commands used to build and install an old-style archive.
20640 RANLIB=$lt_RANLIB
20641 old_archive_cmds=$lt_old_archive_cmds_RC
20642 old_postinstall_cmds=$lt_old_postinstall_cmds
20643 old_postuninstall_cmds=$lt_old_postuninstall_cmds
20645 # Create an old-style archive from a shared archive.
20646 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
20648 # Create a temporary old-style archive to link instead of a shared archive.
20649 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
20651 # Commands used to build and install a shared archive.
20652 archive_cmds=$lt_archive_cmds_RC
20653 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
20654 postinstall_cmds=$lt_postinstall_cmds
20655 postuninstall_cmds=$lt_postuninstall_cmds
20657 # Commands used to build a loadable module (assumed same as above if empty)
20658 module_cmds=$lt_module_cmds_RC
20659 module_expsym_cmds=$lt_module_expsym_cmds_RC
20661 # Commands to strip libraries.
20662 old_striplib=$lt_old_striplib
20663 striplib=$lt_striplib
20665 # Dependencies to place before the objects being linked to create a
20666 # shared library.
20667 predep_objects=$lt_predep_objects_RC
20669 # Dependencies to place after the objects being linked to create a
20670 # shared library.
20671 postdep_objects=$lt_postdep_objects_RC
20673 # Dependencies to place before the objects being linked to create a
20674 # shared library.
20675 predeps=$lt_predeps_RC
20677 # Dependencies to place after the objects being linked to create a
20678 # shared library.
20679 postdeps=$lt_postdeps_RC
20681 # The library search path used internally by the compiler when linking
20682 # a shared library.
20683 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
20685 # Method to check whether dependent libraries are shared objects.
20686 deplibs_check_method=$lt_deplibs_check_method
20688 # Command to use when deplibs_check_method == file_magic.
20689 file_magic_cmd=$lt_file_magic_cmd
20691 # Flag that allows shared libraries with undefined symbols to be built.
20692 allow_undefined_flag=$lt_allow_undefined_flag_RC
20694 # Flag that forces no undefined symbols.
20695 no_undefined_flag=$lt_no_undefined_flag_RC
20697 # Commands used to finish a libtool library installation in a directory.
20698 finish_cmds=$lt_finish_cmds
20700 # Same as above, but a single script fragment to be evaled but not shown.
20701 finish_eval=$lt_finish_eval
20703 # Take the output of nm and produce a listing of raw symbols and C names.
20704 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20706 # Transform the output of nm in a proper C declaration
20707 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20709 # Transform the output of nm in a C name address pair
20710 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20712 # This is the shared library runtime path variable.
20713 runpath_var=$runpath_var
20715 # This is the shared library path variable.
20716 shlibpath_var=$shlibpath_var
20718 # Is shlibpath searched before the hard-coded library search path?
20719 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20721 # How to hardcode a shared library path into an executable.
20722 hardcode_action=$hardcode_action_RC
20724 # Whether we should hardcode library paths into libraries.
20725 hardcode_into_libs=$hardcode_into_libs
20727 # Flag to hardcode \$libdir into a binary during linking.
20728 # This must work even if \$libdir does not exist.
20729 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
20731 # If ld is used when linking, flag to hardcode \$libdir into
20732 # a binary during linking. This must work even if \$libdir does
20733 # not exist.
20734 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
20736 # Whether we need a single -rpath flag with a separated argument.
20737 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
20739 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20740 # resulting binary.
20741 hardcode_direct=$hardcode_direct_RC
20743 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20744 # resulting binary.
20745 hardcode_minus_L=$hardcode_minus_L_RC
20747 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20748 # the resulting binary.
20749 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
20751 # Set to yes if building a shared library automatically hardcodes DIR into the library
20752 # and all subsequent libraries and executables linked against it.
20753 hardcode_automatic=$hardcode_automatic_RC
20755 # Variables whose values should be saved in libtool wrapper scripts and
20756 # restored at relink time.
20757 variables_saved_for_relink="$variables_saved_for_relink"
20759 # Whether libtool must link a program against all its dependency libraries.
20760 link_all_deplibs=$link_all_deplibs_RC
20762 # Compile-time system search path for libraries
20763 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20765 # Run-time system search path for libraries
20766 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20768 # Fix the shell variable \$srcfile for the compiler.
20769 fix_srcfile_path="$fix_srcfile_path_RC"
20771 # Set to yes if exported symbols are required.
20772 always_export_symbols=$always_export_symbols_RC
20774 # The commands to list exported symbols.
20775 export_symbols_cmds=$lt_export_symbols_cmds_RC
20777 # The commands to extract the exported symbol list from a shared archive.
20778 extract_expsyms_cmds=$lt_extract_expsyms_cmds
20780 # Symbols that should not be listed in the preloaded symbols.
20781 exclude_expsyms=$lt_exclude_expsyms_RC
20783 # Symbols that must always be exported.
20784 include_expsyms=$lt_include_expsyms_RC
20786 # ### END LIBTOOL TAG CONFIG: $tagname
20788 __EOF__
20791 else
20792 # If there is no Makefile yet, we rely on a make rule to execute
20793 # `config.status --recheck' to rerun these tests and create the
20794 # libtool script then.
20795 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
20796 if test -f "$ltmain_in"; then
20797 test -f Makefile && make "$ltmain"
20802 ac_ext=c
20803 ac_cpp='$CPP $CPPFLAGS'
20804 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20805 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20806 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20808 CC="$lt_save_CC"
20813 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
20814 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
20815 { (exit 1); exit 1; }; }
20817 esac
20819 # Append the new tag name to the list of available tags.
20820 if test -n "$tagname" ; then
20821 available_tags="$available_tags $tagname"
20824 done
20825 IFS="$lt_save_ifs"
20827 # Now substitute the updated list of available tags.
20828 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
20829 mv "${ofile}T" "$ofile"
20830 chmod +x "$ofile"
20831 else
20832 rm -f "${ofile}T"
20833 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
20834 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
20835 { (exit 1); exit 1; }; }
20841 # This can be used to rebuild libtool when needed
20842 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
20844 # Always use our own libtool.
20845 LIBTOOL='$(SHELL) $(top_builddir)/mklib'
20847 # Prevent multiple expansion
20871 { echo "$as_me:$LINENO: checking for f2c bin/lib/include locations" >&5
20872 echo $ECHO_N "checking for f2c bin/lib/include locations... $ECHO_C" >&6; }
20874 # Check whether --with-f2c was given.
20875 if test "${with_f2c+set}" = set; then
20876 withval=$with_f2c; f2cpfxdir=$withval
20877 else
20878 f2cpfxdir=nada
20882 # Check whether --with-f2c-bin was given.
20883 if test "${with_f2c_bin+set}" = set; then
20884 withval=$with_f2c_bin; f2cbindir=$withval
20885 else
20886 f2cbindir=nada
20890 # Check whether --with-f2c-lib was given.
20891 if test "${with_f2c_lib+set}" = set; then
20892 withval=$with_f2c_lib; f2clibdir=$withval
20893 else
20894 f2clibdir=nada
20898 # Check whether --with-f2c-inc was given.
20899 if test "${with_f2c_inc+set}" = set; then
20900 withval=$with_f2c_inc; f2cincdir=$withval
20901 else
20902 f2cincdir=nada
20905 eval pfxval=\$\{f2cpfxdir\}
20906 eval binval=\$\{f2cbindir\}
20907 eval incval=\$\{f2cincdir\}
20908 eval libval=\$\{f2clibdir\}
20909 if test "${pfxval}" != "nada" ; then
20911 if test -n "${pfxval}" -a -d "${pfxval}" -a -n "f2c" -a -d "${pfxval}/bin" -a -x "${pfxval}/bin/f2c" ; then
20912 USE_F2C="USE_F2C = 1"
20914 F2C=${pfxval}/bin/f2c
20916 F2C_BIN=${pfxval}/bin
20918 F2C_DIR=${pfxval}
20920 if test -n "f2c.h" -a -d "${pfxval}/include" -a -f "${pfxval}/include/f2c.h" ; then
20921 F2C_INC=${pfxval}/include
20924 if test -n "libf2c.a" -a -d "${pfxval}/lib" -a -f "${pfxval}/lib/libf2c.a" ; then
20925 F2C_LIB=${pfxval}/lib
20930 elif test "${binval}" != "nada" ; then
20931 if test "${libval}" != "nada" ; then
20932 if test "${incval}" != "nada" ; then
20933 if test -d "${binval}" ; then
20934 if test -d "${incval}" ; then
20935 if test -d "${libval}" ; then
20936 F2C=${binval}/f2c
20938 F2C_BIN=${binval}
20940 F2C_INC=${incval}
20942 F2C_LIB=${libval}
20944 USE_F2C="USE_F2C = 1"
20946 { echo "$as_me:$LINENO: result: found via --with options" >&5
20947 echo "${ECHO_T}found via --with options" >&6; }
20948 else
20949 { echo "$as_me:$LINENO: result: failed" >&5
20950 echo "${ECHO_T}failed" >&6; }
20951 { { echo "$as_me:$LINENO: error: The --with-f2c-libdir value must be a directory" >&5
20952 echo "$as_me: error: The --with-f2c-libdir value must be a directory" >&2;}
20953 { (exit 1); exit 1; }; }
20955 else
20956 { echo "$as_me:$LINENO: result: failed" >&5
20957 echo "${ECHO_T}failed" >&6; }
20958 { { echo "$as_me:$LINENO: error: The --with-f2c-incdir value must be a directory" >&5
20959 echo "$as_me: error: The --with-f2c-incdir value must be a directory" >&2;}
20960 { (exit 1); exit 1; }; }
20962 else
20963 { echo "$as_me:$LINENO: result: failed" >&5
20964 echo "${ECHO_T}failed" >&6; }
20965 { { echo "$as_me:$LINENO: error: The --with-f2c-bindir value must be a directory" >&5
20966 echo "$as_me: error: The --with-f2c-bindir value must be a directory" >&2;}
20967 { (exit 1); exit 1; }; }
20969 else
20970 { echo "$as_me:$LINENO: result: failed" >&5
20971 echo "${ECHO_T}failed" >&6; }
20972 { { echo "$as_me:$LINENO: error: The --with-f2c-incdir option must be specified" >&5
20973 echo "$as_me: error: The --with-f2c-incdir option must be specified" >&2;}
20974 { (exit 1); exit 1; }; }
20976 else
20977 { echo "$as_me:$LINENO: result: failed" >&5
20978 echo "${ECHO_T}failed" >&6; }
20979 { { echo "$as_me:$LINENO: error: The --with-f2c-libdir option must be specified" >&5
20980 echo "$as_me: error: The --with-f2c-libdir option must be specified" >&2;}
20981 { (exit 1); exit 1; }; }
20983 else
20984 tmppfxdir=`which f2c 2>&1`
20985 if test -n "$tmppfxdir" -a -d "${tmppfxdir%*f2c}" -a \
20986 -d "${tmppfxdir%*f2c}/.." ; then
20987 tmppfxdir=`cd "${tmppfxdir%*f2c}/.." ; pwd`
20989 if test -n "$tmppfxdir" -a -d "$tmppfxdir" -a -n "f2c" -a -d "$tmppfxdir/bin" -a -x "$tmppfxdir/bin/f2c" ; then
20990 USE_F2C="USE_F2C = 1"
20992 F2C=$tmppfxdir/bin/f2c
20994 F2C_BIN=$tmppfxdir/bin
20996 F2C_DIR=$tmppfxdir
20998 if test -n "f2c.h" -a -d "$tmppfxdir/include" -a -f "$tmppfxdir/include/f2c.h" ; then
20999 F2C_INC=$tmppfxdir/include
21002 if test -n "libf2c.a" -a -d "$tmppfxdir/lib" -a -f "$tmppfxdir/lib/libf2c.a" ; then
21003 F2C_LIB=$tmppfxdir/lib
21008 { echo "$as_me:$LINENO: result: found in PATH at $tmppfxdir" >&5
21009 echo "${ECHO_T}found in PATH at $tmppfxdir" >&6; }
21010 else
21011 checkresult="yes"
21012 eval checkval=\$\{"USE_"F2C\}
21014 if test -n "/usr" -a -d "/usr" -a -n "f2c" -a -d "/usr/bin" -a -x "/usr/bin/f2c" ; then
21015 USE_F2C="USE_F2C = 1"
21017 F2C=/usr/bin/f2c
21019 F2C_BIN=/usr/bin
21021 F2C_DIR=/usr
21023 if test -n "f2c.h" -a -d "/usr/include" -a -f "/usr/include/f2c.h" ; then
21024 F2C_INC=/usr/include
21027 if test -n "libf2c.a" -a -d "/usr/lib" -a -f "/usr/lib/libf2c.a" ; then
21028 F2C_LIB=/usr/lib
21033 if test -z "${checkval}" ; then
21035 if test -n "/usr/local" -a -d "/usr/local" -a -n "f2c" -a -d "/usr/local/bin" -a -x "/usr/local/bin/f2c" ; then
21036 USE_F2C="USE_F2C = 1"
21038 F2C=/usr/local/bin/f2c
21040 F2C_BIN=/usr/local/bin
21042 F2C_DIR=/usr/local
21044 if test -n "f2c.h" -a -d "/usr/local/include" -a -f "/usr/local/include/f2c.h" ; then
21045 F2C_INC=/usr/local/include
21048 if test -n "libf2c.a" -a -d "/usr/local/lib" -a -f "/usr/local/lib/libf2c.a" ; then
21049 F2C_LIB=/usr/local/lib
21054 if test -z "${checkval}" ; then
21056 if test -n "/sw" -a -d "/sw" -a -n "f2c" -a -d "/sw/bin" -a -x "/sw/bin/f2c" ; then
21057 USE_F2C="USE_F2C = 1"
21059 F2C=/sw/bin/f2c
21061 F2C_BIN=/sw/bin
21063 F2C_DIR=/sw
21065 if test -n "f2c.h" -a -d "/sw/include" -a -f "/sw/include/f2c.h" ; then
21066 F2C_INC=/sw/include
21069 if test -n "libf2c.a" -a -d "/sw/lib" -a -f "/sw/lib/libf2c.a" ; then
21070 F2C_LIB=/sw/lib
21075 if test -z "${checkval}" ; then
21077 if test -n "/opt" -a -d "/opt" -a -n "f2c" -a -d "/opt/bin" -a -x "/opt/bin/f2c" ; then
21078 USE_F2C="USE_F2C = 1"
21080 F2C=/opt/bin/f2c
21082 F2C_BIN=/opt/bin
21084 F2C_DIR=/opt
21086 if test -n "f2c.h" -a -d "/opt/include" -a -f "/opt/include/f2c.h" ; then
21087 F2C_INC=/opt/include
21090 if test -n "libf2c.a" -a -d "/opt/lib" -a -f "/opt/lib/libf2c.a" ; then
21091 F2C_LIB=/opt/lib
21096 if test -z "${checkval}" ; then
21098 if test -n "/" -a -d "/" -a -n "f2c" -a -d "//bin" -a -x "//bin/f2c" ; then
21099 USE_F2C="USE_F2C = 1"
21101 F2C=//bin/f2c
21103 F2C_BIN=//bin
21105 F2C_DIR=/
21107 if test -n "f2c.h" -a -d "//include" -a -f "//include/f2c.h" ; then
21108 F2C_INC=//include
21111 if test -n "libf2c.a" -a -d "//lib" -a -f "//lib/libf2c.a" ; then
21112 F2C_LIB=//lib
21117 if test -z "${checkval}" ; then
21118 checkresult="no"
21124 { echo "$as_me:$LINENO: result: $checkresult" >&5
21125 echo "${ECHO_T}$checkresult" >&6; }
21131 { echo "$as_me:$LINENO: checking for nag-fortran bin/lib/include locations" >&5
21132 echo $ECHO_N "checking for nag-fortran bin/lib/include locations... $ECHO_C" >&6; }
21134 # Check whether --with-f95 was given.
21135 if test "${with_f95+set}" = set; then
21136 withval=$with_f95; f95pfxdir=$withval
21137 else
21138 f95pfxdir=nada
21142 # Check whether --with-f95-bin was given.
21143 if test "${with_f95_bin+set}" = set; then
21144 withval=$with_f95_bin; f95bindir=$withval
21145 else
21146 f95bindir=nada
21150 # Check whether --with-f95-lib was given.
21151 if test "${with_f95_lib+set}" = set; then
21152 withval=$with_f95_lib; f95libdir=$withval
21153 else
21154 f95libdir=nada
21158 # Check whether --with-f95-inc was given.
21159 if test "${with_f95_inc+set}" = set; then
21160 withval=$with_f95_inc; f95incdir=$withval
21161 else
21162 f95incdir=nada
21165 eval pfxval=\$\{f95pfxdir\}
21166 eval binval=\$\{f95bindir\}
21167 eval incval=\$\{f95incdir\}
21168 eval libval=\$\{f95libdir\}
21169 if test "${pfxval}" != "nada" ; then
21171 if test -n "${pfxval}" -a -d "${pfxval}" -a -n "f95" -a -d "${pfxval}/bin" -a -x "${pfxval}/bin/f95" ; then
21172 USE_F95="USE_F95 = 1"
21174 F95=${pfxval}/bin/f95
21176 F95_BIN=${pfxval}/bin
21178 F95_DIR=${pfxval}
21180 if test -n "" -a -d "${pfxval}/include" -a -f "${pfxval}/include/" ; then
21181 F95_INC=${pfxval}/include
21184 if test -n "libf97.dylib" -a -d "${pfxval}/lib" -a -f "${pfxval}/lib/libf97.dylib" ; then
21185 F95_LIB=${pfxval}/lib
21190 elif test "${binval}" != "nada" ; then
21191 if test "${libval}" != "nada" ; then
21192 if test "${incval}" != "nada" ; then
21193 if test -d "${binval}" ; then
21194 if test -d "${incval}" ; then
21195 if test -d "${libval}" ; then
21196 F95=${binval}/f95
21198 F95_BIN=${binval}
21200 F95_INC=${incval}
21202 F95_LIB=${libval}
21204 USE_F95="USE_F95 = 1"
21206 { echo "$as_me:$LINENO: result: found via --with options" >&5
21207 echo "${ECHO_T}found via --with options" >&6; }
21208 else
21209 { echo "$as_me:$LINENO: result: failed" >&5
21210 echo "${ECHO_T}failed" >&6; }
21211 { { echo "$as_me:$LINENO: error: The --with-f95-libdir value must be a directory" >&5
21212 echo "$as_me: error: The --with-f95-libdir value must be a directory" >&2;}
21213 { (exit 1); exit 1; }; }
21215 else
21216 { echo "$as_me:$LINENO: result: failed" >&5
21217 echo "${ECHO_T}failed" >&6; }
21218 { { echo "$as_me:$LINENO: error: The --with-f95-incdir value must be a directory" >&5
21219 echo "$as_me: error: The --with-f95-incdir value must be a directory" >&2;}
21220 { (exit 1); exit 1; }; }
21222 else
21223 { echo "$as_me:$LINENO: result: failed" >&5
21224 echo "${ECHO_T}failed" >&6; }
21225 { { echo "$as_me:$LINENO: error: The --with-f95-bindir value must be a directory" >&5
21226 echo "$as_me: error: The --with-f95-bindir value must be a directory" >&2;}
21227 { (exit 1); exit 1; }; }
21229 else
21230 { echo "$as_me:$LINENO: result: failed" >&5
21231 echo "${ECHO_T}failed" >&6; }
21232 { { echo "$as_me:$LINENO: error: The --with-f95-incdir option must be specified" >&5
21233 echo "$as_me: error: The --with-f95-incdir option must be specified" >&2;}
21234 { (exit 1); exit 1; }; }
21236 else
21237 { echo "$as_me:$LINENO: result: failed" >&5
21238 echo "${ECHO_T}failed" >&6; }
21239 { { echo "$as_me:$LINENO: error: The --with-f95-libdir option must be specified" >&5
21240 echo "$as_me: error: The --with-f95-libdir option must be specified" >&2;}
21241 { (exit 1); exit 1; }; }
21243 else
21244 tmppfxdir=`which f95 2>&1`
21245 if test -n "$tmppfxdir" -a -d "${tmppfxdir%*f95}" -a \
21246 -d "${tmppfxdir%*f95}/.." ; then
21247 tmppfxdir=`cd "${tmppfxdir%*f95}/.." ; pwd`
21249 if test -n "$tmppfxdir" -a -d "$tmppfxdir" -a -n "f95" -a -d "$tmppfxdir/bin" -a -x "$tmppfxdir/bin/f95" ; then
21250 USE_F95="USE_F95 = 1"
21252 F95=$tmppfxdir/bin/f95
21254 F95_BIN=$tmppfxdir/bin
21256 F95_DIR=$tmppfxdir
21258 if test -n "" -a -d "$tmppfxdir/include" -a -f "$tmppfxdir/include/" ; then
21259 F95_INC=$tmppfxdir/include
21262 if test -n "libf97.dylib" -a -d "$tmppfxdir/lib" -a -f "$tmppfxdir/lib/libf97.dylib" ; then
21263 F95_LIB=$tmppfxdir/lib
21268 { echo "$as_me:$LINENO: result: found in PATH at $tmppfxdir" >&5
21269 echo "${ECHO_T}found in PATH at $tmppfxdir" >&6; }
21270 else
21271 checkresult="yes"
21272 eval checkval=\$\{"USE_"F95\}
21274 if test -n "/usr" -a -d "/usr" -a -n "f95" -a -d "/usr/bin" -a -x "/usr/bin/f95" ; then
21275 USE_F95="USE_F95 = 1"
21277 F95=/usr/bin/f95
21279 F95_BIN=/usr/bin
21281 F95_DIR=/usr
21283 if test -n "" -a -d "/usr/include" -a -f "/usr/include/" ; then
21284 F95_INC=/usr/include
21287 if test -n "libf97.dylib" -a -d "/usr/lib" -a -f "/usr/lib/libf97.dylib" ; then
21288 F95_LIB=/usr/lib
21293 if test -z "${checkval}" ; then
21295 if test -n "/usr/local" -a -d "/usr/local" -a -n "f95" -a -d "/usr/local/bin" -a -x "/usr/local/bin/f95" ; then
21296 USE_F95="USE_F95 = 1"
21298 F95=/usr/local/bin/f95
21300 F95_BIN=/usr/local/bin
21302 F95_DIR=/usr/local
21304 if test -n "" -a -d "/usr/local/include" -a -f "/usr/local/include/" ; then
21305 F95_INC=/usr/local/include
21308 if test -n "libf97.dylib" -a -d "/usr/local/lib" -a -f "/usr/local/lib/libf97.dylib" ; then
21309 F95_LIB=/usr/local/lib
21314 if test -z "${checkval}" ; then
21316 if test -n "/sw" -a -d "/sw" -a -n "f95" -a -d "/sw/bin" -a -x "/sw/bin/f95" ; then
21317 USE_F95="USE_F95 = 1"
21319 F95=/sw/bin/f95
21321 F95_BIN=/sw/bin
21323 F95_DIR=/sw
21325 if test -n "" -a -d "/sw/include" -a -f "/sw/include/" ; then
21326 F95_INC=/sw/include
21329 if test -n "libf97.dylib" -a -d "/sw/lib" -a -f "/sw/lib/libf97.dylib" ; then
21330 F95_LIB=/sw/lib
21335 if test -z "${checkval}" ; then
21337 if test -n "/opt" -a -d "/opt" -a -n "f95" -a -d "/opt/bin" -a -x "/opt/bin/f95" ; then
21338 USE_F95="USE_F95 = 1"
21340 F95=/opt/bin/f95
21342 F95_BIN=/opt/bin
21344 F95_DIR=/opt
21346 if test -n "" -a -d "/opt/include" -a -f "/opt/include/" ; then
21347 F95_INC=/opt/include
21350 if test -n "libf97.dylib" -a -d "/opt/lib" -a -f "/opt/lib/libf97.dylib" ; then
21351 F95_LIB=/opt/lib
21356 if test -z "${checkval}" ; then
21358 if test -n "/" -a -d "/" -a -n "f95" -a -d "//bin" -a -x "//bin/f95" ; then
21359 USE_F95="USE_F95 = 1"
21361 F95=//bin/f95
21363 F95_BIN=//bin
21365 F95_DIR=/
21367 if test -n "" -a -d "//include" -a -f "//include/" ; then
21368 F95_INC=//include
21371 if test -n "libf97.dylib" -a -d "//lib" -a -f "//lib/libf97.dylib" ; then
21372 F95_LIB=//lib
21377 if test -z "${checkval}" ; then
21378 checkresult="no"
21384 { echo "$as_me:$LINENO: result: $checkresult" >&5
21385 echo "${ECHO_T}$checkresult" >&6; }
21390 { echo "$as_me:$LINENO: checking sanity for program f95" >&5
21391 echo $ECHO_N "checking sanity for program f95... $ECHO_C" >&6; }
21392 sanity="0"
21393 sanity_path=`which f95 2>/dev/null`
21394 if test "$?" -eq 0 -a -x "$sanity_path" ; then
21395 sanity=`f95 -V 2>&1 | grep "NAGWare Fortran 95"`
21396 if test -z "$sanity" ; then
21397 { echo "$as_me:$LINENO: result: no" >&5
21398 echo "${ECHO_T}no" >&6; }
21399 sanity="0"
21400 if test "1" -eq 1 ; then
21401 { echo "$as_me:$LINENO: WARNING: Program f95 failed to pass sanity check." >&5
21402 echo "$as_me: WARNING: Program f95 failed to pass sanity check." >&2;}
21403 else
21404 { { echo "$as_me:$LINENO: error: Program f95 failed to pass sanity check." >&5
21405 echo "$as_me: error: Program f95 failed to pass sanity check." >&2;}
21406 { (exit 1); exit 1; }; }
21408 else
21409 { echo "$as_me:$LINENO: result: yes" >&5
21410 echo "${ECHO_T}yes" >&6; }
21411 sanity="1"
21413 else
21414 { echo "$as_me:$LINENO: result: not found" >&5
21415 echo "${ECHO_T}not found" >&6; }
21418 if test -z "$sanity" ; then
21419 USE_F95=
21421 else
21422 if test "$sanity" -eq "0" ; then
21423 USE_F95=
21425 else
21426 USE_F95=USE_F95=1
21431 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
21432 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
21433 if test "${ac_cv_header_stdc+set}" = set; then
21434 echo $ECHO_N "(cached) $ECHO_C" >&6
21435 else
21436 cat >conftest.$ac_ext <<_ACEOF
21437 /* confdefs.h. */
21438 _ACEOF
21439 cat confdefs.h >>conftest.$ac_ext
21440 cat >>conftest.$ac_ext <<_ACEOF
21441 /* end confdefs.h. */
21442 #include <stdlib.h>
21443 #include <stdarg.h>
21444 #include <string.h>
21445 #include <float.h>
21448 main ()
21452 return 0;
21454 _ACEOF
21455 rm -f conftest.$ac_objext
21456 if { (ac_try="$ac_compile"
21457 case "(($ac_try" in
21458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21459 *) ac_try_echo=$ac_try;;
21460 esac
21461 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21462 (eval "$ac_compile") 2>conftest.er1
21463 ac_status=$?
21464 grep -v '^ *+' conftest.er1 >conftest.err
21465 rm -f conftest.er1
21466 cat conftest.err >&5
21467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21468 (exit $ac_status); } &&
21469 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21470 { (case "(($ac_try" in
21471 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21472 *) ac_try_echo=$ac_try;;
21473 esac
21474 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21475 (eval "$ac_try") 2>&5
21476 ac_status=$?
21477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21478 (exit $ac_status); }; } &&
21479 { ac_try='test -s conftest.$ac_objext'
21480 { (case "(($ac_try" in
21481 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21482 *) ac_try_echo=$ac_try;;
21483 esac
21484 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21485 (eval "$ac_try") 2>&5
21486 ac_status=$?
21487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21488 (exit $ac_status); }; }; then
21489 ac_cv_header_stdc=yes
21490 else
21491 echo "$as_me: failed program was:" >&5
21492 sed 's/^/| /' conftest.$ac_ext >&5
21494 ac_cv_header_stdc=no
21497 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21499 if test $ac_cv_header_stdc = yes; then
21500 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
21501 cat >conftest.$ac_ext <<_ACEOF
21502 /* confdefs.h. */
21503 _ACEOF
21504 cat confdefs.h >>conftest.$ac_ext
21505 cat >>conftest.$ac_ext <<_ACEOF
21506 /* end confdefs.h. */
21507 #include <string.h>
21509 _ACEOF
21510 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21511 $EGREP "memchr" >/dev/null 2>&1; then
21513 else
21514 ac_cv_header_stdc=no
21516 rm -f conftest*
21520 if test $ac_cv_header_stdc = yes; then
21521 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
21522 cat >conftest.$ac_ext <<_ACEOF
21523 /* confdefs.h. */
21524 _ACEOF
21525 cat confdefs.h >>conftest.$ac_ext
21526 cat >>conftest.$ac_ext <<_ACEOF
21527 /* end confdefs.h. */
21528 #include <stdlib.h>
21530 _ACEOF
21531 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21532 $EGREP "free" >/dev/null 2>&1; then
21534 else
21535 ac_cv_header_stdc=no
21537 rm -f conftest*
21541 if test $ac_cv_header_stdc = yes; then
21542 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
21543 if test "$cross_compiling" = yes; then
21545 else
21546 cat >conftest.$ac_ext <<_ACEOF
21547 /* confdefs.h. */
21548 _ACEOF
21549 cat confdefs.h >>conftest.$ac_ext
21550 cat >>conftest.$ac_ext <<_ACEOF
21551 /* end confdefs.h. */
21552 #include <ctype.h>
21553 #include <stdlib.h>
21554 #if ((' ' & 0x0FF) == 0x020)
21555 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
21556 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
21557 #else
21558 # define ISLOWER(c) \
21559 (('a' <= (c) && (c) <= 'i') \
21560 || ('j' <= (c) && (c) <= 'r') \
21561 || ('s' <= (c) && (c) <= 'z'))
21562 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
21563 #endif
21565 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
21567 main ()
21569 int i;
21570 for (i = 0; i < 256; i++)
21571 if (XOR (islower (i), ISLOWER (i))
21572 || toupper (i) != TOUPPER (i))
21573 return 2;
21574 return 0;
21576 _ACEOF
21577 rm -f conftest$ac_exeext
21578 if { (ac_try="$ac_link"
21579 case "(($ac_try" in
21580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21581 *) ac_try_echo=$ac_try;;
21582 esac
21583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21584 (eval "$ac_link") 2>&5
21585 ac_status=$?
21586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21587 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21588 { (case "(($ac_try" in
21589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21590 *) ac_try_echo=$ac_try;;
21591 esac
21592 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21593 (eval "$ac_try") 2>&5
21594 ac_status=$?
21595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21596 (exit $ac_status); }; }; then
21598 else
21599 echo "$as_me: program exited with status $ac_status" >&5
21600 echo "$as_me: failed program was:" >&5
21601 sed 's/^/| /' conftest.$ac_ext >&5
21603 ( exit $ac_status )
21604 ac_cv_header_stdc=no
21606 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21612 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
21613 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
21614 if test $ac_cv_header_stdc = yes; then
21616 cat >>confdefs.h <<\_ACEOF
21617 #define STDC_HEADERS 1
21618 _ACEOF
21622 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
21623 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
21624 if test "${ac_cv_header_sys_wait_h+set}" = set; then
21625 echo $ECHO_N "(cached) $ECHO_C" >&6
21626 else
21627 cat >conftest.$ac_ext <<_ACEOF
21628 /* confdefs.h. */
21629 _ACEOF
21630 cat confdefs.h >>conftest.$ac_ext
21631 cat >>conftest.$ac_ext <<_ACEOF
21632 /* end confdefs.h. */
21633 #include <sys/types.h>
21634 #include <sys/wait.h>
21635 #ifndef WEXITSTATUS
21636 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
21637 #endif
21638 #ifndef WIFEXITED
21639 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
21640 #endif
21643 main ()
21645 int s;
21646 wait (&s);
21647 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
21649 return 0;
21651 _ACEOF
21652 rm -f conftest.$ac_objext
21653 if { (ac_try="$ac_compile"
21654 case "(($ac_try" in
21655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21656 *) ac_try_echo=$ac_try;;
21657 esac
21658 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21659 (eval "$ac_compile") 2>conftest.er1
21660 ac_status=$?
21661 grep -v '^ *+' conftest.er1 >conftest.err
21662 rm -f conftest.er1
21663 cat conftest.err >&5
21664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21665 (exit $ac_status); } &&
21666 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21667 { (case "(($ac_try" in
21668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21669 *) ac_try_echo=$ac_try;;
21670 esac
21671 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21672 (eval "$ac_try") 2>&5
21673 ac_status=$?
21674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21675 (exit $ac_status); }; } &&
21676 { ac_try='test -s conftest.$ac_objext'
21677 { (case "(($ac_try" in
21678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21679 *) ac_try_echo=$ac_try;;
21680 esac
21681 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21682 (eval "$ac_try") 2>&5
21683 ac_status=$?
21684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21685 (exit $ac_status); }; }; then
21686 ac_cv_header_sys_wait_h=yes
21687 else
21688 echo "$as_me: failed program was:" >&5
21689 sed 's/^/| /' conftest.$ac_ext >&5
21691 ac_cv_header_sys_wait_h=no
21694 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21696 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
21697 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
21698 if test $ac_cv_header_sys_wait_h = yes; then
21700 cat >>confdefs.h <<\_ACEOF
21701 #define HAVE_SYS_WAIT_H 1
21702 _ACEOF
21707 { echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
21708 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
21709 if test "${llvm_cv_link_use_r+set}" = set; then
21710 echo $ECHO_N "(cached) $ECHO_C" >&6
21711 else
21712 ac_ext=c
21713 ac_cpp='$CPP $CPPFLAGS'
21714 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21715 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21716 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21718 oldcflags="$CFLAGS"
21719 CFLAGS="$CFLAGS -Wl,-R."
21720 cat >conftest.$ac_ext <<_ACEOF
21721 /* confdefs.h. */
21722 _ACEOF
21723 cat confdefs.h >>conftest.$ac_ext
21724 cat >>conftest.$ac_ext <<_ACEOF
21725 /* end confdefs.h. */
21728 main ()
21732 return 0;
21734 _ACEOF
21735 rm -f conftest.$ac_objext conftest$ac_exeext
21736 if { (ac_try="$ac_link"
21737 case "(($ac_try" in
21738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21739 *) ac_try_echo=$ac_try;;
21740 esac
21741 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21742 (eval "$ac_link") 2>conftest.er1
21743 ac_status=$?
21744 grep -v '^ *+' conftest.er1 >conftest.err
21745 rm -f conftest.er1
21746 cat conftest.err >&5
21747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21748 (exit $ac_status); } &&
21749 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21750 { (case "(($ac_try" in
21751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21752 *) ac_try_echo=$ac_try;;
21753 esac
21754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21755 (eval "$ac_try") 2>&5
21756 ac_status=$?
21757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21758 (exit $ac_status); }; } &&
21759 { ac_try='test -s conftest$ac_exeext'
21760 { (case "(($ac_try" in
21761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21762 *) ac_try_echo=$ac_try;;
21763 esac
21764 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21765 (eval "$ac_try") 2>&5
21766 ac_status=$?
21767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21768 (exit $ac_status); }; }; then
21769 llvm_cv_link_use_r=yes
21770 else
21771 echo "$as_me: failed program was:" >&5
21772 sed 's/^/| /' conftest.$ac_ext >&5
21774 llvm_cv_link_use_r=no
21777 rm -f core conftest.err conftest.$ac_objext \
21778 conftest$ac_exeext conftest.$ac_ext
21779 CFLAGS="$oldcflags"
21780 ac_ext=c
21781 ac_cpp='$CPP $CPPFLAGS'
21782 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21783 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21784 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21788 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
21789 echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
21790 if test "$llvm_cv_link_use_r" = yes ; then
21792 cat >>confdefs.h <<\_ACEOF
21793 #define HAVE_LINK_R 1
21794 _ACEOF
21799 { echo "$as_me:$LINENO: checking for re_comp" >&5
21800 echo $ECHO_N "checking for re_comp... $ECHO_C" >&6; }
21801 if test "${ac_cv_func_re_comp+set}" = set; then
21802 echo $ECHO_N "(cached) $ECHO_C" >&6
21803 else
21804 cat >conftest.$ac_ext <<_ACEOF
21805 /* confdefs.h. */
21806 _ACEOF
21807 cat confdefs.h >>conftest.$ac_ext
21808 cat >>conftest.$ac_ext <<_ACEOF
21809 /* end confdefs.h. */
21810 /* Define re_comp to an innocuous variant, in case <limits.h> declares re_comp.
21811 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21812 #define re_comp innocuous_re_comp
21814 /* System header to define __stub macros and hopefully few prototypes,
21815 which can conflict with char re_comp (); below.
21816 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21817 <limits.h> exists even on freestanding compilers. */
21819 #ifdef __STDC__
21820 # include <limits.h>
21821 #else
21822 # include <assert.h>
21823 #endif
21825 #undef re_comp
21827 /* Override any GCC internal prototype to avoid an error.
21828 Use char because int might match the return type of a GCC
21829 builtin and then its argument prototype would still apply. */
21830 #ifdef __cplusplus
21831 extern "C"
21832 #endif
21833 char re_comp ();
21834 /* The GNU C library defines this for functions which it implements
21835 to always fail with ENOSYS. Some functions are actually named
21836 something starting with __ and the normal name is an alias. */
21837 #if defined __stub_re_comp || defined __stub___re_comp
21838 choke me
21839 #endif
21842 main ()
21844 return re_comp ();
21846 return 0;
21848 _ACEOF
21849 rm -f conftest.$ac_objext conftest$ac_exeext
21850 if { (ac_try="$ac_link"
21851 case "(($ac_try" in
21852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21853 *) ac_try_echo=$ac_try;;
21854 esac
21855 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21856 (eval "$ac_link") 2>conftest.er1
21857 ac_status=$?
21858 grep -v '^ *+' conftest.er1 >conftest.err
21859 rm -f conftest.er1
21860 cat conftest.err >&5
21861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21862 (exit $ac_status); } &&
21863 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21864 { (case "(($ac_try" in
21865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21866 *) ac_try_echo=$ac_try;;
21867 esac
21868 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21869 (eval "$ac_try") 2>&5
21870 ac_status=$?
21871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21872 (exit $ac_status); }; } &&
21873 { ac_try='test -s conftest$ac_exeext'
21874 { (case "(($ac_try" in
21875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21876 *) ac_try_echo=$ac_try;;
21877 esac
21878 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21879 (eval "$ac_try") 2>&5
21880 ac_status=$?
21881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21882 (exit $ac_status); }; }; then
21883 ac_cv_func_re_comp=yes
21884 else
21885 echo "$as_me: failed program was:" >&5
21886 sed 's/^/| /' conftest.$ac_ext >&5
21888 ac_cv_func_re_comp=no
21891 rm -f core conftest.err conftest.$ac_objext \
21892 conftest$ac_exeext conftest.$ac_ext
21894 { echo "$as_me:$LINENO: result: $ac_cv_func_re_comp" >&5
21895 echo "${ECHO_T}$ac_cv_func_re_comp" >&6; }
21896 if test $ac_cv_func_re_comp = yes; then
21897 HAVE_RE_COMP=HAVE_RE_COMP:=1
21899 else
21900 HAVE_RE_COMP=
21906 { echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
21907 echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
21908 if test "${libltdl_cv_shlibext+set}" = set; then
21909 echo $ECHO_N "(cached) $ECHO_C" >&6
21910 else
21912 module=yes
21913 eval libltdl_cv_shlibext=$shrext_cmds
21916 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
21917 echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
21918 if test -n "$libltdl_cv_shlibext"; then
21920 cat >>confdefs.h <<_ACEOF
21921 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
21922 _ACEOF
21926 SHLIBEXT=$libltdl_cv_shlibext
21929 cat >confcache <<\_ACEOF
21930 # This file is a shell script that caches the results of configure
21931 # tests run on this system so they can be shared between configure
21932 # scripts and configure runs, see configure's option --config-cache.
21933 # It is not useful on other systems. If it contains results you don't
21934 # want to keep, you may remove or edit it.
21936 # config.status only pays attention to the cache file if you give it
21937 # the --recheck option to rerun configure.
21939 # `ac_cv_env_foo' variables (set or unset) will be overridden when
21940 # loading this file, other *unset* `ac_cv_foo' will be assigned the
21941 # following values.
21943 _ACEOF
21945 # The following way of writing the cache mishandles newlines in values,
21946 # but we know of no workaround that is simple, portable, and efficient.
21947 # So, we kill variables containing newlines.
21948 # Ultrix sh set writes to stderr and can't be redirected directly,
21949 # and sets the high bit in the cache file unless we assign to the vars.
21951 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
21952 eval ac_val=\$$ac_var
21953 case $ac_val in #(
21954 *${as_nl}*)
21955 case $ac_var in #(
21956 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
21957 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
21958 esac
21959 case $ac_var in #(
21960 _ | IFS | as_nl) ;; #(
21961 *) $as_unset $ac_var ;;
21962 esac ;;
21963 esac
21964 done
21966 (set) 2>&1 |
21967 case $as_nl`(ac_space=' '; set) 2>&1` in #(
21968 *${as_nl}ac_space=\ *)
21969 # `set' does not quote correctly, so add quotes (double-quote
21970 # substitution turns \\\\ into \\, and sed turns \\ into \).
21971 sed -n \
21972 "s/'/'\\\\''/g;
21973 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21974 ;; #(
21976 # `set' quotes correctly as required by POSIX, so do not add quotes.
21977 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
21979 esac |
21980 sort
21982 sed '
21983 /^ac_cv_env_/b end
21984 t clear
21985 :clear
21986 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21987 t end
21988 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21989 :end' >>confcache
21990 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
21991 if test -w "$cache_file"; then
21992 test "x$cache_file" != "x/dev/null" &&
21993 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
21994 echo "$as_me: updating cache $cache_file" >&6;}
21995 cat confcache >$cache_file
21996 else
21997 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
21998 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
22001 rm -f confcache
22003 test "x$prefix" = xNONE && prefix=$ac_default_prefix
22004 # Let make expand exec_prefix.
22005 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22007 # Transform confdefs.h into DEFS.
22008 # Protect against shell expansion while executing Makefile rules.
22009 # Protect against Makefile macro expansion.
22011 # If the first sed substitution is executed (which looks for macros that
22012 # take arguments), then branch to the quote section. Otherwise,
22013 # look for a macro that doesn't take arguments.
22014 ac_script='
22015 t clear
22016 :clear
22017 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
22018 t quote
22019 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
22020 t quote
22021 b any
22022 :quote
22023 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
22024 s/\[/\\&/g
22025 s/\]/\\&/g
22026 s/\$/$$/g
22028 :any
22031 s/^\n//
22032 s/\n/ /g
22036 DEFS=`sed -n "$ac_script" confdefs.h`
22039 ac_libobjs=
22040 ac_ltlibobjs=
22041 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
22042 # 1. Remove the extension, and $U if already installed.
22043 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
22044 ac_i=`echo "$ac_i" | sed "$ac_script"`
22045 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
22046 # will be set to the directory where LIBOBJS objects are built.
22047 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
22048 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
22049 done
22050 LIBOBJS=$ac_libobjs
22052 LTLIBOBJS=$ac_ltlibobjs
22056 : ${CONFIG_STATUS=./config.status}
22057 ac_clean_files_save=$ac_clean_files
22058 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
22059 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
22060 echo "$as_me: creating $CONFIG_STATUS" >&6;}
22061 cat >$CONFIG_STATUS <<_ACEOF
22062 #! $SHELL
22063 # Generated by $as_me.
22064 # Run this file to recreate the current configuration.
22065 # Compiler output produced by configure, useful for debugging
22066 # configure, is in config.log if it exists.
22068 debug=false
22069 ac_cs_recheck=false
22070 ac_cs_silent=false
22071 SHELL=\${CONFIG_SHELL-$SHELL}
22072 _ACEOF
22074 cat >>$CONFIG_STATUS <<\_ACEOF
22075 ## --------------------- ##
22076 ## M4sh Initialization. ##
22077 ## --------------------- ##
22079 # Be Bourne compatible
22080 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22081 emulate sh
22082 NULLCMD=:
22083 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22084 # is contrary to our usage. Disable this feature.
22085 alias -g '${1+"$@"}'='"$@"'
22086 setopt NO_GLOB_SUBST
22087 else
22088 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
22090 BIN_SH=xpg4; export BIN_SH # for Tru64
22091 DUALCASE=1; export DUALCASE # for MKS sh
22094 # PATH needs CR
22095 # Avoid depending upon Character Ranges.
22096 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
22097 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22098 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
22099 as_cr_digits='0123456789'
22100 as_cr_alnum=$as_cr_Letters$as_cr_digits
22102 # The user is always right.
22103 if test "${PATH_SEPARATOR+set}" != set; then
22104 echo "#! /bin/sh" >conf$$.sh
22105 echo "exit 0" >>conf$$.sh
22106 chmod +x conf$$.sh
22107 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
22108 PATH_SEPARATOR=';'
22109 else
22110 PATH_SEPARATOR=:
22112 rm -f conf$$.sh
22115 # Support unset when possible.
22116 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
22117 as_unset=unset
22118 else
22119 as_unset=false
22123 # IFS
22124 # We need space, tab and new line, in precisely that order. Quoting is
22125 # there to prevent editors from complaining about space-tab.
22126 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
22127 # splitting by setting IFS to empty value.)
22128 as_nl='
22130 IFS=" "" $as_nl"
22132 # Find who we are. Look in the path if we contain no directory separator.
22133 case $0 in
22134 *[\\/]* ) as_myself=$0 ;;
22135 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22136 for as_dir in $PATH
22138 IFS=$as_save_IFS
22139 test -z "$as_dir" && as_dir=.
22140 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
22141 done
22142 IFS=$as_save_IFS
22145 esac
22146 # We did not find ourselves, most probably we were run as `sh COMMAND'
22147 # in which case we are not to be found in the path.
22148 if test "x$as_myself" = x; then
22149 as_myself=$0
22151 if test ! -f "$as_myself"; then
22152 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
22153 { (exit 1); exit 1; }
22156 # Work around bugs in pre-3.0 UWIN ksh.
22157 for as_var in ENV MAIL MAILPATH
22158 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
22159 done
22160 PS1='$ '
22161 PS2='> '
22162 PS4='+ '
22164 # NLS nuisances.
22165 for as_var in \
22166 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
22167 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
22168 LC_TELEPHONE LC_TIME
22170 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
22171 eval $as_var=C; export $as_var
22172 else
22173 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
22175 done
22177 # Required to use basename.
22178 if expr a : '\(a\)' >/dev/null 2>&1 &&
22179 test "X`expr 00001 : '.*\(...\)'`" = X001; then
22180 as_expr=expr
22181 else
22182 as_expr=false
22185 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
22186 as_basename=basename
22187 else
22188 as_basename=false
22192 # Name of the executable.
22193 as_me=`$as_basename -- "$0" ||
22194 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22195 X"$0" : 'X\(//\)$' \| \
22196 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
22197 echo X/"$0" |
22198 sed '/^.*\/\([^/][^/]*\)\/*$/{
22199 s//\1/
22202 /^X\/\(\/\/\)$/{
22203 s//\1/
22206 /^X\/\(\/\).*/{
22207 s//\1/
22210 s/.*/./; q'`
22212 # CDPATH.
22213 $as_unset CDPATH
22217 as_lineno_1=$LINENO
22218 as_lineno_2=$LINENO
22219 test "x$as_lineno_1" != "x$as_lineno_2" &&
22220 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
22222 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
22223 # uniformly replaced by the line number. The first 'sed' inserts a
22224 # line-number line after each line using $LINENO; the second 'sed'
22225 # does the real work. The second script uses 'N' to pair each
22226 # line-number line with the line containing $LINENO, and appends
22227 # trailing '-' during substitution so that $LINENO is not a special
22228 # case at line end.
22229 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
22230 # scripts with optimization help from Paolo Bonzini. Blame Lee
22231 # E. McMahon (1931-1989) for sed's syntax. :-)
22232 sed -n '
22234 /[$]LINENO/=
22235 ' <$as_myself |
22236 sed '
22237 s/[$]LINENO.*/&-/
22238 t lineno
22240 :lineno
22242 :loop
22243 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
22244 t loop
22245 s/-\n.*//
22246 ' >$as_me.lineno &&
22247 chmod +x "$as_me.lineno" ||
22248 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
22249 { (exit 1); exit 1; }; }
22251 # Don't try to exec as it changes $[0], causing all sort of problems
22252 # (the dirname of $[0] is not the place where we might find the
22253 # original and so on. Autoconf is especially sensitive to this).
22254 . "./$as_me.lineno"
22255 # Exit status is that of the last command.
22256 exit
22260 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
22261 as_dirname=dirname
22262 else
22263 as_dirname=false
22266 ECHO_C= ECHO_N= ECHO_T=
22267 case `echo -n x` in
22268 -n*)
22269 case `echo 'x\c'` in
22270 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
22271 *) ECHO_C='\c';;
22272 esac;;
22274 ECHO_N='-n';;
22275 esac
22277 if expr a : '\(a\)' >/dev/null 2>&1 &&
22278 test "X`expr 00001 : '.*\(...\)'`" = X001; then
22279 as_expr=expr
22280 else
22281 as_expr=false
22284 rm -f conf$$ conf$$.exe conf$$.file
22285 if test -d conf$$.dir; then
22286 rm -f conf$$.dir/conf$$.file
22287 else
22288 rm -f conf$$.dir
22289 mkdir conf$$.dir
22291 echo >conf$$.file
22292 if ln -s conf$$.file conf$$ 2>/dev/null; then
22293 as_ln_s='ln -s'
22294 # ... but there are two gotchas:
22295 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
22296 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
22297 # In both cases, we have to default to `cp -p'.
22298 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
22299 as_ln_s='cp -p'
22300 elif ln conf$$.file conf$$ 2>/dev/null; then
22301 as_ln_s=ln
22302 else
22303 as_ln_s='cp -p'
22305 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
22306 rmdir conf$$.dir 2>/dev/null
22308 if mkdir -p . 2>/dev/null; then
22309 as_mkdir_p=:
22310 else
22311 test -d ./-p && rmdir ./-p
22312 as_mkdir_p=false
22315 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
22316 # systems may use methods other than mode bits to determine executability.
22317 cat >conf$$.file <<_ASEOF
22318 #! /bin/sh
22319 exit 0
22320 _ASEOF
22321 chmod +x conf$$.file
22322 if test -x conf$$.file >/dev/null 2>&1; then
22323 as_executable_p="test -x"
22324 else
22325 as_executable_p=:
22327 rm -f conf$$.file
22329 # Sed expression to map a string onto a valid CPP name.
22330 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
22332 # Sed expression to map a string onto a valid variable name.
22333 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
22336 exec 6>&1
22338 # Save the log message, to keep $[0] and so on meaningful, and to
22339 # report actual input values of CONFIG_FILES etc. instead of their
22340 # values after options handling.
22341 ac_log="
22342 This file was extended by LLVM-TEST $as_me 2.8svn, which was
22343 generated by GNU Autoconf 2.60. Invocation command line was
22345 CONFIG_FILES = $CONFIG_FILES
22346 CONFIG_HEADERS = $CONFIG_HEADERS
22347 CONFIG_LINKS = $CONFIG_LINKS
22348 CONFIG_COMMANDS = $CONFIG_COMMANDS
22349 $ $0 $@
22351 on `(hostname || uname -n) 2>/dev/null | sed 1q`
22354 _ACEOF
22356 cat >>$CONFIG_STATUS <<_ACEOF
22357 # Files that config.status was made for.
22358 config_files="$ac_config_files"
22359 config_commands="$ac_config_commands"
22361 _ACEOF
22363 cat >>$CONFIG_STATUS <<\_ACEOF
22364 ac_cs_usage="\
22365 \`$as_me' instantiates files from templates according to the
22366 current configuration.
22368 Usage: $0 [OPTIONS] [FILE]...
22370 -h, --help print this help, then exit
22371 -V, --version print version number, then exit
22372 -q, --quiet do not print progress messages
22373 -d, --debug don't remove temporary files
22374 --recheck update $as_me by reconfiguring in the same conditions
22375 --file=FILE[:TEMPLATE]
22376 instantiate the configuration file FILE
22378 Configuration files:
22379 $config_files
22381 Configuration commands:
22382 $config_commands
22384 Report bugs to <bug-autoconf@gnu.org>."
22386 _ACEOF
22387 cat >>$CONFIG_STATUS <<_ACEOF
22388 ac_cs_version="\\
22389 LLVM-TEST config.status 2.8svn
22390 configured by $0, generated by GNU Autoconf 2.60,
22391 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
22393 Copyright (C) 2006 Free Software Foundation, Inc.
22394 This config.status script is free software; the Free Software Foundation
22395 gives unlimited permission to copy, distribute and modify it."
22397 ac_pwd='$ac_pwd'
22398 srcdir='$srcdir'
22399 _ACEOF
22401 cat >>$CONFIG_STATUS <<\_ACEOF
22402 # If no file are specified by the user, then we need to provide default
22403 # value. By we need to know if files were specified by the user.
22404 ac_need_defaults=:
22405 while test $# != 0
22407 case $1 in
22408 --*=*)
22409 ac_option=`expr "X$1" : 'X\([^=]*\)='`
22410 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
22411 ac_shift=:
22414 ac_option=$1
22415 ac_optarg=$2
22416 ac_shift=shift
22418 esac
22420 case $ac_option in
22421 # Handling of the options.
22422 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22423 ac_cs_recheck=: ;;
22424 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
22425 echo "$ac_cs_version"; exit ;;
22426 --debug | --debu | --deb | --de | --d | -d )
22427 debug=: ;;
22428 --file | --fil | --fi | --f )
22429 $ac_shift
22430 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
22431 ac_need_defaults=false;;
22432 --he | --h | --help | --hel | -h )
22433 echo "$ac_cs_usage"; exit ;;
22434 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
22435 | -silent | --silent | --silen | --sile | --sil | --si | --s)
22436 ac_cs_silent=: ;;
22438 # This is an error.
22439 -*) { echo "$as_me: error: unrecognized option: $1
22440 Try \`$0 --help' for more information." >&2
22441 { (exit 1); exit 1; }; } ;;
22443 *) ac_config_targets="$ac_config_targets $1"
22444 ac_need_defaults=false ;;
22446 esac
22447 shift
22448 done
22450 ac_configure_extra_args=
22452 if $ac_cs_silent; then
22453 exec 6>/dev/null
22454 ac_configure_extra_args="$ac_configure_extra_args --silent"
22457 _ACEOF
22458 cat >>$CONFIG_STATUS <<_ACEOF
22459 if \$ac_cs_recheck; then
22460 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
22461 CONFIG_SHELL=$SHELL
22462 export CONFIG_SHELL
22463 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
22466 _ACEOF
22467 cat >>$CONFIG_STATUS <<\_ACEOF
22468 exec 5>>config.log
22470 echo
22471 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
22472 ## Running $as_me. ##
22473 _ASBOX
22474 echo "$ac_log"
22475 } >&5
22477 _ACEOF
22478 cat >>$CONFIG_STATUS <<_ACEOF
22480 # INIT-COMMANDS
22482 llvm_src="${srcdir}"
22484 _ACEOF
22486 cat >>$CONFIG_STATUS <<\_ACEOF
22488 # Handling of arguments.
22489 for ac_config_target in $ac_config_targets
22491 case $ac_config_target in
22492 "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
22493 "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
22494 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
22495 "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
22496 "Makefile.nagfortran") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.nagfortran" ;;
22497 "Makefile.f2c") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.f2c" ;;
22498 "Makefile.programs") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.programs" ;;
22499 "Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.tests" ;;
22500 "TEST.aa.Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS TEST.aa.Makefile" ;;
22501 "TEST.aa.report") CONFIG_COMMANDS="$CONFIG_COMMANDS TEST.aa.report" ;;
22502 "TEST.example.Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS TEST.example.Makefile" ;;
22503 "TEST.nightly.Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS TEST.nightly.Makefile" ;;
22504 "TEST.buildrepo.Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS TEST.buildrepo.Makefile" ;;
22505 "TEST.jit.Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS TEST.jit.Makefile" ;;
22506 "TEST.nightly.report") CONFIG_COMMANDS="$CONFIG_COMMANDS TEST.nightly.report" ;;
22507 "TEST.jit.report") CONFIG_COMMANDS="$CONFIG_COMMANDS TEST.jit.report" ;;
22508 "TEST.typesafe.Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS TEST.typesafe.Makefile" ;;
22509 "TEST.vtl.Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS TEST.vtl.Makefile" ;;
22510 "External/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS External/Makefile" ;;
22511 "External/Makefile.external") CONFIG_COMMANDS="$CONFIG_COMMANDS External/Makefile.external" ;;
22512 "External/Povray/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS External/Povray/Makefile" ;;
22513 "External/SPEC/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS External/SPEC/Makefile" ;;
22514 "External/SPEC/Makefile.spec") CONFIG_COMMANDS="$CONFIG_COMMANDS External/SPEC/Makefile.spec" ;;
22515 "External/SPEC/Makefile.spec.config") CONFIG_COMMANDS="$CONFIG_COMMANDS External/SPEC/Makefile.spec.config" ;;
22516 "External/SPEC/Makefile.spec2006") CONFIG_COMMANDS="$CONFIG_COMMANDS External/SPEC/Makefile.spec2006" ;;
22517 "External/SPEC/Makefile.spec2000") CONFIG_COMMANDS="$CONFIG_COMMANDS External/SPEC/Makefile.spec2000" ;;
22518 "External/SPEC/Makefile.spec95") CONFIG_COMMANDS="$CONFIG_COMMANDS External/SPEC/Makefile.spec95" ;;
22519 "External/SPEC/CFP2006/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS External/SPEC/CFP2006/Makefile" ;;
22520 "External/SPEC/CINT2006/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS External/SPEC/CINT2006/Makefile" ;;
22521 "External/SPEC/CFP2000/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS External/SPEC/CFP2000/Makefile" ;;
22522 "External/SPEC/CINT2000/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS External/SPEC/CINT2000/Makefile" ;;
22523 "External/SPEC/CFP95/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS External/SPEC/CFP95/Makefile" ;;
22524 "External/SPEC/CINT95/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS External/SPEC/CINT95/Makefile" ;;
22525 "External/skidmarks10/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS External/skidmarks10/Makefile" ;;
22526 "MultiSource/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS MultiSource/Makefile" ;;
22527 "MultiSource/Makefile.multisrc") CONFIG_COMMANDS="$CONFIG_COMMANDS MultiSource/Makefile.multisrc" ;;
22528 "SingleSource/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS SingleSource/Makefile" ;;
22529 "SingleSource/Makefile.singlesrc") CONFIG_COMMANDS="$CONFIG_COMMANDS SingleSource/Makefile.singlesrc" ;;
22530 "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
22532 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
22533 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
22534 { (exit 1); exit 1; }; };;
22535 esac
22536 done
22539 # If the user did not use the arguments to specify the items to instantiate,
22540 # then the envvar interface is used. Set only those that are not.
22541 # We use the long form for the default assignment because of an extremely
22542 # bizarre bug on SunOS 4.1.3.
22543 if $ac_need_defaults; then
22544 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
22545 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
22548 # Have a temporary directory for convenience. Make it in the build tree
22549 # simply because there is no reason against having it here, and in addition,
22550 # creating and moving files from /tmp can sometimes cause problems.
22551 # Hook for its removal unless debugging.
22552 # Note that there is a small window in which the directory will not be cleaned:
22553 # after its creation but before its name has been assigned to `$tmp'.
22554 $debug ||
22556 tmp=
22557 trap 'exit_status=$?
22558 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
22560 trap '{ (exit 1); exit 1; }' 1 2 13 15
22562 # Create a (secure) tmp directory for tmp files.
22565 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
22566 test -n "$tmp" && test -d "$tmp"
22567 } ||
22569 tmp=./conf$$-$RANDOM
22570 (umask 077 && mkdir "$tmp")
22571 } ||
22573 echo "$me: cannot create a temporary directory in ." >&2
22574 { (exit 1); exit 1; }
22578 # Set up the sed scripts for CONFIG_FILES section.
22581 # No need to generate the scripts if there are no CONFIG_FILES.
22582 # This happens for instance when ./config.status config.h
22583 if test -n "$CONFIG_FILES"; then
22585 _ACEOF
22589 ac_delim='%!_!# '
22590 for ac_last_try in false false false false false :; do
22591 cat >conf$$subs.sed <<_ACEOF
22592 SHELL!$SHELL$ac_delim
22593 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
22594 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
22595 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
22596 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
22597 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
22598 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
22599 exec_prefix!$exec_prefix$ac_delim
22600 prefix!$prefix$ac_delim
22601 program_transform_name!$program_transform_name$ac_delim
22602 bindir!$bindir$ac_delim
22603 sbindir!$sbindir$ac_delim
22604 libexecdir!$libexecdir$ac_delim
22605 datarootdir!$datarootdir$ac_delim
22606 datadir!$datadir$ac_delim
22607 sysconfdir!$sysconfdir$ac_delim
22608 sharedstatedir!$sharedstatedir$ac_delim
22609 localstatedir!$localstatedir$ac_delim
22610 includedir!$includedir$ac_delim
22611 oldincludedir!$oldincludedir$ac_delim
22612 docdir!$docdir$ac_delim
22613 infodir!$infodir$ac_delim
22614 htmldir!$htmldir$ac_delim
22615 dvidir!$dvidir$ac_delim
22616 pdfdir!$pdfdir$ac_delim
22617 psdir!$psdir$ac_delim
22618 libdir!$libdir$ac_delim
22619 localedir!$localedir$ac_delim
22620 mandir!$mandir$ac_delim
22621 DEFS!$DEFS$ac_delim
22622 ECHO_C!$ECHO_C$ac_delim
22623 ECHO_N!$ECHO_N$ac_delim
22624 ECHO_T!$ECHO_T$ac_delim
22625 LIBS!$LIBS$ac_delim
22626 build_alias!$build_alias$ac_delim
22627 host_alias!$host_alias$ac_delim
22628 target_alias!$target_alias$ac_delim
22629 build!$build$ac_delim
22630 build_cpu!$build_cpu$ac_delim
22631 build_vendor!$build_vendor$ac_delim
22632 build_os!$build_os$ac_delim
22633 host!$host$ac_delim
22634 host_cpu!$host_cpu$ac_delim
22635 host_vendor!$host_vendor$ac_delim
22636 host_os!$host_os$ac_delim
22637 target!$target$ac_delim
22638 target_cpu!$target_cpu$ac_delim
22639 target_vendor!$target_vendor$ac_delim
22640 target_os!$target_os$ac_delim
22641 TARGET_OS!$TARGET_OS$ac_delim
22642 ARCH!$ARCH$ac_delim
22643 ENDIAN!$ENDIAN$ac_delim
22644 CC!$CC$ac_delim
22645 CFLAGS!$CFLAGS$ac_delim
22646 LDFLAGS!$LDFLAGS$ac_delim
22647 CPPFLAGS!$CPPFLAGS$ac_delim
22648 ac_ct_CC!$ac_ct_CC$ac_delim
22649 EXEEXT!$EXEEXT$ac_delim
22650 OBJEXT!$OBJEXT$ac_delim
22651 CPP!$CPP$ac_delim
22652 GREP!$GREP$ac_delim
22653 EGREP!$EGREP$ac_delim
22654 LLVM_SRC!$LLVM_SRC$ac_delim
22655 LLVM_OBJ!$LLVM_OBJ$ac_delim
22656 LLVM_EXTERNALS!$LLVM_EXTERNALS$ac_delim
22657 SPEC95_ROOT!$SPEC95_ROOT$ac_delim
22658 USE_SPEC95!$USE_SPEC95$ac_delim
22659 SPEC2000_ROOT!$SPEC2000_ROOT$ac_delim
22660 USE_SPEC2000!$USE_SPEC2000$ac_delim
22661 SPEC2006_ROOT!$SPEC2006_ROOT$ac_delim
22662 USE_SPEC2006!$USE_SPEC2006$ac_delim
22663 POVRAY_ROOT!$POVRAY_ROOT$ac_delim
22664 USE_POVRAY!$USE_POVRAY$ac_delim
22665 NAMD_ROOT!$NAMD_ROOT$ac_delim
22666 USE_NAMD!$USE_NAMD$ac_delim
22667 SWEEP3D_ROOT!$SWEEP3D_ROOT$ac_delim
22668 USE_SWEEP3D!$USE_SWEEP3D$ac_delim
22669 FPGROWTH_ROOT!$FPGROWTH_ROOT$ac_delim
22670 USE_FPGROWTH!$USE_FPGROWTH$ac_delim
22671 ALP_ROOT!$ALP_ROOT$ac_delim
22672 USE_ALP!$USE_ALP$ac_delim
22673 NURBS_ROOT!$NURBS_ROOT$ac_delim
22674 USE_NURBS!$USE_NURBS$ac_delim
22675 HMMER_ROOT!$HMMER_ROOT$ac_delim
22676 USE_HMMER!$USE_HMMER$ac_delim
22677 SKIDMARKS10_ROOT!$SKIDMARKS10_ROOT$ac_delim
22678 USE_SKIDMARKS10!$USE_SKIDMARKS10$ac_delim
22679 DISABLE_LLC_DIFFS!$DISABLE_LLC_DIFFS$ac_delim
22680 CXX!$CXX$ac_delim
22681 CXXFLAGS!$CXXFLAGS$ac_delim
22682 ac_ct_CXX!$ac_ct_CXX$ac_delim
22683 ifGNUmake!$ifGNUmake$ac_delim
22684 LN_S!$LN_S$ac_delim
22685 ECHO!$ECHO$ac_delim
22686 AR!$AR$ac_delim
22687 RANLIB!$RANLIB$ac_delim
22688 STRIP!$STRIP$ac_delim
22689 _ACEOF
22691 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
22692 break
22693 elif $ac_last_try; then
22694 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22695 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22696 { (exit 1); exit 1; }; }
22697 else
22698 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22700 done
22702 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
22703 if test -n "$ac_eof"; then
22704 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
22705 ac_eof=`expr $ac_eof + 1`
22708 cat >>$CONFIG_STATUS <<_ACEOF
22709 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
22710 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22711 _ACEOF
22712 sed '
22713 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
22714 s/^/s,@/; s/!/@,|#_!!_#|/
22717 s/'"$ac_delim"'$/,g/; t
22718 s/$/\\/; p
22719 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
22720 ' >>$CONFIG_STATUS <conf$$subs.sed
22721 rm -f conf$$subs.sed
22722 cat >>$CONFIG_STATUS <<_ACEOF
22723 CEOF$ac_eof
22724 _ACEOF
22727 ac_delim='%!_!# '
22728 for ac_last_try in false false false false false :; do
22729 cat >conf$$subs.sed <<_ACEOF
22730 CXXCPP!$CXXCPP$ac_delim
22731 F77!$F77$ac_delim
22732 FFLAGS!$FFLAGS$ac_delim
22733 ac_ct_F77!$ac_ct_F77$ac_delim
22734 LIBTOOL!$LIBTOOL$ac_delim
22735 USE_F2C!$USE_F2C$ac_delim
22736 F2C!$F2C$ac_delim
22737 F2C_BIN!$F2C_BIN$ac_delim
22738 F2C_DIR!$F2C_DIR$ac_delim
22739 F2C_INC!$F2C_INC$ac_delim
22740 F2C_LIB!$F2C_LIB$ac_delim
22741 USE_F95!$USE_F95$ac_delim
22742 F95!$F95$ac_delim
22743 F95_BIN!$F95_BIN$ac_delim
22744 F95_DIR!$F95_DIR$ac_delim
22745 F95_INC!$F95_INC$ac_delim
22746 F95_LIB!$F95_LIB$ac_delim
22747 HAVE_RE_COMP!$HAVE_RE_COMP$ac_delim
22748 SHLIBEXT!$SHLIBEXT$ac_delim
22749 LIBOBJS!$LIBOBJS$ac_delim
22750 LTLIBOBJS!$LTLIBOBJS$ac_delim
22751 _ACEOF
22753 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 21; then
22754 break
22755 elif $ac_last_try; then
22756 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22757 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22758 { (exit 1); exit 1; }; }
22759 else
22760 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22762 done
22764 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
22765 if test -n "$ac_eof"; then
22766 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
22767 ac_eof=`expr $ac_eof + 1`
22770 cat >>$CONFIG_STATUS <<_ACEOF
22771 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
22772 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
22773 _ACEOF
22774 sed '
22775 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
22776 s/^/s,@/; s/!/@,|#_!!_#|/
22779 s/'"$ac_delim"'$/,g/; t
22780 s/$/\\/; p
22781 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
22782 ' >>$CONFIG_STATUS <conf$$subs.sed
22783 rm -f conf$$subs.sed
22784 cat >>$CONFIG_STATUS <<_ACEOF
22785 :end
22786 s/|#_!!_#|//g
22787 CEOF$ac_eof
22788 _ACEOF
22791 # VPATH may cause trouble with some makes, so we remove $(srcdir),
22792 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22793 # trailing colons and then remove the whole line if VPATH becomes empty
22794 # (actually we leave an empty line to preserve line numbers).
22795 if test "x$srcdir" = x.; then
22796 ac_vpsub='/^[ ]*VPATH[ ]*=/{
22797 s/:*\$(srcdir):*/:/
22798 s/:*\${srcdir}:*/:/
22799 s/:*@srcdir@:*/:/
22800 s/^\([^=]*=[ ]*\):*/\1/
22801 s/:*$//
22802 s/^[^=]*=[ ]*$//
22806 cat >>$CONFIG_STATUS <<\_ACEOF
22807 fi # test -n "$CONFIG_FILES"
22810 for ac_tag in :F $CONFIG_FILES :C $CONFIG_COMMANDS
22812 case $ac_tag in
22813 :[FHLC]) ac_mode=$ac_tag; continue;;
22814 esac
22815 case $ac_mode$ac_tag in
22816 :[FHL]*:*);;
22817 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
22818 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
22819 { (exit 1); exit 1; }; };;
22820 :[FH]-) ac_tag=-:-;;
22821 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
22822 esac
22823 ac_save_IFS=$IFS
22824 IFS=:
22825 set x $ac_tag
22826 IFS=$ac_save_IFS
22827 shift
22828 ac_file=$1
22829 shift
22831 case $ac_mode in
22832 :L) ac_source=$1;;
22833 :[FH])
22834 ac_file_inputs=
22835 for ac_f
22837 case $ac_f in
22838 -) ac_f="$tmp/stdin";;
22839 *) # Look for the file first in the build tree, then in the source tree
22840 # (if the path is not absolute). The absolute path cannot be DOS-style,
22841 # because $ac_f cannot contain `:'.
22842 test -f "$ac_f" ||
22843 case $ac_f in
22844 [\\/$]*) false;;
22845 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
22846 esac ||
22847 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
22848 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
22849 { (exit 1); exit 1; }; };;
22850 esac
22851 ac_file_inputs="$ac_file_inputs $ac_f"
22852 done
22854 # Let's still pretend it is `configure' which instantiates (i.e., don't
22855 # use $as_me), people would be surprised to read:
22856 # /* config.h. Generated by config.status. */
22857 configure_input="Generated from "`IFS=:
22858 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
22859 if test x"$ac_file" != x-; then
22860 configure_input="$ac_file. $configure_input"
22861 { echo "$as_me:$LINENO: creating $ac_file" >&5
22862 echo "$as_me: creating $ac_file" >&6;}
22865 case $ac_tag in
22866 *:-:* | *:-) cat >"$tmp/stdin";;
22867 esac
22869 esac
22871 ac_dir=`$as_dirname -- "$ac_file" ||
22872 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22873 X"$ac_file" : 'X\(//\)[^/]' \| \
22874 X"$ac_file" : 'X\(//\)$' \| \
22875 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
22876 echo X"$ac_file" |
22877 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22878 s//\1/
22881 /^X\(\/\/\)[^/].*/{
22882 s//\1/
22885 /^X\(\/\/\)$/{
22886 s//\1/
22889 /^X\(\/\).*/{
22890 s//\1/
22893 s/.*/./; q'`
22894 { as_dir="$ac_dir"
22895 case $as_dir in #(
22896 -*) as_dir=./$as_dir;;
22897 esac
22898 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22899 as_dirs=
22900 while :; do
22901 case $as_dir in #(
22902 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22903 *) as_qdir=$as_dir;;
22904 esac
22905 as_dirs="'$as_qdir' $as_dirs"
22906 as_dir=`$as_dirname -- "$as_dir" ||
22907 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22908 X"$as_dir" : 'X\(//\)[^/]' \| \
22909 X"$as_dir" : 'X\(//\)$' \| \
22910 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22911 echo X"$as_dir" |
22912 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22913 s//\1/
22916 /^X\(\/\/\)[^/].*/{
22917 s//\1/
22920 /^X\(\/\/\)$/{
22921 s//\1/
22924 /^X\(\/\).*/{
22925 s//\1/
22928 s/.*/./; q'`
22929 test -d "$as_dir" && break
22930 done
22931 test -z "$as_dirs" || eval "mkdir $as_dirs"
22932 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22933 echo "$as_me: error: cannot create directory $as_dir" >&2;}
22934 { (exit 1); exit 1; }; }; }
22935 ac_builddir=.
22937 case "$ac_dir" in
22938 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22940 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22941 # A ".." for each directory in $ac_dir_suffix.
22942 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
22943 case $ac_top_builddir_sub in
22944 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22945 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22946 esac ;;
22947 esac
22948 ac_abs_top_builddir=$ac_pwd
22949 ac_abs_builddir=$ac_pwd$ac_dir_suffix
22950 # for backward compatibility:
22951 ac_top_builddir=$ac_top_build_prefix
22953 case $srcdir in
22954 .) # We are building in place.
22955 ac_srcdir=.
22956 ac_top_srcdir=$ac_top_builddir_sub
22957 ac_abs_top_srcdir=$ac_pwd ;;
22958 [\\/]* | ?:[\\/]* ) # Absolute name.
22959 ac_srcdir=$srcdir$ac_dir_suffix;
22960 ac_top_srcdir=$srcdir
22961 ac_abs_top_srcdir=$srcdir ;;
22962 *) # Relative name.
22963 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22964 ac_top_srcdir=$ac_top_build_prefix$srcdir
22965 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22966 esac
22967 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22970 case $ac_mode in
22973 # CONFIG_FILE
22976 _ACEOF
22978 cat >>$CONFIG_STATUS <<\_ACEOF
22979 # If the template does not know about datarootdir, expand it.
22980 # FIXME: This hack should be removed a few years after 2.60.
22981 ac_datarootdir_hack=; ac_datarootdir_seen=
22983 case `sed -n '/datarootdir/ {
22987 /@datadir@/p
22988 /@docdir@/p
22989 /@infodir@/p
22990 /@localedir@/p
22991 /@mandir@/p
22992 ' $ac_file_inputs` in
22993 *datarootdir*) ac_datarootdir_seen=yes;;
22994 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
22995 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22996 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
22997 _ACEOF
22998 cat >>$CONFIG_STATUS <<_ACEOF
22999 ac_datarootdir_hack='
23000 s&@datadir@&$datadir&g
23001 s&@docdir@&$docdir&g
23002 s&@infodir@&$infodir&g
23003 s&@localedir@&$localedir&g
23004 s&@mandir@&$mandir&g
23005 s&\\\${datarootdir}&$datarootdir&g' ;;
23006 esac
23007 _ACEOF
23009 # Neutralize VPATH when `$srcdir' = `.'.
23010 # Shell code in configure.ac might set extrasub.
23011 # FIXME: do we really want to maintain this feature?
23012 cat >>$CONFIG_STATUS <<_ACEOF
23013 sed "$ac_vpsub
23014 $extrasub
23015 _ACEOF
23016 cat >>$CONFIG_STATUS <<\_ACEOF
23018 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23019 s&@configure_input@&$configure_input&;t t
23020 s&@top_builddir@&$ac_top_builddir_sub&;t t
23021 s&@srcdir@&$ac_srcdir&;t t
23022 s&@abs_srcdir@&$ac_abs_srcdir&;t t
23023 s&@top_srcdir@&$ac_top_srcdir&;t t
23024 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
23025 s&@builddir@&$ac_builddir&;t t
23026 s&@abs_builddir@&$ac_abs_builddir&;t t
23027 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
23028 $ac_datarootdir_hack
23029 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
23031 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
23032 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
23033 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
23034 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23035 which seems to be undefined. Please make sure it is defined." >&5
23036 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23037 which seems to be undefined. Please make sure it is defined." >&2;}
23039 rm -f "$tmp/stdin"
23040 case $ac_file in
23041 -) cat "$tmp/out"; rm -f "$tmp/out";;
23042 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
23043 esac
23047 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
23048 echo "$as_me: executing $ac_file commands" >&6;}
23050 esac
23053 case $ac_file$ac_mode in
23054 "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
23055 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
23056 "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
23057 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile.common Makefile.common ;;
23058 "Makefile.nagfortran":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.nagfortran`
23059 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile.nagfortran Makefile.nagfortran ;;
23060 "Makefile.f2c":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.f2c`
23061 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile.f2c Makefile.f2c ;;
23062 "Makefile.programs":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.programs`
23063 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile.programs Makefile.programs ;;
23064 "Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.tests`
23065 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile.tests Makefile.tests ;;
23066 "TEST.aa.Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname TEST.aa.Makefile`
23067 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/TEST.aa.Makefile TEST.aa.Makefile ;;
23068 "TEST.aa.report":C) ${llvm_src}/autoconf/mkinstalldirs `dirname TEST.aa.report`
23069 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/TEST.aa.report TEST.aa.report ;;
23070 "TEST.example.Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname TEST.example.Makefile`
23071 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/TEST.example.Makefile TEST.example.Makefile ;;
23072 "TEST.nightly.Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname TEST.nightly.Makefile`
23073 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/TEST.nightly.Makefile TEST.nightly.Makefile ;;
23074 "TEST.buildrepo.Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname TEST.buildrepo.Makefile`
23075 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/TEST.buildrepo.Makefile TEST.buildrepo.Makefile ;;
23076 "TEST.jit.Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname TEST.jit.Makefile`
23077 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/TEST.jit.Makefile TEST.jit.Makefile ;;
23078 "TEST.nightly.report":C) ${llvm_src}/autoconf/mkinstalldirs `dirname TEST.nightly.report`
23079 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/TEST.nightly.report TEST.nightly.report ;;
23080 "TEST.jit.report":C) ${llvm_src}/autoconf/mkinstalldirs `dirname TEST.jit.report`
23081 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/TEST.jit.report TEST.jit.report ;;
23082 "TEST.typesafe.Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname TEST.typesafe.Makefile`
23083 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/TEST.typesafe.Makefile TEST.typesafe.Makefile ;;
23084 "TEST.vtl.Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname TEST.vtl.Makefile`
23085 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/TEST.vtl.Makefile TEST.vtl.Makefile ;;
23086 "External/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname External/Makefile`
23087 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/External/Makefile External/Makefile ;;
23088 "External/Makefile.external":C) ${llvm_src}/autoconf/mkinstalldirs `dirname External/Makefile.external`
23089 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/External/Makefile.external External/Makefile.external ;;
23090 "External/Povray/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname External/Povray/Makefile`
23091 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/External/Povray/Makefile External/Povray/Makefile ;;
23092 "External/SPEC/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname External/SPEC/Makefile`
23093 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/External/SPEC/Makefile External/SPEC/Makefile ;;
23094 "External/SPEC/Makefile.spec":C) ${llvm_src}/autoconf/mkinstalldirs `dirname External/SPEC/Makefile.spec`
23095 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/External/SPEC/Makefile.spec External/SPEC/Makefile.spec ;;
23096 "External/SPEC/Makefile.spec.config":C) ${llvm_src}/autoconf/mkinstalldirs `dirname External/SPEC/Makefile.spec.config`
23097 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/External/SPEC/Makefile.spec.config External/SPEC/Makefile.spec.config ;;
23098 "External/SPEC/Makefile.spec2006":C) ${llvm_src}/autoconf/mkinstalldirs `dirname External/SPEC/Makefile.spec2006`
23099 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/External/SPEC/Makefile.spec2006 External/SPEC/Makefile.spec2006 ;;
23100 "External/SPEC/Makefile.spec2000":C) ${llvm_src}/autoconf/mkinstalldirs `dirname External/SPEC/Makefile.spec2000`
23101 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/External/SPEC/Makefile.spec2000 External/SPEC/Makefile.spec2000 ;;
23102 "External/SPEC/Makefile.spec95":C) ${llvm_src}/autoconf/mkinstalldirs `dirname External/SPEC/Makefile.spec95`
23103 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/External/SPEC/Makefile.spec95 External/SPEC/Makefile.spec95 ;;
23104 "External/SPEC/CFP2006/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname External/SPEC/CFP2006/Makefile`
23105 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/External/SPEC/CFP2006/Makefile External/SPEC/CFP2006/Makefile ;;
23106 "External/SPEC/CINT2006/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname External/SPEC/CINT2006/Makefile`
23107 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/External/SPEC/CINT2006/Makefile External/SPEC/CINT2006/Makefile ;;
23108 "External/SPEC/CFP2000/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname External/SPEC/CFP2000/Makefile`
23109 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/External/SPEC/CFP2000/Makefile External/SPEC/CFP2000/Makefile ;;
23110 "External/SPEC/CINT2000/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname External/SPEC/CINT2000/Makefile`
23111 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/External/SPEC/CINT2000/Makefile External/SPEC/CINT2000/Makefile ;;
23112 "External/SPEC/CFP95/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname External/SPEC/CFP95/Makefile`
23113 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/External/SPEC/CFP95/Makefile External/SPEC/CFP95/Makefile ;;
23114 "External/SPEC/CINT95/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname External/SPEC/CINT95/Makefile`
23115 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/External/SPEC/CINT95/Makefile External/SPEC/CINT95/Makefile ;;
23116 "External/skidmarks10/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname External/skidmarks10/Makefile`
23117 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/External/skidmarks10/Makefile External/skidmarks10/Makefile ;;
23118 "MultiSource/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname MultiSource/Makefile`
23119 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/MultiSource/Makefile MultiSource/Makefile ;;
23120 "MultiSource/Makefile.multisrc":C) ${llvm_src}/autoconf/mkinstalldirs `dirname MultiSource/Makefile.multisrc`
23121 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/MultiSource/Makefile.multisrc MultiSource/Makefile.multisrc ;;
23122 "SingleSource/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname SingleSource/Makefile`
23123 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/SingleSource/Makefile SingleSource/Makefile ;;
23124 "SingleSource/Makefile.singlesrc":C) ${llvm_src}/autoconf/mkinstalldirs `dirname SingleSource/Makefile.singlesrc`
23125 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/SingleSource/Makefile.singlesrc SingleSource/Makefile.singlesrc ;;
23126 "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
23127 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
23129 esac
23130 done # for ac_tag
23133 { (exit 0); exit 0; }
23134 _ACEOF
23135 chmod +x $CONFIG_STATUS
23136 ac_clean_files=$ac_clean_files_save
23139 # configure is writing to config.log, and then calls config.status.
23140 # config.status does its own redirection, appending to config.log.
23141 # Unfortunately, on DOS this fails, as config.log is still kept open
23142 # by configure, so config.status won't be able to write to it; its
23143 # output is simply discarded. So we exec the FD to /dev/null,
23144 # effectively closing config.log, so it can be properly (re)opened and
23145 # appended to by config.status. When coming back to configure, we
23146 # need to make the FD available again.
23147 if test "$no_create" != yes; then
23148 ac_cs_success=:
23149 ac_config_status_args=
23150 test "$silent" = yes &&
23151 ac_config_status_args="$ac_config_status_args --quiet"
23152 exec 5>/dev/null
23153 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
23154 exec 5>>config.log
23155 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23156 # would make configure fail if this is the last instruction.
23157 $ac_cs_success || { (exit 1); exit 1; }