Added anna and aruna
[csql.git] / configure
blob81b6e3644419aedcbfdc1d9f18d57059643f69a1
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.60.
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization. ##
11 ## --------------------- ##
13 # Be Bourne compatible
14 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
15 emulate sh
16 NULLCMD=:
17 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
18 # is contrary to our usage. Disable this feature.
19 alias -g '${1+"$@"}'='"$@"'
20 setopt NO_GLOB_SUBST
21 else
22 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
24 BIN_SH=xpg4; export BIN_SH # for Tru64
25 DUALCASE=1; export DUALCASE # for MKS sh
28 # PATH needs CR
29 # Avoid depending upon Character Ranges.
30 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
31 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
32 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
33 as_cr_digits='0123456789'
34 as_cr_alnum=$as_cr_Letters$as_cr_digits
36 # The user is always right.
37 if test "${PATH_SEPARATOR+set}" != set; then
38 echo "#! /bin/sh" >conf$$.sh
39 echo "exit 0" >>conf$$.sh
40 chmod +x conf$$.sh
41 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
42 PATH_SEPARATOR=';'
43 else
44 PATH_SEPARATOR=:
46 rm -f conf$$.sh
49 # Support unset when possible.
50 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
51 as_unset=unset
52 else
53 as_unset=false
57 # IFS
58 # We need space, tab and new line, in precisely that order. Quoting is
59 # there to prevent editors from complaining about space-tab.
60 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
61 # splitting by setting IFS to empty value.)
62 as_nl='
64 IFS=" "" $as_nl"
66 # Find who we are. Look in the path if we contain no directory separator.
67 case $0 in
68 *[\\/]* ) as_myself=$0 ;;
69 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
70 for as_dir in $PATH
72 IFS=$as_save_IFS
73 test -z "$as_dir" && as_dir=.
74 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
75 done
76 IFS=$as_save_IFS
79 esac
80 # We did not find ourselves, most probably we were run as `sh COMMAND'
81 # in which case we are not to be found in the path.
82 if test "x$as_myself" = x; then
83 as_myself=$0
85 if test ! -f "$as_myself"; then
86 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
87 { (exit 1); exit 1; }
90 # Work around bugs in pre-3.0 UWIN ksh.
91 for as_var in ENV MAIL MAILPATH
92 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
93 done
94 PS1='$ '
95 PS2='> '
96 PS4='+ '
98 # NLS nuisances.
99 for as_var in \
100 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
101 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
102 LC_TELEPHONE LC_TIME
104 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
105 eval $as_var=C; export $as_var
106 else
107 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
109 done
111 # Required to use basename.
112 if expr a : '\(a\)' >/dev/null 2>&1 &&
113 test "X`expr 00001 : '.*\(...\)'`" = X001; then
114 as_expr=expr
115 else
116 as_expr=false
119 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
120 as_basename=basename
121 else
122 as_basename=false
126 # Name of the executable.
127 as_me=`$as_basename -- "$0" ||
128 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
129 X"$0" : 'X\(//\)$' \| \
130 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
131 echo X/"$0" |
132 sed '/^.*\/\([^/][^/]*\)\/*$/{
133 s//\1/
136 /^X\/\(\/\/\)$/{
137 s//\1/
140 /^X\/\(\/\).*/{
141 s//\1/
144 s/.*/./; q'`
146 # CDPATH.
147 $as_unset CDPATH
150 if test "x$CONFIG_SHELL" = x; then
151 if (eval ":") 2>/dev/null; then
152 as_have_required=yes
153 else
154 as_have_required=no
157 if test $as_have_required = yes && (eval ":
158 (as_func_return () {
159 (exit \$1)
161 as_func_success () {
162 as_func_return 0
164 as_func_failure () {
165 as_func_return 1
167 as_func_ret_success () {
168 return 0
170 as_func_ret_failure () {
171 return 1
174 exitcode=0
175 if as_func_success; then
177 else
178 exitcode=1
179 echo as_func_success failed.
182 if as_func_failure; then
183 exitcode=1
184 echo as_func_failure succeeded.
187 if as_func_ret_success; then
189 else
190 exitcode=1
191 echo as_func_ret_success failed.
194 if as_func_ret_failure; then
195 exitcode=1
196 echo as_func_ret_failure succeeded.
199 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
201 else
202 exitcode=1
203 echo positional parameters were not saved.
206 test \$exitcode = 0) || { (exit 1); exit 1; }
209 as_lineno_1=\$LINENO
210 as_lineno_2=\$LINENO
211 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
212 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
213 ") 2> /dev/null; then
215 else
216 as_candidate_shells=
217 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
218 for as_dir in /usr/bin/posix$PATH_SEPARATOR/bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
220 IFS=$as_save_IFS
221 test -z "$as_dir" && as_dir=.
222 case $as_dir in
224 for as_base in sh bash ksh sh5; do
225 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
226 done;;
227 esac
228 done
229 IFS=$as_save_IFS
232 for as_shell in $as_candidate_shells $SHELL; do
233 # Try only shells that exist, to save several forks.
234 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
235 { ("$as_shell") 2> /dev/null <<\_ASEOF
236 # Be Bourne compatible
237 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
238 emulate sh
239 NULLCMD=:
240 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
241 # is contrary to our usage. Disable this feature.
242 alias -g '${1+"$@"}'='"$@"'
243 setopt NO_GLOB_SUBST
244 else
245 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
247 BIN_SH=xpg4; export BIN_SH # for Tru64
248 DUALCASE=1; export DUALCASE # for MKS sh
251 _ASEOF
252 }; then
253 CONFIG_SHELL=$as_shell
254 as_have_required=yes
255 if { "$as_shell" 2> /dev/null <<\_ASEOF
256 # Be Bourne compatible
257 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
258 emulate sh
259 NULLCMD=:
260 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
261 # is contrary to our usage. Disable this feature.
262 alias -g '${1+"$@"}'='"$@"'
263 setopt NO_GLOB_SUBST
264 else
265 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
267 BIN_SH=xpg4; export BIN_SH # for Tru64
268 DUALCASE=1; export DUALCASE # for MKS sh
271 (as_func_return () {
272 (exit $1)
274 as_func_success () {
275 as_func_return 0
277 as_func_failure () {
278 as_func_return 1
280 as_func_ret_success () {
281 return 0
283 as_func_ret_failure () {
284 return 1
287 exitcode=0
288 if as_func_success; then
290 else
291 exitcode=1
292 echo as_func_success failed.
295 if as_func_failure; then
296 exitcode=1
297 echo as_func_failure succeeded.
300 if as_func_ret_success; then
302 else
303 exitcode=1
304 echo as_func_ret_success failed.
307 if as_func_ret_failure; then
308 exitcode=1
309 echo as_func_ret_failure succeeded.
312 if ( set x; as_func_ret_success y && test x = "$1" ); then
314 else
315 exitcode=1
316 echo positional parameters were not saved.
319 test $exitcode = 0) || { (exit 1); exit 1; }
322 as_lineno_1=$LINENO
323 as_lineno_2=$LINENO
324 test "x$as_lineno_1" != "x$as_lineno_2" &&
325 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
327 _ASEOF
328 }; then
329 break
334 done
336 if test "x$CONFIG_SHELL" != x; then
337 for as_var in BASH_ENV ENV
338 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
339 done
340 export CONFIG_SHELL
341 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
345 if test $as_have_required = no; then
346 echo This script requires a shell more modern than all the
347 echo shells that I found on your system. Please install a
348 echo modern shell, or manually run the script under such a
349 echo shell if you do have one.
350 { (exit 1); exit 1; }
360 (eval "as_func_return () {
361 (exit \$1)
363 as_func_success () {
364 as_func_return 0
366 as_func_failure () {
367 as_func_return 1
369 as_func_ret_success () {
370 return 0
372 as_func_ret_failure () {
373 return 1
376 exitcode=0
377 if as_func_success; then
379 else
380 exitcode=1
381 echo as_func_success failed.
384 if as_func_failure; then
385 exitcode=1
386 echo as_func_failure succeeded.
389 if as_func_ret_success; then
391 else
392 exitcode=1
393 echo as_func_ret_success failed.
396 if as_func_ret_failure; then
397 exitcode=1
398 echo as_func_ret_failure succeeded.
401 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
403 else
404 exitcode=1
405 echo positional parameters were not saved.
408 test \$exitcode = 0") || {
409 echo No shell found that supports shell functions.
410 echo Please tell autoconf@gnu.org about your system,
411 echo including any error possibly output before this
412 echo message
417 as_lineno_1=$LINENO
418 as_lineno_2=$LINENO
419 test "x$as_lineno_1" != "x$as_lineno_2" &&
420 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
422 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
423 # uniformly replaced by the line number. The first 'sed' inserts a
424 # line-number line after each line using $LINENO; the second 'sed'
425 # does the real work. The second script uses 'N' to pair each
426 # line-number line with the line containing $LINENO, and appends
427 # trailing '-' during substitution so that $LINENO is not a special
428 # case at line end.
429 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
430 # scripts with optimization help from Paolo Bonzini. Blame Lee
431 # E. McMahon (1931-1989) for sed's syntax. :-)
432 sed -n '
434 /[$]LINENO/=
435 ' <$as_myself |
436 sed '
437 s/[$]LINENO.*/&-/
438 t lineno
440 :lineno
442 :loop
443 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
444 t loop
445 s/-\n.*//
446 ' >$as_me.lineno &&
447 chmod +x "$as_me.lineno" ||
448 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
449 { (exit 1); exit 1; }; }
451 # Don't try to exec as it changes $[0], causing all sort of problems
452 # (the dirname of $[0] is not the place where we might find the
453 # original and so on. Autoconf is especially sensitive to this).
454 . "./$as_me.lineno"
455 # Exit status is that of the last command.
456 exit
460 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
461 as_dirname=dirname
462 else
463 as_dirname=false
466 ECHO_C= ECHO_N= ECHO_T=
467 case `echo -n x` in
468 -n*)
469 case `echo 'x\c'` in
470 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
471 *) ECHO_C='\c';;
472 esac;;
474 ECHO_N='-n';;
475 esac
477 if expr a : '\(a\)' >/dev/null 2>&1 &&
478 test "X`expr 00001 : '.*\(...\)'`" = X001; then
479 as_expr=expr
480 else
481 as_expr=false
484 rm -f conf$$ conf$$.exe conf$$.file
485 if test -d conf$$.dir; then
486 rm -f conf$$.dir/conf$$.file
487 else
488 rm -f conf$$.dir
489 mkdir conf$$.dir
491 echo >conf$$.file
492 if ln -s conf$$.file conf$$ 2>/dev/null; then
493 as_ln_s='ln -s'
494 # ... but there are two gotchas:
495 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
496 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
497 # In both cases, we have to default to `cp -p'.
498 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
499 as_ln_s='cp -p'
500 elif ln conf$$.file conf$$ 2>/dev/null; then
501 as_ln_s=ln
502 else
503 as_ln_s='cp -p'
505 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
506 rmdir conf$$.dir 2>/dev/null
508 if mkdir -p . 2>/dev/null; then
509 as_mkdir_p=:
510 else
511 test -d ./-p && rmdir ./-p
512 as_mkdir_p=false
515 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
516 # systems may use methods other than mode bits to determine executability.
517 cat >conf$$.file <<_ASEOF
518 #! /bin/sh
519 exit 0
520 _ASEOF
521 chmod +x conf$$.file
522 if test -x conf$$.file >/dev/null 2>&1; then
523 as_executable_p="test -x"
524 else
525 as_executable_p=:
527 rm -f conf$$.file
529 # Sed expression to map a string onto a valid CPP name.
530 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
532 # Sed expression to map a string onto a valid variable name.
533 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
538 # Check that we are running under the correct shell.
539 SHELL=${CONFIG_SHELL-/bin/sh}
541 case X$ECHO in
542 X*--fallback-echo)
543 # Remove one level of quotation (which was required for Make).
544 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
546 esac
548 echo=${ECHO-echo}
549 if test "X$1" = X--no-reexec; then
550 # Discard the --no-reexec flag, and continue.
551 shift
552 elif test "X$1" = X--fallback-echo; then
553 # Avoid inline document here, it may be left over
555 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
556 # Yippee, $echo works!
558 else
559 # Restart under the correct shell.
560 exec $SHELL "$0" --no-reexec ${1+"$@"}
563 if test "X$1" = X--fallback-echo; then
564 # used as fallback echo
565 shift
566 cat <<EOF
569 exit 0
572 # The HP-UX ksh and POSIX shell print the target directory to stdout
573 # if CDPATH is set.
574 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
576 if test -z "$ECHO"; then
577 if test "X${echo_test_string+set}" != Xset; then
578 # find a string as large as possible, as long as the shell can cope with it
579 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
580 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
581 if (echo_test_string=`eval $cmd`) 2>/dev/null &&
582 echo_test_string=`eval $cmd` &&
583 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
584 then
585 break
587 done
590 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
591 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
592 test "X$echo_testing_string" = "X$echo_test_string"; then
594 else
595 # The Solaris, AIX, and Digital Unix default echo programs unquote
596 # backslashes. This makes it impossible to quote backslashes using
597 # echo "$something" | sed 's/\\/\\\\/g'
599 # So, first we look for a working echo in the user's PATH.
601 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
602 for dir in $PATH /usr/ucb; do
603 IFS="$lt_save_ifs"
604 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
605 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
606 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
607 test "X$echo_testing_string" = "X$echo_test_string"; then
608 echo="$dir/echo"
609 break
611 done
612 IFS="$lt_save_ifs"
614 if test "X$echo" = Xecho; then
615 # We didn't find a better echo, so look for alternatives.
616 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
617 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
618 test "X$echo_testing_string" = "X$echo_test_string"; then
619 # This shell has a builtin print -r that does the trick.
620 echo='print -r'
621 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
622 test "X$CONFIG_SHELL" != X/bin/ksh; then
623 # If we have ksh, try running configure again with it.
624 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
625 export ORIGINAL_CONFIG_SHELL
626 CONFIG_SHELL=/bin/ksh
627 export CONFIG_SHELL
628 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
629 else
630 # Try using printf.
631 echo='printf %s\n'
632 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
633 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
634 test "X$echo_testing_string" = "X$echo_test_string"; then
635 # Cool, printf works
637 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
638 test "X$echo_testing_string" = 'X\t' &&
639 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
640 test "X$echo_testing_string" = "X$echo_test_string"; then
641 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
642 export CONFIG_SHELL
643 SHELL="$CONFIG_SHELL"
644 export SHELL
645 echo="$CONFIG_SHELL $0 --fallback-echo"
646 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
647 test "X$echo_testing_string" = 'X\t' &&
648 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
649 test "X$echo_testing_string" = "X$echo_test_string"; then
650 echo="$CONFIG_SHELL $0 --fallback-echo"
651 else
652 # maybe with a smaller string...
653 prev=:
655 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
656 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
657 then
658 break
660 prev="$cmd"
661 done
663 if test "$prev" != 'sed 50q "$0"'; then
664 echo_test_string=`eval $prev`
665 export echo_test_string
666 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
667 else
668 # Oops. We lost completely, so just stick with echo.
669 echo=echo
677 # Copy echo and quote the copy suitably for passing to libtool from
678 # the Makefile, instead of quoting the original, which is used later.
679 ECHO=$echo
680 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
681 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
687 tagnames=${tagnames+${tagnames},}CXX
689 tagnames=${tagnames+${tagnames},}F77
691 exec 7<&0 </dev/null 6>&1
693 # Name of the host.
694 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
695 # so uname gets run too.
696 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
699 # Initializations.
701 ac_default_prefix=/usr/local
702 ac_clean_files=
703 ac_config_libobj_dir=.
704 LIBOBJS=
705 cross_compiling=no
706 subdirs=
707 MFLAGS=
708 MAKEFLAGS=
709 SHELL=${CONFIG_SHELL-/bin/sh}
711 # Identity of this package.
712 PACKAGE_NAME=
713 PACKAGE_TARNAME=
714 PACKAGE_VERSION=
715 PACKAGE_STRING=
716 PACKAGE_BUGREPORT=
718 ac_unique_file="configure.in"
719 # Factoring default headers for most tests.
720 ac_includes_default="\
721 #include <stdio.h>
722 #if HAVE_SYS_TYPES_H
723 # include <sys/types.h>
724 #endif
725 #if HAVE_SYS_STAT_H
726 # include <sys/stat.h>
727 #endif
728 #if STDC_HEADERS
729 # include <stdlib.h>
730 # include <stddef.h>
731 #else
732 # if HAVE_STDLIB_H
733 # include <stdlib.h>
734 # endif
735 #endif
736 #if HAVE_STRING_H
737 # if !STDC_HEADERS && HAVE_MEMORY_H
738 # include <memory.h>
739 # endif
740 # include <string.h>
741 #endif
742 #if HAVE_STRINGS_H
743 # include <strings.h>
744 #endif
745 #if HAVE_INTTYPES_H
746 # include <inttypes.h>
747 #endif
748 #if HAVE_STDINT_H
749 # include <stdint.h>
750 #endif
751 #if HAVE_UNISTD_H
752 # include <unistd.h>
753 #endif"
755 ac_subst_vars='SHELL
756 PATH_SEPARATOR
757 PACKAGE_NAME
758 PACKAGE_TARNAME
759 PACKAGE_VERSION
760 PACKAGE_STRING
761 PACKAGE_BUGREPORT
762 exec_prefix
763 prefix
764 program_transform_name
765 bindir
766 sbindir
767 libexecdir
768 datarootdir
769 datadir
770 sysconfdir
771 sharedstatedir
772 localstatedir
773 includedir
774 oldincludedir
775 docdir
776 infodir
777 htmldir
778 dvidir
779 pdfdir
780 psdir
781 libdir
782 localedir
783 mandir
784 DEFS
785 ECHO_C
786 ECHO_N
787 ECHO_T
788 LIBS
789 build_alias
790 host_alias
791 target_alias
792 INSTALL_PROGRAM
793 INSTALL_SCRIPT
794 INSTALL_DATA
795 CYGPATH_W
796 PACKAGE
797 VERSION
798 ACLOCAL
799 AUTOCONF
800 AUTOMAKE
801 AUTOHEADER
802 MAKEINFO
803 install_sh
804 STRIP
805 INSTALL_STRIP_PROGRAM
806 mkdir_p
808 SET_MAKE
809 am__leading_dot
810 AMTAR
811 am__tar
812 am__untar
814 CFLAGS
815 LDFLAGS
816 CPPFLAGS
817 ac_ct_CC
818 EXEEXT
819 OBJEXT
820 DEPDIR
821 am__include
822 am__quote
823 AMDEP_TRUE
824 AMDEP_FALSE
825 AMDEPBACKSLASH
826 CCDEPMODE
827 am__fastdepCC_TRUE
828 am__fastdepCC_FALSE
829 build
830 build_cpu
831 build_vendor
832 build_os
833 host
834 host_cpu
835 host_vendor
836 host_os
837 GREP
838 EGREP
839 LN_S
840 ECHO
842 RANLIB
845 CXXFLAGS
846 ac_ct_CXX
847 CXXDEPMODE
848 am__fastdepCXX_TRUE
849 am__fastdepCXX_FALSE
850 CXXCPP
852 FFLAGS
853 ac_ct_F77
854 LIBTOOL
856 LEXLIB
857 LEX_OUTPUT_ROOT
858 YACC
859 YFLAGS
860 LIBOBJS
861 LTLIBOBJS'
862 ac_subst_files=''
863 ac_precious_vars='build_alias
864 host_alias
865 target_alias
867 CFLAGS
868 LDFLAGS
869 CPPFLAGS
872 CXXFLAGS
874 CXXCPP
876 FFLAGS
877 YACC
878 YFLAGS'
881 # Initialize some variables set by options.
882 ac_init_help=
883 ac_init_version=false
884 # The variables have the same names as the options, with
885 # dashes changed to underlines.
886 cache_file=/dev/null
887 exec_prefix=NONE
888 no_create=
889 no_recursion=
890 prefix=NONE
891 program_prefix=NONE
892 program_suffix=NONE
893 program_transform_name=s,x,x,
894 silent=
895 site=
896 srcdir=
897 verbose=
898 x_includes=NONE
899 x_libraries=NONE
901 # Installation directory options.
902 # These are left unexpanded so users can "make install exec_prefix=/foo"
903 # and all the variables that are supposed to be based on exec_prefix
904 # by default will actually change.
905 # Use braces instead of parens because sh, perl, etc. also accept them.
906 # (The list follows the same order as the GNU Coding Standards.)
907 bindir='${exec_prefix}/bin'
908 sbindir='${exec_prefix}/sbin'
909 libexecdir='${exec_prefix}/libexec'
910 datarootdir='${prefix}/share'
911 datadir='${datarootdir}'
912 sysconfdir='${prefix}/etc'
913 sharedstatedir='${prefix}/com'
914 localstatedir='${prefix}/var'
915 includedir='${prefix}/include'
916 oldincludedir='/usr/include'
917 docdir='${datarootdir}/doc/${PACKAGE}'
918 infodir='${datarootdir}/info'
919 htmldir='${docdir}'
920 dvidir='${docdir}'
921 pdfdir='${docdir}'
922 psdir='${docdir}'
923 libdir='${exec_prefix}/lib'
924 localedir='${datarootdir}/locale'
925 mandir='${datarootdir}/man'
927 ac_prev=
928 ac_dashdash=
929 for ac_option
931 # If the previous option needs an argument, assign it.
932 if test -n "$ac_prev"; then
933 eval $ac_prev=\$ac_option
934 ac_prev=
935 continue
938 case $ac_option in
939 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
940 *) ac_optarg=yes ;;
941 esac
943 # Accept the important Cygnus configure options, so we can diagnose typos.
945 case $ac_dashdash$ac_option in
947 ac_dashdash=yes ;;
949 -bindir | --bindir | --bindi | --bind | --bin | --bi)
950 ac_prev=bindir ;;
951 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
952 bindir=$ac_optarg ;;
954 -build | --build | --buil | --bui | --bu)
955 ac_prev=build_alias ;;
956 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
957 build_alias=$ac_optarg ;;
959 -cache-file | --cache-file | --cache-fil | --cache-fi \
960 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
961 ac_prev=cache_file ;;
962 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
963 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
964 cache_file=$ac_optarg ;;
966 --config-cache | -C)
967 cache_file=config.cache ;;
969 -datadir | --datadir | --datadi | --datad)
970 ac_prev=datadir ;;
971 -datadir=* | --datadir=* | --datadi=* | --datad=*)
972 datadir=$ac_optarg ;;
974 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
975 | --dataroo | --dataro | --datar)
976 ac_prev=datarootdir ;;
977 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
978 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
979 datarootdir=$ac_optarg ;;
981 -disable-* | --disable-*)
982 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
983 # Reject names that are not valid shell variable names.
984 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
985 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
986 { (exit 1); exit 1; }; }
987 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
988 eval enable_$ac_feature=no ;;
990 -docdir | --docdir | --docdi | --doc | --do)
991 ac_prev=docdir ;;
992 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
993 docdir=$ac_optarg ;;
995 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
996 ac_prev=dvidir ;;
997 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
998 dvidir=$ac_optarg ;;
1000 -enable-* | --enable-*)
1001 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1002 # Reject names that are not valid shell variable names.
1003 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1004 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1005 { (exit 1); exit 1; }; }
1006 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
1007 eval enable_$ac_feature=\$ac_optarg ;;
1009 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1010 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1011 | --exec | --exe | --ex)
1012 ac_prev=exec_prefix ;;
1013 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1014 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1015 | --exec=* | --exe=* | --ex=*)
1016 exec_prefix=$ac_optarg ;;
1018 -gas | --gas | --ga | --g)
1019 # Obsolete; use --with-gas.
1020 with_gas=yes ;;
1022 -help | --help | --hel | --he | -h)
1023 ac_init_help=long ;;
1024 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1025 ac_init_help=recursive ;;
1026 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1027 ac_init_help=short ;;
1029 -host | --host | --hos | --ho)
1030 ac_prev=host_alias ;;
1031 -host=* | --host=* | --hos=* | --ho=*)
1032 host_alias=$ac_optarg ;;
1034 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1035 ac_prev=htmldir ;;
1036 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1037 | --ht=*)
1038 htmldir=$ac_optarg ;;
1040 -includedir | --includedir | --includedi | --included | --include \
1041 | --includ | --inclu | --incl | --inc)
1042 ac_prev=includedir ;;
1043 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1044 | --includ=* | --inclu=* | --incl=* | --inc=*)
1045 includedir=$ac_optarg ;;
1047 -infodir | --infodir | --infodi | --infod | --info | --inf)
1048 ac_prev=infodir ;;
1049 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1050 infodir=$ac_optarg ;;
1052 -libdir | --libdir | --libdi | --libd)
1053 ac_prev=libdir ;;
1054 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1055 libdir=$ac_optarg ;;
1057 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1058 | --libexe | --libex | --libe)
1059 ac_prev=libexecdir ;;
1060 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1061 | --libexe=* | --libex=* | --libe=*)
1062 libexecdir=$ac_optarg ;;
1064 -localedir | --localedir | --localedi | --localed | --locale)
1065 ac_prev=localedir ;;
1066 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1067 localedir=$ac_optarg ;;
1069 -localstatedir | --localstatedir | --localstatedi | --localstated \
1070 | --localstate | --localstat | --localsta | --localst | --locals)
1071 ac_prev=localstatedir ;;
1072 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1073 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1074 localstatedir=$ac_optarg ;;
1076 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1077 ac_prev=mandir ;;
1078 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1079 mandir=$ac_optarg ;;
1081 -nfp | --nfp | --nf)
1082 # Obsolete; use --without-fp.
1083 with_fp=no ;;
1085 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1086 | --no-cr | --no-c | -n)
1087 no_create=yes ;;
1089 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1090 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1091 no_recursion=yes ;;
1093 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1094 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1095 | --oldin | --oldi | --old | --ol | --o)
1096 ac_prev=oldincludedir ;;
1097 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1098 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1099 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1100 oldincludedir=$ac_optarg ;;
1102 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1103 ac_prev=prefix ;;
1104 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1105 prefix=$ac_optarg ;;
1107 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1108 | --program-pre | --program-pr | --program-p)
1109 ac_prev=program_prefix ;;
1110 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1111 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1112 program_prefix=$ac_optarg ;;
1114 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1115 | --program-suf | --program-su | --program-s)
1116 ac_prev=program_suffix ;;
1117 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1118 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1119 program_suffix=$ac_optarg ;;
1121 -program-transform-name | --program-transform-name \
1122 | --program-transform-nam | --program-transform-na \
1123 | --program-transform-n | --program-transform- \
1124 | --program-transform | --program-transfor \
1125 | --program-transfo | --program-transf \
1126 | --program-trans | --program-tran \
1127 | --progr-tra | --program-tr | --program-t)
1128 ac_prev=program_transform_name ;;
1129 -program-transform-name=* | --program-transform-name=* \
1130 | --program-transform-nam=* | --program-transform-na=* \
1131 | --program-transform-n=* | --program-transform-=* \
1132 | --program-transform=* | --program-transfor=* \
1133 | --program-transfo=* | --program-transf=* \
1134 | --program-trans=* | --program-tran=* \
1135 | --progr-tra=* | --program-tr=* | --program-t=*)
1136 program_transform_name=$ac_optarg ;;
1138 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1139 ac_prev=pdfdir ;;
1140 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1141 pdfdir=$ac_optarg ;;
1143 -psdir | --psdir | --psdi | --psd | --ps)
1144 ac_prev=psdir ;;
1145 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1146 psdir=$ac_optarg ;;
1148 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1149 | -silent | --silent | --silen | --sile | --sil)
1150 silent=yes ;;
1152 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1153 ac_prev=sbindir ;;
1154 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1155 | --sbi=* | --sb=*)
1156 sbindir=$ac_optarg ;;
1158 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1159 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1160 | --sharedst | --shareds | --shared | --share | --shar \
1161 | --sha | --sh)
1162 ac_prev=sharedstatedir ;;
1163 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1164 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1165 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1166 | --sha=* | --sh=*)
1167 sharedstatedir=$ac_optarg ;;
1169 -site | --site | --sit)
1170 ac_prev=site ;;
1171 -site=* | --site=* | --sit=*)
1172 site=$ac_optarg ;;
1174 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1175 ac_prev=srcdir ;;
1176 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1177 srcdir=$ac_optarg ;;
1179 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1180 | --syscon | --sysco | --sysc | --sys | --sy)
1181 ac_prev=sysconfdir ;;
1182 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1183 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1184 sysconfdir=$ac_optarg ;;
1186 -target | --target | --targe | --targ | --tar | --ta | --t)
1187 ac_prev=target_alias ;;
1188 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1189 target_alias=$ac_optarg ;;
1191 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1192 verbose=yes ;;
1194 -version | --version | --versio | --versi | --vers | -V)
1195 ac_init_version=: ;;
1197 -with-* | --with-*)
1198 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1199 # Reject names that are not valid shell variable names.
1200 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1201 { echo "$as_me: error: invalid package name: $ac_package" >&2
1202 { (exit 1); exit 1; }; }
1203 ac_package=`echo $ac_package| sed 's/-/_/g'`
1204 eval with_$ac_package=\$ac_optarg ;;
1206 -without-* | --without-*)
1207 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1208 # Reject names that are not valid shell variable names.
1209 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1210 { echo "$as_me: error: invalid package name: $ac_package" >&2
1211 { (exit 1); exit 1; }; }
1212 ac_package=`echo $ac_package | sed 's/-/_/g'`
1213 eval with_$ac_package=no ;;
1215 --x)
1216 # Obsolete; use --with-x.
1217 with_x=yes ;;
1219 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1220 | --x-incl | --x-inc | --x-in | --x-i)
1221 ac_prev=x_includes ;;
1222 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1223 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1224 x_includes=$ac_optarg ;;
1226 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1227 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1228 ac_prev=x_libraries ;;
1229 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1230 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1231 x_libraries=$ac_optarg ;;
1233 -*) { echo "$as_me: error: unrecognized option: $ac_option
1234 Try \`$0 --help' for more information." >&2
1235 { (exit 1); exit 1; }; }
1238 *=*)
1239 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1240 # Reject names that are not valid shell variable names.
1241 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1242 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1243 { (exit 1); exit 1; }; }
1244 eval $ac_envvar=\$ac_optarg
1245 export $ac_envvar ;;
1248 # FIXME: should be removed in autoconf 3.0.
1249 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1250 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1251 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1252 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1255 esac
1256 done
1258 if test -n "$ac_prev"; then
1259 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1260 { echo "$as_me: error: missing argument to $ac_option" >&2
1261 { (exit 1); exit 1; }; }
1264 # Be sure to have absolute directory names.
1265 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1266 datadir sysconfdir sharedstatedir localstatedir includedir \
1267 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1268 libdir localedir mandir
1270 eval ac_val=\$$ac_var
1271 case $ac_val in
1272 [\\/$]* | ?:[\\/]* ) continue;;
1273 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1274 esac
1275 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1276 { (exit 1); exit 1; }; }
1277 done
1279 # There might be people who depend on the old broken behavior: `$host'
1280 # used to hold the argument of --host etc.
1281 # FIXME: To remove some day.
1282 build=$build_alias
1283 host=$host_alias
1284 target=$target_alias
1286 # FIXME: To remove some day.
1287 if test "x$host_alias" != x; then
1288 if test "x$build_alias" = x; then
1289 cross_compiling=maybe
1290 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1291 If a cross compiler is detected then cross compile mode will be used." >&2
1292 elif test "x$build_alias" != "x$host_alias"; then
1293 cross_compiling=yes
1297 ac_tool_prefix=
1298 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1300 test "$silent" = yes && exec 6>/dev/null
1303 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1304 ac_ls_di=`ls -di .` &&
1305 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1306 { echo "$as_me: error: Working directory cannot be determined" >&2
1307 { (exit 1); exit 1; }; }
1308 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1309 { echo "$as_me: error: pwd does not report name of working directory" >&2
1310 { (exit 1); exit 1; }; }
1313 # Find the source files, if location was not specified.
1314 if test -z "$srcdir"; then
1315 ac_srcdir_defaulted=yes
1316 # Try the directory containing this script, then the parent directory.
1317 ac_confdir=`$as_dirname -- "$0" ||
1318 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1319 X"$0" : 'X\(//\)[^/]' \| \
1320 X"$0" : 'X\(//\)$' \| \
1321 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1322 echo X"$0" |
1323 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1324 s//\1/
1327 /^X\(\/\/\)[^/].*/{
1328 s//\1/
1331 /^X\(\/\/\)$/{
1332 s//\1/
1335 /^X\(\/\).*/{
1336 s//\1/
1339 s/.*/./; q'`
1340 srcdir=$ac_confdir
1341 if test ! -r "$srcdir/$ac_unique_file"; then
1342 srcdir=..
1344 else
1345 ac_srcdir_defaulted=no
1347 if test ! -r "$srcdir/$ac_unique_file"; then
1348 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1349 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1350 { (exit 1); exit 1; }; }
1352 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1353 ac_abs_confdir=`(
1354 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1355 { (exit 1); exit 1; }; }
1356 pwd)`
1357 # When building in place, set srcdir=.
1358 if test "$ac_abs_confdir" = "$ac_pwd"; then
1359 srcdir=.
1361 # Remove unnecessary trailing slashes from srcdir.
1362 # Double slashes in file names in object file debugging info
1363 # mess up M-x gdb in Emacs.
1364 case $srcdir in
1365 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1366 esac
1367 for ac_var in $ac_precious_vars; do
1368 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1369 eval ac_env_${ac_var}_value=\$${ac_var}
1370 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1371 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1372 done
1375 # Report the --help message.
1377 if test "$ac_init_help" = "long"; then
1378 # Omit some internal or obsolete options to make the list less imposing.
1379 # This message is too long to be a string in the A/UX 3.1 sh.
1380 cat <<_ACEOF
1381 \`configure' configures this package to adapt to many kinds of systems.
1383 Usage: $0 [OPTION]... [VAR=VALUE]...
1385 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1386 VAR=VALUE. See below for descriptions of some of the useful variables.
1388 Defaults for the options are specified in brackets.
1390 Configuration:
1391 -h, --help display this help and exit
1392 --help=short display options specific to this package
1393 --help=recursive display the short help of all the included packages
1394 -V, --version display version information and exit
1395 -q, --quiet, --silent do not print \`checking...' messages
1396 --cache-file=FILE cache test results in FILE [disabled]
1397 -C, --config-cache alias for \`--cache-file=config.cache'
1398 -n, --no-create do not create output files
1399 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1401 Installation directories:
1402 --prefix=PREFIX install architecture-independent files in PREFIX
1403 [$ac_default_prefix]
1404 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1405 [PREFIX]
1407 By default, \`make install' will install all the files in
1408 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1409 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1410 for instance \`--prefix=\$HOME'.
1412 For better control, use the options below.
1414 Fine tuning of the installation directories:
1415 --bindir=DIR user executables [EPREFIX/bin]
1416 --sbindir=DIR system admin executables [EPREFIX/sbin]
1417 --libexecdir=DIR program executables [EPREFIX/libexec]
1418 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1419 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1420 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1421 --libdir=DIR object code libraries [EPREFIX/lib]
1422 --includedir=DIR C header files [PREFIX/include]
1423 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1424 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1425 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1426 --infodir=DIR info documentation [DATAROOTDIR/info]
1427 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1428 --mandir=DIR man documentation [DATAROOTDIR/man]
1429 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1430 --htmldir=DIR html documentation [DOCDIR]
1431 --dvidir=DIR dvi documentation [DOCDIR]
1432 --pdfdir=DIR pdf documentation [DOCDIR]
1433 --psdir=DIR ps documentation [DOCDIR]
1434 _ACEOF
1436 cat <<\_ACEOF
1438 Program names:
1439 --program-prefix=PREFIX prepend PREFIX to installed program names
1440 --program-suffix=SUFFIX append SUFFIX to installed program names
1441 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1443 System types:
1444 --build=BUILD configure for building on BUILD [guessed]
1445 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1446 _ACEOF
1449 if test -n "$ac_init_help"; then
1451 cat <<\_ACEOF
1453 Optional Features:
1454 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1455 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1456 --disable-dependency-tracking speeds up one-time build
1457 --enable-dependency-tracking do not reject slow dependency extractors
1458 --enable-shared[=PKGS] build shared libraries [default=yes]
1459 --enable-static[=PKGS] build static libraries [default=yes]
1460 --enable-fast-install[=PKGS]
1461 optimize for fast installation [default=yes]
1462 --disable-libtool-lock avoid locking (might break parallel builds)
1464 Optional Packages:
1465 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1466 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1467 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1468 --with-pic try to use only PIC/non-PIC objects [default=use
1469 both]
1470 --with-tags[=TAGS] include additional configurations [automatic]
1472 Some influential environment variables:
1473 CC C compiler command
1474 CFLAGS C compiler flags
1475 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1476 nonstandard directory <lib dir>
1477 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1478 you have headers in a nonstandard directory <include dir>
1479 CPP C preprocessor
1480 CXX C++ compiler command
1481 CXXFLAGS C++ compiler flags
1482 CXXCPP C++ preprocessor
1483 F77 Fortran 77 compiler command
1484 FFLAGS Fortran 77 compiler flags
1485 YACC The `Yet Another C Compiler' implementation to use. Defaults to
1486 the first program found out of: `bison -y', `byacc', `yacc'.
1487 YFLAGS The list of arguments that will be passed by default to $YACC.
1488 This script will default YFLAGS to the empty string to avoid a
1489 default value of `-d' given by some make applications.
1491 Use these variables to override the choices made by `configure' or to help
1492 it to find libraries and programs with nonstandard names/locations.
1494 _ACEOF
1495 ac_status=$?
1498 if test "$ac_init_help" = "recursive"; then
1499 # If there are subdirs, report their specific --help.
1500 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1501 test -d "$ac_dir" || continue
1502 ac_builddir=.
1504 case "$ac_dir" in
1505 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1507 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1508 # A ".." for each directory in $ac_dir_suffix.
1509 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1510 case $ac_top_builddir_sub in
1511 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1512 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1513 esac ;;
1514 esac
1515 ac_abs_top_builddir=$ac_pwd
1516 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1517 # for backward compatibility:
1518 ac_top_builddir=$ac_top_build_prefix
1520 case $srcdir in
1521 .) # We are building in place.
1522 ac_srcdir=.
1523 ac_top_srcdir=$ac_top_builddir_sub
1524 ac_abs_top_srcdir=$ac_pwd ;;
1525 [\\/]* | ?:[\\/]* ) # Absolute name.
1526 ac_srcdir=$srcdir$ac_dir_suffix;
1527 ac_top_srcdir=$srcdir
1528 ac_abs_top_srcdir=$srcdir ;;
1529 *) # Relative name.
1530 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1531 ac_top_srcdir=$ac_top_build_prefix$srcdir
1532 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1533 esac
1534 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1536 cd "$ac_dir" || { ac_status=$?; continue; }
1537 # Check for guested configure.
1538 if test -f "$ac_srcdir/configure.gnu"; then
1539 echo &&
1540 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1541 elif test -f "$ac_srcdir/configure"; then
1542 echo &&
1543 $SHELL "$ac_srcdir/configure" --help=recursive
1544 else
1545 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1546 fi || ac_status=$?
1547 cd "$ac_pwd" || { ac_status=$?; break; }
1548 done
1551 test -n "$ac_init_help" && exit $ac_status
1552 if $ac_init_version; then
1553 cat <<\_ACEOF
1554 configure
1555 generated by GNU Autoconf 2.60
1557 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1558 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1559 This configure script is free software; the Free Software Foundation
1560 gives unlimited permission to copy, distribute and modify it.
1561 _ACEOF
1562 exit
1564 cat >config.log <<_ACEOF
1565 This file contains any messages produced by compilers while
1566 running configure, to aid debugging if configure makes a mistake.
1568 It was created by $as_me, which was
1569 generated by GNU Autoconf 2.60. Invocation command line was
1571 $ $0 $@
1573 _ACEOF
1574 exec 5>>config.log
1576 cat <<_ASUNAME
1577 ## --------- ##
1578 ## Platform. ##
1579 ## --------- ##
1581 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1582 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1583 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1584 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1585 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1587 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1588 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1590 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1591 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1592 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1593 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1594 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1595 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1596 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1598 _ASUNAME
1600 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1601 for as_dir in $PATH
1603 IFS=$as_save_IFS
1604 test -z "$as_dir" && as_dir=.
1605 echo "PATH: $as_dir"
1606 done
1607 IFS=$as_save_IFS
1609 } >&5
1611 cat >&5 <<_ACEOF
1614 ## ----------- ##
1615 ## Core tests. ##
1616 ## ----------- ##
1618 _ACEOF
1621 # Keep a trace of the command line.
1622 # Strip out --no-create and --no-recursion so they do not pile up.
1623 # Strip out --silent because we don't want to record it for future runs.
1624 # Also quote any args containing shell meta-characters.
1625 # Make two passes to allow for proper duplicate-argument suppression.
1626 ac_configure_args=
1627 ac_configure_args0=
1628 ac_configure_args1=
1629 ac_must_keep_next=false
1630 for ac_pass in 1 2
1632 for ac_arg
1634 case $ac_arg in
1635 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1636 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1637 | -silent | --silent | --silen | --sile | --sil)
1638 continue ;;
1639 *\'*)
1640 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1641 esac
1642 case $ac_pass in
1643 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1645 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1646 if test $ac_must_keep_next = true; then
1647 ac_must_keep_next=false # Got value, back to normal.
1648 else
1649 case $ac_arg in
1650 *=* | --config-cache | -C | -disable-* | --disable-* \
1651 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1652 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1653 | -with-* | --with-* | -without-* | --without-* | --x)
1654 case "$ac_configure_args0 " in
1655 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1656 esac
1658 -* ) ac_must_keep_next=true ;;
1659 esac
1661 ac_configure_args="$ac_configure_args '$ac_arg'"
1663 esac
1664 done
1665 done
1666 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1667 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1669 # When interrupted or exit'd, cleanup temporary files, and complete
1670 # config.log. We remove comments because anyway the quotes in there
1671 # would cause problems or look ugly.
1672 # WARNING: Use '\'' to represent an apostrophe within the trap.
1673 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1674 trap 'exit_status=$?
1675 # Save into config.log some information that might help in debugging.
1677 echo
1679 cat <<\_ASBOX
1680 ## ---------------- ##
1681 ## Cache variables. ##
1682 ## ---------------- ##
1683 _ASBOX
1684 echo
1685 # The following way of writing the cache mishandles newlines in values,
1687 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1688 eval ac_val=\$$ac_var
1689 case $ac_val in #(
1690 *${as_nl}*)
1691 case $ac_var in #(
1692 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1693 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1694 esac
1695 case $ac_var in #(
1696 _ | IFS | as_nl) ;; #(
1697 *) $as_unset $ac_var ;;
1698 esac ;;
1699 esac
1700 done
1701 (set) 2>&1 |
1702 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1703 *${as_nl}ac_space=\ *)
1704 sed -n \
1705 "s/'\''/'\''\\\\'\'''\''/g;
1706 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1707 ;; #(
1709 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1711 esac |
1712 sort
1714 echo
1716 cat <<\_ASBOX
1717 ## ----------------- ##
1718 ## Output variables. ##
1719 ## ----------------- ##
1720 _ASBOX
1721 echo
1722 for ac_var in $ac_subst_vars
1724 eval ac_val=\$$ac_var
1725 case $ac_val in
1726 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1727 esac
1728 echo "$ac_var='\''$ac_val'\''"
1729 done | sort
1730 echo
1732 if test -n "$ac_subst_files"; then
1733 cat <<\_ASBOX
1734 ## ------------------- ##
1735 ## File substitutions. ##
1736 ## ------------------- ##
1737 _ASBOX
1738 echo
1739 for ac_var in $ac_subst_files
1741 eval ac_val=\$$ac_var
1742 case $ac_val in
1743 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1744 esac
1745 echo "$ac_var='\''$ac_val'\''"
1746 done | sort
1747 echo
1750 if test -s confdefs.h; then
1751 cat <<\_ASBOX
1752 ## ----------- ##
1753 ## confdefs.h. ##
1754 ## ----------- ##
1755 _ASBOX
1756 echo
1757 cat confdefs.h
1758 echo
1760 test "$ac_signal" != 0 &&
1761 echo "$as_me: caught signal $ac_signal"
1762 echo "$as_me: exit $exit_status"
1763 } >&5
1764 rm -f core *.core core.conftest.* &&
1765 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1766 exit $exit_status
1768 for ac_signal in 1 2 13 15; do
1769 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1770 done
1771 ac_signal=0
1773 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1774 rm -f -r conftest* confdefs.h
1776 # Predefined preprocessor variables.
1778 cat >>confdefs.h <<_ACEOF
1779 #define PACKAGE_NAME "$PACKAGE_NAME"
1780 _ACEOF
1783 cat >>confdefs.h <<_ACEOF
1784 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1785 _ACEOF
1788 cat >>confdefs.h <<_ACEOF
1789 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1790 _ACEOF
1793 cat >>confdefs.h <<_ACEOF
1794 #define PACKAGE_STRING "$PACKAGE_STRING"
1795 _ACEOF
1798 cat >>confdefs.h <<_ACEOF
1799 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1800 _ACEOF
1803 # Let the site file select an alternate cache file if it wants to.
1804 # Prefer explicitly selected file to automatically selected ones.
1805 if test -n "$CONFIG_SITE"; then
1806 set x "$CONFIG_SITE"
1807 elif test "x$prefix" != xNONE; then
1808 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1809 else
1810 set x "$ac_default_prefix/share/config.site" \
1811 "$ac_default_prefix/etc/config.site"
1813 shift
1814 for ac_site_file
1816 if test -r "$ac_site_file"; then
1817 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1818 echo "$as_me: loading site script $ac_site_file" >&6;}
1819 sed 's/^/| /' "$ac_site_file" >&5
1820 . "$ac_site_file"
1822 done
1824 if test -r "$cache_file"; then
1825 # Some versions of bash will fail to source /dev/null (special
1826 # files actually), so we avoid doing that.
1827 if test -f "$cache_file"; then
1828 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1829 echo "$as_me: loading cache $cache_file" >&6;}
1830 case $cache_file in
1831 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1832 *) . "./$cache_file";;
1833 esac
1835 else
1836 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1837 echo "$as_me: creating cache $cache_file" >&6;}
1838 >$cache_file
1841 # Check that the precious variables saved in the cache have kept the same
1842 # value.
1843 ac_cache_corrupted=false
1844 for ac_var in $ac_precious_vars; do
1845 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1846 eval ac_new_set=\$ac_env_${ac_var}_set
1847 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1848 eval ac_new_val=\$ac_env_${ac_var}_value
1849 case $ac_old_set,$ac_new_set in
1850 set,)
1851 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1852 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1853 ac_cache_corrupted=: ;;
1854 ,set)
1855 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1856 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1857 ac_cache_corrupted=: ;;
1858 ,);;
1860 if test "x$ac_old_val" != "x$ac_new_val"; then
1861 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1862 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1863 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1864 echo "$as_me: former value: $ac_old_val" >&2;}
1865 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1866 echo "$as_me: current value: $ac_new_val" >&2;}
1867 ac_cache_corrupted=:
1868 fi;;
1869 esac
1870 # Pass precious variables to config.status.
1871 if test "$ac_new_set" = set; then
1872 case $ac_new_val in
1873 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1874 *) ac_arg=$ac_var=$ac_new_val ;;
1875 esac
1876 case " $ac_configure_args " in
1877 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1878 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1879 esac
1881 done
1882 if $ac_cache_corrupted; then
1883 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1884 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1885 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1886 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1887 { (exit 1); exit 1; }; }
1906 ac_ext=c
1907 ac_cpp='$CPP $CPPFLAGS'
1908 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1909 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1910 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1914 ac_config_headers="$ac_config_headers config.h"
1916 am__api_version="1.9"
1917 ac_aux_dir=
1918 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1919 if test -f "$ac_dir/install-sh"; then
1920 ac_aux_dir=$ac_dir
1921 ac_install_sh="$ac_aux_dir/install-sh -c"
1922 break
1923 elif test -f "$ac_dir/install.sh"; then
1924 ac_aux_dir=$ac_dir
1925 ac_install_sh="$ac_aux_dir/install.sh -c"
1926 break
1927 elif test -f "$ac_dir/shtool"; then
1928 ac_aux_dir=$ac_dir
1929 ac_install_sh="$ac_aux_dir/shtool install -c"
1930 break
1932 done
1933 if test -z "$ac_aux_dir"; then
1934 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1935 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1936 { (exit 1); exit 1; }; }
1939 # These three variables are undocumented and unsupported,
1940 # and are intended to be withdrawn in a future Autoconf release.
1941 # They can cause serious problems if a builder's source tree is in a directory
1942 # whose full name contains unusual characters.
1943 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1944 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1945 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1948 # Find a good install program. We prefer a C program (faster),
1949 # so one script is as good as another. But avoid the broken or
1950 # incompatible versions:
1951 # SysV /etc/install, /usr/sbin/install
1952 # SunOS /usr/etc/install
1953 # IRIX /sbin/install
1954 # AIX /bin/install
1955 # AmigaOS /C/install, which installs bootblocks on floppy discs
1956 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1957 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1958 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1959 # OS/2's system install, which has a completely different semantic
1960 # ./install, which can be erroneously created by make from ./install.sh.
1961 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1962 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
1963 if test -z "$INSTALL"; then
1964 if test "${ac_cv_path_install+set}" = set; then
1965 echo $ECHO_N "(cached) $ECHO_C" >&6
1966 else
1967 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1968 for as_dir in $PATH
1970 IFS=$as_save_IFS
1971 test -z "$as_dir" && as_dir=.
1972 # Account for people who put trailing slashes in PATH elements.
1973 case $as_dir/ in
1974 ./ | .// | /cC/* | \
1975 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1976 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1977 /usr/ucb/* ) ;;
1979 # OSF1 and SCO ODT 3.0 have their own names for install.
1980 # Don't use installbsd from OSF since it installs stuff as root
1981 # by default.
1982 for ac_prog in ginstall scoinst install; do
1983 for ac_exec_ext in '' $ac_executable_extensions; do
1984 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
1985 if test $ac_prog = install &&
1986 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1987 # AIX install. It has an incompatible calling convention.
1989 elif test $ac_prog = install &&
1990 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1991 # program-specific install script used by HP pwplus--don't use.
1993 else
1994 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1995 break 3
1998 done
1999 done
2001 esac
2002 done
2003 IFS=$as_save_IFS
2007 if test "${ac_cv_path_install+set}" = set; then
2008 INSTALL=$ac_cv_path_install
2009 else
2010 # As a last resort, use the slow shell script. Don't cache a
2011 # value for INSTALL within a source directory, because that will
2012 # break other packages using the cache if that directory is
2013 # removed, or if the value is a relative name.
2014 INSTALL=$ac_install_sh
2017 { echo "$as_me:$LINENO: result: $INSTALL" >&5
2018 echo "${ECHO_T}$INSTALL" >&6; }
2020 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2021 # It thinks the first close brace ends the variable substitution.
2022 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2024 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2026 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2028 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2029 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2030 # Just in case
2031 sleep 1
2032 echo timestamp > conftest.file
2033 # Do `set' in a subshell so we don't clobber the current shell's
2034 # arguments. Must try -L first in case configure is actually a
2035 # symlink; some systems play weird games with the mod time of symlinks
2036 # (eg FreeBSD returns the mod time of the symlink's containing
2037 # directory).
2038 if (
2039 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2040 if test "$*" = "X"; then
2041 # -L didn't work.
2042 set X `ls -t $srcdir/configure conftest.file`
2044 rm -f conftest.file
2045 if test "$*" != "X $srcdir/configure conftest.file" \
2046 && test "$*" != "X conftest.file $srcdir/configure"; then
2048 # If neither matched, then we have a broken ls. This can happen
2049 # if, for instance, CONFIG_SHELL is bash and it inherits a
2050 # broken ls alias from the environment. This has actually
2051 # happened. Such a system could not be considered "sane".
2052 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2053 alias in your environment" >&5
2054 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2055 alias in your environment" >&2;}
2056 { (exit 1); exit 1; }; }
2059 test "$2" = conftest.file
2061 then
2062 # Ok.
2064 else
2065 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2066 Check your system clock" >&5
2067 echo "$as_me: error: newly created file is older than distributed files!
2068 Check your system clock" >&2;}
2069 { (exit 1); exit 1; }; }
2071 { echo "$as_me:$LINENO: result: yes" >&5
2072 echo "${ECHO_T}yes" >&6; }
2073 test "$program_prefix" != NONE &&
2074 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2075 # Use a double $ so make ignores it.
2076 test "$program_suffix" != NONE &&
2077 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2078 # Double any \ or $. echo might interpret backslashes.
2079 # By default was `s,x,x', remove it if useless.
2080 cat <<\_ACEOF >conftest.sed
2081 s/[\\$]/&&/g;s/;s,x,x,$//
2082 _ACEOF
2083 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2084 rm -f conftest.sed
2086 # expand $ac_aux_dir to an absolute path
2087 am_aux_dir=`cd $ac_aux_dir && pwd`
2089 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2090 # Use eval to expand $SHELL
2091 if eval "$MISSING --run true"; then
2092 am_missing_run="$MISSING --run "
2093 else
2094 am_missing_run=
2095 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2096 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2099 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
2100 # We used to keeping the `.' as first argument, in order to
2101 # allow $(mkdir_p) to be used without argument. As in
2102 # $(mkdir_p) $(somedir)
2103 # where $(somedir) is conditionally defined. However this is wrong
2104 # for two reasons:
2105 # 1. if the package is installed by a user who cannot write `.'
2106 # make install will fail,
2107 # 2. the above comment should most certainly read
2108 # $(mkdir_p) $(DESTDIR)$(somedir)
2109 # so it does not work when $(somedir) is undefined and
2110 # $(DESTDIR) is not.
2111 # To support the latter case, we have to write
2112 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
2113 # so the `.' trick is pointless.
2114 mkdir_p='mkdir -p --'
2115 else
2116 # On NextStep and OpenStep, the `mkdir' command does not
2117 # recognize any option. It will interpret all options as
2118 # directories to create, and then abort because `.' already
2119 # exists.
2120 for d in ./-p ./--version;
2122 test -d $d && rmdir $d
2123 done
2124 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2125 if test -f "$ac_aux_dir/mkinstalldirs"; then
2126 mkdir_p='$(mkinstalldirs)'
2127 else
2128 mkdir_p='$(install_sh) -d'
2132 for ac_prog in gawk mawk nawk awk
2134 # Extract the first word of "$ac_prog", so it can be a program name with args.
2135 set dummy $ac_prog; ac_word=$2
2136 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2137 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2138 if test "${ac_cv_prog_AWK+set}" = set; then
2139 echo $ECHO_N "(cached) $ECHO_C" >&6
2140 else
2141 if test -n "$AWK"; then
2142 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2143 else
2144 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2145 for as_dir in $PATH
2147 IFS=$as_save_IFS
2148 test -z "$as_dir" && as_dir=.
2149 for ac_exec_ext in '' $ac_executable_extensions; do
2150 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2151 ac_cv_prog_AWK="$ac_prog"
2152 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2153 break 2
2155 done
2156 done
2157 IFS=$as_save_IFS
2161 AWK=$ac_cv_prog_AWK
2162 if test -n "$AWK"; then
2163 { echo "$as_me:$LINENO: result: $AWK" >&5
2164 echo "${ECHO_T}$AWK" >&6; }
2165 else
2166 { echo "$as_me:$LINENO: result: no" >&5
2167 echo "${ECHO_T}no" >&6; }
2171 test -n "$AWK" && break
2172 done
2174 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2175 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2176 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2177 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2178 echo $ECHO_N "(cached) $ECHO_C" >&6
2179 else
2180 cat >conftest.make <<\_ACEOF
2181 SHELL = /bin/sh
2182 all:
2183 @echo '@@@%%%=$(MAKE)=@@@%%%'
2184 _ACEOF
2185 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2186 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2187 *@@@%%%=?*=@@@%%%*)
2188 eval ac_cv_prog_make_${ac_make}_set=yes;;
2190 eval ac_cv_prog_make_${ac_make}_set=no;;
2191 esac
2192 rm -f conftest.make
2194 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2195 { echo "$as_me:$LINENO: result: yes" >&5
2196 echo "${ECHO_T}yes" >&6; }
2197 SET_MAKE=
2198 else
2199 { echo "$as_me:$LINENO: result: no" >&5
2200 echo "${ECHO_T}no" >&6; }
2201 SET_MAKE="MAKE=${MAKE-make}"
2204 rm -rf .tst 2>/dev/null
2205 mkdir .tst 2>/dev/null
2206 if test -d .tst; then
2207 am__leading_dot=.
2208 else
2209 am__leading_dot=_
2211 rmdir .tst 2>/dev/null
2213 # test to see if srcdir already configured
2214 if test "`cd $srcdir && pwd`" != "`pwd`" &&
2215 test -f $srcdir/config.status; then
2216 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2217 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2218 { (exit 1); exit 1; }; }
2221 # test whether we have cygpath
2222 if test -z "$CYGPATH_W"; then
2223 if (cygpath --version) >/dev/null 2>/dev/null; then
2224 CYGPATH_W='cygpath -w'
2225 else
2226 CYGPATH_W=echo
2231 # Define the identity of the package.
2232 PACKAGE=csql
2233 VERSION=0.1
2236 cat >>confdefs.h <<_ACEOF
2237 #define PACKAGE "$PACKAGE"
2238 _ACEOF
2241 cat >>confdefs.h <<_ACEOF
2242 #define VERSION "$VERSION"
2243 _ACEOF
2245 # Some tools Automake needs.
2247 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2250 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2253 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2256 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2259 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2261 install_sh=${install_sh-"$am_aux_dir/install-sh"}
2263 # Installed binaries are usually stripped using `strip' when the user
2264 # run `make install-strip'. However `strip' might not be the right
2265 # tool to use in cross-compilation environments, therefore Automake
2266 # will honor the `STRIP' environment variable to overrule this program.
2267 if test "$cross_compiling" != no; then
2268 if test -n "$ac_tool_prefix"; then
2269 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2270 set dummy ${ac_tool_prefix}strip; ac_word=$2
2271 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2272 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2273 if test "${ac_cv_prog_STRIP+set}" = set; then
2274 echo $ECHO_N "(cached) $ECHO_C" >&6
2275 else
2276 if test -n "$STRIP"; then
2277 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2278 else
2279 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2280 for as_dir in $PATH
2282 IFS=$as_save_IFS
2283 test -z "$as_dir" && as_dir=.
2284 for ac_exec_ext in '' $ac_executable_extensions; do
2285 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2286 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2287 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2288 break 2
2290 done
2291 done
2292 IFS=$as_save_IFS
2296 STRIP=$ac_cv_prog_STRIP
2297 if test -n "$STRIP"; then
2298 { echo "$as_me:$LINENO: result: $STRIP" >&5
2299 echo "${ECHO_T}$STRIP" >&6; }
2300 else
2301 { echo "$as_me:$LINENO: result: no" >&5
2302 echo "${ECHO_T}no" >&6; }
2307 if test -z "$ac_cv_prog_STRIP"; then
2308 ac_ct_STRIP=$STRIP
2309 # Extract the first word of "strip", so it can be a program name with args.
2310 set dummy strip; ac_word=$2
2311 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2312 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2313 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2314 echo $ECHO_N "(cached) $ECHO_C" >&6
2315 else
2316 if test -n "$ac_ct_STRIP"; then
2317 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2318 else
2319 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2320 for as_dir in $PATH
2322 IFS=$as_save_IFS
2323 test -z "$as_dir" && as_dir=.
2324 for ac_exec_ext in '' $ac_executable_extensions; do
2325 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2326 ac_cv_prog_ac_ct_STRIP="strip"
2327 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2328 break 2
2330 done
2331 done
2332 IFS=$as_save_IFS
2336 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2337 if test -n "$ac_ct_STRIP"; then
2338 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2339 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2340 else
2341 { echo "$as_me:$LINENO: result: no" >&5
2342 echo "${ECHO_T}no" >&6; }
2345 if test "x$ac_ct_STRIP" = x; then
2346 STRIP=":"
2347 else
2348 case $cross_compiling:$ac_tool_warned in
2349 yes:)
2350 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2351 whose name does not start with the host triplet. If you think this
2352 configuration is useful to you, please write to autoconf@gnu.org." >&5
2353 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2354 whose name does not start with the host triplet. If you think this
2355 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2356 ac_tool_warned=yes ;;
2357 esac
2358 STRIP=$ac_ct_STRIP
2360 else
2361 STRIP="$ac_cv_prog_STRIP"
2365 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2367 # We need awk for the "check" target. The system "awk" is bad on
2368 # some platforms.
2369 # Always define AMTAR for backward compatibility.
2371 AMTAR=${AMTAR-"${am_missing_run}tar"}
2373 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2380 ac_ext=c
2381 ac_cpp='$CPP $CPPFLAGS'
2382 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2383 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2384 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2385 if test -n "$ac_tool_prefix"; then
2386 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2387 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2388 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2389 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2390 if test "${ac_cv_prog_CC+set}" = set; then
2391 echo $ECHO_N "(cached) $ECHO_C" >&6
2392 else
2393 if test -n "$CC"; then
2394 ac_cv_prog_CC="$CC" # Let the user override the test.
2395 else
2396 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2397 for as_dir in $PATH
2399 IFS=$as_save_IFS
2400 test -z "$as_dir" && as_dir=.
2401 for ac_exec_ext in '' $ac_executable_extensions; do
2402 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2403 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2404 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2405 break 2
2407 done
2408 done
2409 IFS=$as_save_IFS
2413 CC=$ac_cv_prog_CC
2414 if test -n "$CC"; then
2415 { echo "$as_me:$LINENO: result: $CC" >&5
2416 echo "${ECHO_T}$CC" >&6; }
2417 else
2418 { echo "$as_me:$LINENO: result: no" >&5
2419 echo "${ECHO_T}no" >&6; }
2424 if test -z "$ac_cv_prog_CC"; then
2425 ac_ct_CC=$CC
2426 # Extract the first word of "gcc", so it can be a program name with args.
2427 set dummy gcc; ac_word=$2
2428 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2429 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2430 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2431 echo $ECHO_N "(cached) $ECHO_C" >&6
2432 else
2433 if test -n "$ac_ct_CC"; then
2434 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2435 else
2436 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2437 for as_dir in $PATH
2439 IFS=$as_save_IFS
2440 test -z "$as_dir" && as_dir=.
2441 for ac_exec_ext in '' $ac_executable_extensions; do
2442 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2443 ac_cv_prog_ac_ct_CC="gcc"
2444 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2445 break 2
2447 done
2448 done
2449 IFS=$as_save_IFS
2453 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2454 if test -n "$ac_ct_CC"; then
2455 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2456 echo "${ECHO_T}$ac_ct_CC" >&6; }
2457 else
2458 { echo "$as_me:$LINENO: result: no" >&5
2459 echo "${ECHO_T}no" >&6; }
2462 if test "x$ac_ct_CC" = x; then
2463 CC=""
2464 else
2465 case $cross_compiling:$ac_tool_warned in
2466 yes:)
2467 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2468 whose name does not start with the host triplet. If you think this
2469 configuration is useful to you, please write to autoconf@gnu.org." >&5
2470 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2471 whose name does not start with the host triplet. If you think this
2472 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2473 ac_tool_warned=yes ;;
2474 esac
2475 CC=$ac_ct_CC
2477 else
2478 CC="$ac_cv_prog_CC"
2481 if test -z "$CC"; then
2482 if test -n "$ac_tool_prefix"; then
2483 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2484 set dummy ${ac_tool_prefix}cc; ac_word=$2
2485 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2486 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2487 if test "${ac_cv_prog_CC+set}" = set; then
2488 echo $ECHO_N "(cached) $ECHO_C" >&6
2489 else
2490 if test -n "$CC"; then
2491 ac_cv_prog_CC="$CC" # Let the user override the test.
2492 else
2493 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2494 for as_dir in $PATH
2496 IFS=$as_save_IFS
2497 test -z "$as_dir" && as_dir=.
2498 for ac_exec_ext in '' $ac_executable_extensions; do
2499 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2500 ac_cv_prog_CC="${ac_tool_prefix}cc"
2501 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2502 break 2
2504 done
2505 done
2506 IFS=$as_save_IFS
2510 CC=$ac_cv_prog_CC
2511 if test -n "$CC"; then
2512 { echo "$as_me:$LINENO: result: $CC" >&5
2513 echo "${ECHO_T}$CC" >&6; }
2514 else
2515 { echo "$as_me:$LINENO: result: no" >&5
2516 echo "${ECHO_T}no" >&6; }
2522 if test -z "$CC"; then
2523 # Extract the first word of "cc", so it can be a program name with args.
2524 set dummy cc; ac_word=$2
2525 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2526 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2527 if test "${ac_cv_prog_CC+set}" = set; then
2528 echo $ECHO_N "(cached) $ECHO_C" >&6
2529 else
2530 if test -n "$CC"; then
2531 ac_cv_prog_CC="$CC" # Let the user override the test.
2532 else
2533 ac_prog_rejected=no
2534 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2535 for as_dir in $PATH
2537 IFS=$as_save_IFS
2538 test -z "$as_dir" && as_dir=.
2539 for ac_exec_ext in '' $ac_executable_extensions; do
2540 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2541 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2542 ac_prog_rejected=yes
2543 continue
2545 ac_cv_prog_CC="cc"
2546 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2547 break 2
2549 done
2550 done
2551 IFS=$as_save_IFS
2553 if test $ac_prog_rejected = yes; then
2554 # We found a bogon in the path, so make sure we never use it.
2555 set dummy $ac_cv_prog_CC
2556 shift
2557 if test $# != 0; then
2558 # We chose a different compiler from the bogus one.
2559 # However, it has the same basename, so the bogon will be chosen
2560 # first if we set CC to just the basename; use the full file name.
2561 shift
2562 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2567 CC=$ac_cv_prog_CC
2568 if test -n "$CC"; then
2569 { echo "$as_me:$LINENO: result: $CC" >&5
2570 echo "${ECHO_T}$CC" >&6; }
2571 else
2572 { echo "$as_me:$LINENO: result: no" >&5
2573 echo "${ECHO_T}no" >&6; }
2578 if test -z "$CC"; then
2579 if test -n "$ac_tool_prefix"; then
2580 for ac_prog in cl.exe
2582 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2583 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2584 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2585 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2586 if test "${ac_cv_prog_CC+set}" = set; then
2587 echo $ECHO_N "(cached) $ECHO_C" >&6
2588 else
2589 if test -n "$CC"; then
2590 ac_cv_prog_CC="$CC" # Let the user override the test.
2591 else
2592 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2593 for as_dir in $PATH
2595 IFS=$as_save_IFS
2596 test -z "$as_dir" && as_dir=.
2597 for ac_exec_ext in '' $ac_executable_extensions; do
2598 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2599 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2600 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2601 break 2
2603 done
2604 done
2605 IFS=$as_save_IFS
2609 CC=$ac_cv_prog_CC
2610 if test -n "$CC"; then
2611 { echo "$as_me:$LINENO: result: $CC" >&5
2612 echo "${ECHO_T}$CC" >&6; }
2613 else
2614 { echo "$as_me:$LINENO: result: no" >&5
2615 echo "${ECHO_T}no" >&6; }
2619 test -n "$CC" && break
2620 done
2622 if test -z "$CC"; then
2623 ac_ct_CC=$CC
2624 for ac_prog in cl.exe
2626 # Extract the first word of "$ac_prog", so it can be a program name with args.
2627 set dummy $ac_prog; ac_word=$2
2628 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2629 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2630 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2631 echo $ECHO_N "(cached) $ECHO_C" >&6
2632 else
2633 if test -n "$ac_ct_CC"; then
2634 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2635 else
2636 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2637 for as_dir in $PATH
2639 IFS=$as_save_IFS
2640 test -z "$as_dir" && as_dir=.
2641 for ac_exec_ext in '' $ac_executable_extensions; do
2642 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2643 ac_cv_prog_ac_ct_CC="$ac_prog"
2644 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2645 break 2
2647 done
2648 done
2649 IFS=$as_save_IFS
2653 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2654 if test -n "$ac_ct_CC"; then
2655 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2656 echo "${ECHO_T}$ac_ct_CC" >&6; }
2657 else
2658 { echo "$as_me:$LINENO: result: no" >&5
2659 echo "${ECHO_T}no" >&6; }
2663 test -n "$ac_ct_CC" && break
2664 done
2666 if test "x$ac_ct_CC" = x; then
2667 CC=""
2668 else
2669 case $cross_compiling:$ac_tool_warned in
2670 yes:)
2671 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2672 whose name does not start with the host triplet. If you think this
2673 configuration is useful to you, please write to autoconf@gnu.org." >&5
2674 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2675 whose name does not start with the host triplet. If you think this
2676 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2677 ac_tool_warned=yes ;;
2678 esac
2679 CC=$ac_ct_CC
2686 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2687 See \`config.log' for more details." >&5
2688 echo "$as_me: error: no acceptable C compiler found in \$PATH
2689 See \`config.log' for more details." >&2;}
2690 { (exit 1); exit 1; }; }
2692 # Provide some information about the compiler.
2693 echo "$as_me:$LINENO: checking for C compiler version" >&5
2694 ac_compiler=`set X $ac_compile; echo $2`
2695 { (ac_try="$ac_compiler --version >&5"
2696 case "(($ac_try" in
2697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2698 *) ac_try_echo=$ac_try;;
2699 esac
2700 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2701 (eval "$ac_compiler --version >&5") 2>&5
2702 ac_status=$?
2703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2704 (exit $ac_status); }
2705 { (ac_try="$ac_compiler -v >&5"
2706 case "(($ac_try" in
2707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2708 *) ac_try_echo=$ac_try;;
2709 esac
2710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2711 (eval "$ac_compiler -v >&5") 2>&5
2712 ac_status=$?
2713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2714 (exit $ac_status); }
2715 { (ac_try="$ac_compiler -V >&5"
2716 case "(($ac_try" in
2717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2718 *) ac_try_echo=$ac_try;;
2719 esac
2720 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2721 (eval "$ac_compiler -V >&5") 2>&5
2722 ac_status=$?
2723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2724 (exit $ac_status); }
2726 cat >conftest.$ac_ext <<_ACEOF
2727 /* confdefs.h. */
2728 _ACEOF
2729 cat confdefs.h >>conftest.$ac_ext
2730 cat >>conftest.$ac_ext <<_ACEOF
2731 /* end confdefs.h. */
2734 main ()
2738 return 0;
2740 _ACEOF
2741 ac_clean_files_save=$ac_clean_files
2742 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2743 # Try to create an executable without -o first, disregard a.out.
2744 # It will help us diagnose broken compilers, and finding out an intuition
2745 # of exeext.
2746 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2747 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2748 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2750 # List of possible output files, starting from the most likely.
2751 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2752 # only as a last resort. b.out is created by i960 compilers.
2753 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2755 # The IRIX 6 linker writes into existing files which may not be
2756 # executable, retaining their permissions. Remove them first so a
2757 # subsequent execution test works.
2758 ac_rmfiles=
2759 for ac_file in $ac_files
2761 case $ac_file in
2762 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2763 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2764 esac
2765 done
2766 rm -f $ac_rmfiles
2768 if { (ac_try="$ac_link_default"
2769 case "(($ac_try" in
2770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2771 *) ac_try_echo=$ac_try;;
2772 esac
2773 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2774 (eval "$ac_link_default") 2>&5
2775 ac_status=$?
2776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2777 (exit $ac_status); }; then
2778 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2779 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2780 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2781 # so that the user can short-circuit this test for compilers unknown to
2782 # Autoconf.
2783 for ac_file in $ac_files
2785 test -f "$ac_file" || continue
2786 case $ac_file in
2787 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2789 [ab].out )
2790 # We found the default executable, but exeext='' is most
2791 # certainly right.
2792 break;;
2793 *.* )
2794 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2795 then :; else
2796 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2798 # We set ac_cv_exeext here because the later test for it is not
2799 # safe: cross compilers may not add the suffix if given an `-o'
2800 # argument, so we may need to know it at that point already.
2801 # Even if this section looks crufty: it has the advantage of
2802 # actually working.
2803 break;;
2805 break;;
2806 esac
2807 done
2808 test "$ac_cv_exeext" = no && ac_cv_exeext=
2810 else
2811 echo "$as_me: failed program was:" >&5
2812 sed 's/^/| /' conftest.$ac_ext >&5
2814 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2815 See \`config.log' for more details." >&5
2816 echo "$as_me: error: C compiler cannot create executables
2817 See \`config.log' for more details." >&2;}
2818 { (exit 77); exit 77; }; }
2821 ac_exeext=$ac_cv_exeext
2822 { echo "$as_me:$LINENO: result: $ac_file" >&5
2823 echo "${ECHO_T}$ac_file" >&6; }
2825 # Check that the compiler produces executables we can run. If not, either
2826 # the compiler is broken, or we cross compile.
2827 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2828 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2829 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2830 # If not cross compiling, check that we can run a simple program.
2831 if test "$cross_compiling" != yes; then
2832 if { ac_try='./$ac_file'
2833 { (case "(($ac_try" in
2834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2835 *) ac_try_echo=$ac_try;;
2836 esac
2837 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2838 (eval "$ac_try") 2>&5
2839 ac_status=$?
2840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2841 (exit $ac_status); }; }; then
2842 cross_compiling=no
2843 else
2844 if test "$cross_compiling" = maybe; then
2845 cross_compiling=yes
2846 else
2847 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2848 If you meant to cross compile, use \`--host'.
2849 See \`config.log' for more details." >&5
2850 echo "$as_me: error: cannot run C compiled programs.
2851 If you meant to cross compile, use \`--host'.
2852 See \`config.log' for more details." >&2;}
2853 { (exit 1); exit 1; }; }
2857 { echo "$as_me:$LINENO: result: yes" >&5
2858 echo "${ECHO_T}yes" >&6; }
2860 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2861 ac_clean_files=$ac_clean_files_save
2862 # Check that the compiler produces executables we can run. If not, either
2863 # the compiler is broken, or we cross compile.
2864 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2865 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2866 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2867 echo "${ECHO_T}$cross_compiling" >&6; }
2869 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2870 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2871 if { (ac_try="$ac_link"
2872 case "(($ac_try" in
2873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2874 *) ac_try_echo=$ac_try;;
2875 esac
2876 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2877 (eval "$ac_link") 2>&5
2878 ac_status=$?
2879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2880 (exit $ac_status); }; then
2881 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2882 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2883 # work properly (i.e., refer to `conftest.exe'), while it won't with
2884 # `rm'.
2885 for ac_file in conftest.exe conftest conftest.*; do
2886 test -f "$ac_file" || continue
2887 case $ac_file in
2888 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2889 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2890 break;;
2891 * ) break;;
2892 esac
2893 done
2894 else
2895 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2896 See \`config.log' for more details." >&5
2897 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2898 See \`config.log' for more details." >&2;}
2899 { (exit 1); exit 1; }; }
2902 rm -f conftest$ac_cv_exeext
2903 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2904 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2906 rm -f conftest.$ac_ext
2907 EXEEXT=$ac_cv_exeext
2908 ac_exeext=$EXEEXT
2909 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2910 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2911 if test "${ac_cv_objext+set}" = set; then
2912 echo $ECHO_N "(cached) $ECHO_C" >&6
2913 else
2914 cat >conftest.$ac_ext <<_ACEOF
2915 /* confdefs.h. */
2916 _ACEOF
2917 cat confdefs.h >>conftest.$ac_ext
2918 cat >>conftest.$ac_ext <<_ACEOF
2919 /* end confdefs.h. */
2922 main ()
2926 return 0;
2928 _ACEOF
2929 rm -f conftest.o conftest.obj
2930 if { (ac_try="$ac_compile"
2931 case "(($ac_try" in
2932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2933 *) ac_try_echo=$ac_try;;
2934 esac
2935 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2936 (eval "$ac_compile") 2>&5
2937 ac_status=$?
2938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2939 (exit $ac_status); }; then
2940 for ac_file in conftest.o conftest.obj conftest.*; do
2941 test -f "$ac_file" || continue;
2942 case $ac_file in
2943 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2944 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2945 break;;
2946 esac
2947 done
2948 else
2949 echo "$as_me: failed program was:" >&5
2950 sed 's/^/| /' conftest.$ac_ext >&5
2952 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2953 See \`config.log' for more details." >&5
2954 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2955 See \`config.log' for more details." >&2;}
2956 { (exit 1); exit 1; }; }
2959 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2961 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2962 echo "${ECHO_T}$ac_cv_objext" >&6; }
2963 OBJEXT=$ac_cv_objext
2964 ac_objext=$OBJEXT
2965 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2966 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2967 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2968 echo $ECHO_N "(cached) $ECHO_C" >&6
2969 else
2970 cat >conftest.$ac_ext <<_ACEOF
2971 /* confdefs.h. */
2972 _ACEOF
2973 cat confdefs.h >>conftest.$ac_ext
2974 cat >>conftest.$ac_ext <<_ACEOF
2975 /* end confdefs.h. */
2978 main ()
2980 #ifndef __GNUC__
2981 choke me
2982 #endif
2985 return 0;
2987 _ACEOF
2988 rm -f conftest.$ac_objext
2989 if { (ac_try="$ac_compile"
2990 case "(($ac_try" in
2991 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2992 *) ac_try_echo=$ac_try;;
2993 esac
2994 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2995 (eval "$ac_compile") 2>conftest.er1
2996 ac_status=$?
2997 grep -v '^ *+' conftest.er1 >conftest.err
2998 rm -f conftest.er1
2999 cat conftest.err >&5
3000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3001 (exit $ac_status); } &&
3002 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3003 { (case "(($ac_try" in
3004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3005 *) ac_try_echo=$ac_try;;
3006 esac
3007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3008 (eval "$ac_try") 2>&5
3009 ac_status=$?
3010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3011 (exit $ac_status); }; } &&
3012 { ac_try='test -s conftest.$ac_objext'
3013 { (case "(($ac_try" in
3014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3015 *) ac_try_echo=$ac_try;;
3016 esac
3017 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3018 (eval "$ac_try") 2>&5
3019 ac_status=$?
3020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3021 (exit $ac_status); }; }; then
3022 ac_compiler_gnu=yes
3023 else
3024 echo "$as_me: failed program was:" >&5
3025 sed 's/^/| /' conftest.$ac_ext >&5
3027 ac_compiler_gnu=no
3030 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3031 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3034 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3035 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3036 GCC=`test $ac_compiler_gnu = yes && echo yes`
3037 ac_test_CFLAGS=${CFLAGS+set}
3038 ac_save_CFLAGS=$CFLAGS
3039 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3040 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3041 if test "${ac_cv_prog_cc_g+set}" = set; then
3042 echo $ECHO_N "(cached) $ECHO_C" >&6
3043 else
3044 ac_save_c_werror_flag=$ac_c_werror_flag
3045 ac_c_werror_flag=yes
3046 ac_cv_prog_cc_g=no
3047 CFLAGS="-g"
3048 cat >conftest.$ac_ext <<_ACEOF
3049 /* confdefs.h. */
3050 _ACEOF
3051 cat confdefs.h >>conftest.$ac_ext
3052 cat >>conftest.$ac_ext <<_ACEOF
3053 /* end confdefs.h. */
3056 main ()
3060 return 0;
3062 _ACEOF
3063 rm -f conftest.$ac_objext
3064 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
3071 ac_status=$?
3072 grep -v '^ *+' conftest.er1 >conftest.err
3073 rm -f conftest.er1
3074 cat conftest.err >&5
3075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3076 (exit $ac_status); } &&
3077 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3078 { (case "(($ac_try" in
3079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3080 *) ac_try_echo=$ac_try;;
3081 esac
3082 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3083 (eval "$ac_try") 2>&5
3084 ac_status=$?
3085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3086 (exit $ac_status); }; } &&
3087 { ac_try='test -s conftest.$ac_objext'
3088 { (case "(($ac_try" in
3089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3090 *) ac_try_echo=$ac_try;;
3091 esac
3092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3093 (eval "$ac_try") 2>&5
3094 ac_status=$?
3095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3096 (exit $ac_status); }; }; then
3097 ac_cv_prog_cc_g=yes
3098 else
3099 echo "$as_me: failed program was:" >&5
3100 sed 's/^/| /' conftest.$ac_ext >&5
3102 CFLAGS=""
3103 cat >conftest.$ac_ext <<_ACEOF
3104 /* confdefs.h. */
3105 _ACEOF
3106 cat confdefs.h >>conftest.$ac_ext
3107 cat >>conftest.$ac_ext <<_ACEOF
3108 /* end confdefs.h. */
3111 main ()
3115 return 0;
3117 _ACEOF
3118 rm -f conftest.$ac_objext
3119 if { (ac_try="$ac_compile"
3120 case "(($ac_try" in
3121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3122 *) ac_try_echo=$ac_try;;
3123 esac
3124 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3125 (eval "$ac_compile") 2>conftest.er1
3126 ac_status=$?
3127 grep -v '^ *+' conftest.er1 >conftest.err
3128 rm -f conftest.er1
3129 cat conftest.err >&5
3130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3131 (exit $ac_status); } &&
3132 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3133 { (case "(($ac_try" in
3134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3135 *) ac_try_echo=$ac_try;;
3136 esac
3137 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3138 (eval "$ac_try") 2>&5
3139 ac_status=$?
3140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3141 (exit $ac_status); }; } &&
3142 { ac_try='test -s conftest.$ac_objext'
3143 { (case "(($ac_try" in
3144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3145 *) ac_try_echo=$ac_try;;
3146 esac
3147 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3148 (eval "$ac_try") 2>&5
3149 ac_status=$?
3150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3151 (exit $ac_status); }; }; then
3153 else
3154 echo "$as_me: failed program was:" >&5
3155 sed 's/^/| /' conftest.$ac_ext >&5
3157 ac_c_werror_flag=$ac_save_c_werror_flag
3158 CFLAGS="-g"
3159 cat >conftest.$ac_ext <<_ACEOF
3160 /* confdefs.h. */
3161 _ACEOF
3162 cat confdefs.h >>conftest.$ac_ext
3163 cat >>conftest.$ac_ext <<_ACEOF
3164 /* end confdefs.h. */
3167 main ()
3171 return 0;
3173 _ACEOF
3174 rm -f conftest.$ac_objext
3175 if { (ac_try="$ac_compile"
3176 case "(($ac_try" in
3177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3178 *) ac_try_echo=$ac_try;;
3179 esac
3180 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3181 (eval "$ac_compile") 2>conftest.er1
3182 ac_status=$?
3183 grep -v '^ *+' conftest.er1 >conftest.err
3184 rm -f conftest.er1
3185 cat conftest.err >&5
3186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3187 (exit $ac_status); } &&
3188 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3189 { (case "(($ac_try" in
3190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3191 *) ac_try_echo=$ac_try;;
3192 esac
3193 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3194 (eval "$ac_try") 2>&5
3195 ac_status=$?
3196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3197 (exit $ac_status); }; } &&
3198 { ac_try='test -s conftest.$ac_objext'
3199 { (case "(($ac_try" in
3200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3201 *) ac_try_echo=$ac_try;;
3202 esac
3203 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3204 (eval "$ac_try") 2>&5
3205 ac_status=$?
3206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3207 (exit $ac_status); }; }; then
3208 ac_cv_prog_cc_g=yes
3209 else
3210 echo "$as_me: failed program was:" >&5
3211 sed 's/^/| /' conftest.$ac_ext >&5
3216 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3219 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3222 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3223 ac_c_werror_flag=$ac_save_c_werror_flag
3225 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3226 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3227 if test "$ac_test_CFLAGS" = set; then
3228 CFLAGS=$ac_save_CFLAGS
3229 elif test $ac_cv_prog_cc_g = yes; then
3230 if test "$GCC" = yes; then
3231 CFLAGS="-g -O2"
3232 else
3233 CFLAGS="-g"
3235 else
3236 if test "$GCC" = yes; then
3237 CFLAGS="-O2"
3238 else
3239 CFLAGS=
3242 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3243 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3244 if test "${ac_cv_prog_cc_c89+set}" = set; then
3245 echo $ECHO_N "(cached) $ECHO_C" >&6
3246 else
3247 ac_cv_prog_cc_c89=no
3248 ac_save_CC=$CC
3249 cat >conftest.$ac_ext <<_ACEOF
3250 /* confdefs.h. */
3251 _ACEOF
3252 cat confdefs.h >>conftest.$ac_ext
3253 cat >>conftest.$ac_ext <<_ACEOF
3254 /* end confdefs.h. */
3255 #include <stdarg.h>
3256 #include <stdio.h>
3257 #include <sys/types.h>
3258 #include <sys/stat.h>
3259 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3260 struct buf { int x; };
3261 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3262 static char *e (p, i)
3263 char **p;
3264 int i;
3266 return p[i];
3268 static char *f (char * (*g) (char **, int), char **p, ...)
3270 char *s;
3271 va_list v;
3272 va_start (v,p);
3273 s = g (p, va_arg (v,int));
3274 va_end (v);
3275 return s;
3278 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3279 function prototypes and stuff, but not '\xHH' hex character constants.
3280 These don't provoke an error unfortunately, instead are silently treated
3281 as 'x'. The following induces an error, until -std is added to get
3282 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3283 array size at least. It's necessary to write '\x00'==0 to get something
3284 that's true only with -std. */
3285 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3287 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3288 inside strings and character constants. */
3289 #define FOO(x) 'x'
3290 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3292 int test (int i, double x);
3293 struct s1 {int (*f) (int a);};
3294 struct s2 {int (*f) (double a);};
3295 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3296 int argc;
3297 char **argv;
3299 main ()
3301 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3303 return 0;
3305 _ACEOF
3306 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3307 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3309 CC="$ac_save_CC $ac_arg"
3310 rm -f conftest.$ac_objext
3311 if { (ac_try="$ac_compile"
3312 case "(($ac_try" in
3313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3314 *) ac_try_echo=$ac_try;;
3315 esac
3316 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3317 (eval "$ac_compile") 2>conftest.er1
3318 ac_status=$?
3319 grep -v '^ *+' conftest.er1 >conftest.err
3320 rm -f conftest.er1
3321 cat conftest.err >&5
3322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3323 (exit $ac_status); } &&
3324 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3325 { (case "(($ac_try" in
3326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3327 *) ac_try_echo=$ac_try;;
3328 esac
3329 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3330 (eval "$ac_try") 2>&5
3331 ac_status=$?
3332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3333 (exit $ac_status); }; } &&
3334 { ac_try='test -s conftest.$ac_objext'
3335 { (case "(($ac_try" in
3336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3337 *) ac_try_echo=$ac_try;;
3338 esac
3339 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3340 (eval "$ac_try") 2>&5
3341 ac_status=$?
3342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3343 (exit $ac_status); }; }; then
3344 ac_cv_prog_cc_c89=$ac_arg
3345 else
3346 echo "$as_me: failed program was:" >&5
3347 sed 's/^/| /' conftest.$ac_ext >&5
3352 rm -f core conftest.err conftest.$ac_objext
3353 test "x$ac_cv_prog_cc_c89" != "xno" && break
3354 done
3355 rm -f conftest.$ac_ext
3356 CC=$ac_save_CC
3359 # AC_CACHE_VAL
3360 case "x$ac_cv_prog_cc_c89" in
3362 { echo "$as_me:$LINENO: result: none needed" >&5
3363 echo "${ECHO_T}none needed" >&6; } ;;
3364 xno)
3365 { echo "$as_me:$LINENO: result: unsupported" >&5
3366 echo "${ECHO_T}unsupported" >&6; } ;;
3368 CC="$CC $ac_cv_prog_cc_c89"
3369 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3370 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3371 esac
3374 ac_ext=c
3375 ac_cpp='$CPP $CPPFLAGS'
3376 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3377 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3378 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3379 DEPDIR="${am__leading_dot}deps"
3381 ac_config_commands="$ac_config_commands depfiles"
3384 am_make=${MAKE-make}
3385 cat > confinc << 'END'
3386 am__doit:
3387 @echo done
3388 .PHONY: am__doit
3390 # If we don't find an include directive, just comment out the code.
3391 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3392 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
3393 am__include="#"
3394 am__quote=
3395 _am_result=none
3396 # First try GNU make style include.
3397 echo "include confinc" > confmf
3398 # We grep out `Entering directory' and `Leaving directory'
3399 # messages which can occur if `w' ends up in MAKEFLAGS.
3400 # In particular we don't look at `^make:' because GNU make might
3401 # be invoked under some other name (usually "gmake"), in which
3402 # case it prints its new name instead of `make'.
3403 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3404 am__include=include
3405 am__quote=
3406 _am_result=GNU
3408 # Now try BSD make style include.
3409 if test "$am__include" = "#"; then
3410 echo '.include "confinc"' > confmf
3411 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3412 am__include=.include
3413 am__quote="\""
3414 _am_result=BSD
3419 { echo "$as_me:$LINENO: result: $_am_result" >&5
3420 echo "${ECHO_T}$_am_result" >&6; }
3421 rm -f confinc confmf
3423 # Check whether --enable-dependency-tracking was given.
3424 if test "${enable_dependency_tracking+set}" = set; then
3425 enableval=$enable_dependency_tracking;
3428 if test "x$enable_dependency_tracking" != xno; then
3429 am_depcomp="$ac_aux_dir/depcomp"
3430 AMDEPBACKSLASH='\'
3434 if test "x$enable_dependency_tracking" != xno; then
3435 AMDEP_TRUE=
3436 AMDEP_FALSE='#'
3437 else
3438 AMDEP_TRUE='#'
3439 AMDEP_FALSE=
3445 depcc="$CC" am_compiler_list=
3447 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3448 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3449 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3450 echo $ECHO_N "(cached) $ECHO_C" >&6
3451 else
3452 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3453 # We make a subdir and do the tests there. Otherwise we can end up
3454 # making bogus files that we don't know about and never remove. For
3455 # instance it was reported that on HP-UX the gcc test will end up
3456 # making a dummy file named `D' -- because `-MD' means `put the output
3457 # in D'.
3458 mkdir conftest.dir
3459 # Copy depcomp to subdir because otherwise we won't find it if we're
3460 # using a relative directory.
3461 cp "$am_depcomp" conftest.dir
3462 cd conftest.dir
3463 # We will build objects and dependencies in a subdirectory because
3464 # it helps to detect inapplicable dependency modes. For instance
3465 # both Tru64's cc and ICC support -MD to output dependencies as a
3466 # side effect of compilation, but ICC will put the dependencies in
3467 # the current directory while Tru64 will put them in the object
3468 # directory.
3469 mkdir sub
3471 am_cv_CC_dependencies_compiler_type=none
3472 if test "$am_compiler_list" = ""; then
3473 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3475 for depmode in $am_compiler_list; do
3476 # Setup a source with many dependencies, because some compilers
3477 # like to wrap large dependency lists on column 80 (with \), and
3478 # we should not choose a depcomp mode which is confused by this.
3480 # We need to recreate these files for each test, as the compiler may
3481 # overwrite some of them when testing with obscure command lines.
3482 # This happens at least with the AIX C compiler.
3483 : > sub/conftest.c
3484 for i in 1 2 3 4 5 6; do
3485 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3486 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3487 # Solaris 8's {/usr,}/bin/sh.
3488 touch sub/conftst$i.h
3489 done
3490 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3492 case $depmode in
3493 nosideeffect)
3494 # after this tag, mechanisms are not by side-effect, so they'll
3495 # only be used when explicitly requested
3496 if test "x$enable_dependency_tracking" = xyes; then
3497 continue
3498 else
3499 break
3502 none) break ;;
3503 esac
3504 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3505 # mode. It turns out that the SunPro C++ compiler does not properly
3506 # handle `-M -o', and we need to detect this.
3507 if depmode=$depmode \
3508 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3509 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3510 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3511 >/dev/null 2>conftest.err &&
3512 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3513 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3514 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3515 # icc doesn't choke on unknown options, it will just issue warnings
3516 # or remarks (even with -Werror). So we grep stderr for any message
3517 # that says an option was ignored or not supported.
3518 # When given -MP, icc 7.0 and 7.1 complain thusly:
3519 # icc: Command line warning: ignoring option '-M'; no argument required
3520 # The diagnosis changed in icc 8.0:
3521 # icc: Command line remark: option '-MP' not supported
3522 if (grep 'ignoring option' conftest.err ||
3523 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3524 am_cv_CC_dependencies_compiler_type=$depmode
3525 break
3528 done
3530 cd ..
3531 rm -rf conftest.dir
3532 else
3533 am_cv_CC_dependencies_compiler_type=none
3537 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3538 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3539 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3544 test "x$enable_dependency_tracking" != xno \
3545 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3546 am__fastdepCC_TRUE=
3547 am__fastdepCC_FALSE='#'
3548 else
3549 am__fastdepCC_TRUE='#'
3550 am__fastdepCC_FALSE=
3554 ac_ext=cpp
3555 ac_cpp='$CXXCPP $CPPFLAGS'
3556 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3557 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3558 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3561 # Check whether --enable-shared was given.
3562 if test "${enable_shared+set}" = set; then
3563 enableval=$enable_shared; p=${PACKAGE-default}
3564 case $enableval in
3565 yes) enable_shared=yes ;;
3566 no) enable_shared=no ;;
3568 enable_shared=no
3569 # Look at the argument we got. We use all the common list separators.
3570 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3571 for pkg in $enableval; do
3572 IFS="$lt_save_ifs"
3573 if test "X$pkg" = "X$p"; then
3574 enable_shared=yes
3576 done
3577 IFS="$lt_save_ifs"
3579 esac
3580 else
3581 enable_shared=yes
3585 # Check whether --enable-static was given.
3586 if test "${enable_static+set}" = set; then
3587 enableval=$enable_static; p=${PACKAGE-default}
3588 case $enableval in
3589 yes) enable_static=yes ;;
3590 no) enable_static=no ;;
3592 enable_static=no
3593 # Look at the argument we got. We use all the common list separators.
3594 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3595 for pkg in $enableval; do
3596 IFS="$lt_save_ifs"
3597 if test "X$pkg" = "X$p"; then
3598 enable_static=yes
3600 done
3601 IFS="$lt_save_ifs"
3603 esac
3604 else
3605 enable_static=yes
3609 # Check whether --enable-fast-install was given.
3610 if test "${enable_fast_install+set}" = set; then
3611 enableval=$enable_fast_install; p=${PACKAGE-default}
3612 case $enableval in
3613 yes) enable_fast_install=yes ;;
3614 no) enable_fast_install=no ;;
3616 enable_fast_install=no
3617 # Look at the argument we got. We use all the common list separators.
3618 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3619 for pkg in $enableval; do
3620 IFS="$lt_save_ifs"
3621 if test "X$pkg" = "X$p"; then
3622 enable_fast_install=yes
3624 done
3625 IFS="$lt_save_ifs"
3627 esac
3628 else
3629 enable_fast_install=yes
3633 # Make sure we can run config.sub.
3634 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3635 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3636 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3637 { (exit 1); exit 1; }; }
3639 { echo "$as_me:$LINENO: checking build system type" >&5
3640 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
3641 if test "${ac_cv_build+set}" = set; then
3642 echo $ECHO_N "(cached) $ECHO_C" >&6
3643 else
3644 ac_build_alias=$build_alias
3645 test "x$ac_build_alias" = x &&
3646 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3647 test "x$ac_build_alias" = x &&
3648 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3649 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3650 { (exit 1); exit 1; }; }
3651 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3652 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3653 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3654 { (exit 1); exit 1; }; }
3657 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3658 echo "${ECHO_T}$ac_cv_build" >&6; }
3659 case $ac_cv_build in
3660 *-*-*) ;;
3661 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3662 echo "$as_me: error: invalid value of canonical build" >&2;}
3663 { (exit 1); exit 1; }; };;
3664 esac
3665 build=$ac_cv_build
3666 ac_save_IFS=$IFS; IFS='-'
3667 set x $ac_cv_build
3668 shift
3669 build_cpu=$1
3670 build_vendor=$2
3671 shift; shift
3672 # Remember, the first character of IFS is used to create $*,
3673 # except with old shells:
3674 build_os=$*
3675 IFS=$ac_save_IFS
3676 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3679 { echo "$as_me:$LINENO: checking host system type" >&5
3680 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
3681 if test "${ac_cv_host+set}" = set; then
3682 echo $ECHO_N "(cached) $ECHO_C" >&6
3683 else
3684 if test "x$host_alias" = x; then
3685 ac_cv_host=$ac_cv_build
3686 else
3687 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3688 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3689 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3690 { (exit 1); exit 1; }; }
3694 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3695 echo "${ECHO_T}$ac_cv_host" >&6; }
3696 case $ac_cv_host in
3697 *-*-*) ;;
3698 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3699 echo "$as_me: error: invalid value of canonical host" >&2;}
3700 { (exit 1); exit 1; }; };;
3701 esac
3702 host=$ac_cv_host
3703 ac_save_IFS=$IFS; IFS='-'
3704 set x $ac_cv_host
3705 shift
3706 host_cpu=$1
3707 host_vendor=$2
3708 shift; shift
3709 # Remember, the first character of IFS is used to create $*,
3710 # except with old shells:
3711 host_os=$*
3712 IFS=$ac_save_IFS
3713 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3716 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3717 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
3718 if test "${lt_cv_path_SED+set}" = set; then
3719 echo $ECHO_N "(cached) $ECHO_C" >&6
3720 else
3721 # Loop through the user's path and test for sed and gsed.
3722 # Then use that list of sed's as ones to test for truncation.
3723 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3724 for as_dir in $PATH
3726 IFS=$as_save_IFS
3727 test -z "$as_dir" && as_dir=.
3728 for lt_ac_prog in sed gsed; do
3729 for ac_exec_ext in '' $ac_executable_extensions; do
3730 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3731 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3733 done
3734 done
3735 done
3736 lt_ac_max=0
3737 lt_ac_count=0
3738 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3739 # along with /bin/sed that truncates output.
3740 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3741 test ! -f $lt_ac_sed && continue
3742 cat /dev/null > conftest.in
3743 lt_ac_count=0
3744 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3745 # Check for GNU sed and select it if it is found.
3746 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3747 lt_cv_path_SED=$lt_ac_sed
3748 break
3750 while true; do
3751 cat conftest.in conftest.in >conftest.tmp
3752 mv conftest.tmp conftest.in
3753 cp conftest.in conftest.nl
3754 echo >>conftest.nl
3755 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3756 cmp -s conftest.out conftest.nl || break
3757 # 10000 chars as input seems more than enough
3758 test $lt_ac_count -gt 10 && break
3759 lt_ac_count=`expr $lt_ac_count + 1`
3760 if test $lt_ac_count -gt $lt_ac_max; then
3761 lt_ac_max=$lt_ac_count
3762 lt_cv_path_SED=$lt_ac_sed
3764 done
3765 done
3769 SED=$lt_cv_path_SED
3770 { echo "$as_me:$LINENO: result: $SED" >&5
3771 echo "${ECHO_T}$SED" >&6; }
3773 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3774 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3775 if test "${ac_cv_path_GREP+set}" = set; then
3776 echo $ECHO_N "(cached) $ECHO_C" >&6
3777 else
3778 # Extract the first word of "grep ggrep" to use in msg output
3779 if test -z "$GREP"; then
3780 set dummy grep ggrep; ac_prog_name=$2
3781 if test "${ac_cv_path_GREP+set}" = set; then
3782 echo $ECHO_N "(cached) $ECHO_C" >&6
3783 else
3784 ac_path_GREP_found=false
3785 # Loop through the user's path and test for each of PROGNAME-LIST
3786 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3787 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3789 IFS=$as_save_IFS
3790 test -z "$as_dir" && as_dir=.
3791 for ac_prog in grep ggrep; do
3792 for ac_exec_ext in '' $ac_executable_extensions; do
3793 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3794 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3795 # Check for GNU ac_path_GREP and select it if it is found.
3796 # Check for GNU $ac_path_GREP
3797 case `"$ac_path_GREP" --version 2>&1` in
3798 *GNU*)
3799 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3801 ac_count=0
3802 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3803 while :
3805 cat "conftest.in" "conftest.in" >"conftest.tmp"
3806 mv "conftest.tmp" "conftest.in"
3807 cp "conftest.in" "conftest.nl"
3808 echo 'GREP' >> "conftest.nl"
3809 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3810 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3811 ac_count=`expr $ac_count + 1`
3812 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3813 # Best one so far, save it but keep looking for a better one
3814 ac_cv_path_GREP="$ac_path_GREP"
3815 ac_path_GREP_max=$ac_count
3817 # 10*(2^10) chars as input seems more than enough
3818 test $ac_count -gt 10 && break
3819 done
3820 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3821 esac
3824 $ac_path_GREP_found && break 3
3825 done
3826 done
3828 done
3829 IFS=$as_save_IFS
3834 GREP="$ac_cv_path_GREP"
3835 if test -z "$GREP"; then
3836 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3837 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3838 { (exit 1); exit 1; }; }
3841 else
3842 ac_cv_path_GREP=$GREP
3847 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3848 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3849 GREP="$ac_cv_path_GREP"
3852 { echo "$as_me:$LINENO: checking for egrep" >&5
3853 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3854 if test "${ac_cv_path_EGREP+set}" = set; then
3855 echo $ECHO_N "(cached) $ECHO_C" >&6
3856 else
3857 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3858 then ac_cv_path_EGREP="$GREP -E"
3859 else
3860 # Extract the first word of "egrep" to use in msg output
3861 if test -z "$EGREP"; then
3862 set dummy egrep; ac_prog_name=$2
3863 if test "${ac_cv_path_EGREP+set}" = set; then
3864 echo $ECHO_N "(cached) $ECHO_C" >&6
3865 else
3866 ac_path_EGREP_found=false
3867 # Loop through the user's path and test for each of PROGNAME-LIST
3868 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3869 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3871 IFS=$as_save_IFS
3872 test -z "$as_dir" && as_dir=.
3873 for ac_prog in egrep; do
3874 for ac_exec_ext in '' $ac_executable_extensions; do
3875 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3876 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
3877 # Check for GNU ac_path_EGREP and select it if it is found.
3878 # Check for GNU $ac_path_EGREP
3879 case `"$ac_path_EGREP" --version 2>&1` in
3880 *GNU*)
3881 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3883 ac_count=0
3884 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3885 while :
3887 cat "conftest.in" "conftest.in" >"conftest.tmp"
3888 mv "conftest.tmp" "conftest.in"
3889 cp "conftest.in" "conftest.nl"
3890 echo 'EGREP' >> "conftest.nl"
3891 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3892 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3893 ac_count=`expr $ac_count + 1`
3894 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3895 # Best one so far, save it but keep looking for a better one
3896 ac_cv_path_EGREP="$ac_path_EGREP"
3897 ac_path_EGREP_max=$ac_count
3899 # 10*(2^10) chars as input seems more than enough
3900 test $ac_count -gt 10 && break
3901 done
3902 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3903 esac
3906 $ac_path_EGREP_found && break 3
3907 done
3908 done
3910 done
3911 IFS=$as_save_IFS
3916 EGREP="$ac_cv_path_EGREP"
3917 if test -z "$EGREP"; then
3918 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3919 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3920 { (exit 1); exit 1; }; }
3923 else
3924 ac_cv_path_EGREP=$EGREP
3930 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3931 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3932 EGREP="$ac_cv_path_EGREP"
3936 # Check whether --with-gnu-ld was given.
3937 if test "${with_gnu_ld+set}" = set; then
3938 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
3939 else
3940 with_gnu_ld=no
3943 ac_prog=ld
3944 if test "$GCC" = yes; then
3945 # Check if gcc -print-prog-name=ld gives a path.
3946 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3947 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
3948 case $host in
3949 *-*-mingw*)
3950 # gcc leaves a trailing carriage return which upsets mingw
3951 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3953 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3954 esac
3955 case $ac_prog in
3956 # Accept absolute paths.
3957 [\\/]* | ?:[\\/]*)
3958 re_direlt='/[^/][^/]*/\.\./'
3959 # Canonicalize the pathname of ld
3960 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3961 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3962 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
3963 done
3964 test -z "$LD" && LD="$ac_prog"
3967 # If it fails, then pretend we aren't using GCC.
3968 ac_prog=ld
3971 # If it is relative, then search for the first ld in PATH.
3972 with_gnu_ld=unknown
3974 esac
3975 elif test "$with_gnu_ld" = yes; then
3976 { echo "$as_me:$LINENO: checking for GNU ld" >&5
3977 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
3978 else
3979 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3980 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
3982 if test "${lt_cv_path_LD+set}" = set; then
3983 echo $ECHO_N "(cached) $ECHO_C" >&6
3984 else
3985 if test -z "$LD"; then
3986 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3987 for ac_dir in $PATH; do
3988 IFS="$lt_save_ifs"
3989 test -z "$ac_dir" && ac_dir=.
3990 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3991 lt_cv_path_LD="$ac_dir/$ac_prog"
3992 # Check to see if the program is GNU ld. I'd rather use --version,
3993 # but apparently some variants of GNU ld only accept -v.
3994 # Break only if it was the GNU/non-GNU ld that we prefer.
3995 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3996 *GNU* | *'with BFD'*)
3997 test "$with_gnu_ld" != no && break
4000 test "$with_gnu_ld" != yes && break
4002 esac
4004 done
4005 IFS="$lt_save_ifs"
4006 else
4007 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4011 LD="$lt_cv_path_LD"
4012 if test -n "$LD"; then
4013 { echo "$as_me:$LINENO: result: $LD" >&5
4014 echo "${ECHO_T}$LD" >&6; }
4015 else
4016 { echo "$as_me:$LINENO: result: no" >&5
4017 echo "${ECHO_T}no" >&6; }
4019 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4020 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4021 { (exit 1); exit 1; }; }
4022 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4023 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
4024 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4025 echo $ECHO_N "(cached) $ECHO_C" >&6
4026 else
4027 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4028 case `$LD -v 2>&1 </dev/null` in
4029 *GNU* | *'with BFD'*)
4030 lt_cv_prog_gnu_ld=yes
4033 lt_cv_prog_gnu_ld=no
4035 esac
4037 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4038 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
4039 with_gnu_ld=$lt_cv_prog_gnu_ld
4042 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4043 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
4044 if test "${lt_cv_ld_reload_flag+set}" = set; then
4045 echo $ECHO_N "(cached) $ECHO_C" >&6
4046 else
4047 lt_cv_ld_reload_flag='-r'
4049 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4050 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
4051 reload_flag=$lt_cv_ld_reload_flag
4052 case $reload_flag in
4053 "" | " "*) ;;
4054 *) reload_flag=" $reload_flag" ;;
4055 esac
4056 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4057 case $host_os in
4058 darwin*)
4059 if test "$GCC" = yes; then
4060 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4061 else
4062 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4065 esac
4067 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4068 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
4069 if test "${lt_cv_path_NM+set}" = set; then
4070 echo $ECHO_N "(cached) $ECHO_C" >&6
4071 else
4072 if test -n "$NM"; then
4073 # Let the user override the test.
4074 lt_cv_path_NM="$NM"
4075 else
4076 lt_nm_to_check="${ac_tool_prefix}nm"
4077 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4078 lt_nm_to_check="$lt_nm_to_check nm"
4080 for lt_tmp_nm in $lt_nm_to_check; do
4081 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4082 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4083 IFS="$lt_save_ifs"
4084 test -z "$ac_dir" && ac_dir=.
4085 tmp_nm="$ac_dir/$lt_tmp_nm"
4086 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4087 # Check to see if the nm accepts a BSD-compat flag.
4088 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4089 # nm: unknown option "B" ignored
4090 # Tru64's nm complains that /dev/null is an invalid object file
4091 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4092 */dev/null* | *'Invalid file or object type'*)
4093 lt_cv_path_NM="$tmp_nm -B"
4094 break
4097 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4098 */dev/null*)
4099 lt_cv_path_NM="$tmp_nm -p"
4100 break
4103 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4104 continue # so that we can try to find one that supports BSD flags
4106 esac
4108 esac
4110 done
4111 IFS="$lt_save_ifs"
4112 done
4113 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4116 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4117 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
4118 NM="$lt_cv_path_NM"
4120 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
4121 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4122 LN_S=$as_ln_s
4123 if test "$LN_S" = "ln -s"; then
4124 { echo "$as_me:$LINENO: result: yes" >&5
4125 echo "${ECHO_T}yes" >&6; }
4126 else
4127 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4128 echo "${ECHO_T}no, using $LN_S" >&6; }
4131 { echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
4132 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
4133 if test "${lt_cv_deplibs_check_method+set}" = set; then
4134 echo $ECHO_N "(cached) $ECHO_C" >&6
4135 else
4136 lt_cv_file_magic_cmd='$MAGIC_CMD'
4137 lt_cv_file_magic_test_file=
4138 lt_cv_deplibs_check_method='unknown'
4139 # Need to set the preceding variable on all platforms that support
4140 # interlibrary dependencies.
4141 # 'none' -- dependencies not supported.
4142 # `unknown' -- same as none, but documents that we really don't know.
4143 # 'pass_all' -- all dependencies passed with no checks.
4144 # 'test_compile' -- check by making test program.
4145 # 'file_magic [[regex]]' -- check by looking for files in library path
4146 # which responds to the $file_magic_cmd with a given extended regex.
4147 # If you have `file' or equivalent on your system and you're not sure
4148 # whether `pass_all' will *always* work, you probably want this one.
4150 case $host_os in
4151 aix4* | aix5*)
4152 lt_cv_deplibs_check_method=pass_all
4155 beos*)
4156 lt_cv_deplibs_check_method=pass_all
4159 bsdi[45]*)
4160 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4161 lt_cv_file_magic_cmd='/usr/bin/file -L'
4162 lt_cv_file_magic_test_file=/shlib/libc.so
4165 cygwin*)
4166 # func_win32_libid is a shell function defined in ltmain.sh
4167 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4168 lt_cv_file_magic_cmd='func_win32_libid'
4171 mingw* | pw32*)
4172 # Base MSYS/MinGW do not provide the 'file' command needed by
4173 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
4174 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4175 lt_cv_file_magic_cmd='$OBJDUMP -f'
4178 darwin* | rhapsody*)
4179 lt_cv_deplibs_check_method=pass_all
4182 freebsd* | kfreebsd*-gnu | dragonfly*)
4183 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4184 case $host_cpu in
4185 i*86 )
4186 # Not sure whether the presence of OpenBSD here was a mistake.
4187 # Let's accept both of them until this is cleared up.
4188 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4189 lt_cv_file_magic_cmd=/usr/bin/file
4190 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4192 esac
4193 else
4194 lt_cv_deplibs_check_method=pass_all
4198 gnu*)
4199 lt_cv_deplibs_check_method=pass_all
4202 hpux10.20* | hpux11*)
4203 lt_cv_file_magic_cmd=/usr/bin/file
4204 case $host_cpu in
4205 ia64*)
4206 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4207 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4209 hppa*64*)
4210 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]'
4211 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4214 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4215 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4217 esac
4220 interix3*)
4221 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4222 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4225 irix5* | irix6* | nonstopux*)
4226 case $LD in
4227 *-32|*"-32 ") libmagic=32-bit;;
4228 *-n32|*"-n32 ") libmagic=N32;;
4229 *-64|*"-64 ") libmagic=64-bit;;
4230 *) libmagic=never-match;;
4231 esac
4232 lt_cv_deplibs_check_method=pass_all
4235 # This must be Linux ELF.
4236 linux*)
4237 lt_cv_deplibs_check_method=pass_all
4240 netbsd*)
4241 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4242 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4243 else
4244 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4248 newos6*)
4249 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4250 lt_cv_file_magic_cmd=/usr/bin/file
4251 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4254 nto-qnx*)
4255 lt_cv_deplibs_check_method=unknown
4258 openbsd*)
4259 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4260 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4261 else
4262 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4266 osf3* | osf4* | osf5*)
4267 lt_cv_deplibs_check_method=pass_all
4270 solaris*)
4271 lt_cv_deplibs_check_method=pass_all
4274 sysv4 | sysv4.3*)
4275 case $host_vendor in
4276 motorola)
4277 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]'
4278 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4280 ncr)
4281 lt_cv_deplibs_check_method=pass_all
4283 sequent)
4284 lt_cv_file_magic_cmd='/bin/file'
4285 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4287 sni)
4288 lt_cv_file_magic_cmd='/bin/file'
4289 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4290 lt_cv_file_magic_test_file=/lib/libc.so
4292 siemens)
4293 lt_cv_deplibs_check_method=pass_all
4296 lt_cv_deplibs_check_method=pass_all
4298 esac
4301 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4302 lt_cv_deplibs_check_method=pass_all
4304 esac
4307 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4308 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
4309 file_magic_cmd=$lt_cv_file_magic_cmd
4310 deplibs_check_method=$lt_cv_deplibs_check_method
4311 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4316 # If no C compiler was specified, use CC.
4317 LTCC=${LTCC-"$CC"}
4319 # If no C compiler flags were specified, use CFLAGS.
4320 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4322 # Allow CC to be a program name with arguments.
4323 compiler=$CC
4326 # Check whether --enable-libtool-lock was given.
4327 if test "${enable_libtool_lock+set}" = set; then
4328 enableval=$enable_libtool_lock;
4331 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4333 # Some flags need to be propagated to the compiler or linker for good
4334 # libtool support.
4335 case $host in
4336 ia64-*-hpux*)
4337 # Find out which ABI we are using.
4338 echo 'int i;' > conftest.$ac_ext
4339 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4340 (eval $ac_compile) 2>&5
4341 ac_status=$?
4342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4343 (exit $ac_status); }; then
4344 case `/usr/bin/file conftest.$ac_objext` in
4345 *ELF-32*)
4346 HPUX_IA64_MODE="32"
4348 *ELF-64*)
4349 HPUX_IA64_MODE="64"
4351 esac
4353 rm -rf conftest*
4355 *-*-irix6*)
4356 # Find out which ABI we are using.
4357 echo '#line 4357 "configure"' > conftest.$ac_ext
4358 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4359 (eval $ac_compile) 2>&5
4360 ac_status=$?
4361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4362 (exit $ac_status); }; then
4363 if test "$lt_cv_prog_gnu_ld" = yes; then
4364 case `/usr/bin/file conftest.$ac_objext` in
4365 *32-bit*)
4366 LD="${LD-ld} -melf32bsmip"
4368 *N32*)
4369 LD="${LD-ld} -melf32bmipn32"
4371 *64-bit*)
4372 LD="${LD-ld} -melf64bmip"
4374 esac
4375 else
4376 case `/usr/bin/file conftest.$ac_objext` in
4377 *32-bit*)
4378 LD="${LD-ld} -32"
4380 *N32*)
4381 LD="${LD-ld} -n32"
4383 *64-bit*)
4384 LD="${LD-ld} -64"
4386 esac
4389 rm -rf conftest*
4392 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4393 # Find out which ABI we are using.
4394 echo 'int i;' > conftest.$ac_ext
4395 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4396 (eval $ac_compile) 2>&5
4397 ac_status=$?
4398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4399 (exit $ac_status); }; then
4400 case `/usr/bin/file conftest.o` in
4401 *32-bit*)
4402 case $host in
4403 x86_64-*linux*)
4404 LD="${LD-ld} -m elf_i386"
4406 ppc64-*linux*|powerpc64-*linux*)
4407 LD="${LD-ld} -m elf32ppclinux"
4409 s390x-*linux*)
4410 LD="${LD-ld} -m elf_s390"
4412 sparc64-*linux*)
4413 LD="${LD-ld} -m elf32_sparc"
4415 esac
4417 *64-bit*)
4418 case $host in
4419 x86_64-*linux*)
4420 LD="${LD-ld} -m elf_x86_64"
4422 ppc*-*linux*|powerpc*-*linux*)
4423 LD="${LD-ld} -m elf64ppc"
4425 s390*-*linux*)
4426 LD="${LD-ld} -m elf64_s390"
4428 sparc*-*linux*)
4429 LD="${LD-ld} -m elf64_sparc"
4431 esac
4433 esac
4435 rm -rf conftest*
4438 *-*-sco3.2v5*)
4439 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4440 SAVE_CFLAGS="$CFLAGS"
4441 CFLAGS="$CFLAGS -belf"
4442 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4443 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
4444 if test "${lt_cv_cc_needs_belf+set}" = set; then
4445 echo $ECHO_N "(cached) $ECHO_C" >&6
4446 else
4447 ac_ext=c
4448 ac_cpp='$CPP $CPPFLAGS'
4449 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4450 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4451 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4453 cat >conftest.$ac_ext <<_ACEOF
4454 /* confdefs.h. */
4455 _ACEOF
4456 cat confdefs.h >>conftest.$ac_ext
4457 cat >>conftest.$ac_ext <<_ACEOF
4458 /* end confdefs.h. */
4461 main ()
4465 return 0;
4467 _ACEOF
4468 rm -f conftest.$ac_objext conftest$ac_exeext
4469 if { (ac_try="$ac_link"
4470 case "(($ac_try" in
4471 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4472 *) ac_try_echo=$ac_try;;
4473 esac
4474 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4475 (eval "$ac_link") 2>conftest.er1
4476 ac_status=$?
4477 grep -v '^ *+' conftest.er1 >conftest.err
4478 rm -f conftest.er1
4479 cat conftest.err >&5
4480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4481 (exit $ac_status); } &&
4482 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4483 { (case "(($ac_try" in
4484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4485 *) ac_try_echo=$ac_try;;
4486 esac
4487 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4488 (eval "$ac_try") 2>&5
4489 ac_status=$?
4490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4491 (exit $ac_status); }; } &&
4492 { ac_try='test -s conftest$ac_exeext'
4493 { (case "(($ac_try" in
4494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4495 *) ac_try_echo=$ac_try;;
4496 esac
4497 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4498 (eval "$ac_try") 2>&5
4499 ac_status=$?
4500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4501 (exit $ac_status); }; }; then
4502 lt_cv_cc_needs_belf=yes
4503 else
4504 echo "$as_me: failed program was:" >&5
4505 sed 's/^/| /' conftest.$ac_ext >&5
4507 lt_cv_cc_needs_belf=no
4510 rm -f core conftest.err conftest.$ac_objext \
4511 conftest$ac_exeext conftest.$ac_ext
4512 ac_ext=c
4513 ac_cpp='$CPP $CPPFLAGS'
4514 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4515 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4516 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4519 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4520 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
4521 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4522 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4523 CFLAGS="$SAVE_CFLAGS"
4526 sparc*-*solaris*)
4527 # Find out which ABI we are using.
4528 echo 'int i;' > conftest.$ac_ext
4529 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4530 (eval $ac_compile) 2>&5
4531 ac_status=$?
4532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4533 (exit $ac_status); }; then
4534 case `/usr/bin/file conftest.o` in
4535 *64-bit*)
4536 case $lt_cv_prog_gnu_ld in
4537 yes*) LD="${LD-ld} -m elf64_sparc" ;;
4538 *) LD="${LD-ld} -64" ;;
4539 esac
4541 esac
4543 rm -rf conftest*
4547 esac
4549 need_locks="$enable_libtool_lock"
4552 ac_ext=c
4553 ac_cpp='$CPP $CPPFLAGS'
4554 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4555 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4556 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4557 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4558 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4559 # On Suns, sometimes $CPP names a directory.
4560 if test -n "$CPP" && test -d "$CPP"; then
4561 CPP=
4563 if test -z "$CPP"; then
4564 if test "${ac_cv_prog_CPP+set}" = set; then
4565 echo $ECHO_N "(cached) $ECHO_C" >&6
4566 else
4567 # Double quotes because CPP needs to be expanded
4568 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4570 ac_preproc_ok=false
4571 for ac_c_preproc_warn_flag in '' yes
4573 # Use a header file that comes with gcc, so configuring glibc
4574 # with a fresh cross-compiler works.
4575 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4576 # <limits.h> exists even on freestanding compilers.
4577 # On the NeXT, cc -E runs the code through the compiler's parser,
4578 # not just through cpp. "Syntax error" is here to catch this case.
4579 cat >conftest.$ac_ext <<_ACEOF
4580 /* confdefs.h. */
4581 _ACEOF
4582 cat confdefs.h >>conftest.$ac_ext
4583 cat >>conftest.$ac_ext <<_ACEOF
4584 /* end confdefs.h. */
4585 #ifdef __STDC__
4586 # include <limits.h>
4587 #else
4588 # include <assert.h>
4589 #endif
4590 Syntax error
4591 _ACEOF
4592 if { (ac_try="$ac_cpp conftest.$ac_ext"
4593 case "(($ac_try" in
4594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4595 *) ac_try_echo=$ac_try;;
4596 esac
4597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4598 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4599 ac_status=$?
4600 grep -v '^ *+' conftest.er1 >conftest.err
4601 rm -f conftest.er1
4602 cat conftest.err >&5
4603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4604 (exit $ac_status); } >/dev/null; then
4605 if test -s conftest.err; then
4606 ac_cpp_err=$ac_c_preproc_warn_flag
4607 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4608 else
4609 ac_cpp_err=
4611 else
4612 ac_cpp_err=yes
4614 if test -z "$ac_cpp_err"; then
4616 else
4617 echo "$as_me: failed program was:" >&5
4618 sed 's/^/| /' conftest.$ac_ext >&5
4620 # Broken: fails on valid input.
4621 continue
4624 rm -f conftest.err conftest.$ac_ext
4626 # OK, works on sane cases. Now check whether nonexistent headers
4627 # can be detected and how.
4628 cat >conftest.$ac_ext <<_ACEOF
4629 /* confdefs.h. */
4630 _ACEOF
4631 cat confdefs.h >>conftest.$ac_ext
4632 cat >>conftest.$ac_ext <<_ACEOF
4633 /* end confdefs.h. */
4634 #include <ac_nonexistent.h>
4635 _ACEOF
4636 if { (ac_try="$ac_cpp conftest.$ac_ext"
4637 case "(($ac_try" in
4638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4639 *) ac_try_echo=$ac_try;;
4640 esac
4641 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4642 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4643 ac_status=$?
4644 grep -v '^ *+' conftest.er1 >conftest.err
4645 rm -f conftest.er1
4646 cat conftest.err >&5
4647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4648 (exit $ac_status); } >/dev/null; then
4649 if test -s conftest.err; then
4650 ac_cpp_err=$ac_c_preproc_warn_flag
4651 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4652 else
4653 ac_cpp_err=
4655 else
4656 ac_cpp_err=yes
4658 if test -z "$ac_cpp_err"; then
4659 # Broken: success on invalid input.
4660 continue
4661 else
4662 echo "$as_me: failed program was:" >&5
4663 sed 's/^/| /' conftest.$ac_ext >&5
4665 # Passes both tests.
4666 ac_preproc_ok=:
4667 break
4670 rm -f conftest.err conftest.$ac_ext
4672 done
4673 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4674 rm -f conftest.err conftest.$ac_ext
4675 if $ac_preproc_ok; then
4676 break
4679 done
4680 ac_cv_prog_CPP=$CPP
4683 CPP=$ac_cv_prog_CPP
4684 else
4685 ac_cv_prog_CPP=$CPP
4687 { echo "$as_me:$LINENO: result: $CPP" >&5
4688 echo "${ECHO_T}$CPP" >&6; }
4689 ac_preproc_ok=false
4690 for ac_c_preproc_warn_flag in '' yes
4692 # Use a header file that comes with gcc, so configuring glibc
4693 # with a fresh cross-compiler works.
4694 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4695 # <limits.h> exists even on freestanding compilers.
4696 # On the NeXT, cc -E runs the code through the compiler's parser,
4697 # not just through cpp. "Syntax error" is here to catch this case.
4698 cat >conftest.$ac_ext <<_ACEOF
4699 /* confdefs.h. */
4700 _ACEOF
4701 cat confdefs.h >>conftest.$ac_ext
4702 cat >>conftest.$ac_ext <<_ACEOF
4703 /* end confdefs.h. */
4704 #ifdef __STDC__
4705 # include <limits.h>
4706 #else
4707 # include <assert.h>
4708 #endif
4709 Syntax error
4710 _ACEOF
4711 if { (ac_try="$ac_cpp conftest.$ac_ext"
4712 case "(($ac_try" in
4713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4714 *) ac_try_echo=$ac_try;;
4715 esac
4716 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4717 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4718 ac_status=$?
4719 grep -v '^ *+' conftest.er1 >conftest.err
4720 rm -f conftest.er1
4721 cat conftest.err >&5
4722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4723 (exit $ac_status); } >/dev/null; then
4724 if test -s conftest.err; then
4725 ac_cpp_err=$ac_c_preproc_warn_flag
4726 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4727 else
4728 ac_cpp_err=
4730 else
4731 ac_cpp_err=yes
4733 if test -z "$ac_cpp_err"; then
4735 else
4736 echo "$as_me: failed program was:" >&5
4737 sed 's/^/| /' conftest.$ac_ext >&5
4739 # Broken: fails on valid input.
4740 continue
4743 rm -f conftest.err conftest.$ac_ext
4745 # OK, works on sane cases. Now check whether nonexistent headers
4746 # can be detected and how.
4747 cat >conftest.$ac_ext <<_ACEOF
4748 /* confdefs.h. */
4749 _ACEOF
4750 cat confdefs.h >>conftest.$ac_ext
4751 cat >>conftest.$ac_ext <<_ACEOF
4752 /* end confdefs.h. */
4753 #include <ac_nonexistent.h>
4754 _ACEOF
4755 if { (ac_try="$ac_cpp conftest.$ac_ext"
4756 case "(($ac_try" in
4757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4758 *) ac_try_echo=$ac_try;;
4759 esac
4760 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4761 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4762 ac_status=$?
4763 grep -v '^ *+' conftest.er1 >conftest.err
4764 rm -f conftest.er1
4765 cat conftest.err >&5
4766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4767 (exit $ac_status); } >/dev/null; then
4768 if test -s conftest.err; then
4769 ac_cpp_err=$ac_c_preproc_warn_flag
4770 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4771 else
4772 ac_cpp_err=
4774 else
4775 ac_cpp_err=yes
4777 if test -z "$ac_cpp_err"; then
4778 # Broken: success on invalid input.
4779 continue
4780 else
4781 echo "$as_me: failed program was:" >&5
4782 sed 's/^/| /' conftest.$ac_ext >&5
4784 # Passes both tests.
4785 ac_preproc_ok=:
4786 break
4789 rm -f conftest.err conftest.$ac_ext
4791 done
4792 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4793 rm -f conftest.err conftest.$ac_ext
4794 if $ac_preproc_ok; then
4796 else
4797 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4798 See \`config.log' for more details." >&5
4799 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4800 See \`config.log' for more details." >&2;}
4801 { (exit 1); exit 1; }; }
4804 ac_ext=c
4805 ac_cpp='$CPP $CPPFLAGS'
4806 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4807 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4808 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4811 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4812 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4813 if test "${ac_cv_header_stdc+set}" = set; then
4814 echo $ECHO_N "(cached) $ECHO_C" >&6
4815 else
4816 cat >conftest.$ac_ext <<_ACEOF
4817 /* confdefs.h. */
4818 _ACEOF
4819 cat confdefs.h >>conftest.$ac_ext
4820 cat >>conftest.$ac_ext <<_ACEOF
4821 /* end confdefs.h. */
4822 #include <stdlib.h>
4823 #include <stdarg.h>
4824 #include <string.h>
4825 #include <float.h>
4828 main ()
4832 return 0;
4834 _ACEOF
4835 rm -f conftest.$ac_objext
4836 if { (ac_try="$ac_compile"
4837 case "(($ac_try" in
4838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4839 *) ac_try_echo=$ac_try;;
4840 esac
4841 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4842 (eval "$ac_compile") 2>conftest.er1
4843 ac_status=$?
4844 grep -v '^ *+' conftest.er1 >conftest.err
4845 rm -f conftest.er1
4846 cat conftest.err >&5
4847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4848 (exit $ac_status); } &&
4849 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4850 { (case "(($ac_try" in
4851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4852 *) ac_try_echo=$ac_try;;
4853 esac
4854 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4855 (eval "$ac_try") 2>&5
4856 ac_status=$?
4857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4858 (exit $ac_status); }; } &&
4859 { ac_try='test -s conftest.$ac_objext'
4860 { (case "(($ac_try" in
4861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4862 *) ac_try_echo=$ac_try;;
4863 esac
4864 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4865 (eval "$ac_try") 2>&5
4866 ac_status=$?
4867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4868 (exit $ac_status); }; }; then
4869 ac_cv_header_stdc=yes
4870 else
4871 echo "$as_me: failed program was:" >&5
4872 sed 's/^/| /' conftest.$ac_ext >&5
4874 ac_cv_header_stdc=no
4877 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4879 if test $ac_cv_header_stdc = yes; then
4880 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4881 cat >conftest.$ac_ext <<_ACEOF
4882 /* confdefs.h. */
4883 _ACEOF
4884 cat confdefs.h >>conftest.$ac_ext
4885 cat >>conftest.$ac_ext <<_ACEOF
4886 /* end confdefs.h. */
4887 #include <string.h>
4889 _ACEOF
4890 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4891 $EGREP "memchr" >/dev/null 2>&1; then
4893 else
4894 ac_cv_header_stdc=no
4896 rm -f conftest*
4900 if test $ac_cv_header_stdc = yes; then
4901 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4902 cat >conftest.$ac_ext <<_ACEOF
4903 /* confdefs.h. */
4904 _ACEOF
4905 cat confdefs.h >>conftest.$ac_ext
4906 cat >>conftest.$ac_ext <<_ACEOF
4907 /* end confdefs.h. */
4908 #include <stdlib.h>
4910 _ACEOF
4911 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4912 $EGREP "free" >/dev/null 2>&1; then
4914 else
4915 ac_cv_header_stdc=no
4917 rm -f conftest*
4921 if test $ac_cv_header_stdc = yes; then
4922 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4923 if test "$cross_compiling" = yes; then
4925 else
4926 cat >conftest.$ac_ext <<_ACEOF
4927 /* confdefs.h. */
4928 _ACEOF
4929 cat confdefs.h >>conftest.$ac_ext
4930 cat >>conftest.$ac_ext <<_ACEOF
4931 /* end confdefs.h. */
4932 #include <ctype.h>
4933 #include <stdlib.h>
4934 #if ((' ' & 0x0FF) == 0x020)
4935 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4936 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4937 #else
4938 # define ISLOWER(c) \
4939 (('a' <= (c) && (c) <= 'i') \
4940 || ('j' <= (c) && (c) <= 'r') \
4941 || ('s' <= (c) && (c) <= 'z'))
4942 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4943 #endif
4945 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4947 main ()
4949 int i;
4950 for (i = 0; i < 256; i++)
4951 if (XOR (islower (i), ISLOWER (i))
4952 || toupper (i) != TOUPPER (i))
4953 return 2;
4954 return 0;
4956 _ACEOF
4957 rm -f conftest$ac_exeext
4958 if { (ac_try="$ac_link"
4959 case "(($ac_try" in
4960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4961 *) ac_try_echo=$ac_try;;
4962 esac
4963 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4964 (eval "$ac_link") 2>&5
4965 ac_status=$?
4966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4967 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4968 { (case "(($ac_try" in
4969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4970 *) ac_try_echo=$ac_try;;
4971 esac
4972 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4973 (eval "$ac_try") 2>&5
4974 ac_status=$?
4975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4976 (exit $ac_status); }; }; then
4978 else
4979 echo "$as_me: program exited with status $ac_status" >&5
4980 echo "$as_me: failed program was:" >&5
4981 sed 's/^/| /' conftest.$ac_ext >&5
4983 ( exit $ac_status )
4984 ac_cv_header_stdc=no
4986 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4992 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4993 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4994 if test $ac_cv_header_stdc = yes; then
4996 cat >>confdefs.h <<\_ACEOF
4997 #define STDC_HEADERS 1
4998 _ACEOF
5002 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5012 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5013 inttypes.h stdint.h unistd.h
5015 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5016 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5017 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5018 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5019 echo $ECHO_N "(cached) $ECHO_C" >&6
5020 else
5021 cat >conftest.$ac_ext <<_ACEOF
5022 /* confdefs.h. */
5023 _ACEOF
5024 cat confdefs.h >>conftest.$ac_ext
5025 cat >>conftest.$ac_ext <<_ACEOF
5026 /* end confdefs.h. */
5027 $ac_includes_default
5029 #include <$ac_header>
5030 _ACEOF
5031 rm -f conftest.$ac_objext
5032 if { (ac_try="$ac_compile"
5033 case "(($ac_try" in
5034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5035 *) ac_try_echo=$ac_try;;
5036 esac
5037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5038 (eval "$ac_compile") 2>conftest.er1
5039 ac_status=$?
5040 grep -v '^ *+' conftest.er1 >conftest.err
5041 rm -f conftest.er1
5042 cat conftest.err >&5
5043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5044 (exit $ac_status); } &&
5045 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5046 { (case "(($ac_try" in
5047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5048 *) ac_try_echo=$ac_try;;
5049 esac
5050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5051 (eval "$ac_try") 2>&5
5052 ac_status=$?
5053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5054 (exit $ac_status); }; } &&
5055 { ac_try='test -s conftest.$ac_objext'
5056 { (case "(($ac_try" in
5057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5058 *) ac_try_echo=$ac_try;;
5059 esac
5060 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5061 (eval "$ac_try") 2>&5
5062 ac_status=$?
5063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5064 (exit $ac_status); }; }; then
5065 eval "$as_ac_Header=yes"
5066 else
5067 echo "$as_me: failed program was:" >&5
5068 sed 's/^/| /' conftest.$ac_ext >&5
5070 eval "$as_ac_Header=no"
5073 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5075 ac_res=`eval echo '${'$as_ac_Header'}'`
5076 { echo "$as_me:$LINENO: result: $ac_res" >&5
5077 echo "${ECHO_T}$ac_res" >&6; }
5078 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5079 cat >>confdefs.h <<_ACEOF
5080 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5081 _ACEOF
5085 done
5089 for ac_header in dlfcn.h
5091 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5092 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5093 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5094 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5095 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5096 echo $ECHO_N "(cached) $ECHO_C" >&6
5098 ac_res=`eval echo '${'$as_ac_Header'}'`
5099 { echo "$as_me:$LINENO: result: $ac_res" >&5
5100 echo "${ECHO_T}$ac_res" >&6; }
5101 else
5102 # Is the header compilable?
5103 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5104 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5105 cat >conftest.$ac_ext <<_ACEOF
5106 /* confdefs.h. */
5107 _ACEOF
5108 cat confdefs.h >>conftest.$ac_ext
5109 cat >>conftest.$ac_ext <<_ACEOF
5110 /* end confdefs.h. */
5111 $ac_includes_default
5112 #include <$ac_header>
5113 _ACEOF
5114 rm -f conftest.$ac_objext
5115 if { (ac_try="$ac_compile"
5116 case "(($ac_try" in
5117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5118 *) ac_try_echo=$ac_try;;
5119 esac
5120 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5121 (eval "$ac_compile") 2>conftest.er1
5122 ac_status=$?
5123 grep -v '^ *+' conftest.er1 >conftest.err
5124 rm -f conftest.er1
5125 cat conftest.err >&5
5126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5127 (exit $ac_status); } &&
5128 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5129 { (case "(($ac_try" in
5130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5131 *) ac_try_echo=$ac_try;;
5132 esac
5133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5134 (eval "$ac_try") 2>&5
5135 ac_status=$?
5136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5137 (exit $ac_status); }; } &&
5138 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
5148 ac_header_compiler=yes
5149 else
5150 echo "$as_me: failed program was:" >&5
5151 sed 's/^/| /' conftest.$ac_ext >&5
5153 ac_header_compiler=no
5156 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5157 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5158 echo "${ECHO_T}$ac_header_compiler" >&6; }
5160 # Is the header present?
5161 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5162 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5163 cat >conftest.$ac_ext <<_ACEOF
5164 /* confdefs.h. */
5165 _ACEOF
5166 cat confdefs.h >>conftest.$ac_ext
5167 cat >>conftest.$ac_ext <<_ACEOF
5168 /* end confdefs.h. */
5169 #include <$ac_header>
5170 _ACEOF
5171 if { (ac_try="$ac_cpp conftest.$ac_ext"
5172 case "(($ac_try" in
5173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5174 *) ac_try_echo=$ac_try;;
5175 esac
5176 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5177 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5178 ac_status=$?
5179 grep -v '^ *+' conftest.er1 >conftest.err
5180 rm -f conftest.er1
5181 cat conftest.err >&5
5182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5183 (exit $ac_status); } >/dev/null; then
5184 if test -s conftest.err; then
5185 ac_cpp_err=$ac_c_preproc_warn_flag
5186 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5187 else
5188 ac_cpp_err=
5190 else
5191 ac_cpp_err=yes
5193 if test -z "$ac_cpp_err"; then
5194 ac_header_preproc=yes
5195 else
5196 echo "$as_me: failed program was:" >&5
5197 sed 's/^/| /' conftest.$ac_ext >&5
5199 ac_header_preproc=no
5202 rm -f conftest.err conftest.$ac_ext
5203 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5204 echo "${ECHO_T}$ac_header_preproc" >&6; }
5206 # So? What about this header?
5207 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5208 yes:no: )
5209 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5210 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5211 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5212 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5213 ac_header_preproc=yes
5215 no:yes:* )
5216 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5217 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5218 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5219 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5220 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5221 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5222 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5223 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5224 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5225 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5226 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5227 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5230 esac
5231 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5232 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5233 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5234 echo $ECHO_N "(cached) $ECHO_C" >&6
5235 else
5236 eval "$as_ac_Header=\$ac_header_preproc"
5238 ac_res=`eval echo '${'$as_ac_Header'}'`
5239 { echo "$as_me:$LINENO: result: $ac_res" >&5
5240 echo "${ECHO_T}$ac_res" >&6; }
5243 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5244 cat >>confdefs.h <<_ACEOF
5245 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5246 _ACEOF
5250 done
5252 ac_ext=cpp
5253 ac_cpp='$CXXCPP $CPPFLAGS'
5254 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5255 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5256 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5257 if test -z "$CXX"; then
5258 if test -n "$CCC"; then
5259 CXX=$CCC
5260 else
5261 if test -n "$ac_tool_prefix"; then
5262 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5264 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5265 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5266 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5267 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5268 if test "${ac_cv_prog_CXX+set}" = set; then
5269 echo $ECHO_N "(cached) $ECHO_C" >&6
5270 else
5271 if test -n "$CXX"; then
5272 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5273 else
5274 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5275 for as_dir in $PATH
5277 IFS=$as_save_IFS
5278 test -z "$as_dir" && as_dir=.
5279 for ac_exec_ext in '' $ac_executable_extensions; do
5280 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5281 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5282 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5283 break 2
5285 done
5286 done
5287 IFS=$as_save_IFS
5291 CXX=$ac_cv_prog_CXX
5292 if test -n "$CXX"; then
5293 { echo "$as_me:$LINENO: result: $CXX" >&5
5294 echo "${ECHO_T}$CXX" >&6; }
5295 else
5296 { echo "$as_me:$LINENO: result: no" >&5
5297 echo "${ECHO_T}no" >&6; }
5301 test -n "$CXX" && break
5302 done
5304 if test -z "$CXX"; then
5305 ac_ct_CXX=$CXX
5306 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5308 # Extract the first word of "$ac_prog", so it can be a program name with args.
5309 set dummy $ac_prog; ac_word=$2
5310 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5311 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5312 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5313 echo $ECHO_N "(cached) $ECHO_C" >&6
5314 else
5315 if test -n "$ac_ct_CXX"; then
5316 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5317 else
5318 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5319 for as_dir in $PATH
5321 IFS=$as_save_IFS
5322 test -z "$as_dir" && as_dir=.
5323 for ac_exec_ext in '' $ac_executable_extensions; do
5324 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5325 ac_cv_prog_ac_ct_CXX="$ac_prog"
5326 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5327 break 2
5329 done
5330 done
5331 IFS=$as_save_IFS
5335 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5336 if test -n "$ac_ct_CXX"; then
5337 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5338 echo "${ECHO_T}$ac_ct_CXX" >&6; }
5339 else
5340 { echo "$as_me:$LINENO: result: no" >&5
5341 echo "${ECHO_T}no" >&6; }
5345 test -n "$ac_ct_CXX" && break
5346 done
5348 if test "x$ac_ct_CXX" = x; then
5349 CXX="g++"
5350 else
5351 case $cross_compiling:$ac_tool_warned in
5352 yes:)
5353 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5354 whose name does not start with the host triplet. If you think this
5355 configuration is useful to you, please write to autoconf@gnu.org." >&5
5356 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5357 whose name does not start with the host triplet. If you think this
5358 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5359 ac_tool_warned=yes ;;
5360 esac
5361 CXX=$ac_ct_CXX
5367 # Provide some information about the compiler.
5368 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
5369 ac_compiler=`set X $ac_compile; echo $2`
5370 { (ac_try="$ac_compiler --version >&5"
5371 case "(($ac_try" in
5372 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5373 *) ac_try_echo=$ac_try;;
5374 esac
5375 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5376 (eval "$ac_compiler --version >&5") 2>&5
5377 ac_status=$?
5378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5379 (exit $ac_status); }
5380 { (ac_try="$ac_compiler -v >&5"
5381 case "(($ac_try" in
5382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5383 *) ac_try_echo=$ac_try;;
5384 esac
5385 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5386 (eval "$ac_compiler -v >&5") 2>&5
5387 ac_status=$?
5388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5389 (exit $ac_status); }
5390 { (ac_try="$ac_compiler -V >&5"
5391 case "(($ac_try" in
5392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5393 *) ac_try_echo=$ac_try;;
5394 esac
5395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5396 (eval "$ac_compiler -V >&5") 2>&5
5397 ac_status=$?
5398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5399 (exit $ac_status); }
5401 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5402 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
5403 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5404 echo $ECHO_N "(cached) $ECHO_C" >&6
5405 else
5406 cat >conftest.$ac_ext <<_ACEOF
5407 /* confdefs.h. */
5408 _ACEOF
5409 cat confdefs.h >>conftest.$ac_ext
5410 cat >>conftest.$ac_ext <<_ACEOF
5411 /* end confdefs.h. */
5414 main ()
5416 #ifndef __GNUC__
5417 choke me
5418 #endif
5421 return 0;
5423 _ACEOF
5424 rm -f conftest.$ac_objext
5425 if { (ac_try="$ac_compile"
5426 case "(($ac_try" in
5427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5428 *) ac_try_echo=$ac_try;;
5429 esac
5430 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5431 (eval "$ac_compile") 2>conftest.er1
5432 ac_status=$?
5433 grep -v '^ *+' conftest.er1 >conftest.err
5434 rm -f conftest.er1
5435 cat conftest.err >&5
5436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5437 (exit $ac_status); } &&
5438 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5439 { (case "(($ac_try" in
5440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5441 *) ac_try_echo=$ac_try;;
5442 esac
5443 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5444 (eval "$ac_try") 2>&5
5445 ac_status=$?
5446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5447 (exit $ac_status); }; } &&
5448 { ac_try='test -s conftest.$ac_objext'
5449 { (case "(($ac_try" in
5450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5451 *) ac_try_echo=$ac_try;;
5452 esac
5453 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5454 (eval "$ac_try") 2>&5
5455 ac_status=$?
5456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5457 (exit $ac_status); }; }; then
5458 ac_compiler_gnu=yes
5459 else
5460 echo "$as_me: failed program was:" >&5
5461 sed 's/^/| /' conftest.$ac_ext >&5
5463 ac_compiler_gnu=no
5466 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5467 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5470 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5471 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
5472 GXX=`test $ac_compiler_gnu = yes && echo yes`
5473 ac_test_CXXFLAGS=${CXXFLAGS+set}
5474 ac_save_CXXFLAGS=$CXXFLAGS
5475 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5476 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
5477 if test "${ac_cv_prog_cxx_g+set}" = set; then
5478 echo $ECHO_N "(cached) $ECHO_C" >&6
5479 else
5480 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5481 ac_cxx_werror_flag=yes
5482 ac_cv_prog_cxx_g=no
5483 CXXFLAGS="-g"
5484 cat >conftest.$ac_ext <<_ACEOF
5485 /* confdefs.h. */
5486 _ACEOF
5487 cat confdefs.h >>conftest.$ac_ext
5488 cat >>conftest.$ac_ext <<_ACEOF
5489 /* end confdefs.h. */
5492 main ()
5496 return 0;
5498 _ACEOF
5499 rm -f conftest.$ac_objext
5500 if { (ac_try="$ac_compile"
5501 case "(($ac_try" in
5502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5503 *) ac_try_echo=$ac_try;;
5504 esac
5505 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5506 (eval "$ac_compile") 2>conftest.er1
5507 ac_status=$?
5508 grep -v '^ *+' conftest.er1 >conftest.err
5509 rm -f conftest.er1
5510 cat conftest.err >&5
5511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5512 (exit $ac_status); } &&
5513 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5514 { (case "(($ac_try" in
5515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5516 *) ac_try_echo=$ac_try;;
5517 esac
5518 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5519 (eval "$ac_try") 2>&5
5520 ac_status=$?
5521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5522 (exit $ac_status); }; } &&
5523 { ac_try='test -s conftest.$ac_objext'
5524 { (case "(($ac_try" in
5525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5526 *) ac_try_echo=$ac_try;;
5527 esac
5528 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5529 (eval "$ac_try") 2>&5
5530 ac_status=$?
5531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5532 (exit $ac_status); }; }; then
5533 ac_cv_prog_cxx_g=yes
5534 else
5535 echo "$as_me: failed program was:" >&5
5536 sed 's/^/| /' conftest.$ac_ext >&5
5538 CXXFLAGS=""
5539 cat >conftest.$ac_ext <<_ACEOF
5540 /* confdefs.h. */
5541 _ACEOF
5542 cat confdefs.h >>conftest.$ac_ext
5543 cat >>conftest.$ac_ext <<_ACEOF
5544 /* end confdefs.h. */
5547 main ()
5551 return 0;
5553 _ACEOF
5554 rm -f conftest.$ac_objext
5555 if { (ac_try="$ac_compile"
5556 case "(($ac_try" in
5557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5558 *) ac_try_echo=$ac_try;;
5559 esac
5560 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5561 (eval "$ac_compile") 2>conftest.er1
5562 ac_status=$?
5563 grep -v '^ *+' conftest.er1 >conftest.err
5564 rm -f conftest.er1
5565 cat conftest.err >&5
5566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5567 (exit $ac_status); } &&
5568 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5569 { (case "(($ac_try" in
5570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5571 *) ac_try_echo=$ac_try;;
5572 esac
5573 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5574 (eval "$ac_try") 2>&5
5575 ac_status=$?
5576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5577 (exit $ac_status); }; } &&
5578 { ac_try='test -s conftest.$ac_objext'
5579 { (case "(($ac_try" in
5580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5581 *) ac_try_echo=$ac_try;;
5582 esac
5583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5584 (eval "$ac_try") 2>&5
5585 ac_status=$?
5586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5587 (exit $ac_status); }; }; then
5589 else
5590 echo "$as_me: failed program was:" >&5
5591 sed 's/^/| /' conftest.$ac_ext >&5
5593 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5594 CXXFLAGS="-g"
5595 cat >conftest.$ac_ext <<_ACEOF
5596 /* confdefs.h. */
5597 _ACEOF
5598 cat confdefs.h >>conftest.$ac_ext
5599 cat >>conftest.$ac_ext <<_ACEOF
5600 /* end confdefs.h. */
5603 main ()
5607 return 0;
5609 _ACEOF
5610 rm -f conftest.$ac_objext
5611 if { (ac_try="$ac_compile"
5612 case "(($ac_try" in
5613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5614 *) ac_try_echo=$ac_try;;
5615 esac
5616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5617 (eval "$ac_compile") 2>conftest.er1
5618 ac_status=$?
5619 grep -v '^ *+' conftest.er1 >conftest.err
5620 rm -f conftest.er1
5621 cat conftest.err >&5
5622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5623 (exit $ac_status); } &&
5624 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5625 { (case "(($ac_try" in
5626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5627 *) ac_try_echo=$ac_try;;
5628 esac
5629 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5630 (eval "$ac_try") 2>&5
5631 ac_status=$?
5632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5633 (exit $ac_status); }; } &&
5634 { ac_try='test -s conftest.$ac_objext'
5635 { (case "(($ac_try" in
5636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5637 *) ac_try_echo=$ac_try;;
5638 esac
5639 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5640 (eval "$ac_try") 2>&5
5641 ac_status=$?
5642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5643 (exit $ac_status); }; }; then
5644 ac_cv_prog_cxx_g=yes
5645 else
5646 echo "$as_me: failed program was:" >&5
5647 sed 's/^/| /' conftest.$ac_ext >&5
5652 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5655 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5658 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5659 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5661 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5662 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
5663 if test "$ac_test_CXXFLAGS" = set; then
5664 CXXFLAGS=$ac_save_CXXFLAGS
5665 elif test $ac_cv_prog_cxx_g = yes; then
5666 if test "$GXX" = yes; then
5667 CXXFLAGS="-g -O2"
5668 else
5669 CXXFLAGS="-g"
5671 else
5672 if test "$GXX" = yes; then
5673 CXXFLAGS="-O2"
5674 else
5675 CXXFLAGS=
5678 ac_ext=cpp
5679 ac_cpp='$CXXCPP $CPPFLAGS'
5680 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5681 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5682 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5684 depcc="$CXX" am_compiler_list=
5686 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5687 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
5688 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
5689 echo $ECHO_N "(cached) $ECHO_C" >&6
5690 else
5691 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5692 # We make a subdir and do the tests there. Otherwise we can end up
5693 # making bogus files that we don't know about and never remove. For
5694 # instance it was reported that on HP-UX the gcc test will end up
5695 # making a dummy file named `D' -- because `-MD' means `put the output
5696 # in D'.
5697 mkdir conftest.dir
5698 # Copy depcomp to subdir because otherwise we won't find it if we're
5699 # using a relative directory.
5700 cp "$am_depcomp" conftest.dir
5701 cd conftest.dir
5702 # We will build objects and dependencies in a subdirectory because
5703 # it helps to detect inapplicable dependency modes. For instance
5704 # both Tru64's cc and ICC support -MD to output dependencies as a
5705 # side effect of compilation, but ICC will put the dependencies in
5706 # the current directory while Tru64 will put them in the object
5707 # directory.
5708 mkdir sub
5710 am_cv_CXX_dependencies_compiler_type=none
5711 if test "$am_compiler_list" = ""; then
5712 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5714 for depmode in $am_compiler_list; do
5715 # Setup a source with many dependencies, because some compilers
5716 # like to wrap large dependency lists on column 80 (with \), and
5717 # we should not choose a depcomp mode which is confused by this.
5719 # We need to recreate these files for each test, as the compiler may
5720 # overwrite some of them when testing with obscure command lines.
5721 # This happens at least with the AIX C compiler.
5722 : > sub/conftest.c
5723 for i in 1 2 3 4 5 6; do
5724 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5725 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5726 # Solaris 8's {/usr,}/bin/sh.
5727 touch sub/conftst$i.h
5728 done
5729 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5731 case $depmode in
5732 nosideeffect)
5733 # after this tag, mechanisms are not by side-effect, so they'll
5734 # only be used when explicitly requested
5735 if test "x$enable_dependency_tracking" = xyes; then
5736 continue
5737 else
5738 break
5741 none) break ;;
5742 esac
5743 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5744 # mode. It turns out that the SunPro C++ compiler does not properly
5745 # handle `-M -o', and we need to detect this.
5746 if depmode=$depmode \
5747 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5748 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5749 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5750 >/dev/null 2>conftest.err &&
5751 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5752 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5753 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5754 # icc doesn't choke on unknown options, it will just issue warnings
5755 # or remarks (even with -Werror). So we grep stderr for any message
5756 # that says an option was ignored or not supported.
5757 # When given -MP, icc 7.0 and 7.1 complain thusly:
5758 # icc: Command line warning: ignoring option '-M'; no argument required
5759 # The diagnosis changed in icc 8.0:
5760 # icc: Command line remark: option '-MP' not supported
5761 if (grep 'ignoring option' conftest.err ||
5762 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5763 am_cv_CXX_dependencies_compiler_type=$depmode
5764 break
5767 done
5769 cd ..
5770 rm -rf conftest.dir
5771 else
5772 am_cv_CXX_dependencies_compiler_type=none
5776 { echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
5777 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
5778 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5783 test "x$enable_dependency_tracking" != xno \
5784 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5785 am__fastdepCXX_TRUE=
5786 am__fastdepCXX_FALSE='#'
5787 else
5788 am__fastdepCXX_TRUE='#'
5789 am__fastdepCXX_FALSE=
5795 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5796 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5797 (test "X$CXX" != "Xg++"))) ; then
5798 ac_ext=cpp
5799 ac_cpp='$CXXCPP $CPPFLAGS'
5800 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5801 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5802 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5803 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5804 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
5805 if test -z "$CXXCPP"; then
5806 if test "${ac_cv_prog_CXXCPP+set}" = set; then
5807 echo $ECHO_N "(cached) $ECHO_C" >&6
5808 else
5809 # Double quotes because CXXCPP needs to be expanded
5810 for CXXCPP in "$CXX -E" "/lib/cpp"
5812 ac_preproc_ok=false
5813 for ac_cxx_preproc_warn_flag in '' yes
5815 # Use a header file that comes with gcc, so configuring glibc
5816 # with a fresh cross-compiler works.
5817 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5818 # <limits.h> exists even on freestanding compilers.
5819 # On the NeXT, cc -E runs the code through the compiler's parser,
5820 # not just through cpp. "Syntax error" is here to catch this case.
5821 cat >conftest.$ac_ext <<_ACEOF
5822 /* confdefs.h. */
5823 _ACEOF
5824 cat confdefs.h >>conftest.$ac_ext
5825 cat >>conftest.$ac_ext <<_ACEOF
5826 /* end confdefs.h. */
5827 #ifdef __STDC__
5828 # include <limits.h>
5829 #else
5830 # include <assert.h>
5831 #endif
5832 Syntax error
5833 _ACEOF
5834 if { (ac_try="$ac_cpp conftest.$ac_ext"
5835 case "(($ac_try" in
5836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5837 *) ac_try_echo=$ac_try;;
5838 esac
5839 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5840 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5841 ac_status=$?
5842 grep -v '^ *+' conftest.er1 >conftest.err
5843 rm -f conftest.er1
5844 cat conftest.err >&5
5845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5846 (exit $ac_status); } >/dev/null; then
5847 if test -s conftest.err; then
5848 ac_cpp_err=$ac_cxx_preproc_warn_flag
5849 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5850 else
5851 ac_cpp_err=
5853 else
5854 ac_cpp_err=yes
5856 if test -z "$ac_cpp_err"; then
5858 else
5859 echo "$as_me: failed program was:" >&5
5860 sed 's/^/| /' conftest.$ac_ext >&5
5862 # Broken: fails on valid input.
5863 continue
5866 rm -f conftest.err conftest.$ac_ext
5868 # OK, works on sane cases. Now check whether nonexistent headers
5869 # can be detected and how.
5870 cat >conftest.$ac_ext <<_ACEOF
5871 /* confdefs.h. */
5872 _ACEOF
5873 cat confdefs.h >>conftest.$ac_ext
5874 cat >>conftest.$ac_ext <<_ACEOF
5875 /* end confdefs.h. */
5876 #include <ac_nonexistent.h>
5877 _ACEOF
5878 if { (ac_try="$ac_cpp conftest.$ac_ext"
5879 case "(($ac_try" in
5880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5881 *) ac_try_echo=$ac_try;;
5882 esac
5883 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5884 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5885 ac_status=$?
5886 grep -v '^ *+' conftest.er1 >conftest.err
5887 rm -f conftest.er1
5888 cat conftest.err >&5
5889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5890 (exit $ac_status); } >/dev/null; then
5891 if test -s conftest.err; then
5892 ac_cpp_err=$ac_cxx_preproc_warn_flag
5893 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5894 else
5895 ac_cpp_err=
5897 else
5898 ac_cpp_err=yes
5900 if test -z "$ac_cpp_err"; then
5901 # Broken: success on invalid input.
5902 continue
5903 else
5904 echo "$as_me: failed program was:" >&5
5905 sed 's/^/| /' conftest.$ac_ext >&5
5907 # Passes both tests.
5908 ac_preproc_ok=:
5909 break
5912 rm -f conftest.err conftest.$ac_ext
5914 done
5915 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5916 rm -f conftest.err conftest.$ac_ext
5917 if $ac_preproc_ok; then
5918 break
5921 done
5922 ac_cv_prog_CXXCPP=$CXXCPP
5925 CXXCPP=$ac_cv_prog_CXXCPP
5926 else
5927 ac_cv_prog_CXXCPP=$CXXCPP
5929 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
5930 echo "${ECHO_T}$CXXCPP" >&6; }
5931 ac_preproc_ok=false
5932 for ac_cxx_preproc_warn_flag in '' yes
5934 # Use a header file that comes with gcc, so configuring glibc
5935 # with a fresh cross-compiler works.
5936 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5937 # <limits.h> exists even on freestanding compilers.
5938 # On the NeXT, cc -E runs the code through the compiler's parser,
5939 # not just through cpp. "Syntax error" is here to catch this case.
5940 cat >conftest.$ac_ext <<_ACEOF
5941 /* confdefs.h. */
5942 _ACEOF
5943 cat confdefs.h >>conftest.$ac_ext
5944 cat >>conftest.$ac_ext <<_ACEOF
5945 /* end confdefs.h. */
5946 #ifdef __STDC__
5947 # include <limits.h>
5948 #else
5949 # include <assert.h>
5950 #endif
5951 Syntax error
5952 _ACEOF
5953 if { (ac_try="$ac_cpp conftest.$ac_ext"
5954 case "(($ac_try" in
5955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5956 *) ac_try_echo=$ac_try;;
5957 esac
5958 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5959 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5960 ac_status=$?
5961 grep -v '^ *+' conftest.er1 >conftest.err
5962 rm -f conftest.er1
5963 cat conftest.err >&5
5964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5965 (exit $ac_status); } >/dev/null; then
5966 if test -s conftest.err; then
5967 ac_cpp_err=$ac_cxx_preproc_warn_flag
5968 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5969 else
5970 ac_cpp_err=
5972 else
5973 ac_cpp_err=yes
5975 if test -z "$ac_cpp_err"; then
5977 else
5978 echo "$as_me: failed program was:" >&5
5979 sed 's/^/| /' conftest.$ac_ext >&5
5981 # Broken: fails on valid input.
5982 continue
5985 rm -f conftest.err conftest.$ac_ext
5987 # OK, works on sane cases. Now check whether nonexistent headers
5988 # can be detected and how.
5989 cat >conftest.$ac_ext <<_ACEOF
5990 /* confdefs.h. */
5991 _ACEOF
5992 cat confdefs.h >>conftest.$ac_ext
5993 cat >>conftest.$ac_ext <<_ACEOF
5994 /* end confdefs.h. */
5995 #include <ac_nonexistent.h>
5996 _ACEOF
5997 if { (ac_try="$ac_cpp conftest.$ac_ext"
5998 case "(($ac_try" in
5999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6000 *) ac_try_echo=$ac_try;;
6001 esac
6002 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6003 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6004 ac_status=$?
6005 grep -v '^ *+' conftest.er1 >conftest.err
6006 rm -f conftest.er1
6007 cat conftest.err >&5
6008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6009 (exit $ac_status); } >/dev/null; then
6010 if test -s conftest.err; then
6011 ac_cpp_err=$ac_cxx_preproc_warn_flag
6012 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6013 else
6014 ac_cpp_err=
6016 else
6017 ac_cpp_err=yes
6019 if test -z "$ac_cpp_err"; then
6020 # Broken: success on invalid input.
6021 continue
6022 else
6023 echo "$as_me: failed program was:" >&5
6024 sed 's/^/| /' conftest.$ac_ext >&5
6026 # Passes both tests.
6027 ac_preproc_ok=:
6028 break
6031 rm -f conftest.err conftest.$ac_ext
6033 done
6034 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6035 rm -f conftest.err conftest.$ac_ext
6036 if $ac_preproc_ok; then
6038 else
6039 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6040 See \`config.log' for more details." >&5
6041 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6042 See \`config.log' for more details." >&2;}
6043 { (exit 1); exit 1; }; }
6046 ac_ext=cpp
6047 ac_cpp='$CXXCPP $CPPFLAGS'
6048 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6049 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6050 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6055 ac_ext=f
6056 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6057 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6058 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
6059 if test -n "$ac_tool_prefix"; then
6060 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
6062 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6063 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6064 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6065 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6066 if test "${ac_cv_prog_F77+set}" = set; then
6067 echo $ECHO_N "(cached) $ECHO_C" >&6
6068 else
6069 if test -n "$F77"; then
6070 ac_cv_prog_F77="$F77" # Let the user override the test.
6071 else
6072 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6073 for as_dir in $PATH
6075 IFS=$as_save_IFS
6076 test -z "$as_dir" && as_dir=.
6077 for ac_exec_ext in '' $ac_executable_extensions; do
6078 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6079 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
6080 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6081 break 2
6083 done
6084 done
6085 IFS=$as_save_IFS
6089 F77=$ac_cv_prog_F77
6090 if test -n "$F77"; then
6091 { echo "$as_me:$LINENO: result: $F77" >&5
6092 echo "${ECHO_T}$F77" >&6; }
6093 else
6094 { echo "$as_me:$LINENO: result: no" >&5
6095 echo "${ECHO_T}no" >&6; }
6099 test -n "$F77" && break
6100 done
6102 if test -z "$F77"; then
6103 ac_ct_F77=$F77
6104 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
6106 # Extract the first word of "$ac_prog", so it can be a program name with args.
6107 set dummy $ac_prog; ac_word=$2
6108 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6109 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6110 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
6111 echo $ECHO_N "(cached) $ECHO_C" >&6
6112 else
6113 if test -n "$ac_ct_F77"; then
6114 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
6115 else
6116 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6117 for as_dir in $PATH
6119 IFS=$as_save_IFS
6120 test -z "$as_dir" && as_dir=.
6121 for ac_exec_ext in '' $ac_executable_extensions; do
6122 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6123 ac_cv_prog_ac_ct_F77="$ac_prog"
6124 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6125 break 2
6127 done
6128 done
6129 IFS=$as_save_IFS
6133 ac_ct_F77=$ac_cv_prog_ac_ct_F77
6134 if test -n "$ac_ct_F77"; then
6135 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
6136 echo "${ECHO_T}$ac_ct_F77" >&6; }
6137 else
6138 { echo "$as_me:$LINENO: result: no" >&5
6139 echo "${ECHO_T}no" >&6; }
6143 test -n "$ac_ct_F77" && break
6144 done
6146 if test "x$ac_ct_F77" = x; then
6147 F77=""
6148 else
6149 case $cross_compiling:$ac_tool_warned in
6150 yes:)
6151 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6152 whose name does not start with the host triplet. If you think this
6153 configuration is useful to you, please write to autoconf@gnu.org." >&5
6154 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6155 whose name does not start with the host triplet. If you think this
6156 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6157 ac_tool_warned=yes ;;
6158 esac
6159 F77=$ac_ct_F77
6164 # Provide some information about the compiler.
6165 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
6166 ac_compiler=`set X $ac_compile; echo $2`
6167 { (ac_try="$ac_compiler --version >&5"
6168 case "(($ac_try" in
6169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6170 *) ac_try_echo=$ac_try;;
6171 esac
6172 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6173 (eval "$ac_compiler --version >&5") 2>&5
6174 ac_status=$?
6175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6176 (exit $ac_status); }
6177 { (ac_try="$ac_compiler -v >&5"
6178 case "(($ac_try" in
6179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6180 *) ac_try_echo=$ac_try;;
6181 esac
6182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6183 (eval "$ac_compiler -v >&5") 2>&5
6184 ac_status=$?
6185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6186 (exit $ac_status); }
6187 { (ac_try="$ac_compiler -V >&5"
6188 case "(($ac_try" in
6189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6190 *) ac_try_echo=$ac_try;;
6191 esac
6192 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6193 (eval "$ac_compiler -V >&5") 2>&5
6194 ac_status=$?
6195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6196 (exit $ac_status); }
6197 rm -f a.out
6199 # If we don't use `.F' as extension, the preprocessor is not run on the
6200 # input file. (Note that this only needs to work for GNU compilers.)
6201 ac_save_ext=$ac_ext
6202 ac_ext=F
6203 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
6204 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
6205 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
6206 echo $ECHO_N "(cached) $ECHO_C" >&6
6207 else
6208 cat >conftest.$ac_ext <<_ACEOF
6209 program main
6210 #ifndef __GNUC__
6211 choke me
6212 #endif
6215 _ACEOF
6216 rm -f conftest.$ac_objext
6217 if { (ac_try="$ac_compile"
6218 case "(($ac_try" in
6219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6220 *) ac_try_echo=$ac_try;;
6221 esac
6222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6223 (eval "$ac_compile") 2>conftest.er1
6224 ac_status=$?
6225 grep -v '^ *+' conftest.er1 >conftest.err
6226 rm -f conftest.er1
6227 cat conftest.err >&5
6228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6229 (exit $ac_status); } &&
6230 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
6231 { (case "(($ac_try" in
6232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6233 *) ac_try_echo=$ac_try;;
6234 esac
6235 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6236 (eval "$ac_try") 2>&5
6237 ac_status=$?
6238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6239 (exit $ac_status); }; } &&
6240 { ac_try='test -s conftest.$ac_objext'
6241 { (case "(($ac_try" in
6242 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6243 *) ac_try_echo=$ac_try;;
6244 esac
6245 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6246 (eval "$ac_try") 2>&5
6247 ac_status=$?
6248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6249 (exit $ac_status); }; }; then
6250 ac_compiler_gnu=yes
6251 else
6252 echo "$as_me: failed program was:" >&5
6253 sed 's/^/| /' conftest.$ac_ext >&5
6255 ac_compiler_gnu=no
6258 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6259 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6262 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
6263 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
6264 ac_ext=$ac_save_ext
6265 ac_test_FFLAGS=${FFLAGS+set}
6266 ac_save_FFLAGS=$FFLAGS
6267 FFLAGS=
6268 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
6269 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
6270 if test "${ac_cv_prog_f77_g+set}" = set; then
6271 echo $ECHO_N "(cached) $ECHO_C" >&6
6272 else
6273 FFLAGS=-g
6274 cat >conftest.$ac_ext <<_ACEOF
6275 program main
6278 _ACEOF
6279 rm -f conftest.$ac_objext
6280 if { (ac_try="$ac_compile"
6281 case "(($ac_try" in
6282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6283 *) ac_try_echo=$ac_try;;
6284 esac
6285 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6286 (eval "$ac_compile") 2>conftest.er1
6287 ac_status=$?
6288 grep -v '^ *+' conftest.er1 >conftest.err
6289 rm -f conftest.er1
6290 cat conftest.err >&5
6291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6292 (exit $ac_status); } &&
6293 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
6294 { (case "(($ac_try" in
6295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6296 *) ac_try_echo=$ac_try;;
6297 esac
6298 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6299 (eval "$ac_try") 2>&5
6300 ac_status=$?
6301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6302 (exit $ac_status); }; } &&
6303 { ac_try='test -s conftest.$ac_objext'
6304 { (case "(($ac_try" in
6305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6306 *) ac_try_echo=$ac_try;;
6307 esac
6308 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6309 (eval "$ac_try") 2>&5
6310 ac_status=$?
6311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6312 (exit $ac_status); }; }; then
6313 ac_cv_prog_f77_g=yes
6314 else
6315 echo "$as_me: failed program was:" >&5
6316 sed 's/^/| /' conftest.$ac_ext >&5
6318 ac_cv_prog_f77_g=no
6321 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6324 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6325 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
6326 if test "$ac_test_FFLAGS" = set; then
6327 FFLAGS=$ac_save_FFLAGS
6328 elif test $ac_cv_prog_f77_g = yes; then
6329 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6330 FFLAGS="-g -O2"
6331 else
6332 FFLAGS="-g"
6334 else
6335 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6336 FFLAGS="-O2"
6337 else
6338 FFLAGS=
6342 G77=`test $ac_compiler_gnu = yes && echo yes`
6343 ac_ext=cpp
6344 ac_cpp='$CXXCPP $CPPFLAGS'
6345 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6346 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6347 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6351 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6353 # find the maximum length of command line arguments
6354 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6355 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
6356 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6357 echo $ECHO_N "(cached) $ECHO_C" >&6
6358 else
6360 teststring="ABCD"
6362 case $build_os in
6363 msdosdjgpp*)
6364 # On DJGPP, this test can blow up pretty badly due to problems in libc
6365 # (any single argument exceeding 2000 bytes causes a buffer overrun
6366 # during glob expansion). Even if it were fixed, the result of this
6367 # check would be larger than it should be.
6368 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6371 gnu*)
6372 # Under GNU Hurd, this test is not required because there is
6373 # no limit to the length of command line arguments.
6374 # Libtool will interpret -1 as no limit whatsoever
6375 lt_cv_sys_max_cmd_len=-1;
6378 cygwin* | mingw*)
6379 # On Win9x/ME, this test blows up -- it succeeds, but takes
6380 # about 5 minutes as the teststring grows exponentially.
6381 # Worse, since 9x/ME are not pre-emptively multitasking,
6382 # you end up with a "frozen" computer, even though with patience
6383 # the test eventually succeeds (with a max line length of 256k).
6384 # Instead, let's just punt: use the minimum linelength reported by
6385 # all of the supported platforms: 8192 (on NT/2K/XP).
6386 lt_cv_sys_max_cmd_len=8192;
6389 amigaos*)
6390 # On AmigaOS with pdksh, this test takes hours, literally.
6391 # So we just punt and use a minimum line length of 8192.
6392 lt_cv_sys_max_cmd_len=8192;
6395 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6396 # This has been around since 386BSD, at least. Likely further.
6397 if test -x /sbin/sysctl; then
6398 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6399 elif test -x /usr/sbin/sysctl; then
6400 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6401 else
6402 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6404 # And add a safety zone
6405 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6406 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6409 interix*)
6410 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6411 lt_cv_sys_max_cmd_len=196608
6414 osf*)
6415 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6416 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6417 # nice to cause kernel panics so lets avoid the loop below.
6418 # First set a reasonable default.
6419 lt_cv_sys_max_cmd_len=16384
6421 if test -x /sbin/sysconfig; then
6422 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6423 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6424 esac
6427 sco3.2v5*)
6428 lt_cv_sys_max_cmd_len=102400
6430 sysv5* | sco5v6* | sysv4.2uw2*)
6431 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6432 if test -n "$kargmax"; then
6433 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6434 else
6435 lt_cv_sys_max_cmd_len=32768
6439 # If test is not a shell built-in, we'll probably end up computing a
6440 # maximum length that is only half of the actual maximum length, but
6441 # we can't tell.
6442 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6443 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6444 = "XX$teststring") >/dev/null 2>&1 &&
6445 new_result=`expr "X$teststring" : ".*" 2>&1` &&
6446 lt_cv_sys_max_cmd_len=$new_result &&
6447 test $i != 17 # 1/2 MB should be enough
6449 i=`expr $i + 1`
6450 teststring=$teststring$teststring
6451 done
6452 teststring=
6453 # Add a significant safety factor because C++ compilers can tack on massive
6454 # amounts of additional arguments before passing them to the linker.
6455 # It appears as though 1/2 is a usable value.
6456 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6458 esac
6462 if test -n $lt_cv_sys_max_cmd_len ; then
6463 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6464 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
6465 else
6466 { echo "$as_me:$LINENO: result: none" >&5
6467 echo "${ECHO_T}none" >&6; }
6473 # Check for command to grab the raw symbol name followed by C symbol from nm.
6474 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6475 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
6476 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6477 echo $ECHO_N "(cached) $ECHO_C" >&6
6478 else
6480 # These are sane defaults that work on at least a few old systems.
6481 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6483 # Character class describing NM global symbol codes.
6484 symcode='[BCDEGRST]'
6486 # Regexp to match symbols that can be accessed directly from C.
6487 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6489 # Transform an extracted symbol line into a proper C declaration
6490 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6492 # Transform an extracted symbol line into symbol name and symbol address
6493 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'"
6495 # Define system-specific variables.
6496 case $host_os in
6497 aix*)
6498 symcode='[BCDT]'
6500 cygwin* | mingw* | pw32*)
6501 symcode='[ABCDGISTW]'
6503 hpux*) # Its linker distinguishes data from code symbols
6504 if test "$host_cpu" = ia64; then
6505 symcode='[ABCDEGRST]'
6507 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6508 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'"
6510 linux*)
6511 if test "$host_cpu" = ia64; then
6512 symcode='[ABCDGIRSTW]'
6513 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6514 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'"
6517 irix* | nonstopux*)
6518 symcode='[BCDEGRST]'
6520 osf*)
6521 symcode='[BCDEGQRST]'
6523 solaris*)
6524 symcode='[BDRT]'
6526 sco3.2v5*)
6527 symcode='[DT]'
6529 sysv4.2uw2*)
6530 symcode='[DT]'
6532 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6533 symcode='[ABDT]'
6535 sysv4)
6536 symcode='[DFNSTU]'
6538 esac
6540 # Handle CRLF in mingw tool chain
6541 opt_cr=
6542 case $build_os in
6543 mingw*)
6544 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6546 esac
6548 # If we're using GNU nm, then use its standard symbol codes.
6549 case `$NM -V 2>&1` in
6550 *GNU* | *'with BFD'*)
6551 symcode='[ABCDGIRSTW]' ;;
6552 esac
6554 # Try without a prefix undercore, then with it.
6555 for ac_symprfx in "" "_"; do
6557 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6558 symxfrm="\\1 $ac_symprfx\\2 \\2"
6560 # Write the raw and C identifiers.
6561 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6563 # Check to see that the pipe works correctly.
6564 pipe_works=no
6566 rm -f conftest*
6567 cat > conftest.$ac_ext <<EOF
6568 #ifdef __cplusplus
6569 extern "C" {
6570 #endif
6571 char nm_test_var;
6572 void nm_test_func(){}
6573 #ifdef __cplusplus
6575 #endif
6576 int main(){nm_test_var='a';nm_test_func();return(0);}
6579 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6580 (eval $ac_compile) 2>&5
6581 ac_status=$?
6582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6583 (exit $ac_status); }; then
6584 # Now try to grab the symbols.
6585 nlist=conftest.nm
6586 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6587 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6588 ac_status=$?
6589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6590 (exit $ac_status); } && test -s "$nlist"; then
6591 # Try sorting and uniquifying the output.
6592 if sort "$nlist" | uniq > "$nlist"T; then
6593 mv -f "$nlist"T "$nlist"
6594 else
6595 rm -f "$nlist"T
6598 # Make sure that we snagged all the symbols we need.
6599 if grep ' nm_test_var$' "$nlist" >/dev/null; then
6600 if grep ' nm_test_func$' "$nlist" >/dev/null; then
6601 cat <<EOF > conftest.$ac_ext
6602 #ifdef __cplusplus
6603 extern "C" {
6604 #endif
6607 # Now generate the symbol file.
6608 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6610 cat <<EOF >> conftest.$ac_ext
6611 #if defined (__STDC__) && __STDC__
6612 # define lt_ptr_t void *
6613 #else
6614 # define lt_ptr_t char *
6615 # define const
6616 #endif
6618 /* The mapping between symbol names and symbols. */
6619 const struct {
6620 const char *name;
6621 lt_ptr_t address;
6623 lt_preloaded_symbols[] =
6626 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6627 cat <<\EOF >> conftest.$ac_ext
6628 {0, (lt_ptr_t) 0}
6631 #ifdef __cplusplus
6633 #endif
6635 # Now try linking the two files.
6636 mv conftest.$ac_objext conftstm.$ac_objext
6637 lt_save_LIBS="$LIBS"
6638 lt_save_CFLAGS="$CFLAGS"
6639 LIBS="conftstm.$ac_objext"
6640 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6641 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6642 (eval $ac_link) 2>&5
6643 ac_status=$?
6644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6645 (exit $ac_status); } && test -s conftest${ac_exeext}; then
6646 pipe_works=yes
6648 LIBS="$lt_save_LIBS"
6649 CFLAGS="$lt_save_CFLAGS"
6650 else
6651 echo "cannot find nm_test_func in $nlist" >&5
6653 else
6654 echo "cannot find nm_test_var in $nlist" >&5
6656 else
6657 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6659 else
6660 echo "$progname: failed program was:" >&5
6661 cat conftest.$ac_ext >&5
6663 rm -f conftest* conftst*
6665 # Do not use the global_symbol_pipe unless it works.
6666 if test "$pipe_works" = yes; then
6667 break
6668 else
6669 lt_cv_sys_global_symbol_pipe=
6671 done
6675 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6676 lt_cv_sys_global_symbol_to_cdecl=
6678 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6679 { echo "$as_me:$LINENO: result: failed" >&5
6680 echo "${ECHO_T}failed" >&6; }
6681 else
6682 { echo "$as_me:$LINENO: result: ok" >&5
6683 echo "${ECHO_T}ok" >&6; }
6686 { echo "$as_me:$LINENO: checking for objdir" >&5
6687 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
6688 if test "${lt_cv_objdir+set}" = set; then
6689 echo $ECHO_N "(cached) $ECHO_C" >&6
6690 else
6691 rm -f .libs 2>/dev/null
6692 mkdir .libs 2>/dev/null
6693 if test -d .libs; then
6694 lt_cv_objdir=.libs
6695 else
6696 # MS-DOS does not allow filenames that begin with a dot.
6697 lt_cv_objdir=_libs
6699 rmdir .libs 2>/dev/null
6701 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6702 echo "${ECHO_T}$lt_cv_objdir" >&6; }
6703 objdir=$lt_cv_objdir
6709 case $host_os in
6710 aix3*)
6711 # AIX sometimes has problems with the GCC collect2 program. For some
6712 # reason, if we set the COLLECT_NAMES environment variable, the problems
6713 # vanish in a puff of smoke.
6714 if test "X${COLLECT_NAMES+set}" != Xset; then
6715 COLLECT_NAMES=
6716 export COLLECT_NAMES
6719 esac
6721 # Sed substitution that helps us do robust quoting. It backslashifies
6722 # metacharacters that are still active within double-quoted strings.
6723 Xsed='sed -e 1s/^X//'
6724 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6726 # Same as above, but do not quote variable references.
6727 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6729 # Sed substitution to delay expansion of an escaped shell variable in a
6730 # double_quote_subst'ed string.
6731 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6733 # Sed substitution to avoid accidental globbing in evaled expressions
6734 no_glob_subst='s/\*/\\\*/g'
6736 # Constants:
6737 rm="rm -f"
6739 # Global variables:
6740 default_ofile=libtool
6741 can_build_shared=yes
6743 # All known linkers require a `.a' archive for static linking (except MSVC,
6744 # which needs '.lib').
6745 libext=a
6746 ltmain="$ac_aux_dir/ltmain.sh"
6747 ofile="$default_ofile"
6748 with_gnu_ld="$lt_cv_prog_gnu_ld"
6750 if test -n "$ac_tool_prefix"; then
6751 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6752 set dummy ${ac_tool_prefix}ar; ac_word=$2
6753 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6754 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6755 if test "${ac_cv_prog_AR+set}" = set; then
6756 echo $ECHO_N "(cached) $ECHO_C" >&6
6757 else
6758 if test -n "$AR"; then
6759 ac_cv_prog_AR="$AR" # Let the user override the test.
6760 else
6761 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6762 for as_dir in $PATH
6764 IFS=$as_save_IFS
6765 test -z "$as_dir" && as_dir=.
6766 for ac_exec_ext in '' $ac_executable_extensions; do
6767 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6768 ac_cv_prog_AR="${ac_tool_prefix}ar"
6769 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6770 break 2
6772 done
6773 done
6774 IFS=$as_save_IFS
6778 AR=$ac_cv_prog_AR
6779 if test -n "$AR"; then
6780 { echo "$as_me:$LINENO: result: $AR" >&5
6781 echo "${ECHO_T}$AR" >&6; }
6782 else
6783 { echo "$as_me:$LINENO: result: no" >&5
6784 echo "${ECHO_T}no" >&6; }
6789 if test -z "$ac_cv_prog_AR"; then
6790 ac_ct_AR=$AR
6791 # Extract the first word of "ar", so it can be a program name with args.
6792 set dummy ar; ac_word=$2
6793 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6794 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6795 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6796 echo $ECHO_N "(cached) $ECHO_C" >&6
6797 else
6798 if test -n "$ac_ct_AR"; then
6799 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6800 else
6801 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6802 for as_dir in $PATH
6804 IFS=$as_save_IFS
6805 test -z "$as_dir" && as_dir=.
6806 for ac_exec_ext in '' $ac_executable_extensions; do
6807 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6808 ac_cv_prog_ac_ct_AR="ar"
6809 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6810 break 2
6812 done
6813 done
6814 IFS=$as_save_IFS
6818 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6819 if test -n "$ac_ct_AR"; then
6820 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6821 echo "${ECHO_T}$ac_ct_AR" >&6; }
6822 else
6823 { echo "$as_me:$LINENO: result: no" >&5
6824 echo "${ECHO_T}no" >&6; }
6827 if test "x$ac_ct_AR" = x; then
6828 AR="false"
6829 else
6830 case $cross_compiling:$ac_tool_warned in
6831 yes:)
6832 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6833 whose name does not start with the host triplet. If you think this
6834 configuration is useful to you, please write to autoconf@gnu.org." >&5
6835 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6836 whose name does not start with the host triplet. If you think this
6837 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6838 ac_tool_warned=yes ;;
6839 esac
6840 AR=$ac_ct_AR
6842 else
6843 AR="$ac_cv_prog_AR"
6846 if test -n "$ac_tool_prefix"; then
6847 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6848 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6849 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6850 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6851 if test "${ac_cv_prog_RANLIB+set}" = set; then
6852 echo $ECHO_N "(cached) $ECHO_C" >&6
6853 else
6854 if test -n "$RANLIB"; then
6855 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6856 else
6857 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6858 for as_dir in $PATH
6860 IFS=$as_save_IFS
6861 test -z "$as_dir" && as_dir=.
6862 for ac_exec_ext in '' $ac_executable_extensions; do
6863 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6864 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6865 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6866 break 2
6868 done
6869 done
6870 IFS=$as_save_IFS
6874 RANLIB=$ac_cv_prog_RANLIB
6875 if test -n "$RANLIB"; then
6876 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6877 echo "${ECHO_T}$RANLIB" >&6; }
6878 else
6879 { echo "$as_me:$LINENO: result: no" >&5
6880 echo "${ECHO_T}no" >&6; }
6885 if test -z "$ac_cv_prog_RANLIB"; then
6886 ac_ct_RANLIB=$RANLIB
6887 # Extract the first word of "ranlib", so it can be a program name with args.
6888 set dummy ranlib; ac_word=$2
6889 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6890 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6891 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6892 echo $ECHO_N "(cached) $ECHO_C" >&6
6893 else
6894 if test -n "$ac_ct_RANLIB"; then
6895 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6896 else
6897 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6898 for as_dir in $PATH
6900 IFS=$as_save_IFS
6901 test -z "$as_dir" && as_dir=.
6902 for ac_exec_ext in '' $ac_executable_extensions; do
6903 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6904 ac_cv_prog_ac_ct_RANLIB="ranlib"
6905 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6906 break 2
6908 done
6909 done
6910 IFS=$as_save_IFS
6914 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6915 if test -n "$ac_ct_RANLIB"; then
6916 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6917 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6918 else
6919 { echo "$as_me:$LINENO: result: no" >&5
6920 echo "${ECHO_T}no" >&6; }
6923 if test "x$ac_ct_RANLIB" = x; then
6924 RANLIB=":"
6925 else
6926 case $cross_compiling:$ac_tool_warned in
6927 yes:)
6928 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6929 whose name does not start with the host triplet. If you think this
6930 configuration is useful to you, please write to autoconf@gnu.org." >&5
6931 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6932 whose name does not start with the host triplet. If you think this
6933 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6934 ac_tool_warned=yes ;;
6935 esac
6936 RANLIB=$ac_ct_RANLIB
6938 else
6939 RANLIB="$ac_cv_prog_RANLIB"
6942 if test -n "$ac_tool_prefix"; then
6943 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6944 set dummy ${ac_tool_prefix}strip; ac_word=$2
6945 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6946 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6947 if test "${ac_cv_prog_STRIP+set}" = set; then
6948 echo $ECHO_N "(cached) $ECHO_C" >&6
6949 else
6950 if test -n "$STRIP"; then
6951 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6952 else
6953 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6954 for as_dir in $PATH
6956 IFS=$as_save_IFS
6957 test -z "$as_dir" && as_dir=.
6958 for ac_exec_ext in '' $ac_executable_extensions; do
6959 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6960 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6961 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6962 break 2
6964 done
6965 done
6966 IFS=$as_save_IFS
6970 STRIP=$ac_cv_prog_STRIP
6971 if test -n "$STRIP"; then
6972 { echo "$as_me:$LINENO: result: $STRIP" >&5
6973 echo "${ECHO_T}$STRIP" >&6; }
6974 else
6975 { echo "$as_me:$LINENO: result: no" >&5
6976 echo "${ECHO_T}no" >&6; }
6981 if test -z "$ac_cv_prog_STRIP"; then
6982 ac_ct_STRIP=$STRIP
6983 # Extract the first word of "strip", so it can be a program name with args.
6984 set dummy strip; ac_word=$2
6985 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6986 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6987 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6988 echo $ECHO_N "(cached) $ECHO_C" >&6
6989 else
6990 if test -n "$ac_ct_STRIP"; then
6991 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6992 else
6993 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6994 for as_dir in $PATH
6996 IFS=$as_save_IFS
6997 test -z "$as_dir" && as_dir=.
6998 for ac_exec_ext in '' $ac_executable_extensions; do
6999 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7000 ac_cv_prog_ac_ct_STRIP="strip"
7001 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7002 break 2
7004 done
7005 done
7006 IFS=$as_save_IFS
7010 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7011 if test -n "$ac_ct_STRIP"; then
7012 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
7013 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
7014 else
7015 { echo "$as_me:$LINENO: result: no" >&5
7016 echo "${ECHO_T}no" >&6; }
7019 if test "x$ac_ct_STRIP" = x; then
7020 STRIP=":"
7021 else
7022 case $cross_compiling:$ac_tool_warned in
7023 yes:)
7024 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7025 whose name does not start with the host triplet. If you think this
7026 configuration is useful to you, please write to autoconf@gnu.org." >&5
7027 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7028 whose name does not start with the host triplet. If you think this
7029 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7030 ac_tool_warned=yes ;;
7031 esac
7032 STRIP=$ac_ct_STRIP
7034 else
7035 STRIP="$ac_cv_prog_STRIP"
7039 old_CC="$CC"
7040 old_CFLAGS="$CFLAGS"
7042 # Set sane defaults for various variables
7043 test -z "$AR" && AR=ar
7044 test -z "$AR_FLAGS" && AR_FLAGS=cru
7045 test -z "$AS" && AS=as
7046 test -z "$CC" && CC=cc
7047 test -z "$LTCC" && LTCC=$CC
7048 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7049 test -z "$DLLTOOL" && DLLTOOL=dlltool
7050 test -z "$LD" && LD=ld
7051 test -z "$LN_S" && LN_S="ln -s"
7052 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7053 test -z "$NM" && NM=nm
7054 test -z "$SED" && SED=sed
7055 test -z "$OBJDUMP" && OBJDUMP=objdump
7056 test -z "$RANLIB" && RANLIB=:
7057 test -z "$STRIP" && STRIP=:
7058 test -z "$ac_objext" && ac_objext=o
7060 # Determine commands to create old-style static archives.
7061 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
7062 old_postinstall_cmds='chmod 644 $oldlib'
7063 old_postuninstall_cmds=
7065 if test -n "$RANLIB"; then
7066 case $host_os in
7067 openbsd*)
7068 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7071 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7073 esac
7074 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7077 for cc_temp in $compiler""; do
7078 case $cc_temp in
7079 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7080 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7081 \-*) ;;
7082 *) break;;
7083 esac
7084 done
7085 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7088 # Only perform the check for file, if the check method requires it
7089 case $deplibs_check_method in
7090 file_magic*)
7091 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7092 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7093 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
7094 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7095 echo $ECHO_N "(cached) $ECHO_C" >&6
7096 else
7097 case $MAGIC_CMD in
7098 [\\/*] | ?:[\\/]*)
7099 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7102 lt_save_MAGIC_CMD="$MAGIC_CMD"
7103 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7104 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7105 for ac_dir in $ac_dummy; do
7106 IFS="$lt_save_ifs"
7107 test -z "$ac_dir" && ac_dir=.
7108 if test -f $ac_dir/${ac_tool_prefix}file; then
7109 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7110 if test -n "$file_magic_test_file"; then
7111 case $deplibs_check_method in
7112 "file_magic "*)
7113 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7114 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7115 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7116 $EGREP "$file_magic_regex" > /dev/null; then
7118 else
7119 cat <<EOF 1>&2
7121 *** Warning: the command libtool uses to detect shared libraries,
7122 *** $file_magic_cmd, produces output that libtool cannot recognize.
7123 *** The result is that libtool may fail to recognize shared libraries
7124 *** as such. This will affect the creation of libtool libraries that
7125 *** depend on shared libraries, but programs linked with such libtool
7126 *** libraries will work regardless of this problem. Nevertheless, you
7127 *** may want to report the problem to your system manager and/or to
7128 *** bug-libtool@gnu.org
7131 fi ;;
7132 esac
7134 break
7136 done
7137 IFS="$lt_save_ifs"
7138 MAGIC_CMD="$lt_save_MAGIC_CMD"
7140 esac
7143 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7144 if test -n "$MAGIC_CMD"; then
7145 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7146 echo "${ECHO_T}$MAGIC_CMD" >&6; }
7147 else
7148 { echo "$as_me:$LINENO: result: no" >&5
7149 echo "${ECHO_T}no" >&6; }
7152 if test -z "$lt_cv_path_MAGIC_CMD"; then
7153 if test -n "$ac_tool_prefix"; then
7154 { echo "$as_me:$LINENO: checking for file" >&5
7155 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
7156 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7157 echo $ECHO_N "(cached) $ECHO_C" >&6
7158 else
7159 case $MAGIC_CMD in
7160 [\\/*] | ?:[\\/]*)
7161 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7164 lt_save_MAGIC_CMD="$MAGIC_CMD"
7165 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7166 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7167 for ac_dir in $ac_dummy; do
7168 IFS="$lt_save_ifs"
7169 test -z "$ac_dir" && ac_dir=.
7170 if test -f $ac_dir/file; then
7171 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7172 if test -n "$file_magic_test_file"; then
7173 case $deplibs_check_method in
7174 "file_magic "*)
7175 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7176 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7177 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7178 $EGREP "$file_magic_regex" > /dev/null; then
7180 else
7181 cat <<EOF 1>&2
7183 *** Warning: the command libtool uses to detect shared libraries,
7184 *** $file_magic_cmd, produces output that libtool cannot recognize.
7185 *** The result is that libtool may fail to recognize shared libraries
7186 *** as such. This will affect the creation of libtool libraries that
7187 *** depend on shared libraries, but programs linked with such libtool
7188 *** libraries will work regardless of this problem. Nevertheless, you
7189 *** may want to report the problem to your system manager and/or to
7190 *** bug-libtool@gnu.org
7193 fi ;;
7194 esac
7196 break
7198 done
7199 IFS="$lt_save_ifs"
7200 MAGIC_CMD="$lt_save_MAGIC_CMD"
7202 esac
7205 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7206 if test -n "$MAGIC_CMD"; then
7207 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7208 echo "${ECHO_T}$MAGIC_CMD" >&6; }
7209 else
7210 { echo "$as_me:$LINENO: result: no" >&5
7211 echo "${ECHO_T}no" >&6; }
7214 else
7215 MAGIC_CMD=:
7221 esac
7223 enable_dlopen=no
7224 enable_win32_dll=no
7226 # Check whether --enable-libtool-lock was given.
7227 if test "${enable_libtool_lock+set}" = set; then
7228 enableval=$enable_libtool_lock;
7231 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7234 # Check whether --with-pic was given.
7235 if test "${with_pic+set}" = set; then
7236 withval=$with_pic; pic_mode="$withval"
7237 else
7238 pic_mode=default
7241 test -z "$pic_mode" && pic_mode=default
7243 # Use C for the default configuration in the libtool script
7244 tagname=
7245 lt_save_CC="$CC"
7246 ac_ext=c
7247 ac_cpp='$CPP $CPPFLAGS'
7248 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7249 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7250 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7253 # Source file extension for C test sources.
7254 ac_ext=c
7256 # Object file extension for compiled C test sources.
7257 objext=o
7258 objext=$objext
7260 # Code to be used in simple compile tests
7261 lt_simple_compile_test_code="int some_variable = 0;\n"
7263 # Code to be used in simple link tests
7264 lt_simple_link_test_code='int main(){return(0);}\n'
7267 # If no C compiler was specified, use CC.
7268 LTCC=${LTCC-"$CC"}
7270 # If no C compiler flags were specified, use CFLAGS.
7271 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7273 # Allow CC to be a program name with arguments.
7274 compiler=$CC
7277 # save warnings/boilerplate of simple test code
7278 ac_outfile=conftest.$ac_objext
7279 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
7280 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7281 _lt_compiler_boilerplate=`cat conftest.err`
7282 $rm conftest*
7284 ac_outfile=conftest.$ac_objext
7285 printf "$lt_simple_link_test_code" >conftest.$ac_ext
7286 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7287 _lt_linker_boilerplate=`cat conftest.err`
7288 $rm conftest*
7292 lt_prog_compiler_no_builtin_flag=
7294 if test "$GCC" = yes; then
7295 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7298 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7299 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
7300 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7301 echo $ECHO_N "(cached) $ECHO_C" >&6
7302 else
7303 lt_cv_prog_compiler_rtti_exceptions=no
7304 ac_outfile=conftest.$ac_objext
7305 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7306 lt_compiler_flag="-fno-rtti -fno-exceptions"
7307 # Insert the option either (1) after the last *FLAGS variable, or
7308 # (2) before a word containing "conftest.", or (3) at the end.
7309 # Note that $ac_compile itself does not contain backslashes and begins
7310 # with a dollar sign (not a hyphen), so the echo should work correctly.
7311 # The option is referenced via a variable to avoid confusing sed.
7312 lt_compile=`echo "$ac_compile" | $SED \
7313 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7314 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7315 -e 's:$: $lt_compiler_flag:'`
7316 (eval echo "\"\$as_me:7316: $lt_compile\"" >&5)
7317 (eval "$lt_compile" 2>conftest.err)
7318 ac_status=$?
7319 cat conftest.err >&5
7320 echo "$as_me:7320: \$? = $ac_status" >&5
7321 if (exit $ac_status) && test -s "$ac_outfile"; then
7322 # The compiler can only warn and ignore the option if not recognized
7323 # So say no if there are warnings other than the usual output.
7324 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7325 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7326 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7327 lt_cv_prog_compiler_rtti_exceptions=yes
7330 $rm conftest*
7333 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7334 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7336 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7337 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7338 else
7344 lt_prog_compiler_wl=
7345 lt_prog_compiler_pic=
7346 lt_prog_compiler_static=
7348 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7349 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
7351 if test "$GCC" = yes; then
7352 lt_prog_compiler_wl='-Wl,'
7353 lt_prog_compiler_static='-static'
7355 case $host_os in
7356 aix*)
7357 # All AIX code is PIC.
7358 if test "$host_cpu" = ia64; then
7359 # AIX 5 now supports IA64 processor
7360 lt_prog_compiler_static='-Bstatic'
7364 amigaos*)
7365 # FIXME: we need at least 68020 code to build shared libraries, but
7366 # adding the `-m68020' flag to GCC prevents building anything better,
7367 # like `-m68040'.
7368 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7371 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7372 # PIC is the default for these OSes.
7375 mingw* | pw32* | os2*)
7376 # This hack is so that the source file can tell whether it is being
7377 # built for inclusion in a dll (and should export symbols for example).
7378 lt_prog_compiler_pic='-DDLL_EXPORT'
7381 darwin* | rhapsody*)
7382 # PIC is the default on this platform
7383 # Common symbols not allowed in MH_DYLIB files
7384 lt_prog_compiler_pic='-fno-common'
7387 interix3*)
7388 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7389 # Instead, we relocate shared libraries at runtime.
7392 msdosdjgpp*)
7393 # Just because we use GCC doesn't mean we suddenly get shared libraries
7394 # on systems that don't support them.
7395 lt_prog_compiler_can_build_shared=no
7396 enable_shared=no
7399 sysv4*MP*)
7400 if test -d /usr/nec; then
7401 lt_prog_compiler_pic=-Kconform_pic
7405 hpux*)
7406 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7407 # not for PA HP-UX.
7408 case $host_cpu in
7409 hppa*64*|ia64*)
7410 # +Z the default
7413 lt_prog_compiler_pic='-fPIC'
7415 esac
7419 lt_prog_compiler_pic='-fPIC'
7421 esac
7422 else
7423 # PORTME Check for flag to pass linker flags through the system compiler.
7424 case $host_os in
7425 aix*)
7426 lt_prog_compiler_wl='-Wl,'
7427 if test "$host_cpu" = ia64; then
7428 # AIX 5 now supports IA64 processor
7429 lt_prog_compiler_static='-Bstatic'
7430 else
7431 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7434 darwin*)
7435 # PIC is the default on this platform
7436 # Common symbols not allowed in MH_DYLIB files
7437 case $cc_basename in
7438 xlc*)
7439 lt_prog_compiler_pic='-qnocommon'
7440 lt_prog_compiler_wl='-Wl,'
7442 esac
7445 mingw* | pw32* | os2*)
7446 # This hack is so that the source file can tell whether it is being
7447 # built for inclusion in a dll (and should export symbols for example).
7448 lt_prog_compiler_pic='-DDLL_EXPORT'
7451 hpux9* | hpux10* | hpux11*)
7452 lt_prog_compiler_wl='-Wl,'
7453 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7454 # not for PA HP-UX.
7455 case $host_cpu in
7456 hppa*64*|ia64*)
7457 # +Z the default
7460 lt_prog_compiler_pic='+Z'
7462 esac
7463 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7464 lt_prog_compiler_static='${wl}-a ${wl}archive'
7467 irix5* | irix6* | nonstopux*)
7468 lt_prog_compiler_wl='-Wl,'
7469 # PIC (with -KPIC) is the default.
7470 lt_prog_compiler_static='-non_shared'
7473 newsos6)
7474 lt_prog_compiler_pic='-KPIC'
7475 lt_prog_compiler_static='-Bstatic'
7478 linux*)
7479 case $cc_basename in
7480 icc* | ecc*)
7481 lt_prog_compiler_wl='-Wl,'
7482 lt_prog_compiler_pic='-KPIC'
7483 lt_prog_compiler_static='-static'
7485 pgcc* | pgf77* | pgf90* | pgf95*)
7486 # Portland Group compilers (*not* the Pentium gcc compiler,
7487 # which looks to be a dead project)
7488 lt_prog_compiler_wl='-Wl,'
7489 lt_prog_compiler_pic='-fpic'
7490 lt_prog_compiler_static='-Bstatic'
7492 ccc*)
7493 lt_prog_compiler_wl='-Wl,'
7494 # All Alpha code is PIC.
7495 lt_prog_compiler_static='-non_shared'
7497 esac
7500 osf3* | osf4* | osf5*)
7501 lt_prog_compiler_wl='-Wl,'
7502 # All OSF/1 code is PIC.
7503 lt_prog_compiler_static='-non_shared'
7506 solaris*)
7507 lt_prog_compiler_pic='-KPIC'
7508 lt_prog_compiler_static='-Bstatic'
7509 case $cc_basename in
7510 f77* | f90* | f95*)
7511 lt_prog_compiler_wl='-Qoption ld ';;
7513 lt_prog_compiler_wl='-Wl,';;
7514 esac
7517 sunos4*)
7518 lt_prog_compiler_wl='-Qoption ld '
7519 lt_prog_compiler_pic='-PIC'
7520 lt_prog_compiler_static='-Bstatic'
7523 sysv4 | sysv4.2uw2* | sysv4.3*)
7524 lt_prog_compiler_wl='-Wl,'
7525 lt_prog_compiler_pic='-KPIC'
7526 lt_prog_compiler_static='-Bstatic'
7529 sysv4*MP*)
7530 if test -d /usr/nec ;then
7531 lt_prog_compiler_pic='-Kconform_pic'
7532 lt_prog_compiler_static='-Bstatic'
7536 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7537 lt_prog_compiler_wl='-Wl,'
7538 lt_prog_compiler_pic='-KPIC'
7539 lt_prog_compiler_static='-Bstatic'
7542 unicos*)
7543 lt_prog_compiler_wl='-Wl,'
7544 lt_prog_compiler_can_build_shared=no
7547 uts4*)
7548 lt_prog_compiler_pic='-pic'
7549 lt_prog_compiler_static='-Bstatic'
7553 lt_prog_compiler_can_build_shared=no
7555 esac
7558 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7559 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
7562 # Check to make sure the PIC flag actually works.
7564 if test -n "$lt_prog_compiler_pic"; then
7566 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7567 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
7568 if test "${lt_prog_compiler_pic_works+set}" = set; then
7569 echo $ECHO_N "(cached) $ECHO_C" >&6
7570 else
7571 lt_prog_compiler_pic_works=no
7572 ac_outfile=conftest.$ac_objext
7573 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7574 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7575 # Insert the option either (1) after the last *FLAGS variable, or
7576 # (2) before a word containing "conftest.", or (3) at the end.
7577 # Note that $ac_compile itself does not contain backslashes and begins
7578 # with a dollar sign (not a hyphen), so the echo should work correctly.
7579 # The option is referenced via a variable to avoid confusing sed.
7580 lt_compile=`echo "$ac_compile" | $SED \
7581 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7582 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7583 -e 's:$: $lt_compiler_flag:'`
7584 (eval echo "\"\$as_me:7584: $lt_compile\"" >&5)
7585 (eval "$lt_compile" 2>conftest.err)
7586 ac_status=$?
7587 cat conftest.err >&5
7588 echo "$as_me:7588: \$? = $ac_status" >&5
7589 if (exit $ac_status) && test -s "$ac_outfile"; then
7590 # The compiler can only warn and ignore the option if not recognized
7591 # So say no if there are warnings other than the usual output.
7592 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7593 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7594 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7595 lt_prog_compiler_pic_works=yes
7598 $rm conftest*
7601 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7602 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
7604 if test x"$lt_prog_compiler_pic_works" = xyes; then
7605 case $lt_prog_compiler_pic in
7606 "" | " "*) ;;
7607 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7608 esac
7609 else
7610 lt_prog_compiler_pic=
7611 lt_prog_compiler_can_build_shared=no
7615 case $host_os in
7616 # For platforms which do not support PIC, -DPIC is meaningless:
7617 *djgpp*)
7618 lt_prog_compiler_pic=
7621 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7623 esac
7626 # Check to make sure the static flag actually works.
7628 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7629 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7630 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
7631 if test "${lt_prog_compiler_static_works+set}" = set; then
7632 echo $ECHO_N "(cached) $ECHO_C" >&6
7633 else
7634 lt_prog_compiler_static_works=no
7635 save_LDFLAGS="$LDFLAGS"
7636 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7637 printf "$lt_simple_link_test_code" > conftest.$ac_ext
7638 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7639 # The linker can only warn and ignore the option if not recognized
7640 # So say no if there are warnings
7641 if test -s conftest.err; then
7642 # Append any errors to the config.log.
7643 cat conftest.err 1>&5
7644 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7645 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7646 if diff conftest.exp conftest.er2 >/dev/null; then
7647 lt_prog_compiler_static_works=yes
7649 else
7650 lt_prog_compiler_static_works=yes
7653 $rm conftest*
7654 LDFLAGS="$save_LDFLAGS"
7657 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7658 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
7660 if test x"$lt_prog_compiler_static_works" = xyes; then
7662 else
7663 lt_prog_compiler_static=
7667 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7668 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
7669 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7670 echo $ECHO_N "(cached) $ECHO_C" >&6
7671 else
7672 lt_cv_prog_compiler_c_o=no
7673 $rm -r conftest 2>/dev/null
7674 mkdir conftest
7675 cd conftest
7676 mkdir out
7677 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7679 lt_compiler_flag="-o out/conftest2.$ac_objext"
7680 # Insert the option either (1) after the last *FLAGS variable, or
7681 # (2) before a word containing "conftest.", or (3) at the end.
7682 # Note that $ac_compile itself does not contain backslashes and begins
7683 # with a dollar sign (not a hyphen), so the echo should work correctly.
7684 lt_compile=`echo "$ac_compile" | $SED \
7685 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7686 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7687 -e 's:$: $lt_compiler_flag:'`
7688 (eval echo "\"\$as_me:7688: $lt_compile\"" >&5)
7689 (eval "$lt_compile" 2>out/conftest.err)
7690 ac_status=$?
7691 cat out/conftest.err >&5
7692 echo "$as_me:7692: \$? = $ac_status" >&5
7693 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7694 then
7695 # The compiler can only warn and ignore the option if not recognized
7696 # So say no if there are warnings
7697 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7698 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7699 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7700 lt_cv_prog_compiler_c_o=yes
7703 chmod u+w . 2>&5
7704 $rm conftest*
7705 # SGI C++ compiler will create directory out/ii_files/ for
7706 # template instantiation
7707 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7708 $rm out/* && rmdir out
7709 cd ..
7710 rmdir conftest
7711 $rm conftest*
7714 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7715 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
7718 hard_links="nottested"
7719 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7720 # do not overwrite the value of need_locks provided by the user
7721 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7722 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
7723 hard_links=yes
7724 $rm conftest*
7725 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7726 touch conftest.a
7727 ln conftest.a conftest.b 2>&5 || hard_links=no
7728 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7729 { echo "$as_me:$LINENO: result: $hard_links" >&5
7730 echo "${ECHO_T}$hard_links" >&6; }
7731 if test "$hard_links" = no; then
7732 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7733 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7734 need_locks=warn
7736 else
7737 need_locks=no
7740 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7741 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
7743 runpath_var=
7744 allow_undefined_flag=
7745 enable_shared_with_static_runtimes=no
7746 archive_cmds=
7747 archive_expsym_cmds=
7748 old_archive_From_new_cmds=
7749 old_archive_from_expsyms_cmds=
7750 export_dynamic_flag_spec=
7751 whole_archive_flag_spec=
7752 thread_safe_flag_spec=
7753 hardcode_libdir_flag_spec=
7754 hardcode_libdir_flag_spec_ld=
7755 hardcode_libdir_separator=
7756 hardcode_direct=no
7757 hardcode_minus_L=no
7758 hardcode_shlibpath_var=unsupported
7759 link_all_deplibs=unknown
7760 hardcode_automatic=no
7761 module_cmds=
7762 module_expsym_cmds=
7763 always_export_symbols=no
7764 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7765 # include_expsyms should be a list of space-separated symbols to be *always*
7766 # included in the symbol list
7767 include_expsyms=
7768 # exclude_expsyms can be an extended regexp of symbols to exclude
7769 # it will be wrapped by ` (' and `)$', so one must not match beginning or
7770 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7771 # as well as any symbol that contains `d'.
7772 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
7773 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7774 # platforms (ab)use it in PIC code, but their linkers get confused if
7775 # the symbol is explicitly referenced. Since portable code cannot
7776 # rely on this symbol name, it's probably fine to never include it in
7777 # preloaded symbol tables.
7778 extract_expsyms_cmds=
7779 # Just being paranoid about ensuring that cc_basename is set.
7780 for cc_temp in $compiler""; do
7781 case $cc_temp in
7782 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7783 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7784 \-*) ;;
7785 *) break;;
7786 esac
7787 done
7788 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7790 case $host_os in
7791 cygwin* | mingw* | pw32*)
7792 # FIXME: the MSVC++ port hasn't been tested in a loooong time
7793 # When not using gcc, we currently assume that we are using
7794 # Microsoft Visual C++.
7795 if test "$GCC" != yes; then
7796 with_gnu_ld=no
7799 interix*)
7800 # we just hope/assume this is gcc and not c89 (= MSVC++)
7801 with_gnu_ld=yes
7803 openbsd*)
7804 with_gnu_ld=no
7806 esac
7808 ld_shlibs=yes
7809 if test "$with_gnu_ld" = yes; then
7810 # If archive_cmds runs LD, not CC, wlarc should be empty
7811 wlarc='${wl}'
7813 # Set some defaults for GNU ld with shared library support. These
7814 # are reset later if shared libraries are not supported. Putting them
7815 # here allows them to be overridden if necessary.
7816 runpath_var=LD_RUN_PATH
7817 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
7818 export_dynamic_flag_spec='${wl}--export-dynamic'
7819 # ancient GNU ld didn't support --whole-archive et. al.
7820 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
7821 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7822 else
7823 whole_archive_flag_spec=
7825 supports_anon_versioning=no
7826 case `$LD -v 2>/dev/null` in
7827 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7828 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7829 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7830 *\ 2.11.*) ;; # other 2.11 versions
7831 *) supports_anon_versioning=yes ;;
7832 esac
7834 # See if GNU ld supports shared libraries.
7835 case $host_os in
7836 aix3* | aix4* | aix5*)
7837 # On AIX/PPC, the GNU linker is very broken
7838 if test "$host_cpu" != ia64; then
7839 ld_shlibs=no
7840 cat <<EOF 1>&2
7842 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
7843 *** to be unable to reliably create shared libraries on AIX.
7844 *** Therefore, libtool is disabling shared libraries support. If you
7845 *** really care for shared libraries, you may want to modify your PATH
7846 *** so that a non-GNU linker is found, and then restart.
7852 amigaos*)
7853 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)'
7854 hardcode_libdir_flag_spec='-L$libdir'
7855 hardcode_minus_L=yes
7857 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7858 # that the semantics of dynamic libraries on AmigaOS, at least up
7859 # to version 4, is to share data among multiple programs linked
7860 # with the same dynamic library. Since this doesn't match the
7861 # behavior of shared libraries on other platforms, we can't use
7862 # them.
7863 ld_shlibs=no
7866 beos*)
7867 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7868 allow_undefined_flag=unsupported
7869 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7870 # support --undefined. This deserves some investigation. FIXME
7871 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7872 else
7873 ld_shlibs=no
7877 cygwin* | mingw* | pw32*)
7878 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7879 # as there is no search path for DLLs.
7880 hardcode_libdir_flag_spec='-L$libdir'
7881 allow_undefined_flag=unsupported
7882 always_export_symbols=no
7883 enable_shared_with_static_runtimes=yes
7884 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
7886 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
7887 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7888 # If the export-symbols file already is a .def file (1st line
7889 # is EXPORTS), use it as is; otherwise, prepend...
7890 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7891 cp $export_symbols $output_objdir/$soname.def;
7892 else
7893 echo EXPORTS > $output_objdir/$soname.def;
7894 cat $export_symbols >> $output_objdir/$soname.def;
7896 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7897 else
7898 ld_shlibs=no
7902 interix3*)
7903 hardcode_direct=no
7904 hardcode_shlibpath_var=no
7905 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7906 export_dynamic_flag_spec='${wl}-E'
7907 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7908 # Instead, shared libraries are loaded at an image base (0x10000000 by
7909 # default) and relocated if they conflict, which is a slow very memory
7910 # consuming and fragmenting process. To avoid this, we pick a random,
7911 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7912 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
7913 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7914 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'
7917 linux*)
7918 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7919 tmp_addflag=
7920 case $cc_basename,$host_cpu in
7921 pgcc*) # Portland Group C compiler
7922 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'
7923 tmp_addflag=' $pic_flag'
7925 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
7926 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'
7927 tmp_addflag=' $pic_flag -Mnomain' ;;
7928 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
7929 tmp_addflag=' -i_dynamic' ;;
7930 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
7931 tmp_addflag=' -i_dynamic -nofor_main' ;;
7932 ifc* | ifort*) # Intel Fortran compiler
7933 tmp_addflag=' -nofor_main' ;;
7934 esac
7935 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7937 if test $supports_anon_versioning = yes; then
7938 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
7939 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7940 $echo "local: *; };" >> $output_objdir/$libname.ver~
7941 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7943 else
7944 ld_shlibs=no
7948 netbsd*)
7949 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7950 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7951 wlarc=
7952 else
7953 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7954 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7958 solaris*)
7959 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
7960 ld_shlibs=no
7961 cat <<EOF 1>&2
7963 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
7964 *** create shared libraries on Solaris systems. Therefore, libtool
7965 *** is disabling shared libraries support. We urge you to upgrade GNU
7966 *** binutils to release 2.9.1 or newer. Another option is to modify
7967 *** your PATH or compiler configuration so that the native linker is
7968 *** used, and then restart.
7971 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7972 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7973 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7974 else
7975 ld_shlibs=no
7979 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7980 case `$LD -v 2>&1` in
7981 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7982 ld_shlibs=no
7983 cat <<_LT_EOF 1>&2
7985 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7986 *** reliably create shared libraries on SCO systems. Therefore, libtool
7987 *** is disabling shared libraries support. We urge you to upgrade GNU
7988 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
7989 *** your PATH or compiler configuration so that the native linker is
7990 *** used, and then restart.
7992 _LT_EOF
7995 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7996 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
7997 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
7998 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
7999 else
8000 ld_shlibs=no
8003 esac
8006 sunos4*)
8007 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8008 wlarc=
8009 hardcode_direct=yes
8010 hardcode_shlibpath_var=no
8014 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8015 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8016 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8017 else
8018 ld_shlibs=no
8021 esac
8023 if test "$ld_shlibs" = no; then
8024 runpath_var=
8025 hardcode_libdir_flag_spec=
8026 export_dynamic_flag_spec=
8027 whole_archive_flag_spec=
8029 else
8030 # PORTME fill in a description of your system's linker (not GNU ld)
8031 case $host_os in
8032 aix3*)
8033 allow_undefined_flag=unsupported
8034 always_export_symbols=yes
8035 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'
8036 # Note: this linker hardcodes the directories in LIBPATH if there
8037 # are no directories specified by -L.
8038 hardcode_minus_L=yes
8039 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8040 # Neither direct hardcoding nor static linking is supported with a
8041 # broken collect2.
8042 hardcode_direct=unsupported
8046 aix4* | aix5*)
8047 if test "$host_cpu" = ia64; then
8048 # On IA64, the linker does run time linking by default, so we don't
8049 # have to do anything special.
8050 aix_use_runtimelinking=no
8051 exp_sym_flag='-Bexport'
8052 no_entry_flag=""
8053 else
8054 # If we're using GNU nm, then we don't want the "-C" option.
8055 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8056 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8057 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'
8058 else
8059 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'
8061 aix_use_runtimelinking=no
8063 # Test if we are trying to use run time linking or normal
8064 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8065 # need to do runtime linking.
8066 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
8067 for ld_flag in $LDFLAGS; do
8068 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8069 aix_use_runtimelinking=yes
8070 break
8072 done
8074 esac
8076 exp_sym_flag='-bexport'
8077 no_entry_flag='-bnoentry'
8080 # When large executables or shared objects are built, AIX ld can
8081 # have problems creating the table of contents. If linking a library
8082 # or program results in "error TOC overflow" add -mminimal-toc to
8083 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8084 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8086 archive_cmds=''
8087 hardcode_direct=yes
8088 hardcode_libdir_separator=':'
8089 link_all_deplibs=yes
8091 if test "$GCC" = yes; then
8092 case $host_os in aix4.[012]|aix4.[012].*)
8093 # We only want to do this on AIX 4.2 and lower, the check
8094 # below for broken collect2 doesn't work under 4.3+
8095 collect2name=`${CC} -print-prog-name=collect2`
8096 if test -f "$collect2name" && \
8097 strings "$collect2name" | grep resolve_lib_name >/dev/null
8098 then
8099 # We have reworked collect2
8100 hardcode_direct=yes
8101 else
8102 # We have old collect2
8103 hardcode_direct=unsupported
8104 # It fails to find uninstalled libraries when the uninstalled
8105 # path is not listed in the libpath. Setting hardcode_minus_L
8106 # to unsupported forces relinking
8107 hardcode_minus_L=yes
8108 hardcode_libdir_flag_spec='-L$libdir'
8109 hardcode_libdir_separator=
8112 esac
8113 shared_flag='-shared'
8114 if test "$aix_use_runtimelinking" = yes; then
8115 shared_flag="$shared_flag "'${wl}-G'
8117 else
8118 # not using gcc
8119 if test "$host_cpu" = ia64; then
8120 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8121 # chokes on -Wl,-G. The following line is correct:
8122 shared_flag='-G'
8123 else
8124 if test "$aix_use_runtimelinking" = yes; then
8125 shared_flag='${wl}-G'
8126 else
8127 shared_flag='${wl}-bM:SRE'
8132 # It seems that -bexpall does not export symbols beginning with
8133 # underscore (_), so it is better to generate a list of symbols to export.
8134 always_export_symbols=yes
8135 if test "$aix_use_runtimelinking" = yes; then
8136 # Warning - without using the other runtime loading flags (-brtl),
8137 # -berok will link without error, but may produce a broken library.
8138 allow_undefined_flag='-berok'
8139 # Determine the default libpath from the value encoded in an empty executable.
8140 cat >conftest.$ac_ext <<_ACEOF
8141 /* confdefs.h. */
8142 _ACEOF
8143 cat confdefs.h >>conftest.$ac_ext
8144 cat >>conftest.$ac_ext <<_ACEOF
8145 /* end confdefs.h. */
8148 main ()
8152 return 0;
8154 _ACEOF
8155 rm -f conftest.$ac_objext conftest$ac_exeext
8156 if { (ac_try="$ac_link"
8157 case "(($ac_try" in
8158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8159 *) ac_try_echo=$ac_try;;
8160 esac
8161 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8162 (eval "$ac_link") 2>conftest.er1
8163 ac_status=$?
8164 grep -v '^ *+' conftest.er1 >conftest.err
8165 rm -f conftest.er1
8166 cat conftest.err >&5
8167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8168 (exit $ac_status); } &&
8169 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8170 { (case "(($ac_try" in
8171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8172 *) ac_try_echo=$ac_try;;
8173 esac
8174 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8175 (eval "$ac_try") 2>&5
8176 ac_status=$?
8177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8178 (exit $ac_status); }; } &&
8179 { ac_try='test -s conftest$ac_exeext'
8180 { (case "(($ac_try" in
8181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8182 *) ac_try_echo=$ac_try;;
8183 esac
8184 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8185 (eval "$ac_try") 2>&5
8186 ac_status=$?
8187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8188 (exit $ac_status); }; }; then
8190 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
8192 # Check for a 64-bit object if we didn't find anything.
8193 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; }
8194 }'`; fi
8195 else
8196 echo "$as_me: failed program was:" >&5
8197 sed 's/^/| /' conftest.$ac_ext >&5
8202 rm -f core conftest.err conftest.$ac_objext \
8203 conftest$ac_exeext conftest.$ac_ext
8204 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8206 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8207 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"
8208 else
8209 if test "$host_cpu" = ia64; then
8210 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8211 allow_undefined_flag="-z nodefs"
8212 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"
8213 else
8214 # Determine the default libpath from the value encoded in an empty executable.
8215 cat >conftest.$ac_ext <<_ACEOF
8216 /* confdefs.h. */
8217 _ACEOF
8218 cat confdefs.h >>conftest.$ac_ext
8219 cat >>conftest.$ac_ext <<_ACEOF
8220 /* end confdefs.h. */
8223 main ()
8227 return 0;
8229 _ACEOF
8230 rm -f conftest.$ac_objext conftest$ac_exeext
8231 if { (ac_try="$ac_link"
8232 case "(($ac_try" in
8233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8234 *) ac_try_echo=$ac_try;;
8235 esac
8236 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8237 (eval "$ac_link") 2>conftest.er1
8238 ac_status=$?
8239 grep -v '^ *+' conftest.er1 >conftest.err
8240 rm -f conftest.er1
8241 cat conftest.err >&5
8242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8243 (exit $ac_status); } &&
8244 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8245 { (case "(($ac_try" in
8246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8247 *) ac_try_echo=$ac_try;;
8248 esac
8249 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8250 (eval "$ac_try") 2>&5
8251 ac_status=$?
8252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8253 (exit $ac_status); }; } &&
8254 { ac_try='test -s conftest$ac_exeext'
8255 { (case "(($ac_try" in
8256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8257 *) ac_try_echo=$ac_try;;
8258 esac
8259 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8260 (eval "$ac_try") 2>&5
8261 ac_status=$?
8262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8263 (exit $ac_status); }; }; then
8265 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
8267 # Check for a 64-bit object if we didn't find anything.
8268 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; }
8269 }'`; fi
8270 else
8271 echo "$as_me: failed program was:" >&5
8272 sed 's/^/| /' conftest.$ac_ext >&5
8277 rm -f core conftest.err conftest.$ac_objext \
8278 conftest$ac_exeext conftest.$ac_ext
8279 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8281 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8282 # Warning - without using the other run time loading flags,
8283 # -berok will link without error, but may produce a broken library.
8284 no_undefined_flag=' ${wl}-bernotok'
8285 allow_undefined_flag=' ${wl}-berok'
8286 # Exported symbols can be pulled into shared objects from archives
8287 whole_archive_flag_spec='$convenience'
8288 archive_cmds_need_lc=yes
8289 # This is similar to how AIX traditionally builds its shared libraries.
8290 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'
8295 amigaos*)
8296 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)'
8297 hardcode_libdir_flag_spec='-L$libdir'
8298 hardcode_minus_L=yes
8299 # see comment about different semantics on the GNU ld section
8300 ld_shlibs=no
8303 bsdi[45]*)
8304 export_dynamic_flag_spec=-rdynamic
8307 cygwin* | mingw* | pw32*)
8308 # When not using gcc, we currently assume that we are using
8309 # Microsoft Visual C++.
8310 # hardcode_libdir_flag_spec is actually meaningless, as there is
8311 # no search path for DLLs.
8312 hardcode_libdir_flag_spec=' '
8313 allow_undefined_flag=unsupported
8314 # Tell ltmain to make .lib files, not .a files.
8315 libext=lib
8316 # Tell ltmain to make .dll files, not .so files.
8317 shrext_cmds=".dll"
8318 # FIXME: Setting linknames here is a bad hack.
8319 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8320 # The linker will automatically build a .lib file if we build a DLL.
8321 old_archive_From_new_cmds='true'
8322 # FIXME: Should let the user specify the lib program.
8323 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
8324 fix_srcfile_path='`cygpath -w "$srcfile"`'
8325 enable_shared_with_static_runtimes=yes
8328 darwin* | rhapsody*)
8329 case $host_os in
8330 rhapsody* | darwin1.[012])
8331 allow_undefined_flag='${wl}-undefined ${wl}suppress'
8333 *) # Darwin 1.3 on
8334 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8335 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8336 else
8337 case ${MACOSX_DEPLOYMENT_TARGET} in
8338 10.[012])
8339 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8341 10.*)
8342 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8344 esac
8347 esac
8348 archive_cmds_need_lc=no
8349 hardcode_direct=no
8350 hardcode_automatic=yes
8351 hardcode_shlibpath_var=unsupported
8352 whole_archive_flag_spec=''
8353 link_all_deplibs=yes
8354 if test "$GCC" = yes ; then
8355 output_verbose_link_cmd='echo'
8356 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8357 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8358 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8359 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}'
8360 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}'
8361 else
8362 case $cc_basename in
8363 xlc*)
8364 output_verbose_link_cmd='echo'
8365 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
8366 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8367 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8368 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}'
8369 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}'
8372 ld_shlibs=no
8374 esac
8378 dgux*)
8379 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8380 hardcode_libdir_flag_spec='-L$libdir'
8381 hardcode_shlibpath_var=no
8384 freebsd1*)
8385 ld_shlibs=no
8388 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8389 # support. Future versions do this automatically, but an explicit c++rt0.o
8390 # does not break anything, and helps significantly (at the cost of a little
8391 # extra space).
8392 freebsd2.2*)
8393 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8394 hardcode_libdir_flag_spec='-R$libdir'
8395 hardcode_direct=yes
8396 hardcode_shlibpath_var=no
8399 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8400 freebsd2*)
8401 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8402 hardcode_direct=yes
8403 hardcode_minus_L=yes
8404 hardcode_shlibpath_var=no
8407 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8408 freebsd* | kfreebsd*-gnu | dragonfly*)
8409 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8410 hardcode_libdir_flag_spec='-R$libdir'
8411 hardcode_direct=yes
8412 hardcode_shlibpath_var=no
8415 hpux9*)
8416 if test "$GCC" = yes; then
8417 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'
8418 else
8419 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'
8421 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8422 hardcode_libdir_separator=:
8423 hardcode_direct=yes
8425 # hardcode_minus_L: Not really in the search PATH,
8426 # but as the default location of the library.
8427 hardcode_minus_L=yes
8428 export_dynamic_flag_spec='${wl}-E'
8431 hpux10*)
8432 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8433 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8434 else
8435 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8437 if test "$with_gnu_ld" = no; then
8438 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8439 hardcode_libdir_separator=:
8441 hardcode_direct=yes
8442 export_dynamic_flag_spec='${wl}-E'
8444 # hardcode_minus_L: Not really in the search PATH,
8445 # but as the default location of the library.
8446 hardcode_minus_L=yes
8450 hpux11*)
8451 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8452 case $host_cpu in
8453 hppa*64*)
8454 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8456 ia64*)
8457 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8460 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8462 esac
8463 else
8464 case $host_cpu in
8465 hppa*64*)
8466 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8468 ia64*)
8469 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8472 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8474 esac
8476 if test "$with_gnu_ld" = no; then
8477 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8478 hardcode_libdir_separator=:
8480 case $host_cpu in
8481 hppa*64*|ia64*)
8482 hardcode_libdir_flag_spec_ld='+b $libdir'
8483 hardcode_direct=no
8484 hardcode_shlibpath_var=no
8487 hardcode_direct=yes
8488 export_dynamic_flag_spec='${wl}-E'
8490 # hardcode_minus_L: Not really in the search PATH,
8491 # but as the default location of the library.
8492 hardcode_minus_L=yes
8494 esac
8498 irix5* | irix6* | nonstopux*)
8499 if test "$GCC" = yes; then
8500 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'
8501 else
8502 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'
8503 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8505 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8506 hardcode_libdir_separator=:
8507 link_all_deplibs=yes
8510 netbsd*)
8511 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8512 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8513 else
8514 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8516 hardcode_libdir_flag_spec='-R$libdir'
8517 hardcode_direct=yes
8518 hardcode_shlibpath_var=no
8521 newsos6)
8522 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8523 hardcode_direct=yes
8524 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8525 hardcode_libdir_separator=:
8526 hardcode_shlibpath_var=no
8529 openbsd*)
8530 hardcode_direct=yes
8531 hardcode_shlibpath_var=no
8532 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8533 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8534 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8535 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8536 export_dynamic_flag_spec='${wl}-E'
8537 else
8538 case $host_os in
8539 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8540 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8541 hardcode_libdir_flag_spec='-R$libdir'
8544 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8545 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8547 esac
8551 os2*)
8552 hardcode_libdir_flag_spec='-L$libdir'
8553 hardcode_minus_L=yes
8554 allow_undefined_flag=unsupported
8555 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'
8556 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8559 osf3*)
8560 if test "$GCC" = yes; then
8561 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8562 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'
8563 else
8564 allow_undefined_flag=' -expect_unresolved \*'
8565 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'
8567 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8568 hardcode_libdir_separator=:
8571 osf4* | osf5*) # as osf3* with the addition of -msym flag
8572 if test "$GCC" = yes; then
8573 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8574 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'
8575 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8576 else
8577 allow_undefined_flag=' -expect_unresolved \*'
8578 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'
8579 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8580 $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'
8582 # Both c and cxx compiler support -rpath directly
8583 hardcode_libdir_flag_spec='-rpath $libdir'
8585 hardcode_libdir_separator=:
8588 solaris*)
8589 no_undefined_flag=' -z text'
8590 if test "$GCC" = yes; then
8591 wlarc='${wl}'
8592 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8593 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8594 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8595 else
8596 wlarc=''
8597 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8598 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8599 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8601 hardcode_libdir_flag_spec='-R$libdir'
8602 hardcode_shlibpath_var=no
8603 case $host_os in
8604 solaris2.[0-5] | solaris2.[0-5].*) ;;
8606 # The compiler driver will combine linker options so we
8607 # cannot just pass the convience library names through
8608 # without $wl, iff we do not link with $LD.
8609 # Luckily, gcc supports the same syntax we need for Sun Studio.
8610 # Supported since Solaris 2.6 (maybe 2.5.1?)
8611 case $wlarc in
8613 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
8615 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' ;;
8616 esac ;;
8617 esac
8618 link_all_deplibs=yes
8621 sunos4*)
8622 if test "x$host_vendor" = xsequent; then
8623 # Use $CC to link under sequent, because it throws in some extra .o
8624 # files that make .init and .fini sections work.
8625 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8626 else
8627 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8629 hardcode_libdir_flag_spec='-L$libdir'
8630 hardcode_direct=yes
8631 hardcode_minus_L=yes
8632 hardcode_shlibpath_var=no
8635 sysv4)
8636 case $host_vendor in
8637 sni)
8638 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8639 hardcode_direct=yes # is this really true???
8641 siemens)
8642 ## LD is ld it makes a PLAMLIB
8643 ## CC just makes a GrossModule.
8644 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8645 reload_cmds='$CC -r -o $output$reload_objs'
8646 hardcode_direct=no
8648 motorola)
8649 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8650 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8652 esac
8653 runpath_var='LD_RUN_PATH'
8654 hardcode_shlibpath_var=no
8657 sysv4.3*)
8658 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8659 hardcode_shlibpath_var=no
8660 export_dynamic_flag_spec='-Bexport'
8663 sysv4*MP*)
8664 if test -d /usr/nec; then
8665 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8666 hardcode_shlibpath_var=no
8667 runpath_var=LD_RUN_PATH
8668 hardcode_runpath_var=yes
8669 ld_shlibs=yes
8673 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
8674 no_undefined_flag='${wl}-z,text'
8675 archive_cmds_need_lc=no
8676 hardcode_shlibpath_var=no
8677 runpath_var='LD_RUN_PATH'
8679 if test "$GCC" = yes; then
8680 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8681 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8682 else
8683 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8684 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8688 sysv5* | sco3.2v5* | sco5v6*)
8689 # Note: We can NOT use -z defs as we might desire, because we do not
8690 # link with -lc, and that would cause any symbols used from libc to
8691 # always be unresolved, which means just about no library would
8692 # ever link correctly. If we're not using GNU ld we use -z text
8693 # though, which does catch some bad symbols but isn't as heavy-handed
8694 # as -z defs.
8695 no_undefined_flag='${wl}-z,text'
8696 allow_undefined_flag='${wl}-z,nodefs'
8697 archive_cmds_need_lc=no
8698 hardcode_shlibpath_var=no
8699 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
8700 hardcode_libdir_separator=':'
8701 link_all_deplibs=yes
8702 export_dynamic_flag_spec='${wl}-Bexport'
8703 runpath_var='LD_RUN_PATH'
8705 if test "$GCC" = yes; then
8706 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8707 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8708 else
8709 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8710 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8714 uts4*)
8715 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8716 hardcode_libdir_flag_spec='-L$libdir'
8717 hardcode_shlibpath_var=no
8721 ld_shlibs=no
8723 esac
8726 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8727 echo "${ECHO_T}$ld_shlibs" >&6; }
8728 test "$ld_shlibs" = no && can_build_shared=no
8731 # Do we need to explicitly link libc?
8733 case "x$archive_cmds_need_lc" in
8734 x|xyes)
8735 # Assume -lc should be added
8736 archive_cmds_need_lc=yes
8738 if test "$enable_shared" = yes && test "$GCC" = yes; then
8739 case $archive_cmds in
8740 *'~'*)
8741 # FIXME: we may have to deal with multi-command sequences.
8743 '$CC '*)
8744 # Test whether the compiler implicitly links with -lc since on some
8745 # systems, -lgcc has to come before -lc. If gcc already passes -lc
8746 # to ld, don't add -lc before -lgcc.
8747 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8748 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
8749 $rm conftest*
8750 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8752 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8753 (eval $ac_compile) 2>&5
8754 ac_status=$?
8755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8756 (exit $ac_status); } 2>conftest.err; then
8757 soname=conftest
8758 lib=conftest
8759 libobjs=conftest.$ac_objext
8760 deplibs=
8761 wl=$lt_prog_compiler_wl
8762 pic_flag=$lt_prog_compiler_pic
8763 compiler_flags=-v
8764 linker_flags=-v
8765 verstring=
8766 output_objdir=.
8767 libname=conftest
8768 lt_save_allow_undefined_flag=$allow_undefined_flag
8769 allow_undefined_flag=
8770 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
8771 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8772 ac_status=$?
8773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8774 (exit $ac_status); }
8775 then
8776 archive_cmds_need_lc=no
8777 else
8778 archive_cmds_need_lc=yes
8780 allow_undefined_flag=$lt_save_allow_undefined_flag
8781 else
8782 cat conftest.err 1>&5
8784 $rm conftest*
8785 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8786 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
8788 esac
8791 esac
8793 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8794 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8795 library_names_spec=
8796 libname_spec='lib$name'
8797 soname_spec=
8798 shrext_cmds=".so"
8799 postinstall_cmds=
8800 postuninstall_cmds=
8801 finish_cmds=
8802 finish_eval=
8803 shlibpath_var=
8804 shlibpath_overrides_runpath=unknown
8805 version_type=none
8806 dynamic_linker="$host_os ld.so"
8807 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8808 if test "$GCC" = yes; then
8809 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8810 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8811 # if the path contains ";" then we assume it to be the separator
8812 # otherwise default to the standard path separator (i.e. ":") - it is
8813 # assumed that no part of a normal pathname contains ";" but that should
8814 # okay in the real world where ";" in dirpaths is itself problematic.
8815 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8816 else
8817 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8819 else
8820 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8822 need_lib_prefix=unknown
8823 hardcode_into_libs=no
8825 # when you set need_version to no, make sure it does not cause -set_version
8826 # flags to be left without arguments
8827 need_version=unknown
8829 case $host_os in
8830 aix3*)
8831 version_type=linux
8832 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8833 shlibpath_var=LIBPATH
8835 # AIX 3 has no versioning support, so we append a major version to the name.
8836 soname_spec='${libname}${release}${shared_ext}$major'
8839 aix4* | aix5*)
8840 version_type=linux
8841 need_lib_prefix=no
8842 need_version=no
8843 hardcode_into_libs=yes
8844 if test "$host_cpu" = ia64; then
8845 # AIX 5 supports IA64
8846 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8847 shlibpath_var=LD_LIBRARY_PATH
8848 else
8849 # With GCC up to 2.95.x, collect2 would create an import file
8850 # for dependence libraries. The import file would start with
8851 # the line `#! .'. This would cause the generated library to
8852 # depend on `.', always an invalid library. This was fixed in
8853 # development snapshots of GCC prior to 3.0.
8854 case $host_os in
8855 aix4 | aix4.[01] | aix4.[01].*)
8856 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8857 echo ' yes '
8858 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8860 else
8861 can_build_shared=no
8864 esac
8865 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8866 # soname into executable. Probably we can add versioning support to
8867 # collect2, so additional links can be useful in future.
8868 if test "$aix_use_runtimelinking" = yes; then
8869 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8870 # instead of lib<name>.a to let people know that these are not
8871 # typical AIX shared libraries.
8872 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8873 else
8874 # We preserve .a as extension for shared libraries through AIX4.2
8875 # and later when we are not doing run time linking.
8876 library_names_spec='${libname}${release}.a $libname.a'
8877 soname_spec='${libname}${release}${shared_ext}$major'
8879 shlibpath_var=LIBPATH
8883 amigaos*)
8884 library_names_spec='$libname.ixlibrary $libname.a'
8885 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8886 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'
8889 beos*)
8890 library_names_spec='${libname}${shared_ext}'
8891 dynamic_linker="$host_os ld.so"
8892 shlibpath_var=LIBRARY_PATH
8895 bsdi[45]*)
8896 version_type=linux
8897 need_version=no
8898 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8899 soname_spec='${libname}${release}${shared_ext}$major'
8900 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8901 shlibpath_var=LD_LIBRARY_PATH
8902 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8903 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8904 # the default ld.so.conf also contains /usr/contrib/lib and
8905 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8906 # libtool to hard-code these into programs
8909 cygwin* | mingw* | pw32*)
8910 version_type=windows
8911 shrext_cmds=".dll"
8912 need_version=no
8913 need_lib_prefix=no
8915 case $GCC,$host_os in
8916 yes,cygwin* | yes,mingw* | yes,pw32*)
8917 library_names_spec='$libname.dll.a'
8918 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8919 postinstall_cmds='base_file=`basename \${file}`~
8920 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8921 dldir=$destdir/`dirname \$dlpath`~
8922 test -d \$dldir || mkdir -p \$dldir~
8923 $install_prog $dir/$dlname \$dldir/$dlname~
8924 chmod a+x \$dldir/$dlname'
8925 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8926 dlpath=$dir/\$dldll~
8927 $rm \$dlpath'
8928 shlibpath_overrides_runpath=yes
8930 case $host_os in
8931 cygwin*)
8932 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8933 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8934 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8936 mingw*)
8937 # MinGW DLLs use traditional 'lib' prefix
8938 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8939 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8940 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8941 # It is most probably a Windows format PATH printed by
8942 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8943 # path with ; separators, and with drive letters. We can handle the
8944 # drive letters (cygwin fileutils understands them), so leave them,
8945 # especially as we might pass files found there to a mingw objdump,
8946 # which wouldn't understand a cygwinified path. Ahh.
8947 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8948 else
8949 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8952 pw32*)
8953 # pw32 DLLs use 'pw' prefix rather than 'lib'
8954 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8956 esac
8960 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8962 esac
8963 dynamic_linker='Win32 ld.exe'
8964 # FIXME: first we should search . and the directory the executable is in
8965 shlibpath_var=PATH
8968 darwin* | rhapsody*)
8969 dynamic_linker="$host_os dyld"
8970 version_type=darwin
8971 need_lib_prefix=no
8972 need_version=no
8973 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8974 soname_spec='${libname}${release}${major}$shared_ext'
8975 shlibpath_overrides_runpath=yes
8976 shlibpath_var=DYLD_LIBRARY_PATH
8977 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
8978 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8979 if test "$GCC" = yes; then
8980 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"`
8981 else
8982 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8984 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8987 dgux*)
8988 version_type=linux
8989 need_lib_prefix=no
8990 need_version=no
8991 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8992 soname_spec='${libname}${release}${shared_ext}$major'
8993 shlibpath_var=LD_LIBRARY_PATH
8996 freebsd1*)
8997 dynamic_linker=no
9000 kfreebsd*-gnu)
9001 version_type=linux
9002 need_lib_prefix=no
9003 need_version=no
9004 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9005 soname_spec='${libname}${release}${shared_ext}$major'
9006 shlibpath_var=LD_LIBRARY_PATH
9007 shlibpath_overrides_runpath=no
9008 hardcode_into_libs=yes
9009 dynamic_linker='GNU ld.so'
9012 freebsd* | dragonfly*)
9013 # DragonFly does not have aout. When/if they implement a new
9014 # versioning mechanism, adjust this.
9015 if test -x /usr/bin/objformat; then
9016 objformat=`/usr/bin/objformat`
9017 else
9018 case $host_os in
9019 freebsd[123]*) objformat=aout ;;
9020 *) objformat=elf ;;
9021 esac
9023 version_type=freebsd-$objformat
9024 case $version_type in
9025 freebsd-elf*)
9026 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9027 need_version=no
9028 need_lib_prefix=no
9030 freebsd-*)
9031 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9032 need_version=yes
9034 esac
9035 shlibpath_var=LD_LIBRARY_PATH
9036 case $host_os in
9037 freebsd2*)
9038 shlibpath_overrides_runpath=yes
9040 freebsd3.[01]* | freebsdelf3.[01]*)
9041 shlibpath_overrides_runpath=yes
9042 hardcode_into_libs=yes
9044 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9045 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9046 shlibpath_overrides_runpath=no
9047 hardcode_into_libs=yes
9049 freebsd*) # from 4.6 on
9050 shlibpath_overrides_runpath=yes
9051 hardcode_into_libs=yes
9053 esac
9056 gnu*)
9057 version_type=linux
9058 need_lib_prefix=no
9059 need_version=no
9060 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9061 soname_spec='${libname}${release}${shared_ext}$major'
9062 shlibpath_var=LD_LIBRARY_PATH
9063 hardcode_into_libs=yes
9066 hpux9* | hpux10* | hpux11*)
9067 # Give a soname corresponding to the major version so that dld.sl refuses to
9068 # link against other versions.
9069 version_type=sunos
9070 need_lib_prefix=no
9071 need_version=no
9072 case $host_cpu in
9073 ia64*)
9074 shrext_cmds='.so'
9075 hardcode_into_libs=yes
9076 dynamic_linker="$host_os dld.so"
9077 shlibpath_var=LD_LIBRARY_PATH
9078 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9079 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9080 soname_spec='${libname}${release}${shared_ext}$major'
9081 if test "X$HPUX_IA64_MODE" = X32; then
9082 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9083 else
9084 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9086 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9088 hppa*64*)
9089 shrext_cmds='.sl'
9090 hardcode_into_libs=yes
9091 dynamic_linker="$host_os dld.sl"
9092 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9093 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9094 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9095 soname_spec='${libname}${release}${shared_ext}$major'
9096 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9097 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9100 shrext_cmds='.sl'
9101 dynamic_linker="$host_os dld.sl"
9102 shlibpath_var=SHLIB_PATH
9103 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9104 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9105 soname_spec='${libname}${release}${shared_ext}$major'
9107 esac
9108 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9109 postinstall_cmds='chmod 555 $lib'
9112 interix3*)
9113 version_type=linux
9114 need_lib_prefix=no
9115 need_version=no
9116 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9117 soname_spec='${libname}${release}${shared_ext}$major'
9118 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9119 shlibpath_var=LD_LIBRARY_PATH
9120 shlibpath_overrides_runpath=no
9121 hardcode_into_libs=yes
9124 irix5* | irix6* | nonstopux*)
9125 case $host_os in
9126 nonstopux*) version_type=nonstopux ;;
9128 if test "$lt_cv_prog_gnu_ld" = yes; then
9129 version_type=linux
9130 else
9131 version_type=irix
9132 fi ;;
9133 esac
9134 need_lib_prefix=no
9135 need_version=no
9136 soname_spec='${libname}${release}${shared_ext}$major'
9137 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9138 case $host_os in
9139 irix5* | nonstopux*)
9140 libsuff= shlibsuff=
9143 case $LD in # libtool.m4 will add one of these switches to LD
9144 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9145 libsuff= shlibsuff= libmagic=32-bit;;
9146 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9147 libsuff=32 shlibsuff=N32 libmagic=N32;;
9148 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9149 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9150 *) libsuff= shlibsuff= libmagic=never-match;;
9151 esac
9153 esac
9154 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9155 shlibpath_overrides_runpath=no
9156 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9157 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9158 hardcode_into_libs=yes
9161 # No shared lib support for Linux oldld, aout, or coff.
9162 linux*oldld* | linux*aout* | linux*coff*)
9163 dynamic_linker=no
9166 # This must be Linux ELF.
9167 linux*)
9168 version_type=linux
9169 need_lib_prefix=no
9170 need_version=no
9171 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9172 soname_spec='${libname}${release}${shared_ext}$major'
9173 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9174 shlibpath_var=LD_LIBRARY_PATH
9175 shlibpath_overrides_runpath=no
9176 # This implies no fast_install, which is unacceptable.
9177 # Some rework will be needed to allow for fast_install
9178 # before this can be enabled.
9179 hardcode_into_libs=yes
9181 # Append ld.so.conf contents to the search path
9182 if test -f /etc/ld.so.conf; then
9183 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' ' '`
9184 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9187 # We used to test for /lib/ld.so.1 and disable shared libraries on
9188 # powerpc, because MkLinux only supported shared libraries with the
9189 # GNU dynamic linker. Since this was broken with cross compilers,
9190 # most powerpc-linux boxes support dynamic linking these days and
9191 # people can always --disable-shared, the test was removed, and we
9192 # assume the GNU/Linux dynamic linker is in use.
9193 dynamic_linker='GNU/Linux ld.so'
9196 knetbsd*-gnu)
9197 version_type=linux
9198 need_lib_prefix=no
9199 need_version=no
9200 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9201 soname_spec='${libname}${release}${shared_ext}$major'
9202 shlibpath_var=LD_LIBRARY_PATH
9203 shlibpath_overrides_runpath=no
9204 hardcode_into_libs=yes
9205 dynamic_linker='GNU ld.so'
9208 netbsd*)
9209 version_type=sunos
9210 need_lib_prefix=no
9211 need_version=no
9212 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9213 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9214 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9215 dynamic_linker='NetBSD (a.out) ld.so'
9216 else
9217 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9218 soname_spec='${libname}${release}${shared_ext}$major'
9219 dynamic_linker='NetBSD ld.elf_so'
9221 shlibpath_var=LD_LIBRARY_PATH
9222 shlibpath_overrides_runpath=yes
9223 hardcode_into_libs=yes
9226 newsos6)
9227 version_type=linux
9228 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9229 shlibpath_var=LD_LIBRARY_PATH
9230 shlibpath_overrides_runpath=yes
9233 nto-qnx*)
9234 version_type=linux
9235 need_lib_prefix=no
9236 need_version=no
9237 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9238 soname_spec='${libname}${release}${shared_ext}$major'
9239 shlibpath_var=LD_LIBRARY_PATH
9240 shlibpath_overrides_runpath=yes
9243 openbsd*)
9244 version_type=sunos
9245 sys_lib_dlsearch_path_spec="/usr/lib"
9246 need_lib_prefix=no
9247 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9248 case $host_os in
9249 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9250 *) need_version=no ;;
9251 esac
9252 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9253 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9254 shlibpath_var=LD_LIBRARY_PATH
9255 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9256 case $host_os in
9257 openbsd2.[89] | openbsd2.[89].*)
9258 shlibpath_overrides_runpath=no
9261 shlibpath_overrides_runpath=yes
9263 esac
9264 else
9265 shlibpath_overrides_runpath=yes
9269 os2*)
9270 libname_spec='$name'
9271 shrext_cmds=".dll"
9272 need_lib_prefix=no
9273 library_names_spec='$libname${shared_ext} $libname.a'
9274 dynamic_linker='OS/2 ld.exe'
9275 shlibpath_var=LIBPATH
9278 osf3* | osf4* | osf5*)
9279 version_type=osf
9280 need_lib_prefix=no
9281 need_version=no
9282 soname_spec='${libname}${release}${shared_ext}$major'
9283 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9284 shlibpath_var=LD_LIBRARY_PATH
9285 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9286 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9289 solaris*)
9290 version_type=linux
9291 need_lib_prefix=no
9292 need_version=no
9293 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9294 soname_spec='${libname}${release}${shared_ext}$major'
9295 shlibpath_var=LD_LIBRARY_PATH
9296 shlibpath_overrides_runpath=yes
9297 hardcode_into_libs=yes
9298 # ldd complains unless libraries are executable
9299 postinstall_cmds='chmod +x $lib'
9302 sunos4*)
9303 version_type=sunos
9304 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9305 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9306 shlibpath_var=LD_LIBRARY_PATH
9307 shlibpath_overrides_runpath=yes
9308 if test "$with_gnu_ld" = yes; then
9309 need_lib_prefix=no
9311 need_version=yes
9314 sysv4 | sysv4.3*)
9315 version_type=linux
9316 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9317 soname_spec='${libname}${release}${shared_ext}$major'
9318 shlibpath_var=LD_LIBRARY_PATH
9319 case $host_vendor in
9320 sni)
9321 shlibpath_overrides_runpath=no
9322 need_lib_prefix=no
9323 export_dynamic_flag_spec='${wl}-Blargedynsym'
9324 runpath_var=LD_RUN_PATH
9326 siemens)
9327 need_lib_prefix=no
9329 motorola)
9330 need_lib_prefix=no
9331 need_version=no
9332 shlibpath_overrides_runpath=no
9333 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9335 esac
9338 sysv4*MP*)
9339 if test -d /usr/nec ;then
9340 version_type=linux
9341 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9342 soname_spec='$libname${shared_ext}.$major'
9343 shlibpath_var=LD_LIBRARY_PATH
9347 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9348 version_type=freebsd-elf
9349 need_lib_prefix=no
9350 need_version=no
9351 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9352 soname_spec='${libname}${release}${shared_ext}$major'
9353 shlibpath_var=LD_LIBRARY_PATH
9354 hardcode_into_libs=yes
9355 if test "$with_gnu_ld" = yes; then
9356 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9357 shlibpath_overrides_runpath=no
9358 else
9359 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9360 shlibpath_overrides_runpath=yes
9361 case $host_os in
9362 sco3.2v5*)
9363 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9365 esac
9367 sys_lib_dlsearch_path_spec='/usr/lib'
9370 uts4*)
9371 version_type=linux
9372 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9373 soname_spec='${libname}${release}${shared_ext}$major'
9374 shlibpath_var=LD_LIBRARY_PATH
9378 dynamic_linker=no
9380 esac
9381 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9382 echo "${ECHO_T}$dynamic_linker" >&6; }
9383 test "$dynamic_linker" = no && can_build_shared=no
9385 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9386 if test "$GCC" = yes; then
9387 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9390 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9391 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
9392 hardcode_action=
9393 if test -n "$hardcode_libdir_flag_spec" || \
9394 test -n "$runpath_var" || \
9395 test "X$hardcode_automatic" = "Xyes" ; then
9397 # We can hardcode non-existant directories.
9398 if test "$hardcode_direct" != no &&
9399 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9400 # have to relink, otherwise we might link with an installed library
9401 # when we should be linking with a yet-to-be-installed one
9402 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9403 test "$hardcode_minus_L" != no; then
9404 # Linking always hardcodes the temporary library directory.
9405 hardcode_action=relink
9406 else
9407 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9408 hardcode_action=immediate
9410 else
9411 # We cannot hardcode anything, or else we can only hardcode existing
9412 # directories.
9413 hardcode_action=unsupported
9415 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
9416 echo "${ECHO_T}$hardcode_action" >&6; }
9418 if test "$hardcode_action" = relink; then
9419 # Fast installation is not supported
9420 enable_fast_install=no
9421 elif test "$shlibpath_overrides_runpath" = yes ||
9422 test "$enable_shared" = no; then
9423 # Fast installation is not necessary
9424 enable_fast_install=needless
9427 striplib=
9428 old_striplib=
9429 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9430 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
9431 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9432 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9433 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9434 { echo "$as_me:$LINENO: result: yes" >&5
9435 echo "${ECHO_T}yes" >&6; }
9436 else
9437 # FIXME - insert some real tests, host_os isn't really good enough
9438 case $host_os in
9439 darwin*)
9440 if test -n "$STRIP" ; then
9441 striplib="$STRIP -x"
9442 { echo "$as_me:$LINENO: result: yes" >&5
9443 echo "${ECHO_T}yes" >&6; }
9444 else
9445 { echo "$as_me:$LINENO: result: no" >&5
9446 echo "${ECHO_T}no" >&6; }
9450 { echo "$as_me:$LINENO: result: no" >&5
9451 echo "${ECHO_T}no" >&6; }
9453 esac
9456 if test "x$enable_dlopen" != xyes; then
9457 enable_dlopen=unknown
9458 enable_dlopen_self=unknown
9459 enable_dlopen_self_static=unknown
9460 else
9461 lt_cv_dlopen=no
9462 lt_cv_dlopen_libs=
9464 case $host_os in
9465 beos*)
9466 lt_cv_dlopen="load_add_on"
9467 lt_cv_dlopen_libs=
9468 lt_cv_dlopen_self=yes
9471 mingw* | pw32*)
9472 lt_cv_dlopen="LoadLibrary"
9473 lt_cv_dlopen_libs=
9476 cygwin*)
9477 lt_cv_dlopen="dlopen"
9478 lt_cv_dlopen_libs=
9481 darwin*)
9482 # if libdl is installed we need to link against it
9483 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9484 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9485 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9486 echo $ECHO_N "(cached) $ECHO_C" >&6
9487 else
9488 ac_check_lib_save_LIBS=$LIBS
9489 LIBS="-ldl $LIBS"
9490 cat >conftest.$ac_ext <<_ACEOF
9491 /* confdefs.h. */
9492 _ACEOF
9493 cat confdefs.h >>conftest.$ac_ext
9494 cat >>conftest.$ac_ext <<_ACEOF
9495 /* end confdefs.h. */
9497 /* Override any GCC internal prototype to avoid an error.
9498 Use char because int might match the return type of a GCC
9499 builtin and then its argument prototype would still apply. */
9500 #ifdef __cplusplus
9501 extern "C"
9502 #endif
9503 char dlopen ();
9505 main ()
9507 return dlopen ();
9509 return 0;
9511 _ACEOF
9512 rm -f conftest.$ac_objext conftest$ac_exeext
9513 if { (ac_try="$ac_link"
9514 case "(($ac_try" in
9515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9516 *) ac_try_echo=$ac_try;;
9517 esac
9518 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9519 (eval "$ac_link") 2>conftest.er1
9520 ac_status=$?
9521 grep -v '^ *+' conftest.er1 >conftest.err
9522 rm -f conftest.er1
9523 cat conftest.err >&5
9524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9525 (exit $ac_status); } &&
9526 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9527 { (case "(($ac_try" in
9528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9529 *) ac_try_echo=$ac_try;;
9530 esac
9531 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9532 (eval "$ac_try") 2>&5
9533 ac_status=$?
9534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9535 (exit $ac_status); }; } &&
9536 { ac_try='test -s conftest$ac_exeext'
9537 { (case "(($ac_try" in
9538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9539 *) ac_try_echo=$ac_try;;
9540 esac
9541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9542 (eval "$ac_try") 2>&5
9543 ac_status=$?
9544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9545 (exit $ac_status); }; }; then
9546 ac_cv_lib_dl_dlopen=yes
9547 else
9548 echo "$as_me: failed program was:" >&5
9549 sed 's/^/| /' conftest.$ac_ext >&5
9551 ac_cv_lib_dl_dlopen=no
9554 rm -f core conftest.err conftest.$ac_objext \
9555 conftest$ac_exeext conftest.$ac_ext
9556 LIBS=$ac_check_lib_save_LIBS
9558 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9559 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9560 if test $ac_cv_lib_dl_dlopen = yes; then
9561 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9562 else
9564 lt_cv_dlopen="dyld"
9565 lt_cv_dlopen_libs=
9566 lt_cv_dlopen_self=yes
9573 { echo "$as_me:$LINENO: checking for shl_load" >&5
9574 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9575 if test "${ac_cv_func_shl_load+set}" = set; then
9576 echo $ECHO_N "(cached) $ECHO_C" >&6
9577 else
9578 cat >conftest.$ac_ext <<_ACEOF
9579 /* confdefs.h. */
9580 _ACEOF
9581 cat confdefs.h >>conftest.$ac_ext
9582 cat >>conftest.$ac_ext <<_ACEOF
9583 /* end confdefs.h. */
9584 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9585 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9586 #define shl_load innocuous_shl_load
9588 /* System header to define __stub macros and hopefully few prototypes,
9589 which can conflict with char shl_load (); below.
9590 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9591 <limits.h> exists even on freestanding compilers. */
9593 #ifdef __STDC__
9594 # include <limits.h>
9595 #else
9596 # include <assert.h>
9597 #endif
9599 #undef shl_load
9601 /* Override any GCC internal prototype to avoid an error.
9602 Use char because int might match the return type of a GCC
9603 builtin and then its argument prototype would still apply. */
9604 #ifdef __cplusplus
9605 extern "C"
9606 #endif
9607 char shl_load ();
9608 /* The GNU C library defines this for functions which it implements
9609 to always fail with ENOSYS. Some functions are actually named
9610 something starting with __ and the normal name is an alias. */
9611 #if defined __stub_shl_load || defined __stub___shl_load
9612 choke me
9613 #endif
9616 main ()
9618 return shl_load ();
9620 return 0;
9622 _ACEOF
9623 rm -f conftest.$ac_objext conftest$ac_exeext
9624 if { (ac_try="$ac_link"
9625 case "(($ac_try" in
9626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9627 *) ac_try_echo=$ac_try;;
9628 esac
9629 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9630 (eval "$ac_link") 2>conftest.er1
9631 ac_status=$?
9632 grep -v '^ *+' conftest.er1 >conftest.err
9633 rm -f conftest.er1
9634 cat conftest.err >&5
9635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9636 (exit $ac_status); } &&
9637 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9638 { (case "(($ac_try" in
9639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9640 *) ac_try_echo=$ac_try;;
9641 esac
9642 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9643 (eval "$ac_try") 2>&5
9644 ac_status=$?
9645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9646 (exit $ac_status); }; } &&
9647 { ac_try='test -s conftest$ac_exeext'
9648 { (case "(($ac_try" in
9649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9650 *) ac_try_echo=$ac_try;;
9651 esac
9652 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9653 (eval "$ac_try") 2>&5
9654 ac_status=$?
9655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9656 (exit $ac_status); }; }; then
9657 ac_cv_func_shl_load=yes
9658 else
9659 echo "$as_me: failed program was:" >&5
9660 sed 's/^/| /' conftest.$ac_ext >&5
9662 ac_cv_func_shl_load=no
9665 rm -f core conftest.err conftest.$ac_objext \
9666 conftest$ac_exeext conftest.$ac_ext
9668 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9669 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9670 if test $ac_cv_func_shl_load = yes; then
9671 lt_cv_dlopen="shl_load"
9672 else
9673 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9674 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9675 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9676 echo $ECHO_N "(cached) $ECHO_C" >&6
9677 else
9678 ac_check_lib_save_LIBS=$LIBS
9679 LIBS="-ldld $LIBS"
9680 cat >conftest.$ac_ext <<_ACEOF
9681 /* confdefs.h. */
9682 _ACEOF
9683 cat confdefs.h >>conftest.$ac_ext
9684 cat >>conftest.$ac_ext <<_ACEOF
9685 /* end confdefs.h. */
9687 /* Override any GCC internal prototype to avoid an error.
9688 Use char because int might match the return type of a GCC
9689 builtin and then its argument prototype would still apply. */
9690 #ifdef __cplusplus
9691 extern "C"
9692 #endif
9693 char shl_load ();
9695 main ()
9697 return shl_load ();
9699 return 0;
9701 _ACEOF
9702 rm -f conftest.$ac_objext conftest$ac_exeext
9703 if { (ac_try="$ac_link"
9704 case "(($ac_try" in
9705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9706 *) ac_try_echo=$ac_try;;
9707 esac
9708 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9709 (eval "$ac_link") 2>conftest.er1
9710 ac_status=$?
9711 grep -v '^ *+' conftest.er1 >conftest.err
9712 rm -f conftest.er1
9713 cat conftest.err >&5
9714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9715 (exit $ac_status); } &&
9716 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9717 { (case "(($ac_try" in
9718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9719 *) ac_try_echo=$ac_try;;
9720 esac
9721 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9722 (eval "$ac_try") 2>&5
9723 ac_status=$?
9724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9725 (exit $ac_status); }; } &&
9726 { ac_try='test -s conftest$ac_exeext'
9727 { (case "(($ac_try" in
9728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9729 *) ac_try_echo=$ac_try;;
9730 esac
9731 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9732 (eval "$ac_try") 2>&5
9733 ac_status=$?
9734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9735 (exit $ac_status); }; }; then
9736 ac_cv_lib_dld_shl_load=yes
9737 else
9738 echo "$as_me: failed program was:" >&5
9739 sed 's/^/| /' conftest.$ac_ext >&5
9741 ac_cv_lib_dld_shl_load=no
9744 rm -f core conftest.err conftest.$ac_objext \
9745 conftest$ac_exeext conftest.$ac_ext
9746 LIBS=$ac_check_lib_save_LIBS
9748 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9749 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9750 if test $ac_cv_lib_dld_shl_load = yes; then
9751 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9752 else
9753 { echo "$as_me:$LINENO: checking for dlopen" >&5
9754 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
9755 if test "${ac_cv_func_dlopen+set}" = set; then
9756 echo $ECHO_N "(cached) $ECHO_C" >&6
9757 else
9758 cat >conftest.$ac_ext <<_ACEOF
9759 /* confdefs.h. */
9760 _ACEOF
9761 cat confdefs.h >>conftest.$ac_ext
9762 cat >>conftest.$ac_ext <<_ACEOF
9763 /* end confdefs.h. */
9764 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9765 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9766 #define dlopen innocuous_dlopen
9768 /* System header to define __stub macros and hopefully few prototypes,
9769 which can conflict with char dlopen (); below.
9770 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9771 <limits.h> exists even on freestanding compilers. */
9773 #ifdef __STDC__
9774 # include <limits.h>
9775 #else
9776 # include <assert.h>
9777 #endif
9779 #undef dlopen
9781 /* Override any GCC internal prototype to avoid an error.
9782 Use char because int might match the return type of a GCC
9783 builtin and then its argument prototype would still apply. */
9784 #ifdef __cplusplus
9785 extern "C"
9786 #endif
9787 char dlopen ();
9788 /* The GNU C library defines this for functions which it implements
9789 to always fail with ENOSYS. Some functions are actually named
9790 something starting with __ and the normal name is an alias. */
9791 #if defined __stub_dlopen || defined __stub___dlopen
9792 choke me
9793 #endif
9796 main ()
9798 return dlopen ();
9800 return 0;
9802 _ACEOF
9803 rm -f conftest.$ac_objext conftest$ac_exeext
9804 if { (ac_try="$ac_link"
9805 case "(($ac_try" in
9806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9807 *) ac_try_echo=$ac_try;;
9808 esac
9809 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9810 (eval "$ac_link") 2>conftest.er1
9811 ac_status=$?
9812 grep -v '^ *+' conftest.er1 >conftest.err
9813 rm -f conftest.er1
9814 cat conftest.err >&5
9815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9816 (exit $ac_status); } &&
9817 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9818 { (case "(($ac_try" in
9819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9820 *) ac_try_echo=$ac_try;;
9821 esac
9822 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9823 (eval "$ac_try") 2>&5
9824 ac_status=$?
9825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9826 (exit $ac_status); }; } &&
9827 { ac_try='test -s conftest$ac_exeext'
9828 { (case "(($ac_try" in
9829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9830 *) ac_try_echo=$ac_try;;
9831 esac
9832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9833 (eval "$ac_try") 2>&5
9834 ac_status=$?
9835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9836 (exit $ac_status); }; }; then
9837 ac_cv_func_dlopen=yes
9838 else
9839 echo "$as_me: failed program was:" >&5
9840 sed 's/^/| /' conftest.$ac_ext >&5
9842 ac_cv_func_dlopen=no
9845 rm -f core conftest.err conftest.$ac_objext \
9846 conftest$ac_exeext conftest.$ac_ext
9848 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9849 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
9850 if test $ac_cv_func_dlopen = yes; then
9851 lt_cv_dlopen="dlopen"
9852 else
9853 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9854 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9855 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9856 echo $ECHO_N "(cached) $ECHO_C" >&6
9857 else
9858 ac_check_lib_save_LIBS=$LIBS
9859 LIBS="-ldl $LIBS"
9860 cat >conftest.$ac_ext <<_ACEOF
9861 /* confdefs.h. */
9862 _ACEOF
9863 cat confdefs.h >>conftest.$ac_ext
9864 cat >>conftest.$ac_ext <<_ACEOF
9865 /* end confdefs.h. */
9867 /* Override any GCC internal prototype to avoid an error.
9868 Use char because int might match the return type of a GCC
9869 builtin and then its argument prototype would still apply. */
9870 #ifdef __cplusplus
9871 extern "C"
9872 #endif
9873 char dlopen ();
9875 main ()
9877 return dlopen ();
9879 return 0;
9881 _ACEOF
9882 rm -f conftest.$ac_objext conftest$ac_exeext
9883 if { (ac_try="$ac_link"
9884 case "(($ac_try" in
9885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9886 *) ac_try_echo=$ac_try;;
9887 esac
9888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9889 (eval "$ac_link") 2>conftest.er1
9890 ac_status=$?
9891 grep -v '^ *+' conftest.er1 >conftest.err
9892 rm -f conftest.er1
9893 cat conftest.err >&5
9894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9895 (exit $ac_status); } &&
9896 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9897 { (case "(($ac_try" in
9898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9899 *) ac_try_echo=$ac_try;;
9900 esac
9901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9902 (eval "$ac_try") 2>&5
9903 ac_status=$?
9904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9905 (exit $ac_status); }; } &&
9906 { ac_try='test -s conftest$ac_exeext'
9907 { (case "(($ac_try" in
9908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9909 *) ac_try_echo=$ac_try;;
9910 esac
9911 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9912 (eval "$ac_try") 2>&5
9913 ac_status=$?
9914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9915 (exit $ac_status); }; }; then
9916 ac_cv_lib_dl_dlopen=yes
9917 else
9918 echo "$as_me: failed program was:" >&5
9919 sed 's/^/| /' conftest.$ac_ext >&5
9921 ac_cv_lib_dl_dlopen=no
9924 rm -f core conftest.err conftest.$ac_objext \
9925 conftest$ac_exeext conftest.$ac_ext
9926 LIBS=$ac_check_lib_save_LIBS
9928 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9929 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9930 if test $ac_cv_lib_dl_dlopen = yes; then
9931 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9932 else
9933 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9934 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
9935 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9936 echo $ECHO_N "(cached) $ECHO_C" >&6
9937 else
9938 ac_check_lib_save_LIBS=$LIBS
9939 LIBS="-lsvld $LIBS"
9940 cat >conftest.$ac_ext <<_ACEOF
9941 /* confdefs.h. */
9942 _ACEOF
9943 cat confdefs.h >>conftest.$ac_ext
9944 cat >>conftest.$ac_ext <<_ACEOF
9945 /* end confdefs.h. */
9947 /* Override any GCC internal prototype to avoid an error.
9948 Use char because int might match the return type of a GCC
9949 builtin and then its argument prototype would still apply. */
9950 #ifdef __cplusplus
9951 extern "C"
9952 #endif
9953 char dlopen ();
9955 main ()
9957 return dlopen ();
9959 return 0;
9961 _ACEOF
9962 rm -f conftest.$ac_objext conftest$ac_exeext
9963 if { (ac_try="$ac_link"
9964 case "(($ac_try" in
9965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9966 *) ac_try_echo=$ac_try;;
9967 esac
9968 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9969 (eval "$ac_link") 2>conftest.er1
9970 ac_status=$?
9971 grep -v '^ *+' conftest.er1 >conftest.err
9972 rm -f conftest.er1
9973 cat conftest.err >&5
9974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9975 (exit $ac_status); } &&
9976 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9977 { (case "(($ac_try" in
9978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9979 *) ac_try_echo=$ac_try;;
9980 esac
9981 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9982 (eval "$ac_try") 2>&5
9983 ac_status=$?
9984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9985 (exit $ac_status); }; } &&
9986 { ac_try='test -s conftest$ac_exeext'
9987 { (case "(($ac_try" in
9988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9989 *) ac_try_echo=$ac_try;;
9990 esac
9991 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9992 (eval "$ac_try") 2>&5
9993 ac_status=$?
9994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9995 (exit $ac_status); }; }; then
9996 ac_cv_lib_svld_dlopen=yes
9997 else
9998 echo "$as_me: failed program was:" >&5
9999 sed 's/^/| /' conftest.$ac_ext >&5
10001 ac_cv_lib_svld_dlopen=no
10004 rm -f core conftest.err conftest.$ac_objext \
10005 conftest$ac_exeext conftest.$ac_ext
10006 LIBS=$ac_check_lib_save_LIBS
10008 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10009 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10010 if test $ac_cv_lib_svld_dlopen = yes; then
10011 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10012 else
10013 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10014 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10015 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10016 echo $ECHO_N "(cached) $ECHO_C" >&6
10017 else
10018 ac_check_lib_save_LIBS=$LIBS
10019 LIBS="-ldld $LIBS"
10020 cat >conftest.$ac_ext <<_ACEOF
10021 /* confdefs.h. */
10022 _ACEOF
10023 cat confdefs.h >>conftest.$ac_ext
10024 cat >>conftest.$ac_ext <<_ACEOF
10025 /* end confdefs.h. */
10027 /* Override any GCC internal prototype to avoid an error.
10028 Use char because int might match the return type of a GCC
10029 builtin and then its argument prototype would still apply. */
10030 #ifdef __cplusplus
10031 extern "C"
10032 #endif
10033 char dld_link ();
10035 main ()
10037 return dld_link ();
10039 return 0;
10041 _ACEOF
10042 rm -f conftest.$ac_objext conftest$ac_exeext
10043 if { (ac_try="$ac_link"
10044 case "(($ac_try" in
10045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10046 *) ac_try_echo=$ac_try;;
10047 esac
10048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10049 (eval "$ac_link") 2>conftest.er1
10050 ac_status=$?
10051 grep -v '^ *+' conftest.er1 >conftest.err
10052 rm -f conftest.er1
10053 cat conftest.err >&5
10054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10055 (exit $ac_status); } &&
10056 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10057 { (case "(($ac_try" in
10058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10059 *) ac_try_echo=$ac_try;;
10060 esac
10061 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10062 (eval "$ac_try") 2>&5
10063 ac_status=$?
10064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10065 (exit $ac_status); }; } &&
10066 { ac_try='test -s conftest$ac_exeext'
10067 { (case "(($ac_try" in
10068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10069 *) ac_try_echo=$ac_try;;
10070 esac
10071 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10072 (eval "$ac_try") 2>&5
10073 ac_status=$?
10074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10075 (exit $ac_status); }; }; then
10076 ac_cv_lib_dld_dld_link=yes
10077 else
10078 echo "$as_me: failed program was:" >&5
10079 sed 's/^/| /' conftest.$ac_ext >&5
10081 ac_cv_lib_dld_dld_link=no
10084 rm -f core conftest.err conftest.$ac_objext \
10085 conftest$ac_exeext conftest.$ac_ext
10086 LIBS=$ac_check_lib_save_LIBS
10088 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10089 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10090 if test $ac_cv_lib_dld_dld_link = yes; then
10091 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
10110 esac
10112 if test "x$lt_cv_dlopen" != xno; then
10113 enable_dlopen=yes
10114 else
10115 enable_dlopen=no
10118 case $lt_cv_dlopen in
10119 dlopen)
10120 save_CPPFLAGS="$CPPFLAGS"
10121 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10123 save_LDFLAGS="$LDFLAGS"
10124 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10126 save_LIBS="$LIBS"
10127 LIBS="$lt_cv_dlopen_libs $LIBS"
10129 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10130 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
10131 if test "${lt_cv_dlopen_self+set}" = set; then
10132 echo $ECHO_N "(cached) $ECHO_C" >&6
10133 else
10134 if test "$cross_compiling" = yes; then :
10135 lt_cv_dlopen_self=cross
10136 else
10137 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10138 lt_status=$lt_dlunknown
10139 cat > conftest.$ac_ext <<EOF
10140 #line 10140 "configure"
10141 #include "confdefs.h"
10143 #if HAVE_DLFCN_H
10144 #include <dlfcn.h>
10145 #endif
10147 #include <stdio.h>
10149 #ifdef RTLD_GLOBAL
10150 # define LT_DLGLOBAL RTLD_GLOBAL
10151 #else
10152 # ifdef DL_GLOBAL
10153 # define LT_DLGLOBAL DL_GLOBAL
10154 # else
10155 # define LT_DLGLOBAL 0
10156 # endif
10157 #endif
10159 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10160 find out it does not work in some platform. */
10161 #ifndef LT_DLLAZY_OR_NOW
10162 # ifdef RTLD_LAZY
10163 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10164 # else
10165 # ifdef DL_LAZY
10166 # define LT_DLLAZY_OR_NOW DL_LAZY
10167 # else
10168 # ifdef RTLD_NOW
10169 # define LT_DLLAZY_OR_NOW RTLD_NOW
10170 # else
10171 # ifdef DL_NOW
10172 # define LT_DLLAZY_OR_NOW DL_NOW
10173 # else
10174 # define LT_DLLAZY_OR_NOW 0
10175 # endif
10176 # endif
10177 # endif
10178 # endif
10179 #endif
10181 #ifdef __cplusplus
10182 extern "C" void exit (int);
10183 #endif
10185 void fnord() { int i=42;}
10186 int main ()
10188 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10189 int status = $lt_dlunknown;
10191 if (self)
10193 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10194 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10195 /* dlclose (self); */
10197 else
10198 puts (dlerror ());
10200 exit (status);
10203 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10204 (eval $ac_link) 2>&5
10205 ac_status=$?
10206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10207 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10208 (./conftest; exit; ) >&5 2>/dev/null
10209 lt_status=$?
10210 case x$lt_status in
10211 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10212 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10213 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10214 esac
10215 else :
10216 # compilation failed
10217 lt_cv_dlopen_self=no
10220 rm -fr conftest*
10224 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10225 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
10227 if test "x$lt_cv_dlopen_self" = xyes; then
10228 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10229 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10230 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
10231 if test "${lt_cv_dlopen_self_static+set}" = set; then
10232 echo $ECHO_N "(cached) $ECHO_C" >&6
10233 else
10234 if test "$cross_compiling" = yes; then :
10235 lt_cv_dlopen_self_static=cross
10236 else
10237 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10238 lt_status=$lt_dlunknown
10239 cat > conftest.$ac_ext <<EOF
10240 #line 10240 "configure"
10241 #include "confdefs.h"
10243 #if HAVE_DLFCN_H
10244 #include <dlfcn.h>
10245 #endif
10247 #include <stdio.h>
10249 #ifdef RTLD_GLOBAL
10250 # define LT_DLGLOBAL RTLD_GLOBAL
10251 #else
10252 # ifdef DL_GLOBAL
10253 # define LT_DLGLOBAL DL_GLOBAL
10254 # else
10255 # define LT_DLGLOBAL 0
10256 # endif
10257 #endif
10259 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10260 find out it does not work in some platform. */
10261 #ifndef LT_DLLAZY_OR_NOW
10262 # ifdef RTLD_LAZY
10263 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10264 # else
10265 # ifdef DL_LAZY
10266 # define LT_DLLAZY_OR_NOW DL_LAZY
10267 # else
10268 # ifdef RTLD_NOW
10269 # define LT_DLLAZY_OR_NOW RTLD_NOW
10270 # else
10271 # ifdef DL_NOW
10272 # define LT_DLLAZY_OR_NOW DL_NOW
10273 # else
10274 # define LT_DLLAZY_OR_NOW 0
10275 # endif
10276 # endif
10277 # endif
10278 # endif
10279 #endif
10281 #ifdef __cplusplus
10282 extern "C" void exit (int);
10283 #endif
10285 void fnord() { int i=42;}
10286 int main ()
10288 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10289 int status = $lt_dlunknown;
10291 if (self)
10293 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10294 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10295 /* dlclose (self); */
10297 else
10298 puts (dlerror ());
10300 exit (status);
10303 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10304 (eval $ac_link) 2>&5
10305 ac_status=$?
10306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10307 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10308 (./conftest; exit; ) >&5 2>/dev/null
10309 lt_status=$?
10310 case x$lt_status in
10311 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10312 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10313 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10314 esac
10315 else :
10316 # compilation failed
10317 lt_cv_dlopen_self_static=no
10320 rm -fr conftest*
10324 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10325 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
10328 CPPFLAGS="$save_CPPFLAGS"
10329 LDFLAGS="$save_LDFLAGS"
10330 LIBS="$save_LIBS"
10332 esac
10334 case $lt_cv_dlopen_self in
10335 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10336 *) enable_dlopen_self=unknown ;;
10337 esac
10339 case $lt_cv_dlopen_self_static in
10340 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10341 *) enable_dlopen_self_static=unknown ;;
10342 esac
10346 # Report which library types will actually be built
10347 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10348 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
10349 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
10350 echo "${ECHO_T}$can_build_shared" >&6; }
10352 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10353 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
10354 test "$can_build_shared" = "no" && enable_shared=no
10356 # On AIX, shared libraries and static libraries use the same namespace, and
10357 # are all built from PIC.
10358 case $host_os in
10359 aix3*)
10360 test "$enable_shared" = yes && enable_static=no
10361 if test -n "$RANLIB"; then
10362 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10363 postinstall_cmds='$RANLIB $lib'
10367 aix4* | aix5*)
10368 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10369 test "$enable_shared" = yes && enable_static=no
10372 esac
10373 { echo "$as_me:$LINENO: result: $enable_shared" >&5
10374 echo "${ECHO_T}$enable_shared" >&6; }
10376 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10377 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
10378 # Make sure either enable_shared or enable_static is yes.
10379 test "$enable_shared" = yes || enable_static=yes
10380 { echo "$as_me:$LINENO: result: $enable_static" >&5
10381 echo "${ECHO_T}$enable_static" >&6; }
10383 # The else clause should only fire when bootstrapping the
10384 # libtool distribution, otherwise you forgot to ship ltmain.sh
10385 # with your package, and you will get complaints that there are
10386 # no rules to generate ltmain.sh.
10387 if test -f "$ltmain"; then
10388 # See if we are running on zsh, and set the options which allow our commands through
10389 # without removal of \ escapes.
10390 if test -n "${ZSH_VERSION+set}" ; then
10391 setopt NO_GLOB_SUBST
10393 # Now quote all the things that may contain metacharacters while being
10394 # careful not to overquote the AC_SUBSTed values. We take copies of the
10395 # variables and quote the copies for generation of the libtool script.
10396 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10397 SED SHELL STRIP \
10398 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10399 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10400 deplibs_check_method reload_flag reload_cmds need_locks \
10401 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10402 lt_cv_sys_global_symbol_to_c_name_address \
10403 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10404 old_postinstall_cmds old_postuninstall_cmds \
10405 compiler \
10406 CC \
10407 LD \
10408 lt_prog_compiler_wl \
10409 lt_prog_compiler_pic \
10410 lt_prog_compiler_static \
10411 lt_prog_compiler_no_builtin_flag \
10412 export_dynamic_flag_spec \
10413 thread_safe_flag_spec \
10414 whole_archive_flag_spec \
10415 enable_shared_with_static_runtimes \
10416 old_archive_cmds \
10417 old_archive_from_new_cmds \
10418 predep_objects \
10419 postdep_objects \
10420 predeps \
10421 postdeps \
10422 compiler_lib_search_path \
10423 archive_cmds \
10424 archive_expsym_cmds \
10425 postinstall_cmds \
10426 postuninstall_cmds \
10427 old_archive_from_expsyms_cmds \
10428 allow_undefined_flag \
10429 no_undefined_flag \
10430 export_symbols_cmds \
10431 hardcode_libdir_flag_spec \
10432 hardcode_libdir_flag_spec_ld \
10433 hardcode_libdir_separator \
10434 hardcode_automatic \
10435 module_cmds \
10436 module_expsym_cmds \
10437 lt_cv_prog_compiler_c_o \
10438 exclude_expsyms \
10439 include_expsyms; do
10441 case $var in
10442 old_archive_cmds | \
10443 old_archive_from_new_cmds | \
10444 archive_cmds | \
10445 archive_expsym_cmds | \
10446 module_cmds | \
10447 module_expsym_cmds | \
10448 old_archive_from_expsyms_cmds | \
10449 export_symbols_cmds | \
10450 extract_expsyms_cmds | reload_cmds | finish_cmds | \
10451 postinstall_cmds | postuninstall_cmds | \
10452 old_postinstall_cmds | old_postuninstall_cmds | \
10453 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10454 # Double-quote double-evaled strings.
10455 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10458 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10460 esac
10461 done
10463 case $lt_echo in
10464 *'\$0 --fallback-echo"')
10465 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10467 esac
10469 cfgfile="${ofile}T"
10470 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10471 $rm -f "$cfgfile"
10472 { echo "$as_me:$LINENO: creating $ofile" >&5
10473 echo "$as_me: creating $ofile" >&6;}
10475 cat <<__EOF__ >> "$cfgfile"
10476 #! $SHELL
10478 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10479 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10480 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
10482 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
10483 # Free Software Foundation, Inc.
10485 # This file is part of GNU Libtool:
10486 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10488 # This program is free software; you can redistribute it and/or modify
10489 # it under the terms of the GNU General Public License as published by
10490 # the Free Software Foundation; either version 2 of the License, or
10491 # (at your option) any later version.
10493 # This program is distributed in the hope that it will be useful, but
10494 # WITHOUT ANY WARRANTY; without even the implied warranty of
10495 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
10496 # General Public License for more details.
10498 # You should have received a copy of the GNU General Public License
10499 # along with this program; if not, write to the Free Software
10500 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10502 # As a special exception to the GNU General Public License, if you
10503 # distribute this file as part of a program that contains a
10504 # configuration script generated by Autoconf, you may include it under
10505 # the same distribution terms that you use for the rest of that program.
10507 # A sed program that does not truncate output.
10508 SED=$lt_SED
10510 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
10511 Xsed="$SED -e 1s/^X//"
10513 # The HP-UX ksh and POSIX shell print the target directory to stdout
10514 # if CDPATH is set.
10515 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10517 # The names of the tagged configurations supported by this script.
10518 available_tags=
10520 # ### BEGIN LIBTOOL CONFIG
10522 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10524 # Shell to use when invoking shell scripts.
10525 SHELL=$lt_SHELL
10527 # Whether or not to build shared libraries.
10528 build_libtool_libs=$enable_shared
10530 # Whether or not to build static libraries.
10531 build_old_libs=$enable_static
10533 # Whether or not to add -lc for building shared libraries.
10534 build_libtool_need_lc=$archive_cmds_need_lc
10536 # Whether or not to disallow shared libs when runtime libs are static
10537 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10539 # Whether or not to optimize for fast installation.
10540 fast_install=$enable_fast_install
10542 # The host system.
10543 host_alias=$host_alias
10544 host=$host
10545 host_os=$host_os
10547 # The build system.
10548 build_alias=$build_alias
10549 build=$build
10550 build_os=$build_os
10552 # An echo program that does not interpret backslashes.
10553 echo=$lt_echo
10555 # The archiver.
10556 AR=$lt_AR
10557 AR_FLAGS=$lt_AR_FLAGS
10559 # A C compiler.
10560 LTCC=$lt_LTCC
10562 # LTCC compiler flags.
10563 LTCFLAGS=$lt_LTCFLAGS
10565 # A language-specific compiler.
10566 CC=$lt_compiler
10568 # Is the compiler the GNU C compiler?
10569 with_gcc=$GCC
10571 # An ERE matcher.
10572 EGREP=$lt_EGREP
10574 # The linker used to build libraries.
10575 LD=$lt_LD
10577 # Whether we need hard or soft links.
10578 LN_S=$lt_LN_S
10580 # A BSD-compatible nm program.
10581 NM=$lt_NM
10583 # A symbol stripping program
10584 STRIP=$lt_STRIP
10586 # Used to examine libraries when file_magic_cmd begins "file"
10587 MAGIC_CMD=$MAGIC_CMD
10589 # Used on cygwin: DLL creation program.
10590 DLLTOOL="$DLLTOOL"
10592 # Used on cygwin: object dumper.
10593 OBJDUMP="$OBJDUMP"
10595 # Used on cygwin: assembler.
10596 AS="$AS"
10598 # The name of the directory that contains temporary libtool files.
10599 objdir=$objdir
10601 # How to create reloadable object files.
10602 reload_flag=$lt_reload_flag
10603 reload_cmds=$lt_reload_cmds
10605 # How to pass a linker flag through the compiler.
10606 wl=$lt_lt_prog_compiler_wl
10608 # Object file suffix (normally "o").
10609 objext="$ac_objext"
10611 # Old archive suffix (normally "a").
10612 libext="$libext"
10614 # Shared library suffix (normally ".so").
10615 shrext_cmds='$shrext_cmds'
10617 # Executable file suffix (normally "").
10618 exeext="$exeext"
10620 # Additional compiler flags for building library objects.
10621 pic_flag=$lt_lt_prog_compiler_pic
10622 pic_mode=$pic_mode
10624 # What is the maximum length of a command?
10625 max_cmd_len=$lt_cv_sys_max_cmd_len
10627 # Does compiler simultaneously support -c and -o options?
10628 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10630 # Must we lock files when doing compilation?
10631 need_locks=$lt_need_locks
10633 # Do we need the lib prefix for modules?
10634 need_lib_prefix=$need_lib_prefix
10636 # Do we need a version for libraries?
10637 need_version=$need_version
10639 # Whether dlopen is supported.
10640 dlopen_support=$enable_dlopen
10642 # Whether dlopen of programs is supported.
10643 dlopen_self=$enable_dlopen_self
10645 # Whether dlopen of statically linked programs is supported.
10646 dlopen_self_static=$enable_dlopen_self_static
10648 # Compiler flag to prevent dynamic linking.
10649 link_static_flag=$lt_lt_prog_compiler_static
10651 # Compiler flag to turn off builtin functions.
10652 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10654 # Compiler flag to allow reflexive dlopens.
10655 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10657 # Compiler flag to generate shared objects directly from archives.
10658 whole_archive_flag_spec=$lt_whole_archive_flag_spec
10660 # Compiler flag to generate thread-safe objects.
10661 thread_safe_flag_spec=$lt_thread_safe_flag_spec
10663 # Library versioning type.
10664 version_type=$version_type
10666 # Format of library name prefix.
10667 libname_spec=$lt_libname_spec
10669 # List of archive names. First name is the real one, the rest are links.
10670 # The last name is the one that the linker finds with -lNAME.
10671 library_names_spec=$lt_library_names_spec
10673 # The coded name of the library, if different from the real name.
10674 soname_spec=$lt_soname_spec
10676 # Commands used to build and install an old-style archive.
10677 RANLIB=$lt_RANLIB
10678 old_archive_cmds=$lt_old_archive_cmds
10679 old_postinstall_cmds=$lt_old_postinstall_cmds
10680 old_postuninstall_cmds=$lt_old_postuninstall_cmds
10682 # Create an old-style archive from a shared archive.
10683 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10685 # Create a temporary old-style archive to link instead of a shared archive.
10686 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10688 # Commands used to build and install a shared archive.
10689 archive_cmds=$lt_archive_cmds
10690 archive_expsym_cmds=$lt_archive_expsym_cmds
10691 postinstall_cmds=$lt_postinstall_cmds
10692 postuninstall_cmds=$lt_postuninstall_cmds
10694 # Commands used to build a loadable module (assumed same as above if empty)
10695 module_cmds=$lt_module_cmds
10696 module_expsym_cmds=$lt_module_expsym_cmds
10698 # Commands to strip libraries.
10699 old_striplib=$lt_old_striplib
10700 striplib=$lt_striplib
10702 # Dependencies to place before the objects being linked to create a
10703 # shared library.
10704 predep_objects=$lt_predep_objects
10706 # Dependencies to place after the objects being linked to create a
10707 # shared library.
10708 postdep_objects=$lt_postdep_objects
10710 # Dependencies to place before the objects being linked to create a
10711 # shared library.
10712 predeps=$lt_predeps
10714 # Dependencies to place after the objects being linked to create a
10715 # shared library.
10716 postdeps=$lt_postdeps
10718 # The library search path used internally by the compiler when linking
10719 # a shared library.
10720 compiler_lib_search_path=$lt_compiler_lib_search_path
10722 # Method to check whether dependent libraries are shared objects.
10723 deplibs_check_method=$lt_deplibs_check_method
10725 # Command to use when deplibs_check_method == file_magic.
10726 file_magic_cmd=$lt_file_magic_cmd
10728 # Flag that allows shared libraries with undefined symbols to be built.
10729 allow_undefined_flag=$lt_allow_undefined_flag
10731 # Flag that forces no undefined symbols.
10732 no_undefined_flag=$lt_no_undefined_flag
10734 # Commands used to finish a libtool library installation in a directory.
10735 finish_cmds=$lt_finish_cmds
10737 # Same as above, but a single script fragment to be evaled but not shown.
10738 finish_eval=$lt_finish_eval
10740 # Take the output of nm and produce a listing of raw symbols and C names.
10741 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10743 # Transform the output of nm in a proper C declaration
10744 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10746 # Transform the output of nm in a C name address pair
10747 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10749 # This is the shared library runtime path variable.
10750 runpath_var=$runpath_var
10752 # This is the shared library path variable.
10753 shlibpath_var=$shlibpath_var
10755 # Is shlibpath searched before the hard-coded library search path?
10756 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10758 # How to hardcode a shared library path into an executable.
10759 hardcode_action=$hardcode_action
10761 # Whether we should hardcode library paths into libraries.
10762 hardcode_into_libs=$hardcode_into_libs
10764 # Flag to hardcode \$libdir into a binary during linking.
10765 # This must work even if \$libdir does not exist.
10766 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10768 # If ld is used when linking, flag to hardcode \$libdir into
10769 # a binary during linking. This must work even if \$libdir does
10770 # not exist.
10771 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10773 # Whether we need a single -rpath flag with a separated argument.
10774 hardcode_libdir_separator=$lt_hardcode_libdir_separator
10776 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10777 # resulting binary.
10778 hardcode_direct=$hardcode_direct
10780 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10781 # resulting binary.
10782 hardcode_minus_L=$hardcode_minus_L
10784 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10785 # the resulting binary.
10786 hardcode_shlibpath_var=$hardcode_shlibpath_var
10788 # Set to yes if building a shared library automatically hardcodes DIR into the library
10789 # and all subsequent libraries and executables linked against it.
10790 hardcode_automatic=$hardcode_automatic
10792 # Variables whose values should be saved in libtool wrapper scripts and
10793 # restored at relink time.
10794 variables_saved_for_relink="$variables_saved_for_relink"
10796 # Whether libtool must link a program against all its dependency libraries.
10797 link_all_deplibs=$link_all_deplibs
10799 # Compile-time system search path for libraries
10800 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10802 # Run-time system search path for libraries
10803 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10805 # Fix the shell variable \$srcfile for the compiler.
10806 fix_srcfile_path="$fix_srcfile_path"
10808 # Set to yes if exported symbols are required.
10809 always_export_symbols=$always_export_symbols
10811 # The commands to list exported symbols.
10812 export_symbols_cmds=$lt_export_symbols_cmds
10814 # The commands to extract the exported symbol list from a shared archive.
10815 extract_expsyms_cmds=$lt_extract_expsyms_cmds
10817 # Symbols that should not be listed in the preloaded symbols.
10818 exclude_expsyms=$lt_exclude_expsyms
10820 # Symbols that must always be exported.
10821 include_expsyms=$lt_include_expsyms
10823 # ### END LIBTOOL CONFIG
10825 __EOF__
10828 case $host_os in
10829 aix3*)
10830 cat <<\EOF >> "$cfgfile"
10832 # AIX sometimes has problems with the GCC collect2 program. For some
10833 # reason, if we set the COLLECT_NAMES environment variable, the problems
10834 # vanish in a puff of smoke.
10835 if test "X${COLLECT_NAMES+set}" != Xset; then
10836 COLLECT_NAMES=
10837 export COLLECT_NAMES
10841 esac
10843 # We use sed instead of cat because bash on DJGPP gets confused if
10844 # if finds mixed CR/LF and LF-only lines. Since sed operates in
10845 # text mode, it properly converts lines to CR/LF. This bash problem
10846 # is reportedly fixed, but why not run on old versions too?
10847 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10849 mv -f "$cfgfile" "$ofile" || \
10850 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10851 chmod +x "$ofile"
10853 else
10854 # If there is no Makefile yet, we rely on a make rule to execute
10855 # `config.status --recheck' to rerun these tests and create the
10856 # libtool script then.
10857 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10858 if test -f "$ltmain_in"; then
10859 test -f Makefile && make "$ltmain"
10864 ac_ext=cpp
10865 ac_cpp='$CXXCPP $CPPFLAGS'
10866 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10867 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10868 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10870 CC="$lt_save_CC"
10873 # Check whether --with-tags was given.
10874 if test "${with_tags+set}" = set; then
10875 withval=$with_tags; tagnames="$withval"
10879 if test -f "$ltmain" && test -n "$tagnames"; then
10880 if test ! -f "${ofile}"; then
10881 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
10882 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
10885 if test -z "$LTCC"; then
10886 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
10887 if test -z "$LTCC"; then
10888 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10889 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
10890 else
10891 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
10892 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
10895 if test -z "$LTCFLAGS"; then
10896 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
10899 # Extract list of available tagged configurations in $ofile.
10900 # Note that this assumes the entire list is on one line.
10901 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10903 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10904 for tagname in $tagnames; do
10905 IFS="$lt_save_ifs"
10906 # Check whether tagname contains only valid characters
10907 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
10908 "") ;;
10909 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
10910 echo "$as_me: error: invalid tag name: $tagname" >&2;}
10911 { (exit 1); exit 1; }; }
10913 esac
10915 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
10916 then
10917 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
10918 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
10919 { (exit 1); exit 1; }; }
10922 # Update the list of available tags.
10923 if test -n "$tagname"; then
10924 echo appending configuration tag \"$tagname\" to $ofile
10926 case $tagname in
10927 CXX)
10928 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10929 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10930 (test "X$CXX" != "Xg++"))) ; then
10931 ac_ext=cpp
10932 ac_cpp='$CXXCPP $CPPFLAGS'
10933 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10934 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10935 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10940 archive_cmds_need_lc_CXX=no
10941 allow_undefined_flag_CXX=
10942 always_export_symbols_CXX=no
10943 archive_expsym_cmds_CXX=
10944 export_dynamic_flag_spec_CXX=
10945 hardcode_direct_CXX=no
10946 hardcode_libdir_flag_spec_CXX=
10947 hardcode_libdir_flag_spec_ld_CXX=
10948 hardcode_libdir_separator_CXX=
10949 hardcode_minus_L_CXX=no
10950 hardcode_shlibpath_var_CXX=unsupported
10951 hardcode_automatic_CXX=no
10952 module_cmds_CXX=
10953 module_expsym_cmds_CXX=
10954 link_all_deplibs_CXX=unknown
10955 old_archive_cmds_CXX=$old_archive_cmds
10956 no_undefined_flag_CXX=
10957 whole_archive_flag_spec_CXX=
10958 enable_shared_with_static_runtimes_CXX=no
10960 # Dependencies to place before and after the object being linked:
10961 predep_objects_CXX=
10962 postdep_objects_CXX=
10963 predeps_CXX=
10964 postdeps_CXX=
10965 compiler_lib_search_path_CXX=
10967 # Source file extension for C++ test sources.
10968 ac_ext=cpp
10970 # Object file extension for compiled C++ test sources.
10971 objext=o
10972 objext_CXX=$objext
10974 # Code to be used in simple compile tests
10975 lt_simple_compile_test_code="int some_variable = 0;\n"
10977 # Code to be used in simple link tests
10978 lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
10980 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
10982 # If no C compiler was specified, use CC.
10983 LTCC=${LTCC-"$CC"}
10985 # If no C compiler flags were specified, use CFLAGS.
10986 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10988 # Allow CC to be a program name with arguments.
10989 compiler=$CC
10992 # save warnings/boilerplate of simple test code
10993 ac_outfile=conftest.$ac_objext
10994 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
10995 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10996 _lt_compiler_boilerplate=`cat conftest.err`
10997 $rm conftest*
10999 ac_outfile=conftest.$ac_objext
11000 printf "$lt_simple_link_test_code" >conftest.$ac_ext
11001 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11002 _lt_linker_boilerplate=`cat conftest.err`
11003 $rm conftest*
11006 # Allow CC to be a program name with arguments.
11007 lt_save_CC=$CC
11008 lt_save_LD=$LD
11009 lt_save_GCC=$GCC
11010 GCC=$GXX
11011 lt_save_with_gnu_ld=$with_gnu_ld
11012 lt_save_path_LD=$lt_cv_path_LD
11013 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11014 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11015 else
11016 $as_unset lt_cv_prog_gnu_ld
11018 if test -n "${lt_cv_path_LDCXX+set}"; then
11019 lt_cv_path_LD=$lt_cv_path_LDCXX
11020 else
11021 $as_unset lt_cv_path_LD
11023 test -z "${LDCXX+set}" || LD=$LDCXX
11024 CC=${CXX-"c++"}
11025 compiler=$CC
11026 compiler_CXX=$CC
11027 for cc_temp in $compiler""; do
11028 case $cc_temp in
11029 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11030 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11031 \-*) ;;
11032 *) break;;
11033 esac
11034 done
11035 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11038 # We don't want -fno-exception wen compiling C++ code, so set the
11039 # no_builtin_flag separately
11040 if test "$GXX" = yes; then
11041 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11042 else
11043 lt_prog_compiler_no_builtin_flag_CXX=
11046 if test "$GXX" = yes; then
11047 # Set up default GNU C++ configuration
11050 # Check whether --with-gnu-ld was given.
11051 if test "${with_gnu_ld+set}" = set; then
11052 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11053 else
11054 with_gnu_ld=no
11057 ac_prog=ld
11058 if test "$GCC" = yes; then
11059 # Check if gcc -print-prog-name=ld gives a path.
11060 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
11061 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
11062 case $host in
11063 *-*-mingw*)
11064 # gcc leaves a trailing carriage return which upsets mingw
11065 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11067 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11068 esac
11069 case $ac_prog in
11070 # Accept absolute paths.
11071 [\\/]* | ?:[\\/]*)
11072 re_direlt='/[^/][^/]*/\.\./'
11073 # Canonicalize the pathname of ld
11074 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
11075 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11076 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
11077 done
11078 test -z "$LD" && LD="$ac_prog"
11081 # If it fails, then pretend we aren't using GCC.
11082 ac_prog=ld
11085 # If it is relative, then search for the first ld in PATH.
11086 with_gnu_ld=unknown
11088 esac
11089 elif test "$with_gnu_ld" = yes; then
11090 { echo "$as_me:$LINENO: checking for GNU ld" >&5
11091 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
11092 else
11093 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
11094 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
11096 if test "${lt_cv_path_LD+set}" = set; then
11097 echo $ECHO_N "(cached) $ECHO_C" >&6
11098 else
11099 if test -z "$LD"; then
11100 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11101 for ac_dir in $PATH; do
11102 IFS="$lt_save_ifs"
11103 test -z "$ac_dir" && ac_dir=.
11104 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11105 lt_cv_path_LD="$ac_dir/$ac_prog"
11106 # Check to see if the program is GNU ld. I'd rather use --version,
11107 # but apparently some variants of GNU ld only accept -v.
11108 # Break only if it was the GNU/non-GNU ld that we prefer.
11109 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11110 *GNU* | *'with BFD'*)
11111 test "$with_gnu_ld" != no && break
11114 test "$with_gnu_ld" != yes && break
11116 esac
11118 done
11119 IFS="$lt_save_ifs"
11120 else
11121 lt_cv_path_LD="$LD" # Let the user override the test with a path.
11125 LD="$lt_cv_path_LD"
11126 if test -n "$LD"; then
11127 { echo "$as_me:$LINENO: result: $LD" >&5
11128 echo "${ECHO_T}$LD" >&6; }
11129 else
11130 { echo "$as_me:$LINENO: result: no" >&5
11131 echo "${ECHO_T}no" >&6; }
11133 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
11134 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
11135 { (exit 1); exit 1; }; }
11136 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
11137 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
11138 if test "${lt_cv_prog_gnu_ld+set}" = set; then
11139 echo $ECHO_N "(cached) $ECHO_C" >&6
11140 else
11141 # I'd rather use --version here, but apparently some GNU lds only accept -v.
11142 case `$LD -v 2>&1 </dev/null` in
11143 *GNU* | *'with BFD'*)
11144 lt_cv_prog_gnu_ld=yes
11147 lt_cv_prog_gnu_ld=no
11149 esac
11151 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
11152 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
11153 with_gnu_ld=$lt_cv_prog_gnu_ld
11157 # Check if GNU C++ uses GNU ld as the underlying linker, since the
11158 # archiving commands below assume that GNU ld is being used.
11159 if test "$with_gnu_ld" = yes; then
11160 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11161 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'
11163 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11164 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11166 # If archive_cmds runs LD, not CC, wlarc should be empty
11167 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11168 # investigate it a little bit more. (MM)
11169 wlarc='${wl}'
11171 # ancient GNU ld didn't support --whole-archive et. al.
11172 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
11173 grep 'no-whole-archive' > /dev/null; then
11174 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11175 else
11176 whole_archive_flag_spec_CXX=
11178 else
11179 with_gnu_ld=no
11180 wlarc=
11182 # A generic and very simple default shared library creation
11183 # command for GNU C++ for the case where it uses the native
11184 # linker, instead of GNU ld. If possible, this setting should
11185 # overridden to take advantage of the native linker features on
11186 # the platform it is being used on.
11187 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11190 # Commands to make compiler produce verbose output that lists
11191 # what "hidden" libraries, object files and flags are used when
11192 # linking a shared library.
11193 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11195 else
11196 GXX=no
11197 with_gnu_ld=no
11198 wlarc=
11201 # PORTME: fill in a description of your system's C++ link characteristics
11202 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11203 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
11204 ld_shlibs_CXX=yes
11205 case $host_os in
11206 aix3*)
11207 # FIXME: insert proper C++ library support
11208 ld_shlibs_CXX=no
11210 aix4* | aix5*)
11211 if test "$host_cpu" = ia64; then
11212 # On IA64, the linker does run time linking by default, so we don't
11213 # have to do anything special.
11214 aix_use_runtimelinking=no
11215 exp_sym_flag='-Bexport'
11216 no_entry_flag=""
11217 else
11218 aix_use_runtimelinking=no
11220 # Test if we are trying to use run time linking or normal
11221 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11222 # need to do runtime linking.
11223 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
11224 for ld_flag in $LDFLAGS; do
11225 case $ld_flag in
11226 *-brtl*)
11227 aix_use_runtimelinking=yes
11228 break
11230 esac
11231 done
11233 esac
11235 exp_sym_flag='-bexport'
11236 no_entry_flag='-bnoentry'
11239 # When large executables or shared objects are built, AIX ld can
11240 # have problems creating the table of contents. If linking a library
11241 # or program results in "error TOC overflow" add -mminimal-toc to
11242 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11243 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11245 archive_cmds_CXX=''
11246 hardcode_direct_CXX=yes
11247 hardcode_libdir_separator_CXX=':'
11248 link_all_deplibs_CXX=yes
11250 if test "$GXX" = yes; then
11251 case $host_os in aix4.[012]|aix4.[012].*)
11252 # We only want to do this on AIX 4.2 and lower, the check
11253 # below for broken collect2 doesn't work under 4.3+
11254 collect2name=`${CC} -print-prog-name=collect2`
11255 if test -f "$collect2name" && \
11256 strings "$collect2name" | grep resolve_lib_name >/dev/null
11257 then
11258 # We have reworked collect2
11259 hardcode_direct_CXX=yes
11260 else
11261 # We have old collect2
11262 hardcode_direct_CXX=unsupported
11263 # It fails to find uninstalled libraries when the uninstalled
11264 # path is not listed in the libpath. Setting hardcode_minus_L
11265 # to unsupported forces relinking
11266 hardcode_minus_L_CXX=yes
11267 hardcode_libdir_flag_spec_CXX='-L$libdir'
11268 hardcode_libdir_separator_CXX=
11271 esac
11272 shared_flag='-shared'
11273 if test "$aix_use_runtimelinking" = yes; then
11274 shared_flag="$shared_flag "'${wl}-G'
11276 else
11277 # not using gcc
11278 if test "$host_cpu" = ia64; then
11279 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11280 # chokes on -Wl,-G. The following line is correct:
11281 shared_flag='-G'
11282 else
11283 if test "$aix_use_runtimelinking" = yes; then
11284 shared_flag='${wl}-G'
11285 else
11286 shared_flag='${wl}-bM:SRE'
11291 # It seems that -bexpall does not export symbols beginning with
11292 # underscore (_), so it is better to generate a list of symbols to export.
11293 always_export_symbols_CXX=yes
11294 if test "$aix_use_runtimelinking" = yes; then
11295 # Warning - without using the other runtime loading flags (-brtl),
11296 # -berok will link without error, but may produce a broken library.
11297 allow_undefined_flag_CXX='-berok'
11298 # Determine the default libpath from the value encoded in an empty executable.
11299 cat >conftest.$ac_ext <<_ACEOF
11300 /* confdefs.h. */
11301 _ACEOF
11302 cat confdefs.h >>conftest.$ac_ext
11303 cat >>conftest.$ac_ext <<_ACEOF
11304 /* end confdefs.h. */
11307 main ()
11311 return 0;
11313 _ACEOF
11314 rm -f conftest.$ac_objext conftest$ac_exeext
11315 if { (ac_try="$ac_link"
11316 case "(($ac_try" in
11317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11318 *) ac_try_echo=$ac_try;;
11319 esac
11320 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11321 (eval "$ac_link") 2>conftest.er1
11322 ac_status=$?
11323 grep -v '^ *+' conftest.er1 >conftest.err
11324 rm -f conftest.er1
11325 cat conftest.err >&5
11326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11327 (exit $ac_status); } &&
11328 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11329 { (case "(($ac_try" in
11330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11331 *) ac_try_echo=$ac_try;;
11332 esac
11333 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11334 (eval "$ac_try") 2>&5
11335 ac_status=$?
11336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11337 (exit $ac_status); }; } &&
11338 { ac_try='test -s conftest$ac_exeext'
11339 { (case "(($ac_try" in
11340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11341 *) ac_try_echo=$ac_try;;
11342 esac
11343 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11344 (eval "$ac_try") 2>&5
11345 ac_status=$?
11346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11347 (exit $ac_status); }; }; then
11349 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
11351 # Check for a 64-bit object if we didn't find anything.
11352 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; }
11353 }'`; fi
11354 else
11355 echo "$as_me: failed program was:" >&5
11356 sed 's/^/| /' conftest.$ac_ext >&5
11361 rm -f core conftest.err conftest.$ac_objext \
11362 conftest$ac_exeext conftest.$ac_ext
11363 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11365 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11367 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"
11368 else
11369 if test "$host_cpu" = ia64; then
11370 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11371 allow_undefined_flag_CXX="-z nodefs"
11372 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"
11373 else
11374 # Determine the default libpath from the value encoded in an empty executable.
11375 cat >conftest.$ac_ext <<_ACEOF
11376 /* confdefs.h. */
11377 _ACEOF
11378 cat confdefs.h >>conftest.$ac_ext
11379 cat >>conftest.$ac_ext <<_ACEOF
11380 /* end confdefs.h. */
11383 main ()
11387 return 0;
11389 _ACEOF
11390 rm -f conftest.$ac_objext conftest$ac_exeext
11391 if { (ac_try="$ac_link"
11392 case "(($ac_try" in
11393 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11394 *) ac_try_echo=$ac_try;;
11395 esac
11396 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11397 (eval "$ac_link") 2>conftest.er1
11398 ac_status=$?
11399 grep -v '^ *+' conftest.er1 >conftest.err
11400 rm -f conftest.er1
11401 cat conftest.err >&5
11402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11403 (exit $ac_status); } &&
11404 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11405 { (case "(($ac_try" in
11406 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11407 *) ac_try_echo=$ac_try;;
11408 esac
11409 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11410 (eval "$ac_try") 2>&5
11411 ac_status=$?
11412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11413 (exit $ac_status); }; } &&
11414 { ac_try='test -s conftest$ac_exeext'
11415 { (case "(($ac_try" in
11416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11417 *) ac_try_echo=$ac_try;;
11418 esac
11419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11420 (eval "$ac_try") 2>&5
11421 ac_status=$?
11422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11423 (exit $ac_status); }; }; then
11425 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
11427 # Check for a 64-bit object if we didn't find anything.
11428 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; }
11429 }'`; fi
11430 else
11431 echo "$as_me: failed program was:" >&5
11432 sed 's/^/| /' conftest.$ac_ext >&5
11437 rm -f core conftest.err conftest.$ac_objext \
11438 conftest$ac_exeext conftest.$ac_ext
11439 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11441 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11442 # Warning - without using the other run time loading flags,
11443 # -berok will link without error, but may produce a broken library.
11444 no_undefined_flag_CXX=' ${wl}-bernotok'
11445 allow_undefined_flag_CXX=' ${wl}-berok'
11446 # Exported symbols can be pulled into shared objects from archives
11447 whole_archive_flag_spec_CXX='$convenience'
11448 archive_cmds_need_lc_CXX=yes
11449 # This is similar to how AIX traditionally builds its shared libraries.
11450 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'
11455 beos*)
11456 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11457 allow_undefined_flag_CXX=unsupported
11458 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11459 # support --undefined. This deserves some investigation. FIXME
11460 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11461 else
11462 ld_shlibs_CXX=no
11466 chorus*)
11467 case $cc_basename in
11469 # FIXME: insert proper C++ library support
11470 ld_shlibs_CXX=no
11472 esac
11475 cygwin* | mingw* | pw32*)
11476 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11477 # as there is no search path for DLLs.
11478 hardcode_libdir_flag_spec_CXX='-L$libdir'
11479 allow_undefined_flag_CXX=unsupported
11480 always_export_symbols_CXX=no
11481 enable_shared_with_static_runtimes_CXX=yes
11483 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11484 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'
11485 # If the export-symbols file already is a .def file (1st line
11486 # is EXPORTS), use it as is; otherwise, prepend...
11487 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11488 cp $export_symbols $output_objdir/$soname.def;
11489 else
11490 echo EXPORTS > $output_objdir/$soname.def;
11491 cat $export_symbols >> $output_objdir/$soname.def;
11493 $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'
11494 else
11495 ld_shlibs_CXX=no
11498 darwin* | rhapsody*)
11499 case $host_os in
11500 rhapsody* | darwin1.[012])
11501 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
11503 *) # Darwin 1.3 on
11504 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
11505 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11506 else
11507 case ${MACOSX_DEPLOYMENT_TARGET} in
11508 10.[012])
11509 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11511 10.*)
11512 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
11514 esac
11517 esac
11518 archive_cmds_need_lc_CXX=no
11519 hardcode_direct_CXX=no
11520 hardcode_automatic_CXX=yes
11521 hardcode_shlibpath_var_CXX=unsupported
11522 whole_archive_flag_spec_CXX=''
11523 link_all_deplibs_CXX=yes
11525 if test "$GXX" = yes ; then
11526 lt_int_apple_cc_single_mod=no
11527 output_verbose_link_cmd='echo'
11528 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
11529 lt_int_apple_cc_single_mod=yes
11531 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11532 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
11533 else
11534 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'
11536 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11537 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11538 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11539 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}'
11540 else
11541 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}'
11543 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}'
11544 else
11545 case $cc_basename in
11546 xlc*)
11547 output_verbose_link_cmd='echo'
11548 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'
11549 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11550 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11551 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}'
11552 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}'
11555 ld_shlibs_CXX=no
11557 esac
11561 dgux*)
11562 case $cc_basename in
11563 ec++*)
11564 # FIXME: insert proper C++ library support
11565 ld_shlibs_CXX=no
11567 ghcx*)
11568 # Green Hills C++ Compiler
11569 # FIXME: insert proper C++ library support
11570 ld_shlibs_CXX=no
11573 # FIXME: insert proper C++ library support
11574 ld_shlibs_CXX=no
11576 esac
11578 freebsd[12]*)
11579 # C++ shared libraries reported to be fairly broken before switch to ELF
11580 ld_shlibs_CXX=no
11582 freebsd-elf*)
11583 archive_cmds_need_lc_CXX=no
11585 freebsd* | kfreebsd*-gnu | dragonfly*)
11586 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11587 # conventions
11588 ld_shlibs_CXX=yes
11590 gnu*)
11592 hpux9*)
11593 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11594 hardcode_libdir_separator_CXX=:
11595 export_dynamic_flag_spec_CXX='${wl}-E'
11596 hardcode_direct_CXX=yes
11597 hardcode_minus_L_CXX=yes # Not in the search PATH,
11598 # but as the default
11599 # location of the library.
11601 case $cc_basename in
11602 CC*)
11603 # FIXME: insert proper C++ library support
11604 ld_shlibs_CXX=no
11606 aCC*)
11607 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'
11608 # Commands to make compiler produce verbose output that lists
11609 # what "hidden" libraries, object files and flags are used when
11610 # linking a shared library.
11612 # There doesn't appear to be a way to prevent this compiler from
11613 # explicitly linking system object files so we need to strip them
11614 # from the output so that they don't get included in the library
11615 # dependencies.
11616 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'
11619 if test "$GXX" = yes; then
11620 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'
11621 else
11622 # FIXME: insert proper C++ library support
11623 ld_shlibs_CXX=no
11626 esac
11628 hpux10*|hpux11*)
11629 if test $with_gnu_ld = no; then
11630 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11631 hardcode_libdir_separator_CXX=:
11633 case $host_cpu in
11634 hppa*64*|ia64*)
11635 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
11638 export_dynamic_flag_spec_CXX='${wl}-E'
11640 esac
11642 case $host_cpu in
11643 hppa*64*|ia64*)
11644 hardcode_direct_CXX=no
11645 hardcode_shlibpath_var_CXX=no
11648 hardcode_direct_CXX=yes
11649 hardcode_minus_L_CXX=yes # Not in the search PATH,
11650 # but as the default
11651 # location of the library.
11653 esac
11655 case $cc_basename in
11656 CC*)
11657 # FIXME: insert proper C++ library support
11658 ld_shlibs_CXX=no
11660 aCC*)
11661 case $host_cpu in
11662 hppa*64*)
11663 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11665 ia64*)
11666 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11669 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11671 esac
11672 # Commands to make compiler produce verbose output that lists
11673 # what "hidden" libraries, object files and flags are used when
11674 # linking a shared library.
11676 # There doesn't appear to be a way to prevent this compiler from
11677 # explicitly linking system object files so we need to strip them
11678 # from the output so that they don't get included in the library
11679 # dependencies.
11680 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'
11683 if test "$GXX" = yes; then
11684 if test $with_gnu_ld = no; then
11685 case $host_cpu in
11686 hppa*64*)
11687 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11689 ia64*)
11690 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11693 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'
11695 esac
11697 else
11698 # FIXME: insert proper C++ library support
11699 ld_shlibs_CXX=no
11702 esac
11704 interix3*)
11705 hardcode_direct_CXX=no
11706 hardcode_shlibpath_var_CXX=no
11707 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11708 export_dynamic_flag_spec_CXX='${wl}-E'
11709 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11710 # Instead, shared libraries are loaded at an image base (0x10000000 by
11711 # default) and relocated if they conflict, which is a slow very memory
11712 # consuming and fragmenting process. To avoid this, we pick a random,
11713 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11714 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
11715 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'
11716 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'
11718 irix5* | irix6*)
11719 case $cc_basename in
11720 CC*)
11721 # SGI C++
11722 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'
11724 # Archives containing C++ object files must be created using
11725 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
11726 # necessary to make sure instantiated templates are included
11727 # in the archive.
11728 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11731 if test "$GXX" = yes; then
11732 if test "$with_gnu_ld" = no; then
11733 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'
11734 else
11735 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'
11738 link_all_deplibs_CXX=yes
11740 esac
11741 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11742 hardcode_libdir_separator_CXX=:
11744 linux*)
11745 case $cc_basename in
11746 KCC*)
11747 # Kuck and Associates, Inc. (KAI) C++ Compiler
11749 # KCC will only create a shared library if the output file
11750 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11751 # to its proper name (with version) after linking.
11752 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'
11753 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'
11754 # Commands to make compiler produce verbose output that lists
11755 # what "hidden" libraries, object files and flags are used when
11756 # linking a shared library.
11758 # There doesn't appear to be a way to prevent this compiler from
11759 # explicitly linking system object files so we need to strip them
11760 # from the output so that they don't get included in the library
11761 # dependencies.
11762 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'
11764 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
11765 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11767 # Archives containing C++ object files must be created using
11768 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11769 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11771 icpc*)
11772 # Intel C++
11773 with_gnu_ld=yes
11774 # version 8.0 and above of icpc choke on multiply defined symbols
11775 # if we add $predep_objects and $postdep_objects, however 7.1 and
11776 # earlier do not add the objects themselves.
11777 case `$CC -V 2>&1` in
11778 *"Version 7."*)
11779 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11780 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'
11782 *) # Version 8.0 or newer
11783 tmp_idyn=
11784 case $host_cpu in
11785 ia64*) tmp_idyn=' -i_dynamic';;
11786 esac
11787 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11788 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'
11790 esac
11791 archive_cmds_need_lc_CXX=no
11792 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11793 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11794 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11796 pgCC*)
11797 # Portland Group C++ compiler
11798 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
11799 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'
11801 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11802 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11803 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'
11805 cxx*)
11806 # Compaq C++
11807 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11808 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'
11810 runpath_var=LD_RUN_PATH
11811 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11812 hardcode_libdir_separator_CXX=:
11814 # Commands to make compiler produce verbose output that lists
11815 # what "hidden" libraries, object files and flags are used when
11816 # linking a shared library.
11818 # There doesn't appear to be a way to prevent this compiler from
11819 # explicitly linking system object files so we need to strip them
11820 # from the output so that they don't get included in the library
11821 # dependencies.
11822 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'
11824 esac
11826 lynxos*)
11827 # FIXME: insert proper C++ library support
11828 ld_shlibs_CXX=no
11830 m88k*)
11831 # FIXME: insert proper C++ library support
11832 ld_shlibs_CXX=no
11834 mvs*)
11835 case $cc_basename in
11836 cxx*)
11837 # FIXME: insert proper C++ library support
11838 ld_shlibs_CXX=no
11841 # FIXME: insert proper C++ library support
11842 ld_shlibs_CXX=no
11844 esac
11846 netbsd*)
11847 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11848 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
11849 wlarc=
11850 hardcode_libdir_flag_spec_CXX='-R$libdir'
11851 hardcode_direct_CXX=yes
11852 hardcode_shlibpath_var_CXX=no
11854 # Workaround some broken pre-1.5 toolchains
11855 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
11857 openbsd2*)
11858 # C++ shared libraries are fairly broken
11859 ld_shlibs_CXX=no
11861 openbsd*)
11862 hardcode_direct_CXX=yes
11863 hardcode_shlibpath_var_CXX=no
11864 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11865 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11866 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11867 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
11868 export_dynamic_flag_spec_CXX='${wl}-E'
11869 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11871 output_verbose_link_cmd='echo'
11873 osf3*)
11874 case $cc_basename in
11875 KCC*)
11876 # Kuck and Associates, Inc. (KAI) C++ Compiler
11878 # KCC will only create a shared library if the output file
11879 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11880 # to its proper name (with version) after linking.
11881 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'
11883 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11884 hardcode_libdir_separator_CXX=:
11886 # Archives containing C++ object files must be created using
11887 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11888 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11891 RCC*)
11892 # Rational C++ 2.4.1
11893 # FIXME: insert proper C++ library support
11894 ld_shlibs_CXX=no
11896 cxx*)
11897 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11898 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'
11900 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11901 hardcode_libdir_separator_CXX=:
11903 # Commands to make compiler produce verbose output that lists
11904 # what "hidden" libraries, object files and flags are used when
11905 # linking a shared library.
11907 # There doesn't appear to be a way to prevent this compiler from
11908 # explicitly linking system object files so we need to strip them
11909 # from the output so that they don't get included in the library
11910 # dependencies.
11911 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'
11914 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11915 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11916 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'
11918 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11919 hardcode_libdir_separator_CXX=:
11921 # Commands to make compiler produce verbose output that lists
11922 # what "hidden" libraries, object files and flags are used when
11923 # linking a shared library.
11924 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11926 else
11927 # FIXME: insert proper C++ library support
11928 ld_shlibs_CXX=no
11931 esac
11933 osf4* | osf5*)
11934 case $cc_basename in
11935 KCC*)
11936 # Kuck and Associates, Inc. (KAI) C++ Compiler
11938 # KCC will only create a shared library if the output file
11939 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11940 # to its proper name (with version) after linking.
11941 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'
11943 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11944 hardcode_libdir_separator_CXX=:
11946 # Archives containing C++ object files must be created using
11947 # the KAI C++ compiler.
11948 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
11950 RCC*)
11951 # Rational C++ 2.4.1
11952 # FIXME: insert proper C++ library support
11953 ld_shlibs_CXX=no
11955 cxx*)
11956 allow_undefined_flag_CXX=' -expect_unresolved \*'
11957 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'
11958 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
11959 echo "-hidden">> $lib.exp~
11960 $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~
11961 $rm $lib.exp'
11963 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11964 hardcode_libdir_separator_CXX=:
11966 # Commands to make compiler produce verbose output that lists
11967 # what "hidden" libraries, object files and flags are used when
11968 # linking a shared library.
11970 # There doesn't appear to be a way to prevent this compiler from
11971 # explicitly linking system object files so we need to strip them
11972 # from the output so that they don't get included in the library
11973 # dependencies.
11974 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'
11977 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11978 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11979 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'
11981 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11982 hardcode_libdir_separator_CXX=:
11984 # Commands to make compiler produce verbose output that lists
11985 # what "hidden" libraries, object files and flags are used when
11986 # linking a shared library.
11987 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11989 else
11990 # FIXME: insert proper C++ library support
11991 ld_shlibs_CXX=no
11994 esac
11996 psos*)
11997 # FIXME: insert proper C++ library support
11998 ld_shlibs_CXX=no
12000 sunos4*)
12001 case $cc_basename in
12002 CC*)
12003 # Sun C++ 4.x
12004 # FIXME: insert proper C++ library support
12005 ld_shlibs_CXX=no
12007 lcc*)
12008 # Lucid
12009 # FIXME: insert proper C++ library support
12010 ld_shlibs_CXX=no
12013 # FIXME: insert proper C++ library support
12014 ld_shlibs_CXX=no
12016 esac
12018 solaris*)
12019 case $cc_basename in
12020 CC*)
12021 # Sun C++ 4.2, 5.x and Centerline C++
12022 archive_cmds_need_lc_CXX=yes
12023 no_undefined_flag_CXX=' -zdefs'
12024 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12025 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12026 $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'
12028 hardcode_libdir_flag_spec_CXX='-R$libdir'
12029 hardcode_shlibpath_var_CXX=no
12030 case $host_os in
12031 solaris2.[0-5] | solaris2.[0-5].*) ;;
12033 # The C++ compiler is used as linker so we must use $wl
12034 # flag to pass the commands to the underlying system
12035 # linker. We must also pass each convience library through
12036 # to the system linker between allextract/defaultextract.
12037 # The C++ compiler will combine linker options so we
12038 # cannot just pass the convience library names through
12039 # without $wl.
12040 # Supported since Solaris 2.6 (maybe 2.5.1?)
12041 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'
12043 esac
12044 link_all_deplibs_CXX=yes
12046 output_verbose_link_cmd='echo'
12048 # Archives containing C++ object files must be created using
12049 # "CC -xar", where "CC" is the Sun C++ compiler. This is
12050 # necessary to make sure instantiated templates are included
12051 # in the archive.
12052 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12054 gcx*)
12055 # Green Hills C++ Compiler
12056 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12058 # The C++ compiler must be used to create the archive.
12059 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12062 # GNU C++ compiler with Solaris linker
12063 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12064 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12065 if $CC --version | grep -v '^2\.7' > /dev/null; then
12066 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12067 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12068 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12070 # Commands to make compiler produce verbose output that lists
12071 # what "hidden" libraries, object files and flags are used when
12072 # linking a shared library.
12073 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12074 else
12075 # g++ 2.7 appears to require `-G' NOT `-shared' on this
12076 # platform.
12077 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12078 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12079 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12081 # Commands to make compiler produce verbose output that lists
12082 # what "hidden" libraries, object files and flags are used when
12083 # linking a shared library.
12084 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12087 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12090 esac
12092 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12093 no_undefined_flag_CXX='${wl}-z,text'
12094 archive_cmds_need_lc_CXX=no
12095 hardcode_shlibpath_var_CXX=no
12096 runpath_var='LD_RUN_PATH'
12098 case $cc_basename in
12099 CC*)
12100 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12101 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12104 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12105 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12107 esac
12109 sysv5* | sco3.2v5* | sco5v6*)
12110 # Note: We can NOT use -z defs as we might desire, because we do not
12111 # link with -lc, and that would cause any symbols used from libc to
12112 # always be unresolved, which means just about no library would
12113 # ever link correctly. If we're not using GNU ld we use -z text
12114 # though, which does catch some bad symbols but isn't as heavy-handed
12115 # as -z defs.
12116 # For security reasons, it is highly recommended that you always
12117 # use absolute paths for naming shared libraries, and exclude the
12118 # DT_RUNPATH tag from executables and libraries. But doing so
12119 # requires that you compile everything twice, which is a pain.
12120 # So that behaviour is only enabled if SCOABSPATH is set to a
12121 # non-empty value in the environment. Most likely only useful for
12122 # creating official distributions of packages.
12123 # This is a hack until libtool officially supports absolute path
12124 # names for shared libraries.
12125 no_undefined_flag_CXX='${wl}-z,text'
12126 allow_undefined_flag_CXX='${wl}-z,nodefs'
12127 archive_cmds_need_lc_CXX=no
12128 hardcode_shlibpath_var_CXX=no
12129 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
12130 hardcode_libdir_separator_CXX=':'
12131 link_all_deplibs_CXX=yes
12132 export_dynamic_flag_spec_CXX='${wl}-Bexport'
12133 runpath_var='LD_RUN_PATH'
12135 case $cc_basename in
12136 CC*)
12137 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12138 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12141 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12142 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12144 esac
12146 tandem*)
12147 case $cc_basename in
12148 NCC*)
12149 # NonStop-UX NCC 3.20
12150 # FIXME: insert proper C++ library support
12151 ld_shlibs_CXX=no
12154 # FIXME: insert proper C++ library support
12155 ld_shlibs_CXX=no
12157 esac
12159 vxworks*)
12160 # FIXME: insert proper C++ library support
12161 ld_shlibs_CXX=no
12164 # FIXME: insert proper C++ library support
12165 ld_shlibs_CXX=no
12167 esac
12168 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12169 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12170 test "$ld_shlibs_CXX" = no && can_build_shared=no
12172 GCC_CXX="$GXX"
12173 LD_CXX="$LD"
12176 cat > conftest.$ac_ext <<EOF
12177 class Foo
12179 public:
12180 Foo (void) { a = 0; }
12181 private:
12182 int a;
12186 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12187 (eval $ac_compile) 2>&5
12188 ac_status=$?
12189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12190 (exit $ac_status); }; then
12191 # Parse the compiler output and extract the necessary
12192 # objects, libraries and library flags.
12194 # Sentinel used to keep track of whether or not we are before
12195 # the conftest object file.
12196 pre_test_object_deps_done=no
12198 # The `*' in the case matches for architectures that use `case' in
12199 # $output_verbose_cmd can trigger glob expansion during the loop
12200 # eval without this substitution.
12201 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
12203 for p in `eval $output_verbose_link_cmd`; do
12204 case $p in
12206 -L* | -R* | -l*)
12207 # Some compilers place space between "-{L,R}" and the path.
12208 # Remove the space.
12209 if test $p = "-L" \
12210 || test $p = "-R"; then
12211 prev=$p
12212 continue
12213 else
12214 prev=
12217 if test "$pre_test_object_deps_done" = no; then
12218 case $p in
12219 -L* | -R*)
12220 # Internal compiler library paths should come after those
12221 # provided the user. The postdeps already come after the
12222 # user supplied libs so there is no need to process them.
12223 if test -z "$compiler_lib_search_path_CXX"; then
12224 compiler_lib_search_path_CXX="${prev}${p}"
12225 else
12226 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
12229 # The "-l" case would never come before the object being
12230 # linked, so don't bother handling this case.
12231 esac
12232 else
12233 if test -z "$postdeps_CXX"; then
12234 postdeps_CXX="${prev}${p}"
12235 else
12236 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
12241 *.$objext)
12242 # This assumes that the test object file only shows up
12243 # once in the compiler output.
12244 if test "$p" = "conftest.$objext"; then
12245 pre_test_object_deps_done=yes
12246 continue
12249 if test "$pre_test_object_deps_done" = no; then
12250 if test -z "$predep_objects_CXX"; then
12251 predep_objects_CXX="$p"
12252 else
12253 predep_objects_CXX="$predep_objects_CXX $p"
12255 else
12256 if test -z "$postdep_objects_CXX"; then
12257 postdep_objects_CXX="$p"
12258 else
12259 postdep_objects_CXX="$postdep_objects_CXX $p"
12264 *) ;; # Ignore the rest.
12266 esac
12267 done
12269 # Clean up.
12270 rm -f a.out a.exe
12271 else
12272 echo "libtool.m4: error: problem compiling CXX test program"
12275 $rm -f confest.$objext
12277 # PORTME: override above test on systems where it is broken
12278 case $host_os in
12279 interix3*)
12280 # Interix 3.5 installs completely hosed .la files for C++, so rather than
12281 # hack all around it, let's just trust "g++" to DTRT.
12282 predep_objects_CXX=
12283 postdep_objects_CXX=
12284 postdeps_CXX=
12287 solaris*)
12288 case $cc_basename in
12289 CC*)
12290 # Adding this requires a known-good setup of shared libraries for
12291 # Sun compiler versions before 5.6, else PIC objects from an old
12292 # archive will be linked into the output, leading to subtle bugs.
12293 postdeps_CXX='-lCstd -lCrun'
12295 esac
12297 esac
12300 case " $postdeps_CXX " in
12301 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
12302 esac
12304 lt_prog_compiler_wl_CXX=
12305 lt_prog_compiler_pic_CXX=
12306 lt_prog_compiler_static_CXX=
12308 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12309 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
12311 # C++ specific cases for pic, static, wl, etc.
12312 if test "$GXX" = yes; then
12313 lt_prog_compiler_wl_CXX='-Wl,'
12314 lt_prog_compiler_static_CXX='-static'
12316 case $host_os in
12317 aix*)
12318 # All AIX code is PIC.
12319 if test "$host_cpu" = ia64; then
12320 # AIX 5 now supports IA64 processor
12321 lt_prog_compiler_static_CXX='-Bstatic'
12324 amigaos*)
12325 # FIXME: we need at least 68020 code to build shared libraries, but
12326 # adding the `-m68020' flag to GCC prevents building anything better,
12327 # like `-m68040'.
12328 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12330 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12331 # PIC is the default for these OSes.
12333 mingw* | os2* | pw32*)
12334 # This hack is so that the source file can tell whether it is being
12335 # built for inclusion in a dll (and should export symbols for example).
12336 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12338 darwin* | rhapsody*)
12339 # PIC is the default on this platform
12340 # Common symbols not allowed in MH_DYLIB files
12341 lt_prog_compiler_pic_CXX='-fno-common'
12343 *djgpp*)
12344 # DJGPP does not support shared libraries at all
12345 lt_prog_compiler_pic_CXX=
12347 interix3*)
12348 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12349 # Instead, we relocate shared libraries at runtime.
12351 sysv4*MP*)
12352 if test -d /usr/nec; then
12353 lt_prog_compiler_pic_CXX=-Kconform_pic
12356 hpux*)
12357 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12358 # not for PA HP-UX.
12359 case $host_cpu in
12360 hppa*64*|ia64*)
12363 lt_prog_compiler_pic_CXX='-fPIC'
12365 esac
12368 lt_prog_compiler_pic_CXX='-fPIC'
12370 esac
12371 else
12372 case $host_os in
12373 aix4* | aix5*)
12374 # All AIX code is PIC.
12375 if test "$host_cpu" = ia64; then
12376 # AIX 5 now supports IA64 processor
12377 lt_prog_compiler_static_CXX='-Bstatic'
12378 else
12379 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12382 chorus*)
12383 case $cc_basename in
12384 cxch68*)
12385 # Green Hills C++ Compiler
12386 # _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"
12388 esac
12390 darwin*)
12391 # PIC is the default on this platform
12392 # Common symbols not allowed in MH_DYLIB files
12393 case $cc_basename in
12394 xlc*)
12395 lt_prog_compiler_pic_CXX='-qnocommon'
12396 lt_prog_compiler_wl_CXX='-Wl,'
12398 esac
12400 dgux*)
12401 case $cc_basename in
12402 ec++*)
12403 lt_prog_compiler_pic_CXX='-KPIC'
12405 ghcx*)
12406 # Green Hills C++ Compiler
12407 lt_prog_compiler_pic_CXX='-pic'
12411 esac
12413 freebsd* | kfreebsd*-gnu | dragonfly*)
12414 # FreeBSD uses GNU C++
12416 hpux9* | hpux10* | hpux11*)
12417 case $cc_basename in
12418 CC*)
12419 lt_prog_compiler_wl_CXX='-Wl,'
12420 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12421 if test "$host_cpu" != ia64; then
12422 lt_prog_compiler_pic_CXX='+Z'
12425 aCC*)
12426 lt_prog_compiler_wl_CXX='-Wl,'
12427 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12428 case $host_cpu in
12429 hppa*64*|ia64*)
12430 # +Z the default
12433 lt_prog_compiler_pic_CXX='+Z'
12435 esac
12439 esac
12441 interix*)
12442 # This is c89, which is MS Visual C++ (no shared libs)
12443 # Anyone wants to do a port?
12445 irix5* | irix6* | nonstopux*)
12446 case $cc_basename in
12447 CC*)
12448 lt_prog_compiler_wl_CXX='-Wl,'
12449 lt_prog_compiler_static_CXX='-non_shared'
12450 # CC pic flag -KPIC is the default.
12454 esac
12456 linux*)
12457 case $cc_basename in
12458 KCC*)
12459 # KAI C++ Compiler
12460 lt_prog_compiler_wl_CXX='--backend -Wl,'
12461 lt_prog_compiler_pic_CXX='-fPIC'
12463 icpc* | ecpc*)
12464 # Intel C++
12465 lt_prog_compiler_wl_CXX='-Wl,'
12466 lt_prog_compiler_pic_CXX='-KPIC'
12467 lt_prog_compiler_static_CXX='-static'
12469 pgCC*)
12470 # Portland Group C++ compiler.
12471 lt_prog_compiler_wl_CXX='-Wl,'
12472 lt_prog_compiler_pic_CXX='-fpic'
12473 lt_prog_compiler_static_CXX='-Bstatic'
12475 cxx*)
12476 # Compaq C++
12477 # Make sure the PIC flag is empty. It appears that all Alpha
12478 # Linux and Compaq Tru64 Unix objects are PIC.
12479 lt_prog_compiler_pic_CXX=
12480 lt_prog_compiler_static_CXX='-non_shared'
12484 esac
12486 lynxos*)
12488 m88k*)
12490 mvs*)
12491 case $cc_basename in
12492 cxx*)
12493 lt_prog_compiler_pic_CXX='-W c,exportall'
12497 esac
12499 netbsd*)
12501 osf3* | osf4* | osf5*)
12502 case $cc_basename in
12503 KCC*)
12504 lt_prog_compiler_wl_CXX='--backend -Wl,'
12506 RCC*)
12507 # Rational C++ 2.4.1
12508 lt_prog_compiler_pic_CXX='-pic'
12510 cxx*)
12511 # Digital/Compaq C++
12512 lt_prog_compiler_wl_CXX='-Wl,'
12513 # Make sure the PIC flag is empty. It appears that all Alpha
12514 # Linux and Compaq Tru64 Unix objects are PIC.
12515 lt_prog_compiler_pic_CXX=
12516 lt_prog_compiler_static_CXX='-non_shared'
12520 esac
12522 psos*)
12524 solaris*)
12525 case $cc_basename in
12526 CC*)
12527 # Sun C++ 4.2, 5.x and Centerline C++
12528 lt_prog_compiler_pic_CXX='-KPIC'
12529 lt_prog_compiler_static_CXX='-Bstatic'
12530 lt_prog_compiler_wl_CXX='-Qoption ld '
12532 gcx*)
12533 # Green Hills C++ Compiler
12534 lt_prog_compiler_pic_CXX='-PIC'
12538 esac
12540 sunos4*)
12541 case $cc_basename in
12542 CC*)
12543 # Sun C++ 4.x
12544 lt_prog_compiler_pic_CXX='-pic'
12545 lt_prog_compiler_static_CXX='-Bstatic'
12547 lcc*)
12548 # Lucid
12549 lt_prog_compiler_pic_CXX='-pic'
12553 esac
12555 tandem*)
12556 case $cc_basename in
12557 NCC*)
12558 # NonStop-UX NCC 3.20
12559 lt_prog_compiler_pic_CXX='-KPIC'
12563 esac
12565 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12566 case $cc_basename in
12567 CC*)
12568 lt_prog_compiler_wl_CXX='-Wl,'
12569 lt_prog_compiler_pic_CXX='-KPIC'
12570 lt_prog_compiler_static_CXX='-Bstatic'
12572 esac
12574 vxworks*)
12577 lt_prog_compiler_can_build_shared_CXX=no
12579 esac
12582 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
12583 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
12586 # Check to make sure the PIC flag actually works.
12588 if test -n "$lt_prog_compiler_pic_CXX"; then
12590 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12591 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
12592 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
12593 echo $ECHO_N "(cached) $ECHO_C" >&6
12594 else
12595 lt_prog_compiler_pic_works_CXX=no
12596 ac_outfile=conftest.$ac_objext
12597 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12598 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12599 # Insert the option either (1) after the last *FLAGS variable, or
12600 # (2) before a word containing "conftest.", or (3) at the end.
12601 # Note that $ac_compile itself does not contain backslashes and begins
12602 # with a dollar sign (not a hyphen), so the echo should work correctly.
12603 # The option is referenced via a variable to avoid confusing sed.
12604 lt_compile=`echo "$ac_compile" | $SED \
12605 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12606 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12607 -e 's:$: $lt_compiler_flag:'`
12608 (eval echo "\"\$as_me:12608: $lt_compile\"" >&5)
12609 (eval "$lt_compile" 2>conftest.err)
12610 ac_status=$?
12611 cat conftest.err >&5
12612 echo "$as_me:12612: \$? = $ac_status" >&5
12613 if (exit $ac_status) && test -s "$ac_outfile"; then
12614 # The compiler can only warn and ignore the option if not recognized
12615 # So say no if there are warnings other than the usual output.
12616 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12617 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12618 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12619 lt_prog_compiler_pic_works_CXX=yes
12622 $rm conftest*
12625 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
12626 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
12628 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
12629 case $lt_prog_compiler_pic_CXX in
12630 "" | " "*) ;;
12631 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12632 esac
12633 else
12634 lt_prog_compiler_pic_CXX=
12635 lt_prog_compiler_can_build_shared_CXX=no
12639 case $host_os in
12640 # For platforms which do not support PIC, -DPIC is meaningless:
12641 *djgpp*)
12642 lt_prog_compiler_pic_CXX=
12645 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
12647 esac
12650 # Check to make sure the static flag actually works.
12652 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
12653 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12654 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
12655 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
12656 echo $ECHO_N "(cached) $ECHO_C" >&6
12657 else
12658 lt_prog_compiler_static_works_CXX=no
12659 save_LDFLAGS="$LDFLAGS"
12660 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12661 printf "$lt_simple_link_test_code" > conftest.$ac_ext
12662 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12663 # The linker can only warn and ignore the option if not recognized
12664 # So say no if there are warnings
12665 if test -s conftest.err; then
12666 # Append any errors to the config.log.
12667 cat conftest.err 1>&5
12668 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
12669 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12670 if diff conftest.exp conftest.er2 >/dev/null; then
12671 lt_prog_compiler_static_works_CXX=yes
12673 else
12674 lt_prog_compiler_static_works_CXX=yes
12677 $rm conftest*
12678 LDFLAGS="$save_LDFLAGS"
12681 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
12682 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
12684 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
12686 else
12687 lt_prog_compiler_static_CXX=
12691 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12692 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
12693 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
12694 echo $ECHO_N "(cached) $ECHO_C" >&6
12695 else
12696 lt_cv_prog_compiler_c_o_CXX=no
12697 $rm -r conftest 2>/dev/null
12698 mkdir conftest
12699 cd conftest
12700 mkdir out
12701 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12703 lt_compiler_flag="-o out/conftest2.$ac_objext"
12704 # Insert the option either (1) after the last *FLAGS variable, or
12705 # (2) before a word containing "conftest.", or (3) at the end.
12706 # Note that $ac_compile itself does not contain backslashes and begins
12707 # with a dollar sign (not a hyphen), so the echo should work correctly.
12708 lt_compile=`echo "$ac_compile" | $SED \
12709 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12710 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12711 -e 's:$: $lt_compiler_flag:'`
12712 (eval echo "\"\$as_me:12712: $lt_compile\"" >&5)
12713 (eval "$lt_compile" 2>out/conftest.err)
12714 ac_status=$?
12715 cat out/conftest.err >&5
12716 echo "$as_me:12716: \$? = $ac_status" >&5
12717 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12718 then
12719 # The compiler can only warn and ignore the option if not recognized
12720 # So say no if there are warnings
12721 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
12722 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12723 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12724 lt_cv_prog_compiler_c_o_CXX=yes
12727 chmod u+w . 2>&5
12728 $rm conftest*
12729 # SGI C++ compiler will create directory out/ii_files/ for
12730 # template instantiation
12731 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12732 $rm out/* && rmdir out
12733 cd ..
12734 rmdir conftest
12735 $rm conftest*
12738 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
12739 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
12742 hard_links="nottested"
12743 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
12744 # do not overwrite the value of need_locks provided by the user
12745 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12746 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
12747 hard_links=yes
12748 $rm conftest*
12749 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12750 touch conftest.a
12751 ln conftest.a conftest.b 2>&5 || hard_links=no
12752 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12753 { echo "$as_me:$LINENO: result: $hard_links" >&5
12754 echo "${ECHO_T}$hard_links" >&6; }
12755 if test "$hard_links" = no; then
12756 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12757 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12758 need_locks=warn
12760 else
12761 need_locks=no
12764 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12765 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
12767 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12768 case $host_os in
12769 aix4* | aix5*)
12770 # If we're using GNU nm, then we don't want the "-C" option.
12771 # -C means demangle to AIX nm, but means don't demangle with GNU nm
12772 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12773 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'
12774 else
12775 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'
12778 pw32*)
12779 export_symbols_cmds_CXX="$ltdll_cmds"
12781 cygwin* | mingw*)
12782 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'
12785 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12787 esac
12789 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12790 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12791 test "$ld_shlibs_CXX" = no && can_build_shared=no
12794 # Do we need to explicitly link libc?
12796 case "x$archive_cmds_need_lc_CXX" in
12797 x|xyes)
12798 # Assume -lc should be added
12799 archive_cmds_need_lc_CXX=yes
12801 if test "$enable_shared" = yes && test "$GCC" = yes; then
12802 case $archive_cmds_CXX in
12803 *'~'*)
12804 # FIXME: we may have to deal with multi-command sequences.
12806 '$CC '*)
12807 # Test whether the compiler implicitly links with -lc since on some
12808 # systems, -lgcc has to come before -lc. If gcc already passes -lc
12809 # to ld, don't add -lc before -lgcc.
12810 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
12811 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
12812 $rm conftest*
12813 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12815 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12816 (eval $ac_compile) 2>&5
12817 ac_status=$?
12818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12819 (exit $ac_status); } 2>conftest.err; then
12820 soname=conftest
12821 lib=conftest
12822 libobjs=conftest.$ac_objext
12823 deplibs=
12824 wl=$lt_prog_compiler_wl_CXX
12825 pic_flag=$lt_prog_compiler_pic_CXX
12826 compiler_flags=-v
12827 linker_flags=-v
12828 verstring=
12829 output_objdir=.
12830 libname=conftest
12831 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
12832 allow_undefined_flag_CXX=
12833 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
12834 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
12835 ac_status=$?
12836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12837 (exit $ac_status); }
12838 then
12839 archive_cmds_need_lc_CXX=no
12840 else
12841 archive_cmds_need_lc_CXX=yes
12843 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
12844 else
12845 cat conftest.err 1>&5
12847 $rm conftest*
12848 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
12849 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
12851 esac
12854 esac
12856 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
12857 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
12858 library_names_spec=
12859 libname_spec='lib$name'
12860 soname_spec=
12861 shrext_cmds=".so"
12862 postinstall_cmds=
12863 postuninstall_cmds=
12864 finish_cmds=
12865 finish_eval=
12866 shlibpath_var=
12867 shlibpath_overrides_runpath=unknown
12868 version_type=none
12869 dynamic_linker="$host_os ld.so"
12870 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12871 if test "$GCC" = yes; then
12872 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12873 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
12874 # if the path contains ";" then we assume it to be the separator
12875 # otherwise default to the standard path separator (i.e. ":") - it is
12876 # assumed that no part of a normal pathname contains ";" but that should
12877 # okay in the real world where ";" in dirpaths is itself problematic.
12878 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12879 else
12880 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12882 else
12883 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12885 need_lib_prefix=unknown
12886 hardcode_into_libs=no
12888 # when you set need_version to no, make sure it does not cause -set_version
12889 # flags to be left without arguments
12890 need_version=unknown
12892 case $host_os in
12893 aix3*)
12894 version_type=linux
12895 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12896 shlibpath_var=LIBPATH
12898 # AIX 3 has no versioning support, so we append a major version to the name.
12899 soname_spec='${libname}${release}${shared_ext}$major'
12902 aix4* | aix5*)
12903 version_type=linux
12904 need_lib_prefix=no
12905 need_version=no
12906 hardcode_into_libs=yes
12907 if test "$host_cpu" = ia64; then
12908 # AIX 5 supports IA64
12909 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12910 shlibpath_var=LD_LIBRARY_PATH
12911 else
12912 # With GCC up to 2.95.x, collect2 would create an import file
12913 # for dependence libraries. The import file would start with
12914 # the line `#! .'. This would cause the generated library to
12915 # depend on `.', always an invalid library. This was fixed in
12916 # development snapshots of GCC prior to 3.0.
12917 case $host_os in
12918 aix4 | aix4.[01] | aix4.[01].*)
12919 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12920 echo ' yes '
12921 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
12923 else
12924 can_build_shared=no
12927 esac
12928 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12929 # soname into executable. Probably we can add versioning support to
12930 # collect2, so additional links can be useful in future.
12931 if test "$aix_use_runtimelinking" = yes; then
12932 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12933 # instead of lib<name>.a to let people know that these are not
12934 # typical AIX shared libraries.
12935 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12936 else
12937 # We preserve .a as extension for shared libraries through AIX4.2
12938 # and later when we are not doing run time linking.
12939 library_names_spec='${libname}${release}.a $libname.a'
12940 soname_spec='${libname}${release}${shared_ext}$major'
12942 shlibpath_var=LIBPATH
12946 amigaos*)
12947 library_names_spec='$libname.ixlibrary $libname.a'
12948 # Create ${libname}_ixlibrary.a entries in /sys/libs.
12949 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'
12952 beos*)
12953 library_names_spec='${libname}${shared_ext}'
12954 dynamic_linker="$host_os ld.so"
12955 shlibpath_var=LIBRARY_PATH
12958 bsdi[45]*)
12959 version_type=linux
12960 need_version=no
12961 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12962 soname_spec='${libname}${release}${shared_ext}$major'
12963 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12964 shlibpath_var=LD_LIBRARY_PATH
12965 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12966 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12967 # the default ld.so.conf also contains /usr/contrib/lib and
12968 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12969 # libtool to hard-code these into programs
12972 cygwin* | mingw* | pw32*)
12973 version_type=windows
12974 shrext_cmds=".dll"
12975 need_version=no
12976 need_lib_prefix=no
12978 case $GCC,$host_os in
12979 yes,cygwin* | yes,mingw* | yes,pw32*)
12980 library_names_spec='$libname.dll.a'
12981 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12982 postinstall_cmds='base_file=`basename \${file}`~
12983 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
12984 dldir=$destdir/`dirname \$dlpath`~
12985 test -d \$dldir || mkdir -p \$dldir~
12986 $install_prog $dir/$dlname \$dldir/$dlname~
12987 chmod a+x \$dldir/$dlname'
12988 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12989 dlpath=$dir/\$dldll~
12990 $rm \$dlpath'
12991 shlibpath_overrides_runpath=yes
12993 case $host_os in
12994 cygwin*)
12995 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12996 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12997 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
12999 mingw*)
13000 # MinGW DLLs use traditional 'lib' prefix
13001 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13002 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13003 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13004 # It is most probably a Windows format PATH printed by
13005 # mingw gcc, but we are running on Cygwin. Gcc prints its search
13006 # path with ; separators, and with drive letters. We can handle the
13007 # drive letters (cygwin fileutils understands them), so leave them,
13008 # especially as we might pass files found there to a mingw objdump,
13009 # which wouldn't understand a cygwinified path. Ahh.
13010 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13011 else
13012 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13015 pw32*)
13016 # pw32 DLLs use 'pw' prefix rather than 'lib'
13017 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13019 esac
13023 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13025 esac
13026 dynamic_linker='Win32 ld.exe'
13027 # FIXME: first we should search . and the directory the executable is in
13028 shlibpath_var=PATH
13031 darwin* | rhapsody*)
13032 dynamic_linker="$host_os dyld"
13033 version_type=darwin
13034 need_lib_prefix=no
13035 need_version=no
13036 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13037 soname_spec='${libname}${release}${major}$shared_ext'
13038 shlibpath_overrides_runpath=yes
13039 shlibpath_var=DYLD_LIBRARY_PATH
13040 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13041 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
13042 if test "$GCC" = yes; then
13043 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"`
13044 else
13045 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
13047 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13050 dgux*)
13051 version_type=linux
13052 need_lib_prefix=no
13053 need_version=no
13054 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13055 soname_spec='${libname}${release}${shared_ext}$major'
13056 shlibpath_var=LD_LIBRARY_PATH
13059 freebsd1*)
13060 dynamic_linker=no
13063 kfreebsd*-gnu)
13064 version_type=linux
13065 need_lib_prefix=no
13066 need_version=no
13067 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13068 soname_spec='${libname}${release}${shared_ext}$major'
13069 shlibpath_var=LD_LIBRARY_PATH
13070 shlibpath_overrides_runpath=no
13071 hardcode_into_libs=yes
13072 dynamic_linker='GNU ld.so'
13075 freebsd* | dragonfly*)
13076 # DragonFly does not have aout. When/if they implement a new
13077 # versioning mechanism, adjust this.
13078 if test -x /usr/bin/objformat; then
13079 objformat=`/usr/bin/objformat`
13080 else
13081 case $host_os in
13082 freebsd[123]*) objformat=aout ;;
13083 *) objformat=elf ;;
13084 esac
13086 version_type=freebsd-$objformat
13087 case $version_type in
13088 freebsd-elf*)
13089 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13090 need_version=no
13091 need_lib_prefix=no
13093 freebsd-*)
13094 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13095 need_version=yes
13097 esac
13098 shlibpath_var=LD_LIBRARY_PATH
13099 case $host_os in
13100 freebsd2*)
13101 shlibpath_overrides_runpath=yes
13103 freebsd3.[01]* | freebsdelf3.[01]*)
13104 shlibpath_overrides_runpath=yes
13105 hardcode_into_libs=yes
13107 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13108 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13109 shlibpath_overrides_runpath=no
13110 hardcode_into_libs=yes
13112 freebsd*) # from 4.6 on
13113 shlibpath_overrides_runpath=yes
13114 hardcode_into_libs=yes
13116 esac
13119 gnu*)
13120 version_type=linux
13121 need_lib_prefix=no
13122 need_version=no
13123 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13124 soname_spec='${libname}${release}${shared_ext}$major'
13125 shlibpath_var=LD_LIBRARY_PATH
13126 hardcode_into_libs=yes
13129 hpux9* | hpux10* | hpux11*)
13130 # Give a soname corresponding to the major version so that dld.sl refuses to
13131 # link against other versions.
13132 version_type=sunos
13133 need_lib_prefix=no
13134 need_version=no
13135 case $host_cpu in
13136 ia64*)
13137 shrext_cmds='.so'
13138 hardcode_into_libs=yes
13139 dynamic_linker="$host_os dld.so"
13140 shlibpath_var=LD_LIBRARY_PATH
13141 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13142 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13143 soname_spec='${libname}${release}${shared_ext}$major'
13144 if test "X$HPUX_IA64_MODE" = X32; then
13145 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13146 else
13147 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13149 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13151 hppa*64*)
13152 shrext_cmds='.sl'
13153 hardcode_into_libs=yes
13154 dynamic_linker="$host_os dld.sl"
13155 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13156 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13157 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13158 soname_spec='${libname}${release}${shared_ext}$major'
13159 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13160 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13163 shrext_cmds='.sl'
13164 dynamic_linker="$host_os dld.sl"
13165 shlibpath_var=SHLIB_PATH
13166 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13167 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13168 soname_spec='${libname}${release}${shared_ext}$major'
13170 esac
13171 # HP-UX runs *really* slowly unless shared libraries are mode 555.
13172 postinstall_cmds='chmod 555 $lib'
13175 interix3*)
13176 version_type=linux
13177 need_lib_prefix=no
13178 need_version=no
13179 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13180 soname_spec='${libname}${release}${shared_ext}$major'
13181 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13182 shlibpath_var=LD_LIBRARY_PATH
13183 shlibpath_overrides_runpath=no
13184 hardcode_into_libs=yes
13187 irix5* | irix6* | nonstopux*)
13188 case $host_os in
13189 nonstopux*) version_type=nonstopux ;;
13191 if test "$lt_cv_prog_gnu_ld" = yes; then
13192 version_type=linux
13193 else
13194 version_type=irix
13195 fi ;;
13196 esac
13197 need_lib_prefix=no
13198 need_version=no
13199 soname_spec='${libname}${release}${shared_ext}$major'
13200 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13201 case $host_os in
13202 irix5* | nonstopux*)
13203 libsuff= shlibsuff=
13206 case $LD in # libtool.m4 will add one of these switches to LD
13207 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13208 libsuff= shlibsuff= libmagic=32-bit;;
13209 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13210 libsuff=32 shlibsuff=N32 libmagic=N32;;
13211 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13212 libsuff=64 shlibsuff=64 libmagic=64-bit;;
13213 *) libsuff= shlibsuff= libmagic=never-match;;
13214 esac
13216 esac
13217 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13218 shlibpath_overrides_runpath=no
13219 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13220 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13221 hardcode_into_libs=yes
13224 # No shared lib support for Linux oldld, aout, or coff.
13225 linux*oldld* | linux*aout* | linux*coff*)
13226 dynamic_linker=no
13229 # This must be Linux ELF.
13230 linux*)
13231 version_type=linux
13232 need_lib_prefix=no
13233 need_version=no
13234 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13235 soname_spec='${libname}${release}${shared_ext}$major'
13236 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13237 shlibpath_var=LD_LIBRARY_PATH
13238 shlibpath_overrides_runpath=no
13239 # This implies no fast_install, which is unacceptable.
13240 # Some rework will be needed to allow for fast_install
13241 # before this can be enabled.
13242 hardcode_into_libs=yes
13244 # Append ld.so.conf contents to the search path
13245 if test -f /etc/ld.so.conf; then
13246 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' ' '`
13247 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13250 # We used to test for /lib/ld.so.1 and disable shared libraries on
13251 # powerpc, because MkLinux only supported shared libraries with the
13252 # GNU dynamic linker. Since this was broken with cross compilers,
13253 # most powerpc-linux boxes support dynamic linking these days and
13254 # people can always --disable-shared, the test was removed, and we
13255 # assume the GNU/Linux dynamic linker is in use.
13256 dynamic_linker='GNU/Linux ld.so'
13259 knetbsd*-gnu)
13260 version_type=linux
13261 need_lib_prefix=no
13262 need_version=no
13263 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13264 soname_spec='${libname}${release}${shared_ext}$major'
13265 shlibpath_var=LD_LIBRARY_PATH
13266 shlibpath_overrides_runpath=no
13267 hardcode_into_libs=yes
13268 dynamic_linker='GNU ld.so'
13271 netbsd*)
13272 version_type=sunos
13273 need_lib_prefix=no
13274 need_version=no
13275 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13276 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13277 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13278 dynamic_linker='NetBSD (a.out) ld.so'
13279 else
13280 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13281 soname_spec='${libname}${release}${shared_ext}$major'
13282 dynamic_linker='NetBSD ld.elf_so'
13284 shlibpath_var=LD_LIBRARY_PATH
13285 shlibpath_overrides_runpath=yes
13286 hardcode_into_libs=yes
13289 newsos6)
13290 version_type=linux
13291 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13292 shlibpath_var=LD_LIBRARY_PATH
13293 shlibpath_overrides_runpath=yes
13296 nto-qnx*)
13297 version_type=linux
13298 need_lib_prefix=no
13299 need_version=no
13300 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13301 soname_spec='${libname}${release}${shared_ext}$major'
13302 shlibpath_var=LD_LIBRARY_PATH
13303 shlibpath_overrides_runpath=yes
13306 openbsd*)
13307 version_type=sunos
13308 sys_lib_dlsearch_path_spec="/usr/lib"
13309 need_lib_prefix=no
13310 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13311 case $host_os in
13312 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
13313 *) need_version=no ;;
13314 esac
13315 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13316 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13317 shlibpath_var=LD_LIBRARY_PATH
13318 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13319 case $host_os in
13320 openbsd2.[89] | openbsd2.[89].*)
13321 shlibpath_overrides_runpath=no
13324 shlibpath_overrides_runpath=yes
13326 esac
13327 else
13328 shlibpath_overrides_runpath=yes
13332 os2*)
13333 libname_spec='$name'
13334 shrext_cmds=".dll"
13335 need_lib_prefix=no
13336 library_names_spec='$libname${shared_ext} $libname.a'
13337 dynamic_linker='OS/2 ld.exe'
13338 shlibpath_var=LIBPATH
13341 osf3* | osf4* | osf5*)
13342 version_type=osf
13343 need_lib_prefix=no
13344 need_version=no
13345 soname_spec='${libname}${release}${shared_ext}$major'
13346 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13347 shlibpath_var=LD_LIBRARY_PATH
13348 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13349 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13352 solaris*)
13353 version_type=linux
13354 need_lib_prefix=no
13355 need_version=no
13356 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13357 soname_spec='${libname}${release}${shared_ext}$major'
13358 shlibpath_var=LD_LIBRARY_PATH
13359 shlibpath_overrides_runpath=yes
13360 hardcode_into_libs=yes
13361 # ldd complains unless libraries are executable
13362 postinstall_cmds='chmod +x $lib'
13365 sunos4*)
13366 version_type=sunos
13367 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13368 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13369 shlibpath_var=LD_LIBRARY_PATH
13370 shlibpath_overrides_runpath=yes
13371 if test "$with_gnu_ld" = yes; then
13372 need_lib_prefix=no
13374 need_version=yes
13377 sysv4 | sysv4.3*)
13378 version_type=linux
13379 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13380 soname_spec='${libname}${release}${shared_ext}$major'
13381 shlibpath_var=LD_LIBRARY_PATH
13382 case $host_vendor in
13383 sni)
13384 shlibpath_overrides_runpath=no
13385 need_lib_prefix=no
13386 export_dynamic_flag_spec='${wl}-Blargedynsym'
13387 runpath_var=LD_RUN_PATH
13389 siemens)
13390 need_lib_prefix=no
13392 motorola)
13393 need_lib_prefix=no
13394 need_version=no
13395 shlibpath_overrides_runpath=no
13396 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13398 esac
13401 sysv4*MP*)
13402 if test -d /usr/nec ;then
13403 version_type=linux
13404 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13405 soname_spec='$libname${shared_ext}.$major'
13406 shlibpath_var=LD_LIBRARY_PATH
13410 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13411 version_type=freebsd-elf
13412 need_lib_prefix=no
13413 need_version=no
13414 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13415 soname_spec='${libname}${release}${shared_ext}$major'
13416 shlibpath_var=LD_LIBRARY_PATH
13417 hardcode_into_libs=yes
13418 if test "$with_gnu_ld" = yes; then
13419 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13420 shlibpath_overrides_runpath=no
13421 else
13422 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13423 shlibpath_overrides_runpath=yes
13424 case $host_os in
13425 sco3.2v5*)
13426 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13428 esac
13430 sys_lib_dlsearch_path_spec='/usr/lib'
13433 uts4*)
13434 version_type=linux
13435 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13436 soname_spec='${libname}${release}${shared_ext}$major'
13437 shlibpath_var=LD_LIBRARY_PATH
13441 dynamic_linker=no
13443 esac
13444 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13445 echo "${ECHO_T}$dynamic_linker" >&6; }
13446 test "$dynamic_linker" = no && can_build_shared=no
13448 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13449 if test "$GCC" = yes; then
13450 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13453 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13454 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
13455 hardcode_action_CXX=
13456 if test -n "$hardcode_libdir_flag_spec_CXX" || \
13457 test -n "$runpath_var_CXX" || \
13458 test "X$hardcode_automatic_CXX" = "Xyes" ; then
13460 # We can hardcode non-existant directories.
13461 if test "$hardcode_direct_CXX" != no &&
13462 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13463 # have to relink, otherwise we might link with an installed library
13464 # when we should be linking with a yet-to-be-installed one
13465 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13466 test "$hardcode_minus_L_CXX" != no; then
13467 # Linking always hardcodes the temporary library directory.
13468 hardcode_action_CXX=relink
13469 else
13470 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13471 hardcode_action_CXX=immediate
13473 else
13474 # We cannot hardcode anything, or else we can only hardcode existing
13475 # directories.
13476 hardcode_action_CXX=unsupported
13478 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
13479 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
13481 if test "$hardcode_action_CXX" = relink; then
13482 # Fast installation is not supported
13483 enable_fast_install=no
13484 elif test "$shlibpath_overrides_runpath" = yes ||
13485 test "$enable_shared" = no; then
13486 # Fast installation is not necessary
13487 enable_fast_install=needless
13491 # The else clause should only fire when bootstrapping the
13492 # libtool distribution, otherwise you forgot to ship ltmain.sh
13493 # with your package, and you will get complaints that there are
13494 # no rules to generate ltmain.sh.
13495 if test -f "$ltmain"; then
13496 # See if we are running on zsh, and set the options which allow our commands through
13497 # without removal of \ escapes.
13498 if test -n "${ZSH_VERSION+set}" ; then
13499 setopt NO_GLOB_SUBST
13501 # Now quote all the things that may contain metacharacters while being
13502 # careful not to overquote the AC_SUBSTed values. We take copies of the
13503 # variables and quote the copies for generation of the libtool script.
13504 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
13505 SED SHELL STRIP \
13506 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13507 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13508 deplibs_check_method reload_flag reload_cmds need_locks \
13509 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13510 lt_cv_sys_global_symbol_to_c_name_address \
13511 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13512 old_postinstall_cmds old_postuninstall_cmds \
13513 compiler_CXX \
13514 CC_CXX \
13515 LD_CXX \
13516 lt_prog_compiler_wl_CXX \
13517 lt_prog_compiler_pic_CXX \
13518 lt_prog_compiler_static_CXX \
13519 lt_prog_compiler_no_builtin_flag_CXX \
13520 export_dynamic_flag_spec_CXX \
13521 thread_safe_flag_spec_CXX \
13522 whole_archive_flag_spec_CXX \
13523 enable_shared_with_static_runtimes_CXX \
13524 old_archive_cmds_CXX \
13525 old_archive_from_new_cmds_CXX \
13526 predep_objects_CXX \
13527 postdep_objects_CXX \
13528 predeps_CXX \
13529 postdeps_CXX \
13530 compiler_lib_search_path_CXX \
13531 archive_cmds_CXX \
13532 archive_expsym_cmds_CXX \
13533 postinstall_cmds_CXX \
13534 postuninstall_cmds_CXX \
13535 old_archive_from_expsyms_cmds_CXX \
13536 allow_undefined_flag_CXX \
13537 no_undefined_flag_CXX \
13538 export_symbols_cmds_CXX \
13539 hardcode_libdir_flag_spec_CXX \
13540 hardcode_libdir_flag_spec_ld_CXX \
13541 hardcode_libdir_separator_CXX \
13542 hardcode_automatic_CXX \
13543 module_cmds_CXX \
13544 module_expsym_cmds_CXX \
13545 lt_cv_prog_compiler_c_o_CXX \
13546 exclude_expsyms_CXX \
13547 include_expsyms_CXX; do
13549 case $var in
13550 old_archive_cmds_CXX | \
13551 old_archive_from_new_cmds_CXX | \
13552 archive_cmds_CXX | \
13553 archive_expsym_cmds_CXX | \
13554 module_cmds_CXX | \
13555 module_expsym_cmds_CXX | \
13556 old_archive_from_expsyms_cmds_CXX | \
13557 export_symbols_cmds_CXX | \
13558 extract_expsyms_cmds | reload_cmds | finish_cmds | \
13559 postinstall_cmds | postuninstall_cmds | \
13560 old_postinstall_cmds | old_postuninstall_cmds | \
13561 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13562 # Double-quote double-evaled strings.
13563 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13566 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13568 esac
13569 done
13571 case $lt_echo in
13572 *'\$0 --fallback-echo"')
13573 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13575 esac
13577 cfgfile="$ofile"
13579 cat <<__EOF__ >> "$cfgfile"
13580 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
13582 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13584 # Shell to use when invoking shell scripts.
13585 SHELL=$lt_SHELL
13587 # Whether or not to build shared libraries.
13588 build_libtool_libs=$enable_shared
13590 # Whether or not to build static libraries.
13591 build_old_libs=$enable_static
13593 # Whether or not to add -lc for building shared libraries.
13594 build_libtool_need_lc=$archive_cmds_need_lc_CXX
13596 # Whether or not to disallow shared libs when runtime libs are static
13597 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13599 # Whether or not to optimize for fast installation.
13600 fast_install=$enable_fast_install
13602 # The host system.
13603 host_alias=$host_alias
13604 host=$host
13605 host_os=$host_os
13607 # The build system.
13608 build_alias=$build_alias
13609 build=$build
13610 build_os=$build_os
13612 # An echo program that does not interpret backslashes.
13613 echo=$lt_echo
13615 # The archiver.
13616 AR=$lt_AR
13617 AR_FLAGS=$lt_AR_FLAGS
13619 # A C compiler.
13620 LTCC=$lt_LTCC
13622 # LTCC compiler flags.
13623 LTCFLAGS=$lt_LTCFLAGS
13625 # A language-specific compiler.
13626 CC=$lt_compiler_CXX
13628 # Is the compiler the GNU C compiler?
13629 with_gcc=$GCC_CXX
13631 # An ERE matcher.
13632 EGREP=$lt_EGREP
13634 # The linker used to build libraries.
13635 LD=$lt_LD_CXX
13637 # Whether we need hard or soft links.
13638 LN_S=$lt_LN_S
13640 # A BSD-compatible nm program.
13641 NM=$lt_NM
13643 # A symbol stripping program
13644 STRIP=$lt_STRIP
13646 # Used to examine libraries when file_magic_cmd begins "file"
13647 MAGIC_CMD=$MAGIC_CMD
13649 # Used on cygwin: DLL creation program.
13650 DLLTOOL="$DLLTOOL"
13652 # Used on cygwin: object dumper.
13653 OBJDUMP="$OBJDUMP"
13655 # Used on cygwin: assembler.
13656 AS="$AS"
13658 # The name of the directory that contains temporary libtool files.
13659 objdir=$objdir
13661 # How to create reloadable object files.
13662 reload_flag=$lt_reload_flag
13663 reload_cmds=$lt_reload_cmds
13665 # How to pass a linker flag through the compiler.
13666 wl=$lt_lt_prog_compiler_wl_CXX
13668 # Object file suffix (normally "o").
13669 objext="$ac_objext"
13671 # Old archive suffix (normally "a").
13672 libext="$libext"
13674 # Shared library suffix (normally ".so").
13675 shrext_cmds='$shrext_cmds'
13677 # Executable file suffix (normally "").
13678 exeext="$exeext"
13680 # Additional compiler flags for building library objects.
13681 pic_flag=$lt_lt_prog_compiler_pic_CXX
13682 pic_mode=$pic_mode
13684 # What is the maximum length of a command?
13685 max_cmd_len=$lt_cv_sys_max_cmd_len
13687 # Does compiler simultaneously support -c and -o options?
13688 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13690 # Must we lock files when doing compilation?
13691 need_locks=$lt_need_locks
13693 # Do we need the lib prefix for modules?
13694 need_lib_prefix=$need_lib_prefix
13696 # Do we need a version for libraries?
13697 need_version=$need_version
13699 # Whether dlopen is supported.
13700 dlopen_support=$enable_dlopen
13702 # Whether dlopen of programs is supported.
13703 dlopen_self=$enable_dlopen_self
13705 # Whether dlopen of statically linked programs is supported.
13706 dlopen_self_static=$enable_dlopen_self_static
13708 # Compiler flag to prevent dynamic linking.
13709 link_static_flag=$lt_lt_prog_compiler_static_CXX
13711 # Compiler flag to turn off builtin functions.
13712 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13714 # Compiler flag to allow reflexive dlopens.
13715 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13717 # Compiler flag to generate shared objects directly from archives.
13718 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13720 # Compiler flag to generate thread-safe objects.
13721 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13723 # Library versioning type.
13724 version_type=$version_type
13726 # Format of library name prefix.
13727 libname_spec=$lt_libname_spec
13729 # List of archive names. First name is the real one, the rest are links.
13730 # The last name is the one that the linker finds with -lNAME.
13731 library_names_spec=$lt_library_names_spec
13733 # The coded name of the library, if different from the real name.
13734 soname_spec=$lt_soname_spec
13736 # Commands used to build and install an old-style archive.
13737 RANLIB=$lt_RANLIB
13738 old_archive_cmds=$lt_old_archive_cmds_CXX
13739 old_postinstall_cmds=$lt_old_postinstall_cmds
13740 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13742 # Create an old-style archive from a shared archive.
13743 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13745 # Create a temporary old-style archive to link instead of a shared archive.
13746 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13748 # Commands used to build and install a shared archive.
13749 archive_cmds=$lt_archive_cmds_CXX
13750 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13751 postinstall_cmds=$lt_postinstall_cmds
13752 postuninstall_cmds=$lt_postuninstall_cmds
13754 # Commands used to build a loadable module (assumed same as above if empty)
13755 module_cmds=$lt_module_cmds_CXX
13756 module_expsym_cmds=$lt_module_expsym_cmds_CXX
13758 # Commands to strip libraries.
13759 old_striplib=$lt_old_striplib
13760 striplib=$lt_striplib
13762 # Dependencies to place before the objects being linked to create a
13763 # shared library.
13764 predep_objects=$lt_predep_objects_CXX
13766 # Dependencies to place after the objects being linked to create a
13767 # shared library.
13768 postdep_objects=$lt_postdep_objects_CXX
13770 # Dependencies to place before the objects being linked to create a
13771 # shared library.
13772 predeps=$lt_predeps_CXX
13774 # Dependencies to place after the objects being linked to create a
13775 # shared library.
13776 postdeps=$lt_postdeps_CXX
13778 # The library search path used internally by the compiler when linking
13779 # a shared library.
13780 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13782 # Method to check whether dependent libraries are shared objects.
13783 deplibs_check_method=$lt_deplibs_check_method
13785 # Command to use when deplibs_check_method == file_magic.
13786 file_magic_cmd=$lt_file_magic_cmd
13788 # Flag that allows shared libraries with undefined symbols to be built.
13789 allow_undefined_flag=$lt_allow_undefined_flag_CXX
13791 # Flag that forces no undefined symbols.
13792 no_undefined_flag=$lt_no_undefined_flag_CXX
13794 # Commands used to finish a libtool library installation in a directory.
13795 finish_cmds=$lt_finish_cmds
13797 # Same as above, but a single script fragment to be evaled but not shown.
13798 finish_eval=$lt_finish_eval
13800 # Take the output of nm and produce a listing of raw symbols and C names.
13801 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13803 # Transform the output of nm in a proper C declaration
13804 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13806 # Transform the output of nm in a C name address pair
13807 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13809 # This is the shared library runtime path variable.
13810 runpath_var=$runpath_var
13812 # This is the shared library path variable.
13813 shlibpath_var=$shlibpath_var
13815 # Is shlibpath searched before the hard-coded library search path?
13816 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13818 # How to hardcode a shared library path into an executable.
13819 hardcode_action=$hardcode_action_CXX
13821 # Whether we should hardcode library paths into libraries.
13822 hardcode_into_libs=$hardcode_into_libs
13824 # Flag to hardcode \$libdir into a binary during linking.
13825 # This must work even if \$libdir does not exist.
13826 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13828 # If ld is used when linking, flag to hardcode \$libdir into
13829 # a binary during linking. This must work even if \$libdir does
13830 # not exist.
13831 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13833 # Whether we need a single -rpath flag with a separated argument.
13834 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13836 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13837 # resulting binary.
13838 hardcode_direct=$hardcode_direct_CXX
13840 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13841 # resulting binary.
13842 hardcode_minus_L=$hardcode_minus_L_CXX
13844 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13845 # the resulting binary.
13846 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13848 # Set to yes if building a shared library automatically hardcodes DIR into the library
13849 # and all subsequent libraries and executables linked against it.
13850 hardcode_automatic=$hardcode_automatic_CXX
13852 # Variables whose values should be saved in libtool wrapper scripts and
13853 # restored at relink time.
13854 variables_saved_for_relink="$variables_saved_for_relink"
13856 # Whether libtool must link a program against all its dependency libraries.
13857 link_all_deplibs=$link_all_deplibs_CXX
13859 # Compile-time system search path for libraries
13860 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13862 # Run-time system search path for libraries
13863 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13865 # Fix the shell variable \$srcfile for the compiler.
13866 fix_srcfile_path="$fix_srcfile_path_CXX"
13868 # Set to yes if exported symbols are required.
13869 always_export_symbols=$always_export_symbols_CXX
13871 # The commands to list exported symbols.
13872 export_symbols_cmds=$lt_export_symbols_cmds_CXX
13874 # The commands to extract the exported symbol list from a shared archive.
13875 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13877 # Symbols that should not be listed in the preloaded symbols.
13878 exclude_expsyms=$lt_exclude_expsyms_CXX
13880 # Symbols that must always be exported.
13881 include_expsyms=$lt_include_expsyms_CXX
13883 # ### END LIBTOOL TAG CONFIG: $tagname
13885 __EOF__
13888 else
13889 # If there is no Makefile yet, we rely on a make rule to execute
13890 # `config.status --recheck' to rerun these tests and create the
13891 # libtool script then.
13892 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13893 if test -f "$ltmain_in"; then
13894 test -f Makefile && make "$ltmain"
13899 ac_ext=cpp
13900 ac_cpp='$CXXCPP $CPPFLAGS'
13901 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13902 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13903 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13905 CC=$lt_save_CC
13906 LDCXX=$LD
13907 LD=$lt_save_LD
13908 GCC=$lt_save_GCC
13909 with_gnu_ldcxx=$with_gnu_ld
13910 with_gnu_ld=$lt_save_with_gnu_ld
13911 lt_cv_path_LDCXX=$lt_cv_path_LD
13912 lt_cv_path_LD=$lt_save_path_LD
13913 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13914 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13916 else
13917 tagname=""
13921 F77)
13922 if test -n "$F77" && test "X$F77" != "Xno"; then
13924 ac_ext=f
13925 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13926 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13927 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13930 archive_cmds_need_lc_F77=no
13931 allow_undefined_flag_F77=
13932 always_export_symbols_F77=no
13933 archive_expsym_cmds_F77=
13934 export_dynamic_flag_spec_F77=
13935 hardcode_direct_F77=no
13936 hardcode_libdir_flag_spec_F77=
13937 hardcode_libdir_flag_spec_ld_F77=
13938 hardcode_libdir_separator_F77=
13939 hardcode_minus_L_F77=no
13940 hardcode_automatic_F77=no
13941 module_cmds_F77=
13942 module_expsym_cmds_F77=
13943 link_all_deplibs_F77=unknown
13944 old_archive_cmds_F77=$old_archive_cmds
13945 no_undefined_flag_F77=
13946 whole_archive_flag_spec_F77=
13947 enable_shared_with_static_runtimes_F77=no
13949 # Source file extension for f77 test sources.
13950 ac_ext=f
13952 # Object file extension for compiled f77 test sources.
13953 objext=o
13954 objext_F77=$objext
13956 # Code to be used in simple compile tests
13957 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
13959 # Code to be used in simple link tests
13960 lt_simple_link_test_code=" program t\n end\n"
13962 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13964 # If no C compiler was specified, use CC.
13965 LTCC=${LTCC-"$CC"}
13967 # If no C compiler flags were specified, use CFLAGS.
13968 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13970 # Allow CC to be a program name with arguments.
13971 compiler=$CC
13974 # save warnings/boilerplate of simple test code
13975 ac_outfile=conftest.$ac_objext
13976 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
13977 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13978 _lt_compiler_boilerplate=`cat conftest.err`
13979 $rm conftest*
13981 ac_outfile=conftest.$ac_objext
13982 printf "$lt_simple_link_test_code" >conftest.$ac_ext
13983 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13984 _lt_linker_boilerplate=`cat conftest.err`
13985 $rm conftest*
13988 # Allow CC to be a program name with arguments.
13989 lt_save_CC="$CC"
13990 CC=${F77-"f77"}
13991 compiler=$CC
13992 compiler_F77=$CC
13993 for cc_temp in $compiler""; do
13994 case $cc_temp in
13995 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13996 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13997 \-*) ;;
13998 *) break;;
13999 esac
14000 done
14001 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14004 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14005 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
14006 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
14007 echo "${ECHO_T}$can_build_shared" >&6; }
14009 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14010 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
14011 test "$can_build_shared" = "no" && enable_shared=no
14013 # On AIX, shared libraries and static libraries use the same namespace, and
14014 # are all built from PIC.
14015 case $host_os in
14016 aix3*)
14017 test "$enable_shared" = yes && enable_static=no
14018 if test -n "$RANLIB"; then
14019 archive_cmds="$archive_cmds~\$RANLIB \$lib"
14020 postinstall_cmds='$RANLIB $lib'
14023 aix4* | aix5*)
14024 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14025 test "$enable_shared" = yes && enable_static=no
14028 esac
14029 { echo "$as_me:$LINENO: result: $enable_shared" >&5
14030 echo "${ECHO_T}$enable_shared" >&6; }
14032 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14033 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
14034 # Make sure either enable_shared or enable_static is yes.
14035 test "$enable_shared" = yes || enable_static=yes
14036 { echo "$as_me:$LINENO: result: $enable_static" >&5
14037 echo "${ECHO_T}$enable_static" >&6; }
14039 GCC_F77="$G77"
14040 LD_F77="$LD"
14042 lt_prog_compiler_wl_F77=
14043 lt_prog_compiler_pic_F77=
14044 lt_prog_compiler_static_F77=
14046 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14047 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
14049 if test "$GCC" = yes; then
14050 lt_prog_compiler_wl_F77='-Wl,'
14051 lt_prog_compiler_static_F77='-static'
14053 case $host_os in
14054 aix*)
14055 # All AIX code is PIC.
14056 if test "$host_cpu" = ia64; then
14057 # AIX 5 now supports IA64 processor
14058 lt_prog_compiler_static_F77='-Bstatic'
14062 amigaos*)
14063 # FIXME: we need at least 68020 code to build shared libraries, but
14064 # adding the `-m68020' flag to GCC prevents building anything better,
14065 # like `-m68040'.
14066 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
14069 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14070 # PIC is the default for these OSes.
14073 mingw* | pw32* | os2*)
14074 # This hack is so that the source file can tell whether it is being
14075 # built for inclusion in a dll (and should export symbols for example).
14076 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14079 darwin* | rhapsody*)
14080 # PIC is the default on this platform
14081 # Common symbols not allowed in MH_DYLIB files
14082 lt_prog_compiler_pic_F77='-fno-common'
14085 interix3*)
14086 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14087 # Instead, we relocate shared libraries at runtime.
14090 msdosdjgpp*)
14091 # Just because we use GCC doesn't mean we suddenly get shared libraries
14092 # on systems that don't support them.
14093 lt_prog_compiler_can_build_shared_F77=no
14094 enable_shared=no
14097 sysv4*MP*)
14098 if test -d /usr/nec; then
14099 lt_prog_compiler_pic_F77=-Kconform_pic
14103 hpux*)
14104 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14105 # not for PA HP-UX.
14106 case $host_cpu in
14107 hppa*64*|ia64*)
14108 # +Z the default
14111 lt_prog_compiler_pic_F77='-fPIC'
14113 esac
14117 lt_prog_compiler_pic_F77='-fPIC'
14119 esac
14120 else
14121 # PORTME Check for flag to pass linker flags through the system compiler.
14122 case $host_os in
14123 aix*)
14124 lt_prog_compiler_wl_F77='-Wl,'
14125 if test "$host_cpu" = ia64; then
14126 # AIX 5 now supports IA64 processor
14127 lt_prog_compiler_static_F77='-Bstatic'
14128 else
14129 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
14132 darwin*)
14133 # PIC is the default on this platform
14134 # Common symbols not allowed in MH_DYLIB files
14135 case $cc_basename in
14136 xlc*)
14137 lt_prog_compiler_pic_F77='-qnocommon'
14138 lt_prog_compiler_wl_F77='-Wl,'
14140 esac
14143 mingw* | pw32* | os2*)
14144 # This hack is so that the source file can tell whether it is being
14145 # built for inclusion in a dll (and should export symbols for example).
14146 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14149 hpux9* | hpux10* | hpux11*)
14150 lt_prog_compiler_wl_F77='-Wl,'
14151 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14152 # not for PA HP-UX.
14153 case $host_cpu in
14154 hppa*64*|ia64*)
14155 # +Z the default
14158 lt_prog_compiler_pic_F77='+Z'
14160 esac
14161 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14162 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
14165 irix5* | irix6* | nonstopux*)
14166 lt_prog_compiler_wl_F77='-Wl,'
14167 # PIC (with -KPIC) is the default.
14168 lt_prog_compiler_static_F77='-non_shared'
14171 newsos6)
14172 lt_prog_compiler_pic_F77='-KPIC'
14173 lt_prog_compiler_static_F77='-Bstatic'
14176 linux*)
14177 case $cc_basename in
14178 icc* | ecc*)
14179 lt_prog_compiler_wl_F77='-Wl,'
14180 lt_prog_compiler_pic_F77='-KPIC'
14181 lt_prog_compiler_static_F77='-static'
14183 pgcc* | pgf77* | pgf90* | pgf95*)
14184 # Portland Group compilers (*not* the Pentium gcc compiler,
14185 # which looks to be a dead project)
14186 lt_prog_compiler_wl_F77='-Wl,'
14187 lt_prog_compiler_pic_F77='-fpic'
14188 lt_prog_compiler_static_F77='-Bstatic'
14190 ccc*)
14191 lt_prog_compiler_wl_F77='-Wl,'
14192 # All Alpha code is PIC.
14193 lt_prog_compiler_static_F77='-non_shared'
14195 esac
14198 osf3* | osf4* | osf5*)
14199 lt_prog_compiler_wl_F77='-Wl,'
14200 # All OSF/1 code is PIC.
14201 lt_prog_compiler_static_F77='-non_shared'
14204 solaris*)
14205 lt_prog_compiler_pic_F77='-KPIC'
14206 lt_prog_compiler_static_F77='-Bstatic'
14207 case $cc_basename in
14208 f77* | f90* | f95*)
14209 lt_prog_compiler_wl_F77='-Qoption ld ';;
14211 lt_prog_compiler_wl_F77='-Wl,';;
14212 esac
14215 sunos4*)
14216 lt_prog_compiler_wl_F77='-Qoption ld '
14217 lt_prog_compiler_pic_F77='-PIC'
14218 lt_prog_compiler_static_F77='-Bstatic'
14221 sysv4 | sysv4.2uw2* | sysv4.3*)
14222 lt_prog_compiler_wl_F77='-Wl,'
14223 lt_prog_compiler_pic_F77='-KPIC'
14224 lt_prog_compiler_static_F77='-Bstatic'
14227 sysv4*MP*)
14228 if test -d /usr/nec ;then
14229 lt_prog_compiler_pic_F77='-Kconform_pic'
14230 lt_prog_compiler_static_F77='-Bstatic'
14234 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14235 lt_prog_compiler_wl_F77='-Wl,'
14236 lt_prog_compiler_pic_F77='-KPIC'
14237 lt_prog_compiler_static_F77='-Bstatic'
14240 unicos*)
14241 lt_prog_compiler_wl_F77='-Wl,'
14242 lt_prog_compiler_can_build_shared_F77=no
14245 uts4*)
14246 lt_prog_compiler_pic_F77='-pic'
14247 lt_prog_compiler_static_F77='-Bstatic'
14251 lt_prog_compiler_can_build_shared_F77=no
14253 esac
14256 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
14257 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
14260 # Check to make sure the PIC flag actually works.
14262 if test -n "$lt_prog_compiler_pic_F77"; then
14264 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
14265 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
14266 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
14267 echo $ECHO_N "(cached) $ECHO_C" >&6
14268 else
14269 lt_prog_compiler_pic_works_F77=no
14270 ac_outfile=conftest.$ac_objext
14271 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14272 lt_compiler_flag="$lt_prog_compiler_pic_F77"
14273 # Insert the option either (1) after the last *FLAGS variable, or
14274 # (2) before a word containing "conftest.", or (3) at the end.
14275 # Note that $ac_compile itself does not contain backslashes and begins
14276 # with a dollar sign (not a hyphen), so the echo should work correctly.
14277 # The option is referenced via a variable to avoid confusing sed.
14278 lt_compile=`echo "$ac_compile" | $SED \
14279 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14280 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14281 -e 's:$: $lt_compiler_flag:'`
14282 (eval echo "\"\$as_me:14282: $lt_compile\"" >&5)
14283 (eval "$lt_compile" 2>conftest.err)
14284 ac_status=$?
14285 cat conftest.err >&5
14286 echo "$as_me:14286: \$? = $ac_status" >&5
14287 if (exit $ac_status) && test -s "$ac_outfile"; then
14288 # The compiler can only warn and ignore the option if not recognized
14289 # So say no if there are warnings other than the usual output.
14290 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14291 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14292 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14293 lt_prog_compiler_pic_works_F77=yes
14296 $rm conftest*
14299 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
14300 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
14302 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
14303 case $lt_prog_compiler_pic_F77 in
14304 "" | " "*) ;;
14305 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
14306 esac
14307 else
14308 lt_prog_compiler_pic_F77=
14309 lt_prog_compiler_can_build_shared_F77=no
14313 case $host_os in
14314 # For platforms which do not support PIC, -DPIC is meaningless:
14315 *djgpp*)
14316 lt_prog_compiler_pic_F77=
14319 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14321 esac
14324 # Check to make sure the static flag actually works.
14326 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
14327 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14328 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14329 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
14330 echo $ECHO_N "(cached) $ECHO_C" >&6
14331 else
14332 lt_prog_compiler_static_works_F77=no
14333 save_LDFLAGS="$LDFLAGS"
14334 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14335 printf "$lt_simple_link_test_code" > conftest.$ac_ext
14336 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14337 # The linker can only warn and ignore the option if not recognized
14338 # So say no if there are warnings
14339 if test -s conftest.err; then
14340 # Append any errors to the config.log.
14341 cat conftest.err 1>&5
14342 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14343 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14344 if diff conftest.exp conftest.er2 >/dev/null; then
14345 lt_prog_compiler_static_works_F77=yes
14347 else
14348 lt_prog_compiler_static_works_F77=yes
14351 $rm conftest*
14352 LDFLAGS="$save_LDFLAGS"
14355 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
14356 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
14358 if test x"$lt_prog_compiler_static_works_F77" = xyes; then
14360 else
14361 lt_prog_compiler_static_F77=
14365 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14366 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14367 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14368 echo $ECHO_N "(cached) $ECHO_C" >&6
14369 else
14370 lt_cv_prog_compiler_c_o_F77=no
14371 $rm -r conftest 2>/dev/null
14372 mkdir conftest
14373 cd conftest
14374 mkdir out
14375 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14377 lt_compiler_flag="-o out/conftest2.$ac_objext"
14378 # Insert the option either (1) after the last *FLAGS variable, or
14379 # (2) before a word containing "conftest.", or (3) at the end.
14380 # Note that $ac_compile itself does not contain backslashes and begins
14381 # with a dollar sign (not a hyphen), so the echo should work correctly.
14382 lt_compile=`echo "$ac_compile" | $SED \
14383 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14384 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14385 -e 's:$: $lt_compiler_flag:'`
14386 (eval echo "\"\$as_me:14386: $lt_compile\"" >&5)
14387 (eval "$lt_compile" 2>out/conftest.err)
14388 ac_status=$?
14389 cat out/conftest.err >&5
14390 echo "$as_me:14390: \$? = $ac_status" >&5
14391 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14392 then
14393 # The compiler can only warn and ignore the option if not recognized
14394 # So say no if there are warnings
14395 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14396 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14397 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14398 lt_cv_prog_compiler_c_o_F77=yes
14401 chmod u+w . 2>&5
14402 $rm conftest*
14403 # SGI C++ compiler will create directory out/ii_files/ for
14404 # template instantiation
14405 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14406 $rm out/* && rmdir out
14407 cd ..
14408 rmdir conftest
14409 $rm conftest*
14412 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14413 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
14416 hard_links="nottested"
14417 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14418 # do not overwrite the value of need_locks provided by the user
14419 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14420 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14421 hard_links=yes
14422 $rm conftest*
14423 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14424 touch conftest.a
14425 ln conftest.a conftest.b 2>&5 || hard_links=no
14426 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14427 { echo "$as_me:$LINENO: result: $hard_links" >&5
14428 echo "${ECHO_T}$hard_links" >&6; }
14429 if test "$hard_links" = no; then
14430 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14431 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14432 need_locks=warn
14434 else
14435 need_locks=no
14438 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14439 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14441 runpath_var=
14442 allow_undefined_flag_F77=
14443 enable_shared_with_static_runtimes_F77=no
14444 archive_cmds_F77=
14445 archive_expsym_cmds_F77=
14446 old_archive_From_new_cmds_F77=
14447 old_archive_from_expsyms_cmds_F77=
14448 export_dynamic_flag_spec_F77=
14449 whole_archive_flag_spec_F77=
14450 thread_safe_flag_spec_F77=
14451 hardcode_libdir_flag_spec_F77=
14452 hardcode_libdir_flag_spec_ld_F77=
14453 hardcode_libdir_separator_F77=
14454 hardcode_direct_F77=no
14455 hardcode_minus_L_F77=no
14456 hardcode_shlibpath_var_F77=unsupported
14457 link_all_deplibs_F77=unknown
14458 hardcode_automatic_F77=no
14459 module_cmds_F77=
14460 module_expsym_cmds_F77=
14461 always_export_symbols_F77=no
14462 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14463 # include_expsyms should be a list of space-separated symbols to be *always*
14464 # included in the symbol list
14465 include_expsyms_F77=
14466 # exclude_expsyms can be an extended regexp of symbols to exclude
14467 # it will be wrapped by ` (' and `)$', so one must not match beginning or
14468 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14469 # as well as any symbol that contains `d'.
14470 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
14471 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14472 # platforms (ab)use it in PIC code, but their linkers get confused if
14473 # the symbol is explicitly referenced. Since portable code cannot
14474 # rely on this symbol name, it's probably fine to never include it in
14475 # preloaded symbol tables.
14476 extract_expsyms_cmds=
14477 # Just being paranoid about ensuring that cc_basename is set.
14478 for cc_temp in $compiler""; do
14479 case $cc_temp in
14480 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14481 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14482 \-*) ;;
14483 *) break;;
14484 esac
14485 done
14486 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14488 case $host_os in
14489 cygwin* | mingw* | pw32*)
14490 # FIXME: the MSVC++ port hasn't been tested in a loooong time
14491 # When not using gcc, we currently assume that we are using
14492 # Microsoft Visual C++.
14493 if test "$GCC" != yes; then
14494 with_gnu_ld=no
14497 interix*)
14498 # we just hope/assume this is gcc and not c89 (= MSVC++)
14499 with_gnu_ld=yes
14501 openbsd*)
14502 with_gnu_ld=no
14504 esac
14506 ld_shlibs_F77=yes
14507 if test "$with_gnu_ld" = yes; then
14508 # If archive_cmds runs LD, not CC, wlarc should be empty
14509 wlarc='${wl}'
14511 # Set some defaults for GNU ld with shared library support. These
14512 # are reset later if shared libraries are not supported. Putting them
14513 # here allows them to be overridden if necessary.
14514 runpath_var=LD_RUN_PATH
14515 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14516 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14517 # ancient GNU ld didn't support --whole-archive et. al.
14518 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14519 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14520 else
14521 whole_archive_flag_spec_F77=
14523 supports_anon_versioning=no
14524 case `$LD -v 2>/dev/null` in
14525 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14526 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14527 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14528 *\ 2.11.*) ;; # other 2.11 versions
14529 *) supports_anon_versioning=yes ;;
14530 esac
14532 # See if GNU ld supports shared libraries.
14533 case $host_os in
14534 aix3* | aix4* | aix5*)
14535 # On AIX/PPC, the GNU linker is very broken
14536 if test "$host_cpu" != ia64; then
14537 ld_shlibs_F77=no
14538 cat <<EOF 1>&2
14540 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
14541 *** to be unable to reliably create shared libraries on AIX.
14542 *** Therefore, libtool is disabling shared libraries support. If you
14543 *** really care for shared libraries, you may want to modify your PATH
14544 *** so that a non-GNU linker is found, and then restart.
14550 amigaos*)
14551 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)'
14552 hardcode_libdir_flag_spec_F77='-L$libdir'
14553 hardcode_minus_L_F77=yes
14555 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14556 # that the semantics of dynamic libraries on AmigaOS, at least up
14557 # to version 4, is to share data among multiple programs linked
14558 # with the same dynamic library. Since this doesn't match the
14559 # behavior of shared libraries on other platforms, we can't use
14560 # them.
14561 ld_shlibs_F77=no
14564 beos*)
14565 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14566 allow_undefined_flag_F77=unsupported
14567 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14568 # support --undefined. This deserves some investigation. FIXME
14569 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14570 else
14571 ld_shlibs_F77=no
14575 cygwin* | mingw* | pw32*)
14576 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14577 # as there is no search path for DLLs.
14578 hardcode_libdir_flag_spec_F77='-L$libdir'
14579 allow_undefined_flag_F77=unsupported
14580 always_export_symbols_F77=no
14581 enable_shared_with_static_runtimes_F77=yes
14582 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
14584 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14585 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14586 # If the export-symbols file already is a .def file (1st line
14587 # is EXPORTS), use it as is; otherwise, prepend...
14588 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14589 cp $export_symbols $output_objdir/$soname.def;
14590 else
14591 echo EXPORTS > $output_objdir/$soname.def;
14592 cat $export_symbols >> $output_objdir/$soname.def;
14594 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14595 else
14596 ld_shlibs_F77=no
14600 interix3*)
14601 hardcode_direct_F77=no
14602 hardcode_shlibpath_var_F77=no
14603 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14604 export_dynamic_flag_spec_F77='${wl}-E'
14605 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14606 # Instead, shared libraries are loaded at an image base (0x10000000 by
14607 # default) and relocated if they conflict, which is a slow very memory
14608 # consuming and fragmenting process. To avoid this, we pick a random,
14609 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14610 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14611 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'
14612 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'
14615 linux*)
14616 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14617 tmp_addflag=
14618 case $cc_basename,$host_cpu in
14619 pgcc*) # Portland Group C compiler
14620 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'
14621 tmp_addflag=' $pic_flag'
14623 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
14624 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'
14625 tmp_addflag=' $pic_flag -Mnomain' ;;
14626 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
14627 tmp_addflag=' -i_dynamic' ;;
14628 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
14629 tmp_addflag=' -i_dynamic -nofor_main' ;;
14630 ifc* | ifort*) # Intel Fortran compiler
14631 tmp_addflag=' -nofor_main' ;;
14632 esac
14633 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14635 if test $supports_anon_versioning = yes; then
14636 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14637 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14638 $echo "local: *; };" >> $output_objdir/$libname.ver~
14639 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14641 else
14642 ld_shlibs_F77=no
14646 netbsd*)
14647 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14648 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14649 wlarc=
14650 else
14651 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14652 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14656 solaris*)
14657 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14658 ld_shlibs_F77=no
14659 cat <<EOF 1>&2
14661 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
14662 *** create shared libraries on Solaris systems. Therefore, libtool
14663 *** is disabling shared libraries support. We urge you to upgrade GNU
14664 *** binutils to release 2.9.1 or newer. Another option is to modify
14665 *** your PATH or compiler configuration so that the native linker is
14666 *** used, and then restart.
14669 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14670 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14671 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14672 else
14673 ld_shlibs_F77=no
14677 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14678 case `$LD -v 2>&1` in
14679 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14680 ld_shlibs_F77=no
14681 cat <<_LT_EOF 1>&2
14683 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14684 *** reliably create shared libraries on SCO systems. Therefore, libtool
14685 *** is disabling shared libraries support. We urge you to upgrade GNU
14686 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
14687 *** your PATH or compiler configuration so that the native linker is
14688 *** used, and then restart.
14690 _LT_EOF
14693 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14694 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
14695 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
14696 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
14697 else
14698 ld_shlibs_F77=no
14701 esac
14704 sunos4*)
14705 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14706 wlarc=
14707 hardcode_direct_F77=yes
14708 hardcode_shlibpath_var_F77=no
14712 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14713 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14714 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14715 else
14716 ld_shlibs_F77=no
14719 esac
14721 if test "$ld_shlibs_F77" = no; then
14722 runpath_var=
14723 hardcode_libdir_flag_spec_F77=
14724 export_dynamic_flag_spec_F77=
14725 whole_archive_flag_spec_F77=
14727 else
14728 # PORTME fill in a description of your system's linker (not GNU ld)
14729 case $host_os in
14730 aix3*)
14731 allow_undefined_flag_F77=unsupported
14732 always_export_symbols_F77=yes
14733 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'
14734 # Note: this linker hardcodes the directories in LIBPATH if there
14735 # are no directories specified by -L.
14736 hardcode_minus_L_F77=yes
14737 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14738 # Neither direct hardcoding nor static linking is supported with a
14739 # broken collect2.
14740 hardcode_direct_F77=unsupported
14744 aix4* | aix5*)
14745 if test "$host_cpu" = ia64; then
14746 # On IA64, the linker does run time linking by default, so we don't
14747 # have to do anything special.
14748 aix_use_runtimelinking=no
14749 exp_sym_flag='-Bexport'
14750 no_entry_flag=""
14751 else
14752 # If we're using GNU nm, then we don't want the "-C" option.
14753 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14754 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14755 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'
14756 else
14757 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'
14759 aix_use_runtimelinking=no
14761 # Test if we are trying to use run time linking or normal
14762 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14763 # need to do runtime linking.
14764 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
14765 for ld_flag in $LDFLAGS; do
14766 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14767 aix_use_runtimelinking=yes
14768 break
14770 done
14772 esac
14774 exp_sym_flag='-bexport'
14775 no_entry_flag='-bnoentry'
14778 # When large executables or shared objects are built, AIX ld can
14779 # have problems creating the table of contents. If linking a library
14780 # or program results in "error TOC overflow" add -mminimal-toc to
14781 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14782 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14784 archive_cmds_F77=''
14785 hardcode_direct_F77=yes
14786 hardcode_libdir_separator_F77=':'
14787 link_all_deplibs_F77=yes
14789 if test "$GCC" = yes; then
14790 case $host_os in aix4.[012]|aix4.[012].*)
14791 # We only want to do this on AIX 4.2 and lower, the check
14792 # below for broken collect2 doesn't work under 4.3+
14793 collect2name=`${CC} -print-prog-name=collect2`
14794 if test -f "$collect2name" && \
14795 strings "$collect2name" | grep resolve_lib_name >/dev/null
14796 then
14797 # We have reworked collect2
14798 hardcode_direct_F77=yes
14799 else
14800 # We have old collect2
14801 hardcode_direct_F77=unsupported
14802 # It fails to find uninstalled libraries when the uninstalled
14803 # path is not listed in the libpath. Setting hardcode_minus_L
14804 # to unsupported forces relinking
14805 hardcode_minus_L_F77=yes
14806 hardcode_libdir_flag_spec_F77='-L$libdir'
14807 hardcode_libdir_separator_F77=
14810 esac
14811 shared_flag='-shared'
14812 if test "$aix_use_runtimelinking" = yes; then
14813 shared_flag="$shared_flag "'${wl}-G'
14815 else
14816 # not using gcc
14817 if test "$host_cpu" = ia64; then
14818 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14819 # chokes on -Wl,-G. The following line is correct:
14820 shared_flag='-G'
14821 else
14822 if test "$aix_use_runtimelinking" = yes; then
14823 shared_flag='${wl}-G'
14824 else
14825 shared_flag='${wl}-bM:SRE'
14830 # It seems that -bexpall does not export symbols beginning with
14831 # underscore (_), so it is better to generate a list of symbols to export.
14832 always_export_symbols_F77=yes
14833 if test "$aix_use_runtimelinking" = yes; then
14834 # Warning - without using the other runtime loading flags (-brtl),
14835 # -berok will link without error, but may produce a broken library.
14836 allow_undefined_flag_F77='-berok'
14837 # Determine the default libpath from the value encoded in an empty executable.
14838 cat >conftest.$ac_ext <<_ACEOF
14839 program main
14842 _ACEOF
14843 rm -f conftest.$ac_objext conftest$ac_exeext
14844 if { (ac_try="$ac_link"
14845 case "(($ac_try" in
14846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14847 *) ac_try_echo=$ac_try;;
14848 esac
14849 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14850 (eval "$ac_link") 2>conftest.er1
14851 ac_status=$?
14852 grep -v '^ *+' conftest.er1 >conftest.err
14853 rm -f conftest.er1
14854 cat conftest.err >&5
14855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14856 (exit $ac_status); } &&
14857 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
14858 { (case "(($ac_try" in
14859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14860 *) ac_try_echo=$ac_try;;
14861 esac
14862 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14863 (eval "$ac_try") 2>&5
14864 ac_status=$?
14865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14866 (exit $ac_status); }; } &&
14867 { ac_try='test -s conftest$ac_exeext'
14868 { (case "(($ac_try" in
14869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14870 *) ac_try_echo=$ac_try;;
14871 esac
14872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14873 (eval "$ac_try") 2>&5
14874 ac_status=$?
14875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14876 (exit $ac_status); }; }; then
14878 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14880 # Check for a 64-bit object if we didn't find anything.
14881 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; }
14882 }'`; fi
14883 else
14884 echo "$as_me: failed program was:" >&5
14885 sed 's/^/| /' conftest.$ac_ext >&5
14890 rm -f core conftest.err conftest.$ac_objext \
14891 conftest$ac_exeext conftest.$ac_ext
14892 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14894 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14895 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"
14896 else
14897 if test "$host_cpu" = ia64; then
14898 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
14899 allow_undefined_flag_F77="-z nodefs"
14900 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"
14901 else
14902 # Determine the default libpath from the value encoded in an empty executable.
14903 cat >conftest.$ac_ext <<_ACEOF
14904 program main
14907 _ACEOF
14908 rm -f conftest.$ac_objext conftest$ac_exeext
14909 if { (ac_try="$ac_link"
14910 case "(($ac_try" in
14911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14912 *) ac_try_echo=$ac_try;;
14913 esac
14914 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14915 (eval "$ac_link") 2>conftest.er1
14916 ac_status=$?
14917 grep -v '^ *+' conftest.er1 >conftest.err
14918 rm -f conftest.er1
14919 cat conftest.err >&5
14920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14921 (exit $ac_status); } &&
14922 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
14923 { (case "(($ac_try" in
14924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14925 *) ac_try_echo=$ac_try;;
14926 esac
14927 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14928 (eval "$ac_try") 2>&5
14929 ac_status=$?
14930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14931 (exit $ac_status); }; } &&
14932 { ac_try='test -s conftest$ac_exeext'
14933 { (case "(($ac_try" in
14934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14935 *) ac_try_echo=$ac_try;;
14936 esac
14937 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14938 (eval "$ac_try") 2>&5
14939 ac_status=$?
14940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14941 (exit $ac_status); }; }; then
14943 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14945 # Check for a 64-bit object if we didn't find anything.
14946 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; }
14947 }'`; fi
14948 else
14949 echo "$as_me: failed program was:" >&5
14950 sed 's/^/| /' conftest.$ac_ext >&5
14955 rm -f core conftest.err conftest.$ac_objext \
14956 conftest$ac_exeext conftest.$ac_ext
14957 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14959 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14960 # Warning - without using the other run time loading flags,
14961 # -berok will link without error, but may produce a broken library.
14962 no_undefined_flag_F77=' ${wl}-bernotok'
14963 allow_undefined_flag_F77=' ${wl}-berok'
14964 # Exported symbols can be pulled into shared objects from archives
14965 whole_archive_flag_spec_F77='$convenience'
14966 archive_cmds_need_lc_F77=yes
14967 # This is similar to how AIX traditionally builds its shared libraries.
14968 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'
14973 amigaos*)
14974 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)'
14975 hardcode_libdir_flag_spec_F77='-L$libdir'
14976 hardcode_minus_L_F77=yes
14977 # see comment about different semantics on the GNU ld section
14978 ld_shlibs_F77=no
14981 bsdi[45]*)
14982 export_dynamic_flag_spec_F77=-rdynamic
14985 cygwin* | mingw* | pw32*)
14986 # When not using gcc, we currently assume that we are using
14987 # Microsoft Visual C++.
14988 # hardcode_libdir_flag_spec is actually meaningless, as there is
14989 # no search path for DLLs.
14990 hardcode_libdir_flag_spec_F77=' '
14991 allow_undefined_flag_F77=unsupported
14992 # Tell ltmain to make .lib files, not .a files.
14993 libext=lib
14994 # Tell ltmain to make .dll files, not .so files.
14995 shrext_cmds=".dll"
14996 # FIXME: Setting linknames here is a bad hack.
14997 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
14998 # The linker will automatically build a .lib file if we build a DLL.
14999 old_archive_From_new_cmds_F77='true'
15000 # FIXME: Should let the user specify the lib program.
15001 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
15002 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
15003 enable_shared_with_static_runtimes_F77=yes
15006 darwin* | rhapsody*)
15007 case $host_os in
15008 rhapsody* | darwin1.[012])
15009 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
15011 *) # Darwin 1.3 on
15012 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15013 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15014 else
15015 case ${MACOSX_DEPLOYMENT_TARGET} in
15016 10.[012])
15017 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15019 10.*)
15020 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
15022 esac
15025 esac
15026 archive_cmds_need_lc_F77=no
15027 hardcode_direct_F77=no
15028 hardcode_automatic_F77=yes
15029 hardcode_shlibpath_var_F77=unsupported
15030 whole_archive_flag_spec_F77=''
15031 link_all_deplibs_F77=yes
15032 if test "$GCC" = yes ; then
15033 output_verbose_link_cmd='echo'
15034 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15035 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15036 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15037 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}'
15038 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}'
15039 else
15040 case $cc_basename in
15041 xlc*)
15042 output_verbose_link_cmd='echo'
15043 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
15044 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15045 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15046 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}'
15047 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}'
15050 ld_shlibs_F77=no
15052 esac
15056 dgux*)
15057 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15058 hardcode_libdir_flag_spec_F77='-L$libdir'
15059 hardcode_shlibpath_var_F77=no
15062 freebsd1*)
15063 ld_shlibs_F77=no
15066 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15067 # support. Future versions do this automatically, but an explicit c++rt0.o
15068 # does not break anything, and helps significantly (at the cost of a little
15069 # extra space).
15070 freebsd2.2*)
15071 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15072 hardcode_libdir_flag_spec_F77='-R$libdir'
15073 hardcode_direct_F77=yes
15074 hardcode_shlibpath_var_F77=no
15077 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15078 freebsd2*)
15079 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15080 hardcode_direct_F77=yes
15081 hardcode_minus_L_F77=yes
15082 hardcode_shlibpath_var_F77=no
15085 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15086 freebsd* | kfreebsd*-gnu | dragonfly*)
15087 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15088 hardcode_libdir_flag_spec_F77='-R$libdir'
15089 hardcode_direct_F77=yes
15090 hardcode_shlibpath_var_F77=no
15093 hpux9*)
15094 if test "$GCC" = yes; then
15095 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'
15096 else
15097 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'
15099 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15100 hardcode_libdir_separator_F77=:
15101 hardcode_direct_F77=yes
15103 # hardcode_minus_L: Not really in the search PATH,
15104 # but as the default location of the library.
15105 hardcode_minus_L_F77=yes
15106 export_dynamic_flag_spec_F77='${wl}-E'
15109 hpux10*)
15110 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15111 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15112 else
15113 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15115 if test "$with_gnu_ld" = no; then
15116 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15117 hardcode_libdir_separator_F77=:
15119 hardcode_direct_F77=yes
15120 export_dynamic_flag_spec_F77='${wl}-E'
15122 # hardcode_minus_L: Not really in the search PATH,
15123 # but as the default location of the library.
15124 hardcode_minus_L_F77=yes
15128 hpux11*)
15129 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15130 case $host_cpu in
15131 hppa*64*)
15132 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15134 ia64*)
15135 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15138 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15140 esac
15141 else
15142 case $host_cpu in
15143 hppa*64*)
15144 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15146 ia64*)
15147 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15150 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15152 esac
15154 if test "$with_gnu_ld" = no; then
15155 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15156 hardcode_libdir_separator_F77=:
15158 case $host_cpu in
15159 hppa*64*|ia64*)
15160 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
15161 hardcode_direct_F77=no
15162 hardcode_shlibpath_var_F77=no
15165 hardcode_direct_F77=yes
15166 export_dynamic_flag_spec_F77='${wl}-E'
15168 # hardcode_minus_L: Not really in the search PATH,
15169 # but as the default location of the library.
15170 hardcode_minus_L_F77=yes
15172 esac
15176 irix5* | irix6* | nonstopux*)
15177 if test "$GCC" = yes; then
15178 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'
15179 else
15180 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'
15181 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
15183 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15184 hardcode_libdir_separator_F77=:
15185 link_all_deplibs_F77=yes
15188 netbsd*)
15189 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15190 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15191 else
15192 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15194 hardcode_libdir_flag_spec_F77='-R$libdir'
15195 hardcode_direct_F77=yes
15196 hardcode_shlibpath_var_F77=no
15199 newsos6)
15200 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15201 hardcode_direct_F77=yes
15202 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15203 hardcode_libdir_separator_F77=:
15204 hardcode_shlibpath_var_F77=no
15207 openbsd*)
15208 hardcode_direct_F77=yes
15209 hardcode_shlibpath_var_F77=no
15210 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15211 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15212 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15213 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15214 export_dynamic_flag_spec_F77='${wl}-E'
15215 else
15216 case $host_os in
15217 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15218 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15219 hardcode_libdir_flag_spec_F77='-R$libdir'
15222 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15223 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15225 esac
15229 os2*)
15230 hardcode_libdir_flag_spec_F77='-L$libdir'
15231 hardcode_minus_L_F77=yes
15232 allow_undefined_flag_F77=unsupported
15233 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'
15234 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15237 osf3*)
15238 if test "$GCC" = yes; then
15239 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15240 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'
15241 else
15242 allow_undefined_flag_F77=' -expect_unresolved \*'
15243 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'
15245 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15246 hardcode_libdir_separator_F77=:
15249 osf4* | osf5*) # as osf3* with the addition of -msym flag
15250 if test "$GCC" = yes; then
15251 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15252 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'
15253 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15254 else
15255 allow_undefined_flag_F77=' -expect_unresolved \*'
15256 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'
15257 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~
15258 $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'
15260 # Both c and cxx compiler support -rpath directly
15261 hardcode_libdir_flag_spec_F77='-rpath $libdir'
15263 hardcode_libdir_separator_F77=:
15266 solaris*)
15267 no_undefined_flag_F77=' -z text'
15268 if test "$GCC" = yes; then
15269 wlarc='${wl}'
15270 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15271 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15272 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15273 else
15274 wlarc=''
15275 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15276 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15277 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15279 hardcode_libdir_flag_spec_F77='-R$libdir'
15280 hardcode_shlibpath_var_F77=no
15281 case $host_os in
15282 solaris2.[0-5] | solaris2.[0-5].*) ;;
15284 # The compiler driver will combine linker options so we
15285 # cannot just pass the convience library names through
15286 # without $wl, iff we do not link with $LD.
15287 # Luckily, gcc supports the same syntax we need for Sun Studio.
15288 # Supported since Solaris 2.6 (maybe 2.5.1?)
15289 case $wlarc in
15291 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
15293 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' ;;
15294 esac ;;
15295 esac
15296 link_all_deplibs_F77=yes
15299 sunos4*)
15300 if test "x$host_vendor" = xsequent; then
15301 # Use $CC to link under sequent, because it throws in some extra .o
15302 # files that make .init and .fini sections work.
15303 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15304 else
15305 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15307 hardcode_libdir_flag_spec_F77='-L$libdir'
15308 hardcode_direct_F77=yes
15309 hardcode_minus_L_F77=yes
15310 hardcode_shlibpath_var_F77=no
15313 sysv4)
15314 case $host_vendor in
15315 sni)
15316 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15317 hardcode_direct_F77=yes # is this really true???
15319 siemens)
15320 ## LD is ld it makes a PLAMLIB
15321 ## CC just makes a GrossModule.
15322 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15323 reload_cmds_F77='$CC -r -o $output$reload_objs'
15324 hardcode_direct_F77=no
15326 motorola)
15327 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15328 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
15330 esac
15331 runpath_var='LD_RUN_PATH'
15332 hardcode_shlibpath_var_F77=no
15335 sysv4.3*)
15336 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15337 hardcode_shlibpath_var_F77=no
15338 export_dynamic_flag_spec_F77='-Bexport'
15341 sysv4*MP*)
15342 if test -d /usr/nec; then
15343 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15344 hardcode_shlibpath_var_F77=no
15345 runpath_var=LD_RUN_PATH
15346 hardcode_runpath_var=yes
15347 ld_shlibs_F77=yes
15351 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
15352 no_undefined_flag_F77='${wl}-z,text'
15353 archive_cmds_need_lc_F77=no
15354 hardcode_shlibpath_var_F77=no
15355 runpath_var='LD_RUN_PATH'
15357 if test "$GCC" = yes; then
15358 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15359 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15360 else
15361 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15362 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15366 sysv5* | sco3.2v5* | sco5v6*)
15367 # Note: We can NOT use -z defs as we might desire, because we do not
15368 # link with -lc, and that would cause any symbols used from libc to
15369 # always be unresolved, which means just about no library would
15370 # ever link correctly. If we're not using GNU ld we use -z text
15371 # though, which does catch some bad symbols but isn't as heavy-handed
15372 # as -z defs.
15373 no_undefined_flag_F77='${wl}-z,text'
15374 allow_undefined_flag_F77='${wl}-z,nodefs'
15375 archive_cmds_need_lc_F77=no
15376 hardcode_shlibpath_var_F77=no
15377 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15378 hardcode_libdir_separator_F77=':'
15379 link_all_deplibs_F77=yes
15380 export_dynamic_flag_spec_F77='${wl}-Bexport'
15381 runpath_var='LD_RUN_PATH'
15383 if test "$GCC" = yes; then
15384 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15385 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15386 else
15387 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15388 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15392 uts4*)
15393 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15394 hardcode_libdir_flag_spec_F77='-L$libdir'
15395 hardcode_shlibpath_var_F77=no
15399 ld_shlibs_F77=no
15401 esac
15404 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
15405 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
15406 test "$ld_shlibs_F77" = no && can_build_shared=no
15409 # Do we need to explicitly link libc?
15411 case "x$archive_cmds_need_lc_F77" in
15412 x|xyes)
15413 # Assume -lc should be added
15414 archive_cmds_need_lc_F77=yes
15416 if test "$enable_shared" = yes && test "$GCC" = yes; then
15417 case $archive_cmds_F77 in
15418 *'~'*)
15419 # FIXME: we may have to deal with multi-command sequences.
15421 '$CC '*)
15422 # Test whether the compiler implicitly links with -lc since on some
15423 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15424 # to ld, don't add -lc before -lgcc.
15425 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15426 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
15427 $rm conftest*
15428 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15430 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15431 (eval $ac_compile) 2>&5
15432 ac_status=$?
15433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15434 (exit $ac_status); } 2>conftest.err; then
15435 soname=conftest
15436 lib=conftest
15437 libobjs=conftest.$ac_objext
15438 deplibs=
15439 wl=$lt_prog_compiler_wl_F77
15440 pic_flag=$lt_prog_compiler_pic_F77
15441 compiler_flags=-v
15442 linker_flags=-v
15443 verstring=
15444 output_objdir=.
15445 libname=conftest
15446 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15447 allow_undefined_flag_F77=
15448 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15449 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15450 ac_status=$?
15451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15452 (exit $ac_status); }
15453 then
15454 archive_cmds_need_lc_F77=no
15455 else
15456 archive_cmds_need_lc_F77=yes
15458 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15459 else
15460 cat conftest.err 1>&5
15462 $rm conftest*
15463 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15464 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
15466 esac
15469 esac
15471 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15472 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
15473 library_names_spec=
15474 libname_spec='lib$name'
15475 soname_spec=
15476 shrext_cmds=".so"
15477 postinstall_cmds=
15478 postuninstall_cmds=
15479 finish_cmds=
15480 finish_eval=
15481 shlibpath_var=
15482 shlibpath_overrides_runpath=unknown
15483 version_type=none
15484 dynamic_linker="$host_os ld.so"
15485 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15486 if test "$GCC" = yes; then
15487 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15488 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
15489 # if the path contains ";" then we assume it to be the separator
15490 # otherwise default to the standard path separator (i.e. ":") - it is
15491 # assumed that no part of a normal pathname contains ";" but that should
15492 # okay in the real world where ";" in dirpaths is itself problematic.
15493 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15494 else
15495 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15497 else
15498 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15500 need_lib_prefix=unknown
15501 hardcode_into_libs=no
15503 # when you set need_version to no, make sure it does not cause -set_version
15504 # flags to be left without arguments
15505 need_version=unknown
15507 case $host_os in
15508 aix3*)
15509 version_type=linux
15510 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15511 shlibpath_var=LIBPATH
15513 # AIX 3 has no versioning support, so we append a major version to the name.
15514 soname_spec='${libname}${release}${shared_ext}$major'
15517 aix4* | aix5*)
15518 version_type=linux
15519 need_lib_prefix=no
15520 need_version=no
15521 hardcode_into_libs=yes
15522 if test "$host_cpu" = ia64; then
15523 # AIX 5 supports IA64
15524 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15525 shlibpath_var=LD_LIBRARY_PATH
15526 else
15527 # With GCC up to 2.95.x, collect2 would create an import file
15528 # for dependence libraries. The import file would start with
15529 # the line `#! .'. This would cause the generated library to
15530 # depend on `.', always an invalid library. This was fixed in
15531 # development snapshots of GCC prior to 3.0.
15532 case $host_os in
15533 aix4 | aix4.[01] | aix4.[01].*)
15534 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15535 echo ' yes '
15536 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15538 else
15539 can_build_shared=no
15542 esac
15543 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15544 # soname into executable. Probably we can add versioning support to
15545 # collect2, so additional links can be useful in future.
15546 if test "$aix_use_runtimelinking" = yes; then
15547 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15548 # instead of lib<name>.a to let people know that these are not
15549 # typical AIX shared libraries.
15550 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15551 else
15552 # We preserve .a as extension for shared libraries through AIX4.2
15553 # and later when we are not doing run time linking.
15554 library_names_spec='${libname}${release}.a $libname.a'
15555 soname_spec='${libname}${release}${shared_ext}$major'
15557 shlibpath_var=LIBPATH
15561 amigaos*)
15562 library_names_spec='$libname.ixlibrary $libname.a'
15563 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15564 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'
15567 beos*)
15568 library_names_spec='${libname}${shared_ext}'
15569 dynamic_linker="$host_os ld.so"
15570 shlibpath_var=LIBRARY_PATH
15573 bsdi[45]*)
15574 version_type=linux
15575 need_version=no
15576 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15577 soname_spec='${libname}${release}${shared_ext}$major'
15578 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15579 shlibpath_var=LD_LIBRARY_PATH
15580 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15581 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15582 # the default ld.so.conf also contains /usr/contrib/lib and
15583 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15584 # libtool to hard-code these into programs
15587 cygwin* | mingw* | pw32*)
15588 version_type=windows
15589 shrext_cmds=".dll"
15590 need_version=no
15591 need_lib_prefix=no
15593 case $GCC,$host_os in
15594 yes,cygwin* | yes,mingw* | yes,pw32*)
15595 library_names_spec='$libname.dll.a'
15596 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15597 postinstall_cmds='base_file=`basename \${file}`~
15598 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15599 dldir=$destdir/`dirname \$dlpath`~
15600 test -d \$dldir || mkdir -p \$dldir~
15601 $install_prog $dir/$dlname \$dldir/$dlname~
15602 chmod a+x \$dldir/$dlname'
15603 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15604 dlpath=$dir/\$dldll~
15605 $rm \$dlpath'
15606 shlibpath_overrides_runpath=yes
15608 case $host_os in
15609 cygwin*)
15610 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15611 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15612 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15614 mingw*)
15615 # MinGW DLLs use traditional 'lib' prefix
15616 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15617 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15618 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15619 # It is most probably a Windows format PATH printed by
15620 # mingw gcc, but we are running on Cygwin. Gcc prints its search
15621 # path with ; separators, and with drive letters. We can handle the
15622 # drive letters (cygwin fileutils understands them), so leave them,
15623 # especially as we might pass files found there to a mingw objdump,
15624 # which wouldn't understand a cygwinified path. Ahh.
15625 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15626 else
15627 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15630 pw32*)
15631 # pw32 DLLs use 'pw' prefix rather than 'lib'
15632 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15634 esac
15638 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15640 esac
15641 dynamic_linker='Win32 ld.exe'
15642 # FIXME: first we should search . and the directory the executable is in
15643 shlibpath_var=PATH
15646 darwin* | rhapsody*)
15647 dynamic_linker="$host_os dyld"
15648 version_type=darwin
15649 need_lib_prefix=no
15650 need_version=no
15651 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15652 soname_spec='${libname}${release}${major}$shared_ext'
15653 shlibpath_overrides_runpath=yes
15654 shlibpath_var=DYLD_LIBRARY_PATH
15655 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15656 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
15657 if test "$GCC" = yes; then
15658 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"`
15659 else
15660 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
15662 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15665 dgux*)
15666 version_type=linux
15667 need_lib_prefix=no
15668 need_version=no
15669 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15670 soname_spec='${libname}${release}${shared_ext}$major'
15671 shlibpath_var=LD_LIBRARY_PATH
15674 freebsd1*)
15675 dynamic_linker=no
15678 kfreebsd*-gnu)
15679 version_type=linux
15680 need_lib_prefix=no
15681 need_version=no
15682 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15683 soname_spec='${libname}${release}${shared_ext}$major'
15684 shlibpath_var=LD_LIBRARY_PATH
15685 shlibpath_overrides_runpath=no
15686 hardcode_into_libs=yes
15687 dynamic_linker='GNU ld.so'
15690 freebsd* | dragonfly*)
15691 # DragonFly does not have aout. When/if they implement a new
15692 # versioning mechanism, adjust this.
15693 if test -x /usr/bin/objformat; then
15694 objformat=`/usr/bin/objformat`
15695 else
15696 case $host_os in
15697 freebsd[123]*) objformat=aout ;;
15698 *) objformat=elf ;;
15699 esac
15701 version_type=freebsd-$objformat
15702 case $version_type in
15703 freebsd-elf*)
15704 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15705 need_version=no
15706 need_lib_prefix=no
15708 freebsd-*)
15709 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15710 need_version=yes
15712 esac
15713 shlibpath_var=LD_LIBRARY_PATH
15714 case $host_os in
15715 freebsd2*)
15716 shlibpath_overrides_runpath=yes
15718 freebsd3.[01]* | freebsdelf3.[01]*)
15719 shlibpath_overrides_runpath=yes
15720 hardcode_into_libs=yes
15722 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15723 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15724 shlibpath_overrides_runpath=no
15725 hardcode_into_libs=yes
15727 freebsd*) # from 4.6 on
15728 shlibpath_overrides_runpath=yes
15729 hardcode_into_libs=yes
15731 esac
15734 gnu*)
15735 version_type=linux
15736 need_lib_prefix=no
15737 need_version=no
15738 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15739 soname_spec='${libname}${release}${shared_ext}$major'
15740 shlibpath_var=LD_LIBRARY_PATH
15741 hardcode_into_libs=yes
15744 hpux9* | hpux10* | hpux11*)
15745 # Give a soname corresponding to the major version so that dld.sl refuses to
15746 # link against other versions.
15747 version_type=sunos
15748 need_lib_prefix=no
15749 need_version=no
15750 case $host_cpu in
15751 ia64*)
15752 shrext_cmds='.so'
15753 hardcode_into_libs=yes
15754 dynamic_linker="$host_os dld.so"
15755 shlibpath_var=LD_LIBRARY_PATH
15756 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15757 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15758 soname_spec='${libname}${release}${shared_ext}$major'
15759 if test "X$HPUX_IA64_MODE" = X32; then
15760 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15761 else
15762 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15764 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15766 hppa*64*)
15767 shrext_cmds='.sl'
15768 hardcode_into_libs=yes
15769 dynamic_linker="$host_os dld.sl"
15770 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15771 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15772 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15773 soname_spec='${libname}${release}${shared_ext}$major'
15774 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15775 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15778 shrext_cmds='.sl'
15779 dynamic_linker="$host_os dld.sl"
15780 shlibpath_var=SHLIB_PATH
15781 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15782 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15783 soname_spec='${libname}${release}${shared_ext}$major'
15785 esac
15786 # HP-UX runs *really* slowly unless shared libraries are mode 555.
15787 postinstall_cmds='chmod 555 $lib'
15790 interix3*)
15791 version_type=linux
15792 need_lib_prefix=no
15793 need_version=no
15794 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15795 soname_spec='${libname}${release}${shared_ext}$major'
15796 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15797 shlibpath_var=LD_LIBRARY_PATH
15798 shlibpath_overrides_runpath=no
15799 hardcode_into_libs=yes
15802 irix5* | irix6* | nonstopux*)
15803 case $host_os in
15804 nonstopux*) version_type=nonstopux ;;
15806 if test "$lt_cv_prog_gnu_ld" = yes; then
15807 version_type=linux
15808 else
15809 version_type=irix
15810 fi ;;
15811 esac
15812 need_lib_prefix=no
15813 need_version=no
15814 soname_spec='${libname}${release}${shared_ext}$major'
15815 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15816 case $host_os in
15817 irix5* | nonstopux*)
15818 libsuff= shlibsuff=
15821 case $LD in # libtool.m4 will add one of these switches to LD
15822 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15823 libsuff= shlibsuff= libmagic=32-bit;;
15824 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15825 libsuff=32 shlibsuff=N32 libmagic=N32;;
15826 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15827 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15828 *) libsuff= shlibsuff= libmagic=never-match;;
15829 esac
15831 esac
15832 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15833 shlibpath_overrides_runpath=no
15834 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15835 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15836 hardcode_into_libs=yes
15839 # No shared lib support for Linux oldld, aout, or coff.
15840 linux*oldld* | linux*aout* | linux*coff*)
15841 dynamic_linker=no
15844 # This must be Linux ELF.
15845 linux*)
15846 version_type=linux
15847 need_lib_prefix=no
15848 need_version=no
15849 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15850 soname_spec='${libname}${release}${shared_ext}$major'
15851 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15852 shlibpath_var=LD_LIBRARY_PATH
15853 shlibpath_overrides_runpath=no
15854 # This implies no fast_install, which is unacceptable.
15855 # Some rework will be needed to allow for fast_install
15856 # before this can be enabled.
15857 hardcode_into_libs=yes
15859 # Append ld.so.conf contents to the search path
15860 if test -f /etc/ld.so.conf; then
15861 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' ' '`
15862 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15865 # We used to test for /lib/ld.so.1 and disable shared libraries on
15866 # powerpc, because MkLinux only supported shared libraries with the
15867 # GNU dynamic linker. Since this was broken with cross compilers,
15868 # most powerpc-linux boxes support dynamic linking these days and
15869 # people can always --disable-shared, the test was removed, and we
15870 # assume the GNU/Linux dynamic linker is in use.
15871 dynamic_linker='GNU/Linux ld.so'
15874 knetbsd*-gnu)
15875 version_type=linux
15876 need_lib_prefix=no
15877 need_version=no
15878 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15879 soname_spec='${libname}${release}${shared_ext}$major'
15880 shlibpath_var=LD_LIBRARY_PATH
15881 shlibpath_overrides_runpath=no
15882 hardcode_into_libs=yes
15883 dynamic_linker='GNU ld.so'
15886 netbsd*)
15887 version_type=sunos
15888 need_lib_prefix=no
15889 need_version=no
15890 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15891 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15892 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15893 dynamic_linker='NetBSD (a.out) ld.so'
15894 else
15895 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15896 soname_spec='${libname}${release}${shared_ext}$major'
15897 dynamic_linker='NetBSD ld.elf_so'
15899 shlibpath_var=LD_LIBRARY_PATH
15900 shlibpath_overrides_runpath=yes
15901 hardcode_into_libs=yes
15904 newsos6)
15905 version_type=linux
15906 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15907 shlibpath_var=LD_LIBRARY_PATH
15908 shlibpath_overrides_runpath=yes
15911 nto-qnx*)
15912 version_type=linux
15913 need_lib_prefix=no
15914 need_version=no
15915 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15916 soname_spec='${libname}${release}${shared_ext}$major'
15917 shlibpath_var=LD_LIBRARY_PATH
15918 shlibpath_overrides_runpath=yes
15921 openbsd*)
15922 version_type=sunos
15923 sys_lib_dlsearch_path_spec="/usr/lib"
15924 need_lib_prefix=no
15925 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15926 case $host_os in
15927 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15928 *) need_version=no ;;
15929 esac
15930 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15931 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15932 shlibpath_var=LD_LIBRARY_PATH
15933 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15934 case $host_os in
15935 openbsd2.[89] | openbsd2.[89].*)
15936 shlibpath_overrides_runpath=no
15939 shlibpath_overrides_runpath=yes
15941 esac
15942 else
15943 shlibpath_overrides_runpath=yes
15947 os2*)
15948 libname_spec='$name'
15949 shrext_cmds=".dll"
15950 need_lib_prefix=no
15951 library_names_spec='$libname${shared_ext} $libname.a'
15952 dynamic_linker='OS/2 ld.exe'
15953 shlibpath_var=LIBPATH
15956 osf3* | osf4* | osf5*)
15957 version_type=osf
15958 need_lib_prefix=no
15959 need_version=no
15960 soname_spec='${libname}${release}${shared_ext}$major'
15961 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15962 shlibpath_var=LD_LIBRARY_PATH
15963 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15964 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15967 solaris*)
15968 version_type=linux
15969 need_lib_prefix=no
15970 need_version=no
15971 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15972 soname_spec='${libname}${release}${shared_ext}$major'
15973 shlibpath_var=LD_LIBRARY_PATH
15974 shlibpath_overrides_runpath=yes
15975 hardcode_into_libs=yes
15976 # ldd complains unless libraries are executable
15977 postinstall_cmds='chmod +x $lib'
15980 sunos4*)
15981 version_type=sunos
15982 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15983 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15984 shlibpath_var=LD_LIBRARY_PATH
15985 shlibpath_overrides_runpath=yes
15986 if test "$with_gnu_ld" = yes; then
15987 need_lib_prefix=no
15989 need_version=yes
15992 sysv4 | sysv4.3*)
15993 version_type=linux
15994 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15995 soname_spec='${libname}${release}${shared_ext}$major'
15996 shlibpath_var=LD_LIBRARY_PATH
15997 case $host_vendor in
15998 sni)
15999 shlibpath_overrides_runpath=no
16000 need_lib_prefix=no
16001 export_dynamic_flag_spec='${wl}-Blargedynsym'
16002 runpath_var=LD_RUN_PATH
16004 siemens)
16005 need_lib_prefix=no
16007 motorola)
16008 need_lib_prefix=no
16009 need_version=no
16010 shlibpath_overrides_runpath=no
16011 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16013 esac
16016 sysv4*MP*)
16017 if test -d /usr/nec ;then
16018 version_type=linux
16019 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16020 soname_spec='$libname${shared_ext}.$major'
16021 shlibpath_var=LD_LIBRARY_PATH
16025 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16026 version_type=freebsd-elf
16027 need_lib_prefix=no
16028 need_version=no
16029 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16030 soname_spec='${libname}${release}${shared_ext}$major'
16031 shlibpath_var=LD_LIBRARY_PATH
16032 hardcode_into_libs=yes
16033 if test "$with_gnu_ld" = yes; then
16034 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16035 shlibpath_overrides_runpath=no
16036 else
16037 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16038 shlibpath_overrides_runpath=yes
16039 case $host_os in
16040 sco3.2v5*)
16041 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16043 esac
16045 sys_lib_dlsearch_path_spec='/usr/lib'
16048 uts4*)
16049 version_type=linux
16050 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16051 soname_spec='${libname}${release}${shared_ext}$major'
16052 shlibpath_var=LD_LIBRARY_PATH
16056 dynamic_linker=no
16058 esac
16059 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16060 echo "${ECHO_T}$dynamic_linker" >&6; }
16061 test "$dynamic_linker" = no && can_build_shared=no
16063 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16064 if test "$GCC" = yes; then
16065 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16068 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16069 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
16070 hardcode_action_F77=
16071 if test -n "$hardcode_libdir_flag_spec_F77" || \
16072 test -n "$runpath_var_F77" || \
16073 test "X$hardcode_automatic_F77" = "Xyes" ; then
16075 # We can hardcode non-existant directories.
16076 if test "$hardcode_direct_F77" != no &&
16077 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16078 # have to relink, otherwise we might link with an installed library
16079 # when we should be linking with a yet-to-be-installed one
16080 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
16081 test "$hardcode_minus_L_F77" != no; then
16082 # Linking always hardcodes the temporary library directory.
16083 hardcode_action_F77=relink
16084 else
16085 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16086 hardcode_action_F77=immediate
16088 else
16089 # We cannot hardcode anything, or else we can only hardcode existing
16090 # directories.
16091 hardcode_action_F77=unsupported
16093 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
16094 echo "${ECHO_T}$hardcode_action_F77" >&6; }
16096 if test "$hardcode_action_F77" = relink; then
16097 # Fast installation is not supported
16098 enable_fast_install=no
16099 elif test "$shlibpath_overrides_runpath" = yes ||
16100 test "$enable_shared" = no; then
16101 # Fast installation is not necessary
16102 enable_fast_install=needless
16106 # The else clause should only fire when bootstrapping the
16107 # libtool distribution, otherwise you forgot to ship ltmain.sh
16108 # with your package, and you will get complaints that there are
16109 # no rules to generate ltmain.sh.
16110 if test -f "$ltmain"; then
16111 # See if we are running on zsh, and set the options which allow our commands through
16112 # without removal of \ escapes.
16113 if test -n "${ZSH_VERSION+set}" ; then
16114 setopt NO_GLOB_SUBST
16116 # Now quote all the things that may contain metacharacters while being
16117 # careful not to overquote the AC_SUBSTed values. We take copies of the
16118 # variables and quote the copies for generation of the libtool script.
16119 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
16120 SED SHELL STRIP \
16121 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
16122 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
16123 deplibs_check_method reload_flag reload_cmds need_locks \
16124 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
16125 lt_cv_sys_global_symbol_to_c_name_address \
16126 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
16127 old_postinstall_cmds old_postuninstall_cmds \
16128 compiler_F77 \
16129 CC_F77 \
16130 LD_F77 \
16131 lt_prog_compiler_wl_F77 \
16132 lt_prog_compiler_pic_F77 \
16133 lt_prog_compiler_static_F77 \
16134 lt_prog_compiler_no_builtin_flag_F77 \
16135 export_dynamic_flag_spec_F77 \
16136 thread_safe_flag_spec_F77 \
16137 whole_archive_flag_spec_F77 \
16138 enable_shared_with_static_runtimes_F77 \
16139 old_archive_cmds_F77 \
16140 old_archive_from_new_cmds_F77 \
16141 predep_objects_F77 \
16142 postdep_objects_F77 \
16143 predeps_F77 \
16144 postdeps_F77 \
16145 compiler_lib_search_path_F77 \
16146 archive_cmds_F77 \
16147 archive_expsym_cmds_F77 \
16148 postinstall_cmds_F77 \
16149 postuninstall_cmds_F77 \
16150 old_archive_from_expsyms_cmds_F77 \
16151 allow_undefined_flag_F77 \
16152 no_undefined_flag_F77 \
16153 export_symbols_cmds_F77 \
16154 hardcode_libdir_flag_spec_F77 \
16155 hardcode_libdir_flag_spec_ld_F77 \
16156 hardcode_libdir_separator_F77 \
16157 hardcode_automatic_F77 \
16158 module_cmds_F77 \
16159 module_expsym_cmds_F77 \
16160 lt_cv_prog_compiler_c_o_F77 \
16161 exclude_expsyms_F77 \
16162 include_expsyms_F77; do
16164 case $var in
16165 old_archive_cmds_F77 | \
16166 old_archive_from_new_cmds_F77 | \
16167 archive_cmds_F77 | \
16168 archive_expsym_cmds_F77 | \
16169 module_cmds_F77 | \
16170 module_expsym_cmds_F77 | \
16171 old_archive_from_expsyms_cmds_F77 | \
16172 export_symbols_cmds_F77 | \
16173 extract_expsyms_cmds | reload_cmds | finish_cmds | \
16174 postinstall_cmds | postuninstall_cmds | \
16175 old_postinstall_cmds | old_postuninstall_cmds | \
16176 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
16177 # Double-quote double-evaled strings.
16178 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
16181 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
16183 esac
16184 done
16186 case $lt_echo in
16187 *'\$0 --fallback-echo"')
16188 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
16190 esac
16192 cfgfile="$ofile"
16194 cat <<__EOF__ >> "$cfgfile"
16195 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
16197 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16199 # Shell to use when invoking shell scripts.
16200 SHELL=$lt_SHELL
16202 # Whether or not to build shared libraries.
16203 build_libtool_libs=$enable_shared
16205 # Whether or not to build static libraries.
16206 build_old_libs=$enable_static
16208 # Whether or not to add -lc for building shared libraries.
16209 build_libtool_need_lc=$archive_cmds_need_lc_F77
16211 # Whether or not to disallow shared libs when runtime libs are static
16212 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
16214 # Whether or not to optimize for fast installation.
16215 fast_install=$enable_fast_install
16217 # The host system.
16218 host_alias=$host_alias
16219 host=$host
16220 host_os=$host_os
16222 # The build system.
16223 build_alias=$build_alias
16224 build=$build
16225 build_os=$build_os
16227 # An echo program that does not interpret backslashes.
16228 echo=$lt_echo
16230 # The archiver.
16231 AR=$lt_AR
16232 AR_FLAGS=$lt_AR_FLAGS
16234 # A C compiler.
16235 LTCC=$lt_LTCC
16237 # LTCC compiler flags.
16238 LTCFLAGS=$lt_LTCFLAGS
16240 # A language-specific compiler.
16241 CC=$lt_compiler_F77
16243 # Is the compiler the GNU C compiler?
16244 with_gcc=$GCC_F77
16246 # An ERE matcher.
16247 EGREP=$lt_EGREP
16249 # The linker used to build libraries.
16250 LD=$lt_LD_F77
16252 # Whether we need hard or soft links.
16253 LN_S=$lt_LN_S
16255 # A BSD-compatible nm program.
16256 NM=$lt_NM
16258 # A symbol stripping program
16259 STRIP=$lt_STRIP
16261 # Used to examine libraries when file_magic_cmd begins "file"
16262 MAGIC_CMD=$MAGIC_CMD
16264 # Used on cygwin: DLL creation program.
16265 DLLTOOL="$DLLTOOL"
16267 # Used on cygwin: object dumper.
16268 OBJDUMP="$OBJDUMP"
16270 # Used on cygwin: assembler.
16271 AS="$AS"
16273 # The name of the directory that contains temporary libtool files.
16274 objdir=$objdir
16276 # How to create reloadable object files.
16277 reload_flag=$lt_reload_flag
16278 reload_cmds=$lt_reload_cmds
16280 # How to pass a linker flag through the compiler.
16281 wl=$lt_lt_prog_compiler_wl_F77
16283 # Object file suffix (normally "o").
16284 objext="$ac_objext"
16286 # Old archive suffix (normally "a").
16287 libext="$libext"
16289 # Shared library suffix (normally ".so").
16290 shrext_cmds='$shrext_cmds'
16292 # Executable file suffix (normally "").
16293 exeext="$exeext"
16295 # Additional compiler flags for building library objects.
16296 pic_flag=$lt_lt_prog_compiler_pic_F77
16297 pic_mode=$pic_mode
16299 # What is the maximum length of a command?
16300 max_cmd_len=$lt_cv_sys_max_cmd_len
16302 # Does compiler simultaneously support -c and -o options?
16303 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
16305 # Must we lock files when doing compilation?
16306 need_locks=$lt_need_locks
16308 # Do we need the lib prefix for modules?
16309 need_lib_prefix=$need_lib_prefix
16311 # Do we need a version for libraries?
16312 need_version=$need_version
16314 # Whether dlopen is supported.
16315 dlopen_support=$enable_dlopen
16317 # Whether dlopen of programs is supported.
16318 dlopen_self=$enable_dlopen_self
16320 # Whether dlopen of statically linked programs is supported.
16321 dlopen_self_static=$enable_dlopen_self_static
16323 # Compiler flag to prevent dynamic linking.
16324 link_static_flag=$lt_lt_prog_compiler_static_F77
16326 # Compiler flag to turn off builtin functions.
16327 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
16329 # Compiler flag to allow reflexive dlopens.
16330 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
16332 # Compiler flag to generate shared objects directly from archives.
16333 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
16335 # Compiler flag to generate thread-safe objects.
16336 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
16338 # Library versioning type.
16339 version_type=$version_type
16341 # Format of library name prefix.
16342 libname_spec=$lt_libname_spec
16344 # List of archive names. First name is the real one, the rest are links.
16345 # The last name is the one that the linker finds with -lNAME.
16346 library_names_spec=$lt_library_names_spec
16348 # The coded name of the library, if different from the real name.
16349 soname_spec=$lt_soname_spec
16351 # Commands used to build and install an old-style archive.
16352 RANLIB=$lt_RANLIB
16353 old_archive_cmds=$lt_old_archive_cmds_F77
16354 old_postinstall_cmds=$lt_old_postinstall_cmds
16355 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16357 # Create an old-style archive from a shared archive.
16358 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16360 # Create a temporary old-style archive to link instead of a shared archive.
16361 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16363 # Commands used to build and install a shared archive.
16364 archive_cmds=$lt_archive_cmds_F77
16365 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16366 postinstall_cmds=$lt_postinstall_cmds
16367 postuninstall_cmds=$lt_postuninstall_cmds
16369 # Commands used to build a loadable module (assumed same as above if empty)
16370 module_cmds=$lt_module_cmds_F77
16371 module_expsym_cmds=$lt_module_expsym_cmds_F77
16373 # Commands to strip libraries.
16374 old_striplib=$lt_old_striplib
16375 striplib=$lt_striplib
16377 # Dependencies to place before the objects being linked to create a
16378 # shared library.
16379 predep_objects=$lt_predep_objects_F77
16381 # Dependencies to place after the objects being linked to create a
16382 # shared library.
16383 postdep_objects=$lt_postdep_objects_F77
16385 # Dependencies to place before the objects being linked to create a
16386 # shared library.
16387 predeps=$lt_predeps_F77
16389 # Dependencies to place after the objects being linked to create a
16390 # shared library.
16391 postdeps=$lt_postdeps_F77
16393 # The library search path used internally by the compiler when linking
16394 # a shared library.
16395 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
16397 # Method to check whether dependent libraries are shared objects.
16398 deplibs_check_method=$lt_deplibs_check_method
16400 # Command to use when deplibs_check_method == file_magic.
16401 file_magic_cmd=$lt_file_magic_cmd
16403 # Flag that allows shared libraries with undefined symbols to be built.
16404 allow_undefined_flag=$lt_allow_undefined_flag_F77
16406 # Flag that forces no undefined symbols.
16407 no_undefined_flag=$lt_no_undefined_flag_F77
16409 # Commands used to finish a libtool library installation in a directory.
16410 finish_cmds=$lt_finish_cmds
16412 # Same as above, but a single script fragment to be evaled but not shown.
16413 finish_eval=$lt_finish_eval
16415 # Take the output of nm and produce a listing of raw symbols and C names.
16416 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16418 # Transform the output of nm in a proper C declaration
16419 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16421 # Transform the output of nm in a C name address pair
16422 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16424 # This is the shared library runtime path variable.
16425 runpath_var=$runpath_var
16427 # This is the shared library path variable.
16428 shlibpath_var=$shlibpath_var
16430 # Is shlibpath searched before the hard-coded library search path?
16431 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16433 # How to hardcode a shared library path into an executable.
16434 hardcode_action=$hardcode_action_F77
16436 # Whether we should hardcode library paths into libraries.
16437 hardcode_into_libs=$hardcode_into_libs
16439 # Flag to hardcode \$libdir into a binary during linking.
16440 # This must work even if \$libdir does not exist.
16441 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16443 # If ld is used when linking, flag to hardcode \$libdir into
16444 # a binary during linking. This must work even if \$libdir does
16445 # not exist.
16446 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16448 # Whether we need a single -rpath flag with a separated argument.
16449 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16451 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16452 # resulting binary.
16453 hardcode_direct=$hardcode_direct_F77
16455 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16456 # resulting binary.
16457 hardcode_minus_L=$hardcode_minus_L_F77
16459 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16460 # the resulting binary.
16461 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16463 # Set to yes if building a shared library automatically hardcodes DIR into the library
16464 # and all subsequent libraries and executables linked against it.
16465 hardcode_automatic=$hardcode_automatic_F77
16467 # Variables whose values should be saved in libtool wrapper scripts and
16468 # restored at relink time.
16469 variables_saved_for_relink="$variables_saved_for_relink"
16471 # Whether libtool must link a program against all its dependency libraries.
16472 link_all_deplibs=$link_all_deplibs_F77
16474 # Compile-time system search path for libraries
16475 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16477 # Run-time system search path for libraries
16478 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16480 # Fix the shell variable \$srcfile for the compiler.
16481 fix_srcfile_path="$fix_srcfile_path_F77"
16483 # Set to yes if exported symbols are required.
16484 always_export_symbols=$always_export_symbols_F77
16486 # The commands to list exported symbols.
16487 export_symbols_cmds=$lt_export_symbols_cmds_F77
16489 # The commands to extract the exported symbol list from a shared archive.
16490 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16492 # Symbols that should not be listed in the preloaded symbols.
16493 exclude_expsyms=$lt_exclude_expsyms_F77
16495 # Symbols that must always be exported.
16496 include_expsyms=$lt_include_expsyms_F77
16498 # ### END LIBTOOL TAG CONFIG: $tagname
16500 __EOF__
16503 else
16504 # If there is no Makefile yet, we rely on a make rule to execute
16505 # `config.status --recheck' to rerun these tests and create the
16506 # libtool script then.
16507 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16508 if test -f "$ltmain_in"; then
16509 test -f Makefile && make "$ltmain"
16514 ac_ext=cpp
16515 ac_cpp='$CXXCPP $CPPFLAGS'
16516 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16517 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16518 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16520 CC="$lt_save_CC"
16522 else
16523 tagname=""
16527 GCJ)
16528 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16531 # Source file extension for Java test sources.
16532 ac_ext=java
16534 # Object file extension for compiled Java test sources.
16535 objext=o
16536 objext_GCJ=$objext
16538 # Code to be used in simple compile tests
16539 lt_simple_compile_test_code="class foo {}\n"
16541 # Code to be used in simple link tests
16542 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
16544 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
16546 # If no C compiler was specified, use CC.
16547 LTCC=${LTCC-"$CC"}
16549 # If no C compiler flags were specified, use CFLAGS.
16550 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16552 # Allow CC to be a program name with arguments.
16553 compiler=$CC
16556 # save warnings/boilerplate of simple test code
16557 ac_outfile=conftest.$ac_objext
16558 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
16559 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16560 _lt_compiler_boilerplate=`cat conftest.err`
16561 $rm conftest*
16563 ac_outfile=conftest.$ac_objext
16564 printf "$lt_simple_link_test_code" >conftest.$ac_ext
16565 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16566 _lt_linker_boilerplate=`cat conftest.err`
16567 $rm conftest*
16570 # Allow CC to be a program name with arguments.
16571 lt_save_CC="$CC"
16572 CC=${GCJ-"gcj"}
16573 compiler=$CC
16574 compiler_GCJ=$CC
16575 for cc_temp in $compiler""; do
16576 case $cc_temp in
16577 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16578 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16579 \-*) ;;
16580 *) break;;
16581 esac
16582 done
16583 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16586 # GCJ did not exist at the time GCC didn't implicitly link libc in.
16587 archive_cmds_need_lc_GCJ=no
16589 old_archive_cmds_GCJ=$old_archive_cmds
16592 lt_prog_compiler_no_builtin_flag_GCJ=
16594 if test "$GCC" = yes; then
16595 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16598 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16599 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
16600 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16601 echo $ECHO_N "(cached) $ECHO_C" >&6
16602 else
16603 lt_cv_prog_compiler_rtti_exceptions=no
16604 ac_outfile=conftest.$ac_objext
16605 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16606 lt_compiler_flag="-fno-rtti -fno-exceptions"
16607 # Insert the option either (1) after the last *FLAGS variable, or
16608 # (2) before a word containing "conftest.", or (3) at the end.
16609 # Note that $ac_compile itself does not contain backslashes and begins
16610 # with a dollar sign (not a hyphen), so the echo should work correctly.
16611 # The option is referenced via a variable to avoid confusing sed.
16612 lt_compile=`echo "$ac_compile" | $SED \
16613 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16614 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16615 -e 's:$: $lt_compiler_flag:'`
16616 (eval echo "\"\$as_me:16616: $lt_compile\"" >&5)
16617 (eval "$lt_compile" 2>conftest.err)
16618 ac_status=$?
16619 cat conftest.err >&5
16620 echo "$as_me:16620: \$? = $ac_status" >&5
16621 if (exit $ac_status) && test -s "$ac_outfile"; then
16622 # The compiler can only warn and ignore the option if not recognized
16623 # So say no if there are warnings other than the usual output.
16624 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16625 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16626 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16627 lt_cv_prog_compiler_rtti_exceptions=yes
16630 $rm conftest*
16633 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16634 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
16636 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16637 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16638 else
16644 lt_prog_compiler_wl_GCJ=
16645 lt_prog_compiler_pic_GCJ=
16646 lt_prog_compiler_static_GCJ=
16648 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16649 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
16651 if test "$GCC" = yes; then
16652 lt_prog_compiler_wl_GCJ='-Wl,'
16653 lt_prog_compiler_static_GCJ='-static'
16655 case $host_os in
16656 aix*)
16657 # All AIX code is PIC.
16658 if test "$host_cpu" = ia64; then
16659 # AIX 5 now supports IA64 processor
16660 lt_prog_compiler_static_GCJ='-Bstatic'
16664 amigaos*)
16665 # FIXME: we need at least 68020 code to build shared libraries, but
16666 # adding the `-m68020' flag to GCC prevents building anything better,
16667 # like `-m68040'.
16668 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16671 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16672 # PIC is the default for these OSes.
16675 mingw* | pw32* | os2*)
16676 # This hack is so that the source file can tell whether it is being
16677 # built for inclusion in a dll (and should export symbols for example).
16678 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16681 darwin* | rhapsody*)
16682 # PIC is the default on this platform
16683 # Common symbols not allowed in MH_DYLIB files
16684 lt_prog_compiler_pic_GCJ='-fno-common'
16687 interix3*)
16688 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16689 # Instead, we relocate shared libraries at runtime.
16692 msdosdjgpp*)
16693 # Just because we use GCC doesn't mean we suddenly get shared libraries
16694 # on systems that don't support them.
16695 lt_prog_compiler_can_build_shared_GCJ=no
16696 enable_shared=no
16699 sysv4*MP*)
16700 if test -d /usr/nec; then
16701 lt_prog_compiler_pic_GCJ=-Kconform_pic
16705 hpux*)
16706 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16707 # not for PA HP-UX.
16708 case $host_cpu in
16709 hppa*64*|ia64*)
16710 # +Z the default
16713 lt_prog_compiler_pic_GCJ='-fPIC'
16715 esac
16719 lt_prog_compiler_pic_GCJ='-fPIC'
16721 esac
16722 else
16723 # PORTME Check for flag to pass linker flags through the system compiler.
16724 case $host_os in
16725 aix*)
16726 lt_prog_compiler_wl_GCJ='-Wl,'
16727 if test "$host_cpu" = ia64; then
16728 # AIX 5 now supports IA64 processor
16729 lt_prog_compiler_static_GCJ='-Bstatic'
16730 else
16731 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16734 darwin*)
16735 # PIC is the default on this platform
16736 # Common symbols not allowed in MH_DYLIB files
16737 case $cc_basename in
16738 xlc*)
16739 lt_prog_compiler_pic_GCJ='-qnocommon'
16740 lt_prog_compiler_wl_GCJ='-Wl,'
16742 esac
16745 mingw* | pw32* | os2*)
16746 # This hack is so that the source file can tell whether it is being
16747 # built for inclusion in a dll (and should export symbols for example).
16748 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16751 hpux9* | hpux10* | hpux11*)
16752 lt_prog_compiler_wl_GCJ='-Wl,'
16753 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16754 # not for PA HP-UX.
16755 case $host_cpu in
16756 hppa*64*|ia64*)
16757 # +Z the default
16760 lt_prog_compiler_pic_GCJ='+Z'
16762 esac
16763 # Is there a better lt_prog_compiler_static that works with the bundled CC?
16764 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
16767 irix5* | irix6* | nonstopux*)
16768 lt_prog_compiler_wl_GCJ='-Wl,'
16769 # PIC (with -KPIC) is the default.
16770 lt_prog_compiler_static_GCJ='-non_shared'
16773 newsos6)
16774 lt_prog_compiler_pic_GCJ='-KPIC'
16775 lt_prog_compiler_static_GCJ='-Bstatic'
16778 linux*)
16779 case $cc_basename in
16780 icc* | ecc*)
16781 lt_prog_compiler_wl_GCJ='-Wl,'
16782 lt_prog_compiler_pic_GCJ='-KPIC'
16783 lt_prog_compiler_static_GCJ='-static'
16785 pgcc* | pgf77* | pgf90* | pgf95*)
16786 # Portland Group compilers (*not* the Pentium gcc compiler,
16787 # which looks to be a dead project)
16788 lt_prog_compiler_wl_GCJ='-Wl,'
16789 lt_prog_compiler_pic_GCJ='-fpic'
16790 lt_prog_compiler_static_GCJ='-Bstatic'
16792 ccc*)
16793 lt_prog_compiler_wl_GCJ='-Wl,'
16794 # All Alpha code is PIC.
16795 lt_prog_compiler_static_GCJ='-non_shared'
16797 esac
16800 osf3* | osf4* | osf5*)
16801 lt_prog_compiler_wl_GCJ='-Wl,'
16802 # All OSF/1 code is PIC.
16803 lt_prog_compiler_static_GCJ='-non_shared'
16806 solaris*)
16807 lt_prog_compiler_pic_GCJ='-KPIC'
16808 lt_prog_compiler_static_GCJ='-Bstatic'
16809 case $cc_basename in
16810 f77* | f90* | f95*)
16811 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
16813 lt_prog_compiler_wl_GCJ='-Wl,';;
16814 esac
16817 sunos4*)
16818 lt_prog_compiler_wl_GCJ='-Qoption ld '
16819 lt_prog_compiler_pic_GCJ='-PIC'
16820 lt_prog_compiler_static_GCJ='-Bstatic'
16823 sysv4 | sysv4.2uw2* | sysv4.3*)
16824 lt_prog_compiler_wl_GCJ='-Wl,'
16825 lt_prog_compiler_pic_GCJ='-KPIC'
16826 lt_prog_compiler_static_GCJ='-Bstatic'
16829 sysv4*MP*)
16830 if test -d /usr/nec ;then
16831 lt_prog_compiler_pic_GCJ='-Kconform_pic'
16832 lt_prog_compiler_static_GCJ='-Bstatic'
16836 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16837 lt_prog_compiler_wl_GCJ='-Wl,'
16838 lt_prog_compiler_pic_GCJ='-KPIC'
16839 lt_prog_compiler_static_GCJ='-Bstatic'
16842 unicos*)
16843 lt_prog_compiler_wl_GCJ='-Wl,'
16844 lt_prog_compiler_can_build_shared_GCJ=no
16847 uts4*)
16848 lt_prog_compiler_pic_GCJ='-pic'
16849 lt_prog_compiler_static_GCJ='-Bstatic'
16853 lt_prog_compiler_can_build_shared_GCJ=no
16855 esac
16858 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
16859 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
16862 # Check to make sure the PIC flag actually works.
16864 if test -n "$lt_prog_compiler_pic_GCJ"; then
16866 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
16867 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
16868 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
16869 echo $ECHO_N "(cached) $ECHO_C" >&6
16870 else
16871 lt_prog_compiler_pic_works_GCJ=no
16872 ac_outfile=conftest.$ac_objext
16873 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16874 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
16875 # Insert the option either (1) after the last *FLAGS variable, or
16876 # (2) before a word containing "conftest.", or (3) at the end.
16877 # Note that $ac_compile itself does not contain backslashes and begins
16878 # with a dollar sign (not a hyphen), so the echo should work correctly.
16879 # The option is referenced via a variable to avoid confusing sed.
16880 lt_compile=`echo "$ac_compile" | $SED \
16881 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16882 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16883 -e 's:$: $lt_compiler_flag:'`
16884 (eval echo "\"\$as_me:16884: $lt_compile\"" >&5)
16885 (eval "$lt_compile" 2>conftest.err)
16886 ac_status=$?
16887 cat conftest.err >&5
16888 echo "$as_me:16888: \$? = $ac_status" >&5
16889 if (exit $ac_status) && test -s "$ac_outfile"; then
16890 # The compiler can only warn and ignore the option if not recognized
16891 # So say no if there are warnings other than the usual output.
16892 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16893 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16894 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16895 lt_prog_compiler_pic_works_GCJ=yes
16898 $rm conftest*
16901 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
16902 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
16904 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
16905 case $lt_prog_compiler_pic_GCJ in
16906 "" | " "*) ;;
16907 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
16908 esac
16909 else
16910 lt_prog_compiler_pic_GCJ=
16911 lt_prog_compiler_can_build_shared_GCJ=no
16915 case $host_os in
16916 # For platforms which do not support PIC, -DPIC is meaningless:
16917 *djgpp*)
16918 lt_prog_compiler_pic_GCJ=
16921 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
16923 esac
16926 # Check to make sure the static flag actually works.
16928 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
16929 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16930 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
16931 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
16932 echo $ECHO_N "(cached) $ECHO_C" >&6
16933 else
16934 lt_prog_compiler_static_works_GCJ=no
16935 save_LDFLAGS="$LDFLAGS"
16936 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16937 printf "$lt_simple_link_test_code" > conftest.$ac_ext
16938 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16939 # The linker can only warn and ignore the option if not recognized
16940 # So say no if there are warnings
16941 if test -s conftest.err; then
16942 # Append any errors to the config.log.
16943 cat conftest.err 1>&5
16944 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
16945 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16946 if diff conftest.exp conftest.er2 >/dev/null; then
16947 lt_prog_compiler_static_works_GCJ=yes
16949 else
16950 lt_prog_compiler_static_works_GCJ=yes
16953 $rm conftest*
16954 LDFLAGS="$save_LDFLAGS"
16957 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
16958 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
16960 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
16962 else
16963 lt_prog_compiler_static_GCJ=
16967 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16968 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
16969 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
16970 echo $ECHO_N "(cached) $ECHO_C" >&6
16971 else
16972 lt_cv_prog_compiler_c_o_GCJ=no
16973 $rm -r conftest 2>/dev/null
16974 mkdir conftest
16975 cd conftest
16976 mkdir out
16977 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16979 lt_compiler_flag="-o out/conftest2.$ac_objext"
16980 # Insert the option either (1) after the last *FLAGS variable, or
16981 # (2) before a word containing "conftest.", or (3) at the end.
16982 # Note that $ac_compile itself does not contain backslashes and begins
16983 # with a dollar sign (not a hyphen), so the echo should work correctly.
16984 lt_compile=`echo "$ac_compile" | $SED \
16985 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16986 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16987 -e 's:$: $lt_compiler_flag:'`
16988 (eval echo "\"\$as_me:16988: $lt_compile\"" >&5)
16989 (eval "$lt_compile" 2>out/conftest.err)
16990 ac_status=$?
16991 cat out/conftest.err >&5
16992 echo "$as_me:16992: \$? = $ac_status" >&5
16993 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16994 then
16995 # The compiler can only warn and ignore the option if not recognized
16996 # So say no if there are warnings
16997 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
16998 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16999 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17000 lt_cv_prog_compiler_c_o_GCJ=yes
17003 chmod u+w . 2>&5
17004 $rm conftest*
17005 # SGI C++ compiler will create directory out/ii_files/ for
17006 # template instantiation
17007 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
17008 $rm out/* && rmdir out
17009 cd ..
17010 rmdir conftest
17011 $rm conftest*
17014 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
17015 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
17018 hard_links="nottested"
17019 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
17020 # do not overwrite the value of need_locks provided by the user
17021 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
17022 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
17023 hard_links=yes
17024 $rm conftest*
17025 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17026 touch conftest.a
17027 ln conftest.a conftest.b 2>&5 || hard_links=no
17028 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17029 { echo "$as_me:$LINENO: result: $hard_links" >&5
17030 echo "${ECHO_T}$hard_links" >&6; }
17031 if test "$hard_links" = no; then
17032 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17033 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17034 need_locks=warn
17036 else
17037 need_locks=no
17040 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17041 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
17043 runpath_var=
17044 allow_undefined_flag_GCJ=
17045 enable_shared_with_static_runtimes_GCJ=no
17046 archive_cmds_GCJ=
17047 archive_expsym_cmds_GCJ=
17048 old_archive_From_new_cmds_GCJ=
17049 old_archive_from_expsyms_cmds_GCJ=
17050 export_dynamic_flag_spec_GCJ=
17051 whole_archive_flag_spec_GCJ=
17052 thread_safe_flag_spec_GCJ=
17053 hardcode_libdir_flag_spec_GCJ=
17054 hardcode_libdir_flag_spec_ld_GCJ=
17055 hardcode_libdir_separator_GCJ=
17056 hardcode_direct_GCJ=no
17057 hardcode_minus_L_GCJ=no
17058 hardcode_shlibpath_var_GCJ=unsupported
17059 link_all_deplibs_GCJ=unknown
17060 hardcode_automatic_GCJ=no
17061 module_cmds_GCJ=
17062 module_expsym_cmds_GCJ=
17063 always_export_symbols_GCJ=no
17064 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17065 # include_expsyms should be a list of space-separated symbols to be *always*
17066 # included in the symbol list
17067 include_expsyms_GCJ=
17068 # exclude_expsyms can be an extended regexp of symbols to exclude
17069 # it will be wrapped by ` (' and `)$', so one must not match beginning or
17070 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
17071 # as well as any symbol that contains `d'.
17072 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
17073 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17074 # platforms (ab)use it in PIC code, but their linkers get confused if
17075 # the symbol is explicitly referenced. Since portable code cannot
17076 # rely on this symbol name, it's probably fine to never include it in
17077 # preloaded symbol tables.
17078 extract_expsyms_cmds=
17079 # Just being paranoid about ensuring that cc_basename is set.
17080 for cc_temp in $compiler""; do
17081 case $cc_temp in
17082 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17083 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17084 \-*) ;;
17085 *) break;;
17086 esac
17087 done
17088 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17090 case $host_os in
17091 cygwin* | mingw* | pw32*)
17092 # FIXME: the MSVC++ port hasn't been tested in a loooong time
17093 # When not using gcc, we currently assume that we are using
17094 # Microsoft Visual C++.
17095 if test "$GCC" != yes; then
17096 with_gnu_ld=no
17099 interix*)
17100 # we just hope/assume this is gcc and not c89 (= MSVC++)
17101 with_gnu_ld=yes
17103 openbsd*)
17104 with_gnu_ld=no
17106 esac
17108 ld_shlibs_GCJ=yes
17109 if test "$with_gnu_ld" = yes; then
17110 # If archive_cmds runs LD, not CC, wlarc should be empty
17111 wlarc='${wl}'
17113 # Set some defaults for GNU ld with shared library support. These
17114 # are reset later if shared libraries are not supported. Putting them
17115 # here allows them to be overridden if necessary.
17116 runpath_var=LD_RUN_PATH
17117 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
17118 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
17119 # ancient GNU ld didn't support --whole-archive et. al.
17120 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
17121 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17122 else
17123 whole_archive_flag_spec_GCJ=
17125 supports_anon_versioning=no
17126 case `$LD -v 2>/dev/null` in
17127 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17128 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17129 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17130 *\ 2.11.*) ;; # other 2.11 versions
17131 *) supports_anon_versioning=yes ;;
17132 esac
17134 # See if GNU ld supports shared libraries.
17135 case $host_os in
17136 aix3* | aix4* | aix5*)
17137 # On AIX/PPC, the GNU linker is very broken
17138 if test "$host_cpu" != ia64; then
17139 ld_shlibs_GCJ=no
17140 cat <<EOF 1>&2
17142 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
17143 *** to be unable to reliably create shared libraries on AIX.
17144 *** Therefore, libtool is disabling shared libraries support. If you
17145 *** really care for shared libraries, you may want to modify your PATH
17146 *** so that a non-GNU linker is found, and then restart.
17152 amigaos*)
17153 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)'
17154 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17155 hardcode_minus_L_GCJ=yes
17157 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
17158 # that the semantics of dynamic libraries on AmigaOS, at least up
17159 # to version 4, is to share data among multiple programs linked
17160 # with the same dynamic library. Since this doesn't match the
17161 # behavior of shared libraries on other platforms, we can't use
17162 # them.
17163 ld_shlibs_GCJ=no
17166 beos*)
17167 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17168 allow_undefined_flag_GCJ=unsupported
17169 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17170 # support --undefined. This deserves some investigation. FIXME
17171 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17172 else
17173 ld_shlibs_GCJ=no
17177 cygwin* | mingw* | pw32*)
17178 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
17179 # as there is no search path for DLLs.
17180 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17181 allow_undefined_flag_GCJ=unsupported
17182 always_export_symbols_GCJ=no
17183 enable_shared_with_static_runtimes_GCJ=yes
17184 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
17186 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
17187 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17188 # If the export-symbols file already is a .def file (1st line
17189 # is EXPORTS), use it as is; otherwise, prepend...
17190 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17191 cp $export_symbols $output_objdir/$soname.def;
17192 else
17193 echo EXPORTS > $output_objdir/$soname.def;
17194 cat $export_symbols >> $output_objdir/$soname.def;
17196 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17197 else
17198 ld_shlibs_GCJ=no
17202 interix3*)
17203 hardcode_direct_GCJ=no
17204 hardcode_shlibpath_var_GCJ=no
17205 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17206 export_dynamic_flag_spec_GCJ='${wl}-E'
17207 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17208 # Instead, shared libraries are loaded at an image base (0x10000000 by
17209 # default) and relocated if they conflict, which is a slow very memory
17210 # consuming and fragmenting process. To avoid this, we pick a random,
17211 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17212 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
17213 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'
17214 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'
17217 linux*)
17218 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17219 tmp_addflag=
17220 case $cc_basename,$host_cpu in
17221 pgcc*) # Portland Group C compiler
17222 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'
17223 tmp_addflag=' $pic_flag'
17225 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
17226 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'
17227 tmp_addflag=' $pic_flag -Mnomain' ;;
17228 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
17229 tmp_addflag=' -i_dynamic' ;;
17230 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
17231 tmp_addflag=' -i_dynamic -nofor_main' ;;
17232 ifc* | ifort*) # Intel Fortran compiler
17233 tmp_addflag=' -nofor_main' ;;
17234 esac
17235 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17237 if test $supports_anon_versioning = yes; then
17238 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
17239 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17240 $echo "local: *; };" >> $output_objdir/$libname.ver~
17241 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17243 else
17244 ld_shlibs_GCJ=no
17248 netbsd*)
17249 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17250 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17251 wlarc=
17252 else
17253 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17254 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17258 solaris*)
17259 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
17260 ld_shlibs_GCJ=no
17261 cat <<EOF 1>&2
17263 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
17264 *** create shared libraries on Solaris systems. Therefore, libtool
17265 *** is disabling shared libraries support. We urge you to upgrade GNU
17266 *** binutils to release 2.9.1 or newer. Another option is to modify
17267 *** your PATH or compiler configuration so that the native linker is
17268 *** used, and then restart.
17271 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17272 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17273 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17274 else
17275 ld_shlibs_GCJ=no
17279 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
17280 case `$LD -v 2>&1` in
17281 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
17282 ld_shlibs_GCJ=no
17283 cat <<_LT_EOF 1>&2
17285 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
17286 *** reliably create shared libraries on SCO systems. Therefore, libtool
17287 *** is disabling shared libraries support. We urge you to upgrade GNU
17288 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
17289 *** your PATH or compiler configuration so that the native linker is
17290 *** used, and then restart.
17292 _LT_EOF
17295 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17296 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
17297 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
17298 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
17299 else
17300 ld_shlibs_GCJ=no
17303 esac
17306 sunos4*)
17307 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17308 wlarc=
17309 hardcode_direct_GCJ=yes
17310 hardcode_shlibpath_var_GCJ=no
17314 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17315 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17316 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17317 else
17318 ld_shlibs_GCJ=no
17321 esac
17323 if test "$ld_shlibs_GCJ" = no; then
17324 runpath_var=
17325 hardcode_libdir_flag_spec_GCJ=
17326 export_dynamic_flag_spec_GCJ=
17327 whole_archive_flag_spec_GCJ=
17329 else
17330 # PORTME fill in a description of your system's linker (not GNU ld)
17331 case $host_os in
17332 aix3*)
17333 allow_undefined_flag_GCJ=unsupported
17334 always_export_symbols_GCJ=yes
17335 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'
17336 # Note: this linker hardcodes the directories in LIBPATH if there
17337 # are no directories specified by -L.
17338 hardcode_minus_L_GCJ=yes
17339 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17340 # Neither direct hardcoding nor static linking is supported with a
17341 # broken collect2.
17342 hardcode_direct_GCJ=unsupported
17346 aix4* | aix5*)
17347 if test "$host_cpu" = ia64; then
17348 # On IA64, the linker does run time linking by default, so we don't
17349 # have to do anything special.
17350 aix_use_runtimelinking=no
17351 exp_sym_flag='-Bexport'
17352 no_entry_flag=""
17353 else
17354 # If we're using GNU nm, then we don't want the "-C" option.
17355 # -C means demangle to AIX nm, but means don't demangle with GNU nm
17356 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17357 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'
17358 else
17359 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'
17361 aix_use_runtimelinking=no
17363 # Test if we are trying to use run time linking or normal
17364 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17365 # need to do runtime linking.
17366 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
17367 for ld_flag in $LDFLAGS; do
17368 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17369 aix_use_runtimelinking=yes
17370 break
17372 done
17374 esac
17376 exp_sym_flag='-bexport'
17377 no_entry_flag='-bnoentry'
17380 # When large executables or shared objects are built, AIX ld can
17381 # have problems creating the table of contents. If linking a library
17382 # or program results in "error TOC overflow" add -mminimal-toc to
17383 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
17384 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17386 archive_cmds_GCJ=''
17387 hardcode_direct_GCJ=yes
17388 hardcode_libdir_separator_GCJ=':'
17389 link_all_deplibs_GCJ=yes
17391 if test "$GCC" = yes; then
17392 case $host_os in aix4.[012]|aix4.[012].*)
17393 # We only want to do this on AIX 4.2 and lower, the check
17394 # below for broken collect2 doesn't work under 4.3+
17395 collect2name=`${CC} -print-prog-name=collect2`
17396 if test -f "$collect2name" && \
17397 strings "$collect2name" | grep resolve_lib_name >/dev/null
17398 then
17399 # We have reworked collect2
17400 hardcode_direct_GCJ=yes
17401 else
17402 # We have old collect2
17403 hardcode_direct_GCJ=unsupported
17404 # It fails to find uninstalled libraries when the uninstalled
17405 # path is not listed in the libpath. Setting hardcode_minus_L
17406 # to unsupported forces relinking
17407 hardcode_minus_L_GCJ=yes
17408 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17409 hardcode_libdir_separator_GCJ=
17412 esac
17413 shared_flag='-shared'
17414 if test "$aix_use_runtimelinking" = yes; then
17415 shared_flag="$shared_flag "'${wl}-G'
17417 else
17418 # not using gcc
17419 if test "$host_cpu" = ia64; then
17420 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17421 # chokes on -Wl,-G. The following line is correct:
17422 shared_flag='-G'
17423 else
17424 if test "$aix_use_runtimelinking" = yes; then
17425 shared_flag='${wl}-G'
17426 else
17427 shared_flag='${wl}-bM:SRE'
17432 # It seems that -bexpall does not export symbols beginning with
17433 # underscore (_), so it is better to generate a list of symbols to export.
17434 always_export_symbols_GCJ=yes
17435 if test "$aix_use_runtimelinking" = yes; then
17436 # Warning - without using the other runtime loading flags (-brtl),
17437 # -berok will link without error, but may produce a broken library.
17438 allow_undefined_flag_GCJ='-berok'
17439 # Determine the default libpath from the value encoded in an empty executable.
17440 cat >conftest.$ac_ext <<_ACEOF
17441 /* confdefs.h. */
17442 _ACEOF
17443 cat confdefs.h >>conftest.$ac_ext
17444 cat >>conftest.$ac_ext <<_ACEOF
17445 /* end confdefs.h. */
17448 main ()
17452 return 0;
17454 _ACEOF
17455 rm -f conftest.$ac_objext conftest$ac_exeext
17456 if { (ac_try="$ac_link"
17457 case "(($ac_try" in
17458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17459 *) ac_try_echo=$ac_try;;
17460 esac
17461 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17462 (eval "$ac_link") 2>conftest.er1
17463 ac_status=$?
17464 grep -v '^ *+' conftest.er1 >conftest.err
17465 rm -f conftest.er1
17466 cat conftest.err >&5
17467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17468 (exit $ac_status); } &&
17469 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
17470 { (case "(($ac_try" in
17471 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17472 *) ac_try_echo=$ac_try;;
17473 esac
17474 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17475 (eval "$ac_try") 2>&5
17476 ac_status=$?
17477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17478 (exit $ac_status); }; } &&
17479 { ac_try='test -s conftest$ac_exeext'
17480 { (case "(($ac_try" in
17481 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17482 *) ac_try_echo=$ac_try;;
17483 esac
17484 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17485 (eval "$ac_try") 2>&5
17486 ac_status=$?
17487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17488 (exit $ac_status); }; }; then
17490 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17492 # Check for a 64-bit object if we didn't find anything.
17493 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; }
17494 }'`; fi
17495 else
17496 echo "$as_me: failed program was:" >&5
17497 sed 's/^/| /' conftest.$ac_ext >&5
17502 rm -f core conftest.err conftest.$ac_objext \
17503 conftest$ac_exeext conftest.$ac_ext
17504 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17506 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17507 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"
17508 else
17509 if test "$host_cpu" = ia64; then
17510 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17511 allow_undefined_flag_GCJ="-z nodefs"
17512 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"
17513 else
17514 # Determine the default libpath from the value encoded in an empty executable.
17515 cat >conftest.$ac_ext <<_ACEOF
17516 /* confdefs.h. */
17517 _ACEOF
17518 cat confdefs.h >>conftest.$ac_ext
17519 cat >>conftest.$ac_ext <<_ACEOF
17520 /* end confdefs.h. */
17523 main ()
17527 return 0;
17529 _ACEOF
17530 rm -f conftest.$ac_objext conftest$ac_exeext
17531 if { (ac_try="$ac_link"
17532 case "(($ac_try" in
17533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17534 *) ac_try_echo=$ac_try;;
17535 esac
17536 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17537 (eval "$ac_link") 2>conftest.er1
17538 ac_status=$?
17539 grep -v '^ *+' conftest.er1 >conftest.err
17540 rm -f conftest.er1
17541 cat conftest.err >&5
17542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17543 (exit $ac_status); } &&
17544 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
17545 { (case "(($ac_try" in
17546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17547 *) ac_try_echo=$ac_try;;
17548 esac
17549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17550 (eval "$ac_try") 2>&5
17551 ac_status=$?
17552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17553 (exit $ac_status); }; } &&
17554 { ac_try='test -s conftest$ac_exeext'
17555 { (case "(($ac_try" in
17556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17557 *) ac_try_echo=$ac_try;;
17558 esac
17559 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17560 (eval "$ac_try") 2>&5
17561 ac_status=$?
17562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17563 (exit $ac_status); }; }; then
17565 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17567 # Check for a 64-bit object if we didn't find anything.
17568 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; }
17569 }'`; fi
17570 else
17571 echo "$as_me: failed program was:" >&5
17572 sed 's/^/| /' conftest.$ac_ext >&5
17577 rm -f core conftest.err conftest.$ac_objext \
17578 conftest$ac_exeext conftest.$ac_ext
17579 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17581 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17582 # Warning - without using the other run time loading flags,
17583 # -berok will link without error, but may produce a broken library.
17584 no_undefined_flag_GCJ=' ${wl}-bernotok'
17585 allow_undefined_flag_GCJ=' ${wl}-berok'
17586 # Exported symbols can be pulled into shared objects from archives
17587 whole_archive_flag_spec_GCJ='$convenience'
17588 archive_cmds_need_lc_GCJ=yes
17589 # This is similar to how AIX traditionally builds its shared libraries.
17590 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'
17595 amigaos*)
17596 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)'
17597 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17598 hardcode_minus_L_GCJ=yes
17599 # see comment about different semantics on the GNU ld section
17600 ld_shlibs_GCJ=no
17603 bsdi[45]*)
17604 export_dynamic_flag_spec_GCJ=-rdynamic
17607 cygwin* | mingw* | pw32*)
17608 # When not using gcc, we currently assume that we are using
17609 # Microsoft Visual C++.
17610 # hardcode_libdir_flag_spec is actually meaningless, as there is
17611 # no search path for DLLs.
17612 hardcode_libdir_flag_spec_GCJ=' '
17613 allow_undefined_flag_GCJ=unsupported
17614 # Tell ltmain to make .lib files, not .a files.
17615 libext=lib
17616 # Tell ltmain to make .dll files, not .so files.
17617 shrext_cmds=".dll"
17618 # FIXME: Setting linknames here is a bad hack.
17619 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17620 # The linker will automatically build a .lib file if we build a DLL.
17621 old_archive_From_new_cmds_GCJ='true'
17622 # FIXME: Should let the user specify the lib program.
17623 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
17624 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
17625 enable_shared_with_static_runtimes_GCJ=yes
17628 darwin* | rhapsody*)
17629 case $host_os in
17630 rhapsody* | darwin1.[012])
17631 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
17633 *) # Darwin 1.3 on
17634 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17635 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17636 else
17637 case ${MACOSX_DEPLOYMENT_TARGET} in
17638 10.[012])
17639 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17641 10.*)
17642 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
17644 esac
17647 esac
17648 archive_cmds_need_lc_GCJ=no
17649 hardcode_direct_GCJ=no
17650 hardcode_automatic_GCJ=yes
17651 hardcode_shlibpath_var_GCJ=unsupported
17652 whole_archive_flag_spec_GCJ=''
17653 link_all_deplibs_GCJ=yes
17654 if test "$GCC" = yes ; then
17655 output_verbose_link_cmd='echo'
17656 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
17657 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17658 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17659 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}'
17660 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}'
17661 else
17662 case $cc_basename in
17663 xlc*)
17664 output_verbose_link_cmd='echo'
17665 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
17666 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17667 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17668 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}'
17669 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}'
17672 ld_shlibs_GCJ=no
17674 esac
17678 dgux*)
17679 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17680 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17681 hardcode_shlibpath_var_GCJ=no
17684 freebsd1*)
17685 ld_shlibs_GCJ=no
17688 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17689 # support. Future versions do this automatically, but an explicit c++rt0.o
17690 # does not break anything, and helps significantly (at the cost of a little
17691 # extra space).
17692 freebsd2.2*)
17693 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17694 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17695 hardcode_direct_GCJ=yes
17696 hardcode_shlibpath_var_GCJ=no
17699 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17700 freebsd2*)
17701 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17702 hardcode_direct_GCJ=yes
17703 hardcode_minus_L_GCJ=yes
17704 hardcode_shlibpath_var_GCJ=no
17707 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17708 freebsd* | kfreebsd*-gnu | dragonfly*)
17709 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17710 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17711 hardcode_direct_GCJ=yes
17712 hardcode_shlibpath_var_GCJ=no
17715 hpux9*)
17716 if test "$GCC" = yes; then
17717 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'
17718 else
17719 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'
17721 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17722 hardcode_libdir_separator_GCJ=:
17723 hardcode_direct_GCJ=yes
17725 # hardcode_minus_L: Not really in the search PATH,
17726 # but as the default location of the library.
17727 hardcode_minus_L_GCJ=yes
17728 export_dynamic_flag_spec_GCJ='${wl}-E'
17731 hpux10*)
17732 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17733 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17734 else
17735 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17737 if test "$with_gnu_ld" = no; then
17738 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17739 hardcode_libdir_separator_GCJ=:
17741 hardcode_direct_GCJ=yes
17742 export_dynamic_flag_spec_GCJ='${wl}-E'
17744 # hardcode_minus_L: Not really in the search PATH,
17745 # but as the default location of the library.
17746 hardcode_minus_L_GCJ=yes
17750 hpux11*)
17751 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17752 case $host_cpu in
17753 hppa*64*)
17754 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17756 ia64*)
17757 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17760 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17762 esac
17763 else
17764 case $host_cpu in
17765 hppa*64*)
17766 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17768 ia64*)
17769 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17772 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17774 esac
17776 if test "$with_gnu_ld" = no; then
17777 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17778 hardcode_libdir_separator_GCJ=:
17780 case $host_cpu in
17781 hppa*64*|ia64*)
17782 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
17783 hardcode_direct_GCJ=no
17784 hardcode_shlibpath_var_GCJ=no
17787 hardcode_direct_GCJ=yes
17788 export_dynamic_flag_spec_GCJ='${wl}-E'
17790 # hardcode_minus_L: Not really in the search PATH,
17791 # but as the default location of the library.
17792 hardcode_minus_L_GCJ=yes
17794 esac
17798 irix5* | irix6* | nonstopux*)
17799 if test "$GCC" = yes; then
17800 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'
17801 else
17802 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'
17803 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
17805 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17806 hardcode_libdir_separator_GCJ=:
17807 link_all_deplibs_GCJ=yes
17810 netbsd*)
17811 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17812 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
17813 else
17814 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
17816 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17817 hardcode_direct_GCJ=yes
17818 hardcode_shlibpath_var_GCJ=no
17821 newsos6)
17822 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17823 hardcode_direct_GCJ=yes
17824 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17825 hardcode_libdir_separator_GCJ=:
17826 hardcode_shlibpath_var_GCJ=no
17829 openbsd*)
17830 hardcode_direct_GCJ=yes
17831 hardcode_shlibpath_var_GCJ=no
17832 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17833 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17834 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17835 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17836 export_dynamic_flag_spec_GCJ='${wl}-E'
17837 else
17838 case $host_os in
17839 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17840 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17841 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17844 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17845 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17847 esac
17851 os2*)
17852 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17853 hardcode_minus_L_GCJ=yes
17854 allow_undefined_flag_GCJ=unsupported
17855 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'
17856 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17859 osf3*)
17860 if test "$GCC" = yes; then
17861 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17862 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'
17863 else
17864 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17865 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'
17867 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17868 hardcode_libdir_separator_GCJ=:
17871 osf4* | osf5*) # as osf3* with the addition of -msym flag
17872 if test "$GCC" = yes; then
17873 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17874 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'
17875 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17876 else
17877 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17878 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'
17879 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~
17880 $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'
17882 # Both c and cxx compiler support -rpath directly
17883 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
17885 hardcode_libdir_separator_GCJ=:
17888 solaris*)
17889 no_undefined_flag_GCJ=' -z text'
17890 if test "$GCC" = yes; then
17891 wlarc='${wl}'
17892 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17893 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17894 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
17895 else
17896 wlarc=''
17897 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17898 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17899 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17901 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17902 hardcode_shlibpath_var_GCJ=no
17903 case $host_os in
17904 solaris2.[0-5] | solaris2.[0-5].*) ;;
17906 # The compiler driver will combine linker options so we
17907 # cannot just pass the convience library names through
17908 # without $wl, iff we do not link with $LD.
17909 # Luckily, gcc supports the same syntax we need for Sun Studio.
17910 # Supported since Solaris 2.6 (maybe 2.5.1?)
17911 case $wlarc in
17913 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
17915 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' ;;
17916 esac ;;
17917 esac
17918 link_all_deplibs_GCJ=yes
17921 sunos4*)
17922 if test "x$host_vendor" = xsequent; then
17923 # Use $CC to link under sequent, because it throws in some extra .o
17924 # files that make .init and .fini sections work.
17925 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17926 else
17927 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17929 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17930 hardcode_direct_GCJ=yes
17931 hardcode_minus_L_GCJ=yes
17932 hardcode_shlibpath_var_GCJ=no
17935 sysv4)
17936 case $host_vendor in
17937 sni)
17938 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17939 hardcode_direct_GCJ=yes # is this really true???
17941 siemens)
17942 ## LD is ld it makes a PLAMLIB
17943 ## CC just makes a GrossModule.
17944 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17945 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
17946 hardcode_direct_GCJ=no
17948 motorola)
17949 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17950 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
17952 esac
17953 runpath_var='LD_RUN_PATH'
17954 hardcode_shlibpath_var_GCJ=no
17957 sysv4.3*)
17958 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17959 hardcode_shlibpath_var_GCJ=no
17960 export_dynamic_flag_spec_GCJ='-Bexport'
17963 sysv4*MP*)
17964 if test -d /usr/nec; then
17965 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17966 hardcode_shlibpath_var_GCJ=no
17967 runpath_var=LD_RUN_PATH
17968 hardcode_runpath_var=yes
17969 ld_shlibs_GCJ=yes
17973 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
17974 no_undefined_flag_GCJ='${wl}-z,text'
17975 archive_cmds_need_lc_GCJ=no
17976 hardcode_shlibpath_var_GCJ=no
17977 runpath_var='LD_RUN_PATH'
17979 if test "$GCC" = yes; then
17980 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17981 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17982 else
17983 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17984 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17988 sysv5* | sco3.2v5* | sco5v6*)
17989 # Note: We can NOT use -z defs as we might desire, because we do not
17990 # link with -lc, and that would cause any symbols used from libc to
17991 # always be unresolved, which means just about no library would
17992 # ever link correctly. If we're not using GNU ld we use -z text
17993 # though, which does catch some bad symbols but isn't as heavy-handed
17994 # as -z defs.
17995 no_undefined_flag_GCJ='${wl}-z,text'
17996 allow_undefined_flag_GCJ='${wl}-z,nodefs'
17997 archive_cmds_need_lc_GCJ=no
17998 hardcode_shlibpath_var_GCJ=no
17999 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
18000 hardcode_libdir_separator_GCJ=':'
18001 link_all_deplibs_GCJ=yes
18002 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
18003 runpath_var='LD_RUN_PATH'
18005 if test "$GCC" = yes; then
18006 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18007 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18008 else
18009 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18010 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18014 uts4*)
18015 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18016 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18017 hardcode_shlibpath_var_GCJ=no
18021 ld_shlibs_GCJ=no
18023 esac
18026 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
18027 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
18028 test "$ld_shlibs_GCJ" = no && can_build_shared=no
18031 # Do we need to explicitly link libc?
18033 case "x$archive_cmds_need_lc_GCJ" in
18034 x|xyes)
18035 # Assume -lc should be added
18036 archive_cmds_need_lc_GCJ=yes
18038 if test "$enable_shared" = yes && test "$GCC" = yes; then
18039 case $archive_cmds_GCJ in
18040 *'~'*)
18041 # FIXME: we may have to deal with multi-command sequences.
18043 '$CC '*)
18044 # Test whether the compiler implicitly links with -lc since on some
18045 # systems, -lgcc has to come before -lc. If gcc already passes -lc
18046 # to ld, don't add -lc before -lgcc.
18047 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
18048 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
18049 $rm conftest*
18050 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18052 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18053 (eval $ac_compile) 2>&5
18054 ac_status=$?
18055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18056 (exit $ac_status); } 2>conftest.err; then
18057 soname=conftest
18058 lib=conftest
18059 libobjs=conftest.$ac_objext
18060 deplibs=
18061 wl=$lt_prog_compiler_wl_GCJ
18062 pic_flag=$lt_prog_compiler_pic_GCJ
18063 compiler_flags=-v
18064 linker_flags=-v
18065 verstring=
18066 output_objdir=.
18067 libname=conftest
18068 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
18069 allow_undefined_flag_GCJ=
18070 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
18071 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
18072 ac_status=$?
18073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18074 (exit $ac_status); }
18075 then
18076 archive_cmds_need_lc_GCJ=no
18077 else
18078 archive_cmds_need_lc_GCJ=yes
18080 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
18081 else
18082 cat conftest.err 1>&5
18084 $rm conftest*
18085 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
18086 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
18088 esac
18091 esac
18093 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
18094 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
18095 library_names_spec=
18096 libname_spec='lib$name'
18097 soname_spec=
18098 shrext_cmds=".so"
18099 postinstall_cmds=
18100 postuninstall_cmds=
18101 finish_cmds=
18102 finish_eval=
18103 shlibpath_var=
18104 shlibpath_overrides_runpath=unknown
18105 version_type=none
18106 dynamic_linker="$host_os ld.so"
18107 sys_lib_dlsearch_path_spec="/lib /usr/lib"
18108 if test "$GCC" = yes; then
18109 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18110 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
18111 # if the path contains ";" then we assume it to be the separator
18112 # otherwise default to the standard path separator (i.e. ":") - it is
18113 # assumed that no part of a normal pathname contains ";" but that should
18114 # okay in the real world where ";" in dirpaths is itself problematic.
18115 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18116 else
18117 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18119 else
18120 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
18122 need_lib_prefix=unknown
18123 hardcode_into_libs=no
18125 # when you set need_version to no, make sure it does not cause -set_version
18126 # flags to be left without arguments
18127 need_version=unknown
18129 case $host_os in
18130 aix3*)
18131 version_type=linux
18132 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18133 shlibpath_var=LIBPATH
18135 # AIX 3 has no versioning support, so we append a major version to the name.
18136 soname_spec='${libname}${release}${shared_ext}$major'
18139 aix4* | aix5*)
18140 version_type=linux
18141 need_lib_prefix=no
18142 need_version=no
18143 hardcode_into_libs=yes
18144 if test "$host_cpu" = ia64; then
18145 # AIX 5 supports IA64
18146 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18147 shlibpath_var=LD_LIBRARY_PATH
18148 else
18149 # With GCC up to 2.95.x, collect2 would create an import file
18150 # for dependence libraries. The import file would start with
18151 # the line `#! .'. This would cause the generated library to
18152 # depend on `.', always an invalid library. This was fixed in
18153 # development snapshots of GCC prior to 3.0.
18154 case $host_os in
18155 aix4 | aix4.[01] | aix4.[01].*)
18156 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18157 echo ' yes '
18158 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
18160 else
18161 can_build_shared=no
18164 esac
18165 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18166 # soname into executable. Probably we can add versioning support to
18167 # collect2, so additional links can be useful in future.
18168 if test "$aix_use_runtimelinking" = yes; then
18169 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18170 # instead of lib<name>.a to let people know that these are not
18171 # typical AIX shared libraries.
18172 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18173 else
18174 # We preserve .a as extension for shared libraries through AIX4.2
18175 # and later when we are not doing run time linking.
18176 library_names_spec='${libname}${release}.a $libname.a'
18177 soname_spec='${libname}${release}${shared_ext}$major'
18179 shlibpath_var=LIBPATH
18183 amigaos*)
18184 library_names_spec='$libname.ixlibrary $libname.a'
18185 # Create ${libname}_ixlibrary.a entries in /sys/libs.
18186 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'
18189 beos*)
18190 library_names_spec='${libname}${shared_ext}'
18191 dynamic_linker="$host_os ld.so"
18192 shlibpath_var=LIBRARY_PATH
18195 bsdi[45]*)
18196 version_type=linux
18197 need_version=no
18198 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18199 soname_spec='${libname}${release}${shared_ext}$major'
18200 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18201 shlibpath_var=LD_LIBRARY_PATH
18202 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18203 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18204 # the default ld.so.conf also contains /usr/contrib/lib and
18205 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18206 # libtool to hard-code these into programs
18209 cygwin* | mingw* | pw32*)
18210 version_type=windows
18211 shrext_cmds=".dll"
18212 need_version=no
18213 need_lib_prefix=no
18215 case $GCC,$host_os in
18216 yes,cygwin* | yes,mingw* | yes,pw32*)
18217 library_names_spec='$libname.dll.a'
18218 # DLL is installed to $(libdir)/../bin by postinstall_cmds
18219 postinstall_cmds='base_file=`basename \${file}`~
18220 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
18221 dldir=$destdir/`dirname \$dlpath`~
18222 test -d \$dldir || mkdir -p \$dldir~
18223 $install_prog $dir/$dlname \$dldir/$dlname~
18224 chmod a+x \$dldir/$dlname'
18225 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18226 dlpath=$dir/\$dldll~
18227 $rm \$dlpath'
18228 shlibpath_overrides_runpath=yes
18230 case $host_os in
18231 cygwin*)
18232 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18233 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18234 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
18236 mingw*)
18237 # MinGW DLLs use traditional 'lib' prefix
18238 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18239 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18240 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
18241 # It is most probably a Windows format PATH printed by
18242 # mingw gcc, but we are running on Cygwin. Gcc prints its search
18243 # path with ; separators, and with drive letters. We can handle the
18244 # drive letters (cygwin fileutils understands them), so leave them,
18245 # especially as we might pass files found there to a mingw objdump,
18246 # which wouldn't understand a cygwinified path. Ahh.
18247 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18248 else
18249 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18252 pw32*)
18253 # pw32 DLLs use 'pw' prefix rather than 'lib'
18254 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18256 esac
18260 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18262 esac
18263 dynamic_linker='Win32 ld.exe'
18264 # FIXME: first we should search . and the directory the executable is in
18265 shlibpath_var=PATH
18268 darwin* | rhapsody*)
18269 dynamic_linker="$host_os dyld"
18270 version_type=darwin
18271 need_lib_prefix=no
18272 need_version=no
18273 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18274 soname_spec='${libname}${release}${major}$shared_ext'
18275 shlibpath_overrides_runpath=yes
18276 shlibpath_var=DYLD_LIBRARY_PATH
18277 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18278 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
18279 if test "$GCC" = yes; then
18280 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"`
18281 else
18282 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
18284 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18287 dgux*)
18288 version_type=linux
18289 need_lib_prefix=no
18290 need_version=no
18291 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18292 soname_spec='${libname}${release}${shared_ext}$major'
18293 shlibpath_var=LD_LIBRARY_PATH
18296 freebsd1*)
18297 dynamic_linker=no
18300 kfreebsd*-gnu)
18301 version_type=linux
18302 need_lib_prefix=no
18303 need_version=no
18304 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18305 soname_spec='${libname}${release}${shared_ext}$major'
18306 shlibpath_var=LD_LIBRARY_PATH
18307 shlibpath_overrides_runpath=no
18308 hardcode_into_libs=yes
18309 dynamic_linker='GNU ld.so'
18312 freebsd* | dragonfly*)
18313 # DragonFly does not have aout. When/if they implement a new
18314 # versioning mechanism, adjust this.
18315 if test -x /usr/bin/objformat; then
18316 objformat=`/usr/bin/objformat`
18317 else
18318 case $host_os in
18319 freebsd[123]*) objformat=aout ;;
18320 *) objformat=elf ;;
18321 esac
18323 version_type=freebsd-$objformat
18324 case $version_type in
18325 freebsd-elf*)
18326 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18327 need_version=no
18328 need_lib_prefix=no
18330 freebsd-*)
18331 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18332 need_version=yes
18334 esac
18335 shlibpath_var=LD_LIBRARY_PATH
18336 case $host_os in
18337 freebsd2*)
18338 shlibpath_overrides_runpath=yes
18340 freebsd3.[01]* | freebsdelf3.[01]*)
18341 shlibpath_overrides_runpath=yes
18342 hardcode_into_libs=yes
18344 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18345 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18346 shlibpath_overrides_runpath=no
18347 hardcode_into_libs=yes
18349 freebsd*) # from 4.6 on
18350 shlibpath_overrides_runpath=yes
18351 hardcode_into_libs=yes
18353 esac
18356 gnu*)
18357 version_type=linux
18358 need_lib_prefix=no
18359 need_version=no
18360 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18361 soname_spec='${libname}${release}${shared_ext}$major'
18362 shlibpath_var=LD_LIBRARY_PATH
18363 hardcode_into_libs=yes
18366 hpux9* | hpux10* | hpux11*)
18367 # Give a soname corresponding to the major version so that dld.sl refuses to
18368 # link against other versions.
18369 version_type=sunos
18370 need_lib_prefix=no
18371 need_version=no
18372 case $host_cpu in
18373 ia64*)
18374 shrext_cmds='.so'
18375 hardcode_into_libs=yes
18376 dynamic_linker="$host_os dld.so"
18377 shlibpath_var=LD_LIBRARY_PATH
18378 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18379 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18380 soname_spec='${libname}${release}${shared_ext}$major'
18381 if test "X$HPUX_IA64_MODE" = X32; then
18382 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18383 else
18384 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18386 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18388 hppa*64*)
18389 shrext_cmds='.sl'
18390 hardcode_into_libs=yes
18391 dynamic_linker="$host_os dld.sl"
18392 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18393 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18394 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18395 soname_spec='${libname}${release}${shared_ext}$major'
18396 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18397 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18400 shrext_cmds='.sl'
18401 dynamic_linker="$host_os dld.sl"
18402 shlibpath_var=SHLIB_PATH
18403 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18404 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18405 soname_spec='${libname}${release}${shared_ext}$major'
18407 esac
18408 # HP-UX runs *really* slowly unless shared libraries are mode 555.
18409 postinstall_cmds='chmod 555 $lib'
18412 interix3*)
18413 version_type=linux
18414 need_lib_prefix=no
18415 need_version=no
18416 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18417 soname_spec='${libname}${release}${shared_ext}$major'
18418 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18419 shlibpath_var=LD_LIBRARY_PATH
18420 shlibpath_overrides_runpath=no
18421 hardcode_into_libs=yes
18424 irix5* | irix6* | nonstopux*)
18425 case $host_os in
18426 nonstopux*) version_type=nonstopux ;;
18428 if test "$lt_cv_prog_gnu_ld" = yes; then
18429 version_type=linux
18430 else
18431 version_type=irix
18432 fi ;;
18433 esac
18434 need_lib_prefix=no
18435 need_version=no
18436 soname_spec='${libname}${release}${shared_ext}$major'
18437 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18438 case $host_os in
18439 irix5* | nonstopux*)
18440 libsuff= shlibsuff=
18443 case $LD in # libtool.m4 will add one of these switches to LD
18444 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18445 libsuff= shlibsuff= libmagic=32-bit;;
18446 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18447 libsuff=32 shlibsuff=N32 libmagic=N32;;
18448 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18449 libsuff=64 shlibsuff=64 libmagic=64-bit;;
18450 *) libsuff= shlibsuff= libmagic=never-match;;
18451 esac
18453 esac
18454 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18455 shlibpath_overrides_runpath=no
18456 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18457 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18458 hardcode_into_libs=yes
18461 # No shared lib support for Linux oldld, aout, or coff.
18462 linux*oldld* | linux*aout* | linux*coff*)
18463 dynamic_linker=no
18466 # This must be Linux ELF.
18467 linux*)
18468 version_type=linux
18469 need_lib_prefix=no
18470 need_version=no
18471 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18472 soname_spec='${libname}${release}${shared_ext}$major'
18473 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18474 shlibpath_var=LD_LIBRARY_PATH
18475 shlibpath_overrides_runpath=no
18476 # This implies no fast_install, which is unacceptable.
18477 # Some rework will be needed to allow for fast_install
18478 # before this can be enabled.
18479 hardcode_into_libs=yes
18481 # Append ld.so.conf contents to the search path
18482 if test -f /etc/ld.so.conf; then
18483 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' ' '`
18484 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18487 # We used to test for /lib/ld.so.1 and disable shared libraries on
18488 # powerpc, because MkLinux only supported shared libraries with the
18489 # GNU dynamic linker. Since this was broken with cross compilers,
18490 # most powerpc-linux boxes support dynamic linking these days and
18491 # people can always --disable-shared, the test was removed, and we
18492 # assume the GNU/Linux dynamic linker is in use.
18493 dynamic_linker='GNU/Linux ld.so'
18496 knetbsd*-gnu)
18497 version_type=linux
18498 need_lib_prefix=no
18499 need_version=no
18500 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18501 soname_spec='${libname}${release}${shared_ext}$major'
18502 shlibpath_var=LD_LIBRARY_PATH
18503 shlibpath_overrides_runpath=no
18504 hardcode_into_libs=yes
18505 dynamic_linker='GNU ld.so'
18508 netbsd*)
18509 version_type=sunos
18510 need_lib_prefix=no
18511 need_version=no
18512 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18513 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18514 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18515 dynamic_linker='NetBSD (a.out) ld.so'
18516 else
18517 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18518 soname_spec='${libname}${release}${shared_ext}$major'
18519 dynamic_linker='NetBSD ld.elf_so'
18521 shlibpath_var=LD_LIBRARY_PATH
18522 shlibpath_overrides_runpath=yes
18523 hardcode_into_libs=yes
18526 newsos6)
18527 version_type=linux
18528 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18529 shlibpath_var=LD_LIBRARY_PATH
18530 shlibpath_overrides_runpath=yes
18533 nto-qnx*)
18534 version_type=linux
18535 need_lib_prefix=no
18536 need_version=no
18537 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18538 soname_spec='${libname}${release}${shared_ext}$major'
18539 shlibpath_var=LD_LIBRARY_PATH
18540 shlibpath_overrides_runpath=yes
18543 openbsd*)
18544 version_type=sunos
18545 sys_lib_dlsearch_path_spec="/usr/lib"
18546 need_lib_prefix=no
18547 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18548 case $host_os in
18549 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18550 *) need_version=no ;;
18551 esac
18552 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18553 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18554 shlibpath_var=LD_LIBRARY_PATH
18555 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18556 case $host_os in
18557 openbsd2.[89] | openbsd2.[89].*)
18558 shlibpath_overrides_runpath=no
18561 shlibpath_overrides_runpath=yes
18563 esac
18564 else
18565 shlibpath_overrides_runpath=yes
18569 os2*)
18570 libname_spec='$name'
18571 shrext_cmds=".dll"
18572 need_lib_prefix=no
18573 library_names_spec='$libname${shared_ext} $libname.a'
18574 dynamic_linker='OS/2 ld.exe'
18575 shlibpath_var=LIBPATH
18578 osf3* | osf4* | osf5*)
18579 version_type=osf
18580 need_lib_prefix=no
18581 need_version=no
18582 soname_spec='${libname}${release}${shared_ext}$major'
18583 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18584 shlibpath_var=LD_LIBRARY_PATH
18585 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18586 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18589 solaris*)
18590 version_type=linux
18591 need_lib_prefix=no
18592 need_version=no
18593 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18594 soname_spec='${libname}${release}${shared_ext}$major'
18595 shlibpath_var=LD_LIBRARY_PATH
18596 shlibpath_overrides_runpath=yes
18597 hardcode_into_libs=yes
18598 # ldd complains unless libraries are executable
18599 postinstall_cmds='chmod +x $lib'
18602 sunos4*)
18603 version_type=sunos
18604 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18605 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18606 shlibpath_var=LD_LIBRARY_PATH
18607 shlibpath_overrides_runpath=yes
18608 if test "$with_gnu_ld" = yes; then
18609 need_lib_prefix=no
18611 need_version=yes
18614 sysv4 | sysv4.3*)
18615 version_type=linux
18616 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18617 soname_spec='${libname}${release}${shared_ext}$major'
18618 shlibpath_var=LD_LIBRARY_PATH
18619 case $host_vendor in
18620 sni)
18621 shlibpath_overrides_runpath=no
18622 need_lib_prefix=no
18623 export_dynamic_flag_spec='${wl}-Blargedynsym'
18624 runpath_var=LD_RUN_PATH
18626 siemens)
18627 need_lib_prefix=no
18629 motorola)
18630 need_lib_prefix=no
18631 need_version=no
18632 shlibpath_overrides_runpath=no
18633 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18635 esac
18638 sysv4*MP*)
18639 if test -d /usr/nec ;then
18640 version_type=linux
18641 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18642 soname_spec='$libname${shared_ext}.$major'
18643 shlibpath_var=LD_LIBRARY_PATH
18647 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18648 version_type=freebsd-elf
18649 need_lib_prefix=no
18650 need_version=no
18651 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18652 soname_spec='${libname}${release}${shared_ext}$major'
18653 shlibpath_var=LD_LIBRARY_PATH
18654 hardcode_into_libs=yes
18655 if test "$with_gnu_ld" = yes; then
18656 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18657 shlibpath_overrides_runpath=no
18658 else
18659 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18660 shlibpath_overrides_runpath=yes
18661 case $host_os in
18662 sco3.2v5*)
18663 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18665 esac
18667 sys_lib_dlsearch_path_spec='/usr/lib'
18670 uts4*)
18671 version_type=linux
18672 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18673 soname_spec='${libname}${release}${shared_ext}$major'
18674 shlibpath_var=LD_LIBRARY_PATH
18678 dynamic_linker=no
18680 esac
18681 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18682 echo "${ECHO_T}$dynamic_linker" >&6; }
18683 test "$dynamic_linker" = no && can_build_shared=no
18685 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18686 if test "$GCC" = yes; then
18687 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18690 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18691 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
18692 hardcode_action_GCJ=
18693 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
18694 test -n "$runpath_var_GCJ" || \
18695 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
18697 # We can hardcode non-existant directories.
18698 if test "$hardcode_direct_GCJ" != no &&
18699 # If the only mechanism to avoid hardcoding is shlibpath_var, we
18700 # have to relink, otherwise we might link with an installed library
18701 # when we should be linking with a yet-to-be-installed one
18702 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18703 test "$hardcode_minus_L_GCJ" != no; then
18704 # Linking always hardcodes the temporary library directory.
18705 hardcode_action_GCJ=relink
18706 else
18707 # We can link without hardcoding, and we can hardcode nonexisting dirs.
18708 hardcode_action_GCJ=immediate
18710 else
18711 # We cannot hardcode anything, or else we can only hardcode existing
18712 # directories.
18713 hardcode_action_GCJ=unsupported
18715 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
18716 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
18718 if test "$hardcode_action_GCJ" = relink; then
18719 # Fast installation is not supported
18720 enable_fast_install=no
18721 elif test "$shlibpath_overrides_runpath" = yes ||
18722 test "$enable_shared" = no; then
18723 # Fast installation is not necessary
18724 enable_fast_install=needless
18728 # The else clause should only fire when bootstrapping the
18729 # libtool distribution, otherwise you forgot to ship ltmain.sh
18730 # with your package, and you will get complaints that there are
18731 # no rules to generate ltmain.sh.
18732 if test -f "$ltmain"; then
18733 # See if we are running on zsh, and set the options which allow our commands through
18734 # without removal of \ escapes.
18735 if test -n "${ZSH_VERSION+set}" ; then
18736 setopt NO_GLOB_SUBST
18738 # Now quote all the things that may contain metacharacters while being
18739 # careful not to overquote the AC_SUBSTed values. We take copies of the
18740 # variables and quote the copies for generation of the libtool script.
18741 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18742 SED SHELL STRIP \
18743 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18744 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18745 deplibs_check_method reload_flag reload_cmds need_locks \
18746 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18747 lt_cv_sys_global_symbol_to_c_name_address \
18748 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18749 old_postinstall_cmds old_postuninstall_cmds \
18750 compiler_GCJ \
18751 CC_GCJ \
18752 LD_GCJ \
18753 lt_prog_compiler_wl_GCJ \
18754 lt_prog_compiler_pic_GCJ \
18755 lt_prog_compiler_static_GCJ \
18756 lt_prog_compiler_no_builtin_flag_GCJ \
18757 export_dynamic_flag_spec_GCJ \
18758 thread_safe_flag_spec_GCJ \
18759 whole_archive_flag_spec_GCJ \
18760 enable_shared_with_static_runtimes_GCJ \
18761 old_archive_cmds_GCJ \
18762 old_archive_from_new_cmds_GCJ \
18763 predep_objects_GCJ \
18764 postdep_objects_GCJ \
18765 predeps_GCJ \
18766 postdeps_GCJ \
18767 compiler_lib_search_path_GCJ \
18768 archive_cmds_GCJ \
18769 archive_expsym_cmds_GCJ \
18770 postinstall_cmds_GCJ \
18771 postuninstall_cmds_GCJ \
18772 old_archive_from_expsyms_cmds_GCJ \
18773 allow_undefined_flag_GCJ \
18774 no_undefined_flag_GCJ \
18775 export_symbols_cmds_GCJ \
18776 hardcode_libdir_flag_spec_GCJ \
18777 hardcode_libdir_flag_spec_ld_GCJ \
18778 hardcode_libdir_separator_GCJ \
18779 hardcode_automatic_GCJ \
18780 module_cmds_GCJ \
18781 module_expsym_cmds_GCJ \
18782 lt_cv_prog_compiler_c_o_GCJ \
18783 exclude_expsyms_GCJ \
18784 include_expsyms_GCJ; do
18786 case $var in
18787 old_archive_cmds_GCJ | \
18788 old_archive_from_new_cmds_GCJ | \
18789 archive_cmds_GCJ | \
18790 archive_expsym_cmds_GCJ | \
18791 module_cmds_GCJ | \
18792 module_expsym_cmds_GCJ | \
18793 old_archive_from_expsyms_cmds_GCJ | \
18794 export_symbols_cmds_GCJ | \
18795 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18796 postinstall_cmds | postuninstall_cmds | \
18797 old_postinstall_cmds | old_postuninstall_cmds | \
18798 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18799 # Double-quote double-evaled strings.
18800 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18803 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18805 esac
18806 done
18808 case $lt_echo in
18809 *'\$0 --fallback-echo"')
18810 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18812 esac
18814 cfgfile="$ofile"
18816 cat <<__EOF__ >> "$cfgfile"
18817 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18819 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18821 # Shell to use when invoking shell scripts.
18822 SHELL=$lt_SHELL
18824 # Whether or not to build shared libraries.
18825 build_libtool_libs=$enable_shared
18827 # Whether or not to build static libraries.
18828 build_old_libs=$enable_static
18830 # Whether or not to add -lc for building shared libraries.
18831 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18833 # Whether or not to disallow shared libs when runtime libs are static
18834 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18836 # Whether or not to optimize for fast installation.
18837 fast_install=$enable_fast_install
18839 # The host system.
18840 host_alias=$host_alias
18841 host=$host
18842 host_os=$host_os
18844 # The build system.
18845 build_alias=$build_alias
18846 build=$build
18847 build_os=$build_os
18849 # An echo program that does not interpret backslashes.
18850 echo=$lt_echo
18852 # The archiver.
18853 AR=$lt_AR
18854 AR_FLAGS=$lt_AR_FLAGS
18856 # A C compiler.
18857 LTCC=$lt_LTCC
18859 # LTCC compiler flags.
18860 LTCFLAGS=$lt_LTCFLAGS
18862 # A language-specific compiler.
18863 CC=$lt_compiler_GCJ
18865 # Is the compiler the GNU C compiler?
18866 with_gcc=$GCC_GCJ
18868 # An ERE matcher.
18869 EGREP=$lt_EGREP
18871 # The linker used to build libraries.
18872 LD=$lt_LD_GCJ
18874 # Whether we need hard or soft links.
18875 LN_S=$lt_LN_S
18877 # A BSD-compatible nm program.
18878 NM=$lt_NM
18880 # A symbol stripping program
18881 STRIP=$lt_STRIP
18883 # Used to examine libraries when file_magic_cmd begins "file"
18884 MAGIC_CMD=$MAGIC_CMD
18886 # Used on cygwin: DLL creation program.
18887 DLLTOOL="$DLLTOOL"
18889 # Used on cygwin: object dumper.
18890 OBJDUMP="$OBJDUMP"
18892 # Used on cygwin: assembler.
18893 AS="$AS"
18895 # The name of the directory that contains temporary libtool files.
18896 objdir=$objdir
18898 # How to create reloadable object files.
18899 reload_flag=$lt_reload_flag
18900 reload_cmds=$lt_reload_cmds
18902 # How to pass a linker flag through the compiler.
18903 wl=$lt_lt_prog_compiler_wl_GCJ
18905 # Object file suffix (normally "o").
18906 objext="$ac_objext"
18908 # Old archive suffix (normally "a").
18909 libext="$libext"
18911 # Shared library suffix (normally ".so").
18912 shrext_cmds='$shrext_cmds'
18914 # Executable file suffix (normally "").
18915 exeext="$exeext"
18917 # Additional compiler flags for building library objects.
18918 pic_flag=$lt_lt_prog_compiler_pic_GCJ
18919 pic_mode=$pic_mode
18921 # What is the maximum length of a command?
18922 max_cmd_len=$lt_cv_sys_max_cmd_len
18924 # Does compiler simultaneously support -c and -o options?
18925 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18927 # Must we lock files when doing compilation?
18928 need_locks=$lt_need_locks
18930 # Do we need the lib prefix for modules?
18931 need_lib_prefix=$need_lib_prefix
18933 # Do we need a version for libraries?
18934 need_version=$need_version
18936 # Whether dlopen is supported.
18937 dlopen_support=$enable_dlopen
18939 # Whether dlopen of programs is supported.
18940 dlopen_self=$enable_dlopen_self
18942 # Whether dlopen of statically linked programs is supported.
18943 dlopen_self_static=$enable_dlopen_self_static
18945 # Compiler flag to prevent dynamic linking.
18946 link_static_flag=$lt_lt_prog_compiler_static_GCJ
18948 # Compiler flag to turn off builtin functions.
18949 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18951 # Compiler flag to allow reflexive dlopens.
18952 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18954 # Compiler flag to generate shared objects directly from archives.
18955 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18957 # Compiler flag to generate thread-safe objects.
18958 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18960 # Library versioning type.
18961 version_type=$version_type
18963 # Format of library name prefix.
18964 libname_spec=$lt_libname_spec
18966 # List of archive names. First name is the real one, the rest are links.
18967 # The last name is the one that the linker finds with -lNAME.
18968 library_names_spec=$lt_library_names_spec
18970 # The coded name of the library, if different from the real name.
18971 soname_spec=$lt_soname_spec
18973 # Commands used to build and install an old-style archive.
18974 RANLIB=$lt_RANLIB
18975 old_archive_cmds=$lt_old_archive_cmds_GCJ
18976 old_postinstall_cmds=$lt_old_postinstall_cmds
18977 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18979 # Create an old-style archive from a shared archive.
18980 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18982 # Create a temporary old-style archive to link instead of a shared archive.
18983 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18985 # Commands used to build and install a shared archive.
18986 archive_cmds=$lt_archive_cmds_GCJ
18987 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18988 postinstall_cmds=$lt_postinstall_cmds
18989 postuninstall_cmds=$lt_postuninstall_cmds
18991 # Commands used to build a loadable module (assumed same as above if empty)
18992 module_cmds=$lt_module_cmds_GCJ
18993 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18995 # Commands to strip libraries.
18996 old_striplib=$lt_old_striplib
18997 striplib=$lt_striplib
18999 # Dependencies to place before the objects being linked to create a
19000 # shared library.
19001 predep_objects=$lt_predep_objects_GCJ
19003 # Dependencies to place after the objects being linked to create a
19004 # shared library.
19005 postdep_objects=$lt_postdep_objects_GCJ
19007 # Dependencies to place before the objects being linked to create a
19008 # shared library.
19009 predeps=$lt_predeps_GCJ
19011 # Dependencies to place after the objects being linked to create a
19012 # shared library.
19013 postdeps=$lt_postdeps_GCJ
19015 # The library search path used internally by the compiler when linking
19016 # a shared library.
19017 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
19019 # Method to check whether dependent libraries are shared objects.
19020 deplibs_check_method=$lt_deplibs_check_method
19022 # Command to use when deplibs_check_method == file_magic.
19023 file_magic_cmd=$lt_file_magic_cmd
19025 # Flag that allows shared libraries with undefined symbols to be built.
19026 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
19028 # Flag that forces no undefined symbols.
19029 no_undefined_flag=$lt_no_undefined_flag_GCJ
19031 # Commands used to finish a libtool library installation in a directory.
19032 finish_cmds=$lt_finish_cmds
19034 # Same as above, but a single script fragment to be evaled but not shown.
19035 finish_eval=$lt_finish_eval
19037 # Take the output of nm and produce a listing of raw symbols and C names.
19038 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19040 # Transform the output of nm in a proper C declaration
19041 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19043 # Transform the output of nm in a C name address pair
19044 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19046 # This is the shared library runtime path variable.
19047 runpath_var=$runpath_var
19049 # This is the shared library path variable.
19050 shlibpath_var=$shlibpath_var
19052 # Is shlibpath searched before the hard-coded library search path?
19053 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19055 # How to hardcode a shared library path into an executable.
19056 hardcode_action=$hardcode_action_GCJ
19058 # Whether we should hardcode library paths into libraries.
19059 hardcode_into_libs=$hardcode_into_libs
19061 # Flag to hardcode \$libdir into a binary during linking.
19062 # This must work even if \$libdir does not exist.
19063 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
19065 # If ld is used when linking, flag to hardcode \$libdir into
19066 # a binary during linking. This must work even if \$libdir does
19067 # not exist.
19068 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
19070 # Whether we need a single -rpath flag with a separated argument.
19071 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
19073 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19074 # resulting binary.
19075 hardcode_direct=$hardcode_direct_GCJ
19077 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19078 # resulting binary.
19079 hardcode_minus_L=$hardcode_minus_L_GCJ
19081 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19082 # the resulting binary.
19083 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
19085 # Set to yes if building a shared library automatically hardcodes DIR into the library
19086 # and all subsequent libraries and executables linked against it.
19087 hardcode_automatic=$hardcode_automatic_GCJ
19089 # Variables whose values should be saved in libtool wrapper scripts and
19090 # restored at relink time.
19091 variables_saved_for_relink="$variables_saved_for_relink"
19093 # Whether libtool must link a program against all its dependency libraries.
19094 link_all_deplibs=$link_all_deplibs_GCJ
19096 # Compile-time system search path for libraries
19097 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19099 # Run-time system search path for libraries
19100 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19102 # Fix the shell variable \$srcfile for the compiler.
19103 fix_srcfile_path="$fix_srcfile_path_GCJ"
19105 # Set to yes if exported symbols are required.
19106 always_export_symbols=$always_export_symbols_GCJ
19108 # The commands to list exported symbols.
19109 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
19111 # The commands to extract the exported symbol list from a shared archive.
19112 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19114 # Symbols that should not be listed in the preloaded symbols.
19115 exclude_expsyms=$lt_exclude_expsyms_GCJ
19117 # Symbols that must always be exported.
19118 include_expsyms=$lt_include_expsyms_GCJ
19120 # ### END LIBTOOL TAG CONFIG: $tagname
19122 __EOF__
19125 else
19126 # If there is no Makefile yet, we rely on a make rule to execute
19127 # `config.status --recheck' to rerun these tests and create the
19128 # libtool script then.
19129 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19130 if test -f "$ltmain_in"; then
19131 test -f Makefile && make "$ltmain"
19136 ac_ext=cpp
19137 ac_cpp='$CXXCPP $CPPFLAGS'
19138 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19139 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19140 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19142 CC="$lt_save_CC"
19144 else
19145 tagname=""
19152 # Source file extension for RC test sources.
19153 ac_ext=rc
19155 # Object file extension for compiled RC test sources.
19156 objext=o
19157 objext_RC=$objext
19159 # Code to be used in simple compile tests
19160 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
19162 # Code to be used in simple link tests
19163 lt_simple_link_test_code="$lt_simple_compile_test_code"
19165 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
19167 # If no C compiler was specified, use CC.
19168 LTCC=${LTCC-"$CC"}
19170 # If no C compiler flags were specified, use CFLAGS.
19171 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
19173 # Allow CC to be a program name with arguments.
19174 compiler=$CC
19177 # save warnings/boilerplate of simple test code
19178 ac_outfile=conftest.$ac_objext
19179 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
19180 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19181 _lt_compiler_boilerplate=`cat conftest.err`
19182 $rm conftest*
19184 ac_outfile=conftest.$ac_objext
19185 printf "$lt_simple_link_test_code" >conftest.$ac_ext
19186 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19187 _lt_linker_boilerplate=`cat conftest.err`
19188 $rm conftest*
19191 # Allow CC to be a program name with arguments.
19192 lt_save_CC="$CC"
19193 CC=${RC-"windres"}
19194 compiler=$CC
19195 compiler_RC=$CC
19196 for cc_temp in $compiler""; do
19197 case $cc_temp in
19198 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19199 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19200 \-*) ;;
19201 *) break;;
19202 esac
19203 done
19204 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
19206 lt_cv_prog_compiler_c_o_RC=yes
19208 # The else clause should only fire when bootstrapping the
19209 # libtool distribution, otherwise you forgot to ship ltmain.sh
19210 # with your package, and you will get complaints that there are
19211 # no rules to generate ltmain.sh.
19212 if test -f "$ltmain"; then
19213 # See if we are running on zsh, and set the options which allow our commands through
19214 # without removal of \ escapes.
19215 if test -n "${ZSH_VERSION+set}" ; then
19216 setopt NO_GLOB_SUBST
19218 # Now quote all the things that may contain metacharacters while being
19219 # careful not to overquote the AC_SUBSTed values. We take copies of the
19220 # variables and quote the copies for generation of the libtool script.
19221 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19222 SED SHELL STRIP \
19223 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19224 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19225 deplibs_check_method reload_flag reload_cmds need_locks \
19226 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19227 lt_cv_sys_global_symbol_to_c_name_address \
19228 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19229 old_postinstall_cmds old_postuninstall_cmds \
19230 compiler_RC \
19231 CC_RC \
19232 LD_RC \
19233 lt_prog_compiler_wl_RC \
19234 lt_prog_compiler_pic_RC \
19235 lt_prog_compiler_static_RC \
19236 lt_prog_compiler_no_builtin_flag_RC \
19237 export_dynamic_flag_spec_RC \
19238 thread_safe_flag_spec_RC \
19239 whole_archive_flag_spec_RC \
19240 enable_shared_with_static_runtimes_RC \
19241 old_archive_cmds_RC \
19242 old_archive_from_new_cmds_RC \
19243 predep_objects_RC \
19244 postdep_objects_RC \
19245 predeps_RC \
19246 postdeps_RC \
19247 compiler_lib_search_path_RC \
19248 archive_cmds_RC \
19249 archive_expsym_cmds_RC \
19250 postinstall_cmds_RC \
19251 postuninstall_cmds_RC \
19252 old_archive_from_expsyms_cmds_RC \
19253 allow_undefined_flag_RC \
19254 no_undefined_flag_RC \
19255 export_symbols_cmds_RC \
19256 hardcode_libdir_flag_spec_RC \
19257 hardcode_libdir_flag_spec_ld_RC \
19258 hardcode_libdir_separator_RC \
19259 hardcode_automatic_RC \
19260 module_cmds_RC \
19261 module_expsym_cmds_RC \
19262 lt_cv_prog_compiler_c_o_RC \
19263 exclude_expsyms_RC \
19264 include_expsyms_RC; do
19266 case $var in
19267 old_archive_cmds_RC | \
19268 old_archive_from_new_cmds_RC | \
19269 archive_cmds_RC | \
19270 archive_expsym_cmds_RC | \
19271 module_cmds_RC | \
19272 module_expsym_cmds_RC | \
19273 old_archive_from_expsyms_cmds_RC | \
19274 export_symbols_cmds_RC | \
19275 extract_expsyms_cmds | reload_cmds | finish_cmds | \
19276 postinstall_cmds | postuninstall_cmds | \
19277 old_postinstall_cmds | old_postuninstall_cmds | \
19278 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19279 # Double-quote double-evaled strings.
19280 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19283 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19285 esac
19286 done
19288 case $lt_echo in
19289 *'\$0 --fallback-echo"')
19290 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19292 esac
19294 cfgfile="$ofile"
19296 cat <<__EOF__ >> "$cfgfile"
19297 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19299 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19301 # Shell to use when invoking shell scripts.
19302 SHELL=$lt_SHELL
19304 # Whether or not to build shared libraries.
19305 build_libtool_libs=$enable_shared
19307 # Whether or not to build static libraries.
19308 build_old_libs=$enable_static
19310 # Whether or not to add -lc for building shared libraries.
19311 build_libtool_need_lc=$archive_cmds_need_lc_RC
19313 # Whether or not to disallow shared libs when runtime libs are static
19314 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19316 # Whether or not to optimize for fast installation.
19317 fast_install=$enable_fast_install
19319 # The host system.
19320 host_alias=$host_alias
19321 host=$host
19322 host_os=$host_os
19324 # The build system.
19325 build_alias=$build_alias
19326 build=$build
19327 build_os=$build_os
19329 # An echo program that does not interpret backslashes.
19330 echo=$lt_echo
19332 # The archiver.
19333 AR=$lt_AR
19334 AR_FLAGS=$lt_AR_FLAGS
19336 # A C compiler.
19337 LTCC=$lt_LTCC
19339 # LTCC compiler flags.
19340 LTCFLAGS=$lt_LTCFLAGS
19342 # A language-specific compiler.
19343 CC=$lt_compiler_RC
19345 # Is the compiler the GNU C compiler?
19346 with_gcc=$GCC_RC
19348 # An ERE matcher.
19349 EGREP=$lt_EGREP
19351 # The linker used to build libraries.
19352 LD=$lt_LD_RC
19354 # Whether we need hard or soft links.
19355 LN_S=$lt_LN_S
19357 # A BSD-compatible nm program.
19358 NM=$lt_NM
19360 # A symbol stripping program
19361 STRIP=$lt_STRIP
19363 # Used to examine libraries when file_magic_cmd begins "file"
19364 MAGIC_CMD=$MAGIC_CMD
19366 # Used on cygwin: DLL creation program.
19367 DLLTOOL="$DLLTOOL"
19369 # Used on cygwin: object dumper.
19370 OBJDUMP="$OBJDUMP"
19372 # Used on cygwin: assembler.
19373 AS="$AS"
19375 # The name of the directory that contains temporary libtool files.
19376 objdir=$objdir
19378 # How to create reloadable object files.
19379 reload_flag=$lt_reload_flag
19380 reload_cmds=$lt_reload_cmds
19382 # How to pass a linker flag through the compiler.
19383 wl=$lt_lt_prog_compiler_wl_RC
19385 # Object file suffix (normally "o").
19386 objext="$ac_objext"
19388 # Old archive suffix (normally "a").
19389 libext="$libext"
19391 # Shared library suffix (normally ".so").
19392 shrext_cmds='$shrext_cmds'
19394 # Executable file suffix (normally "").
19395 exeext="$exeext"
19397 # Additional compiler flags for building library objects.
19398 pic_flag=$lt_lt_prog_compiler_pic_RC
19399 pic_mode=$pic_mode
19401 # What is the maximum length of a command?
19402 max_cmd_len=$lt_cv_sys_max_cmd_len
19404 # Does compiler simultaneously support -c and -o options?
19405 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19407 # Must we lock files when doing compilation?
19408 need_locks=$lt_need_locks
19410 # Do we need the lib prefix for modules?
19411 need_lib_prefix=$need_lib_prefix
19413 # Do we need a version for libraries?
19414 need_version=$need_version
19416 # Whether dlopen is supported.
19417 dlopen_support=$enable_dlopen
19419 # Whether dlopen of programs is supported.
19420 dlopen_self=$enable_dlopen_self
19422 # Whether dlopen of statically linked programs is supported.
19423 dlopen_self_static=$enable_dlopen_self_static
19425 # Compiler flag to prevent dynamic linking.
19426 link_static_flag=$lt_lt_prog_compiler_static_RC
19428 # Compiler flag to turn off builtin functions.
19429 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19431 # Compiler flag to allow reflexive dlopens.
19432 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19434 # Compiler flag to generate shared objects directly from archives.
19435 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19437 # Compiler flag to generate thread-safe objects.
19438 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19440 # Library versioning type.
19441 version_type=$version_type
19443 # Format of library name prefix.
19444 libname_spec=$lt_libname_spec
19446 # List of archive names. First name is the real one, the rest are links.
19447 # The last name is the one that the linker finds with -lNAME.
19448 library_names_spec=$lt_library_names_spec
19450 # The coded name of the library, if different from the real name.
19451 soname_spec=$lt_soname_spec
19453 # Commands used to build and install an old-style archive.
19454 RANLIB=$lt_RANLIB
19455 old_archive_cmds=$lt_old_archive_cmds_RC
19456 old_postinstall_cmds=$lt_old_postinstall_cmds
19457 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19459 # Create an old-style archive from a shared archive.
19460 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19462 # Create a temporary old-style archive to link instead of a shared archive.
19463 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19465 # Commands used to build and install a shared archive.
19466 archive_cmds=$lt_archive_cmds_RC
19467 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19468 postinstall_cmds=$lt_postinstall_cmds
19469 postuninstall_cmds=$lt_postuninstall_cmds
19471 # Commands used to build a loadable module (assumed same as above if empty)
19472 module_cmds=$lt_module_cmds_RC
19473 module_expsym_cmds=$lt_module_expsym_cmds_RC
19475 # Commands to strip libraries.
19476 old_striplib=$lt_old_striplib
19477 striplib=$lt_striplib
19479 # Dependencies to place before the objects being linked to create a
19480 # shared library.
19481 predep_objects=$lt_predep_objects_RC
19483 # Dependencies to place after the objects being linked to create a
19484 # shared library.
19485 postdep_objects=$lt_postdep_objects_RC
19487 # Dependencies to place before the objects being linked to create a
19488 # shared library.
19489 predeps=$lt_predeps_RC
19491 # Dependencies to place after the objects being linked to create a
19492 # shared library.
19493 postdeps=$lt_postdeps_RC
19495 # The library search path used internally by the compiler when linking
19496 # a shared library.
19497 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19499 # Method to check whether dependent libraries are shared objects.
19500 deplibs_check_method=$lt_deplibs_check_method
19502 # Command to use when deplibs_check_method == file_magic.
19503 file_magic_cmd=$lt_file_magic_cmd
19505 # Flag that allows shared libraries with undefined symbols to be built.
19506 allow_undefined_flag=$lt_allow_undefined_flag_RC
19508 # Flag that forces no undefined symbols.
19509 no_undefined_flag=$lt_no_undefined_flag_RC
19511 # Commands used to finish a libtool library installation in a directory.
19512 finish_cmds=$lt_finish_cmds
19514 # Same as above, but a single script fragment to be evaled but not shown.
19515 finish_eval=$lt_finish_eval
19517 # Take the output of nm and produce a listing of raw symbols and C names.
19518 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19520 # Transform the output of nm in a proper C declaration
19521 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19523 # Transform the output of nm in a C name address pair
19524 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19526 # This is the shared library runtime path variable.
19527 runpath_var=$runpath_var
19529 # This is the shared library path variable.
19530 shlibpath_var=$shlibpath_var
19532 # Is shlibpath searched before the hard-coded library search path?
19533 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19535 # How to hardcode a shared library path into an executable.
19536 hardcode_action=$hardcode_action_RC
19538 # Whether we should hardcode library paths into libraries.
19539 hardcode_into_libs=$hardcode_into_libs
19541 # Flag to hardcode \$libdir into a binary during linking.
19542 # This must work even if \$libdir does not exist.
19543 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19545 # If ld is used when linking, flag to hardcode \$libdir into
19546 # a binary during linking. This must work even if \$libdir does
19547 # not exist.
19548 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19550 # Whether we need a single -rpath flag with a separated argument.
19551 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19553 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19554 # resulting binary.
19555 hardcode_direct=$hardcode_direct_RC
19557 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19558 # resulting binary.
19559 hardcode_minus_L=$hardcode_minus_L_RC
19561 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19562 # the resulting binary.
19563 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19565 # Set to yes if building a shared library automatically hardcodes DIR into the library
19566 # and all subsequent libraries and executables linked against it.
19567 hardcode_automatic=$hardcode_automatic_RC
19569 # Variables whose values should be saved in libtool wrapper scripts and
19570 # restored at relink time.
19571 variables_saved_for_relink="$variables_saved_for_relink"
19573 # Whether libtool must link a program against all its dependency libraries.
19574 link_all_deplibs=$link_all_deplibs_RC
19576 # Compile-time system search path for libraries
19577 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19579 # Run-time system search path for libraries
19580 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19582 # Fix the shell variable \$srcfile for the compiler.
19583 fix_srcfile_path="$fix_srcfile_path_RC"
19585 # Set to yes if exported symbols are required.
19586 always_export_symbols=$always_export_symbols_RC
19588 # The commands to list exported symbols.
19589 export_symbols_cmds=$lt_export_symbols_cmds_RC
19591 # The commands to extract the exported symbol list from a shared archive.
19592 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19594 # Symbols that should not be listed in the preloaded symbols.
19595 exclude_expsyms=$lt_exclude_expsyms_RC
19597 # Symbols that must always be exported.
19598 include_expsyms=$lt_include_expsyms_RC
19600 # ### END LIBTOOL TAG CONFIG: $tagname
19602 __EOF__
19605 else
19606 # If there is no Makefile yet, we rely on a make rule to execute
19607 # `config.status --recheck' to rerun these tests and create the
19608 # libtool script then.
19609 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19610 if test -f "$ltmain_in"; then
19611 test -f Makefile && make "$ltmain"
19616 ac_ext=cpp
19617 ac_cpp='$CXXCPP $CPPFLAGS'
19618 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19619 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19620 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19622 CC="$lt_save_CC"
19627 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19628 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19629 { (exit 1); exit 1; }; }
19631 esac
19633 # Append the new tag name to the list of available tags.
19634 if test -n "$tagname" ; then
19635 available_tags="$available_tags $tagname"
19638 done
19639 IFS="$lt_save_ifs"
19641 # Now substitute the updated list of available tags.
19642 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19643 mv "${ofile}T" "$ofile"
19644 chmod +x "$ofile"
19645 else
19646 rm -f "${ofile}T"
19647 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19648 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19649 { (exit 1); exit 1; }; }
19655 # This can be used to rebuild libtool when needed
19656 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19658 # Always use our own libtool.
19659 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19661 # Prevent multiple expansion
19682 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
19683 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
19684 if test "${ac_cv_c_bigendian+set}" = set; then
19685 echo $ECHO_N "(cached) $ECHO_C" >&6
19686 else
19687 # See if sys/param.h defines the BYTE_ORDER macro.
19688 cat >conftest.$ac_ext <<_ACEOF
19689 /* confdefs.h. */
19690 _ACEOF
19691 cat confdefs.h >>conftest.$ac_ext
19692 cat >>conftest.$ac_ext <<_ACEOF
19693 /* end confdefs.h. */
19694 #include <sys/types.h>
19695 #include <sys/param.h>
19698 main ()
19700 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
19701 bogus endian macros
19702 #endif
19705 return 0;
19707 _ACEOF
19708 rm -f conftest.$ac_objext
19709 if { (ac_try="$ac_compile"
19710 case "(($ac_try" in
19711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19712 *) ac_try_echo=$ac_try;;
19713 esac
19714 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19715 (eval "$ac_compile") 2>conftest.er1
19716 ac_status=$?
19717 grep -v '^ *+' conftest.er1 >conftest.err
19718 rm -f conftest.er1
19719 cat conftest.err >&5
19720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19721 (exit $ac_status); } &&
19722 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19723 { (case "(($ac_try" in
19724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19725 *) ac_try_echo=$ac_try;;
19726 esac
19727 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19728 (eval "$ac_try") 2>&5
19729 ac_status=$?
19730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19731 (exit $ac_status); }; } &&
19732 { ac_try='test -s conftest.$ac_objext'
19733 { (case "(($ac_try" in
19734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19735 *) ac_try_echo=$ac_try;;
19736 esac
19737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19738 (eval "$ac_try") 2>&5
19739 ac_status=$?
19740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19741 (exit $ac_status); }; }; then
19742 # It does; now see whether it defined to BIG_ENDIAN or not.
19743 cat >conftest.$ac_ext <<_ACEOF
19744 /* confdefs.h. */
19745 _ACEOF
19746 cat confdefs.h >>conftest.$ac_ext
19747 cat >>conftest.$ac_ext <<_ACEOF
19748 /* end confdefs.h. */
19749 #include <sys/types.h>
19750 #include <sys/param.h>
19753 main ()
19755 #if BYTE_ORDER != BIG_ENDIAN
19756 not big endian
19757 #endif
19760 return 0;
19762 _ACEOF
19763 rm -f conftest.$ac_objext
19764 if { (ac_try="$ac_compile"
19765 case "(($ac_try" in
19766 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19767 *) ac_try_echo=$ac_try;;
19768 esac
19769 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19770 (eval "$ac_compile") 2>conftest.er1
19771 ac_status=$?
19772 grep -v '^ *+' conftest.er1 >conftest.err
19773 rm -f conftest.er1
19774 cat conftest.err >&5
19775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19776 (exit $ac_status); } &&
19777 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19778 { (case "(($ac_try" in
19779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19780 *) ac_try_echo=$ac_try;;
19781 esac
19782 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19783 (eval "$ac_try") 2>&5
19784 ac_status=$?
19785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19786 (exit $ac_status); }; } &&
19787 { ac_try='test -s conftest.$ac_objext'
19788 { (case "(($ac_try" in
19789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19790 *) ac_try_echo=$ac_try;;
19791 esac
19792 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19793 (eval "$ac_try") 2>&5
19794 ac_status=$?
19795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19796 (exit $ac_status); }; }; then
19797 ac_cv_c_bigendian=yes
19798 else
19799 echo "$as_me: failed program was:" >&5
19800 sed 's/^/| /' conftest.$ac_ext >&5
19802 ac_cv_c_bigendian=no
19805 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19806 else
19807 echo "$as_me: failed program was:" >&5
19808 sed 's/^/| /' conftest.$ac_ext >&5
19810 # It does not; compile a test program.
19811 if test "$cross_compiling" = yes; then
19812 # try to guess the endianness by grepping values into an object file
19813 ac_cv_c_bigendian=unknown
19814 cat >conftest.$ac_ext <<_ACEOF
19815 /* confdefs.h. */
19816 _ACEOF
19817 cat confdefs.h >>conftest.$ac_ext
19818 cat >>conftest.$ac_ext <<_ACEOF
19819 /* end confdefs.h. */
19820 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
19821 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
19822 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
19823 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
19824 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
19825 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
19827 main ()
19829 _ascii (); _ebcdic ();
19831 return 0;
19833 _ACEOF
19834 rm -f conftest.$ac_objext
19835 if { (ac_try="$ac_compile"
19836 case "(($ac_try" in
19837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19838 *) ac_try_echo=$ac_try;;
19839 esac
19840 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19841 (eval "$ac_compile") 2>conftest.er1
19842 ac_status=$?
19843 grep -v '^ *+' conftest.er1 >conftest.err
19844 rm -f conftest.er1
19845 cat conftest.err >&5
19846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19847 (exit $ac_status); } &&
19848 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19849 { (case "(($ac_try" in
19850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19851 *) ac_try_echo=$ac_try;;
19852 esac
19853 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19854 (eval "$ac_try") 2>&5
19855 ac_status=$?
19856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19857 (exit $ac_status); }; } &&
19858 { ac_try='test -s conftest.$ac_objext'
19859 { (case "(($ac_try" in
19860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19861 *) ac_try_echo=$ac_try;;
19862 esac
19863 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19864 (eval "$ac_try") 2>&5
19865 ac_status=$?
19866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19867 (exit $ac_status); }; }; then
19868 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
19869 ac_cv_c_bigendian=yes
19871 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
19872 if test "$ac_cv_c_bigendian" = unknown; then
19873 ac_cv_c_bigendian=no
19874 else
19875 # finding both strings is unlikely to happen, but who knows?
19876 ac_cv_c_bigendian=unknown
19879 else
19880 echo "$as_me: failed program was:" >&5
19881 sed 's/^/| /' conftest.$ac_ext >&5
19886 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19887 else
19888 cat >conftest.$ac_ext <<_ACEOF
19889 /* confdefs.h. */
19890 _ACEOF
19891 cat confdefs.h >>conftest.$ac_ext
19892 cat >>conftest.$ac_ext <<_ACEOF
19893 /* end confdefs.h. */
19894 $ac_includes_default
19896 main ()
19899 /* Are we little or big endian? From Harbison&Steele. */
19900 union
19902 long int l;
19903 char c[sizeof (long int)];
19904 } u;
19905 u.l = 1;
19906 return u.c[sizeof (long int) - 1] == 1;
19909 return 0;
19911 _ACEOF
19912 rm -f conftest$ac_exeext
19913 if { (ac_try="$ac_link"
19914 case "(($ac_try" in
19915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19916 *) ac_try_echo=$ac_try;;
19917 esac
19918 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19919 (eval "$ac_link") 2>&5
19920 ac_status=$?
19921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19922 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19923 { (case "(($ac_try" in
19924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19925 *) ac_try_echo=$ac_try;;
19926 esac
19927 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19928 (eval "$ac_try") 2>&5
19929 ac_status=$?
19930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19931 (exit $ac_status); }; }; then
19932 ac_cv_c_bigendian=no
19933 else
19934 echo "$as_me: program exited with status $ac_status" >&5
19935 echo "$as_me: failed program was:" >&5
19936 sed 's/^/| /' conftest.$ac_ext >&5
19938 ( exit $ac_status )
19939 ac_cv_c_bigendian=yes
19941 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19947 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19949 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
19950 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
19951 case $ac_cv_c_bigendian in
19952 yes)
19954 cat >>confdefs.h <<\_ACEOF
19955 #define WORDS_BIGENDIAN 1
19956 _ACEOF
19961 { { echo "$as_me:$LINENO: error: unknown endianness
19962 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
19963 echo "$as_me: error: unknown endianness
19964 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
19965 { (exit 1); exit 1; }; } ;;
19966 esac
19968 { echo "$as_me:$LINENO: checking host system type" >&5
19969 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
19970 if test "${ac_cv_host+set}" = set; then
19971 echo $ECHO_N "(cached) $ECHO_C" >&6
19972 else
19973 if test "x$host_alias" = x; then
19974 ac_cv_host=$ac_cv_build
19975 else
19976 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
19977 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
19978 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
19979 { (exit 1); exit 1; }; }
19983 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
19984 echo "${ECHO_T}$ac_cv_host" >&6; }
19985 case $ac_cv_host in
19986 *-*-*) ;;
19987 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
19988 echo "$as_me: error: invalid value of canonical host" >&2;}
19989 { (exit 1); exit 1; }; };;
19990 esac
19991 host=$ac_cv_host
19992 ac_save_IFS=$IFS; IFS='-'
19993 set x $ac_cv_host
19994 shift
19995 host_cpu=$1
19996 host_vendor=$2
19997 shift; shift
19998 # Remember, the first character of IFS is used to create $*,
19999 # except with old shells:
20000 host_os=$*
20001 IFS=$ac_save_IFS
20002 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
20005 for ac_prog in flex lex
20007 # Extract the first word of "$ac_prog", so it can be a program name with args.
20008 set dummy $ac_prog; ac_word=$2
20009 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20010 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20011 if test "${ac_cv_prog_LEX+set}" = set; then
20012 echo $ECHO_N "(cached) $ECHO_C" >&6
20013 else
20014 if test -n "$LEX"; then
20015 ac_cv_prog_LEX="$LEX" # Let the user override the test.
20016 else
20017 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20018 for as_dir in $PATH
20020 IFS=$as_save_IFS
20021 test -z "$as_dir" && as_dir=.
20022 for ac_exec_ext in '' $ac_executable_extensions; do
20023 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
20024 ac_cv_prog_LEX="$ac_prog"
20025 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20026 break 2
20028 done
20029 done
20030 IFS=$as_save_IFS
20034 LEX=$ac_cv_prog_LEX
20035 if test -n "$LEX"; then
20036 { echo "$as_me:$LINENO: result: $LEX" >&5
20037 echo "${ECHO_T}$LEX" >&6; }
20038 else
20039 { echo "$as_me:$LINENO: result: no" >&5
20040 echo "${ECHO_T}no" >&6; }
20044 test -n "$LEX" && break
20045 done
20046 test -n "$LEX" || LEX=":"
20048 if test -z "$LEXLIB"
20049 then
20050 { echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
20051 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6; }
20052 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
20053 echo $ECHO_N "(cached) $ECHO_C" >&6
20054 else
20055 ac_check_lib_save_LIBS=$LIBS
20056 LIBS="-lfl $LIBS"
20057 cat >conftest.$ac_ext <<_ACEOF
20058 /* confdefs.h. */
20059 _ACEOF
20060 cat confdefs.h >>conftest.$ac_ext
20061 cat >>conftest.$ac_ext <<_ACEOF
20062 /* end confdefs.h. */
20064 /* Override any GCC internal prototype to avoid an error.
20065 Use char because int might match the return type of a GCC
20066 builtin and then its argument prototype would still apply. */
20067 #ifdef __cplusplus
20068 extern "C"
20069 #endif
20070 char yywrap ();
20072 main ()
20074 return yywrap ();
20076 return 0;
20078 _ACEOF
20079 rm -f conftest.$ac_objext conftest$ac_exeext
20080 if { (ac_try="$ac_link"
20081 case "(($ac_try" in
20082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20083 *) ac_try_echo=$ac_try;;
20084 esac
20085 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20086 (eval "$ac_link") 2>conftest.er1
20087 ac_status=$?
20088 grep -v '^ *+' conftest.er1 >conftest.err
20089 rm -f conftest.er1
20090 cat conftest.err >&5
20091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20092 (exit $ac_status); } &&
20093 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20094 { (case "(($ac_try" in
20095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20096 *) ac_try_echo=$ac_try;;
20097 esac
20098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20099 (eval "$ac_try") 2>&5
20100 ac_status=$?
20101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20102 (exit $ac_status); }; } &&
20103 { ac_try='test -s conftest$ac_exeext'
20104 { (case "(($ac_try" in
20105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20106 *) ac_try_echo=$ac_try;;
20107 esac
20108 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20109 (eval "$ac_try") 2>&5
20110 ac_status=$?
20111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20112 (exit $ac_status); }; }; then
20113 ac_cv_lib_fl_yywrap=yes
20114 else
20115 echo "$as_me: failed program was:" >&5
20116 sed 's/^/| /' conftest.$ac_ext >&5
20118 ac_cv_lib_fl_yywrap=no
20121 rm -f core conftest.err conftest.$ac_objext \
20122 conftest$ac_exeext conftest.$ac_ext
20123 LIBS=$ac_check_lib_save_LIBS
20125 { echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
20126 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6; }
20127 if test $ac_cv_lib_fl_yywrap = yes; then
20128 LEXLIB="-lfl"
20129 else
20130 { echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
20131 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6; }
20132 if test "${ac_cv_lib_l_yywrap+set}" = set; then
20133 echo $ECHO_N "(cached) $ECHO_C" >&6
20134 else
20135 ac_check_lib_save_LIBS=$LIBS
20136 LIBS="-ll $LIBS"
20137 cat >conftest.$ac_ext <<_ACEOF
20138 /* confdefs.h. */
20139 _ACEOF
20140 cat confdefs.h >>conftest.$ac_ext
20141 cat >>conftest.$ac_ext <<_ACEOF
20142 /* end confdefs.h. */
20144 /* Override any GCC internal prototype to avoid an error.
20145 Use char because int might match the return type of a GCC
20146 builtin and then its argument prototype would still apply. */
20147 #ifdef __cplusplus
20148 extern "C"
20149 #endif
20150 char yywrap ();
20152 main ()
20154 return yywrap ();
20156 return 0;
20158 _ACEOF
20159 rm -f conftest.$ac_objext conftest$ac_exeext
20160 if { (ac_try="$ac_link"
20161 case "(($ac_try" in
20162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20163 *) ac_try_echo=$ac_try;;
20164 esac
20165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20166 (eval "$ac_link") 2>conftest.er1
20167 ac_status=$?
20168 grep -v '^ *+' conftest.er1 >conftest.err
20169 rm -f conftest.er1
20170 cat conftest.err >&5
20171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20172 (exit $ac_status); } &&
20173 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20174 { (case "(($ac_try" in
20175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20176 *) ac_try_echo=$ac_try;;
20177 esac
20178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20179 (eval "$ac_try") 2>&5
20180 ac_status=$?
20181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20182 (exit $ac_status); }; } &&
20183 { ac_try='test -s conftest$ac_exeext'
20184 { (case "(($ac_try" in
20185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20186 *) ac_try_echo=$ac_try;;
20187 esac
20188 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20189 (eval "$ac_try") 2>&5
20190 ac_status=$?
20191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20192 (exit $ac_status); }; }; then
20193 ac_cv_lib_l_yywrap=yes
20194 else
20195 echo "$as_me: failed program was:" >&5
20196 sed 's/^/| /' conftest.$ac_ext >&5
20198 ac_cv_lib_l_yywrap=no
20201 rm -f core conftest.err conftest.$ac_objext \
20202 conftest$ac_exeext conftest.$ac_ext
20203 LIBS=$ac_check_lib_save_LIBS
20205 { echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
20206 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6; }
20207 if test $ac_cv_lib_l_yywrap = yes; then
20208 LEXLIB="-ll"
20215 if test "x$LEX" != "x:"; then
20216 { echo "$as_me:$LINENO: checking lex output file root" >&5
20217 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6; }
20218 if test "${ac_cv_prog_lex_root+set}" = set; then
20219 echo $ECHO_N "(cached) $ECHO_C" >&6
20220 else
20221 # The minimal lex program is just a single line: %%. But some broken lexes
20222 # (Solaris, I think it was) want two %% lines, so accommodate them.
20223 cat >conftest.l <<_ACEOF
20226 _ACEOF
20227 { (ac_try="$LEX conftest.l"
20228 case "(($ac_try" in
20229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20230 *) ac_try_echo=$ac_try;;
20231 esac
20232 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20233 (eval "$LEX conftest.l") 2>&5
20234 ac_status=$?
20235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20236 (exit $ac_status); }
20237 if test -f lex.yy.c; then
20238 ac_cv_prog_lex_root=lex.yy
20239 elif test -f lexyy.c; then
20240 ac_cv_prog_lex_root=lexyy
20241 else
20242 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
20243 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
20244 { (exit 1); exit 1; }; }
20247 { echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
20248 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6; }
20249 rm -f conftest.l
20250 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
20252 { echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
20253 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6; }
20254 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
20255 echo $ECHO_N "(cached) $ECHO_C" >&6
20256 else
20257 # POSIX says lex can declare yytext either as a pointer or an array; the
20258 # default is implementation-dependent. Figure out which it is, since
20259 # not all implementations provide the %pointer and %array declarations.
20260 ac_cv_prog_lex_yytext_pointer=no
20261 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
20262 ac_save_LIBS=$LIBS
20263 LIBS="$LIBS $LEXLIB"
20264 cat >conftest.$ac_ext <<_ACEOF
20265 `cat $LEX_OUTPUT_ROOT.c`
20266 _ACEOF
20267 rm -f conftest.$ac_objext conftest$ac_exeext
20268 if { (ac_try="$ac_link"
20269 case "(($ac_try" in
20270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20271 *) ac_try_echo=$ac_try;;
20272 esac
20273 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20274 (eval "$ac_link") 2>conftest.er1
20275 ac_status=$?
20276 grep -v '^ *+' conftest.er1 >conftest.err
20277 rm -f conftest.er1
20278 cat conftest.err >&5
20279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20280 (exit $ac_status); } &&
20281 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20282 { (case "(($ac_try" in
20283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20284 *) ac_try_echo=$ac_try;;
20285 esac
20286 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20287 (eval "$ac_try") 2>&5
20288 ac_status=$?
20289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20290 (exit $ac_status); }; } &&
20291 { ac_try='test -s conftest$ac_exeext'
20292 { (case "(($ac_try" in
20293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20294 *) ac_try_echo=$ac_try;;
20295 esac
20296 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20297 (eval "$ac_try") 2>&5
20298 ac_status=$?
20299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20300 (exit $ac_status); }; }; then
20301 ac_cv_prog_lex_yytext_pointer=yes
20302 else
20303 echo "$as_me: failed program was:" >&5
20304 sed 's/^/| /' conftest.$ac_ext >&5
20309 rm -f core conftest.err conftest.$ac_objext \
20310 conftest$ac_exeext conftest.$ac_ext
20311 LIBS=$ac_save_LIBS
20312 rm -f "${LEX_OUTPUT_ROOT}.c"
20315 { echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
20316 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6; }
20317 if test $ac_cv_prog_lex_yytext_pointer = yes; then
20319 cat >>confdefs.h <<\_ACEOF
20320 #define YYTEXT_POINTER 1
20321 _ACEOF
20326 if test "$LEX" = :; then
20327 LEX=${am_missing_run}flex
20329 for ac_prog in 'bison -y' byacc
20331 # Extract the first word of "$ac_prog", so it can be a program name with args.
20332 set dummy $ac_prog; ac_word=$2
20333 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20334 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20335 if test "${ac_cv_prog_YACC+set}" = set; then
20336 echo $ECHO_N "(cached) $ECHO_C" >&6
20337 else
20338 if test -n "$YACC"; then
20339 ac_cv_prog_YACC="$YACC" # Let the user override the test.
20340 else
20341 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20342 for as_dir in $PATH
20344 IFS=$as_save_IFS
20345 test -z "$as_dir" && as_dir=.
20346 for ac_exec_ext in '' $ac_executable_extensions; do
20347 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
20348 ac_cv_prog_YACC="$ac_prog"
20349 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20350 break 2
20352 done
20353 done
20354 IFS=$as_save_IFS
20358 YACC=$ac_cv_prog_YACC
20359 if test -n "$YACC"; then
20360 { echo "$as_me:$LINENO: result: $YACC" >&5
20361 echo "${ECHO_T}$YACC" >&6; }
20362 else
20363 { echo "$as_me:$LINENO: result: no" >&5
20364 echo "${ECHO_T}no" >&6; }
20368 test -n "$YACC" && break
20369 done
20370 test -n "$YACC" || YACC="yacc"
20372 ac_ext=cpp
20373 ac_cpp='$CXXCPP $CPPFLAGS'
20374 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20375 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20376 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20377 if test -z "$CXX"; then
20378 if test -n "$CCC"; then
20379 CXX=$CCC
20380 else
20381 if test -n "$ac_tool_prefix"; then
20382 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
20384 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
20385 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
20386 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20387 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20388 if test "${ac_cv_prog_CXX+set}" = set; then
20389 echo $ECHO_N "(cached) $ECHO_C" >&6
20390 else
20391 if test -n "$CXX"; then
20392 ac_cv_prog_CXX="$CXX" # Let the user override the test.
20393 else
20394 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20395 for as_dir in $PATH
20397 IFS=$as_save_IFS
20398 test -z "$as_dir" && as_dir=.
20399 for ac_exec_ext in '' $ac_executable_extensions; do
20400 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
20401 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
20402 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20403 break 2
20405 done
20406 done
20407 IFS=$as_save_IFS
20411 CXX=$ac_cv_prog_CXX
20412 if test -n "$CXX"; then
20413 { echo "$as_me:$LINENO: result: $CXX" >&5
20414 echo "${ECHO_T}$CXX" >&6; }
20415 else
20416 { echo "$as_me:$LINENO: result: no" >&5
20417 echo "${ECHO_T}no" >&6; }
20421 test -n "$CXX" && break
20422 done
20424 if test -z "$CXX"; then
20425 ac_ct_CXX=$CXX
20426 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
20428 # Extract the first word of "$ac_prog", so it can be a program name with args.
20429 set dummy $ac_prog; ac_word=$2
20430 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20431 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20432 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
20433 echo $ECHO_N "(cached) $ECHO_C" >&6
20434 else
20435 if test -n "$ac_ct_CXX"; then
20436 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
20437 else
20438 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20439 for as_dir in $PATH
20441 IFS=$as_save_IFS
20442 test -z "$as_dir" && as_dir=.
20443 for ac_exec_ext in '' $ac_executable_extensions; do
20444 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
20445 ac_cv_prog_ac_ct_CXX="$ac_prog"
20446 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20447 break 2
20449 done
20450 done
20451 IFS=$as_save_IFS
20455 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
20456 if test -n "$ac_ct_CXX"; then
20457 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
20458 echo "${ECHO_T}$ac_ct_CXX" >&6; }
20459 else
20460 { echo "$as_me:$LINENO: result: no" >&5
20461 echo "${ECHO_T}no" >&6; }
20465 test -n "$ac_ct_CXX" && break
20466 done
20468 if test "x$ac_ct_CXX" = x; then
20469 CXX="g++"
20470 else
20471 case $cross_compiling:$ac_tool_warned in
20472 yes:)
20473 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
20474 whose name does not start with the host triplet. If you think this
20475 configuration is useful to you, please write to autoconf@gnu.org." >&5
20476 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
20477 whose name does not start with the host triplet. If you think this
20478 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
20479 ac_tool_warned=yes ;;
20480 esac
20481 CXX=$ac_ct_CXX
20487 # Provide some information about the compiler.
20488 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
20489 ac_compiler=`set X $ac_compile; echo $2`
20490 { (ac_try="$ac_compiler --version >&5"
20491 case "(($ac_try" in
20492 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20493 *) ac_try_echo=$ac_try;;
20494 esac
20495 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20496 (eval "$ac_compiler --version >&5") 2>&5
20497 ac_status=$?
20498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20499 (exit $ac_status); }
20500 { (ac_try="$ac_compiler -v >&5"
20501 case "(($ac_try" in
20502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20503 *) ac_try_echo=$ac_try;;
20504 esac
20505 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20506 (eval "$ac_compiler -v >&5") 2>&5
20507 ac_status=$?
20508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20509 (exit $ac_status); }
20510 { (ac_try="$ac_compiler -V >&5"
20511 case "(($ac_try" in
20512 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20513 *) ac_try_echo=$ac_try;;
20514 esac
20515 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20516 (eval "$ac_compiler -V >&5") 2>&5
20517 ac_status=$?
20518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20519 (exit $ac_status); }
20521 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
20522 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
20523 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
20524 echo $ECHO_N "(cached) $ECHO_C" >&6
20525 else
20526 cat >conftest.$ac_ext <<_ACEOF
20527 /* confdefs.h. */
20528 _ACEOF
20529 cat confdefs.h >>conftest.$ac_ext
20530 cat >>conftest.$ac_ext <<_ACEOF
20531 /* end confdefs.h. */
20534 main ()
20536 #ifndef __GNUC__
20537 choke me
20538 #endif
20541 return 0;
20543 _ACEOF
20544 rm -f conftest.$ac_objext
20545 if { (ac_try="$ac_compile"
20546 case "(($ac_try" in
20547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20548 *) ac_try_echo=$ac_try;;
20549 esac
20550 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20551 (eval "$ac_compile") 2>conftest.er1
20552 ac_status=$?
20553 grep -v '^ *+' conftest.er1 >conftest.err
20554 rm -f conftest.er1
20555 cat conftest.err >&5
20556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20557 (exit $ac_status); } &&
20558 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20559 { (case "(($ac_try" in
20560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20561 *) ac_try_echo=$ac_try;;
20562 esac
20563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20564 (eval "$ac_try") 2>&5
20565 ac_status=$?
20566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20567 (exit $ac_status); }; } &&
20568 { ac_try='test -s conftest.$ac_objext'
20569 { (case "(($ac_try" in
20570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20571 *) ac_try_echo=$ac_try;;
20572 esac
20573 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20574 (eval "$ac_try") 2>&5
20575 ac_status=$?
20576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20577 (exit $ac_status); }; }; then
20578 ac_compiler_gnu=yes
20579 else
20580 echo "$as_me: failed program was:" >&5
20581 sed 's/^/| /' conftest.$ac_ext >&5
20583 ac_compiler_gnu=no
20586 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20587 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
20590 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
20591 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
20592 GXX=`test $ac_compiler_gnu = yes && echo yes`
20593 ac_test_CXXFLAGS=${CXXFLAGS+set}
20594 ac_save_CXXFLAGS=$CXXFLAGS
20595 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
20596 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
20597 if test "${ac_cv_prog_cxx_g+set}" = set; then
20598 echo $ECHO_N "(cached) $ECHO_C" >&6
20599 else
20600 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
20601 ac_cxx_werror_flag=yes
20602 ac_cv_prog_cxx_g=no
20603 CXXFLAGS="-g"
20604 cat >conftest.$ac_ext <<_ACEOF
20605 /* confdefs.h. */
20606 _ACEOF
20607 cat confdefs.h >>conftest.$ac_ext
20608 cat >>conftest.$ac_ext <<_ACEOF
20609 /* end confdefs.h. */
20612 main ()
20616 return 0;
20618 _ACEOF
20619 rm -f conftest.$ac_objext
20620 if { (ac_try="$ac_compile"
20621 case "(($ac_try" in
20622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20623 *) ac_try_echo=$ac_try;;
20624 esac
20625 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20626 (eval "$ac_compile") 2>conftest.er1
20627 ac_status=$?
20628 grep -v '^ *+' conftest.er1 >conftest.err
20629 rm -f conftest.er1
20630 cat conftest.err >&5
20631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20632 (exit $ac_status); } &&
20633 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20634 { (case "(($ac_try" in
20635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20636 *) ac_try_echo=$ac_try;;
20637 esac
20638 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20639 (eval "$ac_try") 2>&5
20640 ac_status=$?
20641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20642 (exit $ac_status); }; } &&
20643 { ac_try='test -s conftest.$ac_objext'
20644 { (case "(($ac_try" in
20645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20646 *) ac_try_echo=$ac_try;;
20647 esac
20648 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20649 (eval "$ac_try") 2>&5
20650 ac_status=$?
20651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20652 (exit $ac_status); }; }; then
20653 ac_cv_prog_cxx_g=yes
20654 else
20655 echo "$as_me: failed program was:" >&5
20656 sed 's/^/| /' conftest.$ac_ext >&5
20658 CXXFLAGS=""
20659 cat >conftest.$ac_ext <<_ACEOF
20660 /* confdefs.h. */
20661 _ACEOF
20662 cat confdefs.h >>conftest.$ac_ext
20663 cat >>conftest.$ac_ext <<_ACEOF
20664 /* end confdefs.h. */
20667 main ()
20671 return 0;
20673 _ACEOF
20674 rm -f conftest.$ac_objext
20675 if { (ac_try="$ac_compile"
20676 case "(($ac_try" in
20677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20678 *) ac_try_echo=$ac_try;;
20679 esac
20680 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20681 (eval "$ac_compile") 2>conftest.er1
20682 ac_status=$?
20683 grep -v '^ *+' conftest.er1 >conftest.err
20684 rm -f conftest.er1
20685 cat conftest.err >&5
20686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20687 (exit $ac_status); } &&
20688 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20689 { (case "(($ac_try" in
20690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20691 *) ac_try_echo=$ac_try;;
20692 esac
20693 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20694 (eval "$ac_try") 2>&5
20695 ac_status=$?
20696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20697 (exit $ac_status); }; } &&
20698 { ac_try='test -s conftest.$ac_objext'
20699 { (case "(($ac_try" in
20700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20701 *) ac_try_echo=$ac_try;;
20702 esac
20703 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20704 (eval "$ac_try") 2>&5
20705 ac_status=$?
20706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20707 (exit $ac_status); }; }; then
20709 else
20710 echo "$as_me: failed program was:" >&5
20711 sed 's/^/| /' conftest.$ac_ext >&5
20713 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
20714 CXXFLAGS="-g"
20715 cat >conftest.$ac_ext <<_ACEOF
20716 /* confdefs.h. */
20717 _ACEOF
20718 cat confdefs.h >>conftest.$ac_ext
20719 cat >>conftest.$ac_ext <<_ACEOF
20720 /* end confdefs.h. */
20723 main ()
20727 return 0;
20729 _ACEOF
20730 rm -f conftest.$ac_objext
20731 if { (ac_try="$ac_compile"
20732 case "(($ac_try" in
20733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20734 *) ac_try_echo=$ac_try;;
20735 esac
20736 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20737 (eval "$ac_compile") 2>conftest.er1
20738 ac_status=$?
20739 grep -v '^ *+' conftest.er1 >conftest.err
20740 rm -f conftest.er1
20741 cat conftest.err >&5
20742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20743 (exit $ac_status); } &&
20744 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20745 { (case "(($ac_try" in
20746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20747 *) ac_try_echo=$ac_try;;
20748 esac
20749 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20750 (eval "$ac_try") 2>&5
20751 ac_status=$?
20752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20753 (exit $ac_status); }; } &&
20754 { ac_try='test -s conftest.$ac_objext'
20755 { (case "(($ac_try" in
20756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20757 *) ac_try_echo=$ac_try;;
20758 esac
20759 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20760 (eval "$ac_try") 2>&5
20761 ac_status=$?
20762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20763 (exit $ac_status); }; }; then
20764 ac_cv_prog_cxx_g=yes
20765 else
20766 echo "$as_me: failed program was:" >&5
20767 sed 's/^/| /' conftest.$ac_ext >&5
20772 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20775 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20778 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20779 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
20781 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
20782 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
20783 if test "$ac_test_CXXFLAGS" = set; then
20784 CXXFLAGS=$ac_save_CXXFLAGS
20785 elif test $ac_cv_prog_cxx_g = yes; then
20786 if test "$GXX" = yes; then
20787 CXXFLAGS="-g -O2"
20788 else
20789 CXXFLAGS="-g"
20791 else
20792 if test "$GXX" = yes; then
20793 CXXFLAGS="-O2"
20794 else
20795 CXXFLAGS=
20798 ac_ext=cpp
20799 ac_cpp='$CXXCPP $CPPFLAGS'
20800 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20801 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20802 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20804 depcc="$CXX" am_compiler_list=
20806 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
20807 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
20808 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
20809 echo $ECHO_N "(cached) $ECHO_C" >&6
20810 else
20811 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
20812 # We make a subdir and do the tests there. Otherwise we can end up
20813 # making bogus files that we don't know about and never remove. For
20814 # instance it was reported that on HP-UX the gcc test will end up
20815 # making a dummy file named `D' -- because `-MD' means `put the output
20816 # in D'.
20817 mkdir conftest.dir
20818 # Copy depcomp to subdir because otherwise we won't find it if we're
20819 # using a relative directory.
20820 cp "$am_depcomp" conftest.dir
20821 cd conftest.dir
20822 # We will build objects and dependencies in a subdirectory because
20823 # it helps to detect inapplicable dependency modes. For instance
20824 # both Tru64's cc and ICC support -MD to output dependencies as a
20825 # side effect of compilation, but ICC will put the dependencies in
20826 # the current directory while Tru64 will put them in the object
20827 # directory.
20828 mkdir sub
20830 am_cv_CXX_dependencies_compiler_type=none
20831 if test "$am_compiler_list" = ""; then
20832 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
20834 for depmode in $am_compiler_list; do
20835 # Setup a source with many dependencies, because some compilers
20836 # like to wrap large dependency lists on column 80 (with \), and
20837 # we should not choose a depcomp mode which is confused by this.
20839 # We need to recreate these files for each test, as the compiler may
20840 # overwrite some of them when testing with obscure command lines.
20841 # This happens at least with the AIX C compiler.
20842 : > sub/conftest.c
20843 for i in 1 2 3 4 5 6; do
20844 echo '#include "conftst'$i'.h"' >> sub/conftest.c
20845 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
20846 # Solaris 8's {/usr,}/bin/sh.
20847 touch sub/conftst$i.h
20848 done
20849 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
20851 case $depmode in
20852 nosideeffect)
20853 # after this tag, mechanisms are not by side-effect, so they'll
20854 # only be used when explicitly requested
20855 if test "x$enable_dependency_tracking" = xyes; then
20856 continue
20857 else
20858 break
20861 none) break ;;
20862 esac
20863 # We check with `-c' and `-o' for the sake of the "dashmstdout"
20864 # mode. It turns out that the SunPro C++ compiler does not properly
20865 # handle `-M -o', and we need to detect this.
20866 if depmode=$depmode \
20867 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
20868 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
20869 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
20870 >/dev/null 2>conftest.err &&
20871 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
20872 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
20873 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
20874 # icc doesn't choke on unknown options, it will just issue warnings
20875 # or remarks (even with -Werror). So we grep stderr for any message
20876 # that says an option was ignored or not supported.
20877 # When given -MP, icc 7.0 and 7.1 complain thusly:
20878 # icc: Command line warning: ignoring option '-M'; no argument required
20879 # The diagnosis changed in icc 8.0:
20880 # icc: Command line remark: option '-MP' not supported
20881 if (grep 'ignoring option' conftest.err ||
20882 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
20883 am_cv_CXX_dependencies_compiler_type=$depmode
20884 break
20887 done
20889 cd ..
20890 rm -rf conftest.dir
20891 else
20892 am_cv_CXX_dependencies_compiler_type=none
20896 { echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
20897 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
20898 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
20903 test "x$enable_dependency_tracking" != xno \
20904 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
20905 am__fastdepCXX_TRUE=
20906 am__fastdepCXX_FALSE='#'
20907 else
20908 am__fastdepCXX_TRUE='#'
20909 am__fastdepCXX_FALSE=
20914 case "${host_os}" in
20915 *linux* )
20916 OSTYPE=linux
20918 esac
20919 case "${host_cpu}" in
20920 i686 | i386 )
20921 CPUTYPE=i686
20923 esac
20924 echo "#ifndef BUILD_H" >build.h
20925 echo "#define BUILD_H" >>build.h
20926 echo "#define CSQL" >>build.h
20927 echo "#define ${OSTYPE}" >>build.h
20928 echo "#define ${CPUTYPE}" >>build.h
20929 echo "#endif " >>build.h
20930 cp build.h include
20946 for ac_header in stdio.h sys/mman.h sys/shm.h sys/errno.h crypt.h unistd.h \
20947 string.h sys/types.h sys/stat.h fcntl.h pthread.h math.h \
20948 signal.h
20950 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20951 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20952 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20953 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20954 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20955 echo $ECHO_N "(cached) $ECHO_C" >&6
20957 ac_res=`eval echo '${'$as_ac_Header'}'`
20958 { echo "$as_me:$LINENO: result: $ac_res" >&5
20959 echo "${ECHO_T}$ac_res" >&6; }
20960 else
20961 # Is the header compilable?
20962 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20963 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20964 cat >conftest.$ac_ext <<_ACEOF
20965 /* confdefs.h. */
20966 _ACEOF
20967 cat confdefs.h >>conftest.$ac_ext
20968 cat >>conftest.$ac_ext <<_ACEOF
20969 /* end confdefs.h. */
20970 $ac_includes_default
20971 #include <$ac_header>
20972 _ACEOF
20973 rm -f conftest.$ac_objext
20974 if { (ac_try="$ac_compile"
20975 case "(($ac_try" in
20976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20977 *) ac_try_echo=$ac_try;;
20978 esac
20979 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20980 (eval "$ac_compile") 2>conftest.er1
20981 ac_status=$?
20982 grep -v '^ *+' conftest.er1 >conftest.err
20983 rm -f conftest.er1
20984 cat conftest.err >&5
20985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20986 (exit $ac_status); } &&
20987 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20988 { (case "(($ac_try" in
20989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20990 *) ac_try_echo=$ac_try;;
20991 esac
20992 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20993 (eval "$ac_try") 2>&5
20994 ac_status=$?
20995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20996 (exit $ac_status); }; } &&
20997 { ac_try='test -s conftest.$ac_objext'
20998 { (case "(($ac_try" in
20999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21000 *) ac_try_echo=$ac_try;;
21001 esac
21002 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21003 (eval "$ac_try") 2>&5
21004 ac_status=$?
21005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21006 (exit $ac_status); }; }; then
21007 ac_header_compiler=yes
21008 else
21009 echo "$as_me: failed program was:" >&5
21010 sed 's/^/| /' conftest.$ac_ext >&5
21012 ac_header_compiler=no
21015 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21016 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21017 echo "${ECHO_T}$ac_header_compiler" >&6; }
21019 # Is the header present?
21020 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21021 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21022 cat >conftest.$ac_ext <<_ACEOF
21023 /* confdefs.h. */
21024 _ACEOF
21025 cat confdefs.h >>conftest.$ac_ext
21026 cat >>conftest.$ac_ext <<_ACEOF
21027 /* end confdefs.h. */
21028 #include <$ac_header>
21029 _ACEOF
21030 if { (ac_try="$ac_cpp conftest.$ac_ext"
21031 case "(($ac_try" in
21032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21033 *) ac_try_echo=$ac_try;;
21034 esac
21035 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21036 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21037 ac_status=$?
21038 grep -v '^ *+' conftest.er1 >conftest.err
21039 rm -f conftest.er1
21040 cat conftest.err >&5
21041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21042 (exit $ac_status); } >/dev/null; then
21043 if test -s conftest.err; then
21044 ac_cpp_err=$ac_cxx_preproc_warn_flag
21045 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
21046 else
21047 ac_cpp_err=
21049 else
21050 ac_cpp_err=yes
21052 if test -z "$ac_cpp_err"; then
21053 ac_header_preproc=yes
21054 else
21055 echo "$as_me: failed program was:" >&5
21056 sed 's/^/| /' conftest.$ac_ext >&5
21058 ac_header_preproc=no
21061 rm -f conftest.err conftest.$ac_ext
21062 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21063 echo "${ECHO_T}$ac_header_preproc" >&6; }
21065 # So? What about this header?
21066 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
21067 yes:no: )
21068 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21069 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21070 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21071 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21072 ac_header_preproc=yes
21074 no:yes:* )
21075 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21076 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21077 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21078 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21079 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21080 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21081 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21082 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21083 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21084 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21085 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21086 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21089 esac
21090 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21091 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21092 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21093 echo $ECHO_N "(cached) $ECHO_C" >&6
21094 else
21095 eval "$as_ac_Header=\$ac_header_preproc"
21097 ac_res=`eval echo '${'$as_ac_Header'}'`
21098 { echo "$as_me:$LINENO: result: $ac_res" >&5
21099 echo "${ECHO_T}$ac_res" >&6; }
21102 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21103 cat >>confdefs.h <<_ACEOF
21104 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21105 _ACEOF
21109 done
21114 ac_config_files="$ac_config_files Makefile src/Makefile include/Makefile src/server/Makefile test/Makefile test/storage/Makefile"
21116 cat >confcache <<\_ACEOF
21117 # This file is a shell script that caches the results of configure
21118 # tests run on this system so they can be shared between configure
21119 # scripts and configure runs, see configure's option --config-cache.
21120 # It is not useful on other systems. If it contains results you don't
21121 # want to keep, you may remove or edit it.
21123 # config.status only pays attention to the cache file if you give it
21124 # the --recheck option to rerun configure.
21126 # `ac_cv_env_foo' variables (set or unset) will be overridden when
21127 # loading this file, other *unset* `ac_cv_foo' will be assigned the
21128 # following values.
21130 _ACEOF
21132 # The following way of writing the cache mishandles newlines in values,
21133 # but we know of no workaround that is simple, portable, and efficient.
21134 # So, we kill variables containing newlines.
21135 # Ultrix sh set writes to stderr and can't be redirected directly,
21136 # and sets the high bit in the cache file unless we assign to the vars.
21138 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
21139 eval ac_val=\$$ac_var
21140 case $ac_val in #(
21141 *${as_nl}*)
21142 case $ac_var in #(
21143 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
21144 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
21145 esac
21146 case $ac_var in #(
21147 _ | IFS | as_nl) ;; #(
21148 *) $as_unset $ac_var ;;
21149 esac ;;
21150 esac
21151 done
21153 (set) 2>&1 |
21154 case $as_nl`(ac_space=' '; set) 2>&1` in #(
21155 *${as_nl}ac_space=\ *)
21156 # `set' does not quote correctly, so add quotes (double-quote
21157 # substitution turns \\\\ into \\, and sed turns \\ into \).
21158 sed -n \
21159 "s/'/'\\\\''/g;
21160 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21161 ;; #(
21163 # `set' quotes correctly as required by POSIX, so do not add quotes.
21164 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
21166 esac |
21167 sort
21169 sed '
21170 /^ac_cv_env_/b end
21171 t clear
21172 :clear
21173 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21174 t end
21175 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21176 :end' >>confcache
21177 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
21178 if test -w "$cache_file"; then
21179 test "x$cache_file" != "x/dev/null" &&
21180 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
21181 echo "$as_me: updating cache $cache_file" >&6;}
21182 cat confcache >$cache_file
21183 else
21184 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
21185 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
21188 rm -f confcache
21190 test "x$prefix" = xNONE && prefix=$ac_default_prefix
21191 # Let make expand exec_prefix.
21192 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21194 DEFS=-DHAVE_CONFIG_H
21196 ac_libobjs=
21197 ac_ltlibobjs=
21198 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21199 # 1. Remove the extension, and $U if already installed.
21200 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
21201 ac_i=`echo "$ac_i" | sed "$ac_script"`
21202 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
21203 # will be set to the directory where LIBOBJS objects are built.
21204 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
21205 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
21206 done
21207 LIBOBJS=$ac_libobjs
21209 LTLIBOBJS=$ac_ltlibobjs
21212 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
21213 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
21214 Usually this means the macro was only invoked conditionally." >&5
21215 echo "$as_me: error: conditional \"AMDEP\" was never defined.
21216 Usually this means the macro was only invoked conditionally." >&2;}
21217 { (exit 1); exit 1; }; }
21219 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
21220 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
21221 Usually this means the macro was only invoked conditionally." >&5
21222 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
21223 Usually this means the macro was only invoked conditionally." >&2;}
21224 { (exit 1); exit 1; }; }
21226 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
21227 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
21228 Usually this means the macro was only invoked conditionally." >&5
21229 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
21230 Usually this means the macro was only invoked conditionally." >&2;}
21231 { (exit 1); exit 1; }; }
21233 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
21234 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
21235 Usually this means the macro was only invoked conditionally." >&5
21236 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
21237 Usually this means the macro was only invoked conditionally." >&2;}
21238 { (exit 1); exit 1; }; }
21241 : ${CONFIG_STATUS=./config.status}
21242 ac_clean_files_save=$ac_clean_files
21243 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21244 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21245 echo "$as_me: creating $CONFIG_STATUS" >&6;}
21246 cat >$CONFIG_STATUS <<_ACEOF
21247 #! $SHELL
21248 # Generated by $as_me.
21249 # Run this file to recreate the current configuration.
21250 # Compiler output produced by configure, useful for debugging
21251 # configure, is in config.log if it exists.
21253 debug=false
21254 ac_cs_recheck=false
21255 ac_cs_silent=false
21256 SHELL=\${CONFIG_SHELL-$SHELL}
21257 _ACEOF
21259 cat >>$CONFIG_STATUS <<\_ACEOF
21260 ## --------------------- ##
21261 ## M4sh Initialization. ##
21262 ## --------------------- ##
21264 # Be Bourne compatible
21265 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21266 emulate sh
21267 NULLCMD=:
21268 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21269 # is contrary to our usage. Disable this feature.
21270 alias -g '${1+"$@"}'='"$@"'
21271 setopt NO_GLOB_SUBST
21272 else
21273 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
21275 BIN_SH=xpg4; export BIN_SH # for Tru64
21276 DUALCASE=1; export DUALCASE # for MKS sh
21279 # PATH needs CR
21280 # Avoid depending upon Character Ranges.
21281 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21282 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21283 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21284 as_cr_digits='0123456789'
21285 as_cr_alnum=$as_cr_Letters$as_cr_digits
21287 # The user is always right.
21288 if test "${PATH_SEPARATOR+set}" != set; then
21289 echo "#! /bin/sh" >conf$$.sh
21290 echo "exit 0" >>conf$$.sh
21291 chmod +x conf$$.sh
21292 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21293 PATH_SEPARATOR=';'
21294 else
21295 PATH_SEPARATOR=:
21297 rm -f conf$$.sh
21300 # Support unset when possible.
21301 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
21302 as_unset=unset
21303 else
21304 as_unset=false
21308 # IFS
21309 # We need space, tab and new line, in precisely that order. Quoting is
21310 # there to prevent editors from complaining about space-tab.
21311 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
21312 # splitting by setting IFS to empty value.)
21313 as_nl='
21315 IFS=" "" $as_nl"
21317 # Find who we are. Look in the path if we contain no directory separator.
21318 case $0 in
21319 *[\\/]* ) as_myself=$0 ;;
21320 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21321 for as_dir in $PATH
21323 IFS=$as_save_IFS
21324 test -z "$as_dir" && as_dir=.
21325 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21326 done
21327 IFS=$as_save_IFS
21330 esac
21331 # We did not find ourselves, most probably we were run as `sh COMMAND'
21332 # in which case we are not to be found in the path.
21333 if test "x$as_myself" = x; then
21334 as_myself=$0
21336 if test ! -f "$as_myself"; then
21337 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
21338 { (exit 1); exit 1; }
21341 # Work around bugs in pre-3.0 UWIN ksh.
21342 for as_var in ENV MAIL MAILPATH
21343 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21344 done
21345 PS1='$ '
21346 PS2='> '
21347 PS4='+ '
21349 # NLS nuisances.
21350 for as_var in \
21351 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
21352 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
21353 LC_TELEPHONE LC_TIME
21355 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
21356 eval $as_var=C; export $as_var
21357 else
21358 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21360 done
21362 # Required to use basename.
21363 if expr a : '\(a\)' >/dev/null 2>&1 &&
21364 test "X`expr 00001 : '.*\(...\)'`" = X001; then
21365 as_expr=expr
21366 else
21367 as_expr=false
21370 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
21371 as_basename=basename
21372 else
21373 as_basename=false
21377 # Name of the executable.
21378 as_me=`$as_basename -- "$0" ||
21379 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21380 X"$0" : 'X\(//\)$' \| \
21381 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
21382 echo X/"$0" |
21383 sed '/^.*\/\([^/][^/]*\)\/*$/{
21384 s//\1/
21387 /^X\/\(\/\/\)$/{
21388 s//\1/
21391 /^X\/\(\/\).*/{
21392 s//\1/
21395 s/.*/./; q'`
21397 # CDPATH.
21398 $as_unset CDPATH
21402 as_lineno_1=$LINENO
21403 as_lineno_2=$LINENO
21404 test "x$as_lineno_1" != "x$as_lineno_2" &&
21405 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
21407 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21408 # uniformly replaced by the line number. The first 'sed' inserts a
21409 # line-number line after each line using $LINENO; the second 'sed'
21410 # does the real work. The second script uses 'N' to pair each
21411 # line-number line with the line containing $LINENO, and appends
21412 # trailing '-' during substitution so that $LINENO is not a special
21413 # case at line end.
21414 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
21415 # scripts with optimization help from Paolo Bonzini. Blame Lee
21416 # E. McMahon (1931-1989) for sed's syntax. :-)
21417 sed -n '
21419 /[$]LINENO/=
21420 ' <$as_myself |
21421 sed '
21422 s/[$]LINENO.*/&-/
21423 t lineno
21425 :lineno
21427 :loop
21428 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
21429 t loop
21430 s/-\n.*//
21431 ' >$as_me.lineno &&
21432 chmod +x "$as_me.lineno" ||
21433 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
21434 { (exit 1); exit 1; }; }
21436 # Don't try to exec as it changes $[0], causing all sort of problems
21437 # (the dirname of $[0] is not the place where we might find the
21438 # original and so on. Autoconf is especially sensitive to this).
21439 . "./$as_me.lineno"
21440 # Exit status is that of the last command.
21441 exit
21445 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
21446 as_dirname=dirname
21447 else
21448 as_dirname=false
21451 ECHO_C= ECHO_N= ECHO_T=
21452 case `echo -n x` in
21453 -n*)
21454 case `echo 'x\c'` in
21455 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
21456 *) ECHO_C='\c';;
21457 esac;;
21459 ECHO_N='-n';;
21460 esac
21462 if expr a : '\(a\)' >/dev/null 2>&1 &&
21463 test "X`expr 00001 : '.*\(...\)'`" = X001; then
21464 as_expr=expr
21465 else
21466 as_expr=false
21469 rm -f conf$$ conf$$.exe conf$$.file
21470 if test -d conf$$.dir; then
21471 rm -f conf$$.dir/conf$$.file
21472 else
21473 rm -f conf$$.dir
21474 mkdir conf$$.dir
21476 echo >conf$$.file
21477 if ln -s conf$$.file conf$$ 2>/dev/null; then
21478 as_ln_s='ln -s'
21479 # ... but there are two gotchas:
21480 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
21481 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
21482 # In both cases, we have to default to `cp -p'.
21483 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
21484 as_ln_s='cp -p'
21485 elif ln conf$$.file conf$$ 2>/dev/null; then
21486 as_ln_s=ln
21487 else
21488 as_ln_s='cp -p'
21490 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
21491 rmdir conf$$.dir 2>/dev/null
21493 if mkdir -p . 2>/dev/null; then
21494 as_mkdir_p=:
21495 else
21496 test -d ./-p && rmdir ./-p
21497 as_mkdir_p=false
21500 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
21501 # systems may use methods other than mode bits to determine executability.
21502 cat >conf$$.file <<_ASEOF
21503 #! /bin/sh
21504 exit 0
21505 _ASEOF
21506 chmod +x conf$$.file
21507 if test -x conf$$.file >/dev/null 2>&1; then
21508 as_executable_p="test -x"
21509 else
21510 as_executable_p=:
21512 rm -f conf$$.file
21514 # Sed expression to map a string onto a valid CPP name.
21515 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21517 # Sed expression to map a string onto a valid variable name.
21518 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21521 exec 6>&1
21523 # Save the log message, to keep $[0] and so on meaningful, and to
21524 # report actual input values of CONFIG_FILES etc. instead of their
21525 # values after options handling.
21526 ac_log="
21527 This file was extended by $as_me, which was
21528 generated by GNU Autoconf 2.60. Invocation command line was
21530 CONFIG_FILES = $CONFIG_FILES
21531 CONFIG_HEADERS = $CONFIG_HEADERS
21532 CONFIG_LINKS = $CONFIG_LINKS
21533 CONFIG_COMMANDS = $CONFIG_COMMANDS
21534 $ $0 $@
21536 on `(hostname || uname -n) 2>/dev/null | sed 1q`
21539 _ACEOF
21541 cat >>$CONFIG_STATUS <<_ACEOF
21542 # Files that config.status was made for.
21543 config_files="$ac_config_files"
21544 config_headers="$ac_config_headers"
21545 config_commands="$ac_config_commands"
21547 _ACEOF
21549 cat >>$CONFIG_STATUS <<\_ACEOF
21550 ac_cs_usage="\
21551 \`$as_me' instantiates files from templates according to the
21552 current configuration.
21554 Usage: $0 [OPTIONS] [FILE]...
21556 -h, --help print this help, then exit
21557 -V, --version print version number, then exit
21558 -q, --quiet do not print progress messages
21559 -d, --debug don't remove temporary files
21560 --recheck update $as_me by reconfiguring in the same conditions
21561 --file=FILE[:TEMPLATE]
21562 instantiate the configuration file FILE
21563 --header=FILE[:TEMPLATE]
21564 instantiate the configuration header FILE
21566 Configuration files:
21567 $config_files
21569 Configuration headers:
21570 $config_headers
21572 Configuration commands:
21573 $config_commands
21575 Report bugs to <bug-autoconf@gnu.org>."
21577 _ACEOF
21578 cat >>$CONFIG_STATUS <<_ACEOF
21579 ac_cs_version="\\
21580 config.status
21581 configured by $0, generated by GNU Autoconf 2.60,
21582 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
21584 Copyright (C) 2006 Free Software Foundation, Inc.
21585 This config.status script is free software; the Free Software Foundation
21586 gives unlimited permission to copy, distribute and modify it."
21588 ac_pwd='$ac_pwd'
21589 srcdir='$srcdir'
21590 INSTALL='$INSTALL'
21591 _ACEOF
21593 cat >>$CONFIG_STATUS <<\_ACEOF
21594 # If no file are specified by the user, then we need to provide default
21595 # value. By we need to know if files were specified by the user.
21596 ac_need_defaults=:
21597 while test $# != 0
21599 case $1 in
21600 --*=*)
21601 ac_option=`expr "X$1" : 'X\([^=]*\)='`
21602 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
21603 ac_shift=:
21606 ac_option=$1
21607 ac_optarg=$2
21608 ac_shift=shift
21610 esac
21612 case $ac_option in
21613 # Handling of the options.
21614 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21615 ac_cs_recheck=: ;;
21616 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
21617 echo "$ac_cs_version"; exit ;;
21618 --debug | --debu | --deb | --de | --d | -d )
21619 debug=: ;;
21620 --file | --fil | --fi | --f )
21621 $ac_shift
21622 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
21623 ac_need_defaults=false;;
21624 --header | --heade | --head | --hea )
21625 $ac_shift
21626 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
21627 ac_need_defaults=false;;
21628 --he | --h)
21629 # Conflict between --help and --header
21630 { echo "$as_me: error: ambiguous option: $1
21631 Try \`$0 --help' for more information." >&2
21632 { (exit 1); exit 1; }; };;
21633 --help | --hel | -h )
21634 echo "$ac_cs_usage"; exit ;;
21635 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21636 | -silent | --silent | --silen | --sile | --sil | --si | --s)
21637 ac_cs_silent=: ;;
21639 # This is an error.
21640 -*) { echo "$as_me: error: unrecognized option: $1
21641 Try \`$0 --help' for more information." >&2
21642 { (exit 1); exit 1; }; } ;;
21644 *) ac_config_targets="$ac_config_targets $1"
21645 ac_need_defaults=false ;;
21647 esac
21648 shift
21649 done
21651 ac_configure_extra_args=
21653 if $ac_cs_silent; then
21654 exec 6>/dev/null
21655 ac_configure_extra_args="$ac_configure_extra_args --silent"
21658 _ACEOF
21659 cat >>$CONFIG_STATUS <<_ACEOF
21660 if \$ac_cs_recheck; then
21661 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
21662 CONFIG_SHELL=$SHELL
21663 export CONFIG_SHELL
21664 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21667 _ACEOF
21668 cat >>$CONFIG_STATUS <<\_ACEOF
21669 exec 5>>config.log
21671 echo
21672 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21673 ## Running $as_me. ##
21674 _ASBOX
21675 echo "$ac_log"
21676 } >&5
21678 _ACEOF
21679 cat >>$CONFIG_STATUS <<_ACEOF
21681 # INIT-COMMANDS
21683 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
21685 _ACEOF
21687 cat >>$CONFIG_STATUS <<\_ACEOF
21689 # Handling of arguments.
21690 for ac_config_target in $ac_config_targets
21692 case $ac_config_target in
21693 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
21694 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
21695 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
21696 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
21697 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
21698 "src/server/Makefile") CONFIG_FILES="$CONFIG_FILES src/server/Makefile" ;;
21699 "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
21700 "test/storage/Makefile") CONFIG_FILES="$CONFIG_FILES test/storage/Makefile" ;;
21702 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
21703 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21704 { (exit 1); exit 1; }; };;
21705 esac
21706 done
21709 # If the user did not use the arguments to specify the items to instantiate,
21710 # then the envvar interface is used. Set only those that are not.
21711 # We use the long form for the default assignment because of an extremely
21712 # bizarre bug on SunOS 4.1.3.
21713 if $ac_need_defaults; then
21714 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21715 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
21716 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21719 # Have a temporary directory for convenience. Make it in the build tree
21720 # simply because there is no reason against having it here, and in addition,
21721 # creating and moving files from /tmp can sometimes cause problems.
21722 # Hook for its removal unless debugging.
21723 # Note that there is a small window in which the directory will not be cleaned:
21724 # after its creation but before its name has been assigned to `$tmp'.
21725 $debug ||
21727 tmp=
21728 trap 'exit_status=$?
21729 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
21731 trap '{ (exit 1); exit 1; }' 1 2 13 15
21733 # Create a (secure) tmp directory for tmp files.
21736 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
21737 test -n "$tmp" && test -d "$tmp"
21738 } ||
21740 tmp=./conf$$-$RANDOM
21741 (umask 077 && mkdir "$tmp")
21742 } ||
21744 echo "$me: cannot create a temporary directory in ." >&2
21745 { (exit 1); exit 1; }
21749 # Set up the sed scripts for CONFIG_FILES section.
21752 # No need to generate the scripts if there are no CONFIG_FILES.
21753 # This happens for instance when ./config.status config.h
21754 if test -n "$CONFIG_FILES"; then
21756 _ACEOF
21760 ac_delim='%!_!# '
21761 for ac_last_try in false false false false false :; do
21762 cat >conf$$subs.sed <<_ACEOF
21763 SHELL!$SHELL$ac_delim
21764 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
21765 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
21766 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
21767 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
21768 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
21769 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
21770 exec_prefix!$exec_prefix$ac_delim
21771 prefix!$prefix$ac_delim
21772 program_transform_name!$program_transform_name$ac_delim
21773 bindir!$bindir$ac_delim
21774 sbindir!$sbindir$ac_delim
21775 libexecdir!$libexecdir$ac_delim
21776 datarootdir!$datarootdir$ac_delim
21777 datadir!$datadir$ac_delim
21778 sysconfdir!$sysconfdir$ac_delim
21779 sharedstatedir!$sharedstatedir$ac_delim
21780 localstatedir!$localstatedir$ac_delim
21781 includedir!$includedir$ac_delim
21782 oldincludedir!$oldincludedir$ac_delim
21783 docdir!$docdir$ac_delim
21784 infodir!$infodir$ac_delim
21785 htmldir!$htmldir$ac_delim
21786 dvidir!$dvidir$ac_delim
21787 pdfdir!$pdfdir$ac_delim
21788 psdir!$psdir$ac_delim
21789 libdir!$libdir$ac_delim
21790 localedir!$localedir$ac_delim
21791 mandir!$mandir$ac_delim
21792 DEFS!$DEFS$ac_delim
21793 ECHO_C!$ECHO_C$ac_delim
21794 ECHO_N!$ECHO_N$ac_delim
21795 ECHO_T!$ECHO_T$ac_delim
21796 LIBS!$LIBS$ac_delim
21797 build_alias!$build_alias$ac_delim
21798 host_alias!$host_alias$ac_delim
21799 target_alias!$target_alias$ac_delim
21800 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
21801 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
21802 INSTALL_DATA!$INSTALL_DATA$ac_delim
21803 CYGPATH_W!$CYGPATH_W$ac_delim
21804 PACKAGE!$PACKAGE$ac_delim
21805 VERSION!$VERSION$ac_delim
21806 ACLOCAL!$ACLOCAL$ac_delim
21807 AUTOCONF!$AUTOCONF$ac_delim
21808 AUTOMAKE!$AUTOMAKE$ac_delim
21809 AUTOHEADER!$AUTOHEADER$ac_delim
21810 MAKEINFO!$MAKEINFO$ac_delim
21811 install_sh!$install_sh$ac_delim
21812 STRIP!$STRIP$ac_delim
21813 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
21814 mkdir_p!$mkdir_p$ac_delim
21815 AWK!$AWK$ac_delim
21816 SET_MAKE!$SET_MAKE$ac_delim
21817 am__leading_dot!$am__leading_dot$ac_delim
21818 AMTAR!$AMTAR$ac_delim
21819 am__tar!$am__tar$ac_delim
21820 am__untar!$am__untar$ac_delim
21821 CC!$CC$ac_delim
21822 CFLAGS!$CFLAGS$ac_delim
21823 LDFLAGS!$LDFLAGS$ac_delim
21824 CPPFLAGS!$CPPFLAGS$ac_delim
21825 ac_ct_CC!$ac_ct_CC$ac_delim
21826 EXEEXT!$EXEEXT$ac_delim
21827 OBJEXT!$OBJEXT$ac_delim
21828 DEPDIR!$DEPDIR$ac_delim
21829 am__include!$am__include$ac_delim
21830 am__quote!$am__quote$ac_delim
21831 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
21832 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
21833 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
21834 CCDEPMODE!$CCDEPMODE$ac_delim
21835 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
21836 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
21837 build!$build$ac_delim
21838 build_cpu!$build_cpu$ac_delim
21839 build_vendor!$build_vendor$ac_delim
21840 build_os!$build_os$ac_delim
21841 host!$host$ac_delim
21842 host_cpu!$host_cpu$ac_delim
21843 host_vendor!$host_vendor$ac_delim
21844 host_os!$host_os$ac_delim
21845 GREP!$GREP$ac_delim
21846 EGREP!$EGREP$ac_delim
21847 LN_S!$LN_S$ac_delim
21848 ECHO!$ECHO$ac_delim
21849 AR!$AR$ac_delim
21850 RANLIB!$RANLIB$ac_delim
21851 CPP!$CPP$ac_delim
21852 CXX!$CXX$ac_delim
21853 CXXFLAGS!$CXXFLAGS$ac_delim
21854 ac_ct_CXX!$ac_ct_CXX$ac_delim
21855 CXXDEPMODE!$CXXDEPMODE$ac_delim
21856 am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
21857 am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
21858 CXXCPP!$CXXCPP$ac_delim
21859 F77!$F77$ac_delim
21860 _ACEOF
21862 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
21863 break
21864 elif $ac_last_try; then
21865 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21866 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21867 { (exit 1); exit 1; }; }
21868 else
21869 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21871 done
21873 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21874 if test -n "$ac_eof"; then
21875 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21876 ac_eof=`expr $ac_eof + 1`
21879 cat >>$CONFIG_STATUS <<_ACEOF
21880 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
21881 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21882 _ACEOF
21883 sed '
21884 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21885 s/^/s,@/; s/!/@,|#_!!_#|/
21888 s/'"$ac_delim"'$/,g/; t
21889 s/$/\\/; p
21890 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21891 ' >>$CONFIG_STATUS <conf$$subs.sed
21892 rm -f conf$$subs.sed
21893 cat >>$CONFIG_STATUS <<_ACEOF
21894 CEOF$ac_eof
21895 _ACEOF
21898 ac_delim='%!_!# '
21899 for ac_last_try in false false false false false :; do
21900 cat >conf$$subs.sed <<_ACEOF
21901 FFLAGS!$FFLAGS$ac_delim
21902 ac_ct_F77!$ac_ct_F77$ac_delim
21903 LIBTOOL!$LIBTOOL$ac_delim
21904 LEX!$LEX$ac_delim
21905 LEXLIB!$LEXLIB$ac_delim
21906 LEX_OUTPUT_ROOT!$LEX_OUTPUT_ROOT$ac_delim
21907 YACC!$YACC$ac_delim
21908 YFLAGS!$YFLAGS$ac_delim
21909 LIBOBJS!$LIBOBJS$ac_delim
21910 LTLIBOBJS!$LTLIBOBJS$ac_delim
21911 _ACEOF
21913 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 10; then
21914 break
21915 elif $ac_last_try; then
21916 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21917 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21918 { (exit 1); exit 1; }; }
21919 else
21920 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21922 done
21924 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21925 if test -n "$ac_eof"; then
21926 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21927 ac_eof=`expr $ac_eof + 1`
21930 cat >>$CONFIG_STATUS <<_ACEOF
21931 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
21932 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
21933 _ACEOF
21934 sed '
21935 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21936 s/^/s,@/; s/!/@,|#_!!_#|/
21939 s/'"$ac_delim"'$/,g/; t
21940 s/$/\\/; p
21941 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21942 ' >>$CONFIG_STATUS <conf$$subs.sed
21943 rm -f conf$$subs.sed
21944 cat >>$CONFIG_STATUS <<_ACEOF
21945 :end
21946 s/|#_!!_#|//g
21947 CEOF$ac_eof
21948 _ACEOF
21951 # VPATH may cause trouble with some makes, so we remove $(srcdir),
21952 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
21953 # trailing colons and then remove the whole line if VPATH becomes empty
21954 # (actually we leave an empty line to preserve line numbers).
21955 if test "x$srcdir" = x.; then
21956 ac_vpsub='/^[ ]*VPATH[ ]*=/{
21957 s/:*\$(srcdir):*/:/
21958 s/:*\${srcdir}:*/:/
21959 s/:*@srcdir@:*/:/
21960 s/^\([^=]*=[ ]*\):*/\1/
21961 s/:*$//
21962 s/^[^=]*=[ ]*$//
21966 cat >>$CONFIG_STATUS <<\_ACEOF
21967 fi # test -n "$CONFIG_FILES"
21970 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
21972 case $ac_tag in
21973 :[FHLC]) ac_mode=$ac_tag; continue;;
21974 esac
21975 case $ac_mode$ac_tag in
21976 :[FHL]*:*);;
21977 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
21978 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
21979 { (exit 1); exit 1; }; };;
21980 :[FH]-) ac_tag=-:-;;
21981 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
21982 esac
21983 ac_save_IFS=$IFS
21984 IFS=:
21985 set x $ac_tag
21986 IFS=$ac_save_IFS
21987 shift
21988 ac_file=$1
21989 shift
21991 case $ac_mode in
21992 :L) ac_source=$1;;
21993 :[FH])
21994 ac_file_inputs=
21995 for ac_f
21997 case $ac_f in
21998 -) ac_f="$tmp/stdin";;
21999 *) # Look for the file first in the build tree, then in the source tree
22000 # (if the path is not absolute). The absolute path cannot be DOS-style,
22001 # because $ac_f cannot contain `:'.
22002 test -f "$ac_f" ||
22003 case $ac_f in
22004 [\\/$]*) false;;
22005 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
22006 esac ||
22007 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
22008 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
22009 { (exit 1); exit 1; }; };;
22010 esac
22011 ac_file_inputs="$ac_file_inputs $ac_f"
22012 done
22014 # Let's still pretend it is `configure' which instantiates (i.e., don't
22015 # use $as_me), people would be surprised to read:
22016 # /* config.h. Generated by config.status. */
22017 configure_input="Generated from "`IFS=:
22018 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
22019 if test x"$ac_file" != x-; then
22020 configure_input="$ac_file. $configure_input"
22021 { echo "$as_me:$LINENO: creating $ac_file" >&5
22022 echo "$as_me: creating $ac_file" >&6;}
22025 case $ac_tag in
22026 *:-:* | *:-) cat >"$tmp/stdin";;
22027 esac
22029 esac
22031 ac_dir=`$as_dirname -- "$ac_file" ||
22032 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22033 X"$ac_file" : 'X\(//\)[^/]' \| \
22034 X"$ac_file" : 'X\(//\)$' \| \
22035 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
22036 echo X"$ac_file" |
22037 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22038 s//\1/
22041 /^X\(\/\/\)[^/].*/{
22042 s//\1/
22045 /^X\(\/\/\)$/{
22046 s//\1/
22049 /^X\(\/\).*/{
22050 s//\1/
22053 s/.*/./; q'`
22054 { as_dir="$ac_dir"
22055 case $as_dir in #(
22056 -*) as_dir=./$as_dir;;
22057 esac
22058 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22059 as_dirs=
22060 while :; do
22061 case $as_dir in #(
22062 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22063 *) as_qdir=$as_dir;;
22064 esac
22065 as_dirs="'$as_qdir' $as_dirs"
22066 as_dir=`$as_dirname -- "$as_dir" ||
22067 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22068 X"$as_dir" : 'X\(//\)[^/]' \| \
22069 X"$as_dir" : 'X\(//\)$' \| \
22070 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22071 echo X"$as_dir" |
22072 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22073 s//\1/
22076 /^X\(\/\/\)[^/].*/{
22077 s//\1/
22080 /^X\(\/\/\)$/{
22081 s//\1/
22084 /^X\(\/\).*/{
22085 s//\1/
22088 s/.*/./; q'`
22089 test -d "$as_dir" && break
22090 done
22091 test -z "$as_dirs" || eval "mkdir $as_dirs"
22092 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22093 echo "$as_me: error: cannot create directory $as_dir" >&2;}
22094 { (exit 1); exit 1; }; }; }
22095 ac_builddir=.
22097 case "$ac_dir" in
22098 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22100 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22101 # A ".." for each directory in $ac_dir_suffix.
22102 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
22103 case $ac_top_builddir_sub in
22104 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22105 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22106 esac ;;
22107 esac
22108 ac_abs_top_builddir=$ac_pwd
22109 ac_abs_builddir=$ac_pwd$ac_dir_suffix
22110 # for backward compatibility:
22111 ac_top_builddir=$ac_top_build_prefix
22113 case $srcdir in
22114 .) # We are building in place.
22115 ac_srcdir=.
22116 ac_top_srcdir=$ac_top_builddir_sub
22117 ac_abs_top_srcdir=$ac_pwd ;;
22118 [\\/]* | ?:[\\/]* ) # Absolute name.
22119 ac_srcdir=$srcdir$ac_dir_suffix;
22120 ac_top_srcdir=$srcdir
22121 ac_abs_top_srcdir=$srcdir ;;
22122 *) # Relative name.
22123 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22124 ac_top_srcdir=$ac_top_build_prefix$srcdir
22125 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22126 esac
22127 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22130 case $ac_mode in
22133 # CONFIG_FILE
22136 case $INSTALL in
22137 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22138 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
22139 esac
22140 _ACEOF
22142 cat >>$CONFIG_STATUS <<\_ACEOF
22143 # If the template does not know about datarootdir, expand it.
22144 # FIXME: This hack should be removed a few years after 2.60.
22145 ac_datarootdir_hack=; ac_datarootdir_seen=
22147 case `sed -n '/datarootdir/ {
22151 /@datadir@/p
22152 /@docdir@/p
22153 /@infodir@/p
22154 /@localedir@/p
22155 /@mandir@/p
22156 ' $ac_file_inputs` in
22157 *datarootdir*) ac_datarootdir_seen=yes;;
22158 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
22159 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22160 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
22161 _ACEOF
22162 cat >>$CONFIG_STATUS <<_ACEOF
22163 ac_datarootdir_hack='
22164 s&@datadir@&$datadir&g
22165 s&@docdir@&$docdir&g
22166 s&@infodir@&$infodir&g
22167 s&@localedir@&$localedir&g
22168 s&@mandir@&$mandir&g
22169 s&\\\${datarootdir}&$datarootdir&g' ;;
22170 esac
22171 _ACEOF
22173 # Neutralize VPATH when `$srcdir' = `.'.
22174 # Shell code in configure.ac might set extrasub.
22175 # FIXME: do we really want to maintain this feature?
22176 cat >>$CONFIG_STATUS <<_ACEOF
22177 sed "$ac_vpsub
22178 $extrasub
22179 _ACEOF
22180 cat >>$CONFIG_STATUS <<\_ACEOF
22182 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22183 s&@configure_input@&$configure_input&;t t
22184 s&@top_builddir@&$ac_top_builddir_sub&;t t
22185 s&@srcdir@&$ac_srcdir&;t t
22186 s&@abs_srcdir@&$ac_abs_srcdir&;t t
22187 s&@top_srcdir@&$ac_top_srcdir&;t t
22188 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
22189 s&@builddir@&$ac_builddir&;t t
22190 s&@abs_builddir@&$ac_abs_builddir&;t t
22191 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
22192 s&@INSTALL@&$ac_INSTALL&;t t
22193 $ac_datarootdir_hack
22194 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
22196 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22197 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
22198 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
22199 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22200 which seems to be undefined. Please make sure it is defined." >&5
22201 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22202 which seems to be undefined. Please make sure it is defined." >&2;}
22204 rm -f "$tmp/stdin"
22205 case $ac_file in
22206 -) cat "$tmp/out"; rm -f "$tmp/out";;
22207 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
22208 esac
22212 # CONFIG_HEADER
22214 _ACEOF
22216 # Transform confdefs.h into a sed script `conftest.defines', that
22217 # substitutes the proper values into config.h.in to produce config.h.
22218 rm -f conftest.defines conftest.tail
22219 # First, append a space to every undef/define line, to ease matching.
22220 echo 's/$/ /' >conftest.defines
22221 # Then, protect against being on the right side of a sed subst, or in
22222 # an unquoted here document, in config.status. If some macros were
22223 # called several times there might be several #defines for the same
22224 # symbol, which is useless. But do not sort them, since the last
22225 # AC_DEFINE must be honored.
22226 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
22227 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
22228 # NAME is the cpp macro being defined, VALUE is the value it is being given.
22229 # PARAMS is the parameter list in the macro definition--in most cases, it's
22230 # just an empty string.
22231 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
22232 ac_dB='\\)[ (].*,\\1define\\2'
22233 ac_dC=' '
22234 ac_dD=' ,'
22236 uniq confdefs.h |
22237 sed -n '
22238 t rset
22239 :rset
22240 s/^[ ]*#[ ]*define[ ][ ]*//
22241 t ok
22244 s/[\\&,]/\\&/g
22245 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
22246 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
22247 ' >>conftest.defines
22249 # Remove the space that was appended to ease matching.
22250 # Then replace #undef with comments. This is necessary, for
22251 # example, in the case of _POSIX_SOURCE, which is predefined and required
22252 # on some systems where configure will not decide to define it.
22253 # (The regexp can be short, since the line contains either #define or #undef.)
22254 echo 's/ $//
22255 s,^[ #]*u.*,/* & */,' >>conftest.defines
22257 # Break up conftest.defines:
22258 ac_max_sed_lines=50
22260 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
22261 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
22262 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
22263 # et cetera.
22264 ac_in='$ac_file_inputs'
22265 ac_out='"$tmp/out1"'
22266 ac_nxt='"$tmp/out2"'
22268 while :
22270 # Write a here document:
22271 cat >>$CONFIG_STATUS <<_ACEOF
22272 # First, check the format of the line:
22273 cat >"\$tmp/defines.sed" <<\\CEOF
22274 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
22275 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
22277 :def
22278 _ACEOF
22279 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
22280 echo 'CEOF
22281 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
22282 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
22283 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
22284 grep . conftest.tail >/dev/null || break
22285 rm -f conftest.defines
22286 mv conftest.tail conftest.defines
22287 done
22288 rm -f conftest.defines conftest.tail
22290 echo "ac_result=$ac_in" >>$CONFIG_STATUS
22291 cat >>$CONFIG_STATUS <<\_ACEOF
22292 if test x"$ac_file" != x-; then
22293 echo "/* $configure_input */" >"$tmp/config.h"
22294 cat "$ac_result" >>"$tmp/config.h"
22295 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
22296 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
22297 echo "$as_me: $ac_file is unchanged" >&6;}
22298 else
22299 rm -f $ac_file
22300 mv "$tmp/config.h" $ac_file
22302 else
22303 echo "/* $configure_input */"
22304 cat "$ac_result"
22306 rm -f "$tmp/out12"
22307 # Compute $ac_file's index in $config_headers.
22308 _am_stamp_count=1
22309 for _am_header in $config_headers :; do
22310 case $_am_header in
22311 $ac_file | $ac_file:* )
22312 break ;;
22314 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
22315 esac
22316 done
22317 echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
22318 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22319 X$ac_file : 'X\(//\)[^/]' \| \
22320 X$ac_file : 'X\(//\)$' \| \
22321 X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
22322 echo X$ac_file |
22323 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22324 s//\1/
22327 /^X\(\/\/\)[^/].*/{
22328 s//\1/
22331 /^X\(\/\/\)$/{
22332 s//\1/
22335 /^X\(\/\).*/{
22336 s//\1/
22339 s/.*/./; q'`/stamp-h$_am_stamp_count
22342 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
22343 echo "$as_me: executing $ac_file commands" >&6;}
22345 esac
22348 case $ac_file$ac_mode in
22349 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
22350 # Strip MF so we end up with the name of the file.
22351 mf=`echo "$mf" | sed -e 's/:.*$//'`
22352 # Check whether this is an Automake generated Makefile or not.
22353 # We used to match only the files named `Makefile.in', but
22354 # some people rename them; so instead we look at the file content.
22355 # Grep'ing the first line is not enough: some people post-process
22356 # each Makefile.in and add a new line on top of each file to say so.
22357 # So let's grep whole file.
22358 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
22359 dirpart=`$as_dirname -- "$mf" ||
22360 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22361 X"$mf" : 'X\(//\)[^/]' \| \
22362 X"$mf" : 'X\(//\)$' \| \
22363 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
22364 echo X"$mf" |
22365 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22366 s//\1/
22369 /^X\(\/\/\)[^/].*/{
22370 s//\1/
22373 /^X\(\/\/\)$/{
22374 s//\1/
22377 /^X\(\/\).*/{
22378 s//\1/
22381 s/.*/./; q'`
22382 else
22383 continue
22385 # Extract the definition of DEPDIR, am__include, and am__quote
22386 # from the Makefile without running `make'.
22387 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
22388 test -z "$DEPDIR" && continue
22389 am__include=`sed -n 's/^am__include = //p' < "$mf"`
22390 test -z "am__include" && continue
22391 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
22392 # When using ansi2knr, U may be empty or an underscore; expand it
22393 U=`sed -n 's/^U = //p' < "$mf"`
22394 # Find all dependency output files, they are included files with
22395 # $(DEPDIR) in their names. We invoke sed twice because it is the
22396 # simplest approach to changing $(DEPDIR) to its actual value in the
22397 # expansion.
22398 for file in `sed -n "
22399 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
22400 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
22401 # Make sure the directory exists.
22402 test -f "$dirpart/$file" && continue
22403 fdir=`$as_dirname -- "$file" ||
22404 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22405 X"$file" : 'X\(//\)[^/]' \| \
22406 X"$file" : 'X\(//\)$' \| \
22407 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
22408 echo X"$file" |
22409 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22410 s//\1/
22413 /^X\(\/\/\)[^/].*/{
22414 s//\1/
22417 /^X\(\/\/\)$/{
22418 s//\1/
22421 /^X\(\/\).*/{
22422 s//\1/
22425 s/.*/./; q'`
22426 { as_dir=$dirpart/$fdir
22427 case $as_dir in #(
22428 -*) as_dir=./$as_dir;;
22429 esac
22430 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22431 as_dirs=
22432 while :; do
22433 case $as_dir in #(
22434 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22435 *) as_qdir=$as_dir;;
22436 esac
22437 as_dirs="'$as_qdir' $as_dirs"
22438 as_dir=`$as_dirname -- "$as_dir" ||
22439 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22440 X"$as_dir" : 'X\(//\)[^/]' \| \
22441 X"$as_dir" : 'X\(//\)$' \| \
22442 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22443 echo X"$as_dir" |
22444 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22445 s//\1/
22448 /^X\(\/\/\)[^/].*/{
22449 s//\1/
22452 /^X\(\/\/\)$/{
22453 s//\1/
22456 /^X\(\/\).*/{
22457 s//\1/
22460 s/.*/./; q'`
22461 test -d "$as_dir" && break
22462 done
22463 test -z "$as_dirs" || eval "mkdir $as_dirs"
22464 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22465 echo "$as_me: error: cannot create directory $as_dir" >&2;}
22466 { (exit 1); exit 1; }; }; }
22467 # echo "creating $dirpart/$file"
22468 echo '# dummy' > "$dirpart/$file"
22469 done
22470 done
22473 esac
22474 done # for ac_tag
22477 { (exit 0); exit 0; }
22478 _ACEOF
22479 chmod +x $CONFIG_STATUS
22480 ac_clean_files=$ac_clean_files_save
22483 # configure is writing to config.log, and then calls config.status.
22484 # config.status does its own redirection, appending to config.log.
22485 # Unfortunately, on DOS this fails, as config.log is still kept open
22486 # by configure, so config.status won't be able to write to it; its
22487 # output is simply discarded. So we exec the FD to /dev/null,
22488 # effectively closing config.log, so it can be properly (re)opened and
22489 # appended to by config.status. When coming back to configure, we
22490 # need to make the FD available again.
22491 if test "$no_create" != yes; then
22492 ac_cs_success=:
22493 ac_config_status_args=
22494 test "$silent" = yes &&
22495 ac_config_status_args="$ac_config_status_args --quiet"
22496 exec 5>/dev/null
22497 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22498 exec 5>>config.log
22499 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22500 # would make configure fail if this is the last instruction.
22501 $ac_cs_success || { (exit 1); exit 1; }