code reorg
[csql.git] / configure
blob39c412643de138ef234b0cc66e1f0a6f6c1d0c4d
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61.
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 more Bourne compatible
14 DUALCASE=1; export DUALCASE # for MKS sh
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16 emulate sh
17 NULLCMD=:
18 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
21 setopt NO_GLOB_SUBST
22 else
23 case `(set -o) 2>/dev/null` in
24 *posix*) set -o posix ;;
25 esac
32 # PATH needs CR
33 # Avoid depending upon Character Ranges.
34 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits='0123456789'
38 as_cr_alnum=$as_cr_Letters$as_cr_digits
40 # The user is always right.
41 if test "${PATH_SEPARATOR+set}" != set; then
42 echo "#! /bin/sh" >conf$$.sh
43 echo "exit 0" >>conf$$.sh
44 chmod +x conf$$.sh
45 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
46 PATH_SEPARATOR=';'
47 else
48 PATH_SEPARATOR=:
50 rm -f conf$$.sh
53 # Support unset when possible.
54 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
55 as_unset=unset
56 else
57 as_unset=false
61 # IFS
62 # We need space, tab and new line, in precisely that order. Quoting is
63 # there to prevent editors from complaining about space-tab.
64 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
65 # splitting by setting IFS to empty value.)
66 as_nl='
68 IFS=" "" $as_nl"
70 # Find who we are. Look in the path if we contain no directory separator.
71 case $0 in
72 *[\\/]* ) as_myself=$0 ;;
73 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
74 for as_dir in $PATH
76 IFS=$as_save_IFS
77 test -z "$as_dir" && as_dir=.
78 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
79 done
80 IFS=$as_save_IFS
83 esac
84 # We did not find ourselves, most probably we were run as `sh COMMAND'
85 # in which case we are not to be found in the path.
86 if test "x$as_myself" = x; then
87 as_myself=$0
89 if test ! -f "$as_myself"; then
90 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
91 { (exit 1); exit 1; }
94 # Work around bugs in pre-3.0 UWIN ksh.
95 for as_var in ENV MAIL MAILPATH
96 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
97 done
98 PS1='$ '
99 PS2='> '
100 PS4='+ '
102 # NLS nuisances.
103 for as_var in \
104 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
106 LC_TELEPHONE LC_TIME
108 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109 eval $as_var=C; export $as_var
110 else
111 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
113 done
115 # Required to use basename.
116 if expr a : '\(a\)' >/dev/null 2>&1 &&
117 test "X`expr 00001 : '.*\(...\)'`" = X001; then
118 as_expr=expr
119 else
120 as_expr=false
123 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
124 as_basename=basename
125 else
126 as_basename=false
130 # Name of the executable.
131 as_me=`$as_basename -- "$0" ||
132 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133 X"$0" : 'X\(//\)$' \| \
134 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
135 echo X/"$0" |
136 sed '/^.*\/\([^/][^/]*\)\/*$/{
137 s//\1/
140 /^X\/\(\/\/\)$/{
141 s//\1/
144 /^X\/\(\/\).*/{
145 s//\1/
148 s/.*/./; q'`
150 # CDPATH.
151 $as_unset CDPATH
154 if test "x$CONFIG_SHELL" = x; then
155 if (eval ":") 2>/dev/null; then
156 as_have_required=yes
157 else
158 as_have_required=no
161 if test $as_have_required = yes && (eval ":
162 (as_func_return () {
163 (exit \$1)
165 as_func_success () {
166 as_func_return 0
168 as_func_failure () {
169 as_func_return 1
171 as_func_ret_success () {
172 return 0
174 as_func_ret_failure () {
175 return 1
178 exitcode=0
179 if as_func_success; then
181 else
182 exitcode=1
183 echo as_func_success failed.
186 if as_func_failure; then
187 exitcode=1
188 echo as_func_failure succeeded.
191 if as_func_ret_success; then
193 else
194 exitcode=1
195 echo as_func_ret_success failed.
198 if as_func_ret_failure; then
199 exitcode=1
200 echo as_func_ret_failure succeeded.
203 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
205 else
206 exitcode=1
207 echo positional parameters were not saved.
210 test \$exitcode = 0) || { (exit 1); exit 1; }
213 as_lineno_1=\$LINENO
214 as_lineno_2=\$LINENO
215 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217 ") 2> /dev/null; then
219 else
220 as_candidate_shells=
221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
224 IFS=$as_save_IFS
225 test -z "$as_dir" && as_dir=.
226 case $as_dir in
228 for as_base in sh bash ksh sh5; do
229 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
230 done;;
231 esac
232 done
233 IFS=$as_save_IFS
236 for as_shell in $as_candidate_shells $SHELL; do
237 # Try only shells that exist, to save several forks.
238 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239 { ("$as_shell") 2> /dev/null <<\_ASEOF
240 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
241 emulate sh
242 NULLCMD=:
243 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
244 # is contrary to our usage. Disable this feature.
245 alias -g '${1+"$@"}'='"$@"'
246 setopt NO_GLOB_SUBST
247 else
248 case `(set -o) 2>/dev/null` in
249 *posix*) set -o posix ;;
250 esac
256 _ASEOF
257 }; then
258 CONFIG_SHELL=$as_shell
259 as_have_required=yes
260 if { "$as_shell" 2> /dev/null <<\_ASEOF
261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262 emulate sh
263 NULLCMD=:
264 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265 # is contrary to our usage. Disable this feature.
266 alias -g '${1+"$@"}'='"$@"'
267 setopt NO_GLOB_SUBST
268 else
269 case `(set -o) 2>/dev/null` in
270 *posix*) set -o posix ;;
271 esac
277 (as_func_return () {
278 (exit $1)
280 as_func_success () {
281 as_func_return 0
283 as_func_failure () {
284 as_func_return 1
286 as_func_ret_success () {
287 return 0
289 as_func_ret_failure () {
290 return 1
293 exitcode=0
294 if as_func_success; then
296 else
297 exitcode=1
298 echo as_func_success failed.
301 if as_func_failure; then
302 exitcode=1
303 echo as_func_failure succeeded.
306 if as_func_ret_success; then
308 else
309 exitcode=1
310 echo as_func_ret_success failed.
313 if as_func_ret_failure; then
314 exitcode=1
315 echo as_func_ret_failure succeeded.
318 if ( set x; as_func_ret_success y && test x = "$1" ); then
320 else
321 exitcode=1
322 echo positional parameters were not saved.
325 test $exitcode = 0) || { (exit 1); exit 1; }
328 as_lineno_1=$LINENO
329 as_lineno_2=$LINENO
330 test "x$as_lineno_1" != "x$as_lineno_2" &&
331 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
333 _ASEOF
334 }; then
335 break
340 done
342 if test "x$CONFIG_SHELL" != x; then
343 for as_var in BASH_ENV ENV
344 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
345 done
346 export CONFIG_SHELL
347 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
351 if test $as_have_required = no; then
352 echo This script requires a shell more modern than all the
353 echo shells that I found on your system. Please install a
354 echo modern shell, or manually run the script under such a
355 echo shell if you do have one.
356 { (exit 1); exit 1; }
366 (eval "as_func_return () {
367 (exit \$1)
369 as_func_success () {
370 as_func_return 0
372 as_func_failure () {
373 as_func_return 1
375 as_func_ret_success () {
376 return 0
378 as_func_ret_failure () {
379 return 1
382 exitcode=0
383 if as_func_success; then
385 else
386 exitcode=1
387 echo as_func_success failed.
390 if as_func_failure; then
391 exitcode=1
392 echo as_func_failure succeeded.
395 if as_func_ret_success; then
397 else
398 exitcode=1
399 echo as_func_ret_success failed.
402 if as_func_ret_failure; then
403 exitcode=1
404 echo as_func_ret_failure succeeded.
407 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
409 else
410 exitcode=1
411 echo positional parameters were not saved.
414 test \$exitcode = 0") || {
415 echo No shell found that supports shell functions.
416 echo Please tell autoconf@gnu.org about your system,
417 echo including any error possibly output before this
418 echo message
423 as_lineno_1=$LINENO
424 as_lineno_2=$LINENO
425 test "x$as_lineno_1" != "x$as_lineno_2" &&
426 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
428 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
429 # uniformly replaced by the line number. The first 'sed' inserts a
430 # line-number line after each line using $LINENO; the second 'sed'
431 # does the real work. The second script uses 'N' to pair each
432 # line-number line with the line containing $LINENO, and appends
433 # trailing '-' during substitution so that $LINENO is not a special
434 # case at line end.
435 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
436 # scripts with optimization help from Paolo Bonzini. Blame Lee
437 # E. McMahon (1931-1989) for sed's syntax. :-)
438 sed -n '
440 /[$]LINENO/=
441 ' <$as_myself |
442 sed '
443 s/[$]LINENO.*/&-/
444 t lineno
446 :lineno
448 :loop
449 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
450 t loop
451 s/-\n.*//
452 ' >$as_me.lineno &&
453 chmod +x "$as_me.lineno" ||
454 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
455 { (exit 1); exit 1; }; }
457 # Don't try to exec as it changes $[0], causing all sort of problems
458 # (the dirname of $[0] is not the place where we might find the
459 # original and so on. Autoconf is especially sensitive to this).
460 . "./$as_me.lineno"
461 # Exit status is that of the last command.
462 exit
466 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
467 as_dirname=dirname
468 else
469 as_dirname=false
472 ECHO_C= ECHO_N= ECHO_T=
473 case `echo -n x` in
474 -n*)
475 case `echo 'x\c'` in
476 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
477 *) ECHO_C='\c';;
478 esac;;
480 ECHO_N='-n';;
481 esac
483 if expr a : '\(a\)' >/dev/null 2>&1 &&
484 test "X`expr 00001 : '.*\(...\)'`" = X001; then
485 as_expr=expr
486 else
487 as_expr=false
490 rm -f conf$$ conf$$.exe conf$$.file
491 if test -d conf$$.dir; then
492 rm -f conf$$.dir/conf$$.file
493 else
494 rm -f conf$$.dir
495 mkdir conf$$.dir
497 echo >conf$$.file
498 if ln -s conf$$.file conf$$ 2>/dev/null; then
499 as_ln_s='ln -s'
500 # ... but there are two gotchas:
501 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
502 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
503 # In both cases, we have to default to `cp -p'.
504 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
505 as_ln_s='cp -p'
506 elif ln conf$$.file conf$$ 2>/dev/null; then
507 as_ln_s=ln
508 else
509 as_ln_s='cp -p'
511 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
512 rmdir conf$$.dir 2>/dev/null
514 if mkdir -p . 2>/dev/null; then
515 as_mkdir_p=:
516 else
517 test -d ./-p && rmdir ./-p
518 as_mkdir_p=false
521 if test -x / >/dev/null 2>&1; then
522 as_test_x='test -x'
523 else
524 if ls -dL / >/dev/null 2>&1; then
525 as_ls_L_option=L
526 else
527 as_ls_L_option=
529 as_test_x='
530 eval sh -c '\''
531 if test -d "$1"; then
532 test -d "$1/.";
533 else
534 case $1 in
535 -*)set "./$1";;
536 esac;
537 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
538 ???[sx]*):;;*)false;;esac;fi
539 '\'' sh
542 as_executable_p=$as_test_x
544 # Sed expression to map a string onto a valid CPP name.
545 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
547 # Sed expression to map a string onto a valid variable name.
548 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
553 # Check that we are running under the correct shell.
554 SHELL=${CONFIG_SHELL-/bin/sh}
556 case X$ECHO in
557 X*--fallback-echo)
558 # Remove one level of quotation (which was required for Make).
559 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
561 esac
563 echo=${ECHO-echo}
564 if test "X$1" = X--no-reexec; then
565 # Discard the --no-reexec flag, and continue.
566 shift
567 elif test "X$1" = X--fallback-echo; then
568 # Avoid inline document here, it may be left over
570 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
571 # Yippee, $echo works!
573 else
574 # Restart under the correct shell.
575 exec $SHELL "$0" --no-reexec ${1+"$@"}
578 if test "X$1" = X--fallback-echo; then
579 # used as fallback echo
580 shift
581 cat <<EOF
584 exit 0
587 # The HP-UX ksh and POSIX shell print the target directory to stdout
588 # if CDPATH is set.
589 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
591 if test -z "$ECHO"; then
592 if test "X${echo_test_string+set}" != Xset; then
593 # find a string as large as possible, as long as the shell can cope with it
594 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
595 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
596 if (echo_test_string=`eval $cmd`) 2>/dev/null &&
597 echo_test_string=`eval $cmd` &&
598 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
599 then
600 break
602 done
605 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
606 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
607 test "X$echo_testing_string" = "X$echo_test_string"; then
609 else
610 # The Solaris, AIX, and Digital Unix default echo programs unquote
611 # backslashes. This makes it impossible to quote backslashes using
612 # echo "$something" | sed 's/\\/\\\\/g'
614 # So, first we look for a working echo in the user's PATH.
616 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
617 for dir in $PATH /usr/ucb; do
618 IFS="$lt_save_ifs"
619 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
620 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
621 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
622 test "X$echo_testing_string" = "X$echo_test_string"; then
623 echo="$dir/echo"
624 break
626 done
627 IFS="$lt_save_ifs"
629 if test "X$echo" = Xecho; then
630 # We didn't find a better echo, so look for alternatives.
631 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
632 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
633 test "X$echo_testing_string" = "X$echo_test_string"; then
634 # This shell has a builtin print -r that does the trick.
635 echo='print -r'
636 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
637 test "X$CONFIG_SHELL" != X/bin/ksh; then
638 # If we have ksh, try running configure again with it.
639 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
640 export ORIGINAL_CONFIG_SHELL
641 CONFIG_SHELL=/bin/ksh
642 export CONFIG_SHELL
643 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
644 else
645 # Try using printf.
646 echo='printf %s\n'
647 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
648 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
649 test "X$echo_testing_string" = "X$echo_test_string"; then
650 # Cool, printf works
652 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
653 test "X$echo_testing_string" = 'X\t' &&
654 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
655 test "X$echo_testing_string" = "X$echo_test_string"; then
656 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
657 export CONFIG_SHELL
658 SHELL="$CONFIG_SHELL"
659 export SHELL
660 echo="$CONFIG_SHELL $0 --fallback-echo"
661 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
662 test "X$echo_testing_string" = 'X\t' &&
663 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
664 test "X$echo_testing_string" = "X$echo_test_string"; then
665 echo="$CONFIG_SHELL $0 --fallback-echo"
666 else
667 # maybe with a smaller string...
668 prev=:
670 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
671 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
672 then
673 break
675 prev="$cmd"
676 done
678 if test "$prev" != 'sed 50q "$0"'; then
679 echo_test_string=`eval $prev`
680 export echo_test_string
681 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
682 else
683 # Oops. We lost completely, so just stick with echo.
684 echo=echo
692 # Copy echo and quote the copy suitably for passing to libtool from
693 # the Makefile, instead of quoting the original, which is used later.
694 ECHO=$echo
695 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
696 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
702 tagnames=${tagnames+${tagnames},}CXX
704 tagnames=${tagnames+${tagnames},}F77
706 exec 7<&0 </dev/null 6>&1
708 # Name of the host.
709 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
710 # so uname gets run too.
711 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
714 # Initializations.
716 ac_default_prefix=/usr/local
717 ac_clean_files=
718 ac_config_libobj_dir=.
719 LIBOBJS=
720 cross_compiling=no
721 subdirs=
722 MFLAGS=
723 MAKEFLAGS=
724 SHELL=${CONFIG_SHELL-/bin/sh}
726 # Identity of this package.
727 PACKAGE_NAME=
728 PACKAGE_TARNAME=
729 PACKAGE_VERSION=
730 PACKAGE_STRING=
731 PACKAGE_BUGREPORT=
733 ac_unique_file="configure.in"
734 # Factoring default headers for most tests.
735 ac_includes_default="\
736 #include <stdio.h>
737 #ifdef HAVE_SYS_TYPES_H
738 # include <sys/types.h>
739 #endif
740 #ifdef HAVE_SYS_STAT_H
741 # include <sys/stat.h>
742 #endif
743 #ifdef STDC_HEADERS
744 # include <stdlib.h>
745 # include <stddef.h>
746 #else
747 # ifdef HAVE_STDLIB_H
748 # include <stdlib.h>
749 # endif
750 #endif
751 #ifdef HAVE_STRING_H
752 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
753 # include <memory.h>
754 # endif
755 # include <string.h>
756 #endif
757 #ifdef HAVE_STRINGS_H
758 # include <strings.h>
759 #endif
760 #ifdef HAVE_INTTYPES_H
761 # include <inttypes.h>
762 #endif
763 #ifdef HAVE_STDINT_H
764 # include <stdint.h>
765 #endif
766 #ifdef HAVE_UNISTD_H
767 # include <unistd.h>
768 #endif"
770 ac_subst_vars='SHELL
771 PATH_SEPARATOR
772 PACKAGE_NAME
773 PACKAGE_TARNAME
774 PACKAGE_VERSION
775 PACKAGE_STRING
776 PACKAGE_BUGREPORT
777 exec_prefix
778 prefix
779 program_transform_name
780 bindir
781 sbindir
782 libexecdir
783 datarootdir
784 datadir
785 sysconfdir
786 sharedstatedir
787 localstatedir
788 includedir
789 oldincludedir
790 docdir
791 infodir
792 htmldir
793 dvidir
794 pdfdir
795 psdir
796 libdir
797 localedir
798 mandir
799 DEFS
800 ECHO_C
801 ECHO_N
802 ECHO_T
803 LIBS
804 build_alias
805 host_alias
806 target_alias
807 INSTALL_PROGRAM
808 INSTALL_SCRIPT
809 INSTALL_DATA
810 am__isrc
811 CYGPATH_W
812 PACKAGE
813 VERSION
814 ACLOCAL
815 AUTOCONF
816 AUTOMAKE
817 AUTOHEADER
818 MAKEINFO
819 install_sh
820 STRIP
821 INSTALL_STRIP_PROGRAM
822 mkdir_p
824 SET_MAKE
825 am__leading_dot
826 AMTAR
827 am__tar
828 am__untar
830 CXXFLAGS
831 LDFLAGS
832 CPPFLAGS
833 ac_ct_CXX
834 EXEEXT
835 OBJEXT
836 DEPDIR
837 am__include
838 am__quote
839 AMDEP_TRUE
840 AMDEP_FALSE
841 AMDEPBACKSLASH
842 CXXDEPMODE
843 am__fastdepCXX_TRUE
844 am__fastdepCXX_FALSE
845 build
846 build_cpu
847 build_vendor
848 build_os
849 host
850 host_cpu
851 host_vendor
852 host_os
854 CFLAGS
855 ac_ct_CC
856 CCDEPMODE
857 am__fastdepCC_TRUE
858 am__fastdepCC_FALSE
860 GREP
861 EGREP
862 LN_S
863 ECHO
865 RANLIB
867 CXXCPP
869 FFLAGS
870 ac_ct_F77
871 LIBTOOL
872 YACC
873 YFLAGS
875 LEX_OUTPUT_ROOT
876 LEXLIB
877 LIBOBJS
878 LTLIBOBJS'
879 ac_subst_files=''
880 ac_precious_vars='build_alias
881 host_alias
882 target_alias
884 CXXFLAGS
885 LDFLAGS
886 LIBS
887 CPPFLAGS
890 CFLAGS
892 CXXCPP
894 FFLAGS
895 YACC
896 YFLAGS'
899 # Initialize some variables set by options.
900 ac_init_help=
901 ac_init_version=false
902 # The variables have the same names as the options, with
903 # dashes changed to underlines.
904 cache_file=/dev/null
905 exec_prefix=NONE
906 no_create=
907 no_recursion=
908 prefix=NONE
909 program_prefix=NONE
910 program_suffix=NONE
911 program_transform_name=s,x,x,
912 silent=
913 site=
914 srcdir=
915 verbose=
916 x_includes=NONE
917 x_libraries=NONE
919 # Installation directory options.
920 # These are left unexpanded so users can "make install exec_prefix=/foo"
921 # and all the variables that are supposed to be based on exec_prefix
922 # by default will actually change.
923 # Use braces instead of parens because sh, perl, etc. also accept them.
924 # (The list follows the same order as the GNU Coding Standards.)
925 bindir='${exec_prefix}/bin'
926 sbindir='${exec_prefix}/sbin'
927 libexecdir='${exec_prefix}/libexec'
928 datarootdir='${prefix}/share'
929 datadir='${datarootdir}'
930 sysconfdir='${prefix}/etc'
931 sharedstatedir='${prefix}/com'
932 localstatedir='${prefix}/var'
933 includedir='${prefix}/include'
934 oldincludedir='/usr/include'
935 docdir='${datarootdir}/doc/${PACKAGE}'
936 infodir='${datarootdir}/info'
937 htmldir='${docdir}'
938 dvidir='${docdir}'
939 pdfdir='${docdir}'
940 psdir='${docdir}'
941 libdir='${exec_prefix}/lib'
942 localedir='${datarootdir}/locale'
943 mandir='${datarootdir}/man'
945 ac_prev=
946 ac_dashdash=
947 for ac_option
949 # If the previous option needs an argument, assign it.
950 if test -n "$ac_prev"; then
951 eval $ac_prev=\$ac_option
952 ac_prev=
953 continue
956 case $ac_option in
957 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
958 *) ac_optarg=yes ;;
959 esac
961 # Accept the important Cygnus configure options, so we can diagnose typos.
963 case $ac_dashdash$ac_option in
965 ac_dashdash=yes ;;
967 -bindir | --bindir | --bindi | --bind | --bin | --bi)
968 ac_prev=bindir ;;
969 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
970 bindir=$ac_optarg ;;
972 -build | --build | --buil | --bui | --bu)
973 ac_prev=build_alias ;;
974 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
975 build_alias=$ac_optarg ;;
977 -cache-file | --cache-file | --cache-fil | --cache-fi \
978 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
979 ac_prev=cache_file ;;
980 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
981 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
982 cache_file=$ac_optarg ;;
984 --config-cache | -C)
985 cache_file=config.cache ;;
987 -datadir | --datadir | --datadi | --datad)
988 ac_prev=datadir ;;
989 -datadir=* | --datadir=* | --datadi=* | --datad=*)
990 datadir=$ac_optarg ;;
992 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
993 | --dataroo | --dataro | --datar)
994 ac_prev=datarootdir ;;
995 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
996 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
997 datarootdir=$ac_optarg ;;
999 -disable-* | --disable-*)
1000 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1001 # Reject names that are not valid shell variable names.
1002 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1003 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1004 { (exit 1); exit 1; }; }
1005 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1006 eval enable_$ac_feature=no ;;
1008 -docdir | --docdir | --docdi | --doc | --do)
1009 ac_prev=docdir ;;
1010 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1011 docdir=$ac_optarg ;;
1013 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1014 ac_prev=dvidir ;;
1015 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1016 dvidir=$ac_optarg ;;
1018 -enable-* | --enable-*)
1019 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1020 # Reject names that are not valid shell variable names.
1021 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1022 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1023 { (exit 1); exit 1; }; }
1024 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1025 eval enable_$ac_feature=\$ac_optarg ;;
1027 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1028 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1029 | --exec | --exe | --ex)
1030 ac_prev=exec_prefix ;;
1031 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1032 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1033 | --exec=* | --exe=* | --ex=*)
1034 exec_prefix=$ac_optarg ;;
1036 -gas | --gas | --ga | --g)
1037 # Obsolete; use --with-gas.
1038 with_gas=yes ;;
1040 -help | --help | --hel | --he | -h)
1041 ac_init_help=long ;;
1042 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1043 ac_init_help=recursive ;;
1044 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1045 ac_init_help=short ;;
1047 -host | --host | --hos | --ho)
1048 ac_prev=host_alias ;;
1049 -host=* | --host=* | --hos=* | --ho=*)
1050 host_alias=$ac_optarg ;;
1052 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1053 ac_prev=htmldir ;;
1054 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1055 | --ht=*)
1056 htmldir=$ac_optarg ;;
1058 -includedir | --includedir | --includedi | --included | --include \
1059 | --includ | --inclu | --incl | --inc)
1060 ac_prev=includedir ;;
1061 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1062 | --includ=* | --inclu=* | --incl=* | --inc=*)
1063 includedir=$ac_optarg ;;
1065 -infodir | --infodir | --infodi | --infod | --info | --inf)
1066 ac_prev=infodir ;;
1067 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1068 infodir=$ac_optarg ;;
1070 -libdir | --libdir | --libdi | --libd)
1071 ac_prev=libdir ;;
1072 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1073 libdir=$ac_optarg ;;
1075 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1076 | --libexe | --libex | --libe)
1077 ac_prev=libexecdir ;;
1078 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1079 | --libexe=* | --libex=* | --libe=*)
1080 libexecdir=$ac_optarg ;;
1082 -localedir | --localedir | --localedi | --localed | --locale)
1083 ac_prev=localedir ;;
1084 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1085 localedir=$ac_optarg ;;
1087 -localstatedir | --localstatedir | --localstatedi | --localstated \
1088 | --localstate | --localstat | --localsta | --localst | --locals)
1089 ac_prev=localstatedir ;;
1090 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1091 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1092 localstatedir=$ac_optarg ;;
1094 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1095 ac_prev=mandir ;;
1096 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1097 mandir=$ac_optarg ;;
1099 -nfp | --nfp | --nf)
1100 # Obsolete; use --without-fp.
1101 with_fp=no ;;
1103 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1104 | --no-cr | --no-c | -n)
1105 no_create=yes ;;
1107 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1108 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1109 no_recursion=yes ;;
1111 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1112 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1113 | --oldin | --oldi | --old | --ol | --o)
1114 ac_prev=oldincludedir ;;
1115 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1116 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1117 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1118 oldincludedir=$ac_optarg ;;
1120 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1121 ac_prev=prefix ;;
1122 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1123 prefix=$ac_optarg ;;
1125 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1126 | --program-pre | --program-pr | --program-p)
1127 ac_prev=program_prefix ;;
1128 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1129 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1130 program_prefix=$ac_optarg ;;
1132 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1133 | --program-suf | --program-su | --program-s)
1134 ac_prev=program_suffix ;;
1135 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1136 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1137 program_suffix=$ac_optarg ;;
1139 -program-transform-name | --program-transform-name \
1140 | --program-transform-nam | --program-transform-na \
1141 | --program-transform-n | --program-transform- \
1142 | --program-transform | --program-transfor \
1143 | --program-transfo | --program-transf \
1144 | --program-trans | --program-tran \
1145 | --progr-tra | --program-tr | --program-t)
1146 ac_prev=program_transform_name ;;
1147 -program-transform-name=* | --program-transform-name=* \
1148 | --program-transform-nam=* | --program-transform-na=* \
1149 | --program-transform-n=* | --program-transform-=* \
1150 | --program-transform=* | --program-transfor=* \
1151 | --program-transfo=* | --program-transf=* \
1152 | --program-trans=* | --program-tran=* \
1153 | --progr-tra=* | --program-tr=* | --program-t=*)
1154 program_transform_name=$ac_optarg ;;
1156 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1157 ac_prev=pdfdir ;;
1158 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1159 pdfdir=$ac_optarg ;;
1161 -psdir | --psdir | --psdi | --psd | --ps)
1162 ac_prev=psdir ;;
1163 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1164 psdir=$ac_optarg ;;
1166 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1167 | -silent | --silent | --silen | --sile | --sil)
1168 silent=yes ;;
1170 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1171 ac_prev=sbindir ;;
1172 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1173 | --sbi=* | --sb=*)
1174 sbindir=$ac_optarg ;;
1176 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1177 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1178 | --sharedst | --shareds | --shared | --share | --shar \
1179 | --sha | --sh)
1180 ac_prev=sharedstatedir ;;
1181 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1182 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1183 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1184 | --sha=* | --sh=*)
1185 sharedstatedir=$ac_optarg ;;
1187 -site | --site | --sit)
1188 ac_prev=site ;;
1189 -site=* | --site=* | --sit=*)
1190 site=$ac_optarg ;;
1192 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1193 ac_prev=srcdir ;;
1194 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1195 srcdir=$ac_optarg ;;
1197 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1198 | --syscon | --sysco | --sysc | --sys | --sy)
1199 ac_prev=sysconfdir ;;
1200 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1201 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1202 sysconfdir=$ac_optarg ;;
1204 -target | --target | --targe | --targ | --tar | --ta | --t)
1205 ac_prev=target_alias ;;
1206 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1207 target_alias=$ac_optarg ;;
1209 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1210 verbose=yes ;;
1212 -version | --version | --versio | --versi | --vers | -V)
1213 ac_init_version=: ;;
1215 -with-* | --with-*)
1216 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1217 # Reject names that are not valid shell variable names.
1218 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1219 { echo "$as_me: error: invalid package name: $ac_package" >&2
1220 { (exit 1); exit 1; }; }
1221 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1222 eval with_$ac_package=\$ac_optarg ;;
1224 -without-* | --without-*)
1225 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1226 # Reject names that are not valid shell variable names.
1227 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1228 { echo "$as_me: error: invalid package name: $ac_package" >&2
1229 { (exit 1); exit 1; }; }
1230 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1231 eval with_$ac_package=no ;;
1233 --x)
1234 # Obsolete; use --with-x.
1235 with_x=yes ;;
1237 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1238 | --x-incl | --x-inc | --x-in | --x-i)
1239 ac_prev=x_includes ;;
1240 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1241 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1242 x_includes=$ac_optarg ;;
1244 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1245 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1246 ac_prev=x_libraries ;;
1247 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1248 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1249 x_libraries=$ac_optarg ;;
1251 -*) { echo "$as_me: error: unrecognized option: $ac_option
1252 Try \`$0 --help' for more information." >&2
1253 { (exit 1); exit 1; }; }
1256 *=*)
1257 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1258 # Reject names that are not valid shell variable names.
1259 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1260 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1261 { (exit 1); exit 1; }; }
1262 eval $ac_envvar=\$ac_optarg
1263 export $ac_envvar ;;
1266 # FIXME: should be removed in autoconf 3.0.
1267 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1268 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1269 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1270 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1273 esac
1274 done
1276 if test -n "$ac_prev"; then
1277 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1278 { echo "$as_me: error: missing argument to $ac_option" >&2
1279 { (exit 1); exit 1; }; }
1282 # Be sure to have absolute directory names.
1283 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1284 datadir sysconfdir sharedstatedir localstatedir includedir \
1285 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1286 libdir localedir mandir
1288 eval ac_val=\$$ac_var
1289 case $ac_val in
1290 [\\/$]* | ?:[\\/]* ) continue;;
1291 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1292 esac
1293 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1294 { (exit 1); exit 1; }; }
1295 done
1297 # There might be people who depend on the old broken behavior: `$host'
1298 # used to hold the argument of --host etc.
1299 # FIXME: To remove some day.
1300 build=$build_alias
1301 host=$host_alias
1302 target=$target_alias
1304 # FIXME: To remove some day.
1305 if test "x$host_alias" != x; then
1306 if test "x$build_alias" = x; then
1307 cross_compiling=maybe
1308 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1309 If a cross compiler is detected then cross compile mode will be used." >&2
1310 elif test "x$build_alias" != "x$host_alias"; then
1311 cross_compiling=yes
1315 ac_tool_prefix=
1316 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1318 test "$silent" = yes && exec 6>/dev/null
1321 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1322 ac_ls_di=`ls -di .` &&
1323 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1324 { echo "$as_me: error: Working directory cannot be determined" >&2
1325 { (exit 1); exit 1; }; }
1326 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1327 { echo "$as_me: error: pwd does not report name of working directory" >&2
1328 { (exit 1); exit 1; }; }
1331 # Find the source files, if location was not specified.
1332 if test -z "$srcdir"; then
1333 ac_srcdir_defaulted=yes
1334 # Try the directory containing this script, then the parent directory.
1335 ac_confdir=`$as_dirname -- "$0" ||
1336 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1337 X"$0" : 'X\(//\)[^/]' \| \
1338 X"$0" : 'X\(//\)$' \| \
1339 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1340 echo X"$0" |
1341 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1342 s//\1/
1345 /^X\(\/\/\)[^/].*/{
1346 s//\1/
1349 /^X\(\/\/\)$/{
1350 s//\1/
1353 /^X\(\/\).*/{
1354 s//\1/
1357 s/.*/./; q'`
1358 srcdir=$ac_confdir
1359 if test ! -r "$srcdir/$ac_unique_file"; then
1360 srcdir=..
1362 else
1363 ac_srcdir_defaulted=no
1365 if test ! -r "$srcdir/$ac_unique_file"; then
1366 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1367 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1368 { (exit 1); exit 1; }; }
1370 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1371 ac_abs_confdir=`(
1372 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1373 { (exit 1); exit 1; }; }
1374 pwd)`
1375 # When building in place, set srcdir=.
1376 if test "$ac_abs_confdir" = "$ac_pwd"; then
1377 srcdir=.
1379 # Remove unnecessary trailing slashes from srcdir.
1380 # Double slashes in file names in object file debugging info
1381 # mess up M-x gdb in Emacs.
1382 case $srcdir in
1383 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1384 esac
1385 for ac_var in $ac_precious_vars; do
1386 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1387 eval ac_env_${ac_var}_value=\$${ac_var}
1388 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1389 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1390 done
1393 # Report the --help message.
1395 if test "$ac_init_help" = "long"; then
1396 # Omit some internal or obsolete options to make the list less imposing.
1397 # This message is too long to be a string in the A/UX 3.1 sh.
1398 cat <<_ACEOF
1399 \`configure' configures this package to adapt to many kinds of systems.
1401 Usage: $0 [OPTION]... [VAR=VALUE]...
1403 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1404 VAR=VALUE. See below for descriptions of some of the useful variables.
1406 Defaults for the options are specified in brackets.
1408 Configuration:
1409 -h, --help display this help and exit
1410 --help=short display options specific to this package
1411 --help=recursive display the short help of all the included packages
1412 -V, --version display version information and exit
1413 -q, --quiet, --silent do not print \`checking...' messages
1414 --cache-file=FILE cache test results in FILE [disabled]
1415 -C, --config-cache alias for \`--cache-file=config.cache'
1416 -n, --no-create do not create output files
1417 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1419 Installation directories:
1420 --prefix=PREFIX install architecture-independent files in PREFIX
1421 [$ac_default_prefix]
1422 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1423 [PREFIX]
1425 By default, \`make install' will install all the files in
1426 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1427 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1428 for instance \`--prefix=\$HOME'.
1430 For better control, use the options below.
1432 Fine tuning of the installation directories:
1433 --bindir=DIR user executables [EPREFIX/bin]
1434 --sbindir=DIR system admin executables [EPREFIX/sbin]
1435 --libexecdir=DIR program executables [EPREFIX/libexec]
1436 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1437 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1438 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1439 --libdir=DIR object code libraries [EPREFIX/lib]
1440 --includedir=DIR C header files [PREFIX/include]
1441 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1442 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1443 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1444 --infodir=DIR info documentation [DATAROOTDIR/info]
1445 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1446 --mandir=DIR man documentation [DATAROOTDIR/man]
1447 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1448 --htmldir=DIR html documentation [DOCDIR]
1449 --dvidir=DIR dvi documentation [DOCDIR]
1450 --pdfdir=DIR pdf documentation [DOCDIR]
1451 --psdir=DIR ps documentation [DOCDIR]
1452 _ACEOF
1454 cat <<\_ACEOF
1456 Program names:
1457 --program-prefix=PREFIX prepend PREFIX to installed program names
1458 --program-suffix=SUFFIX append SUFFIX to installed program names
1459 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1461 System types:
1462 --build=BUILD configure for building on BUILD [guessed]
1463 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1464 _ACEOF
1467 if test -n "$ac_init_help"; then
1469 cat <<\_ACEOF
1471 Optional Features:
1472 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1473 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1474 --disable-dependency-tracking speeds up one-time build
1475 --enable-dependency-tracking do not reject slow dependency extractors
1476 --enable-shared[=PKGS] build shared libraries [default=yes]
1477 --enable-static[=PKGS] build static libraries [default=yes]
1478 --enable-fast-install[=PKGS]
1479 optimize for fast installation [default=yes]
1480 --disable-libtool-lock avoid locking (might break parallel builds)
1482 Optional Packages:
1483 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1484 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1485 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1486 --with-pic try to use only PIC/non-PIC objects [default=use
1487 both]
1488 --with-tags[=TAGS] include additional configurations [automatic]
1490 Some influential environment variables:
1491 CXX C++ compiler command
1492 CXXFLAGS C++ compiler flags
1493 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1494 nonstandard directory <lib dir>
1495 LIBS libraries to pass to the linker, e.g. -l<library>
1496 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1497 you have headers in a nonstandard directory <include dir>
1498 CC C compiler command
1499 CFLAGS C compiler flags
1500 CPP C preprocessor
1501 CXXCPP C++ preprocessor
1502 F77 Fortran 77 compiler command
1503 FFLAGS Fortran 77 compiler flags
1504 YACC The `Yet Another C Compiler' implementation to use. Defaults to
1505 the first program found out of: `bison -y', `byacc', `yacc'.
1506 YFLAGS The list of arguments that will be passed by default to $YACC.
1507 This script will default YFLAGS to the empty string to avoid a
1508 default value of `-d' given by some make applications.
1510 Use these variables to override the choices made by `configure' or to help
1511 it to find libraries and programs with nonstandard names/locations.
1513 _ACEOF
1514 ac_status=$?
1517 if test "$ac_init_help" = "recursive"; then
1518 # If there are subdirs, report their specific --help.
1519 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1520 test -d "$ac_dir" || continue
1521 ac_builddir=.
1523 case "$ac_dir" in
1524 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1526 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1527 # A ".." for each directory in $ac_dir_suffix.
1528 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1529 case $ac_top_builddir_sub in
1530 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1531 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1532 esac ;;
1533 esac
1534 ac_abs_top_builddir=$ac_pwd
1535 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1536 # for backward compatibility:
1537 ac_top_builddir=$ac_top_build_prefix
1539 case $srcdir in
1540 .) # We are building in place.
1541 ac_srcdir=.
1542 ac_top_srcdir=$ac_top_builddir_sub
1543 ac_abs_top_srcdir=$ac_pwd ;;
1544 [\\/]* | ?:[\\/]* ) # Absolute name.
1545 ac_srcdir=$srcdir$ac_dir_suffix;
1546 ac_top_srcdir=$srcdir
1547 ac_abs_top_srcdir=$srcdir ;;
1548 *) # Relative name.
1549 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1550 ac_top_srcdir=$ac_top_build_prefix$srcdir
1551 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1552 esac
1553 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1555 cd "$ac_dir" || { ac_status=$?; continue; }
1556 # Check for guested configure.
1557 if test -f "$ac_srcdir/configure.gnu"; then
1558 echo &&
1559 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1560 elif test -f "$ac_srcdir/configure"; then
1561 echo &&
1562 $SHELL "$ac_srcdir/configure" --help=recursive
1563 else
1564 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1565 fi || ac_status=$?
1566 cd "$ac_pwd" || { ac_status=$?; break; }
1567 done
1570 test -n "$ac_init_help" && exit $ac_status
1571 if $ac_init_version; then
1572 cat <<\_ACEOF
1573 configure
1574 generated by GNU Autoconf 2.61
1576 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1577 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1578 This configure script is free software; the Free Software Foundation
1579 gives unlimited permission to copy, distribute and modify it.
1580 _ACEOF
1581 exit
1583 cat >config.log <<_ACEOF
1584 This file contains any messages produced by compilers while
1585 running configure, to aid debugging if configure makes a mistake.
1587 It was created by $as_me, which was
1588 generated by GNU Autoconf 2.61. Invocation command line was
1590 $ $0 $@
1592 _ACEOF
1593 exec 5>>config.log
1595 cat <<_ASUNAME
1596 ## --------- ##
1597 ## Platform. ##
1598 ## --------- ##
1600 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1601 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1602 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1603 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1604 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1606 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1607 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1609 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1610 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1611 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1612 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1613 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1614 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1615 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1617 _ASUNAME
1619 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1620 for as_dir in $PATH
1622 IFS=$as_save_IFS
1623 test -z "$as_dir" && as_dir=.
1624 echo "PATH: $as_dir"
1625 done
1626 IFS=$as_save_IFS
1628 } >&5
1630 cat >&5 <<_ACEOF
1633 ## ----------- ##
1634 ## Core tests. ##
1635 ## ----------- ##
1637 _ACEOF
1640 # Keep a trace of the command line.
1641 # Strip out --no-create and --no-recursion so they do not pile up.
1642 # Strip out --silent because we don't want to record it for future runs.
1643 # Also quote any args containing shell meta-characters.
1644 # Make two passes to allow for proper duplicate-argument suppression.
1645 ac_configure_args=
1646 ac_configure_args0=
1647 ac_configure_args1=
1648 ac_must_keep_next=false
1649 for ac_pass in 1 2
1651 for ac_arg
1653 case $ac_arg in
1654 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1655 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1656 | -silent | --silent | --silen | --sile | --sil)
1657 continue ;;
1658 *\'*)
1659 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1660 esac
1661 case $ac_pass in
1662 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1664 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1665 if test $ac_must_keep_next = true; then
1666 ac_must_keep_next=false # Got value, back to normal.
1667 else
1668 case $ac_arg in
1669 *=* | --config-cache | -C | -disable-* | --disable-* \
1670 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1671 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1672 | -with-* | --with-* | -without-* | --without-* | --x)
1673 case "$ac_configure_args0 " in
1674 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1675 esac
1677 -* ) ac_must_keep_next=true ;;
1678 esac
1680 ac_configure_args="$ac_configure_args '$ac_arg'"
1682 esac
1683 done
1684 done
1685 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1686 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1688 # When interrupted or exit'd, cleanup temporary files, and complete
1689 # config.log. We remove comments because anyway the quotes in there
1690 # would cause problems or look ugly.
1691 # WARNING: Use '\'' to represent an apostrophe within the trap.
1692 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1693 trap 'exit_status=$?
1694 # Save into config.log some information that might help in debugging.
1696 echo
1698 cat <<\_ASBOX
1699 ## ---------------- ##
1700 ## Cache variables. ##
1701 ## ---------------- ##
1702 _ASBOX
1703 echo
1704 # The following way of writing the cache mishandles newlines in values,
1706 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1707 eval ac_val=\$$ac_var
1708 case $ac_val in #(
1709 *${as_nl}*)
1710 case $ac_var in #(
1711 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1712 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1713 esac
1714 case $ac_var in #(
1715 _ | IFS | as_nl) ;; #(
1716 *) $as_unset $ac_var ;;
1717 esac ;;
1718 esac
1719 done
1720 (set) 2>&1 |
1721 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1722 *${as_nl}ac_space=\ *)
1723 sed -n \
1724 "s/'\''/'\''\\\\'\'''\''/g;
1725 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1726 ;; #(
1728 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1730 esac |
1731 sort
1733 echo
1735 cat <<\_ASBOX
1736 ## ----------------- ##
1737 ## Output variables. ##
1738 ## ----------------- ##
1739 _ASBOX
1740 echo
1741 for ac_var in $ac_subst_vars
1743 eval ac_val=\$$ac_var
1744 case $ac_val in
1745 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1746 esac
1747 echo "$ac_var='\''$ac_val'\''"
1748 done | sort
1749 echo
1751 if test -n "$ac_subst_files"; then
1752 cat <<\_ASBOX
1753 ## ------------------- ##
1754 ## File substitutions. ##
1755 ## ------------------- ##
1756 _ASBOX
1757 echo
1758 for ac_var in $ac_subst_files
1760 eval ac_val=\$$ac_var
1761 case $ac_val in
1762 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1763 esac
1764 echo "$ac_var='\''$ac_val'\''"
1765 done | sort
1766 echo
1769 if test -s confdefs.h; then
1770 cat <<\_ASBOX
1771 ## ----------- ##
1772 ## confdefs.h. ##
1773 ## ----------- ##
1774 _ASBOX
1775 echo
1776 cat confdefs.h
1777 echo
1779 test "$ac_signal" != 0 &&
1780 echo "$as_me: caught signal $ac_signal"
1781 echo "$as_me: exit $exit_status"
1782 } >&5
1783 rm -f core *.core core.conftest.* &&
1784 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1785 exit $exit_status
1787 for ac_signal in 1 2 13 15; do
1788 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1789 done
1790 ac_signal=0
1792 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1793 rm -f -r conftest* confdefs.h
1795 # Predefined preprocessor variables.
1797 cat >>confdefs.h <<_ACEOF
1798 #define PACKAGE_NAME "$PACKAGE_NAME"
1799 _ACEOF
1802 cat >>confdefs.h <<_ACEOF
1803 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1804 _ACEOF
1807 cat >>confdefs.h <<_ACEOF
1808 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1809 _ACEOF
1812 cat >>confdefs.h <<_ACEOF
1813 #define PACKAGE_STRING "$PACKAGE_STRING"
1814 _ACEOF
1817 cat >>confdefs.h <<_ACEOF
1818 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1819 _ACEOF
1822 # Let the site file select an alternate cache file if it wants to.
1823 # Prefer explicitly selected file to automatically selected ones.
1824 if test -n "$CONFIG_SITE"; then
1825 set x "$CONFIG_SITE"
1826 elif test "x$prefix" != xNONE; then
1827 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1828 else
1829 set x "$ac_default_prefix/share/config.site" \
1830 "$ac_default_prefix/etc/config.site"
1832 shift
1833 for ac_site_file
1835 if test -r "$ac_site_file"; then
1836 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1837 echo "$as_me: loading site script $ac_site_file" >&6;}
1838 sed 's/^/| /' "$ac_site_file" >&5
1839 . "$ac_site_file"
1841 done
1843 if test -r "$cache_file"; then
1844 # Some versions of bash will fail to source /dev/null (special
1845 # files actually), so we avoid doing that.
1846 if test -f "$cache_file"; then
1847 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1848 echo "$as_me: loading cache $cache_file" >&6;}
1849 case $cache_file in
1850 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1851 *) . "./$cache_file";;
1852 esac
1854 else
1855 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1856 echo "$as_me: creating cache $cache_file" >&6;}
1857 >$cache_file
1860 # Check that the precious variables saved in the cache have kept the same
1861 # value.
1862 ac_cache_corrupted=false
1863 for ac_var in $ac_precious_vars; do
1864 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1865 eval ac_new_set=\$ac_env_${ac_var}_set
1866 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1867 eval ac_new_val=\$ac_env_${ac_var}_value
1868 case $ac_old_set,$ac_new_set in
1869 set,)
1870 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1871 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1872 ac_cache_corrupted=: ;;
1873 ,set)
1874 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1875 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1876 ac_cache_corrupted=: ;;
1877 ,);;
1879 if test "x$ac_old_val" != "x$ac_new_val"; then
1880 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1881 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1882 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1883 echo "$as_me: former value: $ac_old_val" >&2;}
1884 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1885 echo "$as_me: current value: $ac_new_val" >&2;}
1886 ac_cache_corrupted=:
1887 fi;;
1888 esac
1889 # Pass precious variables to config.status.
1890 if test "$ac_new_set" = set; then
1891 case $ac_new_val in
1892 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1893 *) ac_arg=$ac_var=$ac_new_val ;;
1894 esac
1895 case " $ac_configure_args " in
1896 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1897 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1898 esac
1900 done
1901 if $ac_cache_corrupted; then
1902 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1903 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1904 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1905 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1906 { (exit 1); exit 1; }; }
1925 ac_ext=c
1926 ac_cpp='$CPP $CPPFLAGS'
1927 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1928 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1929 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1933 ac_config_headers="$ac_config_headers config.h"
1935 am__api_version='1.10'
1937 ac_aux_dir=
1938 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1939 if test -f "$ac_dir/install-sh"; then
1940 ac_aux_dir=$ac_dir
1941 ac_install_sh="$ac_aux_dir/install-sh -c"
1942 break
1943 elif test -f "$ac_dir/install.sh"; then
1944 ac_aux_dir=$ac_dir
1945 ac_install_sh="$ac_aux_dir/install.sh -c"
1946 break
1947 elif test -f "$ac_dir/shtool"; then
1948 ac_aux_dir=$ac_dir
1949 ac_install_sh="$ac_aux_dir/shtool install -c"
1950 break
1952 done
1953 if test -z "$ac_aux_dir"; then
1954 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1955 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1956 { (exit 1); exit 1; }; }
1959 # These three variables are undocumented and unsupported,
1960 # and are intended to be withdrawn in a future Autoconf release.
1961 # They can cause serious problems if a builder's source tree is in a directory
1962 # whose full name contains unusual characters.
1963 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1964 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1965 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1968 # Find a good install program. We prefer a C program (faster),
1969 # so one script is as good as another. But avoid the broken or
1970 # incompatible versions:
1971 # SysV /etc/install, /usr/sbin/install
1972 # SunOS /usr/etc/install
1973 # IRIX /sbin/install
1974 # AIX /bin/install
1975 # AmigaOS /C/install, which installs bootblocks on floppy discs
1976 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1977 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1978 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1979 # OS/2's system install, which has a completely different semantic
1980 # ./install, which can be erroneously created by make from ./install.sh.
1981 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1982 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
1983 if test -z "$INSTALL"; then
1984 if test "${ac_cv_path_install+set}" = set; then
1985 echo $ECHO_N "(cached) $ECHO_C" >&6
1986 else
1987 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1988 for as_dir in $PATH
1990 IFS=$as_save_IFS
1991 test -z "$as_dir" && as_dir=.
1992 # Account for people who put trailing slashes in PATH elements.
1993 case $as_dir/ in
1994 ./ | .// | /cC/* | \
1995 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1996 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1997 /usr/ucb/* ) ;;
1999 # OSF1 and SCO ODT 3.0 have their own names for install.
2000 # Don't use installbsd from OSF since it installs stuff as root
2001 # by default.
2002 for ac_prog in ginstall scoinst install; do
2003 for ac_exec_ext in '' $ac_executable_extensions; do
2004 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2005 if test $ac_prog = install &&
2006 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2007 # AIX install. It has an incompatible calling convention.
2009 elif test $ac_prog = install &&
2010 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2011 # program-specific install script used by HP pwplus--don't use.
2013 else
2014 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2015 break 3
2018 done
2019 done
2021 esac
2022 done
2023 IFS=$as_save_IFS
2027 if test "${ac_cv_path_install+set}" = set; then
2028 INSTALL=$ac_cv_path_install
2029 else
2030 # As a last resort, use the slow shell script. Don't cache a
2031 # value for INSTALL within a source directory, because that will
2032 # break other packages using the cache if that directory is
2033 # removed, or if the value is a relative name.
2034 INSTALL=$ac_install_sh
2037 { echo "$as_me:$LINENO: result: $INSTALL" >&5
2038 echo "${ECHO_T}$INSTALL" >&6; }
2040 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2041 # It thinks the first close brace ends the variable substitution.
2042 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2044 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2046 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2048 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2049 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2050 # Just in case
2051 sleep 1
2052 echo timestamp > conftest.file
2053 # Do `set' in a subshell so we don't clobber the current shell's
2054 # arguments. Must try -L first in case configure is actually a
2055 # symlink; some systems play weird games with the mod time of symlinks
2056 # (eg FreeBSD returns the mod time of the symlink's containing
2057 # directory).
2058 if (
2059 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2060 if test "$*" = "X"; then
2061 # -L didn't work.
2062 set X `ls -t $srcdir/configure conftest.file`
2064 rm -f conftest.file
2065 if test "$*" != "X $srcdir/configure conftest.file" \
2066 && test "$*" != "X conftest.file $srcdir/configure"; then
2068 # If neither matched, then we have a broken ls. This can happen
2069 # if, for instance, CONFIG_SHELL is bash and it inherits a
2070 # broken ls alias from the environment. This has actually
2071 # happened. Such a system could not be considered "sane".
2072 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2073 alias in your environment" >&5
2074 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2075 alias in your environment" >&2;}
2076 { (exit 1); exit 1; }; }
2079 test "$2" = conftest.file
2081 then
2082 # Ok.
2084 else
2085 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2086 Check your system clock" >&5
2087 echo "$as_me: error: newly created file is older than distributed files!
2088 Check your system clock" >&2;}
2089 { (exit 1); exit 1; }; }
2091 { echo "$as_me:$LINENO: result: yes" >&5
2092 echo "${ECHO_T}yes" >&6; }
2093 test "$program_prefix" != NONE &&
2094 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2095 # Use a double $ so make ignores it.
2096 test "$program_suffix" != NONE &&
2097 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2098 # Double any \ or $. echo might interpret backslashes.
2099 # By default was `s,x,x', remove it if useless.
2100 cat <<\_ACEOF >conftest.sed
2101 s/[\\$]/&&/g;s/;s,x,x,$//
2102 _ACEOF
2103 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2104 rm -f conftest.sed
2106 # expand $ac_aux_dir to an absolute path
2107 am_aux_dir=`cd $ac_aux_dir && pwd`
2109 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2110 # Use eval to expand $SHELL
2111 if eval "$MISSING --run true"; then
2112 am_missing_run="$MISSING --run "
2113 else
2114 am_missing_run=
2115 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2116 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2119 { echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2120 echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
2121 if test -z "$MKDIR_P"; then
2122 if test "${ac_cv_path_mkdir+set}" = set; then
2123 echo $ECHO_N "(cached) $ECHO_C" >&6
2124 else
2125 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2126 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2128 IFS=$as_save_IFS
2129 test -z "$as_dir" && as_dir=.
2130 for ac_prog in mkdir gmkdir; do
2131 for ac_exec_ext in '' $ac_executable_extensions; do
2132 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2133 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2134 'mkdir (GNU coreutils) '* | \
2135 'mkdir (coreutils) '* | \
2136 'mkdir (fileutils) '4.1*)
2137 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2138 break 3;;
2139 esac
2140 done
2141 done
2142 done
2143 IFS=$as_save_IFS
2147 if test "${ac_cv_path_mkdir+set}" = set; then
2148 MKDIR_P="$ac_cv_path_mkdir -p"
2149 else
2150 # As a last resort, use the slow shell script. Don't cache a
2151 # value for MKDIR_P within a source directory, because that will
2152 # break other packages using the cache if that directory is
2153 # removed, or if the value is a relative name.
2154 test -d ./--version && rmdir ./--version
2155 MKDIR_P="$ac_install_sh -d"
2158 { echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2159 echo "${ECHO_T}$MKDIR_P" >&6; }
2161 mkdir_p="$MKDIR_P"
2162 case $mkdir_p in
2163 [\\/$]* | ?:[\\/]*) ;;
2164 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2165 esac
2167 for ac_prog in gawk mawk nawk awk
2169 # Extract the first word of "$ac_prog", so it can be a program name with args.
2170 set dummy $ac_prog; ac_word=$2
2171 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2172 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2173 if test "${ac_cv_prog_AWK+set}" = set; then
2174 echo $ECHO_N "(cached) $ECHO_C" >&6
2175 else
2176 if test -n "$AWK"; then
2177 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2178 else
2179 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2180 for as_dir in $PATH
2182 IFS=$as_save_IFS
2183 test -z "$as_dir" && as_dir=.
2184 for ac_exec_ext in '' $ac_executable_extensions; do
2185 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2186 ac_cv_prog_AWK="$ac_prog"
2187 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2188 break 2
2190 done
2191 done
2192 IFS=$as_save_IFS
2196 AWK=$ac_cv_prog_AWK
2197 if test -n "$AWK"; then
2198 { echo "$as_me:$LINENO: result: $AWK" >&5
2199 echo "${ECHO_T}$AWK" >&6; }
2200 else
2201 { echo "$as_me:$LINENO: result: no" >&5
2202 echo "${ECHO_T}no" >&6; }
2206 test -n "$AWK" && break
2207 done
2209 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2210 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2211 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2212 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2213 echo $ECHO_N "(cached) $ECHO_C" >&6
2214 else
2215 cat >conftest.make <<\_ACEOF
2216 SHELL = /bin/sh
2217 all:
2218 @echo '@@@%%%=$(MAKE)=@@@%%%'
2219 _ACEOF
2220 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2221 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2222 *@@@%%%=?*=@@@%%%*)
2223 eval ac_cv_prog_make_${ac_make}_set=yes;;
2225 eval ac_cv_prog_make_${ac_make}_set=no;;
2226 esac
2227 rm -f conftest.make
2229 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2230 { echo "$as_me:$LINENO: result: yes" >&5
2231 echo "${ECHO_T}yes" >&6; }
2232 SET_MAKE=
2233 else
2234 { echo "$as_me:$LINENO: result: no" >&5
2235 echo "${ECHO_T}no" >&6; }
2236 SET_MAKE="MAKE=${MAKE-make}"
2239 rm -rf .tst 2>/dev/null
2240 mkdir .tst 2>/dev/null
2241 if test -d .tst; then
2242 am__leading_dot=.
2243 else
2244 am__leading_dot=_
2246 rmdir .tst 2>/dev/null
2248 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2249 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2250 # is not polluted with repeated "-I."
2251 am__isrc=' -I$(srcdir)'
2252 # test to see if srcdir already configured
2253 if test -f $srcdir/config.status; then
2254 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2255 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2256 { (exit 1); exit 1; }; }
2260 # test whether we have cygpath
2261 if test -z "$CYGPATH_W"; then
2262 if (cygpath --version) >/dev/null 2>/dev/null; then
2263 CYGPATH_W='cygpath -w'
2264 else
2265 CYGPATH_W=echo
2270 # Define the identity of the package.
2271 PACKAGE=csql
2272 VERSION=0.1
2275 cat >>confdefs.h <<_ACEOF
2276 #define PACKAGE "$PACKAGE"
2277 _ACEOF
2280 cat >>confdefs.h <<_ACEOF
2281 #define VERSION "$VERSION"
2282 _ACEOF
2284 # Some tools Automake needs.
2286 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2289 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2292 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2295 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2298 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2300 install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
2302 # Installed binaries are usually stripped using `strip' when the user
2303 # run `make install-strip'. However `strip' might not be the right
2304 # tool to use in cross-compilation environments, therefore Automake
2305 # will honor the `STRIP' environment variable to overrule this program.
2306 if test "$cross_compiling" != no; then
2307 if test -n "$ac_tool_prefix"; then
2308 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2309 set dummy ${ac_tool_prefix}strip; ac_word=$2
2310 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2311 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2312 if test "${ac_cv_prog_STRIP+set}" = set; then
2313 echo $ECHO_N "(cached) $ECHO_C" >&6
2314 else
2315 if test -n "$STRIP"; then
2316 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2317 else
2318 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2319 for as_dir in $PATH
2321 IFS=$as_save_IFS
2322 test -z "$as_dir" && as_dir=.
2323 for ac_exec_ext in '' $ac_executable_extensions; do
2324 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2325 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2326 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2327 break 2
2329 done
2330 done
2331 IFS=$as_save_IFS
2335 STRIP=$ac_cv_prog_STRIP
2336 if test -n "$STRIP"; then
2337 { echo "$as_me:$LINENO: result: $STRIP" >&5
2338 echo "${ECHO_T}$STRIP" >&6; }
2339 else
2340 { echo "$as_me:$LINENO: result: no" >&5
2341 echo "${ECHO_T}no" >&6; }
2346 if test -z "$ac_cv_prog_STRIP"; then
2347 ac_ct_STRIP=$STRIP
2348 # Extract the first word of "strip", so it can be a program name with args.
2349 set dummy strip; ac_word=$2
2350 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2351 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2352 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2353 echo $ECHO_N "(cached) $ECHO_C" >&6
2354 else
2355 if test -n "$ac_ct_STRIP"; then
2356 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2357 else
2358 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2359 for as_dir in $PATH
2361 IFS=$as_save_IFS
2362 test -z "$as_dir" && as_dir=.
2363 for ac_exec_ext in '' $ac_executable_extensions; do
2364 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2365 ac_cv_prog_ac_ct_STRIP="strip"
2366 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2367 break 2
2369 done
2370 done
2371 IFS=$as_save_IFS
2375 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2376 if test -n "$ac_ct_STRIP"; then
2377 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2378 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2379 else
2380 { echo "$as_me:$LINENO: result: no" >&5
2381 echo "${ECHO_T}no" >&6; }
2384 if test "x$ac_ct_STRIP" = x; then
2385 STRIP=":"
2386 else
2387 case $cross_compiling:$ac_tool_warned in
2388 yes:)
2389 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2390 whose name does not start with the host triplet. If you think this
2391 configuration is useful to you, please write to autoconf@gnu.org." >&5
2392 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2393 whose name does not start with the host triplet. If you think this
2394 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2395 ac_tool_warned=yes ;;
2396 esac
2397 STRIP=$ac_ct_STRIP
2399 else
2400 STRIP="$ac_cv_prog_STRIP"
2404 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2406 # We need awk for the "check" target. The system "awk" is bad on
2407 # some platforms.
2408 # Always define AMTAR for backward compatibility.
2410 AMTAR=${AMTAR-"${am_missing_run}tar"}
2412 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2419 ac_ext=cpp
2420 ac_cpp='$CXXCPP $CPPFLAGS'
2421 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2422 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2423 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2425 ac_ext=cpp
2426 ac_cpp='$CXXCPP $CPPFLAGS'
2427 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2428 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2429 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2430 if test -z "$CXX"; then
2431 if test -n "$CCC"; then
2432 CXX=$CCC
2433 else
2434 if test -n "$ac_tool_prefix"; then
2435 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2437 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2438 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2439 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2440 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2441 if test "${ac_cv_prog_CXX+set}" = set; then
2442 echo $ECHO_N "(cached) $ECHO_C" >&6
2443 else
2444 if test -n "$CXX"; then
2445 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2446 else
2447 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2448 for as_dir in $PATH
2450 IFS=$as_save_IFS
2451 test -z "$as_dir" && as_dir=.
2452 for ac_exec_ext in '' $ac_executable_extensions; do
2453 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2454 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2455 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2456 break 2
2458 done
2459 done
2460 IFS=$as_save_IFS
2464 CXX=$ac_cv_prog_CXX
2465 if test -n "$CXX"; then
2466 { echo "$as_me:$LINENO: result: $CXX" >&5
2467 echo "${ECHO_T}$CXX" >&6; }
2468 else
2469 { echo "$as_me:$LINENO: result: no" >&5
2470 echo "${ECHO_T}no" >&6; }
2474 test -n "$CXX" && break
2475 done
2477 if test -z "$CXX"; then
2478 ac_ct_CXX=$CXX
2479 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2481 # Extract the first word of "$ac_prog", so it can be a program name with args.
2482 set dummy $ac_prog; ac_word=$2
2483 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2484 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2485 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2486 echo $ECHO_N "(cached) $ECHO_C" >&6
2487 else
2488 if test -n "$ac_ct_CXX"; then
2489 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2490 else
2491 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2492 for as_dir in $PATH
2494 IFS=$as_save_IFS
2495 test -z "$as_dir" && as_dir=.
2496 for ac_exec_ext in '' $ac_executable_extensions; do
2497 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2498 ac_cv_prog_ac_ct_CXX="$ac_prog"
2499 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2500 break 2
2502 done
2503 done
2504 IFS=$as_save_IFS
2508 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2509 if test -n "$ac_ct_CXX"; then
2510 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2511 echo "${ECHO_T}$ac_ct_CXX" >&6; }
2512 else
2513 { echo "$as_me:$LINENO: result: no" >&5
2514 echo "${ECHO_T}no" >&6; }
2518 test -n "$ac_ct_CXX" && break
2519 done
2521 if test "x$ac_ct_CXX" = x; then
2522 CXX="g++"
2523 else
2524 case $cross_compiling:$ac_tool_warned in
2525 yes:)
2526 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2527 whose name does not start with the host triplet. If you think this
2528 configuration is useful to you, please write to autoconf@gnu.org." >&5
2529 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2530 whose name does not start with the host triplet. If you think this
2531 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2532 ac_tool_warned=yes ;;
2533 esac
2534 CXX=$ac_ct_CXX
2540 # Provide some information about the compiler.
2541 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
2542 ac_compiler=`set X $ac_compile; echo $2`
2543 { (ac_try="$ac_compiler --version >&5"
2544 case "(($ac_try" in
2545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2546 *) ac_try_echo=$ac_try;;
2547 esac
2548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2549 (eval "$ac_compiler --version >&5") 2>&5
2550 ac_status=$?
2551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2552 (exit $ac_status); }
2553 { (ac_try="$ac_compiler -v >&5"
2554 case "(($ac_try" in
2555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2556 *) ac_try_echo=$ac_try;;
2557 esac
2558 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2559 (eval "$ac_compiler -v >&5") 2>&5
2560 ac_status=$?
2561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2562 (exit $ac_status); }
2563 { (ac_try="$ac_compiler -V >&5"
2564 case "(($ac_try" in
2565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2566 *) ac_try_echo=$ac_try;;
2567 esac
2568 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2569 (eval "$ac_compiler -V >&5") 2>&5
2570 ac_status=$?
2571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2572 (exit $ac_status); }
2574 cat >conftest.$ac_ext <<_ACEOF
2575 /* confdefs.h. */
2576 _ACEOF
2577 cat confdefs.h >>conftest.$ac_ext
2578 cat >>conftest.$ac_ext <<_ACEOF
2579 /* end confdefs.h. */
2582 main ()
2586 return 0;
2588 _ACEOF
2589 ac_clean_files_save=$ac_clean_files
2590 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2591 # Try to create an executable without -o first, disregard a.out.
2592 # It will help us diagnose broken compilers, and finding out an intuition
2593 # of exeext.
2594 { echo "$as_me:$LINENO: checking for C++ compiler default output file name" >&5
2595 echo $ECHO_N "checking for C++ compiler default output file name... $ECHO_C" >&6; }
2596 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2598 # List of possible output files, starting from the most likely.
2599 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2600 # only as a last resort. b.out is created by i960 compilers.
2601 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2603 # The IRIX 6 linker writes into existing files which may not be
2604 # executable, retaining their permissions. Remove them first so a
2605 # subsequent execution test works.
2606 ac_rmfiles=
2607 for ac_file in $ac_files
2609 case $ac_file in
2610 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2611 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2612 esac
2613 done
2614 rm -f $ac_rmfiles
2616 if { (ac_try="$ac_link_default"
2617 case "(($ac_try" in
2618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2619 *) ac_try_echo=$ac_try;;
2620 esac
2621 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2622 (eval "$ac_link_default") 2>&5
2623 ac_status=$?
2624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2625 (exit $ac_status); }; then
2626 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2627 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2628 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2629 # so that the user can short-circuit this test for compilers unknown to
2630 # Autoconf.
2631 for ac_file in $ac_files ''
2633 test -f "$ac_file" || continue
2634 case $ac_file in
2635 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2637 [ab].out )
2638 # We found the default executable, but exeext='' is most
2639 # certainly right.
2640 break;;
2641 *.* )
2642 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2643 then :; else
2644 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2646 # We set ac_cv_exeext here because the later test for it is not
2647 # safe: cross compilers may not add the suffix if given an `-o'
2648 # argument, so we may need to know it at that point already.
2649 # Even if this section looks crufty: it has the advantage of
2650 # actually working.
2651 break;;
2653 break;;
2654 esac
2655 done
2656 test "$ac_cv_exeext" = no && ac_cv_exeext=
2658 else
2659 ac_file=''
2662 { echo "$as_me:$LINENO: result: $ac_file" >&5
2663 echo "${ECHO_T}$ac_file" >&6; }
2664 if test -z "$ac_file"; then
2665 echo "$as_me: failed program was:" >&5
2666 sed 's/^/| /' conftest.$ac_ext >&5
2668 { { echo "$as_me:$LINENO: error: C++ compiler cannot create executables
2669 See \`config.log' for more details." >&5
2670 echo "$as_me: error: C++ compiler cannot create executables
2671 See \`config.log' for more details." >&2;}
2672 { (exit 77); exit 77; }; }
2675 ac_exeext=$ac_cv_exeext
2677 # Check that the compiler produces executables we can run. If not, either
2678 # the compiler is broken, or we cross compile.
2679 { echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
2680 echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6; }
2681 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2682 # If not cross compiling, check that we can run a simple program.
2683 if test "$cross_compiling" != yes; then
2684 if { ac_try='./$ac_file'
2685 { (case "(($ac_try" in
2686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2687 *) ac_try_echo=$ac_try;;
2688 esac
2689 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2690 (eval "$ac_try") 2>&5
2691 ac_status=$?
2692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2693 (exit $ac_status); }; }; then
2694 cross_compiling=no
2695 else
2696 if test "$cross_compiling" = maybe; then
2697 cross_compiling=yes
2698 else
2699 { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
2700 If you meant to cross compile, use \`--host'.
2701 See \`config.log' for more details." >&5
2702 echo "$as_me: error: cannot run C++ compiled programs.
2703 If you meant to cross compile, use \`--host'.
2704 See \`config.log' for more details." >&2;}
2705 { (exit 1); exit 1; }; }
2709 { echo "$as_me:$LINENO: result: yes" >&5
2710 echo "${ECHO_T}yes" >&6; }
2712 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2713 ac_clean_files=$ac_clean_files_save
2714 # Check that the compiler produces executables we can run. If not, either
2715 # the compiler is broken, or we cross compile.
2716 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2717 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2718 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2719 echo "${ECHO_T}$cross_compiling" >&6; }
2721 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2722 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2723 if { (ac_try="$ac_link"
2724 case "(($ac_try" in
2725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2726 *) ac_try_echo=$ac_try;;
2727 esac
2728 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2729 (eval "$ac_link") 2>&5
2730 ac_status=$?
2731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2732 (exit $ac_status); }; then
2733 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2734 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2735 # work properly (i.e., refer to `conftest.exe'), while it won't with
2736 # `rm'.
2737 for ac_file in conftest.exe conftest conftest.*; do
2738 test -f "$ac_file" || continue
2739 case $ac_file in
2740 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2741 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2742 break;;
2743 * ) break;;
2744 esac
2745 done
2746 else
2747 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2748 See \`config.log' for more details." >&5
2749 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2750 See \`config.log' for more details." >&2;}
2751 { (exit 1); exit 1; }; }
2754 rm -f conftest$ac_cv_exeext
2755 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2756 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2758 rm -f conftest.$ac_ext
2759 EXEEXT=$ac_cv_exeext
2760 ac_exeext=$EXEEXT
2761 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2762 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2763 if test "${ac_cv_objext+set}" = set; then
2764 echo $ECHO_N "(cached) $ECHO_C" >&6
2765 else
2766 cat >conftest.$ac_ext <<_ACEOF
2767 /* confdefs.h. */
2768 _ACEOF
2769 cat confdefs.h >>conftest.$ac_ext
2770 cat >>conftest.$ac_ext <<_ACEOF
2771 /* end confdefs.h. */
2774 main ()
2778 return 0;
2780 _ACEOF
2781 rm -f conftest.o conftest.obj
2782 if { (ac_try="$ac_compile"
2783 case "(($ac_try" in
2784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2785 *) ac_try_echo=$ac_try;;
2786 esac
2787 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2788 (eval "$ac_compile") 2>&5
2789 ac_status=$?
2790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2791 (exit $ac_status); }; then
2792 for ac_file in conftest.o conftest.obj conftest.*; do
2793 test -f "$ac_file" || continue;
2794 case $ac_file in
2795 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2796 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2797 break;;
2798 esac
2799 done
2800 else
2801 echo "$as_me: failed program was:" >&5
2802 sed 's/^/| /' conftest.$ac_ext >&5
2804 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2805 See \`config.log' for more details." >&5
2806 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2807 See \`config.log' for more details." >&2;}
2808 { (exit 1); exit 1; }; }
2811 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2813 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2814 echo "${ECHO_T}$ac_cv_objext" >&6; }
2815 OBJEXT=$ac_cv_objext
2816 ac_objext=$OBJEXT
2817 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2818 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
2819 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2820 echo $ECHO_N "(cached) $ECHO_C" >&6
2821 else
2822 cat >conftest.$ac_ext <<_ACEOF
2823 /* confdefs.h. */
2824 _ACEOF
2825 cat confdefs.h >>conftest.$ac_ext
2826 cat >>conftest.$ac_ext <<_ACEOF
2827 /* end confdefs.h. */
2830 main ()
2832 #ifndef __GNUC__
2833 choke me
2834 #endif
2837 return 0;
2839 _ACEOF
2840 rm -f conftest.$ac_objext
2841 if { (ac_try="$ac_compile"
2842 case "(($ac_try" in
2843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2844 *) ac_try_echo=$ac_try;;
2845 esac
2846 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2847 (eval "$ac_compile") 2>conftest.er1
2848 ac_status=$?
2849 grep -v '^ *+' conftest.er1 >conftest.err
2850 rm -f conftest.er1
2851 cat conftest.err >&5
2852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2853 (exit $ac_status); } && {
2854 test -z "$ac_cxx_werror_flag" ||
2855 test ! -s conftest.err
2856 } && test -s conftest.$ac_objext; then
2857 ac_compiler_gnu=yes
2858 else
2859 echo "$as_me: failed program was:" >&5
2860 sed 's/^/| /' conftest.$ac_ext >&5
2862 ac_compiler_gnu=no
2865 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2866 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2869 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2870 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
2871 GXX=`test $ac_compiler_gnu = yes && echo yes`
2872 ac_test_CXXFLAGS=${CXXFLAGS+set}
2873 ac_save_CXXFLAGS=$CXXFLAGS
2874 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2875 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
2876 if test "${ac_cv_prog_cxx_g+set}" = set; then
2877 echo $ECHO_N "(cached) $ECHO_C" >&6
2878 else
2879 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
2880 ac_cxx_werror_flag=yes
2881 ac_cv_prog_cxx_g=no
2882 CXXFLAGS="-g"
2883 cat >conftest.$ac_ext <<_ACEOF
2884 /* confdefs.h. */
2885 _ACEOF
2886 cat confdefs.h >>conftest.$ac_ext
2887 cat >>conftest.$ac_ext <<_ACEOF
2888 /* end confdefs.h. */
2891 main ()
2895 return 0;
2897 _ACEOF
2898 rm -f conftest.$ac_objext
2899 if { (ac_try="$ac_compile"
2900 case "(($ac_try" in
2901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2902 *) ac_try_echo=$ac_try;;
2903 esac
2904 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2905 (eval "$ac_compile") 2>conftest.er1
2906 ac_status=$?
2907 grep -v '^ *+' conftest.er1 >conftest.err
2908 rm -f conftest.er1
2909 cat conftest.err >&5
2910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2911 (exit $ac_status); } && {
2912 test -z "$ac_cxx_werror_flag" ||
2913 test ! -s conftest.err
2914 } && test -s conftest.$ac_objext; then
2915 ac_cv_prog_cxx_g=yes
2916 else
2917 echo "$as_me: failed program was:" >&5
2918 sed 's/^/| /' conftest.$ac_ext >&5
2920 CXXFLAGS=""
2921 cat >conftest.$ac_ext <<_ACEOF
2922 /* confdefs.h. */
2923 _ACEOF
2924 cat confdefs.h >>conftest.$ac_ext
2925 cat >>conftest.$ac_ext <<_ACEOF
2926 /* end confdefs.h. */
2929 main ()
2933 return 0;
2935 _ACEOF
2936 rm -f conftest.$ac_objext
2937 if { (ac_try="$ac_compile"
2938 case "(($ac_try" in
2939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2940 *) ac_try_echo=$ac_try;;
2941 esac
2942 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2943 (eval "$ac_compile") 2>conftest.er1
2944 ac_status=$?
2945 grep -v '^ *+' conftest.er1 >conftest.err
2946 rm -f conftest.er1
2947 cat conftest.err >&5
2948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2949 (exit $ac_status); } && {
2950 test -z "$ac_cxx_werror_flag" ||
2951 test ! -s conftest.err
2952 } && test -s conftest.$ac_objext; then
2954 else
2955 echo "$as_me: failed program was:" >&5
2956 sed 's/^/| /' conftest.$ac_ext >&5
2958 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
2959 CXXFLAGS="-g"
2960 cat >conftest.$ac_ext <<_ACEOF
2961 /* confdefs.h. */
2962 _ACEOF
2963 cat confdefs.h >>conftest.$ac_ext
2964 cat >>conftest.$ac_ext <<_ACEOF
2965 /* end confdefs.h. */
2968 main ()
2972 return 0;
2974 _ACEOF
2975 rm -f conftest.$ac_objext
2976 if { (ac_try="$ac_compile"
2977 case "(($ac_try" in
2978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2979 *) ac_try_echo=$ac_try;;
2980 esac
2981 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2982 (eval "$ac_compile") 2>conftest.er1
2983 ac_status=$?
2984 grep -v '^ *+' conftest.er1 >conftest.err
2985 rm -f conftest.er1
2986 cat conftest.err >&5
2987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2988 (exit $ac_status); } && {
2989 test -z "$ac_cxx_werror_flag" ||
2990 test ! -s conftest.err
2991 } && test -s conftest.$ac_objext; then
2992 ac_cv_prog_cxx_g=yes
2993 else
2994 echo "$as_me: failed program was:" >&5
2995 sed 's/^/| /' conftest.$ac_ext >&5
3000 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3003 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3006 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3007 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3009 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3010 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3011 if test "$ac_test_CXXFLAGS" = set; then
3012 CXXFLAGS=$ac_save_CXXFLAGS
3013 elif test $ac_cv_prog_cxx_g = yes; then
3014 if test "$GXX" = yes; then
3015 CXXFLAGS="-g -O2"
3016 else
3017 CXXFLAGS="-g"
3019 else
3020 if test "$GXX" = yes; then
3021 CXXFLAGS="-O2"
3022 else
3023 CXXFLAGS=
3026 ac_ext=cpp
3027 ac_cpp='$CXXCPP $CPPFLAGS'
3028 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3029 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3030 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3031 DEPDIR="${am__leading_dot}deps"
3033 ac_config_commands="$ac_config_commands depfiles"
3036 am_make=${MAKE-make}
3037 cat > confinc << 'END'
3038 am__doit:
3039 @echo done
3040 .PHONY: am__doit
3042 # If we don't find an include directive, just comment out the code.
3043 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3044 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
3045 am__include="#"
3046 am__quote=
3047 _am_result=none
3048 # First try GNU make style include.
3049 echo "include confinc" > confmf
3050 # We grep out `Entering directory' and `Leaving directory'
3051 # messages which can occur if `w' ends up in MAKEFLAGS.
3052 # In particular we don't look at `^make:' because GNU make might
3053 # be invoked under some other name (usually "gmake"), in which
3054 # case it prints its new name instead of `make'.
3055 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3056 am__include=include
3057 am__quote=
3058 _am_result=GNU
3060 # Now try BSD make style include.
3061 if test "$am__include" = "#"; then
3062 echo '.include "confinc"' > confmf
3063 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3064 am__include=.include
3065 am__quote="\""
3066 _am_result=BSD
3071 { echo "$as_me:$LINENO: result: $_am_result" >&5
3072 echo "${ECHO_T}$_am_result" >&6; }
3073 rm -f confinc confmf
3075 # Check whether --enable-dependency-tracking was given.
3076 if test "${enable_dependency_tracking+set}" = set; then
3077 enableval=$enable_dependency_tracking;
3080 if test "x$enable_dependency_tracking" != xno; then
3081 am_depcomp="$ac_aux_dir/depcomp"
3082 AMDEPBACKSLASH='\'
3084 if test "x$enable_dependency_tracking" != xno; then
3085 AMDEP_TRUE=
3086 AMDEP_FALSE='#'
3087 else
3088 AMDEP_TRUE='#'
3089 AMDEP_FALSE=
3094 depcc="$CXX" am_compiler_list=
3096 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3097 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3098 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
3099 echo $ECHO_N "(cached) $ECHO_C" >&6
3100 else
3101 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3102 # We make a subdir and do the tests there. Otherwise we can end up
3103 # making bogus files that we don't know about and never remove. For
3104 # instance it was reported that on HP-UX the gcc test will end up
3105 # making a dummy file named `D' -- because `-MD' means `put the output
3106 # in D'.
3107 mkdir conftest.dir
3108 # Copy depcomp to subdir because otherwise we won't find it if we're
3109 # using a relative directory.
3110 cp "$am_depcomp" conftest.dir
3111 cd conftest.dir
3112 # We will build objects and dependencies in a subdirectory because
3113 # it helps to detect inapplicable dependency modes. For instance
3114 # both Tru64's cc and ICC support -MD to output dependencies as a
3115 # side effect of compilation, but ICC will put the dependencies in
3116 # the current directory while Tru64 will put them in the object
3117 # directory.
3118 mkdir sub
3120 am_cv_CXX_dependencies_compiler_type=none
3121 if test "$am_compiler_list" = ""; then
3122 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3124 for depmode in $am_compiler_list; do
3125 # Setup a source with many dependencies, because some compilers
3126 # like to wrap large dependency lists on column 80 (with \), and
3127 # we should not choose a depcomp mode which is confused by this.
3129 # We need to recreate these files for each test, as the compiler may
3130 # overwrite some of them when testing with obscure command lines.
3131 # This happens at least with the AIX C compiler.
3132 : > sub/conftest.c
3133 for i in 1 2 3 4 5 6; do
3134 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3135 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3136 # Solaris 8's {/usr,}/bin/sh.
3137 touch sub/conftst$i.h
3138 done
3139 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3141 case $depmode in
3142 nosideeffect)
3143 # after this tag, mechanisms are not by side-effect, so they'll
3144 # only be used when explicitly requested
3145 if test "x$enable_dependency_tracking" = xyes; then
3146 continue
3147 else
3148 break
3151 none) break ;;
3152 esac
3153 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3154 # mode. It turns out that the SunPro C++ compiler does not properly
3155 # handle `-M -o', and we need to detect this.
3156 if depmode=$depmode \
3157 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3158 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3159 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3160 >/dev/null 2>conftest.err &&
3161 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3162 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3163 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3164 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3165 # icc doesn't choke on unknown options, it will just issue warnings
3166 # or remarks (even with -Werror). So we grep stderr for any message
3167 # that says an option was ignored or not supported.
3168 # When given -MP, icc 7.0 and 7.1 complain thusly:
3169 # icc: Command line warning: ignoring option '-M'; no argument required
3170 # The diagnosis changed in icc 8.0:
3171 # icc: Command line remark: option '-MP' not supported
3172 if (grep 'ignoring option' conftest.err ||
3173 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3174 am_cv_CXX_dependencies_compiler_type=$depmode
3175 break
3178 done
3180 cd ..
3181 rm -rf conftest.dir
3182 else
3183 am_cv_CXX_dependencies_compiler_type=none
3187 { echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
3188 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
3189 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
3192 test "x$enable_dependency_tracking" != xno \
3193 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
3194 am__fastdepCXX_TRUE=
3195 am__fastdepCXX_FALSE='#'
3196 else
3197 am__fastdepCXX_TRUE='#'
3198 am__fastdepCXX_FALSE=
3203 # Check whether --enable-shared was given.
3204 if test "${enable_shared+set}" = set; then
3205 enableval=$enable_shared; p=${PACKAGE-default}
3206 case $enableval in
3207 yes) enable_shared=yes ;;
3208 no) enable_shared=no ;;
3210 enable_shared=no
3211 # Look at the argument we got. We use all the common list separators.
3212 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3213 for pkg in $enableval; do
3214 IFS="$lt_save_ifs"
3215 if test "X$pkg" = "X$p"; then
3216 enable_shared=yes
3218 done
3219 IFS="$lt_save_ifs"
3221 esac
3222 else
3223 enable_shared=yes
3227 # Check whether --enable-static was given.
3228 if test "${enable_static+set}" = set; then
3229 enableval=$enable_static; p=${PACKAGE-default}
3230 case $enableval in
3231 yes) enable_static=yes ;;
3232 no) enable_static=no ;;
3234 enable_static=no
3235 # Look at the argument we got. We use all the common list separators.
3236 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3237 for pkg in $enableval; do
3238 IFS="$lt_save_ifs"
3239 if test "X$pkg" = "X$p"; then
3240 enable_static=yes
3242 done
3243 IFS="$lt_save_ifs"
3245 esac
3246 else
3247 enable_static=yes
3251 # Check whether --enable-fast-install was given.
3252 if test "${enable_fast_install+set}" = set; then
3253 enableval=$enable_fast_install; p=${PACKAGE-default}
3254 case $enableval in
3255 yes) enable_fast_install=yes ;;
3256 no) enable_fast_install=no ;;
3258 enable_fast_install=no
3259 # Look at the argument we got. We use all the common list separators.
3260 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3261 for pkg in $enableval; do
3262 IFS="$lt_save_ifs"
3263 if test "X$pkg" = "X$p"; then
3264 enable_fast_install=yes
3266 done
3267 IFS="$lt_save_ifs"
3269 esac
3270 else
3271 enable_fast_install=yes
3275 # Make sure we can run config.sub.
3276 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3277 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3278 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3279 { (exit 1); exit 1; }; }
3281 { echo "$as_me:$LINENO: checking build system type" >&5
3282 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
3283 if test "${ac_cv_build+set}" = set; then
3284 echo $ECHO_N "(cached) $ECHO_C" >&6
3285 else
3286 ac_build_alias=$build_alias
3287 test "x$ac_build_alias" = x &&
3288 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3289 test "x$ac_build_alias" = x &&
3290 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3291 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3292 { (exit 1); exit 1; }; }
3293 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3294 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3295 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3296 { (exit 1); exit 1; }; }
3299 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3300 echo "${ECHO_T}$ac_cv_build" >&6; }
3301 case $ac_cv_build in
3302 *-*-*) ;;
3303 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3304 echo "$as_me: error: invalid value of canonical build" >&2;}
3305 { (exit 1); exit 1; }; };;
3306 esac
3307 build=$ac_cv_build
3308 ac_save_IFS=$IFS; IFS='-'
3309 set x $ac_cv_build
3310 shift
3311 build_cpu=$1
3312 build_vendor=$2
3313 shift; shift
3314 # Remember, the first character of IFS is used to create $*,
3315 # except with old shells:
3316 build_os=$*
3317 IFS=$ac_save_IFS
3318 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3321 { echo "$as_me:$LINENO: checking host system type" >&5
3322 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
3323 if test "${ac_cv_host+set}" = set; then
3324 echo $ECHO_N "(cached) $ECHO_C" >&6
3325 else
3326 if test "x$host_alias" = x; then
3327 ac_cv_host=$ac_cv_build
3328 else
3329 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3330 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3331 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3332 { (exit 1); exit 1; }; }
3336 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3337 echo "${ECHO_T}$ac_cv_host" >&6; }
3338 case $ac_cv_host in
3339 *-*-*) ;;
3340 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3341 echo "$as_me: error: invalid value of canonical host" >&2;}
3342 { (exit 1); exit 1; }; };;
3343 esac
3344 host=$ac_cv_host
3345 ac_save_IFS=$IFS; IFS='-'
3346 set x $ac_cv_host
3347 shift
3348 host_cpu=$1
3349 host_vendor=$2
3350 shift; shift
3351 # Remember, the first character of IFS is used to create $*,
3352 # except with old shells:
3353 host_os=$*
3354 IFS=$ac_save_IFS
3355 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3358 ac_ext=c
3359 ac_cpp='$CPP $CPPFLAGS'
3360 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3361 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3362 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3363 if test -n "$ac_tool_prefix"; then
3364 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3365 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3366 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3367 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3368 if test "${ac_cv_prog_CC+set}" = set; then
3369 echo $ECHO_N "(cached) $ECHO_C" >&6
3370 else
3371 if test -n "$CC"; then
3372 ac_cv_prog_CC="$CC" # Let the user override the test.
3373 else
3374 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3375 for as_dir in $PATH
3377 IFS=$as_save_IFS
3378 test -z "$as_dir" && as_dir=.
3379 for ac_exec_ext in '' $ac_executable_extensions; do
3380 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3381 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3382 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3383 break 2
3385 done
3386 done
3387 IFS=$as_save_IFS
3391 CC=$ac_cv_prog_CC
3392 if test -n "$CC"; then
3393 { echo "$as_me:$LINENO: result: $CC" >&5
3394 echo "${ECHO_T}$CC" >&6; }
3395 else
3396 { echo "$as_me:$LINENO: result: no" >&5
3397 echo "${ECHO_T}no" >&6; }
3402 if test -z "$ac_cv_prog_CC"; then
3403 ac_ct_CC=$CC
3404 # Extract the first word of "gcc", so it can be a program name with args.
3405 set dummy gcc; ac_word=$2
3406 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3407 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3408 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3409 echo $ECHO_N "(cached) $ECHO_C" >&6
3410 else
3411 if test -n "$ac_ct_CC"; then
3412 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3413 else
3414 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3415 for as_dir in $PATH
3417 IFS=$as_save_IFS
3418 test -z "$as_dir" && as_dir=.
3419 for ac_exec_ext in '' $ac_executable_extensions; do
3420 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3421 ac_cv_prog_ac_ct_CC="gcc"
3422 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3423 break 2
3425 done
3426 done
3427 IFS=$as_save_IFS
3431 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3432 if test -n "$ac_ct_CC"; then
3433 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3434 echo "${ECHO_T}$ac_ct_CC" >&6; }
3435 else
3436 { echo "$as_me:$LINENO: result: no" >&5
3437 echo "${ECHO_T}no" >&6; }
3440 if test "x$ac_ct_CC" = x; then
3441 CC=""
3442 else
3443 case $cross_compiling:$ac_tool_warned in
3444 yes:)
3445 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3446 whose name does not start with the host triplet. If you think this
3447 configuration is useful to you, please write to autoconf@gnu.org." >&5
3448 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3449 whose name does not start with the host triplet. If you think this
3450 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3451 ac_tool_warned=yes ;;
3452 esac
3453 CC=$ac_ct_CC
3455 else
3456 CC="$ac_cv_prog_CC"
3459 if test -z "$CC"; then
3460 if test -n "$ac_tool_prefix"; then
3461 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3462 set dummy ${ac_tool_prefix}cc; ac_word=$2
3463 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3464 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3465 if test "${ac_cv_prog_CC+set}" = set; then
3466 echo $ECHO_N "(cached) $ECHO_C" >&6
3467 else
3468 if test -n "$CC"; then
3469 ac_cv_prog_CC="$CC" # Let the user override the test.
3470 else
3471 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3472 for as_dir in $PATH
3474 IFS=$as_save_IFS
3475 test -z "$as_dir" && as_dir=.
3476 for ac_exec_ext in '' $ac_executable_extensions; do
3477 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3478 ac_cv_prog_CC="${ac_tool_prefix}cc"
3479 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3480 break 2
3482 done
3483 done
3484 IFS=$as_save_IFS
3488 CC=$ac_cv_prog_CC
3489 if test -n "$CC"; then
3490 { echo "$as_me:$LINENO: result: $CC" >&5
3491 echo "${ECHO_T}$CC" >&6; }
3492 else
3493 { echo "$as_me:$LINENO: result: no" >&5
3494 echo "${ECHO_T}no" >&6; }
3500 if test -z "$CC"; then
3501 # Extract the first word of "cc", so it can be a program name with args.
3502 set dummy cc; ac_word=$2
3503 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3504 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3505 if test "${ac_cv_prog_CC+set}" = set; then
3506 echo $ECHO_N "(cached) $ECHO_C" >&6
3507 else
3508 if test -n "$CC"; then
3509 ac_cv_prog_CC="$CC" # Let the user override the test.
3510 else
3511 ac_prog_rejected=no
3512 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3513 for as_dir in $PATH
3515 IFS=$as_save_IFS
3516 test -z "$as_dir" && as_dir=.
3517 for ac_exec_ext in '' $ac_executable_extensions; do
3518 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3519 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3520 ac_prog_rejected=yes
3521 continue
3523 ac_cv_prog_CC="cc"
3524 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3525 break 2
3527 done
3528 done
3529 IFS=$as_save_IFS
3531 if test $ac_prog_rejected = yes; then
3532 # We found a bogon in the path, so make sure we never use it.
3533 set dummy $ac_cv_prog_CC
3534 shift
3535 if test $# != 0; then
3536 # We chose a different compiler from the bogus one.
3537 # However, it has the same basename, so the bogon will be chosen
3538 # first if we set CC to just the basename; use the full file name.
3539 shift
3540 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3545 CC=$ac_cv_prog_CC
3546 if test -n "$CC"; then
3547 { echo "$as_me:$LINENO: result: $CC" >&5
3548 echo "${ECHO_T}$CC" >&6; }
3549 else
3550 { echo "$as_me:$LINENO: result: no" >&5
3551 echo "${ECHO_T}no" >&6; }
3556 if test -z "$CC"; then
3557 if test -n "$ac_tool_prefix"; then
3558 for ac_prog in cl.exe
3560 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3561 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3562 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3563 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3564 if test "${ac_cv_prog_CC+set}" = set; then
3565 echo $ECHO_N "(cached) $ECHO_C" >&6
3566 else
3567 if test -n "$CC"; then
3568 ac_cv_prog_CC="$CC" # Let the user override the test.
3569 else
3570 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3571 for as_dir in $PATH
3573 IFS=$as_save_IFS
3574 test -z "$as_dir" && as_dir=.
3575 for ac_exec_ext in '' $ac_executable_extensions; do
3576 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3577 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3578 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3579 break 2
3581 done
3582 done
3583 IFS=$as_save_IFS
3587 CC=$ac_cv_prog_CC
3588 if test -n "$CC"; then
3589 { echo "$as_me:$LINENO: result: $CC" >&5
3590 echo "${ECHO_T}$CC" >&6; }
3591 else
3592 { echo "$as_me:$LINENO: result: no" >&5
3593 echo "${ECHO_T}no" >&6; }
3597 test -n "$CC" && break
3598 done
3600 if test -z "$CC"; then
3601 ac_ct_CC=$CC
3602 for ac_prog in cl.exe
3604 # Extract the first word of "$ac_prog", so it can be a program name with args.
3605 set dummy $ac_prog; ac_word=$2
3606 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3607 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3608 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3609 echo $ECHO_N "(cached) $ECHO_C" >&6
3610 else
3611 if test -n "$ac_ct_CC"; then
3612 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3613 else
3614 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3615 for as_dir in $PATH
3617 IFS=$as_save_IFS
3618 test -z "$as_dir" && as_dir=.
3619 for ac_exec_ext in '' $ac_executable_extensions; do
3620 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3621 ac_cv_prog_ac_ct_CC="$ac_prog"
3622 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3623 break 2
3625 done
3626 done
3627 IFS=$as_save_IFS
3631 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3632 if test -n "$ac_ct_CC"; then
3633 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3634 echo "${ECHO_T}$ac_ct_CC" >&6; }
3635 else
3636 { echo "$as_me:$LINENO: result: no" >&5
3637 echo "${ECHO_T}no" >&6; }
3641 test -n "$ac_ct_CC" && break
3642 done
3644 if test "x$ac_ct_CC" = x; then
3645 CC=""
3646 else
3647 case $cross_compiling:$ac_tool_warned in
3648 yes:)
3649 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3650 whose name does not start with the host triplet. If you think this
3651 configuration is useful to you, please write to autoconf@gnu.org." >&5
3652 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3653 whose name does not start with the host triplet. If you think this
3654 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3655 ac_tool_warned=yes ;;
3656 esac
3657 CC=$ac_ct_CC
3664 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3665 See \`config.log' for more details." >&5
3666 echo "$as_me: error: no acceptable C compiler found in \$PATH
3667 See \`config.log' for more details." >&2;}
3668 { (exit 1); exit 1; }; }
3670 # Provide some information about the compiler.
3671 echo "$as_me:$LINENO: checking for C compiler version" >&5
3672 ac_compiler=`set X $ac_compile; echo $2`
3673 { (ac_try="$ac_compiler --version >&5"
3674 case "(($ac_try" in
3675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3676 *) ac_try_echo=$ac_try;;
3677 esac
3678 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3679 (eval "$ac_compiler --version >&5") 2>&5
3680 ac_status=$?
3681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3682 (exit $ac_status); }
3683 { (ac_try="$ac_compiler -v >&5"
3684 case "(($ac_try" in
3685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3686 *) ac_try_echo=$ac_try;;
3687 esac
3688 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3689 (eval "$ac_compiler -v >&5") 2>&5
3690 ac_status=$?
3691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3692 (exit $ac_status); }
3693 { (ac_try="$ac_compiler -V >&5"
3694 case "(($ac_try" in
3695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3696 *) ac_try_echo=$ac_try;;
3697 esac
3698 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3699 (eval "$ac_compiler -V >&5") 2>&5
3700 ac_status=$?
3701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3702 (exit $ac_status); }
3704 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3705 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3706 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3707 echo $ECHO_N "(cached) $ECHO_C" >&6
3708 else
3709 cat >conftest.$ac_ext <<_ACEOF
3710 /* confdefs.h. */
3711 _ACEOF
3712 cat confdefs.h >>conftest.$ac_ext
3713 cat >>conftest.$ac_ext <<_ACEOF
3714 /* end confdefs.h. */
3717 main ()
3719 #ifndef __GNUC__
3720 choke me
3721 #endif
3724 return 0;
3726 _ACEOF
3727 rm -f conftest.$ac_objext
3728 if { (ac_try="$ac_compile"
3729 case "(($ac_try" in
3730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3731 *) ac_try_echo=$ac_try;;
3732 esac
3733 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3734 (eval "$ac_compile") 2>conftest.er1
3735 ac_status=$?
3736 grep -v '^ *+' conftest.er1 >conftest.err
3737 rm -f conftest.er1
3738 cat conftest.err >&5
3739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3740 (exit $ac_status); } && {
3741 test -z "$ac_c_werror_flag" ||
3742 test ! -s conftest.err
3743 } && test -s conftest.$ac_objext; then
3744 ac_compiler_gnu=yes
3745 else
3746 echo "$as_me: failed program was:" >&5
3747 sed 's/^/| /' conftest.$ac_ext >&5
3749 ac_compiler_gnu=no
3752 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3753 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3756 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3757 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3758 GCC=`test $ac_compiler_gnu = yes && echo yes`
3759 ac_test_CFLAGS=${CFLAGS+set}
3760 ac_save_CFLAGS=$CFLAGS
3761 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3762 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3763 if test "${ac_cv_prog_cc_g+set}" = set; then
3764 echo $ECHO_N "(cached) $ECHO_C" >&6
3765 else
3766 ac_save_c_werror_flag=$ac_c_werror_flag
3767 ac_c_werror_flag=yes
3768 ac_cv_prog_cc_g=no
3769 CFLAGS="-g"
3770 cat >conftest.$ac_ext <<_ACEOF
3771 /* confdefs.h. */
3772 _ACEOF
3773 cat confdefs.h >>conftest.$ac_ext
3774 cat >>conftest.$ac_ext <<_ACEOF
3775 /* end confdefs.h. */
3778 main ()
3782 return 0;
3784 _ACEOF
3785 rm -f conftest.$ac_objext
3786 if { (ac_try="$ac_compile"
3787 case "(($ac_try" in
3788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3789 *) ac_try_echo=$ac_try;;
3790 esac
3791 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3792 (eval "$ac_compile") 2>conftest.er1
3793 ac_status=$?
3794 grep -v '^ *+' conftest.er1 >conftest.err
3795 rm -f conftest.er1
3796 cat conftest.err >&5
3797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3798 (exit $ac_status); } && {
3799 test -z "$ac_c_werror_flag" ||
3800 test ! -s conftest.err
3801 } && test -s conftest.$ac_objext; then
3802 ac_cv_prog_cc_g=yes
3803 else
3804 echo "$as_me: failed program was:" >&5
3805 sed 's/^/| /' conftest.$ac_ext >&5
3807 CFLAGS=""
3808 cat >conftest.$ac_ext <<_ACEOF
3809 /* confdefs.h. */
3810 _ACEOF
3811 cat confdefs.h >>conftest.$ac_ext
3812 cat >>conftest.$ac_ext <<_ACEOF
3813 /* end confdefs.h. */
3816 main ()
3820 return 0;
3822 _ACEOF
3823 rm -f conftest.$ac_objext
3824 if { (ac_try="$ac_compile"
3825 case "(($ac_try" in
3826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3827 *) ac_try_echo=$ac_try;;
3828 esac
3829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3830 (eval "$ac_compile") 2>conftest.er1
3831 ac_status=$?
3832 grep -v '^ *+' conftest.er1 >conftest.err
3833 rm -f conftest.er1
3834 cat conftest.err >&5
3835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3836 (exit $ac_status); } && {
3837 test -z "$ac_c_werror_flag" ||
3838 test ! -s conftest.err
3839 } && test -s conftest.$ac_objext; then
3841 else
3842 echo "$as_me: failed program was:" >&5
3843 sed 's/^/| /' conftest.$ac_ext >&5
3845 ac_c_werror_flag=$ac_save_c_werror_flag
3846 CFLAGS="-g"
3847 cat >conftest.$ac_ext <<_ACEOF
3848 /* confdefs.h. */
3849 _ACEOF
3850 cat confdefs.h >>conftest.$ac_ext
3851 cat >>conftest.$ac_ext <<_ACEOF
3852 /* end confdefs.h. */
3855 main ()
3859 return 0;
3861 _ACEOF
3862 rm -f conftest.$ac_objext
3863 if { (ac_try="$ac_compile"
3864 case "(($ac_try" in
3865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3866 *) ac_try_echo=$ac_try;;
3867 esac
3868 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3869 (eval "$ac_compile") 2>conftest.er1
3870 ac_status=$?
3871 grep -v '^ *+' conftest.er1 >conftest.err
3872 rm -f conftest.er1
3873 cat conftest.err >&5
3874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3875 (exit $ac_status); } && {
3876 test -z "$ac_c_werror_flag" ||
3877 test ! -s conftest.err
3878 } && test -s conftest.$ac_objext; then
3879 ac_cv_prog_cc_g=yes
3880 else
3881 echo "$as_me: failed program was:" >&5
3882 sed 's/^/| /' conftest.$ac_ext >&5
3887 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3890 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3893 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3894 ac_c_werror_flag=$ac_save_c_werror_flag
3896 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3897 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3898 if test "$ac_test_CFLAGS" = set; then
3899 CFLAGS=$ac_save_CFLAGS
3900 elif test $ac_cv_prog_cc_g = yes; then
3901 if test "$GCC" = yes; then
3902 CFLAGS="-g -O2"
3903 else
3904 CFLAGS="-g"
3906 else
3907 if test "$GCC" = yes; then
3908 CFLAGS="-O2"
3909 else
3910 CFLAGS=
3913 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3914 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3915 if test "${ac_cv_prog_cc_c89+set}" = set; then
3916 echo $ECHO_N "(cached) $ECHO_C" >&6
3917 else
3918 ac_cv_prog_cc_c89=no
3919 ac_save_CC=$CC
3920 cat >conftest.$ac_ext <<_ACEOF
3921 /* confdefs.h. */
3922 _ACEOF
3923 cat confdefs.h >>conftest.$ac_ext
3924 cat >>conftest.$ac_ext <<_ACEOF
3925 /* end confdefs.h. */
3926 #include <stdarg.h>
3927 #include <stdio.h>
3928 #include <sys/types.h>
3929 #include <sys/stat.h>
3930 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3931 struct buf { int x; };
3932 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3933 static char *e (p, i)
3934 char **p;
3935 int i;
3937 return p[i];
3939 static char *f (char * (*g) (char **, int), char **p, ...)
3941 char *s;
3942 va_list v;
3943 va_start (v,p);
3944 s = g (p, va_arg (v,int));
3945 va_end (v);
3946 return s;
3949 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3950 function prototypes and stuff, but not '\xHH' hex character constants.
3951 These don't provoke an error unfortunately, instead are silently treated
3952 as 'x'. The following induces an error, until -std is added to get
3953 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3954 array size at least. It's necessary to write '\x00'==0 to get something
3955 that's true only with -std. */
3956 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3958 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3959 inside strings and character constants. */
3960 #define FOO(x) 'x'
3961 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3963 int test (int i, double x);
3964 struct s1 {int (*f) (int a);};
3965 struct s2 {int (*f) (double a);};
3966 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3967 int argc;
3968 char **argv;
3970 main ()
3972 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3974 return 0;
3976 _ACEOF
3977 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3978 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3980 CC="$ac_save_CC $ac_arg"
3981 rm -f conftest.$ac_objext
3982 if { (ac_try="$ac_compile"
3983 case "(($ac_try" in
3984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3985 *) ac_try_echo=$ac_try;;
3986 esac
3987 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3988 (eval "$ac_compile") 2>conftest.er1
3989 ac_status=$?
3990 grep -v '^ *+' conftest.er1 >conftest.err
3991 rm -f conftest.er1
3992 cat conftest.err >&5
3993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3994 (exit $ac_status); } && {
3995 test -z "$ac_c_werror_flag" ||
3996 test ! -s conftest.err
3997 } && test -s conftest.$ac_objext; then
3998 ac_cv_prog_cc_c89=$ac_arg
3999 else
4000 echo "$as_me: failed program was:" >&5
4001 sed 's/^/| /' conftest.$ac_ext >&5
4006 rm -f core conftest.err conftest.$ac_objext
4007 test "x$ac_cv_prog_cc_c89" != "xno" && break
4008 done
4009 rm -f conftest.$ac_ext
4010 CC=$ac_save_CC
4013 # AC_CACHE_VAL
4014 case "x$ac_cv_prog_cc_c89" in
4016 { echo "$as_me:$LINENO: result: none needed" >&5
4017 echo "${ECHO_T}none needed" >&6; } ;;
4018 xno)
4019 { echo "$as_me:$LINENO: result: unsupported" >&5
4020 echo "${ECHO_T}unsupported" >&6; } ;;
4022 CC="$CC $ac_cv_prog_cc_c89"
4023 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
4024 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
4025 esac
4028 ac_ext=cpp
4029 ac_cpp='$CXXCPP $CPPFLAGS'
4030 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4031 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4032 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4034 depcc="$CC" am_compiler_list=
4036 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4037 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
4038 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
4039 echo $ECHO_N "(cached) $ECHO_C" >&6
4040 else
4041 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4042 # We make a subdir and do the tests there. Otherwise we can end up
4043 # making bogus files that we don't know about and never remove. For
4044 # instance it was reported that on HP-UX the gcc test will end up
4045 # making a dummy file named `D' -- because `-MD' means `put the output
4046 # in D'.
4047 mkdir conftest.dir
4048 # Copy depcomp to subdir because otherwise we won't find it if we're
4049 # using a relative directory.
4050 cp "$am_depcomp" conftest.dir
4051 cd conftest.dir
4052 # We will build objects and dependencies in a subdirectory because
4053 # it helps to detect inapplicable dependency modes. For instance
4054 # both Tru64's cc and ICC support -MD to output dependencies as a
4055 # side effect of compilation, but ICC will put the dependencies in
4056 # the current directory while Tru64 will put them in the object
4057 # directory.
4058 mkdir sub
4060 am_cv_CC_dependencies_compiler_type=none
4061 if test "$am_compiler_list" = ""; then
4062 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4064 for depmode in $am_compiler_list; do
4065 # Setup a source with many dependencies, because some compilers
4066 # like to wrap large dependency lists on column 80 (with \), and
4067 # we should not choose a depcomp mode which is confused by this.
4069 # We need to recreate these files for each test, as the compiler may
4070 # overwrite some of them when testing with obscure command lines.
4071 # This happens at least with the AIX C compiler.
4072 : > sub/conftest.c
4073 for i in 1 2 3 4 5 6; do
4074 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4075 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4076 # Solaris 8's {/usr,}/bin/sh.
4077 touch sub/conftst$i.h
4078 done
4079 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4081 case $depmode in
4082 nosideeffect)
4083 # after this tag, mechanisms are not by side-effect, so they'll
4084 # only be used when explicitly requested
4085 if test "x$enable_dependency_tracking" = xyes; then
4086 continue
4087 else
4088 break
4091 none) break ;;
4092 esac
4093 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4094 # mode. It turns out that the SunPro C++ compiler does not properly
4095 # handle `-M -o', and we need to detect this.
4096 if depmode=$depmode \
4097 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4098 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4099 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4100 >/dev/null 2>conftest.err &&
4101 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4102 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4103 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4104 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4105 # icc doesn't choke on unknown options, it will just issue warnings
4106 # or remarks (even with -Werror). So we grep stderr for any message
4107 # that says an option was ignored or not supported.
4108 # When given -MP, icc 7.0 and 7.1 complain thusly:
4109 # icc: Command line warning: ignoring option '-M'; no argument required
4110 # The diagnosis changed in icc 8.0:
4111 # icc: Command line remark: option '-MP' not supported
4112 if (grep 'ignoring option' conftest.err ||
4113 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4114 am_cv_CC_dependencies_compiler_type=$depmode
4115 break
4118 done
4120 cd ..
4121 rm -rf conftest.dir
4122 else
4123 am_cv_CC_dependencies_compiler_type=none
4127 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
4128 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
4129 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4132 test "x$enable_dependency_tracking" != xno \
4133 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4134 am__fastdepCC_TRUE=
4135 am__fastdepCC_FALSE='#'
4136 else
4137 am__fastdepCC_TRUE='#'
4138 am__fastdepCC_FALSE=
4142 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4143 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
4144 if test "${lt_cv_path_SED+set}" = set; then
4145 echo $ECHO_N "(cached) $ECHO_C" >&6
4146 else
4147 # Loop through the user's path and test for sed and gsed.
4148 # Then use that list of sed's as ones to test for truncation.
4149 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4150 for as_dir in $PATH
4152 IFS=$as_save_IFS
4153 test -z "$as_dir" && as_dir=.
4154 for lt_ac_prog in sed gsed; do
4155 for ac_exec_ext in '' $ac_executable_extensions; do
4156 if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then
4157 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
4159 done
4160 done
4161 done
4162 IFS=$as_save_IFS
4163 lt_ac_max=0
4164 lt_ac_count=0
4165 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
4166 # along with /bin/sed that truncates output.
4167 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
4168 test ! -f $lt_ac_sed && continue
4169 cat /dev/null > conftest.in
4170 lt_ac_count=0
4171 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
4172 # Check for GNU sed and select it if it is found.
4173 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
4174 lt_cv_path_SED=$lt_ac_sed
4175 break
4177 while true; do
4178 cat conftest.in conftest.in >conftest.tmp
4179 mv conftest.tmp conftest.in
4180 cp conftest.in conftest.nl
4181 echo >>conftest.nl
4182 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
4183 cmp -s conftest.out conftest.nl || break
4184 # 10000 chars as input seems more than enough
4185 test $lt_ac_count -gt 10 && break
4186 lt_ac_count=`expr $lt_ac_count + 1`
4187 if test $lt_ac_count -gt $lt_ac_max; then
4188 lt_ac_max=$lt_ac_count
4189 lt_cv_path_SED=$lt_ac_sed
4191 done
4192 done
4196 SED=$lt_cv_path_SED
4198 { echo "$as_me:$LINENO: result: $SED" >&5
4199 echo "${ECHO_T}$SED" >&6; }
4201 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4202 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4203 if test "${ac_cv_path_GREP+set}" = set; then
4204 echo $ECHO_N "(cached) $ECHO_C" >&6
4205 else
4206 # Extract the first word of "grep ggrep" to use in msg output
4207 if test -z "$GREP"; then
4208 set dummy grep ggrep; ac_prog_name=$2
4209 if test "${ac_cv_path_GREP+set}" = set; then
4210 echo $ECHO_N "(cached) $ECHO_C" >&6
4211 else
4212 ac_path_GREP_found=false
4213 # Loop through the user's path and test for each of PROGNAME-LIST
4214 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4215 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4217 IFS=$as_save_IFS
4218 test -z "$as_dir" && as_dir=.
4219 for ac_prog in grep ggrep; do
4220 for ac_exec_ext in '' $ac_executable_extensions; do
4221 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4222 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4223 # Check for GNU ac_path_GREP and select it if it is found.
4224 # Check for GNU $ac_path_GREP
4225 case `"$ac_path_GREP" --version 2>&1` in
4226 *GNU*)
4227 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4229 ac_count=0
4230 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4231 while :
4233 cat "conftest.in" "conftest.in" >"conftest.tmp"
4234 mv "conftest.tmp" "conftest.in"
4235 cp "conftest.in" "conftest.nl"
4236 echo 'GREP' >> "conftest.nl"
4237 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4238 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4239 ac_count=`expr $ac_count + 1`
4240 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4241 # Best one so far, save it but keep looking for a better one
4242 ac_cv_path_GREP="$ac_path_GREP"
4243 ac_path_GREP_max=$ac_count
4245 # 10*(2^10) chars as input seems more than enough
4246 test $ac_count -gt 10 && break
4247 done
4248 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4249 esac
4252 $ac_path_GREP_found && break 3
4253 done
4254 done
4256 done
4257 IFS=$as_save_IFS
4262 GREP="$ac_cv_path_GREP"
4263 if test -z "$GREP"; then
4264 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4265 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4266 { (exit 1); exit 1; }; }
4269 else
4270 ac_cv_path_GREP=$GREP
4275 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4276 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4277 GREP="$ac_cv_path_GREP"
4280 { echo "$as_me:$LINENO: checking for egrep" >&5
4281 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4282 if test "${ac_cv_path_EGREP+set}" = set; then
4283 echo $ECHO_N "(cached) $ECHO_C" >&6
4284 else
4285 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4286 then ac_cv_path_EGREP="$GREP -E"
4287 else
4288 # Extract the first word of "egrep" to use in msg output
4289 if test -z "$EGREP"; then
4290 set dummy egrep; ac_prog_name=$2
4291 if test "${ac_cv_path_EGREP+set}" = set; then
4292 echo $ECHO_N "(cached) $ECHO_C" >&6
4293 else
4294 ac_path_EGREP_found=false
4295 # Loop through the user's path and test for each of PROGNAME-LIST
4296 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4297 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4299 IFS=$as_save_IFS
4300 test -z "$as_dir" && as_dir=.
4301 for ac_prog in egrep; do
4302 for ac_exec_ext in '' $ac_executable_extensions; do
4303 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4304 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4305 # Check for GNU ac_path_EGREP and select it if it is found.
4306 # Check for GNU $ac_path_EGREP
4307 case `"$ac_path_EGREP" --version 2>&1` in
4308 *GNU*)
4309 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4311 ac_count=0
4312 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4313 while :
4315 cat "conftest.in" "conftest.in" >"conftest.tmp"
4316 mv "conftest.tmp" "conftest.in"
4317 cp "conftest.in" "conftest.nl"
4318 echo 'EGREP' >> "conftest.nl"
4319 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4320 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4321 ac_count=`expr $ac_count + 1`
4322 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4323 # Best one so far, save it but keep looking for a better one
4324 ac_cv_path_EGREP="$ac_path_EGREP"
4325 ac_path_EGREP_max=$ac_count
4327 # 10*(2^10) chars as input seems more than enough
4328 test $ac_count -gt 10 && break
4329 done
4330 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4331 esac
4334 $ac_path_EGREP_found && break 3
4335 done
4336 done
4338 done
4339 IFS=$as_save_IFS
4344 EGREP="$ac_cv_path_EGREP"
4345 if test -z "$EGREP"; then
4346 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4347 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4348 { (exit 1); exit 1; }; }
4351 else
4352 ac_cv_path_EGREP=$EGREP
4358 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4359 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4360 EGREP="$ac_cv_path_EGREP"
4364 # Check whether --with-gnu-ld was given.
4365 if test "${with_gnu_ld+set}" = set; then
4366 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4367 else
4368 with_gnu_ld=no
4371 ac_prog=ld
4372 if test "$GCC" = yes; then
4373 # Check if gcc -print-prog-name=ld gives a path.
4374 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4375 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
4376 case $host in
4377 *-*-mingw*)
4378 # gcc leaves a trailing carriage return which upsets mingw
4379 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4381 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4382 esac
4383 case $ac_prog in
4384 # Accept absolute paths.
4385 [\\/]* | ?:[\\/]*)
4386 re_direlt='/[^/][^/]*/\.\./'
4387 # Canonicalize the pathname of ld
4388 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
4389 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4390 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4391 done
4392 test -z "$LD" && LD="$ac_prog"
4395 # If it fails, then pretend we aren't using GCC.
4396 ac_prog=ld
4399 # If it is relative, then search for the first ld in PATH.
4400 with_gnu_ld=unknown
4402 esac
4403 elif test "$with_gnu_ld" = yes; then
4404 { echo "$as_me:$LINENO: checking for GNU ld" >&5
4405 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
4406 else
4407 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4408 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
4410 if test "${lt_cv_path_LD+set}" = set; then
4411 echo $ECHO_N "(cached) $ECHO_C" >&6
4412 else
4413 if test -z "$LD"; then
4414 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4415 for ac_dir in $PATH; do
4416 IFS="$lt_save_ifs"
4417 test -z "$ac_dir" && ac_dir=.
4418 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4419 lt_cv_path_LD="$ac_dir/$ac_prog"
4420 # Check to see if the program is GNU ld. I'd rather use --version,
4421 # but apparently some variants of GNU ld only accept -v.
4422 # Break only if it was the GNU/non-GNU ld that we prefer.
4423 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4424 *GNU* | *'with BFD'*)
4425 test "$with_gnu_ld" != no && break
4428 test "$with_gnu_ld" != yes && break
4430 esac
4432 done
4433 IFS="$lt_save_ifs"
4434 else
4435 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4439 LD="$lt_cv_path_LD"
4440 if test -n "$LD"; then
4441 { echo "$as_me:$LINENO: result: $LD" >&5
4442 echo "${ECHO_T}$LD" >&6; }
4443 else
4444 { echo "$as_me:$LINENO: result: no" >&5
4445 echo "${ECHO_T}no" >&6; }
4447 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4448 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4449 { (exit 1); exit 1; }; }
4450 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4451 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
4452 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4453 echo $ECHO_N "(cached) $ECHO_C" >&6
4454 else
4455 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4456 case `$LD -v 2>&1 </dev/null` in
4457 *GNU* | *'with BFD'*)
4458 lt_cv_prog_gnu_ld=yes
4461 lt_cv_prog_gnu_ld=no
4463 esac
4465 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4466 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
4467 with_gnu_ld=$lt_cv_prog_gnu_ld
4470 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4471 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
4472 if test "${lt_cv_ld_reload_flag+set}" = set; then
4473 echo $ECHO_N "(cached) $ECHO_C" >&6
4474 else
4475 lt_cv_ld_reload_flag='-r'
4477 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4478 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
4479 reload_flag=$lt_cv_ld_reload_flag
4480 case $reload_flag in
4481 "" | " "*) ;;
4482 *) reload_flag=" $reload_flag" ;;
4483 esac
4484 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4485 case $host_os in
4486 darwin*)
4487 if test "$GCC" = yes; then
4488 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4489 else
4490 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4493 esac
4495 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4496 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
4497 if test "${lt_cv_path_NM+set}" = set; then
4498 echo $ECHO_N "(cached) $ECHO_C" >&6
4499 else
4500 if test -n "$NM"; then
4501 # Let the user override the test.
4502 lt_cv_path_NM="$NM"
4503 else
4504 lt_nm_to_check="${ac_tool_prefix}nm"
4505 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4506 lt_nm_to_check="$lt_nm_to_check nm"
4508 for lt_tmp_nm in $lt_nm_to_check; do
4509 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4510 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4511 IFS="$lt_save_ifs"
4512 test -z "$ac_dir" && ac_dir=.
4513 tmp_nm="$ac_dir/$lt_tmp_nm"
4514 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4515 # Check to see if the nm accepts a BSD-compat flag.
4516 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4517 # nm: unknown option "B" ignored
4518 # Tru64's nm complains that /dev/null is an invalid object file
4519 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4520 */dev/null* | *'Invalid file or object type'*)
4521 lt_cv_path_NM="$tmp_nm -B"
4522 break
4525 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4526 */dev/null*)
4527 lt_cv_path_NM="$tmp_nm -p"
4528 break
4531 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4532 continue # so that we can try to find one that supports BSD flags
4534 esac
4536 esac
4538 done
4539 IFS="$lt_save_ifs"
4540 done
4541 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4544 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4545 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
4546 NM="$lt_cv_path_NM"
4548 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
4549 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4550 LN_S=$as_ln_s
4551 if test "$LN_S" = "ln -s"; then
4552 { echo "$as_me:$LINENO: result: yes" >&5
4553 echo "${ECHO_T}yes" >&6; }
4554 else
4555 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4556 echo "${ECHO_T}no, using $LN_S" >&6; }
4559 { echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
4560 echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6; }
4561 if test "${lt_cv_deplibs_check_method+set}" = set; then
4562 echo $ECHO_N "(cached) $ECHO_C" >&6
4563 else
4564 lt_cv_file_magic_cmd='$MAGIC_CMD'
4565 lt_cv_file_magic_test_file=
4566 lt_cv_deplibs_check_method='unknown'
4567 # Need to set the preceding variable on all platforms that support
4568 # interlibrary dependencies.
4569 # 'none' -- dependencies not supported.
4570 # `unknown' -- same as none, but documents that we really don't know.
4571 # 'pass_all' -- all dependencies passed with no checks.
4572 # 'test_compile' -- check by making test program.
4573 # 'file_magic [[regex]]' -- check by looking for files in library path
4574 # which responds to the $file_magic_cmd with a given extended regex.
4575 # If you have `file' or equivalent on your system and you're not sure
4576 # whether `pass_all' will *always* work, you probably want this one.
4578 case $host_os in
4579 aix4* | aix5*)
4580 lt_cv_deplibs_check_method=pass_all
4583 beos*)
4584 lt_cv_deplibs_check_method=pass_all
4587 bsdi[45]*)
4588 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4589 lt_cv_file_magic_cmd='/usr/bin/file -L'
4590 lt_cv_file_magic_test_file=/shlib/libc.so
4593 cygwin*)
4594 # func_win32_libid is a shell function defined in ltmain.sh
4595 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4596 lt_cv_file_magic_cmd='func_win32_libid'
4599 mingw* | pw32*)
4600 # Base MSYS/MinGW do not provide the 'file' command needed by
4601 # func_win32_libid shell function, so use a weaker test based on 'objdump',
4602 # unless we find 'file', for example because we are cross-compiling.
4603 if ( file / ) >/dev/null 2>&1; then
4604 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4605 lt_cv_file_magic_cmd='func_win32_libid'
4606 else
4607 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4608 lt_cv_file_magic_cmd='$OBJDUMP -f'
4612 darwin* | rhapsody*)
4613 lt_cv_deplibs_check_method=pass_all
4616 freebsd* | dragonfly*)
4617 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4618 case $host_cpu in
4619 i*86 )
4620 # Not sure whether the presence of OpenBSD here was a mistake.
4621 # Let's accept both of them until this is cleared up.
4622 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4623 lt_cv_file_magic_cmd=/usr/bin/file
4624 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4626 esac
4627 else
4628 lt_cv_deplibs_check_method=pass_all
4632 gnu*)
4633 lt_cv_deplibs_check_method=pass_all
4636 hpux10.20* | hpux11*)
4637 lt_cv_file_magic_cmd=/usr/bin/file
4638 case $host_cpu in
4639 ia64*)
4640 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4641 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4643 hppa*64*)
4644 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]'
4645 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4648 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4649 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4651 esac
4654 interix[3-9]*)
4655 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4656 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4659 irix5* | irix6* | nonstopux*)
4660 case $LD in
4661 *-32|*"-32 ") libmagic=32-bit;;
4662 *-n32|*"-n32 ") libmagic=N32;;
4663 *-64|*"-64 ") libmagic=64-bit;;
4664 *) libmagic=never-match;;
4665 esac
4666 lt_cv_deplibs_check_method=pass_all
4669 # This must be Linux ELF.
4670 linux* | k*bsd*-gnu)
4671 lt_cv_deplibs_check_method=pass_all
4674 netbsd*)
4675 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4676 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4677 else
4678 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4682 newos6*)
4683 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4684 lt_cv_file_magic_cmd=/usr/bin/file
4685 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4688 nto-qnx*)
4689 lt_cv_deplibs_check_method=unknown
4692 openbsd*)
4693 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4694 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4695 else
4696 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4700 osf3* | osf4* | osf5*)
4701 lt_cv_deplibs_check_method=pass_all
4704 rdos*)
4705 lt_cv_deplibs_check_method=pass_all
4708 solaris*)
4709 lt_cv_deplibs_check_method=pass_all
4712 sysv4 | sysv4.3*)
4713 case $host_vendor in
4714 motorola)
4715 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]'
4716 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4718 ncr)
4719 lt_cv_deplibs_check_method=pass_all
4721 sequent)
4722 lt_cv_file_magic_cmd='/bin/file'
4723 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4725 sni)
4726 lt_cv_file_magic_cmd='/bin/file'
4727 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4728 lt_cv_file_magic_test_file=/lib/libc.so
4730 siemens)
4731 lt_cv_deplibs_check_method=pass_all
4734 lt_cv_deplibs_check_method=pass_all
4736 esac
4739 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4740 lt_cv_deplibs_check_method=pass_all
4742 esac
4745 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4746 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
4747 file_magic_cmd=$lt_cv_file_magic_cmd
4748 deplibs_check_method=$lt_cv_deplibs_check_method
4749 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4754 # If no C compiler was specified, use CC.
4755 LTCC=${LTCC-"$CC"}
4757 # If no C compiler flags were specified, use CFLAGS.
4758 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4760 # Allow CC to be a program name with arguments.
4761 compiler=$CC
4764 # Check whether --enable-libtool-lock was given.
4765 if test "${enable_libtool_lock+set}" = set; then
4766 enableval=$enable_libtool_lock;
4769 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4771 # Some flags need to be propagated to the compiler or linker for good
4772 # libtool support.
4773 case $host in
4774 ia64-*-hpux*)
4775 # Find out which ABI we are using.
4776 echo 'int i;' > conftest.$ac_ext
4777 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4778 (eval $ac_compile) 2>&5
4779 ac_status=$?
4780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4781 (exit $ac_status); }; then
4782 case `/usr/bin/file conftest.$ac_objext` in
4783 *ELF-32*)
4784 HPUX_IA64_MODE="32"
4786 *ELF-64*)
4787 HPUX_IA64_MODE="64"
4789 esac
4791 rm -rf conftest*
4793 *-*-irix6*)
4794 # Find out which ABI we are using.
4795 echo '#line 4795 "configure"' > conftest.$ac_ext
4796 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4797 (eval $ac_compile) 2>&5
4798 ac_status=$?
4799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4800 (exit $ac_status); }; then
4801 if test "$lt_cv_prog_gnu_ld" = yes; then
4802 case `/usr/bin/file conftest.$ac_objext` in
4803 *32-bit*)
4804 LD="${LD-ld} -melf32bsmip"
4806 *N32*)
4807 LD="${LD-ld} -melf32bmipn32"
4809 *64-bit*)
4810 LD="${LD-ld} -melf64bmip"
4812 esac
4813 else
4814 case `/usr/bin/file conftest.$ac_objext` in
4815 *32-bit*)
4816 LD="${LD-ld} -32"
4818 *N32*)
4819 LD="${LD-ld} -n32"
4821 *64-bit*)
4822 LD="${LD-ld} -64"
4824 esac
4827 rm -rf conftest*
4830 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
4831 s390*-*linux*|sparc*-*linux*)
4832 # Find out which ABI we are using.
4833 echo 'int i;' > conftest.$ac_ext
4834 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4835 (eval $ac_compile) 2>&5
4836 ac_status=$?
4837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4838 (exit $ac_status); }; then
4839 case `/usr/bin/file conftest.o` in
4840 *32-bit*)
4841 case $host in
4842 x86_64-*kfreebsd*-gnu)
4843 LD="${LD-ld} -m elf_i386_fbsd"
4845 x86_64-*linux*)
4846 LD="${LD-ld} -m elf_i386"
4848 ppc64-*linux*|powerpc64-*linux*)
4849 LD="${LD-ld} -m elf32ppclinux"
4851 s390x-*linux*)
4852 LD="${LD-ld} -m elf_s390"
4854 sparc64-*linux*)
4855 LD="${LD-ld} -m elf32_sparc"
4857 esac
4859 *64-bit*)
4860 libsuff=64
4861 case $host in
4862 x86_64-*kfreebsd*-gnu)
4863 LD="${LD-ld} -m elf_x86_64_fbsd"
4865 x86_64-*linux*)
4866 LD="${LD-ld} -m elf_x86_64"
4868 ppc*-*linux*|powerpc*-*linux*)
4869 LD="${LD-ld} -m elf64ppc"
4871 s390*-*linux*)
4872 LD="${LD-ld} -m elf64_s390"
4874 sparc*-*linux*)
4875 LD="${LD-ld} -m elf64_sparc"
4877 esac
4879 esac
4881 rm -rf conftest*
4884 *-*-sco3.2v5*)
4885 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4886 SAVE_CFLAGS="$CFLAGS"
4887 CFLAGS="$CFLAGS -belf"
4888 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4889 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
4890 if test "${lt_cv_cc_needs_belf+set}" = set; then
4891 echo $ECHO_N "(cached) $ECHO_C" >&6
4892 else
4893 ac_ext=c
4894 ac_cpp='$CPP $CPPFLAGS'
4895 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4896 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4897 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4899 cat >conftest.$ac_ext <<_ACEOF
4900 /* confdefs.h. */
4901 _ACEOF
4902 cat confdefs.h >>conftest.$ac_ext
4903 cat >>conftest.$ac_ext <<_ACEOF
4904 /* end confdefs.h. */
4907 main ()
4911 return 0;
4913 _ACEOF
4914 rm -f conftest.$ac_objext conftest$ac_exeext
4915 if { (ac_try="$ac_link"
4916 case "(($ac_try" in
4917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4918 *) ac_try_echo=$ac_try;;
4919 esac
4920 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4921 (eval "$ac_link") 2>conftest.er1
4922 ac_status=$?
4923 grep -v '^ *+' conftest.er1 >conftest.err
4924 rm -f conftest.er1
4925 cat conftest.err >&5
4926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4927 (exit $ac_status); } && {
4928 test -z "$ac_c_werror_flag" ||
4929 test ! -s conftest.err
4930 } && test -s conftest$ac_exeext &&
4931 $as_test_x conftest$ac_exeext; then
4932 lt_cv_cc_needs_belf=yes
4933 else
4934 echo "$as_me: failed program was:" >&5
4935 sed 's/^/| /' conftest.$ac_ext >&5
4937 lt_cv_cc_needs_belf=no
4940 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4941 conftest$ac_exeext conftest.$ac_ext
4942 ac_ext=c
4943 ac_cpp='$CPP $CPPFLAGS'
4944 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4945 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4946 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4949 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4950 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
4951 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4952 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4953 CFLAGS="$SAVE_CFLAGS"
4956 sparc*-*solaris*)
4957 # Find out which ABI we are using.
4958 echo 'int i;' > conftest.$ac_ext
4959 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4960 (eval $ac_compile) 2>&5
4961 ac_status=$?
4962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4963 (exit $ac_status); }; then
4964 case `/usr/bin/file conftest.o` in
4965 *64-bit*)
4966 case $lt_cv_prog_gnu_ld in
4967 yes*) LD="${LD-ld} -m elf64_sparc" ;;
4968 *) LD="${LD-ld} -64" ;;
4969 esac
4971 esac
4973 rm -rf conftest*
4977 esac
4979 need_locks="$enable_libtool_lock"
4982 ac_ext=c
4983 ac_cpp='$CPP $CPPFLAGS'
4984 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4985 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4986 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4987 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4988 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4989 # On Suns, sometimes $CPP names a directory.
4990 if test -n "$CPP" && test -d "$CPP"; then
4991 CPP=
4993 if test -z "$CPP"; then
4994 if test "${ac_cv_prog_CPP+set}" = set; then
4995 echo $ECHO_N "(cached) $ECHO_C" >&6
4996 else
4997 # Double quotes because CPP needs to be expanded
4998 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5000 ac_preproc_ok=false
5001 for ac_c_preproc_warn_flag in '' yes
5003 # Use a header file that comes with gcc, so configuring glibc
5004 # with a fresh cross-compiler works.
5005 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5006 # <limits.h> exists even on freestanding compilers.
5007 # On the NeXT, cc -E runs the code through the compiler's parser,
5008 # not just through cpp. "Syntax error" is here to catch this case.
5009 cat >conftest.$ac_ext <<_ACEOF
5010 /* confdefs.h. */
5011 _ACEOF
5012 cat confdefs.h >>conftest.$ac_ext
5013 cat >>conftest.$ac_ext <<_ACEOF
5014 /* end confdefs.h. */
5015 #ifdef __STDC__
5016 # include <limits.h>
5017 #else
5018 # include <assert.h>
5019 #endif
5020 Syntax error
5021 _ACEOF
5022 if { (ac_try="$ac_cpp conftest.$ac_ext"
5023 case "(($ac_try" in
5024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5025 *) ac_try_echo=$ac_try;;
5026 esac
5027 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5028 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5029 ac_status=$?
5030 grep -v '^ *+' conftest.er1 >conftest.err
5031 rm -f conftest.er1
5032 cat conftest.err >&5
5033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5034 (exit $ac_status); } >/dev/null && {
5035 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5036 test ! -s conftest.err
5037 }; then
5039 else
5040 echo "$as_me: failed program was:" >&5
5041 sed 's/^/| /' conftest.$ac_ext >&5
5043 # Broken: fails on valid input.
5044 continue
5047 rm -f conftest.err conftest.$ac_ext
5049 # OK, works on sane cases. Now check whether nonexistent headers
5050 # can be detected and how.
5051 cat >conftest.$ac_ext <<_ACEOF
5052 /* confdefs.h. */
5053 _ACEOF
5054 cat confdefs.h >>conftest.$ac_ext
5055 cat >>conftest.$ac_ext <<_ACEOF
5056 /* end confdefs.h. */
5057 #include <ac_nonexistent.h>
5058 _ACEOF
5059 if { (ac_try="$ac_cpp conftest.$ac_ext"
5060 case "(($ac_try" in
5061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5062 *) ac_try_echo=$ac_try;;
5063 esac
5064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5065 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5066 ac_status=$?
5067 grep -v '^ *+' conftest.er1 >conftest.err
5068 rm -f conftest.er1
5069 cat conftest.err >&5
5070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5071 (exit $ac_status); } >/dev/null && {
5072 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5073 test ! -s conftest.err
5074 }; then
5075 # Broken: success on invalid input.
5076 continue
5077 else
5078 echo "$as_me: failed program was:" >&5
5079 sed 's/^/| /' conftest.$ac_ext >&5
5081 # Passes both tests.
5082 ac_preproc_ok=:
5083 break
5086 rm -f conftest.err conftest.$ac_ext
5088 done
5089 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5090 rm -f conftest.err conftest.$ac_ext
5091 if $ac_preproc_ok; then
5092 break
5095 done
5096 ac_cv_prog_CPP=$CPP
5099 CPP=$ac_cv_prog_CPP
5100 else
5101 ac_cv_prog_CPP=$CPP
5103 { echo "$as_me:$LINENO: result: $CPP" >&5
5104 echo "${ECHO_T}$CPP" >&6; }
5105 ac_preproc_ok=false
5106 for ac_c_preproc_warn_flag in '' yes
5108 # Use a header file that comes with gcc, so configuring glibc
5109 # with a fresh cross-compiler works.
5110 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5111 # <limits.h> exists even on freestanding compilers.
5112 # On the NeXT, cc -E runs the code through the compiler's parser,
5113 # not just through cpp. "Syntax error" is here to catch this case.
5114 cat >conftest.$ac_ext <<_ACEOF
5115 /* confdefs.h. */
5116 _ACEOF
5117 cat confdefs.h >>conftest.$ac_ext
5118 cat >>conftest.$ac_ext <<_ACEOF
5119 /* end confdefs.h. */
5120 #ifdef __STDC__
5121 # include <limits.h>
5122 #else
5123 # include <assert.h>
5124 #endif
5125 Syntax error
5126 _ACEOF
5127 if { (ac_try="$ac_cpp conftest.$ac_ext"
5128 case "(($ac_try" in
5129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5130 *) ac_try_echo=$ac_try;;
5131 esac
5132 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5133 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5134 ac_status=$?
5135 grep -v '^ *+' conftest.er1 >conftest.err
5136 rm -f conftest.er1
5137 cat conftest.err >&5
5138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5139 (exit $ac_status); } >/dev/null && {
5140 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5141 test ! -s conftest.err
5142 }; then
5144 else
5145 echo "$as_me: failed program was:" >&5
5146 sed 's/^/| /' conftest.$ac_ext >&5
5148 # Broken: fails on valid input.
5149 continue
5152 rm -f conftest.err conftest.$ac_ext
5154 # OK, works on sane cases. Now check whether nonexistent headers
5155 # can be detected and how.
5156 cat >conftest.$ac_ext <<_ACEOF
5157 /* confdefs.h. */
5158 _ACEOF
5159 cat confdefs.h >>conftest.$ac_ext
5160 cat >>conftest.$ac_ext <<_ACEOF
5161 /* end confdefs.h. */
5162 #include <ac_nonexistent.h>
5163 _ACEOF
5164 if { (ac_try="$ac_cpp conftest.$ac_ext"
5165 case "(($ac_try" in
5166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5167 *) ac_try_echo=$ac_try;;
5168 esac
5169 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5170 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5171 ac_status=$?
5172 grep -v '^ *+' conftest.er1 >conftest.err
5173 rm -f conftest.er1
5174 cat conftest.err >&5
5175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5176 (exit $ac_status); } >/dev/null && {
5177 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5178 test ! -s conftest.err
5179 }; then
5180 # Broken: success on invalid input.
5181 continue
5182 else
5183 echo "$as_me: failed program was:" >&5
5184 sed 's/^/| /' conftest.$ac_ext >&5
5186 # Passes both tests.
5187 ac_preproc_ok=:
5188 break
5191 rm -f conftest.err conftest.$ac_ext
5193 done
5194 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5195 rm -f conftest.err conftest.$ac_ext
5196 if $ac_preproc_ok; then
5198 else
5199 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5200 See \`config.log' for more details." >&5
5201 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5202 See \`config.log' for more details." >&2;}
5203 { (exit 1); exit 1; }; }
5206 ac_ext=c
5207 ac_cpp='$CPP $CPPFLAGS'
5208 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5209 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5210 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5213 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5214 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
5215 if test "${ac_cv_header_stdc+set}" = set; then
5216 echo $ECHO_N "(cached) $ECHO_C" >&6
5217 else
5218 cat >conftest.$ac_ext <<_ACEOF
5219 /* confdefs.h. */
5220 _ACEOF
5221 cat confdefs.h >>conftest.$ac_ext
5222 cat >>conftest.$ac_ext <<_ACEOF
5223 /* end confdefs.h. */
5224 #include <stdlib.h>
5225 #include <stdarg.h>
5226 #include <string.h>
5227 #include <float.h>
5230 main ()
5234 return 0;
5236 _ACEOF
5237 rm -f conftest.$ac_objext
5238 if { (ac_try="$ac_compile"
5239 case "(($ac_try" in
5240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5241 *) ac_try_echo=$ac_try;;
5242 esac
5243 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5244 (eval "$ac_compile") 2>conftest.er1
5245 ac_status=$?
5246 grep -v '^ *+' conftest.er1 >conftest.err
5247 rm -f conftest.er1
5248 cat conftest.err >&5
5249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5250 (exit $ac_status); } && {
5251 test -z "$ac_c_werror_flag" ||
5252 test ! -s conftest.err
5253 } && test -s conftest.$ac_objext; then
5254 ac_cv_header_stdc=yes
5255 else
5256 echo "$as_me: failed program was:" >&5
5257 sed 's/^/| /' conftest.$ac_ext >&5
5259 ac_cv_header_stdc=no
5262 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5264 if test $ac_cv_header_stdc = yes; then
5265 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5266 cat >conftest.$ac_ext <<_ACEOF
5267 /* confdefs.h. */
5268 _ACEOF
5269 cat confdefs.h >>conftest.$ac_ext
5270 cat >>conftest.$ac_ext <<_ACEOF
5271 /* end confdefs.h. */
5272 #include <string.h>
5274 _ACEOF
5275 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5276 $EGREP "memchr" >/dev/null 2>&1; then
5278 else
5279 ac_cv_header_stdc=no
5281 rm -f conftest*
5285 if test $ac_cv_header_stdc = yes; then
5286 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5287 cat >conftest.$ac_ext <<_ACEOF
5288 /* confdefs.h. */
5289 _ACEOF
5290 cat confdefs.h >>conftest.$ac_ext
5291 cat >>conftest.$ac_ext <<_ACEOF
5292 /* end confdefs.h. */
5293 #include <stdlib.h>
5295 _ACEOF
5296 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5297 $EGREP "free" >/dev/null 2>&1; then
5299 else
5300 ac_cv_header_stdc=no
5302 rm -f conftest*
5306 if test $ac_cv_header_stdc = yes; then
5307 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5308 if test "$cross_compiling" = yes; then
5310 else
5311 cat >conftest.$ac_ext <<_ACEOF
5312 /* confdefs.h. */
5313 _ACEOF
5314 cat confdefs.h >>conftest.$ac_ext
5315 cat >>conftest.$ac_ext <<_ACEOF
5316 /* end confdefs.h. */
5317 #include <ctype.h>
5318 #include <stdlib.h>
5319 #if ((' ' & 0x0FF) == 0x020)
5320 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5321 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5322 #else
5323 # define ISLOWER(c) \
5324 (('a' <= (c) && (c) <= 'i') \
5325 || ('j' <= (c) && (c) <= 'r') \
5326 || ('s' <= (c) && (c) <= 'z'))
5327 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5328 #endif
5330 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5332 main ()
5334 int i;
5335 for (i = 0; i < 256; i++)
5336 if (XOR (islower (i), ISLOWER (i))
5337 || toupper (i) != TOUPPER (i))
5338 return 2;
5339 return 0;
5341 _ACEOF
5342 rm -f conftest$ac_exeext
5343 if { (ac_try="$ac_link"
5344 case "(($ac_try" in
5345 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5346 *) ac_try_echo=$ac_try;;
5347 esac
5348 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5349 (eval "$ac_link") 2>&5
5350 ac_status=$?
5351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5352 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5353 { (case "(($ac_try" in
5354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5355 *) ac_try_echo=$ac_try;;
5356 esac
5357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5358 (eval "$ac_try") 2>&5
5359 ac_status=$?
5360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5361 (exit $ac_status); }; }; then
5363 else
5364 echo "$as_me: program exited with status $ac_status" >&5
5365 echo "$as_me: failed program was:" >&5
5366 sed 's/^/| /' conftest.$ac_ext >&5
5368 ( exit $ac_status )
5369 ac_cv_header_stdc=no
5371 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5377 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5378 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
5379 if test $ac_cv_header_stdc = yes; then
5381 cat >>confdefs.h <<\_ACEOF
5382 #define STDC_HEADERS 1
5383 _ACEOF
5387 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5397 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5398 inttypes.h stdint.h unistd.h
5400 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5401 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5402 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5403 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5404 echo $ECHO_N "(cached) $ECHO_C" >&6
5405 else
5406 cat >conftest.$ac_ext <<_ACEOF
5407 /* confdefs.h. */
5408 _ACEOF
5409 cat confdefs.h >>conftest.$ac_ext
5410 cat >>conftest.$ac_ext <<_ACEOF
5411 /* end confdefs.h. */
5412 $ac_includes_default
5414 #include <$ac_header>
5415 _ACEOF
5416 rm -f conftest.$ac_objext
5417 if { (ac_try="$ac_compile"
5418 case "(($ac_try" in
5419 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5420 *) ac_try_echo=$ac_try;;
5421 esac
5422 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5423 (eval "$ac_compile") 2>conftest.er1
5424 ac_status=$?
5425 grep -v '^ *+' conftest.er1 >conftest.err
5426 rm -f conftest.er1
5427 cat conftest.err >&5
5428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5429 (exit $ac_status); } && {
5430 test -z "$ac_c_werror_flag" ||
5431 test ! -s conftest.err
5432 } && test -s conftest.$ac_objext; then
5433 eval "$as_ac_Header=yes"
5434 else
5435 echo "$as_me: failed program was:" >&5
5436 sed 's/^/| /' conftest.$ac_ext >&5
5438 eval "$as_ac_Header=no"
5441 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5443 ac_res=`eval echo '${'$as_ac_Header'}'`
5444 { echo "$as_me:$LINENO: result: $ac_res" >&5
5445 echo "${ECHO_T}$ac_res" >&6; }
5446 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5447 cat >>confdefs.h <<_ACEOF
5448 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5449 _ACEOF
5453 done
5457 for ac_header in dlfcn.h
5459 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5460 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5461 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5462 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5463 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5464 echo $ECHO_N "(cached) $ECHO_C" >&6
5466 ac_res=`eval echo '${'$as_ac_Header'}'`
5467 { echo "$as_me:$LINENO: result: $ac_res" >&5
5468 echo "${ECHO_T}$ac_res" >&6; }
5469 else
5470 # Is the header compilable?
5471 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5472 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5473 cat >conftest.$ac_ext <<_ACEOF
5474 /* confdefs.h. */
5475 _ACEOF
5476 cat confdefs.h >>conftest.$ac_ext
5477 cat >>conftest.$ac_ext <<_ACEOF
5478 /* end confdefs.h. */
5479 $ac_includes_default
5480 #include <$ac_header>
5481 _ACEOF
5482 rm -f conftest.$ac_objext
5483 if { (ac_try="$ac_compile"
5484 case "(($ac_try" in
5485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5486 *) ac_try_echo=$ac_try;;
5487 esac
5488 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5489 (eval "$ac_compile") 2>conftest.er1
5490 ac_status=$?
5491 grep -v '^ *+' conftest.er1 >conftest.err
5492 rm -f conftest.er1
5493 cat conftest.err >&5
5494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5495 (exit $ac_status); } && {
5496 test -z "$ac_c_werror_flag" ||
5497 test ! -s conftest.err
5498 } && test -s conftest.$ac_objext; then
5499 ac_header_compiler=yes
5500 else
5501 echo "$as_me: failed program was:" >&5
5502 sed 's/^/| /' conftest.$ac_ext >&5
5504 ac_header_compiler=no
5507 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5508 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5509 echo "${ECHO_T}$ac_header_compiler" >&6; }
5511 # Is the header present?
5512 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5513 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5514 cat >conftest.$ac_ext <<_ACEOF
5515 /* confdefs.h. */
5516 _ACEOF
5517 cat confdefs.h >>conftest.$ac_ext
5518 cat >>conftest.$ac_ext <<_ACEOF
5519 /* end confdefs.h. */
5520 #include <$ac_header>
5521 _ACEOF
5522 if { (ac_try="$ac_cpp conftest.$ac_ext"
5523 case "(($ac_try" in
5524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5525 *) ac_try_echo=$ac_try;;
5526 esac
5527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5528 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5529 ac_status=$?
5530 grep -v '^ *+' conftest.er1 >conftest.err
5531 rm -f conftest.er1
5532 cat conftest.err >&5
5533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5534 (exit $ac_status); } >/dev/null && {
5535 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5536 test ! -s conftest.err
5537 }; then
5538 ac_header_preproc=yes
5539 else
5540 echo "$as_me: failed program was:" >&5
5541 sed 's/^/| /' conftest.$ac_ext >&5
5543 ac_header_preproc=no
5546 rm -f conftest.err conftest.$ac_ext
5547 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5548 echo "${ECHO_T}$ac_header_preproc" >&6; }
5550 # So? What about this header?
5551 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5552 yes:no: )
5553 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5554 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5555 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5556 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5557 ac_header_preproc=yes
5559 no:yes:* )
5560 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5561 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5562 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5563 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5564 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5565 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5566 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5567 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5568 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5569 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5570 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5571 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5574 esac
5575 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5576 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5577 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5578 echo $ECHO_N "(cached) $ECHO_C" >&6
5579 else
5580 eval "$as_ac_Header=\$ac_header_preproc"
5582 ac_res=`eval echo '${'$as_ac_Header'}'`
5583 { echo "$as_me:$LINENO: result: $ac_res" >&5
5584 echo "${ECHO_T}$ac_res" >&6; }
5587 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5588 cat >>confdefs.h <<_ACEOF
5589 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5590 _ACEOF
5594 done
5598 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5599 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5600 (test "X$CXX" != "Xg++"))) ; then
5601 ac_ext=cpp
5602 ac_cpp='$CXXCPP $CPPFLAGS'
5603 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5604 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5605 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5606 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5607 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
5608 if test -z "$CXXCPP"; then
5609 if test "${ac_cv_prog_CXXCPP+set}" = set; then
5610 echo $ECHO_N "(cached) $ECHO_C" >&6
5611 else
5612 # Double quotes because CXXCPP needs to be expanded
5613 for CXXCPP in "$CXX -E" "/lib/cpp"
5615 ac_preproc_ok=false
5616 for ac_cxx_preproc_warn_flag in '' yes
5618 # Use a header file that comes with gcc, so configuring glibc
5619 # with a fresh cross-compiler works.
5620 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5621 # <limits.h> exists even on freestanding compilers.
5622 # On the NeXT, cc -E runs the code through the compiler's parser,
5623 # not just through cpp. "Syntax error" is here to catch this case.
5624 cat >conftest.$ac_ext <<_ACEOF
5625 /* confdefs.h. */
5626 _ACEOF
5627 cat confdefs.h >>conftest.$ac_ext
5628 cat >>conftest.$ac_ext <<_ACEOF
5629 /* end confdefs.h. */
5630 #ifdef __STDC__
5631 # include <limits.h>
5632 #else
5633 # include <assert.h>
5634 #endif
5635 Syntax error
5636 _ACEOF
5637 if { (ac_try="$ac_cpp conftest.$ac_ext"
5638 case "(($ac_try" in
5639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5640 *) ac_try_echo=$ac_try;;
5641 esac
5642 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5643 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5644 ac_status=$?
5645 grep -v '^ *+' conftest.er1 >conftest.err
5646 rm -f conftest.er1
5647 cat conftest.err >&5
5648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5649 (exit $ac_status); } >/dev/null && {
5650 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5651 test ! -s conftest.err
5652 }; then
5654 else
5655 echo "$as_me: failed program was:" >&5
5656 sed 's/^/| /' conftest.$ac_ext >&5
5658 # Broken: fails on valid input.
5659 continue
5662 rm -f conftest.err conftest.$ac_ext
5664 # OK, works on sane cases. Now check whether nonexistent headers
5665 # can be detected and how.
5666 cat >conftest.$ac_ext <<_ACEOF
5667 /* confdefs.h. */
5668 _ACEOF
5669 cat confdefs.h >>conftest.$ac_ext
5670 cat >>conftest.$ac_ext <<_ACEOF
5671 /* end confdefs.h. */
5672 #include <ac_nonexistent.h>
5673 _ACEOF
5674 if { (ac_try="$ac_cpp conftest.$ac_ext"
5675 case "(($ac_try" in
5676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5677 *) ac_try_echo=$ac_try;;
5678 esac
5679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5680 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5681 ac_status=$?
5682 grep -v '^ *+' conftest.er1 >conftest.err
5683 rm -f conftest.er1
5684 cat conftest.err >&5
5685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5686 (exit $ac_status); } >/dev/null && {
5687 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5688 test ! -s conftest.err
5689 }; then
5690 # Broken: success on invalid input.
5691 continue
5692 else
5693 echo "$as_me: failed program was:" >&5
5694 sed 's/^/| /' conftest.$ac_ext >&5
5696 # Passes both tests.
5697 ac_preproc_ok=:
5698 break
5701 rm -f conftest.err conftest.$ac_ext
5703 done
5704 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5705 rm -f conftest.err conftest.$ac_ext
5706 if $ac_preproc_ok; then
5707 break
5710 done
5711 ac_cv_prog_CXXCPP=$CXXCPP
5714 CXXCPP=$ac_cv_prog_CXXCPP
5715 else
5716 ac_cv_prog_CXXCPP=$CXXCPP
5718 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
5719 echo "${ECHO_T}$CXXCPP" >&6; }
5720 ac_preproc_ok=false
5721 for ac_cxx_preproc_warn_flag in '' yes
5723 # Use a header file that comes with gcc, so configuring glibc
5724 # with a fresh cross-compiler works.
5725 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5726 # <limits.h> exists even on freestanding compilers.
5727 # On the NeXT, cc -E runs the code through the compiler's parser,
5728 # not just through cpp. "Syntax error" is here to catch this case.
5729 cat >conftest.$ac_ext <<_ACEOF
5730 /* confdefs.h. */
5731 _ACEOF
5732 cat confdefs.h >>conftest.$ac_ext
5733 cat >>conftest.$ac_ext <<_ACEOF
5734 /* end confdefs.h. */
5735 #ifdef __STDC__
5736 # include <limits.h>
5737 #else
5738 # include <assert.h>
5739 #endif
5740 Syntax error
5741 _ACEOF
5742 if { (ac_try="$ac_cpp conftest.$ac_ext"
5743 case "(($ac_try" in
5744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5745 *) ac_try_echo=$ac_try;;
5746 esac
5747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5748 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5749 ac_status=$?
5750 grep -v '^ *+' conftest.er1 >conftest.err
5751 rm -f conftest.er1
5752 cat conftest.err >&5
5753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5754 (exit $ac_status); } >/dev/null && {
5755 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5756 test ! -s conftest.err
5757 }; then
5759 else
5760 echo "$as_me: failed program was:" >&5
5761 sed 's/^/| /' conftest.$ac_ext >&5
5763 # Broken: fails on valid input.
5764 continue
5767 rm -f conftest.err conftest.$ac_ext
5769 # OK, works on sane cases. Now check whether nonexistent headers
5770 # can be detected and how.
5771 cat >conftest.$ac_ext <<_ACEOF
5772 /* confdefs.h. */
5773 _ACEOF
5774 cat confdefs.h >>conftest.$ac_ext
5775 cat >>conftest.$ac_ext <<_ACEOF
5776 /* end confdefs.h. */
5777 #include <ac_nonexistent.h>
5778 _ACEOF
5779 if { (ac_try="$ac_cpp conftest.$ac_ext"
5780 case "(($ac_try" in
5781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5782 *) ac_try_echo=$ac_try;;
5783 esac
5784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5785 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5786 ac_status=$?
5787 grep -v '^ *+' conftest.er1 >conftest.err
5788 rm -f conftest.er1
5789 cat conftest.err >&5
5790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5791 (exit $ac_status); } >/dev/null && {
5792 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5793 test ! -s conftest.err
5794 }; then
5795 # Broken: success on invalid input.
5796 continue
5797 else
5798 echo "$as_me: failed program was:" >&5
5799 sed 's/^/| /' conftest.$ac_ext >&5
5801 # Passes both tests.
5802 ac_preproc_ok=:
5803 break
5806 rm -f conftest.err conftest.$ac_ext
5808 done
5809 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5810 rm -f conftest.err conftest.$ac_ext
5811 if $ac_preproc_ok; then
5813 else
5814 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5815 See \`config.log' for more details." >&5
5816 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5817 See \`config.log' for more details." >&2;}
5818 { (exit 1); exit 1; }; }
5821 ac_ext=cpp
5822 ac_cpp='$CXXCPP $CPPFLAGS'
5823 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5824 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5825 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5830 ac_ext=f
5831 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5832 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5833 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5834 if test -n "$ac_tool_prefix"; then
5835 for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn
5837 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5838 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5839 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5840 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5841 if test "${ac_cv_prog_F77+set}" = set; then
5842 echo $ECHO_N "(cached) $ECHO_C" >&6
5843 else
5844 if test -n "$F77"; then
5845 ac_cv_prog_F77="$F77" # Let the user override the test.
5846 else
5847 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5848 for as_dir in $PATH
5850 IFS=$as_save_IFS
5851 test -z "$as_dir" && as_dir=.
5852 for ac_exec_ext in '' $ac_executable_extensions; do
5853 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5854 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5855 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5856 break 2
5858 done
5859 done
5860 IFS=$as_save_IFS
5864 F77=$ac_cv_prog_F77
5865 if test -n "$F77"; then
5866 { echo "$as_me:$LINENO: result: $F77" >&5
5867 echo "${ECHO_T}$F77" >&6; }
5868 else
5869 { echo "$as_me:$LINENO: result: no" >&5
5870 echo "${ECHO_T}no" >&6; }
5874 test -n "$F77" && break
5875 done
5877 if test -z "$F77"; then
5878 ac_ct_F77=$F77
5879 for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn
5881 # Extract the first word of "$ac_prog", so it can be a program name with args.
5882 set dummy $ac_prog; ac_word=$2
5883 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5884 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5885 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5886 echo $ECHO_N "(cached) $ECHO_C" >&6
5887 else
5888 if test -n "$ac_ct_F77"; then
5889 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5890 else
5891 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5892 for as_dir in $PATH
5894 IFS=$as_save_IFS
5895 test -z "$as_dir" && as_dir=.
5896 for ac_exec_ext in '' $ac_executable_extensions; do
5897 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5898 ac_cv_prog_ac_ct_F77="$ac_prog"
5899 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5900 break 2
5902 done
5903 done
5904 IFS=$as_save_IFS
5908 ac_ct_F77=$ac_cv_prog_ac_ct_F77
5909 if test -n "$ac_ct_F77"; then
5910 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5911 echo "${ECHO_T}$ac_ct_F77" >&6; }
5912 else
5913 { echo "$as_me:$LINENO: result: no" >&5
5914 echo "${ECHO_T}no" >&6; }
5918 test -n "$ac_ct_F77" && break
5919 done
5921 if test "x$ac_ct_F77" = x; then
5922 F77=""
5923 else
5924 case $cross_compiling:$ac_tool_warned in
5925 yes:)
5926 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5927 whose name does not start with the host triplet. If you think this
5928 configuration is useful to you, please write to autoconf@gnu.org." >&5
5929 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5930 whose name does not start with the host triplet. If you think this
5931 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5932 ac_tool_warned=yes ;;
5933 esac
5934 F77=$ac_ct_F77
5939 # Provide some information about the compiler.
5940 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
5941 ac_compiler=`set X $ac_compile; echo $2`
5942 { (ac_try="$ac_compiler --version >&5"
5943 case "(($ac_try" in
5944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5945 *) ac_try_echo=$ac_try;;
5946 esac
5947 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5948 (eval "$ac_compiler --version >&5") 2>&5
5949 ac_status=$?
5950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5951 (exit $ac_status); }
5952 { (ac_try="$ac_compiler -v >&5"
5953 case "(($ac_try" in
5954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5955 *) ac_try_echo=$ac_try;;
5956 esac
5957 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5958 (eval "$ac_compiler -v >&5") 2>&5
5959 ac_status=$?
5960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5961 (exit $ac_status); }
5962 { (ac_try="$ac_compiler -V >&5"
5963 case "(($ac_try" in
5964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5965 *) ac_try_echo=$ac_try;;
5966 esac
5967 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5968 (eval "$ac_compiler -V >&5") 2>&5
5969 ac_status=$?
5970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5971 (exit $ac_status); }
5972 rm -f a.out
5974 # If we don't use `.F' as extension, the preprocessor is not run on the
5975 # input file. (Note that this only needs to work for GNU compilers.)
5976 ac_save_ext=$ac_ext
5977 ac_ext=F
5978 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5979 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
5980 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5981 echo $ECHO_N "(cached) $ECHO_C" >&6
5982 else
5983 cat >conftest.$ac_ext <<_ACEOF
5984 program main
5985 #ifndef __GNUC__
5986 choke me
5987 #endif
5990 _ACEOF
5991 rm -f conftest.$ac_objext
5992 if { (ac_try="$ac_compile"
5993 case "(($ac_try" in
5994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5995 *) ac_try_echo=$ac_try;;
5996 esac
5997 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5998 (eval "$ac_compile") 2>conftest.er1
5999 ac_status=$?
6000 grep -v '^ *+' conftest.er1 >conftest.err
6001 rm -f conftest.er1
6002 cat conftest.err >&5
6003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6004 (exit $ac_status); } && {
6005 test -z "$ac_f77_werror_flag" ||
6006 test ! -s conftest.err
6007 } && test -s conftest.$ac_objext; then
6008 ac_compiler_gnu=yes
6009 else
6010 echo "$as_me: failed program was:" >&5
6011 sed 's/^/| /' conftest.$ac_ext >&5
6013 ac_compiler_gnu=no
6016 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6017 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6020 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
6021 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
6022 ac_ext=$ac_save_ext
6023 ac_test_FFLAGS=${FFLAGS+set}
6024 ac_save_FFLAGS=$FFLAGS
6025 FFLAGS=
6026 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
6027 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
6028 if test "${ac_cv_prog_f77_g+set}" = set; then
6029 echo $ECHO_N "(cached) $ECHO_C" >&6
6030 else
6031 FFLAGS=-g
6032 cat >conftest.$ac_ext <<_ACEOF
6033 program main
6036 _ACEOF
6037 rm -f conftest.$ac_objext
6038 if { (ac_try="$ac_compile"
6039 case "(($ac_try" in
6040 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6041 *) ac_try_echo=$ac_try;;
6042 esac
6043 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6044 (eval "$ac_compile") 2>conftest.er1
6045 ac_status=$?
6046 grep -v '^ *+' conftest.er1 >conftest.err
6047 rm -f conftest.er1
6048 cat conftest.err >&5
6049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6050 (exit $ac_status); } && {
6051 test -z "$ac_f77_werror_flag" ||
6052 test ! -s conftest.err
6053 } && test -s conftest.$ac_objext; then
6054 ac_cv_prog_f77_g=yes
6055 else
6056 echo "$as_me: failed program was:" >&5
6057 sed 's/^/| /' conftest.$ac_ext >&5
6059 ac_cv_prog_f77_g=no
6062 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6065 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6066 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
6067 if test "$ac_test_FFLAGS" = set; then
6068 FFLAGS=$ac_save_FFLAGS
6069 elif test $ac_cv_prog_f77_g = yes; then
6070 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6071 FFLAGS="-g -O2"
6072 else
6073 FFLAGS="-g"
6075 else
6076 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6077 FFLAGS="-O2"
6078 else
6079 FFLAGS=
6083 G77=`test $ac_compiler_gnu = yes && echo yes`
6084 ac_ext=cpp
6085 ac_cpp='$CXXCPP $CPPFLAGS'
6086 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6087 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6088 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6092 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6094 # find the maximum length of command line arguments
6095 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6096 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
6097 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6098 echo $ECHO_N "(cached) $ECHO_C" >&6
6099 else
6101 teststring="ABCD"
6103 case $build_os in
6104 msdosdjgpp*)
6105 # On DJGPP, this test can blow up pretty badly due to problems in libc
6106 # (any single argument exceeding 2000 bytes causes a buffer overrun
6107 # during glob expansion). Even if it were fixed, the result of this
6108 # check would be larger than it should be.
6109 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6112 gnu*)
6113 # Under GNU Hurd, this test is not required because there is
6114 # no limit to the length of command line arguments.
6115 # Libtool will interpret -1 as no limit whatsoever
6116 lt_cv_sys_max_cmd_len=-1;
6119 cygwin* | mingw*)
6120 # On Win9x/ME, this test blows up -- it succeeds, but takes
6121 # about 5 minutes as the teststring grows exponentially.
6122 # Worse, since 9x/ME are not pre-emptively multitasking,
6123 # you end up with a "frozen" computer, even though with patience
6124 # the test eventually succeeds (with a max line length of 256k).
6125 # Instead, let's just punt: use the minimum linelength reported by
6126 # all of the supported platforms: 8192 (on NT/2K/XP).
6127 lt_cv_sys_max_cmd_len=8192;
6130 amigaos*)
6131 # On AmigaOS with pdksh, this test takes hours, literally.
6132 # So we just punt and use a minimum line length of 8192.
6133 lt_cv_sys_max_cmd_len=8192;
6136 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6137 # This has been around since 386BSD, at least. Likely further.
6138 if test -x /sbin/sysctl; then
6139 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6140 elif test -x /usr/sbin/sysctl; then
6141 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6142 else
6143 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6145 # And add a safety zone
6146 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6147 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6150 interix*)
6151 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6152 lt_cv_sys_max_cmd_len=196608
6155 osf*)
6156 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6157 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6158 # nice to cause kernel panics so lets avoid the loop below.
6159 # First set a reasonable default.
6160 lt_cv_sys_max_cmd_len=16384
6162 if test -x /sbin/sysconfig; then
6163 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6164 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6165 esac
6168 sco3.2v5*)
6169 lt_cv_sys_max_cmd_len=102400
6171 sysv5* | sco5v6* | sysv4.2uw2*)
6172 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6173 if test -n "$kargmax"; then
6174 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6175 else
6176 lt_cv_sys_max_cmd_len=32768
6180 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6181 if test -n "$lt_cv_sys_max_cmd_len"; then
6182 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6183 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6184 else
6185 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6186 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6187 = "XX$teststring") >/dev/null 2>&1 &&
6188 new_result=`expr "X$teststring" : ".*" 2>&1` &&
6189 lt_cv_sys_max_cmd_len=$new_result &&
6190 test $i != 17 # 1/2 MB should be enough
6192 i=`expr $i + 1`
6193 teststring=$teststring$teststring
6194 done
6195 teststring=
6196 # Add a significant safety factor because C++ compilers can tack on massive
6197 # amounts of additional arguments before passing them to the linker.
6198 # It appears as though 1/2 is a usable value.
6199 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6202 esac
6206 if test -n $lt_cv_sys_max_cmd_len ; then
6207 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6208 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
6209 else
6210 { echo "$as_me:$LINENO: result: none" >&5
6211 echo "${ECHO_T}none" >&6; }
6218 # Check for command to grab the raw symbol name followed by C symbol from nm.
6219 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6220 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
6221 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6222 echo $ECHO_N "(cached) $ECHO_C" >&6
6223 else
6225 # These are sane defaults that work on at least a few old systems.
6226 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6228 # Character class describing NM global symbol codes.
6229 symcode='[BCDEGRST]'
6231 # Regexp to match symbols that can be accessed directly from C.
6232 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6234 # Transform an extracted symbol line into a proper C declaration
6235 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6237 # Transform an extracted symbol line into symbol name and symbol address
6238 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'"
6240 # Define system-specific variables.
6241 case $host_os in
6242 aix*)
6243 symcode='[BCDT]'
6245 cygwin* | mingw* | pw32*)
6246 symcode='[ABCDGISTW]'
6248 hpux*) # Its linker distinguishes data from code symbols
6249 if test "$host_cpu" = ia64; then
6250 symcode='[ABCDEGRST]'
6252 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6253 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'"
6255 linux* | k*bsd*-gnu)
6256 if test "$host_cpu" = ia64; then
6257 symcode='[ABCDGIRSTW]'
6258 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6259 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'"
6262 irix* | nonstopux*)
6263 symcode='[BCDEGRST]'
6265 osf*)
6266 symcode='[BCDEGQRST]'
6268 solaris*)
6269 symcode='[BDRT]'
6271 sco3.2v5*)
6272 symcode='[DT]'
6274 sysv4.2uw2*)
6275 symcode='[DT]'
6277 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6278 symcode='[ABDT]'
6280 sysv4)
6281 symcode='[DFNSTU]'
6283 esac
6285 # Handle CRLF in mingw tool chain
6286 opt_cr=
6287 case $build_os in
6288 mingw*)
6289 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6291 esac
6293 # If we're using GNU nm, then use its standard symbol codes.
6294 case `$NM -V 2>&1` in
6295 *GNU* | *'with BFD'*)
6296 symcode='[ABCDGIRSTW]' ;;
6297 esac
6299 # Try without a prefix undercore, then with it.
6300 for ac_symprfx in "" "_"; do
6302 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6303 symxfrm="\\1 $ac_symprfx\\2 \\2"
6305 # Write the raw and C identifiers.
6306 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6308 # Check to see that the pipe works correctly.
6309 pipe_works=no
6311 rm -f conftest*
6312 cat > conftest.$ac_ext <<EOF
6313 #ifdef __cplusplus
6314 extern "C" {
6315 #endif
6316 char nm_test_var;
6317 void nm_test_func(){}
6318 #ifdef __cplusplus
6320 #endif
6321 int main(){nm_test_var='a';nm_test_func();return(0);}
6324 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6325 (eval $ac_compile) 2>&5
6326 ac_status=$?
6327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6328 (exit $ac_status); }; then
6329 # Now try to grab the symbols.
6330 nlist=conftest.nm
6331 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6332 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6333 ac_status=$?
6334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6335 (exit $ac_status); } && test -s "$nlist"; then
6336 # Try sorting and uniquifying the output.
6337 if sort "$nlist" | uniq > "$nlist"T; then
6338 mv -f "$nlist"T "$nlist"
6339 else
6340 rm -f "$nlist"T
6343 # Make sure that we snagged all the symbols we need.
6344 if grep ' nm_test_var$' "$nlist" >/dev/null; then
6345 if grep ' nm_test_func$' "$nlist" >/dev/null; then
6346 cat <<EOF > conftest.$ac_ext
6347 #ifdef __cplusplus
6348 extern "C" {
6349 #endif
6352 # Now generate the symbol file.
6353 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6355 cat <<EOF >> conftest.$ac_ext
6356 #if defined (__STDC__) && __STDC__
6357 # define lt_ptr_t void *
6358 #else
6359 # define lt_ptr_t char *
6360 # define const
6361 #endif
6363 /* The mapping between symbol names and symbols. */
6364 const struct {
6365 const char *name;
6366 lt_ptr_t address;
6368 lt_preloaded_symbols[] =
6371 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6372 cat <<\EOF >> conftest.$ac_ext
6373 {0, (lt_ptr_t) 0}
6376 #ifdef __cplusplus
6378 #endif
6380 # Now try linking the two files.
6381 mv conftest.$ac_objext conftstm.$ac_objext
6382 lt_save_LIBS="$LIBS"
6383 lt_save_CFLAGS="$CFLAGS"
6384 LIBS="conftstm.$ac_objext"
6385 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6386 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6387 (eval $ac_link) 2>&5
6388 ac_status=$?
6389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6390 (exit $ac_status); } && test -s conftest${ac_exeext}; then
6391 pipe_works=yes
6393 LIBS="$lt_save_LIBS"
6394 CFLAGS="$lt_save_CFLAGS"
6395 else
6396 echo "cannot find nm_test_func in $nlist" >&5
6398 else
6399 echo "cannot find nm_test_var in $nlist" >&5
6401 else
6402 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6404 else
6405 echo "$progname: failed program was:" >&5
6406 cat conftest.$ac_ext >&5
6408 rm -f conftest* conftst*
6410 # Do not use the global_symbol_pipe unless it works.
6411 if test "$pipe_works" = yes; then
6412 break
6413 else
6414 lt_cv_sys_global_symbol_pipe=
6416 done
6420 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6421 lt_cv_sys_global_symbol_to_cdecl=
6423 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6424 { echo "$as_me:$LINENO: result: failed" >&5
6425 echo "${ECHO_T}failed" >&6; }
6426 else
6427 { echo "$as_me:$LINENO: result: ok" >&5
6428 echo "${ECHO_T}ok" >&6; }
6431 { echo "$as_me:$LINENO: checking for objdir" >&5
6432 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
6433 if test "${lt_cv_objdir+set}" = set; then
6434 echo $ECHO_N "(cached) $ECHO_C" >&6
6435 else
6436 rm -f .libs 2>/dev/null
6437 mkdir .libs 2>/dev/null
6438 if test -d .libs; then
6439 lt_cv_objdir=.libs
6440 else
6441 # MS-DOS does not allow filenames that begin with a dot.
6442 lt_cv_objdir=_libs
6444 rmdir .libs 2>/dev/null
6446 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6447 echo "${ECHO_T}$lt_cv_objdir" >&6; }
6448 objdir=$lt_cv_objdir
6454 case $host_os in
6455 aix3*)
6456 # AIX sometimes has problems with the GCC collect2 program. For some
6457 # reason, if we set the COLLECT_NAMES environment variable, the problems
6458 # vanish in a puff of smoke.
6459 if test "X${COLLECT_NAMES+set}" != Xset; then
6460 COLLECT_NAMES=
6461 export COLLECT_NAMES
6464 esac
6466 # Sed substitution that helps us do robust quoting. It backslashifies
6467 # metacharacters that are still active within double-quoted strings.
6468 Xsed='sed -e 1s/^X//'
6469 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6471 # Same as above, but do not quote variable references.
6472 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6474 # Sed substitution to delay expansion of an escaped shell variable in a
6475 # double_quote_subst'ed string.
6476 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6478 # Sed substitution to avoid accidental globbing in evaled expressions
6479 no_glob_subst='s/\*/\\\*/g'
6481 # Constants:
6482 rm="rm -f"
6484 # Global variables:
6485 default_ofile=libtool
6486 can_build_shared=yes
6488 # All known linkers require a `.a' archive for static linking (except MSVC,
6489 # which needs '.lib').
6490 libext=a
6491 ltmain="$ac_aux_dir/ltmain.sh"
6492 ofile="$default_ofile"
6493 with_gnu_ld="$lt_cv_prog_gnu_ld"
6495 if test -n "$ac_tool_prefix"; then
6496 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6497 set dummy ${ac_tool_prefix}ar; ac_word=$2
6498 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6499 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6500 if test "${ac_cv_prog_AR+set}" = set; then
6501 echo $ECHO_N "(cached) $ECHO_C" >&6
6502 else
6503 if test -n "$AR"; then
6504 ac_cv_prog_AR="$AR" # Let the user override the test.
6505 else
6506 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6507 for as_dir in $PATH
6509 IFS=$as_save_IFS
6510 test -z "$as_dir" && as_dir=.
6511 for ac_exec_ext in '' $ac_executable_extensions; do
6512 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6513 ac_cv_prog_AR="${ac_tool_prefix}ar"
6514 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6515 break 2
6517 done
6518 done
6519 IFS=$as_save_IFS
6523 AR=$ac_cv_prog_AR
6524 if test -n "$AR"; then
6525 { echo "$as_me:$LINENO: result: $AR" >&5
6526 echo "${ECHO_T}$AR" >&6; }
6527 else
6528 { echo "$as_me:$LINENO: result: no" >&5
6529 echo "${ECHO_T}no" >&6; }
6534 if test -z "$ac_cv_prog_AR"; then
6535 ac_ct_AR=$AR
6536 # Extract the first word of "ar", so it can be a program name with args.
6537 set dummy ar; ac_word=$2
6538 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6539 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6540 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6541 echo $ECHO_N "(cached) $ECHO_C" >&6
6542 else
6543 if test -n "$ac_ct_AR"; then
6544 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6545 else
6546 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6547 for as_dir in $PATH
6549 IFS=$as_save_IFS
6550 test -z "$as_dir" && as_dir=.
6551 for ac_exec_ext in '' $ac_executable_extensions; do
6552 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6553 ac_cv_prog_ac_ct_AR="ar"
6554 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6555 break 2
6557 done
6558 done
6559 IFS=$as_save_IFS
6563 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6564 if test -n "$ac_ct_AR"; then
6565 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6566 echo "${ECHO_T}$ac_ct_AR" >&6; }
6567 else
6568 { echo "$as_me:$LINENO: result: no" >&5
6569 echo "${ECHO_T}no" >&6; }
6572 if test "x$ac_ct_AR" = x; then
6573 AR="false"
6574 else
6575 case $cross_compiling:$ac_tool_warned in
6576 yes:)
6577 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6578 whose name does not start with the host triplet. If you think this
6579 configuration is useful to you, please write to autoconf@gnu.org." >&5
6580 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6581 whose name does not start with the host triplet. If you think this
6582 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6583 ac_tool_warned=yes ;;
6584 esac
6585 AR=$ac_ct_AR
6587 else
6588 AR="$ac_cv_prog_AR"
6591 if test -n "$ac_tool_prefix"; then
6592 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6593 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6594 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6595 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6596 if test "${ac_cv_prog_RANLIB+set}" = set; then
6597 echo $ECHO_N "(cached) $ECHO_C" >&6
6598 else
6599 if test -n "$RANLIB"; then
6600 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6601 else
6602 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6603 for as_dir in $PATH
6605 IFS=$as_save_IFS
6606 test -z "$as_dir" && as_dir=.
6607 for ac_exec_ext in '' $ac_executable_extensions; do
6608 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6609 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6610 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6611 break 2
6613 done
6614 done
6615 IFS=$as_save_IFS
6619 RANLIB=$ac_cv_prog_RANLIB
6620 if test -n "$RANLIB"; then
6621 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6622 echo "${ECHO_T}$RANLIB" >&6; }
6623 else
6624 { echo "$as_me:$LINENO: result: no" >&5
6625 echo "${ECHO_T}no" >&6; }
6630 if test -z "$ac_cv_prog_RANLIB"; then
6631 ac_ct_RANLIB=$RANLIB
6632 # Extract the first word of "ranlib", so it can be a program name with args.
6633 set dummy ranlib; ac_word=$2
6634 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6635 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6636 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6637 echo $ECHO_N "(cached) $ECHO_C" >&6
6638 else
6639 if test -n "$ac_ct_RANLIB"; then
6640 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6641 else
6642 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6643 for as_dir in $PATH
6645 IFS=$as_save_IFS
6646 test -z "$as_dir" && as_dir=.
6647 for ac_exec_ext in '' $ac_executable_extensions; do
6648 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6649 ac_cv_prog_ac_ct_RANLIB="ranlib"
6650 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6651 break 2
6653 done
6654 done
6655 IFS=$as_save_IFS
6659 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6660 if test -n "$ac_ct_RANLIB"; then
6661 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6662 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6663 else
6664 { echo "$as_me:$LINENO: result: no" >&5
6665 echo "${ECHO_T}no" >&6; }
6668 if test "x$ac_ct_RANLIB" = x; then
6669 RANLIB=":"
6670 else
6671 case $cross_compiling:$ac_tool_warned in
6672 yes:)
6673 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6674 whose name does not start with the host triplet. If you think this
6675 configuration is useful to you, please write to autoconf@gnu.org." >&5
6676 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6677 whose name does not start with the host triplet. If you think this
6678 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6679 ac_tool_warned=yes ;;
6680 esac
6681 RANLIB=$ac_ct_RANLIB
6683 else
6684 RANLIB="$ac_cv_prog_RANLIB"
6687 if test -n "$ac_tool_prefix"; then
6688 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6689 set dummy ${ac_tool_prefix}strip; ac_word=$2
6690 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6691 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6692 if test "${ac_cv_prog_STRIP+set}" = set; then
6693 echo $ECHO_N "(cached) $ECHO_C" >&6
6694 else
6695 if test -n "$STRIP"; then
6696 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6697 else
6698 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6699 for as_dir in $PATH
6701 IFS=$as_save_IFS
6702 test -z "$as_dir" && as_dir=.
6703 for ac_exec_ext in '' $ac_executable_extensions; do
6704 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6705 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6706 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6707 break 2
6709 done
6710 done
6711 IFS=$as_save_IFS
6715 STRIP=$ac_cv_prog_STRIP
6716 if test -n "$STRIP"; then
6717 { echo "$as_me:$LINENO: result: $STRIP" >&5
6718 echo "${ECHO_T}$STRIP" >&6; }
6719 else
6720 { echo "$as_me:$LINENO: result: no" >&5
6721 echo "${ECHO_T}no" >&6; }
6726 if test -z "$ac_cv_prog_STRIP"; then
6727 ac_ct_STRIP=$STRIP
6728 # Extract the first word of "strip", so it can be a program name with args.
6729 set dummy strip; ac_word=$2
6730 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6731 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6732 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6733 echo $ECHO_N "(cached) $ECHO_C" >&6
6734 else
6735 if test -n "$ac_ct_STRIP"; then
6736 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6737 else
6738 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6739 for as_dir in $PATH
6741 IFS=$as_save_IFS
6742 test -z "$as_dir" && as_dir=.
6743 for ac_exec_ext in '' $ac_executable_extensions; do
6744 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6745 ac_cv_prog_ac_ct_STRIP="strip"
6746 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6747 break 2
6749 done
6750 done
6751 IFS=$as_save_IFS
6755 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6756 if test -n "$ac_ct_STRIP"; then
6757 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6758 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
6759 else
6760 { echo "$as_me:$LINENO: result: no" >&5
6761 echo "${ECHO_T}no" >&6; }
6764 if test "x$ac_ct_STRIP" = x; then
6765 STRIP=":"
6766 else
6767 case $cross_compiling:$ac_tool_warned in
6768 yes:)
6769 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6770 whose name does not start with the host triplet. If you think this
6771 configuration is useful to you, please write to autoconf@gnu.org." >&5
6772 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6773 whose name does not start with the host triplet. If you think this
6774 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6775 ac_tool_warned=yes ;;
6776 esac
6777 STRIP=$ac_ct_STRIP
6779 else
6780 STRIP="$ac_cv_prog_STRIP"
6784 old_CC="$CC"
6785 old_CFLAGS="$CFLAGS"
6787 # Set sane defaults for various variables
6788 test -z "$AR" && AR=ar
6789 test -z "$AR_FLAGS" && AR_FLAGS=cru
6790 test -z "$AS" && AS=as
6791 test -z "$CC" && CC=cc
6792 test -z "$LTCC" && LTCC=$CC
6793 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6794 test -z "$DLLTOOL" && DLLTOOL=dlltool
6795 test -z "$LD" && LD=ld
6796 test -z "$LN_S" && LN_S="ln -s"
6797 test -z "$MAGIC_CMD" && MAGIC_CMD=file
6798 test -z "$NM" && NM=nm
6799 test -z "$SED" && SED=sed
6800 test -z "$OBJDUMP" && OBJDUMP=objdump
6801 test -z "$RANLIB" && RANLIB=:
6802 test -z "$STRIP" && STRIP=:
6803 test -z "$ac_objext" && ac_objext=o
6805 # Determine commands to create old-style static archives.
6806 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6807 old_postinstall_cmds='chmod 644 $oldlib'
6808 old_postuninstall_cmds=
6810 if test -n "$RANLIB"; then
6811 case $host_os in
6812 openbsd*)
6813 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6816 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6818 esac
6819 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6822 for cc_temp in $compiler""; do
6823 case $cc_temp in
6824 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6825 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6826 \-*) ;;
6827 *) break;;
6828 esac
6829 done
6830 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6833 # Only perform the check for file, if the check method requires it
6834 case $deplibs_check_method in
6835 file_magic*)
6836 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6837 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6838 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
6839 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6840 echo $ECHO_N "(cached) $ECHO_C" >&6
6841 else
6842 case $MAGIC_CMD in
6843 [\\/*] | ?:[\\/]*)
6844 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6847 lt_save_MAGIC_CMD="$MAGIC_CMD"
6848 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6849 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6850 for ac_dir in $ac_dummy; do
6851 IFS="$lt_save_ifs"
6852 test -z "$ac_dir" && ac_dir=.
6853 if test -f $ac_dir/${ac_tool_prefix}file; then
6854 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6855 if test -n "$file_magic_test_file"; then
6856 case $deplibs_check_method in
6857 "file_magic "*)
6858 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6859 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6860 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6861 $EGREP "$file_magic_regex" > /dev/null; then
6863 else
6864 cat <<EOF 1>&2
6866 *** Warning: the command libtool uses to detect shared libraries,
6867 *** $file_magic_cmd, produces output that libtool cannot recognize.
6868 *** The result is that libtool may fail to recognize shared libraries
6869 *** as such. This will affect the creation of libtool libraries that
6870 *** depend on shared libraries, but programs linked with such libtool
6871 *** libraries will work regardless of this problem. Nevertheless, you
6872 *** may want to report the problem to your system manager and/or to
6873 *** bug-libtool@gnu.org
6876 fi ;;
6877 esac
6879 break
6881 done
6882 IFS="$lt_save_ifs"
6883 MAGIC_CMD="$lt_save_MAGIC_CMD"
6885 esac
6888 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6889 if test -n "$MAGIC_CMD"; then
6890 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6891 echo "${ECHO_T}$MAGIC_CMD" >&6; }
6892 else
6893 { echo "$as_me:$LINENO: result: no" >&5
6894 echo "${ECHO_T}no" >&6; }
6897 if test -z "$lt_cv_path_MAGIC_CMD"; then
6898 if test -n "$ac_tool_prefix"; then
6899 { echo "$as_me:$LINENO: checking for file" >&5
6900 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
6901 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6902 echo $ECHO_N "(cached) $ECHO_C" >&6
6903 else
6904 case $MAGIC_CMD in
6905 [\\/*] | ?:[\\/]*)
6906 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6909 lt_save_MAGIC_CMD="$MAGIC_CMD"
6910 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6911 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6912 for ac_dir in $ac_dummy; do
6913 IFS="$lt_save_ifs"
6914 test -z "$ac_dir" && ac_dir=.
6915 if test -f $ac_dir/file; then
6916 lt_cv_path_MAGIC_CMD="$ac_dir/file"
6917 if test -n "$file_magic_test_file"; then
6918 case $deplibs_check_method in
6919 "file_magic "*)
6920 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6921 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6922 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6923 $EGREP "$file_magic_regex" > /dev/null; then
6925 else
6926 cat <<EOF 1>&2
6928 *** Warning: the command libtool uses to detect shared libraries,
6929 *** $file_magic_cmd, produces output that libtool cannot recognize.
6930 *** The result is that libtool may fail to recognize shared libraries
6931 *** as such. This will affect the creation of libtool libraries that
6932 *** depend on shared libraries, but programs linked with such libtool
6933 *** libraries will work regardless of this problem. Nevertheless, you
6934 *** may want to report the problem to your system manager and/or to
6935 *** bug-libtool@gnu.org
6938 fi ;;
6939 esac
6941 break
6943 done
6944 IFS="$lt_save_ifs"
6945 MAGIC_CMD="$lt_save_MAGIC_CMD"
6947 esac
6950 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6951 if test -n "$MAGIC_CMD"; then
6952 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6953 echo "${ECHO_T}$MAGIC_CMD" >&6; }
6954 else
6955 { echo "$as_me:$LINENO: result: no" >&5
6956 echo "${ECHO_T}no" >&6; }
6959 else
6960 MAGIC_CMD=:
6966 esac
6968 enable_dlopen=no
6969 enable_win32_dll=no
6971 # Check whether --enable-libtool-lock was given.
6972 if test "${enable_libtool_lock+set}" = set; then
6973 enableval=$enable_libtool_lock;
6976 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6979 # Check whether --with-pic was given.
6980 if test "${with_pic+set}" = set; then
6981 withval=$with_pic; pic_mode="$withval"
6982 else
6983 pic_mode=default
6986 test -z "$pic_mode" && pic_mode=default
6988 # Use C for the default configuration in the libtool script
6989 tagname=
6990 lt_save_CC="$CC"
6991 ac_ext=c
6992 ac_cpp='$CPP $CPPFLAGS'
6993 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6994 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6995 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6998 # Source file extension for C test sources.
6999 ac_ext=c
7001 # Object file extension for compiled C test sources.
7002 objext=o
7003 objext=$objext
7005 # Code to be used in simple compile tests
7006 lt_simple_compile_test_code="int some_variable = 0;"
7008 # Code to be used in simple link tests
7009 lt_simple_link_test_code='int main(){return(0);}'
7012 # If no C compiler was specified, use CC.
7013 LTCC=${LTCC-"$CC"}
7015 # If no C compiler flags were specified, use CFLAGS.
7016 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7018 # Allow CC to be a program name with arguments.
7019 compiler=$CC
7022 # save warnings/boilerplate of simple test code
7023 ac_outfile=conftest.$ac_objext
7024 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7025 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7026 _lt_compiler_boilerplate=`cat conftest.err`
7027 $rm conftest*
7029 ac_outfile=conftest.$ac_objext
7030 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7031 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7032 _lt_linker_boilerplate=`cat conftest.err`
7033 $rm conftest*
7037 lt_prog_compiler_no_builtin_flag=
7039 if test "$GCC" = yes; then
7040 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7043 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7044 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
7045 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7046 echo $ECHO_N "(cached) $ECHO_C" >&6
7047 else
7048 lt_cv_prog_compiler_rtti_exceptions=no
7049 ac_outfile=conftest.$ac_objext
7050 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7051 lt_compiler_flag="-fno-rtti -fno-exceptions"
7052 # Insert the option either (1) after the last *FLAGS variable, or
7053 # (2) before a word containing "conftest.", or (3) at the end.
7054 # Note that $ac_compile itself does not contain backslashes and begins
7055 # with a dollar sign (not a hyphen), so the echo should work correctly.
7056 # The option is referenced via a variable to avoid confusing sed.
7057 lt_compile=`echo "$ac_compile" | $SED \
7058 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7059 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7060 -e 's:$: $lt_compiler_flag:'`
7061 (eval echo "\"\$as_me:7061: $lt_compile\"" >&5)
7062 (eval "$lt_compile" 2>conftest.err)
7063 ac_status=$?
7064 cat conftest.err >&5
7065 echo "$as_me:7065: \$? = $ac_status" >&5
7066 if (exit $ac_status) && test -s "$ac_outfile"; then
7067 # The compiler can only warn and ignore the option if not recognized
7068 # So say no if there are warnings other than the usual output.
7069 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7070 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7071 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7072 lt_cv_prog_compiler_rtti_exceptions=yes
7075 $rm conftest*
7078 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7079 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7081 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7082 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7083 else
7089 lt_prog_compiler_wl=
7090 lt_prog_compiler_pic=
7091 lt_prog_compiler_static=
7093 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7094 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
7096 if test "$GCC" = yes; then
7097 lt_prog_compiler_wl='-Wl,'
7098 lt_prog_compiler_static='-static'
7100 case $host_os in
7101 aix*)
7102 # All AIX code is PIC.
7103 if test "$host_cpu" = ia64; then
7104 # AIX 5 now supports IA64 processor
7105 lt_prog_compiler_static='-Bstatic'
7109 amigaos*)
7110 # FIXME: we need at least 68020 code to build shared libraries, but
7111 # adding the `-m68020' flag to GCC prevents building anything better,
7112 # like `-m68040'.
7113 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7116 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7117 # PIC is the default for these OSes.
7120 mingw* | cygwin* | pw32* | os2*)
7121 # This hack is so that the source file can tell whether it is being
7122 # built for inclusion in a dll (and should export symbols for example).
7123 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7124 # (--disable-auto-import) libraries
7125 lt_prog_compiler_pic='-DDLL_EXPORT'
7128 darwin* | rhapsody*)
7129 # PIC is the default on this platform
7130 # Common symbols not allowed in MH_DYLIB files
7131 lt_prog_compiler_pic='-fno-common'
7134 interix[3-9]*)
7135 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7136 # Instead, we relocate shared libraries at runtime.
7139 msdosdjgpp*)
7140 # Just because we use GCC doesn't mean we suddenly get shared libraries
7141 # on systems that don't support them.
7142 lt_prog_compiler_can_build_shared=no
7143 enable_shared=no
7146 sysv4*MP*)
7147 if test -d /usr/nec; then
7148 lt_prog_compiler_pic=-Kconform_pic
7152 hpux*)
7153 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7154 # not for PA HP-UX.
7155 case $host_cpu in
7156 hppa*64*|ia64*)
7157 # +Z the default
7160 lt_prog_compiler_pic='-fPIC'
7162 esac
7166 lt_prog_compiler_pic='-fPIC'
7168 esac
7169 else
7170 # PORTME Check for flag to pass linker flags through the system compiler.
7171 case $host_os in
7172 aix*)
7173 lt_prog_compiler_wl='-Wl,'
7174 if test "$host_cpu" = ia64; then
7175 # AIX 5 now supports IA64 processor
7176 lt_prog_compiler_static='-Bstatic'
7177 else
7178 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7181 darwin*)
7182 # PIC is the default on this platform
7183 # Common symbols not allowed in MH_DYLIB files
7184 case $cc_basename in
7185 xlc*)
7186 lt_prog_compiler_pic='-qnocommon'
7187 lt_prog_compiler_wl='-Wl,'
7189 esac
7192 mingw* | cygwin* | pw32* | os2*)
7193 # This hack is so that the source file can tell whether it is being
7194 # built for inclusion in a dll (and should export symbols for example).
7195 lt_prog_compiler_pic='-DDLL_EXPORT'
7198 hpux9* | hpux10* | hpux11*)
7199 lt_prog_compiler_wl='-Wl,'
7200 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7201 # not for PA HP-UX.
7202 case $host_cpu in
7203 hppa*64*|ia64*)
7204 # +Z the default
7207 lt_prog_compiler_pic='+Z'
7209 esac
7210 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7211 lt_prog_compiler_static='${wl}-a ${wl}archive'
7214 irix5* | irix6* | nonstopux*)
7215 lt_prog_compiler_wl='-Wl,'
7216 # PIC (with -KPIC) is the default.
7217 lt_prog_compiler_static='-non_shared'
7220 newsos6)
7221 lt_prog_compiler_pic='-KPIC'
7222 lt_prog_compiler_static='-Bstatic'
7225 linux* | k*bsd*-gnu)
7226 case $cc_basename in
7227 icc* | ecc*)
7228 lt_prog_compiler_wl='-Wl,'
7229 lt_prog_compiler_pic='-KPIC'
7230 lt_prog_compiler_static='-static'
7232 pgcc* | pgf77* | pgf90* | pgf95*)
7233 # Portland Group compilers (*not* the Pentium gcc compiler,
7234 # which looks to be a dead project)
7235 lt_prog_compiler_wl='-Wl,'
7236 lt_prog_compiler_pic='-fpic'
7237 lt_prog_compiler_static='-Bstatic'
7239 ccc*)
7240 lt_prog_compiler_wl='-Wl,'
7241 # All Alpha code is PIC.
7242 lt_prog_compiler_static='-non_shared'
7245 case `$CC -V 2>&1 | sed 5q` in
7246 *Sun\ C*)
7247 # Sun C 5.9
7248 lt_prog_compiler_pic='-KPIC'
7249 lt_prog_compiler_static='-Bstatic'
7250 lt_prog_compiler_wl='-Wl,'
7252 *Sun\ F*)
7253 # Sun Fortran 8.3 passes all unrecognized flags to the linker
7254 lt_prog_compiler_pic='-KPIC'
7255 lt_prog_compiler_static='-Bstatic'
7256 lt_prog_compiler_wl=''
7258 esac
7260 esac
7263 osf3* | osf4* | osf5*)
7264 lt_prog_compiler_wl='-Wl,'
7265 # All OSF/1 code is PIC.
7266 lt_prog_compiler_static='-non_shared'
7269 rdos*)
7270 lt_prog_compiler_static='-non_shared'
7273 solaris*)
7274 lt_prog_compiler_pic='-KPIC'
7275 lt_prog_compiler_static='-Bstatic'
7276 case $cc_basename in
7277 f77* | f90* | f95*)
7278 lt_prog_compiler_wl='-Qoption ld ';;
7280 lt_prog_compiler_wl='-Wl,';;
7281 esac
7284 sunos4*)
7285 lt_prog_compiler_wl='-Qoption ld '
7286 lt_prog_compiler_pic='-PIC'
7287 lt_prog_compiler_static='-Bstatic'
7290 sysv4 | sysv4.2uw2* | sysv4.3*)
7291 lt_prog_compiler_wl='-Wl,'
7292 lt_prog_compiler_pic='-KPIC'
7293 lt_prog_compiler_static='-Bstatic'
7296 sysv4*MP*)
7297 if test -d /usr/nec ;then
7298 lt_prog_compiler_pic='-Kconform_pic'
7299 lt_prog_compiler_static='-Bstatic'
7303 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7304 lt_prog_compiler_wl='-Wl,'
7305 lt_prog_compiler_pic='-KPIC'
7306 lt_prog_compiler_static='-Bstatic'
7309 unicos*)
7310 lt_prog_compiler_wl='-Wl,'
7311 lt_prog_compiler_can_build_shared=no
7314 uts4*)
7315 lt_prog_compiler_pic='-pic'
7316 lt_prog_compiler_static='-Bstatic'
7320 lt_prog_compiler_can_build_shared=no
7322 esac
7325 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7326 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
7329 # Check to make sure the PIC flag actually works.
7331 if test -n "$lt_prog_compiler_pic"; then
7333 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7334 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
7335 if test "${lt_prog_compiler_pic_works+set}" = set; then
7336 echo $ECHO_N "(cached) $ECHO_C" >&6
7337 else
7338 lt_prog_compiler_pic_works=no
7339 ac_outfile=conftest.$ac_objext
7340 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7341 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7342 # Insert the option either (1) after the last *FLAGS variable, or
7343 # (2) before a word containing "conftest.", or (3) at the end.
7344 # Note that $ac_compile itself does not contain backslashes and begins
7345 # with a dollar sign (not a hyphen), so the echo should work correctly.
7346 # The option is referenced via a variable to avoid confusing sed.
7347 lt_compile=`echo "$ac_compile" | $SED \
7348 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7349 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7350 -e 's:$: $lt_compiler_flag:'`
7351 (eval echo "\"\$as_me:7351: $lt_compile\"" >&5)
7352 (eval "$lt_compile" 2>conftest.err)
7353 ac_status=$?
7354 cat conftest.err >&5
7355 echo "$as_me:7355: \$? = $ac_status" >&5
7356 if (exit $ac_status) && test -s "$ac_outfile"; then
7357 # The compiler can only warn and ignore the option if not recognized
7358 # So say no if there are warnings other than the usual output.
7359 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7360 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7361 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7362 lt_prog_compiler_pic_works=yes
7365 $rm conftest*
7368 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7369 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
7371 if test x"$lt_prog_compiler_pic_works" = xyes; then
7372 case $lt_prog_compiler_pic in
7373 "" | " "*) ;;
7374 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7375 esac
7376 else
7377 lt_prog_compiler_pic=
7378 lt_prog_compiler_can_build_shared=no
7382 case $host_os in
7383 # For platforms which do not support PIC, -DPIC is meaningless:
7384 *djgpp*)
7385 lt_prog_compiler_pic=
7388 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7390 esac
7393 # Check to make sure the static flag actually works.
7395 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7396 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7397 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
7398 if test "${lt_prog_compiler_static_works+set}" = set; then
7399 echo $ECHO_N "(cached) $ECHO_C" >&6
7400 else
7401 lt_prog_compiler_static_works=no
7402 save_LDFLAGS="$LDFLAGS"
7403 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7404 echo "$lt_simple_link_test_code" > conftest.$ac_ext
7405 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7406 # The linker can only warn and ignore the option if not recognized
7407 # So say no if there are warnings
7408 if test -s conftest.err; then
7409 # Append any errors to the config.log.
7410 cat conftest.err 1>&5
7411 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7412 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7413 if diff conftest.exp conftest.er2 >/dev/null; then
7414 lt_prog_compiler_static_works=yes
7416 else
7417 lt_prog_compiler_static_works=yes
7420 $rm conftest*
7421 LDFLAGS="$save_LDFLAGS"
7424 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7425 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
7427 if test x"$lt_prog_compiler_static_works" = xyes; then
7429 else
7430 lt_prog_compiler_static=
7434 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7435 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
7436 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7437 echo $ECHO_N "(cached) $ECHO_C" >&6
7438 else
7439 lt_cv_prog_compiler_c_o=no
7440 $rm -r conftest 2>/dev/null
7441 mkdir conftest
7442 cd conftest
7443 mkdir out
7444 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7446 lt_compiler_flag="-o out/conftest2.$ac_objext"
7447 # Insert the option either (1) after the last *FLAGS variable, or
7448 # (2) before a word containing "conftest.", or (3) at the end.
7449 # Note that $ac_compile itself does not contain backslashes and begins
7450 # with a dollar sign (not a hyphen), so the echo should work correctly.
7451 lt_compile=`echo "$ac_compile" | $SED \
7452 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7453 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7454 -e 's:$: $lt_compiler_flag:'`
7455 (eval echo "\"\$as_me:7455: $lt_compile\"" >&5)
7456 (eval "$lt_compile" 2>out/conftest.err)
7457 ac_status=$?
7458 cat out/conftest.err >&5
7459 echo "$as_me:7459: \$? = $ac_status" >&5
7460 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7461 then
7462 # The compiler can only warn and ignore the option if not recognized
7463 # So say no if there are warnings
7464 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7465 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7466 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7467 lt_cv_prog_compiler_c_o=yes
7470 chmod u+w . 2>&5
7471 $rm conftest*
7472 # SGI C++ compiler will create directory out/ii_files/ for
7473 # template instantiation
7474 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7475 $rm out/* && rmdir out
7476 cd ..
7477 rmdir conftest
7478 $rm conftest*
7481 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7482 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
7485 hard_links="nottested"
7486 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7487 # do not overwrite the value of need_locks provided by the user
7488 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7489 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
7490 hard_links=yes
7491 $rm conftest*
7492 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7493 touch conftest.a
7494 ln conftest.a conftest.b 2>&5 || hard_links=no
7495 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7496 { echo "$as_me:$LINENO: result: $hard_links" >&5
7497 echo "${ECHO_T}$hard_links" >&6; }
7498 if test "$hard_links" = no; then
7499 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7500 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7501 need_locks=warn
7503 else
7504 need_locks=no
7507 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7508 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
7510 runpath_var=
7511 allow_undefined_flag=
7512 enable_shared_with_static_runtimes=no
7513 archive_cmds=
7514 archive_expsym_cmds=
7515 old_archive_From_new_cmds=
7516 old_archive_from_expsyms_cmds=
7517 export_dynamic_flag_spec=
7518 whole_archive_flag_spec=
7519 thread_safe_flag_spec=
7520 hardcode_libdir_flag_spec=
7521 hardcode_libdir_flag_spec_ld=
7522 hardcode_libdir_separator=
7523 hardcode_direct=no
7524 hardcode_minus_L=no
7525 hardcode_shlibpath_var=unsupported
7526 link_all_deplibs=unknown
7527 hardcode_automatic=no
7528 module_cmds=
7529 module_expsym_cmds=
7530 always_export_symbols=no
7531 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7532 # include_expsyms should be a list of space-separated symbols to be *always*
7533 # included in the symbol list
7534 include_expsyms=
7535 # exclude_expsyms can be an extended regexp of symbols to exclude
7536 # it will be wrapped by ` (' and `)$', so one must not match beginning or
7537 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7538 # as well as any symbol that contains `d'.
7539 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
7540 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7541 # platforms (ab)use it in PIC code, but their linkers get confused if
7542 # the symbol is explicitly referenced. Since portable code cannot
7543 # rely on this symbol name, it's probably fine to never include it in
7544 # preloaded symbol tables.
7545 extract_expsyms_cmds=
7546 # Just being paranoid about ensuring that cc_basename is set.
7547 for cc_temp in $compiler""; do
7548 case $cc_temp in
7549 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7550 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7551 \-*) ;;
7552 *) break;;
7553 esac
7554 done
7555 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7557 case $host_os in
7558 cygwin* | mingw* | pw32*)
7559 # FIXME: the MSVC++ port hasn't been tested in a loooong time
7560 # When not using gcc, we currently assume that we are using
7561 # Microsoft Visual C++.
7562 if test "$GCC" != yes; then
7563 with_gnu_ld=no
7566 interix*)
7567 # we just hope/assume this is gcc and not c89 (= MSVC++)
7568 with_gnu_ld=yes
7570 openbsd*)
7571 with_gnu_ld=no
7573 esac
7575 ld_shlibs=yes
7576 if test "$with_gnu_ld" = yes; then
7577 # If archive_cmds runs LD, not CC, wlarc should be empty
7578 wlarc='${wl}'
7580 # Set some defaults for GNU ld with shared library support. These
7581 # are reset later if shared libraries are not supported. Putting them
7582 # here allows them to be overridden if necessary.
7583 runpath_var=LD_RUN_PATH
7584 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
7585 export_dynamic_flag_spec='${wl}--export-dynamic'
7586 # ancient GNU ld didn't support --whole-archive et. al.
7587 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
7588 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7589 else
7590 whole_archive_flag_spec=
7592 supports_anon_versioning=no
7593 case `$LD -v 2>/dev/null` in
7594 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7595 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7596 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7597 *\ 2.11.*) ;; # other 2.11 versions
7598 *) supports_anon_versioning=yes ;;
7599 esac
7601 # See if GNU ld supports shared libraries.
7602 case $host_os in
7603 aix3* | aix4* | aix5*)
7604 # On AIX/PPC, the GNU linker is very broken
7605 if test "$host_cpu" != ia64; then
7606 ld_shlibs=no
7607 cat <<EOF 1>&2
7609 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
7610 *** to be unable to reliably create shared libraries on AIX.
7611 *** Therefore, libtool is disabling shared libraries support. If you
7612 *** really care for shared libraries, you may want to modify your PATH
7613 *** so that a non-GNU linker is found, and then restart.
7619 amigaos*)
7620 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)'
7621 hardcode_libdir_flag_spec='-L$libdir'
7622 hardcode_minus_L=yes
7624 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7625 # that the semantics of dynamic libraries on AmigaOS, at least up
7626 # to version 4, is to share data among multiple programs linked
7627 # with the same dynamic library. Since this doesn't match the
7628 # behavior of shared libraries on other platforms, we can't use
7629 # them.
7630 ld_shlibs=no
7633 beos*)
7634 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7635 allow_undefined_flag=unsupported
7636 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7637 # support --undefined. This deserves some investigation. FIXME
7638 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7639 else
7640 ld_shlibs=no
7644 cygwin* | mingw* | pw32*)
7645 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7646 # as there is no search path for DLLs.
7647 hardcode_libdir_flag_spec='-L$libdir'
7648 allow_undefined_flag=unsupported
7649 always_export_symbols=no
7650 enable_shared_with_static_runtimes=yes
7651 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
7653 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
7654 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7655 # If the export-symbols file already is a .def file (1st line
7656 # is EXPORTS), use it as is; otherwise, prepend...
7657 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7658 cp $export_symbols $output_objdir/$soname.def;
7659 else
7660 echo EXPORTS > $output_objdir/$soname.def;
7661 cat $export_symbols >> $output_objdir/$soname.def;
7663 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7664 else
7665 ld_shlibs=no
7669 interix[3-9]*)
7670 hardcode_direct=no
7671 hardcode_shlibpath_var=no
7672 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7673 export_dynamic_flag_spec='${wl}-E'
7674 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7675 # Instead, shared libraries are loaded at an image base (0x10000000 by
7676 # default) and relocated if they conflict, which is a slow very memory
7677 # consuming and fragmenting process. To avoid this, we pick a random,
7678 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7679 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
7680 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7681 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'
7684 gnu* | linux* | k*bsd*-gnu)
7685 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7686 tmp_addflag=
7687 case $cc_basename,$host_cpu in
7688 pgcc*) # Portland Group C compiler
7689 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'
7690 tmp_addflag=' $pic_flag'
7692 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
7693 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'
7694 tmp_addflag=' $pic_flag -Mnomain' ;;
7695 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
7696 tmp_addflag=' -i_dynamic' ;;
7697 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
7698 tmp_addflag=' -i_dynamic -nofor_main' ;;
7699 ifc* | ifort*) # Intel Fortran compiler
7700 tmp_addflag=' -nofor_main' ;;
7701 esac
7702 case `$CC -V 2>&1 | sed 5q` in
7703 *Sun\ C*) # Sun C 5.9
7704 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
7705 tmp_sharedflag='-G' ;;
7706 *Sun\ F*) # Sun Fortran 8.3
7707 tmp_sharedflag='-G' ;;
7709 tmp_sharedflag='-shared' ;;
7710 esac
7711 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7713 if test $supports_anon_versioning = yes; then
7714 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
7715 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7716 $echo "local: *; };" >> $output_objdir/$libname.ver~
7717 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7719 else
7720 ld_shlibs=no
7724 netbsd*)
7725 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7726 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7727 wlarc=
7728 else
7729 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7730 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7734 solaris*)
7735 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
7736 ld_shlibs=no
7737 cat <<EOF 1>&2
7739 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
7740 *** create shared libraries on Solaris systems. Therefore, libtool
7741 *** is disabling shared libraries support. We urge you to upgrade GNU
7742 *** binutils to release 2.9.1 or newer. Another option is to modify
7743 *** your PATH or compiler configuration so that the native linker is
7744 *** used, and then restart.
7747 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7748 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7749 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7750 else
7751 ld_shlibs=no
7755 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7756 case `$LD -v 2>&1` in
7757 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7758 ld_shlibs=no
7759 cat <<_LT_EOF 1>&2
7761 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7762 *** reliably create shared libraries on SCO systems. Therefore, libtool
7763 *** is disabling shared libraries support. We urge you to upgrade GNU
7764 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
7765 *** your PATH or compiler configuration so that the native linker is
7766 *** used, and then restart.
7768 _LT_EOF
7771 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7772 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
7773 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
7774 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
7775 else
7776 ld_shlibs=no
7779 esac
7782 sunos4*)
7783 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7784 wlarc=
7785 hardcode_direct=yes
7786 hardcode_shlibpath_var=no
7790 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7791 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7792 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7793 else
7794 ld_shlibs=no
7797 esac
7799 if test "$ld_shlibs" = no; then
7800 runpath_var=
7801 hardcode_libdir_flag_spec=
7802 export_dynamic_flag_spec=
7803 whole_archive_flag_spec=
7805 else
7806 # PORTME fill in a description of your system's linker (not GNU ld)
7807 case $host_os in
7808 aix3*)
7809 allow_undefined_flag=unsupported
7810 always_export_symbols=yes
7811 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'
7812 # Note: this linker hardcodes the directories in LIBPATH if there
7813 # are no directories specified by -L.
7814 hardcode_minus_L=yes
7815 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
7816 # Neither direct hardcoding nor static linking is supported with a
7817 # broken collect2.
7818 hardcode_direct=unsupported
7822 aix4* | aix5*)
7823 if test "$host_cpu" = ia64; then
7824 # On IA64, the linker does run time linking by default, so we don't
7825 # have to do anything special.
7826 aix_use_runtimelinking=no
7827 exp_sym_flag='-Bexport'
7828 no_entry_flag=""
7829 else
7830 # If we're using GNU nm, then we don't want the "-C" option.
7831 # -C means demangle to AIX nm, but means don't demangle with GNU nm
7832 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
7833 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'
7834 else
7835 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'
7837 aix_use_runtimelinking=no
7839 # Test if we are trying to use run time linking or normal
7840 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7841 # need to do runtime linking.
7842 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
7843 for ld_flag in $LDFLAGS; do
7844 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7845 aix_use_runtimelinking=yes
7846 break
7848 done
7850 esac
7852 exp_sym_flag='-bexport'
7853 no_entry_flag='-bnoentry'
7856 # When large executables or shared objects are built, AIX ld can
7857 # have problems creating the table of contents. If linking a library
7858 # or program results in "error TOC overflow" add -mminimal-toc to
7859 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
7860 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7862 archive_cmds=''
7863 hardcode_direct=yes
7864 hardcode_libdir_separator=':'
7865 link_all_deplibs=yes
7867 if test "$GCC" = yes; then
7868 case $host_os in aix4.[012]|aix4.[012].*)
7869 # We only want to do this on AIX 4.2 and lower, the check
7870 # below for broken collect2 doesn't work under 4.3+
7871 collect2name=`${CC} -print-prog-name=collect2`
7872 if test -f "$collect2name" && \
7873 strings "$collect2name" | grep resolve_lib_name >/dev/null
7874 then
7875 # We have reworked collect2
7877 else
7878 # We have old collect2
7879 hardcode_direct=unsupported
7880 # It fails to find uninstalled libraries when the uninstalled
7881 # path is not listed in the libpath. Setting hardcode_minus_L
7882 # to unsupported forces relinking
7883 hardcode_minus_L=yes
7884 hardcode_libdir_flag_spec='-L$libdir'
7885 hardcode_libdir_separator=
7888 esac
7889 shared_flag='-shared'
7890 if test "$aix_use_runtimelinking" = yes; then
7891 shared_flag="$shared_flag "'${wl}-G'
7893 else
7894 # not using gcc
7895 if test "$host_cpu" = ia64; then
7896 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7897 # chokes on -Wl,-G. The following line is correct:
7898 shared_flag='-G'
7899 else
7900 if test "$aix_use_runtimelinking" = yes; then
7901 shared_flag='${wl}-G'
7902 else
7903 shared_flag='${wl}-bM:SRE'
7908 # It seems that -bexpall does not export symbols beginning with
7909 # underscore (_), so it is better to generate a list of symbols to export.
7910 always_export_symbols=yes
7911 if test "$aix_use_runtimelinking" = yes; then
7912 # Warning - without using the other runtime loading flags (-brtl),
7913 # -berok will link without error, but may produce a broken library.
7914 allow_undefined_flag='-berok'
7915 # Determine the default libpath from the value encoded in an empty executable.
7916 cat >conftest.$ac_ext <<_ACEOF
7917 /* confdefs.h. */
7918 _ACEOF
7919 cat confdefs.h >>conftest.$ac_ext
7920 cat >>conftest.$ac_ext <<_ACEOF
7921 /* end confdefs.h. */
7924 main ()
7928 return 0;
7930 _ACEOF
7931 rm -f conftest.$ac_objext conftest$ac_exeext
7932 if { (ac_try="$ac_link"
7933 case "(($ac_try" in
7934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7935 *) ac_try_echo=$ac_try;;
7936 esac
7937 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7938 (eval "$ac_link") 2>conftest.er1
7939 ac_status=$?
7940 grep -v '^ *+' conftest.er1 >conftest.err
7941 rm -f conftest.er1
7942 cat conftest.err >&5
7943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7944 (exit $ac_status); } && {
7945 test -z "$ac_c_werror_flag" ||
7946 test ! -s conftest.err
7947 } && test -s conftest$ac_exeext &&
7948 $as_test_x conftest$ac_exeext; then
7950 lt_aix_libpath_sed='
7951 /Import File Strings/,/^$/ {
7952 /^0/ {
7953 s/^0 *\(.*\)$/\1/
7957 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7958 # Check for a 64-bit object if we didn't find anything.
7959 if test -z "$aix_libpath"; then
7960 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7962 else
7963 echo "$as_me: failed program was:" >&5
7964 sed 's/^/| /' conftest.$ac_ext >&5
7969 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7970 conftest$ac_exeext conftest.$ac_ext
7971 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7973 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7974 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"
7975 else
7976 if test "$host_cpu" = ia64; then
7977 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7978 allow_undefined_flag="-z nodefs"
7979 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"
7980 else
7981 # Determine the default libpath from the value encoded in an empty executable.
7982 cat >conftest.$ac_ext <<_ACEOF
7983 /* confdefs.h. */
7984 _ACEOF
7985 cat confdefs.h >>conftest.$ac_ext
7986 cat >>conftest.$ac_ext <<_ACEOF
7987 /* end confdefs.h. */
7990 main ()
7994 return 0;
7996 _ACEOF
7997 rm -f conftest.$ac_objext conftest$ac_exeext
7998 if { (ac_try="$ac_link"
7999 case "(($ac_try" in
8000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8001 *) ac_try_echo=$ac_try;;
8002 esac
8003 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8004 (eval "$ac_link") 2>conftest.er1
8005 ac_status=$?
8006 grep -v '^ *+' conftest.er1 >conftest.err
8007 rm -f conftest.er1
8008 cat conftest.err >&5
8009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8010 (exit $ac_status); } && {
8011 test -z "$ac_c_werror_flag" ||
8012 test ! -s conftest.err
8013 } && test -s conftest$ac_exeext &&
8014 $as_test_x conftest$ac_exeext; then
8016 lt_aix_libpath_sed='
8017 /Import File Strings/,/^$/ {
8018 /^0/ {
8019 s/^0 *\(.*\)$/\1/
8023 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8024 # Check for a 64-bit object if we didn't find anything.
8025 if test -z "$aix_libpath"; then
8026 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8028 else
8029 echo "$as_me: failed program was:" >&5
8030 sed 's/^/| /' conftest.$ac_ext >&5
8035 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8036 conftest$ac_exeext conftest.$ac_ext
8037 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8039 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8040 # Warning - without using the other run time loading flags,
8041 # -berok will link without error, but may produce a broken library.
8042 no_undefined_flag=' ${wl}-bernotok'
8043 allow_undefined_flag=' ${wl}-berok'
8044 # Exported symbols can be pulled into shared objects from archives
8045 whole_archive_flag_spec='$convenience'
8046 archive_cmds_need_lc=yes
8047 # This is similar to how AIX traditionally builds its shared libraries.
8048 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'
8053 amigaos*)
8054 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)'
8055 hardcode_libdir_flag_spec='-L$libdir'
8056 hardcode_minus_L=yes
8057 # see comment about different semantics on the GNU ld section
8058 ld_shlibs=no
8061 bsdi[45]*)
8062 export_dynamic_flag_spec=-rdynamic
8065 cygwin* | mingw* | pw32*)
8066 # When not using gcc, we currently assume that we are using
8067 # Microsoft Visual C++.
8068 # hardcode_libdir_flag_spec is actually meaningless, as there is
8069 # no search path for DLLs.
8070 hardcode_libdir_flag_spec=' '
8071 allow_undefined_flag=unsupported
8072 # Tell ltmain to make .lib files, not .a files.
8073 libext=lib
8074 # Tell ltmain to make .dll files, not .so files.
8075 shrext_cmds=".dll"
8076 # FIXME: Setting linknames here is a bad hack.
8077 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8078 # The linker will automatically build a .lib file if we build a DLL.
8079 old_archive_From_new_cmds='true'
8080 # FIXME: Should let the user specify the lib program.
8081 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8082 fix_srcfile_path='`cygpath -w "$srcfile"`'
8083 enable_shared_with_static_runtimes=yes
8086 darwin* | rhapsody*)
8087 case $host_os in
8088 rhapsody* | darwin1.[012])
8089 allow_undefined_flag='${wl}-undefined ${wl}suppress'
8091 *) # Darwin 1.3 on
8092 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8093 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8094 else
8095 case ${MACOSX_DEPLOYMENT_TARGET} in
8096 10.[012])
8097 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8099 10.*)
8100 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8102 esac
8105 esac
8106 archive_cmds_need_lc=no
8107 hardcode_direct=no
8108 hardcode_automatic=yes
8109 hardcode_shlibpath_var=unsupported
8110 whole_archive_flag_spec=''
8111 link_all_deplibs=yes
8112 if test "$GCC" = yes ; then
8113 output_verbose_link_cmd='echo'
8114 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8115 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8116 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8117 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}'
8118 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}'
8119 else
8120 case $cc_basename in
8121 xlc*)
8122 output_verbose_link_cmd='echo'
8123 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
8124 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8125 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8126 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 $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8127 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}'
8130 ld_shlibs=no
8132 esac
8136 dgux*)
8137 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8138 hardcode_libdir_flag_spec='-L$libdir'
8139 hardcode_shlibpath_var=no
8142 freebsd1*)
8143 ld_shlibs=no
8146 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8147 # support. Future versions do this automatically, but an explicit c++rt0.o
8148 # does not break anything, and helps significantly (at the cost of a little
8149 # extra space).
8150 freebsd2.2*)
8151 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8152 hardcode_libdir_flag_spec='-R$libdir'
8153 hardcode_direct=yes
8154 hardcode_shlibpath_var=no
8157 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8158 freebsd2*)
8159 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8160 hardcode_direct=yes
8161 hardcode_minus_L=yes
8162 hardcode_shlibpath_var=no
8165 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8166 freebsd* | dragonfly*)
8167 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8168 hardcode_libdir_flag_spec='-R$libdir'
8169 hardcode_direct=yes
8170 hardcode_shlibpath_var=no
8173 hpux9*)
8174 if test "$GCC" = yes; then
8175 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'
8176 else
8177 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'
8179 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8180 hardcode_libdir_separator=:
8181 hardcode_direct=yes
8183 # hardcode_minus_L: Not really in the search PATH,
8184 # but as the default location of the library.
8185 hardcode_minus_L=yes
8186 export_dynamic_flag_spec='${wl}-E'
8189 hpux10*)
8190 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8191 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8192 else
8193 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8195 if test "$with_gnu_ld" = no; then
8196 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8197 hardcode_libdir_separator=:
8199 hardcode_direct=yes
8200 export_dynamic_flag_spec='${wl}-E'
8202 # hardcode_minus_L: Not really in the search PATH,
8203 # but as the default location of the library.
8204 hardcode_minus_L=yes
8208 hpux11*)
8209 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8210 case $host_cpu in
8211 hppa*64*)
8212 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8214 ia64*)
8215 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8218 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8220 esac
8221 else
8222 case $host_cpu in
8223 hppa*64*)
8224 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8226 ia64*)
8227 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8230 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8232 esac
8234 if test "$with_gnu_ld" = no; then
8235 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8236 hardcode_libdir_separator=:
8238 case $host_cpu in
8239 hppa*64*|ia64*)
8240 hardcode_libdir_flag_spec_ld='+b $libdir'
8241 hardcode_direct=no
8242 hardcode_shlibpath_var=no
8245 hardcode_direct=yes
8246 export_dynamic_flag_spec='${wl}-E'
8248 # hardcode_minus_L: Not really in the search PATH,
8249 # but as the default location of the library.
8250 hardcode_minus_L=yes
8252 esac
8256 irix5* | irix6* | nonstopux*)
8257 if test "$GCC" = yes; then
8258 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'
8259 else
8260 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'
8261 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8263 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8264 hardcode_libdir_separator=:
8265 link_all_deplibs=yes
8268 netbsd*)
8269 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8270 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8271 else
8272 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8274 hardcode_libdir_flag_spec='-R$libdir'
8275 hardcode_direct=yes
8276 hardcode_shlibpath_var=no
8279 newsos6)
8280 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8281 hardcode_direct=yes
8282 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8283 hardcode_libdir_separator=:
8284 hardcode_shlibpath_var=no
8287 openbsd*)
8288 if test -f /usr/libexec/ld.so; then
8289 hardcode_direct=yes
8290 hardcode_shlibpath_var=no
8291 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8292 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8293 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8294 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8295 export_dynamic_flag_spec='${wl}-E'
8296 else
8297 case $host_os in
8298 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8299 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8300 hardcode_libdir_flag_spec='-R$libdir'
8303 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8304 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8306 esac
8308 else
8309 ld_shlibs=no
8313 os2*)
8314 hardcode_libdir_flag_spec='-L$libdir'
8315 hardcode_minus_L=yes
8316 allow_undefined_flag=unsupported
8317 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'
8318 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8321 osf3*)
8322 if test "$GCC" = yes; then
8323 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8324 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'
8325 else
8326 allow_undefined_flag=' -expect_unresolved \*'
8327 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'
8329 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8330 hardcode_libdir_separator=:
8333 osf4* | osf5*) # as osf3* with the addition of -msym flag
8334 if test "$GCC" = yes; then
8335 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8336 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'
8337 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8338 else
8339 allow_undefined_flag=' -expect_unresolved \*'
8340 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'
8341 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8342 $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'
8344 # Both c and cxx compiler support -rpath directly
8345 hardcode_libdir_flag_spec='-rpath $libdir'
8347 hardcode_libdir_separator=:
8350 solaris*)
8351 no_undefined_flag=' -z text'
8352 if test "$GCC" = yes; then
8353 wlarc='${wl}'
8354 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8355 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8356 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8357 else
8358 wlarc=''
8359 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8360 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8361 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8363 hardcode_libdir_flag_spec='-R$libdir'
8364 hardcode_shlibpath_var=no
8365 case $host_os in
8366 solaris2.[0-5] | solaris2.[0-5].*) ;;
8368 # The compiler driver will combine and reorder linker options,
8369 # but understands `-z linker_flag'. GCC discards it without `$wl',
8370 # but is careful enough not to reorder.
8371 # Supported since Solaris 2.6 (maybe 2.5.1?)
8372 if test "$GCC" = yes; then
8373 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8374 else
8375 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8378 esac
8379 link_all_deplibs=yes
8382 sunos4*)
8383 if test "x$host_vendor" = xsequent; then
8384 # Use $CC to link under sequent, because it throws in some extra .o
8385 # files that make .init and .fini sections work.
8386 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8387 else
8388 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8390 hardcode_libdir_flag_spec='-L$libdir'
8391 hardcode_direct=yes
8392 hardcode_minus_L=yes
8393 hardcode_shlibpath_var=no
8396 sysv4)
8397 case $host_vendor in
8398 sni)
8399 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8400 hardcode_direct=yes # is this really true???
8402 siemens)
8403 ## LD is ld it makes a PLAMLIB
8404 ## CC just makes a GrossModule.
8405 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8406 reload_cmds='$CC -r -o $output$reload_objs'
8407 hardcode_direct=no
8409 motorola)
8410 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8411 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8413 esac
8414 runpath_var='LD_RUN_PATH'
8415 hardcode_shlibpath_var=no
8418 sysv4.3*)
8419 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8420 hardcode_shlibpath_var=no
8421 export_dynamic_flag_spec='-Bexport'
8424 sysv4*MP*)
8425 if test -d /usr/nec; then
8426 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8427 hardcode_shlibpath_var=no
8428 runpath_var=LD_RUN_PATH
8429 hardcode_runpath_var=yes
8430 ld_shlibs=yes
8434 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
8435 no_undefined_flag='${wl}-z,text'
8436 archive_cmds_need_lc=no
8437 hardcode_shlibpath_var=no
8438 runpath_var='LD_RUN_PATH'
8440 if test "$GCC" = yes; then
8441 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8442 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8443 else
8444 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8445 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8449 sysv5* | sco3.2v5* | sco5v6*)
8450 # Note: We can NOT use -z defs as we might desire, because we do not
8451 # link with -lc, and that would cause any symbols used from libc to
8452 # always be unresolved, which means just about no library would
8453 # ever link correctly. If we're not using GNU ld we use -z text
8454 # though, which does catch some bad symbols but isn't as heavy-handed
8455 # as -z defs.
8456 no_undefined_flag='${wl}-z,text'
8457 allow_undefined_flag='${wl}-z,nodefs'
8458 archive_cmds_need_lc=no
8459 hardcode_shlibpath_var=no
8460 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
8461 hardcode_libdir_separator=':'
8462 link_all_deplibs=yes
8463 export_dynamic_flag_spec='${wl}-Bexport'
8464 runpath_var='LD_RUN_PATH'
8466 if test "$GCC" = yes; then
8467 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8468 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8469 else
8470 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8471 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8475 uts4*)
8476 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8477 hardcode_libdir_flag_spec='-L$libdir'
8478 hardcode_shlibpath_var=no
8482 ld_shlibs=no
8484 esac
8487 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8488 echo "${ECHO_T}$ld_shlibs" >&6; }
8489 test "$ld_shlibs" = no && can_build_shared=no
8492 # Do we need to explicitly link libc?
8494 case "x$archive_cmds_need_lc" in
8495 x|xyes)
8496 # Assume -lc should be added
8497 archive_cmds_need_lc=yes
8499 if test "$enable_shared" = yes && test "$GCC" = yes; then
8500 case $archive_cmds in
8501 *'~'*)
8502 # FIXME: we may have to deal with multi-command sequences.
8504 '$CC '*)
8505 # Test whether the compiler implicitly links with -lc since on some
8506 # systems, -lgcc has to come before -lc. If gcc already passes -lc
8507 # to ld, don't add -lc before -lgcc.
8508 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8509 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
8510 $rm conftest*
8511 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8513 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8514 (eval $ac_compile) 2>&5
8515 ac_status=$?
8516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8517 (exit $ac_status); } 2>conftest.err; then
8518 soname=conftest
8519 lib=conftest
8520 libobjs=conftest.$ac_objext
8521 deplibs=
8522 wl=$lt_prog_compiler_wl
8523 pic_flag=$lt_prog_compiler_pic
8524 compiler_flags=-v
8525 linker_flags=-v
8526 verstring=
8527 output_objdir=.
8528 libname=conftest
8529 lt_save_allow_undefined_flag=$allow_undefined_flag
8530 allow_undefined_flag=
8531 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
8532 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8533 ac_status=$?
8534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8535 (exit $ac_status); }
8536 then
8537 archive_cmds_need_lc=no
8538 else
8539 archive_cmds_need_lc=yes
8541 allow_undefined_flag=$lt_save_allow_undefined_flag
8542 else
8543 cat conftest.err 1>&5
8545 $rm conftest*
8546 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8547 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
8549 esac
8552 esac
8554 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8555 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8556 library_names_spec=
8557 libname_spec='lib$name'
8558 soname_spec=
8559 shrext_cmds=".so"
8560 postinstall_cmds=
8561 postuninstall_cmds=
8562 finish_cmds=
8563 finish_eval=
8564 shlibpath_var=
8565 shlibpath_overrides_runpath=unknown
8566 version_type=none
8567 dynamic_linker="$host_os ld.so"
8568 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8570 if test "$GCC" = yes; then
8571 case $host_os in
8572 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
8573 *) lt_awk_arg="/^libraries:/" ;;
8574 esac
8575 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8576 if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
8577 # if the path contains ";" then we assume it to be the separator
8578 # otherwise default to the standard path separator (i.e. ":") - it is
8579 # assumed that no part of a normal pathname contains ";" but that should
8580 # okay in the real world where ";" in dirpaths is itself problematic.
8581 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
8582 else
8583 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8585 # Ok, now we have the path, separated by spaces, we can step through it
8586 # and add multilib dir if necessary.
8587 lt_tmp_lt_search_path_spec=
8588 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
8589 for lt_sys_path in $lt_search_path_spec; do
8590 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
8591 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
8592 else
8593 test -d "$lt_sys_path" && \
8594 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
8596 done
8597 lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
8598 BEGIN {RS=" "; FS="/|\n";} {
8599 lt_foo="";
8600 lt_count=0;
8601 for (lt_i = NF; lt_i > 0; lt_i--) {
8602 if ($lt_i != "" && $lt_i != ".") {
8603 if ($lt_i == "..") {
8604 lt_count++;
8605 } else {
8606 if (lt_count == 0) {
8607 lt_foo="/" $lt_i lt_foo;
8608 } else {
8609 lt_count--;
8614 if (lt_foo != "") { lt_freq[lt_foo]++; }
8615 if (lt_freq[lt_foo] == 1) { print lt_foo; }
8617 sys_lib_search_path_spec=`echo $lt_search_path_spec`
8618 else
8619 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8621 need_lib_prefix=unknown
8622 hardcode_into_libs=no
8624 # when you set need_version to no, make sure it does not cause -set_version
8625 # flags to be left without arguments
8626 need_version=unknown
8628 case $host_os in
8629 aix3*)
8630 version_type=linux
8631 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8632 shlibpath_var=LIBPATH
8634 # AIX 3 has no versioning support, so we append a major version to the name.
8635 soname_spec='${libname}${release}${shared_ext}$major'
8638 aix4* | aix5*)
8639 version_type=linux
8640 need_lib_prefix=no
8641 need_version=no
8642 hardcode_into_libs=yes
8643 if test "$host_cpu" = ia64; then
8644 # AIX 5 supports IA64
8645 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8646 shlibpath_var=LD_LIBRARY_PATH
8647 else
8648 # With GCC up to 2.95.x, collect2 would create an import file
8649 # for dependence libraries. The import file would start with
8650 # the line `#! .'. This would cause the generated library to
8651 # depend on `.', always an invalid library. This was fixed in
8652 # development snapshots of GCC prior to 3.0.
8653 case $host_os in
8654 aix4 | aix4.[01] | aix4.[01].*)
8655 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8656 echo ' yes '
8657 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8659 else
8660 can_build_shared=no
8663 esac
8664 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8665 # soname into executable. Probably we can add versioning support to
8666 # collect2, so additional links can be useful in future.
8667 if test "$aix_use_runtimelinking" = yes; then
8668 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8669 # instead of lib<name>.a to let people know that these are not
8670 # typical AIX shared libraries.
8671 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8672 else
8673 # We preserve .a as extension for shared libraries through AIX4.2
8674 # and later when we are not doing run time linking.
8675 library_names_spec='${libname}${release}.a $libname.a'
8676 soname_spec='${libname}${release}${shared_ext}$major'
8678 shlibpath_var=LIBPATH
8682 amigaos*)
8683 library_names_spec='$libname.ixlibrary $libname.a'
8684 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8685 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'
8688 beos*)
8689 library_names_spec='${libname}${shared_ext}'
8690 dynamic_linker="$host_os ld.so"
8691 shlibpath_var=LIBRARY_PATH
8694 bsdi[45]*)
8695 version_type=linux
8696 need_version=no
8697 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8698 soname_spec='${libname}${release}${shared_ext}$major'
8699 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8700 shlibpath_var=LD_LIBRARY_PATH
8701 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8702 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8703 # the default ld.so.conf also contains /usr/contrib/lib and
8704 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8705 # libtool to hard-code these into programs
8708 cygwin* | mingw* | pw32*)
8709 version_type=windows
8710 shrext_cmds=".dll"
8711 need_version=no
8712 need_lib_prefix=no
8714 case $GCC,$host_os in
8715 yes,cygwin* | yes,mingw* | yes,pw32*)
8716 library_names_spec='$libname.dll.a'
8717 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8718 postinstall_cmds='base_file=`basename \${file}`~
8719 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8720 dldir=$destdir/`dirname \$dlpath`~
8721 test -d \$dldir || mkdir -p \$dldir~
8722 $install_prog $dir/$dlname \$dldir/$dlname~
8723 chmod a+x \$dldir/$dlname'
8724 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8725 dlpath=$dir/\$dldll~
8726 $rm \$dlpath'
8727 shlibpath_overrides_runpath=yes
8729 case $host_os in
8730 cygwin*)
8731 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8732 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8733 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8735 mingw*)
8736 # MinGW DLLs use traditional 'lib' prefix
8737 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8738 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8739 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8740 # It is most probably a Windows format PATH printed by
8741 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8742 # path with ; separators, and with drive letters. We can handle the
8743 # drive letters (cygwin fileutils understands them), so leave them,
8744 # especially as we might pass files found there to a mingw objdump,
8745 # which wouldn't understand a cygwinified path. Ahh.
8746 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8747 else
8748 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8751 pw32*)
8752 # pw32 DLLs use 'pw' prefix rather than 'lib'
8753 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8755 esac
8759 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8761 esac
8762 dynamic_linker='Win32 ld.exe'
8763 # FIXME: first we should search . and the directory the executable is in
8764 shlibpath_var=PATH
8767 darwin* | rhapsody*)
8768 dynamic_linker="$host_os dyld"
8769 version_type=darwin
8770 need_lib_prefix=no
8771 need_version=no
8772 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8773 soname_spec='${libname}${release}${major}$shared_ext'
8774 shlibpath_overrides_runpath=yes
8775 shlibpath_var=DYLD_LIBRARY_PATH
8776 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
8778 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
8779 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8782 dgux*)
8783 version_type=linux
8784 need_lib_prefix=no
8785 need_version=no
8786 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8787 soname_spec='${libname}${release}${shared_ext}$major'
8788 shlibpath_var=LD_LIBRARY_PATH
8791 freebsd1*)
8792 dynamic_linker=no
8795 freebsd* | dragonfly*)
8796 # DragonFly does not have aout. When/if they implement a new
8797 # versioning mechanism, adjust this.
8798 if test -x /usr/bin/objformat; then
8799 objformat=`/usr/bin/objformat`
8800 else
8801 case $host_os in
8802 freebsd[123]*) objformat=aout ;;
8803 *) objformat=elf ;;
8804 esac
8806 version_type=freebsd-$objformat
8807 case $version_type in
8808 freebsd-elf*)
8809 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8810 need_version=no
8811 need_lib_prefix=no
8813 freebsd-*)
8814 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8815 need_version=yes
8817 esac
8818 shlibpath_var=LD_LIBRARY_PATH
8819 case $host_os in
8820 freebsd2*)
8821 shlibpath_overrides_runpath=yes
8823 freebsd3.[01]* | freebsdelf3.[01]*)
8824 shlibpath_overrides_runpath=yes
8825 hardcode_into_libs=yes
8827 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8828 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8829 shlibpath_overrides_runpath=no
8830 hardcode_into_libs=yes
8832 *) # from 4.6 on, and DragonFly
8833 shlibpath_overrides_runpath=yes
8834 hardcode_into_libs=yes
8836 esac
8839 gnu*)
8840 version_type=linux
8841 need_lib_prefix=no
8842 need_version=no
8843 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8844 soname_spec='${libname}${release}${shared_ext}$major'
8845 shlibpath_var=LD_LIBRARY_PATH
8846 hardcode_into_libs=yes
8849 hpux9* | hpux10* | hpux11*)
8850 # Give a soname corresponding to the major version so that dld.sl refuses to
8851 # link against other versions.
8852 version_type=sunos
8853 need_lib_prefix=no
8854 need_version=no
8855 case $host_cpu in
8856 ia64*)
8857 shrext_cmds='.so'
8858 hardcode_into_libs=yes
8859 dynamic_linker="$host_os dld.so"
8860 shlibpath_var=LD_LIBRARY_PATH
8861 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8862 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8863 soname_spec='${libname}${release}${shared_ext}$major'
8864 if test "X$HPUX_IA64_MODE" = X32; then
8865 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8866 else
8867 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8869 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8871 hppa*64*)
8872 shrext_cmds='.sl'
8873 hardcode_into_libs=yes
8874 dynamic_linker="$host_os dld.sl"
8875 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8876 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8877 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8878 soname_spec='${libname}${release}${shared_ext}$major'
8879 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8880 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8883 shrext_cmds='.sl'
8884 dynamic_linker="$host_os dld.sl"
8885 shlibpath_var=SHLIB_PATH
8886 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8887 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8888 soname_spec='${libname}${release}${shared_ext}$major'
8890 esac
8891 # HP-UX runs *really* slowly unless shared libraries are mode 555.
8892 postinstall_cmds='chmod 555 $lib'
8895 interix[3-9]*)
8896 version_type=linux
8897 need_lib_prefix=no
8898 need_version=no
8899 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8900 soname_spec='${libname}${release}${shared_ext}$major'
8901 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8902 shlibpath_var=LD_LIBRARY_PATH
8903 shlibpath_overrides_runpath=no
8904 hardcode_into_libs=yes
8907 irix5* | irix6* | nonstopux*)
8908 case $host_os in
8909 nonstopux*) version_type=nonstopux ;;
8911 if test "$lt_cv_prog_gnu_ld" = yes; then
8912 version_type=linux
8913 else
8914 version_type=irix
8915 fi ;;
8916 esac
8917 need_lib_prefix=no
8918 need_version=no
8919 soname_spec='${libname}${release}${shared_ext}$major'
8920 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8921 case $host_os in
8922 irix5* | nonstopux*)
8923 libsuff= shlibsuff=
8926 case $LD in # libtool.m4 will add one of these switches to LD
8927 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8928 libsuff= shlibsuff= libmagic=32-bit;;
8929 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8930 libsuff=32 shlibsuff=N32 libmagic=N32;;
8931 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8932 libsuff=64 shlibsuff=64 libmagic=64-bit;;
8933 *) libsuff= shlibsuff= libmagic=never-match;;
8934 esac
8936 esac
8937 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8938 shlibpath_overrides_runpath=no
8939 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8940 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8941 hardcode_into_libs=yes
8944 # No shared lib support for Linux oldld, aout, or coff.
8945 linux*oldld* | linux*aout* | linux*coff*)
8946 dynamic_linker=no
8949 # This must be Linux ELF.
8950 linux* | k*bsd*-gnu)
8951 version_type=linux
8952 need_lib_prefix=no
8953 need_version=no
8954 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8955 soname_spec='${libname}${release}${shared_ext}$major'
8956 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8957 shlibpath_var=LD_LIBRARY_PATH
8958 shlibpath_overrides_runpath=no
8959 # This implies no fast_install, which is unacceptable.
8960 # Some rework will be needed to allow for fast_install
8961 # before this can be enabled.
8962 hardcode_into_libs=yes
8963 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8964 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8966 # Append ld.so.conf contents to the search path
8967 if test -f /etc/ld.so.conf; then
8968 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
8969 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
8972 # We used to test for /lib/ld.so.1 and disable shared libraries on
8973 # powerpc, because MkLinux only supported shared libraries with the
8974 # GNU dynamic linker. Since this was broken with cross compilers,
8975 # most powerpc-linux boxes support dynamic linking these days and
8976 # people can always --disable-shared, the test was removed, and we
8977 # assume the GNU/Linux dynamic linker is in use.
8978 dynamic_linker='GNU/Linux ld.so'
8981 netbsd*)
8982 version_type=sunos
8983 need_lib_prefix=no
8984 need_version=no
8985 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8986 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8987 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8988 dynamic_linker='NetBSD (a.out) ld.so'
8989 else
8990 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8991 soname_spec='${libname}${release}${shared_ext}$major'
8992 dynamic_linker='NetBSD ld.elf_so'
8994 shlibpath_var=LD_LIBRARY_PATH
8995 shlibpath_overrides_runpath=yes
8996 hardcode_into_libs=yes
8999 newsos6)
9000 version_type=linux
9001 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9002 shlibpath_var=LD_LIBRARY_PATH
9003 shlibpath_overrides_runpath=yes
9006 nto-qnx*)
9007 version_type=linux
9008 need_lib_prefix=no
9009 need_version=no
9010 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9011 soname_spec='${libname}${release}${shared_ext}$major'
9012 shlibpath_var=LD_LIBRARY_PATH
9013 shlibpath_overrides_runpath=yes
9016 openbsd*)
9017 version_type=sunos
9018 sys_lib_dlsearch_path_spec="/usr/lib"
9019 need_lib_prefix=no
9020 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9021 case $host_os in
9022 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9023 *) need_version=no ;;
9024 esac
9025 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9026 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9027 shlibpath_var=LD_LIBRARY_PATH
9028 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9029 case $host_os in
9030 openbsd2.[89] | openbsd2.[89].*)
9031 shlibpath_overrides_runpath=no
9034 shlibpath_overrides_runpath=yes
9036 esac
9037 else
9038 shlibpath_overrides_runpath=yes
9042 os2*)
9043 libname_spec='$name'
9044 shrext_cmds=".dll"
9045 need_lib_prefix=no
9046 library_names_spec='$libname${shared_ext} $libname.a'
9047 dynamic_linker='OS/2 ld.exe'
9048 shlibpath_var=LIBPATH
9051 osf3* | osf4* | osf5*)
9052 version_type=osf
9053 need_lib_prefix=no
9054 need_version=no
9055 soname_spec='${libname}${release}${shared_ext}$major'
9056 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9057 shlibpath_var=LD_LIBRARY_PATH
9058 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9059 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9062 rdos*)
9063 dynamic_linker=no
9066 solaris*)
9067 version_type=linux
9068 need_lib_prefix=no
9069 need_version=no
9070 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9071 soname_spec='${libname}${release}${shared_ext}$major'
9072 shlibpath_var=LD_LIBRARY_PATH
9073 shlibpath_overrides_runpath=yes
9074 hardcode_into_libs=yes
9075 # ldd complains unless libraries are executable
9076 postinstall_cmds='chmod +x $lib'
9079 sunos4*)
9080 version_type=sunos
9081 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9082 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9083 shlibpath_var=LD_LIBRARY_PATH
9084 shlibpath_overrides_runpath=yes
9085 if test "$with_gnu_ld" = yes; then
9086 need_lib_prefix=no
9088 need_version=yes
9091 sysv4 | sysv4.3*)
9092 version_type=linux
9093 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9094 soname_spec='${libname}${release}${shared_ext}$major'
9095 shlibpath_var=LD_LIBRARY_PATH
9096 case $host_vendor in
9097 sni)
9098 shlibpath_overrides_runpath=no
9099 need_lib_prefix=no
9100 export_dynamic_flag_spec='${wl}-Blargedynsym'
9101 runpath_var=LD_RUN_PATH
9103 siemens)
9104 need_lib_prefix=no
9106 motorola)
9107 need_lib_prefix=no
9108 need_version=no
9109 shlibpath_overrides_runpath=no
9110 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9112 esac
9115 sysv4*MP*)
9116 if test -d /usr/nec ;then
9117 version_type=linux
9118 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9119 soname_spec='$libname${shared_ext}.$major'
9120 shlibpath_var=LD_LIBRARY_PATH
9124 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9125 version_type=freebsd-elf
9126 need_lib_prefix=no
9127 need_version=no
9128 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9129 soname_spec='${libname}${release}${shared_ext}$major'
9130 shlibpath_var=LD_LIBRARY_PATH
9131 hardcode_into_libs=yes
9132 if test "$with_gnu_ld" = yes; then
9133 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9134 shlibpath_overrides_runpath=no
9135 else
9136 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9137 shlibpath_overrides_runpath=yes
9138 case $host_os in
9139 sco3.2v5*)
9140 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9142 esac
9144 sys_lib_dlsearch_path_spec='/usr/lib'
9147 uts4*)
9148 version_type=linux
9149 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9150 soname_spec='${libname}${release}${shared_ext}$major'
9151 shlibpath_var=LD_LIBRARY_PATH
9155 dynamic_linker=no
9157 esac
9158 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9159 echo "${ECHO_T}$dynamic_linker" >&6; }
9160 test "$dynamic_linker" = no && can_build_shared=no
9162 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9163 if test "$GCC" = yes; then
9164 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9167 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9168 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
9169 hardcode_action=
9170 if test -n "$hardcode_libdir_flag_spec" || \
9171 test -n "$runpath_var" || \
9172 test "X$hardcode_automatic" = "Xyes" ; then
9174 # We can hardcode non-existant directories.
9175 if test "$hardcode_direct" != no &&
9176 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9177 # have to relink, otherwise we might link with an installed library
9178 # when we should be linking with a yet-to-be-installed one
9179 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9180 test "$hardcode_minus_L" != no; then
9181 # Linking always hardcodes the temporary library directory.
9182 hardcode_action=relink
9183 else
9184 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9185 hardcode_action=immediate
9187 else
9188 # We cannot hardcode anything, or else we can only hardcode existing
9189 # directories.
9190 hardcode_action=unsupported
9192 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
9193 echo "${ECHO_T}$hardcode_action" >&6; }
9195 if test "$hardcode_action" = relink; then
9196 # Fast installation is not supported
9197 enable_fast_install=no
9198 elif test "$shlibpath_overrides_runpath" = yes ||
9199 test "$enable_shared" = no; then
9200 # Fast installation is not necessary
9201 enable_fast_install=needless
9204 striplib=
9205 old_striplib=
9206 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9207 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
9208 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9209 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9210 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9211 { echo "$as_me:$LINENO: result: yes" >&5
9212 echo "${ECHO_T}yes" >&6; }
9213 else
9214 # FIXME - insert some real tests, host_os isn't really good enough
9215 case $host_os in
9216 darwin*)
9217 if test -n "$STRIP" ; then
9218 striplib="$STRIP -x"
9219 old_striplib="$STRIP -S"
9220 { echo "$as_me:$LINENO: result: yes" >&5
9221 echo "${ECHO_T}yes" >&6; }
9222 else
9223 { echo "$as_me:$LINENO: result: no" >&5
9224 echo "${ECHO_T}no" >&6; }
9228 { echo "$as_me:$LINENO: result: no" >&5
9229 echo "${ECHO_T}no" >&6; }
9231 esac
9234 if test "x$enable_dlopen" != xyes; then
9235 enable_dlopen=unknown
9236 enable_dlopen_self=unknown
9237 enable_dlopen_self_static=unknown
9238 else
9239 lt_cv_dlopen=no
9240 lt_cv_dlopen_libs=
9242 case $host_os in
9243 beos*)
9244 lt_cv_dlopen="load_add_on"
9245 lt_cv_dlopen_libs=
9246 lt_cv_dlopen_self=yes
9249 mingw* | pw32*)
9250 lt_cv_dlopen="LoadLibrary"
9251 lt_cv_dlopen_libs=
9254 cygwin*)
9255 lt_cv_dlopen="dlopen"
9256 lt_cv_dlopen_libs=
9259 darwin*)
9260 # if libdl is installed we need to link against it
9261 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9262 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9263 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9264 echo $ECHO_N "(cached) $ECHO_C" >&6
9265 else
9266 ac_check_lib_save_LIBS=$LIBS
9267 LIBS="-ldl $LIBS"
9268 cat >conftest.$ac_ext <<_ACEOF
9269 /* confdefs.h. */
9270 _ACEOF
9271 cat confdefs.h >>conftest.$ac_ext
9272 cat >>conftest.$ac_ext <<_ACEOF
9273 /* end confdefs.h. */
9275 /* Override any GCC internal prototype to avoid an error.
9276 Use char because int might match the return type of a GCC
9277 builtin and then its argument prototype would still apply. */
9278 #ifdef __cplusplus
9279 extern "C"
9280 #endif
9281 char dlopen ();
9283 main ()
9285 return dlopen ();
9287 return 0;
9289 _ACEOF
9290 rm -f conftest.$ac_objext conftest$ac_exeext
9291 if { (ac_try="$ac_link"
9292 case "(($ac_try" in
9293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9294 *) ac_try_echo=$ac_try;;
9295 esac
9296 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9297 (eval "$ac_link") 2>conftest.er1
9298 ac_status=$?
9299 grep -v '^ *+' conftest.er1 >conftest.err
9300 rm -f conftest.er1
9301 cat conftest.err >&5
9302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9303 (exit $ac_status); } && {
9304 test -z "$ac_c_werror_flag" ||
9305 test ! -s conftest.err
9306 } && test -s conftest$ac_exeext &&
9307 $as_test_x conftest$ac_exeext; then
9308 ac_cv_lib_dl_dlopen=yes
9309 else
9310 echo "$as_me: failed program was:" >&5
9311 sed 's/^/| /' conftest.$ac_ext >&5
9313 ac_cv_lib_dl_dlopen=no
9316 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9317 conftest$ac_exeext conftest.$ac_ext
9318 LIBS=$ac_check_lib_save_LIBS
9320 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9321 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9322 if test $ac_cv_lib_dl_dlopen = yes; then
9323 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9324 else
9326 lt_cv_dlopen="dyld"
9327 lt_cv_dlopen_libs=
9328 lt_cv_dlopen_self=yes
9335 { echo "$as_me:$LINENO: checking for shl_load" >&5
9336 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9337 if test "${ac_cv_func_shl_load+set}" = set; then
9338 echo $ECHO_N "(cached) $ECHO_C" >&6
9339 else
9340 cat >conftest.$ac_ext <<_ACEOF
9341 /* confdefs.h. */
9342 _ACEOF
9343 cat confdefs.h >>conftest.$ac_ext
9344 cat >>conftest.$ac_ext <<_ACEOF
9345 /* end confdefs.h. */
9346 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9347 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9348 #define shl_load innocuous_shl_load
9350 /* System header to define __stub macros and hopefully few prototypes,
9351 which can conflict with char shl_load (); below.
9352 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9353 <limits.h> exists even on freestanding compilers. */
9355 #ifdef __STDC__
9356 # include <limits.h>
9357 #else
9358 # include <assert.h>
9359 #endif
9361 #undef shl_load
9363 /* Override any GCC internal prototype to avoid an error.
9364 Use char because int might match the return type of a GCC
9365 builtin and then its argument prototype would still apply. */
9366 #ifdef __cplusplus
9367 extern "C"
9368 #endif
9369 char shl_load ();
9370 /* The GNU C library defines this for functions which it implements
9371 to always fail with ENOSYS. Some functions are actually named
9372 something starting with __ and the normal name is an alias. */
9373 #if defined __stub_shl_load || defined __stub___shl_load
9374 choke me
9375 #endif
9378 main ()
9380 return shl_load ();
9382 return 0;
9384 _ACEOF
9385 rm -f conftest.$ac_objext conftest$ac_exeext
9386 if { (ac_try="$ac_link"
9387 case "(($ac_try" in
9388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9389 *) ac_try_echo=$ac_try;;
9390 esac
9391 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9392 (eval "$ac_link") 2>conftest.er1
9393 ac_status=$?
9394 grep -v '^ *+' conftest.er1 >conftest.err
9395 rm -f conftest.er1
9396 cat conftest.err >&5
9397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9398 (exit $ac_status); } && {
9399 test -z "$ac_c_werror_flag" ||
9400 test ! -s conftest.err
9401 } && test -s conftest$ac_exeext &&
9402 $as_test_x conftest$ac_exeext; then
9403 ac_cv_func_shl_load=yes
9404 else
9405 echo "$as_me: failed program was:" >&5
9406 sed 's/^/| /' conftest.$ac_ext >&5
9408 ac_cv_func_shl_load=no
9411 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9412 conftest$ac_exeext conftest.$ac_ext
9414 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9415 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9416 if test $ac_cv_func_shl_load = yes; then
9417 lt_cv_dlopen="shl_load"
9418 else
9419 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9420 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9421 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9422 echo $ECHO_N "(cached) $ECHO_C" >&6
9423 else
9424 ac_check_lib_save_LIBS=$LIBS
9425 LIBS="-ldld $LIBS"
9426 cat >conftest.$ac_ext <<_ACEOF
9427 /* confdefs.h. */
9428 _ACEOF
9429 cat confdefs.h >>conftest.$ac_ext
9430 cat >>conftest.$ac_ext <<_ACEOF
9431 /* end confdefs.h. */
9433 /* Override any GCC internal prototype to avoid an error.
9434 Use char because int might match the return type of a GCC
9435 builtin and then its argument prototype would still apply. */
9436 #ifdef __cplusplus
9437 extern "C"
9438 #endif
9439 char shl_load ();
9441 main ()
9443 return shl_load ();
9445 return 0;
9447 _ACEOF
9448 rm -f conftest.$ac_objext conftest$ac_exeext
9449 if { (ac_try="$ac_link"
9450 case "(($ac_try" in
9451 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9452 *) ac_try_echo=$ac_try;;
9453 esac
9454 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9455 (eval "$ac_link") 2>conftest.er1
9456 ac_status=$?
9457 grep -v '^ *+' conftest.er1 >conftest.err
9458 rm -f conftest.er1
9459 cat conftest.err >&5
9460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9461 (exit $ac_status); } && {
9462 test -z "$ac_c_werror_flag" ||
9463 test ! -s conftest.err
9464 } && test -s conftest$ac_exeext &&
9465 $as_test_x conftest$ac_exeext; then
9466 ac_cv_lib_dld_shl_load=yes
9467 else
9468 echo "$as_me: failed program was:" >&5
9469 sed 's/^/| /' conftest.$ac_ext >&5
9471 ac_cv_lib_dld_shl_load=no
9474 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9475 conftest$ac_exeext conftest.$ac_ext
9476 LIBS=$ac_check_lib_save_LIBS
9478 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9479 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9480 if test $ac_cv_lib_dld_shl_load = yes; then
9481 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9482 else
9483 { echo "$as_me:$LINENO: checking for dlopen" >&5
9484 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
9485 if test "${ac_cv_func_dlopen+set}" = set; then
9486 echo $ECHO_N "(cached) $ECHO_C" >&6
9487 else
9488 cat >conftest.$ac_ext <<_ACEOF
9489 /* confdefs.h. */
9490 _ACEOF
9491 cat confdefs.h >>conftest.$ac_ext
9492 cat >>conftest.$ac_ext <<_ACEOF
9493 /* end confdefs.h. */
9494 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9495 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9496 #define dlopen innocuous_dlopen
9498 /* System header to define __stub macros and hopefully few prototypes,
9499 which can conflict with char dlopen (); below.
9500 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9501 <limits.h> exists even on freestanding compilers. */
9503 #ifdef __STDC__
9504 # include <limits.h>
9505 #else
9506 # include <assert.h>
9507 #endif
9509 #undef dlopen
9511 /* Override any GCC internal prototype to avoid an error.
9512 Use char because int might match the return type of a GCC
9513 builtin and then its argument prototype would still apply. */
9514 #ifdef __cplusplus
9515 extern "C"
9516 #endif
9517 char dlopen ();
9518 /* The GNU C library defines this for functions which it implements
9519 to always fail with ENOSYS. Some functions are actually named
9520 something starting with __ and the normal name is an alias. */
9521 #if defined __stub_dlopen || defined __stub___dlopen
9522 choke me
9523 #endif
9526 main ()
9528 return dlopen ();
9530 return 0;
9532 _ACEOF
9533 rm -f conftest.$ac_objext conftest$ac_exeext
9534 if { (ac_try="$ac_link"
9535 case "(($ac_try" in
9536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9537 *) ac_try_echo=$ac_try;;
9538 esac
9539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9540 (eval "$ac_link") 2>conftest.er1
9541 ac_status=$?
9542 grep -v '^ *+' conftest.er1 >conftest.err
9543 rm -f conftest.er1
9544 cat conftest.err >&5
9545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9546 (exit $ac_status); } && {
9547 test -z "$ac_c_werror_flag" ||
9548 test ! -s conftest.err
9549 } && test -s conftest$ac_exeext &&
9550 $as_test_x conftest$ac_exeext; then
9551 ac_cv_func_dlopen=yes
9552 else
9553 echo "$as_me: failed program was:" >&5
9554 sed 's/^/| /' conftest.$ac_ext >&5
9556 ac_cv_func_dlopen=no
9559 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9560 conftest$ac_exeext conftest.$ac_ext
9562 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9563 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
9564 if test $ac_cv_func_dlopen = yes; then
9565 lt_cv_dlopen="dlopen"
9566 else
9567 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9568 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9569 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9570 echo $ECHO_N "(cached) $ECHO_C" >&6
9571 else
9572 ac_check_lib_save_LIBS=$LIBS
9573 LIBS="-ldl $LIBS"
9574 cat >conftest.$ac_ext <<_ACEOF
9575 /* confdefs.h. */
9576 _ACEOF
9577 cat confdefs.h >>conftest.$ac_ext
9578 cat >>conftest.$ac_ext <<_ACEOF
9579 /* end confdefs.h. */
9581 /* Override any GCC internal prototype to avoid an error.
9582 Use char because int might match the return type of a GCC
9583 builtin and then its argument prototype would still apply. */
9584 #ifdef __cplusplus
9585 extern "C"
9586 #endif
9587 char dlopen ();
9589 main ()
9591 return dlopen ();
9593 return 0;
9595 _ACEOF
9596 rm -f conftest.$ac_objext conftest$ac_exeext
9597 if { (ac_try="$ac_link"
9598 case "(($ac_try" in
9599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9600 *) ac_try_echo=$ac_try;;
9601 esac
9602 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9603 (eval "$ac_link") 2>conftest.er1
9604 ac_status=$?
9605 grep -v '^ *+' conftest.er1 >conftest.err
9606 rm -f conftest.er1
9607 cat conftest.err >&5
9608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9609 (exit $ac_status); } && {
9610 test -z "$ac_c_werror_flag" ||
9611 test ! -s conftest.err
9612 } && test -s conftest$ac_exeext &&
9613 $as_test_x conftest$ac_exeext; then
9614 ac_cv_lib_dl_dlopen=yes
9615 else
9616 echo "$as_me: failed program was:" >&5
9617 sed 's/^/| /' conftest.$ac_ext >&5
9619 ac_cv_lib_dl_dlopen=no
9622 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9623 conftest$ac_exeext conftest.$ac_ext
9624 LIBS=$ac_check_lib_save_LIBS
9626 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9627 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9628 if test $ac_cv_lib_dl_dlopen = yes; then
9629 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9630 else
9631 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9632 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
9633 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9634 echo $ECHO_N "(cached) $ECHO_C" >&6
9635 else
9636 ac_check_lib_save_LIBS=$LIBS
9637 LIBS="-lsvld $LIBS"
9638 cat >conftest.$ac_ext <<_ACEOF
9639 /* confdefs.h. */
9640 _ACEOF
9641 cat confdefs.h >>conftest.$ac_ext
9642 cat >>conftest.$ac_ext <<_ACEOF
9643 /* end confdefs.h. */
9645 /* Override any GCC internal prototype to avoid an error.
9646 Use char because int might match the return type of a GCC
9647 builtin and then its argument prototype would still apply. */
9648 #ifdef __cplusplus
9649 extern "C"
9650 #endif
9651 char dlopen ();
9653 main ()
9655 return dlopen ();
9657 return 0;
9659 _ACEOF
9660 rm -f conftest.$ac_objext conftest$ac_exeext
9661 if { (ac_try="$ac_link"
9662 case "(($ac_try" in
9663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9664 *) ac_try_echo=$ac_try;;
9665 esac
9666 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9667 (eval "$ac_link") 2>conftest.er1
9668 ac_status=$?
9669 grep -v '^ *+' conftest.er1 >conftest.err
9670 rm -f conftest.er1
9671 cat conftest.err >&5
9672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9673 (exit $ac_status); } && {
9674 test -z "$ac_c_werror_flag" ||
9675 test ! -s conftest.err
9676 } && test -s conftest$ac_exeext &&
9677 $as_test_x conftest$ac_exeext; then
9678 ac_cv_lib_svld_dlopen=yes
9679 else
9680 echo "$as_me: failed program was:" >&5
9681 sed 's/^/| /' conftest.$ac_ext >&5
9683 ac_cv_lib_svld_dlopen=no
9686 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9687 conftest$ac_exeext conftest.$ac_ext
9688 LIBS=$ac_check_lib_save_LIBS
9690 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9691 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
9692 if test $ac_cv_lib_svld_dlopen = yes; then
9693 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9694 else
9695 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9696 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
9697 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9698 echo $ECHO_N "(cached) $ECHO_C" >&6
9699 else
9700 ac_check_lib_save_LIBS=$LIBS
9701 LIBS="-ldld $LIBS"
9702 cat >conftest.$ac_ext <<_ACEOF
9703 /* confdefs.h. */
9704 _ACEOF
9705 cat confdefs.h >>conftest.$ac_ext
9706 cat >>conftest.$ac_ext <<_ACEOF
9707 /* end confdefs.h. */
9709 /* Override any GCC internal prototype to avoid an error.
9710 Use char because int might match the return type of a GCC
9711 builtin and then its argument prototype would still apply. */
9712 #ifdef __cplusplus
9713 extern "C"
9714 #endif
9715 char dld_link ();
9717 main ()
9719 return dld_link ();
9721 return 0;
9723 _ACEOF
9724 rm -f conftest.$ac_objext conftest$ac_exeext
9725 if { (ac_try="$ac_link"
9726 case "(($ac_try" in
9727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9728 *) ac_try_echo=$ac_try;;
9729 esac
9730 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9731 (eval "$ac_link") 2>conftest.er1
9732 ac_status=$?
9733 grep -v '^ *+' conftest.er1 >conftest.err
9734 rm -f conftest.er1
9735 cat conftest.err >&5
9736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9737 (exit $ac_status); } && {
9738 test -z "$ac_c_werror_flag" ||
9739 test ! -s conftest.err
9740 } && test -s conftest$ac_exeext &&
9741 $as_test_x conftest$ac_exeext; then
9742 ac_cv_lib_dld_dld_link=yes
9743 else
9744 echo "$as_me: failed program was:" >&5
9745 sed 's/^/| /' conftest.$ac_ext >&5
9747 ac_cv_lib_dld_dld_link=no
9750 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9751 conftest$ac_exeext conftest.$ac_ext
9752 LIBS=$ac_check_lib_save_LIBS
9754 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9755 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
9756 if test $ac_cv_lib_dld_dld_link = yes; then
9757 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
9776 esac
9778 if test "x$lt_cv_dlopen" != xno; then
9779 enable_dlopen=yes
9780 else
9781 enable_dlopen=no
9784 case $lt_cv_dlopen in
9785 dlopen)
9786 save_CPPFLAGS="$CPPFLAGS"
9787 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9789 save_LDFLAGS="$LDFLAGS"
9790 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9792 save_LIBS="$LIBS"
9793 LIBS="$lt_cv_dlopen_libs $LIBS"
9795 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
9796 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
9797 if test "${lt_cv_dlopen_self+set}" = set; then
9798 echo $ECHO_N "(cached) $ECHO_C" >&6
9799 else
9800 if test "$cross_compiling" = yes; then :
9801 lt_cv_dlopen_self=cross
9802 else
9803 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9804 lt_status=$lt_dlunknown
9805 cat > conftest.$ac_ext <<EOF
9806 #line 9806 "configure"
9807 #include "confdefs.h"
9809 #if HAVE_DLFCN_H
9810 #include <dlfcn.h>
9811 #endif
9813 #include <stdio.h>
9815 #ifdef RTLD_GLOBAL
9816 # define LT_DLGLOBAL RTLD_GLOBAL
9817 #else
9818 # ifdef DL_GLOBAL
9819 # define LT_DLGLOBAL DL_GLOBAL
9820 # else
9821 # define LT_DLGLOBAL 0
9822 # endif
9823 #endif
9825 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9826 find out it does not work in some platform. */
9827 #ifndef LT_DLLAZY_OR_NOW
9828 # ifdef RTLD_LAZY
9829 # define LT_DLLAZY_OR_NOW RTLD_LAZY
9830 # else
9831 # ifdef DL_LAZY
9832 # define LT_DLLAZY_OR_NOW DL_LAZY
9833 # else
9834 # ifdef RTLD_NOW
9835 # define LT_DLLAZY_OR_NOW RTLD_NOW
9836 # else
9837 # ifdef DL_NOW
9838 # define LT_DLLAZY_OR_NOW DL_NOW
9839 # else
9840 # define LT_DLLAZY_OR_NOW 0
9841 # endif
9842 # endif
9843 # endif
9844 # endif
9845 #endif
9847 #ifdef __cplusplus
9848 extern "C" void exit (int);
9849 #endif
9851 void fnord() { int i=42;}
9852 int main ()
9854 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9855 int status = $lt_dlunknown;
9857 if (self)
9859 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9860 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9861 /* dlclose (self); */
9863 else
9864 puts (dlerror ());
9866 exit (status);
9869 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9870 (eval $ac_link) 2>&5
9871 ac_status=$?
9872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9873 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9874 (./conftest; exit; ) >&5 2>/dev/null
9875 lt_status=$?
9876 case x$lt_status in
9877 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9878 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9879 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
9880 esac
9881 else :
9882 # compilation failed
9883 lt_cv_dlopen_self=no
9886 rm -fr conftest*
9890 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
9891 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
9893 if test "x$lt_cv_dlopen_self" = xyes; then
9894 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
9895 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
9896 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
9897 if test "${lt_cv_dlopen_self_static+set}" = set; then
9898 echo $ECHO_N "(cached) $ECHO_C" >&6
9899 else
9900 if test "$cross_compiling" = yes; then :
9901 lt_cv_dlopen_self_static=cross
9902 else
9903 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9904 lt_status=$lt_dlunknown
9905 cat > conftest.$ac_ext <<EOF
9906 #line 9906 "configure"
9907 #include "confdefs.h"
9909 #if HAVE_DLFCN_H
9910 #include <dlfcn.h>
9911 #endif
9913 #include <stdio.h>
9915 #ifdef RTLD_GLOBAL
9916 # define LT_DLGLOBAL RTLD_GLOBAL
9917 #else
9918 # ifdef DL_GLOBAL
9919 # define LT_DLGLOBAL DL_GLOBAL
9920 # else
9921 # define LT_DLGLOBAL 0
9922 # endif
9923 #endif
9925 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9926 find out it does not work in some platform. */
9927 #ifndef LT_DLLAZY_OR_NOW
9928 # ifdef RTLD_LAZY
9929 # define LT_DLLAZY_OR_NOW RTLD_LAZY
9930 # else
9931 # ifdef DL_LAZY
9932 # define LT_DLLAZY_OR_NOW DL_LAZY
9933 # else
9934 # ifdef RTLD_NOW
9935 # define LT_DLLAZY_OR_NOW RTLD_NOW
9936 # else
9937 # ifdef DL_NOW
9938 # define LT_DLLAZY_OR_NOW DL_NOW
9939 # else
9940 # define LT_DLLAZY_OR_NOW 0
9941 # endif
9942 # endif
9943 # endif
9944 # endif
9945 #endif
9947 #ifdef __cplusplus
9948 extern "C" void exit (int);
9949 #endif
9951 void fnord() { int i=42;}
9952 int main ()
9954 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9955 int status = $lt_dlunknown;
9957 if (self)
9959 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9960 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9961 /* dlclose (self); */
9963 else
9964 puts (dlerror ());
9966 exit (status);
9969 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9970 (eval $ac_link) 2>&5
9971 ac_status=$?
9972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9973 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9974 (./conftest; exit; ) >&5 2>/dev/null
9975 lt_status=$?
9976 case x$lt_status in
9977 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
9978 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
9979 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
9980 esac
9981 else :
9982 # compilation failed
9983 lt_cv_dlopen_self_static=no
9986 rm -fr conftest*
9990 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
9991 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
9994 CPPFLAGS="$save_CPPFLAGS"
9995 LDFLAGS="$save_LDFLAGS"
9996 LIBS="$save_LIBS"
9998 esac
10000 case $lt_cv_dlopen_self in
10001 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10002 *) enable_dlopen_self=unknown ;;
10003 esac
10005 case $lt_cv_dlopen_self_static in
10006 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10007 *) enable_dlopen_self_static=unknown ;;
10008 esac
10012 # Report which library types will actually be built
10013 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10014 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
10015 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
10016 echo "${ECHO_T}$can_build_shared" >&6; }
10018 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10019 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
10020 test "$can_build_shared" = "no" && enable_shared=no
10022 # On AIX, shared libraries and static libraries use the same namespace, and
10023 # are all built from PIC.
10024 case $host_os in
10025 aix3*)
10026 test "$enable_shared" = yes && enable_static=no
10027 if test -n "$RANLIB"; then
10028 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10029 postinstall_cmds='$RANLIB $lib'
10033 aix4* | aix5*)
10034 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10035 test "$enable_shared" = yes && enable_static=no
10038 esac
10039 { echo "$as_me:$LINENO: result: $enable_shared" >&5
10040 echo "${ECHO_T}$enable_shared" >&6; }
10042 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10043 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
10044 # Make sure either enable_shared or enable_static is yes.
10045 test "$enable_shared" = yes || enable_static=yes
10046 { echo "$as_me:$LINENO: result: $enable_static" >&5
10047 echo "${ECHO_T}$enable_static" >&6; }
10049 # The else clause should only fire when bootstrapping the
10050 # libtool distribution, otherwise you forgot to ship ltmain.sh
10051 # with your package, and you will get complaints that there are
10052 # no rules to generate ltmain.sh.
10053 if test -f "$ltmain"; then
10054 # See if we are running on zsh, and set the options which allow our commands through
10055 # without removal of \ escapes.
10056 if test -n "${ZSH_VERSION+set}" ; then
10057 setopt NO_GLOB_SUBST
10059 # Now quote all the things that may contain metacharacters while being
10060 # careful not to overquote the AC_SUBSTed values. We take copies of the
10061 # variables and quote the copies for generation of the libtool script.
10062 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10063 SED SHELL STRIP \
10064 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10065 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10066 deplibs_check_method reload_flag reload_cmds need_locks \
10067 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10068 lt_cv_sys_global_symbol_to_c_name_address \
10069 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10070 old_postinstall_cmds old_postuninstall_cmds \
10071 compiler \
10072 CC \
10073 LD \
10074 lt_prog_compiler_wl \
10075 lt_prog_compiler_pic \
10076 lt_prog_compiler_static \
10077 lt_prog_compiler_no_builtin_flag \
10078 export_dynamic_flag_spec \
10079 thread_safe_flag_spec \
10080 whole_archive_flag_spec \
10081 enable_shared_with_static_runtimes \
10082 old_archive_cmds \
10083 old_archive_from_new_cmds \
10084 predep_objects \
10085 postdep_objects \
10086 predeps \
10087 postdeps \
10088 compiler_lib_search_path \
10089 archive_cmds \
10090 archive_expsym_cmds \
10091 postinstall_cmds \
10092 postuninstall_cmds \
10093 old_archive_from_expsyms_cmds \
10094 allow_undefined_flag \
10095 no_undefined_flag \
10096 export_symbols_cmds \
10097 hardcode_libdir_flag_spec \
10098 hardcode_libdir_flag_spec_ld \
10099 hardcode_libdir_separator \
10100 hardcode_automatic \
10101 module_cmds \
10102 module_expsym_cmds \
10103 lt_cv_prog_compiler_c_o \
10104 fix_srcfile_path \
10105 exclude_expsyms \
10106 include_expsyms; do
10108 case $var in
10109 old_archive_cmds | \
10110 old_archive_from_new_cmds | \
10111 archive_cmds | \
10112 archive_expsym_cmds | \
10113 module_cmds | \
10114 module_expsym_cmds | \
10115 old_archive_from_expsyms_cmds | \
10116 export_symbols_cmds | \
10117 extract_expsyms_cmds | reload_cmds | finish_cmds | \
10118 postinstall_cmds | postuninstall_cmds | \
10119 old_postinstall_cmds | old_postuninstall_cmds | \
10120 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10121 # Double-quote double-evaled strings.
10122 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10125 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10127 esac
10128 done
10130 case $lt_echo in
10131 *'\$0 --fallback-echo"')
10132 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10134 esac
10136 cfgfile="${ofile}T"
10137 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10138 $rm -f "$cfgfile"
10139 { echo "$as_me:$LINENO: creating $ofile" >&5
10140 echo "$as_me: creating $ofile" >&6;}
10142 cat <<__EOF__ >> "$cfgfile"
10143 #! $SHELL
10145 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10146 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10147 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
10149 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007
10150 # Free Software Foundation, Inc.
10152 # This file is part of GNU Libtool:
10153 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10155 # This program is free software; you can redistribute it and/or modify
10156 # it under the terms of the GNU General Public License as published by
10157 # the Free Software Foundation; either version 2 of the License, or
10158 # (at your option) any later version.
10160 # This program is distributed in the hope that it will be useful, but
10161 # WITHOUT ANY WARRANTY; without even the implied warranty of
10162 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
10163 # General Public License for more details.
10165 # You should have received a copy of the GNU General Public License
10166 # along with this program; if not, write to the Free Software
10167 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10169 # As a special exception to the GNU General Public License, if you
10170 # distribute this file as part of a program that contains a
10171 # configuration script generated by Autoconf, you may include it under
10172 # the same distribution terms that you use for the rest of that program.
10174 # A sed program that does not truncate output.
10175 SED=$lt_SED
10177 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
10178 Xsed="$SED -e 1s/^X//"
10180 # The HP-UX ksh and POSIX shell print the target directory to stdout
10181 # if CDPATH is set.
10182 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10184 # The names of the tagged configurations supported by this script.
10185 available_tags=
10187 # ### BEGIN LIBTOOL CONFIG
10189 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10191 # Shell to use when invoking shell scripts.
10192 SHELL=$lt_SHELL
10194 # Whether or not to build shared libraries.
10195 build_libtool_libs=$enable_shared
10197 # Whether or not to build static libraries.
10198 build_old_libs=$enable_static
10200 # Whether or not to add -lc for building shared libraries.
10201 build_libtool_need_lc=$archive_cmds_need_lc
10203 # Whether or not to disallow shared libs when runtime libs are static
10204 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10206 # Whether or not to optimize for fast installation.
10207 fast_install=$enable_fast_install
10209 # The host system.
10210 host_alias=$host_alias
10211 host=$host
10212 host_os=$host_os
10214 # The build system.
10215 build_alias=$build_alias
10216 build=$build
10217 build_os=$build_os
10219 # An echo program that does not interpret backslashes.
10220 echo=$lt_echo
10222 # The archiver.
10223 AR=$lt_AR
10224 AR_FLAGS=$lt_AR_FLAGS
10226 # A C compiler.
10227 LTCC=$lt_LTCC
10229 # LTCC compiler flags.
10230 LTCFLAGS=$lt_LTCFLAGS
10232 # A language-specific compiler.
10233 CC=$lt_compiler
10235 # Is the compiler the GNU C compiler?
10236 with_gcc=$GCC
10238 # An ERE matcher.
10239 EGREP=$lt_EGREP
10241 # The linker used to build libraries.
10242 LD=$lt_LD
10244 # Whether we need hard or soft links.
10245 LN_S=$lt_LN_S
10247 # A BSD-compatible nm program.
10248 NM=$lt_NM
10250 # A symbol stripping program
10251 STRIP=$lt_STRIP
10253 # Used to examine libraries when file_magic_cmd begins "file"
10254 MAGIC_CMD=$MAGIC_CMD
10256 # Used on cygwin: DLL creation program.
10257 DLLTOOL="$DLLTOOL"
10259 # Used on cygwin: object dumper.
10260 OBJDUMP="$OBJDUMP"
10262 # Used on cygwin: assembler.
10263 AS="$AS"
10265 # The name of the directory that contains temporary libtool files.
10266 objdir=$objdir
10268 # How to create reloadable object files.
10269 reload_flag=$lt_reload_flag
10270 reload_cmds=$lt_reload_cmds
10272 # How to pass a linker flag through the compiler.
10273 wl=$lt_lt_prog_compiler_wl
10275 # Object file suffix (normally "o").
10276 objext="$ac_objext"
10278 # Old archive suffix (normally "a").
10279 libext="$libext"
10281 # Shared library suffix (normally ".so").
10282 shrext_cmds='$shrext_cmds'
10284 # Executable file suffix (normally "").
10285 exeext="$exeext"
10287 # Additional compiler flags for building library objects.
10288 pic_flag=$lt_lt_prog_compiler_pic
10289 pic_mode=$pic_mode
10291 # What is the maximum length of a command?
10292 max_cmd_len=$lt_cv_sys_max_cmd_len
10294 # Does compiler simultaneously support -c and -o options?
10295 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10297 # Must we lock files when doing compilation?
10298 need_locks=$lt_need_locks
10300 # Do we need the lib prefix for modules?
10301 need_lib_prefix=$need_lib_prefix
10303 # Do we need a version for libraries?
10304 need_version=$need_version
10306 # Whether dlopen is supported.
10307 dlopen_support=$enable_dlopen
10309 # Whether dlopen of programs is supported.
10310 dlopen_self=$enable_dlopen_self
10312 # Whether dlopen of statically linked programs is supported.
10313 dlopen_self_static=$enable_dlopen_self_static
10315 # Compiler flag to prevent dynamic linking.
10316 link_static_flag=$lt_lt_prog_compiler_static
10318 # Compiler flag to turn off builtin functions.
10319 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10321 # Compiler flag to allow reflexive dlopens.
10322 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10324 # Compiler flag to generate shared objects directly from archives.
10325 whole_archive_flag_spec=$lt_whole_archive_flag_spec
10327 # Compiler flag to generate thread-safe objects.
10328 thread_safe_flag_spec=$lt_thread_safe_flag_spec
10330 # Library versioning type.
10331 version_type=$version_type
10333 # Format of library name prefix.
10334 libname_spec=$lt_libname_spec
10336 # List of archive names. First name is the real one, the rest are links.
10337 # The last name is the one that the linker finds with -lNAME.
10338 library_names_spec=$lt_library_names_spec
10340 # The coded name of the library, if different from the real name.
10341 soname_spec=$lt_soname_spec
10343 # Commands used to build and install an old-style archive.
10344 RANLIB=$lt_RANLIB
10345 old_archive_cmds=$lt_old_archive_cmds
10346 old_postinstall_cmds=$lt_old_postinstall_cmds
10347 old_postuninstall_cmds=$lt_old_postuninstall_cmds
10349 # Create an old-style archive from a shared archive.
10350 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10352 # Create a temporary old-style archive to link instead of a shared archive.
10353 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10355 # Commands used to build and install a shared archive.
10356 archive_cmds=$lt_archive_cmds
10357 archive_expsym_cmds=$lt_archive_expsym_cmds
10358 postinstall_cmds=$lt_postinstall_cmds
10359 postuninstall_cmds=$lt_postuninstall_cmds
10361 # Commands used to build a loadable module (assumed same as above if empty)
10362 module_cmds=$lt_module_cmds
10363 module_expsym_cmds=$lt_module_expsym_cmds
10365 # Commands to strip libraries.
10366 old_striplib=$lt_old_striplib
10367 striplib=$lt_striplib
10369 # Dependencies to place before the objects being linked to create a
10370 # shared library.
10371 predep_objects=$lt_predep_objects
10373 # Dependencies to place after the objects being linked to create a
10374 # shared library.
10375 postdep_objects=$lt_postdep_objects
10377 # Dependencies to place before the objects being linked to create a
10378 # shared library.
10379 predeps=$lt_predeps
10381 # Dependencies to place after the objects being linked to create a
10382 # shared library.
10383 postdeps=$lt_postdeps
10385 # The library search path used internally by the compiler when linking
10386 # a shared library.
10387 compiler_lib_search_path=$lt_compiler_lib_search_path
10389 # Method to check whether dependent libraries are shared objects.
10390 deplibs_check_method=$lt_deplibs_check_method
10392 # Command to use when deplibs_check_method == file_magic.
10393 file_magic_cmd=$lt_file_magic_cmd
10395 # Flag that allows shared libraries with undefined symbols to be built.
10396 allow_undefined_flag=$lt_allow_undefined_flag
10398 # Flag that forces no undefined symbols.
10399 no_undefined_flag=$lt_no_undefined_flag
10401 # Commands used to finish a libtool library installation in a directory.
10402 finish_cmds=$lt_finish_cmds
10404 # Same as above, but a single script fragment to be evaled but not shown.
10405 finish_eval=$lt_finish_eval
10407 # Take the output of nm and produce a listing of raw symbols and C names.
10408 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10410 # Transform the output of nm in a proper C declaration
10411 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10413 # Transform the output of nm in a C name address pair
10414 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10416 # This is the shared library runtime path variable.
10417 runpath_var=$runpath_var
10419 # This is the shared library path variable.
10420 shlibpath_var=$shlibpath_var
10422 # Is shlibpath searched before the hard-coded library search path?
10423 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10425 # How to hardcode a shared library path into an executable.
10426 hardcode_action=$hardcode_action
10428 # Whether we should hardcode library paths into libraries.
10429 hardcode_into_libs=$hardcode_into_libs
10431 # Flag to hardcode \$libdir into a binary during linking.
10432 # This must work even if \$libdir does not exist.
10433 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10435 # If ld is used when linking, flag to hardcode \$libdir into
10436 # a binary during linking. This must work even if \$libdir does
10437 # not exist.
10438 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10440 # Whether we need a single -rpath flag with a separated argument.
10441 hardcode_libdir_separator=$lt_hardcode_libdir_separator
10443 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10444 # resulting binary.
10445 hardcode_direct=$hardcode_direct
10447 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10448 # resulting binary.
10449 hardcode_minus_L=$hardcode_minus_L
10451 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10452 # the resulting binary.
10453 hardcode_shlibpath_var=$hardcode_shlibpath_var
10455 # Set to yes if building a shared library automatically hardcodes DIR into the library
10456 # and all subsequent libraries and executables linked against it.
10457 hardcode_automatic=$hardcode_automatic
10459 # Variables whose values should be saved in libtool wrapper scripts and
10460 # restored at relink time.
10461 variables_saved_for_relink="$variables_saved_for_relink"
10463 # Whether libtool must link a program against all its dependency libraries.
10464 link_all_deplibs=$link_all_deplibs
10466 # Compile-time system search path for libraries
10467 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10469 # Run-time system search path for libraries
10470 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10472 # Fix the shell variable \$srcfile for the compiler.
10473 fix_srcfile_path=$lt_fix_srcfile_path
10475 # Set to yes if exported symbols are required.
10476 always_export_symbols=$always_export_symbols
10478 # The commands to list exported symbols.
10479 export_symbols_cmds=$lt_export_symbols_cmds
10481 # The commands to extract the exported symbol list from a shared archive.
10482 extract_expsyms_cmds=$lt_extract_expsyms_cmds
10484 # Symbols that should not be listed in the preloaded symbols.
10485 exclude_expsyms=$lt_exclude_expsyms
10487 # Symbols that must always be exported.
10488 include_expsyms=$lt_include_expsyms
10490 # ### END LIBTOOL CONFIG
10492 __EOF__
10495 case $host_os in
10496 aix3*)
10497 cat <<\EOF >> "$cfgfile"
10499 # AIX sometimes has problems with the GCC collect2 program. For some
10500 # reason, if we set the COLLECT_NAMES environment variable, the problems
10501 # vanish in a puff of smoke.
10502 if test "X${COLLECT_NAMES+set}" != Xset; then
10503 COLLECT_NAMES=
10504 export COLLECT_NAMES
10508 esac
10510 # We use sed instead of cat because bash on DJGPP gets confused if
10511 # if finds mixed CR/LF and LF-only lines. Since sed operates in
10512 # text mode, it properly converts lines to CR/LF. This bash problem
10513 # is reportedly fixed, but why not run on old versions too?
10514 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10516 mv -f "$cfgfile" "$ofile" || \
10517 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10518 chmod +x "$ofile"
10520 else
10521 # If there is no Makefile yet, we rely on a make rule to execute
10522 # `config.status --recheck' to rerun these tests and create the
10523 # libtool script then.
10524 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10525 if test -f "$ltmain_in"; then
10526 test -f Makefile && make "$ltmain"
10531 ac_ext=cpp
10532 ac_cpp='$CXXCPP $CPPFLAGS'
10533 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10534 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10535 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10537 CC="$lt_save_CC"
10540 # Check whether --with-tags was given.
10541 if test "${with_tags+set}" = set; then
10542 withval=$with_tags; tagnames="$withval"
10546 if test -f "$ltmain" && test -n "$tagnames"; then
10547 if test ! -f "${ofile}"; then
10548 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
10549 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
10552 if test -z "$LTCC"; then
10553 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
10554 if test -z "$LTCC"; then
10555 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10556 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
10557 else
10558 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
10559 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
10562 if test -z "$LTCFLAGS"; then
10563 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
10566 # Extract list of available tagged configurations in $ofile.
10567 # Note that this assumes the entire list is on one line.
10568 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10570 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10571 for tagname in $tagnames; do
10572 IFS="$lt_save_ifs"
10573 # Check whether tagname contains only valid characters
10574 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
10575 "") ;;
10576 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
10577 echo "$as_me: error: invalid tag name: $tagname" >&2;}
10578 { (exit 1); exit 1; }; }
10580 esac
10582 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
10583 then
10584 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
10585 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
10586 { (exit 1); exit 1; }; }
10589 # Update the list of available tags.
10590 if test -n "$tagname"; then
10591 echo appending configuration tag \"$tagname\" to $ofile
10593 case $tagname in
10594 CXX)
10595 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10596 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10597 (test "X$CXX" != "Xg++"))) ; then
10598 ac_ext=cpp
10599 ac_cpp='$CXXCPP $CPPFLAGS'
10600 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10601 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10602 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10607 archive_cmds_need_lc_CXX=no
10608 allow_undefined_flag_CXX=
10609 always_export_symbols_CXX=no
10610 archive_expsym_cmds_CXX=
10611 export_dynamic_flag_spec_CXX=
10612 hardcode_direct_CXX=no
10613 hardcode_libdir_flag_spec_CXX=
10614 hardcode_libdir_flag_spec_ld_CXX=
10615 hardcode_libdir_separator_CXX=
10616 hardcode_minus_L_CXX=no
10617 hardcode_shlibpath_var_CXX=unsupported
10618 hardcode_automatic_CXX=no
10619 module_cmds_CXX=
10620 module_expsym_cmds_CXX=
10621 link_all_deplibs_CXX=unknown
10622 old_archive_cmds_CXX=$old_archive_cmds
10623 no_undefined_flag_CXX=
10624 whole_archive_flag_spec_CXX=
10625 enable_shared_with_static_runtimes_CXX=no
10627 # Dependencies to place before and after the object being linked:
10628 predep_objects_CXX=
10629 postdep_objects_CXX=
10630 predeps_CXX=
10631 postdeps_CXX=
10632 compiler_lib_search_path_CXX=
10634 # Source file extension for C++ test sources.
10635 ac_ext=cpp
10637 # Object file extension for compiled C++ test sources.
10638 objext=o
10639 objext_CXX=$objext
10641 # Code to be used in simple compile tests
10642 lt_simple_compile_test_code="int some_variable = 0;"
10644 # Code to be used in simple link tests
10645 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
10647 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
10649 # If no C compiler was specified, use CC.
10650 LTCC=${LTCC-"$CC"}
10652 # If no C compiler flags were specified, use CFLAGS.
10653 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10655 # Allow CC to be a program name with arguments.
10656 compiler=$CC
10659 # save warnings/boilerplate of simple test code
10660 ac_outfile=conftest.$ac_objext
10661 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
10662 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10663 _lt_compiler_boilerplate=`cat conftest.err`
10664 $rm conftest*
10666 ac_outfile=conftest.$ac_objext
10667 echo "$lt_simple_link_test_code" >conftest.$ac_ext
10668 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10669 _lt_linker_boilerplate=`cat conftest.err`
10670 $rm conftest*
10673 # Allow CC to be a program name with arguments.
10674 lt_save_CC=$CC
10675 lt_save_LD=$LD
10676 lt_save_GCC=$GCC
10677 GCC=$GXX
10678 lt_save_with_gnu_ld=$with_gnu_ld
10679 lt_save_path_LD=$lt_cv_path_LD
10680 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
10681 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
10682 else
10683 $as_unset lt_cv_prog_gnu_ld
10685 if test -n "${lt_cv_path_LDCXX+set}"; then
10686 lt_cv_path_LD=$lt_cv_path_LDCXX
10687 else
10688 $as_unset lt_cv_path_LD
10690 test -z "${LDCXX+set}" || LD=$LDCXX
10691 CC=${CXX-"c++"}
10692 compiler=$CC
10693 compiler_CXX=$CC
10694 for cc_temp in $compiler""; do
10695 case $cc_temp in
10696 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10697 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10698 \-*) ;;
10699 *) break;;
10700 esac
10701 done
10702 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
10705 # We don't want -fno-exception wen compiling C++ code, so set the
10706 # no_builtin_flag separately
10707 if test "$GXX" = yes; then
10708 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
10709 else
10710 lt_prog_compiler_no_builtin_flag_CXX=
10713 if test "$GXX" = yes; then
10714 # Set up default GNU C++ configuration
10717 # Check whether --with-gnu-ld was given.
10718 if test "${with_gnu_ld+set}" = set; then
10719 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
10720 else
10721 with_gnu_ld=no
10724 ac_prog=ld
10725 if test "$GCC" = yes; then
10726 # Check if gcc -print-prog-name=ld gives a path.
10727 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
10728 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
10729 case $host in
10730 *-*-mingw*)
10731 # gcc leaves a trailing carriage return which upsets mingw
10732 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10734 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10735 esac
10736 case $ac_prog in
10737 # Accept absolute paths.
10738 [\\/]* | ?:[\\/]*)
10739 re_direlt='/[^/][^/]*/\.\./'
10740 # Canonicalize the pathname of ld
10741 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
10742 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10743 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
10744 done
10745 test -z "$LD" && LD="$ac_prog"
10748 # If it fails, then pretend we aren't using GCC.
10749 ac_prog=ld
10752 # If it is relative, then search for the first ld in PATH.
10753 with_gnu_ld=unknown
10755 esac
10756 elif test "$with_gnu_ld" = yes; then
10757 { echo "$as_me:$LINENO: checking for GNU ld" >&5
10758 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
10759 else
10760 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10761 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
10763 if test "${lt_cv_path_LD+set}" = set; then
10764 echo $ECHO_N "(cached) $ECHO_C" >&6
10765 else
10766 if test -z "$LD"; then
10767 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10768 for ac_dir in $PATH; do
10769 IFS="$lt_save_ifs"
10770 test -z "$ac_dir" && ac_dir=.
10771 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10772 lt_cv_path_LD="$ac_dir/$ac_prog"
10773 # Check to see if the program is GNU ld. I'd rather use --version,
10774 # but apparently some variants of GNU ld only accept -v.
10775 # Break only if it was the GNU/non-GNU ld that we prefer.
10776 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10777 *GNU* | *'with BFD'*)
10778 test "$with_gnu_ld" != no && break
10781 test "$with_gnu_ld" != yes && break
10783 esac
10785 done
10786 IFS="$lt_save_ifs"
10787 else
10788 lt_cv_path_LD="$LD" # Let the user override the test with a path.
10792 LD="$lt_cv_path_LD"
10793 if test -n "$LD"; then
10794 { echo "$as_me:$LINENO: result: $LD" >&5
10795 echo "${ECHO_T}$LD" >&6; }
10796 else
10797 { echo "$as_me:$LINENO: result: no" >&5
10798 echo "${ECHO_T}no" >&6; }
10800 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10801 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10802 { (exit 1); exit 1; }; }
10803 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10804 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
10805 if test "${lt_cv_prog_gnu_ld+set}" = set; then
10806 echo $ECHO_N "(cached) $ECHO_C" >&6
10807 else
10808 # I'd rather use --version here, but apparently some GNU lds only accept -v.
10809 case `$LD -v 2>&1 </dev/null` in
10810 *GNU* | *'with BFD'*)
10811 lt_cv_prog_gnu_ld=yes
10814 lt_cv_prog_gnu_ld=no
10816 esac
10818 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
10819 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
10820 with_gnu_ld=$lt_cv_prog_gnu_ld
10824 # Check if GNU C++ uses GNU ld as the underlying linker, since the
10825 # archiving commands below assume that GNU ld is being used.
10826 if test "$with_gnu_ld" = yes; then
10827 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10828 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'
10830 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10831 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10833 # If archive_cmds runs LD, not CC, wlarc should be empty
10834 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
10835 # investigate it a little bit more. (MM)
10836 wlarc='${wl}'
10838 # ancient GNU ld didn't support --whole-archive et. al.
10839 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
10840 grep 'no-whole-archive' > /dev/null; then
10841 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10842 else
10843 whole_archive_flag_spec_CXX=
10845 else
10846 with_gnu_ld=no
10847 wlarc=
10849 # A generic and very simple default shared library creation
10850 # command for GNU C++ for the case where it uses the native
10851 # linker, instead of GNU ld. If possible, this setting should
10852 # overridden to take advantage of the native linker features on
10853 # the platform it is being used on.
10854 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10857 # Commands to make compiler produce verbose output that lists
10858 # what "hidden" libraries, object files and flags are used when
10859 # linking a shared library.
10860 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10862 else
10863 GXX=no
10864 with_gnu_ld=no
10865 wlarc=
10868 # PORTME: fill in a description of your system's C++ link characteristics
10869 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10870 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
10871 ld_shlibs_CXX=yes
10872 case $host_os in
10873 aix3*)
10874 # FIXME: insert proper C++ library support
10875 ld_shlibs_CXX=no
10877 aix4* | aix5*)
10878 if test "$host_cpu" = ia64; then
10879 # On IA64, the linker does run time linking by default, so we don't
10880 # have to do anything special.
10881 aix_use_runtimelinking=no
10882 exp_sym_flag='-Bexport'
10883 no_entry_flag=""
10884 else
10885 aix_use_runtimelinking=no
10887 # Test if we are trying to use run time linking or normal
10888 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10889 # need to do runtime linking.
10890 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
10891 for ld_flag in $LDFLAGS; do
10892 case $ld_flag in
10893 *-brtl*)
10894 aix_use_runtimelinking=yes
10895 break
10897 esac
10898 done
10900 esac
10902 exp_sym_flag='-bexport'
10903 no_entry_flag='-bnoentry'
10906 # When large executables or shared objects are built, AIX ld can
10907 # have problems creating the table of contents. If linking a library
10908 # or program results in "error TOC overflow" add -mminimal-toc to
10909 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10910 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10912 archive_cmds_CXX=''
10913 hardcode_direct_CXX=yes
10914 hardcode_libdir_separator_CXX=':'
10915 link_all_deplibs_CXX=yes
10917 if test "$GXX" = yes; then
10918 case $host_os in aix4.[012]|aix4.[012].*)
10919 # We only want to do this on AIX 4.2 and lower, the check
10920 # below for broken collect2 doesn't work under 4.3+
10921 collect2name=`${CC} -print-prog-name=collect2`
10922 if test -f "$collect2name" && \
10923 strings "$collect2name" | grep resolve_lib_name >/dev/null
10924 then
10925 # We have reworked collect2
10927 else
10928 # We have old collect2
10929 hardcode_direct_CXX=unsupported
10930 # It fails to find uninstalled libraries when the uninstalled
10931 # path is not listed in the libpath. Setting hardcode_minus_L
10932 # to unsupported forces relinking
10933 hardcode_minus_L_CXX=yes
10934 hardcode_libdir_flag_spec_CXX='-L$libdir'
10935 hardcode_libdir_separator_CXX=
10938 esac
10939 shared_flag='-shared'
10940 if test "$aix_use_runtimelinking" = yes; then
10941 shared_flag="$shared_flag "'${wl}-G'
10943 else
10944 # not using gcc
10945 if test "$host_cpu" = ia64; then
10946 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10947 # chokes on -Wl,-G. The following line is correct:
10948 shared_flag='-G'
10949 else
10950 if test "$aix_use_runtimelinking" = yes; then
10951 shared_flag='${wl}-G'
10952 else
10953 shared_flag='${wl}-bM:SRE'
10958 # It seems that -bexpall does not export symbols beginning with
10959 # underscore (_), so it is better to generate a list of symbols to export.
10960 always_export_symbols_CXX=yes
10961 if test "$aix_use_runtimelinking" = yes; then
10962 # Warning - without using the other runtime loading flags (-brtl),
10963 # -berok will link without error, but may produce a broken library.
10964 allow_undefined_flag_CXX='-berok'
10965 # Determine the default libpath from the value encoded in an empty executable.
10966 cat >conftest.$ac_ext <<_ACEOF
10967 /* confdefs.h. */
10968 _ACEOF
10969 cat confdefs.h >>conftest.$ac_ext
10970 cat >>conftest.$ac_ext <<_ACEOF
10971 /* end confdefs.h. */
10974 main ()
10978 return 0;
10980 _ACEOF
10981 rm -f conftest.$ac_objext conftest$ac_exeext
10982 if { (ac_try="$ac_link"
10983 case "(($ac_try" in
10984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10985 *) ac_try_echo=$ac_try;;
10986 esac
10987 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10988 (eval "$ac_link") 2>conftest.er1
10989 ac_status=$?
10990 grep -v '^ *+' conftest.er1 >conftest.err
10991 rm -f conftest.er1
10992 cat conftest.err >&5
10993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10994 (exit $ac_status); } && {
10995 test -z "$ac_cxx_werror_flag" ||
10996 test ! -s conftest.err
10997 } && test -s conftest$ac_exeext &&
10998 $as_test_x conftest$ac_exeext; then
11000 lt_aix_libpath_sed='
11001 /Import File Strings/,/^$/ {
11002 /^0/ {
11003 s/^0 *\(.*\)$/\1/
11007 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11008 # Check for a 64-bit object if we didn't find anything.
11009 if test -z "$aix_libpath"; then
11010 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11012 else
11013 echo "$as_me: failed program was:" >&5
11014 sed 's/^/| /' conftest.$ac_ext >&5
11019 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11020 conftest$ac_exeext conftest.$ac_ext
11021 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11023 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11025 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"
11026 else
11027 if test "$host_cpu" = ia64; then
11028 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11029 allow_undefined_flag_CXX="-z nodefs"
11030 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"
11031 else
11032 # Determine the default libpath from the value encoded in an empty executable.
11033 cat >conftest.$ac_ext <<_ACEOF
11034 /* confdefs.h. */
11035 _ACEOF
11036 cat confdefs.h >>conftest.$ac_ext
11037 cat >>conftest.$ac_ext <<_ACEOF
11038 /* end confdefs.h. */
11041 main ()
11045 return 0;
11047 _ACEOF
11048 rm -f conftest.$ac_objext conftest$ac_exeext
11049 if { (ac_try="$ac_link"
11050 case "(($ac_try" in
11051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11052 *) ac_try_echo=$ac_try;;
11053 esac
11054 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11055 (eval "$ac_link") 2>conftest.er1
11056 ac_status=$?
11057 grep -v '^ *+' conftest.er1 >conftest.err
11058 rm -f conftest.er1
11059 cat conftest.err >&5
11060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11061 (exit $ac_status); } && {
11062 test -z "$ac_cxx_werror_flag" ||
11063 test ! -s conftest.err
11064 } && test -s conftest$ac_exeext &&
11065 $as_test_x conftest$ac_exeext; then
11067 lt_aix_libpath_sed='
11068 /Import File Strings/,/^$/ {
11069 /^0/ {
11070 s/^0 *\(.*\)$/\1/
11074 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11075 # Check for a 64-bit object if we didn't find anything.
11076 if test -z "$aix_libpath"; then
11077 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11079 else
11080 echo "$as_me: failed program was:" >&5
11081 sed 's/^/| /' conftest.$ac_ext >&5
11086 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11087 conftest$ac_exeext conftest.$ac_ext
11088 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11090 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11091 # Warning - without using the other run time loading flags,
11092 # -berok will link without error, but may produce a broken library.
11093 no_undefined_flag_CXX=' ${wl}-bernotok'
11094 allow_undefined_flag_CXX=' ${wl}-berok'
11095 # Exported symbols can be pulled into shared objects from archives
11096 whole_archive_flag_spec_CXX='$convenience'
11097 archive_cmds_need_lc_CXX=yes
11098 # This is similar to how AIX traditionally builds its shared libraries.
11099 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'
11104 beos*)
11105 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11106 allow_undefined_flag_CXX=unsupported
11107 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11108 # support --undefined. This deserves some investigation. FIXME
11109 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11110 else
11111 ld_shlibs_CXX=no
11115 chorus*)
11116 case $cc_basename in
11118 # FIXME: insert proper C++ library support
11119 ld_shlibs_CXX=no
11121 esac
11124 cygwin* | mingw* | pw32*)
11125 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11126 # as there is no search path for DLLs.
11127 hardcode_libdir_flag_spec_CXX='-L$libdir'
11128 allow_undefined_flag_CXX=unsupported
11129 always_export_symbols_CXX=no
11130 enable_shared_with_static_runtimes_CXX=yes
11132 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11133 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'
11134 # If the export-symbols file already is a .def file (1st line
11135 # is EXPORTS), use it as is; otherwise, prepend...
11136 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11137 cp $export_symbols $output_objdir/$soname.def;
11138 else
11139 echo EXPORTS > $output_objdir/$soname.def;
11140 cat $export_symbols >> $output_objdir/$soname.def;
11142 $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'
11143 else
11144 ld_shlibs_CXX=no
11147 darwin* | rhapsody*)
11148 case $host_os in
11149 rhapsody* | darwin1.[012])
11150 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
11152 *) # Darwin 1.3 on
11153 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
11154 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11155 else
11156 case ${MACOSX_DEPLOYMENT_TARGET} in
11157 10.[012])
11158 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11160 10.*)
11161 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
11163 esac
11166 esac
11167 archive_cmds_need_lc_CXX=no
11168 hardcode_direct_CXX=no
11169 hardcode_automatic_CXX=yes
11170 hardcode_shlibpath_var_CXX=unsupported
11171 whole_archive_flag_spec_CXX=''
11172 link_all_deplibs_CXX=yes
11174 if test "$GXX" = yes ; then
11175 lt_int_apple_cc_single_mod=no
11176 output_verbose_link_cmd='echo'
11177 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
11178 lt_int_apple_cc_single_mod=yes
11180 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11181 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
11182 else
11183 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'
11185 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11186 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11187 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11188 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}'
11189 else
11190 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}'
11192 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}'
11193 else
11194 case $cc_basename in
11195 xlc*)
11196 output_verbose_link_cmd='echo'
11197 archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
11198 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11199 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11200 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 $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11201 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}'
11204 ld_shlibs_CXX=no
11206 esac
11210 dgux*)
11211 case $cc_basename in
11212 ec++*)
11213 # FIXME: insert proper C++ library support
11214 ld_shlibs_CXX=no
11216 ghcx*)
11217 # Green Hills C++ Compiler
11218 # FIXME: insert proper C++ library support
11219 ld_shlibs_CXX=no
11222 # FIXME: insert proper C++ library support
11223 ld_shlibs_CXX=no
11225 esac
11227 freebsd[12]*)
11228 # C++ shared libraries reported to be fairly broken before switch to ELF
11229 ld_shlibs_CXX=no
11231 freebsd-elf*)
11232 archive_cmds_need_lc_CXX=no
11234 freebsd* | dragonfly*)
11235 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11236 # conventions
11237 ld_shlibs_CXX=yes
11239 gnu*)
11241 hpux9*)
11242 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11243 hardcode_libdir_separator_CXX=:
11244 export_dynamic_flag_spec_CXX='${wl}-E'
11245 hardcode_direct_CXX=yes
11246 hardcode_minus_L_CXX=yes # Not in the search PATH,
11247 # but as the default
11248 # location of the library.
11250 case $cc_basename in
11251 CC*)
11252 # FIXME: insert proper C++ library support
11253 ld_shlibs_CXX=no
11255 aCC*)
11256 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'
11257 # Commands to make compiler produce verbose output that lists
11258 # what "hidden" libraries, object files and flags are used when
11259 # linking a shared library.
11261 # There doesn't appear to be a way to prevent this compiler from
11262 # explicitly linking system object files so we need to strip them
11263 # from the output so that they don't get included in the library
11264 # dependencies.
11265 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'
11268 if test "$GXX" = yes; then
11269 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'
11270 else
11271 # FIXME: insert proper C++ library support
11272 ld_shlibs_CXX=no
11275 esac
11277 hpux10*|hpux11*)
11278 if test $with_gnu_ld = no; then
11279 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11280 hardcode_libdir_separator_CXX=:
11282 case $host_cpu in
11283 hppa*64*|ia64*) ;;
11285 export_dynamic_flag_spec_CXX='${wl}-E'
11287 esac
11289 case $host_cpu in
11290 hppa*64*|ia64*)
11291 hardcode_direct_CXX=no
11292 hardcode_shlibpath_var_CXX=no
11295 hardcode_direct_CXX=yes
11296 hardcode_minus_L_CXX=yes # Not in the search PATH,
11297 # but as the default
11298 # location of the library.
11300 esac
11302 case $cc_basename in
11303 CC*)
11304 # FIXME: insert proper C++ library support
11305 ld_shlibs_CXX=no
11307 aCC*)
11308 case $host_cpu in
11309 hppa*64*)
11310 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11312 ia64*)
11313 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11316 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11318 esac
11319 # Commands to make compiler produce verbose output that lists
11320 # what "hidden" libraries, object files and flags are used when
11321 # linking a shared library.
11323 # There doesn't appear to be a way to prevent this compiler from
11324 # explicitly linking system object files so we need to strip them
11325 # from the output so that they don't get included in the library
11326 # dependencies.
11327 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'
11330 if test "$GXX" = yes; then
11331 if test $with_gnu_ld = no; then
11332 case $host_cpu in
11333 hppa*64*)
11334 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11336 ia64*)
11337 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11340 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'
11342 esac
11344 else
11345 # FIXME: insert proper C++ library support
11346 ld_shlibs_CXX=no
11349 esac
11351 interix[3-9]*)
11352 hardcode_direct_CXX=no
11353 hardcode_shlibpath_var_CXX=no
11354 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11355 export_dynamic_flag_spec_CXX='${wl}-E'
11356 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11357 # Instead, shared libraries are loaded at an image base (0x10000000 by
11358 # default) and relocated if they conflict, which is a slow very memory
11359 # consuming and fragmenting process. To avoid this, we pick a random,
11360 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11361 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
11362 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'
11363 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'
11365 irix5* | irix6*)
11366 case $cc_basename in
11367 CC*)
11368 # SGI C++
11369 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'
11371 # Archives containing C++ object files must be created using
11372 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
11373 # necessary to make sure instantiated templates are included
11374 # in the archive.
11375 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11378 if test "$GXX" = yes; then
11379 if test "$with_gnu_ld" = no; then
11380 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'
11381 else
11382 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'
11385 link_all_deplibs_CXX=yes
11387 esac
11388 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11389 hardcode_libdir_separator_CXX=:
11391 linux* | k*bsd*-gnu)
11392 case $cc_basename in
11393 KCC*)
11394 # Kuck and Associates, Inc. (KAI) C++ Compiler
11396 # KCC will only create a shared library if the output file
11397 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11398 # to its proper name (with version) after linking.
11399 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'
11400 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'
11401 # Commands to make compiler produce verbose output that lists
11402 # what "hidden" libraries, object files and flags are used when
11403 # linking a shared library.
11405 # There doesn't appear to be a way to prevent this compiler from
11406 # explicitly linking system object files so we need to strip them
11407 # from the output so that they don't get included in the library
11408 # dependencies.
11409 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'
11411 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
11412 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11414 # Archives containing C++ object files must be created using
11415 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11416 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11418 icpc*)
11419 # Intel C++
11420 with_gnu_ld=yes
11421 # version 8.0 and above of icpc choke on multiply defined symbols
11422 # if we add $predep_objects and $postdep_objects, however 7.1 and
11423 # earlier do not add the objects themselves.
11424 case `$CC -V 2>&1` in
11425 *"Version 7."*)
11426 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11427 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'
11429 *) # Version 8.0 or newer
11430 tmp_idyn=
11431 case $host_cpu in
11432 ia64*) tmp_idyn=' -i_dynamic';;
11433 esac
11434 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11435 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'
11437 esac
11438 archive_cmds_need_lc_CXX=no
11439 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11440 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11441 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11443 pgCC*)
11444 # Portland Group C++ compiler
11445 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
11446 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'
11448 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11449 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11450 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'
11452 cxx*)
11453 # Compaq C++
11454 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11455 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'
11457 runpath_var=LD_RUN_PATH
11458 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11459 hardcode_libdir_separator_CXX=:
11461 # Commands to make compiler produce verbose output that lists
11462 # what "hidden" libraries, object files and flags are used when
11463 # linking a shared library.
11465 # There doesn't appear to be a way to prevent this compiler from
11466 # explicitly linking system object files so we need to strip them
11467 # from the output so that they don't get included in the library
11468 # dependencies.
11469 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'
11472 case `$CC -V 2>&1 | sed 5q` in
11473 *Sun\ C*)
11474 # Sun C++ 5.9
11475 no_undefined_flag_CXX=' -zdefs'
11476 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11477 archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
11478 hardcode_libdir_flag_spec_CXX='-R$libdir'
11479 whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
11481 # Not sure whether something based on
11482 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
11483 # would be better.
11484 output_verbose_link_cmd='echo'
11486 # Archives containing C++ object files must be created using
11487 # "CC -xar", where "CC" is the Sun C++ compiler. This is
11488 # necessary to make sure instantiated templates are included
11489 # in the archive.
11490 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11492 esac
11494 esac
11496 lynxos*)
11497 # FIXME: insert proper C++ library support
11498 ld_shlibs_CXX=no
11500 m88k*)
11501 # FIXME: insert proper C++ library support
11502 ld_shlibs_CXX=no
11504 mvs*)
11505 case $cc_basename in
11506 cxx*)
11507 # FIXME: insert proper C++ library support
11508 ld_shlibs_CXX=no
11511 # FIXME: insert proper C++ library support
11512 ld_shlibs_CXX=no
11514 esac
11516 netbsd*)
11517 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11518 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
11519 wlarc=
11520 hardcode_libdir_flag_spec_CXX='-R$libdir'
11521 hardcode_direct_CXX=yes
11522 hardcode_shlibpath_var_CXX=no
11524 # Workaround some broken pre-1.5 toolchains
11525 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
11527 openbsd2*)
11528 # C++ shared libraries are fairly broken
11529 ld_shlibs_CXX=no
11531 openbsd*)
11532 if test -f /usr/libexec/ld.so; then
11533 hardcode_direct_CXX=yes
11534 hardcode_shlibpath_var_CXX=no
11535 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11536 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11537 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11538 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
11539 export_dynamic_flag_spec_CXX='${wl}-E'
11540 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11542 output_verbose_link_cmd='echo'
11543 else
11544 ld_shlibs_CXX=no
11547 osf3*)
11548 case $cc_basename in
11549 KCC*)
11550 # Kuck and Associates, Inc. (KAI) C++ Compiler
11552 # KCC will only create a shared library if the output file
11553 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11554 # to its proper name (with version) after linking.
11555 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'
11557 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11558 hardcode_libdir_separator_CXX=:
11560 # Archives containing C++ object files must be created using
11561 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11562 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11565 RCC*)
11566 # Rational C++ 2.4.1
11567 # FIXME: insert proper C++ library support
11568 ld_shlibs_CXX=no
11570 cxx*)
11571 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11572 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'
11574 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11575 hardcode_libdir_separator_CXX=:
11577 # Commands to make compiler produce verbose output that lists
11578 # what "hidden" libraries, object files and flags are used when
11579 # linking a shared library.
11581 # There doesn't appear to be a way to prevent this compiler from
11582 # explicitly linking system object files so we need to strip them
11583 # from the output so that they don't get included in the library
11584 # dependencies.
11585 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'
11588 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11589 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11590 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'
11592 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11593 hardcode_libdir_separator_CXX=:
11595 # Commands to make compiler produce verbose output that lists
11596 # what "hidden" libraries, object files and flags are used when
11597 # linking a shared library.
11598 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11600 else
11601 # FIXME: insert proper C++ library support
11602 ld_shlibs_CXX=no
11605 esac
11607 osf4* | osf5*)
11608 case $cc_basename in
11609 KCC*)
11610 # Kuck and Associates, Inc. (KAI) C++ Compiler
11612 # KCC will only create a shared library if the output file
11613 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11614 # to its proper name (with version) after linking.
11615 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'
11617 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11618 hardcode_libdir_separator_CXX=:
11620 # Archives containing C++ object files must be created using
11621 # the KAI C++ compiler.
11622 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
11624 RCC*)
11625 # Rational C++ 2.4.1
11626 # FIXME: insert proper C++ library support
11627 ld_shlibs_CXX=no
11629 cxx*)
11630 allow_undefined_flag_CXX=' -expect_unresolved \*'
11631 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'
11632 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
11633 echo "-hidden">> $lib.exp~
11634 $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~
11635 $rm $lib.exp'
11637 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11638 hardcode_libdir_separator_CXX=:
11640 # Commands to make compiler produce verbose output that lists
11641 # what "hidden" libraries, object files and flags are used when
11642 # linking a shared library.
11644 # There doesn't appear to be a way to prevent this compiler from
11645 # explicitly linking system object files so we need to strip them
11646 # from the output so that they don't get included in the library
11647 # dependencies.
11648 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'
11651 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11652 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11653 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'
11655 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11656 hardcode_libdir_separator_CXX=:
11658 # Commands to make compiler produce verbose output that lists
11659 # what "hidden" libraries, object files and flags are used when
11660 # linking a shared library.
11661 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11663 else
11664 # FIXME: insert proper C++ library support
11665 ld_shlibs_CXX=no
11668 esac
11670 psos*)
11671 # FIXME: insert proper C++ library support
11672 ld_shlibs_CXX=no
11674 sunos4*)
11675 case $cc_basename in
11676 CC*)
11677 # Sun C++ 4.x
11678 # FIXME: insert proper C++ library support
11679 ld_shlibs_CXX=no
11681 lcc*)
11682 # Lucid
11683 # FIXME: insert proper C++ library support
11684 ld_shlibs_CXX=no
11687 # FIXME: insert proper C++ library support
11688 ld_shlibs_CXX=no
11690 esac
11692 solaris*)
11693 case $cc_basename in
11694 CC*)
11695 # Sun C++ 4.2, 5.x and Centerline C++
11696 archive_cmds_need_lc_CXX=yes
11697 no_undefined_flag_CXX=' -zdefs'
11698 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11699 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11700 $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'
11702 hardcode_libdir_flag_spec_CXX='-R$libdir'
11703 hardcode_shlibpath_var_CXX=no
11704 case $host_os in
11705 solaris2.[0-5] | solaris2.[0-5].*) ;;
11707 # The compiler driver will combine and reorder linker options,
11708 # but understands `-z linker_flag'.
11709 # Supported since Solaris 2.6 (maybe 2.5.1?)
11710 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
11712 esac
11713 link_all_deplibs_CXX=yes
11715 output_verbose_link_cmd='echo'
11717 # Archives containing C++ object files must be created using
11718 # "CC -xar", where "CC" is the Sun C++ compiler. This is
11719 # necessary to make sure instantiated templates are included
11720 # in the archive.
11721 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11723 gcx*)
11724 # Green Hills C++ Compiler
11725 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11727 # The C++ compiler must be used to create the archive.
11728 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
11731 # GNU C++ compiler with Solaris linker
11732 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11733 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
11734 if $CC --version | grep -v '^2\.7' > /dev/null; then
11735 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11736 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11737 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11739 # Commands to make compiler produce verbose output that lists
11740 # what "hidden" libraries, object files and flags are used when
11741 # linking a shared library.
11742 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11743 else
11744 # g++ 2.7 appears to require `-G' NOT `-shared' on this
11745 # platform.
11746 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11747 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11748 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11750 # Commands to make compiler produce verbose output that lists
11751 # what "hidden" libraries, object files and flags are used when
11752 # linking a shared library.
11753 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11756 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
11757 case $host_os in
11758 solaris2.[0-5] | solaris2.[0-5].*) ;;
11760 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
11762 esac
11765 esac
11767 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11768 no_undefined_flag_CXX='${wl}-z,text'
11769 archive_cmds_need_lc_CXX=no
11770 hardcode_shlibpath_var_CXX=no
11771 runpath_var='LD_RUN_PATH'
11773 case $cc_basename in
11774 CC*)
11775 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11776 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11779 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11780 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11782 esac
11784 sysv5* | sco3.2v5* | sco5v6*)
11785 # Note: We can NOT use -z defs as we might desire, because we do not
11786 # link with -lc, and that would cause any symbols used from libc to
11787 # always be unresolved, which means just about no library would
11788 # ever link correctly. If we're not using GNU ld we use -z text
11789 # though, which does catch some bad symbols but isn't as heavy-handed
11790 # as -z defs.
11791 # For security reasons, it is highly recommended that you always
11792 # use absolute paths for naming shared libraries, and exclude the
11793 # DT_RUNPATH tag from executables and libraries. But doing so
11794 # requires that you compile everything twice, which is a pain.
11795 # So that behaviour is only enabled if SCOABSPATH is set to a
11796 # non-empty value in the environment. Most likely only useful for
11797 # creating official distributions of packages.
11798 # This is a hack until libtool officially supports absolute path
11799 # names for shared libraries.
11800 no_undefined_flag_CXX='${wl}-z,text'
11801 allow_undefined_flag_CXX='${wl}-z,nodefs'
11802 archive_cmds_need_lc_CXX=no
11803 hardcode_shlibpath_var_CXX=no
11804 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
11805 hardcode_libdir_separator_CXX=':'
11806 link_all_deplibs_CXX=yes
11807 export_dynamic_flag_spec_CXX='${wl}-Bexport'
11808 runpath_var='LD_RUN_PATH'
11810 case $cc_basename in
11811 CC*)
11812 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11813 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11816 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11817 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11819 esac
11821 tandem*)
11822 case $cc_basename in
11823 NCC*)
11824 # NonStop-UX NCC 3.20
11825 # FIXME: insert proper C++ library support
11826 ld_shlibs_CXX=no
11829 # FIXME: insert proper C++ library support
11830 ld_shlibs_CXX=no
11832 esac
11834 vxworks*)
11835 # FIXME: insert proper C++ library support
11836 ld_shlibs_CXX=no
11839 # FIXME: insert proper C++ library support
11840 ld_shlibs_CXX=no
11842 esac
11843 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11844 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
11845 test "$ld_shlibs_CXX" = no && can_build_shared=no
11847 GCC_CXX="$GXX"
11848 LD_CXX="$LD"
11851 cat > conftest.$ac_ext <<EOF
11852 class Foo
11854 public:
11855 Foo (void) { a = 0; }
11856 private:
11857 int a;
11861 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11862 (eval $ac_compile) 2>&5
11863 ac_status=$?
11864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11865 (exit $ac_status); }; then
11866 # Parse the compiler output and extract the necessary
11867 # objects, libraries and library flags.
11869 # Sentinel used to keep track of whether or not we are before
11870 # the conftest object file.
11871 pre_test_object_deps_done=no
11873 # The `*' in the case matches for architectures that use `case' in
11874 # $output_verbose_cmd can trigger glob expansion during the loop
11875 # eval without this substitution.
11876 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
11878 for p in `eval $output_verbose_link_cmd`; do
11879 case $p in
11881 -L* | -R* | -l*)
11882 # Some compilers place space between "-{L,R}" and the path.
11883 # Remove the space.
11884 if test $p = "-L" \
11885 || test $p = "-R"; then
11886 prev=$p
11887 continue
11888 else
11889 prev=
11892 if test "$pre_test_object_deps_done" = no; then
11893 case $p in
11894 -L* | -R*)
11895 # Internal compiler library paths should come after those
11896 # provided the user. The postdeps already come after the
11897 # user supplied libs so there is no need to process them.
11898 if test -z "$compiler_lib_search_path_CXX"; then
11899 compiler_lib_search_path_CXX="${prev}${p}"
11900 else
11901 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
11904 # The "-l" case would never come before the object being
11905 # linked, so don't bother handling this case.
11906 esac
11907 else
11908 if test -z "$postdeps_CXX"; then
11909 postdeps_CXX="${prev}${p}"
11910 else
11911 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
11916 *.$objext)
11917 # This assumes that the test object file only shows up
11918 # once in the compiler output.
11919 if test "$p" = "conftest.$objext"; then
11920 pre_test_object_deps_done=yes
11921 continue
11924 if test "$pre_test_object_deps_done" = no; then
11925 if test -z "$predep_objects_CXX"; then
11926 predep_objects_CXX="$p"
11927 else
11928 predep_objects_CXX="$predep_objects_CXX $p"
11930 else
11931 if test -z "$postdep_objects_CXX"; then
11932 postdep_objects_CXX="$p"
11933 else
11934 postdep_objects_CXX="$postdep_objects_CXX $p"
11939 *) ;; # Ignore the rest.
11941 esac
11942 done
11944 # Clean up.
11945 rm -f a.out a.exe
11946 else
11947 echo "libtool.m4: error: problem compiling CXX test program"
11950 $rm -f confest.$objext
11952 # PORTME: override above test on systems where it is broken
11953 case $host_os in
11954 interix[3-9]*)
11955 # Interix 3.5 installs completely hosed .la files for C++, so rather than
11956 # hack all around it, let's just trust "g++" to DTRT.
11957 predep_objects_CXX=
11958 postdep_objects_CXX=
11959 postdeps_CXX=
11962 linux*)
11963 case `$CC -V 2>&1 | sed 5q` in
11964 *Sun\ C*)
11965 # Sun C++ 5.9
11967 # The more standards-conforming stlport4 library is
11968 # incompatible with the Cstd library. Avoid specifying
11969 # it if it's in CXXFLAGS. Ignore libCrun as
11970 # -library=stlport4 depends on it.
11971 case " $CXX $CXXFLAGS " in
11972 *" -library=stlport4 "*)
11973 solaris_use_stlport4=yes
11975 esac
11976 if test "$solaris_use_stlport4" != yes; then
11977 postdeps_CXX='-library=Cstd -library=Crun'
11980 esac
11983 solaris*)
11984 case $cc_basename in
11985 CC*)
11986 # The more standards-conforming stlport4 library is
11987 # incompatible with the Cstd library. Avoid specifying
11988 # it if it's in CXXFLAGS. Ignore libCrun as
11989 # -library=stlport4 depends on it.
11990 case " $CXX $CXXFLAGS " in
11991 *" -library=stlport4 "*)
11992 solaris_use_stlport4=yes
11994 esac
11996 # Adding this requires a known-good setup of shared libraries for
11997 # Sun compiler versions before 5.6, else PIC objects from an old
11998 # archive will be linked into the output, leading to subtle bugs.
11999 if test "$solaris_use_stlport4" != yes; then
12000 postdeps_CXX='-library=Cstd -library=Crun'
12003 esac
12005 esac
12008 case " $postdeps_CXX " in
12009 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
12010 esac
12012 lt_prog_compiler_wl_CXX=
12013 lt_prog_compiler_pic_CXX=
12014 lt_prog_compiler_static_CXX=
12016 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12017 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
12019 # C++ specific cases for pic, static, wl, etc.
12020 if test "$GXX" = yes; then
12021 lt_prog_compiler_wl_CXX='-Wl,'
12022 lt_prog_compiler_static_CXX='-static'
12024 case $host_os in
12025 aix*)
12026 # All AIX code is PIC.
12027 if test "$host_cpu" = ia64; then
12028 # AIX 5 now supports IA64 processor
12029 lt_prog_compiler_static_CXX='-Bstatic'
12032 amigaos*)
12033 # FIXME: we need at least 68020 code to build shared libraries, but
12034 # adding the `-m68020' flag to GCC prevents building anything better,
12035 # like `-m68040'.
12036 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12038 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12039 # PIC is the default for these OSes.
12041 mingw* | cygwin* | os2* | pw32*)
12042 # This hack is so that the source file can tell whether it is being
12043 # built for inclusion in a dll (and should export symbols for example).
12044 # Although the cygwin gcc ignores -fPIC, still need this for old-style
12045 # (--disable-auto-import) libraries
12046 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12048 darwin* | rhapsody*)
12049 # PIC is the default on this platform
12050 # Common symbols not allowed in MH_DYLIB files
12051 lt_prog_compiler_pic_CXX='-fno-common'
12053 *djgpp*)
12054 # DJGPP does not support shared libraries at all
12055 lt_prog_compiler_pic_CXX=
12057 interix[3-9]*)
12058 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12059 # Instead, we relocate shared libraries at runtime.
12061 sysv4*MP*)
12062 if test -d /usr/nec; then
12063 lt_prog_compiler_pic_CXX=-Kconform_pic
12066 hpux*)
12067 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12068 # not for PA HP-UX.
12069 case $host_cpu in
12070 hppa*64*|ia64*)
12073 lt_prog_compiler_pic_CXX='-fPIC'
12075 esac
12078 lt_prog_compiler_pic_CXX='-fPIC'
12080 esac
12081 else
12082 case $host_os in
12083 aix4* | aix5*)
12084 # All AIX code is PIC.
12085 if test "$host_cpu" = ia64; then
12086 # AIX 5 now supports IA64 processor
12087 lt_prog_compiler_static_CXX='-Bstatic'
12088 else
12089 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12092 chorus*)
12093 case $cc_basename in
12094 cxch68*)
12095 # Green Hills C++ Compiler
12096 # _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"
12098 esac
12100 darwin*)
12101 # PIC is the default on this platform
12102 # Common symbols not allowed in MH_DYLIB files
12103 case $cc_basename in
12104 xlc*)
12105 lt_prog_compiler_pic_CXX='-qnocommon'
12106 lt_prog_compiler_wl_CXX='-Wl,'
12108 esac
12110 dgux*)
12111 case $cc_basename in
12112 ec++*)
12113 lt_prog_compiler_pic_CXX='-KPIC'
12115 ghcx*)
12116 # Green Hills C++ Compiler
12117 lt_prog_compiler_pic_CXX='-pic'
12121 esac
12123 freebsd* | dragonfly*)
12124 # FreeBSD uses GNU C++
12126 hpux9* | hpux10* | hpux11*)
12127 case $cc_basename in
12128 CC*)
12129 lt_prog_compiler_wl_CXX='-Wl,'
12130 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12131 if test "$host_cpu" != ia64; then
12132 lt_prog_compiler_pic_CXX='+Z'
12135 aCC*)
12136 lt_prog_compiler_wl_CXX='-Wl,'
12137 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12138 case $host_cpu in
12139 hppa*64*|ia64*)
12140 # +Z the default
12143 lt_prog_compiler_pic_CXX='+Z'
12145 esac
12149 esac
12151 interix*)
12152 # This is c89, which is MS Visual C++ (no shared libs)
12153 # Anyone wants to do a port?
12155 irix5* | irix6* | nonstopux*)
12156 case $cc_basename in
12157 CC*)
12158 lt_prog_compiler_wl_CXX='-Wl,'
12159 lt_prog_compiler_static_CXX='-non_shared'
12160 # CC pic flag -KPIC is the default.
12164 esac
12166 linux* | k*bsd*-gnu)
12167 case $cc_basename in
12168 KCC*)
12169 # KAI C++ Compiler
12170 lt_prog_compiler_wl_CXX='--backend -Wl,'
12171 lt_prog_compiler_pic_CXX='-fPIC'
12173 icpc* | ecpc*)
12174 # Intel C++
12175 lt_prog_compiler_wl_CXX='-Wl,'
12176 lt_prog_compiler_pic_CXX='-KPIC'
12177 lt_prog_compiler_static_CXX='-static'
12179 pgCC*)
12180 # Portland Group C++ compiler.
12181 lt_prog_compiler_wl_CXX='-Wl,'
12182 lt_prog_compiler_pic_CXX='-fpic'
12183 lt_prog_compiler_static_CXX='-Bstatic'
12185 cxx*)
12186 # Compaq C++
12187 # Make sure the PIC flag is empty. It appears that all Alpha
12188 # Linux and Compaq Tru64 Unix objects are PIC.
12189 lt_prog_compiler_pic_CXX=
12190 lt_prog_compiler_static_CXX='-non_shared'
12193 case `$CC -V 2>&1 | sed 5q` in
12194 *Sun\ C*)
12195 # Sun C++ 5.9
12196 lt_prog_compiler_pic_CXX='-KPIC'
12197 lt_prog_compiler_static_CXX='-Bstatic'
12198 lt_prog_compiler_wl_CXX='-Qoption ld '
12200 esac
12202 esac
12204 lynxos*)
12206 m88k*)
12208 mvs*)
12209 case $cc_basename in
12210 cxx*)
12211 lt_prog_compiler_pic_CXX='-W c,exportall'
12215 esac
12217 netbsd*)
12219 osf3* | osf4* | osf5*)
12220 case $cc_basename in
12221 KCC*)
12222 lt_prog_compiler_wl_CXX='--backend -Wl,'
12224 RCC*)
12225 # Rational C++ 2.4.1
12226 lt_prog_compiler_pic_CXX='-pic'
12228 cxx*)
12229 # Digital/Compaq C++
12230 lt_prog_compiler_wl_CXX='-Wl,'
12231 # Make sure the PIC flag is empty. It appears that all Alpha
12232 # Linux and Compaq Tru64 Unix objects are PIC.
12233 lt_prog_compiler_pic_CXX=
12234 lt_prog_compiler_static_CXX='-non_shared'
12238 esac
12240 psos*)
12242 solaris*)
12243 case $cc_basename in
12244 CC*)
12245 # Sun C++ 4.2, 5.x and Centerline C++
12246 lt_prog_compiler_pic_CXX='-KPIC'
12247 lt_prog_compiler_static_CXX='-Bstatic'
12248 lt_prog_compiler_wl_CXX='-Qoption ld '
12250 gcx*)
12251 # Green Hills C++ Compiler
12252 lt_prog_compiler_pic_CXX='-PIC'
12256 esac
12258 sunos4*)
12259 case $cc_basename in
12260 CC*)
12261 # Sun C++ 4.x
12262 lt_prog_compiler_pic_CXX='-pic'
12263 lt_prog_compiler_static_CXX='-Bstatic'
12265 lcc*)
12266 # Lucid
12267 lt_prog_compiler_pic_CXX='-pic'
12271 esac
12273 tandem*)
12274 case $cc_basename in
12275 NCC*)
12276 # NonStop-UX NCC 3.20
12277 lt_prog_compiler_pic_CXX='-KPIC'
12281 esac
12283 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12284 case $cc_basename in
12285 CC*)
12286 lt_prog_compiler_wl_CXX='-Wl,'
12287 lt_prog_compiler_pic_CXX='-KPIC'
12288 lt_prog_compiler_static_CXX='-Bstatic'
12290 esac
12292 vxworks*)
12295 lt_prog_compiler_can_build_shared_CXX=no
12297 esac
12300 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
12301 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
12304 # Check to make sure the PIC flag actually works.
12306 if test -n "$lt_prog_compiler_pic_CXX"; then
12308 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12309 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
12310 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
12311 echo $ECHO_N "(cached) $ECHO_C" >&6
12312 else
12313 lt_prog_compiler_pic_works_CXX=no
12314 ac_outfile=conftest.$ac_objext
12315 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12316 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12317 # Insert the option either (1) after the last *FLAGS variable, or
12318 # (2) before a word containing "conftest.", or (3) at the end.
12319 # Note that $ac_compile itself does not contain backslashes and begins
12320 # with a dollar sign (not a hyphen), so the echo should work correctly.
12321 # The option is referenced via a variable to avoid confusing sed.
12322 lt_compile=`echo "$ac_compile" | $SED \
12323 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12324 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12325 -e 's:$: $lt_compiler_flag:'`
12326 (eval echo "\"\$as_me:12326: $lt_compile\"" >&5)
12327 (eval "$lt_compile" 2>conftest.err)
12328 ac_status=$?
12329 cat conftest.err >&5
12330 echo "$as_me:12330: \$? = $ac_status" >&5
12331 if (exit $ac_status) && test -s "$ac_outfile"; then
12332 # The compiler can only warn and ignore the option if not recognized
12333 # So say no if there are warnings other than the usual output.
12334 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12335 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12336 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12337 lt_prog_compiler_pic_works_CXX=yes
12340 $rm conftest*
12343 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
12344 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
12346 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
12347 case $lt_prog_compiler_pic_CXX in
12348 "" | " "*) ;;
12349 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12350 esac
12351 else
12352 lt_prog_compiler_pic_CXX=
12353 lt_prog_compiler_can_build_shared_CXX=no
12357 case $host_os in
12358 # For platforms which do not support PIC, -DPIC is meaningless:
12359 *djgpp*)
12360 lt_prog_compiler_pic_CXX=
12363 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
12365 esac
12368 # Check to make sure the static flag actually works.
12370 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
12371 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12372 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
12373 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
12374 echo $ECHO_N "(cached) $ECHO_C" >&6
12375 else
12376 lt_prog_compiler_static_works_CXX=no
12377 save_LDFLAGS="$LDFLAGS"
12378 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12379 echo "$lt_simple_link_test_code" > conftest.$ac_ext
12380 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12381 # The linker can only warn and ignore the option if not recognized
12382 # So say no if there are warnings
12383 if test -s conftest.err; then
12384 # Append any errors to the config.log.
12385 cat conftest.err 1>&5
12386 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
12387 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12388 if diff conftest.exp conftest.er2 >/dev/null; then
12389 lt_prog_compiler_static_works_CXX=yes
12391 else
12392 lt_prog_compiler_static_works_CXX=yes
12395 $rm conftest*
12396 LDFLAGS="$save_LDFLAGS"
12399 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
12400 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
12402 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
12404 else
12405 lt_prog_compiler_static_CXX=
12409 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12410 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
12411 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
12412 echo $ECHO_N "(cached) $ECHO_C" >&6
12413 else
12414 lt_cv_prog_compiler_c_o_CXX=no
12415 $rm -r conftest 2>/dev/null
12416 mkdir conftest
12417 cd conftest
12418 mkdir out
12419 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12421 lt_compiler_flag="-o out/conftest2.$ac_objext"
12422 # Insert the option either (1) after the last *FLAGS variable, or
12423 # (2) before a word containing "conftest.", or (3) at the end.
12424 # Note that $ac_compile itself does not contain backslashes and begins
12425 # with a dollar sign (not a hyphen), so the echo should work correctly.
12426 lt_compile=`echo "$ac_compile" | $SED \
12427 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12428 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12429 -e 's:$: $lt_compiler_flag:'`
12430 (eval echo "\"\$as_me:12430: $lt_compile\"" >&5)
12431 (eval "$lt_compile" 2>out/conftest.err)
12432 ac_status=$?
12433 cat out/conftest.err >&5
12434 echo "$as_me:12434: \$? = $ac_status" >&5
12435 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12436 then
12437 # The compiler can only warn and ignore the option if not recognized
12438 # So say no if there are warnings
12439 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
12440 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12441 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12442 lt_cv_prog_compiler_c_o_CXX=yes
12445 chmod u+w . 2>&5
12446 $rm conftest*
12447 # SGI C++ compiler will create directory out/ii_files/ for
12448 # template instantiation
12449 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12450 $rm out/* && rmdir out
12451 cd ..
12452 rmdir conftest
12453 $rm conftest*
12456 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
12457 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
12460 hard_links="nottested"
12461 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
12462 # do not overwrite the value of need_locks provided by the user
12463 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12464 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
12465 hard_links=yes
12466 $rm conftest*
12467 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12468 touch conftest.a
12469 ln conftest.a conftest.b 2>&5 || hard_links=no
12470 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12471 { echo "$as_me:$LINENO: result: $hard_links" >&5
12472 echo "${ECHO_T}$hard_links" >&6; }
12473 if test "$hard_links" = no; then
12474 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12475 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12476 need_locks=warn
12478 else
12479 need_locks=no
12482 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12483 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
12485 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12486 case $host_os in
12487 aix4* | aix5*)
12488 # If we're using GNU nm, then we don't want the "-C" option.
12489 # -C means demangle to AIX nm, but means don't demangle with GNU nm
12490 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12491 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'
12492 else
12493 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'
12496 pw32*)
12497 export_symbols_cmds_CXX="$ltdll_cmds"
12499 cygwin* | mingw*)
12500 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'
12503 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12505 esac
12507 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12508 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12509 test "$ld_shlibs_CXX" = no && can_build_shared=no
12512 # Do we need to explicitly link libc?
12514 case "x$archive_cmds_need_lc_CXX" in
12515 x|xyes)
12516 # Assume -lc should be added
12517 archive_cmds_need_lc_CXX=yes
12519 if test "$enable_shared" = yes && test "$GCC" = yes; then
12520 case $archive_cmds_CXX in
12521 *'~'*)
12522 # FIXME: we may have to deal with multi-command sequences.
12524 '$CC '*)
12525 # Test whether the compiler implicitly links with -lc since on some
12526 # systems, -lgcc has to come before -lc. If gcc already passes -lc
12527 # to ld, don't add -lc before -lgcc.
12528 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
12529 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
12530 $rm conftest*
12531 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12533 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12534 (eval $ac_compile) 2>&5
12535 ac_status=$?
12536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12537 (exit $ac_status); } 2>conftest.err; then
12538 soname=conftest
12539 lib=conftest
12540 libobjs=conftest.$ac_objext
12541 deplibs=
12542 wl=$lt_prog_compiler_wl_CXX
12543 pic_flag=$lt_prog_compiler_pic_CXX
12544 compiler_flags=-v
12545 linker_flags=-v
12546 verstring=
12547 output_objdir=.
12548 libname=conftest
12549 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
12550 allow_undefined_flag_CXX=
12551 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
12552 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
12553 ac_status=$?
12554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12555 (exit $ac_status); }
12556 then
12557 archive_cmds_need_lc_CXX=no
12558 else
12559 archive_cmds_need_lc_CXX=yes
12561 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
12562 else
12563 cat conftest.err 1>&5
12565 $rm conftest*
12566 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
12567 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
12569 esac
12572 esac
12574 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
12575 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
12576 library_names_spec=
12577 libname_spec='lib$name'
12578 soname_spec=
12579 shrext_cmds=".so"
12580 postinstall_cmds=
12581 postuninstall_cmds=
12582 finish_cmds=
12583 finish_eval=
12584 shlibpath_var=
12585 shlibpath_overrides_runpath=unknown
12586 version_type=none
12587 dynamic_linker="$host_os ld.so"
12588 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12590 need_lib_prefix=unknown
12591 hardcode_into_libs=no
12593 # when you set need_version to no, make sure it does not cause -set_version
12594 # flags to be left without arguments
12595 need_version=unknown
12597 case $host_os in
12598 aix3*)
12599 version_type=linux
12600 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12601 shlibpath_var=LIBPATH
12603 # AIX 3 has no versioning support, so we append a major version to the name.
12604 soname_spec='${libname}${release}${shared_ext}$major'
12607 aix4* | aix5*)
12608 version_type=linux
12609 need_lib_prefix=no
12610 need_version=no
12611 hardcode_into_libs=yes
12612 if test "$host_cpu" = ia64; then
12613 # AIX 5 supports IA64
12614 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12615 shlibpath_var=LD_LIBRARY_PATH
12616 else
12617 # With GCC up to 2.95.x, collect2 would create an import file
12618 # for dependence libraries. The import file would start with
12619 # the line `#! .'. This would cause the generated library to
12620 # depend on `.', always an invalid library. This was fixed in
12621 # development snapshots of GCC prior to 3.0.
12622 case $host_os in
12623 aix4 | aix4.[01] | aix4.[01].*)
12624 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12625 echo ' yes '
12626 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
12628 else
12629 can_build_shared=no
12632 esac
12633 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12634 # soname into executable. Probably we can add versioning support to
12635 # collect2, so additional links can be useful in future.
12636 if test "$aix_use_runtimelinking" = yes; then
12637 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12638 # instead of lib<name>.a to let people know that these are not
12639 # typical AIX shared libraries.
12640 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12641 else
12642 # We preserve .a as extension for shared libraries through AIX4.2
12643 # and later when we are not doing run time linking.
12644 library_names_spec='${libname}${release}.a $libname.a'
12645 soname_spec='${libname}${release}${shared_ext}$major'
12647 shlibpath_var=LIBPATH
12651 amigaos*)
12652 library_names_spec='$libname.ixlibrary $libname.a'
12653 # Create ${libname}_ixlibrary.a entries in /sys/libs.
12654 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'
12657 beos*)
12658 library_names_spec='${libname}${shared_ext}'
12659 dynamic_linker="$host_os ld.so"
12660 shlibpath_var=LIBRARY_PATH
12663 bsdi[45]*)
12664 version_type=linux
12665 need_version=no
12666 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12667 soname_spec='${libname}${release}${shared_ext}$major'
12668 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12669 shlibpath_var=LD_LIBRARY_PATH
12670 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12671 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12672 # the default ld.so.conf also contains /usr/contrib/lib and
12673 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12674 # libtool to hard-code these into programs
12677 cygwin* | mingw* | pw32*)
12678 version_type=windows
12679 shrext_cmds=".dll"
12680 need_version=no
12681 need_lib_prefix=no
12683 case $GCC,$host_os in
12684 yes,cygwin* | yes,mingw* | yes,pw32*)
12685 library_names_spec='$libname.dll.a'
12686 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12687 postinstall_cmds='base_file=`basename \${file}`~
12688 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
12689 dldir=$destdir/`dirname \$dlpath`~
12690 test -d \$dldir || mkdir -p \$dldir~
12691 $install_prog $dir/$dlname \$dldir/$dlname~
12692 chmod a+x \$dldir/$dlname'
12693 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12694 dlpath=$dir/\$dldll~
12695 $rm \$dlpath'
12696 shlibpath_overrides_runpath=yes
12698 case $host_os in
12699 cygwin*)
12700 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12701 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12702 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
12704 mingw*)
12705 # MinGW DLLs use traditional 'lib' prefix
12706 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12707 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12708 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
12709 # It is most probably a Windows format PATH printed by
12710 # mingw gcc, but we are running on Cygwin. Gcc prints its search
12711 # path with ; separators, and with drive letters. We can handle the
12712 # drive letters (cygwin fileutils understands them), so leave them,
12713 # especially as we might pass files found there to a mingw objdump,
12714 # which wouldn't understand a cygwinified path. Ahh.
12715 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12716 else
12717 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12720 pw32*)
12721 # pw32 DLLs use 'pw' prefix rather than 'lib'
12722 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12724 esac
12728 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12730 esac
12731 dynamic_linker='Win32 ld.exe'
12732 # FIXME: first we should search . and the directory the executable is in
12733 shlibpath_var=PATH
12736 darwin* | rhapsody*)
12737 dynamic_linker="$host_os dyld"
12738 version_type=darwin
12739 need_lib_prefix=no
12740 need_version=no
12741 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12742 soname_spec='${libname}${release}${major}$shared_ext'
12743 shlibpath_overrides_runpath=yes
12744 shlibpath_var=DYLD_LIBRARY_PATH
12745 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12747 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12750 dgux*)
12751 version_type=linux
12752 need_lib_prefix=no
12753 need_version=no
12754 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12755 soname_spec='${libname}${release}${shared_ext}$major'
12756 shlibpath_var=LD_LIBRARY_PATH
12759 freebsd1*)
12760 dynamic_linker=no
12763 freebsd* | dragonfly*)
12764 # DragonFly does not have aout. When/if they implement a new
12765 # versioning mechanism, adjust this.
12766 if test -x /usr/bin/objformat; then
12767 objformat=`/usr/bin/objformat`
12768 else
12769 case $host_os in
12770 freebsd[123]*) objformat=aout ;;
12771 *) objformat=elf ;;
12772 esac
12774 version_type=freebsd-$objformat
12775 case $version_type in
12776 freebsd-elf*)
12777 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12778 need_version=no
12779 need_lib_prefix=no
12781 freebsd-*)
12782 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12783 need_version=yes
12785 esac
12786 shlibpath_var=LD_LIBRARY_PATH
12787 case $host_os in
12788 freebsd2*)
12789 shlibpath_overrides_runpath=yes
12791 freebsd3.[01]* | freebsdelf3.[01]*)
12792 shlibpath_overrides_runpath=yes
12793 hardcode_into_libs=yes
12795 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12796 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12797 shlibpath_overrides_runpath=no
12798 hardcode_into_libs=yes
12800 *) # from 4.6 on, and DragonFly
12801 shlibpath_overrides_runpath=yes
12802 hardcode_into_libs=yes
12804 esac
12807 gnu*)
12808 version_type=linux
12809 need_lib_prefix=no
12810 need_version=no
12811 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12812 soname_spec='${libname}${release}${shared_ext}$major'
12813 shlibpath_var=LD_LIBRARY_PATH
12814 hardcode_into_libs=yes
12817 hpux9* | hpux10* | hpux11*)
12818 # Give a soname corresponding to the major version so that dld.sl refuses to
12819 # link against other versions.
12820 version_type=sunos
12821 need_lib_prefix=no
12822 need_version=no
12823 case $host_cpu in
12824 ia64*)
12825 shrext_cmds='.so'
12826 hardcode_into_libs=yes
12827 dynamic_linker="$host_os dld.so"
12828 shlibpath_var=LD_LIBRARY_PATH
12829 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12830 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12831 soname_spec='${libname}${release}${shared_ext}$major'
12832 if test "X$HPUX_IA64_MODE" = X32; then
12833 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12834 else
12835 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12837 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12839 hppa*64*)
12840 shrext_cmds='.sl'
12841 hardcode_into_libs=yes
12842 dynamic_linker="$host_os dld.sl"
12843 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12844 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12845 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12846 soname_spec='${libname}${release}${shared_ext}$major'
12847 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12848 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12851 shrext_cmds='.sl'
12852 dynamic_linker="$host_os dld.sl"
12853 shlibpath_var=SHLIB_PATH
12854 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12855 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12856 soname_spec='${libname}${release}${shared_ext}$major'
12858 esac
12859 # HP-UX runs *really* slowly unless shared libraries are mode 555.
12860 postinstall_cmds='chmod 555 $lib'
12863 interix[3-9]*)
12864 version_type=linux
12865 need_lib_prefix=no
12866 need_version=no
12867 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12868 soname_spec='${libname}${release}${shared_ext}$major'
12869 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12870 shlibpath_var=LD_LIBRARY_PATH
12871 shlibpath_overrides_runpath=no
12872 hardcode_into_libs=yes
12875 irix5* | irix6* | nonstopux*)
12876 case $host_os in
12877 nonstopux*) version_type=nonstopux ;;
12879 if test "$lt_cv_prog_gnu_ld" = yes; then
12880 version_type=linux
12881 else
12882 version_type=irix
12883 fi ;;
12884 esac
12885 need_lib_prefix=no
12886 need_version=no
12887 soname_spec='${libname}${release}${shared_ext}$major'
12888 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12889 case $host_os in
12890 irix5* | nonstopux*)
12891 libsuff= shlibsuff=
12894 case $LD in # libtool.m4 will add one of these switches to LD
12895 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12896 libsuff= shlibsuff= libmagic=32-bit;;
12897 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12898 libsuff=32 shlibsuff=N32 libmagic=N32;;
12899 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12900 libsuff=64 shlibsuff=64 libmagic=64-bit;;
12901 *) libsuff= shlibsuff= libmagic=never-match;;
12902 esac
12904 esac
12905 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12906 shlibpath_overrides_runpath=no
12907 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12908 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12909 hardcode_into_libs=yes
12912 # No shared lib support for Linux oldld, aout, or coff.
12913 linux*oldld* | linux*aout* | linux*coff*)
12914 dynamic_linker=no
12917 # This must be Linux ELF.
12918 linux* | k*bsd*-gnu)
12919 version_type=linux
12920 need_lib_prefix=no
12921 need_version=no
12922 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12923 soname_spec='${libname}${release}${shared_ext}$major'
12924 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12925 shlibpath_var=LD_LIBRARY_PATH
12926 shlibpath_overrides_runpath=no
12927 # This implies no fast_install, which is unacceptable.
12928 # Some rework will be needed to allow for fast_install
12929 # before this can be enabled.
12930 hardcode_into_libs=yes
12931 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12932 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12934 # Append ld.so.conf contents to the search path
12935 if test -f /etc/ld.so.conf; then
12936 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
12937 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
12940 # We used to test for /lib/ld.so.1 and disable shared libraries on
12941 # powerpc, because MkLinux only supported shared libraries with the
12942 # GNU dynamic linker. Since this was broken with cross compilers,
12943 # most powerpc-linux boxes support dynamic linking these days and
12944 # people can always --disable-shared, the test was removed, and we
12945 # assume the GNU/Linux dynamic linker is in use.
12946 dynamic_linker='GNU/Linux ld.so'
12949 netbsd*)
12950 version_type=sunos
12951 need_lib_prefix=no
12952 need_version=no
12953 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12954 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12955 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12956 dynamic_linker='NetBSD (a.out) ld.so'
12957 else
12958 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12959 soname_spec='${libname}${release}${shared_ext}$major'
12960 dynamic_linker='NetBSD ld.elf_so'
12962 shlibpath_var=LD_LIBRARY_PATH
12963 shlibpath_overrides_runpath=yes
12964 hardcode_into_libs=yes
12967 newsos6)
12968 version_type=linux
12969 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12970 shlibpath_var=LD_LIBRARY_PATH
12971 shlibpath_overrides_runpath=yes
12974 nto-qnx*)
12975 version_type=linux
12976 need_lib_prefix=no
12977 need_version=no
12978 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12979 soname_spec='${libname}${release}${shared_ext}$major'
12980 shlibpath_var=LD_LIBRARY_PATH
12981 shlibpath_overrides_runpath=yes
12984 openbsd*)
12985 version_type=sunos
12986 sys_lib_dlsearch_path_spec="/usr/lib"
12987 need_lib_prefix=no
12988 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12989 case $host_os in
12990 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
12991 *) need_version=no ;;
12992 esac
12993 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12994 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12995 shlibpath_var=LD_LIBRARY_PATH
12996 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12997 case $host_os in
12998 openbsd2.[89] | openbsd2.[89].*)
12999 shlibpath_overrides_runpath=no
13002 shlibpath_overrides_runpath=yes
13004 esac
13005 else
13006 shlibpath_overrides_runpath=yes
13010 os2*)
13011 libname_spec='$name'
13012 shrext_cmds=".dll"
13013 need_lib_prefix=no
13014 library_names_spec='$libname${shared_ext} $libname.a'
13015 dynamic_linker='OS/2 ld.exe'
13016 shlibpath_var=LIBPATH
13019 osf3* | osf4* | osf5*)
13020 version_type=osf
13021 need_lib_prefix=no
13022 need_version=no
13023 soname_spec='${libname}${release}${shared_ext}$major'
13024 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13025 shlibpath_var=LD_LIBRARY_PATH
13026 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13027 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13030 rdos*)
13031 dynamic_linker=no
13034 solaris*)
13035 version_type=linux
13036 need_lib_prefix=no
13037 need_version=no
13038 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13039 soname_spec='${libname}${release}${shared_ext}$major'
13040 shlibpath_var=LD_LIBRARY_PATH
13041 shlibpath_overrides_runpath=yes
13042 hardcode_into_libs=yes
13043 # ldd complains unless libraries are executable
13044 postinstall_cmds='chmod +x $lib'
13047 sunos4*)
13048 version_type=sunos
13049 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13050 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13051 shlibpath_var=LD_LIBRARY_PATH
13052 shlibpath_overrides_runpath=yes
13053 if test "$with_gnu_ld" = yes; then
13054 need_lib_prefix=no
13056 need_version=yes
13059 sysv4 | sysv4.3*)
13060 version_type=linux
13061 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13062 soname_spec='${libname}${release}${shared_ext}$major'
13063 shlibpath_var=LD_LIBRARY_PATH
13064 case $host_vendor in
13065 sni)
13066 shlibpath_overrides_runpath=no
13067 need_lib_prefix=no
13068 export_dynamic_flag_spec='${wl}-Blargedynsym'
13069 runpath_var=LD_RUN_PATH
13071 siemens)
13072 need_lib_prefix=no
13074 motorola)
13075 need_lib_prefix=no
13076 need_version=no
13077 shlibpath_overrides_runpath=no
13078 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13080 esac
13083 sysv4*MP*)
13084 if test -d /usr/nec ;then
13085 version_type=linux
13086 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13087 soname_spec='$libname${shared_ext}.$major'
13088 shlibpath_var=LD_LIBRARY_PATH
13092 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13093 version_type=freebsd-elf
13094 need_lib_prefix=no
13095 need_version=no
13096 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13097 soname_spec='${libname}${release}${shared_ext}$major'
13098 shlibpath_var=LD_LIBRARY_PATH
13099 hardcode_into_libs=yes
13100 if test "$with_gnu_ld" = yes; then
13101 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13102 shlibpath_overrides_runpath=no
13103 else
13104 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13105 shlibpath_overrides_runpath=yes
13106 case $host_os in
13107 sco3.2v5*)
13108 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13110 esac
13112 sys_lib_dlsearch_path_spec='/usr/lib'
13115 uts4*)
13116 version_type=linux
13117 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13118 soname_spec='${libname}${release}${shared_ext}$major'
13119 shlibpath_var=LD_LIBRARY_PATH
13123 dynamic_linker=no
13125 esac
13126 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13127 echo "${ECHO_T}$dynamic_linker" >&6; }
13128 test "$dynamic_linker" = no && can_build_shared=no
13130 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13131 if test "$GCC" = yes; then
13132 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13135 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13136 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
13137 hardcode_action_CXX=
13138 if test -n "$hardcode_libdir_flag_spec_CXX" || \
13139 test -n "$runpath_var_CXX" || \
13140 test "X$hardcode_automatic_CXX" = "Xyes" ; then
13142 # We can hardcode non-existant directories.
13143 if test "$hardcode_direct_CXX" != no &&
13144 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13145 # have to relink, otherwise we might link with an installed library
13146 # when we should be linking with a yet-to-be-installed one
13147 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13148 test "$hardcode_minus_L_CXX" != no; then
13149 # Linking always hardcodes the temporary library directory.
13150 hardcode_action_CXX=relink
13151 else
13152 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13153 hardcode_action_CXX=immediate
13155 else
13156 # We cannot hardcode anything, or else we can only hardcode existing
13157 # directories.
13158 hardcode_action_CXX=unsupported
13160 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
13161 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
13163 if test "$hardcode_action_CXX" = relink; then
13164 # Fast installation is not supported
13165 enable_fast_install=no
13166 elif test "$shlibpath_overrides_runpath" = yes ||
13167 test "$enable_shared" = no; then
13168 # Fast installation is not necessary
13169 enable_fast_install=needless
13173 # The else clause should only fire when bootstrapping the
13174 # libtool distribution, otherwise you forgot to ship ltmain.sh
13175 # with your package, and you will get complaints that there are
13176 # no rules to generate ltmain.sh.
13177 if test -f "$ltmain"; then
13178 # See if we are running on zsh, and set the options which allow our commands through
13179 # without removal of \ escapes.
13180 if test -n "${ZSH_VERSION+set}" ; then
13181 setopt NO_GLOB_SUBST
13183 # Now quote all the things that may contain metacharacters while being
13184 # careful not to overquote the AC_SUBSTed values. We take copies of the
13185 # variables and quote the copies for generation of the libtool script.
13186 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
13187 SED SHELL STRIP \
13188 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13189 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13190 deplibs_check_method reload_flag reload_cmds need_locks \
13191 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13192 lt_cv_sys_global_symbol_to_c_name_address \
13193 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13194 old_postinstall_cmds old_postuninstall_cmds \
13195 compiler_CXX \
13196 CC_CXX \
13197 LD_CXX \
13198 lt_prog_compiler_wl_CXX \
13199 lt_prog_compiler_pic_CXX \
13200 lt_prog_compiler_static_CXX \
13201 lt_prog_compiler_no_builtin_flag_CXX \
13202 export_dynamic_flag_spec_CXX \
13203 thread_safe_flag_spec_CXX \
13204 whole_archive_flag_spec_CXX \
13205 enable_shared_with_static_runtimes_CXX \
13206 old_archive_cmds_CXX \
13207 old_archive_from_new_cmds_CXX \
13208 predep_objects_CXX \
13209 postdep_objects_CXX \
13210 predeps_CXX \
13211 postdeps_CXX \
13212 compiler_lib_search_path_CXX \
13213 archive_cmds_CXX \
13214 archive_expsym_cmds_CXX \
13215 postinstall_cmds_CXX \
13216 postuninstall_cmds_CXX \
13217 old_archive_from_expsyms_cmds_CXX \
13218 allow_undefined_flag_CXX \
13219 no_undefined_flag_CXX \
13220 export_symbols_cmds_CXX \
13221 hardcode_libdir_flag_spec_CXX \
13222 hardcode_libdir_flag_spec_ld_CXX \
13223 hardcode_libdir_separator_CXX \
13224 hardcode_automatic_CXX \
13225 module_cmds_CXX \
13226 module_expsym_cmds_CXX \
13227 lt_cv_prog_compiler_c_o_CXX \
13228 fix_srcfile_path_CXX \
13229 exclude_expsyms_CXX \
13230 include_expsyms_CXX; do
13232 case $var in
13233 old_archive_cmds_CXX | \
13234 old_archive_from_new_cmds_CXX | \
13235 archive_cmds_CXX | \
13236 archive_expsym_cmds_CXX | \
13237 module_cmds_CXX | \
13238 module_expsym_cmds_CXX | \
13239 old_archive_from_expsyms_cmds_CXX | \
13240 export_symbols_cmds_CXX | \
13241 extract_expsyms_cmds | reload_cmds | finish_cmds | \
13242 postinstall_cmds | postuninstall_cmds | \
13243 old_postinstall_cmds | old_postuninstall_cmds | \
13244 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13245 # Double-quote double-evaled strings.
13246 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13249 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13251 esac
13252 done
13254 case $lt_echo in
13255 *'\$0 --fallback-echo"')
13256 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13258 esac
13260 cfgfile="$ofile"
13262 cat <<__EOF__ >> "$cfgfile"
13263 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
13265 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13267 # Shell to use when invoking shell scripts.
13268 SHELL=$lt_SHELL
13270 # Whether or not to build shared libraries.
13271 build_libtool_libs=$enable_shared
13273 # Whether or not to build static libraries.
13274 build_old_libs=$enable_static
13276 # Whether or not to add -lc for building shared libraries.
13277 build_libtool_need_lc=$archive_cmds_need_lc_CXX
13279 # Whether or not to disallow shared libs when runtime libs are static
13280 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13282 # Whether or not to optimize for fast installation.
13283 fast_install=$enable_fast_install
13285 # The host system.
13286 host_alias=$host_alias
13287 host=$host
13288 host_os=$host_os
13290 # The build system.
13291 build_alias=$build_alias
13292 build=$build
13293 build_os=$build_os
13295 # An echo program that does not interpret backslashes.
13296 echo=$lt_echo
13298 # The archiver.
13299 AR=$lt_AR
13300 AR_FLAGS=$lt_AR_FLAGS
13302 # A C compiler.
13303 LTCC=$lt_LTCC
13305 # LTCC compiler flags.
13306 LTCFLAGS=$lt_LTCFLAGS
13308 # A language-specific compiler.
13309 CC=$lt_compiler_CXX
13311 # Is the compiler the GNU C compiler?
13312 with_gcc=$GCC_CXX
13314 # An ERE matcher.
13315 EGREP=$lt_EGREP
13317 # The linker used to build libraries.
13318 LD=$lt_LD_CXX
13320 # Whether we need hard or soft links.
13321 LN_S=$lt_LN_S
13323 # A BSD-compatible nm program.
13324 NM=$lt_NM
13326 # A symbol stripping program
13327 STRIP=$lt_STRIP
13329 # Used to examine libraries when file_magic_cmd begins "file"
13330 MAGIC_CMD=$MAGIC_CMD
13332 # Used on cygwin: DLL creation program.
13333 DLLTOOL="$DLLTOOL"
13335 # Used on cygwin: object dumper.
13336 OBJDUMP="$OBJDUMP"
13338 # Used on cygwin: assembler.
13339 AS="$AS"
13341 # The name of the directory that contains temporary libtool files.
13342 objdir=$objdir
13344 # How to create reloadable object files.
13345 reload_flag=$lt_reload_flag
13346 reload_cmds=$lt_reload_cmds
13348 # How to pass a linker flag through the compiler.
13349 wl=$lt_lt_prog_compiler_wl_CXX
13351 # Object file suffix (normally "o").
13352 objext="$ac_objext"
13354 # Old archive suffix (normally "a").
13355 libext="$libext"
13357 # Shared library suffix (normally ".so").
13358 shrext_cmds='$shrext_cmds'
13360 # Executable file suffix (normally "").
13361 exeext="$exeext"
13363 # Additional compiler flags for building library objects.
13364 pic_flag=$lt_lt_prog_compiler_pic_CXX
13365 pic_mode=$pic_mode
13367 # What is the maximum length of a command?
13368 max_cmd_len=$lt_cv_sys_max_cmd_len
13370 # Does compiler simultaneously support -c and -o options?
13371 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13373 # Must we lock files when doing compilation?
13374 need_locks=$lt_need_locks
13376 # Do we need the lib prefix for modules?
13377 need_lib_prefix=$need_lib_prefix
13379 # Do we need a version for libraries?
13380 need_version=$need_version
13382 # Whether dlopen is supported.
13383 dlopen_support=$enable_dlopen
13385 # Whether dlopen of programs is supported.
13386 dlopen_self=$enable_dlopen_self
13388 # Whether dlopen of statically linked programs is supported.
13389 dlopen_self_static=$enable_dlopen_self_static
13391 # Compiler flag to prevent dynamic linking.
13392 link_static_flag=$lt_lt_prog_compiler_static_CXX
13394 # Compiler flag to turn off builtin functions.
13395 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13397 # Compiler flag to allow reflexive dlopens.
13398 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13400 # Compiler flag to generate shared objects directly from archives.
13401 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13403 # Compiler flag to generate thread-safe objects.
13404 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13406 # Library versioning type.
13407 version_type=$version_type
13409 # Format of library name prefix.
13410 libname_spec=$lt_libname_spec
13412 # List of archive names. First name is the real one, the rest are links.
13413 # The last name is the one that the linker finds with -lNAME.
13414 library_names_spec=$lt_library_names_spec
13416 # The coded name of the library, if different from the real name.
13417 soname_spec=$lt_soname_spec
13419 # Commands used to build and install an old-style archive.
13420 RANLIB=$lt_RANLIB
13421 old_archive_cmds=$lt_old_archive_cmds_CXX
13422 old_postinstall_cmds=$lt_old_postinstall_cmds
13423 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13425 # Create an old-style archive from a shared archive.
13426 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13428 # Create a temporary old-style archive to link instead of a shared archive.
13429 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13431 # Commands used to build and install a shared archive.
13432 archive_cmds=$lt_archive_cmds_CXX
13433 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13434 postinstall_cmds=$lt_postinstall_cmds
13435 postuninstall_cmds=$lt_postuninstall_cmds
13437 # Commands used to build a loadable module (assumed same as above if empty)
13438 module_cmds=$lt_module_cmds_CXX
13439 module_expsym_cmds=$lt_module_expsym_cmds_CXX
13441 # Commands to strip libraries.
13442 old_striplib=$lt_old_striplib
13443 striplib=$lt_striplib
13445 # Dependencies to place before the objects being linked to create a
13446 # shared library.
13447 predep_objects=$lt_predep_objects_CXX
13449 # Dependencies to place after the objects being linked to create a
13450 # shared library.
13451 postdep_objects=$lt_postdep_objects_CXX
13453 # Dependencies to place before the objects being linked to create a
13454 # shared library.
13455 predeps=$lt_predeps_CXX
13457 # Dependencies to place after the objects being linked to create a
13458 # shared library.
13459 postdeps=$lt_postdeps_CXX
13461 # The library search path used internally by the compiler when linking
13462 # a shared library.
13463 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13465 # Method to check whether dependent libraries are shared objects.
13466 deplibs_check_method=$lt_deplibs_check_method
13468 # Command to use when deplibs_check_method == file_magic.
13469 file_magic_cmd=$lt_file_magic_cmd
13471 # Flag that allows shared libraries with undefined symbols to be built.
13472 allow_undefined_flag=$lt_allow_undefined_flag_CXX
13474 # Flag that forces no undefined symbols.
13475 no_undefined_flag=$lt_no_undefined_flag_CXX
13477 # Commands used to finish a libtool library installation in a directory.
13478 finish_cmds=$lt_finish_cmds
13480 # Same as above, but a single script fragment to be evaled but not shown.
13481 finish_eval=$lt_finish_eval
13483 # Take the output of nm and produce a listing of raw symbols and C names.
13484 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13486 # Transform the output of nm in a proper C declaration
13487 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13489 # Transform the output of nm in a C name address pair
13490 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13492 # This is the shared library runtime path variable.
13493 runpath_var=$runpath_var
13495 # This is the shared library path variable.
13496 shlibpath_var=$shlibpath_var
13498 # Is shlibpath searched before the hard-coded library search path?
13499 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13501 # How to hardcode a shared library path into an executable.
13502 hardcode_action=$hardcode_action_CXX
13504 # Whether we should hardcode library paths into libraries.
13505 hardcode_into_libs=$hardcode_into_libs
13507 # Flag to hardcode \$libdir into a binary during linking.
13508 # This must work even if \$libdir does not exist.
13509 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13511 # If ld is used when linking, flag to hardcode \$libdir into
13512 # a binary during linking. This must work even if \$libdir does
13513 # not exist.
13514 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13516 # Whether we need a single -rpath flag with a separated argument.
13517 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13519 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13520 # resulting binary.
13521 hardcode_direct=$hardcode_direct_CXX
13523 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13524 # resulting binary.
13525 hardcode_minus_L=$hardcode_minus_L_CXX
13527 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13528 # the resulting binary.
13529 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13531 # Set to yes if building a shared library automatically hardcodes DIR into the library
13532 # and all subsequent libraries and executables linked against it.
13533 hardcode_automatic=$hardcode_automatic_CXX
13535 # Variables whose values should be saved in libtool wrapper scripts and
13536 # restored at relink time.
13537 variables_saved_for_relink="$variables_saved_for_relink"
13539 # Whether libtool must link a program against all its dependency libraries.
13540 link_all_deplibs=$link_all_deplibs_CXX
13542 # Compile-time system search path for libraries
13543 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13545 # Run-time system search path for libraries
13546 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13548 # Fix the shell variable \$srcfile for the compiler.
13549 fix_srcfile_path=$lt_fix_srcfile_path
13551 # Set to yes if exported symbols are required.
13552 always_export_symbols=$always_export_symbols_CXX
13554 # The commands to list exported symbols.
13555 export_symbols_cmds=$lt_export_symbols_cmds_CXX
13557 # The commands to extract the exported symbol list from a shared archive.
13558 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13560 # Symbols that should not be listed in the preloaded symbols.
13561 exclude_expsyms=$lt_exclude_expsyms_CXX
13563 # Symbols that must always be exported.
13564 include_expsyms=$lt_include_expsyms_CXX
13566 # ### END LIBTOOL TAG CONFIG: $tagname
13568 __EOF__
13571 else
13572 # If there is no Makefile yet, we rely on a make rule to execute
13573 # `config.status --recheck' to rerun these tests and create the
13574 # libtool script then.
13575 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13576 if test -f "$ltmain_in"; then
13577 test -f Makefile && make "$ltmain"
13582 ac_ext=cpp
13583 ac_cpp='$CXXCPP $CPPFLAGS'
13584 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13585 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13586 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13588 CC=$lt_save_CC
13589 LDCXX=$LD
13590 LD=$lt_save_LD
13591 GCC=$lt_save_GCC
13592 with_gnu_ldcxx=$with_gnu_ld
13593 with_gnu_ld=$lt_save_with_gnu_ld
13594 lt_cv_path_LDCXX=$lt_cv_path_LD
13595 lt_cv_path_LD=$lt_save_path_LD
13596 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13597 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13599 else
13600 tagname=""
13604 F77)
13605 if test -n "$F77" && test "X$F77" != "Xno"; then
13607 ac_ext=f
13608 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13609 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13610 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13613 archive_cmds_need_lc_F77=no
13614 allow_undefined_flag_F77=
13615 always_export_symbols_F77=no
13616 archive_expsym_cmds_F77=
13617 export_dynamic_flag_spec_F77=
13618 hardcode_direct_F77=no
13619 hardcode_libdir_flag_spec_F77=
13620 hardcode_libdir_flag_spec_ld_F77=
13621 hardcode_libdir_separator_F77=
13622 hardcode_minus_L_F77=no
13623 hardcode_automatic_F77=no
13624 module_cmds_F77=
13625 module_expsym_cmds_F77=
13626 link_all_deplibs_F77=unknown
13627 old_archive_cmds_F77=$old_archive_cmds
13628 no_undefined_flag_F77=
13629 whole_archive_flag_spec_F77=
13630 enable_shared_with_static_runtimes_F77=no
13632 # Source file extension for f77 test sources.
13633 ac_ext=f
13635 # Object file extension for compiled f77 test sources.
13636 objext=o
13637 objext_F77=$objext
13639 # Code to be used in simple compile tests
13640 lt_simple_compile_test_code="\
13641 subroutine t
13642 return
13646 # Code to be used in simple link tests
13647 lt_simple_link_test_code="\
13648 program t
13652 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13654 # If no C compiler was specified, use CC.
13655 LTCC=${LTCC-"$CC"}
13657 # If no C compiler flags were specified, use CFLAGS.
13658 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13660 # Allow CC to be a program name with arguments.
13661 compiler=$CC
13664 # save warnings/boilerplate of simple test code
13665 ac_outfile=conftest.$ac_objext
13666 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13667 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13668 _lt_compiler_boilerplate=`cat conftest.err`
13669 $rm conftest*
13671 ac_outfile=conftest.$ac_objext
13672 echo "$lt_simple_link_test_code" >conftest.$ac_ext
13673 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13674 _lt_linker_boilerplate=`cat conftest.err`
13675 $rm conftest*
13678 # Allow CC to be a program name with arguments.
13679 lt_save_CC="$CC"
13680 CC=${F77-"f77"}
13681 compiler=$CC
13682 compiler_F77=$CC
13683 for cc_temp in $compiler""; do
13684 case $cc_temp in
13685 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13686 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13687 \-*) ;;
13688 *) break;;
13689 esac
13690 done
13691 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13694 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13695 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
13696 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
13697 echo "${ECHO_T}$can_build_shared" >&6; }
13699 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13700 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
13701 test "$can_build_shared" = "no" && enable_shared=no
13703 # On AIX, shared libraries and static libraries use the same namespace, and
13704 # are all built from PIC.
13705 case $host_os in
13706 aix3*)
13707 test "$enable_shared" = yes && enable_static=no
13708 if test -n "$RANLIB"; then
13709 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13710 postinstall_cmds='$RANLIB $lib'
13713 aix4* | aix5*)
13714 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13715 test "$enable_shared" = yes && enable_static=no
13718 esac
13719 { echo "$as_me:$LINENO: result: $enable_shared" >&5
13720 echo "${ECHO_T}$enable_shared" >&6; }
13722 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13723 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
13724 # Make sure either enable_shared or enable_static is yes.
13725 test "$enable_shared" = yes || enable_static=yes
13726 { echo "$as_me:$LINENO: result: $enable_static" >&5
13727 echo "${ECHO_T}$enable_static" >&6; }
13729 GCC_F77="$G77"
13730 LD_F77="$LD"
13732 lt_prog_compiler_wl_F77=
13733 lt_prog_compiler_pic_F77=
13734 lt_prog_compiler_static_F77=
13736 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13737 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
13739 if test "$GCC" = yes; then
13740 lt_prog_compiler_wl_F77='-Wl,'
13741 lt_prog_compiler_static_F77='-static'
13743 case $host_os in
13744 aix*)
13745 # All AIX code is PIC.
13746 if test "$host_cpu" = ia64; then
13747 # AIX 5 now supports IA64 processor
13748 lt_prog_compiler_static_F77='-Bstatic'
13752 amigaos*)
13753 # FIXME: we need at least 68020 code to build shared libraries, but
13754 # adding the `-m68020' flag to GCC prevents building anything better,
13755 # like `-m68040'.
13756 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13759 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13760 # PIC is the default for these OSes.
13763 mingw* | cygwin* | pw32* | os2*)
13764 # This hack is so that the source file can tell whether it is being
13765 # built for inclusion in a dll (and should export symbols for example).
13766 # Although the cygwin gcc ignores -fPIC, still need this for old-style
13767 # (--disable-auto-import) libraries
13768 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13771 darwin* | rhapsody*)
13772 # PIC is the default on this platform
13773 # Common symbols not allowed in MH_DYLIB files
13774 lt_prog_compiler_pic_F77='-fno-common'
13777 interix[3-9]*)
13778 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13779 # Instead, we relocate shared libraries at runtime.
13782 msdosdjgpp*)
13783 # Just because we use GCC doesn't mean we suddenly get shared libraries
13784 # on systems that don't support them.
13785 lt_prog_compiler_can_build_shared_F77=no
13786 enable_shared=no
13789 sysv4*MP*)
13790 if test -d /usr/nec; then
13791 lt_prog_compiler_pic_F77=-Kconform_pic
13795 hpux*)
13796 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13797 # not for PA HP-UX.
13798 case $host_cpu in
13799 hppa*64*|ia64*)
13800 # +Z the default
13803 lt_prog_compiler_pic_F77='-fPIC'
13805 esac
13809 lt_prog_compiler_pic_F77='-fPIC'
13811 esac
13812 else
13813 # PORTME Check for flag to pass linker flags through the system compiler.
13814 case $host_os in
13815 aix*)
13816 lt_prog_compiler_wl_F77='-Wl,'
13817 if test "$host_cpu" = ia64; then
13818 # AIX 5 now supports IA64 processor
13819 lt_prog_compiler_static_F77='-Bstatic'
13820 else
13821 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13824 darwin*)
13825 # PIC is the default on this platform
13826 # Common symbols not allowed in MH_DYLIB files
13827 case $cc_basename in
13828 xlc*)
13829 lt_prog_compiler_pic_F77='-qnocommon'
13830 lt_prog_compiler_wl_F77='-Wl,'
13832 esac
13835 mingw* | cygwin* | pw32* | os2*)
13836 # This hack is so that the source file can tell whether it is being
13837 # built for inclusion in a dll (and should export symbols for example).
13838 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13841 hpux9* | hpux10* | hpux11*)
13842 lt_prog_compiler_wl_F77='-Wl,'
13843 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13844 # not for PA HP-UX.
13845 case $host_cpu in
13846 hppa*64*|ia64*)
13847 # +Z the default
13850 lt_prog_compiler_pic_F77='+Z'
13852 esac
13853 # Is there a better lt_prog_compiler_static that works with the bundled CC?
13854 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13857 irix5* | irix6* | nonstopux*)
13858 lt_prog_compiler_wl_F77='-Wl,'
13859 # PIC (with -KPIC) is the default.
13860 lt_prog_compiler_static_F77='-non_shared'
13863 newsos6)
13864 lt_prog_compiler_pic_F77='-KPIC'
13865 lt_prog_compiler_static_F77='-Bstatic'
13868 linux* | k*bsd*-gnu)
13869 case $cc_basename in
13870 icc* | ecc*)
13871 lt_prog_compiler_wl_F77='-Wl,'
13872 lt_prog_compiler_pic_F77='-KPIC'
13873 lt_prog_compiler_static_F77='-static'
13875 pgcc* | pgf77* | pgf90* | pgf95*)
13876 # Portland Group compilers (*not* the Pentium gcc compiler,
13877 # which looks to be a dead project)
13878 lt_prog_compiler_wl_F77='-Wl,'
13879 lt_prog_compiler_pic_F77='-fpic'
13880 lt_prog_compiler_static_F77='-Bstatic'
13882 ccc*)
13883 lt_prog_compiler_wl_F77='-Wl,'
13884 # All Alpha code is PIC.
13885 lt_prog_compiler_static_F77='-non_shared'
13888 case `$CC -V 2>&1 | sed 5q` in
13889 *Sun\ C*)
13890 # Sun C 5.9
13891 lt_prog_compiler_pic_F77='-KPIC'
13892 lt_prog_compiler_static_F77='-Bstatic'
13893 lt_prog_compiler_wl_F77='-Wl,'
13895 *Sun\ F*)
13896 # Sun Fortran 8.3 passes all unrecognized flags to the linker
13897 lt_prog_compiler_pic_F77='-KPIC'
13898 lt_prog_compiler_static_F77='-Bstatic'
13899 lt_prog_compiler_wl_F77=''
13901 esac
13903 esac
13906 osf3* | osf4* | osf5*)
13907 lt_prog_compiler_wl_F77='-Wl,'
13908 # All OSF/1 code is PIC.
13909 lt_prog_compiler_static_F77='-non_shared'
13912 rdos*)
13913 lt_prog_compiler_static_F77='-non_shared'
13916 solaris*)
13917 lt_prog_compiler_pic_F77='-KPIC'
13918 lt_prog_compiler_static_F77='-Bstatic'
13919 case $cc_basename in
13920 f77* | f90* | f95*)
13921 lt_prog_compiler_wl_F77='-Qoption ld ';;
13923 lt_prog_compiler_wl_F77='-Wl,';;
13924 esac
13927 sunos4*)
13928 lt_prog_compiler_wl_F77='-Qoption ld '
13929 lt_prog_compiler_pic_F77='-PIC'
13930 lt_prog_compiler_static_F77='-Bstatic'
13933 sysv4 | sysv4.2uw2* | sysv4.3*)
13934 lt_prog_compiler_wl_F77='-Wl,'
13935 lt_prog_compiler_pic_F77='-KPIC'
13936 lt_prog_compiler_static_F77='-Bstatic'
13939 sysv4*MP*)
13940 if test -d /usr/nec ;then
13941 lt_prog_compiler_pic_F77='-Kconform_pic'
13942 lt_prog_compiler_static_F77='-Bstatic'
13946 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13947 lt_prog_compiler_wl_F77='-Wl,'
13948 lt_prog_compiler_pic_F77='-KPIC'
13949 lt_prog_compiler_static_F77='-Bstatic'
13952 unicos*)
13953 lt_prog_compiler_wl_F77='-Wl,'
13954 lt_prog_compiler_can_build_shared_F77=no
13957 uts4*)
13958 lt_prog_compiler_pic_F77='-pic'
13959 lt_prog_compiler_static_F77='-Bstatic'
13963 lt_prog_compiler_can_build_shared_F77=no
13965 esac
13968 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13969 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
13972 # Check to make sure the PIC flag actually works.
13974 if test -n "$lt_prog_compiler_pic_F77"; then
13976 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13977 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
13978 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13979 echo $ECHO_N "(cached) $ECHO_C" >&6
13980 else
13981 lt_prog_compiler_pic_works_F77=no
13982 ac_outfile=conftest.$ac_objext
13983 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13984 lt_compiler_flag="$lt_prog_compiler_pic_F77"
13985 # Insert the option either (1) after the last *FLAGS variable, or
13986 # (2) before a word containing "conftest.", or (3) at the end.
13987 # Note that $ac_compile itself does not contain backslashes and begins
13988 # with a dollar sign (not a hyphen), so the echo should work correctly.
13989 # The option is referenced via a variable to avoid confusing sed.
13990 lt_compile=`echo "$ac_compile" | $SED \
13991 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13992 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13993 -e 's:$: $lt_compiler_flag:'`
13994 (eval echo "\"\$as_me:13994: $lt_compile\"" >&5)
13995 (eval "$lt_compile" 2>conftest.err)
13996 ac_status=$?
13997 cat conftest.err >&5
13998 echo "$as_me:13998: \$? = $ac_status" >&5
13999 if (exit $ac_status) && test -s "$ac_outfile"; then
14000 # The compiler can only warn and ignore the option if not recognized
14001 # So say no if there are warnings other than the usual output.
14002 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14003 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14004 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14005 lt_prog_compiler_pic_works_F77=yes
14008 $rm conftest*
14011 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
14012 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
14014 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
14015 case $lt_prog_compiler_pic_F77 in
14016 "" | " "*) ;;
14017 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
14018 esac
14019 else
14020 lt_prog_compiler_pic_F77=
14021 lt_prog_compiler_can_build_shared_F77=no
14025 case $host_os in
14026 # For platforms which do not support PIC, -DPIC is meaningless:
14027 *djgpp*)
14028 lt_prog_compiler_pic_F77=
14031 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14033 esac
14036 # Check to make sure the static flag actually works.
14038 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
14039 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14040 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14041 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
14042 echo $ECHO_N "(cached) $ECHO_C" >&6
14043 else
14044 lt_prog_compiler_static_works_F77=no
14045 save_LDFLAGS="$LDFLAGS"
14046 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14047 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14048 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14049 # The linker can only warn and ignore the option if not recognized
14050 # So say no if there are warnings
14051 if test -s conftest.err; then
14052 # Append any errors to the config.log.
14053 cat conftest.err 1>&5
14054 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14055 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14056 if diff conftest.exp conftest.er2 >/dev/null; then
14057 lt_prog_compiler_static_works_F77=yes
14059 else
14060 lt_prog_compiler_static_works_F77=yes
14063 $rm conftest*
14064 LDFLAGS="$save_LDFLAGS"
14067 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
14068 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
14070 if test x"$lt_prog_compiler_static_works_F77" = xyes; then
14072 else
14073 lt_prog_compiler_static_F77=
14077 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14078 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14079 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14080 echo $ECHO_N "(cached) $ECHO_C" >&6
14081 else
14082 lt_cv_prog_compiler_c_o_F77=no
14083 $rm -r conftest 2>/dev/null
14084 mkdir conftest
14085 cd conftest
14086 mkdir out
14087 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14089 lt_compiler_flag="-o out/conftest2.$ac_objext"
14090 # Insert the option either (1) after the last *FLAGS variable, or
14091 # (2) before a word containing "conftest.", or (3) at the end.
14092 # Note that $ac_compile itself does not contain backslashes and begins
14093 # with a dollar sign (not a hyphen), so the echo should work correctly.
14094 lt_compile=`echo "$ac_compile" | $SED \
14095 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14096 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14097 -e 's:$: $lt_compiler_flag:'`
14098 (eval echo "\"\$as_me:14098: $lt_compile\"" >&5)
14099 (eval "$lt_compile" 2>out/conftest.err)
14100 ac_status=$?
14101 cat out/conftest.err >&5
14102 echo "$as_me:14102: \$? = $ac_status" >&5
14103 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14104 then
14105 # The compiler can only warn and ignore the option if not recognized
14106 # So say no if there are warnings
14107 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14108 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14109 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14110 lt_cv_prog_compiler_c_o_F77=yes
14113 chmod u+w . 2>&5
14114 $rm conftest*
14115 # SGI C++ compiler will create directory out/ii_files/ for
14116 # template instantiation
14117 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14118 $rm out/* && rmdir out
14119 cd ..
14120 rmdir conftest
14121 $rm conftest*
14124 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14125 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
14128 hard_links="nottested"
14129 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14130 # do not overwrite the value of need_locks provided by the user
14131 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14132 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14133 hard_links=yes
14134 $rm conftest*
14135 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14136 touch conftest.a
14137 ln conftest.a conftest.b 2>&5 || hard_links=no
14138 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14139 { echo "$as_me:$LINENO: result: $hard_links" >&5
14140 echo "${ECHO_T}$hard_links" >&6; }
14141 if test "$hard_links" = no; then
14142 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14143 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14144 need_locks=warn
14146 else
14147 need_locks=no
14150 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14151 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14153 runpath_var=
14154 allow_undefined_flag_F77=
14155 enable_shared_with_static_runtimes_F77=no
14156 archive_cmds_F77=
14157 archive_expsym_cmds_F77=
14158 old_archive_From_new_cmds_F77=
14159 old_archive_from_expsyms_cmds_F77=
14160 export_dynamic_flag_spec_F77=
14161 whole_archive_flag_spec_F77=
14162 thread_safe_flag_spec_F77=
14163 hardcode_libdir_flag_spec_F77=
14164 hardcode_libdir_flag_spec_ld_F77=
14165 hardcode_libdir_separator_F77=
14166 hardcode_direct_F77=no
14167 hardcode_minus_L_F77=no
14168 hardcode_shlibpath_var_F77=unsupported
14169 link_all_deplibs_F77=unknown
14170 hardcode_automatic_F77=no
14171 module_cmds_F77=
14172 module_expsym_cmds_F77=
14173 always_export_symbols_F77=no
14174 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14175 # include_expsyms should be a list of space-separated symbols to be *always*
14176 # included in the symbol list
14177 include_expsyms_F77=
14178 # exclude_expsyms can be an extended regexp of symbols to exclude
14179 # it will be wrapped by ` (' and `)$', so one must not match beginning or
14180 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14181 # as well as any symbol that contains `d'.
14182 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
14183 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14184 # platforms (ab)use it in PIC code, but their linkers get confused if
14185 # the symbol is explicitly referenced. Since portable code cannot
14186 # rely on this symbol name, it's probably fine to never include it in
14187 # preloaded symbol tables.
14188 extract_expsyms_cmds=
14189 # Just being paranoid about ensuring that cc_basename is set.
14190 for cc_temp in $compiler""; do
14191 case $cc_temp in
14192 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14193 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14194 \-*) ;;
14195 *) break;;
14196 esac
14197 done
14198 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14200 case $host_os in
14201 cygwin* | mingw* | pw32*)
14202 # FIXME: the MSVC++ port hasn't been tested in a loooong time
14203 # When not using gcc, we currently assume that we are using
14204 # Microsoft Visual C++.
14205 if test "$GCC" != yes; then
14206 with_gnu_ld=no
14209 interix*)
14210 # we just hope/assume this is gcc and not c89 (= MSVC++)
14211 with_gnu_ld=yes
14213 openbsd*)
14214 with_gnu_ld=no
14216 esac
14218 ld_shlibs_F77=yes
14219 if test "$with_gnu_ld" = yes; then
14220 # If archive_cmds runs LD, not CC, wlarc should be empty
14221 wlarc='${wl}'
14223 # Set some defaults for GNU ld with shared library support. These
14224 # are reset later if shared libraries are not supported. Putting them
14225 # here allows them to be overridden if necessary.
14226 runpath_var=LD_RUN_PATH
14227 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14228 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14229 # ancient GNU ld didn't support --whole-archive et. al.
14230 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14231 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14232 else
14233 whole_archive_flag_spec_F77=
14235 supports_anon_versioning=no
14236 case `$LD -v 2>/dev/null` in
14237 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14238 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14239 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14240 *\ 2.11.*) ;; # other 2.11 versions
14241 *) supports_anon_versioning=yes ;;
14242 esac
14244 # See if GNU ld supports shared libraries.
14245 case $host_os in
14246 aix3* | aix4* | aix5*)
14247 # On AIX/PPC, the GNU linker is very broken
14248 if test "$host_cpu" != ia64; then
14249 ld_shlibs_F77=no
14250 cat <<EOF 1>&2
14252 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
14253 *** to be unable to reliably create shared libraries on AIX.
14254 *** Therefore, libtool is disabling shared libraries support. If you
14255 *** really care for shared libraries, you may want to modify your PATH
14256 *** so that a non-GNU linker is found, and then restart.
14262 amigaos*)
14263 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)'
14264 hardcode_libdir_flag_spec_F77='-L$libdir'
14265 hardcode_minus_L_F77=yes
14267 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14268 # that the semantics of dynamic libraries on AmigaOS, at least up
14269 # to version 4, is to share data among multiple programs linked
14270 # with the same dynamic library. Since this doesn't match the
14271 # behavior of shared libraries on other platforms, we can't use
14272 # them.
14273 ld_shlibs_F77=no
14276 beos*)
14277 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14278 allow_undefined_flag_F77=unsupported
14279 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14280 # support --undefined. This deserves some investigation. FIXME
14281 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14282 else
14283 ld_shlibs_F77=no
14287 cygwin* | mingw* | pw32*)
14288 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14289 # as there is no search path for DLLs.
14290 hardcode_libdir_flag_spec_F77='-L$libdir'
14291 allow_undefined_flag_F77=unsupported
14292 always_export_symbols_F77=no
14293 enable_shared_with_static_runtimes_F77=yes
14294 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
14296 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14297 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14298 # If the export-symbols file already is a .def file (1st line
14299 # is EXPORTS), use it as is; otherwise, prepend...
14300 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14301 cp $export_symbols $output_objdir/$soname.def;
14302 else
14303 echo EXPORTS > $output_objdir/$soname.def;
14304 cat $export_symbols >> $output_objdir/$soname.def;
14306 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14307 else
14308 ld_shlibs_F77=no
14312 interix[3-9]*)
14313 hardcode_direct_F77=no
14314 hardcode_shlibpath_var_F77=no
14315 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14316 export_dynamic_flag_spec_F77='${wl}-E'
14317 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14318 # Instead, shared libraries are loaded at an image base (0x10000000 by
14319 # default) and relocated if they conflict, which is a slow very memory
14320 # consuming and fragmenting process. To avoid this, we pick a random,
14321 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14322 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14323 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'
14324 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'
14327 gnu* | linux* | k*bsd*-gnu)
14328 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14329 tmp_addflag=
14330 case $cc_basename,$host_cpu in
14331 pgcc*) # Portland Group C compiler
14332 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'
14333 tmp_addflag=' $pic_flag'
14335 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
14336 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'
14337 tmp_addflag=' $pic_flag -Mnomain' ;;
14338 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
14339 tmp_addflag=' -i_dynamic' ;;
14340 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
14341 tmp_addflag=' -i_dynamic -nofor_main' ;;
14342 ifc* | ifort*) # Intel Fortran compiler
14343 tmp_addflag=' -nofor_main' ;;
14344 esac
14345 case `$CC -V 2>&1 | sed 5q` in
14346 *Sun\ C*) # Sun C 5.9
14347 whole_archive_flag_spec_F77='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
14348 tmp_sharedflag='-G' ;;
14349 *Sun\ F*) # Sun Fortran 8.3
14350 tmp_sharedflag='-G' ;;
14352 tmp_sharedflag='-shared' ;;
14353 esac
14354 archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14356 if test $supports_anon_versioning = yes; then
14357 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14358 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14359 $echo "local: *; };" >> $output_objdir/$libname.ver~
14360 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14362 else
14363 ld_shlibs_F77=no
14367 netbsd*)
14368 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14369 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14370 wlarc=
14371 else
14372 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14373 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14377 solaris*)
14378 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14379 ld_shlibs_F77=no
14380 cat <<EOF 1>&2
14382 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
14383 *** create shared libraries on Solaris systems. Therefore, libtool
14384 *** is disabling shared libraries support. We urge you to upgrade GNU
14385 *** binutils to release 2.9.1 or newer. Another option is to modify
14386 *** your PATH or compiler configuration so that the native linker is
14387 *** used, and then restart.
14390 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14391 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14392 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14393 else
14394 ld_shlibs_F77=no
14398 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14399 case `$LD -v 2>&1` in
14400 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14401 ld_shlibs_F77=no
14402 cat <<_LT_EOF 1>&2
14404 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14405 *** reliably create shared libraries on SCO systems. Therefore, libtool
14406 *** is disabling shared libraries support. We urge you to upgrade GNU
14407 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
14408 *** your PATH or compiler configuration so that the native linker is
14409 *** used, and then restart.
14411 _LT_EOF
14414 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14415 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
14416 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
14417 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
14418 else
14419 ld_shlibs_F77=no
14422 esac
14425 sunos4*)
14426 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14427 wlarc=
14428 hardcode_direct_F77=yes
14429 hardcode_shlibpath_var_F77=no
14433 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14434 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14435 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14436 else
14437 ld_shlibs_F77=no
14440 esac
14442 if test "$ld_shlibs_F77" = no; then
14443 runpath_var=
14444 hardcode_libdir_flag_spec_F77=
14445 export_dynamic_flag_spec_F77=
14446 whole_archive_flag_spec_F77=
14448 else
14449 # PORTME fill in a description of your system's linker (not GNU ld)
14450 case $host_os in
14451 aix3*)
14452 allow_undefined_flag_F77=unsupported
14453 always_export_symbols_F77=yes
14454 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'
14455 # Note: this linker hardcodes the directories in LIBPATH if there
14456 # are no directories specified by -L.
14457 hardcode_minus_L_F77=yes
14458 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14459 # Neither direct hardcoding nor static linking is supported with a
14460 # broken collect2.
14461 hardcode_direct_F77=unsupported
14465 aix4* | aix5*)
14466 if test "$host_cpu" = ia64; then
14467 # On IA64, the linker does run time linking by default, so we don't
14468 # have to do anything special.
14469 aix_use_runtimelinking=no
14470 exp_sym_flag='-Bexport'
14471 no_entry_flag=""
14472 else
14473 # If we're using GNU nm, then we don't want the "-C" option.
14474 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14475 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14476 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'
14477 else
14478 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'
14480 aix_use_runtimelinking=no
14482 # Test if we are trying to use run time linking or normal
14483 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14484 # need to do runtime linking.
14485 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
14486 for ld_flag in $LDFLAGS; do
14487 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14488 aix_use_runtimelinking=yes
14489 break
14491 done
14493 esac
14495 exp_sym_flag='-bexport'
14496 no_entry_flag='-bnoentry'
14499 # When large executables or shared objects are built, AIX ld can
14500 # have problems creating the table of contents. If linking a library
14501 # or program results in "error TOC overflow" add -mminimal-toc to
14502 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14503 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14505 archive_cmds_F77=''
14506 hardcode_direct_F77=yes
14507 hardcode_libdir_separator_F77=':'
14508 link_all_deplibs_F77=yes
14510 if test "$GCC" = yes; then
14511 case $host_os in aix4.[012]|aix4.[012].*)
14512 # We only want to do this on AIX 4.2 and lower, the check
14513 # below for broken collect2 doesn't work under 4.3+
14514 collect2name=`${CC} -print-prog-name=collect2`
14515 if test -f "$collect2name" && \
14516 strings "$collect2name" | grep resolve_lib_name >/dev/null
14517 then
14518 # We have reworked collect2
14520 else
14521 # We have old collect2
14522 hardcode_direct_F77=unsupported
14523 # It fails to find uninstalled libraries when the uninstalled
14524 # path is not listed in the libpath. Setting hardcode_minus_L
14525 # to unsupported forces relinking
14526 hardcode_minus_L_F77=yes
14527 hardcode_libdir_flag_spec_F77='-L$libdir'
14528 hardcode_libdir_separator_F77=
14531 esac
14532 shared_flag='-shared'
14533 if test "$aix_use_runtimelinking" = yes; then
14534 shared_flag="$shared_flag "'${wl}-G'
14536 else
14537 # not using gcc
14538 if test "$host_cpu" = ia64; then
14539 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14540 # chokes on -Wl,-G. The following line is correct:
14541 shared_flag='-G'
14542 else
14543 if test "$aix_use_runtimelinking" = yes; then
14544 shared_flag='${wl}-G'
14545 else
14546 shared_flag='${wl}-bM:SRE'
14551 # It seems that -bexpall does not export symbols beginning with
14552 # underscore (_), so it is better to generate a list of symbols to export.
14553 always_export_symbols_F77=yes
14554 if test "$aix_use_runtimelinking" = yes; then
14555 # Warning - without using the other runtime loading flags (-brtl),
14556 # -berok will link without error, but may produce a broken library.
14557 allow_undefined_flag_F77='-berok'
14558 # Determine the default libpath from the value encoded in an empty executable.
14559 cat >conftest.$ac_ext <<_ACEOF
14560 program main
14563 _ACEOF
14564 rm -f conftest.$ac_objext conftest$ac_exeext
14565 if { (ac_try="$ac_link"
14566 case "(($ac_try" in
14567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14568 *) ac_try_echo=$ac_try;;
14569 esac
14570 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14571 (eval "$ac_link") 2>conftest.er1
14572 ac_status=$?
14573 grep -v '^ *+' conftest.er1 >conftest.err
14574 rm -f conftest.er1
14575 cat conftest.err >&5
14576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14577 (exit $ac_status); } && {
14578 test -z "$ac_f77_werror_flag" ||
14579 test ! -s conftest.err
14580 } && test -s conftest$ac_exeext &&
14581 $as_test_x conftest$ac_exeext; then
14583 lt_aix_libpath_sed='
14584 /Import File Strings/,/^$/ {
14585 /^0/ {
14586 s/^0 *\(.*\)$/\1/
14590 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14591 # Check for a 64-bit object if we didn't find anything.
14592 if test -z "$aix_libpath"; then
14593 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14595 else
14596 echo "$as_me: failed program was:" >&5
14597 sed 's/^/| /' conftest.$ac_ext >&5
14602 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14603 conftest$ac_exeext conftest.$ac_ext
14604 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14606 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14607 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"
14608 else
14609 if test "$host_cpu" = ia64; then
14610 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
14611 allow_undefined_flag_F77="-z nodefs"
14612 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"
14613 else
14614 # Determine the default libpath from the value encoded in an empty executable.
14615 cat >conftest.$ac_ext <<_ACEOF
14616 program main
14619 _ACEOF
14620 rm -f conftest.$ac_objext conftest$ac_exeext
14621 if { (ac_try="$ac_link"
14622 case "(($ac_try" in
14623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14624 *) ac_try_echo=$ac_try;;
14625 esac
14626 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14627 (eval "$ac_link") 2>conftest.er1
14628 ac_status=$?
14629 grep -v '^ *+' conftest.er1 >conftest.err
14630 rm -f conftest.er1
14631 cat conftest.err >&5
14632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14633 (exit $ac_status); } && {
14634 test -z "$ac_f77_werror_flag" ||
14635 test ! -s conftest.err
14636 } && test -s conftest$ac_exeext &&
14637 $as_test_x conftest$ac_exeext; then
14639 lt_aix_libpath_sed='
14640 /Import File Strings/,/^$/ {
14641 /^0/ {
14642 s/^0 *\(.*\)$/\1/
14646 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14647 # Check for a 64-bit object if we didn't find anything.
14648 if test -z "$aix_libpath"; then
14649 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14651 else
14652 echo "$as_me: failed program was:" >&5
14653 sed 's/^/| /' conftest.$ac_ext >&5
14658 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14659 conftest$ac_exeext conftest.$ac_ext
14660 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14662 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14663 # Warning - without using the other run time loading flags,
14664 # -berok will link without error, but may produce a broken library.
14665 no_undefined_flag_F77=' ${wl}-bernotok'
14666 allow_undefined_flag_F77=' ${wl}-berok'
14667 # Exported symbols can be pulled into shared objects from archives
14668 whole_archive_flag_spec_F77='$convenience'
14669 archive_cmds_need_lc_F77=yes
14670 # This is similar to how AIX traditionally builds its shared libraries.
14671 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'
14676 amigaos*)
14677 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)'
14678 hardcode_libdir_flag_spec_F77='-L$libdir'
14679 hardcode_minus_L_F77=yes
14680 # see comment about different semantics on the GNU ld section
14681 ld_shlibs_F77=no
14684 bsdi[45]*)
14685 export_dynamic_flag_spec_F77=-rdynamic
14688 cygwin* | mingw* | pw32*)
14689 # When not using gcc, we currently assume that we are using
14690 # Microsoft Visual C++.
14691 # hardcode_libdir_flag_spec is actually meaningless, as there is
14692 # no search path for DLLs.
14693 hardcode_libdir_flag_spec_F77=' '
14694 allow_undefined_flag_F77=unsupported
14695 # Tell ltmain to make .lib files, not .a files.
14696 libext=lib
14697 # Tell ltmain to make .dll files, not .so files.
14698 shrext_cmds=".dll"
14699 # FIXME: Setting linknames here is a bad hack.
14700 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
14701 # The linker will automatically build a .lib file if we build a DLL.
14702 old_archive_From_new_cmds_F77='true'
14703 # FIXME: Should let the user specify the lib program.
14704 old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs'
14705 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
14706 enable_shared_with_static_runtimes_F77=yes
14709 darwin* | rhapsody*)
14710 case $host_os in
14711 rhapsody* | darwin1.[012])
14712 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
14714 *) # Darwin 1.3 on
14715 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14716 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14717 else
14718 case ${MACOSX_DEPLOYMENT_TARGET} in
14719 10.[012])
14720 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14722 10.*)
14723 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
14725 esac
14728 esac
14729 archive_cmds_need_lc_F77=no
14730 hardcode_direct_F77=no
14731 hardcode_automatic_F77=yes
14732 hardcode_shlibpath_var_F77=unsupported
14733 whole_archive_flag_spec_F77=''
14734 link_all_deplibs_F77=yes
14735 if test "$GCC" = yes ; then
14736 output_verbose_link_cmd='echo'
14737 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14738 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14739 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14740 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}'
14741 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}'
14742 else
14743 case $cc_basename in
14744 xlc*)
14745 output_verbose_link_cmd='echo'
14746 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
14747 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14748 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14749 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 $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14750 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}'
14753 ld_shlibs_F77=no
14755 esac
14759 dgux*)
14760 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14761 hardcode_libdir_flag_spec_F77='-L$libdir'
14762 hardcode_shlibpath_var_F77=no
14765 freebsd1*)
14766 ld_shlibs_F77=no
14769 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14770 # support. Future versions do this automatically, but an explicit c++rt0.o
14771 # does not break anything, and helps significantly (at the cost of a little
14772 # extra space).
14773 freebsd2.2*)
14774 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14775 hardcode_libdir_flag_spec_F77='-R$libdir'
14776 hardcode_direct_F77=yes
14777 hardcode_shlibpath_var_F77=no
14780 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14781 freebsd2*)
14782 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14783 hardcode_direct_F77=yes
14784 hardcode_minus_L_F77=yes
14785 hardcode_shlibpath_var_F77=no
14788 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14789 freebsd* | dragonfly*)
14790 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14791 hardcode_libdir_flag_spec_F77='-R$libdir'
14792 hardcode_direct_F77=yes
14793 hardcode_shlibpath_var_F77=no
14796 hpux9*)
14797 if test "$GCC" = yes; then
14798 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'
14799 else
14800 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'
14802 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14803 hardcode_libdir_separator_F77=:
14804 hardcode_direct_F77=yes
14806 # hardcode_minus_L: Not really in the search PATH,
14807 # but as the default location of the library.
14808 hardcode_minus_L_F77=yes
14809 export_dynamic_flag_spec_F77='${wl}-E'
14812 hpux10*)
14813 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14814 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14815 else
14816 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14818 if test "$with_gnu_ld" = no; then
14819 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14820 hardcode_libdir_separator_F77=:
14822 hardcode_direct_F77=yes
14823 export_dynamic_flag_spec_F77='${wl}-E'
14825 # hardcode_minus_L: Not really in the search PATH,
14826 # but as the default location of the library.
14827 hardcode_minus_L_F77=yes
14831 hpux11*)
14832 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14833 case $host_cpu in
14834 hppa*64*)
14835 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14837 ia64*)
14838 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14841 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14843 esac
14844 else
14845 case $host_cpu in
14846 hppa*64*)
14847 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14849 ia64*)
14850 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14853 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14855 esac
14857 if test "$with_gnu_ld" = no; then
14858 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14859 hardcode_libdir_separator_F77=:
14861 case $host_cpu in
14862 hppa*64*|ia64*)
14863 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14864 hardcode_direct_F77=no
14865 hardcode_shlibpath_var_F77=no
14868 hardcode_direct_F77=yes
14869 export_dynamic_flag_spec_F77='${wl}-E'
14871 # hardcode_minus_L: Not really in the search PATH,
14872 # but as the default location of the library.
14873 hardcode_minus_L_F77=yes
14875 esac
14879 irix5* | irix6* | nonstopux*)
14880 if test "$GCC" = yes; then
14881 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'
14882 else
14883 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'
14884 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14886 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14887 hardcode_libdir_separator_F77=:
14888 link_all_deplibs_F77=yes
14891 netbsd*)
14892 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14893 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
14894 else
14895 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
14897 hardcode_libdir_flag_spec_F77='-R$libdir'
14898 hardcode_direct_F77=yes
14899 hardcode_shlibpath_var_F77=no
14902 newsos6)
14903 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14904 hardcode_direct_F77=yes
14905 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14906 hardcode_libdir_separator_F77=:
14907 hardcode_shlibpath_var_F77=no
14910 openbsd*)
14911 if test -f /usr/libexec/ld.so; then
14912 hardcode_direct_F77=yes
14913 hardcode_shlibpath_var_F77=no
14914 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14915 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14916 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
14917 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14918 export_dynamic_flag_spec_F77='${wl}-E'
14919 else
14920 case $host_os in
14921 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14922 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14923 hardcode_libdir_flag_spec_F77='-R$libdir'
14926 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14927 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14929 esac
14931 else
14932 ld_shlibs_F77=no
14936 os2*)
14937 hardcode_libdir_flag_spec_F77='-L$libdir'
14938 hardcode_minus_L_F77=yes
14939 allow_undefined_flag_F77=unsupported
14940 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'
14941 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14944 osf3*)
14945 if test "$GCC" = yes; then
14946 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14947 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'
14948 else
14949 allow_undefined_flag_F77=' -expect_unresolved \*'
14950 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'
14952 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14953 hardcode_libdir_separator_F77=:
14956 osf4* | osf5*) # as osf3* with the addition of -msym flag
14957 if test "$GCC" = yes; then
14958 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14959 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'
14960 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14961 else
14962 allow_undefined_flag_F77=' -expect_unresolved \*'
14963 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'
14964 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~
14965 $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'
14967 # Both c and cxx compiler support -rpath directly
14968 hardcode_libdir_flag_spec_F77='-rpath $libdir'
14970 hardcode_libdir_separator_F77=:
14973 solaris*)
14974 no_undefined_flag_F77=' -z text'
14975 if test "$GCC" = yes; then
14976 wlarc='${wl}'
14977 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14978 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14979 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14980 else
14981 wlarc=''
14982 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14983 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14984 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14986 hardcode_libdir_flag_spec_F77='-R$libdir'
14987 hardcode_shlibpath_var_F77=no
14988 case $host_os in
14989 solaris2.[0-5] | solaris2.[0-5].*) ;;
14991 # The compiler driver will combine and reorder linker options,
14992 # but understands `-z linker_flag'. GCC discards it without `$wl',
14993 # but is careful enough not to reorder.
14994 # Supported since Solaris 2.6 (maybe 2.5.1?)
14995 if test "$GCC" = yes; then
14996 whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
14997 else
14998 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract'
15001 esac
15002 link_all_deplibs_F77=yes
15005 sunos4*)
15006 if test "x$host_vendor" = xsequent; then
15007 # Use $CC to link under sequent, because it throws in some extra .o
15008 # files that make .init and .fini sections work.
15009 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15010 else
15011 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15013 hardcode_libdir_flag_spec_F77='-L$libdir'
15014 hardcode_direct_F77=yes
15015 hardcode_minus_L_F77=yes
15016 hardcode_shlibpath_var_F77=no
15019 sysv4)
15020 case $host_vendor in
15021 sni)
15022 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15023 hardcode_direct_F77=yes # is this really true???
15025 siemens)
15026 ## LD is ld it makes a PLAMLIB
15027 ## CC just makes a GrossModule.
15028 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15029 reload_cmds_F77='$CC -r -o $output$reload_objs'
15030 hardcode_direct_F77=no
15032 motorola)
15033 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15034 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
15036 esac
15037 runpath_var='LD_RUN_PATH'
15038 hardcode_shlibpath_var_F77=no
15041 sysv4.3*)
15042 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15043 hardcode_shlibpath_var_F77=no
15044 export_dynamic_flag_spec_F77='-Bexport'
15047 sysv4*MP*)
15048 if test -d /usr/nec; then
15049 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15050 hardcode_shlibpath_var_F77=no
15051 runpath_var=LD_RUN_PATH
15052 hardcode_runpath_var=yes
15053 ld_shlibs_F77=yes
15057 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15058 no_undefined_flag_F77='${wl}-z,text'
15059 archive_cmds_need_lc_F77=no
15060 hardcode_shlibpath_var_F77=no
15061 runpath_var='LD_RUN_PATH'
15063 if test "$GCC" = yes; then
15064 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15065 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15066 else
15067 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15068 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15072 sysv5* | sco3.2v5* | sco5v6*)
15073 # Note: We can NOT use -z defs as we might desire, because we do not
15074 # link with -lc, and that would cause any symbols used from libc to
15075 # always be unresolved, which means just about no library would
15076 # ever link correctly. If we're not using GNU ld we use -z text
15077 # though, which does catch some bad symbols but isn't as heavy-handed
15078 # as -z defs.
15079 no_undefined_flag_F77='${wl}-z,text'
15080 allow_undefined_flag_F77='${wl}-z,nodefs'
15081 archive_cmds_need_lc_F77=no
15082 hardcode_shlibpath_var_F77=no
15083 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15084 hardcode_libdir_separator_F77=':'
15085 link_all_deplibs_F77=yes
15086 export_dynamic_flag_spec_F77='${wl}-Bexport'
15087 runpath_var='LD_RUN_PATH'
15089 if test "$GCC" = yes; then
15090 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15091 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15092 else
15093 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15094 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15098 uts4*)
15099 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15100 hardcode_libdir_flag_spec_F77='-L$libdir'
15101 hardcode_shlibpath_var_F77=no
15105 ld_shlibs_F77=no
15107 esac
15110 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
15111 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
15112 test "$ld_shlibs_F77" = no && can_build_shared=no
15115 # Do we need to explicitly link libc?
15117 case "x$archive_cmds_need_lc_F77" in
15118 x|xyes)
15119 # Assume -lc should be added
15120 archive_cmds_need_lc_F77=yes
15122 if test "$enable_shared" = yes && test "$GCC" = yes; then
15123 case $archive_cmds_F77 in
15124 *'~'*)
15125 # FIXME: we may have to deal with multi-command sequences.
15127 '$CC '*)
15128 # Test whether the compiler implicitly links with -lc since on some
15129 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15130 # to ld, don't add -lc before -lgcc.
15131 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15132 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
15133 $rm conftest*
15134 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15136 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15137 (eval $ac_compile) 2>&5
15138 ac_status=$?
15139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15140 (exit $ac_status); } 2>conftest.err; then
15141 soname=conftest
15142 lib=conftest
15143 libobjs=conftest.$ac_objext
15144 deplibs=
15145 wl=$lt_prog_compiler_wl_F77
15146 pic_flag=$lt_prog_compiler_pic_F77
15147 compiler_flags=-v
15148 linker_flags=-v
15149 verstring=
15150 output_objdir=.
15151 libname=conftest
15152 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15153 allow_undefined_flag_F77=
15154 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15155 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15156 ac_status=$?
15157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15158 (exit $ac_status); }
15159 then
15160 archive_cmds_need_lc_F77=no
15161 else
15162 archive_cmds_need_lc_F77=yes
15164 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15165 else
15166 cat conftest.err 1>&5
15168 $rm conftest*
15169 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15170 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
15172 esac
15175 esac
15177 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15178 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
15179 library_names_spec=
15180 libname_spec='lib$name'
15181 soname_spec=
15182 shrext_cmds=".so"
15183 postinstall_cmds=
15184 postuninstall_cmds=
15185 finish_cmds=
15186 finish_eval=
15187 shlibpath_var=
15188 shlibpath_overrides_runpath=unknown
15189 version_type=none
15190 dynamic_linker="$host_os ld.so"
15191 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15193 need_lib_prefix=unknown
15194 hardcode_into_libs=no
15196 # when you set need_version to no, make sure it does not cause -set_version
15197 # flags to be left without arguments
15198 need_version=unknown
15200 case $host_os in
15201 aix3*)
15202 version_type=linux
15203 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15204 shlibpath_var=LIBPATH
15206 # AIX 3 has no versioning support, so we append a major version to the name.
15207 soname_spec='${libname}${release}${shared_ext}$major'
15210 aix4* | aix5*)
15211 version_type=linux
15212 need_lib_prefix=no
15213 need_version=no
15214 hardcode_into_libs=yes
15215 if test "$host_cpu" = ia64; then
15216 # AIX 5 supports IA64
15217 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15218 shlibpath_var=LD_LIBRARY_PATH
15219 else
15220 # With GCC up to 2.95.x, collect2 would create an import file
15221 # for dependence libraries. The import file would start with
15222 # the line `#! .'. This would cause the generated library to
15223 # depend on `.', always an invalid library. This was fixed in
15224 # development snapshots of GCC prior to 3.0.
15225 case $host_os in
15226 aix4 | aix4.[01] | aix4.[01].*)
15227 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15228 echo ' yes '
15229 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15231 else
15232 can_build_shared=no
15235 esac
15236 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15237 # soname into executable. Probably we can add versioning support to
15238 # collect2, so additional links can be useful in future.
15239 if test "$aix_use_runtimelinking" = yes; then
15240 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15241 # instead of lib<name>.a to let people know that these are not
15242 # typical AIX shared libraries.
15243 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15244 else
15245 # We preserve .a as extension for shared libraries through AIX4.2
15246 # and later when we are not doing run time linking.
15247 library_names_spec='${libname}${release}.a $libname.a'
15248 soname_spec='${libname}${release}${shared_ext}$major'
15250 shlibpath_var=LIBPATH
15254 amigaos*)
15255 library_names_spec='$libname.ixlibrary $libname.a'
15256 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15257 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'
15260 beos*)
15261 library_names_spec='${libname}${shared_ext}'
15262 dynamic_linker="$host_os ld.so"
15263 shlibpath_var=LIBRARY_PATH
15266 bsdi[45]*)
15267 version_type=linux
15268 need_version=no
15269 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15270 soname_spec='${libname}${release}${shared_ext}$major'
15271 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15272 shlibpath_var=LD_LIBRARY_PATH
15273 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15274 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15275 # the default ld.so.conf also contains /usr/contrib/lib and
15276 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15277 # libtool to hard-code these into programs
15280 cygwin* | mingw* | pw32*)
15281 version_type=windows
15282 shrext_cmds=".dll"
15283 need_version=no
15284 need_lib_prefix=no
15286 case $GCC,$host_os in
15287 yes,cygwin* | yes,mingw* | yes,pw32*)
15288 library_names_spec='$libname.dll.a'
15289 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15290 postinstall_cmds='base_file=`basename \${file}`~
15291 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15292 dldir=$destdir/`dirname \$dlpath`~
15293 test -d \$dldir || mkdir -p \$dldir~
15294 $install_prog $dir/$dlname \$dldir/$dlname~
15295 chmod a+x \$dldir/$dlname'
15296 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15297 dlpath=$dir/\$dldll~
15298 $rm \$dlpath'
15299 shlibpath_overrides_runpath=yes
15301 case $host_os in
15302 cygwin*)
15303 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15304 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15305 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15307 mingw*)
15308 # MinGW DLLs use traditional 'lib' prefix
15309 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15310 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15311 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15312 # It is most probably a Windows format PATH printed by
15313 # mingw gcc, but we are running on Cygwin. Gcc prints its search
15314 # path with ; separators, and with drive letters. We can handle the
15315 # drive letters (cygwin fileutils understands them), so leave them,
15316 # especially as we might pass files found there to a mingw objdump,
15317 # which wouldn't understand a cygwinified path. Ahh.
15318 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15319 else
15320 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15323 pw32*)
15324 # pw32 DLLs use 'pw' prefix rather than 'lib'
15325 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15327 esac
15331 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15333 esac
15334 dynamic_linker='Win32 ld.exe'
15335 # FIXME: first we should search . and the directory the executable is in
15336 shlibpath_var=PATH
15339 darwin* | rhapsody*)
15340 dynamic_linker="$host_os dyld"
15341 version_type=darwin
15342 need_lib_prefix=no
15343 need_version=no
15344 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15345 soname_spec='${libname}${release}${major}$shared_ext'
15346 shlibpath_overrides_runpath=yes
15347 shlibpath_var=DYLD_LIBRARY_PATH
15348 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15350 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15353 dgux*)
15354 version_type=linux
15355 need_lib_prefix=no
15356 need_version=no
15357 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15358 soname_spec='${libname}${release}${shared_ext}$major'
15359 shlibpath_var=LD_LIBRARY_PATH
15362 freebsd1*)
15363 dynamic_linker=no
15366 freebsd* | dragonfly*)
15367 # DragonFly does not have aout. When/if they implement a new
15368 # versioning mechanism, adjust this.
15369 if test -x /usr/bin/objformat; then
15370 objformat=`/usr/bin/objformat`
15371 else
15372 case $host_os in
15373 freebsd[123]*) objformat=aout ;;
15374 *) objformat=elf ;;
15375 esac
15377 version_type=freebsd-$objformat
15378 case $version_type in
15379 freebsd-elf*)
15380 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15381 need_version=no
15382 need_lib_prefix=no
15384 freebsd-*)
15385 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15386 need_version=yes
15388 esac
15389 shlibpath_var=LD_LIBRARY_PATH
15390 case $host_os in
15391 freebsd2*)
15392 shlibpath_overrides_runpath=yes
15394 freebsd3.[01]* | freebsdelf3.[01]*)
15395 shlibpath_overrides_runpath=yes
15396 hardcode_into_libs=yes
15398 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15399 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15400 shlibpath_overrides_runpath=no
15401 hardcode_into_libs=yes
15403 *) # from 4.6 on, and DragonFly
15404 shlibpath_overrides_runpath=yes
15405 hardcode_into_libs=yes
15407 esac
15410 gnu*)
15411 version_type=linux
15412 need_lib_prefix=no
15413 need_version=no
15414 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15415 soname_spec='${libname}${release}${shared_ext}$major'
15416 shlibpath_var=LD_LIBRARY_PATH
15417 hardcode_into_libs=yes
15420 hpux9* | hpux10* | hpux11*)
15421 # Give a soname corresponding to the major version so that dld.sl refuses to
15422 # link against other versions.
15423 version_type=sunos
15424 need_lib_prefix=no
15425 need_version=no
15426 case $host_cpu in
15427 ia64*)
15428 shrext_cmds='.so'
15429 hardcode_into_libs=yes
15430 dynamic_linker="$host_os dld.so"
15431 shlibpath_var=LD_LIBRARY_PATH
15432 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15433 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15434 soname_spec='${libname}${release}${shared_ext}$major'
15435 if test "X$HPUX_IA64_MODE" = X32; then
15436 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15437 else
15438 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15440 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15442 hppa*64*)
15443 shrext_cmds='.sl'
15444 hardcode_into_libs=yes
15445 dynamic_linker="$host_os dld.sl"
15446 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15447 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15448 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15449 soname_spec='${libname}${release}${shared_ext}$major'
15450 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15451 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15454 shrext_cmds='.sl'
15455 dynamic_linker="$host_os dld.sl"
15456 shlibpath_var=SHLIB_PATH
15457 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15458 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15459 soname_spec='${libname}${release}${shared_ext}$major'
15461 esac
15462 # HP-UX runs *really* slowly unless shared libraries are mode 555.
15463 postinstall_cmds='chmod 555 $lib'
15466 interix[3-9]*)
15467 version_type=linux
15468 need_lib_prefix=no
15469 need_version=no
15470 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15471 soname_spec='${libname}${release}${shared_ext}$major'
15472 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15473 shlibpath_var=LD_LIBRARY_PATH
15474 shlibpath_overrides_runpath=no
15475 hardcode_into_libs=yes
15478 irix5* | irix6* | nonstopux*)
15479 case $host_os in
15480 nonstopux*) version_type=nonstopux ;;
15482 if test "$lt_cv_prog_gnu_ld" = yes; then
15483 version_type=linux
15484 else
15485 version_type=irix
15486 fi ;;
15487 esac
15488 need_lib_prefix=no
15489 need_version=no
15490 soname_spec='${libname}${release}${shared_ext}$major'
15491 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15492 case $host_os in
15493 irix5* | nonstopux*)
15494 libsuff= shlibsuff=
15497 case $LD in # libtool.m4 will add one of these switches to LD
15498 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15499 libsuff= shlibsuff= libmagic=32-bit;;
15500 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15501 libsuff=32 shlibsuff=N32 libmagic=N32;;
15502 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15503 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15504 *) libsuff= shlibsuff= libmagic=never-match;;
15505 esac
15507 esac
15508 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15509 shlibpath_overrides_runpath=no
15510 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15511 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15512 hardcode_into_libs=yes
15515 # No shared lib support for Linux oldld, aout, or coff.
15516 linux*oldld* | linux*aout* | linux*coff*)
15517 dynamic_linker=no
15520 # This must be Linux ELF.
15521 linux* | k*bsd*-gnu)
15522 version_type=linux
15523 need_lib_prefix=no
15524 need_version=no
15525 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15526 soname_spec='${libname}${release}${shared_ext}$major'
15527 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15528 shlibpath_var=LD_LIBRARY_PATH
15529 shlibpath_overrides_runpath=no
15530 # This implies no fast_install, which is unacceptable.
15531 # Some rework will be needed to allow for fast_install
15532 # before this can be enabled.
15533 hardcode_into_libs=yes
15534 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15535 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15537 # Append ld.so.conf contents to the search path
15538 if test -f /etc/ld.so.conf; then
15539 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
15540 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
15543 # We used to test for /lib/ld.so.1 and disable shared libraries on
15544 # powerpc, because MkLinux only supported shared libraries with the
15545 # GNU dynamic linker. Since this was broken with cross compilers,
15546 # most powerpc-linux boxes support dynamic linking these days and
15547 # people can always --disable-shared, the test was removed, and we
15548 # assume the GNU/Linux dynamic linker is in use.
15549 dynamic_linker='GNU/Linux ld.so'
15552 netbsd*)
15553 version_type=sunos
15554 need_lib_prefix=no
15555 need_version=no
15556 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15557 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15558 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15559 dynamic_linker='NetBSD (a.out) ld.so'
15560 else
15561 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15562 soname_spec='${libname}${release}${shared_ext}$major'
15563 dynamic_linker='NetBSD ld.elf_so'
15565 shlibpath_var=LD_LIBRARY_PATH
15566 shlibpath_overrides_runpath=yes
15567 hardcode_into_libs=yes
15570 newsos6)
15571 version_type=linux
15572 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15573 shlibpath_var=LD_LIBRARY_PATH
15574 shlibpath_overrides_runpath=yes
15577 nto-qnx*)
15578 version_type=linux
15579 need_lib_prefix=no
15580 need_version=no
15581 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15582 soname_spec='${libname}${release}${shared_ext}$major'
15583 shlibpath_var=LD_LIBRARY_PATH
15584 shlibpath_overrides_runpath=yes
15587 openbsd*)
15588 version_type=sunos
15589 sys_lib_dlsearch_path_spec="/usr/lib"
15590 need_lib_prefix=no
15591 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15592 case $host_os in
15593 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15594 *) need_version=no ;;
15595 esac
15596 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15597 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15598 shlibpath_var=LD_LIBRARY_PATH
15599 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15600 case $host_os in
15601 openbsd2.[89] | openbsd2.[89].*)
15602 shlibpath_overrides_runpath=no
15605 shlibpath_overrides_runpath=yes
15607 esac
15608 else
15609 shlibpath_overrides_runpath=yes
15613 os2*)
15614 libname_spec='$name'
15615 shrext_cmds=".dll"
15616 need_lib_prefix=no
15617 library_names_spec='$libname${shared_ext} $libname.a'
15618 dynamic_linker='OS/2 ld.exe'
15619 shlibpath_var=LIBPATH
15622 osf3* | osf4* | osf5*)
15623 version_type=osf
15624 need_lib_prefix=no
15625 need_version=no
15626 soname_spec='${libname}${release}${shared_ext}$major'
15627 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15628 shlibpath_var=LD_LIBRARY_PATH
15629 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15630 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15633 rdos*)
15634 dynamic_linker=no
15637 solaris*)
15638 version_type=linux
15639 need_lib_prefix=no
15640 need_version=no
15641 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15642 soname_spec='${libname}${release}${shared_ext}$major'
15643 shlibpath_var=LD_LIBRARY_PATH
15644 shlibpath_overrides_runpath=yes
15645 hardcode_into_libs=yes
15646 # ldd complains unless libraries are executable
15647 postinstall_cmds='chmod +x $lib'
15650 sunos4*)
15651 version_type=sunos
15652 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15653 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15654 shlibpath_var=LD_LIBRARY_PATH
15655 shlibpath_overrides_runpath=yes
15656 if test "$with_gnu_ld" = yes; then
15657 need_lib_prefix=no
15659 need_version=yes
15662 sysv4 | sysv4.3*)
15663 version_type=linux
15664 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15665 soname_spec='${libname}${release}${shared_ext}$major'
15666 shlibpath_var=LD_LIBRARY_PATH
15667 case $host_vendor in
15668 sni)
15669 shlibpath_overrides_runpath=no
15670 need_lib_prefix=no
15671 export_dynamic_flag_spec='${wl}-Blargedynsym'
15672 runpath_var=LD_RUN_PATH
15674 siemens)
15675 need_lib_prefix=no
15677 motorola)
15678 need_lib_prefix=no
15679 need_version=no
15680 shlibpath_overrides_runpath=no
15681 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15683 esac
15686 sysv4*MP*)
15687 if test -d /usr/nec ;then
15688 version_type=linux
15689 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15690 soname_spec='$libname${shared_ext}.$major'
15691 shlibpath_var=LD_LIBRARY_PATH
15695 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15696 version_type=freebsd-elf
15697 need_lib_prefix=no
15698 need_version=no
15699 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15700 soname_spec='${libname}${release}${shared_ext}$major'
15701 shlibpath_var=LD_LIBRARY_PATH
15702 hardcode_into_libs=yes
15703 if test "$with_gnu_ld" = yes; then
15704 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15705 shlibpath_overrides_runpath=no
15706 else
15707 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15708 shlibpath_overrides_runpath=yes
15709 case $host_os in
15710 sco3.2v5*)
15711 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15713 esac
15715 sys_lib_dlsearch_path_spec='/usr/lib'
15718 uts4*)
15719 version_type=linux
15720 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15721 soname_spec='${libname}${release}${shared_ext}$major'
15722 shlibpath_var=LD_LIBRARY_PATH
15726 dynamic_linker=no
15728 esac
15729 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15730 echo "${ECHO_T}$dynamic_linker" >&6; }
15731 test "$dynamic_linker" = no && can_build_shared=no
15733 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15734 if test "$GCC" = yes; then
15735 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15738 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15739 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
15740 hardcode_action_F77=
15741 if test -n "$hardcode_libdir_flag_spec_F77" || \
15742 test -n "$runpath_var_F77" || \
15743 test "X$hardcode_automatic_F77" = "Xyes" ; then
15745 # We can hardcode non-existant directories.
15746 if test "$hardcode_direct_F77" != no &&
15747 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15748 # have to relink, otherwise we might link with an installed library
15749 # when we should be linking with a yet-to-be-installed one
15750 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
15751 test "$hardcode_minus_L_F77" != no; then
15752 # Linking always hardcodes the temporary library directory.
15753 hardcode_action_F77=relink
15754 else
15755 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15756 hardcode_action_F77=immediate
15758 else
15759 # We cannot hardcode anything, or else we can only hardcode existing
15760 # directories.
15761 hardcode_action_F77=unsupported
15763 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
15764 echo "${ECHO_T}$hardcode_action_F77" >&6; }
15766 if test "$hardcode_action_F77" = relink; then
15767 # Fast installation is not supported
15768 enable_fast_install=no
15769 elif test "$shlibpath_overrides_runpath" = yes ||
15770 test "$enable_shared" = no; then
15771 # Fast installation is not necessary
15772 enable_fast_install=needless
15776 # The else clause should only fire when bootstrapping the
15777 # libtool distribution, otherwise you forgot to ship ltmain.sh
15778 # with your package, and you will get complaints that there are
15779 # no rules to generate ltmain.sh.
15780 if test -f "$ltmain"; then
15781 # See if we are running on zsh, and set the options which allow our commands through
15782 # without removal of \ escapes.
15783 if test -n "${ZSH_VERSION+set}" ; then
15784 setopt NO_GLOB_SUBST
15786 # Now quote all the things that may contain metacharacters while being
15787 # careful not to overquote the AC_SUBSTed values. We take copies of the
15788 # variables and quote the copies for generation of the libtool script.
15789 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
15790 SED SHELL STRIP \
15791 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15792 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15793 deplibs_check_method reload_flag reload_cmds need_locks \
15794 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15795 lt_cv_sys_global_symbol_to_c_name_address \
15796 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15797 old_postinstall_cmds old_postuninstall_cmds \
15798 compiler_F77 \
15799 CC_F77 \
15800 LD_F77 \
15801 lt_prog_compiler_wl_F77 \
15802 lt_prog_compiler_pic_F77 \
15803 lt_prog_compiler_static_F77 \
15804 lt_prog_compiler_no_builtin_flag_F77 \
15805 export_dynamic_flag_spec_F77 \
15806 thread_safe_flag_spec_F77 \
15807 whole_archive_flag_spec_F77 \
15808 enable_shared_with_static_runtimes_F77 \
15809 old_archive_cmds_F77 \
15810 old_archive_from_new_cmds_F77 \
15811 predep_objects_F77 \
15812 postdep_objects_F77 \
15813 predeps_F77 \
15814 postdeps_F77 \
15815 compiler_lib_search_path_F77 \
15816 archive_cmds_F77 \
15817 archive_expsym_cmds_F77 \
15818 postinstall_cmds_F77 \
15819 postuninstall_cmds_F77 \
15820 old_archive_from_expsyms_cmds_F77 \
15821 allow_undefined_flag_F77 \
15822 no_undefined_flag_F77 \
15823 export_symbols_cmds_F77 \
15824 hardcode_libdir_flag_spec_F77 \
15825 hardcode_libdir_flag_spec_ld_F77 \
15826 hardcode_libdir_separator_F77 \
15827 hardcode_automatic_F77 \
15828 module_cmds_F77 \
15829 module_expsym_cmds_F77 \
15830 lt_cv_prog_compiler_c_o_F77 \
15831 fix_srcfile_path_F77 \
15832 exclude_expsyms_F77 \
15833 include_expsyms_F77; do
15835 case $var in
15836 old_archive_cmds_F77 | \
15837 old_archive_from_new_cmds_F77 | \
15838 archive_cmds_F77 | \
15839 archive_expsym_cmds_F77 | \
15840 module_cmds_F77 | \
15841 module_expsym_cmds_F77 | \
15842 old_archive_from_expsyms_cmds_F77 | \
15843 export_symbols_cmds_F77 | \
15844 extract_expsyms_cmds | reload_cmds | finish_cmds | \
15845 postinstall_cmds | postuninstall_cmds | \
15846 old_postinstall_cmds | old_postuninstall_cmds | \
15847 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15848 # Double-quote double-evaled strings.
15849 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15852 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15854 esac
15855 done
15857 case $lt_echo in
15858 *'\$0 --fallback-echo"')
15859 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15861 esac
15863 cfgfile="$ofile"
15865 cat <<__EOF__ >> "$cfgfile"
15866 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
15868 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15870 # Shell to use when invoking shell scripts.
15871 SHELL=$lt_SHELL
15873 # Whether or not to build shared libraries.
15874 build_libtool_libs=$enable_shared
15876 # Whether or not to build static libraries.
15877 build_old_libs=$enable_static
15879 # Whether or not to add -lc for building shared libraries.
15880 build_libtool_need_lc=$archive_cmds_need_lc_F77
15882 # Whether or not to disallow shared libs when runtime libs are static
15883 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
15885 # Whether or not to optimize for fast installation.
15886 fast_install=$enable_fast_install
15888 # The host system.
15889 host_alias=$host_alias
15890 host=$host
15891 host_os=$host_os
15893 # The build system.
15894 build_alias=$build_alias
15895 build=$build
15896 build_os=$build_os
15898 # An echo program that does not interpret backslashes.
15899 echo=$lt_echo
15901 # The archiver.
15902 AR=$lt_AR
15903 AR_FLAGS=$lt_AR_FLAGS
15905 # A C compiler.
15906 LTCC=$lt_LTCC
15908 # LTCC compiler flags.
15909 LTCFLAGS=$lt_LTCFLAGS
15911 # A language-specific compiler.
15912 CC=$lt_compiler_F77
15914 # Is the compiler the GNU C compiler?
15915 with_gcc=$GCC_F77
15917 # An ERE matcher.
15918 EGREP=$lt_EGREP
15920 # The linker used to build libraries.
15921 LD=$lt_LD_F77
15923 # Whether we need hard or soft links.
15924 LN_S=$lt_LN_S
15926 # A BSD-compatible nm program.
15927 NM=$lt_NM
15929 # A symbol stripping program
15930 STRIP=$lt_STRIP
15932 # Used to examine libraries when file_magic_cmd begins "file"
15933 MAGIC_CMD=$MAGIC_CMD
15935 # Used on cygwin: DLL creation program.
15936 DLLTOOL="$DLLTOOL"
15938 # Used on cygwin: object dumper.
15939 OBJDUMP="$OBJDUMP"
15941 # Used on cygwin: assembler.
15942 AS="$AS"
15944 # The name of the directory that contains temporary libtool files.
15945 objdir=$objdir
15947 # How to create reloadable object files.
15948 reload_flag=$lt_reload_flag
15949 reload_cmds=$lt_reload_cmds
15951 # How to pass a linker flag through the compiler.
15952 wl=$lt_lt_prog_compiler_wl_F77
15954 # Object file suffix (normally "o").
15955 objext="$ac_objext"
15957 # Old archive suffix (normally "a").
15958 libext="$libext"
15960 # Shared library suffix (normally ".so").
15961 shrext_cmds='$shrext_cmds'
15963 # Executable file suffix (normally "").
15964 exeext="$exeext"
15966 # Additional compiler flags for building library objects.
15967 pic_flag=$lt_lt_prog_compiler_pic_F77
15968 pic_mode=$pic_mode
15970 # What is the maximum length of a command?
15971 max_cmd_len=$lt_cv_sys_max_cmd_len
15973 # Does compiler simultaneously support -c and -o options?
15974 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
15976 # Must we lock files when doing compilation?
15977 need_locks=$lt_need_locks
15979 # Do we need the lib prefix for modules?
15980 need_lib_prefix=$need_lib_prefix
15982 # Do we need a version for libraries?
15983 need_version=$need_version
15985 # Whether dlopen is supported.
15986 dlopen_support=$enable_dlopen
15988 # Whether dlopen of programs is supported.
15989 dlopen_self=$enable_dlopen_self
15991 # Whether dlopen of statically linked programs is supported.
15992 dlopen_self_static=$enable_dlopen_self_static
15994 # Compiler flag to prevent dynamic linking.
15995 link_static_flag=$lt_lt_prog_compiler_static_F77
15997 # Compiler flag to turn off builtin functions.
15998 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
16000 # Compiler flag to allow reflexive dlopens.
16001 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
16003 # Compiler flag to generate shared objects directly from archives.
16004 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
16006 # Compiler flag to generate thread-safe objects.
16007 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
16009 # Library versioning type.
16010 version_type=$version_type
16012 # Format of library name prefix.
16013 libname_spec=$lt_libname_spec
16015 # List of archive names. First name is the real one, the rest are links.
16016 # The last name is the one that the linker finds with -lNAME.
16017 library_names_spec=$lt_library_names_spec
16019 # The coded name of the library, if different from the real name.
16020 soname_spec=$lt_soname_spec
16022 # Commands used to build and install an old-style archive.
16023 RANLIB=$lt_RANLIB
16024 old_archive_cmds=$lt_old_archive_cmds_F77
16025 old_postinstall_cmds=$lt_old_postinstall_cmds
16026 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16028 # Create an old-style archive from a shared archive.
16029 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16031 # Create a temporary old-style archive to link instead of a shared archive.
16032 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16034 # Commands used to build and install a shared archive.
16035 archive_cmds=$lt_archive_cmds_F77
16036 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16037 postinstall_cmds=$lt_postinstall_cmds
16038 postuninstall_cmds=$lt_postuninstall_cmds
16040 # Commands used to build a loadable module (assumed same as above if empty)
16041 module_cmds=$lt_module_cmds_F77
16042 module_expsym_cmds=$lt_module_expsym_cmds_F77
16044 # Commands to strip libraries.
16045 old_striplib=$lt_old_striplib
16046 striplib=$lt_striplib
16048 # Dependencies to place before the objects being linked to create a
16049 # shared library.
16050 predep_objects=$lt_predep_objects_F77
16052 # Dependencies to place after the objects being linked to create a
16053 # shared library.
16054 postdep_objects=$lt_postdep_objects_F77
16056 # Dependencies to place before the objects being linked to create a
16057 # shared library.
16058 predeps=$lt_predeps_F77
16060 # Dependencies to place after the objects being linked to create a
16061 # shared library.
16062 postdeps=$lt_postdeps_F77
16064 # The library search path used internally by the compiler when linking
16065 # a shared library.
16066 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
16068 # Method to check whether dependent libraries are shared objects.
16069 deplibs_check_method=$lt_deplibs_check_method
16071 # Command to use when deplibs_check_method == file_magic.
16072 file_magic_cmd=$lt_file_magic_cmd
16074 # Flag that allows shared libraries with undefined symbols to be built.
16075 allow_undefined_flag=$lt_allow_undefined_flag_F77
16077 # Flag that forces no undefined symbols.
16078 no_undefined_flag=$lt_no_undefined_flag_F77
16080 # Commands used to finish a libtool library installation in a directory.
16081 finish_cmds=$lt_finish_cmds
16083 # Same as above, but a single script fragment to be evaled but not shown.
16084 finish_eval=$lt_finish_eval
16086 # Take the output of nm and produce a listing of raw symbols and C names.
16087 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16089 # Transform the output of nm in a proper C declaration
16090 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16092 # Transform the output of nm in a C name address pair
16093 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16095 # This is the shared library runtime path variable.
16096 runpath_var=$runpath_var
16098 # This is the shared library path variable.
16099 shlibpath_var=$shlibpath_var
16101 # Is shlibpath searched before the hard-coded library search path?
16102 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16104 # How to hardcode a shared library path into an executable.
16105 hardcode_action=$hardcode_action_F77
16107 # Whether we should hardcode library paths into libraries.
16108 hardcode_into_libs=$hardcode_into_libs
16110 # Flag to hardcode \$libdir into a binary during linking.
16111 # This must work even if \$libdir does not exist.
16112 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16114 # If ld is used when linking, flag to hardcode \$libdir into
16115 # a binary during linking. This must work even if \$libdir does
16116 # not exist.
16117 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16119 # Whether we need a single -rpath flag with a separated argument.
16120 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16122 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16123 # resulting binary.
16124 hardcode_direct=$hardcode_direct_F77
16126 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16127 # resulting binary.
16128 hardcode_minus_L=$hardcode_minus_L_F77
16130 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16131 # the resulting binary.
16132 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16134 # Set to yes if building a shared library automatically hardcodes DIR into the library
16135 # and all subsequent libraries and executables linked against it.
16136 hardcode_automatic=$hardcode_automatic_F77
16138 # Variables whose values should be saved in libtool wrapper scripts and
16139 # restored at relink time.
16140 variables_saved_for_relink="$variables_saved_for_relink"
16142 # Whether libtool must link a program against all its dependency libraries.
16143 link_all_deplibs=$link_all_deplibs_F77
16145 # Compile-time system search path for libraries
16146 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16148 # Run-time system search path for libraries
16149 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16151 # Fix the shell variable \$srcfile for the compiler.
16152 fix_srcfile_path=$lt_fix_srcfile_path
16154 # Set to yes if exported symbols are required.
16155 always_export_symbols=$always_export_symbols_F77
16157 # The commands to list exported symbols.
16158 export_symbols_cmds=$lt_export_symbols_cmds_F77
16160 # The commands to extract the exported symbol list from a shared archive.
16161 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16163 # Symbols that should not be listed in the preloaded symbols.
16164 exclude_expsyms=$lt_exclude_expsyms_F77
16166 # Symbols that must always be exported.
16167 include_expsyms=$lt_include_expsyms_F77
16169 # ### END LIBTOOL TAG CONFIG: $tagname
16171 __EOF__
16174 else
16175 # If there is no Makefile yet, we rely on a make rule to execute
16176 # `config.status --recheck' to rerun these tests and create the
16177 # libtool script then.
16178 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16179 if test -f "$ltmain_in"; then
16180 test -f Makefile && make "$ltmain"
16185 ac_ext=cpp
16186 ac_cpp='$CXXCPP $CPPFLAGS'
16187 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16188 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16189 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16191 CC="$lt_save_CC"
16193 else
16194 tagname=""
16198 GCJ)
16199 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16202 # Source file extension for Java test sources.
16203 ac_ext=java
16205 # Object file extension for compiled Java test sources.
16206 objext=o
16207 objext_GCJ=$objext
16209 # Code to be used in simple compile tests
16210 lt_simple_compile_test_code="class foo {}"
16212 # Code to be used in simple link tests
16213 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }'
16215 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
16217 # If no C compiler was specified, use CC.
16218 LTCC=${LTCC-"$CC"}
16220 # If no C compiler flags were specified, use CFLAGS.
16221 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16223 # Allow CC to be a program name with arguments.
16224 compiler=$CC
16227 # save warnings/boilerplate of simple test code
16228 ac_outfile=conftest.$ac_objext
16229 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
16230 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16231 _lt_compiler_boilerplate=`cat conftest.err`
16232 $rm conftest*
16234 ac_outfile=conftest.$ac_objext
16235 echo "$lt_simple_link_test_code" >conftest.$ac_ext
16236 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16237 _lt_linker_boilerplate=`cat conftest.err`
16238 $rm conftest*
16241 # Allow CC to be a program name with arguments.
16242 lt_save_CC="$CC"
16243 CC=${GCJ-"gcj"}
16244 compiler=$CC
16245 compiler_GCJ=$CC
16246 for cc_temp in $compiler""; do
16247 case $cc_temp in
16248 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16249 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16250 \-*) ;;
16251 *) break;;
16252 esac
16253 done
16254 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16257 # GCJ did not exist at the time GCC didn't implicitly link libc in.
16258 archive_cmds_need_lc_GCJ=no
16260 old_archive_cmds_GCJ=$old_archive_cmds
16263 lt_prog_compiler_no_builtin_flag_GCJ=
16265 if test "$GCC" = yes; then
16266 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16269 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16270 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
16271 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16272 echo $ECHO_N "(cached) $ECHO_C" >&6
16273 else
16274 lt_cv_prog_compiler_rtti_exceptions=no
16275 ac_outfile=conftest.$ac_objext
16276 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16277 lt_compiler_flag="-fno-rtti -fno-exceptions"
16278 # Insert the option either (1) after the last *FLAGS variable, or
16279 # (2) before a word containing "conftest.", or (3) at the end.
16280 # Note that $ac_compile itself does not contain backslashes and begins
16281 # with a dollar sign (not a hyphen), so the echo should work correctly.
16282 # The option is referenced via a variable to avoid confusing sed.
16283 lt_compile=`echo "$ac_compile" | $SED \
16284 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16285 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16286 -e 's:$: $lt_compiler_flag:'`
16287 (eval echo "\"\$as_me:16287: $lt_compile\"" >&5)
16288 (eval "$lt_compile" 2>conftest.err)
16289 ac_status=$?
16290 cat conftest.err >&5
16291 echo "$as_me:16291: \$? = $ac_status" >&5
16292 if (exit $ac_status) && test -s "$ac_outfile"; then
16293 # The compiler can only warn and ignore the option if not recognized
16294 # So say no if there are warnings other than the usual output.
16295 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16296 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16297 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16298 lt_cv_prog_compiler_rtti_exceptions=yes
16301 $rm conftest*
16304 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16305 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
16307 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16308 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16309 else
16315 lt_prog_compiler_wl_GCJ=
16316 lt_prog_compiler_pic_GCJ=
16317 lt_prog_compiler_static_GCJ=
16319 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16320 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
16322 if test "$GCC" = yes; then
16323 lt_prog_compiler_wl_GCJ='-Wl,'
16324 lt_prog_compiler_static_GCJ='-static'
16326 case $host_os in
16327 aix*)
16328 # All AIX code is PIC.
16329 if test "$host_cpu" = ia64; then
16330 # AIX 5 now supports IA64 processor
16331 lt_prog_compiler_static_GCJ='-Bstatic'
16335 amigaos*)
16336 # FIXME: we need at least 68020 code to build shared libraries, but
16337 # adding the `-m68020' flag to GCC prevents building anything better,
16338 # like `-m68040'.
16339 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16342 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16343 # PIC is the default for these OSes.
16346 mingw* | cygwin* | pw32* | os2*)
16347 # This hack is so that the source file can tell whether it is being
16348 # built for inclusion in a dll (and should export symbols for example).
16349 # Although the cygwin gcc ignores -fPIC, still need this for old-style
16350 # (--disable-auto-import) libraries
16351 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16354 darwin* | rhapsody*)
16355 # PIC is the default on this platform
16356 # Common symbols not allowed in MH_DYLIB files
16357 lt_prog_compiler_pic_GCJ='-fno-common'
16360 interix[3-9]*)
16361 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16362 # Instead, we relocate shared libraries at runtime.
16365 msdosdjgpp*)
16366 # Just because we use GCC doesn't mean we suddenly get shared libraries
16367 # on systems that don't support them.
16368 lt_prog_compiler_can_build_shared_GCJ=no
16369 enable_shared=no
16372 sysv4*MP*)
16373 if test -d /usr/nec; then
16374 lt_prog_compiler_pic_GCJ=-Kconform_pic
16378 hpux*)
16379 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16380 # not for PA HP-UX.
16381 case $host_cpu in
16382 hppa*64*|ia64*)
16383 # +Z the default
16386 lt_prog_compiler_pic_GCJ='-fPIC'
16388 esac
16392 lt_prog_compiler_pic_GCJ='-fPIC'
16394 esac
16395 else
16396 # PORTME Check for flag to pass linker flags through the system compiler.
16397 case $host_os in
16398 aix*)
16399 lt_prog_compiler_wl_GCJ='-Wl,'
16400 if test "$host_cpu" = ia64; then
16401 # AIX 5 now supports IA64 processor
16402 lt_prog_compiler_static_GCJ='-Bstatic'
16403 else
16404 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16407 darwin*)
16408 # PIC is the default on this platform
16409 # Common symbols not allowed in MH_DYLIB files
16410 case $cc_basename in
16411 xlc*)
16412 lt_prog_compiler_pic_GCJ='-qnocommon'
16413 lt_prog_compiler_wl_GCJ='-Wl,'
16415 esac
16418 mingw* | cygwin* | pw32* | os2*)
16419 # This hack is so that the source file can tell whether it is being
16420 # built for inclusion in a dll (and should export symbols for example).
16421 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16424 hpux9* | hpux10* | hpux11*)
16425 lt_prog_compiler_wl_GCJ='-Wl,'
16426 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16427 # not for PA HP-UX.
16428 case $host_cpu in
16429 hppa*64*|ia64*)
16430 # +Z the default
16433 lt_prog_compiler_pic_GCJ='+Z'
16435 esac
16436 # Is there a better lt_prog_compiler_static that works with the bundled CC?
16437 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
16440 irix5* | irix6* | nonstopux*)
16441 lt_prog_compiler_wl_GCJ='-Wl,'
16442 # PIC (with -KPIC) is the default.
16443 lt_prog_compiler_static_GCJ='-non_shared'
16446 newsos6)
16447 lt_prog_compiler_pic_GCJ='-KPIC'
16448 lt_prog_compiler_static_GCJ='-Bstatic'
16451 linux* | k*bsd*-gnu)
16452 case $cc_basename in
16453 icc* | ecc*)
16454 lt_prog_compiler_wl_GCJ='-Wl,'
16455 lt_prog_compiler_pic_GCJ='-KPIC'
16456 lt_prog_compiler_static_GCJ='-static'
16458 pgcc* | pgf77* | pgf90* | pgf95*)
16459 # Portland Group compilers (*not* the Pentium gcc compiler,
16460 # which looks to be a dead project)
16461 lt_prog_compiler_wl_GCJ='-Wl,'
16462 lt_prog_compiler_pic_GCJ='-fpic'
16463 lt_prog_compiler_static_GCJ='-Bstatic'
16465 ccc*)
16466 lt_prog_compiler_wl_GCJ='-Wl,'
16467 # All Alpha code is PIC.
16468 lt_prog_compiler_static_GCJ='-non_shared'
16471 case `$CC -V 2>&1 | sed 5q` in
16472 *Sun\ C*)
16473 # Sun C 5.9
16474 lt_prog_compiler_pic_GCJ='-KPIC'
16475 lt_prog_compiler_static_GCJ='-Bstatic'
16476 lt_prog_compiler_wl_GCJ='-Wl,'
16478 *Sun\ F*)
16479 # Sun Fortran 8.3 passes all unrecognized flags to the linker
16480 lt_prog_compiler_pic_GCJ='-KPIC'
16481 lt_prog_compiler_static_GCJ='-Bstatic'
16482 lt_prog_compiler_wl_GCJ=''
16484 esac
16486 esac
16489 osf3* | osf4* | osf5*)
16490 lt_prog_compiler_wl_GCJ='-Wl,'
16491 # All OSF/1 code is PIC.
16492 lt_prog_compiler_static_GCJ='-non_shared'
16495 rdos*)
16496 lt_prog_compiler_static_GCJ='-non_shared'
16499 solaris*)
16500 lt_prog_compiler_pic_GCJ='-KPIC'
16501 lt_prog_compiler_static_GCJ='-Bstatic'
16502 case $cc_basename in
16503 f77* | f90* | f95*)
16504 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
16506 lt_prog_compiler_wl_GCJ='-Wl,';;
16507 esac
16510 sunos4*)
16511 lt_prog_compiler_wl_GCJ='-Qoption ld '
16512 lt_prog_compiler_pic_GCJ='-PIC'
16513 lt_prog_compiler_static_GCJ='-Bstatic'
16516 sysv4 | sysv4.2uw2* | sysv4.3*)
16517 lt_prog_compiler_wl_GCJ='-Wl,'
16518 lt_prog_compiler_pic_GCJ='-KPIC'
16519 lt_prog_compiler_static_GCJ='-Bstatic'
16522 sysv4*MP*)
16523 if test -d /usr/nec ;then
16524 lt_prog_compiler_pic_GCJ='-Kconform_pic'
16525 lt_prog_compiler_static_GCJ='-Bstatic'
16529 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16530 lt_prog_compiler_wl_GCJ='-Wl,'
16531 lt_prog_compiler_pic_GCJ='-KPIC'
16532 lt_prog_compiler_static_GCJ='-Bstatic'
16535 unicos*)
16536 lt_prog_compiler_wl_GCJ='-Wl,'
16537 lt_prog_compiler_can_build_shared_GCJ=no
16540 uts4*)
16541 lt_prog_compiler_pic_GCJ='-pic'
16542 lt_prog_compiler_static_GCJ='-Bstatic'
16546 lt_prog_compiler_can_build_shared_GCJ=no
16548 esac
16551 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
16552 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
16555 # Check to make sure the PIC flag actually works.
16557 if test -n "$lt_prog_compiler_pic_GCJ"; then
16559 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
16560 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
16561 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
16562 echo $ECHO_N "(cached) $ECHO_C" >&6
16563 else
16564 lt_prog_compiler_pic_works_GCJ=no
16565 ac_outfile=conftest.$ac_objext
16566 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16567 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
16568 # Insert the option either (1) after the last *FLAGS variable, or
16569 # (2) before a word containing "conftest.", or (3) at the end.
16570 # Note that $ac_compile itself does not contain backslashes and begins
16571 # with a dollar sign (not a hyphen), so the echo should work correctly.
16572 # The option is referenced via a variable to avoid confusing sed.
16573 lt_compile=`echo "$ac_compile" | $SED \
16574 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16575 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16576 -e 's:$: $lt_compiler_flag:'`
16577 (eval echo "\"\$as_me:16577: $lt_compile\"" >&5)
16578 (eval "$lt_compile" 2>conftest.err)
16579 ac_status=$?
16580 cat conftest.err >&5
16581 echo "$as_me:16581: \$? = $ac_status" >&5
16582 if (exit $ac_status) && test -s "$ac_outfile"; then
16583 # The compiler can only warn and ignore the option if not recognized
16584 # So say no if there are warnings other than the usual output.
16585 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16586 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16587 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16588 lt_prog_compiler_pic_works_GCJ=yes
16591 $rm conftest*
16594 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
16595 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
16597 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
16598 case $lt_prog_compiler_pic_GCJ in
16599 "" | " "*) ;;
16600 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
16601 esac
16602 else
16603 lt_prog_compiler_pic_GCJ=
16604 lt_prog_compiler_can_build_shared_GCJ=no
16608 case $host_os in
16609 # For platforms which do not support PIC, -DPIC is meaningless:
16610 *djgpp*)
16611 lt_prog_compiler_pic_GCJ=
16614 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
16616 esac
16619 # Check to make sure the static flag actually works.
16621 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
16622 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16623 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
16624 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
16625 echo $ECHO_N "(cached) $ECHO_C" >&6
16626 else
16627 lt_prog_compiler_static_works_GCJ=no
16628 save_LDFLAGS="$LDFLAGS"
16629 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16630 echo "$lt_simple_link_test_code" > conftest.$ac_ext
16631 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16632 # The linker can only warn and ignore the option if not recognized
16633 # So say no if there are warnings
16634 if test -s conftest.err; then
16635 # Append any errors to the config.log.
16636 cat conftest.err 1>&5
16637 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
16638 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16639 if diff conftest.exp conftest.er2 >/dev/null; then
16640 lt_prog_compiler_static_works_GCJ=yes
16642 else
16643 lt_prog_compiler_static_works_GCJ=yes
16646 $rm conftest*
16647 LDFLAGS="$save_LDFLAGS"
16650 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
16651 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
16653 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
16655 else
16656 lt_prog_compiler_static_GCJ=
16660 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16661 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
16662 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
16663 echo $ECHO_N "(cached) $ECHO_C" >&6
16664 else
16665 lt_cv_prog_compiler_c_o_GCJ=no
16666 $rm -r conftest 2>/dev/null
16667 mkdir conftest
16668 cd conftest
16669 mkdir out
16670 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16672 lt_compiler_flag="-o out/conftest2.$ac_objext"
16673 # Insert the option either (1) after the last *FLAGS variable, or
16674 # (2) before a word containing "conftest.", or (3) at the end.
16675 # Note that $ac_compile itself does not contain backslashes and begins
16676 # with a dollar sign (not a hyphen), so the echo should work correctly.
16677 lt_compile=`echo "$ac_compile" | $SED \
16678 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16679 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16680 -e 's:$: $lt_compiler_flag:'`
16681 (eval echo "\"\$as_me:16681: $lt_compile\"" >&5)
16682 (eval "$lt_compile" 2>out/conftest.err)
16683 ac_status=$?
16684 cat out/conftest.err >&5
16685 echo "$as_me:16685: \$? = $ac_status" >&5
16686 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16687 then
16688 # The compiler can only warn and ignore the option if not recognized
16689 # So say no if there are warnings
16690 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
16691 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16692 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16693 lt_cv_prog_compiler_c_o_GCJ=yes
16696 chmod u+w . 2>&5
16697 $rm conftest*
16698 # SGI C++ compiler will create directory out/ii_files/ for
16699 # template instantiation
16700 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16701 $rm out/* && rmdir out
16702 cd ..
16703 rmdir conftest
16704 $rm conftest*
16707 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
16708 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
16711 hard_links="nottested"
16712 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
16713 # do not overwrite the value of need_locks provided by the user
16714 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16715 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
16716 hard_links=yes
16717 $rm conftest*
16718 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16719 touch conftest.a
16720 ln conftest.a conftest.b 2>&5 || hard_links=no
16721 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16722 { echo "$as_me:$LINENO: result: $hard_links" >&5
16723 echo "${ECHO_T}$hard_links" >&6; }
16724 if test "$hard_links" = no; then
16725 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16726 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16727 need_locks=warn
16729 else
16730 need_locks=no
16733 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16734 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
16736 runpath_var=
16737 allow_undefined_flag_GCJ=
16738 enable_shared_with_static_runtimes_GCJ=no
16739 archive_cmds_GCJ=
16740 archive_expsym_cmds_GCJ=
16741 old_archive_From_new_cmds_GCJ=
16742 old_archive_from_expsyms_cmds_GCJ=
16743 export_dynamic_flag_spec_GCJ=
16744 whole_archive_flag_spec_GCJ=
16745 thread_safe_flag_spec_GCJ=
16746 hardcode_libdir_flag_spec_GCJ=
16747 hardcode_libdir_flag_spec_ld_GCJ=
16748 hardcode_libdir_separator_GCJ=
16749 hardcode_direct_GCJ=no
16750 hardcode_minus_L_GCJ=no
16751 hardcode_shlibpath_var_GCJ=unsupported
16752 link_all_deplibs_GCJ=unknown
16753 hardcode_automatic_GCJ=no
16754 module_cmds_GCJ=
16755 module_expsym_cmds_GCJ=
16756 always_export_symbols_GCJ=no
16757 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16758 # include_expsyms should be a list of space-separated symbols to be *always*
16759 # included in the symbol list
16760 include_expsyms_GCJ=
16761 # exclude_expsyms can be an extended regexp of symbols to exclude
16762 # it will be wrapped by ` (' and `)$', so one must not match beginning or
16763 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16764 # as well as any symbol that contains `d'.
16765 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
16766 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16767 # platforms (ab)use it in PIC code, but their linkers get confused if
16768 # the symbol is explicitly referenced. Since portable code cannot
16769 # rely on this symbol name, it's probably fine to never include it in
16770 # preloaded symbol tables.
16771 extract_expsyms_cmds=
16772 # Just being paranoid about ensuring that cc_basename is set.
16773 for cc_temp in $compiler""; do
16774 case $cc_temp in
16775 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16776 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16777 \-*) ;;
16778 *) break;;
16779 esac
16780 done
16781 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16783 case $host_os in
16784 cygwin* | mingw* | pw32*)
16785 # FIXME: the MSVC++ port hasn't been tested in a loooong time
16786 # When not using gcc, we currently assume that we are using
16787 # Microsoft Visual C++.
16788 if test "$GCC" != yes; then
16789 with_gnu_ld=no
16792 interix*)
16793 # we just hope/assume this is gcc and not c89 (= MSVC++)
16794 with_gnu_ld=yes
16796 openbsd*)
16797 with_gnu_ld=no
16799 esac
16801 ld_shlibs_GCJ=yes
16802 if test "$with_gnu_ld" = yes; then
16803 # If archive_cmds runs LD, not CC, wlarc should be empty
16804 wlarc='${wl}'
16806 # Set some defaults for GNU ld with shared library support. These
16807 # are reset later if shared libraries are not supported. Putting them
16808 # here allows them to be overridden if necessary.
16809 runpath_var=LD_RUN_PATH
16810 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16811 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16812 # ancient GNU ld didn't support --whole-archive et. al.
16813 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16814 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16815 else
16816 whole_archive_flag_spec_GCJ=
16818 supports_anon_versioning=no
16819 case `$LD -v 2>/dev/null` in
16820 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16821 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16822 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16823 *\ 2.11.*) ;; # other 2.11 versions
16824 *) supports_anon_versioning=yes ;;
16825 esac
16827 # See if GNU ld supports shared libraries.
16828 case $host_os in
16829 aix3* | aix4* | aix5*)
16830 # On AIX/PPC, the GNU linker is very broken
16831 if test "$host_cpu" != ia64; then
16832 ld_shlibs_GCJ=no
16833 cat <<EOF 1>&2
16835 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
16836 *** to be unable to reliably create shared libraries on AIX.
16837 *** Therefore, libtool is disabling shared libraries support. If you
16838 *** really care for shared libraries, you may want to modify your PATH
16839 *** so that a non-GNU linker is found, and then restart.
16845 amigaos*)
16846 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)'
16847 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16848 hardcode_minus_L_GCJ=yes
16850 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16851 # that the semantics of dynamic libraries on AmigaOS, at least up
16852 # to version 4, is to share data among multiple programs linked
16853 # with the same dynamic library. Since this doesn't match the
16854 # behavior of shared libraries on other platforms, we can't use
16855 # them.
16856 ld_shlibs_GCJ=no
16859 beos*)
16860 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16861 allow_undefined_flag_GCJ=unsupported
16862 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16863 # support --undefined. This deserves some investigation. FIXME
16864 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16865 else
16866 ld_shlibs_GCJ=no
16870 cygwin* | mingw* | pw32*)
16871 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
16872 # as there is no search path for DLLs.
16873 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16874 allow_undefined_flag_GCJ=unsupported
16875 always_export_symbols_GCJ=no
16876 enable_shared_with_static_runtimes_GCJ=yes
16877 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
16879 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16880 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16881 # If the export-symbols file already is a .def file (1st line
16882 # is EXPORTS), use it as is; otherwise, prepend...
16883 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16884 cp $export_symbols $output_objdir/$soname.def;
16885 else
16886 echo EXPORTS > $output_objdir/$soname.def;
16887 cat $export_symbols >> $output_objdir/$soname.def;
16889 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16890 else
16891 ld_shlibs_GCJ=no
16895 interix[3-9]*)
16896 hardcode_direct_GCJ=no
16897 hardcode_shlibpath_var_GCJ=no
16898 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16899 export_dynamic_flag_spec_GCJ='${wl}-E'
16900 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16901 # Instead, shared libraries are loaded at an image base (0x10000000 by
16902 # default) and relocated if they conflict, which is a slow very memory
16903 # consuming and fragmenting process. To avoid this, we pick a random,
16904 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16905 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
16906 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'
16907 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'
16910 gnu* | linux* | k*bsd*-gnu)
16911 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16912 tmp_addflag=
16913 case $cc_basename,$host_cpu in
16914 pgcc*) # Portland Group C compiler
16915 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'
16916 tmp_addflag=' $pic_flag'
16918 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
16919 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'
16920 tmp_addflag=' $pic_flag -Mnomain' ;;
16921 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
16922 tmp_addflag=' -i_dynamic' ;;
16923 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
16924 tmp_addflag=' -i_dynamic -nofor_main' ;;
16925 ifc* | ifort*) # Intel Fortran compiler
16926 tmp_addflag=' -nofor_main' ;;
16927 esac
16928 case `$CC -V 2>&1 | sed 5q` in
16929 *Sun\ C*) # Sun C 5.9
16930 whole_archive_flag_spec_GCJ='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
16931 tmp_sharedflag='-G' ;;
16932 *Sun\ F*) # Sun Fortran 8.3
16933 tmp_sharedflag='-G' ;;
16935 tmp_sharedflag='-shared' ;;
16936 esac
16937 archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16939 if test $supports_anon_versioning = yes; then
16940 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
16941 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16942 $echo "local: *; };" >> $output_objdir/$libname.ver~
16943 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16945 else
16946 ld_shlibs_GCJ=no
16950 netbsd*)
16951 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16952 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16953 wlarc=
16954 else
16955 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16956 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16960 solaris*)
16961 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16962 ld_shlibs_GCJ=no
16963 cat <<EOF 1>&2
16965 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
16966 *** create shared libraries on Solaris systems. Therefore, libtool
16967 *** is disabling shared libraries support. We urge you to upgrade GNU
16968 *** binutils to release 2.9.1 or newer. Another option is to modify
16969 *** your PATH or compiler configuration so that the native linker is
16970 *** used, and then restart.
16973 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16974 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16975 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16976 else
16977 ld_shlibs_GCJ=no
16981 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
16982 case `$LD -v 2>&1` in
16983 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
16984 ld_shlibs_GCJ=no
16985 cat <<_LT_EOF 1>&2
16987 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
16988 *** reliably create shared libraries on SCO systems. Therefore, libtool
16989 *** is disabling shared libraries support. We urge you to upgrade GNU
16990 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
16991 *** your PATH or compiler configuration so that the native linker is
16992 *** used, and then restart.
16994 _LT_EOF
16997 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16998 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
16999 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
17000 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
17001 else
17002 ld_shlibs_GCJ=no
17005 esac
17008 sunos4*)
17009 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17010 wlarc=
17011 hardcode_direct_GCJ=yes
17012 hardcode_shlibpath_var_GCJ=no
17016 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17017 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17018 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17019 else
17020 ld_shlibs_GCJ=no
17023 esac
17025 if test "$ld_shlibs_GCJ" = no; then
17026 runpath_var=
17027 hardcode_libdir_flag_spec_GCJ=
17028 export_dynamic_flag_spec_GCJ=
17029 whole_archive_flag_spec_GCJ=
17031 else
17032 # PORTME fill in a description of your system's linker (not GNU ld)
17033 case $host_os in
17034 aix3*)
17035 allow_undefined_flag_GCJ=unsupported
17036 always_export_symbols_GCJ=yes
17037 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'
17038 # Note: this linker hardcodes the directories in LIBPATH if there
17039 # are no directories specified by -L.
17040 hardcode_minus_L_GCJ=yes
17041 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17042 # Neither direct hardcoding nor static linking is supported with a
17043 # broken collect2.
17044 hardcode_direct_GCJ=unsupported
17048 aix4* | aix5*)
17049 if test "$host_cpu" = ia64; then
17050 # On IA64, the linker does run time linking by default, so we don't
17051 # have to do anything special.
17052 aix_use_runtimelinking=no
17053 exp_sym_flag='-Bexport'
17054 no_entry_flag=""
17055 else
17056 # If we're using GNU nm, then we don't want the "-C" option.
17057 # -C means demangle to AIX nm, but means don't demangle with GNU nm
17058 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17059 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'
17060 else
17061 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'
17063 aix_use_runtimelinking=no
17065 # Test if we are trying to use run time linking or normal
17066 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17067 # need to do runtime linking.
17068 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
17069 for ld_flag in $LDFLAGS; do
17070 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17071 aix_use_runtimelinking=yes
17072 break
17074 done
17076 esac
17078 exp_sym_flag='-bexport'
17079 no_entry_flag='-bnoentry'
17082 # When large executables or shared objects are built, AIX ld can
17083 # have problems creating the table of contents. If linking a library
17084 # or program results in "error TOC overflow" add -mminimal-toc to
17085 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
17086 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17088 archive_cmds_GCJ=''
17089 hardcode_direct_GCJ=yes
17090 hardcode_libdir_separator_GCJ=':'
17091 link_all_deplibs_GCJ=yes
17093 if test "$GCC" = yes; then
17094 case $host_os in aix4.[012]|aix4.[012].*)
17095 # We only want to do this on AIX 4.2 and lower, the check
17096 # below for broken collect2 doesn't work under 4.3+
17097 collect2name=`${CC} -print-prog-name=collect2`
17098 if test -f "$collect2name" && \
17099 strings "$collect2name" | grep resolve_lib_name >/dev/null
17100 then
17101 # We have reworked collect2
17103 else
17104 # We have old collect2
17105 hardcode_direct_GCJ=unsupported
17106 # It fails to find uninstalled libraries when the uninstalled
17107 # path is not listed in the libpath. Setting hardcode_minus_L
17108 # to unsupported forces relinking
17109 hardcode_minus_L_GCJ=yes
17110 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17111 hardcode_libdir_separator_GCJ=
17114 esac
17115 shared_flag='-shared'
17116 if test "$aix_use_runtimelinking" = yes; then
17117 shared_flag="$shared_flag "'${wl}-G'
17119 else
17120 # not using gcc
17121 if test "$host_cpu" = ia64; then
17122 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17123 # chokes on -Wl,-G. The following line is correct:
17124 shared_flag='-G'
17125 else
17126 if test "$aix_use_runtimelinking" = yes; then
17127 shared_flag='${wl}-G'
17128 else
17129 shared_flag='${wl}-bM:SRE'
17134 # It seems that -bexpall does not export symbols beginning with
17135 # underscore (_), so it is better to generate a list of symbols to export.
17136 always_export_symbols_GCJ=yes
17137 if test "$aix_use_runtimelinking" = yes; then
17138 # Warning - without using the other runtime loading flags (-brtl),
17139 # -berok will link without error, but may produce a broken library.
17140 allow_undefined_flag_GCJ='-berok'
17141 # Determine the default libpath from the value encoded in an empty executable.
17142 cat >conftest.$ac_ext <<_ACEOF
17143 /* confdefs.h. */
17144 _ACEOF
17145 cat confdefs.h >>conftest.$ac_ext
17146 cat >>conftest.$ac_ext <<_ACEOF
17147 /* end confdefs.h. */
17150 main ()
17154 return 0;
17156 _ACEOF
17157 rm -f conftest.$ac_objext conftest$ac_exeext
17158 if { (ac_try="$ac_link"
17159 case "(($ac_try" in
17160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17161 *) ac_try_echo=$ac_try;;
17162 esac
17163 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17164 (eval "$ac_link") 2>conftest.er1
17165 ac_status=$?
17166 grep -v '^ *+' conftest.er1 >conftest.err
17167 rm -f conftest.er1
17168 cat conftest.err >&5
17169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17170 (exit $ac_status); } && {
17171 test -z "$ac_cxx_werror_flag" ||
17172 test ! -s conftest.err
17173 } && test -s conftest$ac_exeext &&
17174 $as_test_x conftest$ac_exeext; then
17176 lt_aix_libpath_sed='
17177 /Import File Strings/,/^$/ {
17178 /^0/ {
17179 s/^0 *\(.*\)$/\1/
17183 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17184 # Check for a 64-bit object if we didn't find anything.
17185 if test -z "$aix_libpath"; then
17186 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17188 else
17189 echo "$as_me: failed program was:" >&5
17190 sed 's/^/| /' conftest.$ac_ext >&5
17195 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17196 conftest$ac_exeext conftest.$ac_ext
17197 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17199 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17200 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"
17201 else
17202 if test "$host_cpu" = ia64; then
17203 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17204 allow_undefined_flag_GCJ="-z nodefs"
17205 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"
17206 else
17207 # Determine the default libpath from the value encoded in an empty executable.
17208 cat >conftest.$ac_ext <<_ACEOF
17209 /* confdefs.h. */
17210 _ACEOF
17211 cat confdefs.h >>conftest.$ac_ext
17212 cat >>conftest.$ac_ext <<_ACEOF
17213 /* end confdefs.h. */
17216 main ()
17220 return 0;
17222 _ACEOF
17223 rm -f conftest.$ac_objext conftest$ac_exeext
17224 if { (ac_try="$ac_link"
17225 case "(($ac_try" in
17226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17227 *) ac_try_echo=$ac_try;;
17228 esac
17229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17230 (eval "$ac_link") 2>conftest.er1
17231 ac_status=$?
17232 grep -v '^ *+' conftest.er1 >conftest.err
17233 rm -f conftest.er1
17234 cat conftest.err >&5
17235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17236 (exit $ac_status); } && {
17237 test -z "$ac_cxx_werror_flag" ||
17238 test ! -s conftest.err
17239 } && test -s conftest$ac_exeext &&
17240 $as_test_x conftest$ac_exeext; then
17242 lt_aix_libpath_sed='
17243 /Import File Strings/,/^$/ {
17244 /^0/ {
17245 s/^0 *\(.*\)$/\1/
17249 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17250 # Check for a 64-bit object if we didn't find anything.
17251 if test -z "$aix_libpath"; then
17252 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17254 else
17255 echo "$as_me: failed program was:" >&5
17256 sed 's/^/| /' conftest.$ac_ext >&5
17261 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17262 conftest$ac_exeext conftest.$ac_ext
17263 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17265 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17266 # Warning - without using the other run time loading flags,
17267 # -berok will link without error, but may produce a broken library.
17268 no_undefined_flag_GCJ=' ${wl}-bernotok'
17269 allow_undefined_flag_GCJ=' ${wl}-berok'
17270 # Exported symbols can be pulled into shared objects from archives
17271 whole_archive_flag_spec_GCJ='$convenience'
17272 archive_cmds_need_lc_GCJ=yes
17273 # This is similar to how AIX traditionally builds its shared libraries.
17274 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'
17279 amigaos*)
17280 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)'
17281 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17282 hardcode_minus_L_GCJ=yes
17283 # see comment about different semantics on the GNU ld section
17284 ld_shlibs_GCJ=no
17287 bsdi[45]*)
17288 export_dynamic_flag_spec_GCJ=-rdynamic
17291 cygwin* | mingw* | pw32*)
17292 # When not using gcc, we currently assume that we are using
17293 # Microsoft Visual C++.
17294 # hardcode_libdir_flag_spec is actually meaningless, as there is
17295 # no search path for DLLs.
17296 hardcode_libdir_flag_spec_GCJ=' '
17297 allow_undefined_flag_GCJ=unsupported
17298 # Tell ltmain to make .lib files, not .a files.
17299 libext=lib
17300 # Tell ltmain to make .dll files, not .so files.
17301 shrext_cmds=".dll"
17302 # FIXME: Setting linknames here is a bad hack.
17303 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17304 # The linker will automatically build a .lib file if we build a DLL.
17305 old_archive_From_new_cmds_GCJ='true'
17306 # FIXME: Should let the user specify the lib program.
17307 old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs'
17308 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
17309 enable_shared_with_static_runtimes_GCJ=yes
17312 darwin* | rhapsody*)
17313 case $host_os in
17314 rhapsody* | darwin1.[012])
17315 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
17317 *) # Darwin 1.3 on
17318 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17319 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17320 else
17321 case ${MACOSX_DEPLOYMENT_TARGET} in
17322 10.[012])
17323 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17325 10.*)
17326 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
17328 esac
17331 esac
17332 archive_cmds_need_lc_GCJ=no
17333 hardcode_direct_GCJ=no
17334 hardcode_automatic_GCJ=yes
17335 hardcode_shlibpath_var_GCJ=unsupported
17336 whole_archive_flag_spec_GCJ=''
17337 link_all_deplibs_GCJ=yes
17338 if test "$GCC" = yes ; then
17339 output_verbose_link_cmd='echo'
17340 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
17341 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17342 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17343 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}'
17344 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}'
17345 else
17346 case $cc_basename in
17347 xlc*)
17348 output_verbose_link_cmd='echo'
17349 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
17350 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17351 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17352 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 $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17353 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}'
17356 ld_shlibs_GCJ=no
17358 esac
17362 dgux*)
17363 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17364 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17365 hardcode_shlibpath_var_GCJ=no
17368 freebsd1*)
17369 ld_shlibs_GCJ=no
17372 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17373 # support. Future versions do this automatically, but an explicit c++rt0.o
17374 # does not break anything, and helps significantly (at the cost of a little
17375 # extra space).
17376 freebsd2.2*)
17377 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17378 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17379 hardcode_direct_GCJ=yes
17380 hardcode_shlibpath_var_GCJ=no
17383 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17384 freebsd2*)
17385 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17386 hardcode_direct_GCJ=yes
17387 hardcode_minus_L_GCJ=yes
17388 hardcode_shlibpath_var_GCJ=no
17391 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17392 freebsd* | dragonfly*)
17393 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17394 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17395 hardcode_direct_GCJ=yes
17396 hardcode_shlibpath_var_GCJ=no
17399 hpux9*)
17400 if test "$GCC" = yes; then
17401 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'
17402 else
17403 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'
17405 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17406 hardcode_libdir_separator_GCJ=:
17407 hardcode_direct_GCJ=yes
17409 # hardcode_minus_L: Not really in the search PATH,
17410 # but as the default location of the library.
17411 hardcode_minus_L_GCJ=yes
17412 export_dynamic_flag_spec_GCJ='${wl}-E'
17415 hpux10*)
17416 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17417 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17418 else
17419 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17421 if test "$with_gnu_ld" = no; then
17422 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17423 hardcode_libdir_separator_GCJ=:
17425 hardcode_direct_GCJ=yes
17426 export_dynamic_flag_spec_GCJ='${wl}-E'
17428 # hardcode_minus_L: Not really in the search PATH,
17429 # but as the default location of the library.
17430 hardcode_minus_L_GCJ=yes
17434 hpux11*)
17435 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17436 case $host_cpu in
17437 hppa*64*)
17438 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17440 ia64*)
17441 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17444 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17446 esac
17447 else
17448 case $host_cpu in
17449 hppa*64*)
17450 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17452 ia64*)
17453 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17456 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17458 esac
17460 if test "$with_gnu_ld" = no; then
17461 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17462 hardcode_libdir_separator_GCJ=:
17464 case $host_cpu in
17465 hppa*64*|ia64*)
17466 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
17467 hardcode_direct_GCJ=no
17468 hardcode_shlibpath_var_GCJ=no
17471 hardcode_direct_GCJ=yes
17472 export_dynamic_flag_spec_GCJ='${wl}-E'
17474 # hardcode_minus_L: Not really in the search PATH,
17475 # but as the default location of the library.
17476 hardcode_minus_L_GCJ=yes
17478 esac
17482 irix5* | irix6* | nonstopux*)
17483 if test "$GCC" = yes; then
17484 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'
17485 else
17486 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'
17487 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
17489 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17490 hardcode_libdir_separator_GCJ=:
17491 link_all_deplibs_GCJ=yes
17494 netbsd*)
17495 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17496 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
17497 else
17498 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
17500 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17501 hardcode_direct_GCJ=yes
17502 hardcode_shlibpath_var_GCJ=no
17505 newsos6)
17506 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17507 hardcode_direct_GCJ=yes
17508 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17509 hardcode_libdir_separator_GCJ=:
17510 hardcode_shlibpath_var_GCJ=no
17513 openbsd*)
17514 if test -f /usr/libexec/ld.so; then
17515 hardcode_direct_GCJ=yes
17516 hardcode_shlibpath_var_GCJ=no
17517 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17518 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17519 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17520 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17521 export_dynamic_flag_spec_GCJ='${wl}-E'
17522 else
17523 case $host_os in
17524 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17525 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17526 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17529 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17530 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17532 esac
17534 else
17535 ld_shlibs_GCJ=no
17539 os2*)
17540 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17541 hardcode_minus_L_GCJ=yes
17542 allow_undefined_flag_GCJ=unsupported
17543 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'
17544 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17547 osf3*)
17548 if test "$GCC" = yes; then
17549 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17550 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'
17551 else
17552 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17553 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'
17555 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17556 hardcode_libdir_separator_GCJ=:
17559 osf4* | osf5*) # as osf3* with the addition of -msym flag
17560 if test "$GCC" = yes; then
17561 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17562 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'
17563 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17564 else
17565 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17566 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'
17567 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~
17568 $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'
17570 # Both c and cxx compiler support -rpath directly
17571 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
17573 hardcode_libdir_separator_GCJ=:
17576 solaris*)
17577 no_undefined_flag_GCJ=' -z text'
17578 if test "$GCC" = yes; then
17579 wlarc='${wl}'
17580 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17581 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17582 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
17583 else
17584 wlarc=''
17585 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17586 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17587 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17589 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17590 hardcode_shlibpath_var_GCJ=no
17591 case $host_os in
17592 solaris2.[0-5] | solaris2.[0-5].*) ;;
17594 # The compiler driver will combine and reorder linker options,
17595 # but understands `-z linker_flag'. GCC discards it without `$wl',
17596 # but is careful enough not to reorder.
17597 # Supported since Solaris 2.6 (maybe 2.5.1?)
17598 if test "$GCC" = yes; then
17599 whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
17600 else
17601 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract'
17604 esac
17605 link_all_deplibs_GCJ=yes
17608 sunos4*)
17609 if test "x$host_vendor" = xsequent; then
17610 # Use $CC to link under sequent, because it throws in some extra .o
17611 # files that make .init and .fini sections work.
17612 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17613 else
17614 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17616 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17617 hardcode_direct_GCJ=yes
17618 hardcode_minus_L_GCJ=yes
17619 hardcode_shlibpath_var_GCJ=no
17622 sysv4)
17623 case $host_vendor in
17624 sni)
17625 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17626 hardcode_direct_GCJ=yes # is this really true???
17628 siemens)
17629 ## LD is ld it makes a PLAMLIB
17630 ## CC just makes a GrossModule.
17631 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17632 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
17633 hardcode_direct_GCJ=no
17635 motorola)
17636 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17637 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
17639 esac
17640 runpath_var='LD_RUN_PATH'
17641 hardcode_shlibpath_var_GCJ=no
17644 sysv4.3*)
17645 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17646 hardcode_shlibpath_var_GCJ=no
17647 export_dynamic_flag_spec_GCJ='-Bexport'
17650 sysv4*MP*)
17651 if test -d /usr/nec; then
17652 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17653 hardcode_shlibpath_var_GCJ=no
17654 runpath_var=LD_RUN_PATH
17655 hardcode_runpath_var=yes
17656 ld_shlibs_GCJ=yes
17660 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
17661 no_undefined_flag_GCJ='${wl}-z,text'
17662 archive_cmds_need_lc_GCJ=no
17663 hardcode_shlibpath_var_GCJ=no
17664 runpath_var='LD_RUN_PATH'
17666 if test "$GCC" = yes; then
17667 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17668 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17669 else
17670 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17671 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17675 sysv5* | sco3.2v5* | sco5v6*)
17676 # Note: We can NOT use -z defs as we might desire, because we do not
17677 # link with -lc, and that would cause any symbols used from libc to
17678 # always be unresolved, which means just about no library would
17679 # ever link correctly. If we're not using GNU ld we use -z text
17680 # though, which does catch some bad symbols but isn't as heavy-handed
17681 # as -z defs.
17682 no_undefined_flag_GCJ='${wl}-z,text'
17683 allow_undefined_flag_GCJ='${wl}-z,nodefs'
17684 archive_cmds_need_lc_GCJ=no
17685 hardcode_shlibpath_var_GCJ=no
17686 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
17687 hardcode_libdir_separator_GCJ=':'
17688 link_all_deplibs_GCJ=yes
17689 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
17690 runpath_var='LD_RUN_PATH'
17692 if test "$GCC" = yes; then
17693 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17694 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17695 else
17696 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17697 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17701 uts4*)
17702 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17703 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17704 hardcode_shlibpath_var_GCJ=no
17708 ld_shlibs_GCJ=no
17710 esac
17713 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
17714 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
17715 test "$ld_shlibs_GCJ" = no && can_build_shared=no
17718 # Do we need to explicitly link libc?
17720 case "x$archive_cmds_need_lc_GCJ" in
17721 x|xyes)
17722 # Assume -lc should be added
17723 archive_cmds_need_lc_GCJ=yes
17725 if test "$enable_shared" = yes && test "$GCC" = yes; then
17726 case $archive_cmds_GCJ in
17727 *'~'*)
17728 # FIXME: we may have to deal with multi-command sequences.
17730 '$CC '*)
17731 # Test whether the compiler implicitly links with -lc since on some
17732 # systems, -lgcc has to come before -lc. If gcc already passes -lc
17733 # to ld, don't add -lc before -lgcc.
17734 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
17735 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
17736 $rm conftest*
17737 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17739 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17740 (eval $ac_compile) 2>&5
17741 ac_status=$?
17742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17743 (exit $ac_status); } 2>conftest.err; then
17744 soname=conftest
17745 lib=conftest
17746 libobjs=conftest.$ac_objext
17747 deplibs=
17748 wl=$lt_prog_compiler_wl_GCJ
17749 pic_flag=$lt_prog_compiler_pic_GCJ
17750 compiler_flags=-v
17751 linker_flags=-v
17752 verstring=
17753 output_objdir=.
17754 libname=conftest
17755 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
17756 allow_undefined_flag_GCJ=
17757 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
17758 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17759 ac_status=$?
17760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17761 (exit $ac_status); }
17762 then
17763 archive_cmds_need_lc_GCJ=no
17764 else
17765 archive_cmds_need_lc_GCJ=yes
17767 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
17768 else
17769 cat conftest.err 1>&5
17771 $rm conftest*
17772 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
17773 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
17775 esac
17778 esac
17780 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17781 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
17782 library_names_spec=
17783 libname_spec='lib$name'
17784 soname_spec=
17785 shrext_cmds=".so"
17786 postinstall_cmds=
17787 postuninstall_cmds=
17788 finish_cmds=
17789 finish_eval=
17790 shlibpath_var=
17791 shlibpath_overrides_runpath=unknown
17792 version_type=none
17793 dynamic_linker="$host_os ld.so"
17794 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17796 need_lib_prefix=unknown
17797 hardcode_into_libs=no
17799 # when you set need_version to no, make sure it does not cause -set_version
17800 # flags to be left without arguments
17801 need_version=unknown
17803 case $host_os in
17804 aix3*)
17805 version_type=linux
17806 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17807 shlibpath_var=LIBPATH
17809 # AIX 3 has no versioning support, so we append a major version to the name.
17810 soname_spec='${libname}${release}${shared_ext}$major'
17813 aix4* | aix5*)
17814 version_type=linux
17815 need_lib_prefix=no
17816 need_version=no
17817 hardcode_into_libs=yes
17818 if test "$host_cpu" = ia64; then
17819 # AIX 5 supports IA64
17820 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17821 shlibpath_var=LD_LIBRARY_PATH
17822 else
17823 # With GCC up to 2.95.x, collect2 would create an import file
17824 # for dependence libraries. The import file would start with
17825 # the line `#! .'. This would cause the generated library to
17826 # depend on `.', always an invalid library. This was fixed in
17827 # development snapshots of GCC prior to 3.0.
17828 case $host_os in
17829 aix4 | aix4.[01] | aix4.[01].*)
17830 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17831 echo ' yes '
17832 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17834 else
17835 can_build_shared=no
17838 esac
17839 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17840 # soname into executable. Probably we can add versioning support to
17841 # collect2, so additional links can be useful in future.
17842 if test "$aix_use_runtimelinking" = yes; then
17843 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17844 # instead of lib<name>.a to let people know that these are not
17845 # typical AIX shared libraries.
17846 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17847 else
17848 # We preserve .a as extension for shared libraries through AIX4.2
17849 # and later when we are not doing run time linking.
17850 library_names_spec='${libname}${release}.a $libname.a'
17851 soname_spec='${libname}${release}${shared_ext}$major'
17853 shlibpath_var=LIBPATH
17857 amigaos*)
17858 library_names_spec='$libname.ixlibrary $libname.a'
17859 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17860 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'
17863 beos*)
17864 library_names_spec='${libname}${shared_ext}'
17865 dynamic_linker="$host_os ld.so"
17866 shlibpath_var=LIBRARY_PATH
17869 bsdi[45]*)
17870 version_type=linux
17871 need_version=no
17872 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17873 soname_spec='${libname}${release}${shared_ext}$major'
17874 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17875 shlibpath_var=LD_LIBRARY_PATH
17876 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17877 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17878 # the default ld.so.conf also contains /usr/contrib/lib and
17879 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17880 # libtool to hard-code these into programs
17883 cygwin* | mingw* | pw32*)
17884 version_type=windows
17885 shrext_cmds=".dll"
17886 need_version=no
17887 need_lib_prefix=no
17889 case $GCC,$host_os in
17890 yes,cygwin* | yes,mingw* | yes,pw32*)
17891 library_names_spec='$libname.dll.a'
17892 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17893 postinstall_cmds='base_file=`basename \${file}`~
17894 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17895 dldir=$destdir/`dirname \$dlpath`~
17896 test -d \$dldir || mkdir -p \$dldir~
17897 $install_prog $dir/$dlname \$dldir/$dlname~
17898 chmod a+x \$dldir/$dlname'
17899 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17900 dlpath=$dir/\$dldll~
17901 $rm \$dlpath'
17902 shlibpath_overrides_runpath=yes
17904 case $host_os in
17905 cygwin*)
17906 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17907 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17908 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17910 mingw*)
17911 # MinGW DLLs use traditional 'lib' prefix
17912 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17913 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17914 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17915 # It is most probably a Windows format PATH printed by
17916 # mingw gcc, but we are running on Cygwin. Gcc prints its search
17917 # path with ; separators, and with drive letters. We can handle the
17918 # drive letters (cygwin fileutils understands them), so leave them,
17919 # especially as we might pass files found there to a mingw objdump,
17920 # which wouldn't understand a cygwinified path. Ahh.
17921 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17922 else
17923 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17926 pw32*)
17927 # pw32 DLLs use 'pw' prefix rather than 'lib'
17928 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17930 esac
17934 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17936 esac
17937 dynamic_linker='Win32 ld.exe'
17938 # FIXME: first we should search . and the directory the executable is in
17939 shlibpath_var=PATH
17942 darwin* | rhapsody*)
17943 dynamic_linker="$host_os dyld"
17944 version_type=darwin
17945 need_lib_prefix=no
17946 need_version=no
17947 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17948 soname_spec='${libname}${release}${major}$shared_ext'
17949 shlibpath_overrides_runpath=yes
17950 shlibpath_var=DYLD_LIBRARY_PATH
17951 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17953 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17956 dgux*)
17957 version_type=linux
17958 need_lib_prefix=no
17959 need_version=no
17960 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17961 soname_spec='${libname}${release}${shared_ext}$major'
17962 shlibpath_var=LD_LIBRARY_PATH
17965 freebsd1*)
17966 dynamic_linker=no
17969 freebsd* | dragonfly*)
17970 # DragonFly does not have aout. When/if they implement a new
17971 # versioning mechanism, adjust this.
17972 if test -x /usr/bin/objformat; then
17973 objformat=`/usr/bin/objformat`
17974 else
17975 case $host_os in
17976 freebsd[123]*) objformat=aout ;;
17977 *) objformat=elf ;;
17978 esac
17980 version_type=freebsd-$objformat
17981 case $version_type in
17982 freebsd-elf*)
17983 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17984 need_version=no
17985 need_lib_prefix=no
17987 freebsd-*)
17988 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17989 need_version=yes
17991 esac
17992 shlibpath_var=LD_LIBRARY_PATH
17993 case $host_os in
17994 freebsd2*)
17995 shlibpath_overrides_runpath=yes
17997 freebsd3.[01]* | freebsdelf3.[01]*)
17998 shlibpath_overrides_runpath=yes
17999 hardcode_into_libs=yes
18001 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18002 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18003 shlibpath_overrides_runpath=no
18004 hardcode_into_libs=yes
18006 *) # from 4.6 on, and DragonFly
18007 shlibpath_overrides_runpath=yes
18008 hardcode_into_libs=yes
18010 esac
18013 gnu*)
18014 version_type=linux
18015 need_lib_prefix=no
18016 need_version=no
18017 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18018 soname_spec='${libname}${release}${shared_ext}$major'
18019 shlibpath_var=LD_LIBRARY_PATH
18020 hardcode_into_libs=yes
18023 hpux9* | hpux10* | hpux11*)
18024 # Give a soname corresponding to the major version so that dld.sl refuses to
18025 # link against other versions.
18026 version_type=sunos
18027 need_lib_prefix=no
18028 need_version=no
18029 case $host_cpu in
18030 ia64*)
18031 shrext_cmds='.so'
18032 hardcode_into_libs=yes
18033 dynamic_linker="$host_os dld.so"
18034 shlibpath_var=LD_LIBRARY_PATH
18035 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18036 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18037 soname_spec='${libname}${release}${shared_ext}$major'
18038 if test "X$HPUX_IA64_MODE" = X32; then
18039 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18040 else
18041 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18043 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18045 hppa*64*)
18046 shrext_cmds='.sl'
18047 hardcode_into_libs=yes
18048 dynamic_linker="$host_os dld.sl"
18049 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18050 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18051 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18052 soname_spec='${libname}${release}${shared_ext}$major'
18053 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18054 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18057 shrext_cmds='.sl'
18058 dynamic_linker="$host_os dld.sl"
18059 shlibpath_var=SHLIB_PATH
18060 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18061 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18062 soname_spec='${libname}${release}${shared_ext}$major'
18064 esac
18065 # HP-UX runs *really* slowly unless shared libraries are mode 555.
18066 postinstall_cmds='chmod 555 $lib'
18069 interix[3-9]*)
18070 version_type=linux
18071 need_lib_prefix=no
18072 need_version=no
18073 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18074 soname_spec='${libname}${release}${shared_ext}$major'
18075 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18076 shlibpath_var=LD_LIBRARY_PATH
18077 shlibpath_overrides_runpath=no
18078 hardcode_into_libs=yes
18081 irix5* | irix6* | nonstopux*)
18082 case $host_os in
18083 nonstopux*) version_type=nonstopux ;;
18085 if test "$lt_cv_prog_gnu_ld" = yes; then
18086 version_type=linux
18087 else
18088 version_type=irix
18089 fi ;;
18090 esac
18091 need_lib_prefix=no
18092 need_version=no
18093 soname_spec='${libname}${release}${shared_ext}$major'
18094 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18095 case $host_os in
18096 irix5* | nonstopux*)
18097 libsuff= shlibsuff=
18100 case $LD in # libtool.m4 will add one of these switches to LD
18101 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18102 libsuff= shlibsuff= libmagic=32-bit;;
18103 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18104 libsuff=32 shlibsuff=N32 libmagic=N32;;
18105 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18106 libsuff=64 shlibsuff=64 libmagic=64-bit;;
18107 *) libsuff= shlibsuff= libmagic=never-match;;
18108 esac
18110 esac
18111 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18112 shlibpath_overrides_runpath=no
18113 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18114 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18115 hardcode_into_libs=yes
18118 # No shared lib support for Linux oldld, aout, or coff.
18119 linux*oldld* | linux*aout* | linux*coff*)
18120 dynamic_linker=no
18123 # This must be Linux ELF.
18124 linux* | k*bsd*-gnu)
18125 version_type=linux
18126 need_lib_prefix=no
18127 need_version=no
18128 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18129 soname_spec='${libname}${release}${shared_ext}$major'
18130 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18131 shlibpath_var=LD_LIBRARY_PATH
18132 shlibpath_overrides_runpath=no
18133 # This implies no fast_install, which is unacceptable.
18134 # Some rework will be needed to allow for fast_install
18135 # before this can be enabled.
18136 hardcode_into_libs=yes
18137 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18138 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18140 # Append ld.so.conf contents to the search path
18141 if test -f /etc/ld.so.conf; then
18142 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
18143 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
18146 # We used to test for /lib/ld.so.1 and disable shared libraries on
18147 # powerpc, because MkLinux only supported shared libraries with the
18148 # GNU dynamic linker. Since this was broken with cross compilers,
18149 # most powerpc-linux boxes support dynamic linking these days and
18150 # people can always --disable-shared, the test was removed, and we
18151 # assume the GNU/Linux dynamic linker is in use.
18152 dynamic_linker='GNU/Linux ld.so'
18155 netbsd*)
18156 version_type=sunos
18157 need_lib_prefix=no
18158 need_version=no
18159 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18160 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18161 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18162 dynamic_linker='NetBSD (a.out) ld.so'
18163 else
18164 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18165 soname_spec='${libname}${release}${shared_ext}$major'
18166 dynamic_linker='NetBSD ld.elf_so'
18168 shlibpath_var=LD_LIBRARY_PATH
18169 shlibpath_overrides_runpath=yes
18170 hardcode_into_libs=yes
18173 newsos6)
18174 version_type=linux
18175 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18176 shlibpath_var=LD_LIBRARY_PATH
18177 shlibpath_overrides_runpath=yes
18180 nto-qnx*)
18181 version_type=linux
18182 need_lib_prefix=no
18183 need_version=no
18184 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18185 soname_spec='${libname}${release}${shared_ext}$major'
18186 shlibpath_var=LD_LIBRARY_PATH
18187 shlibpath_overrides_runpath=yes
18190 openbsd*)
18191 version_type=sunos
18192 sys_lib_dlsearch_path_spec="/usr/lib"
18193 need_lib_prefix=no
18194 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18195 case $host_os in
18196 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18197 *) need_version=no ;;
18198 esac
18199 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18200 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18201 shlibpath_var=LD_LIBRARY_PATH
18202 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18203 case $host_os in
18204 openbsd2.[89] | openbsd2.[89].*)
18205 shlibpath_overrides_runpath=no
18208 shlibpath_overrides_runpath=yes
18210 esac
18211 else
18212 shlibpath_overrides_runpath=yes
18216 os2*)
18217 libname_spec='$name'
18218 shrext_cmds=".dll"
18219 need_lib_prefix=no
18220 library_names_spec='$libname${shared_ext} $libname.a'
18221 dynamic_linker='OS/2 ld.exe'
18222 shlibpath_var=LIBPATH
18225 osf3* | osf4* | osf5*)
18226 version_type=osf
18227 need_lib_prefix=no
18228 need_version=no
18229 soname_spec='${libname}${release}${shared_ext}$major'
18230 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18231 shlibpath_var=LD_LIBRARY_PATH
18232 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18233 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18236 rdos*)
18237 dynamic_linker=no
18240 solaris*)
18241 version_type=linux
18242 need_lib_prefix=no
18243 need_version=no
18244 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18245 soname_spec='${libname}${release}${shared_ext}$major'
18246 shlibpath_var=LD_LIBRARY_PATH
18247 shlibpath_overrides_runpath=yes
18248 hardcode_into_libs=yes
18249 # ldd complains unless libraries are executable
18250 postinstall_cmds='chmod +x $lib'
18253 sunos4*)
18254 version_type=sunos
18255 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18256 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18257 shlibpath_var=LD_LIBRARY_PATH
18258 shlibpath_overrides_runpath=yes
18259 if test "$with_gnu_ld" = yes; then
18260 need_lib_prefix=no
18262 need_version=yes
18265 sysv4 | sysv4.3*)
18266 version_type=linux
18267 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18268 soname_spec='${libname}${release}${shared_ext}$major'
18269 shlibpath_var=LD_LIBRARY_PATH
18270 case $host_vendor in
18271 sni)
18272 shlibpath_overrides_runpath=no
18273 need_lib_prefix=no
18274 export_dynamic_flag_spec='${wl}-Blargedynsym'
18275 runpath_var=LD_RUN_PATH
18277 siemens)
18278 need_lib_prefix=no
18280 motorola)
18281 need_lib_prefix=no
18282 need_version=no
18283 shlibpath_overrides_runpath=no
18284 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18286 esac
18289 sysv4*MP*)
18290 if test -d /usr/nec ;then
18291 version_type=linux
18292 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18293 soname_spec='$libname${shared_ext}.$major'
18294 shlibpath_var=LD_LIBRARY_PATH
18298 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18299 version_type=freebsd-elf
18300 need_lib_prefix=no
18301 need_version=no
18302 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18303 soname_spec='${libname}${release}${shared_ext}$major'
18304 shlibpath_var=LD_LIBRARY_PATH
18305 hardcode_into_libs=yes
18306 if test "$with_gnu_ld" = yes; then
18307 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18308 shlibpath_overrides_runpath=no
18309 else
18310 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18311 shlibpath_overrides_runpath=yes
18312 case $host_os in
18313 sco3.2v5*)
18314 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18316 esac
18318 sys_lib_dlsearch_path_spec='/usr/lib'
18321 uts4*)
18322 version_type=linux
18323 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18324 soname_spec='${libname}${release}${shared_ext}$major'
18325 shlibpath_var=LD_LIBRARY_PATH
18329 dynamic_linker=no
18331 esac
18332 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18333 echo "${ECHO_T}$dynamic_linker" >&6; }
18334 test "$dynamic_linker" = no && can_build_shared=no
18336 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18337 if test "$GCC" = yes; then
18338 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18341 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18342 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
18343 hardcode_action_GCJ=
18344 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
18345 test -n "$runpath_var_GCJ" || \
18346 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
18348 # We can hardcode non-existant directories.
18349 if test "$hardcode_direct_GCJ" != no &&
18350 # If the only mechanism to avoid hardcoding is shlibpath_var, we
18351 # have to relink, otherwise we might link with an installed library
18352 # when we should be linking with a yet-to-be-installed one
18353 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18354 test "$hardcode_minus_L_GCJ" != no; then
18355 # Linking always hardcodes the temporary library directory.
18356 hardcode_action_GCJ=relink
18357 else
18358 # We can link without hardcoding, and we can hardcode nonexisting dirs.
18359 hardcode_action_GCJ=immediate
18361 else
18362 # We cannot hardcode anything, or else we can only hardcode existing
18363 # directories.
18364 hardcode_action_GCJ=unsupported
18366 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
18367 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
18369 if test "$hardcode_action_GCJ" = relink; then
18370 # Fast installation is not supported
18371 enable_fast_install=no
18372 elif test "$shlibpath_overrides_runpath" = yes ||
18373 test "$enable_shared" = no; then
18374 # Fast installation is not necessary
18375 enable_fast_install=needless
18379 # The else clause should only fire when bootstrapping the
18380 # libtool distribution, otherwise you forgot to ship ltmain.sh
18381 # with your package, and you will get complaints that there are
18382 # no rules to generate ltmain.sh.
18383 if test -f "$ltmain"; then
18384 # See if we are running on zsh, and set the options which allow our commands through
18385 # without removal of \ escapes.
18386 if test -n "${ZSH_VERSION+set}" ; then
18387 setopt NO_GLOB_SUBST
18389 # Now quote all the things that may contain metacharacters while being
18390 # careful not to overquote the AC_SUBSTed values. We take copies of the
18391 # variables and quote the copies for generation of the libtool script.
18392 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18393 SED SHELL STRIP \
18394 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18395 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18396 deplibs_check_method reload_flag reload_cmds need_locks \
18397 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18398 lt_cv_sys_global_symbol_to_c_name_address \
18399 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18400 old_postinstall_cmds old_postuninstall_cmds \
18401 compiler_GCJ \
18402 CC_GCJ \
18403 LD_GCJ \
18404 lt_prog_compiler_wl_GCJ \
18405 lt_prog_compiler_pic_GCJ \
18406 lt_prog_compiler_static_GCJ \
18407 lt_prog_compiler_no_builtin_flag_GCJ \
18408 export_dynamic_flag_spec_GCJ \
18409 thread_safe_flag_spec_GCJ \
18410 whole_archive_flag_spec_GCJ \
18411 enable_shared_with_static_runtimes_GCJ \
18412 old_archive_cmds_GCJ \
18413 old_archive_from_new_cmds_GCJ \
18414 predep_objects_GCJ \
18415 postdep_objects_GCJ \
18416 predeps_GCJ \
18417 postdeps_GCJ \
18418 compiler_lib_search_path_GCJ \
18419 archive_cmds_GCJ \
18420 archive_expsym_cmds_GCJ \
18421 postinstall_cmds_GCJ \
18422 postuninstall_cmds_GCJ \
18423 old_archive_from_expsyms_cmds_GCJ \
18424 allow_undefined_flag_GCJ \
18425 no_undefined_flag_GCJ \
18426 export_symbols_cmds_GCJ \
18427 hardcode_libdir_flag_spec_GCJ \
18428 hardcode_libdir_flag_spec_ld_GCJ \
18429 hardcode_libdir_separator_GCJ \
18430 hardcode_automatic_GCJ \
18431 module_cmds_GCJ \
18432 module_expsym_cmds_GCJ \
18433 lt_cv_prog_compiler_c_o_GCJ \
18434 fix_srcfile_path_GCJ \
18435 exclude_expsyms_GCJ \
18436 include_expsyms_GCJ; do
18438 case $var in
18439 old_archive_cmds_GCJ | \
18440 old_archive_from_new_cmds_GCJ | \
18441 archive_cmds_GCJ | \
18442 archive_expsym_cmds_GCJ | \
18443 module_cmds_GCJ | \
18444 module_expsym_cmds_GCJ | \
18445 old_archive_from_expsyms_cmds_GCJ | \
18446 export_symbols_cmds_GCJ | \
18447 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18448 postinstall_cmds | postuninstall_cmds | \
18449 old_postinstall_cmds | old_postuninstall_cmds | \
18450 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18451 # Double-quote double-evaled strings.
18452 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18455 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18457 esac
18458 done
18460 case $lt_echo in
18461 *'\$0 --fallback-echo"')
18462 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18464 esac
18466 cfgfile="$ofile"
18468 cat <<__EOF__ >> "$cfgfile"
18469 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18471 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18473 # Shell to use when invoking shell scripts.
18474 SHELL=$lt_SHELL
18476 # Whether or not to build shared libraries.
18477 build_libtool_libs=$enable_shared
18479 # Whether or not to build static libraries.
18480 build_old_libs=$enable_static
18482 # Whether or not to add -lc for building shared libraries.
18483 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18485 # Whether or not to disallow shared libs when runtime libs are static
18486 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18488 # Whether or not to optimize for fast installation.
18489 fast_install=$enable_fast_install
18491 # The host system.
18492 host_alias=$host_alias
18493 host=$host
18494 host_os=$host_os
18496 # The build system.
18497 build_alias=$build_alias
18498 build=$build
18499 build_os=$build_os
18501 # An echo program that does not interpret backslashes.
18502 echo=$lt_echo
18504 # The archiver.
18505 AR=$lt_AR
18506 AR_FLAGS=$lt_AR_FLAGS
18508 # A C compiler.
18509 LTCC=$lt_LTCC
18511 # LTCC compiler flags.
18512 LTCFLAGS=$lt_LTCFLAGS
18514 # A language-specific compiler.
18515 CC=$lt_compiler_GCJ
18517 # Is the compiler the GNU C compiler?
18518 with_gcc=$GCC_GCJ
18520 # An ERE matcher.
18521 EGREP=$lt_EGREP
18523 # The linker used to build libraries.
18524 LD=$lt_LD_GCJ
18526 # Whether we need hard or soft links.
18527 LN_S=$lt_LN_S
18529 # A BSD-compatible nm program.
18530 NM=$lt_NM
18532 # A symbol stripping program
18533 STRIP=$lt_STRIP
18535 # Used to examine libraries when file_magic_cmd begins "file"
18536 MAGIC_CMD=$MAGIC_CMD
18538 # Used on cygwin: DLL creation program.
18539 DLLTOOL="$DLLTOOL"
18541 # Used on cygwin: object dumper.
18542 OBJDUMP="$OBJDUMP"
18544 # Used on cygwin: assembler.
18545 AS="$AS"
18547 # The name of the directory that contains temporary libtool files.
18548 objdir=$objdir
18550 # How to create reloadable object files.
18551 reload_flag=$lt_reload_flag
18552 reload_cmds=$lt_reload_cmds
18554 # How to pass a linker flag through the compiler.
18555 wl=$lt_lt_prog_compiler_wl_GCJ
18557 # Object file suffix (normally "o").
18558 objext="$ac_objext"
18560 # Old archive suffix (normally "a").
18561 libext="$libext"
18563 # Shared library suffix (normally ".so").
18564 shrext_cmds='$shrext_cmds'
18566 # Executable file suffix (normally "").
18567 exeext="$exeext"
18569 # Additional compiler flags for building library objects.
18570 pic_flag=$lt_lt_prog_compiler_pic_GCJ
18571 pic_mode=$pic_mode
18573 # What is the maximum length of a command?
18574 max_cmd_len=$lt_cv_sys_max_cmd_len
18576 # Does compiler simultaneously support -c and -o options?
18577 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18579 # Must we lock files when doing compilation?
18580 need_locks=$lt_need_locks
18582 # Do we need the lib prefix for modules?
18583 need_lib_prefix=$need_lib_prefix
18585 # Do we need a version for libraries?
18586 need_version=$need_version
18588 # Whether dlopen is supported.
18589 dlopen_support=$enable_dlopen
18591 # Whether dlopen of programs is supported.
18592 dlopen_self=$enable_dlopen_self
18594 # Whether dlopen of statically linked programs is supported.
18595 dlopen_self_static=$enable_dlopen_self_static
18597 # Compiler flag to prevent dynamic linking.
18598 link_static_flag=$lt_lt_prog_compiler_static_GCJ
18600 # Compiler flag to turn off builtin functions.
18601 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18603 # Compiler flag to allow reflexive dlopens.
18604 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18606 # Compiler flag to generate shared objects directly from archives.
18607 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18609 # Compiler flag to generate thread-safe objects.
18610 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18612 # Library versioning type.
18613 version_type=$version_type
18615 # Format of library name prefix.
18616 libname_spec=$lt_libname_spec
18618 # List of archive names. First name is the real one, the rest are links.
18619 # The last name is the one that the linker finds with -lNAME.
18620 library_names_spec=$lt_library_names_spec
18622 # The coded name of the library, if different from the real name.
18623 soname_spec=$lt_soname_spec
18625 # Commands used to build and install an old-style archive.
18626 RANLIB=$lt_RANLIB
18627 old_archive_cmds=$lt_old_archive_cmds_GCJ
18628 old_postinstall_cmds=$lt_old_postinstall_cmds
18629 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18631 # Create an old-style archive from a shared archive.
18632 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18634 # Create a temporary old-style archive to link instead of a shared archive.
18635 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18637 # Commands used to build and install a shared archive.
18638 archive_cmds=$lt_archive_cmds_GCJ
18639 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18640 postinstall_cmds=$lt_postinstall_cmds
18641 postuninstall_cmds=$lt_postuninstall_cmds
18643 # Commands used to build a loadable module (assumed same as above if empty)
18644 module_cmds=$lt_module_cmds_GCJ
18645 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18647 # Commands to strip libraries.
18648 old_striplib=$lt_old_striplib
18649 striplib=$lt_striplib
18651 # Dependencies to place before the objects being linked to create a
18652 # shared library.
18653 predep_objects=$lt_predep_objects_GCJ
18655 # Dependencies to place after the objects being linked to create a
18656 # shared library.
18657 postdep_objects=$lt_postdep_objects_GCJ
18659 # Dependencies to place before the objects being linked to create a
18660 # shared library.
18661 predeps=$lt_predeps_GCJ
18663 # Dependencies to place after the objects being linked to create a
18664 # shared library.
18665 postdeps=$lt_postdeps_GCJ
18667 # The library search path used internally by the compiler when linking
18668 # a shared library.
18669 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
18671 # Method to check whether dependent libraries are shared objects.
18672 deplibs_check_method=$lt_deplibs_check_method
18674 # Command to use when deplibs_check_method == file_magic.
18675 file_magic_cmd=$lt_file_magic_cmd
18677 # Flag that allows shared libraries with undefined symbols to be built.
18678 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18680 # Flag that forces no undefined symbols.
18681 no_undefined_flag=$lt_no_undefined_flag_GCJ
18683 # Commands used to finish a libtool library installation in a directory.
18684 finish_cmds=$lt_finish_cmds
18686 # Same as above, but a single script fragment to be evaled but not shown.
18687 finish_eval=$lt_finish_eval
18689 # Take the output of nm and produce a listing of raw symbols and C names.
18690 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18692 # Transform the output of nm in a proper C declaration
18693 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18695 # Transform the output of nm in a C name address pair
18696 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18698 # This is the shared library runtime path variable.
18699 runpath_var=$runpath_var
18701 # This is the shared library path variable.
18702 shlibpath_var=$shlibpath_var
18704 # Is shlibpath searched before the hard-coded library search path?
18705 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18707 # How to hardcode a shared library path into an executable.
18708 hardcode_action=$hardcode_action_GCJ
18710 # Whether we should hardcode library paths into libraries.
18711 hardcode_into_libs=$hardcode_into_libs
18713 # Flag to hardcode \$libdir into a binary during linking.
18714 # This must work even if \$libdir does not exist.
18715 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18717 # If ld is used when linking, flag to hardcode \$libdir into
18718 # a binary during linking. This must work even if \$libdir does
18719 # not exist.
18720 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18722 # Whether we need a single -rpath flag with a separated argument.
18723 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18725 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18726 # resulting binary.
18727 hardcode_direct=$hardcode_direct_GCJ
18729 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18730 # resulting binary.
18731 hardcode_minus_L=$hardcode_minus_L_GCJ
18733 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18734 # the resulting binary.
18735 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18737 # Set to yes if building a shared library automatically hardcodes DIR into the library
18738 # and all subsequent libraries and executables linked against it.
18739 hardcode_automatic=$hardcode_automatic_GCJ
18741 # Variables whose values should be saved in libtool wrapper scripts and
18742 # restored at relink time.
18743 variables_saved_for_relink="$variables_saved_for_relink"
18745 # Whether libtool must link a program against all its dependency libraries.
18746 link_all_deplibs=$link_all_deplibs_GCJ
18748 # Compile-time system search path for libraries
18749 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18751 # Run-time system search path for libraries
18752 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18754 # Fix the shell variable \$srcfile for the compiler.
18755 fix_srcfile_path=$lt_fix_srcfile_path
18757 # Set to yes if exported symbols are required.
18758 always_export_symbols=$always_export_symbols_GCJ
18760 # The commands to list exported symbols.
18761 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18763 # The commands to extract the exported symbol list from a shared archive.
18764 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18766 # Symbols that should not be listed in the preloaded symbols.
18767 exclude_expsyms=$lt_exclude_expsyms_GCJ
18769 # Symbols that must always be exported.
18770 include_expsyms=$lt_include_expsyms_GCJ
18772 # ### END LIBTOOL TAG CONFIG: $tagname
18774 __EOF__
18777 else
18778 # If there is no Makefile yet, we rely on a make rule to execute
18779 # `config.status --recheck' to rerun these tests and create the
18780 # libtool script then.
18781 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18782 if test -f "$ltmain_in"; then
18783 test -f Makefile && make "$ltmain"
18788 ac_ext=cpp
18789 ac_cpp='$CXXCPP $CPPFLAGS'
18790 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18791 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18792 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18794 CC="$lt_save_CC"
18796 else
18797 tagname=""
18804 # Source file extension for RC test sources.
18805 ac_ext=rc
18807 # Object file extension for compiled RC test sources.
18808 objext=o
18809 objext_RC=$objext
18811 # Code to be used in simple compile tests
18812 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
18814 # Code to be used in simple link tests
18815 lt_simple_link_test_code="$lt_simple_compile_test_code"
18817 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18819 # If no C compiler was specified, use CC.
18820 LTCC=${LTCC-"$CC"}
18822 # If no C compiler flags were specified, use CFLAGS.
18823 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18825 # Allow CC to be a program name with arguments.
18826 compiler=$CC
18829 # save warnings/boilerplate of simple test code
18830 ac_outfile=conftest.$ac_objext
18831 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
18832 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18833 _lt_compiler_boilerplate=`cat conftest.err`
18834 $rm conftest*
18836 ac_outfile=conftest.$ac_objext
18837 echo "$lt_simple_link_test_code" >conftest.$ac_ext
18838 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18839 _lt_linker_boilerplate=`cat conftest.err`
18840 $rm conftest*
18843 # Allow CC to be a program name with arguments.
18844 lt_save_CC="$CC"
18845 CC=${RC-"windres"}
18846 compiler=$CC
18847 compiler_RC=$CC
18848 for cc_temp in $compiler""; do
18849 case $cc_temp in
18850 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18851 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18852 \-*) ;;
18853 *) break;;
18854 esac
18855 done
18856 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18858 lt_cv_prog_compiler_c_o_RC=yes
18860 # The else clause should only fire when bootstrapping the
18861 # libtool distribution, otherwise you forgot to ship ltmain.sh
18862 # with your package, and you will get complaints that there are
18863 # no rules to generate ltmain.sh.
18864 if test -f "$ltmain"; then
18865 # See if we are running on zsh, and set the options which allow our commands through
18866 # without removal of \ escapes.
18867 if test -n "${ZSH_VERSION+set}" ; then
18868 setopt NO_GLOB_SUBST
18870 # Now quote all the things that may contain metacharacters while being
18871 # careful not to overquote the AC_SUBSTed values. We take copies of the
18872 # variables and quote the copies for generation of the libtool script.
18873 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18874 SED SHELL STRIP \
18875 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18876 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18877 deplibs_check_method reload_flag reload_cmds need_locks \
18878 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18879 lt_cv_sys_global_symbol_to_c_name_address \
18880 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18881 old_postinstall_cmds old_postuninstall_cmds \
18882 compiler_RC \
18883 CC_RC \
18884 LD_RC \
18885 lt_prog_compiler_wl_RC \
18886 lt_prog_compiler_pic_RC \
18887 lt_prog_compiler_static_RC \
18888 lt_prog_compiler_no_builtin_flag_RC \
18889 export_dynamic_flag_spec_RC \
18890 thread_safe_flag_spec_RC \
18891 whole_archive_flag_spec_RC \
18892 enable_shared_with_static_runtimes_RC \
18893 old_archive_cmds_RC \
18894 old_archive_from_new_cmds_RC \
18895 predep_objects_RC \
18896 postdep_objects_RC \
18897 predeps_RC \
18898 postdeps_RC \
18899 compiler_lib_search_path_RC \
18900 archive_cmds_RC \
18901 archive_expsym_cmds_RC \
18902 postinstall_cmds_RC \
18903 postuninstall_cmds_RC \
18904 old_archive_from_expsyms_cmds_RC \
18905 allow_undefined_flag_RC \
18906 no_undefined_flag_RC \
18907 export_symbols_cmds_RC \
18908 hardcode_libdir_flag_spec_RC \
18909 hardcode_libdir_flag_spec_ld_RC \
18910 hardcode_libdir_separator_RC \
18911 hardcode_automatic_RC \
18912 module_cmds_RC \
18913 module_expsym_cmds_RC \
18914 lt_cv_prog_compiler_c_o_RC \
18915 fix_srcfile_path_RC \
18916 exclude_expsyms_RC \
18917 include_expsyms_RC; do
18919 case $var in
18920 old_archive_cmds_RC | \
18921 old_archive_from_new_cmds_RC | \
18922 archive_cmds_RC | \
18923 archive_expsym_cmds_RC | \
18924 module_cmds_RC | \
18925 module_expsym_cmds_RC | \
18926 old_archive_from_expsyms_cmds_RC | \
18927 export_symbols_cmds_RC | \
18928 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18929 postinstall_cmds | postuninstall_cmds | \
18930 old_postinstall_cmds | old_postuninstall_cmds | \
18931 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18932 # Double-quote double-evaled strings.
18933 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18936 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18938 esac
18939 done
18941 case $lt_echo in
18942 *'\$0 --fallback-echo"')
18943 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18945 esac
18947 cfgfile="$ofile"
18949 cat <<__EOF__ >> "$cfgfile"
18950 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18952 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18954 # Shell to use when invoking shell scripts.
18955 SHELL=$lt_SHELL
18957 # Whether or not to build shared libraries.
18958 build_libtool_libs=$enable_shared
18960 # Whether or not to build static libraries.
18961 build_old_libs=$enable_static
18963 # Whether or not to add -lc for building shared libraries.
18964 build_libtool_need_lc=$archive_cmds_need_lc_RC
18966 # Whether or not to disallow shared libs when runtime libs are static
18967 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18969 # Whether or not to optimize for fast installation.
18970 fast_install=$enable_fast_install
18972 # The host system.
18973 host_alias=$host_alias
18974 host=$host
18975 host_os=$host_os
18977 # The build system.
18978 build_alias=$build_alias
18979 build=$build
18980 build_os=$build_os
18982 # An echo program that does not interpret backslashes.
18983 echo=$lt_echo
18985 # The archiver.
18986 AR=$lt_AR
18987 AR_FLAGS=$lt_AR_FLAGS
18989 # A C compiler.
18990 LTCC=$lt_LTCC
18992 # LTCC compiler flags.
18993 LTCFLAGS=$lt_LTCFLAGS
18995 # A language-specific compiler.
18996 CC=$lt_compiler_RC
18998 # Is the compiler the GNU C compiler?
18999 with_gcc=$GCC_RC
19001 # An ERE matcher.
19002 EGREP=$lt_EGREP
19004 # The linker used to build libraries.
19005 LD=$lt_LD_RC
19007 # Whether we need hard or soft links.
19008 LN_S=$lt_LN_S
19010 # A BSD-compatible nm program.
19011 NM=$lt_NM
19013 # A symbol stripping program
19014 STRIP=$lt_STRIP
19016 # Used to examine libraries when file_magic_cmd begins "file"
19017 MAGIC_CMD=$MAGIC_CMD
19019 # Used on cygwin: DLL creation program.
19020 DLLTOOL="$DLLTOOL"
19022 # Used on cygwin: object dumper.
19023 OBJDUMP="$OBJDUMP"
19025 # Used on cygwin: assembler.
19026 AS="$AS"
19028 # The name of the directory that contains temporary libtool files.
19029 objdir=$objdir
19031 # How to create reloadable object files.
19032 reload_flag=$lt_reload_flag
19033 reload_cmds=$lt_reload_cmds
19035 # How to pass a linker flag through the compiler.
19036 wl=$lt_lt_prog_compiler_wl_RC
19038 # Object file suffix (normally "o").
19039 objext="$ac_objext"
19041 # Old archive suffix (normally "a").
19042 libext="$libext"
19044 # Shared library suffix (normally ".so").
19045 shrext_cmds='$shrext_cmds'
19047 # Executable file suffix (normally "").
19048 exeext="$exeext"
19050 # Additional compiler flags for building library objects.
19051 pic_flag=$lt_lt_prog_compiler_pic_RC
19052 pic_mode=$pic_mode
19054 # What is the maximum length of a command?
19055 max_cmd_len=$lt_cv_sys_max_cmd_len
19057 # Does compiler simultaneously support -c and -o options?
19058 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19060 # Must we lock files when doing compilation?
19061 need_locks=$lt_need_locks
19063 # Do we need the lib prefix for modules?
19064 need_lib_prefix=$need_lib_prefix
19066 # Do we need a version for libraries?
19067 need_version=$need_version
19069 # Whether dlopen is supported.
19070 dlopen_support=$enable_dlopen
19072 # Whether dlopen of programs is supported.
19073 dlopen_self=$enable_dlopen_self
19075 # Whether dlopen of statically linked programs is supported.
19076 dlopen_self_static=$enable_dlopen_self_static
19078 # Compiler flag to prevent dynamic linking.
19079 link_static_flag=$lt_lt_prog_compiler_static_RC
19081 # Compiler flag to turn off builtin functions.
19082 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19084 # Compiler flag to allow reflexive dlopens.
19085 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19087 # Compiler flag to generate shared objects directly from archives.
19088 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19090 # Compiler flag to generate thread-safe objects.
19091 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19093 # Library versioning type.
19094 version_type=$version_type
19096 # Format of library name prefix.
19097 libname_spec=$lt_libname_spec
19099 # List of archive names. First name is the real one, the rest are links.
19100 # The last name is the one that the linker finds with -lNAME.
19101 library_names_spec=$lt_library_names_spec
19103 # The coded name of the library, if different from the real name.
19104 soname_spec=$lt_soname_spec
19106 # Commands used to build and install an old-style archive.
19107 RANLIB=$lt_RANLIB
19108 old_archive_cmds=$lt_old_archive_cmds_RC
19109 old_postinstall_cmds=$lt_old_postinstall_cmds
19110 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19112 # Create an old-style archive from a shared archive.
19113 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19115 # Create a temporary old-style archive to link instead of a shared archive.
19116 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19118 # Commands used to build and install a shared archive.
19119 archive_cmds=$lt_archive_cmds_RC
19120 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19121 postinstall_cmds=$lt_postinstall_cmds
19122 postuninstall_cmds=$lt_postuninstall_cmds
19124 # Commands used to build a loadable module (assumed same as above if empty)
19125 module_cmds=$lt_module_cmds_RC
19126 module_expsym_cmds=$lt_module_expsym_cmds_RC
19128 # Commands to strip libraries.
19129 old_striplib=$lt_old_striplib
19130 striplib=$lt_striplib
19132 # Dependencies to place before the objects being linked to create a
19133 # shared library.
19134 predep_objects=$lt_predep_objects_RC
19136 # Dependencies to place after the objects being linked to create a
19137 # shared library.
19138 postdep_objects=$lt_postdep_objects_RC
19140 # Dependencies to place before the objects being linked to create a
19141 # shared library.
19142 predeps=$lt_predeps_RC
19144 # Dependencies to place after the objects being linked to create a
19145 # shared library.
19146 postdeps=$lt_postdeps_RC
19148 # The library search path used internally by the compiler when linking
19149 # a shared library.
19150 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19152 # Method to check whether dependent libraries are shared objects.
19153 deplibs_check_method=$lt_deplibs_check_method
19155 # Command to use when deplibs_check_method == file_magic.
19156 file_magic_cmd=$lt_file_magic_cmd
19158 # Flag that allows shared libraries with undefined symbols to be built.
19159 allow_undefined_flag=$lt_allow_undefined_flag_RC
19161 # Flag that forces no undefined symbols.
19162 no_undefined_flag=$lt_no_undefined_flag_RC
19164 # Commands used to finish a libtool library installation in a directory.
19165 finish_cmds=$lt_finish_cmds
19167 # Same as above, but a single script fragment to be evaled but not shown.
19168 finish_eval=$lt_finish_eval
19170 # Take the output of nm and produce a listing of raw symbols and C names.
19171 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19173 # Transform the output of nm in a proper C declaration
19174 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19176 # Transform the output of nm in a C name address pair
19177 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19179 # This is the shared library runtime path variable.
19180 runpath_var=$runpath_var
19182 # This is the shared library path variable.
19183 shlibpath_var=$shlibpath_var
19185 # Is shlibpath searched before the hard-coded library search path?
19186 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19188 # How to hardcode a shared library path into an executable.
19189 hardcode_action=$hardcode_action_RC
19191 # Whether we should hardcode library paths into libraries.
19192 hardcode_into_libs=$hardcode_into_libs
19194 # Flag to hardcode \$libdir into a binary during linking.
19195 # This must work even if \$libdir does not exist.
19196 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19198 # If ld is used when linking, flag to hardcode \$libdir into
19199 # a binary during linking. This must work even if \$libdir does
19200 # not exist.
19201 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19203 # Whether we need a single -rpath flag with a separated argument.
19204 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19206 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19207 # resulting binary.
19208 hardcode_direct=$hardcode_direct_RC
19210 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19211 # resulting binary.
19212 hardcode_minus_L=$hardcode_minus_L_RC
19214 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19215 # the resulting binary.
19216 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19218 # Set to yes if building a shared library automatically hardcodes DIR into the library
19219 # and all subsequent libraries and executables linked against it.
19220 hardcode_automatic=$hardcode_automatic_RC
19222 # Variables whose values should be saved in libtool wrapper scripts and
19223 # restored at relink time.
19224 variables_saved_for_relink="$variables_saved_for_relink"
19226 # Whether libtool must link a program against all its dependency libraries.
19227 link_all_deplibs=$link_all_deplibs_RC
19229 # Compile-time system search path for libraries
19230 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19232 # Run-time system search path for libraries
19233 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19235 # Fix the shell variable \$srcfile for the compiler.
19236 fix_srcfile_path=$lt_fix_srcfile_path
19238 # Set to yes if exported symbols are required.
19239 always_export_symbols=$always_export_symbols_RC
19241 # The commands to list exported symbols.
19242 export_symbols_cmds=$lt_export_symbols_cmds_RC
19244 # The commands to extract the exported symbol list from a shared archive.
19245 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19247 # Symbols that should not be listed in the preloaded symbols.
19248 exclude_expsyms=$lt_exclude_expsyms_RC
19250 # Symbols that must always be exported.
19251 include_expsyms=$lt_include_expsyms_RC
19253 # ### END LIBTOOL TAG CONFIG: $tagname
19255 __EOF__
19258 else
19259 # If there is no Makefile yet, we rely on a make rule to execute
19260 # `config.status --recheck' to rerun these tests and create the
19261 # libtool script then.
19262 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19263 if test -f "$ltmain_in"; then
19264 test -f Makefile && make "$ltmain"
19269 ac_ext=cpp
19270 ac_cpp='$CXXCPP $CPPFLAGS'
19271 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19272 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19273 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19275 CC="$lt_save_CC"
19280 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19281 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19282 { (exit 1); exit 1; }; }
19284 esac
19286 # Append the new tag name to the list of available tags.
19287 if test -n "$tagname" ; then
19288 available_tags="$available_tags $tagname"
19291 done
19292 IFS="$lt_save_ifs"
19294 # Now substitute the updated list of available tags.
19295 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19296 mv "${ofile}T" "$ofile"
19297 chmod +x "$ofile"
19298 else
19299 rm -f "${ofile}T"
19300 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19301 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19302 { (exit 1); exit 1; }; }
19308 # This can be used to rebuild libtool when needed
19309 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19311 # Always use our own libtool.
19312 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19314 # Prevent multiple expansion
19335 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
19336 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
19337 if test "${ac_cv_c_bigendian+set}" = set; then
19338 echo $ECHO_N "(cached) $ECHO_C" >&6
19339 else
19340 # See if sys/param.h defines the BYTE_ORDER macro.
19341 cat >conftest.$ac_ext <<_ACEOF
19342 /* confdefs.h. */
19343 _ACEOF
19344 cat confdefs.h >>conftest.$ac_ext
19345 cat >>conftest.$ac_ext <<_ACEOF
19346 /* end confdefs.h. */
19347 #include <sys/types.h>
19348 #include <sys/param.h>
19351 main ()
19353 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
19354 && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
19355 bogus endian macros
19356 #endif
19359 return 0;
19361 _ACEOF
19362 rm -f conftest.$ac_objext
19363 if { (ac_try="$ac_compile"
19364 case "(($ac_try" in
19365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19366 *) ac_try_echo=$ac_try;;
19367 esac
19368 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19369 (eval "$ac_compile") 2>conftest.er1
19370 ac_status=$?
19371 grep -v '^ *+' conftest.er1 >conftest.err
19372 rm -f conftest.er1
19373 cat conftest.err >&5
19374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19375 (exit $ac_status); } && {
19376 test -z "$ac_cxx_werror_flag" ||
19377 test ! -s conftest.err
19378 } && test -s conftest.$ac_objext; then
19379 # It does; now see whether it defined to BIG_ENDIAN or not.
19380 cat >conftest.$ac_ext <<_ACEOF
19381 /* confdefs.h. */
19382 _ACEOF
19383 cat confdefs.h >>conftest.$ac_ext
19384 cat >>conftest.$ac_ext <<_ACEOF
19385 /* end confdefs.h. */
19386 #include <sys/types.h>
19387 #include <sys/param.h>
19390 main ()
19392 #if BYTE_ORDER != BIG_ENDIAN
19393 not big endian
19394 #endif
19397 return 0;
19399 _ACEOF
19400 rm -f conftest.$ac_objext
19401 if { (ac_try="$ac_compile"
19402 case "(($ac_try" in
19403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19404 *) ac_try_echo=$ac_try;;
19405 esac
19406 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19407 (eval "$ac_compile") 2>conftest.er1
19408 ac_status=$?
19409 grep -v '^ *+' conftest.er1 >conftest.err
19410 rm -f conftest.er1
19411 cat conftest.err >&5
19412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19413 (exit $ac_status); } && {
19414 test -z "$ac_cxx_werror_flag" ||
19415 test ! -s conftest.err
19416 } && test -s conftest.$ac_objext; then
19417 ac_cv_c_bigendian=yes
19418 else
19419 echo "$as_me: failed program was:" >&5
19420 sed 's/^/| /' conftest.$ac_ext >&5
19422 ac_cv_c_bigendian=no
19425 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19426 else
19427 echo "$as_me: failed program was:" >&5
19428 sed 's/^/| /' conftest.$ac_ext >&5
19430 # It does not; compile a test program.
19431 if test "$cross_compiling" = yes; then
19432 # try to guess the endianness by grepping values into an object file
19433 ac_cv_c_bigendian=unknown
19434 cat >conftest.$ac_ext <<_ACEOF
19435 /* confdefs.h. */
19436 _ACEOF
19437 cat confdefs.h >>conftest.$ac_ext
19438 cat >>conftest.$ac_ext <<_ACEOF
19439 /* end confdefs.h. */
19440 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
19441 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
19442 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
19443 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
19444 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
19445 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
19447 main ()
19449 _ascii (); _ebcdic ();
19451 return 0;
19453 _ACEOF
19454 rm -f conftest.$ac_objext
19455 if { (ac_try="$ac_compile"
19456 case "(($ac_try" in
19457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19458 *) ac_try_echo=$ac_try;;
19459 esac
19460 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19461 (eval "$ac_compile") 2>conftest.er1
19462 ac_status=$?
19463 grep -v '^ *+' conftest.er1 >conftest.err
19464 rm -f conftest.er1
19465 cat conftest.err >&5
19466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19467 (exit $ac_status); } && {
19468 test -z "$ac_cxx_werror_flag" ||
19469 test ! -s conftest.err
19470 } && test -s conftest.$ac_objext; then
19471 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
19472 ac_cv_c_bigendian=yes
19474 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
19475 if test "$ac_cv_c_bigendian" = unknown; then
19476 ac_cv_c_bigendian=no
19477 else
19478 # finding both strings is unlikely to happen, but who knows?
19479 ac_cv_c_bigendian=unknown
19482 else
19483 echo "$as_me: failed program was:" >&5
19484 sed 's/^/| /' conftest.$ac_ext >&5
19489 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19490 else
19491 cat >conftest.$ac_ext <<_ACEOF
19492 /* confdefs.h. */
19493 _ACEOF
19494 cat confdefs.h >>conftest.$ac_ext
19495 cat >>conftest.$ac_ext <<_ACEOF
19496 /* end confdefs.h. */
19497 $ac_includes_default
19499 main ()
19502 /* Are we little or big endian? From Harbison&Steele. */
19503 union
19505 long int l;
19506 char c[sizeof (long int)];
19507 } u;
19508 u.l = 1;
19509 return u.c[sizeof (long int) - 1] == 1;
19512 return 0;
19514 _ACEOF
19515 rm -f conftest$ac_exeext
19516 if { (ac_try="$ac_link"
19517 case "(($ac_try" in
19518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19519 *) ac_try_echo=$ac_try;;
19520 esac
19521 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19522 (eval "$ac_link") 2>&5
19523 ac_status=$?
19524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19525 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19526 { (case "(($ac_try" in
19527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19528 *) ac_try_echo=$ac_try;;
19529 esac
19530 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19531 (eval "$ac_try") 2>&5
19532 ac_status=$?
19533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19534 (exit $ac_status); }; }; then
19535 ac_cv_c_bigendian=no
19536 else
19537 echo "$as_me: program exited with status $ac_status" >&5
19538 echo "$as_me: failed program was:" >&5
19539 sed 's/^/| /' conftest.$ac_ext >&5
19541 ( exit $ac_status )
19542 ac_cv_c_bigendian=yes
19544 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19550 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19552 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
19553 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
19554 case $ac_cv_c_bigendian in
19555 yes)
19557 cat >>confdefs.h <<\_ACEOF
19558 #define WORDS_BIGENDIAN 1
19559 _ACEOF
19564 { { echo "$as_me:$LINENO: error: unknown endianness
19565 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
19566 echo "$as_me: error: unknown endianness
19567 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
19568 { (exit 1); exit 1; }; } ;;
19569 esac
19571 { echo "$as_me:$LINENO: checking host system type" >&5
19572 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
19573 if test "${ac_cv_host+set}" = set; then
19574 echo $ECHO_N "(cached) $ECHO_C" >&6
19575 else
19576 if test "x$host_alias" = x; then
19577 ac_cv_host=$ac_cv_build
19578 else
19579 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
19580 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
19581 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
19582 { (exit 1); exit 1; }; }
19586 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
19587 echo "${ECHO_T}$ac_cv_host" >&6; }
19588 case $ac_cv_host in
19589 *-*-*) ;;
19590 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
19591 echo "$as_me: error: invalid value of canonical host" >&2;}
19592 { (exit 1); exit 1; }; };;
19593 esac
19594 host=$ac_cv_host
19595 ac_save_IFS=$IFS; IFS='-'
19596 set x $ac_cv_host
19597 shift
19598 host_cpu=$1
19599 host_vendor=$2
19600 shift; shift
19601 # Remember, the first character of IFS is used to create $*,
19602 # except with old shells:
19603 host_os=$*
19604 IFS=$ac_save_IFS
19605 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
19608 for ac_prog in 'bison -y' byacc
19610 # Extract the first word of "$ac_prog", so it can be a program name with args.
19611 set dummy $ac_prog; ac_word=$2
19612 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19613 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19614 if test "${ac_cv_prog_YACC+set}" = set; then
19615 echo $ECHO_N "(cached) $ECHO_C" >&6
19616 else
19617 if test -n "$YACC"; then
19618 ac_cv_prog_YACC="$YACC" # Let the user override the test.
19619 else
19620 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19621 for as_dir in $PATH
19623 IFS=$as_save_IFS
19624 test -z "$as_dir" && as_dir=.
19625 for ac_exec_ext in '' $ac_executable_extensions; do
19626 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19627 ac_cv_prog_YACC="$ac_prog"
19628 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19629 break 2
19631 done
19632 done
19633 IFS=$as_save_IFS
19637 YACC=$ac_cv_prog_YACC
19638 if test -n "$YACC"; then
19639 { echo "$as_me:$LINENO: result: $YACC" >&5
19640 echo "${ECHO_T}$YACC" >&6; }
19641 else
19642 { echo "$as_me:$LINENO: result: no" >&5
19643 echo "${ECHO_T}no" >&6; }
19647 test -n "$YACC" && break
19648 done
19649 test -n "$YACC" || YACC="yacc"
19651 for ac_prog in flex lex
19653 # Extract the first word of "$ac_prog", so it can be a program name with args.
19654 set dummy $ac_prog; ac_word=$2
19655 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19656 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19657 if test "${ac_cv_prog_LEX+set}" = set; then
19658 echo $ECHO_N "(cached) $ECHO_C" >&6
19659 else
19660 if test -n "$LEX"; then
19661 ac_cv_prog_LEX="$LEX" # Let the user override the test.
19662 else
19663 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19664 for as_dir in $PATH
19666 IFS=$as_save_IFS
19667 test -z "$as_dir" && as_dir=.
19668 for ac_exec_ext in '' $ac_executable_extensions; do
19669 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19670 ac_cv_prog_LEX="$ac_prog"
19671 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19672 break 2
19674 done
19675 done
19676 IFS=$as_save_IFS
19680 LEX=$ac_cv_prog_LEX
19681 if test -n "$LEX"; then
19682 { echo "$as_me:$LINENO: result: $LEX" >&5
19683 echo "${ECHO_T}$LEX" >&6; }
19684 else
19685 { echo "$as_me:$LINENO: result: no" >&5
19686 echo "${ECHO_T}no" >&6; }
19690 test -n "$LEX" && break
19691 done
19692 test -n "$LEX" || LEX=":"
19694 if test "x$LEX" != "x:"; then
19695 cat >conftest.l <<_ACEOF
19697 a { ECHO; }
19698 b { REJECT; }
19699 c { yymore (); }
19700 d { yyless (1); }
19701 e { yyless (input () != 0); }
19702 f { unput (yytext[0]); }
19703 . { BEGIN INITIAL; }
19705 #ifdef YYTEXT_POINTER
19706 extern char *yytext;
19707 #endif
19709 main (void)
19711 return ! yylex () + ! yywrap ();
19713 _ACEOF
19714 { (ac_try="$LEX conftest.l"
19715 case "(($ac_try" in
19716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19717 *) ac_try_echo=$ac_try;;
19718 esac
19719 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19720 (eval "$LEX conftest.l") 2>&5
19721 ac_status=$?
19722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19723 (exit $ac_status); }
19724 { echo "$as_me:$LINENO: checking lex output file root" >&5
19725 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6; }
19726 if test "${ac_cv_prog_lex_root+set}" = set; then
19727 echo $ECHO_N "(cached) $ECHO_C" >&6
19728 else
19730 if test -f lex.yy.c; then
19731 ac_cv_prog_lex_root=lex.yy
19732 elif test -f lexyy.c; then
19733 ac_cv_prog_lex_root=lexyy
19734 else
19735 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
19736 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
19737 { (exit 1); exit 1; }; }
19740 { echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
19741 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6; }
19742 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
19744 if test -z "${LEXLIB+set}"; then
19745 { echo "$as_me:$LINENO: checking lex library" >&5
19746 echo $ECHO_N "checking lex library... $ECHO_C" >&6; }
19747 if test "${ac_cv_lib_lex+set}" = set; then
19748 echo $ECHO_N "(cached) $ECHO_C" >&6
19749 else
19751 ac_save_LIBS=$LIBS
19752 ac_cv_lib_lex='none needed'
19753 for ac_lib in '' -lfl -ll; do
19754 LIBS="$ac_lib $ac_save_LIBS"
19755 cat >conftest.$ac_ext <<_ACEOF
19756 `cat $LEX_OUTPUT_ROOT.c`
19757 _ACEOF
19758 rm -f conftest.$ac_objext conftest$ac_exeext
19759 if { (ac_try="$ac_link"
19760 case "(($ac_try" in
19761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19762 *) ac_try_echo=$ac_try;;
19763 esac
19764 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19765 (eval "$ac_link") 2>conftest.er1
19766 ac_status=$?
19767 grep -v '^ *+' conftest.er1 >conftest.err
19768 rm -f conftest.er1
19769 cat conftest.err >&5
19770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19771 (exit $ac_status); } && {
19772 test -z "$ac_cxx_werror_flag" ||
19773 test ! -s conftest.err
19774 } && test -s conftest$ac_exeext &&
19775 $as_test_x conftest$ac_exeext; then
19776 ac_cv_lib_lex=$ac_lib
19777 else
19778 echo "$as_me: failed program was:" >&5
19779 sed 's/^/| /' conftest.$ac_ext >&5
19784 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19785 conftest$ac_exeext conftest.$ac_ext
19786 test "$ac_cv_lib_lex" != 'none needed' && break
19787 done
19788 LIBS=$ac_save_LIBS
19791 { echo "$as_me:$LINENO: result: $ac_cv_lib_lex" >&5
19792 echo "${ECHO_T}$ac_cv_lib_lex" >&6; }
19793 test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
19797 { echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
19798 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6; }
19799 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
19800 echo $ECHO_N "(cached) $ECHO_C" >&6
19801 else
19802 # POSIX says lex can declare yytext either as a pointer or an array; the
19803 # default is implementation-dependent. Figure out which it is, since
19804 # not all implementations provide the %pointer and %array declarations.
19805 ac_cv_prog_lex_yytext_pointer=no
19806 ac_save_LIBS=$LIBS
19807 LIBS="$LEXLIB $ac_save_LIBS"
19808 cat >conftest.$ac_ext <<_ACEOF
19809 #define YYTEXT_POINTER 1
19810 `cat $LEX_OUTPUT_ROOT.c`
19811 _ACEOF
19812 rm -f conftest.$ac_objext conftest$ac_exeext
19813 if { (ac_try="$ac_link"
19814 case "(($ac_try" in
19815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19816 *) ac_try_echo=$ac_try;;
19817 esac
19818 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19819 (eval "$ac_link") 2>conftest.er1
19820 ac_status=$?
19821 grep -v '^ *+' conftest.er1 >conftest.err
19822 rm -f conftest.er1
19823 cat conftest.err >&5
19824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19825 (exit $ac_status); } && {
19826 test -z "$ac_cxx_werror_flag" ||
19827 test ! -s conftest.err
19828 } && test -s conftest$ac_exeext &&
19829 $as_test_x conftest$ac_exeext; then
19830 ac_cv_prog_lex_yytext_pointer=yes
19831 else
19832 echo "$as_me: failed program was:" >&5
19833 sed 's/^/| /' conftest.$ac_ext >&5
19838 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19839 conftest$ac_exeext conftest.$ac_ext
19840 LIBS=$ac_save_LIBS
19843 { echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
19844 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6; }
19845 if test $ac_cv_prog_lex_yytext_pointer = yes; then
19847 cat >>confdefs.h <<\_ACEOF
19848 #define YYTEXT_POINTER 1
19849 _ACEOF
19852 rm -f conftest.l $LEX_OUTPUT_ROOT.c
19855 if test "$LEX" = :; then
19856 LEX=${am_missing_run}flex
19859 case "${host_os}" in
19860 *linux* )
19861 OSTYPE=LINUX
19863 esac
19864 case "${host_cpu}" in
19865 i686 | i386 )
19866 CPUTYPE=i686
19868 esac
19869 echo "#ifndef BUILD_H" >build.h
19870 echo "#define BUILD_H" >>build.h
19871 echo "#define CSQL" >>build.h
19872 echo "#define ${OSTYPE}" >>build.h
19873 echo "#define ${CPUTYPE}" >>build.h
19874 echo "#endif " >>build.h
19875 cp build.h include
19891 for ac_header in stdio.h sys/mman.h sys/shm.h sys/errno.h crypt.h unistd.h \
19892 string.h sys/types.h sys/stat.h fcntl.h pthread.h math.h \
19893 signal.h
19895 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19896 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19897 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19898 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19899 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19900 echo $ECHO_N "(cached) $ECHO_C" >&6
19902 ac_res=`eval echo '${'$as_ac_Header'}'`
19903 { echo "$as_me:$LINENO: result: $ac_res" >&5
19904 echo "${ECHO_T}$ac_res" >&6; }
19905 else
19906 # Is the header compilable?
19907 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
19908 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19909 cat >conftest.$ac_ext <<_ACEOF
19910 /* confdefs.h. */
19911 _ACEOF
19912 cat confdefs.h >>conftest.$ac_ext
19913 cat >>conftest.$ac_ext <<_ACEOF
19914 /* end confdefs.h. */
19915 $ac_includes_default
19916 #include <$ac_header>
19917 _ACEOF
19918 rm -f conftest.$ac_objext
19919 if { (ac_try="$ac_compile"
19920 case "(($ac_try" in
19921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19922 *) ac_try_echo=$ac_try;;
19923 esac
19924 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19925 (eval "$ac_compile") 2>conftest.er1
19926 ac_status=$?
19927 grep -v '^ *+' conftest.er1 >conftest.err
19928 rm -f conftest.er1
19929 cat conftest.err >&5
19930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19931 (exit $ac_status); } && {
19932 test -z "$ac_cxx_werror_flag" ||
19933 test ! -s conftest.err
19934 } && test -s conftest.$ac_objext; then
19935 ac_header_compiler=yes
19936 else
19937 echo "$as_me: failed program was:" >&5
19938 sed 's/^/| /' conftest.$ac_ext >&5
19940 ac_header_compiler=no
19943 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19944 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19945 echo "${ECHO_T}$ac_header_compiler" >&6; }
19947 # Is the header present?
19948 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
19949 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
19950 cat >conftest.$ac_ext <<_ACEOF
19951 /* confdefs.h. */
19952 _ACEOF
19953 cat confdefs.h >>conftest.$ac_ext
19954 cat >>conftest.$ac_ext <<_ACEOF
19955 /* end confdefs.h. */
19956 #include <$ac_header>
19957 _ACEOF
19958 if { (ac_try="$ac_cpp conftest.$ac_ext"
19959 case "(($ac_try" in
19960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19961 *) ac_try_echo=$ac_try;;
19962 esac
19963 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19964 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19965 ac_status=$?
19966 grep -v '^ *+' conftest.er1 >conftest.err
19967 rm -f conftest.er1
19968 cat conftest.err >&5
19969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19970 (exit $ac_status); } >/dev/null && {
19971 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
19972 test ! -s conftest.err
19973 }; then
19974 ac_header_preproc=yes
19975 else
19976 echo "$as_me: failed program was:" >&5
19977 sed 's/^/| /' conftest.$ac_ext >&5
19979 ac_header_preproc=no
19982 rm -f conftest.err conftest.$ac_ext
19983 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19984 echo "${ECHO_T}$ac_header_preproc" >&6; }
19986 # So? What about this header?
19987 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
19988 yes:no: )
19989 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19990 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19991 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19992 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19993 ac_header_preproc=yes
19995 no:yes:* )
19996 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19997 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19998 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19999 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20000 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20001 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20002 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20003 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20004 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20005 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20006 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20007 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20010 esac
20011 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20012 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20013 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20014 echo $ECHO_N "(cached) $ECHO_C" >&6
20015 else
20016 eval "$as_ac_Header=\$ac_header_preproc"
20018 ac_res=`eval echo '${'$as_ac_Header'}'`
20019 { echo "$as_me:$LINENO: result: $ac_res" >&5
20020 echo "${ECHO_T}$ac_res" >&6; }
20023 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20024 cat >>confdefs.h <<_ACEOF
20025 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20026 _ACEOF
20030 done
20035 ac_config_files="$ac_config_files Makefile src/Makefile include/Makefile src/storage/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 src/oci/Makefile src/sqlnetwork/Makefile"
20037 cat >confcache <<\_ACEOF
20038 # This file is a shell script that caches the results of configure
20039 # tests run on this system so they can be shared between configure
20040 # scripts and configure runs, see configure's option --config-cache.
20041 # It is not useful on other systems. If it contains results you don't
20042 # want to keep, you may remove or edit it.
20044 # config.status only pays attention to the cache file if you give it
20045 # the --recheck option to rerun configure.
20047 # `ac_cv_env_foo' variables (set or unset) will be overridden when
20048 # loading this file, other *unset* `ac_cv_foo' will be assigned the
20049 # following values.
20051 _ACEOF
20053 # The following way of writing the cache mishandles newlines in values,
20054 # but we know of no workaround that is simple, portable, and efficient.
20055 # So, we kill variables containing newlines.
20056 # Ultrix sh set writes to stderr and can't be redirected directly,
20057 # and sets the high bit in the cache file unless we assign to the vars.
20059 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
20060 eval ac_val=\$$ac_var
20061 case $ac_val in #(
20062 *${as_nl}*)
20063 case $ac_var in #(
20064 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
20065 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
20066 esac
20067 case $ac_var in #(
20068 _ | IFS | as_nl) ;; #(
20069 *) $as_unset $ac_var ;;
20070 esac ;;
20071 esac
20072 done
20074 (set) 2>&1 |
20075 case $as_nl`(ac_space=' '; set) 2>&1` in #(
20076 *${as_nl}ac_space=\ *)
20077 # `set' does not quote correctly, so add quotes (double-quote
20078 # substitution turns \\\\ into \\, and sed turns \\ into \).
20079 sed -n \
20080 "s/'/'\\\\''/g;
20081 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
20082 ;; #(
20084 # `set' quotes correctly as required by POSIX, so do not add quotes.
20085 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
20087 esac |
20088 sort
20090 sed '
20091 /^ac_cv_env_/b end
20092 t clear
20093 :clear
20094 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20095 t end
20096 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20097 :end' >>confcache
20098 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
20099 if test -w "$cache_file"; then
20100 test "x$cache_file" != "x/dev/null" &&
20101 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
20102 echo "$as_me: updating cache $cache_file" >&6;}
20103 cat confcache >$cache_file
20104 else
20105 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
20106 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
20109 rm -f confcache
20111 test "x$prefix" = xNONE && prefix=$ac_default_prefix
20112 # Let make expand exec_prefix.
20113 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20115 DEFS=-DHAVE_CONFIG_H
20117 ac_libobjs=
20118 ac_ltlibobjs=
20119 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20120 # 1. Remove the extension, and $U if already installed.
20121 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
20122 ac_i=`echo "$ac_i" | sed "$ac_script"`
20123 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
20124 # will be set to the directory where LIBOBJS objects are built.
20125 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
20126 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
20127 done
20128 LIBOBJS=$ac_libobjs
20130 LTLIBOBJS=$ac_ltlibobjs
20133 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
20134 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
20135 Usually this means the macro was only invoked conditionally." >&5
20136 echo "$as_me: error: conditional \"AMDEP\" was never defined.
20137 Usually this means the macro was only invoked conditionally." >&2;}
20138 { (exit 1); exit 1; }; }
20140 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
20141 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
20142 Usually this means the macro was only invoked conditionally." >&5
20143 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
20144 Usually this means the macro was only invoked conditionally." >&2;}
20145 { (exit 1); exit 1; }; }
20147 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
20148 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
20149 Usually this means the macro was only invoked conditionally." >&5
20150 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
20151 Usually this means the macro was only invoked conditionally." >&2;}
20152 { (exit 1); exit 1; }; }
20155 : ${CONFIG_STATUS=./config.status}
20156 ac_clean_files_save=$ac_clean_files
20157 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
20158 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
20159 echo "$as_me: creating $CONFIG_STATUS" >&6;}
20160 cat >$CONFIG_STATUS <<_ACEOF
20161 #! $SHELL
20162 # Generated by $as_me.
20163 # Run this file to recreate the current configuration.
20164 # Compiler output produced by configure, useful for debugging
20165 # configure, is in config.log if it exists.
20167 debug=false
20168 ac_cs_recheck=false
20169 ac_cs_silent=false
20170 SHELL=\${CONFIG_SHELL-$SHELL}
20171 _ACEOF
20173 cat >>$CONFIG_STATUS <<\_ACEOF
20174 ## --------------------- ##
20175 ## M4sh Initialization. ##
20176 ## --------------------- ##
20178 # Be more Bourne compatible
20179 DUALCASE=1; export DUALCASE # for MKS sh
20180 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
20181 emulate sh
20182 NULLCMD=:
20183 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20184 # is contrary to our usage. Disable this feature.
20185 alias -g '${1+"$@"}'='"$@"'
20186 setopt NO_GLOB_SUBST
20187 else
20188 case `(set -o) 2>/dev/null` in
20189 *posix*) set -o posix ;;
20190 esac
20197 # PATH needs CR
20198 # Avoid depending upon Character Ranges.
20199 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20200 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20201 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20202 as_cr_digits='0123456789'
20203 as_cr_alnum=$as_cr_Letters$as_cr_digits
20205 # The user is always right.
20206 if test "${PATH_SEPARATOR+set}" != set; then
20207 echo "#! /bin/sh" >conf$$.sh
20208 echo "exit 0" >>conf$$.sh
20209 chmod +x conf$$.sh
20210 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
20211 PATH_SEPARATOR=';'
20212 else
20213 PATH_SEPARATOR=:
20215 rm -f conf$$.sh
20218 # Support unset when possible.
20219 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
20220 as_unset=unset
20221 else
20222 as_unset=false
20226 # IFS
20227 # We need space, tab and new line, in precisely that order. Quoting is
20228 # there to prevent editors from complaining about space-tab.
20229 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
20230 # splitting by setting IFS to empty value.)
20231 as_nl='
20233 IFS=" "" $as_nl"
20235 # Find who we are. Look in the path if we contain no directory separator.
20236 case $0 in
20237 *[\\/]* ) as_myself=$0 ;;
20238 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20239 for as_dir in $PATH
20241 IFS=$as_save_IFS
20242 test -z "$as_dir" && as_dir=.
20243 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20244 done
20245 IFS=$as_save_IFS
20248 esac
20249 # We did not find ourselves, most probably we were run as `sh COMMAND'
20250 # in which case we are not to be found in the path.
20251 if test "x$as_myself" = x; then
20252 as_myself=$0
20254 if test ! -f "$as_myself"; then
20255 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
20256 { (exit 1); exit 1; }
20259 # Work around bugs in pre-3.0 UWIN ksh.
20260 for as_var in ENV MAIL MAILPATH
20261 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
20262 done
20263 PS1='$ '
20264 PS2='> '
20265 PS4='+ '
20267 # NLS nuisances.
20268 for as_var in \
20269 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
20270 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
20271 LC_TELEPHONE LC_TIME
20273 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
20274 eval $as_var=C; export $as_var
20275 else
20276 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
20278 done
20280 # Required to use basename.
20281 if expr a : '\(a\)' >/dev/null 2>&1 &&
20282 test "X`expr 00001 : '.*\(...\)'`" = X001; then
20283 as_expr=expr
20284 else
20285 as_expr=false
20288 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
20289 as_basename=basename
20290 else
20291 as_basename=false
20295 # Name of the executable.
20296 as_me=`$as_basename -- "$0" ||
20297 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20298 X"$0" : 'X\(//\)$' \| \
20299 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
20300 echo X/"$0" |
20301 sed '/^.*\/\([^/][^/]*\)\/*$/{
20302 s//\1/
20305 /^X\/\(\/\/\)$/{
20306 s//\1/
20309 /^X\/\(\/\).*/{
20310 s//\1/
20313 s/.*/./; q'`
20315 # CDPATH.
20316 $as_unset CDPATH
20320 as_lineno_1=$LINENO
20321 as_lineno_2=$LINENO
20322 test "x$as_lineno_1" != "x$as_lineno_2" &&
20323 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
20325 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
20326 # uniformly replaced by the line number. The first 'sed' inserts a
20327 # line-number line after each line using $LINENO; the second 'sed'
20328 # does the real work. The second script uses 'N' to pair each
20329 # line-number line with the line containing $LINENO, and appends
20330 # trailing '-' during substitution so that $LINENO is not a special
20331 # case at line end.
20332 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
20333 # scripts with optimization help from Paolo Bonzini. Blame Lee
20334 # E. McMahon (1931-1989) for sed's syntax. :-)
20335 sed -n '
20337 /[$]LINENO/=
20338 ' <$as_myself |
20339 sed '
20340 s/[$]LINENO.*/&-/
20341 t lineno
20343 :lineno
20345 :loop
20346 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
20347 t loop
20348 s/-\n.*//
20349 ' >$as_me.lineno &&
20350 chmod +x "$as_me.lineno" ||
20351 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
20352 { (exit 1); exit 1; }; }
20354 # Don't try to exec as it changes $[0], causing all sort of problems
20355 # (the dirname of $[0] is not the place where we might find the
20356 # original and so on. Autoconf is especially sensitive to this).
20357 . "./$as_me.lineno"
20358 # Exit status is that of the last command.
20359 exit
20363 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
20364 as_dirname=dirname
20365 else
20366 as_dirname=false
20369 ECHO_C= ECHO_N= ECHO_T=
20370 case `echo -n x` in
20371 -n*)
20372 case `echo 'x\c'` in
20373 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
20374 *) ECHO_C='\c';;
20375 esac;;
20377 ECHO_N='-n';;
20378 esac
20380 if expr a : '\(a\)' >/dev/null 2>&1 &&
20381 test "X`expr 00001 : '.*\(...\)'`" = X001; then
20382 as_expr=expr
20383 else
20384 as_expr=false
20387 rm -f conf$$ conf$$.exe conf$$.file
20388 if test -d conf$$.dir; then
20389 rm -f conf$$.dir/conf$$.file
20390 else
20391 rm -f conf$$.dir
20392 mkdir conf$$.dir
20394 echo >conf$$.file
20395 if ln -s conf$$.file conf$$ 2>/dev/null; then
20396 as_ln_s='ln -s'
20397 # ... but there are two gotchas:
20398 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
20399 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
20400 # In both cases, we have to default to `cp -p'.
20401 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
20402 as_ln_s='cp -p'
20403 elif ln conf$$.file conf$$ 2>/dev/null; then
20404 as_ln_s=ln
20405 else
20406 as_ln_s='cp -p'
20408 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
20409 rmdir conf$$.dir 2>/dev/null
20411 if mkdir -p . 2>/dev/null; then
20412 as_mkdir_p=:
20413 else
20414 test -d ./-p && rmdir ./-p
20415 as_mkdir_p=false
20418 if test -x / >/dev/null 2>&1; then
20419 as_test_x='test -x'
20420 else
20421 if ls -dL / >/dev/null 2>&1; then
20422 as_ls_L_option=L
20423 else
20424 as_ls_L_option=
20426 as_test_x='
20427 eval sh -c '\''
20428 if test -d "$1"; then
20429 test -d "$1/.";
20430 else
20431 case $1 in
20432 -*)set "./$1";;
20433 esac;
20434 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
20435 ???[sx]*):;;*)false;;esac;fi
20436 '\'' sh
20439 as_executable_p=$as_test_x
20441 # Sed expression to map a string onto a valid CPP name.
20442 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20444 # Sed expression to map a string onto a valid variable name.
20445 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20448 exec 6>&1
20450 # Save the log message, to keep $[0] and so on meaningful, and to
20451 # report actual input values of CONFIG_FILES etc. instead of their
20452 # values after options handling.
20453 ac_log="
20454 This file was extended by $as_me, which was
20455 generated by GNU Autoconf 2.61. Invocation command line was
20457 CONFIG_FILES = $CONFIG_FILES
20458 CONFIG_HEADERS = $CONFIG_HEADERS
20459 CONFIG_LINKS = $CONFIG_LINKS
20460 CONFIG_COMMANDS = $CONFIG_COMMANDS
20461 $ $0 $@
20463 on `(hostname || uname -n) 2>/dev/null | sed 1q`
20466 _ACEOF
20468 cat >>$CONFIG_STATUS <<_ACEOF
20469 # Files that config.status was made for.
20470 config_files="$ac_config_files"
20471 config_headers="$ac_config_headers"
20472 config_commands="$ac_config_commands"
20474 _ACEOF
20476 cat >>$CONFIG_STATUS <<\_ACEOF
20477 ac_cs_usage="\
20478 \`$as_me' instantiates files from templates according to the
20479 current configuration.
20481 Usage: $0 [OPTIONS] [FILE]...
20483 -h, --help print this help, then exit
20484 -V, --version print version number and configuration settings, then exit
20485 -q, --quiet do not print progress messages
20486 -d, --debug don't remove temporary files
20487 --recheck update $as_me by reconfiguring in the same conditions
20488 --file=FILE[:TEMPLATE]
20489 instantiate the configuration file FILE
20490 --header=FILE[:TEMPLATE]
20491 instantiate the configuration header FILE
20493 Configuration files:
20494 $config_files
20496 Configuration headers:
20497 $config_headers
20499 Configuration commands:
20500 $config_commands
20502 Report bugs to <bug-autoconf@gnu.org>."
20504 _ACEOF
20505 cat >>$CONFIG_STATUS <<_ACEOF
20506 ac_cs_version="\\
20507 config.status
20508 configured by $0, generated by GNU Autoconf 2.61,
20509 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
20511 Copyright (C) 2006 Free Software Foundation, Inc.
20512 This config.status script is free software; the Free Software Foundation
20513 gives unlimited permission to copy, distribute and modify it."
20515 ac_pwd='$ac_pwd'
20516 srcdir='$srcdir'
20517 INSTALL='$INSTALL'
20518 MKDIR_P='$MKDIR_P'
20519 _ACEOF
20521 cat >>$CONFIG_STATUS <<\_ACEOF
20522 # If no file are specified by the user, then we need to provide default
20523 # value. By we need to know if files were specified by the user.
20524 ac_need_defaults=:
20525 while test $# != 0
20527 case $1 in
20528 --*=*)
20529 ac_option=`expr "X$1" : 'X\([^=]*\)='`
20530 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
20531 ac_shift=:
20534 ac_option=$1
20535 ac_optarg=$2
20536 ac_shift=shift
20538 esac
20540 case $ac_option in
20541 # Handling of the options.
20542 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20543 ac_cs_recheck=: ;;
20544 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
20545 echo "$ac_cs_version"; exit ;;
20546 --debug | --debu | --deb | --de | --d | -d )
20547 debug=: ;;
20548 --file | --fil | --fi | --f )
20549 $ac_shift
20550 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
20551 ac_need_defaults=false;;
20552 --header | --heade | --head | --hea )
20553 $ac_shift
20554 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
20555 ac_need_defaults=false;;
20556 --he | --h)
20557 # Conflict between --help and --header
20558 { echo "$as_me: error: ambiguous option: $1
20559 Try \`$0 --help' for more information." >&2
20560 { (exit 1); exit 1; }; };;
20561 --help | --hel | -h )
20562 echo "$ac_cs_usage"; exit ;;
20563 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20564 | -silent | --silent | --silen | --sile | --sil | --si | --s)
20565 ac_cs_silent=: ;;
20567 # This is an error.
20568 -*) { echo "$as_me: error: unrecognized option: $1
20569 Try \`$0 --help' for more information." >&2
20570 { (exit 1); exit 1; }; } ;;
20572 *) ac_config_targets="$ac_config_targets $1"
20573 ac_need_defaults=false ;;
20575 esac
20576 shift
20577 done
20579 ac_configure_extra_args=
20581 if $ac_cs_silent; then
20582 exec 6>/dev/null
20583 ac_configure_extra_args="$ac_configure_extra_args --silent"
20586 _ACEOF
20587 cat >>$CONFIG_STATUS <<_ACEOF
20588 if \$ac_cs_recheck; then
20589 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
20590 CONFIG_SHELL=$SHELL
20591 export CONFIG_SHELL
20592 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20595 _ACEOF
20596 cat >>$CONFIG_STATUS <<\_ACEOF
20597 exec 5>>config.log
20599 echo
20600 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20601 ## Running $as_me. ##
20602 _ASBOX
20603 echo "$ac_log"
20604 } >&5
20606 _ACEOF
20607 cat >>$CONFIG_STATUS <<_ACEOF
20609 # INIT-COMMANDS
20611 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
20613 _ACEOF
20615 cat >>$CONFIG_STATUS <<\_ACEOF
20617 # Handling of arguments.
20618 for ac_config_target in $ac_config_targets
20620 case $ac_config_target in
20621 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
20622 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
20623 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
20624 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
20625 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
20626 "src/storage/Makefile") CONFIG_FILES="$CONFIG_FILES src/storage/Makefile" ;;
20627 "src/sql/Makefile") CONFIG_FILES="$CONFIG_FILES src/sql/Makefile" ;;
20628 "src/adapter/Makefile") CONFIG_FILES="$CONFIG_FILES src/adapter/Makefile" ;;
20629 "src/gateway/Makefile") CONFIG_FILES="$CONFIG_FILES src/gateway/Makefile" ;;
20630 "src/cache/Makefile") CONFIG_FILES="$CONFIG_FILES src/cache/Makefile" ;;
20631 "src/network/Makefile") CONFIG_FILES="$CONFIG_FILES src/network/Makefile" ;;
20632 "src/sqllog/Makefile") CONFIG_FILES="$CONFIG_FILES src/sqllog/Makefile" ;;
20633 "src/tools/Makefile") CONFIG_FILES="$CONFIG_FILES src/tools/Makefile" ;;
20634 "src/jdbc/Makefile") CONFIG_FILES="$CONFIG_FILES src/jdbc/Makefile" ;;
20635 "src/odbc/Makefile") CONFIG_FILES="$CONFIG_FILES src/odbc/Makefile" ;;
20636 "src/oci/Makefile") CONFIG_FILES="$CONFIG_FILES src/oci/Makefile" ;;
20637 "src/sqlnetwork/Makefile") CONFIG_FILES="$CONFIG_FILES src/sqlnetwork/Makefile" ;;
20639 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
20640 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
20641 { (exit 1); exit 1; }; };;
20642 esac
20643 done
20646 # If the user did not use the arguments to specify the items to instantiate,
20647 # then the envvar interface is used. Set only those that are not.
20648 # We use the long form for the default assignment because of an extremely
20649 # bizarre bug on SunOS 4.1.3.
20650 if $ac_need_defaults; then
20651 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
20652 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
20653 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
20656 # Have a temporary directory for convenience. Make it in the build tree
20657 # simply because there is no reason against having it here, and in addition,
20658 # creating and moving files from /tmp can sometimes cause problems.
20659 # Hook for its removal unless debugging.
20660 # Note that there is a small window in which the directory will not be cleaned:
20661 # after its creation but before its name has been assigned to `$tmp'.
20662 $debug ||
20664 tmp=
20665 trap 'exit_status=$?
20666 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
20668 trap '{ (exit 1); exit 1; }' 1 2 13 15
20670 # Create a (secure) tmp directory for tmp files.
20673 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
20674 test -n "$tmp" && test -d "$tmp"
20675 } ||
20677 tmp=./conf$$-$RANDOM
20678 (umask 077 && mkdir "$tmp")
20679 } ||
20681 echo "$me: cannot create a temporary directory in ." >&2
20682 { (exit 1); exit 1; }
20686 # Set up the sed scripts for CONFIG_FILES section.
20689 # No need to generate the scripts if there are no CONFIG_FILES.
20690 # This happens for instance when ./config.status config.h
20691 if test -n "$CONFIG_FILES"; then
20693 _ACEOF
20697 ac_delim='%!_!# '
20698 for ac_last_try in false false false false false :; do
20699 cat >conf$$subs.sed <<_ACEOF
20700 SHELL!$SHELL$ac_delim
20701 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
20702 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
20703 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
20704 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
20705 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
20706 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
20707 exec_prefix!$exec_prefix$ac_delim
20708 prefix!$prefix$ac_delim
20709 program_transform_name!$program_transform_name$ac_delim
20710 bindir!$bindir$ac_delim
20711 sbindir!$sbindir$ac_delim
20712 libexecdir!$libexecdir$ac_delim
20713 datarootdir!$datarootdir$ac_delim
20714 datadir!$datadir$ac_delim
20715 sysconfdir!$sysconfdir$ac_delim
20716 sharedstatedir!$sharedstatedir$ac_delim
20717 localstatedir!$localstatedir$ac_delim
20718 includedir!$includedir$ac_delim
20719 oldincludedir!$oldincludedir$ac_delim
20720 docdir!$docdir$ac_delim
20721 infodir!$infodir$ac_delim
20722 htmldir!$htmldir$ac_delim
20723 dvidir!$dvidir$ac_delim
20724 pdfdir!$pdfdir$ac_delim
20725 psdir!$psdir$ac_delim
20726 libdir!$libdir$ac_delim
20727 localedir!$localedir$ac_delim
20728 mandir!$mandir$ac_delim
20729 DEFS!$DEFS$ac_delim
20730 ECHO_C!$ECHO_C$ac_delim
20731 ECHO_N!$ECHO_N$ac_delim
20732 ECHO_T!$ECHO_T$ac_delim
20733 LIBS!$LIBS$ac_delim
20734 build_alias!$build_alias$ac_delim
20735 host_alias!$host_alias$ac_delim
20736 target_alias!$target_alias$ac_delim
20737 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
20738 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
20739 INSTALL_DATA!$INSTALL_DATA$ac_delim
20740 am__isrc!$am__isrc$ac_delim
20741 CYGPATH_W!$CYGPATH_W$ac_delim
20742 PACKAGE!$PACKAGE$ac_delim
20743 VERSION!$VERSION$ac_delim
20744 ACLOCAL!$ACLOCAL$ac_delim
20745 AUTOCONF!$AUTOCONF$ac_delim
20746 AUTOMAKE!$AUTOMAKE$ac_delim
20747 AUTOHEADER!$AUTOHEADER$ac_delim
20748 MAKEINFO!$MAKEINFO$ac_delim
20749 install_sh!$install_sh$ac_delim
20750 STRIP!$STRIP$ac_delim
20751 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
20752 mkdir_p!$mkdir_p$ac_delim
20753 AWK!$AWK$ac_delim
20754 SET_MAKE!$SET_MAKE$ac_delim
20755 am__leading_dot!$am__leading_dot$ac_delim
20756 AMTAR!$AMTAR$ac_delim
20757 am__tar!$am__tar$ac_delim
20758 am__untar!$am__untar$ac_delim
20759 CXX!$CXX$ac_delim
20760 CXXFLAGS!$CXXFLAGS$ac_delim
20761 LDFLAGS!$LDFLAGS$ac_delim
20762 CPPFLAGS!$CPPFLAGS$ac_delim
20763 ac_ct_CXX!$ac_ct_CXX$ac_delim
20764 EXEEXT!$EXEEXT$ac_delim
20765 OBJEXT!$OBJEXT$ac_delim
20766 DEPDIR!$DEPDIR$ac_delim
20767 am__include!$am__include$ac_delim
20768 am__quote!$am__quote$ac_delim
20769 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
20770 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
20771 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
20772 CXXDEPMODE!$CXXDEPMODE$ac_delim
20773 am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
20774 am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
20775 build!$build$ac_delim
20776 build_cpu!$build_cpu$ac_delim
20777 build_vendor!$build_vendor$ac_delim
20778 build_os!$build_os$ac_delim
20779 host!$host$ac_delim
20780 host_cpu!$host_cpu$ac_delim
20781 host_vendor!$host_vendor$ac_delim
20782 host_os!$host_os$ac_delim
20783 CC!$CC$ac_delim
20784 CFLAGS!$CFLAGS$ac_delim
20785 ac_ct_CC!$ac_ct_CC$ac_delim
20786 CCDEPMODE!$CCDEPMODE$ac_delim
20787 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
20788 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
20789 SED!$SED$ac_delim
20790 GREP!$GREP$ac_delim
20791 EGREP!$EGREP$ac_delim
20792 LN_S!$LN_S$ac_delim
20793 ECHO!$ECHO$ac_delim
20794 AR!$AR$ac_delim
20795 RANLIB!$RANLIB$ac_delim
20796 CPP!$CPP$ac_delim
20797 _ACEOF
20799 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
20800 break
20801 elif $ac_last_try; then
20802 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
20803 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
20804 { (exit 1); exit 1; }; }
20805 else
20806 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20808 done
20810 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
20811 if test -n "$ac_eof"; then
20812 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
20813 ac_eof=`expr $ac_eof + 1`
20816 cat >>$CONFIG_STATUS <<_ACEOF
20817 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
20818 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20819 _ACEOF
20820 sed '
20821 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
20822 s/^/s,@/; s/!/@,|#_!!_#|/
20825 s/'"$ac_delim"'$/,g/; t
20826 s/$/\\/; p
20827 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
20828 ' >>$CONFIG_STATUS <conf$$subs.sed
20829 rm -f conf$$subs.sed
20830 cat >>$CONFIG_STATUS <<_ACEOF
20831 CEOF$ac_eof
20832 _ACEOF
20835 ac_delim='%!_!# '
20836 for ac_last_try in false false false false false :; do
20837 cat >conf$$subs.sed <<_ACEOF
20838 CXXCPP!$CXXCPP$ac_delim
20839 F77!$F77$ac_delim
20840 FFLAGS!$FFLAGS$ac_delim
20841 ac_ct_F77!$ac_ct_F77$ac_delim
20842 LIBTOOL!$LIBTOOL$ac_delim
20843 YACC!$YACC$ac_delim
20844 YFLAGS!$YFLAGS$ac_delim
20845 LEX!$LEX$ac_delim
20846 LEX_OUTPUT_ROOT!$LEX_OUTPUT_ROOT$ac_delim
20847 LEXLIB!$LEXLIB$ac_delim
20848 LIBOBJS!$LIBOBJS$ac_delim
20849 LTLIBOBJS!$LTLIBOBJS$ac_delim
20850 _ACEOF
20852 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 12; then
20853 break
20854 elif $ac_last_try; then
20855 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
20856 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
20857 { (exit 1); exit 1; }; }
20858 else
20859 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20861 done
20863 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
20864 if test -n "$ac_eof"; then
20865 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
20866 ac_eof=`expr $ac_eof + 1`
20869 cat >>$CONFIG_STATUS <<_ACEOF
20870 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
20871 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
20872 _ACEOF
20873 sed '
20874 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
20875 s/^/s,@/; s/!/@,|#_!!_#|/
20878 s/'"$ac_delim"'$/,g/; t
20879 s/$/\\/; p
20880 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
20881 ' >>$CONFIG_STATUS <conf$$subs.sed
20882 rm -f conf$$subs.sed
20883 cat >>$CONFIG_STATUS <<_ACEOF
20884 :end
20885 s/|#_!!_#|//g
20886 CEOF$ac_eof
20887 _ACEOF
20890 # VPATH may cause trouble with some makes, so we remove $(srcdir),
20891 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
20892 # trailing colons and then remove the whole line if VPATH becomes empty
20893 # (actually we leave an empty line to preserve line numbers).
20894 if test "x$srcdir" = x.; then
20895 ac_vpsub='/^[ ]*VPATH[ ]*=/{
20896 s/:*\$(srcdir):*/:/
20897 s/:*\${srcdir}:*/:/
20898 s/:*@srcdir@:*/:/
20899 s/^\([^=]*=[ ]*\):*/\1/
20900 s/:*$//
20901 s/^[^=]*=[ ]*$//
20905 cat >>$CONFIG_STATUS <<\_ACEOF
20906 fi # test -n "$CONFIG_FILES"
20909 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
20911 case $ac_tag in
20912 :[FHLC]) ac_mode=$ac_tag; continue;;
20913 esac
20914 case $ac_mode$ac_tag in
20915 :[FHL]*:*);;
20916 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
20917 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
20918 { (exit 1); exit 1; }; };;
20919 :[FH]-) ac_tag=-:-;;
20920 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
20921 esac
20922 ac_save_IFS=$IFS
20923 IFS=:
20924 set x $ac_tag
20925 IFS=$ac_save_IFS
20926 shift
20927 ac_file=$1
20928 shift
20930 case $ac_mode in
20931 :L) ac_source=$1;;
20932 :[FH])
20933 ac_file_inputs=
20934 for ac_f
20936 case $ac_f in
20937 -) ac_f="$tmp/stdin";;
20938 *) # Look for the file first in the build tree, then in the source tree
20939 # (if the path is not absolute). The absolute path cannot be DOS-style,
20940 # because $ac_f cannot contain `:'.
20941 test -f "$ac_f" ||
20942 case $ac_f in
20943 [\\/$]*) false;;
20944 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
20945 esac ||
20946 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
20947 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
20948 { (exit 1); exit 1; }; };;
20949 esac
20950 ac_file_inputs="$ac_file_inputs $ac_f"
20951 done
20953 # Let's still pretend it is `configure' which instantiates (i.e., don't
20954 # use $as_me), people would be surprised to read:
20955 # /* config.h. Generated by config.status. */
20956 configure_input="Generated from "`IFS=:
20957 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
20958 if test x"$ac_file" != x-; then
20959 configure_input="$ac_file. $configure_input"
20960 { echo "$as_me:$LINENO: creating $ac_file" >&5
20961 echo "$as_me: creating $ac_file" >&6;}
20964 case $ac_tag in
20965 *:-:* | *:-) cat >"$tmp/stdin";;
20966 esac
20968 esac
20970 ac_dir=`$as_dirname -- "$ac_file" ||
20971 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20972 X"$ac_file" : 'X\(//\)[^/]' \| \
20973 X"$ac_file" : 'X\(//\)$' \| \
20974 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
20975 echo X"$ac_file" |
20976 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20977 s//\1/
20980 /^X\(\/\/\)[^/].*/{
20981 s//\1/
20984 /^X\(\/\/\)$/{
20985 s//\1/
20988 /^X\(\/\).*/{
20989 s//\1/
20992 s/.*/./; q'`
20993 { as_dir="$ac_dir"
20994 case $as_dir in #(
20995 -*) as_dir=./$as_dir;;
20996 esac
20997 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
20998 as_dirs=
20999 while :; do
21000 case $as_dir in #(
21001 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
21002 *) as_qdir=$as_dir;;
21003 esac
21004 as_dirs="'$as_qdir' $as_dirs"
21005 as_dir=`$as_dirname -- "$as_dir" ||
21006 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21007 X"$as_dir" : 'X\(//\)[^/]' \| \
21008 X"$as_dir" : 'X\(//\)$' \| \
21009 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
21010 echo X"$as_dir" |
21011 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21012 s//\1/
21015 /^X\(\/\/\)[^/].*/{
21016 s//\1/
21019 /^X\(\/\/\)$/{
21020 s//\1/
21023 /^X\(\/\).*/{
21024 s//\1/
21027 s/.*/./; q'`
21028 test -d "$as_dir" && break
21029 done
21030 test -z "$as_dirs" || eval "mkdir $as_dirs"
21031 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
21032 echo "$as_me: error: cannot create directory $as_dir" >&2;}
21033 { (exit 1); exit 1; }; }; }
21034 ac_builddir=.
21036 case "$ac_dir" in
21037 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21039 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
21040 # A ".." for each directory in $ac_dir_suffix.
21041 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
21042 case $ac_top_builddir_sub in
21043 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21044 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21045 esac ;;
21046 esac
21047 ac_abs_top_builddir=$ac_pwd
21048 ac_abs_builddir=$ac_pwd$ac_dir_suffix
21049 # for backward compatibility:
21050 ac_top_builddir=$ac_top_build_prefix
21052 case $srcdir in
21053 .) # We are building in place.
21054 ac_srcdir=.
21055 ac_top_srcdir=$ac_top_builddir_sub
21056 ac_abs_top_srcdir=$ac_pwd ;;
21057 [\\/]* | ?:[\\/]* ) # Absolute name.
21058 ac_srcdir=$srcdir$ac_dir_suffix;
21059 ac_top_srcdir=$srcdir
21060 ac_abs_top_srcdir=$srcdir ;;
21061 *) # Relative name.
21062 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21063 ac_top_srcdir=$ac_top_build_prefix$srcdir
21064 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
21065 esac
21066 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
21069 case $ac_mode in
21072 # CONFIG_FILE
21075 case $INSTALL in
21076 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21077 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
21078 esac
21079 ac_MKDIR_P=$MKDIR_P
21080 case $MKDIR_P in
21081 [\\/$]* | ?:[\\/]* ) ;;
21082 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
21083 esac
21084 _ACEOF
21086 cat >>$CONFIG_STATUS <<\_ACEOF
21087 # If the template does not know about datarootdir, expand it.
21088 # FIXME: This hack should be removed a few years after 2.60.
21089 ac_datarootdir_hack=; ac_datarootdir_seen=
21091 case `sed -n '/datarootdir/ {
21095 /@datadir@/p
21096 /@docdir@/p
21097 /@infodir@/p
21098 /@localedir@/p
21099 /@mandir@/p
21100 ' $ac_file_inputs` in
21101 *datarootdir*) ac_datarootdir_seen=yes;;
21102 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
21103 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
21104 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
21105 _ACEOF
21106 cat >>$CONFIG_STATUS <<_ACEOF
21107 ac_datarootdir_hack='
21108 s&@datadir@&$datadir&g
21109 s&@docdir@&$docdir&g
21110 s&@infodir@&$infodir&g
21111 s&@localedir@&$localedir&g
21112 s&@mandir@&$mandir&g
21113 s&\\\${datarootdir}&$datarootdir&g' ;;
21114 esac
21115 _ACEOF
21117 # Neutralize VPATH when `$srcdir' = `.'.
21118 # Shell code in configure.ac might set extrasub.
21119 # FIXME: do we really want to maintain this feature?
21120 cat >>$CONFIG_STATUS <<_ACEOF
21121 sed "$ac_vpsub
21122 $extrasub
21123 _ACEOF
21124 cat >>$CONFIG_STATUS <<\_ACEOF
21126 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21127 s&@configure_input@&$configure_input&;t t
21128 s&@top_builddir@&$ac_top_builddir_sub&;t t
21129 s&@srcdir@&$ac_srcdir&;t t
21130 s&@abs_srcdir@&$ac_abs_srcdir&;t t
21131 s&@top_srcdir@&$ac_top_srcdir&;t t
21132 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
21133 s&@builddir@&$ac_builddir&;t t
21134 s&@abs_builddir@&$ac_abs_builddir&;t t
21135 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
21136 s&@INSTALL@&$ac_INSTALL&;t t
21137 s&@MKDIR_P@&$ac_MKDIR_P&;t t
21138 $ac_datarootdir_hack
21139 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
21141 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
21142 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
21143 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
21144 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21145 which seems to be undefined. Please make sure it is defined." >&5
21146 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21147 which seems to be undefined. Please make sure it is defined." >&2;}
21149 rm -f "$tmp/stdin"
21150 case $ac_file in
21151 -) cat "$tmp/out"; rm -f "$tmp/out";;
21152 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
21153 esac
21157 # CONFIG_HEADER
21159 _ACEOF
21161 # Transform confdefs.h into a sed script `conftest.defines', that
21162 # substitutes the proper values into config.h.in to produce config.h.
21163 rm -f conftest.defines conftest.tail
21164 # First, append a space to every undef/define line, to ease matching.
21165 echo 's/$/ /' >conftest.defines
21166 # Then, protect against being on the right side of a sed subst, or in
21167 # an unquoted here document, in config.status. If some macros were
21168 # called several times there might be several #defines for the same
21169 # symbol, which is useless. But do not sort them, since the last
21170 # AC_DEFINE must be honored.
21171 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
21172 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
21173 # NAME is the cpp macro being defined, VALUE is the value it is being given.
21174 # PARAMS is the parameter list in the macro definition--in most cases, it's
21175 # just an empty string.
21176 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
21177 ac_dB='\\)[ (].*,\\1define\\2'
21178 ac_dC=' '
21179 ac_dD=' ,'
21181 uniq confdefs.h |
21182 sed -n '
21183 t rset
21184 :rset
21185 s/^[ ]*#[ ]*define[ ][ ]*//
21186 t ok
21189 s/[\\&,]/\\&/g
21190 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
21191 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
21192 ' >>conftest.defines
21194 # Remove the space that was appended to ease matching.
21195 # Then replace #undef with comments. This is necessary, for
21196 # example, in the case of _POSIX_SOURCE, which is predefined and required
21197 # on some systems where configure will not decide to define it.
21198 # (The regexp can be short, since the line contains either #define or #undef.)
21199 echo 's/ $//
21200 s,^[ #]*u.*,/* & */,' >>conftest.defines
21202 # Break up conftest.defines:
21203 ac_max_sed_lines=50
21205 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
21206 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
21207 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
21208 # et cetera.
21209 ac_in='$ac_file_inputs'
21210 ac_out='"$tmp/out1"'
21211 ac_nxt='"$tmp/out2"'
21213 while :
21215 # Write a here document:
21216 cat >>$CONFIG_STATUS <<_ACEOF
21217 # First, check the format of the line:
21218 cat >"\$tmp/defines.sed" <<\\CEOF
21219 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
21220 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
21222 :def
21223 _ACEOF
21224 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
21225 echo 'CEOF
21226 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
21227 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
21228 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
21229 grep . conftest.tail >/dev/null || break
21230 rm -f conftest.defines
21231 mv conftest.tail conftest.defines
21232 done
21233 rm -f conftest.defines conftest.tail
21235 echo "ac_result=$ac_in" >>$CONFIG_STATUS
21236 cat >>$CONFIG_STATUS <<\_ACEOF
21237 if test x"$ac_file" != x-; then
21238 echo "/* $configure_input */" >"$tmp/config.h"
21239 cat "$ac_result" >>"$tmp/config.h"
21240 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
21241 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
21242 echo "$as_me: $ac_file is unchanged" >&6;}
21243 else
21244 rm -f $ac_file
21245 mv "$tmp/config.h" $ac_file
21247 else
21248 echo "/* $configure_input */"
21249 cat "$ac_result"
21251 rm -f "$tmp/out12"
21252 # Compute $ac_file's index in $config_headers.
21253 _am_stamp_count=1
21254 for _am_header in $config_headers :; do
21255 case $_am_header in
21256 $ac_file | $ac_file:* )
21257 break ;;
21259 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
21260 esac
21261 done
21262 echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
21263 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21264 X$ac_file : 'X\(//\)[^/]' \| \
21265 X$ac_file : 'X\(//\)$' \| \
21266 X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
21267 echo X$ac_file |
21268 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21269 s//\1/
21272 /^X\(\/\/\)[^/].*/{
21273 s//\1/
21276 /^X\(\/\/\)$/{
21277 s//\1/
21280 /^X\(\/\).*/{
21281 s//\1/
21284 s/.*/./; q'`/stamp-h$_am_stamp_count
21287 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
21288 echo "$as_me: executing $ac_file commands" >&6;}
21290 esac
21293 case $ac_file$ac_mode in
21294 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
21295 # Strip MF so we end up with the name of the file.
21296 mf=`echo "$mf" | sed -e 's/:.*$//'`
21297 # Check whether this is an Automake generated Makefile or not.
21298 # We used to match only the files named `Makefile.in', but
21299 # some people rename them; so instead we look at the file content.
21300 # Grep'ing the first line is not enough: some people post-process
21301 # each Makefile.in and add a new line on top of each file to say so.
21302 # Grep'ing the whole file is not good either: AIX grep has a line
21303 # limit of 2048, but all sed's we know have understand at least 4000.
21304 if sed 10q "$mf" | grep '^#.*generated by automake' > /dev/null 2>&1; then
21305 dirpart=`$as_dirname -- "$mf" ||
21306 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21307 X"$mf" : 'X\(//\)[^/]' \| \
21308 X"$mf" : 'X\(//\)$' \| \
21309 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
21310 echo X"$mf" |
21311 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21312 s//\1/
21315 /^X\(\/\/\)[^/].*/{
21316 s//\1/
21319 /^X\(\/\/\)$/{
21320 s//\1/
21323 /^X\(\/\).*/{
21324 s//\1/
21327 s/.*/./; q'`
21328 else
21329 continue
21331 # Extract the definition of DEPDIR, am__include, and am__quote
21332 # from the Makefile without running `make'.
21333 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
21334 test -z "$DEPDIR" && continue
21335 am__include=`sed -n 's/^am__include = //p' < "$mf"`
21336 test -z "am__include" && continue
21337 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
21338 # When using ansi2knr, U may be empty or an underscore; expand it
21339 U=`sed -n 's/^U = //p' < "$mf"`
21340 # Find all dependency output files, they are included files with
21341 # $(DEPDIR) in their names. We invoke sed twice because it is the
21342 # simplest approach to changing $(DEPDIR) to its actual value in the
21343 # expansion.
21344 for file in `sed -n "
21345 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
21346 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
21347 # Make sure the directory exists.
21348 test -f "$dirpart/$file" && continue
21349 fdir=`$as_dirname -- "$file" ||
21350 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21351 X"$file" : 'X\(//\)[^/]' \| \
21352 X"$file" : 'X\(//\)$' \| \
21353 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
21354 echo X"$file" |
21355 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21356 s//\1/
21359 /^X\(\/\/\)[^/].*/{
21360 s//\1/
21363 /^X\(\/\/\)$/{
21364 s//\1/
21367 /^X\(\/\).*/{
21368 s//\1/
21371 s/.*/./; q'`
21372 { as_dir=$dirpart/$fdir
21373 case $as_dir in #(
21374 -*) as_dir=./$as_dir;;
21375 esac
21376 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
21377 as_dirs=
21378 while :; do
21379 case $as_dir in #(
21380 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
21381 *) as_qdir=$as_dir;;
21382 esac
21383 as_dirs="'$as_qdir' $as_dirs"
21384 as_dir=`$as_dirname -- "$as_dir" ||
21385 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21386 X"$as_dir" : 'X\(//\)[^/]' \| \
21387 X"$as_dir" : 'X\(//\)$' \| \
21388 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
21389 echo X"$as_dir" |
21390 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21391 s//\1/
21394 /^X\(\/\/\)[^/].*/{
21395 s//\1/
21398 /^X\(\/\/\)$/{
21399 s//\1/
21402 /^X\(\/\).*/{
21403 s//\1/
21406 s/.*/./; q'`
21407 test -d "$as_dir" && break
21408 done
21409 test -z "$as_dirs" || eval "mkdir $as_dirs"
21410 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
21411 echo "$as_me: error: cannot create directory $as_dir" >&2;}
21412 { (exit 1); exit 1; }; }; }
21413 # echo "creating $dirpart/$file"
21414 echo '# dummy' > "$dirpart/$file"
21415 done
21416 done
21419 esac
21420 done # for ac_tag
21423 { (exit 0); exit 0; }
21424 _ACEOF
21425 chmod +x $CONFIG_STATUS
21426 ac_clean_files=$ac_clean_files_save
21429 # configure is writing to config.log, and then calls config.status.
21430 # config.status does its own redirection, appending to config.log.
21431 # Unfortunately, on DOS this fails, as config.log is still kept open
21432 # by configure, so config.status won't be able to write to it; its
21433 # output is simply discarded. So we exec the FD to /dev/null,
21434 # effectively closing config.log, so it can be properly (re)opened and
21435 # appended to by config.status. When coming back to configure, we
21436 # need to make the FD available again.
21437 if test "$no_create" != yes; then
21438 ac_cs_success=:
21439 ac_config_status_args=
21440 test "$silent" = yes &&
21441 ac_config_status_args="$ac_config_status_args --quiet"
21442 exec 5>/dev/null
21443 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21444 exec 5>>config.log
21445 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21446 # would make configure fail if this is the last instruction.
21447 $ac_cs_success || { (exit 1); exit 1; }