output was being written into a file of different user
[csql.git] / configure
blobe5803f56f917aba1ec824518bdba3519bf67f227
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 CXXFLAGS
815 LDFLAGS
816 CPPFLAGS
817 ac_ct_CXX
818 EXEEXT
819 OBJEXT
820 DEPDIR
821 am__include
822 am__quote
823 AMDEP_TRUE
824 AMDEP_FALSE
825 AMDEPBACKSLASH
826 CXXDEPMODE
827 am__fastdepCXX_TRUE
828 am__fastdepCXX_FALSE
829 build
830 build_cpu
831 build_vendor
832 build_os
833 host
834 host_cpu
835 host_vendor
836 host_os
838 CFLAGS
839 ac_ct_CC
840 CCDEPMODE
841 am__fastdepCC_TRUE
842 am__fastdepCC_FALSE
843 GREP
844 EGREP
845 LN_S
846 ECHO
848 RANLIB
850 CXXCPP
852 FFLAGS
853 ac_ct_F77
854 LIBTOOL
855 YACC
856 YFLAGS
858 LEXLIB
859 LEX_OUTPUT_ROOT
860 LIBOBJS
861 LTLIBOBJS'
862 ac_subst_files=''
863 ac_precious_vars='build_alias
864 host_alias
865 target_alias
867 CXXFLAGS
868 LDFLAGS
869 CPPFLAGS
872 CFLAGS
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 CXX C++ compiler command
1474 CXXFLAGS 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 CC C compiler command
1480 CFLAGS C compiler flags
1481 CPP C preprocessor
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=cpp
2381 ac_cpp='$CXXCPP $CPPFLAGS'
2382 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2383 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2384 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2386 ac_ext=cpp
2387 ac_cpp='$CXXCPP $CPPFLAGS'
2388 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2389 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2390 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2391 if test -z "$CXX"; then
2392 if test -n "$CCC"; then
2393 CXX=$CCC
2394 else
2395 if test -n "$ac_tool_prefix"; then
2396 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2398 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2399 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2400 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2401 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2402 if test "${ac_cv_prog_CXX+set}" = set; then
2403 echo $ECHO_N "(cached) $ECHO_C" >&6
2404 else
2405 if test -n "$CXX"; then
2406 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2407 else
2408 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2409 for as_dir in $PATH
2411 IFS=$as_save_IFS
2412 test -z "$as_dir" && as_dir=.
2413 for ac_exec_ext in '' $ac_executable_extensions; do
2414 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2415 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2416 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2417 break 2
2419 done
2420 done
2421 IFS=$as_save_IFS
2425 CXX=$ac_cv_prog_CXX
2426 if test -n "$CXX"; then
2427 { echo "$as_me:$LINENO: result: $CXX" >&5
2428 echo "${ECHO_T}$CXX" >&6; }
2429 else
2430 { echo "$as_me:$LINENO: result: no" >&5
2431 echo "${ECHO_T}no" >&6; }
2435 test -n "$CXX" && break
2436 done
2438 if test -z "$CXX"; then
2439 ac_ct_CXX=$CXX
2440 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2442 # Extract the first word of "$ac_prog", so it can be a program name with args.
2443 set dummy $ac_prog; ac_word=$2
2444 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2445 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2446 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2447 echo $ECHO_N "(cached) $ECHO_C" >&6
2448 else
2449 if test -n "$ac_ct_CXX"; then
2450 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2451 else
2452 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2453 for as_dir in $PATH
2455 IFS=$as_save_IFS
2456 test -z "$as_dir" && as_dir=.
2457 for ac_exec_ext in '' $ac_executable_extensions; do
2458 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2459 ac_cv_prog_ac_ct_CXX="$ac_prog"
2460 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2461 break 2
2463 done
2464 done
2465 IFS=$as_save_IFS
2469 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2470 if test -n "$ac_ct_CXX"; then
2471 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2472 echo "${ECHO_T}$ac_ct_CXX" >&6; }
2473 else
2474 { echo "$as_me:$LINENO: result: no" >&5
2475 echo "${ECHO_T}no" >&6; }
2479 test -n "$ac_ct_CXX" && break
2480 done
2482 if test "x$ac_ct_CXX" = x; then
2483 CXX="g++"
2484 else
2485 case $cross_compiling:$ac_tool_warned in
2486 yes:)
2487 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2488 whose name does not start with the host triplet. If you think this
2489 configuration is useful to you, please write to autoconf@gnu.org." >&5
2490 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2491 whose name does not start with the host triplet. If you think this
2492 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2493 ac_tool_warned=yes ;;
2494 esac
2495 CXX=$ac_ct_CXX
2501 # Provide some information about the compiler.
2502 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
2503 ac_compiler=`set X $ac_compile; echo $2`
2504 { (ac_try="$ac_compiler --version >&5"
2505 case "(($ac_try" in
2506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2507 *) ac_try_echo=$ac_try;;
2508 esac
2509 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2510 (eval "$ac_compiler --version >&5") 2>&5
2511 ac_status=$?
2512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2513 (exit $ac_status); }
2514 { (ac_try="$ac_compiler -v >&5"
2515 case "(($ac_try" in
2516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2517 *) ac_try_echo=$ac_try;;
2518 esac
2519 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2520 (eval "$ac_compiler -v >&5") 2>&5
2521 ac_status=$?
2522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2523 (exit $ac_status); }
2524 { (ac_try="$ac_compiler -V >&5"
2525 case "(($ac_try" in
2526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2527 *) ac_try_echo=$ac_try;;
2528 esac
2529 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2530 (eval "$ac_compiler -V >&5") 2>&5
2531 ac_status=$?
2532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2533 (exit $ac_status); }
2535 cat >conftest.$ac_ext <<_ACEOF
2536 /* confdefs.h. */
2537 _ACEOF
2538 cat confdefs.h >>conftest.$ac_ext
2539 cat >>conftest.$ac_ext <<_ACEOF
2540 /* end confdefs.h. */
2543 main ()
2547 return 0;
2549 _ACEOF
2550 ac_clean_files_save=$ac_clean_files
2551 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2552 # Try to create an executable without -o first, disregard a.out.
2553 # It will help us diagnose broken compilers, and finding out an intuition
2554 # of exeext.
2555 { echo "$as_me:$LINENO: checking for C++ compiler default output file name" >&5
2556 echo $ECHO_N "checking for C++ compiler default output file name... $ECHO_C" >&6; }
2557 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2559 # List of possible output files, starting from the most likely.
2560 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2561 # only as a last resort. b.out is created by i960 compilers.
2562 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2564 # The IRIX 6 linker writes into existing files which may not be
2565 # executable, retaining their permissions. Remove them first so a
2566 # subsequent execution test works.
2567 ac_rmfiles=
2568 for ac_file in $ac_files
2570 case $ac_file in
2571 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2572 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2573 esac
2574 done
2575 rm -f $ac_rmfiles
2577 if { (ac_try="$ac_link_default"
2578 case "(($ac_try" in
2579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2580 *) ac_try_echo=$ac_try;;
2581 esac
2582 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2583 (eval "$ac_link_default") 2>&5
2584 ac_status=$?
2585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2586 (exit $ac_status); }; then
2587 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2588 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2589 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2590 # so that the user can short-circuit this test for compilers unknown to
2591 # Autoconf.
2592 for ac_file in $ac_files
2594 test -f "$ac_file" || continue
2595 case $ac_file in
2596 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2598 [ab].out )
2599 # We found the default executable, but exeext='' is most
2600 # certainly right.
2601 break;;
2602 *.* )
2603 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2604 then :; else
2605 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2607 # We set ac_cv_exeext here because the later test for it is not
2608 # safe: cross compilers may not add the suffix if given an `-o'
2609 # argument, so we may need to know it at that point already.
2610 # Even if this section looks crufty: it has the advantage of
2611 # actually working.
2612 break;;
2614 break;;
2615 esac
2616 done
2617 test "$ac_cv_exeext" = no && ac_cv_exeext=
2619 else
2620 echo "$as_me: failed program was:" >&5
2621 sed 's/^/| /' conftest.$ac_ext >&5
2623 { { echo "$as_me:$LINENO: error: C++ compiler cannot create executables
2624 See \`config.log' for more details." >&5
2625 echo "$as_me: error: C++ compiler cannot create executables
2626 See \`config.log' for more details." >&2;}
2627 { (exit 77); exit 77; }; }
2630 ac_exeext=$ac_cv_exeext
2631 { echo "$as_me:$LINENO: result: $ac_file" >&5
2632 echo "${ECHO_T}$ac_file" >&6; }
2634 # Check that the compiler produces executables we can run. If not, either
2635 # the compiler is broken, or we cross compile.
2636 { echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
2637 echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6; }
2638 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2639 # If not cross compiling, check that we can run a simple program.
2640 if test "$cross_compiling" != yes; then
2641 if { ac_try='./$ac_file'
2642 { (case "(($ac_try" in
2643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2644 *) ac_try_echo=$ac_try;;
2645 esac
2646 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2647 (eval "$ac_try") 2>&5
2648 ac_status=$?
2649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2650 (exit $ac_status); }; }; then
2651 cross_compiling=no
2652 else
2653 if test "$cross_compiling" = maybe; then
2654 cross_compiling=yes
2655 else
2656 { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
2657 If you meant to cross compile, use \`--host'.
2658 See \`config.log' for more details." >&5
2659 echo "$as_me: error: cannot run C++ compiled programs.
2660 If you meant to cross compile, use \`--host'.
2661 See \`config.log' for more details." >&2;}
2662 { (exit 1); exit 1; }; }
2666 { echo "$as_me:$LINENO: result: yes" >&5
2667 echo "${ECHO_T}yes" >&6; }
2669 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2670 ac_clean_files=$ac_clean_files_save
2671 # Check that the compiler produces executables we can run. If not, either
2672 # the compiler is broken, or we cross compile.
2673 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2674 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2675 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2676 echo "${ECHO_T}$cross_compiling" >&6; }
2678 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2679 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2680 if { (ac_try="$ac_link"
2681 case "(($ac_try" in
2682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2683 *) ac_try_echo=$ac_try;;
2684 esac
2685 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2686 (eval "$ac_link") 2>&5
2687 ac_status=$?
2688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2689 (exit $ac_status); }; then
2690 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2691 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2692 # work properly (i.e., refer to `conftest.exe'), while it won't with
2693 # `rm'.
2694 for ac_file in conftest.exe conftest conftest.*; do
2695 test -f "$ac_file" || continue
2696 case $ac_file in
2697 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2698 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2699 break;;
2700 * ) break;;
2701 esac
2702 done
2703 else
2704 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2705 See \`config.log' for more details." >&5
2706 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2707 See \`config.log' for more details." >&2;}
2708 { (exit 1); exit 1; }; }
2711 rm -f conftest$ac_cv_exeext
2712 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2713 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2715 rm -f conftest.$ac_ext
2716 EXEEXT=$ac_cv_exeext
2717 ac_exeext=$EXEEXT
2718 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2719 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2720 if test "${ac_cv_objext+set}" = set; then
2721 echo $ECHO_N "(cached) $ECHO_C" >&6
2722 else
2723 cat >conftest.$ac_ext <<_ACEOF
2724 /* confdefs.h. */
2725 _ACEOF
2726 cat confdefs.h >>conftest.$ac_ext
2727 cat >>conftest.$ac_ext <<_ACEOF
2728 /* end confdefs.h. */
2731 main ()
2735 return 0;
2737 _ACEOF
2738 rm -f conftest.o conftest.obj
2739 if { (ac_try="$ac_compile"
2740 case "(($ac_try" in
2741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2742 *) ac_try_echo=$ac_try;;
2743 esac
2744 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2745 (eval "$ac_compile") 2>&5
2746 ac_status=$?
2747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2748 (exit $ac_status); }; then
2749 for ac_file in conftest.o conftest.obj conftest.*; do
2750 test -f "$ac_file" || continue;
2751 case $ac_file in
2752 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2753 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2754 break;;
2755 esac
2756 done
2757 else
2758 echo "$as_me: failed program was:" >&5
2759 sed 's/^/| /' conftest.$ac_ext >&5
2761 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2762 See \`config.log' for more details." >&5
2763 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2764 See \`config.log' for more details." >&2;}
2765 { (exit 1); exit 1; }; }
2768 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2770 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2771 echo "${ECHO_T}$ac_cv_objext" >&6; }
2772 OBJEXT=$ac_cv_objext
2773 ac_objext=$OBJEXT
2774 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2775 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
2776 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2777 echo $ECHO_N "(cached) $ECHO_C" >&6
2778 else
2779 cat >conftest.$ac_ext <<_ACEOF
2780 /* confdefs.h. */
2781 _ACEOF
2782 cat confdefs.h >>conftest.$ac_ext
2783 cat >>conftest.$ac_ext <<_ACEOF
2784 /* end confdefs.h. */
2787 main ()
2789 #ifndef __GNUC__
2790 choke me
2791 #endif
2794 return 0;
2796 _ACEOF
2797 rm -f conftest.$ac_objext
2798 if { (ac_try="$ac_compile"
2799 case "(($ac_try" in
2800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2801 *) ac_try_echo=$ac_try;;
2802 esac
2803 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2804 (eval "$ac_compile") 2>conftest.er1
2805 ac_status=$?
2806 grep -v '^ *+' conftest.er1 >conftest.err
2807 rm -f conftest.er1
2808 cat conftest.err >&5
2809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2810 (exit $ac_status); } &&
2811 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2812 { (case "(($ac_try" in
2813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2814 *) ac_try_echo=$ac_try;;
2815 esac
2816 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2817 (eval "$ac_try") 2>&5
2818 ac_status=$?
2819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2820 (exit $ac_status); }; } &&
2821 { ac_try='test -s conftest.$ac_objext'
2822 { (case "(($ac_try" in
2823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2824 *) ac_try_echo=$ac_try;;
2825 esac
2826 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2827 (eval "$ac_try") 2>&5
2828 ac_status=$?
2829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2830 (exit $ac_status); }; }; then
2831 ac_compiler_gnu=yes
2832 else
2833 echo "$as_me: failed program was:" >&5
2834 sed 's/^/| /' conftest.$ac_ext >&5
2836 ac_compiler_gnu=no
2839 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2840 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2843 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2844 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
2845 GXX=`test $ac_compiler_gnu = yes && echo yes`
2846 ac_test_CXXFLAGS=${CXXFLAGS+set}
2847 ac_save_CXXFLAGS=$CXXFLAGS
2848 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2849 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
2850 if test "${ac_cv_prog_cxx_g+set}" = set; then
2851 echo $ECHO_N "(cached) $ECHO_C" >&6
2852 else
2853 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
2854 ac_cxx_werror_flag=yes
2855 ac_cv_prog_cxx_g=no
2856 CXXFLAGS="-g"
2857 cat >conftest.$ac_ext <<_ACEOF
2858 /* confdefs.h. */
2859 _ACEOF
2860 cat confdefs.h >>conftest.$ac_ext
2861 cat >>conftest.$ac_ext <<_ACEOF
2862 /* end confdefs.h. */
2865 main ()
2869 return 0;
2871 _ACEOF
2872 rm -f conftest.$ac_objext
2873 if { (ac_try="$ac_compile"
2874 case "(($ac_try" in
2875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2876 *) ac_try_echo=$ac_try;;
2877 esac
2878 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2879 (eval "$ac_compile") 2>conftest.er1
2880 ac_status=$?
2881 grep -v '^ *+' conftest.er1 >conftest.err
2882 rm -f conftest.er1
2883 cat conftest.err >&5
2884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2885 (exit $ac_status); } &&
2886 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2887 { (case "(($ac_try" in
2888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2889 *) ac_try_echo=$ac_try;;
2890 esac
2891 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2892 (eval "$ac_try") 2>&5
2893 ac_status=$?
2894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2895 (exit $ac_status); }; } &&
2896 { ac_try='test -s conftest.$ac_objext'
2897 { (case "(($ac_try" in
2898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2899 *) ac_try_echo=$ac_try;;
2900 esac
2901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2902 (eval "$ac_try") 2>&5
2903 ac_status=$?
2904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2905 (exit $ac_status); }; }; then
2906 ac_cv_prog_cxx_g=yes
2907 else
2908 echo "$as_me: failed program was:" >&5
2909 sed 's/^/| /' conftest.$ac_ext >&5
2911 CXXFLAGS=""
2912 cat >conftest.$ac_ext <<_ACEOF
2913 /* confdefs.h. */
2914 _ACEOF
2915 cat confdefs.h >>conftest.$ac_ext
2916 cat >>conftest.$ac_ext <<_ACEOF
2917 /* end confdefs.h. */
2920 main ()
2924 return 0;
2926 _ACEOF
2927 rm -f conftest.$ac_objext
2928 if { (ac_try="$ac_compile"
2929 case "(($ac_try" in
2930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2931 *) ac_try_echo=$ac_try;;
2932 esac
2933 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2934 (eval "$ac_compile") 2>conftest.er1
2935 ac_status=$?
2936 grep -v '^ *+' conftest.er1 >conftest.err
2937 rm -f conftest.er1
2938 cat conftest.err >&5
2939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2940 (exit $ac_status); } &&
2941 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2942 { (case "(($ac_try" in
2943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2944 *) ac_try_echo=$ac_try;;
2945 esac
2946 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2947 (eval "$ac_try") 2>&5
2948 ac_status=$?
2949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2950 (exit $ac_status); }; } &&
2951 { ac_try='test -s conftest.$ac_objext'
2952 { (case "(($ac_try" in
2953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2954 *) ac_try_echo=$ac_try;;
2955 esac
2956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2957 (eval "$ac_try") 2>&5
2958 ac_status=$?
2959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2960 (exit $ac_status); }; }; then
2962 else
2963 echo "$as_me: failed program was:" >&5
2964 sed 's/^/| /' conftest.$ac_ext >&5
2966 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
2967 CXXFLAGS="-g"
2968 cat >conftest.$ac_ext <<_ACEOF
2969 /* confdefs.h. */
2970 _ACEOF
2971 cat confdefs.h >>conftest.$ac_ext
2972 cat >>conftest.$ac_ext <<_ACEOF
2973 /* end confdefs.h. */
2976 main ()
2980 return 0;
2982 _ACEOF
2983 rm -f conftest.$ac_objext
2984 if { (ac_try="$ac_compile"
2985 case "(($ac_try" in
2986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2987 *) ac_try_echo=$ac_try;;
2988 esac
2989 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2990 (eval "$ac_compile") 2>conftest.er1
2991 ac_status=$?
2992 grep -v '^ *+' conftest.er1 >conftest.err
2993 rm -f conftest.er1
2994 cat conftest.err >&5
2995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2996 (exit $ac_status); } &&
2997 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2998 { (case "(($ac_try" in
2999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3000 *) ac_try_echo=$ac_try;;
3001 esac
3002 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3003 (eval "$ac_try") 2>&5
3004 ac_status=$?
3005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3006 (exit $ac_status); }; } &&
3007 { ac_try='test -s conftest.$ac_objext'
3008 { (case "(($ac_try" in
3009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3010 *) ac_try_echo=$ac_try;;
3011 esac
3012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3013 (eval "$ac_try") 2>&5
3014 ac_status=$?
3015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3016 (exit $ac_status); }; }; then
3017 ac_cv_prog_cxx_g=yes
3018 else
3019 echo "$as_me: failed program was:" >&5
3020 sed 's/^/| /' conftest.$ac_ext >&5
3025 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3028 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3031 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3032 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3034 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3035 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3036 if test "$ac_test_CXXFLAGS" = set; then
3037 CXXFLAGS=$ac_save_CXXFLAGS
3038 elif test $ac_cv_prog_cxx_g = yes; then
3039 if test "$GXX" = yes; then
3040 CXXFLAGS="-g -O2"
3041 else
3042 CXXFLAGS="-g"
3044 else
3045 if test "$GXX" = yes; then
3046 CXXFLAGS="-O2"
3047 else
3048 CXXFLAGS=
3051 ac_ext=cpp
3052 ac_cpp='$CXXCPP $CPPFLAGS'
3053 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3054 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3055 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3056 DEPDIR="${am__leading_dot}deps"
3058 ac_config_commands="$ac_config_commands depfiles"
3061 am_make=${MAKE-make}
3062 cat > confinc << 'END'
3063 am__doit:
3064 @echo done
3065 .PHONY: am__doit
3067 # If we don't find an include directive, just comment out the code.
3068 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3069 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
3070 am__include="#"
3071 am__quote=
3072 _am_result=none
3073 # First try GNU make style include.
3074 echo "include confinc" > confmf
3075 # We grep out `Entering directory' and `Leaving directory'
3076 # messages which can occur if `w' ends up in MAKEFLAGS.
3077 # In particular we don't look at `^make:' because GNU make might
3078 # be invoked under some other name (usually "gmake"), in which
3079 # case it prints its new name instead of `make'.
3080 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3081 am__include=include
3082 am__quote=
3083 _am_result=GNU
3085 # Now try BSD make style include.
3086 if test "$am__include" = "#"; then
3087 echo '.include "confinc"' > confmf
3088 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3089 am__include=.include
3090 am__quote="\""
3091 _am_result=BSD
3096 { echo "$as_me:$LINENO: result: $_am_result" >&5
3097 echo "${ECHO_T}$_am_result" >&6; }
3098 rm -f confinc confmf
3100 # Check whether --enable-dependency-tracking was given.
3101 if test "${enable_dependency_tracking+set}" = set; then
3102 enableval=$enable_dependency_tracking;
3105 if test "x$enable_dependency_tracking" != xno; then
3106 am_depcomp="$ac_aux_dir/depcomp"
3107 AMDEPBACKSLASH='\'
3111 if test "x$enable_dependency_tracking" != xno; then
3112 AMDEP_TRUE=
3113 AMDEP_FALSE='#'
3114 else
3115 AMDEP_TRUE='#'
3116 AMDEP_FALSE=
3122 depcc="$CXX" am_compiler_list=
3124 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3125 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3126 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
3127 echo $ECHO_N "(cached) $ECHO_C" >&6
3128 else
3129 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3130 # We make a subdir and do the tests there. Otherwise we can end up
3131 # making bogus files that we don't know about and never remove. For
3132 # instance it was reported that on HP-UX the gcc test will end up
3133 # making a dummy file named `D' -- because `-MD' means `put the output
3134 # in D'.
3135 mkdir conftest.dir
3136 # Copy depcomp to subdir because otherwise we won't find it if we're
3137 # using a relative directory.
3138 cp "$am_depcomp" conftest.dir
3139 cd conftest.dir
3140 # We will build objects and dependencies in a subdirectory because
3141 # it helps to detect inapplicable dependency modes. For instance
3142 # both Tru64's cc and ICC support -MD to output dependencies as a
3143 # side effect of compilation, but ICC will put the dependencies in
3144 # the current directory while Tru64 will put them in the object
3145 # directory.
3146 mkdir sub
3148 am_cv_CXX_dependencies_compiler_type=none
3149 if test "$am_compiler_list" = ""; then
3150 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3152 for depmode in $am_compiler_list; do
3153 # Setup a source with many dependencies, because some compilers
3154 # like to wrap large dependency lists on column 80 (with \), and
3155 # we should not choose a depcomp mode which is confused by this.
3157 # We need to recreate these files for each test, as the compiler may
3158 # overwrite some of them when testing with obscure command lines.
3159 # This happens at least with the AIX C compiler.
3160 : > sub/conftest.c
3161 for i in 1 2 3 4 5 6; do
3162 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3163 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3164 # Solaris 8's {/usr,}/bin/sh.
3165 touch sub/conftst$i.h
3166 done
3167 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3169 case $depmode in
3170 nosideeffect)
3171 # after this tag, mechanisms are not by side-effect, so they'll
3172 # only be used when explicitly requested
3173 if test "x$enable_dependency_tracking" = xyes; then
3174 continue
3175 else
3176 break
3179 none) break ;;
3180 esac
3181 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3182 # mode. It turns out that the SunPro C++ compiler does not properly
3183 # handle `-M -o', and we need to detect this.
3184 if depmode=$depmode \
3185 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3186 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3187 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3188 >/dev/null 2>conftest.err &&
3189 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3190 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3191 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3192 # icc doesn't choke on unknown options, it will just issue warnings
3193 # or remarks (even with -Werror). So we grep stderr for any message
3194 # that says an option was ignored or not supported.
3195 # When given -MP, icc 7.0 and 7.1 complain thusly:
3196 # icc: Command line warning: ignoring option '-M'; no argument required
3197 # The diagnosis changed in icc 8.0:
3198 # icc: Command line remark: option '-MP' not supported
3199 if (grep 'ignoring option' conftest.err ||
3200 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3201 am_cv_CXX_dependencies_compiler_type=$depmode
3202 break
3205 done
3207 cd ..
3208 rm -rf conftest.dir
3209 else
3210 am_cv_CXX_dependencies_compiler_type=none
3214 { echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
3215 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
3216 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
3221 test "x$enable_dependency_tracking" != xno \
3222 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
3223 am__fastdepCXX_TRUE=
3224 am__fastdepCXX_FALSE='#'
3225 else
3226 am__fastdepCXX_TRUE='#'
3227 am__fastdepCXX_FALSE=
3232 # Check whether --enable-shared was given.
3233 if test "${enable_shared+set}" = set; then
3234 enableval=$enable_shared; p=${PACKAGE-default}
3235 case $enableval in
3236 yes) enable_shared=yes ;;
3237 no) enable_shared=no ;;
3239 enable_shared=no
3240 # Look at the argument we got. We use all the common list separators.
3241 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3242 for pkg in $enableval; do
3243 IFS="$lt_save_ifs"
3244 if test "X$pkg" = "X$p"; then
3245 enable_shared=yes
3247 done
3248 IFS="$lt_save_ifs"
3250 esac
3251 else
3252 enable_shared=yes
3256 # Check whether --enable-static was given.
3257 if test "${enable_static+set}" = set; then
3258 enableval=$enable_static; p=${PACKAGE-default}
3259 case $enableval in
3260 yes) enable_static=yes ;;
3261 no) enable_static=no ;;
3263 enable_static=no
3264 # Look at the argument we got. We use all the common list separators.
3265 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3266 for pkg in $enableval; do
3267 IFS="$lt_save_ifs"
3268 if test "X$pkg" = "X$p"; then
3269 enable_static=yes
3271 done
3272 IFS="$lt_save_ifs"
3274 esac
3275 else
3276 enable_static=yes
3280 # Check whether --enable-fast-install was given.
3281 if test "${enable_fast_install+set}" = set; then
3282 enableval=$enable_fast_install; p=${PACKAGE-default}
3283 case $enableval in
3284 yes) enable_fast_install=yes ;;
3285 no) enable_fast_install=no ;;
3287 enable_fast_install=no
3288 # Look at the argument we got. We use all the common list separators.
3289 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3290 for pkg in $enableval; do
3291 IFS="$lt_save_ifs"
3292 if test "X$pkg" = "X$p"; then
3293 enable_fast_install=yes
3295 done
3296 IFS="$lt_save_ifs"
3298 esac
3299 else
3300 enable_fast_install=yes
3304 # Make sure we can run config.sub.
3305 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3306 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3307 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3308 { (exit 1); exit 1; }; }
3310 { echo "$as_me:$LINENO: checking build system type" >&5
3311 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
3312 if test "${ac_cv_build+set}" = set; then
3313 echo $ECHO_N "(cached) $ECHO_C" >&6
3314 else
3315 ac_build_alias=$build_alias
3316 test "x$ac_build_alias" = x &&
3317 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3318 test "x$ac_build_alias" = x &&
3319 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3320 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3321 { (exit 1); exit 1; }; }
3322 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3323 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3324 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3325 { (exit 1); exit 1; }; }
3328 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3329 echo "${ECHO_T}$ac_cv_build" >&6; }
3330 case $ac_cv_build in
3331 *-*-*) ;;
3332 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3333 echo "$as_me: error: invalid value of canonical build" >&2;}
3334 { (exit 1); exit 1; }; };;
3335 esac
3336 build=$ac_cv_build
3337 ac_save_IFS=$IFS; IFS='-'
3338 set x $ac_cv_build
3339 shift
3340 build_cpu=$1
3341 build_vendor=$2
3342 shift; shift
3343 # Remember, the first character of IFS is used to create $*,
3344 # except with old shells:
3345 build_os=$*
3346 IFS=$ac_save_IFS
3347 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3350 { echo "$as_me:$LINENO: checking host system type" >&5
3351 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
3352 if test "${ac_cv_host+set}" = set; then
3353 echo $ECHO_N "(cached) $ECHO_C" >&6
3354 else
3355 if test "x$host_alias" = x; then
3356 ac_cv_host=$ac_cv_build
3357 else
3358 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3359 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3360 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3361 { (exit 1); exit 1; }; }
3365 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3366 echo "${ECHO_T}$ac_cv_host" >&6; }
3367 case $ac_cv_host in
3368 *-*-*) ;;
3369 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3370 echo "$as_me: error: invalid value of canonical host" >&2;}
3371 { (exit 1); exit 1; }; };;
3372 esac
3373 host=$ac_cv_host
3374 ac_save_IFS=$IFS; IFS='-'
3375 set x $ac_cv_host
3376 shift
3377 host_cpu=$1
3378 host_vendor=$2
3379 shift; shift
3380 # Remember, the first character of IFS is used to create $*,
3381 # except with old shells:
3382 host_os=$*
3383 IFS=$ac_save_IFS
3384 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3387 ac_ext=c
3388 ac_cpp='$CPP $CPPFLAGS'
3389 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3390 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3391 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3392 if test -n "$ac_tool_prefix"; then
3393 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3394 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3395 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3396 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3397 if test "${ac_cv_prog_CC+set}" = set; then
3398 echo $ECHO_N "(cached) $ECHO_C" >&6
3399 else
3400 if test -n "$CC"; then
3401 ac_cv_prog_CC="$CC" # Let the user override the test.
3402 else
3403 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3404 for as_dir in $PATH
3406 IFS=$as_save_IFS
3407 test -z "$as_dir" && as_dir=.
3408 for ac_exec_ext in '' $ac_executable_extensions; do
3409 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
3410 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3411 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3412 break 2
3414 done
3415 done
3416 IFS=$as_save_IFS
3420 CC=$ac_cv_prog_CC
3421 if test -n "$CC"; then
3422 { echo "$as_me:$LINENO: result: $CC" >&5
3423 echo "${ECHO_T}$CC" >&6; }
3424 else
3425 { echo "$as_me:$LINENO: result: no" >&5
3426 echo "${ECHO_T}no" >&6; }
3431 if test -z "$ac_cv_prog_CC"; then
3432 ac_ct_CC=$CC
3433 # Extract the first word of "gcc", so it can be a program name with args.
3434 set dummy gcc; ac_word=$2
3435 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3436 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3437 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3438 echo $ECHO_N "(cached) $ECHO_C" >&6
3439 else
3440 if test -n "$ac_ct_CC"; then
3441 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3442 else
3443 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3444 for as_dir in $PATH
3446 IFS=$as_save_IFS
3447 test -z "$as_dir" && as_dir=.
3448 for ac_exec_ext in '' $ac_executable_extensions; do
3449 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
3450 ac_cv_prog_ac_ct_CC="gcc"
3451 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3452 break 2
3454 done
3455 done
3456 IFS=$as_save_IFS
3460 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3461 if test -n "$ac_ct_CC"; then
3462 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3463 echo "${ECHO_T}$ac_ct_CC" >&6; }
3464 else
3465 { echo "$as_me:$LINENO: result: no" >&5
3466 echo "${ECHO_T}no" >&6; }
3469 if test "x$ac_ct_CC" = x; then
3470 CC=""
3471 else
3472 case $cross_compiling:$ac_tool_warned in
3473 yes:)
3474 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3475 whose name does not start with the host triplet. If you think this
3476 configuration is useful to you, please write to autoconf@gnu.org." >&5
3477 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3478 whose name does not start with the host triplet. If you think this
3479 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3480 ac_tool_warned=yes ;;
3481 esac
3482 CC=$ac_ct_CC
3484 else
3485 CC="$ac_cv_prog_CC"
3488 if test -z "$CC"; then
3489 if test -n "$ac_tool_prefix"; then
3490 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3491 set dummy ${ac_tool_prefix}cc; ac_word=$2
3492 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3493 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3494 if test "${ac_cv_prog_CC+set}" = set; then
3495 echo $ECHO_N "(cached) $ECHO_C" >&6
3496 else
3497 if test -n "$CC"; then
3498 ac_cv_prog_CC="$CC" # Let the user override the test.
3499 else
3500 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3501 for as_dir in $PATH
3503 IFS=$as_save_IFS
3504 test -z "$as_dir" && as_dir=.
3505 for ac_exec_ext in '' $ac_executable_extensions; do
3506 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
3507 ac_cv_prog_CC="${ac_tool_prefix}cc"
3508 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3509 break 2
3511 done
3512 done
3513 IFS=$as_save_IFS
3517 CC=$ac_cv_prog_CC
3518 if test -n "$CC"; then
3519 { echo "$as_me:$LINENO: result: $CC" >&5
3520 echo "${ECHO_T}$CC" >&6; }
3521 else
3522 { echo "$as_me:$LINENO: result: no" >&5
3523 echo "${ECHO_T}no" >&6; }
3529 if test -z "$CC"; then
3530 # Extract the first word of "cc", so it can be a program name with args.
3531 set dummy cc; ac_word=$2
3532 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3533 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3534 if test "${ac_cv_prog_CC+set}" = set; then
3535 echo $ECHO_N "(cached) $ECHO_C" >&6
3536 else
3537 if test -n "$CC"; then
3538 ac_cv_prog_CC="$CC" # Let the user override the test.
3539 else
3540 ac_prog_rejected=no
3541 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3542 for as_dir in $PATH
3544 IFS=$as_save_IFS
3545 test -z "$as_dir" && as_dir=.
3546 for ac_exec_ext in '' $ac_executable_extensions; do
3547 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
3548 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3549 ac_prog_rejected=yes
3550 continue
3552 ac_cv_prog_CC="cc"
3553 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3554 break 2
3556 done
3557 done
3558 IFS=$as_save_IFS
3560 if test $ac_prog_rejected = yes; then
3561 # We found a bogon in the path, so make sure we never use it.
3562 set dummy $ac_cv_prog_CC
3563 shift
3564 if test $# != 0; then
3565 # We chose a different compiler from the bogus one.
3566 # However, it has the same basename, so the bogon will be chosen
3567 # first if we set CC to just the basename; use the full file name.
3568 shift
3569 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3574 CC=$ac_cv_prog_CC
3575 if test -n "$CC"; then
3576 { echo "$as_me:$LINENO: result: $CC" >&5
3577 echo "${ECHO_T}$CC" >&6; }
3578 else
3579 { echo "$as_me:$LINENO: result: no" >&5
3580 echo "${ECHO_T}no" >&6; }
3585 if test -z "$CC"; then
3586 if test -n "$ac_tool_prefix"; then
3587 for ac_prog in cl.exe
3589 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3590 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3591 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3592 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3593 if test "${ac_cv_prog_CC+set}" = set; then
3594 echo $ECHO_N "(cached) $ECHO_C" >&6
3595 else
3596 if test -n "$CC"; then
3597 ac_cv_prog_CC="$CC" # Let the user override the test.
3598 else
3599 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3600 for as_dir in $PATH
3602 IFS=$as_save_IFS
3603 test -z "$as_dir" && as_dir=.
3604 for ac_exec_ext in '' $ac_executable_extensions; do
3605 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
3606 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3607 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3608 break 2
3610 done
3611 done
3612 IFS=$as_save_IFS
3616 CC=$ac_cv_prog_CC
3617 if test -n "$CC"; then
3618 { echo "$as_me:$LINENO: result: $CC" >&5
3619 echo "${ECHO_T}$CC" >&6; }
3620 else
3621 { echo "$as_me:$LINENO: result: no" >&5
3622 echo "${ECHO_T}no" >&6; }
3626 test -n "$CC" && break
3627 done
3629 if test -z "$CC"; then
3630 ac_ct_CC=$CC
3631 for ac_prog in cl.exe
3633 # Extract the first word of "$ac_prog", so it can be a program name with args.
3634 set dummy $ac_prog; ac_word=$2
3635 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3636 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3637 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3638 echo $ECHO_N "(cached) $ECHO_C" >&6
3639 else
3640 if test -n "$ac_ct_CC"; then
3641 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3642 else
3643 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3644 for as_dir in $PATH
3646 IFS=$as_save_IFS
3647 test -z "$as_dir" && as_dir=.
3648 for ac_exec_ext in '' $ac_executable_extensions; do
3649 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
3650 ac_cv_prog_ac_ct_CC="$ac_prog"
3651 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3652 break 2
3654 done
3655 done
3656 IFS=$as_save_IFS
3660 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3661 if test -n "$ac_ct_CC"; then
3662 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3663 echo "${ECHO_T}$ac_ct_CC" >&6; }
3664 else
3665 { echo "$as_me:$LINENO: result: no" >&5
3666 echo "${ECHO_T}no" >&6; }
3670 test -n "$ac_ct_CC" && break
3671 done
3673 if test "x$ac_ct_CC" = x; then
3674 CC=""
3675 else
3676 case $cross_compiling:$ac_tool_warned in
3677 yes:)
3678 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3679 whose name does not start with the host triplet. If you think this
3680 configuration is useful to you, please write to autoconf@gnu.org." >&5
3681 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3682 whose name does not start with the host triplet. If you think this
3683 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3684 ac_tool_warned=yes ;;
3685 esac
3686 CC=$ac_ct_CC
3693 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3694 See \`config.log' for more details." >&5
3695 echo "$as_me: error: no acceptable C compiler found in \$PATH
3696 See \`config.log' for more details." >&2;}
3697 { (exit 1); exit 1; }; }
3699 # Provide some information about the compiler.
3700 echo "$as_me:$LINENO: checking for C compiler version" >&5
3701 ac_compiler=`set X $ac_compile; echo $2`
3702 { (ac_try="$ac_compiler --version >&5"
3703 case "(($ac_try" in
3704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3705 *) ac_try_echo=$ac_try;;
3706 esac
3707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3708 (eval "$ac_compiler --version >&5") 2>&5
3709 ac_status=$?
3710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3711 (exit $ac_status); }
3712 { (ac_try="$ac_compiler -v >&5"
3713 case "(($ac_try" in
3714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3715 *) ac_try_echo=$ac_try;;
3716 esac
3717 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3718 (eval "$ac_compiler -v >&5") 2>&5
3719 ac_status=$?
3720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3721 (exit $ac_status); }
3722 { (ac_try="$ac_compiler -V >&5"
3723 case "(($ac_try" in
3724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3725 *) ac_try_echo=$ac_try;;
3726 esac
3727 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3728 (eval "$ac_compiler -V >&5") 2>&5
3729 ac_status=$?
3730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3731 (exit $ac_status); }
3733 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3734 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3735 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3736 echo $ECHO_N "(cached) $ECHO_C" >&6
3737 else
3738 cat >conftest.$ac_ext <<_ACEOF
3739 /* confdefs.h. */
3740 _ACEOF
3741 cat confdefs.h >>conftest.$ac_ext
3742 cat >>conftest.$ac_ext <<_ACEOF
3743 /* end confdefs.h. */
3746 main ()
3748 #ifndef __GNUC__
3749 choke me
3750 #endif
3753 return 0;
3755 _ACEOF
3756 rm -f conftest.$ac_objext
3757 if { (ac_try="$ac_compile"
3758 case "(($ac_try" in
3759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3760 *) ac_try_echo=$ac_try;;
3761 esac
3762 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3763 (eval "$ac_compile") 2>conftest.er1
3764 ac_status=$?
3765 grep -v '^ *+' conftest.er1 >conftest.err
3766 rm -f conftest.er1
3767 cat conftest.err >&5
3768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3769 (exit $ac_status); } &&
3770 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3771 { (case "(($ac_try" in
3772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3773 *) ac_try_echo=$ac_try;;
3774 esac
3775 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3776 (eval "$ac_try") 2>&5
3777 ac_status=$?
3778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3779 (exit $ac_status); }; } &&
3780 { ac_try='test -s conftest.$ac_objext'
3781 { (case "(($ac_try" in
3782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3783 *) ac_try_echo=$ac_try;;
3784 esac
3785 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3786 (eval "$ac_try") 2>&5
3787 ac_status=$?
3788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3789 (exit $ac_status); }; }; then
3790 ac_compiler_gnu=yes
3791 else
3792 echo "$as_me: failed program was:" >&5
3793 sed 's/^/| /' conftest.$ac_ext >&5
3795 ac_compiler_gnu=no
3798 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3799 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3802 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3803 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3804 GCC=`test $ac_compiler_gnu = yes && echo yes`
3805 ac_test_CFLAGS=${CFLAGS+set}
3806 ac_save_CFLAGS=$CFLAGS
3807 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3808 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3809 if test "${ac_cv_prog_cc_g+set}" = set; then
3810 echo $ECHO_N "(cached) $ECHO_C" >&6
3811 else
3812 ac_save_c_werror_flag=$ac_c_werror_flag
3813 ac_c_werror_flag=yes
3814 ac_cv_prog_cc_g=no
3815 CFLAGS="-g"
3816 cat >conftest.$ac_ext <<_ACEOF
3817 /* confdefs.h. */
3818 _ACEOF
3819 cat confdefs.h >>conftest.$ac_ext
3820 cat >>conftest.$ac_ext <<_ACEOF
3821 /* end confdefs.h. */
3824 main ()
3828 return 0;
3830 _ACEOF
3831 rm -f conftest.$ac_objext
3832 if { (ac_try="$ac_compile"
3833 case "(($ac_try" in
3834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3835 *) ac_try_echo=$ac_try;;
3836 esac
3837 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3838 (eval "$ac_compile") 2>conftest.er1
3839 ac_status=$?
3840 grep -v '^ *+' conftest.er1 >conftest.err
3841 rm -f conftest.er1
3842 cat conftest.err >&5
3843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3844 (exit $ac_status); } &&
3845 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3846 { (case "(($ac_try" in
3847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3848 *) ac_try_echo=$ac_try;;
3849 esac
3850 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3851 (eval "$ac_try") 2>&5
3852 ac_status=$?
3853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3854 (exit $ac_status); }; } &&
3855 { ac_try='test -s conftest.$ac_objext'
3856 { (case "(($ac_try" in
3857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3858 *) ac_try_echo=$ac_try;;
3859 esac
3860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3861 (eval "$ac_try") 2>&5
3862 ac_status=$?
3863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3864 (exit $ac_status); }; }; then
3865 ac_cv_prog_cc_g=yes
3866 else
3867 echo "$as_me: failed program was:" >&5
3868 sed 's/^/| /' conftest.$ac_ext >&5
3870 CFLAGS=""
3871 cat >conftest.$ac_ext <<_ACEOF
3872 /* confdefs.h. */
3873 _ACEOF
3874 cat confdefs.h >>conftest.$ac_ext
3875 cat >>conftest.$ac_ext <<_ACEOF
3876 /* end confdefs.h. */
3879 main ()
3883 return 0;
3885 _ACEOF
3886 rm -f conftest.$ac_objext
3887 if { (ac_try="$ac_compile"
3888 case "(($ac_try" in
3889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3890 *) ac_try_echo=$ac_try;;
3891 esac
3892 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3893 (eval "$ac_compile") 2>conftest.er1
3894 ac_status=$?
3895 grep -v '^ *+' conftest.er1 >conftest.err
3896 rm -f conftest.er1
3897 cat conftest.err >&5
3898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3899 (exit $ac_status); } &&
3900 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3901 { (case "(($ac_try" in
3902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3903 *) ac_try_echo=$ac_try;;
3904 esac
3905 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3906 (eval "$ac_try") 2>&5
3907 ac_status=$?
3908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3909 (exit $ac_status); }; } &&
3910 { ac_try='test -s conftest.$ac_objext'
3911 { (case "(($ac_try" in
3912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3913 *) ac_try_echo=$ac_try;;
3914 esac
3915 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3916 (eval "$ac_try") 2>&5
3917 ac_status=$?
3918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3919 (exit $ac_status); }; }; then
3921 else
3922 echo "$as_me: failed program was:" >&5
3923 sed 's/^/| /' conftest.$ac_ext >&5
3925 ac_c_werror_flag=$ac_save_c_werror_flag
3926 CFLAGS="-g"
3927 cat >conftest.$ac_ext <<_ACEOF
3928 /* confdefs.h. */
3929 _ACEOF
3930 cat confdefs.h >>conftest.$ac_ext
3931 cat >>conftest.$ac_ext <<_ACEOF
3932 /* end confdefs.h. */
3935 main ()
3939 return 0;
3941 _ACEOF
3942 rm -f conftest.$ac_objext
3943 if { (ac_try="$ac_compile"
3944 case "(($ac_try" in
3945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3946 *) ac_try_echo=$ac_try;;
3947 esac
3948 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3949 (eval "$ac_compile") 2>conftest.er1
3950 ac_status=$?
3951 grep -v '^ *+' conftest.er1 >conftest.err
3952 rm -f conftest.er1
3953 cat conftest.err >&5
3954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3955 (exit $ac_status); } &&
3956 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3957 { (case "(($ac_try" in
3958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3959 *) ac_try_echo=$ac_try;;
3960 esac
3961 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3962 (eval "$ac_try") 2>&5
3963 ac_status=$?
3964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3965 (exit $ac_status); }; } &&
3966 { ac_try='test -s conftest.$ac_objext'
3967 { (case "(($ac_try" in
3968 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3969 *) ac_try_echo=$ac_try;;
3970 esac
3971 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3972 (eval "$ac_try") 2>&5
3973 ac_status=$?
3974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3975 (exit $ac_status); }; }; then
3976 ac_cv_prog_cc_g=yes
3977 else
3978 echo "$as_me: failed program was:" >&5
3979 sed 's/^/| /' conftest.$ac_ext >&5
3984 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3987 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3990 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3991 ac_c_werror_flag=$ac_save_c_werror_flag
3993 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3994 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3995 if test "$ac_test_CFLAGS" = set; then
3996 CFLAGS=$ac_save_CFLAGS
3997 elif test $ac_cv_prog_cc_g = yes; then
3998 if test "$GCC" = yes; then
3999 CFLAGS="-g -O2"
4000 else
4001 CFLAGS="-g"
4003 else
4004 if test "$GCC" = yes; then
4005 CFLAGS="-O2"
4006 else
4007 CFLAGS=
4010 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
4011 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
4012 if test "${ac_cv_prog_cc_c89+set}" = set; then
4013 echo $ECHO_N "(cached) $ECHO_C" >&6
4014 else
4015 ac_cv_prog_cc_c89=no
4016 ac_save_CC=$CC
4017 cat >conftest.$ac_ext <<_ACEOF
4018 /* confdefs.h. */
4019 _ACEOF
4020 cat confdefs.h >>conftest.$ac_ext
4021 cat >>conftest.$ac_ext <<_ACEOF
4022 /* end confdefs.h. */
4023 #include <stdarg.h>
4024 #include <stdio.h>
4025 #include <sys/types.h>
4026 #include <sys/stat.h>
4027 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4028 struct buf { int x; };
4029 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4030 static char *e (p, i)
4031 char **p;
4032 int i;
4034 return p[i];
4036 static char *f (char * (*g) (char **, int), char **p, ...)
4038 char *s;
4039 va_list v;
4040 va_start (v,p);
4041 s = g (p, va_arg (v,int));
4042 va_end (v);
4043 return s;
4046 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4047 function prototypes and stuff, but not '\xHH' hex character constants.
4048 These don't provoke an error unfortunately, instead are silently treated
4049 as 'x'. The following induces an error, until -std is added to get
4050 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4051 array size at least. It's necessary to write '\x00'==0 to get something
4052 that's true only with -std. */
4053 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4055 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4056 inside strings and character constants. */
4057 #define FOO(x) 'x'
4058 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4060 int test (int i, double x);
4061 struct s1 {int (*f) (int a);};
4062 struct s2 {int (*f) (double a);};
4063 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4064 int argc;
4065 char **argv;
4067 main ()
4069 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4071 return 0;
4073 _ACEOF
4074 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4075 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4077 CC="$ac_save_CC $ac_arg"
4078 rm -f conftest.$ac_objext
4079 if { (ac_try="$ac_compile"
4080 case "(($ac_try" in
4081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4082 *) ac_try_echo=$ac_try;;
4083 esac
4084 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4085 (eval "$ac_compile") 2>conftest.er1
4086 ac_status=$?
4087 grep -v '^ *+' conftest.er1 >conftest.err
4088 rm -f conftest.er1
4089 cat conftest.err >&5
4090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4091 (exit $ac_status); } &&
4092 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4093 { (case "(($ac_try" in
4094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4095 *) ac_try_echo=$ac_try;;
4096 esac
4097 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4098 (eval "$ac_try") 2>&5
4099 ac_status=$?
4100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4101 (exit $ac_status); }; } &&
4102 { ac_try='test -s conftest.$ac_objext'
4103 { (case "(($ac_try" in
4104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4105 *) ac_try_echo=$ac_try;;
4106 esac
4107 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4108 (eval "$ac_try") 2>&5
4109 ac_status=$?
4110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4111 (exit $ac_status); }; }; then
4112 ac_cv_prog_cc_c89=$ac_arg
4113 else
4114 echo "$as_me: failed program was:" >&5
4115 sed 's/^/| /' conftest.$ac_ext >&5
4120 rm -f core conftest.err conftest.$ac_objext
4121 test "x$ac_cv_prog_cc_c89" != "xno" && break
4122 done
4123 rm -f conftest.$ac_ext
4124 CC=$ac_save_CC
4127 # AC_CACHE_VAL
4128 case "x$ac_cv_prog_cc_c89" in
4130 { echo "$as_me:$LINENO: result: none needed" >&5
4131 echo "${ECHO_T}none needed" >&6; } ;;
4132 xno)
4133 { echo "$as_me:$LINENO: result: unsupported" >&5
4134 echo "${ECHO_T}unsupported" >&6; } ;;
4136 CC="$CC $ac_cv_prog_cc_c89"
4137 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
4138 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
4139 esac
4142 ac_ext=cpp
4143 ac_cpp='$CXXCPP $CPPFLAGS'
4144 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4145 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4146 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4148 depcc="$CC" am_compiler_list=
4150 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4151 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
4152 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
4153 echo $ECHO_N "(cached) $ECHO_C" >&6
4154 else
4155 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4156 # We make a subdir and do the tests there. Otherwise we can end up
4157 # making bogus files that we don't know about and never remove. For
4158 # instance it was reported that on HP-UX the gcc test will end up
4159 # making a dummy file named `D' -- because `-MD' means `put the output
4160 # in D'.
4161 mkdir conftest.dir
4162 # Copy depcomp to subdir because otherwise we won't find it if we're
4163 # using a relative directory.
4164 cp "$am_depcomp" conftest.dir
4165 cd conftest.dir
4166 # We will build objects and dependencies in a subdirectory because
4167 # it helps to detect inapplicable dependency modes. For instance
4168 # both Tru64's cc and ICC support -MD to output dependencies as a
4169 # side effect of compilation, but ICC will put the dependencies in
4170 # the current directory while Tru64 will put them in the object
4171 # directory.
4172 mkdir sub
4174 am_cv_CC_dependencies_compiler_type=none
4175 if test "$am_compiler_list" = ""; then
4176 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4178 for depmode in $am_compiler_list; do
4179 # Setup a source with many dependencies, because some compilers
4180 # like to wrap large dependency lists on column 80 (with \), and
4181 # we should not choose a depcomp mode which is confused by this.
4183 # We need to recreate these files for each test, as the compiler may
4184 # overwrite some of them when testing with obscure command lines.
4185 # This happens at least with the AIX C compiler.
4186 : > sub/conftest.c
4187 for i in 1 2 3 4 5 6; do
4188 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4189 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4190 # Solaris 8's {/usr,}/bin/sh.
4191 touch sub/conftst$i.h
4192 done
4193 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4195 case $depmode in
4196 nosideeffect)
4197 # after this tag, mechanisms are not by side-effect, so they'll
4198 # only be used when explicitly requested
4199 if test "x$enable_dependency_tracking" = xyes; then
4200 continue
4201 else
4202 break
4205 none) break ;;
4206 esac
4207 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4208 # mode. It turns out that the SunPro C++ compiler does not properly
4209 # handle `-M -o', and we need to detect this.
4210 if depmode=$depmode \
4211 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4212 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4213 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4214 >/dev/null 2>conftest.err &&
4215 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4216 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4217 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4218 # icc doesn't choke on unknown options, it will just issue warnings
4219 # or remarks (even with -Werror). So we grep stderr for any message
4220 # that says an option was ignored or not supported.
4221 # When given -MP, icc 7.0 and 7.1 complain thusly:
4222 # icc: Command line warning: ignoring option '-M'; no argument required
4223 # The diagnosis changed in icc 8.0:
4224 # icc: Command line remark: option '-MP' not supported
4225 if (grep 'ignoring option' conftest.err ||
4226 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4227 am_cv_CC_dependencies_compiler_type=$depmode
4228 break
4231 done
4233 cd ..
4234 rm -rf conftest.dir
4235 else
4236 am_cv_CC_dependencies_compiler_type=none
4240 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
4241 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
4242 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4247 test "x$enable_dependency_tracking" != xno \
4248 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4249 am__fastdepCC_TRUE=
4250 am__fastdepCC_FALSE='#'
4251 else
4252 am__fastdepCC_TRUE='#'
4253 am__fastdepCC_FALSE=
4257 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4258 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
4259 if test "${lt_cv_path_SED+set}" = set; then
4260 echo $ECHO_N "(cached) $ECHO_C" >&6
4261 else
4262 # Loop through the user's path and test for sed and gsed.
4263 # Then use that list of sed's as ones to test for truncation.
4264 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4265 for as_dir in $PATH
4267 IFS=$as_save_IFS
4268 test -z "$as_dir" && as_dir=.
4269 for lt_ac_prog in sed gsed; do
4270 for ac_exec_ext in '' $ac_executable_extensions; do
4271 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
4272 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
4274 done
4275 done
4276 done
4277 lt_ac_max=0
4278 lt_ac_count=0
4279 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
4280 # along with /bin/sed that truncates output.
4281 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
4282 test ! -f $lt_ac_sed && continue
4283 cat /dev/null > conftest.in
4284 lt_ac_count=0
4285 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
4286 # Check for GNU sed and select it if it is found.
4287 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
4288 lt_cv_path_SED=$lt_ac_sed
4289 break
4291 while true; do
4292 cat conftest.in conftest.in >conftest.tmp
4293 mv conftest.tmp conftest.in
4294 cp conftest.in conftest.nl
4295 echo >>conftest.nl
4296 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
4297 cmp -s conftest.out conftest.nl || break
4298 # 10000 chars as input seems more than enough
4299 test $lt_ac_count -gt 10 && break
4300 lt_ac_count=`expr $lt_ac_count + 1`
4301 if test $lt_ac_count -gt $lt_ac_max; then
4302 lt_ac_max=$lt_ac_count
4303 lt_cv_path_SED=$lt_ac_sed
4305 done
4306 done
4310 SED=$lt_cv_path_SED
4311 { echo "$as_me:$LINENO: result: $SED" >&5
4312 echo "${ECHO_T}$SED" >&6; }
4314 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4315 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4316 if test "${ac_cv_path_GREP+set}" = set; then
4317 echo $ECHO_N "(cached) $ECHO_C" >&6
4318 else
4319 # Extract the first word of "grep ggrep" to use in msg output
4320 if test -z "$GREP"; then
4321 set dummy grep ggrep; ac_prog_name=$2
4322 if test "${ac_cv_path_GREP+set}" = set; then
4323 echo $ECHO_N "(cached) $ECHO_C" >&6
4324 else
4325 ac_path_GREP_found=false
4326 # Loop through the user's path and test for each of PROGNAME-LIST
4327 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4328 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4330 IFS=$as_save_IFS
4331 test -z "$as_dir" && as_dir=.
4332 for ac_prog in grep ggrep; do
4333 for ac_exec_ext in '' $ac_executable_extensions; do
4334 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4335 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
4336 # Check for GNU ac_path_GREP and select it if it is found.
4337 # Check for GNU $ac_path_GREP
4338 case `"$ac_path_GREP" --version 2>&1` in
4339 *GNU*)
4340 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4342 ac_count=0
4343 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4344 while :
4346 cat "conftest.in" "conftest.in" >"conftest.tmp"
4347 mv "conftest.tmp" "conftest.in"
4348 cp "conftest.in" "conftest.nl"
4349 echo 'GREP' >> "conftest.nl"
4350 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4351 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4352 ac_count=`expr $ac_count + 1`
4353 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4354 # Best one so far, save it but keep looking for a better one
4355 ac_cv_path_GREP="$ac_path_GREP"
4356 ac_path_GREP_max=$ac_count
4358 # 10*(2^10) chars as input seems more than enough
4359 test $ac_count -gt 10 && break
4360 done
4361 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4362 esac
4365 $ac_path_GREP_found && break 3
4366 done
4367 done
4369 done
4370 IFS=$as_save_IFS
4375 GREP="$ac_cv_path_GREP"
4376 if test -z "$GREP"; then
4377 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4378 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4379 { (exit 1); exit 1; }; }
4382 else
4383 ac_cv_path_GREP=$GREP
4388 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4389 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4390 GREP="$ac_cv_path_GREP"
4393 { echo "$as_me:$LINENO: checking for egrep" >&5
4394 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4395 if test "${ac_cv_path_EGREP+set}" = set; then
4396 echo $ECHO_N "(cached) $ECHO_C" >&6
4397 else
4398 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4399 then ac_cv_path_EGREP="$GREP -E"
4400 else
4401 # Extract the first word of "egrep" to use in msg output
4402 if test -z "$EGREP"; then
4403 set dummy egrep; ac_prog_name=$2
4404 if test "${ac_cv_path_EGREP+set}" = set; then
4405 echo $ECHO_N "(cached) $ECHO_C" >&6
4406 else
4407 ac_path_EGREP_found=false
4408 # Loop through the user's path and test for each of PROGNAME-LIST
4409 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4410 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4412 IFS=$as_save_IFS
4413 test -z "$as_dir" && as_dir=.
4414 for ac_prog in egrep; do
4415 for ac_exec_ext in '' $ac_executable_extensions; do
4416 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4417 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
4418 # Check for GNU ac_path_EGREP and select it if it is found.
4419 # Check for GNU $ac_path_EGREP
4420 case `"$ac_path_EGREP" --version 2>&1` in
4421 *GNU*)
4422 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4424 ac_count=0
4425 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4426 while :
4428 cat "conftest.in" "conftest.in" >"conftest.tmp"
4429 mv "conftest.tmp" "conftest.in"
4430 cp "conftest.in" "conftest.nl"
4431 echo 'EGREP' >> "conftest.nl"
4432 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4433 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4434 ac_count=`expr $ac_count + 1`
4435 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4436 # Best one so far, save it but keep looking for a better one
4437 ac_cv_path_EGREP="$ac_path_EGREP"
4438 ac_path_EGREP_max=$ac_count
4440 # 10*(2^10) chars as input seems more than enough
4441 test $ac_count -gt 10 && break
4442 done
4443 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4444 esac
4447 $ac_path_EGREP_found && break 3
4448 done
4449 done
4451 done
4452 IFS=$as_save_IFS
4457 EGREP="$ac_cv_path_EGREP"
4458 if test -z "$EGREP"; then
4459 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4460 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4461 { (exit 1); exit 1; }; }
4464 else
4465 ac_cv_path_EGREP=$EGREP
4471 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4472 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4473 EGREP="$ac_cv_path_EGREP"
4477 # Check whether --with-gnu-ld was given.
4478 if test "${with_gnu_ld+set}" = set; then
4479 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4480 else
4481 with_gnu_ld=no
4484 ac_prog=ld
4485 if test "$GCC" = yes; then
4486 # Check if gcc -print-prog-name=ld gives a path.
4487 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4488 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
4489 case $host in
4490 *-*-mingw*)
4491 # gcc leaves a trailing carriage return which upsets mingw
4492 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4494 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4495 esac
4496 case $ac_prog in
4497 # Accept absolute paths.
4498 [\\/]* | ?:[\\/]*)
4499 re_direlt='/[^/][^/]*/\.\./'
4500 # Canonicalize the pathname of ld
4501 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
4502 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4503 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4504 done
4505 test -z "$LD" && LD="$ac_prog"
4508 # If it fails, then pretend we aren't using GCC.
4509 ac_prog=ld
4512 # If it is relative, then search for the first ld in PATH.
4513 with_gnu_ld=unknown
4515 esac
4516 elif test "$with_gnu_ld" = yes; then
4517 { echo "$as_me:$LINENO: checking for GNU ld" >&5
4518 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
4519 else
4520 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4521 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
4523 if test "${lt_cv_path_LD+set}" = set; then
4524 echo $ECHO_N "(cached) $ECHO_C" >&6
4525 else
4526 if test -z "$LD"; then
4527 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4528 for ac_dir in $PATH; do
4529 IFS="$lt_save_ifs"
4530 test -z "$ac_dir" && ac_dir=.
4531 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4532 lt_cv_path_LD="$ac_dir/$ac_prog"
4533 # Check to see if the program is GNU ld. I'd rather use --version,
4534 # but apparently some variants of GNU ld only accept -v.
4535 # Break only if it was the GNU/non-GNU ld that we prefer.
4536 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4537 *GNU* | *'with BFD'*)
4538 test "$with_gnu_ld" != no && break
4541 test "$with_gnu_ld" != yes && break
4543 esac
4545 done
4546 IFS="$lt_save_ifs"
4547 else
4548 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4552 LD="$lt_cv_path_LD"
4553 if test -n "$LD"; then
4554 { echo "$as_me:$LINENO: result: $LD" >&5
4555 echo "${ECHO_T}$LD" >&6; }
4556 else
4557 { echo "$as_me:$LINENO: result: no" >&5
4558 echo "${ECHO_T}no" >&6; }
4560 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4561 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4562 { (exit 1); exit 1; }; }
4563 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4564 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
4565 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4566 echo $ECHO_N "(cached) $ECHO_C" >&6
4567 else
4568 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4569 case `$LD -v 2>&1 </dev/null` in
4570 *GNU* | *'with BFD'*)
4571 lt_cv_prog_gnu_ld=yes
4574 lt_cv_prog_gnu_ld=no
4576 esac
4578 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4579 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
4580 with_gnu_ld=$lt_cv_prog_gnu_ld
4583 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4584 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
4585 if test "${lt_cv_ld_reload_flag+set}" = set; then
4586 echo $ECHO_N "(cached) $ECHO_C" >&6
4587 else
4588 lt_cv_ld_reload_flag='-r'
4590 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4591 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
4592 reload_flag=$lt_cv_ld_reload_flag
4593 case $reload_flag in
4594 "" | " "*) ;;
4595 *) reload_flag=" $reload_flag" ;;
4596 esac
4597 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4598 case $host_os in
4599 darwin*)
4600 if test "$GCC" = yes; then
4601 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4602 else
4603 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4606 esac
4608 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4609 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
4610 if test "${lt_cv_path_NM+set}" = set; then
4611 echo $ECHO_N "(cached) $ECHO_C" >&6
4612 else
4613 if test -n "$NM"; then
4614 # Let the user override the test.
4615 lt_cv_path_NM="$NM"
4616 else
4617 lt_nm_to_check="${ac_tool_prefix}nm"
4618 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4619 lt_nm_to_check="$lt_nm_to_check nm"
4621 for lt_tmp_nm in $lt_nm_to_check; do
4622 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4623 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4624 IFS="$lt_save_ifs"
4625 test -z "$ac_dir" && ac_dir=.
4626 tmp_nm="$ac_dir/$lt_tmp_nm"
4627 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4628 # Check to see if the nm accepts a BSD-compat flag.
4629 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4630 # nm: unknown option "B" ignored
4631 # Tru64's nm complains that /dev/null is an invalid object file
4632 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4633 */dev/null* | *'Invalid file or object type'*)
4634 lt_cv_path_NM="$tmp_nm -B"
4635 break
4638 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4639 */dev/null*)
4640 lt_cv_path_NM="$tmp_nm -p"
4641 break
4644 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4645 continue # so that we can try to find one that supports BSD flags
4647 esac
4649 esac
4651 done
4652 IFS="$lt_save_ifs"
4653 done
4654 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4657 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4658 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
4659 NM="$lt_cv_path_NM"
4661 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
4662 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4663 LN_S=$as_ln_s
4664 if test "$LN_S" = "ln -s"; then
4665 { echo "$as_me:$LINENO: result: yes" >&5
4666 echo "${ECHO_T}yes" >&6; }
4667 else
4668 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4669 echo "${ECHO_T}no, using $LN_S" >&6; }
4672 { echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
4673 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
4674 if test "${lt_cv_deplibs_check_method+set}" = set; then
4675 echo $ECHO_N "(cached) $ECHO_C" >&6
4676 else
4677 lt_cv_file_magic_cmd='$MAGIC_CMD'
4678 lt_cv_file_magic_test_file=
4679 lt_cv_deplibs_check_method='unknown'
4680 # Need to set the preceding variable on all platforms that support
4681 # interlibrary dependencies.
4682 # 'none' -- dependencies not supported.
4683 # `unknown' -- same as none, but documents that we really don't know.
4684 # 'pass_all' -- all dependencies passed with no checks.
4685 # 'test_compile' -- check by making test program.
4686 # 'file_magic [[regex]]' -- check by looking for files in library path
4687 # which responds to the $file_magic_cmd with a given extended regex.
4688 # If you have `file' or equivalent on your system and you're not sure
4689 # whether `pass_all' will *always* work, you probably want this one.
4691 case $host_os in
4692 aix4* | aix5*)
4693 lt_cv_deplibs_check_method=pass_all
4696 beos*)
4697 lt_cv_deplibs_check_method=pass_all
4700 bsdi[45]*)
4701 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4702 lt_cv_file_magic_cmd='/usr/bin/file -L'
4703 lt_cv_file_magic_test_file=/shlib/libc.so
4706 cygwin*)
4707 # func_win32_libid is a shell function defined in ltmain.sh
4708 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4709 lt_cv_file_magic_cmd='func_win32_libid'
4712 mingw* | pw32*)
4713 # Base MSYS/MinGW do not provide the 'file' command needed by
4714 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
4715 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4716 lt_cv_file_magic_cmd='$OBJDUMP -f'
4719 darwin* | rhapsody*)
4720 lt_cv_deplibs_check_method=pass_all
4723 freebsd* | kfreebsd*-gnu | dragonfly*)
4724 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4725 case $host_cpu in
4726 i*86 )
4727 # Not sure whether the presence of OpenBSD here was a mistake.
4728 # Let's accept both of them until this is cleared up.
4729 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4730 lt_cv_file_magic_cmd=/usr/bin/file
4731 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4733 esac
4734 else
4735 lt_cv_deplibs_check_method=pass_all
4739 gnu*)
4740 lt_cv_deplibs_check_method=pass_all
4743 hpux10.20* | hpux11*)
4744 lt_cv_file_magic_cmd=/usr/bin/file
4745 case $host_cpu in
4746 ia64*)
4747 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4748 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4750 hppa*64*)
4751 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]'
4752 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4755 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4756 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4758 esac
4761 interix3*)
4762 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4763 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4766 irix5* | irix6* | nonstopux*)
4767 case $LD in
4768 *-32|*"-32 ") libmagic=32-bit;;
4769 *-n32|*"-n32 ") libmagic=N32;;
4770 *-64|*"-64 ") libmagic=64-bit;;
4771 *) libmagic=never-match;;
4772 esac
4773 lt_cv_deplibs_check_method=pass_all
4776 # This must be Linux ELF.
4777 linux*)
4778 lt_cv_deplibs_check_method=pass_all
4781 netbsd*)
4782 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4783 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4784 else
4785 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4789 newos6*)
4790 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4791 lt_cv_file_magic_cmd=/usr/bin/file
4792 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4795 nto-qnx*)
4796 lt_cv_deplibs_check_method=unknown
4799 openbsd*)
4800 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4801 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4802 else
4803 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4807 osf3* | osf4* | osf5*)
4808 lt_cv_deplibs_check_method=pass_all
4811 solaris*)
4812 lt_cv_deplibs_check_method=pass_all
4815 sysv4 | sysv4.3*)
4816 case $host_vendor in
4817 motorola)
4818 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]'
4819 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4821 ncr)
4822 lt_cv_deplibs_check_method=pass_all
4824 sequent)
4825 lt_cv_file_magic_cmd='/bin/file'
4826 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4828 sni)
4829 lt_cv_file_magic_cmd='/bin/file'
4830 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4831 lt_cv_file_magic_test_file=/lib/libc.so
4833 siemens)
4834 lt_cv_deplibs_check_method=pass_all
4837 lt_cv_deplibs_check_method=pass_all
4839 esac
4842 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4843 lt_cv_deplibs_check_method=pass_all
4845 esac
4848 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4849 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
4850 file_magic_cmd=$lt_cv_file_magic_cmd
4851 deplibs_check_method=$lt_cv_deplibs_check_method
4852 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4857 # If no C compiler was specified, use CC.
4858 LTCC=${LTCC-"$CC"}
4860 # If no C compiler flags were specified, use CFLAGS.
4861 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4863 # Allow CC to be a program name with arguments.
4864 compiler=$CC
4867 # Check whether --enable-libtool-lock was given.
4868 if test "${enable_libtool_lock+set}" = set; then
4869 enableval=$enable_libtool_lock;
4872 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4874 # Some flags need to be propagated to the compiler or linker for good
4875 # libtool support.
4876 case $host in
4877 ia64-*-hpux*)
4878 # Find out which ABI we are using.
4879 echo 'int i;' > conftest.$ac_ext
4880 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4881 (eval $ac_compile) 2>&5
4882 ac_status=$?
4883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4884 (exit $ac_status); }; then
4885 case `/usr/bin/file conftest.$ac_objext` in
4886 *ELF-32*)
4887 HPUX_IA64_MODE="32"
4889 *ELF-64*)
4890 HPUX_IA64_MODE="64"
4892 esac
4894 rm -rf conftest*
4896 *-*-irix6*)
4897 # Find out which ABI we are using.
4898 echo '#line 4898 "configure"' > conftest.$ac_ext
4899 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4900 (eval $ac_compile) 2>&5
4901 ac_status=$?
4902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4903 (exit $ac_status); }; then
4904 if test "$lt_cv_prog_gnu_ld" = yes; then
4905 case `/usr/bin/file conftest.$ac_objext` in
4906 *32-bit*)
4907 LD="${LD-ld} -melf32bsmip"
4909 *N32*)
4910 LD="${LD-ld} -melf32bmipn32"
4912 *64-bit*)
4913 LD="${LD-ld} -melf64bmip"
4915 esac
4916 else
4917 case `/usr/bin/file conftest.$ac_objext` in
4918 *32-bit*)
4919 LD="${LD-ld} -32"
4921 *N32*)
4922 LD="${LD-ld} -n32"
4924 *64-bit*)
4925 LD="${LD-ld} -64"
4927 esac
4930 rm -rf conftest*
4933 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4934 # Find out which ABI we are using.
4935 echo 'int i;' > conftest.$ac_ext
4936 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4937 (eval $ac_compile) 2>&5
4938 ac_status=$?
4939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4940 (exit $ac_status); }; then
4941 case `/usr/bin/file conftest.o` in
4942 *32-bit*)
4943 case $host in
4944 x86_64-*linux*)
4945 LD="${LD-ld} -m elf_i386"
4947 ppc64-*linux*|powerpc64-*linux*)
4948 LD="${LD-ld} -m elf32ppclinux"
4950 s390x-*linux*)
4951 LD="${LD-ld} -m elf_s390"
4953 sparc64-*linux*)
4954 LD="${LD-ld} -m elf32_sparc"
4956 esac
4958 *64-bit*)
4959 case $host in
4960 x86_64-*linux*)
4961 LD="${LD-ld} -m elf_x86_64"
4963 ppc*-*linux*|powerpc*-*linux*)
4964 LD="${LD-ld} -m elf64ppc"
4966 s390*-*linux*)
4967 LD="${LD-ld} -m elf64_s390"
4969 sparc*-*linux*)
4970 LD="${LD-ld} -m elf64_sparc"
4972 esac
4974 esac
4976 rm -rf conftest*
4979 *-*-sco3.2v5*)
4980 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4981 SAVE_CFLAGS="$CFLAGS"
4982 CFLAGS="$CFLAGS -belf"
4983 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4984 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
4985 if test "${lt_cv_cc_needs_belf+set}" = set; then
4986 echo $ECHO_N "(cached) $ECHO_C" >&6
4987 else
4988 ac_ext=c
4989 ac_cpp='$CPP $CPPFLAGS'
4990 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4991 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4992 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4994 cat >conftest.$ac_ext <<_ACEOF
4995 /* confdefs.h. */
4996 _ACEOF
4997 cat confdefs.h >>conftest.$ac_ext
4998 cat >>conftest.$ac_ext <<_ACEOF
4999 /* end confdefs.h. */
5002 main ()
5006 return 0;
5008 _ACEOF
5009 rm -f conftest.$ac_objext conftest$ac_exeext
5010 if { (ac_try="$ac_link"
5011 case "(($ac_try" in
5012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5013 *) ac_try_echo=$ac_try;;
5014 esac
5015 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5016 (eval "$ac_link") 2>conftest.er1
5017 ac_status=$?
5018 grep -v '^ *+' conftest.er1 >conftest.err
5019 rm -f conftest.er1
5020 cat conftest.err >&5
5021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5022 (exit $ac_status); } &&
5023 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5024 { (case "(($ac_try" in
5025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5026 *) ac_try_echo=$ac_try;;
5027 esac
5028 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5029 (eval "$ac_try") 2>&5
5030 ac_status=$?
5031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5032 (exit $ac_status); }; } &&
5033 { ac_try='test -s conftest$ac_exeext'
5034 { (case "(($ac_try" in
5035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5036 *) ac_try_echo=$ac_try;;
5037 esac
5038 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5039 (eval "$ac_try") 2>&5
5040 ac_status=$?
5041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5042 (exit $ac_status); }; }; then
5043 lt_cv_cc_needs_belf=yes
5044 else
5045 echo "$as_me: failed program was:" >&5
5046 sed 's/^/| /' conftest.$ac_ext >&5
5048 lt_cv_cc_needs_belf=no
5051 rm -f core conftest.err conftest.$ac_objext \
5052 conftest$ac_exeext conftest.$ac_ext
5053 ac_ext=c
5054 ac_cpp='$CPP $CPPFLAGS'
5055 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5056 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5057 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5060 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5061 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
5062 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5063 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5064 CFLAGS="$SAVE_CFLAGS"
5067 sparc*-*solaris*)
5068 # Find out which ABI we are using.
5069 echo 'int i;' > conftest.$ac_ext
5070 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5071 (eval $ac_compile) 2>&5
5072 ac_status=$?
5073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5074 (exit $ac_status); }; then
5075 case `/usr/bin/file conftest.o` in
5076 *64-bit*)
5077 case $lt_cv_prog_gnu_ld in
5078 yes*) LD="${LD-ld} -m elf64_sparc" ;;
5079 *) LD="${LD-ld} -64" ;;
5080 esac
5082 esac
5084 rm -rf conftest*
5088 esac
5090 need_locks="$enable_libtool_lock"
5093 ac_ext=c
5094 ac_cpp='$CPP $CPPFLAGS'
5095 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5096 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5097 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5098 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5099 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
5100 # On Suns, sometimes $CPP names a directory.
5101 if test -n "$CPP" && test -d "$CPP"; then
5102 CPP=
5104 if test -z "$CPP"; then
5105 if test "${ac_cv_prog_CPP+set}" = set; then
5106 echo $ECHO_N "(cached) $ECHO_C" >&6
5107 else
5108 # Double quotes because CPP needs to be expanded
5109 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5111 ac_preproc_ok=false
5112 for ac_c_preproc_warn_flag in '' yes
5114 # Use a header file that comes with gcc, so configuring glibc
5115 # with a fresh cross-compiler works.
5116 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5117 # <limits.h> exists even on freestanding compilers.
5118 # On the NeXT, cc -E runs the code through the compiler's parser,
5119 # not just through cpp. "Syntax error" is here to catch this case.
5120 cat >conftest.$ac_ext <<_ACEOF
5121 /* confdefs.h. */
5122 _ACEOF
5123 cat confdefs.h >>conftest.$ac_ext
5124 cat >>conftest.$ac_ext <<_ACEOF
5125 /* end confdefs.h. */
5126 #ifdef __STDC__
5127 # include <limits.h>
5128 #else
5129 # include <assert.h>
5130 #endif
5131 Syntax error
5132 _ACEOF
5133 if { (ac_try="$ac_cpp conftest.$ac_ext"
5134 case "(($ac_try" in
5135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5136 *) ac_try_echo=$ac_try;;
5137 esac
5138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5139 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5140 ac_status=$?
5141 grep -v '^ *+' conftest.er1 >conftest.err
5142 rm -f conftest.er1
5143 cat conftest.err >&5
5144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5145 (exit $ac_status); } >/dev/null; then
5146 if test -s conftest.err; then
5147 ac_cpp_err=$ac_c_preproc_warn_flag
5148 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5149 else
5150 ac_cpp_err=
5152 else
5153 ac_cpp_err=yes
5155 if test -z "$ac_cpp_err"; then
5157 else
5158 echo "$as_me: failed program was:" >&5
5159 sed 's/^/| /' conftest.$ac_ext >&5
5161 # Broken: fails on valid input.
5162 continue
5165 rm -f conftest.err conftest.$ac_ext
5167 # OK, works on sane cases. Now check whether nonexistent headers
5168 # can be detected and how.
5169 cat >conftest.$ac_ext <<_ACEOF
5170 /* confdefs.h. */
5171 _ACEOF
5172 cat confdefs.h >>conftest.$ac_ext
5173 cat >>conftest.$ac_ext <<_ACEOF
5174 /* end confdefs.h. */
5175 #include <ac_nonexistent.h>
5176 _ACEOF
5177 if { (ac_try="$ac_cpp conftest.$ac_ext"
5178 case "(($ac_try" in
5179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5180 *) ac_try_echo=$ac_try;;
5181 esac
5182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5183 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5184 ac_status=$?
5185 grep -v '^ *+' conftest.er1 >conftest.err
5186 rm -f conftest.er1
5187 cat conftest.err >&5
5188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5189 (exit $ac_status); } >/dev/null; then
5190 if test -s conftest.err; then
5191 ac_cpp_err=$ac_c_preproc_warn_flag
5192 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5193 else
5194 ac_cpp_err=
5196 else
5197 ac_cpp_err=yes
5199 if test -z "$ac_cpp_err"; then
5200 # Broken: success on invalid input.
5201 continue
5202 else
5203 echo "$as_me: failed program was:" >&5
5204 sed 's/^/| /' conftest.$ac_ext >&5
5206 # Passes both tests.
5207 ac_preproc_ok=:
5208 break
5211 rm -f conftest.err conftest.$ac_ext
5213 done
5214 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5215 rm -f conftest.err conftest.$ac_ext
5216 if $ac_preproc_ok; then
5217 break
5220 done
5221 ac_cv_prog_CPP=$CPP
5224 CPP=$ac_cv_prog_CPP
5225 else
5226 ac_cv_prog_CPP=$CPP
5228 { echo "$as_me:$LINENO: result: $CPP" >&5
5229 echo "${ECHO_T}$CPP" >&6; }
5230 ac_preproc_ok=false
5231 for ac_c_preproc_warn_flag in '' yes
5233 # Use a header file that comes with gcc, so configuring glibc
5234 # with a fresh cross-compiler works.
5235 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5236 # <limits.h> exists even on freestanding compilers.
5237 # On the NeXT, cc -E runs the code through the compiler's parser,
5238 # not just through cpp. "Syntax error" is here to catch this case.
5239 cat >conftest.$ac_ext <<_ACEOF
5240 /* confdefs.h. */
5241 _ACEOF
5242 cat confdefs.h >>conftest.$ac_ext
5243 cat >>conftest.$ac_ext <<_ACEOF
5244 /* end confdefs.h. */
5245 #ifdef __STDC__
5246 # include <limits.h>
5247 #else
5248 # include <assert.h>
5249 #endif
5250 Syntax error
5251 _ACEOF
5252 if { (ac_try="$ac_cpp conftest.$ac_ext"
5253 case "(($ac_try" in
5254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5255 *) ac_try_echo=$ac_try;;
5256 esac
5257 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5258 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5259 ac_status=$?
5260 grep -v '^ *+' conftest.er1 >conftest.err
5261 rm -f conftest.er1
5262 cat conftest.err >&5
5263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5264 (exit $ac_status); } >/dev/null; then
5265 if test -s conftest.err; then
5266 ac_cpp_err=$ac_c_preproc_warn_flag
5267 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5268 else
5269 ac_cpp_err=
5271 else
5272 ac_cpp_err=yes
5274 if test -z "$ac_cpp_err"; then
5276 else
5277 echo "$as_me: failed program was:" >&5
5278 sed 's/^/| /' conftest.$ac_ext >&5
5280 # Broken: fails on valid input.
5281 continue
5284 rm -f conftest.err conftest.$ac_ext
5286 # OK, works on sane cases. Now check whether nonexistent headers
5287 # can be detected and how.
5288 cat >conftest.$ac_ext <<_ACEOF
5289 /* confdefs.h. */
5290 _ACEOF
5291 cat confdefs.h >>conftest.$ac_ext
5292 cat >>conftest.$ac_ext <<_ACEOF
5293 /* end confdefs.h. */
5294 #include <ac_nonexistent.h>
5295 _ACEOF
5296 if { (ac_try="$ac_cpp conftest.$ac_ext"
5297 case "(($ac_try" in
5298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5299 *) ac_try_echo=$ac_try;;
5300 esac
5301 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5302 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5303 ac_status=$?
5304 grep -v '^ *+' conftest.er1 >conftest.err
5305 rm -f conftest.er1
5306 cat conftest.err >&5
5307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5308 (exit $ac_status); } >/dev/null; then
5309 if test -s conftest.err; then
5310 ac_cpp_err=$ac_c_preproc_warn_flag
5311 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5312 else
5313 ac_cpp_err=
5315 else
5316 ac_cpp_err=yes
5318 if test -z "$ac_cpp_err"; then
5319 # Broken: success on invalid input.
5320 continue
5321 else
5322 echo "$as_me: failed program was:" >&5
5323 sed 's/^/| /' conftest.$ac_ext >&5
5325 # Passes both tests.
5326 ac_preproc_ok=:
5327 break
5330 rm -f conftest.err conftest.$ac_ext
5332 done
5333 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5334 rm -f conftest.err conftest.$ac_ext
5335 if $ac_preproc_ok; then
5337 else
5338 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5339 See \`config.log' for more details." >&5
5340 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5341 See \`config.log' for more details." >&2;}
5342 { (exit 1); exit 1; }; }
5345 ac_ext=c
5346 ac_cpp='$CPP $CPPFLAGS'
5347 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5348 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5349 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5352 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5353 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
5354 if test "${ac_cv_header_stdc+set}" = set; then
5355 echo $ECHO_N "(cached) $ECHO_C" >&6
5356 else
5357 cat >conftest.$ac_ext <<_ACEOF
5358 /* confdefs.h. */
5359 _ACEOF
5360 cat confdefs.h >>conftest.$ac_ext
5361 cat >>conftest.$ac_ext <<_ACEOF
5362 /* end confdefs.h. */
5363 #include <stdlib.h>
5364 #include <stdarg.h>
5365 #include <string.h>
5366 #include <float.h>
5369 main ()
5373 return 0;
5375 _ACEOF
5376 rm -f conftest.$ac_objext
5377 if { (ac_try="$ac_compile"
5378 case "(($ac_try" in
5379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5380 *) ac_try_echo=$ac_try;;
5381 esac
5382 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5383 (eval "$ac_compile") 2>conftest.er1
5384 ac_status=$?
5385 grep -v '^ *+' conftest.er1 >conftest.err
5386 rm -f conftest.er1
5387 cat conftest.err >&5
5388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5389 (exit $ac_status); } &&
5390 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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_try") 2>&5
5397 ac_status=$?
5398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5399 (exit $ac_status); }; } &&
5400 { ac_try='test -s conftest.$ac_objext'
5401 { (case "(($ac_try" in
5402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5403 *) ac_try_echo=$ac_try;;
5404 esac
5405 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5406 (eval "$ac_try") 2>&5
5407 ac_status=$?
5408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5409 (exit $ac_status); }; }; then
5410 ac_cv_header_stdc=yes
5411 else
5412 echo "$as_me: failed program was:" >&5
5413 sed 's/^/| /' conftest.$ac_ext >&5
5415 ac_cv_header_stdc=no
5418 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5420 if test $ac_cv_header_stdc = yes; then
5421 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5422 cat >conftest.$ac_ext <<_ACEOF
5423 /* confdefs.h. */
5424 _ACEOF
5425 cat confdefs.h >>conftest.$ac_ext
5426 cat >>conftest.$ac_ext <<_ACEOF
5427 /* end confdefs.h. */
5428 #include <string.h>
5430 _ACEOF
5431 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5432 $EGREP "memchr" >/dev/null 2>&1; then
5434 else
5435 ac_cv_header_stdc=no
5437 rm -f conftest*
5441 if test $ac_cv_header_stdc = yes; then
5442 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5443 cat >conftest.$ac_ext <<_ACEOF
5444 /* confdefs.h. */
5445 _ACEOF
5446 cat confdefs.h >>conftest.$ac_ext
5447 cat >>conftest.$ac_ext <<_ACEOF
5448 /* end confdefs.h. */
5449 #include <stdlib.h>
5451 _ACEOF
5452 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5453 $EGREP "free" >/dev/null 2>&1; then
5455 else
5456 ac_cv_header_stdc=no
5458 rm -f conftest*
5462 if test $ac_cv_header_stdc = yes; then
5463 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5464 if test "$cross_compiling" = yes; then
5466 else
5467 cat >conftest.$ac_ext <<_ACEOF
5468 /* confdefs.h. */
5469 _ACEOF
5470 cat confdefs.h >>conftest.$ac_ext
5471 cat >>conftest.$ac_ext <<_ACEOF
5472 /* end confdefs.h. */
5473 #include <ctype.h>
5474 #include <stdlib.h>
5475 #if ((' ' & 0x0FF) == 0x020)
5476 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5477 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5478 #else
5479 # define ISLOWER(c) \
5480 (('a' <= (c) && (c) <= 'i') \
5481 || ('j' <= (c) && (c) <= 'r') \
5482 || ('s' <= (c) && (c) <= 'z'))
5483 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5484 #endif
5486 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5488 main ()
5490 int i;
5491 for (i = 0; i < 256; i++)
5492 if (XOR (islower (i), ISLOWER (i))
5493 || toupper (i) != TOUPPER (i))
5494 return 2;
5495 return 0;
5497 _ACEOF
5498 rm -f conftest$ac_exeext
5499 if { (ac_try="$ac_link"
5500 case "(($ac_try" in
5501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5502 *) ac_try_echo=$ac_try;;
5503 esac
5504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5505 (eval "$ac_link") 2>&5
5506 ac_status=$?
5507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5508 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5509 { (case "(($ac_try" in
5510 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5511 *) ac_try_echo=$ac_try;;
5512 esac
5513 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5514 (eval "$ac_try") 2>&5
5515 ac_status=$?
5516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5517 (exit $ac_status); }; }; then
5519 else
5520 echo "$as_me: program exited with status $ac_status" >&5
5521 echo "$as_me: failed program was:" >&5
5522 sed 's/^/| /' conftest.$ac_ext >&5
5524 ( exit $ac_status )
5525 ac_cv_header_stdc=no
5527 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5533 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5534 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
5535 if test $ac_cv_header_stdc = yes; then
5537 cat >>confdefs.h <<\_ACEOF
5538 #define STDC_HEADERS 1
5539 _ACEOF
5543 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5553 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5554 inttypes.h stdint.h unistd.h
5556 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5557 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5558 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5559 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5560 echo $ECHO_N "(cached) $ECHO_C" >&6
5561 else
5562 cat >conftest.$ac_ext <<_ACEOF
5563 /* confdefs.h. */
5564 _ACEOF
5565 cat confdefs.h >>conftest.$ac_ext
5566 cat >>conftest.$ac_ext <<_ACEOF
5567 /* end confdefs.h. */
5568 $ac_includes_default
5570 #include <$ac_header>
5571 _ACEOF
5572 rm -f conftest.$ac_objext
5573 if { (ac_try="$ac_compile"
5574 case "(($ac_try" in
5575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5576 *) ac_try_echo=$ac_try;;
5577 esac
5578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5579 (eval "$ac_compile") 2>conftest.er1
5580 ac_status=$?
5581 grep -v '^ *+' conftest.er1 >conftest.err
5582 rm -f conftest.er1
5583 cat conftest.err >&5
5584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5585 (exit $ac_status); } &&
5586 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5587 { (case "(($ac_try" in
5588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5589 *) ac_try_echo=$ac_try;;
5590 esac
5591 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5592 (eval "$ac_try") 2>&5
5593 ac_status=$?
5594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5595 (exit $ac_status); }; } &&
5596 { ac_try='test -s conftest.$ac_objext'
5597 { (case "(($ac_try" in
5598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5599 *) ac_try_echo=$ac_try;;
5600 esac
5601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5602 (eval "$ac_try") 2>&5
5603 ac_status=$?
5604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5605 (exit $ac_status); }; }; then
5606 eval "$as_ac_Header=yes"
5607 else
5608 echo "$as_me: failed program was:" >&5
5609 sed 's/^/| /' conftest.$ac_ext >&5
5611 eval "$as_ac_Header=no"
5614 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5616 ac_res=`eval echo '${'$as_ac_Header'}'`
5617 { echo "$as_me:$LINENO: result: $ac_res" >&5
5618 echo "${ECHO_T}$ac_res" >&6; }
5619 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5620 cat >>confdefs.h <<_ACEOF
5621 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5622 _ACEOF
5626 done
5630 for ac_header in dlfcn.h
5632 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5633 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5634 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5635 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5636 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5637 echo $ECHO_N "(cached) $ECHO_C" >&6
5639 ac_res=`eval echo '${'$as_ac_Header'}'`
5640 { echo "$as_me:$LINENO: result: $ac_res" >&5
5641 echo "${ECHO_T}$ac_res" >&6; }
5642 else
5643 # Is the header compilable?
5644 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5645 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5646 cat >conftest.$ac_ext <<_ACEOF
5647 /* confdefs.h. */
5648 _ACEOF
5649 cat confdefs.h >>conftest.$ac_ext
5650 cat >>conftest.$ac_ext <<_ACEOF
5651 /* end confdefs.h. */
5652 $ac_includes_default
5653 #include <$ac_header>
5654 _ACEOF
5655 rm -f conftest.$ac_objext
5656 if { (ac_try="$ac_compile"
5657 case "(($ac_try" in
5658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5659 *) ac_try_echo=$ac_try;;
5660 esac
5661 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5662 (eval "$ac_compile") 2>conftest.er1
5663 ac_status=$?
5664 grep -v '^ *+' conftest.er1 >conftest.err
5665 rm -f conftest.er1
5666 cat conftest.err >&5
5667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5668 (exit $ac_status); } &&
5669 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5670 { (case "(($ac_try" in
5671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5672 *) ac_try_echo=$ac_try;;
5673 esac
5674 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5675 (eval "$ac_try") 2>&5
5676 ac_status=$?
5677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5678 (exit $ac_status); }; } &&
5679 { ac_try='test -s conftest.$ac_objext'
5680 { (case "(($ac_try" in
5681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5682 *) ac_try_echo=$ac_try;;
5683 esac
5684 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5685 (eval "$ac_try") 2>&5
5686 ac_status=$?
5687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5688 (exit $ac_status); }; }; then
5689 ac_header_compiler=yes
5690 else
5691 echo "$as_me: failed program was:" >&5
5692 sed 's/^/| /' conftest.$ac_ext >&5
5694 ac_header_compiler=no
5697 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5698 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5699 echo "${ECHO_T}$ac_header_compiler" >&6; }
5701 # Is the header present?
5702 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5703 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5704 cat >conftest.$ac_ext <<_ACEOF
5705 /* confdefs.h. */
5706 _ACEOF
5707 cat confdefs.h >>conftest.$ac_ext
5708 cat >>conftest.$ac_ext <<_ACEOF
5709 /* end confdefs.h. */
5710 #include <$ac_header>
5711 _ACEOF
5712 if { (ac_try="$ac_cpp conftest.$ac_ext"
5713 case "(($ac_try" in
5714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5715 *) ac_try_echo=$ac_try;;
5716 esac
5717 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5718 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5719 ac_status=$?
5720 grep -v '^ *+' conftest.er1 >conftest.err
5721 rm -f conftest.er1
5722 cat conftest.err >&5
5723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5724 (exit $ac_status); } >/dev/null; then
5725 if test -s conftest.err; then
5726 ac_cpp_err=$ac_c_preproc_warn_flag
5727 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5728 else
5729 ac_cpp_err=
5731 else
5732 ac_cpp_err=yes
5734 if test -z "$ac_cpp_err"; then
5735 ac_header_preproc=yes
5736 else
5737 echo "$as_me: failed program was:" >&5
5738 sed 's/^/| /' conftest.$ac_ext >&5
5740 ac_header_preproc=no
5743 rm -f conftest.err conftest.$ac_ext
5744 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5745 echo "${ECHO_T}$ac_header_preproc" >&6; }
5747 # So? What about this header?
5748 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5749 yes:no: )
5750 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5751 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5752 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5753 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5754 ac_header_preproc=yes
5756 no:yes:* )
5757 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5758 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5759 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5760 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5761 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5762 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5763 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5764 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5765 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5766 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5767 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5768 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5771 esac
5772 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5773 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5774 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5775 echo $ECHO_N "(cached) $ECHO_C" >&6
5776 else
5777 eval "$as_ac_Header=\$ac_header_preproc"
5779 ac_res=`eval echo '${'$as_ac_Header'}'`
5780 { echo "$as_me:$LINENO: result: $ac_res" >&5
5781 echo "${ECHO_T}$ac_res" >&6; }
5784 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5785 cat >>confdefs.h <<_ACEOF
5786 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5787 _ACEOF
5791 done
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 'bison -y' byacc
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_YACC+set}" = set; then
20012 echo $ECHO_N "(cached) $ECHO_C" >&6
20013 else
20014 if test -n "$YACC"; then
20015 ac_cv_prog_YACC="$YACC" # 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_YACC="$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 YACC=$ac_cv_prog_YACC
20035 if test -n "$YACC"; then
20036 { echo "$as_me:$LINENO: result: $YACC" >&5
20037 echo "${ECHO_T}$YACC" >&6; }
20038 else
20039 { echo "$as_me:$LINENO: result: no" >&5
20040 echo "${ECHO_T}no" >&6; }
20044 test -n "$YACC" && break
20045 done
20046 test -n "$YACC" || YACC="yacc"
20048 for ac_prog in flex lex
20050 # Extract the first word of "$ac_prog", so it can be a program name with args.
20051 set dummy $ac_prog; ac_word=$2
20052 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20053 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20054 if test "${ac_cv_prog_LEX+set}" = set; then
20055 echo $ECHO_N "(cached) $ECHO_C" >&6
20056 else
20057 if test -n "$LEX"; then
20058 ac_cv_prog_LEX="$LEX" # Let the user override the test.
20059 else
20060 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20061 for as_dir in $PATH
20063 IFS=$as_save_IFS
20064 test -z "$as_dir" && as_dir=.
20065 for ac_exec_ext in '' $ac_executable_extensions; do
20066 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
20067 ac_cv_prog_LEX="$ac_prog"
20068 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20069 break 2
20071 done
20072 done
20073 IFS=$as_save_IFS
20077 LEX=$ac_cv_prog_LEX
20078 if test -n "$LEX"; then
20079 { echo "$as_me:$LINENO: result: $LEX" >&5
20080 echo "${ECHO_T}$LEX" >&6; }
20081 else
20082 { echo "$as_me:$LINENO: result: no" >&5
20083 echo "${ECHO_T}no" >&6; }
20087 test -n "$LEX" && break
20088 done
20089 test -n "$LEX" || LEX=":"
20091 if test -z "$LEXLIB"
20092 then
20093 { echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
20094 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6; }
20095 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
20096 echo $ECHO_N "(cached) $ECHO_C" >&6
20097 else
20098 ac_check_lib_save_LIBS=$LIBS
20099 LIBS="-lfl $LIBS"
20100 cat >conftest.$ac_ext <<_ACEOF
20101 /* confdefs.h. */
20102 _ACEOF
20103 cat confdefs.h >>conftest.$ac_ext
20104 cat >>conftest.$ac_ext <<_ACEOF
20105 /* end confdefs.h. */
20107 /* Override any GCC internal prototype to avoid an error.
20108 Use char because int might match the return type of a GCC
20109 builtin and then its argument prototype would still apply. */
20110 #ifdef __cplusplus
20111 extern "C"
20112 #endif
20113 char yywrap ();
20115 main ()
20117 return yywrap ();
20119 return 0;
20121 _ACEOF
20122 rm -f conftest.$ac_objext conftest$ac_exeext
20123 if { (ac_try="$ac_link"
20124 case "(($ac_try" in
20125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20126 *) ac_try_echo=$ac_try;;
20127 esac
20128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20129 (eval "$ac_link") 2>conftest.er1
20130 ac_status=$?
20131 grep -v '^ *+' conftest.er1 >conftest.err
20132 rm -f conftest.er1
20133 cat conftest.err >&5
20134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20135 (exit $ac_status); } &&
20136 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20137 { (case "(($ac_try" in
20138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20139 *) ac_try_echo=$ac_try;;
20140 esac
20141 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20142 (eval "$ac_try") 2>&5
20143 ac_status=$?
20144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20145 (exit $ac_status); }; } &&
20146 { ac_try='test -s conftest$ac_exeext'
20147 { (case "(($ac_try" in
20148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20149 *) ac_try_echo=$ac_try;;
20150 esac
20151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20152 (eval "$ac_try") 2>&5
20153 ac_status=$?
20154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20155 (exit $ac_status); }; }; then
20156 ac_cv_lib_fl_yywrap=yes
20157 else
20158 echo "$as_me: failed program was:" >&5
20159 sed 's/^/| /' conftest.$ac_ext >&5
20161 ac_cv_lib_fl_yywrap=no
20164 rm -f core conftest.err conftest.$ac_objext \
20165 conftest$ac_exeext conftest.$ac_ext
20166 LIBS=$ac_check_lib_save_LIBS
20168 { echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
20169 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6; }
20170 if test $ac_cv_lib_fl_yywrap = yes; then
20171 LEXLIB="-lfl"
20172 else
20173 { echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
20174 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6; }
20175 if test "${ac_cv_lib_l_yywrap+set}" = set; then
20176 echo $ECHO_N "(cached) $ECHO_C" >&6
20177 else
20178 ac_check_lib_save_LIBS=$LIBS
20179 LIBS="-ll $LIBS"
20180 cat >conftest.$ac_ext <<_ACEOF
20181 /* confdefs.h. */
20182 _ACEOF
20183 cat confdefs.h >>conftest.$ac_ext
20184 cat >>conftest.$ac_ext <<_ACEOF
20185 /* end confdefs.h. */
20187 /* Override any GCC internal prototype to avoid an error.
20188 Use char because int might match the return type of a GCC
20189 builtin and then its argument prototype would still apply. */
20190 #ifdef __cplusplus
20191 extern "C"
20192 #endif
20193 char yywrap ();
20195 main ()
20197 return yywrap ();
20199 return 0;
20201 _ACEOF
20202 rm -f conftest.$ac_objext conftest$ac_exeext
20203 if { (ac_try="$ac_link"
20204 case "(($ac_try" in
20205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20206 *) ac_try_echo=$ac_try;;
20207 esac
20208 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20209 (eval "$ac_link") 2>conftest.er1
20210 ac_status=$?
20211 grep -v '^ *+' conftest.er1 >conftest.err
20212 rm -f conftest.er1
20213 cat conftest.err >&5
20214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20215 (exit $ac_status); } &&
20216 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20217 { (case "(($ac_try" in
20218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20219 *) ac_try_echo=$ac_try;;
20220 esac
20221 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20222 (eval "$ac_try") 2>&5
20223 ac_status=$?
20224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20225 (exit $ac_status); }; } &&
20226 { ac_try='test -s conftest$ac_exeext'
20227 { (case "(($ac_try" in
20228 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20229 *) ac_try_echo=$ac_try;;
20230 esac
20231 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20232 (eval "$ac_try") 2>&5
20233 ac_status=$?
20234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20235 (exit $ac_status); }; }; then
20236 ac_cv_lib_l_yywrap=yes
20237 else
20238 echo "$as_me: failed program was:" >&5
20239 sed 's/^/| /' conftest.$ac_ext >&5
20241 ac_cv_lib_l_yywrap=no
20244 rm -f core conftest.err conftest.$ac_objext \
20245 conftest$ac_exeext conftest.$ac_ext
20246 LIBS=$ac_check_lib_save_LIBS
20248 { echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
20249 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6; }
20250 if test $ac_cv_lib_l_yywrap = yes; then
20251 LEXLIB="-ll"
20258 if test "x$LEX" != "x:"; then
20259 { echo "$as_me:$LINENO: checking lex output file root" >&5
20260 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6; }
20261 if test "${ac_cv_prog_lex_root+set}" = set; then
20262 echo $ECHO_N "(cached) $ECHO_C" >&6
20263 else
20264 # The minimal lex program is just a single line: %%. But some broken lexes
20265 # (Solaris, I think it was) want two %% lines, so accommodate them.
20266 cat >conftest.l <<_ACEOF
20269 _ACEOF
20270 { (ac_try="$LEX conftest.l"
20271 case "(($ac_try" in
20272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20273 *) ac_try_echo=$ac_try;;
20274 esac
20275 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20276 (eval "$LEX conftest.l") 2>&5
20277 ac_status=$?
20278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20279 (exit $ac_status); }
20280 if test -f lex.yy.c; then
20281 ac_cv_prog_lex_root=lex.yy
20282 elif test -f lexyy.c; then
20283 ac_cv_prog_lex_root=lexyy
20284 else
20285 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
20286 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
20287 { (exit 1); exit 1; }; }
20290 { echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
20291 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6; }
20292 rm -f conftest.l
20293 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
20295 { echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
20296 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6; }
20297 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
20298 echo $ECHO_N "(cached) $ECHO_C" >&6
20299 else
20300 # POSIX says lex can declare yytext either as a pointer or an array; the
20301 # default is implementation-dependent. Figure out which it is, since
20302 # not all implementations provide the %pointer and %array declarations.
20303 ac_cv_prog_lex_yytext_pointer=no
20304 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
20305 ac_save_LIBS=$LIBS
20306 LIBS="$LIBS $LEXLIB"
20307 cat >conftest.$ac_ext <<_ACEOF
20308 `cat $LEX_OUTPUT_ROOT.c`
20309 _ACEOF
20310 rm -f conftest.$ac_objext conftest$ac_exeext
20311 if { (ac_try="$ac_link"
20312 case "(($ac_try" in
20313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20314 *) ac_try_echo=$ac_try;;
20315 esac
20316 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20317 (eval "$ac_link") 2>conftest.er1
20318 ac_status=$?
20319 grep -v '^ *+' conftest.er1 >conftest.err
20320 rm -f conftest.er1
20321 cat conftest.err >&5
20322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20323 (exit $ac_status); } &&
20324 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20325 { (case "(($ac_try" in
20326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20327 *) ac_try_echo=$ac_try;;
20328 esac
20329 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20330 (eval "$ac_try") 2>&5
20331 ac_status=$?
20332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20333 (exit $ac_status); }; } &&
20334 { ac_try='test -s conftest$ac_exeext'
20335 { (case "(($ac_try" in
20336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20337 *) ac_try_echo=$ac_try;;
20338 esac
20339 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20340 (eval "$ac_try") 2>&5
20341 ac_status=$?
20342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20343 (exit $ac_status); }; }; then
20344 ac_cv_prog_lex_yytext_pointer=yes
20345 else
20346 echo "$as_me: failed program was:" >&5
20347 sed 's/^/| /' conftest.$ac_ext >&5
20352 rm -f core conftest.err conftest.$ac_objext \
20353 conftest$ac_exeext conftest.$ac_ext
20354 LIBS=$ac_save_LIBS
20355 rm -f "${LEX_OUTPUT_ROOT}.c"
20358 { echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
20359 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6; }
20360 if test $ac_cv_prog_lex_yytext_pointer = yes; then
20362 cat >>confdefs.h <<\_ACEOF
20363 #define YYTEXT_POINTER 1
20364 _ACEOF
20369 if test "$LEX" = :; then
20370 LEX=${am_missing_run}flex
20373 case "${host_os}" in
20374 *linux* )
20375 OSTYPE=LINUX
20377 esac
20378 case "${host_cpu}" in
20379 i686 | i386 )
20380 CPUTYPE=i686
20382 esac
20383 echo "#ifndef BUILD_H" >build.h
20384 echo "#define BUILD_H" >>build.h
20385 echo "#define CSQL" >>build.h
20386 echo "#define ${OSTYPE}" >>build.h
20387 echo "#define ${CPUTYPE}" >>build.h
20388 echo "#endif " >>build.h
20389 cp build.h include
20405 for ac_header in stdio.h sys/mman.h sys/shm.h sys/errno.h crypt.h unistd.h \
20406 string.h sys/types.h sys/stat.h fcntl.h pthread.h math.h \
20407 signal.h
20409 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20410 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20411 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20412 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20413 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20414 echo $ECHO_N "(cached) $ECHO_C" >&6
20416 ac_res=`eval echo '${'$as_ac_Header'}'`
20417 { echo "$as_me:$LINENO: result: $ac_res" >&5
20418 echo "${ECHO_T}$ac_res" >&6; }
20419 else
20420 # Is the header compilable?
20421 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20422 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20423 cat >conftest.$ac_ext <<_ACEOF
20424 /* confdefs.h. */
20425 _ACEOF
20426 cat confdefs.h >>conftest.$ac_ext
20427 cat >>conftest.$ac_ext <<_ACEOF
20428 /* end confdefs.h. */
20429 $ac_includes_default
20430 #include <$ac_header>
20431 _ACEOF
20432 rm -f conftest.$ac_objext
20433 if { (ac_try="$ac_compile"
20434 case "(($ac_try" in
20435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20436 *) ac_try_echo=$ac_try;;
20437 esac
20438 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20439 (eval "$ac_compile") 2>conftest.er1
20440 ac_status=$?
20441 grep -v '^ *+' conftest.er1 >conftest.err
20442 rm -f conftest.er1
20443 cat conftest.err >&5
20444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20445 (exit $ac_status); } &&
20446 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20447 { (case "(($ac_try" in
20448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20449 *) ac_try_echo=$ac_try;;
20450 esac
20451 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20452 (eval "$ac_try") 2>&5
20453 ac_status=$?
20454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20455 (exit $ac_status); }; } &&
20456 { ac_try='test -s conftest.$ac_objext'
20457 { (case "(($ac_try" in
20458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20459 *) ac_try_echo=$ac_try;;
20460 esac
20461 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20462 (eval "$ac_try") 2>&5
20463 ac_status=$?
20464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20465 (exit $ac_status); }; }; then
20466 ac_header_compiler=yes
20467 else
20468 echo "$as_me: failed program was:" >&5
20469 sed 's/^/| /' conftest.$ac_ext >&5
20471 ac_header_compiler=no
20474 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20475 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20476 echo "${ECHO_T}$ac_header_compiler" >&6; }
20478 # Is the header present?
20479 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20480 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20481 cat >conftest.$ac_ext <<_ACEOF
20482 /* confdefs.h. */
20483 _ACEOF
20484 cat confdefs.h >>conftest.$ac_ext
20485 cat >>conftest.$ac_ext <<_ACEOF
20486 /* end confdefs.h. */
20487 #include <$ac_header>
20488 _ACEOF
20489 if { (ac_try="$ac_cpp conftest.$ac_ext"
20490 case "(($ac_try" in
20491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20492 *) ac_try_echo=$ac_try;;
20493 esac
20494 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20495 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20496 ac_status=$?
20497 grep -v '^ *+' conftest.er1 >conftest.err
20498 rm -f conftest.er1
20499 cat conftest.err >&5
20500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20501 (exit $ac_status); } >/dev/null; then
20502 if test -s conftest.err; then
20503 ac_cpp_err=$ac_cxx_preproc_warn_flag
20504 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
20505 else
20506 ac_cpp_err=
20508 else
20509 ac_cpp_err=yes
20511 if test -z "$ac_cpp_err"; then
20512 ac_header_preproc=yes
20513 else
20514 echo "$as_me: failed program was:" >&5
20515 sed 's/^/| /' conftest.$ac_ext >&5
20517 ac_header_preproc=no
20520 rm -f conftest.err conftest.$ac_ext
20521 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20522 echo "${ECHO_T}$ac_header_preproc" >&6; }
20524 # So? What about this header?
20525 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
20526 yes:no: )
20527 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20528 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20529 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20530 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20531 ac_header_preproc=yes
20533 no:yes:* )
20534 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20535 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20536 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20537 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20538 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20539 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20540 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20541 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20542 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20543 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20544 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20545 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20548 esac
20549 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20550 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20551 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20552 echo $ECHO_N "(cached) $ECHO_C" >&6
20553 else
20554 eval "$as_ac_Header=\$ac_header_preproc"
20556 ac_res=`eval echo '${'$as_ac_Header'}'`
20557 { echo "$as_me:$LINENO: result: $ac_res" >&5
20558 echo "${ECHO_T}$ac_res" >&6; }
20561 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20562 cat >>confdefs.h <<_ACEOF
20563 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20564 _ACEOF
20568 done
20573 ac_config_files="$ac_config_files Makefile src/Makefile include/Makefile src/server/Makefile src/sql/Makefile src/adapter/Makefile src/gateway/Makefile src/cache/Makefile src/network/Makefile src/sqllog/Makefile src/tools/Makefile src/jdbc/Makefile src/odbc/Makefile"
20575 cat >confcache <<\_ACEOF
20576 # This file is a shell script that caches the results of configure
20577 # tests run on this system so they can be shared between configure
20578 # scripts and configure runs, see configure's option --config-cache.
20579 # It is not useful on other systems. If it contains results you don't
20580 # want to keep, you may remove or edit it.
20582 # config.status only pays attention to the cache file if you give it
20583 # the --recheck option to rerun configure.
20585 # `ac_cv_env_foo' variables (set or unset) will be overridden when
20586 # loading this file, other *unset* `ac_cv_foo' will be assigned the
20587 # following values.
20589 _ACEOF
20591 # The following way of writing the cache mishandles newlines in values,
20592 # but we know of no workaround that is simple, portable, and efficient.
20593 # So, we kill variables containing newlines.
20594 # Ultrix sh set writes to stderr and can't be redirected directly,
20595 # and sets the high bit in the cache file unless we assign to the vars.
20597 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
20598 eval ac_val=\$$ac_var
20599 case $ac_val in #(
20600 *${as_nl}*)
20601 case $ac_var in #(
20602 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
20603 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
20604 esac
20605 case $ac_var in #(
20606 _ | IFS | as_nl) ;; #(
20607 *) $as_unset $ac_var ;;
20608 esac ;;
20609 esac
20610 done
20612 (set) 2>&1 |
20613 case $as_nl`(ac_space=' '; set) 2>&1` in #(
20614 *${as_nl}ac_space=\ *)
20615 # `set' does not quote correctly, so add quotes (double-quote
20616 # substitution turns \\\\ into \\, and sed turns \\ into \).
20617 sed -n \
20618 "s/'/'\\\\''/g;
20619 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
20620 ;; #(
20622 # `set' quotes correctly as required by POSIX, so do not add quotes.
20623 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
20625 esac |
20626 sort
20628 sed '
20629 /^ac_cv_env_/b end
20630 t clear
20631 :clear
20632 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20633 t end
20634 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20635 :end' >>confcache
20636 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
20637 if test -w "$cache_file"; then
20638 test "x$cache_file" != "x/dev/null" &&
20639 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
20640 echo "$as_me: updating cache $cache_file" >&6;}
20641 cat confcache >$cache_file
20642 else
20643 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
20644 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
20647 rm -f confcache
20649 test "x$prefix" = xNONE && prefix=$ac_default_prefix
20650 # Let make expand exec_prefix.
20651 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20653 DEFS=-DHAVE_CONFIG_H
20655 ac_libobjs=
20656 ac_ltlibobjs=
20657 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20658 # 1. Remove the extension, and $U if already installed.
20659 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
20660 ac_i=`echo "$ac_i" | sed "$ac_script"`
20661 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
20662 # will be set to the directory where LIBOBJS objects are built.
20663 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
20664 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
20665 done
20666 LIBOBJS=$ac_libobjs
20668 LTLIBOBJS=$ac_ltlibobjs
20671 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
20672 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
20673 Usually this means the macro was only invoked conditionally." >&5
20674 echo "$as_me: error: conditional \"AMDEP\" was never defined.
20675 Usually this means the macro was only invoked conditionally." >&2;}
20676 { (exit 1); exit 1; }; }
20678 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
20679 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
20680 Usually this means the macro was only invoked conditionally." >&5
20681 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
20682 Usually this means the macro was only invoked conditionally." >&2;}
20683 { (exit 1); exit 1; }; }
20685 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
20686 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
20687 Usually this means the macro was only invoked conditionally." >&5
20688 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
20689 Usually this means the macro was only invoked conditionally." >&2;}
20690 { (exit 1); exit 1; }; }
20693 : ${CONFIG_STATUS=./config.status}
20694 ac_clean_files_save=$ac_clean_files
20695 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
20696 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
20697 echo "$as_me: creating $CONFIG_STATUS" >&6;}
20698 cat >$CONFIG_STATUS <<_ACEOF
20699 #! $SHELL
20700 # Generated by $as_me.
20701 # Run this file to recreate the current configuration.
20702 # Compiler output produced by configure, useful for debugging
20703 # configure, is in config.log if it exists.
20705 debug=false
20706 ac_cs_recheck=false
20707 ac_cs_silent=false
20708 SHELL=\${CONFIG_SHELL-$SHELL}
20709 _ACEOF
20711 cat >>$CONFIG_STATUS <<\_ACEOF
20712 ## --------------------- ##
20713 ## M4sh Initialization. ##
20714 ## --------------------- ##
20716 # Be Bourne compatible
20717 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
20718 emulate sh
20719 NULLCMD=:
20720 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20721 # is contrary to our usage. Disable this feature.
20722 alias -g '${1+"$@"}'='"$@"'
20723 setopt NO_GLOB_SUBST
20724 else
20725 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
20727 BIN_SH=xpg4; export BIN_SH # for Tru64
20728 DUALCASE=1; export DUALCASE # for MKS sh
20731 # PATH needs CR
20732 # Avoid depending upon Character Ranges.
20733 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20734 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20735 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20736 as_cr_digits='0123456789'
20737 as_cr_alnum=$as_cr_Letters$as_cr_digits
20739 # The user is always right.
20740 if test "${PATH_SEPARATOR+set}" != set; then
20741 echo "#! /bin/sh" >conf$$.sh
20742 echo "exit 0" >>conf$$.sh
20743 chmod +x conf$$.sh
20744 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
20745 PATH_SEPARATOR=';'
20746 else
20747 PATH_SEPARATOR=:
20749 rm -f conf$$.sh
20752 # Support unset when possible.
20753 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
20754 as_unset=unset
20755 else
20756 as_unset=false
20760 # IFS
20761 # We need space, tab and new line, in precisely that order. Quoting is
20762 # there to prevent editors from complaining about space-tab.
20763 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
20764 # splitting by setting IFS to empty value.)
20765 as_nl='
20767 IFS=" "" $as_nl"
20769 # Find who we are. Look in the path if we contain no directory separator.
20770 case $0 in
20771 *[\\/]* ) as_myself=$0 ;;
20772 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20773 for as_dir in $PATH
20775 IFS=$as_save_IFS
20776 test -z "$as_dir" && as_dir=.
20777 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20778 done
20779 IFS=$as_save_IFS
20782 esac
20783 # We did not find ourselves, most probably we were run as `sh COMMAND'
20784 # in which case we are not to be found in the path.
20785 if test "x$as_myself" = x; then
20786 as_myself=$0
20788 if test ! -f "$as_myself"; then
20789 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
20790 { (exit 1); exit 1; }
20793 # Work around bugs in pre-3.0 UWIN ksh.
20794 for as_var in ENV MAIL MAILPATH
20795 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
20796 done
20797 PS1='$ '
20798 PS2='> '
20799 PS4='+ '
20801 # NLS nuisances.
20802 for as_var in \
20803 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
20804 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
20805 LC_TELEPHONE LC_TIME
20807 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
20808 eval $as_var=C; export $as_var
20809 else
20810 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
20812 done
20814 # Required to use basename.
20815 if expr a : '\(a\)' >/dev/null 2>&1 &&
20816 test "X`expr 00001 : '.*\(...\)'`" = X001; then
20817 as_expr=expr
20818 else
20819 as_expr=false
20822 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
20823 as_basename=basename
20824 else
20825 as_basename=false
20829 # Name of the executable.
20830 as_me=`$as_basename -- "$0" ||
20831 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20832 X"$0" : 'X\(//\)$' \| \
20833 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
20834 echo X/"$0" |
20835 sed '/^.*\/\([^/][^/]*\)\/*$/{
20836 s//\1/
20839 /^X\/\(\/\/\)$/{
20840 s//\1/
20843 /^X\/\(\/\).*/{
20844 s//\1/
20847 s/.*/./; q'`
20849 # CDPATH.
20850 $as_unset CDPATH
20854 as_lineno_1=$LINENO
20855 as_lineno_2=$LINENO
20856 test "x$as_lineno_1" != "x$as_lineno_2" &&
20857 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
20859 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
20860 # uniformly replaced by the line number. The first 'sed' inserts a
20861 # line-number line after each line using $LINENO; the second 'sed'
20862 # does the real work. The second script uses 'N' to pair each
20863 # line-number line with the line containing $LINENO, and appends
20864 # trailing '-' during substitution so that $LINENO is not a special
20865 # case at line end.
20866 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
20867 # scripts with optimization help from Paolo Bonzini. Blame Lee
20868 # E. McMahon (1931-1989) for sed's syntax. :-)
20869 sed -n '
20871 /[$]LINENO/=
20872 ' <$as_myself |
20873 sed '
20874 s/[$]LINENO.*/&-/
20875 t lineno
20877 :lineno
20879 :loop
20880 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
20881 t loop
20882 s/-\n.*//
20883 ' >$as_me.lineno &&
20884 chmod +x "$as_me.lineno" ||
20885 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
20886 { (exit 1); exit 1; }; }
20888 # Don't try to exec as it changes $[0], causing all sort of problems
20889 # (the dirname of $[0] is not the place where we might find the
20890 # original and so on. Autoconf is especially sensitive to this).
20891 . "./$as_me.lineno"
20892 # Exit status is that of the last command.
20893 exit
20897 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
20898 as_dirname=dirname
20899 else
20900 as_dirname=false
20903 ECHO_C= ECHO_N= ECHO_T=
20904 case `echo -n x` in
20905 -n*)
20906 case `echo 'x\c'` in
20907 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
20908 *) ECHO_C='\c';;
20909 esac;;
20911 ECHO_N='-n';;
20912 esac
20914 if expr a : '\(a\)' >/dev/null 2>&1 &&
20915 test "X`expr 00001 : '.*\(...\)'`" = X001; then
20916 as_expr=expr
20917 else
20918 as_expr=false
20921 rm -f conf$$ conf$$.exe conf$$.file
20922 if test -d conf$$.dir; then
20923 rm -f conf$$.dir/conf$$.file
20924 else
20925 rm -f conf$$.dir
20926 mkdir conf$$.dir
20928 echo >conf$$.file
20929 if ln -s conf$$.file conf$$ 2>/dev/null; then
20930 as_ln_s='ln -s'
20931 # ... but there are two gotchas:
20932 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
20933 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
20934 # In both cases, we have to default to `cp -p'.
20935 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
20936 as_ln_s='cp -p'
20937 elif ln conf$$.file conf$$ 2>/dev/null; then
20938 as_ln_s=ln
20939 else
20940 as_ln_s='cp -p'
20942 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
20943 rmdir conf$$.dir 2>/dev/null
20945 if mkdir -p . 2>/dev/null; then
20946 as_mkdir_p=:
20947 else
20948 test -d ./-p && rmdir ./-p
20949 as_mkdir_p=false
20952 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
20953 # systems may use methods other than mode bits to determine executability.
20954 cat >conf$$.file <<_ASEOF
20955 #! /bin/sh
20956 exit 0
20957 _ASEOF
20958 chmod +x conf$$.file
20959 if test -x conf$$.file >/dev/null 2>&1; then
20960 as_executable_p="test -x"
20961 else
20962 as_executable_p=:
20964 rm -f conf$$.file
20966 # Sed expression to map a string onto a valid CPP name.
20967 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20969 # Sed expression to map a string onto a valid variable name.
20970 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20973 exec 6>&1
20975 # Save the log message, to keep $[0] and so on meaningful, and to
20976 # report actual input values of CONFIG_FILES etc. instead of their
20977 # values after options handling.
20978 ac_log="
20979 This file was extended by $as_me, which was
20980 generated by GNU Autoconf 2.60. Invocation command line was
20982 CONFIG_FILES = $CONFIG_FILES
20983 CONFIG_HEADERS = $CONFIG_HEADERS
20984 CONFIG_LINKS = $CONFIG_LINKS
20985 CONFIG_COMMANDS = $CONFIG_COMMANDS
20986 $ $0 $@
20988 on `(hostname || uname -n) 2>/dev/null | sed 1q`
20991 _ACEOF
20993 cat >>$CONFIG_STATUS <<_ACEOF
20994 # Files that config.status was made for.
20995 config_files="$ac_config_files"
20996 config_headers="$ac_config_headers"
20997 config_commands="$ac_config_commands"
20999 _ACEOF
21001 cat >>$CONFIG_STATUS <<\_ACEOF
21002 ac_cs_usage="\
21003 \`$as_me' instantiates files from templates according to the
21004 current configuration.
21006 Usage: $0 [OPTIONS] [FILE]...
21008 -h, --help print this help, then exit
21009 -V, --version print version number, then exit
21010 -q, --quiet do not print progress messages
21011 -d, --debug don't remove temporary files
21012 --recheck update $as_me by reconfiguring in the same conditions
21013 --file=FILE[:TEMPLATE]
21014 instantiate the configuration file FILE
21015 --header=FILE[:TEMPLATE]
21016 instantiate the configuration header FILE
21018 Configuration files:
21019 $config_files
21021 Configuration headers:
21022 $config_headers
21024 Configuration commands:
21025 $config_commands
21027 Report bugs to <bug-autoconf@gnu.org>."
21029 _ACEOF
21030 cat >>$CONFIG_STATUS <<_ACEOF
21031 ac_cs_version="\\
21032 config.status
21033 configured by $0, generated by GNU Autoconf 2.60,
21034 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
21036 Copyright (C) 2006 Free Software Foundation, Inc.
21037 This config.status script is free software; the Free Software Foundation
21038 gives unlimited permission to copy, distribute and modify it."
21040 ac_pwd='$ac_pwd'
21041 srcdir='$srcdir'
21042 INSTALL='$INSTALL'
21043 _ACEOF
21045 cat >>$CONFIG_STATUS <<\_ACEOF
21046 # If no file are specified by the user, then we need to provide default
21047 # value. By we need to know if files were specified by the user.
21048 ac_need_defaults=:
21049 while test $# != 0
21051 case $1 in
21052 --*=*)
21053 ac_option=`expr "X$1" : 'X\([^=]*\)='`
21054 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
21055 ac_shift=:
21058 ac_option=$1
21059 ac_optarg=$2
21060 ac_shift=shift
21062 esac
21064 case $ac_option in
21065 # Handling of the options.
21066 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21067 ac_cs_recheck=: ;;
21068 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
21069 echo "$ac_cs_version"; exit ;;
21070 --debug | --debu | --deb | --de | --d | -d )
21071 debug=: ;;
21072 --file | --fil | --fi | --f )
21073 $ac_shift
21074 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
21075 ac_need_defaults=false;;
21076 --header | --heade | --head | --hea )
21077 $ac_shift
21078 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
21079 ac_need_defaults=false;;
21080 --he | --h)
21081 # Conflict between --help and --header
21082 { echo "$as_me: error: ambiguous option: $1
21083 Try \`$0 --help' for more information." >&2
21084 { (exit 1); exit 1; }; };;
21085 --help | --hel | -h )
21086 echo "$ac_cs_usage"; exit ;;
21087 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21088 | -silent | --silent | --silen | --sile | --sil | --si | --s)
21089 ac_cs_silent=: ;;
21091 # This is an error.
21092 -*) { echo "$as_me: error: unrecognized option: $1
21093 Try \`$0 --help' for more information." >&2
21094 { (exit 1); exit 1; }; } ;;
21096 *) ac_config_targets="$ac_config_targets $1"
21097 ac_need_defaults=false ;;
21099 esac
21100 shift
21101 done
21103 ac_configure_extra_args=
21105 if $ac_cs_silent; then
21106 exec 6>/dev/null
21107 ac_configure_extra_args="$ac_configure_extra_args --silent"
21110 _ACEOF
21111 cat >>$CONFIG_STATUS <<_ACEOF
21112 if \$ac_cs_recheck; then
21113 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
21114 CONFIG_SHELL=$SHELL
21115 export CONFIG_SHELL
21116 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21119 _ACEOF
21120 cat >>$CONFIG_STATUS <<\_ACEOF
21121 exec 5>>config.log
21123 echo
21124 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21125 ## Running $as_me. ##
21126 _ASBOX
21127 echo "$ac_log"
21128 } >&5
21130 _ACEOF
21131 cat >>$CONFIG_STATUS <<_ACEOF
21133 # INIT-COMMANDS
21135 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
21137 _ACEOF
21139 cat >>$CONFIG_STATUS <<\_ACEOF
21141 # Handling of arguments.
21142 for ac_config_target in $ac_config_targets
21144 case $ac_config_target in
21145 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
21146 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
21147 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
21148 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
21149 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
21150 "src/server/Makefile") CONFIG_FILES="$CONFIG_FILES src/server/Makefile" ;;
21151 "src/sql/Makefile") CONFIG_FILES="$CONFIG_FILES src/sql/Makefile" ;;
21152 "src/adapter/Makefile") CONFIG_FILES="$CONFIG_FILES src/adapter/Makefile" ;;
21153 "src/gateway/Makefile") CONFIG_FILES="$CONFIG_FILES src/gateway/Makefile" ;;
21154 "src/cache/Makefile") CONFIG_FILES="$CONFIG_FILES src/cache/Makefile" ;;
21155 "src/network/Makefile") CONFIG_FILES="$CONFIG_FILES src/network/Makefile" ;;
21156 "src/sqllog/Makefile") CONFIG_FILES="$CONFIG_FILES src/sqllog/Makefile" ;;
21157 "src/tools/Makefile") CONFIG_FILES="$CONFIG_FILES src/tools/Makefile" ;;
21158 "src/jdbc/Makefile") CONFIG_FILES="$CONFIG_FILES src/jdbc/Makefile" ;;
21159 "src/odbc/Makefile") CONFIG_FILES="$CONFIG_FILES src/odbc/Makefile" ;;
21161 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
21162 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21163 { (exit 1); exit 1; }; };;
21164 esac
21165 done
21168 # If the user did not use the arguments to specify the items to instantiate,
21169 # then the envvar interface is used. Set only those that are not.
21170 # We use the long form for the default assignment because of an extremely
21171 # bizarre bug on SunOS 4.1.3.
21172 if $ac_need_defaults; then
21173 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21174 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
21175 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21178 # Have a temporary directory for convenience. Make it in the build tree
21179 # simply because there is no reason against having it here, and in addition,
21180 # creating and moving files from /tmp can sometimes cause problems.
21181 # Hook for its removal unless debugging.
21182 # Note that there is a small window in which the directory will not be cleaned:
21183 # after its creation but before its name has been assigned to `$tmp'.
21184 $debug ||
21186 tmp=
21187 trap 'exit_status=$?
21188 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
21190 trap '{ (exit 1); exit 1; }' 1 2 13 15
21192 # Create a (secure) tmp directory for tmp files.
21195 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
21196 test -n "$tmp" && test -d "$tmp"
21197 } ||
21199 tmp=./conf$$-$RANDOM
21200 (umask 077 && mkdir "$tmp")
21201 } ||
21203 echo "$me: cannot create a temporary directory in ." >&2
21204 { (exit 1); exit 1; }
21208 # Set up the sed scripts for CONFIG_FILES section.
21211 # No need to generate the scripts if there are no CONFIG_FILES.
21212 # This happens for instance when ./config.status config.h
21213 if test -n "$CONFIG_FILES"; then
21215 _ACEOF
21219 ac_delim='%!_!# '
21220 for ac_last_try in false false false false false :; do
21221 cat >conf$$subs.sed <<_ACEOF
21222 SHELL!$SHELL$ac_delim
21223 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
21224 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
21225 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
21226 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
21227 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
21228 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
21229 exec_prefix!$exec_prefix$ac_delim
21230 prefix!$prefix$ac_delim
21231 program_transform_name!$program_transform_name$ac_delim
21232 bindir!$bindir$ac_delim
21233 sbindir!$sbindir$ac_delim
21234 libexecdir!$libexecdir$ac_delim
21235 datarootdir!$datarootdir$ac_delim
21236 datadir!$datadir$ac_delim
21237 sysconfdir!$sysconfdir$ac_delim
21238 sharedstatedir!$sharedstatedir$ac_delim
21239 localstatedir!$localstatedir$ac_delim
21240 includedir!$includedir$ac_delim
21241 oldincludedir!$oldincludedir$ac_delim
21242 docdir!$docdir$ac_delim
21243 infodir!$infodir$ac_delim
21244 htmldir!$htmldir$ac_delim
21245 dvidir!$dvidir$ac_delim
21246 pdfdir!$pdfdir$ac_delim
21247 psdir!$psdir$ac_delim
21248 libdir!$libdir$ac_delim
21249 localedir!$localedir$ac_delim
21250 mandir!$mandir$ac_delim
21251 DEFS!$DEFS$ac_delim
21252 ECHO_C!$ECHO_C$ac_delim
21253 ECHO_N!$ECHO_N$ac_delim
21254 ECHO_T!$ECHO_T$ac_delim
21255 LIBS!$LIBS$ac_delim
21256 build_alias!$build_alias$ac_delim
21257 host_alias!$host_alias$ac_delim
21258 target_alias!$target_alias$ac_delim
21259 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
21260 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
21261 INSTALL_DATA!$INSTALL_DATA$ac_delim
21262 CYGPATH_W!$CYGPATH_W$ac_delim
21263 PACKAGE!$PACKAGE$ac_delim
21264 VERSION!$VERSION$ac_delim
21265 ACLOCAL!$ACLOCAL$ac_delim
21266 AUTOCONF!$AUTOCONF$ac_delim
21267 AUTOMAKE!$AUTOMAKE$ac_delim
21268 AUTOHEADER!$AUTOHEADER$ac_delim
21269 MAKEINFO!$MAKEINFO$ac_delim
21270 install_sh!$install_sh$ac_delim
21271 STRIP!$STRIP$ac_delim
21272 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
21273 mkdir_p!$mkdir_p$ac_delim
21274 AWK!$AWK$ac_delim
21275 SET_MAKE!$SET_MAKE$ac_delim
21276 am__leading_dot!$am__leading_dot$ac_delim
21277 AMTAR!$AMTAR$ac_delim
21278 am__tar!$am__tar$ac_delim
21279 am__untar!$am__untar$ac_delim
21280 CXX!$CXX$ac_delim
21281 CXXFLAGS!$CXXFLAGS$ac_delim
21282 LDFLAGS!$LDFLAGS$ac_delim
21283 CPPFLAGS!$CPPFLAGS$ac_delim
21284 ac_ct_CXX!$ac_ct_CXX$ac_delim
21285 EXEEXT!$EXEEXT$ac_delim
21286 OBJEXT!$OBJEXT$ac_delim
21287 DEPDIR!$DEPDIR$ac_delim
21288 am__include!$am__include$ac_delim
21289 am__quote!$am__quote$ac_delim
21290 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
21291 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
21292 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
21293 CXXDEPMODE!$CXXDEPMODE$ac_delim
21294 am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
21295 am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
21296 build!$build$ac_delim
21297 build_cpu!$build_cpu$ac_delim
21298 build_vendor!$build_vendor$ac_delim
21299 build_os!$build_os$ac_delim
21300 host!$host$ac_delim
21301 host_cpu!$host_cpu$ac_delim
21302 host_vendor!$host_vendor$ac_delim
21303 host_os!$host_os$ac_delim
21304 CC!$CC$ac_delim
21305 CFLAGS!$CFLAGS$ac_delim
21306 ac_ct_CC!$ac_ct_CC$ac_delim
21307 CCDEPMODE!$CCDEPMODE$ac_delim
21308 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
21309 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
21310 GREP!$GREP$ac_delim
21311 EGREP!$EGREP$ac_delim
21312 LN_S!$LN_S$ac_delim
21313 ECHO!$ECHO$ac_delim
21314 AR!$AR$ac_delim
21315 RANLIB!$RANLIB$ac_delim
21316 CPP!$CPP$ac_delim
21317 CXXCPP!$CXXCPP$ac_delim
21318 F77!$F77$ac_delim
21319 _ACEOF
21321 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
21322 break
21323 elif $ac_last_try; then
21324 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21325 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21326 { (exit 1); exit 1; }; }
21327 else
21328 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21330 done
21332 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21333 if test -n "$ac_eof"; then
21334 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21335 ac_eof=`expr $ac_eof + 1`
21338 cat >>$CONFIG_STATUS <<_ACEOF
21339 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
21340 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21341 _ACEOF
21342 sed '
21343 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21344 s/^/s,@/; s/!/@,|#_!!_#|/
21347 s/'"$ac_delim"'$/,g/; t
21348 s/$/\\/; p
21349 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21350 ' >>$CONFIG_STATUS <conf$$subs.sed
21351 rm -f conf$$subs.sed
21352 cat >>$CONFIG_STATUS <<_ACEOF
21353 CEOF$ac_eof
21354 _ACEOF
21357 ac_delim='%!_!# '
21358 for ac_last_try in false false false false false :; do
21359 cat >conf$$subs.sed <<_ACEOF
21360 FFLAGS!$FFLAGS$ac_delim
21361 ac_ct_F77!$ac_ct_F77$ac_delim
21362 LIBTOOL!$LIBTOOL$ac_delim
21363 YACC!$YACC$ac_delim
21364 YFLAGS!$YFLAGS$ac_delim
21365 LEX!$LEX$ac_delim
21366 LEXLIB!$LEXLIB$ac_delim
21367 LEX_OUTPUT_ROOT!$LEX_OUTPUT_ROOT$ac_delim
21368 LIBOBJS!$LIBOBJS$ac_delim
21369 LTLIBOBJS!$LTLIBOBJS$ac_delim
21370 _ACEOF
21372 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 10; then
21373 break
21374 elif $ac_last_try; then
21375 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21376 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21377 { (exit 1); exit 1; }; }
21378 else
21379 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21381 done
21383 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21384 if test -n "$ac_eof"; then
21385 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21386 ac_eof=`expr $ac_eof + 1`
21389 cat >>$CONFIG_STATUS <<_ACEOF
21390 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
21391 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
21392 _ACEOF
21393 sed '
21394 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21395 s/^/s,@/; s/!/@,|#_!!_#|/
21398 s/'"$ac_delim"'$/,g/; t
21399 s/$/\\/; p
21400 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21401 ' >>$CONFIG_STATUS <conf$$subs.sed
21402 rm -f conf$$subs.sed
21403 cat >>$CONFIG_STATUS <<_ACEOF
21404 :end
21405 s/|#_!!_#|//g
21406 CEOF$ac_eof
21407 _ACEOF
21410 # VPATH may cause trouble with some makes, so we remove $(srcdir),
21411 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
21412 # trailing colons and then remove the whole line if VPATH becomes empty
21413 # (actually we leave an empty line to preserve line numbers).
21414 if test "x$srcdir" = x.; then
21415 ac_vpsub='/^[ ]*VPATH[ ]*=/{
21416 s/:*\$(srcdir):*/:/
21417 s/:*\${srcdir}:*/:/
21418 s/:*@srcdir@:*/:/
21419 s/^\([^=]*=[ ]*\):*/\1/
21420 s/:*$//
21421 s/^[^=]*=[ ]*$//
21425 cat >>$CONFIG_STATUS <<\_ACEOF
21426 fi # test -n "$CONFIG_FILES"
21429 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
21431 case $ac_tag in
21432 :[FHLC]) ac_mode=$ac_tag; continue;;
21433 esac
21434 case $ac_mode$ac_tag in
21435 :[FHL]*:*);;
21436 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
21437 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
21438 { (exit 1); exit 1; }; };;
21439 :[FH]-) ac_tag=-:-;;
21440 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
21441 esac
21442 ac_save_IFS=$IFS
21443 IFS=:
21444 set x $ac_tag
21445 IFS=$ac_save_IFS
21446 shift
21447 ac_file=$1
21448 shift
21450 case $ac_mode in
21451 :L) ac_source=$1;;
21452 :[FH])
21453 ac_file_inputs=
21454 for ac_f
21456 case $ac_f in
21457 -) ac_f="$tmp/stdin";;
21458 *) # Look for the file first in the build tree, then in the source tree
21459 # (if the path is not absolute). The absolute path cannot be DOS-style,
21460 # because $ac_f cannot contain `:'.
21461 test -f "$ac_f" ||
21462 case $ac_f in
21463 [\\/$]*) false;;
21464 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
21465 esac ||
21466 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
21467 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
21468 { (exit 1); exit 1; }; };;
21469 esac
21470 ac_file_inputs="$ac_file_inputs $ac_f"
21471 done
21473 # Let's still pretend it is `configure' which instantiates (i.e., don't
21474 # use $as_me), people would be surprised to read:
21475 # /* config.h. Generated by config.status. */
21476 configure_input="Generated from "`IFS=:
21477 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
21478 if test x"$ac_file" != x-; then
21479 configure_input="$ac_file. $configure_input"
21480 { echo "$as_me:$LINENO: creating $ac_file" >&5
21481 echo "$as_me: creating $ac_file" >&6;}
21484 case $ac_tag in
21485 *:-:* | *:-) cat >"$tmp/stdin";;
21486 esac
21488 esac
21490 ac_dir=`$as_dirname -- "$ac_file" ||
21491 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21492 X"$ac_file" : 'X\(//\)[^/]' \| \
21493 X"$ac_file" : 'X\(//\)$' \| \
21494 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
21495 echo X"$ac_file" |
21496 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21497 s//\1/
21500 /^X\(\/\/\)[^/].*/{
21501 s//\1/
21504 /^X\(\/\/\)$/{
21505 s//\1/
21508 /^X\(\/\).*/{
21509 s//\1/
21512 s/.*/./; q'`
21513 { as_dir="$ac_dir"
21514 case $as_dir in #(
21515 -*) as_dir=./$as_dir;;
21516 esac
21517 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
21518 as_dirs=
21519 while :; do
21520 case $as_dir in #(
21521 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
21522 *) as_qdir=$as_dir;;
21523 esac
21524 as_dirs="'$as_qdir' $as_dirs"
21525 as_dir=`$as_dirname -- "$as_dir" ||
21526 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21527 X"$as_dir" : 'X\(//\)[^/]' \| \
21528 X"$as_dir" : 'X\(//\)$' \| \
21529 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
21530 echo X"$as_dir" |
21531 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21532 s//\1/
21535 /^X\(\/\/\)[^/].*/{
21536 s//\1/
21539 /^X\(\/\/\)$/{
21540 s//\1/
21543 /^X\(\/\).*/{
21544 s//\1/
21547 s/.*/./; q'`
21548 test -d "$as_dir" && break
21549 done
21550 test -z "$as_dirs" || eval "mkdir $as_dirs"
21551 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
21552 echo "$as_me: error: cannot create directory $as_dir" >&2;}
21553 { (exit 1); exit 1; }; }; }
21554 ac_builddir=.
21556 case "$ac_dir" in
21557 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21559 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
21560 # A ".." for each directory in $ac_dir_suffix.
21561 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
21562 case $ac_top_builddir_sub in
21563 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21564 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21565 esac ;;
21566 esac
21567 ac_abs_top_builddir=$ac_pwd
21568 ac_abs_builddir=$ac_pwd$ac_dir_suffix
21569 # for backward compatibility:
21570 ac_top_builddir=$ac_top_build_prefix
21572 case $srcdir in
21573 .) # We are building in place.
21574 ac_srcdir=.
21575 ac_top_srcdir=$ac_top_builddir_sub
21576 ac_abs_top_srcdir=$ac_pwd ;;
21577 [\\/]* | ?:[\\/]* ) # Absolute name.
21578 ac_srcdir=$srcdir$ac_dir_suffix;
21579 ac_top_srcdir=$srcdir
21580 ac_abs_top_srcdir=$srcdir ;;
21581 *) # Relative name.
21582 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21583 ac_top_srcdir=$ac_top_build_prefix$srcdir
21584 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
21585 esac
21586 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
21589 case $ac_mode in
21592 # CONFIG_FILE
21595 case $INSTALL in
21596 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21597 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
21598 esac
21599 _ACEOF
21601 cat >>$CONFIG_STATUS <<\_ACEOF
21602 # If the template does not know about datarootdir, expand it.
21603 # FIXME: This hack should be removed a few years after 2.60.
21604 ac_datarootdir_hack=; ac_datarootdir_seen=
21606 case `sed -n '/datarootdir/ {
21610 /@datadir@/p
21611 /@docdir@/p
21612 /@infodir@/p
21613 /@localedir@/p
21614 /@mandir@/p
21615 ' $ac_file_inputs` in
21616 *datarootdir*) ac_datarootdir_seen=yes;;
21617 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
21618 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
21619 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
21620 _ACEOF
21621 cat >>$CONFIG_STATUS <<_ACEOF
21622 ac_datarootdir_hack='
21623 s&@datadir@&$datadir&g
21624 s&@docdir@&$docdir&g
21625 s&@infodir@&$infodir&g
21626 s&@localedir@&$localedir&g
21627 s&@mandir@&$mandir&g
21628 s&\\\${datarootdir}&$datarootdir&g' ;;
21629 esac
21630 _ACEOF
21632 # Neutralize VPATH when `$srcdir' = `.'.
21633 # Shell code in configure.ac might set extrasub.
21634 # FIXME: do we really want to maintain this feature?
21635 cat >>$CONFIG_STATUS <<_ACEOF
21636 sed "$ac_vpsub
21637 $extrasub
21638 _ACEOF
21639 cat >>$CONFIG_STATUS <<\_ACEOF
21641 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21642 s&@configure_input@&$configure_input&;t t
21643 s&@top_builddir@&$ac_top_builddir_sub&;t t
21644 s&@srcdir@&$ac_srcdir&;t t
21645 s&@abs_srcdir@&$ac_abs_srcdir&;t t
21646 s&@top_srcdir@&$ac_top_srcdir&;t t
21647 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
21648 s&@builddir@&$ac_builddir&;t t
21649 s&@abs_builddir@&$ac_abs_builddir&;t t
21650 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
21651 s&@INSTALL@&$ac_INSTALL&;t t
21652 $ac_datarootdir_hack
21653 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
21655 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
21656 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
21657 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
21658 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21659 which seems to be undefined. Please make sure it is defined." >&5
21660 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21661 which seems to be undefined. Please make sure it is defined." >&2;}
21663 rm -f "$tmp/stdin"
21664 case $ac_file in
21665 -) cat "$tmp/out"; rm -f "$tmp/out";;
21666 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
21667 esac
21671 # CONFIG_HEADER
21673 _ACEOF
21675 # Transform confdefs.h into a sed script `conftest.defines', that
21676 # substitutes the proper values into config.h.in to produce config.h.
21677 rm -f conftest.defines conftest.tail
21678 # First, append a space to every undef/define line, to ease matching.
21679 echo 's/$/ /' >conftest.defines
21680 # Then, protect against being on the right side of a sed subst, or in
21681 # an unquoted here document, in config.status. If some macros were
21682 # called several times there might be several #defines for the same
21683 # symbol, which is useless. But do not sort them, since the last
21684 # AC_DEFINE must be honored.
21685 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
21686 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
21687 # NAME is the cpp macro being defined, VALUE is the value it is being given.
21688 # PARAMS is the parameter list in the macro definition--in most cases, it's
21689 # just an empty string.
21690 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
21691 ac_dB='\\)[ (].*,\\1define\\2'
21692 ac_dC=' '
21693 ac_dD=' ,'
21695 uniq confdefs.h |
21696 sed -n '
21697 t rset
21698 :rset
21699 s/^[ ]*#[ ]*define[ ][ ]*//
21700 t ok
21703 s/[\\&,]/\\&/g
21704 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
21705 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
21706 ' >>conftest.defines
21708 # Remove the space that was appended to ease matching.
21709 # Then replace #undef with comments. This is necessary, for
21710 # example, in the case of _POSIX_SOURCE, which is predefined and required
21711 # on some systems where configure will not decide to define it.
21712 # (The regexp can be short, since the line contains either #define or #undef.)
21713 echo 's/ $//
21714 s,^[ #]*u.*,/* & */,' >>conftest.defines
21716 # Break up conftest.defines:
21717 ac_max_sed_lines=50
21719 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
21720 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
21721 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
21722 # et cetera.
21723 ac_in='$ac_file_inputs'
21724 ac_out='"$tmp/out1"'
21725 ac_nxt='"$tmp/out2"'
21727 while :
21729 # Write a here document:
21730 cat >>$CONFIG_STATUS <<_ACEOF
21731 # First, check the format of the line:
21732 cat >"\$tmp/defines.sed" <<\\CEOF
21733 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
21734 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
21736 :def
21737 _ACEOF
21738 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
21739 echo 'CEOF
21740 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
21741 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
21742 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
21743 grep . conftest.tail >/dev/null || break
21744 rm -f conftest.defines
21745 mv conftest.tail conftest.defines
21746 done
21747 rm -f conftest.defines conftest.tail
21749 echo "ac_result=$ac_in" >>$CONFIG_STATUS
21750 cat >>$CONFIG_STATUS <<\_ACEOF
21751 if test x"$ac_file" != x-; then
21752 echo "/* $configure_input */" >"$tmp/config.h"
21753 cat "$ac_result" >>"$tmp/config.h"
21754 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
21755 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
21756 echo "$as_me: $ac_file is unchanged" >&6;}
21757 else
21758 rm -f $ac_file
21759 mv "$tmp/config.h" $ac_file
21761 else
21762 echo "/* $configure_input */"
21763 cat "$ac_result"
21765 rm -f "$tmp/out12"
21766 # Compute $ac_file's index in $config_headers.
21767 _am_stamp_count=1
21768 for _am_header in $config_headers :; do
21769 case $_am_header in
21770 $ac_file | $ac_file:* )
21771 break ;;
21773 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
21774 esac
21775 done
21776 echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
21777 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21778 X$ac_file : 'X\(//\)[^/]' \| \
21779 X$ac_file : 'X\(//\)$' \| \
21780 X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
21781 echo X$ac_file |
21782 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21783 s//\1/
21786 /^X\(\/\/\)[^/].*/{
21787 s//\1/
21790 /^X\(\/\/\)$/{
21791 s//\1/
21794 /^X\(\/\).*/{
21795 s//\1/
21798 s/.*/./; q'`/stamp-h$_am_stamp_count
21801 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
21802 echo "$as_me: executing $ac_file commands" >&6;}
21804 esac
21807 case $ac_file$ac_mode in
21808 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
21809 # Strip MF so we end up with the name of the file.
21810 mf=`echo "$mf" | sed -e 's/:.*$//'`
21811 # Check whether this is an Automake generated Makefile or not.
21812 # We used to match only the files named `Makefile.in', but
21813 # some people rename them; so instead we look at the file content.
21814 # Grep'ing the first line is not enough: some people post-process
21815 # each Makefile.in and add a new line on top of each file to say so.
21816 # So let's grep whole file.
21817 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
21818 dirpart=`$as_dirname -- "$mf" ||
21819 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21820 X"$mf" : 'X\(//\)[^/]' \| \
21821 X"$mf" : 'X\(//\)$' \| \
21822 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
21823 echo X"$mf" |
21824 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21825 s//\1/
21828 /^X\(\/\/\)[^/].*/{
21829 s//\1/
21832 /^X\(\/\/\)$/{
21833 s//\1/
21836 /^X\(\/\).*/{
21837 s//\1/
21840 s/.*/./; q'`
21841 else
21842 continue
21844 # Extract the definition of DEPDIR, am__include, and am__quote
21845 # from the Makefile without running `make'.
21846 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
21847 test -z "$DEPDIR" && continue
21848 am__include=`sed -n 's/^am__include = //p' < "$mf"`
21849 test -z "am__include" && continue
21850 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
21851 # When using ansi2knr, U may be empty or an underscore; expand it
21852 U=`sed -n 's/^U = //p' < "$mf"`
21853 # Find all dependency output files, they are included files with
21854 # $(DEPDIR) in their names. We invoke sed twice because it is the
21855 # simplest approach to changing $(DEPDIR) to its actual value in the
21856 # expansion.
21857 for file in `sed -n "
21858 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
21859 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
21860 # Make sure the directory exists.
21861 test -f "$dirpart/$file" && continue
21862 fdir=`$as_dirname -- "$file" ||
21863 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21864 X"$file" : 'X\(//\)[^/]' \| \
21865 X"$file" : 'X\(//\)$' \| \
21866 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
21867 echo X"$file" |
21868 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21869 s//\1/
21872 /^X\(\/\/\)[^/].*/{
21873 s//\1/
21876 /^X\(\/\/\)$/{
21877 s//\1/
21880 /^X\(\/\).*/{
21881 s//\1/
21884 s/.*/./; q'`
21885 { as_dir=$dirpart/$fdir
21886 case $as_dir in #(
21887 -*) as_dir=./$as_dir;;
21888 esac
21889 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
21890 as_dirs=
21891 while :; do
21892 case $as_dir in #(
21893 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
21894 *) as_qdir=$as_dir;;
21895 esac
21896 as_dirs="'$as_qdir' $as_dirs"
21897 as_dir=`$as_dirname -- "$as_dir" ||
21898 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21899 X"$as_dir" : 'X\(//\)[^/]' \| \
21900 X"$as_dir" : 'X\(//\)$' \| \
21901 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
21902 echo X"$as_dir" |
21903 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21904 s//\1/
21907 /^X\(\/\/\)[^/].*/{
21908 s//\1/
21911 /^X\(\/\/\)$/{
21912 s//\1/
21915 /^X\(\/\).*/{
21916 s//\1/
21919 s/.*/./; q'`
21920 test -d "$as_dir" && break
21921 done
21922 test -z "$as_dirs" || eval "mkdir $as_dirs"
21923 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
21924 echo "$as_me: error: cannot create directory $as_dir" >&2;}
21925 { (exit 1); exit 1; }; }; }
21926 # echo "creating $dirpart/$file"
21927 echo '# dummy' > "$dirpart/$file"
21928 done
21929 done
21932 esac
21933 done # for ac_tag
21936 { (exit 0); exit 0; }
21937 _ACEOF
21938 chmod +x $CONFIG_STATUS
21939 ac_clean_files=$ac_clean_files_save
21942 # configure is writing to config.log, and then calls config.status.
21943 # config.status does its own redirection, appending to config.log.
21944 # Unfortunately, on DOS this fails, as config.log is still kept open
21945 # by configure, so config.status won't be able to write to it; its
21946 # output is simply discarded. So we exec the FD to /dev/null,
21947 # effectively closing config.log, so it can be properly (re)opened and
21948 # appended to by config.status. When coming back to configure, we
21949 # need to make the FD available again.
21950 if test "$no_create" != yes; then
21951 ac_cs_success=:
21952 ac_config_status_args=
21953 test "$silent" = yes &&
21954 ac_config_status_args="$ac_config_status_args --quiet"
21955 exec 5>/dev/null
21956 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21957 exec 5>>config.log
21958 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21959 # would make configure fail if this is the last instruction.
21960 $ac_cs_success || { (exit 1); exit 1; }