Recovery of cached tables during csqlserver starting
[csql.git] / configure
blobda2f5f600d9f376221a9f75e51e82597f997b0cb
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 $as_executable_p "$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 recognise dependent libraries" >&5
4560 echo $ECHO_N "checking how to recognise 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 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4603 lt_cv_file_magic_cmd='$OBJDUMP -f'
4606 darwin* | rhapsody*)
4607 lt_cv_deplibs_check_method=pass_all
4610 freebsd* | kfreebsd*-gnu | dragonfly*)
4611 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4612 case $host_cpu in
4613 i*86 )
4614 # Not sure whether the presence of OpenBSD here was a mistake.
4615 # Let's accept both of them until this is cleared up.
4616 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4617 lt_cv_file_magic_cmd=/usr/bin/file
4618 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4620 esac
4621 else
4622 lt_cv_deplibs_check_method=pass_all
4626 gnu*)
4627 lt_cv_deplibs_check_method=pass_all
4630 hpux10.20* | hpux11*)
4631 lt_cv_file_magic_cmd=/usr/bin/file
4632 case $host_cpu in
4633 ia64*)
4634 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4635 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4637 hppa*64*)
4638 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]'
4639 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4642 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4643 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4645 esac
4648 interix3*)
4649 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4650 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4653 irix5* | irix6* | nonstopux*)
4654 case $LD in
4655 *-32|*"-32 ") libmagic=32-bit;;
4656 *-n32|*"-n32 ") libmagic=N32;;
4657 *-64|*"-64 ") libmagic=64-bit;;
4658 *) libmagic=never-match;;
4659 esac
4660 lt_cv_deplibs_check_method=pass_all
4663 # This must be Linux ELF.
4664 linux*)
4665 lt_cv_deplibs_check_method=pass_all
4668 netbsd*)
4669 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4670 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4671 else
4672 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4676 newos6*)
4677 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4678 lt_cv_file_magic_cmd=/usr/bin/file
4679 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4682 nto-qnx*)
4683 lt_cv_deplibs_check_method=unknown
4686 openbsd*)
4687 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4688 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4689 else
4690 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4694 osf3* | osf4* | osf5*)
4695 lt_cv_deplibs_check_method=pass_all
4698 solaris*)
4699 lt_cv_deplibs_check_method=pass_all
4702 sysv4 | sysv4.3*)
4703 case $host_vendor in
4704 motorola)
4705 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]'
4706 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4708 ncr)
4709 lt_cv_deplibs_check_method=pass_all
4711 sequent)
4712 lt_cv_file_magic_cmd='/bin/file'
4713 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4715 sni)
4716 lt_cv_file_magic_cmd='/bin/file'
4717 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4718 lt_cv_file_magic_test_file=/lib/libc.so
4720 siemens)
4721 lt_cv_deplibs_check_method=pass_all
4724 lt_cv_deplibs_check_method=pass_all
4726 esac
4729 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4730 lt_cv_deplibs_check_method=pass_all
4732 esac
4735 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4736 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
4737 file_magic_cmd=$lt_cv_file_magic_cmd
4738 deplibs_check_method=$lt_cv_deplibs_check_method
4739 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4744 # If no C compiler was specified, use CC.
4745 LTCC=${LTCC-"$CC"}
4747 # If no C compiler flags were specified, use CFLAGS.
4748 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4750 # Allow CC to be a program name with arguments.
4751 compiler=$CC
4754 # Check whether --enable-libtool-lock was given.
4755 if test "${enable_libtool_lock+set}" = set; then
4756 enableval=$enable_libtool_lock;
4759 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4761 # Some flags need to be propagated to the compiler or linker for good
4762 # libtool support.
4763 case $host in
4764 ia64-*-hpux*)
4765 # Find out which ABI we are using.
4766 echo 'int i;' > conftest.$ac_ext
4767 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4768 (eval $ac_compile) 2>&5
4769 ac_status=$?
4770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4771 (exit $ac_status); }; then
4772 case `/usr/bin/file conftest.$ac_objext` in
4773 *ELF-32*)
4774 HPUX_IA64_MODE="32"
4776 *ELF-64*)
4777 HPUX_IA64_MODE="64"
4779 esac
4781 rm -rf conftest*
4783 *-*-irix6*)
4784 # Find out which ABI we are using.
4785 echo '#line 4785 "configure"' > conftest.$ac_ext
4786 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4787 (eval $ac_compile) 2>&5
4788 ac_status=$?
4789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4790 (exit $ac_status); }; then
4791 if test "$lt_cv_prog_gnu_ld" = yes; then
4792 case `/usr/bin/file conftest.$ac_objext` in
4793 *32-bit*)
4794 LD="${LD-ld} -melf32bsmip"
4796 *N32*)
4797 LD="${LD-ld} -melf32bmipn32"
4799 *64-bit*)
4800 LD="${LD-ld} -melf64bmip"
4802 esac
4803 else
4804 case `/usr/bin/file conftest.$ac_objext` in
4805 *32-bit*)
4806 LD="${LD-ld} -32"
4808 *N32*)
4809 LD="${LD-ld} -n32"
4811 *64-bit*)
4812 LD="${LD-ld} -64"
4814 esac
4817 rm -rf conftest*
4820 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4821 # Find out which ABI we are using.
4822 echo 'int i;' > conftest.$ac_ext
4823 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4824 (eval $ac_compile) 2>&5
4825 ac_status=$?
4826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4827 (exit $ac_status); }; then
4828 case `/usr/bin/file conftest.o` in
4829 *32-bit*)
4830 case $host in
4831 x86_64-*linux*)
4832 LD="${LD-ld} -m elf_i386"
4834 ppc64-*linux*|powerpc64-*linux*)
4835 LD="${LD-ld} -m elf32ppclinux"
4837 s390x-*linux*)
4838 LD="${LD-ld} -m elf_s390"
4840 sparc64-*linux*)
4841 LD="${LD-ld} -m elf32_sparc"
4843 esac
4845 *64-bit*)
4846 case $host in
4847 x86_64-*linux*)
4848 LD="${LD-ld} -m elf_x86_64"
4850 ppc*-*linux*|powerpc*-*linux*)
4851 LD="${LD-ld} -m elf64ppc"
4853 s390*-*linux*)
4854 LD="${LD-ld} -m elf64_s390"
4856 sparc*-*linux*)
4857 LD="${LD-ld} -m elf64_sparc"
4859 esac
4861 esac
4863 rm -rf conftest*
4866 *-*-sco3.2v5*)
4867 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4868 SAVE_CFLAGS="$CFLAGS"
4869 CFLAGS="$CFLAGS -belf"
4870 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4871 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
4872 if test "${lt_cv_cc_needs_belf+set}" = set; then
4873 echo $ECHO_N "(cached) $ECHO_C" >&6
4874 else
4875 ac_ext=c
4876 ac_cpp='$CPP $CPPFLAGS'
4877 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4878 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4879 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4881 cat >conftest.$ac_ext <<_ACEOF
4882 /* confdefs.h. */
4883 _ACEOF
4884 cat confdefs.h >>conftest.$ac_ext
4885 cat >>conftest.$ac_ext <<_ACEOF
4886 /* end confdefs.h. */
4889 main ()
4893 return 0;
4895 _ACEOF
4896 rm -f conftest.$ac_objext conftest$ac_exeext
4897 if { (ac_try="$ac_link"
4898 case "(($ac_try" in
4899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4900 *) ac_try_echo=$ac_try;;
4901 esac
4902 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4903 (eval "$ac_link") 2>conftest.er1
4904 ac_status=$?
4905 grep -v '^ *+' conftest.er1 >conftest.err
4906 rm -f conftest.er1
4907 cat conftest.err >&5
4908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4909 (exit $ac_status); } && {
4910 test -z "$ac_c_werror_flag" ||
4911 test ! -s conftest.err
4912 } && test -s conftest$ac_exeext &&
4913 $as_test_x conftest$ac_exeext; then
4914 lt_cv_cc_needs_belf=yes
4915 else
4916 echo "$as_me: failed program was:" >&5
4917 sed 's/^/| /' conftest.$ac_ext >&5
4919 lt_cv_cc_needs_belf=no
4922 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4923 conftest$ac_exeext conftest.$ac_ext
4924 ac_ext=c
4925 ac_cpp='$CPP $CPPFLAGS'
4926 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4927 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4928 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4931 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4932 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
4933 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4934 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4935 CFLAGS="$SAVE_CFLAGS"
4938 sparc*-*solaris*)
4939 # Find out which ABI we are using.
4940 echo 'int i;' > conftest.$ac_ext
4941 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4942 (eval $ac_compile) 2>&5
4943 ac_status=$?
4944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4945 (exit $ac_status); }; then
4946 case `/usr/bin/file conftest.o` in
4947 *64-bit*)
4948 case $lt_cv_prog_gnu_ld in
4949 yes*) LD="${LD-ld} -m elf64_sparc" ;;
4950 *) LD="${LD-ld} -64" ;;
4951 esac
4953 esac
4955 rm -rf conftest*
4959 esac
4961 need_locks="$enable_libtool_lock"
4964 ac_ext=c
4965 ac_cpp='$CPP $CPPFLAGS'
4966 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4967 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4968 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4969 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4970 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4971 # On Suns, sometimes $CPP names a directory.
4972 if test -n "$CPP" && test -d "$CPP"; then
4973 CPP=
4975 if test -z "$CPP"; then
4976 if test "${ac_cv_prog_CPP+set}" = set; then
4977 echo $ECHO_N "(cached) $ECHO_C" >&6
4978 else
4979 # Double quotes because CPP needs to be expanded
4980 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4982 ac_preproc_ok=false
4983 for ac_c_preproc_warn_flag in '' yes
4985 # Use a header file that comes with gcc, so configuring glibc
4986 # with a fresh cross-compiler works.
4987 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4988 # <limits.h> exists even on freestanding compilers.
4989 # On the NeXT, cc -E runs the code through the compiler's parser,
4990 # not just through cpp. "Syntax error" is here to catch this case.
4991 cat >conftest.$ac_ext <<_ACEOF
4992 /* confdefs.h. */
4993 _ACEOF
4994 cat confdefs.h >>conftest.$ac_ext
4995 cat >>conftest.$ac_ext <<_ACEOF
4996 /* end confdefs.h. */
4997 #ifdef __STDC__
4998 # include <limits.h>
4999 #else
5000 # include <assert.h>
5001 #endif
5002 Syntax error
5003 _ACEOF
5004 if { (ac_try="$ac_cpp conftest.$ac_ext"
5005 case "(($ac_try" in
5006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5007 *) ac_try_echo=$ac_try;;
5008 esac
5009 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5010 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5011 ac_status=$?
5012 grep -v '^ *+' conftest.er1 >conftest.err
5013 rm -f conftest.er1
5014 cat conftest.err >&5
5015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5016 (exit $ac_status); } >/dev/null && {
5017 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5018 test ! -s conftest.err
5019 }; then
5021 else
5022 echo "$as_me: failed program was:" >&5
5023 sed 's/^/| /' conftest.$ac_ext >&5
5025 # Broken: fails on valid input.
5026 continue
5029 rm -f conftest.err conftest.$ac_ext
5031 # OK, works on sane cases. Now check whether nonexistent headers
5032 # can be detected and how.
5033 cat >conftest.$ac_ext <<_ACEOF
5034 /* confdefs.h. */
5035 _ACEOF
5036 cat confdefs.h >>conftest.$ac_ext
5037 cat >>conftest.$ac_ext <<_ACEOF
5038 /* end confdefs.h. */
5039 #include <ac_nonexistent.h>
5040 _ACEOF
5041 if { (ac_try="$ac_cpp conftest.$ac_ext"
5042 case "(($ac_try" in
5043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5044 *) ac_try_echo=$ac_try;;
5045 esac
5046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5047 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5048 ac_status=$?
5049 grep -v '^ *+' conftest.er1 >conftest.err
5050 rm -f conftest.er1
5051 cat conftest.err >&5
5052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5053 (exit $ac_status); } >/dev/null && {
5054 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5055 test ! -s conftest.err
5056 }; then
5057 # Broken: success on invalid input.
5058 continue
5059 else
5060 echo "$as_me: failed program was:" >&5
5061 sed 's/^/| /' conftest.$ac_ext >&5
5063 # Passes both tests.
5064 ac_preproc_ok=:
5065 break
5068 rm -f conftest.err conftest.$ac_ext
5070 done
5071 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5072 rm -f conftest.err conftest.$ac_ext
5073 if $ac_preproc_ok; then
5074 break
5077 done
5078 ac_cv_prog_CPP=$CPP
5081 CPP=$ac_cv_prog_CPP
5082 else
5083 ac_cv_prog_CPP=$CPP
5085 { echo "$as_me:$LINENO: result: $CPP" >&5
5086 echo "${ECHO_T}$CPP" >&6; }
5087 ac_preproc_ok=false
5088 for ac_c_preproc_warn_flag in '' yes
5090 # Use a header file that comes with gcc, so configuring glibc
5091 # with a fresh cross-compiler works.
5092 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5093 # <limits.h> exists even on freestanding compilers.
5094 # On the NeXT, cc -E runs the code through the compiler's parser,
5095 # not just through cpp. "Syntax error" is here to catch this case.
5096 cat >conftest.$ac_ext <<_ACEOF
5097 /* confdefs.h. */
5098 _ACEOF
5099 cat confdefs.h >>conftest.$ac_ext
5100 cat >>conftest.$ac_ext <<_ACEOF
5101 /* end confdefs.h. */
5102 #ifdef __STDC__
5103 # include <limits.h>
5104 #else
5105 # include <assert.h>
5106 #endif
5107 Syntax error
5108 _ACEOF
5109 if { (ac_try="$ac_cpp conftest.$ac_ext"
5110 case "(($ac_try" in
5111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5112 *) ac_try_echo=$ac_try;;
5113 esac
5114 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5115 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5116 ac_status=$?
5117 grep -v '^ *+' conftest.er1 >conftest.err
5118 rm -f conftest.er1
5119 cat conftest.err >&5
5120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5121 (exit $ac_status); } >/dev/null && {
5122 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5123 test ! -s conftest.err
5124 }; then
5126 else
5127 echo "$as_me: failed program was:" >&5
5128 sed 's/^/| /' conftest.$ac_ext >&5
5130 # Broken: fails on valid input.
5131 continue
5134 rm -f conftest.err conftest.$ac_ext
5136 # OK, works on sane cases. Now check whether nonexistent headers
5137 # can be detected and how.
5138 cat >conftest.$ac_ext <<_ACEOF
5139 /* confdefs.h. */
5140 _ACEOF
5141 cat confdefs.h >>conftest.$ac_ext
5142 cat >>conftest.$ac_ext <<_ACEOF
5143 /* end confdefs.h. */
5144 #include <ac_nonexistent.h>
5145 _ACEOF
5146 if { (ac_try="$ac_cpp conftest.$ac_ext"
5147 case "(($ac_try" in
5148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5149 *) ac_try_echo=$ac_try;;
5150 esac
5151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5152 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5153 ac_status=$?
5154 grep -v '^ *+' conftest.er1 >conftest.err
5155 rm -f conftest.er1
5156 cat conftest.err >&5
5157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5158 (exit $ac_status); } >/dev/null && {
5159 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5160 test ! -s conftest.err
5161 }; then
5162 # Broken: success on invalid input.
5163 continue
5164 else
5165 echo "$as_me: failed program was:" >&5
5166 sed 's/^/| /' conftest.$ac_ext >&5
5168 # Passes both tests.
5169 ac_preproc_ok=:
5170 break
5173 rm -f conftest.err conftest.$ac_ext
5175 done
5176 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5177 rm -f conftest.err conftest.$ac_ext
5178 if $ac_preproc_ok; then
5180 else
5181 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5182 See \`config.log' for more details." >&5
5183 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5184 See \`config.log' for more details." >&2;}
5185 { (exit 1); exit 1; }; }
5188 ac_ext=c
5189 ac_cpp='$CPP $CPPFLAGS'
5190 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5191 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5192 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5195 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5196 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
5197 if test "${ac_cv_header_stdc+set}" = set; then
5198 echo $ECHO_N "(cached) $ECHO_C" >&6
5199 else
5200 cat >conftest.$ac_ext <<_ACEOF
5201 /* confdefs.h. */
5202 _ACEOF
5203 cat confdefs.h >>conftest.$ac_ext
5204 cat >>conftest.$ac_ext <<_ACEOF
5205 /* end confdefs.h. */
5206 #include <stdlib.h>
5207 #include <stdarg.h>
5208 #include <string.h>
5209 #include <float.h>
5212 main ()
5216 return 0;
5218 _ACEOF
5219 rm -f conftest.$ac_objext
5220 if { (ac_try="$ac_compile"
5221 case "(($ac_try" in
5222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5223 *) ac_try_echo=$ac_try;;
5224 esac
5225 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5226 (eval "$ac_compile") 2>conftest.er1
5227 ac_status=$?
5228 grep -v '^ *+' conftest.er1 >conftest.err
5229 rm -f conftest.er1
5230 cat conftest.err >&5
5231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5232 (exit $ac_status); } && {
5233 test -z "$ac_c_werror_flag" ||
5234 test ! -s conftest.err
5235 } && test -s conftest.$ac_objext; then
5236 ac_cv_header_stdc=yes
5237 else
5238 echo "$as_me: failed program was:" >&5
5239 sed 's/^/| /' conftest.$ac_ext >&5
5241 ac_cv_header_stdc=no
5244 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5246 if test $ac_cv_header_stdc = yes; then
5247 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5248 cat >conftest.$ac_ext <<_ACEOF
5249 /* confdefs.h. */
5250 _ACEOF
5251 cat confdefs.h >>conftest.$ac_ext
5252 cat >>conftest.$ac_ext <<_ACEOF
5253 /* end confdefs.h. */
5254 #include <string.h>
5256 _ACEOF
5257 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5258 $EGREP "memchr" >/dev/null 2>&1; then
5260 else
5261 ac_cv_header_stdc=no
5263 rm -f conftest*
5267 if test $ac_cv_header_stdc = yes; then
5268 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5269 cat >conftest.$ac_ext <<_ACEOF
5270 /* confdefs.h. */
5271 _ACEOF
5272 cat confdefs.h >>conftest.$ac_ext
5273 cat >>conftest.$ac_ext <<_ACEOF
5274 /* end confdefs.h. */
5275 #include <stdlib.h>
5277 _ACEOF
5278 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5279 $EGREP "free" >/dev/null 2>&1; then
5281 else
5282 ac_cv_header_stdc=no
5284 rm -f conftest*
5288 if test $ac_cv_header_stdc = yes; then
5289 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5290 if test "$cross_compiling" = yes; then
5292 else
5293 cat >conftest.$ac_ext <<_ACEOF
5294 /* confdefs.h. */
5295 _ACEOF
5296 cat confdefs.h >>conftest.$ac_ext
5297 cat >>conftest.$ac_ext <<_ACEOF
5298 /* end confdefs.h. */
5299 #include <ctype.h>
5300 #include <stdlib.h>
5301 #if ((' ' & 0x0FF) == 0x020)
5302 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5303 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5304 #else
5305 # define ISLOWER(c) \
5306 (('a' <= (c) && (c) <= 'i') \
5307 || ('j' <= (c) && (c) <= 'r') \
5308 || ('s' <= (c) && (c) <= 'z'))
5309 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5310 #endif
5312 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5314 main ()
5316 int i;
5317 for (i = 0; i < 256; i++)
5318 if (XOR (islower (i), ISLOWER (i))
5319 || toupper (i) != TOUPPER (i))
5320 return 2;
5321 return 0;
5323 _ACEOF
5324 rm -f conftest$ac_exeext
5325 if { (ac_try="$ac_link"
5326 case "(($ac_try" in
5327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5328 *) ac_try_echo=$ac_try;;
5329 esac
5330 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5331 (eval "$ac_link") 2>&5
5332 ac_status=$?
5333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5334 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5335 { (case "(($ac_try" in
5336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5337 *) ac_try_echo=$ac_try;;
5338 esac
5339 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5340 (eval "$ac_try") 2>&5
5341 ac_status=$?
5342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5343 (exit $ac_status); }; }; then
5345 else
5346 echo "$as_me: program exited with status $ac_status" >&5
5347 echo "$as_me: failed program was:" >&5
5348 sed 's/^/| /' conftest.$ac_ext >&5
5350 ( exit $ac_status )
5351 ac_cv_header_stdc=no
5353 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5359 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5360 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
5361 if test $ac_cv_header_stdc = yes; then
5363 cat >>confdefs.h <<\_ACEOF
5364 #define STDC_HEADERS 1
5365 _ACEOF
5369 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5379 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5380 inttypes.h stdint.h unistd.h
5382 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5383 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5384 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5385 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5386 echo $ECHO_N "(cached) $ECHO_C" >&6
5387 else
5388 cat >conftest.$ac_ext <<_ACEOF
5389 /* confdefs.h. */
5390 _ACEOF
5391 cat confdefs.h >>conftest.$ac_ext
5392 cat >>conftest.$ac_ext <<_ACEOF
5393 /* end confdefs.h. */
5394 $ac_includes_default
5396 #include <$ac_header>
5397 _ACEOF
5398 rm -f conftest.$ac_objext
5399 if { (ac_try="$ac_compile"
5400 case "(($ac_try" in
5401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5402 *) ac_try_echo=$ac_try;;
5403 esac
5404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5405 (eval "$ac_compile") 2>conftest.er1
5406 ac_status=$?
5407 grep -v '^ *+' conftest.er1 >conftest.err
5408 rm -f conftest.er1
5409 cat conftest.err >&5
5410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5411 (exit $ac_status); } && {
5412 test -z "$ac_c_werror_flag" ||
5413 test ! -s conftest.err
5414 } && test -s conftest.$ac_objext; then
5415 eval "$as_ac_Header=yes"
5416 else
5417 echo "$as_me: failed program was:" >&5
5418 sed 's/^/| /' conftest.$ac_ext >&5
5420 eval "$as_ac_Header=no"
5423 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5425 ac_res=`eval echo '${'$as_ac_Header'}'`
5426 { echo "$as_me:$LINENO: result: $ac_res" >&5
5427 echo "${ECHO_T}$ac_res" >&6; }
5428 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5429 cat >>confdefs.h <<_ACEOF
5430 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5431 _ACEOF
5435 done
5439 for ac_header in dlfcn.h
5441 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5442 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5443 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5444 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5445 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5446 echo $ECHO_N "(cached) $ECHO_C" >&6
5448 ac_res=`eval echo '${'$as_ac_Header'}'`
5449 { echo "$as_me:$LINENO: result: $ac_res" >&5
5450 echo "${ECHO_T}$ac_res" >&6; }
5451 else
5452 # Is the header compilable?
5453 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5454 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5455 cat >conftest.$ac_ext <<_ACEOF
5456 /* confdefs.h. */
5457 _ACEOF
5458 cat confdefs.h >>conftest.$ac_ext
5459 cat >>conftest.$ac_ext <<_ACEOF
5460 /* end confdefs.h. */
5461 $ac_includes_default
5462 #include <$ac_header>
5463 _ACEOF
5464 rm -f conftest.$ac_objext
5465 if { (ac_try="$ac_compile"
5466 case "(($ac_try" in
5467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5468 *) ac_try_echo=$ac_try;;
5469 esac
5470 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5471 (eval "$ac_compile") 2>conftest.er1
5472 ac_status=$?
5473 grep -v '^ *+' conftest.er1 >conftest.err
5474 rm -f conftest.er1
5475 cat conftest.err >&5
5476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5477 (exit $ac_status); } && {
5478 test -z "$ac_c_werror_flag" ||
5479 test ! -s conftest.err
5480 } && test -s conftest.$ac_objext; then
5481 ac_header_compiler=yes
5482 else
5483 echo "$as_me: failed program was:" >&5
5484 sed 's/^/| /' conftest.$ac_ext >&5
5486 ac_header_compiler=no
5489 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5490 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5491 echo "${ECHO_T}$ac_header_compiler" >&6; }
5493 # Is the header present?
5494 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5495 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5496 cat >conftest.$ac_ext <<_ACEOF
5497 /* confdefs.h. */
5498 _ACEOF
5499 cat confdefs.h >>conftest.$ac_ext
5500 cat >>conftest.$ac_ext <<_ACEOF
5501 /* end confdefs.h. */
5502 #include <$ac_header>
5503 _ACEOF
5504 if { (ac_try="$ac_cpp conftest.$ac_ext"
5505 case "(($ac_try" in
5506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5507 *) ac_try_echo=$ac_try;;
5508 esac
5509 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5510 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5511 ac_status=$?
5512 grep -v '^ *+' conftest.er1 >conftest.err
5513 rm -f conftest.er1
5514 cat conftest.err >&5
5515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5516 (exit $ac_status); } >/dev/null && {
5517 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5518 test ! -s conftest.err
5519 }; then
5520 ac_header_preproc=yes
5521 else
5522 echo "$as_me: failed program was:" >&5
5523 sed 's/^/| /' conftest.$ac_ext >&5
5525 ac_header_preproc=no
5528 rm -f conftest.err conftest.$ac_ext
5529 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5530 echo "${ECHO_T}$ac_header_preproc" >&6; }
5532 # So? What about this header?
5533 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5534 yes:no: )
5535 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5536 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5537 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5538 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5539 ac_header_preproc=yes
5541 no:yes:* )
5542 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5543 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5544 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5545 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5546 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5547 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5548 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5549 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5550 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5551 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5552 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5553 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5556 esac
5557 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5558 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5559 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5560 echo $ECHO_N "(cached) $ECHO_C" >&6
5561 else
5562 eval "$as_ac_Header=\$ac_header_preproc"
5564 ac_res=`eval echo '${'$as_ac_Header'}'`
5565 { echo "$as_me:$LINENO: result: $ac_res" >&5
5566 echo "${ECHO_T}$ac_res" >&6; }
5569 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5570 cat >>confdefs.h <<_ACEOF
5571 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5572 _ACEOF
5576 done
5580 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5581 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5582 (test "X$CXX" != "Xg++"))) ; then
5583 ac_ext=cpp
5584 ac_cpp='$CXXCPP $CPPFLAGS'
5585 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5586 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5587 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5588 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5589 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
5590 if test -z "$CXXCPP"; then
5591 if test "${ac_cv_prog_CXXCPP+set}" = set; then
5592 echo $ECHO_N "(cached) $ECHO_C" >&6
5593 else
5594 # Double quotes because CXXCPP needs to be expanded
5595 for CXXCPP in "$CXX -E" "/lib/cpp"
5597 ac_preproc_ok=false
5598 for ac_cxx_preproc_warn_flag in '' yes
5600 # Use a header file that comes with gcc, so configuring glibc
5601 # with a fresh cross-compiler works.
5602 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5603 # <limits.h> exists even on freestanding compilers.
5604 # On the NeXT, cc -E runs the code through the compiler's parser,
5605 # not just through cpp. "Syntax error" is here to catch this case.
5606 cat >conftest.$ac_ext <<_ACEOF
5607 /* confdefs.h. */
5608 _ACEOF
5609 cat confdefs.h >>conftest.$ac_ext
5610 cat >>conftest.$ac_ext <<_ACEOF
5611 /* end confdefs.h. */
5612 #ifdef __STDC__
5613 # include <limits.h>
5614 #else
5615 # include <assert.h>
5616 #endif
5617 Syntax error
5618 _ACEOF
5619 if { (ac_try="$ac_cpp conftest.$ac_ext"
5620 case "(($ac_try" in
5621 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5622 *) ac_try_echo=$ac_try;;
5623 esac
5624 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5625 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5626 ac_status=$?
5627 grep -v '^ *+' conftest.er1 >conftest.err
5628 rm -f conftest.er1
5629 cat conftest.err >&5
5630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5631 (exit $ac_status); } >/dev/null && {
5632 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5633 test ! -s conftest.err
5634 }; then
5636 else
5637 echo "$as_me: failed program was:" >&5
5638 sed 's/^/| /' conftest.$ac_ext >&5
5640 # Broken: fails on valid input.
5641 continue
5644 rm -f conftest.err conftest.$ac_ext
5646 # OK, works on sane cases. Now check whether nonexistent headers
5647 # can be detected and how.
5648 cat >conftest.$ac_ext <<_ACEOF
5649 /* confdefs.h. */
5650 _ACEOF
5651 cat confdefs.h >>conftest.$ac_ext
5652 cat >>conftest.$ac_ext <<_ACEOF
5653 /* end confdefs.h. */
5654 #include <ac_nonexistent.h>
5655 _ACEOF
5656 if { (ac_try="$ac_cpp conftest.$ac_ext"
5657 case "(($ac_try" in
5658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5659 *) ac_try_echo=$ac_try;;
5660 esac
5661 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5662 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5663 ac_status=$?
5664 grep -v '^ *+' conftest.er1 >conftest.err
5665 rm -f conftest.er1
5666 cat conftest.err >&5
5667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5668 (exit $ac_status); } >/dev/null && {
5669 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5670 test ! -s conftest.err
5671 }; then
5672 # Broken: success on invalid input.
5673 continue
5674 else
5675 echo "$as_me: failed program was:" >&5
5676 sed 's/^/| /' conftest.$ac_ext >&5
5678 # Passes both tests.
5679 ac_preproc_ok=:
5680 break
5683 rm -f conftest.err conftest.$ac_ext
5685 done
5686 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5687 rm -f conftest.err conftest.$ac_ext
5688 if $ac_preproc_ok; then
5689 break
5692 done
5693 ac_cv_prog_CXXCPP=$CXXCPP
5696 CXXCPP=$ac_cv_prog_CXXCPP
5697 else
5698 ac_cv_prog_CXXCPP=$CXXCPP
5700 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
5701 echo "${ECHO_T}$CXXCPP" >&6; }
5702 ac_preproc_ok=false
5703 for ac_cxx_preproc_warn_flag in '' yes
5705 # Use a header file that comes with gcc, so configuring glibc
5706 # with a fresh cross-compiler works.
5707 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5708 # <limits.h> exists even on freestanding compilers.
5709 # On the NeXT, cc -E runs the code through the compiler's parser,
5710 # not just through cpp. "Syntax error" is here to catch this case.
5711 cat >conftest.$ac_ext <<_ACEOF
5712 /* confdefs.h. */
5713 _ACEOF
5714 cat confdefs.h >>conftest.$ac_ext
5715 cat >>conftest.$ac_ext <<_ACEOF
5716 /* end confdefs.h. */
5717 #ifdef __STDC__
5718 # include <limits.h>
5719 #else
5720 # include <assert.h>
5721 #endif
5722 Syntax error
5723 _ACEOF
5724 if { (ac_try="$ac_cpp conftest.$ac_ext"
5725 case "(($ac_try" in
5726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5727 *) ac_try_echo=$ac_try;;
5728 esac
5729 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5730 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5731 ac_status=$?
5732 grep -v '^ *+' conftest.er1 >conftest.err
5733 rm -f conftest.er1
5734 cat conftest.err >&5
5735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5736 (exit $ac_status); } >/dev/null && {
5737 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5738 test ! -s conftest.err
5739 }; then
5741 else
5742 echo "$as_me: failed program was:" >&5
5743 sed 's/^/| /' conftest.$ac_ext >&5
5745 # Broken: fails on valid input.
5746 continue
5749 rm -f conftest.err conftest.$ac_ext
5751 # OK, works on sane cases. Now check whether nonexistent headers
5752 # can be detected and how.
5753 cat >conftest.$ac_ext <<_ACEOF
5754 /* confdefs.h. */
5755 _ACEOF
5756 cat confdefs.h >>conftest.$ac_ext
5757 cat >>conftest.$ac_ext <<_ACEOF
5758 /* end confdefs.h. */
5759 #include <ac_nonexistent.h>
5760 _ACEOF
5761 if { (ac_try="$ac_cpp conftest.$ac_ext"
5762 case "(($ac_try" in
5763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5764 *) ac_try_echo=$ac_try;;
5765 esac
5766 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5767 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5768 ac_status=$?
5769 grep -v '^ *+' conftest.er1 >conftest.err
5770 rm -f conftest.er1
5771 cat conftest.err >&5
5772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5773 (exit $ac_status); } >/dev/null && {
5774 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5775 test ! -s conftest.err
5776 }; then
5777 # Broken: success on invalid input.
5778 continue
5779 else
5780 echo "$as_me: failed program was:" >&5
5781 sed 's/^/| /' conftest.$ac_ext >&5
5783 # Passes both tests.
5784 ac_preproc_ok=:
5785 break
5788 rm -f conftest.err conftest.$ac_ext
5790 done
5791 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5792 rm -f conftest.err conftest.$ac_ext
5793 if $ac_preproc_ok; then
5795 else
5796 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5797 See \`config.log' for more details." >&5
5798 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5799 See \`config.log' for more details." >&2;}
5800 { (exit 1); exit 1; }; }
5803 ac_ext=cpp
5804 ac_cpp='$CXXCPP $CPPFLAGS'
5805 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5806 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5807 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5812 ac_ext=f
5813 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5814 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5815 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5816 if test -n "$ac_tool_prefix"; then
5817 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
5819 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5820 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5821 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5822 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5823 if test "${ac_cv_prog_F77+set}" = set; then
5824 echo $ECHO_N "(cached) $ECHO_C" >&6
5825 else
5826 if test -n "$F77"; then
5827 ac_cv_prog_F77="$F77" # Let the user override the test.
5828 else
5829 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5830 for as_dir in $PATH
5832 IFS=$as_save_IFS
5833 test -z "$as_dir" && as_dir=.
5834 for ac_exec_ext in '' $ac_executable_extensions; do
5835 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5836 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5837 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5838 break 2
5840 done
5841 done
5842 IFS=$as_save_IFS
5846 F77=$ac_cv_prog_F77
5847 if test -n "$F77"; then
5848 { echo "$as_me:$LINENO: result: $F77" >&5
5849 echo "${ECHO_T}$F77" >&6; }
5850 else
5851 { echo "$as_me:$LINENO: result: no" >&5
5852 echo "${ECHO_T}no" >&6; }
5856 test -n "$F77" && break
5857 done
5859 if test -z "$F77"; then
5860 ac_ct_F77=$F77
5861 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
5863 # Extract the first word of "$ac_prog", so it can be a program name with args.
5864 set dummy $ac_prog; ac_word=$2
5865 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5866 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5867 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5868 echo $ECHO_N "(cached) $ECHO_C" >&6
5869 else
5870 if test -n "$ac_ct_F77"; then
5871 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5872 else
5873 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5874 for as_dir in $PATH
5876 IFS=$as_save_IFS
5877 test -z "$as_dir" && as_dir=.
5878 for ac_exec_ext in '' $ac_executable_extensions; do
5879 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5880 ac_cv_prog_ac_ct_F77="$ac_prog"
5881 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5882 break 2
5884 done
5885 done
5886 IFS=$as_save_IFS
5890 ac_ct_F77=$ac_cv_prog_ac_ct_F77
5891 if test -n "$ac_ct_F77"; then
5892 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5893 echo "${ECHO_T}$ac_ct_F77" >&6; }
5894 else
5895 { echo "$as_me:$LINENO: result: no" >&5
5896 echo "${ECHO_T}no" >&6; }
5900 test -n "$ac_ct_F77" && break
5901 done
5903 if test "x$ac_ct_F77" = x; then
5904 F77=""
5905 else
5906 case $cross_compiling:$ac_tool_warned in
5907 yes:)
5908 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5909 whose name does not start with the host triplet. If you think this
5910 configuration is useful to you, please write to autoconf@gnu.org." >&5
5911 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5912 whose name does not start with the host triplet. If you think this
5913 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5914 ac_tool_warned=yes ;;
5915 esac
5916 F77=$ac_ct_F77
5921 # Provide some information about the compiler.
5922 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
5923 ac_compiler=`set X $ac_compile; echo $2`
5924 { (ac_try="$ac_compiler --version >&5"
5925 case "(($ac_try" in
5926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5927 *) ac_try_echo=$ac_try;;
5928 esac
5929 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5930 (eval "$ac_compiler --version >&5") 2>&5
5931 ac_status=$?
5932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5933 (exit $ac_status); }
5934 { (ac_try="$ac_compiler -v >&5"
5935 case "(($ac_try" in
5936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5937 *) ac_try_echo=$ac_try;;
5938 esac
5939 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5940 (eval "$ac_compiler -v >&5") 2>&5
5941 ac_status=$?
5942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5943 (exit $ac_status); }
5944 { (ac_try="$ac_compiler -V >&5"
5945 case "(($ac_try" in
5946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5947 *) ac_try_echo=$ac_try;;
5948 esac
5949 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5950 (eval "$ac_compiler -V >&5") 2>&5
5951 ac_status=$?
5952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5953 (exit $ac_status); }
5954 rm -f a.out
5956 # If we don't use `.F' as extension, the preprocessor is not run on the
5957 # input file. (Note that this only needs to work for GNU compilers.)
5958 ac_save_ext=$ac_ext
5959 ac_ext=F
5960 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5961 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
5962 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5963 echo $ECHO_N "(cached) $ECHO_C" >&6
5964 else
5965 cat >conftest.$ac_ext <<_ACEOF
5966 program main
5967 #ifndef __GNUC__
5968 choke me
5969 #endif
5972 _ACEOF
5973 rm -f conftest.$ac_objext
5974 if { (ac_try="$ac_compile"
5975 case "(($ac_try" in
5976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5977 *) ac_try_echo=$ac_try;;
5978 esac
5979 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5980 (eval "$ac_compile") 2>conftest.er1
5981 ac_status=$?
5982 grep -v '^ *+' conftest.er1 >conftest.err
5983 rm -f conftest.er1
5984 cat conftest.err >&5
5985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5986 (exit $ac_status); } && {
5987 test -z "$ac_f77_werror_flag" ||
5988 test ! -s conftest.err
5989 } && test -s conftest.$ac_objext; then
5990 ac_compiler_gnu=yes
5991 else
5992 echo "$as_me: failed program was:" >&5
5993 sed 's/^/| /' conftest.$ac_ext >&5
5995 ac_compiler_gnu=no
5998 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5999 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6002 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
6003 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
6004 ac_ext=$ac_save_ext
6005 ac_test_FFLAGS=${FFLAGS+set}
6006 ac_save_FFLAGS=$FFLAGS
6007 FFLAGS=
6008 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
6009 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
6010 if test "${ac_cv_prog_f77_g+set}" = set; then
6011 echo $ECHO_N "(cached) $ECHO_C" >&6
6012 else
6013 FFLAGS=-g
6014 cat >conftest.$ac_ext <<_ACEOF
6015 program main
6018 _ACEOF
6019 rm -f conftest.$ac_objext
6020 if { (ac_try="$ac_compile"
6021 case "(($ac_try" in
6022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6023 *) ac_try_echo=$ac_try;;
6024 esac
6025 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6026 (eval "$ac_compile") 2>conftest.er1
6027 ac_status=$?
6028 grep -v '^ *+' conftest.er1 >conftest.err
6029 rm -f conftest.er1
6030 cat conftest.err >&5
6031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6032 (exit $ac_status); } && {
6033 test -z "$ac_f77_werror_flag" ||
6034 test ! -s conftest.err
6035 } && test -s conftest.$ac_objext; then
6036 ac_cv_prog_f77_g=yes
6037 else
6038 echo "$as_me: failed program was:" >&5
6039 sed 's/^/| /' conftest.$ac_ext >&5
6041 ac_cv_prog_f77_g=no
6044 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6047 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6048 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
6049 if test "$ac_test_FFLAGS" = set; then
6050 FFLAGS=$ac_save_FFLAGS
6051 elif test $ac_cv_prog_f77_g = yes; then
6052 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6053 FFLAGS="-g -O2"
6054 else
6055 FFLAGS="-g"
6057 else
6058 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6059 FFLAGS="-O2"
6060 else
6061 FFLAGS=
6065 G77=`test $ac_compiler_gnu = yes && echo yes`
6066 ac_ext=cpp
6067 ac_cpp='$CXXCPP $CPPFLAGS'
6068 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6069 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6070 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6074 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6076 # find the maximum length of command line arguments
6077 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6078 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
6079 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6080 echo $ECHO_N "(cached) $ECHO_C" >&6
6081 else
6083 teststring="ABCD"
6085 case $build_os in
6086 msdosdjgpp*)
6087 # On DJGPP, this test can blow up pretty badly due to problems in libc
6088 # (any single argument exceeding 2000 bytes causes a buffer overrun
6089 # during glob expansion). Even if it were fixed, the result of this
6090 # check would be larger than it should be.
6091 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6094 gnu*)
6095 # Under GNU Hurd, this test is not required because there is
6096 # no limit to the length of command line arguments.
6097 # Libtool will interpret -1 as no limit whatsoever
6098 lt_cv_sys_max_cmd_len=-1;
6101 cygwin* | mingw*)
6102 # On Win9x/ME, this test blows up -- it succeeds, but takes
6103 # about 5 minutes as the teststring grows exponentially.
6104 # Worse, since 9x/ME are not pre-emptively multitasking,
6105 # you end up with a "frozen" computer, even though with patience
6106 # the test eventually succeeds (with a max line length of 256k).
6107 # Instead, let's just punt: use the minimum linelength reported by
6108 # all of the supported platforms: 8192 (on NT/2K/XP).
6109 lt_cv_sys_max_cmd_len=8192;
6112 amigaos*)
6113 # On AmigaOS with pdksh, this test takes hours, literally.
6114 # So we just punt and use a minimum line length of 8192.
6115 lt_cv_sys_max_cmd_len=8192;
6118 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6119 # This has been around since 386BSD, at least. Likely further.
6120 if test -x /sbin/sysctl; then
6121 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6122 elif test -x /usr/sbin/sysctl; then
6123 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6124 else
6125 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6127 # And add a safety zone
6128 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6129 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6132 interix*)
6133 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6134 lt_cv_sys_max_cmd_len=196608
6137 osf*)
6138 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6139 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6140 # nice to cause kernel panics so lets avoid the loop below.
6141 # First set a reasonable default.
6142 lt_cv_sys_max_cmd_len=16384
6144 if test -x /sbin/sysconfig; then
6145 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6146 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6147 esac
6150 sco3.2v5*)
6151 lt_cv_sys_max_cmd_len=102400
6153 sysv5* | sco5v6* | sysv4.2uw2*)
6154 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6155 if test -n "$kargmax"; then
6156 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6157 else
6158 lt_cv_sys_max_cmd_len=32768
6162 # If test is not a shell built-in, we'll probably end up computing a
6163 # maximum length that is only half of the actual maximum length, but
6164 # we can't tell.
6165 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6166 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6167 = "XX$teststring") >/dev/null 2>&1 &&
6168 new_result=`expr "X$teststring" : ".*" 2>&1` &&
6169 lt_cv_sys_max_cmd_len=$new_result &&
6170 test $i != 17 # 1/2 MB should be enough
6172 i=`expr $i + 1`
6173 teststring=$teststring$teststring
6174 done
6175 teststring=
6176 # Add a significant safety factor because C++ compilers can tack on massive
6177 # amounts of additional arguments before passing them to the linker.
6178 # It appears as though 1/2 is a usable value.
6179 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6181 esac
6185 if test -n $lt_cv_sys_max_cmd_len ; then
6186 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6187 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
6188 else
6189 { echo "$as_me:$LINENO: result: none" >&5
6190 echo "${ECHO_T}none" >&6; }
6196 # Check for command to grab the raw symbol name followed by C symbol from nm.
6197 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6198 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
6199 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6200 echo $ECHO_N "(cached) $ECHO_C" >&6
6201 else
6203 # These are sane defaults that work on at least a few old systems.
6204 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6206 # Character class describing NM global symbol codes.
6207 symcode='[BCDEGRST]'
6209 # Regexp to match symbols that can be accessed directly from C.
6210 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6212 # Transform an extracted symbol line into a proper C declaration
6213 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6215 # Transform an extracted symbol line into symbol name and symbol address
6216 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'"
6218 # Define system-specific variables.
6219 case $host_os in
6220 aix*)
6221 symcode='[BCDT]'
6223 cygwin* | mingw* | pw32*)
6224 symcode='[ABCDGISTW]'
6226 hpux*) # Its linker distinguishes data from code symbols
6227 if test "$host_cpu" = ia64; then
6228 symcode='[ABCDEGRST]'
6230 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6231 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'"
6233 linux*)
6234 if test "$host_cpu" = ia64; then
6235 symcode='[ABCDGIRSTW]'
6236 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6237 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 irix* | nonstopux*)
6241 symcode='[BCDEGRST]'
6243 osf*)
6244 symcode='[BCDEGQRST]'
6246 solaris*)
6247 symcode='[BDRT]'
6249 sco3.2v5*)
6250 symcode='[DT]'
6252 sysv4.2uw2*)
6253 symcode='[DT]'
6255 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6256 symcode='[ABDT]'
6258 sysv4)
6259 symcode='[DFNSTU]'
6261 esac
6263 # Handle CRLF in mingw tool chain
6264 opt_cr=
6265 case $build_os in
6266 mingw*)
6267 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6269 esac
6271 # If we're using GNU nm, then use its standard symbol codes.
6272 case `$NM -V 2>&1` in
6273 *GNU* | *'with BFD'*)
6274 symcode='[ABCDGIRSTW]' ;;
6275 esac
6277 # Try without a prefix undercore, then with it.
6278 for ac_symprfx in "" "_"; do
6280 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6281 symxfrm="\\1 $ac_symprfx\\2 \\2"
6283 # Write the raw and C identifiers.
6284 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6286 # Check to see that the pipe works correctly.
6287 pipe_works=no
6289 rm -f conftest*
6290 cat > conftest.$ac_ext <<EOF
6291 #ifdef __cplusplus
6292 extern "C" {
6293 #endif
6294 char nm_test_var;
6295 void nm_test_func(){}
6296 #ifdef __cplusplus
6298 #endif
6299 int main(){nm_test_var='a';nm_test_func();return(0);}
6302 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6303 (eval $ac_compile) 2>&5
6304 ac_status=$?
6305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6306 (exit $ac_status); }; then
6307 # Now try to grab the symbols.
6308 nlist=conftest.nm
6309 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6310 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6311 ac_status=$?
6312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6313 (exit $ac_status); } && test -s "$nlist"; then
6314 # Try sorting and uniquifying the output.
6315 if sort "$nlist" | uniq > "$nlist"T; then
6316 mv -f "$nlist"T "$nlist"
6317 else
6318 rm -f "$nlist"T
6321 # Make sure that we snagged all the symbols we need.
6322 if grep ' nm_test_var$' "$nlist" >/dev/null; then
6323 if grep ' nm_test_func$' "$nlist" >/dev/null; then
6324 cat <<EOF > conftest.$ac_ext
6325 #ifdef __cplusplus
6326 extern "C" {
6327 #endif
6330 # Now generate the symbol file.
6331 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6333 cat <<EOF >> conftest.$ac_ext
6334 #if defined (__STDC__) && __STDC__
6335 # define lt_ptr_t void *
6336 #else
6337 # define lt_ptr_t char *
6338 # define const
6339 #endif
6341 /* The mapping between symbol names and symbols. */
6342 const struct {
6343 const char *name;
6344 lt_ptr_t address;
6346 lt_preloaded_symbols[] =
6349 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6350 cat <<\EOF >> conftest.$ac_ext
6351 {0, (lt_ptr_t) 0}
6354 #ifdef __cplusplus
6356 #endif
6358 # Now try linking the two files.
6359 mv conftest.$ac_objext conftstm.$ac_objext
6360 lt_save_LIBS="$LIBS"
6361 lt_save_CFLAGS="$CFLAGS"
6362 LIBS="conftstm.$ac_objext"
6363 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6364 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6365 (eval $ac_link) 2>&5
6366 ac_status=$?
6367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6368 (exit $ac_status); } && test -s conftest${ac_exeext}; then
6369 pipe_works=yes
6371 LIBS="$lt_save_LIBS"
6372 CFLAGS="$lt_save_CFLAGS"
6373 else
6374 echo "cannot find nm_test_func in $nlist" >&5
6376 else
6377 echo "cannot find nm_test_var in $nlist" >&5
6379 else
6380 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6382 else
6383 echo "$progname: failed program was:" >&5
6384 cat conftest.$ac_ext >&5
6386 rm -f conftest* conftst*
6388 # Do not use the global_symbol_pipe unless it works.
6389 if test "$pipe_works" = yes; then
6390 break
6391 else
6392 lt_cv_sys_global_symbol_pipe=
6394 done
6398 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6399 lt_cv_sys_global_symbol_to_cdecl=
6401 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6402 { echo "$as_me:$LINENO: result: failed" >&5
6403 echo "${ECHO_T}failed" >&6; }
6404 else
6405 { echo "$as_me:$LINENO: result: ok" >&5
6406 echo "${ECHO_T}ok" >&6; }
6409 { echo "$as_me:$LINENO: checking for objdir" >&5
6410 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
6411 if test "${lt_cv_objdir+set}" = set; then
6412 echo $ECHO_N "(cached) $ECHO_C" >&6
6413 else
6414 rm -f .libs 2>/dev/null
6415 mkdir .libs 2>/dev/null
6416 if test -d .libs; then
6417 lt_cv_objdir=.libs
6418 else
6419 # MS-DOS does not allow filenames that begin with a dot.
6420 lt_cv_objdir=_libs
6422 rmdir .libs 2>/dev/null
6424 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6425 echo "${ECHO_T}$lt_cv_objdir" >&6; }
6426 objdir=$lt_cv_objdir
6432 case $host_os in
6433 aix3*)
6434 # AIX sometimes has problems with the GCC collect2 program. For some
6435 # reason, if we set the COLLECT_NAMES environment variable, the problems
6436 # vanish in a puff of smoke.
6437 if test "X${COLLECT_NAMES+set}" != Xset; then
6438 COLLECT_NAMES=
6439 export COLLECT_NAMES
6442 esac
6444 # Sed substitution that helps us do robust quoting. It backslashifies
6445 # metacharacters that are still active within double-quoted strings.
6446 Xsed='sed -e 1s/^X//'
6447 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6449 # Same as above, but do not quote variable references.
6450 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6452 # Sed substitution to delay expansion of an escaped shell variable in a
6453 # double_quote_subst'ed string.
6454 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6456 # Sed substitution to avoid accidental globbing in evaled expressions
6457 no_glob_subst='s/\*/\\\*/g'
6459 # Constants:
6460 rm="rm -f"
6462 # Global variables:
6463 default_ofile=libtool
6464 can_build_shared=yes
6466 # All known linkers require a `.a' archive for static linking (except MSVC,
6467 # which needs '.lib').
6468 libext=a
6469 ltmain="$ac_aux_dir/ltmain.sh"
6470 ofile="$default_ofile"
6471 with_gnu_ld="$lt_cv_prog_gnu_ld"
6473 if test -n "$ac_tool_prefix"; then
6474 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6475 set dummy ${ac_tool_prefix}ar; ac_word=$2
6476 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6477 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6478 if test "${ac_cv_prog_AR+set}" = set; then
6479 echo $ECHO_N "(cached) $ECHO_C" >&6
6480 else
6481 if test -n "$AR"; then
6482 ac_cv_prog_AR="$AR" # Let the user override the test.
6483 else
6484 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6485 for as_dir in $PATH
6487 IFS=$as_save_IFS
6488 test -z "$as_dir" && as_dir=.
6489 for ac_exec_ext in '' $ac_executable_extensions; do
6490 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6491 ac_cv_prog_AR="${ac_tool_prefix}ar"
6492 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6493 break 2
6495 done
6496 done
6497 IFS=$as_save_IFS
6501 AR=$ac_cv_prog_AR
6502 if test -n "$AR"; then
6503 { echo "$as_me:$LINENO: result: $AR" >&5
6504 echo "${ECHO_T}$AR" >&6; }
6505 else
6506 { echo "$as_me:$LINENO: result: no" >&5
6507 echo "${ECHO_T}no" >&6; }
6512 if test -z "$ac_cv_prog_AR"; then
6513 ac_ct_AR=$AR
6514 # Extract the first word of "ar", so it can be a program name with args.
6515 set dummy ar; ac_word=$2
6516 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6517 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6518 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6519 echo $ECHO_N "(cached) $ECHO_C" >&6
6520 else
6521 if test -n "$ac_ct_AR"; then
6522 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6523 else
6524 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6525 for as_dir in $PATH
6527 IFS=$as_save_IFS
6528 test -z "$as_dir" && as_dir=.
6529 for ac_exec_ext in '' $ac_executable_extensions; do
6530 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6531 ac_cv_prog_ac_ct_AR="ar"
6532 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6533 break 2
6535 done
6536 done
6537 IFS=$as_save_IFS
6541 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6542 if test -n "$ac_ct_AR"; then
6543 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6544 echo "${ECHO_T}$ac_ct_AR" >&6; }
6545 else
6546 { echo "$as_me:$LINENO: result: no" >&5
6547 echo "${ECHO_T}no" >&6; }
6550 if test "x$ac_ct_AR" = x; then
6551 AR="false"
6552 else
6553 case $cross_compiling:$ac_tool_warned in
6554 yes:)
6555 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6556 whose name does not start with the host triplet. If you think this
6557 configuration is useful to you, please write to autoconf@gnu.org." >&5
6558 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6559 whose name does not start with the host triplet. If you think this
6560 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6561 ac_tool_warned=yes ;;
6562 esac
6563 AR=$ac_ct_AR
6565 else
6566 AR="$ac_cv_prog_AR"
6569 if test -n "$ac_tool_prefix"; then
6570 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6571 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6572 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6573 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6574 if test "${ac_cv_prog_RANLIB+set}" = set; then
6575 echo $ECHO_N "(cached) $ECHO_C" >&6
6576 else
6577 if test -n "$RANLIB"; then
6578 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6579 else
6580 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6581 for as_dir in $PATH
6583 IFS=$as_save_IFS
6584 test -z "$as_dir" && as_dir=.
6585 for ac_exec_ext in '' $ac_executable_extensions; do
6586 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6587 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6588 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6589 break 2
6591 done
6592 done
6593 IFS=$as_save_IFS
6597 RANLIB=$ac_cv_prog_RANLIB
6598 if test -n "$RANLIB"; then
6599 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6600 echo "${ECHO_T}$RANLIB" >&6; }
6601 else
6602 { echo "$as_me:$LINENO: result: no" >&5
6603 echo "${ECHO_T}no" >&6; }
6608 if test -z "$ac_cv_prog_RANLIB"; then
6609 ac_ct_RANLIB=$RANLIB
6610 # Extract the first word of "ranlib", so it can be a program name with args.
6611 set dummy ranlib; ac_word=$2
6612 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6613 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6614 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6615 echo $ECHO_N "(cached) $ECHO_C" >&6
6616 else
6617 if test -n "$ac_ct_RANLIB"; then
6618 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6619 else
6620 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6621 for as_dir in $PATH
6623 IFS=$as_save_IFS
6624 test -z "$as_dir" && as_dir=.
6625 for ac_exec_ext in '' $ac_executable_extensions; do
6626 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6627 ac_cv_prog_ac_ct_RANLIB="ranlib"
6628 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6629 break 2
6631 done
6632 done
6633 IFS=$as_save_IFS
6637 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6638 if test -n "$ac_ct_RANLIB"; then
6639 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6640 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6641 else
6642 { echo "$as_me:$LINENO: result: no" >&5
6643 echo "${ECHO_T}no" >&6; }
6646 if test "x$ac_ct_RANLIB" = x; then
6647 RANLIB=":"
6648 else
6649 case $cross_compiling:$ac_tool_warned in
6650 yes:)
6651 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6652 whose name does not start with the host triplet. If you think this
6653 configuration is useful to you, please write to autoconf@gnu.org." >&5
6654 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6655 whose name does not start with the host triplet. If you think this
6656 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6657 ac_tool_warned=yes ;;
6658 esac
6659 RANLIB=$ac_ct_RANLIB
6661 else
6662 RANLIB="$ac_cv_prog_RANLIB"
6665 if test -n "$ac_tool_prefix"; then
6666 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6667 set dummy ${ac_tool_prefix}strip; ac_word=$2
6668 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6669 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6670 if test "${ac_cv_prog_STRIP+set}" = set; then
6671 echo $ECHO_N "(cached) $ECHO_C" >&6
6672 else
6673 if test -n "$STRIP"; then
6674 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6675 else
6676 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6677 for as_dir in $PATH
6679 IFS=$as_save_IFS
6680 test -z "$as_dir" && as_dir=.
6681 for ac_exec_ext in '' $ac_executable_extensions; do
6682 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6683 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6684 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6685 break 2
6687 done
6688 done
6689 IFS=$as_save_IFS
6693 STRIP=$ac_cv_prog_STRIP
6694 if test -n "$STRIP"; then
6695 { echo "$as_me:$LINENO: result: $STRIP" >&5
6696 echo "${ECHO_T}$STRIP" >&6; }
6697 else
6698 { echo "$as_me:$LINENO: result: no" >&5
6699 echo "${ECHO_T}no" >&6; }
6704 if test -z "$ac_cv_prog_STRIP"; then
6705 ac_ct_STRIP=$STRIP
6706 # Extract the first word of "strip", so it can be a program name with args.
6707 set dummy strip; ac_word=$2
6708 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6709 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6710 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6711 echo $ECHO_N "(cached) $ECHO_C" >&6
6712 else
6713 if test -n "$ac_ct_STRIP"; then
6714 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6715 else
6716 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6717 for as_dir in $PATH
6719 IFS=$as_save_IFS
6720 test -z "$as_dir" && as_dir=.
6721 for ac_exec_ext in '' $ac_executable_extensions; do
6722 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6723 ac_cv_prog_ac_ct_STRIP="strip"
6724 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6725 break 2
6727 done
6728 done
6729 IFS=$as_save_IFS
6733 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6734 if test -n "$ac_ct_STRIP"; then
6735 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6736 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
6737 else
6738 { echo "$as_me:$LINENO: result: no" >&5
6739 echo "${ECHO_T}no" >&6; }
6742 if test "x$ac_ct_STRIP" = x; then
6743 STRIP=":"
6744 else
6745 case $cross_compiling:$ac_tool_warned in
6746 yes:)
6747 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6748 whose name does not start with the host triplet. If you think this
6749 configuration is useful to you, please write to autoconf@gnu.org." >&5
6750 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6751 whose name does not start with the host triplet. If you think this
6752 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6753 ac_tool_warned=yes ;;
6754 esac
6755 STRIP=$ac_ct_STRIP
6757 else
6758 STRIP="$ac_cv_prog_STRIP"
6762 old_CC="$CC"
6763 old_CFLAGS="$CFLAGS"
6765 # Set sane defaults for various variables
6766 test -z "$AR" && AR=ar
6767 test -z "$AR_FLAGS" && AR_FLAGS=cru
6768 test -z "$AS" && AS=as
6769 test -z "$CC" && CC=cc
6770 test -z "$LTCC" && LTCC=$CC
6771 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6772 test -z "$DLLTOOL" && DLLTOOL=dlltool
6773 test -z "$LD" && LD=ld
6774 test -z "$LN_S" && LN_S="ln -s"
6775 test -z "$MAGIC_CMD" && MAGIC_CMD=file
6776 test -z "$NM" && NM=nm
6777 test -z "$SED" && SED=sed
6778 test -z "$OBJDUMP" && OBJDUMP=objdump
6779 test -z "$RANLIB" && RANLIB=:
6780 test -z "$STRIP" && STRIP=:
6781 test -z "$ac_objext" && ac_objext=o
6783 # Determine commands to create old-style static archives.
6784 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
6785 old_postinstall_cmds='chmod 644 $oldlib'
6786 old_postuninstall_cmds=
6788 if test -n "$RANLIB"; then
6789 case $host_os in
6790 openbsd*)
6791 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6794 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6796 esac
6797 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6800 for cc_temp in $compiler""; do
6801 case $cc_temp in
6802 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6803 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6804 \-*) ;;
6805 *) break;;
6806 esac
6807 done
6808 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6811 # Only perform the check for file, if the check method requires it
6812 case $deplibs_check_method in
6813 file_magic*)
6814 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6815 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6816 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
6817 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6818 echo $ECHO_N "(cached) $ECHO_C" >&6
6819 else
6820 case $MAGIC_CMD in
6821 [\\/*] | ?:[\\/]*)
6822 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6825 lt_save_MAGIC_CMD="$MAGIC_CMD"
6826 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6827 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6828 for ac_dir in $ac_dummy; do
6829 IFS="$lt_save_ifs"
6830 test -z "$ac_dir" && ac_dir=.
6831 if test -f $ac_dir/${ac_tool_prefix}file; then
6832 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6833 if test -n "$file_magic_test_file"; then
6834 case $deplibs_check_method in
6835 "file_magic "*)
6836 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6837 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6838 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6839 $EGREP "$file_magic_regex" > /dev/null; then
6841 else
6842 cat <<EOF 1>&2
6844 *** Warning: the command libtool uses to detect shared libraries,
6845 *** $file_magic_cmd, produces output that libtool cannot recognize.
6846 *** The result is that libtool may fail to recognize shared libraries
6847 *** as such. This will affect the creation of libtool libraries that
6848 *** depend on shared libraries, but programs linked with such libtool
6849 *** libraries will work regardless of this problem. Nevertheless, you
6850 *** may want to report the problem to your system manager and/or to
6851 *** bug-libtool@gnu.org
6854 fi ;;
6855 esac
6857 break
6859 done
6860 IFS="$lt_save_ifs"
6861 MAGIC_CMD="$lt_save_MAGIC_CMD"
6863 esac
6866 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6867 if test -n "$MAGIC_CMD"; then
6868 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6869 echo "${ECHO_T}$MAGIC_CMD" >&6; }
6870 else
6871 { echo "$as_me:$LINENO: result: no" >&5
6872 echo "${ECHO_T}no" >&6; }
6875 if test -z "$lt_cv_path_MAGIC_CMD"; then
6876 if test -n "$ac_tool_prefix"; then
6877 { echo "$as_me:$LINENO: checking for file" >&5
6878 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
6879 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6880 echo $ECHO_N "(cached) $ECHO_C" >&6
6881 else
6882 case $MAGIC_CMD in
6883 [\\/*] | ?:[\\/]*)
6884 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6887 lt_save_MAGIC_CMD="$MAGIC_CMD"
6888 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6889 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6890 for ac_dir in $ac_dummy; do
6891 IFS="$lt_save_ifs"
6892 test -z "$ac_dir" && ac_dir=.
6893 if test -f $ac_dir/file; then
6894 lt_cv_path_MAGIC_CMD="$ac_dir/file"
6895 if test -n "$file_magic_test_file"; then
6896 case $deplibs_check_method in
6897 "file_magic "*)
6898 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6899 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6900 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6901 $EGREP "$file_magic_regex" > /dev/null; then
6903 else
6904 cat <<EOF 1>&2
6906 *** Warning: the command libtool uses to detect shared libraries,
6907 *** $file_magic_cmd, produces output that libtool cannot recognize.
6908 *** The result is that libtool may fail to recognize shared libraries
6909 *** as such. This will affect the creation of libtool libraries that
6910 *** depend on shared libraries, but programs linked with such libtool
6911 *** libraries will work regardless of this problem. Nevertheless, you
6912 *** may want to report the problem to your system manager and/or to
6913 *** bug-libtool@gnu.org
6916 fi ;;
6917 esac
6919 break
6921 done
6922 IFS="$lt_save_ifs"
6923 MAGIC_CMD="$lt_save_MAGIC_CMD"
6925 esac
6928 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6929 if test -n "$MAGIC_CMD"; then
6930 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6931 echo "${ECHO_T}$MAGIC_CMD" >&6; }
6932 else
6933 { echo "$as_me:$LINENO: result: no" >&5
6934 echo "${ECHO_T}no" >&6; }
6937 else
6938 MAGIC_CMD=:
6944 esac
6946 enable_dlopen=no
6947 enable_win32_dll=no
6949 # Check whether --enable-libtool-lock was given.
6950 if test "${enable_libtool_lock+set}" = set; then
6951 enableval=$enable_libtool_lock;
6954 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6957 # Check whether --with-pic was given.
6958 if test "${with_pic+set}" = set; then
6959 withval=$with_pic; pic_mode="$withval"
6960 else
6961 pic_mode=default
6964 test -z "$pic_mode" && pic_mode=default
6966 # Use C for the default configuration in the libtool script
6967 tagname=
6968 lt_save_CC="$CC"
6969 ac_ext=c
6970 ac_cpp='$CPP $CPPFLAGS'
6971 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6972 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6973 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6976 # Source file extension for C test sources.
6977 ac_ext=c
6979 # Object file extension for compiled C test sources.
6980 objext=o
6981 objext=$objext
6983 # Code to be used in simple compile tests
6984 lt_simple_compile_test_code="int some_variable = 0;\n"
6986 # Code to be used in simple link tests
6987 lt_simple_link_test_code='int main(){return(0);}\n'
6990 # If no C compiler was specified, use CC.
6991 LTCC=${LTCC-"$CC"}
6993 # If no C compiler flags were specified, use CFLAGS.
6994 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6996 # Allow CC to be a program name with arguments.
6997 compiler=$CC
7000 # save warnings/boilerplate of simple test code
7001 ac_outfile=conftest.$ac_objext
7002 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
7003 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7004 _lt_compiler_boilerplate=`cat conftest.err`
7005 $rm conftest*
7007 ac_outfile=conftest.$ac_objext
7008 printf "$lt_simple_link_test_code" >conftest.$ac_ext
7009 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7010 _lt_linker_boilerplate=`cat conftest.err`
7011 $rm conftest*
7015 lt_prog_compiler_no_builtin_flag=
7017 if test "$GCC" = yes; then
7018 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7021 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7022 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
7023 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7024 echo $ECHO_N "(cached) $ECHO_C" >&6
7025 else
7026 lt_cv_prog_compiler_rtti_exceptions=no
7027 ac_outfile=conftest.$ac_objext
7028 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7029 lt_compiler_flag="-fno-rtti -fno-exceptions"
7030 # Insert the option either (1) after the last *FLAGS variable, or
7031 # (2) before a word containing "conftest.", or (3) at the end.
7032 # Note that $ac_compile itself does not contain backslashes and begins
7033 # with a dollar sign (not a hyphen), so the echo should work correctly.
7034 # The option is referenced via a variable to avoid confusing sed.
7035 lt_compile=`echo "$ac_compile" | $SED \
7036 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7037 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7038 -e 's:$: $lt_compiler_flag:'`
7039 (eval echo "\"\$as_me:7039: $lt_compile\"" >&5)
7040 (eval "$lt_compile" 2>conftest.err)
7041 ac_status=$?
7042 cat conftest.err >&5
7043 echo "$as_me:7043: \$? = $ac_status" >&5
7044 if (exit $ac_status) && test -s "$ac_outfile"; then
7045 # The compiler can only warn and ignore the option if not recognized
7046 # So say no if there are warnings other than the usual output.
7047 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7048 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7049 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7050 lt_cv_prog_compiler_rtti_exceptions=yes
7053 $rm conftest*
7056 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7057 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7059 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7060 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7061 else
7067 lt_prog_compiler_wl=
7068 lt_prog_compiler_pic=
7069 lt_prog_compiler_static=
7071 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7072 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
7074 if test "$GCC" = yes; then
7075 lt_prog_compiler_wl='-Wl,'
7076 lt_prog_compiler_static='-static'
7078 case $host_os in
7079 aix*)
7080 # All AIX code is PIC.
7081 if test "$host_cpu" = ia64; then
7082 # AIX 5 now supports IA64 processor
7083 lt_prog_compiler_static='-Bstatic'
7087 amigaos*)
7088 # FIXME: we need at least 68020 code to build shared libraries, but
7089 # adding the `-m68020' flag to GCC prevents building anything better,
7090 # like `-m68040'.
7091 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7094 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7095 # PIC is the default for these OSes.
7098 mingw* | pw32* | os2*)
7099 # This hack is so that the source file can tell whether it is being
7100 # built for inclusion in a dll (and should export symbols for example).
7101 lt_prog_compiler_pic='-DDLL_EXPORT'
7104 darwin* | rhapsody*)
7105 # PIC is the default on this platform
7106 # Common symbols not allowed in MH_DYLIB files
7107 lt_prog_compiler_pic='-fno-common'
7110 interix3*)
7111 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7112 # Instead, we relocate shared libraries at runtime.
7115 msdosdjgpp*)
7116 # Just because we use GCC doesn't mean we suddenly get shared libraries
7117 # on systems that don't support them.
7118 lt_prog_compiler_can_build_shared=no
7119 enable_shared=no
7122 sysv4*MP*)
7123 if test -d /usr/nec; then
7124 lt_prog_compiler_pic=-Kconform_pic
7128 hpux*)
7129 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7130 # not for PA HP-UX.
7131 case $host_cpu in
7132 hppa*64*|ia64*)
7133 # +Z the default
7136 lt_prog_compiler_pic='-fPIC'
7138 esac
7142 lt_prog_compiler_pic='-fPIC'
7144 esac
7145 else
7146 # PORTME Check for flag to pass linker flags through the system compiler.
7147 case $host_os in
7148 aix*)
7149 lt_prog_compiler_wl='-Wl,'
7150 if test "$host_cpu" = ia64; then
7151 # AIX 5 now supports IA64 processor
7152 lt_prog_compiler_static='-Bstatic'
7153 else
7154 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7157 darwin*)
7158 # PIC is the default on this platform
7159 # Common symbols not allowed in MH_DYLIB files
7160 case $cc_basename in
7161 xlc*)
7162 lt_prog_compiler_pic='-qnocommon'
7163 lt_prog_compiler_wl='-Wl,'
7165 esac
7168 mingw* | pw32* | os2*)
7169 # This hack is so that the source file can tell whether it is being
7170 # built for inclusion in a dll (and should export symbols for example).
7171 lt_prog_compiler_pic='-DDLL_EXPORT'
7174 hpux9* | hpux10* | hpux11*)
7175 lt_prog_compiler_wl='-Wl,'
7176 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7177 # not for PA HP-UX.
7178 case $host_cpu in
7179 hppa*64*|ia64*)
7180 # +Z the default
7183 lt_prog_compiler_pic='+Z'
7185 esac
7186 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7187 lt_prog_compiler_static='${wl}-a ${wl}archive'
7190 irix5* | irix6* | nonstopux*)
7191 lt_prog_compiler_wl='-Wl,'
7192 # PIC (with -KPIC) is the default.
7193 lt_prog_compiler_static='-non_shared'
7196 newsos6)
7197 lt_prog_compiler_pic='-KPIC'
7198 lt_prog_compiler_static='-Bstatic'
7201 linux*)
7202 case $cc_basename in
7203 icc* | ecc*)
7204 lt_prog_compiler_wl='-Wl,'
7205 lt_prog_compiler_pic='-KPIC'
7206 lt_prog_compiler_static='-static'
7208 pgcc* | pgf77* | pgf90* | pgf95*)
7209 # Portland Group compilers (*not* the Pentium gcc compiler,
7210 # which looks to be a dead project)
7211 lt_prog_compiler_wl='-Wl,'
7212 lt_prog_compiler_pic='-fpic'
7213 lt_prog_compiler_static='-Bstatic'
7215 ccc*)
7216 lt_prog_compiler_wl='-Wl,'
7217 # All Alpha code is PIC.
7218 lt_prog_compiler_static='-non_shared'
7220 esac
7223 osf3* | osf4* | osf5*)
7224 lt_prog_compiler_wl='-Wl,'
7225 # All OSF/1 code is PIC.
7226 lt_prog_compiler_static='-non_shared'
7229 solaris*)
7230 lt_prog_compiler_pic='-KPIC'
7231 lt_prog_compiler_static='-Bstatic'
7232 case $cc_basename in
7233 f77* | f90* | f95*)
7234 lt_prog_compiler_wl='-Qoption ld ';;
7236 lt_prog_compiler_wl='-Wl,';;
7237 esac
7240 sunos4*)
7241 lt_prog_compiler_wl='-Qoption ld '
7242 lt_prog_compiler_pic='-PIC'
7243 lt_prog_compiler_static='-Bstatic'
7246 sysv4 | sysv4.2uw2* | sysv4.3*)
7247 lt_prog_compiler_wl='-Wl,'
7248 lt_prog_compiler_pic='-KPIC'
7249 lt_prog_compiler_static='-Bstatic'
7252 sysv4*MP*)
7253 if test -d /usr/nec ;then
7254 lt_prog_compiler_pic='-Kconform_pic'
7255 lt_prog_compiler_static='-Bstatic'
7259 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7260 lt_prog_compiler_wl='-Wl,'
7261 lt_prog_compiler_pic='-KPIC'
7262 lt_prog_compiler_static='-Bstatic'
7265 unicos*)
7266 lt_prog_compiler_wl='-Wl,'
7267 lt_prog_compiler_can_build_shared=no
7270 uts4*)
7271 lt_prog_compiler_pic='-pic'
7272 lt_prog_compiler_static='-Bstatic'
7276 lt_prog_compiler_can_build_shared=no
7278 esac
7281 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7282 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
7285 # Check to make sure the PIC flag actually works.
7287 if test -n "$lt_prog_compiler_pic"; then
7289 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7290 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
7291 if test "${lt_prog_compiler_pic_works+set}" = set; then
7292 echo $ECHO_N "(cached) $ECHO_C" >&6
7293 else
7294 lt_prog_compiler_pic_works=no
7295 ac_outfile=conftest.$ac_objext
7296 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7297 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7298 # Insert the option either (1) after the last *FLAGS variable, or
7299 # (2) before a word containing "conftest.", or (3) at the end.
7300 # Note that $ac_compile itself does not contain backslashes and begins
7301 # with a dollar sign (not a hyphen), so the echo should work correctly.
7302 # The option is referenced via a variable to avoid confusing sed.
7303 lt_compile=`echo "$ac_compile" | $SED \
7304 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7305 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7306 -e 's:$: $lt_compiler_flag:'`
7307 (eval echo "\"\$as_me:7307: $lt_compile\"" >&5)
7308 (eval "$lt_compile" 2>conftest.err)
7309 ac_status=$?
7310 cat conftest.err >&5
7311 echo "$as_me:7311: \$? = $ac_status" >&5
7312 if (exit $ac_status) && test -s "$ac_outfile"; then
7313 # The compiler can only warn and ignore the option if not recognized
7314 # So say no if there are warnings other than the usual output.
7315 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7316 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7317 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7318 lt_prog_compiler_pic_works=yes
7321 $rm conftest*
7324 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7325 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
7327 if test x"$lt_prog_compiler_pic_works" = xyes; then
7328 case $lt_prog_compiler_pic in
7329 "" | " "*) ;;
7330 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7331 esac
7332 else
7333 lt_prog_compiler_pic=
7334 lt_prog_compiler_can_build_shared=no
7338 case $host_os in
7339 # For platforms which do not support PIC, -DPIC is meaningless:
7340 *djgpp*)
7341 lt_prog_compiler_pic=
7344 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7346 esac
7349 # Check to make sure the static flag actually works.
7351 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7352 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7353 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
7354 if test "${lt_prog_compiler_static_works+set}" = set; then
7355 echo $ECHO_N "(cached) $ECHO_C" >&6
7356 else
7357 lt_prog_compiler_static_works=no
7358 save_LDFLAGS="$LDFLAGS"
7359 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7360 printf "$lt_simple_link_test_code" > conftest.$ac_ext
7361 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7362 # The linker can only warn and ignore the option if not recognized
7363 # So say no if there are warnings
7364 if test -s conftest.err; then
7365 # Append any errors to the config.log.
7366 cat conftest.err 1>&5
7367 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7368 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7369 if diff conftest.exp conftest.er2 >/dev/null; then
7370 lt_prog_compiler_static_works=yes
7372 else
7373 lt_prog_compiler_static_works=yes
7376 $rm conftest*
7377 LDFLAGS="$save_LDFLAGS"
7380 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7381 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
7383 if test x"$lt_prog_compiler_static_works" = xyes; then
7385 else
7386 lt_prog_compiler_static=
7390 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7391 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
7392 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7393 echo $ECHO_N "(cached) $ECHO_C" >&6
7394 else
7395 lt_cv_prog_compiler_c_o=no
7396 $rm -r conftest 2>/dev/null
7397 mkdir conftest
7398 cd conftest
7399 mkdir out
7400 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7402 lt_compiler_flag="-o out/conftest2.$ac_objext"
7403 # Insert the option either (1) after the last *FLAGS variable, or
7404 # (2) before a word containing "conftest.", or (3) at the end.
7405 # Note that $ac_compile itself does not contain backslashes and begins
7406 # with a dollar sign (not a hyphen), so the echo should work correctly.
7407 lt_compile=`echo "$ac_compile" | $SED \
7408 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7409 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7410 -e 's:$: $lt_compiler_flag:'`
7411 (eval echo "\"\$as_me:7411: $lt_compile\"" >&5)
7412 (eval "$lt_compile" 2>out/conftest.err)
7413 ac_status=$?
7414 cat out/conftest.err >&5
7415 echo "$as_me:7415: \$? = $ac_status" >&5
7416 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7417 then
7418 # The compiler can only warn and ignore the option if not recognized
7419 # So say no if there are warnings
7420 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7421 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7422 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7423 lt_cv_prog_compiler_c_o=yes
7426 chmod u+w . 2>&5
7427 $rm conftest*
7428 # SGI C++ compiler will create directory out/ii_files/ for
7429 # template instantiation
7430 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7431 $rm out/* && rmdir out
7432 cd ..
7433 rmdir conftest
7434 $rm conftest*
7437 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7438 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
7441 hard_links="nottested"
7442 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7443 # do not overwrite the value of need_locks provided by the user
7444 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7445 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
7446 hard_links=yes
7447 $rm conftest*
7448 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7449 touch conftest.a
7450 ln conftest.a conftest.b 2>&5 || hard_links=no
7451 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7452 { echo "$as_me:$LINENO: result: $hard_links" >&5
7453 echo "${ECHO_T}$hard_links" >&6; }
7454 if test "$hard_links" = no; then
7455 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7456 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7457 need_locks=warn
7459 else
7460 need_locks=no
7463 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7464 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
7466 runpath_var=
7467 allow_undefined_flag=
7468 enable_shared_with_static_runtimes=no
7469 archive_cmds=
7470 archive_expsym_cmds=
7471 old_archive_From_new_cmds=
7472 old_archive_from_expsyms_cmds=
7473 export_dynamic_flag_spec=
7474 whole_archive_flag_spec=
7475 thread_safe_flag_spec=
7476 hardcode_libdir_flag_spec=
7477 hardcode_libdir_flag_spec_ld=
7478 hardcode_libdir_separator=
7479 hardcode_direct=no
7480 hardcode_minus_L=no
7481 hardcode_shlibpath_var=unsupported
7482 link_all_deplibs=unknown
7483 hardcode_automatic=no
7484 module_cmds=
7485 module_expsym_cmds=
7486 always_export_symbols=no
7487 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7488 # include_expsyms should be a list of space-separated symbols to be *always*
7489 # included in the symbol list
7490 include_expsyms=
7491 # exclude_expsyms can be an extended regexp of symbols to exclude
7492 # it will be wrapped by ` (' and `)$', so one must not match beginning or
7493 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7494 # as well as any symbol that contains `d'.
7495 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
7496 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7497 # platforms (ab)use it in PIC code, but their linkers get confused if
7498 # the symbol is explicitly referenced. Since portable code cannot
7499 # rely on this symbol name, it's probably fine to never include it in
7500 # preloaded symbol tables.
7501 extract_expsyms_cmds=
7502 # Just being paranoid about ensuring that cc_basename is set.
7503 for cc_temp in $compiler""; do
7504 case $cc_temp in
7505 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7506 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7507 \-*) ;;
7508 *) break;;
7509 esac
7510 done
7511 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7513 case $host_os in
7514 cygwin* | mingw* | pw32*)
7515 # FIXME: the MSVC++ port hasn't been tested in a loooong time
7516 # When not using gcc, we currently assume that we are using
7517 # Microsoft Visual C++.
7518 if test "$GCC" != yes; then
7519 with_gnu_ld=no
7522 interix*)
7523 # we just hope/assume this is gcc and not c89 (= MSVC++)
7524 with_gnu_ld=yes
7526 openbsd*)
7527 with_gnu_ld=no
7529 esac
7531 ld_shlibs=yes
7532 if test "$with_gnu_ld" = yes; then
7533 # If archive_cmds runs LD, not CC, wlarc should be empty
7534 wlarc='${wl}'
7536 # Set some defaults for GNU ld with shared library support. These
7537 # are reset later if shared libraries are not supported. Putting them
7538 # here allows them to be overridden if necessary.
7539 runpath_var=LD_RUN_PATH
7540 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
7541 export_dynamic_flag_spec='${wl}--export-dynamic'
7542 # ancient GNU ld didn't support --whole-archive et. al.
7543 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
7544 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7545 else
7546 whole_archive_flag_spec=
7548 supports_anon_versioning=no
7549 case `$LD -v 2>/dev/null` in
7550 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7551 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7552 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7553 *\ 2.11.*) ;; # other 2.11 versions
7554 *) supports_anon_versioning=yes ;;
7555 esac
7557 # See if GNU ld supports shared libraries.
7558 case $host_os in
7559 aix3* | aix4* | aix5*)
7560 # On AIX/PPC, the GNU linker is very broken
7561 if test "$host_cpu" != ia64; then
7562 ld_shlibs=no
7563 cat <<EOF 1>&2
7565 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
7566 *** to be unable to reliably create shared libraries on AIX.
7567 *** Therefore, libtool is disabling shared libraries support. If you
7568 *** really care for shared libraries, you may want to modify your PATH
7569 *** so that a non-GNU linker is found, and then restart.
7575 amigaos*)
7576 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)'
7577 hardcode_libdir_flag_spec='-L$libdir'
7578 hardcode_minus_L=yes
7580 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7581 # that the semantics of dynamic libraries on AmigaOS, at least up
7582 # to version 4, is to share data among multiple programs linked
7583 # with the same dynamic library. Since this doesn't match the
7584 # behavior of shared libraries on other platforms, we can't use
7585 # them.
7586 ld_shlibs=no
7589 beos*)
7590 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7591 allow_undefined_flag=unsupported
7592 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7593 # support --undefined. This deserves some investigation. FIXME
7594 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7595 else
7596 ld_shlibs=no
7600 cygwin* | mingw* | pw32*)
7601 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7602 # as there is no search path for DLLs.
7603 hardcode_libdir_flag_spec='-L$libdir'
7604 allow_undefined_flag=unsupported
7605 always_export_symbols=no
7606 enable_shared_with_static_runtimes=yes
7607 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
7609 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
7610 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7611 # If the export-symbols file already is a .def file (1st line
7612 # is EXPORTS), use it as is; otherwise, prepend...
7613 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7614 cp $export_symbols $output_objdir/$soname.def;
7615 else
7616 echo EXPORTS > $output_objdir/$soname.def;
7617 cat $export_symbols >> $output_objdir/$soname.def;
7619 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7620 else
7621 ld_shlibs=no
7625 interix3*)
7626 hardcode_direct=no
7627 hardcode_shlibpath_var=no
7628 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7629 export_dynamic_flag_spec='${wl}-E'
7630 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7631 # Instead, shared libraries are loaded at an image base (0x10000000 by
7632 # default) and relocated if they conflict, which is a slow very memory
7633 # consuming and fragmenting process. To avoid this, we pick a random,
7634 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7635 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
7636 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7637 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'
7640 linux*)
7641 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7642 tmp_addflag=
7643 case $cc_basename,$host_cpu in
7644 pgcc*) # Portland Group C compiler
7645 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'
7646 tmp_addflag=' $pic_flag'
7648 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
7649 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'
7650 tmp_addflag=' $pic_flag -Mnomain' ;;
7651 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
7652 tmp_addflag=' -i_dynamic' ;;
7653 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
7654 tmp_addflag=' -i_dynamic -nofor_main' ;;
7655 ifc* | ifort*) # Intel Fortran compiler
7656 tmp_addflag=' -nofor_main' ;;
7657 esac
7658 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7660 if test $supports_anon_versioning = yes; then
7661 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
7662 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7663 $echo "local: *; };" >> $output_objdir/$libname.ver~
7664 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7666 else
7667 ld_shlibs=no
7671 netbsd*)
7672 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7673 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7674 wlarc=
7675 else
7676 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7677 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7681 solaris*)
7682 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
7683 ld_shlibs=no
7684 cat <<EOF 1>&2
7686 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
7687 *** create shared libraries on Solaris systems. Therefore, libtool
7688 *** is disabling shared libraries support. We urge you to upgrade GNU
7689 *** binutils to release 2.9.1 or newer. Another option is to modify
7690 *** your PATH or compiler configuration so that the native linker is
7691 *** used, and then restart.
7694 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7695 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7696 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7697 else
7698 ld_shlibs=no
7702 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7703 case `$LD -v 2>&1` in
7704 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7705 ld_shlibs=no
7706 cat <<_LT_EOF 1>&2
7708 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7709 *** reliably create shared libraries on SCO systems. Therefore, libtool
7710 *** is disabling shared libraries support. We urge you to upgrade GNU
7711 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
7712 *** your PATH or compiler configuration so that the native linker is
7713 *** used, and then restart.
7715 _LT_EOF
7718 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7719 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
7720 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
7721 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
7722 else
7723 ld_shlibs=no
7726 esac
7729 sunos4*)
7730 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7731 wlarc=
7732 hardcode_direct=yes
7733 hardcode_shlibpath_var=no
7737 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7738 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7739 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7740 else
7741 ld_shlibs=no
7744 esac
7746 if test "$ld_shlibs" = no; then
7747 runpath_var=
7748 hardcode_libdir_flag_spec=
7749 export_dynamic_flag_spec=
7750 whole_archive_flag_spec=
7752 else
7753 # PORTME fill in a description of your system's linker (not GNU ld)
7754 case $host_os in
7755 aix3*)
7756 allow_undefined_flag=unsupported
7757 always_export_symbols=yes
7758 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'
7759 # Note: this linker hardcodes the directories in LIBPATH if there
7760 # are no directories specified by -L.
7761 hardcode_minus_L=yes
7762 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
7763 # Neither direct hardcoding nor static linking is supported with a
7764 # broken collect2.
7765 hardcode_direct=unsupported
7769 aix4* | aix5*)
7770 if test "$host_cpu" = ia64; then
7771 # On IA64, the linker does run time linking by default, so we don't
7772 # have to do anything special.
7773 aix_use_runtimelinking=no
7774 exp_sym_flag='-Bexport'
7775 no_entry_flag=""
7776 else
7777 # If we're using GNU nm, then we don't want the "-C" option.
7778 # -C means demangle to AIX nm, but means don't demangle with GNU nm
7779 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
7780 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'
7781 else
7782 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'
7784 aix_use_runtimelinking=no
7786 # Test if we are trying to use run time linking or normal
7787 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7788 # need to do runtime linking.
7789 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
7790 for ld_flag in $LDFLAGS; do
7791 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7792 aix_use_runtimelinking=yes
7793 break
7795 done
7797 esac
7799 exp_sym_flag='-bexport'
7800 no_entry_flag='-bnoentry'
7803 # When large executables or shared objects are built, AIX ld can
7804 # have problems creating the table of contents. If linking a library
7805 # or program results in "error TOC overflow" add -mminimal-toc to
7806 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
7807 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7809 archive_cmds=''
7810 hardcode_direct=yes
7811 hardcode_libdir_separator=':'
7812 link_all_deplibs=yes
7814 if test "$GCC" = yes; then
7815 case $host_os in aix4.[012]|aix4.[012].*)
7816 # We only want to do this on AIX 4.2 and lower, the check
7817 # below for broken collect2 doesn't work under 4.3+
7818 collect2name=`${CC} -print-prog-name=collect2`
7819 if test -f "$collect2name" && \
7820 strings "$collect2name" | grep resolve_lib_name >/dev/null
7821 then
7822 # We have reworked collect2
7823 hardcode_direct=yes
7824 else
7825 # We have old collect2
7826 hardcode_direct=unsupported
7827 # It fails to find uninstalled libraries when the uninstalled
7828 # path is not listed in the libpath. Setting hardcode_minus_L
7829 # to unsupported forces relinking
7830 hardcode_minus_L=yes
7831 hardcode_libdir_flag_spec='-L$libdir'
7832 hardcode_libdir_separator=
7835 esac
7836 shared_flag='-shared'
7837 if test "$aix_use_runtimelinking" = yes; then
7838 shared_flag="$shared_flag "'${wl}-G'
7840 else
7841 # not using gcc
7842 if test "$host_cpu" = ia64; then
7843 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7844 # chokes on -Wl,-G. The following line is correct:
7845 shared_flag='-G'
7846 else
7847 if test "$aix_use_runtimelinking" = yes; then
7848 shared_flag='${wl}-G'
7849 else
7850 shared_flag='${wl}-bM:SRE'
7855 # It seems that -bexpall does not export symbols beginning with
7856 # underscore (_), so it is better to generate a list of symbols to export.
7857 always_export_symbols=yes
7858 if test "$aix_use_runtimelinking" = yes; then
7859 # Warning - without using the other runtime loading flags (-brtl),
7860 # -berok will link without error, but may produce a broken library.
7861 allow_undefined_flag='-berok'
7862 # Determine the default libpath from the value encoded in an empty executable.
7863 cat >conftest.$ac_ext <<_ACEOF
7864 /* confdefs.h. */
7865 _ACEOF
7866 cat confdefs.h >>conftest.$ac_ext
7867 cat >>conftest.$ac_ext <<_ACEOF
7868 /* end confdefs.h. */
7871 main ()
7875 return 0;
7877 _ACEOF
7878 rm -f conftest.$ac_objext conftest$ac_exeext
7879 if { (ac_try="$ac_link"
7880 case "(($ac_try" in
7881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7882 *) ac_try_echo=$ac_try;;
7883 esac
7884 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7885 (eval "$ac_link") 2>conftest.er1
7886 ac_status=$?
7887 grep -v '^ *+' conftest.er1 >conftest.err
7888 rm -f conftest.er1
7889 cat conftest.err >&5
7890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7891 (exit $ac_status); } && {
7892 test -z "$ac_c_werror_flag" ||
7893 test ! -s conftest.err
7894 } && test -s conftest$ac_exeext &&
7895 $as_test_x conftest$ac_exeext; then
7897 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7899 # Check for a 64-bit object if we didn't find anything.
7900 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7901 }'`; fi
7902 else
7903 echo "$as_me: failed program was:" >&5
7904 sed 's/^/| /' conftest.$ac_ext >&5
7909 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7910 conftest$ac_exeext conftest.$ac_ext
7911 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7913 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7914 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"
7915 else
7916 if test "$host_cpu" = ia64; then
7917 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7918 allow_undefined_flag="-z nodefs"
7919 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"
7920 else
7921 # Determine the default libpath from the value encoded in an empty executable.
7922 cat >conftest.$ac_ext <<_ACEOF
7923 /* confdefs.h. */
7924 _ACEOF
7925 cat confdefs.h >>conftest.$ac_ext
7926 cat >>conftest.$ac_ext <<_ACEOF
7927 /* end confdefs.h. */
7930 main ()
7934 return 0;
7936 _ACEOF
7937 rm -f conftest.$ac_objext conftest$ac_exeext
7938 if { (ac_try="$ac_link"
7939 case "(($ac_try" in
7940 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7941 *) ac_try_echo=$ac_try;;
7942 esac
7943 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7944 (eval "$ac_link") 2>conftest.er1
7945 ac_status=$?
7946 grep -v '^ *+' conftest.er1 >conftest.err
7947 rm -f conftest.er1
7948 cat conftest.err >&5
7949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7950 (exit $ac_status); } && {
7951 test -z "$ac_c_werror_flag" ||
7952 test ! -s conftest.err
7953 } && test -s conftest$ac_exeext &&
7954 $as_test_x conftest$ac_exeext; then
7956 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7958 # Check for a 64-bit object if we didn't find anything.
7959 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7960 }'`; fi
7961 else
7962 echo "$as_me: failed program was:" >&5
7963 sed 's/^/| /' conftest.$ac_ext >&5
7968 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7969 conftest$ac_exeext conftest.$ac_ext
7970 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7972 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7973 # Warning - without using the other run time loading flags,
7974 # -berok will link without error, but may produce a broken library.
7975 no_undefined_flag=' ${wl}-bernotok'
7976 allow_undefined_flag=' ${wl}-berok'
7977 # Exported symbols can be pulled into shared objects from archives
7978 whole_archive_flag_spec='$convenience'
7979 archive_cmds_need_lc=yes
7980 # This is similar to how AIX traditionally builds its shared libraries.
7981 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'
7986 amigaos*)
7987 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)'
7988 hardcode_libdir_flag_spec='-L$libdir'
7989 hardcode_minus_L=yes
7990 # see comment about different semantics on the GNU ld section
7991 ld_shlibs=no
7994 bsdi[45]*)
7995 export_dynamic_flag_spec=-rdynamic
7998 cygwin* | mingw* | pw32*)
7999 # When not using gcc, we currently assume that we are using
8000 # Microsoft Visual C++.
8001 # hardcode_libdir_flag_spec is actually meaningless, as there is
8002 # no search path for DLLs.
8003 hardcode_libdir_flag_spec=' '
8004 allow_undefined_flag=unsupported
8005 # Tell ltmain to make .lib files, not .a files.
8006 libext=lib
8007 # Tell ltmain to make .dll files, not .so files.
8008 shrext_cmds=".dll"
8009 # FIXME: Setting linknames here is a bad hack.
8010 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8011 # The linker will automatically build a .lib file if we build a DLL.
8012 old_archive_From_new_cmds='true'
8013 # FIXME: Should let the user specify the lib program.
8014 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
8015 fix_srcfile_path='`cygpath -w "$srcfile"`'
8016 enable_shared_with_static_runtimes=yes
8019 darwin* | rhapsody*)
8020 case $host_os in
8021 rhapsody* | darwin1.[012])
8022 allow_undefined_flag='${wl}-undefined ${wl}suppress'
8024 *) # Darwin 1.3 on
8025 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8026 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8027 else
8028 case ${MACOSX_DEPLOYMENT_TARGET} in
8029 10.[012])
8030 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8032 10.*)
8033 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8035 esac
8038 esac
8039 archive_cmds_need_lc=no
8040 hardcode_direct=no
8041 hardcode_automatic=yes
8042 hardcode_shlibpath_var=unsupported
8043 whole_archive_flag_spec=''
8044 link_all_deplibs=yes
8045 if test "$GCC" = yes ; then
8046 output_verbose_link_cmd='echo'
8047 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8048 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8049 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8050 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}'
8051 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}'
8052 else
8053 case $cc_basename in
8054 xlc*)
8055 output_verbose_link_cmd='echo'
8056 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
8057 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8058 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8059 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8060 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}'
8063 ld_shlibs=no
8065 esac
8069 dgux*)
8070 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8071 hardcode_libdir_flag_spec='-L$libdir'
8072 hardcode_shlibpath_var=no
8075 freebsd1*)
8076 ld_shlibs=no
8079 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8080 # support. Future versions do this automatically, but an explicit c++rt0.o
8081 # does not break anything, and helps significantly (at the cost of a little
8082 # extra space).
8083 freebsd2.2*)
8084 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8085 hardcode_libdir_flag_spec='-R$libdir'
8086 hardcode_direct=yes
8087 hardcode_shlibpath_var=no
8090 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8091 freebsd2*)
8092 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8093 hardcode_direct=yes
8094 hardcode_minus_L=yes
8095 hardcode_shlibpath_var=no
8098 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8099 freebsd* | kfreebsd*-gnu | dragonfly*)
8100 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8101 hardcode_libdir_flag_spec='-R$libdir'
8102 hardcode_direct=yes
8103 hardcode_shlibpath_var=no
8106 hpux9*)
8107 if test "$GCC" = yes; then
8108 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'
8109 else
8110 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'
8112 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8113 hardcode_libdir_separator=:
8114 hardcode_direct=yes
8116 # hardcode_minus_L: Not really in the search PATH,
8117 # but as the default location of the library.
8118 hardcode_minus_L=yes
8119 export_dynamic_flag_spec='${wl}-E'
8122 hpux10*)
8123 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8124 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8125 else
8126 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8128 if test "$with_gnu_ld" = no; then
8129 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8130 hardcode_libdir_separator=:
8132 hardcode_direct=yes
8133 export_dynamic_flag_spec='${wl}-E'
8135 # hardcode_minus_L: Not really in the search PATH,
8136 # but as the default location of the library.
8137 hardcode_minus_L=yes
8141 hpux11*)
8142 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8143 case $host_cpu in
8144 hppa*64*)
8145 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8147 ia64*)
8148 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8151 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8153 esac
8154 else
8155 case $host_cpu in
8156 hppa*64*)
8157 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8159 ia64*)
8160 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8163 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8165 esac
8167 if test "$with_gnu_ld" = no; then
8168 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8169 hardcode_libdir_separator=:
8171 case $host_cpu in
8172 hppa*64*|ia64*)
8173 hardcode_libdir_flag_spec_ld='+b $libdir'
8174 hardcode_direct=no
8175 hardcode_shlibpath_var=no
8178 hardcode_direct=yes
8179 export_dynamic_flag_spec='${wl}-E'
8181 # hardcode_minus_L: Not really in the search PATH,
8182 # but as the default location of the library.
8183 hardcode_minus_L=yes
8185 esac
8189 irix5* | irix6* | nonstopux*)
8190 if test "$GCC" = yes; then
8191 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'
8192 else
8193 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'
8194 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8196 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8197 hardcode_libdir_separator=:
8198 link_all_deplibs=yes
8201 netbsd*)
8202 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8203 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8204 else
8205 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8207 hardcode_libdir_flag_spec='-R$libdir'
8208 hardcode_direct=yes
8209 hardcode_shlibpath_var=no
8212 newsos6)
8213 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8214 hardcode_direct=yes
8215 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8216 hardcode_libdir_separator=:
8217 hardcode_shlibpath_var=no
8220 openbsd*)
8221 hardcode_direct=yes
8222 hardcode_shlibpath_var=no
8223 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8224 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8225 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8226 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8227 export_dynamic_flag_spec='${wl}-E'
8228 else
8229 case $host_os in
8230 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8231 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8232 hardcode_libdir_flag_spec='-R$libdir'
8235 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8236 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8238 esac
8242 os2*)
8243 hardcode_libdir_flag_spec='-L$libdir'
8244 hardcode_minus_L=yes
8245 allow_undefined_flag=unsupported
8246 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'
8247 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8250 osf3*)
8251 if test "$GCC" = yes; then
8252 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8253 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'
8254 else
8255 allow_undefined_flag=' -expect_unresolved \*'
8256 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'
8258 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8259 hardcode_libdir_separator=:
8262 osf4* | osf5*) # as osf3* with the addition of -msym flag
8263 if test "$GCC" = yes; then
8264 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8265 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'
8266 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8267 else
8268 allow_undefined_flag=' -expect_unresolved \*'
8269 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'
8270 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8271 $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'
8273 # Both c and cxx compiler support -rpath directly
8274 hardcode_libdir_flag_spec='-rpath $libdir'
8276 hardcode_libdir_separator=:
8279 solaris*)
8280 no_undefined_flag=' -z text'
8281 if test "$GCC" = yes; then
8282 wlarc='${wl}'
8283 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8284 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8285 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8286 else
8287 wlarc=''
8288 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8289 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8290 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8292 hardcode_libdir_flag_spec='-R$libdir'
8293 hardcode_shlibpath_var=no
8294 case $host_os in
8295 solaris2.[0-5] | solaris2.[0-5].*) ;;
8297 # The compiler driver will combine linker options so we
8298 # cannot just pass the convience library names through
8299 # without $wl, iff we do not link with $LD.
8300 # Luckily, gcc supports the same syntax we need for Sun Studio.
8301 # Supported since Solaris 2.6 (maybe 2.5.1?)
8302 case $wlarc in
8304 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
8306 whole_archive_flag_spec='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
8307 esac ;;
8308 esac
8309 link_all_deplibs=yes
8312 sunos4*)
8313 if test "x$host_vendor" = xsequent; then
8314 # Use $CC to link under sequent, because it throws in some extra .o
8315 # files that make .init and .fini sections work.
8316 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8317 else
8318 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8320 hardcode_libdir_flag_spec='-L$libdir'
8321 hardcode_direct=yes
8322 hardcode_minus_L=yes
8323 hardcode_shlibpath_var=no
8326 sysv4)
8327 case $host_vendor in
8328 sni)
8329 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8330 hardcode_direct=yes # is this really true???
8332 siemens)
8333 ## LD is ld it makes a PLAMLIB
8334 ## CC just makes a GrossModule.
8335 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8336 reload_cmds='$CC -r -o $output$reload_objs'
8337 hardcode_direct=no
8339 motorola)
8340 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8341 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8343 esac
8344 runpath_var='LD_RUN_PATH'
8345 hardcode_shlibpath_var=no
8348 sysv4.3*)
8349 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8350 hardcode_shlibpath_var=no
8351 export_dynamic_flag_spec='-Bexport'
8354 sysv4*MP*)
8355 if test -d /usr/nec; then
8356 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8357 hardcode_shlibpath_var=no
8358 runpath_var=LD_RUN_PATH
8359 hardcode_runpath_var=yes
8360 ld_shlibs=yes
8364 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
8365 no_undefined_flag='${wl}-z,text'
8366 archive_cmds_need_lc=no
8367 hardcode_shlibpath_var=no
8368 runpath_var='LD_RUN_PATH'
8370 if test "$GCC" = yes; then
8371 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8372 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8373 else
8374 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8375 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8379 sysv5* | sco3.2v5* | sco5v6*)
8380 # Note: We can NOT use -z defs as we might desire, because we do not
8381 # link with -lc, and that would cause any symbols used from libc to
8382 # always be unresolved, which means just about no library would
8383 # ever link correctly. If we're not using GNU ld we use -z text
8384 # though, which does catch some bad symbols but isn't as heavy-handed
8385 # as -z defs.
8386 no_undefined_flag='${wl}-z,text'
8387 allow_undefined_flag='${wl}-z,nodefs'
8388 archive_cmds_need_lc=no
8389 hardcode_shlibpath_var=no
8390 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
8391 hardcode_libdir_separator=':'
8392 link_all_deplibs=yes
8393 export_dynamic_flag_spec='${wl}-Bexport'
8394 runpath_var='LD_RUN_PATH'
8396 if test "$GCC" = yes; then
8397 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8398 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8399 else
8400 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8401 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8405 uts4*)
8406 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8407 hardcode_libdir_flag_spec='-L$libdir'
8408 hardcode_shlibpath_var=no
8412 ld_shlibs=no
8414 esac
8417 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8418 echo "${ECHO_T}$ld_shlibs" >&6; }
8419 test "$ld_shlibs" = no && can_build_shared=no
8422 # Do we need to explicitly link libc?
8424 case "x$archive_cmds_need_lc" in
8425 x|xyes)
8426 # Assume -lc should be added
8427 archive_cmds_need_lc=yes
8429 if test "$enable_shared" = yes && test "$GCC" = yes; then
8430 case $archive_cmds in
8431 *'~'*)
8432 # FIXME: we may have to deal with multi-command sequences.
8434 '$CC '*)
8435 # Test whether the compiler implicitly links with -lc since on some
8436 # systems, -lgcc has to come before -lc. If gcc already passes -lc
8437 # to ld, don't add -lc before -lgcc.
8438 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8439 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
8440 $rm conftest*
8441 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8443 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8444 (eval $ac_compile) 2>&5
8445 ac_status=$?
8446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8447 (exit $ac_status); } 2>conftest.err; then
8448 soname=conftest
8449 lib=conftest
8450 libobjs=conftest.$ac_objext
8451 deplibs=
8452 wl=$lt_prog_compiler_wl
8453 pic_flag=$lt_prog_compiler_pic
8454 compiler_flags=-v
8455 linker_flags=-v
8456 verstring=
8457 output_objdir=.
8458 libname=conftest
8459 lt_save_allow_undefined_flag=$allow_undefined_flag
8460 allow_undefined_flag=
8461 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
8462 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8463 ac_status=$?
8464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8465 (exit $ac_status); }
8466 then
8467 archive_cmds_need_lc=no
8468 else
8469 archive_cmds_need_lc=yes
8471 allow_undefined_flag=$lt_save_allow_undefined_flag
8472 else
8473 cat conftest.err 1>&5
8475 $rm conftest*
8476 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8477 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
8479 esac
8482 esac
8484 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8485 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8486 library_names_spec=
8487 libname_spec='lib$name'
8488 soname_spec=
8489 shrext_cmds=".so"
8490 postinstall_cmds=
8491 postuninstall_cmds=
8492 finish_cmds=
8493 finish_eval=
8494 shlibpath_var=
8495 shlibpath_overrides_runpath=unknown
8496 version_type=none
8497 dynamic_linker="$host_os ld.so"
8498 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8499 if test "$GCC" = yes; then
8500 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8501 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8502 # if the path contains ";" then we assume it to be the separator
8503 # otherwise default to the standard path separator (i.e. ":") - it is
8504 # assumed that no part of a normal pathname contains ";" but that should
8505 # okay in the real world where ";" in dirpaths is itself problematic.
8506 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8507 else
8508 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8510 else
8511 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8513 need_lib_prefix=unknown
8514 hardcode_into_libs=no
8516 # when you set need_version to no, make sure it does not cause -set_version
8517 # flags to be left without arguments
8518 need_version=unknown
8520 case $host_os in
8521 aix3*)
8522 version_type=linux
8523 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8524 shlibpath_var=LIBPATH
8526 # AIX 3 has no versioning support, so we append a major version to the name.
8527 soname_spec='${libname}${release}${shared_ext}$major'
8530 aix4* | aix5*)
8531 version_type=linux
8532 need_lib_prefix=no
8533 need_version=no
8534 hardcode_into_libs=yes
8535 if test "$host_cpu" = ia64; then
8536 # AIX 5 supports IA64
8537 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8538 shlibpath_var=LD_LIBRARY_PATH
8539 else
8540 # With GCC up to 2.95.x, collect2 would create an import file
8541 # for dependence libraries. The import file would start with
8542 # the line `#! .'. This would cause the generated library to
8543 # depend on `.', always an invalid library. This was fixed in
8544 # development snapshots of GCC prior to 3.0.
8545 case $host_os in
8546 aix4 | aix4.[01] | aix4.[01].*)
8547 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8548 echo ' yes '
8549 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8551 else
8552 can_build_shared=no
8555 esac
8556 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8557 # soname into executable. Probably we can add versioning support to
8558 # collect2, so additional links can be useful in future.
8559 if test "$aix_use_runtimelinking" = yes; then
8560 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8561 # instead of lib<name>.a to let people know that these are not
8562 # typical AIX shared libraries.
8563 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8564 else
8565 # We preserve .a as extension for shared libraries through AIX4.2
8566 # and later when we are not doing run time linking.
8567 library_names_spec='${libname}${release}.a $libname.a'
8568 soname_spec='${libname}${release}${shared_ext}$major'
8570 shlibpath_var=LIBPATH
8574 amigaos*)
8575 library_names_spec='$libname.ixlibrary $libname.a'
8576 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8577 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'
8580 beos*)
8581 library_names_spec='${libname}${shared_ext}'
8582 dynamic_linker="$host_os ld.so"
8583 shlibpath_var=LIBRARY_PATH
8586 bsdi[45]*)
8587 version_type=linux
8588 need_version=no
8589 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8590 soname_spec='${libname}${release}${shared_ext}$major'
8591 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8592 shlibpath_var=LD_LIBRARY_PATH
8593 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8594 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8595 # the default ld.so.conf also contains /usr/contrib/lib and
8596 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8597 # libtool to hard-code these into programs
8600 cygwin* | mingw* | pw32*)
8601 version_type=windows
8602 shrext_cmds=".dll"
8603 need_version=no
8604 need_lib_prefix=no
8606 case $GCC,$host_os in
8607 yes,cygwin* | yes,mingw* | yes,pw32*)
8608 library_names_spec='$libname.dll.a'
8609 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8610 postinstall_cmds='base_file=`basename \${file}`~
8611 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8612 dldir=$destdir/`dirname \$dlpath`~
8613 test -d \$dldir || mkdir -p \$dldir~
8614 $install_prog $dir/$dlname \$dldir/$dlname~
8615 chmod a+x \$dldir/$dlname'
8616 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8617 dlpath=$dir/\$dldll~
8618 $rm \$dlpath'
8619 shlibpath_overrides_runpath=yes
8621 case $host_os in
8622 cygwin*)
8623 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8624 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8625 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8627 mingw*)
8628 # MinGW DLLs use traditional 'lib' prefix
8629 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8630 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8631 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8632 # It is most probably a Windows format PATH printed by
8633 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8634 # path with ; separators, and with drive letters. We can handle the
8635 # drive letters (cygwin fileutils understands them), so leave them,
8636 # especially as we might pass files found there to a mingw objdump,
8637 # which wouldn't understand a cygwinified path. Ahh.
8638 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8639 else
8640 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8643 pw32*)
8644 # pw32 DLLs use 'pw' prefix rather than 'lib'
8645 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8647 esac
8651 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8653 esac
8654 dynamic_linker='Win32 ld.exe'
8655 # FIXME: first we should search . and the directory the executable is in
8656 shlibpath_var=PATH
8659 darwin* | rhapsody*)
8660 dynamic_linker="$host_os dyld"
8661 version_type=darwin
8662 need_lib_prefix=no
8663 need_version=no
8664 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8665 soname_spec='${libname}${release}${major}$shared_ext'
8666 shlibpath_overrides_runpath=yes
8667 shlibpath_var=DYLD_LIBRARY_PATH
8668 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
8669 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8670 if test "$GCC" = yes; then
8671 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
8672 else
8673 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8675 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8678 dgux*)
8679 version_type=linux
8680 need_lib_prefix=no
8681 need_version=no
8682 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8683 soname_spec='${libname}${release}${shared_ext}$major'
8684 shlibpath_var=LD_LIBRARY_PATH
8687 freebsd1*)
8688 dynamic_linker=no
8691 kfreebsd*-gnu)
8692 version_type=linux
8693 need_lib_prefix=no
8694 need_version=no
8695 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8696 soname_spec='${libname}${release}${shared_ext}$major'
8697 shlibpath_var=LD_LIBRARY_PATH
8698 shlibpath_overrides_runpath=no
8699 hardcode_into_libs=yes
8700 dynamic_linker='GNU ld.so'
8703 freebsd* | dragonfly*)
8704 # DragonFly does not have aout. When/if they implement a new
8705 # versioning mechanism, adjust this.
8706 if test -x /usr/bin/objformat; then
8707 objformat=`/usr/bin/objformat`
8708 else
8709 case $host_os in
8710 freebsd[123]*) objformat=aout ;;
8711 *) objformat=elf ;;
8712 esac
8714 version_type=freebsd-$objformat
8715 case $version_type in
8716 freebsd-elf*)
8717 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8718 need_version=no
8719 need_lib_prefix=no
8721 freebsd-*)
8722 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8723 need_version=yes
8725 esac
8726 shlibpath_var=LD_LIBRARY_PATH
8727 case $host_os in
8728 freebsd2*)
8729 shlibpath_overrides_runpath=yes
8731 freebsd3.[01]* | freebsdelf3.[01]*)
8732 shlibpath_overrides_runpath=yes
8733 hardcode_into_libs=yes
8735 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8736 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8737 shlibpath_overrides_runpath=no
8738 hardcode_into_libs=yes
8740 freebsd*) # from 4.6 on
8741 shlibpath_overrides_runpath=yes
8742 hardcode_into_libs=yes
8744 esac
8747 gnu*)
8748 version_type=linux
8749 need_lib_prefix=no
8750 need_version=no
8751 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8752 soname_spec='${libname}${release}${shared_ext}$major'
8753 shlibpath_var=LD_LIBRARY_PATH
8754 hardcode_into_libs=yes
8757 hpux9* | hpux10* | hpux11*)
8758 # Give a soname corresponding to the major version so that dld.sl refuses to
8759 # link against other versions.
8760 version_type=sunos
8761 need_lib_prefix=no
8762 need_version=no
8763 case $host_cpu in
8764 ia64*)
8765 shrext_cmds='.so'
8766 hardcode_into_libs=yes
8767 dynamic_linker="$host_os dld.so"
8768 shlibpath_var=LD_LIBRARY_PATH
8769 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8770 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8771 soname_spec='${libname}${release}${shared_ext}$major'
8772 if test "X$HPUX_IA64_MODE" = X32; then
8773 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8774 else
8775 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8777 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8779 hppa*64*)
8780 shrext_cmds='.sl'
8781 hardcode_into_libs=yes
8782 dynamic_linker="$host_os dld.sl"
8783 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8784 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8785 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8786 soname_spec='${libname}${release}${shared_ext}$major'
8787 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8788 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8791 shrext_cmds='.sl'
8792 dynamic_linker="$host_os dld.sl"
8793 shlibpath_var=SHLIB_PATH
8794 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8795 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8796 soname_spec='${libname}${release}${shared_ext}$major'
8798 esac
8799 # HP-UX runs *really* slowly unless shared libraries are mode 555.
8800 postinstall_cmds='chmod 555 $lib'
8803 interix3*)
8804 version_type=linux
8805 need_lib_prefix=no
8806 need_version=no
8807 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8808 soname_spec='${libname}${release}${shared_ext}$major'
8809 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8810 shlibpath_var=LD_LIBRARY_PATH
8811 shlibpath_overrides_runpath=no
8812 hardcode_into_libs=yes
8815 irix5* | irix6* | nonstopux*)
8816 case $host_os in
8817 nonstopux*) version_type=nonstopux ;;
8819 if test "$lt_cv_prog_gnu_ld" = yes; then
8820 version_type=linux
8821 else
8822 version_type=irix
8823 fi ;;
8824 esac
8825 need_lib_prefix=no
8826 need_version=no
8827 soname_spec='${libname}${release}${shared_ext}$major'
8828 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8829 case $host_os in
8830 irix5* | nonstopux*)
8831 libsuff= shlibsuff=
8834 case $LD in # libtool.m4 will add one of these switches to LD
8835 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8836 libsuff= shlibsuff= libmagic=32-bit;;
8837 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8838 libsuff=32 shlibsuff=N32 libmagic=N32;;
8839 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8840 libsuff=64 shlibsuff=64 libmagic=64-bit;;
8841 *) libsuff= shlibsuff= libmagic=never-match;;
8842 esac
8844 esac
8845 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8846 shlibpath_overrides_runpath=no
8847 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8848 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8849 hardcode_into_libs=yes
8852 # No shared lib support for Linux oldld, aout, or coff.
8853 linux*oldld* | linux*aout* | linux*coff*)
8854 dynamic_linker=no
8857 # This must be Linux ELF.
8858 linux*)
8859 version_type=linux
8860 need_lib_prefix=no
8861 need_version=no
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 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8865 shlibpath_var=LD_LIBRARY_PATH
8866 shlibpath_overrides_runpath=no
8867 # This implies no fast_install, which is unacceptable.
8868 # Some rework will be needed to allow for fast_install
8869 # before this can be enabled.
8870 hardcode_into_libs=yes
8872 # find out which ABI we are using
8873 libsuff=
8874 case "$host_cpu" in
8875 x86_64*|s390x*|powerpc64*)
8876 echo '#line 8876 "configure"' > conftest.$ac_ext
8877 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8878 (eval $ac_compile) 2>&5
8879 ac_status=$?
8880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8881 (exit $ac_status); }; then
8882 case `/usr/bin/file conftest.$ac_objext` in
8883 *64-bit*)
8884 libsuff=64
8885 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
8887 esac
8889 rm -rf conftest*
8891 esac
8893 # Append ld.so.conf contents to the search path
8894 if test -f /etc/ld.so.conf; then
8895 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/^ *//;s/#.*//;/^[^\/]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
8896 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
8899 # We used to test for /lib/ld.so.1 and disable shared libraries on
8900 # powerpc, because MkLinux only supported shared libraries with the
8901 # GNU dynamic linker. Since this was broken with cross compilers,
8902 # most powerpc-linux boxes support dynamic linking these days and
8903 # people can always --disable-shared, the test was removed, and we
8904 # assume the GNU/Linux dynamic linker is in use.
8905 dynamic_linker='GNU/Linux ld.so'
8908 knetbsd*-gnu)
8909 version_type=linux
8910 need_lib_prefix=no
8911 need_version=no
8912 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8913 soname_spec='${libname}${release}${shared_ext}$major'
8914 shlibpath_var=LD_LIBRARY_PATH
8915 shlibpath_overrides_runpath=no
8916 hardcode_into_libs=yes
8917 dynamic_linker='GNU ld.so'
8920 netbsd*)
8921 version_type=sunos
8922 need_lib_prefix=no
8923 need_version=no
8924 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8925 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8926 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8927 dynamic_linker='NetBSD (a.out) ld.so'
8928 else
8929 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8930 soname_spec='${libname}${release}${shared_ext}$major'
8931 dynamic_linker='NetBSD ld.elf_so'
8933 shlibpath_var=LD_LIBRARY_PATH
8934 shlibpath_overrides_runpath=yes
8935 hardcode_into_libs=yes
8938 newsos6)
8939 version_type=linux
8940 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8941 shlibpath_var=LD_LIBRARY_PATH
8942 shlibpath_overrides_runpath=yes
8945 nto-qnx*)
8946 version_type=linux
8947 need_lib_prefix=no
8948 need_version=no
8949 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8950 soname_spec='${libname}${release}${shared_ext}$major'
8951 shlibpath_var=LD_LIBRARY_PATH
8952 shlibpath_overrides_runpath=yes
8955 openbsd*)
8956 version_type=sunos
8957 sys_lib_dlsearch_path_spec="/usr/lib"
8958 need_lib_prefix=no
8959 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
8960 case $host_os in
8961 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
8962 *) need_version=no ;;
8963 esac
8964 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8965 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8966 shlibpath_var=LD_LIBRARY_PATH
8967 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8968 case $host_os in
8969 openbsd2.[89] | openbsd2.[89].*)
8970 shlibpath_overrides_runpath=no
8973 shlibpath_overrides_runpath=yes
8975 esac
8976 else
8977 shlibpath_overrides_runpath=yes
8981 os2*)
8982 libname_spec='$name'
8983 shrext_cmds=".dll"
8984 need_lib_prefix=no
8985 library_names_spec='$libname${shared_ext} $libname.a'
8986 dynamic_linker='OS/2 ld.exe'
8987 shlibpath_var=LIBPATH
8990 osf3* | osf4* | osf5*)
8991 version_type=osf
8992 need_lib_prefix=no
8993 need_version=no
8994 soname_spec='${libname}${release}${shared_ext}$major'
8995 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8996 shlibpath_var=LD_LIBRARY_PATH
8997 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8998 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9001 solaris*)
9002 version_type=linux
9003 need_lib_prefix=no
9004 need_version=no
9005 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9006 soname_spec='${libname}${release}${shared_ext}$major'
9007 shlibpath_var=LD_LIBRARY_PATH
9008 shlibpath_overrides_runpath=yes
9009 hardcode_into_libs=yes
9010 # ldd complains unless libraries are executable
9011 postinstall_cmds='chmod +x $lib'
9014 sunos4*)
9015 version_type=sunos
9016 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9017 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9018 shlibpath_var=LD_LIBRARY_PATH
9019 shlibpath_overrides_runpath=yes
9020 if test "$with_gnu_ld" = yes; then
9021 need_lib_prefix=no
9023 need_version=yes
9026 sysv4 | sysv4.3*)
9027 version_type=linux
9028 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9029 soname_spec='${libname}${release}${shared_ext}$major'
9030 shlibpath_var=LD_LIBRARY_PATH
9031 case $host_vendor in
9032 sni)
9033 shlibpath_overrides_runpath=no
9034 need_lib_prefix=no
9035 export_dynamic_flag_spec='${wl}-Blargedynsym'
9036 runpath_var=LD_RUN_PATH
9038 siemens)
9039 need_lib_prefix=no
9041 motorola)
9042 need_lib_prefix=no
9043 need_version=no
9044 shlibpath_overrides_runpath=no
9045 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9047 esac
9050 sysv4*MP*)
9051 if test -d /usr/nec ;then
9052 version_type=linux
9053 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9054 soname_spec='$libname${shared_ext}.$major'
9055 shlibpath_var=LD_LIBRARY_PATH
9059 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9060 version_type=freebsd-elf
9061 need_lib_prefix=no
9062 need_version=no
9063 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9064 soname_spec='${libname}${release}${shared_ext}$major'
9065 shlibpath_var=LD_LIBRARY_PATH
9066 hardcode_into_libs=yes
9067 if test "$with_gnu_ld" = yes; then
9068 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9069 shlibpath_overrides_runpath=no
9070 else
9071 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9072 shlibpath_overrides_runpath=yes
9073 case $host_os in
9074 sco3.2v5*)
9075 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9077 esac
9079 sys_lib_dlsearch_path_spec='/usr/lib'
9082 uts4*)
9083 version_type=linux
9084 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9085 soname_spec='${libname}${release}${shared_ext}$major'
9086 shlibpath_var=LD_LIBRARY_PATH
9090 dynamic_linker=no
9092 esac
9093 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9094 echo "${ECHO_T}$dynamic_linker" >&6; }
9095 test "$dynamic_linker" = no && can_build_shared=no
9097 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9098 if test "$GCC" = yes; then
9099 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9102 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9103 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
9104 hardcode_action=
9105 if test -n "$hardcode_libdir_flag_spec" || \
9106 test -n "$runpath_var" || \
9107 test "X$hardcode_automatic" = "Xyes" ; then
9109 # We can hardcode non-existant directories.
9110 if test "$hardcode_direct" != no &&
9111 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9112 # have to relink, otherwise we might link with an installed library
9113 # when we should be linking with a yet-to-be-installed one
9114 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9115 test "$hardcode_minus_L" != no; then
9116 # Linking always hardcodes the temporary library directory.
9117 hardcode_action=relink
9118 else
9119 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9120 hardcode_action=immediate
9122 else
9123 # We cannot hardcode anything, or else we can only hardcode existing
9124 # directories.
9125 hardcode_action=unsupported
9127 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
9128 echo "${ECHO_T}$hardcode_action" >&6; }
9130 if test "$hardcode_action" = relink; then
9131 # Fast installation is not supported
9132 enable_fast_install=no
9133 elif test "$shlibpath_overrides_runpath" = yes ||
9134 test "$enable_shared" = no; then
9135 # Fast installation is not necessary
9136 enable_fast_install=needless
9139 striplib=
9140 old_striplib=
9141 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9142 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
9143 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9144 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9145 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9146 { echo "$as_me:$LINENO: result: yes" >&5
9147 echo "${ECHO_T}yes" >&6; }
9148 else
9149 # FIXME - insert some real tests, host_os isn't really good enough
9150 case $host_os in
9151 darwin*)
9152 if test -n "$STRIP" ; then
9153 striplib="$STRIP -x"
9154 { echo "$as_me:$LINENO: result: yes" >&5
9155 echo "${ECHO_T}yes" >&6; }
9156 else
9157 { echo "$as_me:$LINENO: result: no" >&5
9158 echo "${ECHO_T}no" >&6; }
9162 { echo "$as_me:$LINENO: result: no" >&5
9163 echo "${ECHO_T}no" >&6; }
9165 esac
9168 if test "x$enable_dlopen" != xyes; then
9169 enable_dlopen=unknown
9170 enable_dlopen_self=unknown
9171 enable_dlopen_self_static=unknown
9172 else
9173 lt_cv_dlopen=no
9174 lt_cv_dlopen_libs=
9176 case $host_os in
9177 beos*)
9178 lt_cv_dlopen="load_add_on"
9179 lt_cv_dlopen_libs=
9180 lt_cv_dlopen_self=yes
9183 mingw* | pw32*)
9184 lt_cv_dlopen="LoadLibrary"
9185 lt_cv_dlopen_libs=
9188 cygwin*)
9189 lt_cv_dlopen="dlopen"
9190 lt_cv_dlopen_libs=
9193 darwin*)
9194 # if libdl is installed we need to link against it
9195 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9196 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9197 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9198 echo $ECHO_N "(cached) $ECHO_C" >&6
9199 else
9200 ac_check_lib_save_LIBS=$LIBS
9201 LIBS="-ldl $LIBS"
9202 cat >conftest.$ac_ext <<_ACEOF
9203 /* confdefs.h. */
9204 _ACEOF
9205 cat confdefs.h >>conftest.$ac_ext
9206 cat >>conftest.$ac_ext <<_ACEOF
9207 /* end confdefs.h. */
9209 /* Override any GCC internal prototype to avoid an error.
9210 Use char because int might match the return type of a GCC
9211 builtin and then its argument prototype would still apply. */
9212 #ifdef __cplusplus
9213 extern "C"
9214 #endif
9215 char dlopen ();
9217 main ()
9219 return dlopen ();
9221 return 0;
9223 _ACEOF
9224 rm -f conftest.$ac_objext conftest$ac_exeext
9225 if { (ac_try="$ac_link"
9226 case "(($ac_try" in
9227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9228 *) ac_try_echo=$ac_try;;
9229 esac
9230 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9231 (eval "$ac_link") 2>conftest.er1
9232 ac_status=$?
9233 grep -v '^ *+' conftest.er1 >conftest.err
9234 rm -f conftest.er1
9235 cat conftest.err >&5
9236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9237 (exit $ac_status); } && {
9238 test -z "$ac_c_werror_flag" ||
9239 test ! -s conftest.err
9240 } && test -s conftest$ac_exeext &&
9241 $as_test_x conftest$ac_exeext; then
9242 ac_cv_lib_dl_dlopen=yes
9243 else
9244 echo "$as_me: failed program was:" >&5
9245 sed 's/^/| /' conftest.$ac_ext >&5
9247 ac_cv_lib_dl_dlopen=no
9250 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9251 conftest$ac_exeext conftest.$ac_ext
9252 LIBS=$ac_check_lib_save_LIBS
9254 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9255 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9256 if test $ac_cv_lib_dl_dlopen = yes; then
9257 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9258 else
9260 lt_cv_dlopen="dyld"
9261 lt_cv_dlopen_libs=
9262 lt_cv_dlopen_self=yes
9269 { echo "$as_me:$LINENO: checking for shl_load" >&5
9270 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9271 if test "${ac_cv_func_shl_load+set}" = set; then
9272 echo $ECHO_N "(cached) $ECHO_C" >&6
9273 else
9274 cat >conftest.$ac_ext <<_ACEOF
9275 /* confdefs.h. */
9276 _ACEOF
9277 cat confdefs.h >>conftest.$ac_ext
9278 cat >>conftest.$ac_ext <<_ACEOF
9279 /* end confdefs.h. */
9280 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9281 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9282 #define shl_load innocuous_shl_load
9284 /* System header to define __stub macros and hopefully few prototypes,
9285 which can conflict with char shl_load (); below.
9286 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9287 <limits.h> exists even on freestanding compilers. */
9289 #ifdef __STDC__
9290 # include <limits.h>
9291 #else
9292 # include <assert.h>
9293 #endif
9295 #undef shl_load
9297 /* Override any GCC internal prototype to avoid an error.
9298 Use char because int might match the return type of a GCC
9299 builtin and then its argument prototype would still apply. */
9300 #ifdef __cplusplus
9301 extern "C"
9302 #endif
9303 char shl_load ();
9304 /* The GNU C library defines this for functions which it implements
9305 to always fail with ENOSYS. Some functions are actually named
9306 something starting with __ and the normal name is an alias. */
9307 #if defined __stub_shl_load || defined __stub___shl_load
9308 choke me
9309 #endif
9312 main ()
9314 return shl_load ();
9316 return 0;
9318 _ACEOF
9319 rm -f conftest.$ac_objext conftest$ac_exeext
9320 if { (ac_try="$ac_link"
9321 case "(($ac_try" in
9322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9323 *) ac_try_echo=$ac_try;;
9324 esac
9325 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9326 (eval "$ac_link") 2>conftest.er1
9327 ac_status=$?
9328 grep -v '^ *+' conftest.er1 >conftest.err
9329 rm -f conftest.er1
9330 cat conftest.err >&5
9331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9332 (exit $ac_status); } && {
9333 test -z "$ac_c_werror_flag" ||
9334 test ! -s conftest.err
9335 } && test -s conftest$ac_exeext &&
9336 $as_test_x conftest$ac_exeext; then
9337 ac_cv_func_shl_load=yes
9338 else
9339 echo "$as_me: failed program was:" >&5
9340 sed 's/^/| /' conftest.$ac_ext >&5
9342 ac_cv_func_shl_load=no
9345 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9346 conftest$ac_exeext conftest.$ac_ext
9348 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9349 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9350 if test $ac_cv_func_shl_load = yes; then
9351 lt_cv_dlopen="shl_load"
9352 else
9353 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9354 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9355 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9356 echo $ECHO_N "(cached) $ECHO_C" >&6
9357 else
9358 ac_check_lib_save_LIBS=$LIBS
9359 LIBS="-ldld $LIBS"
9360 cat >conftest.$ac_ext <<_ACEOF
9361 /* confdefs.h. */
9362 _ACEOF
9363 cat confdefs.h >>conftest.$ac_ext
9364 cat >>conftest.$ac_ext <<_ACEOF
9365 /* end confdefs.h. */
9367 /* Override any GCC internal prototype to avoid an error.
9368 Use char because int might match the return type of a GCC
9369 builtin and then its argument prototype would still apply. */
9370 #ifdef __cplusplus
9371 extern "C"
9372 #endif
9373 char shl_load ();
9375 main ()
9377 return shl_load ();
9379 return 0;
9381 _ACEOF
9382 rm -f conftest.$ac_objext conftest$ac_exeext
9383 if { (ac_try="$ac_link"
9384 case "(($ac_try" in
9385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9386 *) ac_try_echo=$ac_try;;
9387 esac
9388 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9389 (eval "$ac_link") 2>conftest.er1
9390 ac_status=$?
9391 grep -v '^ *+' conftest.er1 >conftest.err
9392 rm -f conftest.er1
9393 cat conftest.err >&5
9394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9395 (exit $ac_status); } && {
9396 test -z "$ac_c_werror_flag" ||
9397 test ! -s conftest.err
9398 } && test -s conftest$ac_exeext &&
9399 $as_test_x conftest$ac_exeext; then
9400 ac_cv_lib_dld_shl_load=yes
9401 else
9402 echo "$as_me: failed program was:" >&5
9403 sed 's/^/| /' conftest.$ac_ext >&5
9405 ac_cv_lib_dld_shl_load=no
9408 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9409 conftest$ac_exeext conftest.$ac_ext
9410 LIBS=$ac_check_lib_save_LIBS
9412 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9413 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9414 if test $ac_cv_lib_dld_shl_load = yes; then
9415 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9416 else
9417 { echo "$as_me:$LINENO: checking for dlopen" >&5
9418 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
9419 if test "${ac_cv_func_dlopen+set}" = set; then
9420 echo $ECHO_N "(cached) $ECHO_C" >&6
9421 else
9422 cat >conftest.$ac_ext <<_ACEOF
9423 /* confdefs.h. */
9424 _ACEOF
9425 cat confdefs.h >>conftest.$ac_ext
9426 cat >>conftest.$ac_ext <<_ACEOF
9427 /* end confdefs.h. */
9428 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9429 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9430 #define dlopen innocuous_dlopen
9432 /* System header to define __stub macros and hopefully few prototypes,
9433 which can conflict with char dlopen (); below.
9434 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9435 <limits.h> exists even on freestanding compilers. */
9437 #ifdef __STDC__
9438 # include <limits.h>
9439 #else
9440 # include <assert.h>
9441 #endif
9443 #undef dlopen
9445 /* Override any GCC internal prototype to avoid an error.
9446 Use char because int might match the return type of a GCC
9447 builtin and then its argument prototype would still apply. */
9448 #ifdef __cplusplus
9449 extern "C"
9450 #endif
9451 char dlopen ();
9452 /* The GNU C library defines this for functions which it implements
9453 to always fail with ENOSYS. Some functions are actually named
9454 something starting with __ and the normal name is an alias. */
9455 #if defined __stub_dlopen || defined __stub___dlopen
9456 choke me
9457 #endif
9460 main ()
9462 return dlopen ();
9464 return 0;
9466 _ACEOF
9467 rm -f conftest.$ac_objext conftest$ac_exeext
9468 if { (ac_try="$ac_link"
9469 case "(($ac_try" in
9470 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9471 *) ac_try_echo=$ac_try;;
9472 esac
9473 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9474 (eval "$ac_link") 2>conftest.er1
9475 ac_status=$?
9476 grep -v '^ *+' conftest.er1 >conftest.err
9477 rm -f conftest.er1
9478 cat conftest.err >&5
9479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9480 (exit $ac_status); } && {
9481 test -z "$ac_c_werror_flag" ||
9482 test ! -s conftest.err
9483 } && test -s conftest$ac_exeext &&
9484 $as_test_x conftest$ac_exeext; then
9485 ac_cv_func_dlopen=yes
9486 else
9487 echo "$as_me: failed program was:" >&5
9488 sed 's/^/| /' conftest.$ac_ext >&5
9490 ac_cv_func_dlopen=no
9493 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9494 conftest$ac_exeext conftest.$ac_ext
9496 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9497 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
9498 if test $ac_cv_func_dlopen = yes; then
9499 lt_cv_dlopen="dlopen"
9500 else
9501 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9502 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9503 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9504 echo $ECHO_N "(cached) $ECHO_C" >&6
9505 else
9506 ac_check_lib_save_LIBS=$LIBS
9507 LIBS="-ldl $LIBS"
9508 cat >conftest.$ac_ext <<_ACEOF
9509 /* confdefs.h. */
9510 _ACEOF
9511 cat confdefs.h >>conftest.$ac_ext
9512 cat >>conftest.$ac_ext <<_ACEOF
9513 /* end confdefs.h. */
9515 /* Override any GCC internal prototype to avoid an error.
9516 Use char because int might match the return type of a GCC
9517 builtin and then its argument prototype would still apply. */
9518 #ifdef __cplusplus
9519 extern "C"
9520 #endif
9521 char dlopen ();
9523 main ()
9525 return dlopen ();
9527 return 0;
9529 _ACEOF
9530 rm -f conftest.$ac_objext conftest$ac_exeext
9531 if { (ac_try="$ac_link"
9532 case "(($ac_try" in
9533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9534 *) ac_try_echo=$ac_try;;
9535 esac
9536 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9537 (eval "$ac_link") 2>conftest.er1
9538 ac_status=$?
9539 grep -v '^ *+' conftest.er1 >conftest.err
9540 rm -f conftest.er1
9541 cat conftest.err >&5
9542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9543 (exit $ac_status); } && {
9544 test -z "$ac_c_werror_flag" ||
9545 test ! -s conftest.err
9546 } && test -s conftest$ac_exeext &&
9547 $as_test_x conftest$ac_exeext; then
9548 ac_cv_lib_dl_dlopen=yes
9549 else
9550 echo "$as_me: failed program was:" >&5
9551 sed 's/^/| /' conftest.$ac_ext >&5
9553 ac_cv_lib_dl_dlopen=no
9556 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9557 conftest$ac_exeext conftest.$ac_ext
9558 LIBS=$ac_check_lib_save_LIBS
9560 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9561 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9562 if test $ac_cv_lib_dl_dlopen = yes; then
9563 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9564 else
9565 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9566 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
9567 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9568 echo $ECHO_N "(cached) $ECHO_C" >&6
9569 else
9570 ac_check_lib_save_LIBS=$LIBS
9571 LIBS="-lsvld $LIBS"
9572 cat >conftest.$ac_ext <<_ACEOF
9573 /* confdefs.h. */
9574 _ACEOF
9575 cat confdefs.h >>conftest.$ac_ext
9576 cat >>conftest.$ac_ext <<_ACEOF
9577 /* end confdefs.h. */
9579 /* Override any GCC internal prototype to avoid an error.
9580 Use char because int might match the return type of a GCC
9581 builtin and then its argument prototype would still apply. */
9582 #ifdef __cplusplus
9583 extern "C"
9584 #endif
9585 char dlopen ();
9587 main ()
9589 return dlopen ();
9591 return 0;
9593 _ACEOF
9594 rm -f conftest.$ac_objext conftest$ac_exeext
9595 if { (ac_try="$ac_link"
9596 case "(($ac_try" in
9597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9598 *) ac_try_echo=$ac_try;;
9599 esac
9600 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9601 (eval "$ac_link") 2>conftest.er1
9602 ac_status=$?
9603 grep -v '^ *+' conftest.er1 >conftest.err
9604 rm -f conftest.er1
9605 cat conftest.err >&5
9606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9607 (exit $ac_status); } && {
9608 test -z "$ac_c_werror_flag" ||
9609 test ! -s conftest.err
9610 } && test -s conftest$ac_exeext &&
9611 $as_test_x conftest$ac_exeext; then
9612 ac_cv_lib_svld_dlopen=yes
9613 else
9614 echo "$as_me: failed program was:" >&5
9615 sed 's/^/| /' conftest.$ac_ext >&5
9617 ac_cv_lib_svld_dlopen=no
9620 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9621 conftest$ac_exeext conftest.$ac_ext
9622 LIBS=$ac_check_lib_save_LIBS
9624 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9625 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
9626 if test $ac_cv_lib_svld_dlopen = yes; then
9627 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9628 else
9629 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9630 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
9631 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9632 echo $ECHO_N "(cached) $ECHO_C" >&6
9633 else
9634 ac_check_lib_save_LIBS=$LIBS
9635 LIBS="-ldld $LIBS"
9636 cat >conftest.$ac_ext <<_ACEOF
9637 /* confdefs.h. */
9638 _ACEOF
9639 cat confdefs.h >>conftest.$ac_ext
9640 cat >>conftest.$ac_ext <<_ACEOF
9641 /* end confdefs.h. */
9643 /* Override any GCC internal prototype to avoid an error.
9644 Use char because int might match the return type of a GCC
9645 builtin and then its argument prototype would still apply. */
9646 #ifdef __cplusplus
9647 extern "C"
9648 #endif
9649 char dld_link ();
9651 main ()
9653 return dld_link ();
9655 return 0;
9657 _ACEOF
9658 rm -f conftest.$ac_objext conftest$ac_exeext
9659 if { (ac_try="$ac_link"
9660 case "(($ac_try" in
9661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9662 *) ac_try_echo=$ac_try;;
9663 esac
9664 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9665 (eval "$ac_link") 2>conftest.er1
9666 ac_status=$?
9667 grep -v '^ *+' conftest.er1 >conftest.err
9668 rm -f conftest.er1
9669 cat conftest.err >&5
9670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9671 (exit $ac_status); } && {
9672 test -z "$ac_c_werror_flag" ||
9673 test ! -s conftest.err
9674 } && test -s conftest$ac_exeext &&
9675 $as_test_x conftest$ac_exeext; then
9676 ac_cv_lib_dld_dld_link=yes
9677 else
9678 echo "$as_me: failed program was:" >&5
9679 sed 's/^/| /' conftest.$ac_ext >&5
9681 ac_cv_lib_dld_dld_link=no
9684 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9685 conftest$ac_exeext conftest.$ac_ext
9686 LIBS=$ac_check_lib_save_LIBS
9688 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9689 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
9690 if test $ac_cv_lib_dld_dld_link = yes; then
9691 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
9710 esac
9712 if test "x$lt_cv_dlopen" != xno; then
9713 enable_dlopen=yes
9714 else
9715 enable_dlopen=no
9718 case $lt_cv_dlopen in
9719 dlopen)
9720 save_CPPFLAGS="$CPPFLAGS"
9721 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9723 save_LDFLAGS="$LDFLAGS"
9724 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9726 save_LIBS="$LIBS"
9727 LIBS="$lt_cv_dlopen_libs $LIBS"
9729 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
9730 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
9731 if test "${lt_cv_dlopen_self+set}" = set; then
9732 echo $ECHO_N "(cached) $ECHO_C" >&6
9733 else
9734 if test "$cross_compiling" = yes; then :
9735 lt_cv_dlopen_self=cross
9736 else
9737 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9738 lt_status=$lt_dlunknown
9739 cat > conftest.$ac_ext <<EOF
9740 #line 9740 "configure"
9741 #include "confdefs.h"
9743 #if HAVE_DLFCN_H
9744 #include <dlfcn.h>
9745 #endif
9747 #include <stdio.h>
9749 #ifdef RTLD_GLOBAL
9750 # define LT_DLGLOBAL RTLD_GLOBAL
9751 #else
9752 # ifdef DL_GLOBAL
9753 # define LT_DLGLOBAL DL_GLOBAL
9754 # else
9755 # define LT_DLGLOBAL 0
9756 # endif
9757 #endif
9759 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9760 find out it does not work in some platform. */
9761 #ifndef LT_DLLAZY_OR_NOW
9762 # ifdef RTLD_LAZY
9763 # define LT_DLLAZY_OR_NOW RTLD_LAZY
9764 # else
9765 # ifdef DL_LAZY
9766 # define LT_DLLAZY_OR_NOW DL_LAZY
9767 # else
9768 # ifdef RTLD_NOW
9769 # define LT_DLLAZY_OR_NOW RTLD_NOW
9770 # else
9771 # ifdef DL_NOW
9772 # define LT_DLLAZY_OR_NOW DL_NOW
9773 # else
9774 # define LT_DLLAZY_OR_NOW 0
9775 # endif
9776 # endif
9777 # endif
9778 # endif
9779 #endif
9781 #ifdef __cplusplus
9782 extern "C" void exit (int);
9783 #endif
9785 void fnord() { int i=42;}
9786 int main ()
9788 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9789 int status = $lt_dlunknown;
9791 if (self)
9793 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9794 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9795 /* dlclose (self); */
9797 else
9798 puts (dlerror ());
9800 exit (status);
9803 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9804 (eval $ac_link) 2>&5
9805 ac_status=$?
9806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9807 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9808 (./conftest; exit; ) >&5 2>/dev/null
9809 lt_status=$?
9810 case x$lt_status in
9811 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9812 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9813 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
9814 esac
9815 else :
9816 # compilation failed
9817 lt_cv_dlopen_self=no
9820 rm -fr conftest*
9824 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
9825 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
9827 if test "x$lt_cv_dlopen_self" = xyes; then
9828 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
9829 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
9830 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
9831 if test "${lt_cv_dlopen_self_static+set}" = set; then
9832 echo $ECHO_N "(cached) $ECHO_C" >&6
9833 else
9834 if test "$cross_compiling" = yes; then :
9835 lt_cv_dlopen_self_static=cross
9836 else
9837 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9838 lt_status=$lt_dlunknown
9839 cat > conftest.$ac_ext <<EOF
9840 #line 9840 "configure"
9841 #include "confdefs.h"
9843 #if HAVE_DLFCN_H
9844 #include <dlfcn.h>
9845 #endif
9847 #include <stdio.h>
9849 #ifdef RTLD_GLOBAL
9850 # define LT_DLGLOBAL RTLD_GLOBAL
9851 #else
9852 # ifdef DL_GLOBAL
9853 # define LT_DLGLOBAL DL_GLOBAL
9854 # else
9855 # define LT_DLGLOBAL 0
9856 # endif
9857 #endif
9859 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9860 find out it does not work in some platform. */
9861 #ifndef LT_DLLAZY_OR_NOW
9862 # ifdef RTLD_LAZY
9863 # define LT_DLLAZY_OR_NOW RTLD_LAZY
9864 # else
9865 # ifdef DL_LAZY
9866 # define LT_DLLAZY_OR_NOW DL_LAZY
9867 # else
9868 # ifdef RTLD_NOW
9869 # define LT_DLLAZY_OR_NOW RTLD_NOW
9870 # else
9871 # ifdef DL_NOW
9872 # define LT_DLLAZY_OR_NOW DL_NOW
9873 # else
9874 # define LT_DLLAZY_OR_NOW 0
9875 # endif
9876 # endif
9877 # endif
9878 # endif
9879 #endif
9881 #ifdef __cplusplus
9882 extern "C" void exit (int);
9883 #endif
9885 void fnord() { int i=42;}
9886 int main ()
9888 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9889 int status = $lt_dlunknown;
9891 if (self)
9893 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9894 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9895 /* dlclose (self); */
9897 else
9898 puts (dlerror ());
9900 exit (status);
9903 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9904 (eval $ac_link) 2>&5
9905 ac_status=$?
9906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9907 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9908 (./conftest; exit; ) >&5 2>/dev/null
9909 lt_status=$?
9910 case x$lt_status in
9911 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
9912 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
9913 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
9914 esac
9915 else :
9916 # compilation failed
9917 lt_cv_dlopen_self_static=no
9920 rm -fr conftest*
9924 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
9925 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
9928 CPPFLAGS="$save_CPPFLAGS"
9929 LDFLAGS="$save_LDFLAGS"
9930 LIBS="$save_LIBS"
9932 esac
9934 case $lt_cv_dlopen_self in
9935 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
9936 *) enable_dlopen_self=unknown ;;
9937 esac
9939 case $lt_cv_dlopen_self_static in
9940 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
9941 *) enable_dlopen_self_static=unknown ;;
9942 esac
9946 # Report which library types will actually be built
9947 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
9948 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
9949 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
9950 echo "${ECHO_T}$can_build_shared" >&6; }
9952 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
9953 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
9954 test "$can_build_shared" = "no" && enable_shared=no
9956 # On AIX, shared libraries and static libraries use the same namespace, and
9957 # are all built from PIC.
9958 case $host_os in
9959 aix3*)
9960 test "$enable_shared" = yes && enable_static=no
9961 if test -n "$RANLIB"; then
9962 archive_cmds="$archive_cmds~\$RANLIB \$lib"
9963 postinstall_cmds='$RANLIB $lib'
9967 aix4* | aix5*)
9968 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9969 test "$enable_shared" = yes && enable_static=no
9972 esac
9973 { echo "$as_me:$LINENO: result: $enable_shared" >&5
9974 echo "${ECHO_T}$enable_shared" >&6; }
9976 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
9977 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
9978 # Make sure either enable_shared or enable_static is yes.
9979 test "$enable_shared" = yes || enable_static=yes
9980 { echo "$as_me:$LINENO: result: $enable_static" >&5
9981 echo "${ECHO_T}$enable_static" >&6; }
9983 # The else clause should only fire when bootstrapping the
9984 # libtool distribution, otherwise you forgot to ship ltmain.sh
9985 # with your package, and you will get complaints that there are
9986 # no rules to generate ltmain.sh.
9987 if test -f "$ltmain"; then
9988 # See if we are running on zsh, and set the options which allow our commands through
9989 # without removal of \ escapes.
9990 if test -n "${ZSH_VERSION+set}" ; then
9991 setopt NO_GLOB_SUBST
9993 # Now quote all the things that may contain metacharacters while being
9994 # careful not to overquote the AC_SUBSTed values. We take copies of the
9995 # variables and quote the copies for generation of the libtool script.
9996 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
9997 SED SHELL STRIP \
9998 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
9999 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10000 deplibs_check_method reload_flag reload_cmds need_locks \
10001 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10002 lt_cv_sys_global_symbol_to_c_name_address \
10003 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10004 old_postinstall_cmds old_postuninstall_cmds \
10005 compiler \
10006 CC \
10007 LD \
10008 lt_prog_compiler_wl \
10009 lt_prog_compiler_pic \
10010 lt_prog_compiler_static \
10011 lt_prog_compiler_no_builtin_flag \
10012 export_dynamic_flag_spec \
10013 thread_safe_flag_spec \
10014 whole_archive_flag_spec \
10015 enable_shared_with_static_runtimes \
10016 old_archive_cmds \
10017 old_archive_from_new_cmds \
10018 predep_objects \
10019 postdep_objects \
10020 predeps \
10021 postdeps \
10022 compiler_lib_search_path \
10023 archive_cmds \
10024 archive_expsym_cmds \
10025 postinstall_cmds \
10026 postuninstall_cmds \
10027 old_archive_from_expsyms_cmds \
10028 allow_undefined_flag \
10029 no_undefined_flag \
10030 export_symbols_cmds \
10031 hardcode_libdir_flag_spec \
10032 hardcode_libdir_flag_spec_ld \
10033 hardcode_libdir_separator \
10034 hardcode_automatic \
10035 module_cmds \
10036 module_expsym_cmds \
10037 lt_cv_prog_compiler_c_o \
10038 exclude_expsyms \
10039 include_expsyms; do
10041 case $var in
10042 old_archive_cmds | \
10043 old_archive_from_new_cmds | \
10044 archive_cmds | \
10045 archive_expsym_cmds | \
10046 module_cmds | \
10047 module_expsym_cmds | \
10048 old_archive_from_expsyms_cmds | \
10049 export_symbols_cmds | \
10050 extract_expsyms_cmds | reload_cmds | finish_cmds | \
10051 postinstall_cmds | postuninstall_cmds | \
10052 old_postinstall_cmds | old_postuninstall_cmds | \
10053 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10054 # Double-quote double-evaled strings.
10055 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10058 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10060 esac
10061 done
10063 case $lt_echo in
10064 *'\$0 --fallback-echo"')
10065 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10067 esac
10069 cfgfile="${ofile}T"
10070 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10071 $rm -f "$cfgfile"
10072 { echo "$as_me:$LINENO: creating $ofile" >&5
10073 echo "$as_me: creating $ofile" >&6;}
10075 cat <<__EOF__ >> "$cfgfile"
10076 #! $SHELL
10078 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10079 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10080 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
10082 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
10083 # Free Software Foundation, Inc.
10085 # This file is part of GNU Libtool:
10086 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10088 # This program is free software; you can redistribute it and/or modify
10089 # it under the terms of the GNU General Public License as published by
10090 # the Free Software Foundation; either version 2 of the License, or
10091 # (at your option) any later version.
10093 # This program is distributed in the hope that it will be useful, but
10094 # WITHOUT ANY WARRANTY; without even the implied warranty of
10095 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
10096 # General Public License for more details.
10098 # You should have received a copy of the GNU General Public License
10099 # along with this program; if not, write to the Free Software
10100 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10102 # As a special exception to the GNU General Public License, if you
10103 # distribute this file as part of a program that contains a
10104 # configuration script generated by Autoconf, you may include it under
10105 # the same distribution terms that you use for the rest of that program.
10107 # A sed program that does not truncate output.
10108 SED=$lt_SED
10110 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
10111 Xsed="$SED -e 1s/^X//"
10113 # The HP-UX ksh and POSIX shell print the target directory to stdout
10114 # if CDPATH is set.
10115 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10117 # The names of the tagged configurations supported by this script.
10118 available_tags=
10120 # ### BEGIN LIBTOOL CONFIG
10122 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10124 # Shell to use when invoking shell scripts.
10125 SHELL=$lt_SHELL
10127 # Whether or not to build shared libraries.
10128 build_libtool_libs=$enable_shared
10130 # Whether or not to build static libraries.
10131 build_old_libs=$enable_static
10133 # Whether or not to add -lc for building shared libraries.
10134 build_libtool_need_lc=$archive_cmds_need_lc
10136 # Whether or not to disallow shared libs when runtime libs are static
10137 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10139 # Whether or not to optimize for fast installation.
10140 fast_install=$enable_fast_install
10142 # The host system.
10143 host_alias=$host_alias
10144 host=$host
10145 host_os=$host_os
10147 # The build system.
10148 build_alias=$build_alias
10149 build=$build
10150 build_os=$build_os
10152 # An echo program that does not interpret backslashes.
10153 echo=$lt_echo
10155 # The archiver.
10156 AR=$lt_AR
10157 AR_FLAGS=$lt_AR_FLAGS
10159 # A C compiler.
10160 LTCC=$lt_LTCC
10162 # LTCC compiler flags.
10163 LTCFLAGS=$lt_LTCFLAGS
10165 # A language-specific compiler.
10166 CC=$lt_compiler
10168 # Is the compiler the GNU C compiler?
10169 with_gcc=$GCC
10171 # An ERE matcher.
10172 EGREP=$lt_EGREP
10174 # The linker used to build libraries.
10175 LD=$lt_LD
10177 # Whether we need hard or soft links.
10178 LN_S=$lt_LN_S
10180 # A BSD-compatible nm program.
10181 NM=$lt_NM
10183 # A symbol stripping program
10184 STRIP=$lt_STRIP
10186 # Used to examine libraries when file_magic_cmd begins "file"
10187 MAGIC_CMD=$MAGIC_CMD
10189 # Used on cygwin: DLL creation program.
10190 DLLTOOL="$DLLTOOL"
10192 # Used on cygwin: object dumper.
10193 OBJDUMP="$OBJDUMP"
10195 # Used on cygwin: assembler.
10196 AS="$AS"
10198 # The name of the directory that contains temporary libtool files.
10199 objdir=$objdir
10201 # How to create reloadable object files.
10202 reload_flag=$lt_reload_flag
10203 reload_cmds=$lt_reload_cmds
10205 # How to pass a linker flag through the compiler.
10206 wl=$lt_lt_prog_compiler_wl
10208 # Object file suffix (normally "o").
10209 objext="$ac_objext"
10211 # Old archive suffix (normally "a").
10212 libext="$libext"
10214 # Shared library suffix (normally ".so").
10215 shrext_cmds='$shrext_cmds'
10217 # Executable file suffix (normally "").
10218 exeext="$exeext"
10220 # Additional compiler flags for building library objects.
10221 pic_flag=$lt_lt_prog_compiler_pic
10222 pic_mode=$pic_mode
10224 # What is the maximum length of a command?
10225 max_cmd_len=$lt_cv_sys_max_cmd_len
10227 # Does compiler simultaneously support -c and -o options?
10228 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10230 # Must we lock files when doing compilation?
10231 need_locks=$lt_need_locks
10233 # Do we need the lib prefix for modules?
10234 need_lib_prefix=$need_lib_prefix
10236 # Do we need a version for libraries?
10237 need_version=$need_version
10239 # Whether dlopen is supported.
10240 dlopen_support=$enable_dlopen
10242 # Whether dlopen of programs is supported.
10243 dlopen_self=$enable_dlopen_self
10245 # Whether dlopen of statically linked programs is supported.
10246 dlopen_self_static=$enable_dlopen_self_static
10248 # Compiler flag to prevent dynamic linking.
10249 link_static_flag=$lt_lt_prog_compiler_static
10251 # Compiler flag to turn off builtin functions.
10252 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10254 # Compiler flag to allow reflexive dlopens.
10255 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10257 # Compiler flag to generate shared objects directly from archives.
10258 whole_archive_flag_spec=$lt_whole_archive_flag_spec
10260 # Compiler flag to generate thread-safe objects.
10261 thread_safe_flag_spec=$lt_thread_safe_flag_spec
10263 # Library versioning type.
10264 version_type=$version_type
10266 # Format of library name prefix.
10267 libname_spec=$lt_libname_spec
10269 # List of archive names. First name is the real one, the rest are links.
10270 # The last name is the one that the linker finds with -lNAME.
10271 library_names_spec=$lt_library_names_spec
10273 # The coded name of the library, if different from the real name.
10274 soname_spec=$lt_soname_spec
10276 # Commands used to build and install an old-style archive.
10277 RANLIB=$lt_RANLIB
10278 old_archive_cmds=$lt_old_archive_cmds
10279 old_postinstall_cmds=$lt_old_postinstall_cmds
10280 old_postuninstall_cmds=$lt_old_postuninstall_cmds
10282 # Create an old-style archive from a shared archive.
10283 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10285 # Create a temporary old-style archive to link instead of a shared archive.
10286 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10288 # Commands used to build and install a shared archive.
10289 archive_cmds=$lt_archive_cmds
10290 archive_expsym_cmds=$lt_archive_expsym_cmds
10291 postinstall_cmds=$lt_postinstall_cmds
10292 postuninstall_cmds=$lt_postuninstall_cmds
10294 # Commands used to build a loadable module (assumed same as above if empty)
10295 module_cmds=$lt_module_cmds
10296 module_expsym_cmds=$lt_module_expsym_cmds
10298 # Commands to strip libraries.
10299 old_striplib=$lt_old_striplib
10300 striplib=$lt_striplib
10302 # Dependencies to place before the objects being linked to create a
10303 # shared library.
10304 predep_objects=$lt_predep_objects
10306 # Dependencies to place after the objects being linked to create a
10307 # shared library.
10308 postdep_objects=$lt_postdep_objects
10310 # Dependencies to place before the objects being linked to create a
10311 # shared library.
10312 predeps=$lt_predeps
10314 # Dependencies to place after the objects being linked to create a
10315 # shared library.
10316 postdeps=$lt_postdeps
10318 # The library search path used internally by the compiler when linking
10319 # a shared library.
10320 compiler_lib_search_path=$lt_compiler_lib_search_path
10322 # Method to check whether dependent libraries are shared objects.
10323 deplibs_check_method=$lt_deplibs_check_method
10325 # Command to use when deplibs_check_method == file_magic.
10326 file_magic_cmd=$lt_file_magic_cmd
10328 # Flag that allows shared libraries with undefined symbols to be built.
10329 allow_undefined_flag=$lt_allow_undefined_flag
10331 # Flag that forces no undefined symbols.
10332 no_undefined_flag=$lt_no_undefined_flag
10334 # Commands used to finish a libtool library installation in a directory.
10335 finish_cmds=$lt_finish_cmds
10337 # Same as above, but a single script fragment to be evaled but not shown.
10338 finish_eval=$lt_finish_eval
10340 # Take the output of nm and produce a listing of raw symbols and C names.
10341 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10343 # Transform the output of nm in a proper C declaration
10344 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10346 # Transform the output of nm in a C name address pair
10347 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10349 # This is the shared library runtime path variable.
10350 runpath_var=$runpath_var
10352 # This is the shared library path variable.
10353 shlibpath_var=$shlibpath_var
10355 # Is shlibpath searched before the hard-coded library search path?
10356 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10358 # How to hardcode a shared library path into an executable.
10359 hardcode_action=$hardcode_action
10361 # Whether we should hardcode library paths into libraries.
10362 hardcode_into_libs=$hardcode_into_libs
10364 # Flag to hardcode \$libdir into a binary during linking.
10365 # This must work even if \$libdir does not exist.
10366 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10368 # If ld is used when linking, flag to hardcode \$libdir into
10369 # a binary during linking. This must work even if \$libdir does
10370 # not exist.
10371 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10373 # Whether we need a single -rpath flag with a separated argument.
10374 hardcode_libdir_separator=$lt_hardcode_libdir_separator
10376 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10377 # resulting binary.
10378 hardcode_direct=$hardcode_direct
10380 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10381 # resulting binary.
10382 hardcode_minus_L=$hardcode_minus_L
10384 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10385 # the resulting binary.
10386 hardcode_shlibpath_var=$hardcode_shlibpath_var
10388 # Set to yes if building a shared library automatically hardcodes DIR into the library
10389 # and all subsequent libraries and executables linked against it.
10390 hardcode_automatic=$hardcode_automatic
10392 # Variables whose values should be saved in libtool wrapper scripts and
10393 # restored at relink time.
10394 variables_saved_for_relink="$variables_saved_for_relink"
10396 # Whether libtool must link a program against all its dependency libraries.
10397 link_all_deplibs=$link_all_deplibs
10399 # Compile-time system search path for libraries
10400 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10402 # Run-time system search path for libraries
10403 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10405 # Fix the shell variable \$srcfile for the compiler.
10406 fix_srcfile_path="$fix_srcfile_path"
10408 # Set to yes if exported symbols are required.
10409 always_export_symbols=$always_export_symbols
10411 # The commands to list exported symbols.
10412 export_symbols_cmds=$lt_export_symbols_cmds
10414 # The commands to extract the exported symbol list from a shared archive.
10415 extract_expsyms_cmds=$lt_extract_expsyms_cmds
10417 # Symbols that should not be listed in the preloaded symbols.
10418 exclude_expsyms=$lt_exclude_expsyms
10420 # Symbols that must always be exported.
10421 include_expsyms=$lt_include_expsyms
10423 # ### END LIBTOOL CONFIG
10425 __EOF__
10428 case $host_os in
10429 aix3*)
10430 cat <<\EOF >> "$cfgfile"
10432 # AIX sometimes has problems with the GCC collect2 program. For some
10433 # reason, if we set the COLLECT_NAMES environment variable, the problems
10434 # vanish in a puff of smoke.
10435 if test "X${COLLECT_NAMES+set}" != Xset; then
10436 COLLECT_NAMES=
10437 export COLLECT_NAMES
10441 esac
10443 # We use sed instead of cat because bash on DJGPP gets confused if
10444 # if finds mixed CR/LF and LF-only lines. Since sed operates in
10445 # text mode, it properly converts lines to CR/LF. This bash problem
10446 # is reportedly fixed, but why not run on old versions too?
10447 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10449 mv -f "$cfgfile" "$ofile" || \
10450 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10451 chmod +x "$ofile"
10453 else
10454 # If there is no Makefile yet, we rely on a make rule to execute
10455 # `config.status --recheck' to rerun these tests and create the
10456 # libtool script then.
10457 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10458 if test -f "$ltmain_in"; then
10459 test -f Makefile && make "$ltmain"
10464 ac_ext=cpp
10465 ac_cpp='$CXXCPP $CPPFLAGS'
10466 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10467 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10468 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10470 CC="$lt_save_CC"
10473 # Check whether --with-tags was given.
10474 if test "${with_tags+set}" = set; then
10475 withval=$with_tags; tagnames="$withval"
10479 if test -f "$ltmain" && test -n "$tagnames"; then
10480 if test ! -f "${ofile}"; then
10481 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
10482 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
10485 if test -z "$LTCC"; then
10486 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
10487 if test -z "$LTCC"; then
10488 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10489 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
10490 else
10491 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
10492 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
10495 if test -z "$LTCFLAGS"; then
10496 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
10499 # Extract list of available tagged configurations in $ofile.
10500 # Note that this assumes the entire list is on one line.
10501 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10503 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10504 for tagname in $tagnames; do
10505 IFS="$lt_save_ifs"
10506 # Check whether tagname contains only valid characters
10507 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
10508 "") ;;
10509 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
10510 echo "$as_me: error: invalid tag name: $tagname" >&2;}
10511 { (exit 1); exit 1; }; }
10513 esac
10515 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
10516 then
10517 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
10518 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
10519 { (exit 1); exit 1; }; }
10522 # Update the list of available tags.
10523 if test -n "$tagname"; then
10524 echo appending configuration tag \"$tagname\" to $ofile
10526 case $tagname in
10527 CXX)
10528 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10529 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10530 (test "X$CXX" != "Xg++"))) ; then
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
10540 archive_cmds_need_lc_CXX=no
10541 allow_undefined_flag_CXX=
10542 always_export_symbols_CXX=no
10543 archive_expsym_cmds_CXX=
10544 export_dynamic_flag_spec_CXX=
10545 hardcode_direct_CXX=no
10546 hardcode_libdir_flag_spec_CXX=
10547 hardcode_libdir_flag_spec_ld_CXX=
10548 hardcode_libdir_separator_CXX=
10549 hardcode_minus_L_CXX=no
10550 hardcode_shlibpath_var_CXX=unsupported
10551 hardcode_automatic_CXX=no
10552 module_cmds_CXX=
10553 module_expsym_cmds_CXX=
10554 link_all_deplibs_CXX=unknown
10555 old_archive_cmds_CXX=$old_archive_cmds
10556 no_undefined_flag_CXX=
10557 whole_archive_flag_spec_CXX=
10558 enable_shared_with_static_runtimes_CXX=no
10560 # Dependencies to place before and after the object being linked:
10561 predep_objects_CXX=
10562 postdep_objects_CXX=
10563 predeps_CXX=
10564 postdeps_CXX=
10565 compiler_lib_search_path_CXX=
10567 # Source file extension for C++ test sources.
10568 ac_ext=cpp
10570 # Object file extension for compiled C++ test sources.
10571 objext=o
10572 objext_CXX=$objext
10574 # Code to be used in simple compile tests
10575 lt_simple_compile_test_code="int some_variable = 0;\n"
10577 # Code to be used in simple link tests
10578 lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
10580 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
10582 # If no C compiler was specified, use CC.
10583 LTCC=${LTCC-"$CC"}
10585 # If no C compiler flags were specified, use CFLAGS.
10586 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10588 # Allow CC to be a program name with arguments.
10589 compiler=$CC
10592 # save warnings/boilerplate of simple test code
10593 ac_outfile=conftest.$ac_objext
10594 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
10595 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10596 _lt_compiler_boilerplate=`cat conftest.err`
10597 $rm conftest*
10599 ac_outfile=conftest.$ac_objext
10600 printf "$lt_simple_link_test_code" >conftest.$ac_ext
10601 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10602 _lt_linker_boilerplate=`cat conftest.err`
10603 $rm conftest*
10606 # Allow CC to be a program name with arguments.
10607 lt_save_CC=$CC
10608 lt_save_LD=$LD
10609 lt_save_GCC=$GCC
10610 GCC=$GXX
10611 lt_save_with_gnu_ld=$with_gnu_ld
10612 lt_save_path_LD=$lt_cv_path_LD
10613 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
10614 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
10615 else
10616 $as_unset lt_cv_prog_gnu_ld
10618 if test -n "${lt_cv_path_LDCXX+set}"; then
10619 lt_cv_path_LD=$lt_cv_path_LDCXX
10620 else
10621 $as_unset lt_cv_path_LD
10623 test -z "${LDCXX+set}" || LD=$LDCXX
10624 CC=${CXX-"c++"}
10625 compiler=$CC
10626 compiler_CXX=$CC
10627 for cc_temp in $compiler""; do
10628 case $cc_temp in
10629 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10630 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10631 \-*) ;;
10632 *) break;;
10633 esac
10634 done
10635 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
10638 # We don't want -fno-exception wen compiling C++ code, so set the
10639 # no_builtin_flag separately
10640 if test "$GXX" = yes; then
10641 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
10642 else
10643 lt_prog_compiler_no_builtin_flag_CXX=
10646 if test "$GXX" = yes; then
10647 # Set up default GNU C++ configuration
10650 # Check whether --with-gnu-ld was given.
10651 if test "${with_gnu_ld+set}" = set; then
10652 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
10653 else
10654 with_gnu_ld=no
10657 ac_prog=ld
10658 if test "$GCC" = yes; then
10659 # Check if gcc -print-prog-name=ld gives a path.
10660 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
10661 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
10662 case $host in
10663 *-*-mingw*)
10664 # gcc leaves a trailing carriage return which upsets mingw
10665 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10667 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10668 esac
10669 case $ac_prog in
10670 # Accept absolute paths.
10671 [\\/]* | ?:[\\/]*)
10672 re_direlt='/[^/][^/]*/\.\./'
10673 # Canonicalize the pathname of ld
10674 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
10675 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10676 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
10677 done
10678 test -z "$LD" && LD="$ac_prog"
10681 # If it fails, then pretend we aren't using GCC.
10682 ac_prog=ld
10685 # If it is relative, then search for the first ld in PATH.
10686 with_gnu_ld=unknown
10688 esac
10689 elif test "$with_gnu_ld" = yes; then
10690 { echo "$as_me:$LINENO: checking for GNU ld" >&5
10691 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
10692 else
10693 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10694 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
10696 if test "${lt_cv_path_LD+set}" = set; then
10697 echo $ECHO_N "(cached) $ECHO_C" >&6
10698 else
10699 if test -z "$LD"; then
10700 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10701 for ac_dir in $PATH; do
10702 IFS="$lt_save_ifs"
10703 test -z "$ac_dir" && ac_dir=.
10704 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10705 lt_cv_path_LD="$ac_dir/$ac_prog"
10706 # Check to see if the program is GNU ld. I'd rather use --version,
10707 # but apparently some variants of GNU ld only accept -v.
10708 # Break only if it was the GNU/non-GNU ld that we prefer.
10709 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10710 *GNU* | *'with BFD'*)
10711 test "$with_gnu_ld" != no && break
10714 test "$with_gnu_ld" != yes && break
10716 esac
10718 done
10719 IFS="$lt_save_ifs"
10720 else
10721 lt_cv_path_LD="$LD" # Let the user override the test with a path.
10725 LD="$lt_cv_path_LD"
10726 if test -n "$LD"; then
10727 { echo "$as_me:$LINENO: result: $LD" >&5
10728 echo "${ECHO_T}$LD" >&6; }
10729 else
10730 { echo "$as_me:$LINENO: result: no" >&5
10731 echo "${ECHO_T}no" >&6; }
10733 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10734 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10735 { (exit 1); exit 1; }; }
10736 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10737 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
10738 if test "${lt_cv_prog_gnu_ld+set}" = set; then
10739 echo $ECHO_N "(cached) $ECHO_C" >&6
10740 else
10741 # I'd rather use --version here, but apparently some GNU lds only accept -v.
10742 case `$LD -v 2>&1 </dev/null` in
10743 *GNU* | *'with BFD'*)
10744 lt_cv_prog_gnu_ld=yes
10747 lt_cv_prog_gnu_ld=no
10749 esac
10751 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
10752 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
10753 with_gnu_ld=$lt_cv_prog_gnu_ld
10757 # Check if GNU C++ uses GNU ld as the underlying linker, since the
10758 # archiving commands below assume that GNU ld is being used.
10759 if test "$with_gnu_ld" = yes; then
10760 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10761 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'
10763 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10764 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10766 # If archive_cmds runs LD, not CC, wlarc should be empty
10767 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
10768 # investigate it a little bit more. (MM)
10769 wlarc='${wl}'
10771 # ancient GNU ld didn't support --whole-archive et. al.
10772 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
10773 grep 'no-whole-archive' > /dev/null; then
10774 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10775 else
10776 whole_archive_flag_spec_CXX=
10778 else
10779 with_gnu_ld=no
10780 wlarc=
10782 # A generic and very simple default shared library creation
10783 # command for GNU C++ for the case where it uses the native
10784 # linker, instead of GNU ld. If possible, this setting should
10785 # overridden to take advantage of the native linker features on
10786 # the platform it is being used on.
10787 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10790 # Commands to make compiler produce verbose output that lists
10791 # what "hidden" libraries, object files and flags are used when
10792 # linking a shared library.
10793 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10795 else
10796 GXX=no
10797 with_gnu_ld=no
10798 wlarc=
10801 # PORTME: fill in a description of your system's C++ link characteristics
10802 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10803 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
10804 ld_shlibs_CXX=yes
10805 case $host_os in
10806 aix3*)
10807 # FIXME: insert proper C++ library support
10808 ld_shlibs_CXX=no
10810 aix4* | aix5*)
10811 if test "$host_cpu" = ia64; then
10812 # On IA64, the linker does run time linking by default, so we don't
10813 # have to do anything special.
10814 aix_use_runtimelinking=no
10815 exp_sym_flag='-Bexport'
10816 no_entry_flag=""
10817 else
10818 aix_use_runtimelinking=no
10820 # Test if we are trying to use run time linking or normal
10821 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10822 # need to do runtime linking.
10823 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
10824 for ld_flag in $LDFLAGS; do
10825 case $ld_flag in
10826 *-brtl*)
10827 aix_use_runtimelinking=yes
10828 break
10830 esac
10831 done
10833 esac
10835 exp_sym_flag='-bexport'
10836 no_entry_flag='-bnoentry'
10839 # When large executables or shared objects are built, AIX ld can
10840 # have problems creating the table of contents. If linking a library
10841 # or program results in "error TOC overflow" add -mminimal-toc to
10842 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10843 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10845 archive_cmds_CXX=''
10846 hardcode_direct_CXX=yes
10847 hardcode_libdir_separator_CXX=':'
10848 link_all_deplibs_CXX=yes
10850 if test "$GXX" = yes; then
10851 case $host_os in aix4.[012]|aix4.[012].*)
10852 # We only want to do this on AIX 4.2 and lower, the check
10853 # below for broken collect2 doesn't work under 4.3+
10854 collect2name=`${CC} -print-prog-name=collect2`
10855 if test -f "$collect2name" && \
10856 strings "$collect2name" | grep resolve_lib_name >/dev/null
10857 then
10858 # We have reworked collect2
10859 hardcode_direct_CXX=yes
10860 else
10861 # We have old collect2
10862 hardcode_direct_CXX=unsupported
10863 # It fails to find uninstalled libraries when the uninstalled
10864 # path is not listed in the libpath. Setting hardcode_minus_L
10865 # to unsupported forces relinking
10866 hardcode_minus_L_CXX=yes
10867 hardcode_libdir_flag_spec_CXX='-L$libdir'
10868 hardcode_libdir_separator_CXX=
10871 esac
10872 shared_flag='-shared'
10873 if test "$aix_use_runtimelinking" = yes; then
10874 shared_flag="$shared_flag "'${wl}-G'
10876 else
10877 # not using gcc
10878 if test "$host_cpu" = ia64; then
10879 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10880 # chokes on -Wl,-G. The following line is correct:
10881 shared_flag='-G'
10882 else
10883 if test "$aix_use_runtimelinking" = yes; then
10884 shared_flag='${wl}-G'
10885 else
10886 shared_flag='${wl}-bM:SRE'
10891 # It seems that -bexpall does not export symbols beginning with
10892 # underscore (_), so it is better to generate a list of symbols to export.
10893 always_export_symbols_CXX=yes
10894 if test "$aix_use_runtimelinking" = yes; then
10895 # Warning - without using the other runtime loading flags (-brtl),
10896 # -berok will link without error, but may produce a broken library.
10897 allow_undefined_flag_CXX='-berok'
10898 # Determine the default libpath from the value encoded in an empty executable.
10899 cat >conftest.$ac_ext <<_ACEOF
10900 /* confdefs.h. */
10901 _ACEOF
10902 cat confdefs.h >>conftest.$ac_ext
10903 cat >>conftest.$ac_ext <<_ACEOF
10904 /* end confdefs.h. */
10907 main ()
10911 return 0;
10913 _ACEOF
10914 rm -f conftest.$ac_objext conftest$ac_exeext
10915 if { (ac_try="$ac_link"
10916 case "(($ac_try" in
10917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10918 *) ac_try_echo=$ac_try;;
10919 esac
10920 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10921 (eval "$ac_link") 2>conftest.er1
10922 ac_status=$?
10923 grep -v '^ *+' conftest.er1 >conftest.err
10924 rm -f conftest.er1
10925 cat conftest.err >&5
10926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10927 (exit $ac_status); } && {
10928 test -z "$ac_cxx_werror_flag" ||
10929 test ! -s conftest.err
10930 } && test -s conftest$ac_exeext &&
10931 $as_test_x conftest$ac_exeext; then
10933 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10935 # Check for a 64-bit object if we didn't find anything.
10936 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10937 }'`; fi
10938 else
10939 echo "$as_me: failed program was:" >&5
10940 sed 's/^/| /' conftest.$ac_ext >&5
10945 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10946 conftest$ac_exeext conftest.$ac_ext
10947 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10949 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10951 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"
10952 else
10953 if test "$host_cpu" = ia64; then
10954 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
10955 allow_undefined_flag_CXX="-z nodefs"
10956 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"
10957 else
10958 # Determine the default libpath from the value encoded in an empty executable.
10959 cat >conftest.$ac_ext <<_ACEOF
10960 /* confdefs.h. */
10961 _ACEOF
10962 cat confdefs.h >>conftest.$ac_ext
10963 cat >>conftest.$ac_ext <<_ACEOF
10964 /* end confdefs.h. */
10967 main ()
10971 return 0;
10973 _ACEOF
10974 rm -f conftest.$ac_objext conftest$ac_exeext
10975 if { (ac_try="$ac_link"
10976 case "(($ac_try" in
10977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10978 *) ac_try_echo=$ac_try;;
10979 esac
10980 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10981 (eval "$ac_link") 2>conftest.er1
10982 ac_status=$?
10983 grep -v '^ *+' conftest.er1 >conftest.err
10984 rm -f conftest.er1
10985 cat conftest.err >&5
10986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10987 (exit $ac_status); } && {
10988 test -z "$ac_cxx_werror_flag" ||
10989 test ! -s conftest.err
10990 } && test -s conftest$ac_exeext &&
10991 $as_test_x conftest$ac_exeext; then
10993 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10995 # Check for a 64-bit object if we didn't find anything.
10996 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10997 }'`; fi
10998 else
10999 echo "$as_me: failed program was:" >&5
11000 sed 's/^/| /' conftest.$ac_ext >&5
11005 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11006 conftest$ac_exeext conftest.$ac_ext
11007 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11009 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11010 # Warning - without using the other run time loading flags,
11011 # -berok will link without error, but may produce a broken library.
11012 no_undefined_flag_CXX=' ${wl}-bernotok'
11013 allow_undefined_flag_CXX=' ${wl}-berok'
11014 # Exported symbols can be pulled into shared objects from archives
11015 whole_archive_flag_spec_CXX='$convenience'
11016 archive_cmds_need_lc_CXX=yes
11017 # This is similar to how AIX traditionally builds its shared libraries.
11018 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'
11023 beos*)
11024 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11025 allow_undefined_flag_CXX=unsupported
11026 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11027 # support --undefined. This deserves some investigation. FIXME
11028 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11029 else
11030 ld_shlibs_CXX=no
11034 chorus*)
11035 case $cc_basename in
11037 # FIXME: insert proper C++ library support
11038 ld_shlibs_CXX=no
11040 esac
11043 cygwin* | mingw* | pw32*)
11044 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11045 # as there is no search path for DLLs.
11046 hardcode_libdir_flag_spec_CXX='-L$libdir'
11047 allow_undefined_flag_CXX=unsupported
11048 always_export_symbols_CXX=no
11049 enable_shared_with_static_runtimes_CXX=yes
11051 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11052 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'
11053 # If the export-symbols file already is a .def file (1st line
11054 # is EXPORTS), use it as is; otherwise, prepend...
11055 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11056 cp $export_symbols $output_objdir/$soname.def;
11057 else
11058 echo EXPORTS > $output_objdir/$soname.def;
11059 cat $export_symbols >> $output_objdir/$soname.def;
11061 $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'
11062 else
11063 ld_shlibs_CXX=no
11066 darwin* | rhapsody*)
11067 case $host_os in
11068 rhapsody* | darwin1.[012])
11069 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
11071 *) # Darwin 1.3 on
11072 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
11073 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11074 else
11075 case ${MACOSX_DEPLOYMENT_TARGET} in
11076 10.[012])
11077 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11079 10.*)
11080 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
11082 esac
11085 esac
11086 archive_cmds_need_lc_CXX=no
11087 hardcode_direct_CXX=no
11088 hardcode_automatic_CXX=yes
11089 hardcode_shlibpath_var_CXX=unsupported
11090 whole_archive_flag_spec_CXX=''
11091 link_all_deplibs_CXX=yes
11093 if test "$GXX" = yes ; then
11094 lt_int_apple_cc_single_mod=no
11095 output_verbose_link_cmd='echo'
11096 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
11097 lt_int_apple_cc_single_mod=yes
11099 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11100 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
11101 else
11102 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'
11104 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11105 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11106 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11107 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}'
11108 else
11109 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}'
11111 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}'
11112 else
11113 case $cc_basename in
11114 xlc*)
11115 output_verbose_link_cmd='echo'
11116 archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
11117 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11118 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11119 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11120 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}'
11123 ld_shlibs_CXX=no
11125 esac
11129 dgux*)
11130 case $cc_basename in
11131 ec++*)
11132 # FIXME: insert proper C++ library support
11133 ld_shlibs_CXX=no
11135 ghcx*)
11136 # Green Hills C++ Compiler
11137 # FIXME: insert proper C++ library support
11138 ld_shlibs_CXX=no
11141 # FIXME: insert proper C++ library support
11142 ld_shlibs_CXX=no
11144 esac
11146 freebsd[12]*)
11147 # C++ shared libraries reported to be fairly broken before switch to ELF
11148 ld_shlibs_CXX=no
11150 freebsd-elf*)
11151 archive_cmds_need_lc_CXX=no
11153 freebsd* | kfreebsd*-gnu | dragonfly*)
11154 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11155 # conventions
11156 ld_shlibs_CXX=yes
11158 gnu*)
11160 hpux9*)
11161 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11162 hardcode_libdir_separator_CXX=:
11163 export_dynamic_flag_spec_CXX='${wl}-E'
11164 hardcode_direct_CXX=yes
11165 hardcode_minus_L_CXX=yes # Not in the search PATH,
11166 # but as the default
11167 # location of the library.
11169 case $cc_basename in
11170 CC*)
11171 # FIXME: insert proper C++ library support
11172 ld_shlibs_CXX=no
11174 aCC*)
11175 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'
11176 # Commands to make compiler produce verbose output that lists
11177 # what "hidden" libraries, object files and flags are used when
11178 # linking a shared library.
11180 # There doesn't appear to be a way to prevent this compiler from
11181 # explicitly linking system object files so we need to strip them
11182 # from the output so that they don't get included in the library
11183 # dependencies.
11184 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'
11187 if test "$GXX" = yes; then
11188 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'
11189 else
11190 # FIXME: insert proper C++ library support
11191 ld_shlibs_CXX=no
11194 esac
11196 hpux10*|hpux11*)
11197 if test $with_gnu_ld = no; then
11198 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11199 hardcode_libdir_separator_CXX=:
11201 case $host_cpu in
11202 hppa*64*|ia64*)
11203 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
11206 export_dynamic_flag_spec_CXX='${wl}-E'
11208 esac
11210 case $host_cpu in
11211 hppa*64*|ia64*)
11212 hardcode_direct_CXX=no
11213 hardcode_shlibpath_var_CXX=no
11216 hardcode_direct_CXX=yes
11217 hardcode_minus_L_CXX=yes # Not in the search PATH,
11218 # but as the default
11219 # location of the library.
11221 esac
11223 case $cc_basename in
11224 CC*)
11225 # FIXME: insert proper C++ library support
11226 ld_shlibs_CXX=no
11228 aCC*)
11229 case $host_cpu in
11230 hppa*64*)
11231 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11233 ia64*)
11234 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11237 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11239 esac
11240 # Commands to make compiler produce verbose output that lists
11241 # what "hidden" libraries, object files and flags are used when
11242 # linking a shared library.
11244 # There doesn't appear to be a way to prevent this compiler from
11245 # explicitly linking system object files so we need to strip them
11246 # from the output so that they don't get included in the library
11247 # dependencies.
11248 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'
11251 if test "$GXX" = yes; then
11252 if test $with_gnu_ld = no; then
11253 case $host_cpu in
11254 hppa*64*)
11255 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11257 ia64*)
11258 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11261 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'
11263 esac
11265 else
11266 # FIXME: insert proper C++ library support
11267 ld_shlibs_CXX=no
11270 esac
11272 interix3*)
11273 hardcode_direct_CXX=no
11274 hardcode_shlibpath_var_CXX=no
11275 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11276 export_dynamic_flag_spec_CXX='${wl}-E'
11277 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11278 # Instead, shared libraries are loaded at an image base (0x10000000 by
11279 # default) and relocated if they conflict, which is a slow very memory
11280 # consuming and fragmenting process. To avoid this, we pick a random,
11281 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11282 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
11283 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'
11284 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'
11286 irix5* | irix6*)
11287 case $cc_basename in
11288 CC*)
11289 # SGI C++
11290 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'
11292 # Archives containing C++ object files must be created using
11293 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
11294 # necessary to make sure instantiated templates are included
11295 # in the archive.
11296 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11299 if test "$GXX" = yes; then
11300 if test "$with_gnu_ld" = no; then
11301 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'
11302 else
11303 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'
11306 link_all_deplibs_CXX=yes
11308 esac
11309 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11310 hardcode_libdir_separator_CXX=:
11312 linux*)
11313 case $cc_basename in
11314 KCC*)
11315 # Kuck and Associates, Inc. (KAI) C++ Compiler
11317 # KCC will only create a shared library if the output file
11318 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11319 # to its proper name (with version) after linking.
11320 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'
11321 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'
11322 # Commands to make compiler produce verbose output that lists
11323 # what "hidden" libraries, object files and flags are used when
11324 # linking a shared library.
11326 # There doesn't appear to be a way to prevent this compiler from
11327 # explicitly linking system object files so we need to strip them
11328 # from the output so that they don't get included in the library
11329 # dependencies.
11330 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'
11332 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
11333 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11335 # Archives containing C++ object files must be created using
11336 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11337 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11339 icpc*)
11340 # Intel C++
11341 with_gnu_ld=yes
11342 # version 8.0 and above of icpc choke on multiply defined symbols
11343 # if we add $predep_objects and $postdep_objects, however 7.1 and
11344 # earlier do not add the objects themselves.
11345 case `$CC -V 2>&1` in
11346 *"Version 7."*)
11347 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11348 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'
11350 *) # Version 8.0 or newer
11351 tmp_idyn=
11352 case $host_cpu in
11353 ia64*) tmp_idyn=' -i_dynamic';;
11354 esac
11355 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11356 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'
11358 esac
11359 archive_cmds_need_lc_CXX=no
11360 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11361 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11362 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11364 pgCC*)
11365 # Portland Group C++ compiler
11366 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
11367 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'
11369 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11370 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11371 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'
11373 cxx*)
11374 # Compaq C++
11375 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11376 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'
11378 runpath_var=LD_RUN_PATH
11379 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11380 hardcode_libdir_separator_CXX=:
11382 # Commands to make compiler produce verbose output that lists
11383 # what "hidden" libraries, object files and flags are used when
11384 # linking a shared library.
11386 # There doesn't appear to be a way to prevent this compiler from
11387 # explicitly linking system object files so we need to strip them
11388 # from the output so that they don't get included in the library
11389 # dependencies.
11390 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'
11392 esac
11394 lynxos*)
11395 # FIXME: insert proper C++ library support
11396 ld_shlibs_CXX=no
11398 m88k*)
11399 # FIXME: insert proper C++ library support
11400 ld_shlibs_CXX=no
11402 mvs*)
11403 case $cc_basename in
11404 cxx*)
11405 # FIXME: insert proper C++ library support
11406 ld_shlibs_CXX=no
11409 # FIXME: insert proper C++ library support
11410 ld_shlibs_CXX=no
11412 esac
11414 netbsd*)
11415 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11416 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
11417 wlarc=
11418 hardcode_libdir_flag_spec_CXX='-R$libdir'
11419 hardcode_direct_CXX=yes
11420 hardcode_shlibpath_var_CXX=no
11422 # Workaround some broken pre-1.5 toolchains
11423 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
11425 openbsd2*)
11426 # C++ shared libraries are fairly broken
11427 ld_shlibs_CXX=no
11429 openbsd*)
11430 hardcode_direct_CXX=yes
11431 hardcode_shlibpath_var_CXX=no
11432 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11433 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11434 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11435 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
11436 export_dynamic_flag_spec_CXX='${wl}-E'
11437 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11439 output_verbose_link_cmd='echo'
11441 osf3*)
11442 case $cc_basename in
11443 KCC*)
11444 # Kuck and Associates, Inc. (KAI) C++ Compiler
11446 # KCC will only create a shared library if the output file
11447 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11448 # to its proper name (with version) after linking.
11449 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'
11451 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11452 hardcode_libdir_separator_CXX=:
11454 # Archives containing C++ object files must be created using
11455 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11456 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11459 RCC*)
11460 # Rational C++ 2.4.1
11461 # FIXME: insert proper C++ library support
11462 ld_shlibs_CXX=no
11464 cxx*)
11465 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11466 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'
11468 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11469 hardcode_libdir_separator_CXX=:
11471 # Commands to make compiler produce verbose output that lists
11472 # what "hidden" libraries, object files and flags are used when
11473 # linking a shared library.
11475 # There doesn't appear to be a way to prevent this compiler from
11476 # explicitly linking system object files so we need to strip them
11477 # from the output so that they don't get included in the library
11478 # dependencies.
11479 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'
11482 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11483 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11484 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'
11486 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11487 hardcode_libdir_separator_CXX=:
11489 # Commands to make compiler produce verbose output that lists
11490 # what "hidden" libraries, object files and flags are used when
11491 # linking a shared library.
11492 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11494 else
11495 # FIXME: insert proper C++ library support
11496 ld_shlibs_CXX=no
11499 esac
11501 osf4* | osf5*)
11502 case $cc_basename in
11503 KCC*)
11504 # Kuck and Associates, Inc. (KAI) C++ Compiler
11506 # KCC will only create a shared library if the output file
11507 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11508 # to its proper name (with version) after linking.
11509 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'
11511 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11512 hardcode_libdir_separator_CXX=:
11514 # Archives containing C++ object files must be created using
11515 # the KAI C++ compiler.
11516 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
11518 RCC*)
11519 # Rational C++ 2.4.1
11520 # FIXME: insert proper C++ library support
11521 ld_shlibs_CXX=no
11523 cxx*)
11524 allow_undefined_flag_CXX=' -expect_unresolved \*'
11525 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'
11526 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
11527 echo "-hidden">> $lib.exp~
11528 $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~
11529 $rm $lib.exp'
11531 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11532 hardcode_libdir_separator_CXX=:
11534 # Commands to make compiler produce verbose output that lists
11535 # what "hidden" libraries, object files and flags are used when
11536 # linking a shared library.
11538 # There doesn't appear to be a way to prevent this compiler from
11539 # explicitly linking system object files so we need to strip them
11540 # from the output so that they don't get included in the library
11541 # dependencies.
11542 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'
11545 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11546 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11547 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'
11549 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11550 hardcode_libdir_separator_CXX=:
11552 # Commands to make compiler produce verbose output that lists
11553 # what "hidden" libraries, object files and flags are used when
11554 # linking a shared library.
11555 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11557 else
11558 # FIXME: insert proper C++ library support
11559 ld_shlibs_CXX=no
11562 esac
11564 psos*)
11565 # FIXME: insert proper C++ library support
11566 ld_shlibs_CXX=no
11568 sunos4*)
11569 case $cc_basename in
11570 CC*)
11571 # Sun C++ 4.x
11572 # FIXME: insert proper C++ library support
11573 ld_shlibs_CXX=no
11575 lcc*)
11576 # Lucid
11577 # FIXME: insert proper C++ library support
11578 ld_shlibs_CXX=no
11581 # FIXME: insert proper C++ library support
11582 ld_shlibs_CXX=no
11584 esac
11586 solaris*)
11587 case $cc_basename in
11588 CC*)
11589 # Sun C++ 4.2, 5.x and Centerline C++
11590 archive_cmds_need_lc_CXX=yes
11591 no_undefined_flag_CXX=' -zdefs'
11592 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11593 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11594 $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'
11596 hardcode_libdir_flag_spec_CXX='-R$libdir'
11597 hardcode_shlibpath_var_CXX=no
11598 case $host_os in
11599 solaris2.[0-5] | solaris2.[0-5].*) ;;
11601 # The C++ compiler is used as linker so we must use $wl
11602 # flag to pass the commands to the underlying system
11603 # linker. We must also pass each convience library through
11604 # to the system linker between allextract/defaultextract.
11605 # The C++ compiler will combine linker options so we
11606 # cannot just pass the convience library names through
11607 # without $wl.
11608 # Supported since Solaris 2.6 (maybe 2.5.1?)
11609 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract'
11611 esac
11612 link_all_deplibs_CXX=yes
11614 output_verbose_link_cmd='echo'
11616 # Archives containing C++ object files must be created using
11617 # "CC -xar", where "CC" is the Sun C++ compiler. This is
11618 # necessary to make sure instantiated templates are included
11619 # in the archive.
11620 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11622 gcx*)
11623 # Green Hills C++ Compiler
11624 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11626 # The C++ compiler must be used to create the archive.
11627 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
11630 # GNU C++ compiler with Solaris linker
11631 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11632 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
11633 if $CC --version | grep -v '^2\.7' > /dev/null; then
11634 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11635 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11636 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11638 # Commands to make compiler produce verbose output that lists
11639 # what "hidden" libraries, object files and flags are used when
11640 # linking a shared library.
11641 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11642 else
11643 # g++ 2.7 appears to require `-G' NOT `-shared' on this
11644 # platform.
11645 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11646 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11647 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11649 # Commands to make compiler produce verbose output that lists
11650 # what "hidden" libraries, object files and flags are used when
11651 # linking a shared library.
11652 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11655 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
11658 esac
11660 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11661 no_undefined_flag_CXX='${wl}-z,text'
11662 archive_cmds_need_lc_CXX=no
11663 hardcode_shlibpath_var_CXX=no
11664 runpath_var='LD_RUN_PATH'
11666 case $cc_basename in
11667 CC*)
11668 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11669 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11672 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11673 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11675 esac
11677 sysv5* | sco3.2v5* | sco5v6*)
11678 # Note: We can NOT use -z defs as we might desire, because we do not
11679 # link with -lc, and that would cause any symbols used from libc to
11680 # always be unresolved, which means just about no library would
11681 # ever link correctly. If we're not using GNU ld we use -z text
11682 # though, which does catch some bad symbols but isn't as heavy-handed
11683 # as -z defs.
11684 # For security reasons, it is highly recommended that you always
11685 # use absolute paths for naming shared libraries, and exclude the
11686 # DT_RUNPATH tag from executables and libraries. But doing so
11687 # requires that you compile everything twice, which is a pain.
11688 # So that behaviour is only enabled if SCOABSPATH is set to a
11689 # non-empty value in the environment. Most likely only useful for
11690 # creating official distributions of packages.
11691 # This is a hack until libtool officially supports absolute path
11692 # names for shared libraries.
11693 no_undefined_flag_CXX='${wl}-z,text'
11694 allow_undefined_flag_CXX='${wl}-z,nodefs'
11695 archive_cmds_need_lc_CXX=no
11696 hardcode_shlibpath_var_CXX=no
11697 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
11698 hardcode_libdir_separator_CXX=':'
11699 link_all_deplibs_CXX=yes
11700 export_dynamic_flag_spec_CXX='${wl}-Bexport'
11701 runpath_var='LD_RUN_PATH'
11703 case $cc_basename in
11704 CC*)
11705 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11706 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11709 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11710 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11712 esac
11714 tandem*)
11715 case $cc_basename in
11716 NCC*)
11717 # NonStop-UX NCC 3.20
11718 # FIXME: insert proper C++ library support
11719 ld_shlibs_CXX=no
11722 # FIXME: insert proper C++ library support
11723 ld_shlibs_CXX=no
11725 esac
11727 vxworks*)
11728 # FIXME: insert proper C++ library support
11729 ld_shlibs_CXX=no
11732 # FIXME: insert proper C++ library support
11733 ld_shlibs_CXX=no
11735 esac
11736 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11737 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
11738 test "$ld_shlibs_CXX" = no && can_build_shared=no
11740 GCC_CXX="$GXX"
11741 LD_CXX="$LD"
11744 cat > conftest.$ac_ext <<EOF
11745 class Foo
11747 public:
11748 Foo (void) { a = 0; }
11749 private:
11750 int a;
11754 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11755 (eval $ac_compile) 2>&5
11756 ac_status=$?
11757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11758 (exit $ac_status); }; then
11759 # Parse the compiler output and extract the necessary
11760 # objects, libraries and library flags.
11762 # Sentinel used to keep track of whether or not we are before
11763 # the conftest object file.
11764 pre_test_object_deps_done=no
11766 # The `*' in the case matches for architectures that use `case' in
11767 # $output_verbose_cmd can trigger glob expansion during the loop
11768 # eval without this substitution.
11769 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
11771 for p in `eval $output_verbose_link_cmd`; do
11772 case $p in
11774 -L* | -R* | -l*)
11775 # Some compilers place space between "-{L,R}" and the path.
11776 # Remove the space.
11777 if test $p = "-L" \
11778 || test $p = "-R"; then
11779 prev=$p
11780 continue
11781 else
11782 prev=
11785 if test "$pre_test_object_deps_done" = no; then
11786 case $p in
11787 -L* | -R*)
11788 # Internal compiler library paths should come after those
11789 # provided the user. The postdeps already come after the
11790 # user supplied libs so there is no need to process them.
11791 if test -z "$compiler_lib_search_path_CXX"; then
11792 compiler_lib_search_path_CXX="${prev}${p}"
11793 else
11794 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
11797 # The "-l" case would never come before the object being
11798 # linked, so don't bother handling this case.
11799 esac
11800 else
11801 if test -z "$postdeps_CXX"; then
11802 postdeps_CXX="${prev}${p}"
11803 else
11804 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
11809 *.$objext)
11810 # This assumes that the test object file only shows up
11811 # once in the compiler output.
11812 if test "$p" = "conftest.$objext"; then
11813 pre_test_object_deps_done=yes
11814 continue
11817 if test "$pre_test_object_deps_done" = no; then
11818 if test -z "$predep_objects_CXX"; then
11819 predep_objects_CXX="$p"
11820 else
11821 predep_objects_CXX="$predep_objects_CXX $p"
11823 else
11824 if test -z "$postdep_objects_CXX"; then
11825 postdep_objects_CXX="$p"
11826 else
11827 postdep_objects_CXX="$postdep_objects_CXX $p"
11832 *) ;; # Ignore the rest.
11834 esac
11835 done
11837 # Clean up.
11838 rm -f a.out a.exe
11839 else
11840 echo "libtool.m4: error: problem compiling CXX test program"
11843 $rm -f confest.$objext
11845 # PORTME: override above test on systems where it is broken
11846 case $host_os in
11847 interix3*)
11848 # Interix 3.5 installs completely hosed .la files for C++, so rather than
11849 # hack all around it, let's just trust "g++" to DTRT.
11850 predep_objects_CXX=
11851 postdep_objects_CXX=
11852 postdeps_CXX=
11855 solaris*)
11856 case $cc_basename in
11857 CC*)
11858 # Adding this requires a known-good setup of shared libraries for
11859 # Sun compiler versions before 5.6, else PIC objects from an old
11860 # archive will be linked into the output, leading to subtle bugs.
11861 postdeps_CXX='-lCstd -lCrun'
11863 esac
11865 esac
11868 case " $postdeps_CXX " in
11869 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
11870 esac
11872 lt_prog_compiler_wl_CXX=
11873 lt_prog_compiler_pic_CXX=
11874 lt_prog_compiler_static_CXX=
11876 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
11877 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
11879 # C++ specific cases for pic, static, wl, etc.
11880 if test "$GXX" = yes; then
11881 lt_prog_compiler_wl_CXX='-Wl,'
11882 lt_prog_compiler_static_CXX='-static'
11884 case $host_os in
11885 aix*)
11886 # All AIX code is PIC.
11887 if test "$host_cpu" = ia64; then
11888 # AIX 5 now supports IA64 processor
11889 lt_prog_compiler_static_CXX='-Bstatic'
11892 amigaos*)
11893 # FIXME: we need at least 68020 code to build shared libraries, but
11894 # adding the `-m68020' flag to GCC prevents building anything better,
11895 # like `-m68040'.
11896 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
11898 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11899 # PIC is the default for these OSes.
11901 mingw* | os2* | pw32*)
11902 # This hack is so that the source file can tell whether it is being
11903 # built for inclusion in a dll (and should export symbols for example).
11904 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
11906 darwin* | rhapsody*)
11907 # PIC is the default on this platform
11908 # Common symbols not allowed in MH_DYLIB files
11909 lt_prog_compiler_pic_CXX='-fno-common'
11911 *djgpp*)
11912 # DJGPP does not support shared libraries at all
11913 lt_prog_compiler_pic_CXX=
11915 interix3*)
11916 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
11917 # Instead, we relocate shared libraries at runtime.
11919 sysv4*MP*)
11920 if test -d /usr/nec; then
11921 lt_prog_compiler_pic_CXX=-Kconform_pic
11924 hpux*)
11925 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11926 # not for PA HP-UX.
11927 case $host_cpu in
11928 hppa*64*|ia64*)
11931 lt_prog_compiler_pic_CXX='-fPIC'
11933 esac
11936 lt_prog_compiler_pic_CXX='-fPIC'
11938 esac
11939 else
11940 case $host_os in
11941 aix4* | aix5*)
11942 # All AIX code is PIC.
11943 if test "$host_cpu" = ia64; then
11944 # AIX 5 now supports IA64 processor
11945 lt_prog_compiler_static_CXX='-Bstatic'
11946 else
11947 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
11950 chorus*)
11951 case $cc_basename in
11952 cxch68*)
11953 # Green Hills C++ Compiler
11954 # _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"
11956 esac
11958 darwin*)
11959 # PIC is the default on this platform
11960 # Common symbols not allowed in MH_DYLIB files
11961 case $cc_basename in
11962 xlc*)
11963 lt_prog_compiler_pic_CXX='-qnocommon'
11964 lt_prog_compiler_wl_CXX='-Wl,'
11966 esac
11968 dgux*)
11969 case $cc_basename in
11970 ec++*)
11971 lt_prog_compiler_pic_CXX='-KPIC'
11973 ghcx*)
11974 # Green Hills C++ Compiler
11975 lt_prog_compiler_pic_CXX='-pic'
11979 esac
11981 freebsd* | kfreebsd*-gnu | dragonfly*)
11982 # FreeBSD uses GNU C++
11984 hpux9* | hpux10* | hpux11*)
11985 case $cc_basename in
11986 CC*)
11987 lt_prog_compiler_wl_CXX='-Wl,'
11988 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
11989 if test "$host_cpu" != ia64; then
11990 lt_prog_compiler_pic_CXX='+Z'
11993 aCC*)
11994 lt_prog_compiler_wl_CXX='-Wl,'
11995 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
11996 case $host_cpu in
11997 hppa*64*|ia64*)
11998 # +Z the default
12001 lt_prog_compiler_pic_CXX='+Z'
12003 esac
12007 esac
12009 interix*)
12010 # This is c89, which is MS Visual C++ (no shared libs)
12011 # Anyone wants to do a port?
12013 irix5* | irix6* | nonstopux*)
12014 case $cc_basename in
12015 CC*)
12016 lt_prog_compiler_wl_CXX='-Wl,'
12017 lt_prog_compiler_static_CXX='-non_shared'
12018 # CC pic flag -KPIC is the default.
12022 esac
12024 linux*)
12025 case $cc_basename in
12026 KCC*)
12027 # KAI C++ Compiler
12028 lt_prog_compiler_wl_CXX='--backend -Wl,'
12029 lt_prog_compiler_pic_CXX='-fPIC'
12031 icpc* | ecpc*)
12032 # Intel C++
12033 lt_prog_compiler_wl_CXX='-Wl,'
12034 lt_prog_compiler_pic_CXX='-KPIC'
12035 lt_prog_compiler_static_CXX='-static'
12037 pgCC*)
12038 # Portland Group C++ compiler.
12039 lt_prog_compiler_wl_CXX='-Wl,'
12040 lt_prog_compiler_pic_CXX='-fpic'
12041 lt_prog_compiler_static_CXX='-Bstatic'
12043 cxx*)
12044 # Compaq C++
12045 # Make sure the PIC flag is empty. It appears that all Alpha
12046 # Linux and Compaq Tru64 Unix objects are PIC.
12047 lt_prog_compiler_pic_CXX=
12048 lt_prog_compiler_static_CXX='-non_shared'
12052 esac
12054 lynxos*)
12056 m88k*)
12058 mvs*)
12059 case $cc_basename in
12060 cxx*)
12061 lt_prog_compiler_pic_CXX='-W c,exportall'
12065 esac
12067 netbsd*)
12069 osf3* | osf4* | osf5*)
12070 case $cc_basename in
12071 KCC*)
12072 lt_prog_compiler_wl_CXX='--backend -Wl,'
12074 RCC*)
12075 # Rational C++ 2.4.1
12076 lt_prog_compiler_pic_CXX='-pic'
12078 cxx*)
12079 # Digital/Compaq C++
12080 lt_prog_compiler_wl_CXX='-Wl,'
12081 # Make sure the PIC flag is empty. It appears that all Alpha
12082 # Linux and Compaq Tru64 Unix objects are PIC.
12083 lt_prog_compiler_pic_CXX=
12084 lt_prog_compiler_static_CXX='-non_shared'
12088 esac
12090 psos*)
12092 solaris*)
12093 case $cc_basename in
12094 CC*)
12095 # Sun C++ 4.2, 5.x and Centerline C++
12096 lt_prog_compiler_pic_CXX='-KPIC'
12097 lt_prog_compiler_static_CXX='-Bstatic'
12098 lt_prog_compiler_wl_CXX='-Qoption ld '
12100 gcx*)
12101 # Green Hills C++ Compiler
12102 lt_prog_compiler_pic_CXX='-PIC'
12106 esac
12108 sunos4*)
12109 case $cc_basename in
12110 CC*)
12111 # Sun C++ 4.x
12112 lt_prog_compiler_pic_CXX='-pic'
12113 lt_prog_compiler_static_CXX='-Bstatic'
12115 lcc*)
12116 # Lucid
12117 lt_prog_compiler_pic_CXX='-pic'
12121 esac
12123 tandem*)
12124 case $cc_basename in
12125 NCC*)
12126 # NonStop-UX NCC 3.20
12127 lt_prog_compiler_pic_CXX='-KPIC'
12131 esac
12133 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12134 case $cc_basename in
12135 CC*)
12136 lt_prog_compiler_wl_CXX='-Wl,'
12137 lt_prog_compiler_pic_CXX='-KPIC'
12138 lt_prog_compiler_static_CXX='-Bstatic'
12140 esac
12142 vxworks*)
12145 lt_prog_compiler_can_build_shared_CXX=no
12147 esac
12150 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
12151 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
12154 # Check to make sure the PIC flag actually works.
12156 if test -n "$lt_prog_compiler_pic_CXX"; then
12158 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12159 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
12160 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
12161 echo $ECHO_N "(cached) $ECHO_C" >&6
12162 else
12163 lt_prog_compiler_pic_works_CXX=no
12164 ac_outfile=conftest.$ac_objext
12165 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12166 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12167 # Insert the option either (1) after the last *FLAGS variable, or
12168 # (2) before a word containing "conftest.", or (3) at the end.
12169 # Note that $ac_compile itself does not contain backslashes and begins
12170 # with a dollar sign (not a hyphen), so the echo should work correctly.
12171 # The option is referenced via a variable to avoid confusing sed.
12172 lt_compile=`echo "$ac_compile" | $SED \
12173 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12174 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12175 -e 's:$: $lt_compiler_flag:'`
12176 (eval echo "\"\$as_me:12176: $lt_compile\"" >&5)
12177 (eval "$lt_compile" 2>conftest.err)
12178 ac_status=$?
12179 cat conftest.err >&5
12180 echo "$as_me:12180: \$? = $ac_status" >&5
12181 if (exit $ac_status) && test -s "$ac_outfile"; then
12182 # The compiler can only warn and ignore the option if not recognized
12183 # So say no if there are warnings other than the usual output.
12184 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12185 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12186 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12187 lt_prog_compiler_pic_works_CXX=yes
12190 $rm conftest*
12193 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
12194 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
12196 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
12197 case $lt_prog_compiler_pic_CXX in
12198 "" | " "*) ;;
12199 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12200 esac
12201 else
12202 lt_prog_compiler_pic_CXX=
12203 lt_prog_compiler_can_build_shared_CXX=no
12207 case $host_os in
12208 # For platforms which do not support PIC, -DPIC is meaningless:
12209 *djgpp*)
12210 lt_prog_compiler_pic_CXX=
12213 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
12215 esac
12218 # Check to make sure the static flag actually works.
12220 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
12221 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12222 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
12223 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
12224 echo $ECHO_N "(cached) $ECHO_C" >&6
12225 else
12226 lt_prog_compiler_static_works_CXX=no
12227 save_LDFLAGS="$LDFLAGS"
12228 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12229 printf "$lt_simple_link_test_code" > conftest.$ac_ext
12230 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12231 # The linker can only warn and ignore the option if not recognized
12232 # So say no if there are warnings
12233 if test -s conftest.err; then
12234 # Append any errors to the config.log.
12235 cat conftest.err 1>&5
12236 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
12237 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12238 if diff conftest.exp conftest.er2 >/dev/null; then
12239 lt_prog_compiler_static_works_CXX=yes
12241 else
12242 lt_prog_compiler_static_works_CXX=yes
12245 $rm conftest*
12246 LDFLAGS="$save_LDFLAGS"
12249 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
12250 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
12252 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
12254 else
12255 lt_prog_compiler_static_CXX=
12259 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12260 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
12261 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
12262 echo $ECHO_N "(cached) $ECHO_C" >&6
12263 else
12264 lt_cv_prog_compiler_c_o_CXX=no
12265 $rm -r conftest 2>/dev/null
12266 mkdir conftest
12267 cd conftest
12268 mkdir out
12269 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12271 lt_compiler_flag="-o out/conftest2.$ac_objext"
12272 # Insert the option either (1) after the last *FLAGS variable, or
12273 # (2) before a word containing "conftest.", or (3) at the end.
12274 # Note that $ac_compile itself does not contain backslashes and begins
12275 # with a dollar sign (not a hyphen), so the echo should work correctly.
12276 lt_compile=`echo "$ac_compile" | $SED \
12277 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12278 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12279 -e 's:$: $lt_compiler_flag:'`
12280 (eval echo "\"\$as_me:12280: $lt_compile\"" >&5)
12281 (eval "$lt_compile" 2>out/conftest.err)
12282 ac_status=$?
12283 cat out/conftest.err >&5
12284 echo "$as_me:12284: \$? = $ac_status" >&5
12285 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12286 then
12287 # The compiler can only warn and ignore the option if not recognized
12288 # So say no if there are warnings
12289 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
12290 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12291 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12292 lt_cv_prog_compiler_c_o_CXX=yes
12295 chmod u+w . 2>&5
12296 $rm conftest*
12297 # SGI C++ compiler will create directory out/ii_files/ for
12298 # template instantiation
12299 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12300 $rm out/* && rmdir out
12301 cd ..
12302 rmdir conftest
12303 $rm conftest*
12306 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
12307 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
12310 hard_links="nottested"
12311 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
12312 # do not overwrite the value of need_locks provided by the user
12313 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12314 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
12315 hard_links=yes
12316 $rm conftest*
12317 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12318 touch conftest.a
12319 ln conftest.a conftest.b 2>&5 || hard_links=no
12320 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12321 { echo "$as_me:$LINENO: result: $hard_links" >&5
12322 echo "${ECHO_T}$hard_links" >&6; }
12323 if test "$hard_links" = no; then
12324 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12325 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12326 need_locks=warn
12328 else
12329 need_locks=no
12332 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12333 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
12335 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12336 case $host_os in
12337 aix4* | aix5*)
12338 # If we're using GNU nm, then we don't want the "-C" option.
12339 # -C means demangle to AIX nm, but means don't demangle with GNU nm
12340 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12341 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'
12342 else
12343 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'
12346 pw32*)
12347 export_symbols_cmds_CXX="$ltdll_cmds"
12349 cygwin* | mingw*)
12350 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'
12353 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12355 esac
12357 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12358 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12359 test "$ld_shlibs_CXX" = no && can_build_shared=no
12362 # Do we need to explicitly link libc?
12364 case "x$archive_cmds_need_lc_CXX" in
12365 x|xyes)
12366 # Assume -lc should be added
12367 archive_cmds_need_lc_CXX=yes
12369 if test "$enable_shared" = yes && test "$GCC" = yes; then
12370 case $archive_cmds_CXX in
12371 *'~'*)
12372 # FIXME: we may have to deal with multi-command sequences.
12374 '$CC '*)
12375 # Test whether the compiler implicitly links with -lc since on some
12376 # systems, -lgcc has to come before -lc. If gcc already passes -lc
12377 # to ld, don't add -lc before -lgcc.
12378 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
12379 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
12380 $rm conftest*
12381 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12383 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12384 (eval $ac_compile) 2>&5
12385 ac_status=$?
12386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12387 (exit $ac_status); } 2>conftest.err; then
12388 soname=conftest
12389 lib=conftest
12390 libobjs=conftest.$ac_objext
12391 deplibs=
12392 wl=$lt_prog_compiler_wl_CXX
12393 pic_flag=$lt_prog_compiler_pic_CXX
12394 compiler_flags=-v
12395 linker_flags=-v
12396 verstring=
12397 output_objdir=.
12398 libname=conftest
12399 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
12400 allow_undefined_flag_CXX=
12401 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
12402 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
12403 ac_status=$?
12404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12405 (exit $ac_status); }
12406 then
12407 archive_cmds_need_lc_CXX=no
12408 else
12409 archive_cmds_need_lc_CXX=yes
12411 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
12412 else
12413 cat conftest.err 1>&5
12415 $rm conftest*
12416 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
12417 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
12419 esac
12422 esac
12424 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
12425 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
12426 library_names_spec=
12427 libname_spec='lib$name'
12428 soname_spec=
12429 shrext_cmds=".so"
12430 postinstall_cmds=
12431 postuninstall_cmds=
12432 finish_cmds=
12433 finish_eval=
12434 shlibpath_var=
12435 shlibpath_overrides_runpath=unknown
12436 version_type=none
12437 dynamic_linker="$host_os ld.so"
12438 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12439 if test "$GCC" = yes; then
12440 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12441 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
12442 # if the path contains ";" then we assume it to be the separator
12443 # otherwise default to the standard path separator (i.e. ":") - it is
12444 # assumed that no part of a normal pathname contains ";" but that should
12445 # okay in the real world where ";" in dirpaths is itself problematic.
12446 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12447 else
12448 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12450 else
12451 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12453 need_lib_prefix=unknown
12454 hardcode_into_libs=no
12456 # when you set need_version to no, make sure it does not cause -set_version
12457 # flags to be left without arguments
12458 need_version=unknown
12460 case $host_os in
12461 aix3*)
12462 version_type=linux
12463 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12464 shlibpath_var=LIBPATH
12466 # AIX 3 has no versioning support, so we append a major version to the name.
12467 soname_spec='${libname}${release}${shared_ext}$major'
12470 aix4* | aix5*)
12471 version_type=linux
12472 need_lib_prefix=no
12473 need_version=no
12474 hardcode_into_libs=yes
12475 if test "$host_cpu" = ia64; then
12476 # AIX 5 supports IA64
12477 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12478 shlibpath_var=LD_LIBRARY_PATH
12479 else
12480 # With GCC up to 2.95.x, collect2 would create an import file
12481 # for dependence libraries. The import file would start with
12482 # the line `#! .'. This would cause the generated library to
12483 # depend on `.', always an invalid library. This was fixed in
12484 # development snapshots of GCC prior to 3.0.
12485 case $host_os in
12486 aix4 | aix4.[01] | aix4.[01].*)
12487 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12488 echo ' yes '
12489 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
12491 else
12492 can_build_shared=no
12495 esac
12496 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12497 # soname into executable. Probably we can add versioning support to
12498 # collect2, so additional links can be useful in future.
12499 if test "$aix_use_runtimelinking" = yes; then
12500 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12501 # instead of lib<name>.a to let people know that these are not
12502 # typical AIX shared libraries.
12503 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12504 else
12505 # We preserve .a as extension for shared libraries through AIX4.2
12506 # and later when we are not doing run time linking.
12507 library_names_spec='${libname}${release}.a $libname.a'
12508 soname_spec='${libname}${release}${shared_ext}$major'
12510 shlibpath_var=LIBPATH
12514 amigaos*)
12515 library_names_spec='$libname.ixlibrary $libname.a'
12516 # Create ${libname}_ixlibrary.a entries in /sys/libs.
12517 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'
12520 beos*)
12521 library_names_spec='${libname}${shared_ext}'
12522 dynamic_linker="$host_os ld.so"
12523 shlibpath_var=LIBRARY_PATH
12526 bsdi[45]*)
12527 version_type=linux
12528 need_version=no
12529 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12530 soname_spec='${libname}${release}${shared_ext}$major'
12531 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12532 shlibpath_var=LD_LIBRARY_PATH
12533 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12534 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12535 # the default ld.so.conf also contains /usr/contrib/lib and
12536 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12537 # libtool to hard-code these into programs
12540 cygwin* | mingw* | pw32*)
12541 version_type=windows
12542 shrext_cmds=".dll"
12543 need_version=no
12544 need_lib_prefix=no
12546 case $GCC,$host_os in
12547 yes,cygwin* | yes,mingw* | yes,pw32*)
12548 library_names_spec='$libname.dll.a'
12549 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12550 postinstall_cmds='base_file=`basename \${file}`~
12551 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
12552 dldir=$destdir/`dirname \$dlpath`~
12553 test -d \$dldir || mkdir -p \$dldir~
12554 $install_prog $dir/$dlname \$dldir/$dlname~
12555 chmod a+x \$dldir/$dlname'
12556 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12557 dlpath=$dir/\$dldll~
12558 $rm \$dlpath'
12559 shlibpath_overrides_runpath=yes
12561 case $host_os in
12562 cygwin*)
12563 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12564 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12565 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
12567 mingw*)
12568 # MinGW DLLs use traditional 'lib' prefix
12569 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12570 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12571 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
12572 # It is most probably a Windows format PATH printed by
12573 # mingw gcc, but we are running on Cygwin. Gcc prints its search
12574 # path with ; separators, and with drive letters. We can handle the
12575 # drive letters (cygwin fileutils understands them), so leave them,
12576 # especially as we might pass files found there to a mingw objdump,
12577 # which wouldn't understand a cygwinified path. Ahh.
12578 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12579 else
12580 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12583 pw32*)
12584 # pw32 DLLs use 'pw' prefix rather than 'lib'
12585 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12587 esac
12591 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12593 esac
12594 dynamic_linker='Win32 ld.exe'
12595 # FIXME: first we should search . and the directory the executable is in
12596 shlibpath_var=PATH
12599 darwin* | rhapsody*)
12600 dynamic_linker="$host_os dyld"
12601 version_type=darwin
12602 need_lib_prefix=no
12603 need_version=no
12604 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12605 soname_spec='${libname}${release}${major}$shared_ext'
12606 shlibpath_overrides_runpath=yes
12607 shlibpath_var=DYLD_LIBRARY_PATH
12608 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12609 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
12610 if test "$GCC" = yes; then
12611 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
12612 else
12613 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
12615 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12618 dgux*)
12619 version_type=linux
12620 need_lib_prefix=no
12621 need_version=no
12622 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12623 soname_spec='${libname}${release}${shared_ext}$major'
12624 shlibpath_var=LD_LIBRARY_PATH
12627 freebsd1*)
12628 dynamic_linker=no
12631 kfreebsd*-gnu)
12632 version_type=linux
12633 need_lib_prefix=no
12634 need_version=no
12635 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12636 soname_spec='${libname}${release}${shared_ext}$major'
12637 shlibpath_var=LD_LIBRARY_PATH
12638 shlibpath_overrides_runpath=no
12639 hardcode_into_libs=yes
12640 dynamic_linker='GNU ld.so'
12643 freebsd* | dragonfly*)
12644 # DragonFly does not have aout. When/if they implement a new
12645 # versioning mechanism, adjust this.
12646 if test -x /usr/bin/objformat; then
12647 objformat=`/usr/bin/objformat`
12648 else
12649 case $host_os in
12650 freebsd[123]*) objformat=aout ;;
12651 *) objformat=elf ;;
12652 esac
12654 version_type=freebsd-$objformat
12655 case $version_type in
12656 freebsd-elf*)
12657 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12658 need_version=no
12659 need_lib_prefix=no
12661 freebsd-*)
12662 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12663 need_version=yes
12665 esac
12666 shlibpath_var=LD_LIBRARY_PATH
12667 case $host_os in
12668 freebsd2*)
12669 shlibpath_overrides_runpath=yes
12671 freebsd3.[01]* | freebsdelf3.[01]*)
12672 shlibpath_overrides_runpath=yes
12673 hardcode_into_libs=yes
12675 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12676 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12677 shlibpath_overrides_runpath=no
12678 hardcode_into_libs=yes
12680 freebsd*) # from 4.6 on
12681 shlibpath_overrides_runpath=yes
12682 hardcode_into_libs=yes
12684 esac
12687 gnu*)
12688 version_type=linux
12689 need_lib_prefix=no
12690 need_version=no
12691 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12692 soname_spec='${libname}${release}${shared_ext}$major'
12693 shlibpath_var=LD_LIBRARY_PATH
12694 hardcode_into_libs=yes
12697 hpux9* | hpux10* | hpux11*)
12698 # Give a soname corresponding to the major version so that dld.sl refuses to
12699 # link against other versions.
12700 version_type=sunos
12701 need_lib_prefix=no
12702 need_version=no
12703 case $host_cpu in
12704 ia64*)
12705 shrext_cmds='.so'
12706 hardcode_into_libs=yes
12707 dynamic_linker="$host_os dld.so"
12708 shlibpath_var=LD_LIBRARY_PATH
12709 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12710 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12711 soname_spec='${libname}${release}${shared_ext}$major'
12712 if test "X$HPUX_IA64_MODE" = X32; then
12713 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12714 else
12715 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12717 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12719 hppa*64*)
12720 shrext_cmds='.sl'
12721 hardcode_into_libs=yes
12722 dynamic_linker="$host_os dld.sl"
12723 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12724 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12725 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12726 soname_spec='${libname}${release}${shared_ext}$major'
12727 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12728 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12731 shrext_cmds='.sl'
12732 dynamic_linker="$host_os dld.sl"
12733 shlibpath_var=SHLIB_PATH
12734 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12735 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12736 soname_spec='${libname}${release}${shared_ext}$major'
12738 esac
12739 # HP-UX runs *really* slowly unless shared libraries are mode 555.
12740 postinstall_cmds='chmod 555 $lib'
12743 interix3*)
12744 version_type=linux
12745 need_lib_prefix=no
12746 need_version=no
12747 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12748 soname_spec='${libname}${release}${shared_ext}$major'
12749 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12750 shlibpath_var=LD_LIBRARY_PATH
12751 shlibpath_overrides_runpath=no
12752 hardcode_into_libs=yes
12755 irix5* | irix6* | nonstopux*)
12756 case $host_os in
12757 nonstopux*) version_type=nonstopux ;;
12759 if test "$lt_cv_prog_gnu_ld" = yes; then
12760 version_type=linux
12761 else
12762 version_type=irix
12763 fi ;;
12764 esac
12765 need_lib_prefix=no
12766 need_version=no
12767 soname_spec='${libname}${release}${shared_ext}$major'
12768 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12769 case $host_os in
12770 irix5* | nonstopux*)
12771 libsuff= shlibsuff=
12774 case $LD in # libtool.m4 will add one of these switches to LD
12775 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12776 libsuff= shlibsuff= libmagic=32-bit;;
12777 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12778 libsuff=32 shlibsuff=N32 libmagic=N32;;
12779 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12780 libsuff=64 shlibsuff=64 libmagic=64-bit;;
12781 *) libsuff= shlibsuff= libmagic=never-match;;
12782 esac
12784 esac
12785 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12786 shlibpath_overrides_runpath=no
12787 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12788 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12789 hardcode_into_libs=yes
12792 # No shared lib support for Linux oldld, aout, or coff.
12793 linux*oldld* | linux*aout* | linux*coff*)
12794 dynamic_linker=no
12797 # This must be Linux ELF.
12798 linux*)
12799 version_type=linux
12800 need_lib_prefix=no
12801 need_version=no
12802 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12803 soname_spec='${libname}${release}${shared_ext}$major'
12804 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12805 shlibpath_var=LD_LIBRARY_PATH
12806 shlibpath_overrides_runpath=no
12807 # This implies no fast_install, which is unacceptable.
12808 # Some rework will be needed to allow for fast_install
12809 # before this can be enabled.
12810 hardcode_into_libs=yes
12812 # find out which ABI we are using
12813 libsuff=
12814 case "$host_cpu" in
12815 x86_64*|s390x*|powerpc64*)
12816 echo '#line 12816 "configure"' > conftest.$ac_ext
12817 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12818 (eval $ac_compile) 2>&5
12819 ac_status=$?
12820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12821 (exit $ac_status); }; then
12822 case `/usr/bin/file conftest.$ac_objext` in
12823 *64-bit*)
12824 libsuff=64
12825 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
12827 esac
12829 rm -rf conftest*
12831 esac
12833 # Append ld.so.conf contents to the search path
12834 if test -f /etc/ld.so.conf; then
12835 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/^ *//;s/#.*//;/^[^\/]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
12836 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
12839 # We used to test for /lib/ld.so.1 and disable shared libraries on
12840 # powerpc, because MkLinux only supported shared libraries with the
12841 # GNU dynamic linker. Since this was broken with cross compilers,
12842 # most powerpc-linux boxes support dynamic linking these days and
12843 # people can always --disable-shared, the test was removed, and we
12844 # assume the GNU/Linux dynamic linker is in use.
12845 dynamic_linker='GNU/Linux ld.so'
12848 knetbsd*-gnu)
12849 version_type=linux
12850 need_lib_prefix=no
12851 need_version=no
12852 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12853 soname_spec='${libname}${release}${shared_ext}$major'
12854 shlibpath_var=LD_LIBRARY_PATH
12855 shlibpath_overrides_runpath=no
12856 hardcode_into_libs=yes
12857 dynamic_linker='GNU ld.so'
12860 netbsd*)
12861 version_type=sunos
12862 need_lib_prefix=no
12863 need_version=no
12864 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12865 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12866 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12867 dynamic_linker='NetBSD (a.out) ld.so'
12868 else
12869 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12870 soname_spec='${libname}${release}${shared_ext}$major'
12871 dynamic_linker='NetBSD ld.elf_so'
12873 shlibpath_var=LD_LIBRARY_PATH
12874 shlibpath_overrides_runpath=yes
12875 hardcode_into_libs=yes
12878 newsos6)
12879 version_type=linux
12880 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12881 shlibpath_var=LD_LIBRARY_PATH
12882 shlibpath_overrides_runpath=yes
12885 nto-qnx*)
12886 version_type=linux
12887 need_lib_prefix=no
12888 need_version=no
12889 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12890 soname_spec='${libname}${release}${shared_ext}$major'
12891 shlibpath_var=LD_LIBRARY_PATH
12892 shlibpath_overrides_runpath=yes
12895 openbsd*)
12896 version_type=sunos
12897 sys_lib_dlsearch_path_spec="/usr/lib"
12898 need_lib_prefix=no
12899 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12900 case $host_os in
12901 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
12902 *) need_version=no ;;
12903 esac
12904 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12905 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12906 shlibpath_var=LD_LIBRARY_PATH
12907 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12908 case $host_os in
12909 openbsd2.[89] | openbsd2.[89].*)
12910 shlibpath_overrides_runpath=no
12913 shlibpath_overrides_runpath=yes
12915 esac
12916 else
12917 shlibpath_overrides_runpath=yes
12921 os2*)
12922 libname_spec='$name'
12923 shrext_cmds=".dll"
12924 need_lib_prefix=no
12925 library_names_spec='$libname${shared_ext} $libname.a'
12926 dynamic_linker='OS/2 ld.exe'
12927 shlibpath_var=LIBPATH
12930 osf3* | osf4* | osf5*)
12931 version_type=osf
12932 need_lib_prefix=no
12933 need_version=no
12934 soname_spec='${libname}${release}${shared_ext}$major'
12935 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12936 shlibpath_var=LD_LIBRARY_PATH
12937 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12938 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12941 solaris*)
12942 version_type=linux
12943 need_lib_prefix=no
12944 need_version=no
12945 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12946 soname_spec='${libname}${release}${shared_ext}$major'
12947 shlibpath_var=LD_LIBRARY_PATH
12948 shlibpath_overrides_runpath=yes
12949 hardcode_into_libs=yes
12950 # ldd complains unless libraries are executable
12951 postinstall_cmds='chmod +x $lib'
12954 sunos4*)
12955 version_type=sunos
12956 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12957 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12958 shlibpath_var=LD_LIBRARY_PATH
12959 shlibpath_overrides_runpath=yes
12960 if test "$with_gnu_ld" = yes; then
12961 need_lib_prefix=no
12963 need_version=yes
12966 sysv4 | sysv4.3*)
12967 version_type=linux
12968 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12969 soname_spec='${libname}${release}${shared_ext}$major'
12970 shlibpath_var=LD_LIBRARY_PATH
12971 case $host_vendor in
12972 sni)
12973 shlibpath_overrides_runpath=no
12974 need_lib_prefix=no
12975 export_dynamic_flag_spec='${wl}-Blargedynsym'
12976 runpath_var=LD_RUN_PATH
12978 siemens)
12979 need_lib_prefix=no
12981 motorola)
12982 need_lib_prefix=no
12983 need_version=no
12984 shlibpath_overrides_runpath=no
12985 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12987 esac
12990 sysv4*MP*)
12991 if test -d /usr/nec ;then
12992 version_type=linux
12993 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12994 soname_spec='$libname${shared_ext}.$major'
12995 shlibpath_var=LD_LIBRARY_PATH
12999 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13000 version_type=freebsd-elf
13001 need_lib_prefix=no
13002 need_version=no
13003 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13004 soname_spec='${libname}${release}${shared_ext}$major'
13005 shlibpath_var=LD_LIBRARY_PATH
13006 hardcode_into_libs=yes
13007 if test "$with_gnu_ld" = yes; then
13008 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13009 shlibpath_overrides_runpath=no
13010 else
13011 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13012 shlibpath_overrides_runpath=yes
13013 case $host_os in
13014 sco3.2v5*)
13015 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13017 esac
13019 sys_lib_dlsearch_path_spec='/usr/lib'
13022 uts4*)
13023 version_type=linux
13024 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13025 soname_spec='${libname}${release}${shared_ext}$major'
13026 shlibpath_var=LD_LIBRARY_PATH
13030 dynamic_linker=no
13032 esac
13033 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13034 echo "${ECHO_T}$dynamic_linker" >&6; }
13035 test "$dynamic_linker" = no && can_build_shared=no
13037 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13038 if test "$GCC" = yes; then
13039 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13042 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13043 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
13044 hardcode_action_CXX=
13045 if test -n "$hardcode_libdir_flag_spec_CXX" || \
13046 test -n "$runpath_var_CXX" || \
13047 test "X$hardcode_automatic_CXX" = "Xyes" ; then
13049 # We can hardcode non-existant directories.
13050 if test "$hardcode_direct_CXX" != no &&
13051 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13052 # have to relink, otherwise we might link with an installed library
13053 # when we should be linking with a yet-to-be-installed one
13054 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13055 test "$hardcode_minus_L_CXX" != no; then
13056 # Linking always hardcodes the temporary library directory.
13057 hardcode_action_CXX=relink
13058 else
13059 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13060 hardcode_action_CXX=immediate
13062 else
13063 # We cannot hardcode anything, or else we can only hardcode existing
13064 # directories.
13065 hardcode_action_CXX=unsupported
13067 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
13068 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
13070 if test "$hardcode_action_CXX" = relink; then
13071 # Fast installation is not supported
13072 enable_fast_install=no
13073 elif test "$shlibpath_overrides_runpath" = yes ||
13074 test "$enable_shared" = no; then
13075 # Fast installation is not necessary
13076 enable_fast_install=needless
13080 # The else clause should only fire when bootstrapping the
13081 # libtool distribution, otherwise you forgot to ship ltmain.sh
13082 # with your package, and you will get complaints that there are
13083 # no rules to generate ltmain.sh.
13084 if test -f "$ltmain"; then
13085 # See if we are running on zsh, and set the options which allow our commands through
13086 # without removal of \ escapes.
13087 if test -n "${ZSH_VERSION+set}" ; then
13088 setopt NO_GLOB_SUBST
13090 # Now quote all the things that may contain metacharacters while being
13091 # careful not to overquote the AC_SUBSTed values. We take copies of the
13092 # variables and quote the copies for generation of the libtool script.
13093 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
13094 SED SHELL STRIP \
13095 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13096 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13097 deplibs_check_method reload_flag reload_cmds need_locks \
13098 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13099 lt_cv_sys_global_symbol_to_c_name_address \
13100 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13101 old_postinstall_cmds old_postuninstall_cmds \
13102 compiler_CXX \
13103 CC_CXX \
13104 LD_CXX \
13105 lt_prog_compiler_wl_CXX \
13106 lt_prog_compiler_pic_CXX \
13107 lt_prog_compiler_static_CXX \
13108 lt_prog_compiler_no_builtin_flag_CXX \
13109 export_dynamic_flag_spec_CXX \
13110 thread_safe_flag_spec_CXX \
13111 whole_archive_flag_spec_CXX \
13112 enable_shared_with_static_runtimes_CXX \
13113 old_archive_cmds_CXX \
13114 old_archive_from_new_cmds_CXX \
13115 predep_objects_CXX \
13116 postdep_objects_CXX \
13117 predeps_CXX \
13118 postdeps_CXX \
13119 compiler_lib_search_path_CXX \
13120 archive_cmds_CXX \
13121 archive_expsym_cmds_CXX \
13122 postinstall_cmds_CXX \
13123 postuninstall_cmds_CXX \
13124 old_archive_from_expsyms_cmds_CXX \
13125 allow_undefined_flag_CXX \
13126 no_undefined_flag_CXX \
13127 export_symbols_cmds_CXX \
13128 hardcode_libdir_flag_spec_CXX \
13129 hardcode_libdir_flag_spec_ld_CXX \
13130 hardcode_libdir_separator_CXX \
13131 hardcode_automatic_CXX \
13132 module_cmds_CXX \
13133 module_expsym_cmds_CXX \
13134 lt_cv_prog_compiler_c_o_CXX \
13135 exclude_expsyms_CXX \
13136 include_expsyms_CXX; do
13138 case $var in
13139 old_archive_cmds_CXX | \
13140 old_archive_from_new_cmds_CXX | \
13141 archive_cmds_CXX | \
13142 archive_expsym_cmds_CXX | \
13143 module_cmds_CXX | \
13144 module_expsym_cmds_CXX | \
13145 old_archive_from_expsyms_cmds_CXX | \
13146 export_symbols_cmds_CXX | \
13147 extract_expsyms_cmds | reload_cmds | finish_cmds | \
13148 postinstall_cmds | postuninstall_cmds | \
13149 old_postinstall_cmds | old_postuninstall_cmds | \
13150 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13151 # Double-quote double-evaled strings.
13152 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13155 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13157 esac
13158 done
13160 case $lt_echo in
13161 *'\$0 --fallback-echo"')
13162 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13164 esac
13166 cfgfile="$ofile"
13168 cat <<__EOF__ >> "$cfgfile"
13169 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
13171 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13173 # Shell to use when invoking shell scripts.
13174 SHELL=$lt_SHELL
13176 # Whether or not to build shared libraries.
13177 build_libtool_libs=$enable_shared
13179 # Whether or not to build static libraries.
13180 build_old_libs=$enable_static
13182 # Whether or not to add -lc for building shared libraries.
13183 build_libtool_need_lc=$archive_cmds_need_lc_CXX
13185 # Whether or not to disallow shared libs when runtime libs are static
13186 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13188 # Whether or not to optimize for fast installation.
13189 fast_install=$enable_fast_install
13191 # The host system.
13192 host_alias=$host_alias
13193 host=$host
13194 host_os=$host_os
13196 # The build system.
13197 build_alias=$build_alias
13198 build=$build
13199 build_os=$build_os
13201 # An echo program that does not interpret backslashes.
13202 echo=$lt_echo
13204 # The archiver.
13205 AR=$lt_AR
13206 AR_FLAGS=$lt_AR_FLAGS
13208 # A C compiler.
13209 LTCC=$lt_LTCC
13211 # LTCC compiler flags.
13212 LTCFLAGS=$lt_LTCFLAGS
13214 # A language-specific compiler.
13215 CC=$lt_compiler_CXX
13217 # Is the compiler the GNU C compiler?
13218 with_gcc=$GCC_CXX
13220 # An ERE matcher.
13221 EGREP=$lt_EGREP
13223 # The linker used to build libraries.
13224 LD=$lt_LD_CXX
13226 # Whether we need hard or soft links.
13227 LN_S=$lt_LN_S
13229 # A BSD-compatible nm program.
13230 NM=$lt_NM
13232 # A symbol stripping program
13233 STRIP=$lt_STRIP
13235 # Used to examine libraries when file_magic_cmd begins "file"
13236 MAGIC_CMD=$MAGIC_CMD
13238 # Used on cygwin: DLL creation program.
13239 DLLTOOL="$DLLTOOL"
13241 # Used on cygwin: object dumper.
13242 OBJDUMP="$OBJDUMP"
13244 # Used on cygwin: assembler.
13245 AS="$AS"
13247 # The name of the directory that contains temporary libtool files.
13248 objdir=$objdir
13250 # How to create reloadable object files.
13251 reload_flag=$lt_reload_flag
13252 reload_cmds=$lt_reload_cmds
13254 # How to pass a linker flag through the compiler.
13255 wl=$lt_lt_prog_compiler_wl_CXX
13257 # Object file suffix (normally "o").
13258 objext="$ac_objext"
13260 # Old archive suffix (normally "a").
13261 libext="$libext"
13263 # Shared library suffix (normally ".so").
13264 shrext_cmds='$shrext_cmds'
13266 # Executable file suffix (normally "").
13267 exeext="$exeext"
13269 # Additional compiler flags for building library objects.
13270 pic_flag=$lt_lt_prog_compiler_pic_CXX
13271 pic_mode=$pic_mode
13273 # What is the maximum length of a command?
13274 max_cmd_len=$lt_cv_sys_max_cmd_len
13276 # Does compiler simultaneously support -c and -o options?
13277 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13279 # Must we lock files when doing compilation?
13280 need_locks=$lt_need_locks
13282 # Do we need the lib prefix for modules?
13283 need_lib_prefix=$need_lib_prefix
13285 # Do we need a version for libraries?
13286 need_version=$need_version
13288 # Whether dlopen is supported.
13289 dlopen_support=$enable_dlopen
13291 # Whether dlopen of programs is supported.
13292 dlopen_self=$enable_dlopen_self
13294 # Whether dlopen of statically linked programs is supported.
13295 dlopen_self_static=$enable_dlopen_self_static
13297 # Compiler flag to prevent dynamic linking.
13298 link_static_flag=$lt_lt_prog_compiler_static_CXX
13300 # Compiler flag to turn off builtin functions.
13301 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13303 # Compiler flag to allow reflexive dlopens.
13304 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13306 # Compiler flag to generate shared objects directly from archives.
13307 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13309 # Compiler flag to generate thread-safe objects.
13310 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13312 # Library versioning type.
13313 version_type=$version_type
13315 # Format of library name prefix.
13316 libname_spec=$lt_libname_spec
13318 # List of archive names. First name is the real one, the rest are links.
13319 # The last name is the one that the linker finds with -lNAME.
13320 library_names_spec=$lt_library_names_spec
13322 # The coded name of the library, if different from the real name.
13323 soname_spec=$lt_soname_spec
13325 # Commands used to build and install an old-style archive.
13326 RANLIB=$lt_RANLIB
13327 old_archive_cmds=$lt_old_archive_cmds_CXX
13328 old_postinstall_cmds=$lt_old_postinstall_cmds
13329 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13331 # Create an old-style archive from a shared archive.
13332 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13334 # Create a temporary old-style archive to link instead of a shared archive.
13335 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13337 # Commands used to build and install a shared archive.
13338 archive_cmds=$lt_archive_cmds_CXX
13339 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13340 postinstall_cmds=$lt_postinstall_cmds
13341 postuninstall_cmds=$lt_postuninstall_cmds
13343 # Commands used to build a loadable module (assumed same as above if empty)
13344 module_cmds=$lt_module_cmds_CXX
13345 module_expsym_cmds=$lt_module_expsym_cmds_CXX
13347 # Commands to strip libraries.
13348 old_striplib=$lt_old_striplib
13349 striplib=$lt_striplib
13351 # Dependencies to place before the objects being linked to create a
13352 # shared library.
13353 predep_objects=$lt_predep_objects_CXX
13355 # Dependencies to place after the objects being linked to create a
13356 # shared library.
13357 postdep_objects=$lt_postdep_objects_CXX
13359 # Dependencies to place before the objects being linked to create a
13360 # shared library.
13361 predeps=$lt_predeps_CXX
13363 # Dependencies to place after the objects being linked to create a
13364 # shared library.
13365 postdeps=$lt_postdeps_CXX
13367 # The library search path used internally by the compiler when linking
13368 # a shared library.
13369 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13371 # Method to check whether dependent libraries are shared objects.
13372 deplibs_check_method=$lt_deplibs_check_method
13374 # Command to use when deplibs_check_method == file_magic.
13375 file_magic_cmd=$lt_file_magic_cmd
13377 # Flag that allows shared libraries with undefined symbols to be built.
13378 allow_undefined_flag=$lt_allow_undefined_flag_CXX
13380 # Flag that forces no undefined symbols.
13381 no_undefined_flag=$lt_no_undefined_flag_CXX
13383 # Commands used to finish a libtool library installation in a directory.
13384 finish_cmds=$lt_finish_cmds
13386 # Same as above, but a single script fragment to be evaled but not shown.
13387 finish_eval=$lt_finish_eval
13389 # Take the output of nm and produce a listing of raw symbols and C names.
13390 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13392 # Transform the output of nm in a proper C declaration
13393 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13395 # Transform the output of nm in a C name address pair
13396 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13398 # This is the shared library runtime path variable.
13399 runpath_var=$runpath_var
13401 # This is the shared library path variable.
13402 shlibpath_var=$shlibpath_var
13404 # Is shlibpath searched before the hard-coded library search path?
13405 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13407 # How to hardcode a shared library path into an executable.
13408 hardcode_action=$hardcode_action_CXX
13410 # Whether we should hardcode library paths into libraries.
13411 hardcode_into_libs=$hardcode_into_libs
13413 # Flag to hardcode \$libdir into a binary during linking.
13414 # This must work even if \$libdir does not exist.
13415 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13417 # If ld is used when linking, flag to hardcode \$libdir into
13418 # a binary during linking. This must work even if \$libdir does
13419 # not exist.
13420 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13422 # Whether we need a single -rpath flag with a separated argument.
13423 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13425 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13426 # resulting binary.
13427 hardcode_direct=$hardcode_direct_CXX
13429 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13430 # resulting binary.
13431 hardcode_minus_L=$hardcode_minus_L_CXX
13433 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13434 # the resulting binary.
13435 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13437 # Set to yes if building a shared library automatically hardcodes DIR into the library
13438 # and all subsequent libraries and executables linked against it.
13439 hardcode_automatic=$hardcode_automatic_CXX
13441 # Variables whose values should be saved in libtool wrapper scripts and
13442 # restored at relink time.
13443 variables_saved_for_relink="$variables_saved_for_relink"
13445 # Whether libtool must link a program against all its dependency libraries.
13446 link_all_deplibs=$link_all_deplibs_CXX
13448 # Compile-time system search path for libraries
13449 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13451 # Run-time system search path for libraries
13452 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13454 # Fix the shell variable \$srcfile for the compiler.
13455 fix_srcfile_path="$fix_srcfile_path_CXX"
13457 # Set to yes if exported symbols are required.
13458 always_export_symbols=$always_export_symbols_CXX
13460 # The commands to list exported symbols.
13461 export_symbols_cmds=$lt_export_symbols_cmds_CXX
13463 # The commands to extract the exported symbol list from a shared archive.
13464 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13466 # Symbols that should not be listed in the preloaded symbols.
13467 exclude_expsyms=$lt_exclude_expsyms_CXX
13469 # Symbols that must always be exported.
13470 include_expsyms=$lt_include_expsyms_CXX
13472 # ### END LIBTOOL TAG CONFIG: $tagname
13474 __EOF__
13477 else
13478 # If there is no Makefile yet, we rely on a make rule to execute
13479 # `config.status --recheck' to rerun these tests and create the
13480 # libtool script then.
13481 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13482 if test -f "$ltmain_in"; then
13483 test -f Makefile && make "$ltmain"
13488 ac_ext=cpp
13489 ac_cpp='$CXXCPP $CPPFLAGS'
13490 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13491 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13492 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13494 CC=$lt_save_CC
13495 LDCXX=$LD
13496 LD=$lt_save_LD
13497 GCC=$lt_save_GCC
13498 with_gnu_ldcxx=$with_gnu_ld
13499 with_gnu_ld=$lt_save_with_gnu_ld
13500 lt_cv_path_LDCXX=$lt_cv_path_LD
13501 lt_cv_path_LD=$lt_save_path_LD
13502 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13503 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13505 else
13506 tagname=""
13510 F77)
13511 if test -n "$F77" && test "X$F77" != "Xno"; then
13513 ac_ext=f
13514 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13515 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13516 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13519 archive_cmds_need_lc_F77=no
13520 allow_undefined_flag_F77=
13521 always_export_symbols_F77=no
13522 archive_expsym_cmds_F77=
13523 export_dynamic_flag_spec_F77=
13524 hardcode_direct_F77=no
13525 hardcode_libdir_flag_spec_F77=
13526 hardcode_libdir_flag_spec_ld_F77=
13527 hardcode_libdir_separator_F77=
13528 hardcode_minus_L_F77=no
13529 hardcode_automatic_F77=no
13530 module_cmds_F77=
13531 module_expsym_cmds_F77=
13532 link_all_deplibs_F77=unknown
13533 old_archive_cmds_F77=$old_archive_cmds
13534 no_undefined_flag_F77=
13535 whole_archive_flag_spec_F77=
13536 enable_shared_with_static_runtimes_F77=no
13538 # Source file extension for f77 test sources.
13539 ac_ext=f
13541 # Object file extension for compiled f77 test sources.
13542 objext=o
13543 objext_F77=$objext
13545 # Code to be used in simple compile tests
13546 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
13548 # Code to be used in simple link tests
13549 lt_simple_link_test_code=" program t\n end\n"
13551 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13553 # If no C compiler was specified, use CC.
13554 LTCC=${LTCC-"$CC"}
13556 # If no C compiler flags were specified, use CFLAGS.
13557 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13559 # Allow CC to be a program name with arguments.
13560 compiler=$CC
13563 # save warnings/boilerplate of simple test code
13564 ac_outfile=conftest.$ac_objext
13565 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
13566 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13567 _lt_compiler_boilerplate=`cat conftest.err`
13568 $rm conftest*
13570 ac_outfile=conftest.$ac_objext
13571 printf "$lt_simple_link_test_code" >conftest.$ac_ext
13572 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13573 _lt_linker_boilerplate=`cat conftest.err`
13574 $rm conftest*
13577 # Allow CC to be a program name with arguments.
13578 lt_save_CC="$CC"
13579 CC=${F77-"f77"}
13580 compiler=$CC
13581 compiler_F77=$CC
13582 for cc_temp in $compiler""; do
13583 case $cc_temp in
13584 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13585 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13586 \-*) ;;
13587 *) break;;
13588 esac
13589 done
13590 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13593 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13594 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
13595 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
13596 echo "${ECHO_T}$can_build_shared" >&6; }
13598 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13599 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
13600 test "$can_build_shared" = "no" && enable_shared=no
13602 # On AIX, shared libraries and static libraries use the same namespace, and
13603 # are all built from PIC.
13604 case $host_os in
13605 aix3*)
13606 test "$enable_shared" = yes && enable_static=no
13607 if test -n "$RANLIB"; then
13608 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13609 postinstall_cmds='$RANLIB $lib'
13612 aix4* | aix5*)
13613 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13614 test "$enable_shared" = yes && enable_static=no
13617 esac
13618 { echo "$as_me:$LINENO: result: $enable_shared" >&5
13619 echo "${ECHO_T}$enable_shared" >&6; }
13621 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13622 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
13623 # Make sure either enable_shared or enable_static is yes.
13624 test "$enable_shared" = yes || enable_static=yes
13625 { echo "$as_me:$LINENO: result: $enable_static" >&5
13626 echo "${ECHO_T}$enable_static" >&6; }
13628 GCC_F77="$G77"
13629 LD_F77="$LD"
13631 lt_prog_compiler_wl_F77=
13632 lt_prog_compiler_pic_F77=
13633 lt_prog_compiler_static_F77=
13635 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13636 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
13638 if test "$GCC" = yes; then
13639 lt_prog_compiler_wl_F77='-Wl,'
13640 lt_prog_compiler_static_F77='-static'
13642 case $host_os in
13643 aix*)
13644 # All AIX code is PIC.
13645 if test "$host_cpu" = ia64; then
13646 # AIX 5 now supports IA64 processor
13647 lt_prog_compiler_static_F77='-Bstatic'
13651 amigaos*)
13652 # FIXME: we need at least 68020 code to build shared libraries, but
13653 # adding the `-m68020' flag to GCC prevents building anything better,
13654 # like `-m68040'.
13655 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13658 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13659 # PIC is the default for these OSes.
13662 mingw* | pw32* | os2*)
13663 # This hack is so that the source file can tell whether it is being
13664 # built for inclusion in a dll (and should export symbols for example).
13665 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13668 darwin* | rhapsody*)
13669 # PIC is the default on this platform
13670 # Common symbols not allowed in MH_DYLIB files
13671 lt_prog_compiler_pic_F77='-fno-common'
13674 interix3*)
13675 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13676 # Instead, we relocate shared libraries at runtime.
13679 msdosdjgpp*)
13680 # Just because we use GCC doesn't mean we suddenly get shared libraries
13681 # on systems that don't support them.
13682 lt_prog_compiler_can_build_shared_F77=no
13683 enable_shared=no
13686 sysv4*MP*)
13687 if test -d /usr/nec; then
13688 lt_prog_compiler_pic_F77=-Kconform_pic
13692 hpux*)
13693 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13694 # not for PA HP-UX.
13695 case $host_cpu in
13696 hppa*64*|ia64*)
13697 # +Z the default
13700 lt_prog_compiler_pic_F77='-fPIC'
13702 esac
13706 lt_prog_compiler_pic_F77='-fPIC'
13708 esac
13709 else
13710 # PORTME Check for flag to pass linker flags through the system compiler.
13711 case $host_os in
13712 aix*)
13713 lt_prog_compiler_wl_F77='-Wl,'
13714 if test "$host_cpu" = ia64; then
13715 # AIX 5 now supports IA64 processor
13716 lt_prog_compiler_static_F77='-Bstatic'
13717 else
13718 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13721 darwin*)
13722 # PIC is the default on this platform
13723 # Common symbols not allowed in MH_DYLIB files
13724 case $cc_basename in
13725 xlc*)
13726 lt_prog_compiler_pic_F77='-qnocommon'
13727 lt_prog_compiler_wl_F77='-Wl,'
13729 esac
13732 mingw* | pw32* | os2*)
13733 # This hack is so that the source file can tell whether it is being
13734 # built for inclusion in a dll (and should export symbols for example).
13735 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13738 hpux9* | hpux10* | hpux11*)
13739 lt_prog_compiler_wl_F77='-Wl,'
13740 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13741 # not for PA HP-UX.
13742 case $host_cpu in
13743 hppa*64*|ia64*)
13744 # +Z the default
13747 lt_prog_compiler_pic_F77='+Z'
13749 esac
13750 # Is there a better lt_prog_compiler_static that works with the bundled CC?
13751 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13754 irix5* | irix6* | nonstopux*)
13755 lt_prog_compiler_wl_F77='-Wl,'
13756 # PIC (with -KPIC) is the default.
13757 lt_prog_compiler_static_F77='-non_shared'
13760 newsos6)
13761 lt_prog_compiler_pic_F77='-KPIC'
13762 lt_prog_compiler_static_F77='-Bstatic'
13765 linux*)
13766 case $cc_basename in
13767 icc* | ecc*)
13768 lt_prog_compiler_wl_F77='-Wl,'
13769 lt_prog_compiler_pic_F77='-KPIC'
13770 lt_prog_compiler_static_F77='-static'
13772 pgcc* | pgf77* | pgf90* | pgf95*)
13773 # Portland Group compilers (*not* the Pentium gcc compiler,
13774 # which looks to be a dead project)
13775 lt_prog_compiler_wl_F77='-Wl,'
13776 lt_prog_compiler_pic_F77='-fpic'
13777 lt_prog_compiler_static_F77='-Bstatic'
13779 ccc*)
13780 lt_prog_compiler_wl_F77='-Wl,'
13781 # All Alpha code is PIC.
13782 lt_prog_compiler_static_F77='-non_shared'
13784 esac
13787 osf3* | osf4* | osf5*)
13788 lt_prog_compiler_wl_F77='-Wl,'
13789 # All OSF/1 code is PIC.
13790 lt_prog_compiler_static_F77='-non_shared'
13793 solaris*)
13794 lt_prog_compiler_pic_F77='-KPIC'
13795 lt_prog_compiler_static_F77='-Bstatic'
13796 case $cc_basename in
13797 f77* | f90* | f95*)
13798 lt_prog_compiler_wl_F77='-Qoption ld ';;
13800 lt_prog_compiler_wl_F77='-Wl,';;
13801 esac
13804 sunos4*)
13805 lt_prog_compiler_wl_F77='-Qoption ld '
13806 lt_prog_compiler_pic_F77='-PIC'
13807 lt_prog_compiler_static_F77='-Bstatic'
13810 sysv4 | sysv4.2uw2* | sysv4.3*)
13811 lt_prog_compiler_wl_F77='-Wl,'
13812 lt_prog_compiler_pic_F77='-KPIC'
13813 lt_prog_compiler_static_F77='-Bstatic'
13816 sysv4*MP*)
13817 if test -d /usr/nec ;then
13818 lt_prog_compiler_pic_F77='-Kconform_pic'
13819 lt_prog_compiler_static_F77='-Bstatic'
13823 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13824 lt_prog_compiler_wl_F77='-Wl,'
13825 lt_prog_compiler_pic_F77='-KPIC'
13826 lt_prog_compiler_static_F77='-Bstatic'
13829 unicos*)
13830 lt_prog_compiler_wl_F77='-Wl,'
13831 lt_prog_compiler_can_build_shared_F77=no
13834 uts4*)
13835 lt_prog_compiler_pic_F77='-pic'
13836 lt_prog_compiler_static_F77='-Bstatic'
13840 lt_prog_compiler_can_build_shared_F77=no
13842 esac
13845 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13846 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
13849 # Check to make sure the PIC flag actually works.
13851 if test -n "$lt_prog_compiler_pic_F77"; then
13853 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13854 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
13855 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13856 echo $ECHO_N "(cached) $ECHO_C" >&6
13857 else
13858 lt_prog_compiler_pic_works_F77=no
13859 ac_outfile=conftest.$ac_objext
13860 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13861 lt_compiler_flag="$lt_prog_compiler_pic_F77"
13862 # Insert the option either (1) after the last *FLAGS variable, or
13863 # (2) before a word containing "conftest.", or (3) at the end.
13864 # Note that $ac_compile itself does not contain backslashes and begins
13865 # with a dollar sign (not a hyphen), so the echo should work correctly.
13866 # The option is referenced via a variable to avoid confusing sed.
13867 lt_compile=`echo "$ac_compile" | $SED \
13868 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13869 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13870 -e 's:$: $lt_compiler_flag:'`
13871 (eval echo "\"\$as_me:13871: $lt_compile\"" >&5)
13872 (eval "$lt_compile" 2>conftest.err)
13873 ac_status=$?
13874 cat conftest.err >&5
13875 echo "$as_me:13875: \$? = $ac_status" >&5
13876 if (exit $ac_status) && test -s "$ac_outfile"; then
13877 # The compiler can only warn and ignore the option if not recognized
13878 # So say no if there are warnings other than the usual output.
13879 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13880 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13881 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13882 lt_prog_compiler_pic_works_F77=yes
13885 $rm conftest*
13888 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
13889 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
13891 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
13892 case $lt_prog_compiler_pic_F77 in
13893 "" | " "*) ;;
13894 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13895 esac
13896 else
13897 lt_prog_compiler_pic_F77=
13898 lt_prog_compiler_can_build_shared_F77=no
13902 case $host_os in
13903 # For platforms which do not support PIC, -DPIC is meaningless:
13904 *djgpp*)
13905 lt_prog_compiler_pic_F77=
13908 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13910 esac
13913 # Check to make sure the static flag actually works.
13915 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
13916 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13917 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
13918 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
13919 echo $ECHO_N "(cached) $ECHO_C" >&6
13920 else
13921 lt_prog_compiler_static_works_F77=no
13922 save_LDFLAGS="$LDFLAGS"
13923 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13924 printf "$lt_simple_link_test_code" > conftest.$ac_ext
13925 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13926 # The linker can only warn and ignore the option if not recognized
13927 # So say no if there are warnings
13928 if test -s conftest.err; then
13929 # Append any errors to the config.log.
13930 cat conftest.err 1>&5
13931 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
13932 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13933 if diff conftest.exp conftest.er2 >/dev/null; then
13934 lt_prog_compiler_static_works_F77=yes
13936 else
13937 lt_prog_compiler_static_works_F77=yes
13940 $rm conftest*
13941 LDFLAGS="$save_LDFLAGS"
13944 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
13945 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
13947 if test x"$lt_prog_compiler_static_works_F77" = xyes; then
13949 else
13950 lt_prog_compiler_static_F77=
13954 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13955 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
13956 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
13957 echo $ECHO_N "(cached) $ECHO_C" >&6
13958 else
13959 lt_cv_prog_compiler_c_o_F77=no
13960 $rm -r conftest 2>/dev/null
13961 mkdir conftest
13962 cd conftest
13963 mkdir out
13964 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13966 lt_compiler_flag="-o out/conftest2.$ac_objext"
13967 # Insert the option either (1) after the last *FLAGS variable, or
13968 # (2) before a word containing "conftest.", or (3) at the end.
13969 # Note that $ac_compile itself does not contain backslashes and begins
13970 # with a dollar sign (not a hyphen), so the echo should work correctly.
13971 lt_compile=`echo "$ac_compile" | $SED \
13972 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13973 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13974 -e 's:$: $lt_compiler_flag:'`
13975 (eval echo "\"\$as_me:13975: $lt_compile\"" >&5)
13976 (eval "$lt_compile" 2>out/conftest.err)
13977 ac_status=$?
13978 cat out/conftest.err >&5
13979 echo "$as_me:13979: \$? = $ac_status" >&5
13980 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13981 then
13982 # The compiler can only warn and ignore the option if not recognized
13983 # So say no if there are warnings
13984 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13985 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13986 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13987 lt_cv_prog_compiler_c_o_F77=yes
13990 chmod u+w . 2>&5
13991 $rm conftest*
13992 # SGI C++ compiler will create directory out/ii_files/ for
13993 # template instantiation
13994 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13995 $rm out/* && rmdir out
13996 cd ..
13997 rmdir conftest
13998 $rm conftest*
14001 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14002 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
14005 hard_links="nottested"
14006 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14007 # do not overwrite the value of need_locks provided by the user
14008 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14009 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14010 hard_links=yes
14011 $rm conftest*
14012 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14013 touch conftest.a
14014 ln conftest.a conftest.b 2>&5 || hard_links=no
14015 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14016 { echo "$as_me:$LINENO: result: $hard_links" >&5
14017 echo "${ECHO_T}$hard_links" >&6; }
14018 if test "$hard_links" = no; then
14019 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14020 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14021 need_locks=warn
14023 else
14024 need_locks=no
14027 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14028 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14030 runpath_var=
14031 allow_undefined_flag_F77=
14032 enable_shared_with_static_runtimes_F77=no
14033 archive_cmds_F77=
14034 archive_expsym_cmds_F77=
14035 old_archive_From_new_cmds_F77=
14036 old_archive_from_expsyms_cmds_F77=
14037 export_dynamic_flag_spec_F77=
14038 whole_archive_flag_spec_F77=
14039 thread_safe_flag_spec_F77=
14040 hardcode_libdir_flag_spec_F77=
14041 hardcode_libdir_flag_spec_ld_F77=
14042 hardcode_libdir_separator_F77=
14043 hardcode_direct_F77=no
14044 hardcode_minus_L_F77=no
14045 hardcode_shlibpath_var_F77=unsupported
14046 link_all_deplibs_F77=unknown
14047 hardcode_automatic_F77=no
14048 module_cmds_F77=
14049 module_expsym_cmds_F77=
14050 always_export_symbols_F77=no
14051 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14052 # include_expsyms should be a list of space-separated symbols to be *always*
14053 # included in the symbol list
14054 include_expsyms_F77=
14055 # exclude_expsyms can be an extended regexp of symbols to exclude
14056 # it will be wrapped by ` (' and `)$', so one must not match beginning or
14057 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14058 # as well as any symbol that contains `d'.
14059 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
14060 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14061 # platforms (ab)use it in PIC code, but their linkers get confused if
14062 # the symbol is explicitly referenced. Since portable code cannot
14063 # rely on this symbol name, it's probably fine to never include it in
14064 # preloaded symbol tables.
14065 extract_expsyms_cmds=
14066 # Just being paranoid about ensuring that cc_basename is set.
14067 for cc_temp in $compiler""; do
14068 case $cc_temp in
14069 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14070 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14071 \-*) ;;
14072 *) break;;
14073 esac
14074 done
14075 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14077 case $host_os in
14078 cygwin* | mingw* | pw32*)
14079 # FIXME: the MSVC++ port hasn't been tested in a loooong time
14080 # When not using gcc, we currently assume that we are using
14081 # Microsoft Visual C++.
14082 if test "$GCC" != yes; then
14083 with_gnu_ld=no
14086 interix*)
14087 # we just hope/assume this is gcc and not c89 (= MSVC++)
14088 with_gnu_ld=yes
14090 openbsd*)
14091 with_gnu_ld=no
14093 esac
14095 ld_shlibs_F77=yes
14096 if test "$with_gnu_ld" = yes; then
14097 # If archive_cmds runs LD, not CC, wlarc should be empty
14098 wlarc='${wl}'
14100 # Set some defaults for GNU ld with shared library support. These
14101 # are reset later if shared libraries are not supported. Putting them
14102 # here allows them to be overridden if necessary.
14103 runpath_var=LD_RUN_PATH
14104 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14105 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14106 # ancient GNU ld didn't support --whole-archive et. al.
14107 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14108 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14109 else
14110 whole_archive_flag_spec_F77=
14112 supports_anon_versioning=no
14113 case `$LD -v 2>/dev/null` in
14114 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14115 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14116 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14117 *\ 2.11.*) ;; # other 2.11 versions
14118 *) supports_anon_versioning=yes ;;
14119 esac
14121 # See if GNU ld supports shared libraries.
14122 case $host_os in
14123 aix3* | aix4* | aix5*)
14124 # On AIX/PPC, the GNU linker is very broken
14125 if test "$host_cpu" != ia64; then
14126 ld_shlibs_F77=no
14127 cat <<EOF 1>&2
14129 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
14130 *** to be unable to reliably create shared libraries on AIX.
14131 *** Therefore, libtool is disabling shared libraries support. If you
14132 *** really care for shared libraries, you may want to modify your PATH
14133 *** so that a non-GNU linker is found, and then restart.
14139 amigaos*)
14140 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)'
14141 hardcode_libdir_flag_spec_F77='-L$libdir'
14142 hardcode_minus_L_F77=yes
14144 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14145 # that the semantics of dynamic libraries on AmigaOS, at least up
14146 # to version 4, is to share data among multiple programs linked
14147 # with the same dynamic library. Since this doesn't match the
14148 # behavior of shared libraries on other platforms, we can't use
14149 # them.
14150 ld_shlibs_F77=no
14153 beos*)
14154 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14155 allow_undefined_flag_F77=unsupported
14156 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14157 # support --undefined. This deserves some investigation. FIXME
14158 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14159 else
14160 ld_shlibs_F77=no
14164 cygwin* | mingw* | pw32*)
14165 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14166 # as there is no search path for DLLs.
14167 hardcode_libdir_flag_spec_F77='-L$libdir'
14168 allow_undefined_flag_F77=unsupported
14169 always_export_symbols_F77=no
14170 enable_shared_with_static_runtimes_F77=yes
14171 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
14173 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14174 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14175 # If the export-symbols file already is a .def file (1st line
14176 # is EXPORTS), use it as is; otherwise, prepend...
14177 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14178 cp $export_symbols $output_objdir/$soname.def;
14179 else
14180 echo EXPORTS > $output_objdir/$soname.def;
14181 cat $export_symbols >> $output_objdir/$soname.def;
14183 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14184 else
14185 ld_shlibs_F77=no
14189 interix3*)
14190 hardcode_direct_F77=no
14191 hardcode_shlibpath_var_F77=no
14192 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14193 export_dynamic_flag_spec_F77='${wl}-E'
14194 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14195 # Instead, shared libraries are loaded at an image base (0x10000000 by
14196 # default) and relocated if they conflict, which is a slow very memory
14197 # consuming and fragmenting process. To avoid this, we pick a random,
14198 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14199 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14200 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'
14201 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'
14204 linux*)
14205 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14206 tmp_addflag=
14207 case $cc_basename,$host_cpu in
14208 pgcc*) # Portland Group C compiler
14209 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'
14210 tmp_addflag=' $pic_flag'
14212 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
14213 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'
14214 tmp_addflag=' $pic_flag -Mnomain' ;;
14215 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
14216 tmp_addflag=' -i_dynamic' ;;
14217 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
14218 tmp_addflag=' -i_dynamic -nofor_main' ;;
14219 ifc* | ifort*) # Intel Fortran compiler
14220 tmp_addflag=' -nofor_main' ;;
14221 esac
14222 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14224 if test $supports_anon_versioning = yes; then
14225 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14226 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14227 $echo "local: *; };" >> $output_objdir/$libname.ver~
14228 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14230 else
14231 ld_shlibs_F77=no
14235 netbsd*)
14236 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14237 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14238 wlarc=
14239 else
14240 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14241 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14245 solaris*)
14246 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14247 ld_shlibs_F77=no
14248 cat <<EOF 1>&2
14250 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
14251 *** create shared libraries on Solaris systems. Therefore, libtool
14252 *** is disabling shared libraries support. We urge you to upgrade GNU
14253 *** binutils to release 2.9.1 or newer. Another option is to modify
14254 *** your PATH or compiler configuration so that the native linker is
14255 *** used, and then restart.
14258 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14259 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14260 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14261 else
14262 ld_shlibs_F77=no
14266 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14267 case `$LD -v 2>&1` in
14268 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14269 ld_shlibs_F77=no
14270 cat <<_LT_EOF 1>&2
14272 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14273 *** reliably create shared libraries on SCO systems. Therefore, libtool
14274 *** is disabling shared libraries support. We urge you to upgrade GNU
14275 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
14276 *** your PATH or compiler configuration so that the native linker is
14277 *** used, and then restart.
14279 _LT_EOF
14282 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14283 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
14284 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
14285 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
14286 else
14287 ld_shlibs_F77=no
14290 esac
14293 sunos4*)
14294 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14295 wlarc=
14296 hardcode_direct_F77=yes
14297 hardcode_shlibpath_var_F77=no
14301 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14302 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14303 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14304 else
14305 ld_shlibs_F77=no
14308 esac
14310 if test "$ld_shlibs_F77" = no; then
14311 runpath_var=
14312 hardcode_libdir_flag_spec_F77=
14313 export_dynamic_flag_spec_F77=
14314 whole_archive_flag_spec_F77=
14316 else
14317 # PORTME fill in a description of your system's linker (not GNU ld)
14318 case $host_os in
14319 aix3*)
14320 allow_undefined_flag_F77=unsupported
14321 always_export_symbols_F77=yes
14322 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'
14323 # Note: this linker hardcodes the directories in LIBPATH if there
14324 # are no directories specified by -L.
14325 hardcode_minus_L_F77=yes
14326 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14327 # Neither direct hardcoding nor static linking is supported with a
14328 # broken collect2.
14329 hardcode_direct_F77=unsupported
14333 aix4* | aix5*)
14334 if test "$host_cpu" = ia64; then
14335 # On IA64, the linker does run time linking by default, so we don't
14336 # have to do anything special.
14337 aix_use_runtimelinking=no
14338 exp_sym_flag='-Bexport'
14339 no_entry_flag=""
14340 else
14341 # If we're using GNU nm, then we don't want the "-C" option.
14342 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14343 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14344 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'
14345 else
14346 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'
14348 aix_use_runtimelinking=no
14350 # Test if we are trying to use run time linking or normal
14351 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14352 # need to do runtime linking.
14353 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
14354 for ld_flag in $LDFLAGS; do
14355 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14356 aix_use_runtimelinking=yes
14357 break
14359 done
14361 esac
14363 exp_sym_flag='-bexport'
14364 no_entry_flag='-bnoentry'
14367 # When large executables or shared objects are built, AIX ld can
14368 # have problems creating the table of contents. If linking a library
14369 # or program results in "error TOC overflow" add -mminimal-toc to
14370 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14371 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14373 archive_cmds_F77=''
14374 hardcode_direct_F77=yes
14375 hardcode_libdir_separator_F77=':'
14376 link_all_deplibs_F77=yes
14378 if test "$GCC" = yes; then
14379 case $host_os in aix4.[012]|aix4.[012].*)
14380 # We only want to do this on AIX 4.2 and lower, the check
14381 # below for broken collect2 doesn't work under 4.3+
14382 collect2name=`${CC} -print-prog-name=collect2`
14383 if test -f "$collect2name" && \
14384 strings "$collect2name" | grep resolve_lib_name >/dev/null
14385 then
14386 # We have reworked collect2
14387 hardcode_direct_F77=yes
14388 else
14389 # We have old collect2
14390 hardcode_direct_F77=unsupported
14391 # It fails to find uninstalled libraries when the uninstalled
14392 # path is not listed in the libpath. Setting hardcode_minus_L
14393 # to unsupported forces relinking
14394 hardcode_minus_L_F77=yes
14395 hardcode_libdir_flag_spec_F77='-L$libdir'
14396 hardcode_libdir_separator_F77=
14399 esac
14400 shared_flag='-shared'
14401 if test "$aix_use_runtimelinking" = yes; then
14402 shared_flag="$shared_flag "'${wl}-G'
14404 else
14405 # not using gcc
14406 if test "$host_cpu" = ia64; then
14407 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14408 # chokes on -Wl,-G. The following line is correct:
14409 shared_flag='-G'
14410 else
14411 if test "$aix_use_runtimelinking" = yes; then
14412 shared_flag='${wl}-G'
14413 else
14414 shared_flag='${wl}-bM:SRE'
14419 # It seems that -bexpall does not export symbols beginning with
14420 # underscore (_), so it is better to generate a list of symbols to export.
14421 always_export_symbols_F77=yes
14422 if test "$aix_use_runtimelinking" = yes; then
14423 # Warning - without using the other runtime loading flags (-brtl),
14424 # -berok will link without error, but may produce a broken library.
14425 allow_undefined_flag_F77='-berok'
14426 # Determine the default libpath from the value encoded in an empty executable.
14427 cat >conftest.$ac_ext <<_ACEOF
14428 program main
14431 _ACEOF
14432 rm -f conftest.$ac_objext conftest$ac_exeext
14433 if { (ac_try="$ac_link"
14434 case "(($ac_try" in
14435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14436 *) ac_try_echo=$ac_try;;
14437 esac
14438 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14439 (eval "$ac_link") 2>conftest.er1
14440 ac_status=$?
14441 grep -v '^ *+' conftest.er1 >conftest.err
14442 rm -f conftest.er1
14443 cat conftest.err >&5
14444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14445 (exit $ac_status); } && {
14446 test -z "$ac_f77_werror_flag" ||
14447 test ! -s conftest.err
14448 } && test -s conftest$ac_exeext &&
14449 $as_test_x conftest$ac_exeext; then
14451 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14453 # Check for a 64-bit object if we didn't find anything.
14454 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14455 }'`; fi
14456 else
14457 echo "$as_me: failed program was:" >&5
14458 sed 's/^/| /' conftest.$ac_ext >&5
14463 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14464 conftest$ac_exeext conftest.$ac_ext
14465 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14467 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14468 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"
14469 else
14470 if test "$host_cpu" = ia64; then
14471 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
14472 allow_undefined_flag_F77="-z nodefs"
14473 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"
14474 else
14475 # Determine the default libpath from the value encoded in an empty executable.
14476 cat >conftest.$ac_ext <<_ACEOF
14477 program main
14480 _ACEOF
14481 rm -f conftest.$ac_objext conftest$ac_exeext
14482 if { (ac_try="$ac_link"
14483 case "(($ac_try" in
14484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14485 *) ac_try_echo=$ac_try;;
14486 esac
14487 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14488 (eval "$ac_link") 2>conftest.er1
14489 ac_status=$?
14490 grep -v '^ *+' conftest.er1 >conftest.err
14491 rm -f conftest.er1
14492 cat conftest.err >&5
14493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14494 (exit $ac_status); } && {
14495 test -z "$ac_f77_werror_flag" ||
14496 test ! -s conftest.err
14497 } && test -s conftest$ac_exeext &&
14498 $as_test_x conftest$ac_exeext; then
14500 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14502 # Check for a 64-bit object if we didn't find anything.
14503 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14504 }'`; fi
14505 else
14506 echo "$as_me: failed program was:" >&5
14507 sed 's/^/| /' conftest.$ac_ext >&5
14512 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14513 conftest$ac_exeext conftest.$ac_ext
14514 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14516 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14517 # Warning - without using the other run time loading flags,
14518 # -berok will link without error, but may produce a broken library.
14519 no_undefined_flag_F77=' ${wl}-bernotok'
14520 allow_undefined_flag_F77=' ${wl}-berok'
14521 # Exported symbols can be pulled into shared objects from archives
14522 whole_archive_flag_spec_F77='$convenience'
14523 archive_cmds_need_lc_F77=yes
14524 # This is similar to how AIX traditionally builds its shared libraries.
14525 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'
14530 amigaos*)
14531 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)'
14532 hardcode_libdir_flag_spec_F77='-L$libdir'
14533 hardcode_minus_L_F77=yes
14534 # see comment about different semantics on the GNU ld section
14535 ld_shlibs_F77=no
14538 bsdi[45]*)
14539 export_dynamic_flag_spec_F77=-rdynamic
14542 cygwin* | mingw* | pw32*)
14543 # When not using gcc, we currently assume that we are using
14544 # Microsoft Visual C++.
14545 # hardcode_libdir_flag_spec is actually meaningless, as there is
14546 # no search path for DLLs.
14547 hardcode_libdir_flag_spec_F77=' '
14548 allow_undefined_flag_F77=unsupported
14549 # Tell ltmain to make .lib files, not .a files.
14550 libext=lib
14551 # Tell ltmain to make .dll files, not .so files.
14552 shrext_cmds=".dll"
14553 # FIXME: Setting linknames here is a bad hack.
14554 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
14555 # The linker will automatically build a .lib file if we build a DLL.
14556 old_archive_From_new_cmds_F77='true'
14557 # FIXME: Should let the user specify the lib program.
14558 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
14559 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
14560 enable_shared_with_static_runtimes_F77=yes
14563 darwin* | rhapsody*)
14564 case $host_os in
14565 rhapsody* | darwin1.[012])
14566 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
14568 *) # Darwin 1.3 on
14569 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14570 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14571 else
14572 case ${MACOSX_DEPLOYMENT_TARGET} in
14573 10.[012])
14574 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14576 10.*)
14577 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
14579 esac
14582 esac
14583 archive_cmds_need_lc_F77=no
14584 hardcode_direct_F77=no
14585 hardcode_automatic_F77=yes
14586 hardcode_shlibpath_var_F77=unsupported
14587 whole_archive_flag_spec_F77=''
14588 link_all_deplibs_F77=yes
14589 if test "$GCC" = yes ; then
14590 output_verbose_link_cmd='echo'
14591 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14592 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14593 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14594 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}'
14595 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}'
14596 else
14597 case $cc_basename in
14598 xlc*)
14599 output_verbose_link_cmd='echo'
14600 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
14601 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14602 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14603 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14604 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}'
14607 ld_shlibs_F77=no
14609 esac
14613 dgux*)
14614 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14615 hardcode_libdir_flag_spec_F77='-L$libdir'
14616 hardcode_shlibpath_var_F77=no
14619 freebsd1*)
14620 ld_shlibs_F77=no
14623 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14624 # support. Future versions do this automatically, but an explicit c++rt0.o
14625 # does not break anything, and helps significantly (at the cost of a little
14626 # extra space).
14627 freebsd2.2*)
14628 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14629 hardcode_libdir_flag_spec_F77='-R$libdir'
14630 hardcode_direct_F77=yes
14631 hardcode_shlibpath_var_F77=no
14634 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14635 freebsd2*)
14636 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14637 hardcode_direct_F77=yes
14638 hardcode_minus_L_F77=yes
14639 hardcode_shlibpath_var_F77=no
14642 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14643 freebsd* | kfreebsd*-gnu | dragonfly*)
14644 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14645 hardcode_libdir_flag_spec_F77='-R$libdir'
14646 hardcode_direct_F77=yes
14647 hardcode_shlibpath_var_F77=no
14650 hpux9*)
14651 if test "$GCC" = yes; then
14652 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'
14653 else
14654 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'
14656 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14657 hardcode_libdir_separator_F77=:
14658 hardcode_direct_F77=yes
14660 # hardcode_minus_L: Not really in the search PATH,
14661 # but as the default location of the library.
14662 hardcode_minus_L_F77=yes
14663 export_dynamic_flag_spec_F77='${wl}-E'
14666 hpux10*)
14667 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14668 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14669 else
14670 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14672 if test "$with_gnu_ld" = no; then
14673 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14674 hardcode_libdir_separator_F77=:
14676 hardcode_direct_F77=yes
14677 export_dynamic_flag_spec_F77='${wl}-E'
14679 # hardcode_minus_L: Not really in the search PATH,
14680 # but as the default location of the library.
14681 hardcode_minus_L_F77=yes
14685 hpux11*)
14686 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14687 case $host_cpu in
14688 hppa*64*)
14689 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14691 ia64*)
14692 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14695 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14697 esac
14698 else
14699 case $host_cpu in
14700 hppa*64*)
14701 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14703 ia64*)
14704 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14707 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14709 esac
14711 if test "$with_gnu_ld" = no; then
14712 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14713 hardcode_libdir_separator_F77=:
14715 case $host_cpu in
14716 hppa*64*|ia64*)
14717 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14718 hardcode_direct_F77=no
14719 hardcode_shlibpath_var_F77=no
14722 hardcode_direct_F77=yes
14723 export_dynamic_flag_spec_F77='${wl}-E'
14725 # hardcode_minus_L: Not really in the search PATH,
14726 # but as the default location of the library.
14727 hardcode_minus_L_F77=yes
14729 esac
14733 irix5* | irix6* | nonstopux*)
14734 if test "$GCC" = yes; then
14735 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'
14736 else
14737 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'
14738 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14740 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14741 hardcode_libdir_separator_F77=:
14742 link_all_deplibs_F77=yes
14745 netbsd*)
14746 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14747 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
14748 else
14749 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
14751 hardcode_libdir_flag_spec_F77='-R$libdir'
14752 hardcode_direct_F77=yes
14753 hardcode_shlibpath_var_F77=no
14756 newsos6)
14757 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14758 hardcode_direct_F77=yes
14759 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14760 hardcode_libdir_separator_F77=:
14761 hardcode_shlibpath_var_F77=no
14764 openbsd*)
14765 hardcode_direct_F77=yes
14766 hardcode_shlibpath_var_F77=no
14767 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14768 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14769 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
14770 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14771 export_dynamic_flag_spec_F77='${wl}-E'
14772 else
14773 case $host_os in
14774 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14775 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14776 hardcode_libdir_flag_spec_F77='-R$libdir'
14779 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14780 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14782 esac
14786 os2*)
14787 hardcode_libdir_flag_spec_F77='-L$libdir'
14788 hardcode_minus_L_F77=yes
14789 allow_undefined_flag_F77=unsupported
14790 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'
14791 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14794 osf3*)
14795 if test "$GCC" = yes; then
14796 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14797 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'
14798 else
14799 allow_undefined_flag_F77=' -expect_unresolved \*'
14800 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'
14802 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14803 hardcode_libdir_separator_F77=:
14806 osf4* | osf5*) # as osf3* with the addition of -msym flag
14807 if test "$GCC" = yes; then
14808 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14809 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'
14810 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14811 else
14812 allow_undefined_flag_F77=' -expect_unresolved \*'
14813 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'
14814 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~
14815 $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'
14817 # Both c and cxx compiler support -rpath directly
14818 hardcode_libdir_flag_spec_F77='-rpath $libdir'
14820 hardcode_libdir_separator_F77=:
14823 solaris*)
14824 no_undefined_flag_F77=' -z text'
14825 if test "$GCC" = yes; then
14826 wlarc='${wl}'
14827 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14828 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14829 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14830 else
14831 wlarc=''
14832 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14833 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14834 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14836 hardcode_libdir_flag_spec_F77='-R$libdir'
14837 hardcode_shlibpath_var_F77=no
14838 case $host_os in
14839 solaris2.[0-5] | solaris2.[0-5].*) ;;
14841 # The compiler driver will combine linker options so we
14842 # cannot just pass the convience library names through
14843 # without $wl, iff we do not link with $LD.
14844 # Luckily, gcc supports the same syntax we need for Sun Studio.
14845 # Supported since Solaris 2.6 (maybe 2.5.1?)
14846 case $wlarc in
14848 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
14850 whole_archive_flag_spec_F77='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
14851 esac ;;
14852 esac
14853 link_all_deplibs_F77=yes
14856 sunos4*)
14857 if test "x$host_vendor" = xsequent; then
14858 # Use $CC to link under sequent, because it throws in some extra .o
14859 # files that make .init and .fini sections work.
14860 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14861 else
14862 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14864 hardcode_libdir_flag_spec_F77='-L$libdir'
14865 hardcode_direct_F77=yes
14866 hardcode_minus_L_F77=yes
14867 hardcode_shlibpath_var_F77=no
14870 sysv4)
14871 case $host_vendor in
14872 sni)
14873 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14874 hardcode_direct_F77=yes # is this really true???
14876 siemens)
14877 ## LD is ld it makes a PLAMLIB
14878 ## CC just makes a GrossModule.
14879 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14880 reload_cmds_F77='$CC -r -o $output$reload_objs'
14881 hardcode_direct_F77=no
14883 motorola)
14884 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14885 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
14887 esac
14888 runpath_var='LD_RUN_PATH'
14889 hardcode_shlibpath_var_F77=no
14892 sysv4.3*)
14893 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14894 hardcode_shlibpath_var_F77=no
14895 export_dynamic_flag_spec_F77='-Bexport'
14898 sysv4*MP*)
14899 if test -d /usr/nec; then
14900 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14901 hardcode_shlibpath_var_F77=no
14902 runpath_var=LD_RUN_PATH
14903 hardcode_runpath_var=yes
14904 ld_shlibs_F77=yes
14908 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
14909 no_undefined_flag_F77='${wl}-z,text'
14910 archive_cmds_need_lc_F77=no
14911 hardcode_shlibpath_var_F77=no
14912 runpath_var='LD_RUN_PATH'
14914 if test "$GCC" = yes; then
14915 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14916 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14917 else
14918 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14919 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14923 sysv5* | sco3.2v5* | sco5v6*)
14924 # Note: We can NOT use -z defs as we might desire, because we do not
14925 # link with -lc, and that would cause any symbols used from libc to
14926 # always be unresolved, which means just about no library would
14927 # ever link correctly. If we're not using GNU ld we use -z text
14928 # though, which does catch some bad symbols but isn't as heavy-handed
14929 # as -z defs.
14930 no_undefined_flag_F77='${wl}-z,text'
14931 allow_undefined_flag_F77='${wl}-z,nodefs'
14932 archive_cmds_need_lc_F77=no
14933 hardcode_shlibpath_var_F77=no
14934 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
14935 hardcode_libdir_separator_F77=':'
14936 link_all_deplibs_F77=yes
14937 export_dynamic_flag_spec_F77='${wl}-Bexport'
14938 runpath_var='LD_RUN_PATH'
14940 if test "$GCC" = yes; then
14941 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14942 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14943 else
14944 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14945 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14949 uts4*)
14950 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14951 hardcode_libdir_flag_spec_F77='-L$libdir'
14952 hardcode_shlibpath_var_F77=no
14956 ld_shlibs_F77=no
14958 esac
14961 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
14962 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
14963 test "$ld_shlibs_F77" = no && can_build_shared=no
14966 # Do we need to explicitly link libc?
14968 case "x$archive_cmds_need_lc_F77" in
14969 x|xyes)
14970 # Assume -lc should be added
14971 archive_cmds_need_lc_F77=yes
14973 if test "$enable_shared" = yes && test "$GCC" = yes; then
14974 case $archive_cmds_F77 in
14975 *'~'*)
14976 # FIXME: we may have to deal with multi-command sequences.
14978 '$CC '*)
14979 # Test whether the compiler implicitly links with -lc since on some
14980 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14981 # to ld, don't add -lc before -lgcc.
14982 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14983 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
14984 $rm conftest*
14985 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14987 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14988 (eval $ac_compile) 2>&5
14989 ac_status=$?
14990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14991 (exit $ac_status); } 2>conftest.err; then
14992 soname=conftest
14993 lib=conftest
14994 libobjs=conftest.$ac_objext
14995 deplibs=
14996 wl=$lt_prog_compiler_wl_F77
14997 pic_flag=$lt_prog_compiler_pic_F77
14998 compiler_flags=-v
14999 linker_flags=-v
15000 verstring=
15001 output_objdir=.
15002 libname=conftest
15003 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15004 allow_undefined_flag_F77=
15005 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15006 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15007 ac_status=$?
15008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15009 (exit $ac_status); }
15010 then
15011 archive_cmds_need_lc_F77=no
15012 else
15013 archive_cmds_need_lc_F77=yes
15015 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15016 else
15017 cat conftest.err 1>&5
15019 $rm conftest*
15020 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15021 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
15023 esac
15026 esac
15028 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15029 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
15030 library_names_spec=
15031 libname_spec='lib$name'
15032 soname_spec=
15033 shrext_cmds=".so"
15034 postinstall_cmds=
15035 postuninstall_cmds=
15036 finish_cmds=
15037 finish_eval=
15038 shlibpath_var=
15039 shlibpath_overrides_runpath=unknown
15040 version_type=none
15041 dynamic_linker="$host_os ld.so"
15042 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15043 if test "$GCC" = yes; then
15044 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15045 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
15046 # if the path contains ";" then we assume it to be the separator
15047 # otherwise default to the standard path separator (i.e. ":") - it is
15048 # assumed that no part of a normal pathname contains ";" but that should
15049 # okay in the real world where ";" in dirpaths is itself problematic.
15050 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15051 else
15052 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15054 else
15055 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15057 need_lib_prefix=unknown
15058 hardcode_into_libs=no
15060 # when you set need_version to no, make sure it does not cause -set_version
15061 # flags to be left without arguments
15062 need_version=unknown
15064 case $host_os in
15065 aix3*)
15066 version_type=linux
15067 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15068 shlibpath_var=LIBPATH
15070 # AIX 3 has no versioning support, so we append a major version to the name.
15071 soname_spec='${libname}${release}${shared_ext}$major'
15074 aix4* | aix5*)
15075 version_type=linux
15076 need_lib_prefix=no
15077 need_version=no
15078 hardcode_into_libs=yes
15079 if test "$host_cpu" = ia64; then
15080 # AIX 5 supports IA64
15081 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15082 shlibpath_var=LD_LIBRARY_PATH
15083 else
15084 # With GCC up to 2.95.x, collect2 would create an import file
15085 # for dependence libraries. The import file would start with
15086 # the line `#! .'. This would cause the generated library to
15087 # depend on `.', always an invalid library. This was fixed in
15088 # development snapshots of GCC prior to 3.0.
15089 case $host_os in
15090 aix4 | aix4.[01] | aix4.[01].*)
15091 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15092 echo ' yes '
15093 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15095 else
15096 can_build_shared=no
15099 esac
15100 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15101 # soname into executable. Probably we can add versioning support to
15102 # collect2, so additional links can be useful in future.
15103 if test "$aix_use_runtimelinking" = yes; then
15104 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15105 # instead of lib<name>.a to let people know that these are not
15106 # typical AIX shared libraries.
15107 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15108 else
15109 # We preserve .a as extension for shared libraries through AIX4.2
15110 # and later when we are not doing run time linking.
15111 library_names_spec='${libname}${release}.a $libname.a'
15112 soname_spec='${libname}${release}${shared_ext}$major'
15114 shlibpath_var=LIBPATH
15118 amigaos*)
15119 library_names_spec='$libname.ixlibrary $libname.a'
15120 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15121 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'
15124 beos*)
15125 library_names_spec='${libname}${shared_ext}'
15126 dynamic_linker="$host_os ld.so"
15127 shlibpath_var=LIBRARY_PATH
15130 bsdi[45]*)
15131 version_type=linux
15132 need_version=no
15133 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15134 soname_spec='${libname}${release}${shared_ext}$major'
15135 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15136 shlibpath_var=LD_LIBRARY_PATH
15137 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15138 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15139 # the default ld.so.conf also contains /usr/contrib/lib and
15140 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15141 # libtool to hard-code these into programs
15144 cygwin* | mingw* | pw32*)
15145 version_type=windows
15146 shrext_cmds=".dll"
15147 need_version=no
15148 need_lib_prefix=no
15150 case $GCC,$host_os in
15151 yes,cygwin* | yes,mingw* | yes,pw32*)
15152 library_names_spec='$libname.dll.a'
15153 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15154 postinstall_cmds='base_file=`basename \${file}`~
15155 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15156 dldir=$destdir/`dirname \$dlpath`~
15157 test -d \$dldir || mkdir -p \$dldir~
15158 $install_prog $dir/$dlname \$dldir/$dlname~
15159 chmod a+x \$dldir/$dlname'
15160 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15161 dlpath=$dir/\$dldll~
15162 $rm \$dlpath'
15163 shlibpath_overrides_runpath=yes
15165 case $host_os in
15166 cygwin*)
15167 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15168 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15169 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15171 mingw*)
15172 # MinGW DLLs use traditional 'lib' prefix
15173 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15174 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15175 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15176 # It is most probably a Windows format PATH printed by
15177 # mingw gcc, but we are running on Cygwin. Gcc prints its search
15178 # path with ; separators, and with drive letters. We can handle the
15179 # drive letters (cygwin fileutils understands them), so leave them,
15180 # especially as we might pass files found there to a mingw objdump,
15181 # which wouldn't understand a cygwinified path. Ahh.
15182 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15183 else
15184 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15187 pw32*)
15188 # pw32 DLLs use 'pw' prefix rather than 'lib'
15189 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15191 esac
15195 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15197 esac
15198 dynamic_linker='Win32 ld.exe'
15199 # FIXME: first we should search . and the directory the executable is in
15200 shlibpath_var=PATH
15203 darwin* | rhapsody*)
15204 dynamic_linker="$host_os dyld"
15205 version_type=darwin
15206 need_lib_prefix=no
15207 need_version=no
15208 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15209 soname_spec='${libname}${release}${major}$shared_ext'
15210 shlibpath_overrides_runpath=yes
15211 shlibpath_var=DYLD_LIBRARY_PATH
15212 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15213 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
15214 if test "$GCC" = yes; then
15215 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
15216 else
15217 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
15219 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15222 dgux*)
15223 version_type=linux
15224 need_lib_prefix=no
15225 need_version=no
15226 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15227 soname_spec='${libname}${release}${shared_ext}$major'
15228 shlibpath_var=LD_LIBRARY_PATH
15231 freebsd1*)
15232 dynamic_linker=no
15235 kfreebsd*-gnu)
15236 version_type=linux
15237 need_lib_prefix=no
15238 need_version=no
15239 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15240 soname_spec='${libname}${release}${shared_ext}$major'
15241 shlibpath_var=LD_LIBRARY_PATH
15242 shlibpath_overrides_runpath=no
15243 hardcode_into_libs=yes
15244 dynamic_linker='GNU ld.so'
15247 freebsd* | dragonfly*)
15248 # DragonFly does not have aout. When/if they implement a new
15249 # versioning mechanism, adjust this.
15250 if test -x /usr/bin/objformat; then
15251 objformat=`/usr/bin/objformat`
15252 else
15253 case $host_os in
15254 freebsd[123]*) objformat=aout ;;
15255 *) objformat=elf ;;
15256 esac
15258 version_type=freebsd-$objformat
15259 case $version_type in
15260 freebsd-elf*)
15261 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15262 need_version=no
15263 need_lib_prefix=no
15265 freebsd-*)
15266 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15267 need_version=yes
15269 esac
15270 shlibpath_var=LD_LIBRARY_PATH
15271 case $host_os in
15272 freebsd2*)
15273 shlibpath_overrides_runpath=yes
15275 freebsd3.[01]* | freebsdelf3.[01]*)
15276 shlibpath_overrides_runpath=yes
15277 hardcode_into_libs=yes
15279 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15280 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15281 shlibpath_overrides_runpath=no
15282 hardcode_into_libs=yes
15284 freebsd*) # from 4.6 on
15285 shlibpath_overrides_runpath=yes
15286 hardcode_into_libs=yes
15288 esac
15291 gnu*)
15292 version_type=linux
15293 need_lib_prefix=no
15294 need_version=no
15295 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15296 soname_spec='${libname}${release}${shared_ext}$major'
15297 shlibpath_var=LD_LIBRARY_PATH
15298 hardcode_into_libs=yes
15301 hpux9* | hpux10* | hpux11*)
15302 # Give a soname corresponding to the major version so that dld.sl refuses to
15303 # link against other versions.
15304 version_type=sunos
15305 need_lib_prefix=no
15306 need_version=no
15307 case $host_cpu in
15308 ia64*)
15309 shrext_cmds='.so'
15310 hardcode_into_libs=yes
15311 dynamic_linker="$host_os dld.so"
15312 shlibpath_var=LD_LIBRARY_PATH
15313 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15314 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15315 soname_spec='${libname}${release}${shared_ext}$major'
15316 if test "X$HPUX_IA64_MODE" = X32; then
15317 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15318 else
15319 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15321 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15323 hppa*64*)
15324 shrext_cmds='.sl'
15325 hardcode_into_libs=yes
15326 dynamic_linker="$host_os dld.sl"
15327 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15328 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15329 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15330 soname_spec='${libname}${release}${shared_ext}$major'
15331 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15332 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15335 shrext_cmds='.sl'
15336 dynamic_linker="$host_os dld.sl"
15337 shlibpath_var=SHLIB_PATH
15338 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15339 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15340 soname_spec='${libname}${release}${shared_ext}$major'
15342 esac
15343 # HP-UX runs *really* slowly unless shared libraries are mode 555.
15344 postinstall_cmds='chmod 555 $lib'
15347 interix3*)
15348 version_type=linux
15349 need_lib_prefix=no
15350 need_version=no
15351 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15352 soname_spec='${libname}${release}${shared_ext}$major'
15353 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15354 shlibpath_var=LD_LIBRARY_PATH
15355 shlibpath_overrides_runpath=no
15356 hardcode_into_libs=yes
15359 irix5* | irix6* | nonstopux*)
15360 case $host_os in
15361 nonstopux*) version_type=nonstopux ;;
15363 if test "$lt_cv_prog_gnu_ld" = yes; then
15364 version_type=linux
15365 else
15366 version_type=irix
15367 fi ;;
15368 esac
15369 need_lib_prefix=no
15370 need_version=no
15371 soname_spec='${libname}${release}${shared_ext}$major'
15372 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15373 case $host_os in
15374 irix5* | nonstopux*)
15375 libsuff= shlibsuff=
15378 case $LD in # libtool.m4 will add one of these switches to LD
15379 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15380 libsuff= shlibsuff= libmagic=32-bit;;
15381 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15382 libsuff=32 shlibsuff=N32 libmagic=N32;;
15383 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15384 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15385 *) libsuff= shlibsuff= libmagic=never-match;;
15386 esac
15388 esac
15389 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15390 shlibpath_overrides_runpath=no
15391 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15392 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15393 hardcode_into_libs=yes
15396 # No shared lib support for Linux oldld, aout, or coff.
15397 linux*oldld* | linux*aout* | linux*coff*)
15398 dynamic_linker=no
15401 # This must be Linux ELF.
15402 linux*)
15403 version_type=linux
15404 need_lib_prefix=no
15405 need_version=no
15406 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15407 soname_spec='${libname}${release}${shared_ext}$major'
15408 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15409 shlibpath_var=LD_LIBRARY_PATH
15410 shlibpath_overrides_runpath=no
15411 # This implies no fast_install, which is unacceptable.
15412 # Some rework will be needed to allow for fast_install
15413 # before this can be enabled.
15414 hardcode_into_libs=yes
15416 # find out which ABI we are using
15417 libsuff=
15418 case "$host_cpu" in
15419 x86_64*|s390x*|powerpc64*)
15420 echo '#line 15420 "configure"' > conftest.$ac_ext
15421 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15422 (eval $ac_compile) 2>&5
15423 ac_status=$?
15424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15425 (exit $ac_status); }; then
15426 case `/usr/bin/file conftest.$ac_objext` in
15427 *64-bit*)
15428 libsuff=64
15429 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
15431 esac
15433 rm -rf conftest*
15435 esac
15437 # Append ld.so.conf contents to the search path
15438 if test -f /etc/ld.so.conf; then
15439 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/^ *//;s/#.*//;/^[^\/]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
15440 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
15443 # We used to test for /lib/ld.so.1 and disable shared libraries on
15444 # powerpc, because MkLinux only supported shared libraries with the
15445 # GNU dynamic linker. Since this was broken with cross compilers,
15446 # most powerpc-linux boxes support dynamic linking these days and
15447 # people can always --disable-shared, the test was removed, and we
15448 # assume the GNU/Linux dynamic linker is in use.
15449 dynamic_linker='GNU/Linux ld.so'
15452 knetbsd*-gnu)
15453 version_type=linux
15454 need_lib_prefix=no
15455 need_version=no
15456 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15457 soname_spec='${libname}${release}${shared_ext}$major'
15458 shlibpath_var=LD_LIBRARY_PATH
15459 shlibpath_overrides_runpath=no
15460 hardcode_into_libs=yes
15461 dynamic_linker='GNU ld.so'
15464 netbsd*)
15465 version_type=sunos
15466 need_lib_prefix=no
15467 need_version=no
15468 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15469 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15470 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15471 dynamic_linker='NetBSD (a.out) ld.so'
15472 else
15473 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15474 soname_spec='${libname}${release}${shared_ext}$major'
15475 dynamic_linker='NetBSD ld.elf_so'
15477 shlibpath_var=LD_LIBRARY_PATH
15478 shlibpath_overrides_runpath=yes
15479 hardcode_into_libs=yes
15482 newsos6)
15483 version_type=linux
15484 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15485 shlibpath_var=LD_LIBRARY_PATH
15486 shlibpath_overrides_runpath=yes
15489 nto-qnx*)
15490 version_type=linux
15491 need_lib_prefix=no
15492 need_version=no
15493 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15494 soname_spec='${libname}${release}${shared_ext}$major'
15495 shlibpath_var=LD_LIBRARY_PATH
15496 shlibpath_overrides_runpath=yes
15499 openbsd*)
15500 version_type=sunos
15501 sys_lib_dlsearch_path_spec="/usr/lib"
15502 need_lib_prefix=no
15503 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15504 case $host_os in
15505 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15506 *) need_version=no ;;
15507 esac
15508 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15509 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15510 shlibpath_var=LD_LIBRARY_PATH
15511 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15512 case $host_os in
15513 openbsd2.[89] | openbsd2.[89].*)
15514 shlibpath_overrides_runpath=no
15517 shlibpath_overrides_runpath=yes
15519 esac
15520 else
15521 shlibpath_overrides_runpath=yes
15525 os2*)
15526 libname_spec='$name'
15527 shrext_cmds=".dll"
15528 need_lib_prefix=no
15529 library_names_spec='$libname${shared_ext} $libname.a'
15530 dynamic_linker='OS/2 ld.exe'
15531 shlibpath_var=LIBPATH
15534 osf3* | osf4* | osf5*)
15535 version_type=osf
15536 need_lib_prefix=no
15537 need_version=no
15538 soname_spec='${libname}${release}${shared_ext}$major'
15539 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15540 shlibpath_var=LD_LIBRARY_PATH
15541 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15542 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15545 solaris*)
15546 version_type=linux
15547 need_lib_prefix=no
15548 need_version=no
15549 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15550 soname_spec='${libname}${release}${shared_ext}$major'
15551 shlibpath_var=LD_LIBRARY_PATH
15552 shlibpath_overrides_runpath=yes
15553 hardcode_into_libs=yes
15554 # ldd complains unless libraries are executable
15555 postinstall_cmds='chmod +x $lib'
15558 sunos4*)
15559 version_type=sunos
15560 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15561 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15562 shlibpath_var=LD_LIBRARY_PATH
15563 shlibpath_overrides_runpath=yes
15564 if test "$with_gnu_ld" = yes; then
15565 need_lib_prefix=no
15567 need_version=yes
15570 sysv4 | sysv4.3*)
15571 version_type=linux
15572 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15573 soname_spec='${libname}${release}${shared_ext}$major'
15574 shlibpath_var=LD_LIBRARY_PATH
15575 case $host_vendor in
15576 sni)
15577 shlibpath_overrides_runpath=no
15578 need_lib_prefix=no
15579 export_dynamic_flag_spec='${wl}-Blargedynsym'
15580 runpath_var=LD_RUN_PATH
15582 siemens)
15583 need_lib_prefix=no
15585 motorola)
15586 need_lib_prefix=no
15587 need_version=no
15588 shlibpath_overrides_runpath=no
15589 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15591 esac
15594 sysv4*MP*)
15595 if test -d /usr/nec ;then
15596 version_type=linux
15597 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15598 soname_spec='$libname${shared_ext}.$major'
15599 shlibpath_var=LD_LIBRARY_PATH
15603 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15604 version_type=freebsd-elf
15605 need_lib_prefix=no
15606 need_version=no
15607 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15608 soname_spec='${libname}${release}${shared_ext}$major'
15609 shlibpath_var=LD_LIBRARY_PATH
15610 hardcode_into_libs=yes
15611 if test "$with_gnu_ld" = yes; then
15612 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15613 shlibpath_overrides_runpath=no
15614 else
15615 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15616 shlibpath_overrides_runpath=yes
15617 case $host_os in
15618 sco3.2v5*)
15619 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15621 esac
15623 sys_lib_dlsearch_path_spec='/usr/lib'
15626 uts4*)
15627 version_type=linux
15628 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15629 soname_spec='${libname}${release}${shared_ext}$major'
15630 shlibpath_var=LD_LIBRARY_PATH
15634 dynamic_linker=no
15636 esac
15637 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15638 echo "${ECHO_T}$dynamic_linker" >&6; }
15639 test "$dynamic_linker" = no && can_build_shared=no
15641 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15642 if test "$GCC" = yes; then
15643 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15646 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15647 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
15648 hardcode_action_F77=
15649 if test -n "$hardcode_libdir_flag_spec_F77" || \
15650 test -n "$runpath_var_F77" || \
15651 test "X$hardcode_automatic_F77" = "Xyes" ; then
15653 # We can hardcode non-existant directories.
15654 if test "$hardcode_direct_F77" != no &&
15655 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15656 # have to relink, otherwise we might link with an installed library
15657 # when we should be linking with a yet-to-be-installed one
15658 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
15659 test "$hardcode_minus_L_F77" != no; then
15660 # Linking always hardcodes the temporary library directory.
15661 hardcode_action_F77=relink
15662 else
15663 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15664 hardcode_action_F77=immediate
15666 else
15667 # We cannot hardcode anything, or else we can only hardcode existing
15668 # directories.
15669 hardcode_action_F77=unsupported
15671 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
15672 echo "${ECHO_T}$hardcode_action_F77" >&6; }
15674 if test "$hardcode_action_F77" = relink; then
15675 # Fast installation is not supported
15676 enable_fast_install=no
15677 elif test "$shlibpath_overrides_runpath" = yes ||
15678 test "$enable_shared" = no; then
15679 # Fast installation is not necessary
15680 enable_fast_install=needless
15684 # The else clause should only fire when bootstrapping the
15685 # libtool distribution, otherwise you forgot to ship ltmain.sh
15686 # with your package, and you will get complaints that there are
15687 # no rules to generate ltmain.sh.
15688 if test -f "$ltmain"; then
15689 # See if we are running on zsh, and set the options which allow our commands through
15690 # without removal of \ escapes.
15691 if test -n "${ZSH_VERSION+set}" ; then
15692 setopt NO_GLOB_SUBST
15694 # Now quote all the things that may contain metacharacters while being
15695 # careful not to overquote the AC_SUBSTed values. We take copies of the
15696 # variables and quote the copies for generation of the libtool script.
15697 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
15698 SED SHELL STRIP \
15699 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15700 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15701 deplibs_check_method reload_flag reload_cmds need_locks \
15702 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15703 lt_cv_sys_global_symbol_to_c_name_address \
15704 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15705 old_postinstall_cmds old_postuninstall_cmds \
15706 compiler_F77 \
15707 CC_F77 \
15708 LD_F77 \
15709 lt_prog_compiler_wl_F77 \
15710 lt_prog_compiler_pic_F77 \
15711 lt_prog_compiler_static_F77 \
15712 lt_prog_compiler_no_builtin_flag_F77 \
15713 export_dynamic_flag_spec_F77 \
15714 thread_safe_flag_spec_F77 \
15715 whole_archive_flag_spec_F77 \
15716 enable_shared_with_static_runtimes_F77 \
15717 old_archive_cmds_F77 \
15718 old_archive_from_new_cmds_F77 \
15719 predep_objects_F77 \
15720 postdep_objects_F77 \
15721 predeps_F77 \
15722 postdeps_F77 \
15723 compiler_lib_search_path_F77 \
15724 archive_cmds_F77 \
15725 archive_expsym_cmds_F77 \
15726 postinstall_cmds_F77 \
15727 postuninstall_cmds_F77 \
15728 old_archive_from_expsyms_cmds_F77 \
15729 allow_undefined_flag_F77 \
15730 no_undefined_flag_F77 \
15731 export_symbols_cmds_F77 \
15732 hardcode_libdir_flag_spec_F77 \
15733 hardcode_libdir_flag_spec_ld_F77 \
15734 hardcode_libdir_separator_F77 \
15735 hardcode_automatic_F77 \
15736 module_cmds_F77 \
15737 module_expsym_cmds_F77 \
15738 lt_cv_prog_compiler_c_o_F77 \
15739 exclude_expsyms_F77 \
15740 include_expsyms_F77; do
15742 case $var in
15743 old_archive_cmds_F77 | \
15744 old_archive_from_new_cmds_F77 | \
15745 archive_cmds_F77 | \
15746 archive_expsym_cmds_F77 | \
15747 module_cmds_F77 | \
15748 module_expsym_cmds_F77 | \
15749 old_archive_from_expsyms_cmds_F77 | \
15750 export_symbols_cmds_F77 | \
15751 extract_expsyms_cmds | reload_cmds | finish_cmds | \
15752 postinstall_cmds | postuninstall_cmds | \
15753 old_postinstall_cmds | old_postuninstall_cmds | \
15754 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15755 # Double-quote double-evaled strings.
15756 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15759 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15761 esac
15762 done
15764 case $lt_echo in
15765 *'\$0 --fallback-echo"')
15766 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15768 esac
15770 cfgfile="$ofile"
15772 cat <<__EOF__ >> "$cfgfile"
15773 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
15775 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15777 # Shell to use when invoking shell scripts.
15778 SHELL=$lt_SHELL
15780 # Whether or not to build shared libraries.
15781 build_libtool_libs=$enable_shared
15783 # Whether or not to build static libraries.
15784 build_old_libs=$enable_static
15786 # Whether or not to add -lc for building shared libraries.
15787 build_libtool_need_lc=$archive_cmds_need_lc_F77
15789 # Whether or not to disallow shared libs when runtime libs are static
15790 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
15792 # Whether or not to optimize for fast installation.
15793 fast_install=$enable_fast_install
15795 # The host system.
15796 host_alias=$host_alias
15797 host=$host
15798 host_os=$host_os
15800 # The build system.
15801 build_alias=$build_alias
15802 build=$build
15803 build_os=$build_os
15805 # An echo program that does not interpret backslashes.
15806 echo=$lt_echo
15808 # The archiver.
15809 AR=$lt_AR
15810 AR_FLAGS=$lt_AR_FLAGS
15812 # A C compiler.
15813 LTCC=$lt_LTCC
15815 # LTCC compiler flags.
15816 LTCFLAGS=$lt_LTCFLAGS
15818 # A language-specific compiler.
15819 CC=$lt_compiler_F77
15821 # Is the compiler the GNU C compiler?
15822 with_gcc=$GCC_F77
15824 # An ERE matcher.
15825 EGREP=$lt_EGREP
15827 # The linker used to build libraries.
15828 LD=$lt_LD_F77
15830 # Whether we need hard or soft links.
15831 LN_S=$lt_LN_S
15833 # A BSD-compatible nm program.
15834 NM=$lt_NM
15836 # A symbol stripping program
15837 STRIP=$lt_STRIP
15839 # Used to examine libraries when file_magic_cmd begins "file"
15840 MAGIC_CMD=$MAGIC_CMD
15842 # Used on cygwin: DLL creation program.
15843 DLLTOOL="$DLLTOOL"
15845 # Used on cygwin: object dumper.
15846 OBJDUMP="$OBJDUMP"
15848 # Used on cygwin: assembler.
15849 AS="$AS"
15851 # The name of the directory that contains temporary libtool files.
15852 objdir=$objdir
15854 # How to create reloadable object files.
15855 reload_flag=$lt_reload_flag
15856 reload_cmds=$lt_reload_cmds
15858 # How to pass a linker flag through the compiler.
15859 wl=$lt_lt_prog_compiler_wl_F77
15861 # Object file suffix (normally "o").
15862 objext="$ac_objext"
15864 # Old archive suffix (normally "a").
15865 libext="$libext"
15867 # Shared library suffix (normally ".so").
15868 shrext_cmds='$shrext_cmds'
15870 # Executable file suffix (normally "").
15871 exeext="$exeext"
15873 # Additional compiler flags for building library objects.
15874 pic_flag=$lt_lt_prog_compiler_pic_F77
15875 pic_mode=$pic_mode
15877 # What is the maximum length of a command?
15878 max_cmd_len=$lt_cv_sys_max_cmd_len
15880 # Does compiler simultaneously support -c and -o options?
15881 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
15883 # Must we lock files when doing compilation?
15884 need_locks=$lt_need_locks
15886 # Do we need the lib prefix for modules?
15887 need_lib_prefix=$need_lib_prefix
15889 # Do we need a version for libraries?
15890 need_version=$need_version
15892 # Whether dlopen is supported.
15893 dlopen_support=$enable_dlopen
15895 # Whether dlopen of programs is supported.
15896 dlopen_self=$enable_dlopen_self
15898 # Whether dlopen of statically linked programs is supported.
15899 dlopen_self_static=$enable_dlopen_self_static
15901 # Compiler flag to prevent dynamic linking.
15902 link_static_flag=$lt_lt_prog_compiler_static_F77
15904 # Compiler flag to turn off builtin functions.
15905 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
15907 # Compiler flag to allow reflexive dlopens.
15908 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
15910 # Compiler flag to generate shared objects directly from archives.
15911 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
15913 # Compiler flag to generate thread-safe objects.
15914 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
15916 # Library versioning type.
15917 version_type=$version_type
15919 # Format of library name prefix.
15920 libname_spec=$lt_libname_spec
15922 # List of archive names. First name is the real one, the rest are links.
15923 # The last name is the one that the linker finds with -lNAME.
15924 library_names_spec=$lt_library_names_spec
15926 # The coded name of the library, if different from the real name.
15927 soname_spec=$lt_soname_spec
15929 # Commands used to build and install an old-style archive.
15930 RANLIB=$lt_RANLIB
15931 old_archive_cmds=$lt_old_archive_cmds_F77
15932 old_postinstall_cmds=$lt_old_postinstall_cmds
15933 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15935 # Create an old-style archive from a shared archive.
15936 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
15938 # Create a temporary old-style archive to link instead of a shared archive.
15939 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
15941 # Commands used to build and install a shared archive.
15942 archive_cmds=$lt_archive_cmds_F77
15943 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
15944 postinstall_cmds=$lt_postinstall_cmds
15945 postuninstall_cmds=$lt_postuninstall_cmds
15947 # Commands used to build a loadable module (assumed same as above if empty)
15948 module_cmds=$lt_module_cmds_F77
15949 module_expsym_cmds=$lt_module_expsym_cmds_F77
15951 # Commands to strip libraries.
15952 old_striplib=$lt_old_striplib
15953 striplib=$lt_striplib
15955 # Dependencies to place before the objects being linked to create a
15956 # shared library.
15957 predep_objects=$lt_predep_objects_F77
15959 # Dependencies to place after the objects being linked to create a
15960 # shared library.
15961 postdep_objects=$lt_postdep_objects_F77
15963 # Dependencies to place before the objects being linked to create a
15964 # shared library.
15965 predeps=$lt_predeps_F77
15967 # Dependencies to place after the objects being linked to create a
15968 # shared library.
15969 postdeps=$lt_postdeps_F77
15971 # The library search path used internally by the compiler when linking
15972 # a shared library.
15973 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
15975 # Method to check whether dependent libraries are shared objects.
15976 deplibs_check_method=$lt_deplibs_check_method
15978 # Command to use when deplibs_check_method == file_magic.
15979 file_magic_cmd=$lt_file_magic_cmd
15981 # Flag that allows shared libraries with undefined symbols to be built.
15982 allow_undefined_flag=$lt_allow_undefined_flag_F77
15984 # Flag that forces no undefined symbols.
15985 no_undefined_flag=$lt_no_undefined_flag_F77
15987 # Commands used to finish a libtool library installation in a directory.
15988 finish_cmds=$lt_finish_cmds
15990 # Same as above, but a single script fragment to be evaled but not shown.
15991 finish_eval=$lt_finish_eval
15993 # Take the output of nm and produce a listing of raw symbols and C names.
15994 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15996 # Transform the output of nm in a proper C declaration
15997 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15999 # Transform the output of nm in a C name address pair
16000 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16002 # This is the shared library runtime path variable.
16003 runpath_var=$runpath_var
16005 # This is the shared library path variable.
16006 shlibpath_var=$shlibpath_var
16008 # Is shlibpath searched before the hard-coded library search path?
16009 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16011 # How to hardcode a shared library path into an executable.
16012 hardcode_action=$hardcode_action_F77
16014 # Whether we should hardcode library paths into libraries.
16015 hardcode_into_libs=$hardcode_into_libs
16017 # Flag to hardcode \$libdir into a binary during linking.
16018 # This must work even if \$libdir does not exist.
16019 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16021 # If ld is used when linking, flag to hardcode \$libdir into
16022 # a binary during linking. This must work even if \$libdir does
16023 # not exist.
16024 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16026 # Whether we need a single -rpath flag with a separated argument.
16027 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16029 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16030 # resulting binary.
16031 hardcode_direct=$hardcode_direct_F77
16033 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16034 # resulting binary.
16035 hardcode_minus_L=$hardcode_minus_L_F77
16037 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16038 # the resulting binary.
16039 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16041 # Set to yes if building a shared library automatically hardcodes DIR into the library
16042 # and all subsequent libraries and executables linked against it.
16043 hardcode_automatic=$hardcode_automatic_F77
16045 # Variables whose values should be saved in libtool wrapper scripts and
16046 # restored at relink time.
16047 variables_saved_for_relink="$variables_saved_for_relink"
16049 # Whether libtool must link a program against all its dependency libraries.
16050 link_all_deplibs=$link_all_deplibs_F77
16052 # Compile-time system search path for libraries
16053 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16055 # Run-time system search path for libraries
16056 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16058 # Fix the shell variable \$srcfile for the compiler.
16059 fix_srcfile_path="$fix_srcfile_path_F77"
16061 # Set to yes if exported symbols are required.
16062 always_export_symbols=$always_export_symbols_F77
16064 # The commands to list exported symbols.
16065 export_symbols_cmds=$lt_export_symbols_cmds_F77
16067 # The commands to extract the exported symbol list from a shared archive.
16068 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16070 # Symbols that should not be listed in the preloaded symbols.
16071 exclude_expsyms=$lt_exclude_expsyms_F77
16073 # Symbols that must always be exported.
16074 include_expsyms=$lt_include_expsyms_F77
16076 # ### END LIBTOOL TAG CONFIG: $tagname
16078 __EOF__
16081 else
16082 # If there is no Makefile yet, we rely on a make rule to execute
16083 # `config.status --recheck' to rerun these tests and create the
16084 # libtool script then.
16085 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16086 if test -f "$ltmain_in"; then
16087 test -f Makefile && make "$ltmain"
16092 ac_ext=cpp
16093 ac_cpp='$CXXCPP $CPPFLAGS'
16094 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16095 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16096 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16098 CC="$lt_save_CC"
16100 else
16101 tagname=""
16105 GCJ)
16106 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16109 # Source file extension for Java test sources.
16110 ac_ext=java
16112 # Object file extension for compiled Java test sources.
16113 objext=o
16114 objext_GCJ=$objext
16116 # Code to be used in simple compile tests
16117 lt_simple_compile_test_code="class foo {}\n"
16119 # Code to be used in simple link tests
16120 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
16122 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
16124 # If no C compiler was specified, use CC.
16125 LTCC=${LTCC-"$CC"}
16127 # If no C compiler flags were specified, use CFLAGS.
16128 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16130 # Allow CC to be a program name with arguments.
16131 compiler=$CC
16134 # save warnings/boilerplate of simple test code
16135 ac_outfile=conftest.$ac_objext
16136 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
16137 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16138 _lt_compiler_boilerplate=`cat conftest.err`
16139 $rm conftest*
16141 ac_outfile=conftest.$ac_objext
16142 printf "$lt_simple_link_test_code" >conftest.$ac_ext
16143 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16144 _lt_linker_boilerplate=`cat conftest.err`
16145 $rm conftest*
16148 # Allow CC to be a program name with arguments.
16149 lt_save_CC="$CC"
16150 CC=${GCJ-"gcj"}
16151 compiler=$CC
16152 compiler_GCJ=$CC
16153 for cc_temp in $compiler""; do
16154 case $cc_temp in
16155 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16156 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16157 \-*) ;;
16158 *) break;;
16159 esac
16160 done
16161 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16164 # GCJ did not exist at the time GCC didn't implicitly link libc in.
16165 archive_cmds_need_lc_GCJ=no
16167 old_archive_cmds_GCJ=$old_archive_cmds
16170 lt_prog_compiler_no_builtin_flag_GCJ=
16172 if test "$GCC" = yes; then
16173 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16176 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16177 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
16178 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16179 echo $ECHO_N "(cached) $ECHO_C" >&6
16180 else
16181 lt_cv_prog_compiler_rtti_exceptions=no
16182 ac_outfile=conftest.$ac_objext
16183 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16184 lt_compiler_flag="-fno-rtti -fno-exceptions"
16185 # Insert the option either (1) after the last *FLAGS variable, or
16186 # (2) before a word containing "conftest.", or (3) at the end.
16187 # Note that $ac_compile itself does not contain backslashes and begins
16188 # with a dollar sign (not a hyphen), so the echo should work correctly.
16189 # The option is referenced via a variable to avoid confusing sed.
16190 lt_compile=`echo "$ac_compile" | $SED \
16191 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16192 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16193 -e 's:$: $lt_compiler_flag:'`
16194 (eval echo "\"\$as_me:16194: $lt_compile\"" >&5)
16195 (eval "$lt_compile" 2>conftest.err)
16196 ac_status=$?
16197 cat conftest.err >&5
16198 echo "$as_me:16198: \$? = $ac_status" >&5
16199 if (exit $ac_status) && test -s "$ac_outfile"; then
16200 # The compiler can only warn and ignore the option if not recognized
16201 # So say no if there are warnings other than the usual output.
16202 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16203 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16204 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16205 lt_cv_prog_compiler_rtti_exceptions=yes
16208 $rm conftest*
16211 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16212 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
16214 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16215 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16216 else
16222 lt_prog_compiler_wl_GCJ=
16223 lt_prog_compiler_pic_GCJ=
16224 lt_prog_compiler_static_GCJ=
16226 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16227 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
16229 if test "$GCC" = yes; then
16230 lt_prog_compiler_wl_GCJ='-Wl,'
16231 lt_prog_compiler_static_GCJ='-static'
16233 case $host_os in
16234 aix*)
16235 # All AIX code is PIC.
16236 if test "$host_cpu" = ia64; then
16237 # AIX 5 now supports IA64 processor
16238 lt_prog_compiler_static_GCJ='-Bstatic'
16242 amigaos*)
16243 # FIXME: we need at least 68020 code to build shared libraries, but
16244 # adding the `-m68020' flag to GCC prevents building anything better,
16245 # like `-m68040'.
16246 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16249 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16250 # PIC is the default for these OSes.
16253 mingw* | pw32* | os2*)
16254 # This hack is so that the source file can tell whether it is being
16255 # built for inclusion in a dll (and should export symbols for example).
16256 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16259 darwin* | rhapsody*)
16260 # PIC is the default on this platform
16261 # Common symbols not allowed in MH_DYLIB files
16262 lt_prog_compiler_pic_GCJ='-fno-common'
16265 interix3*)
16266 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16267 # Instead, we relocate shared libraries at runtime.
16270 msdosdjgpp*)
16271 # Just because we use GCC doesn't mean we suddenly get shared libraries
16272 # on systems that don't support them.
16273 lt_prog_compiler_can_build_shared_GCJ=no
16274 enable_shared=no
16277 sysv4*MP*)
16278 if test -d /usr/nec; then
16279 lt_prog_compiler_pic_GCJ=-Kconform_pic
16283 hpux*)
16284 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16285 # not for PA HP-UX.
16286 case $host_cpu in
16287 hppa*64*|ia64*)
16288 # +Z the default
16291 lt_prog_compiler_pic_GCJ='-fPIC'
16293 esac
16297 lt_prog_compiler_pic_GCJ='-fPIC'
16299 esac
16300 else
16301 # PORTME Check for flag to pass linker flags through the system compiler.
16302 case $host_os in
16303 aix*)
16304 lt_prog_compiler_wl_GCJ='-Wl,'
16305 if test "$host_cpu" = ia64; then
16306 # AIX 5 now supports IA64 processor
16307 lt_prog_compiler_static_GCJ='-Bstatic'
16308 else
16309 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16312 darwin*)
16313 # PIC is the default on this platform
16314 # Common symbols not allowed in MH_DYLIB files
16315 case $cc_basename in
16316 xlc*)
16317 lt_prog_compiler_pic_GCJ='-qnocommon'
16318 lt_prog_compiler_wl_GCJ='-Wl,'
16320 esac
16323 mingw* | pw32* | os2*)
16324 # This hack is so that the source file can tell whether it is being
16325 # built for inclusion in a dll (and should export symbols for example).
16326 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16329 hpux9* | hpux10* | hpux11*)
16330 lt_prog_compiler_wl_GCJ='-Wl,'
16331 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16332 # not for PA HP-UX.
16333 case $host_cpu in
16334 hppa*64*|ia64*)
16335 # +Z the default
16338 lt_prog_compiler_pic_GCJ='+Z'
16340 esac
16341 # Is there a better lt_prog_compiler_static that works with the bundled CC?
16342 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
16345 irix5* | irix6* | nonstopux*)
16346 lt_prog_compiler_wl_GCJ='-Wl,'
16347 # PIC (with -KPIC) is the default.
16348 lt_prog_compiler_static_GCJ='-non_shared'
16351 newsos6)
16352 lt_prog_compiler_pic_GCJ='-KPIC'
16353 lt_prog_compiler_static_GCJ='-Bstatic'
16356 linux*)
16357 case $cc_basename in
16358 icc* | ecc*)
16359 lt_prog_compiler_wl_GCJ='-Wl,'
16360 lt_prog_compiler_pic_GCJ='-KPIC'
16361 lt_prog_compiler_static_GCJ='-static'
16363 pgcc* | pgf77* | pgf90* | pgf95*)
16364 # Portland Group compilers (*not* the Pentium gcc compiler,
16365 # which looks to be a dead project)
16366 lt_prog_compiler_wl_GCJ='-Wl,'
16367 lt_prog_compiler_pic_GCJ='-fpic'
16368 lt_prog_compiler_static_GCJ='-Bstatic'
16370 ccc*)
16371 lt_prog_compiler_wl_GCJ='-Wl,'
16372 # All Alpha code is PIC.
16373 lt_prog_compiler_static_GCJ='-non_shared'
16375 esac
16378 osf3* | osf4* | osf5*)
16379 lt_prog_compiler_wl_GCJ='-Wl,'
16380 # All OSF/1 code is PIC.
16381 lt_prog_compiler_static_GCJ='-non_shared'
16384 solaris*)
16385 lt_prog_compiler_pic_GCJ='-KPIC'
16386 lt_prog_compiler_static_GCJ='-Bstatic'
16387 case $cc_basename in
16388 f77* | f90* | f95*)
16389 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
16391 lt_prog_compiler_wl_GCJ='-Wl,';;
16392 esac
16395 sunos4*)
16396 lt_prog_compiler_wl_GCJ='-Qoption ld '
16397 lt_prog_compiler_pic_GCJ='-PIC'
16398 lt_prog_compiler_static_GCJ='-Bstatic'
16401 sysv4 | sysv4.2uw2* | sysv4.3*)
16402 lt_prog_compiler_wl_GCJ='-Wl,'
16403 lt_prog_compiler_pic_GCJ='-KPIC'
16404 lt_prog_compiler_static_GCJ='-Bstatic'
16407 sysv4*MP*)
16408 if test -d /usr/nec ;then
16409 lt_prog_compiler_pic_GCJ='-Kconform_pic'
16410 lt_prog_compiler_static_GCJ='-Bstatic'
16414 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16415 lt_prog_compiler_wl_GCJ='-Wl,'
16416 lt_prog_compiler_pic_GCJ='-KPIC'
16417 lt_prog_compiler_static_GCJ='-Bstatic'
16420 unicos*)
16421 lt_prog_compiler_wl_GCJ='-Wl,'
16422 lt_prog_compiler_can_build_shared_GCJ=no
16425 uts4*)
16426 lt_prog_compiler_pic_GCJ='-pic'
16427 lt_prog_compiler_static_GCJ='-Bstatic'
16431 lt_prog_compiler_can_build_shared_GCJ=no
16433 esac
16436 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
16437 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
16440 # Check to make sure the PIC flag actually works.
16442 if test -n "$lt_prog_compiler_pic_GCJ"; then
16444 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
16445 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
16446 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
16447 echo $ECHO_N "(cached) $ECHO_C" >&6
16448 else
16449 lt_prog_compiler_pic_works_GCJ=no
16450 ac_outfile=conftest.$ac_objext
16451 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16452 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
16453 # Insert the option either (1) after the last *FLAGS variable, or
16454 # (2) before a word containing "conftest.", or (3) at the end.
16455 # Note that $ac_compile itself does not contain backslashes and begins
16456 # with a dollar sign (not a hyphen), so the echo should work correctly.
16457 # The option is referenced via a variable to avoid confusing sed.
16458 lt_compile=`echo "$ac_compile" | $SED \
16459 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16460 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16461 -e 's:$: $lt_compiler_flag:'`
16462 (eval echo "\"\$as_me:16462: $lt_compile\"" >&5)
16463 (eval "$lt_compile" 2>conftest.err)
16464 ac_status=$?
16465 cat conftest.err >&5
16466 echo "$as_me:16466: \$? = $ac_status" >&5
16467 if (exit $ac_status) && test -s "$ac_outfile"; then
16468 # The compiler can only warn and ignore the option if not recognized
16469 # So say no if there are warnings other than the usual output.
16470 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16471 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16472 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16473 lt_prog_compiler_pic_works_GCJ=yes
16476 $rm conftest*
16479 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
16480 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
16482 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
16483 case $lt_prog_compiler_pic_GCJ in
16484 "" | " "*) ;;
16485 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
16486 esac
16487 else
16488 lt_prog_compiler_pic_GCJ=
16489 lt_prog_compiler_can_build_shared_GCJ=no
16493 case $host_os in
16494 # For platforms which do not support PIC, -DPIC is meaningless:
16495 *djgpp*)
16496 lt_prog_compiler_pic_GCJ=
16499 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
16501 esac
16504 # Check to make sure the static flag actually works.
16506 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
16507 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16508 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
16509 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
16510 echo $ECHO_N "(cached) $ECHO_C" >&6
16511 else
16512 lt_prog_compiler_static_works_GCJ=no
16513 save_LDFLAGS="$LDFLAGS"
16514 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16515 printf "$lt_simple_link_test_code" > conftest.$ac_ext
16516 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16517 # The linker can only warn and ignore the option if not recognized
16518 # So say no if there are warnings
16519 if test -s conftest.err; then
16520 # Append any errors to the config.log.
16521 cat conftest.err 1>&5
16522 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
16523 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16524 if diff conftest.exp conftest.er2 >/dev/null; then
16525 lt_prog_compiler_static_works_GCJ=yes
16527 else
16528 lt_prog_compiler_static_works_GCJ=yes
16531 $rm conftest*
16532 LDFLAGS="$save_LDFLAGS"
16535 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
16536 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
16538 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
16540 else
16541 lt_prog_compiler_static_GCJ=
16545 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16546 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
16547 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
16548 echo $ECHO_N "(cached) $ECHO_C" >&6
16549 else
16550 lt_cv_prog_compiler_c_o_GCJ=no
16551 $rm -r conftest 2>/dev/null
16552 mkdir conftest
16553 cd conftest
16554 mkdir out
16555 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16557 lt_compiler_flag="-o out/conftest2.$ac_objext"
16558 # Insert the option either (1) after the last *FLAGS variable, or
16559 # (2) before a word containing "conftest.", or (3) at the end.
16560 # Note that $ac_compile itself does not contain backslashes and begins
16561 # with a dollar sign (not a hyphen), so the echo should work correctly.
16562 lt_compile=`echo "$ac_compile" | $SED \
16563 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16564 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16565 -e 's:$: $lt_compiler_flag:'`
16566 (eval echo "\"\$as_me:16566: $lt_compile\"" >&5)
16567 (eval "$lt_compile" 2>out/conftest.err)
16568 ac_status=$?
16569 cat out/conftest.err >&5
16570 echo "$as_me:16570: \$? = $ac_status" >&5
16571 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16572 then
16573 # The compiler can only warn and ignore the option if not recognized
16574 # So say no if there are warnings
16575 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
16576 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16577 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16578 lt_cv_prog_compiler_c_o_GCJ=yes
16581 chmod u+w . 2>&5
16582 $rm conftest*
16583 # SGI C++ compiler will create directory out/ii_files/ for
16584 # template instantiation
16585 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16586 $rm out/* && rmdir out
16587 cd ..
16588 rmdir conftest
16589 $rm conftest*
16592 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
16593 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
16596 hard_links="nottested"
16597 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
16598 # do not overwrite the value of need_locks provided by the user
16599 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16600 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
16601 hard_links=yes
16602 $rm conftest*
16603 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16604 touch conftest.a
16605 ln conftest.a conftest.b 2>&5 || hard_links=no
16606 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16607 { echo "$as_me:$LINENO: result: $hard_links" >&5
16608 echo "${ECHO_T}$hard_links" >&6; }
16609 if test "$hard_links" = no; then
16610 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16611 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16612 need_locks=warn
16614 else
16615 need_locks=no
16618 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16619 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
16621 runpath_var=
16622 allow_undefined_flag_GCJ=
16623 enable_shared_with_static_runtimes_GCJ=no
16624 archive_cmds_GCJ=
16625 archive_expsym_cmds_GCJ=
16626 old_archive_From_new_cmds_GCJ=
16627 old_archive_from_expsyms_cmds_GCJ=
16628 export_dynamic_flag_spec_GCJ=
16629 whole_archive_flag_spec_GCJ=
16630 thread_safe_flag_spec_GCJ=
16631 hardcode_libdir_flag_spec_GCJ=
16632 hardcode_libdir_flag_spec_ld_GCJ=
16633 hardcode_libdir_separator_GCJ=
16634 hardcode_direct_GCJ=no
16635 hardcode_minus_L_GCJ=no
16636 hardcode_shlibpath_var_GCJ=unsupported
16637 link_all_deplibs_GCJ=unknown
16638 hardcode_automatic_GCJ=no
16639 module_cmds_GCJ=
16640 module_expsym_cmds_GCJ=
16641 always_export_symbols_GCJ=no
16642 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16643 # include_expsyms should be a list of space-separated symbols to be *always*
16644 # included in the symbol list
16645 include_expsyms_GCJ=
16646 # exclude_expsyms can be an extended regexp of symbols to exclude
16647 # it will be wrapped by ` (' and `)$', so one must not match beginning or
16648 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16649 # as well as any symbol that contains `d'.
16650 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
16651 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16652 # platforms (ab)use it in PIC code, but their linkers get confused if
16653 # the symbol is explicitly referenced. Since portable code cannot
16654 # rely on this symbol name, it's probably fine to never include it in
16655 # preloaded symbol tables.
16656 extract_expsyms_cmds=
16657 # Just being paranoid about ensuring that cc_basename is set.
16658 for cc_temp in $compiler""; do
16659 case $cc_temp in
16660 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16661 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16662 \-*) ;;
16663 *) break;;
16664 esac
16665 done
16666 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16668 case $host_os in
16669 cygwin* | mingw* | pw32*)
16670 # FIXME: the MSVC++ port hasn't been tested in a loooong time
16671 # When not using gcc, we currently assume that we are using
16672 # Microsoft Visual C++.
16673 if test "$GCC" != yes; then
16674 with_gnu_ld=no
16677 interix*)
16678 # we just hope/assume this is gcc and not c89 (= MSVC++)
16679 with_gnu_ld=yes
16681 openbsd*)
16682 with_gnu_ld=no
16684 esac
16686 ld_shlibs_GCJ=yes
16687 if test "$with_gnu_ld" = yes; then
16688 # If archive_cmds runs LD, not CC, wlarc should be empty
16689 wlarc='${wl}'
16691 # Set some defaults for GNU ld with shared library support. These
16692 # are reset later if shared libraries are not supported. Putting them
16693 # here allows them to be overridden if necessary.
16694 runpath_var=LD_RUN_PATH
16695 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16696 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16697 # ancient GNU ld didn't support --whole-archive et. al.
16698 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16699 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16700 else
16701 whole_archive_flag_spec_GCJ=
16703 supports_anon_versioning=no
16704 case `$LD -v 2>/dev/null` in
16705 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16706 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16707 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16708 *\ 2.11.*) ;; # other 2.11 versions
16709 *) supports_anon_versioning=yes ;;
16710 esac
16712 # See if GNU ld supports shared libraries.
16713 case $host_os in
16714 aix3* | aix4* | aix5*)
16715 # On AIX/PPC, the GNU linker is very broken
16716 if test "$host_cpu" != ia64; then
16717 ld_shlibs_GCJ=no
16718 cat <<EOF 1>&2
16720 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
16721 *** to be unable to reliably create shared libraries on AIX.
16722 *** Therefore, libtool is disabling shared libraries support. If you
16723 *** really care for shared libraries, you may want to modify your PATH
16724 *** so that a non-GNU linker is found, and then restart.
16730 amigaos*)
16731 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)'
16732 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16733 hardcode_minus_L_GCJ=yes
16735 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16736 # that the semantics of dynamic libraries on AmigaOS, at least up
16737 # to version 4, is to share data among multiple programs linked
16738 # with the same dynamic library. Since this doesn't match the
16739 # behavior of shared libraries on other platforms, we can't use
16740 # them.
16741 ld_shlibs_GCJ=no
16744 beos*)
16745 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16746 allow_undefined_flag_GCJ=unsupported
16747 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16748 # support --undefined. This deserves some investigation. FIXME
16749 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16750 else
16751 ld_shlibs_GCJ=no
16755 cygwin* | mingw* | pw32*)
16756 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
16757 # as there is no search path for DLLs.
16758 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16759 allow_undefined_flag_GCJ=unsupported
16760 always_export_symbols_GCJ=no
16761 enable_shared_with_static_runtimes_GCJ=yes
16762 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16764 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16765 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16766 # If the export-symbols file already is a .def file (1st line
16767 # is EXPORTS), use it as is; otherwise, prepend...
16768 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16769 cp $export_symbols $output_objdir/$soname.def;
16770 else
16771 echo EXPORTS > $output_objdir/$soname.def;
16772 cat $export_symbols >> $output_objdir/$soname.def;
16774 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16775 else
16776 ld_shlibs_GCJ=no
16780 interix3*)
16781 hardcode_direct_GCJ=no
16782 hardcode_shlibpath_var_GCJ=no
16783 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16784 export_dynamic_flag_spec_GCJ='${wl}-E'
16785 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16786 # Instead, shared libraries are loaded at an image base (0x10000000 by
16787 # default) and relocated if they conflict, which is a slow very memory
16788 # consuming and fragmenting process. To avoid this, we pick a random,
16789 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16790 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
16791 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'
16792 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'
16795 linux*)
16796 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16797 tmp_addflag=
16798 case $cc_basename,$host_cpu in
16799 pgcc*) # Portland Group C compiler
16800 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'
16801 tmp_addflag=' $pic_flag'
16803 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
16804 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'
16805 tmp_addflag=' $pic_flag -Mnomain' ;;
16806 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
16807 tmp_addflag=' -i_dynamic' ;;
16808 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
16809 tmp_addflag=' -i_dynamic -nofor_main' ;;
16810 ifc* | ifort*) # Intel Fortran compiler
16811 tmp_addflag=' -nofor_main' ;;
16812 esac
16813 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16815 if test $supports_anon_versioning = yes; then
16816 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
16817 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16818 $echo "local: *; };" >> $output_objdir/$libname.ver~
16819 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16821 else
16822 ld_shlibs_GCJ=no
16826 netbsd*)
16827 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16828 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16829 wlarc=
16830 else
16831 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16832 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16836 solaris*)
16837 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16838 ld_shlibs_GCJ=no
16839 cat <<EOF 1>&2
16841 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
16842 *** create shared libraries on Solaris systems. Therefore, libtool
16843 *** is disabling shared libraries support. We urge you to upgrade GNU
16844 *** binutils to release 2.9.1 or newer. Another option is to modify
16845 *** your PATH or compiler configuration so that the native linker is
16846 *** used, and then restart.
16849 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16850 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16851 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16852 else
16853 ld_shlibs_GCJ=no
16857 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
16858 case `$LD -v 2>&1` in
16859 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
16860 ld_shlibs_GCJ=no
16861 cat <<_LT_EOF 1>&2
16863 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
16864 *** reliably create shared libraries on SCO systems. Therefore, libtool
16865 *** is disabling shared libraries support. We urge you to upgrade GNU
16866 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
16867 *** your PATH or compiler configuration so that the native linker is
16868 *** used, and then restart.
16870 _LT_EOF
16873 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16874 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
16875 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
16876 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
16877 else
16878 ld_shlibs_GCJ=no
16881 esac
16884 sunos4*)
16885 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16886 wlarc=
16887 hardcode_direct_GCJ=yes
16888 hardcode_shlibpath_var_GCJ=no
16892 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16893 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16894 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16895 else
16896 ld_shlibs_GCJ=no
16899 esac
16901 if test "$ld_shlibs_GCJ" = no; then
16902 runpath_var=
16903 hardcode_libdir_flag_spec_GCJ=
16904 export_dynamic_flag_spec_GCJ=
16905 whole_archive_flag_spec_GCJ=
16907 else
16908 # PORTME fill in a description of your system's linker (not GNU ld)
16909 case $host_os in
16910 aix3*)
16911 allow_undefined_flag_GCJ=unsupported
16912 always_export_symbols_GCJ=yes
16913 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'
16914 # Note: this linker hardcodes the directories in LIBPATH if there
16915 # are no directories specified by -L.
16916 hardcode_minus_L_GCJ=yes
16917 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
16918 # Neither direct hardcoding nor static linking is supported with a
16919 # broken collect2.
16920 hardcode_direct_GCJ=unsupported
16924 aix4* | aix5*)
16925 if test "$host_cpu" = ia64; then
16926 # On IA64, the linker does run time linking by default, so we don't
16927 # have to do anything special.
16928 aix_use_runtimelinking=no
16929 exp_sym_flag='-Bexport'
16930 no_entry_flag=""
16931 else
16932 # If we're using GNU nm, then we don't want the "-C" option.
16933 # -C means demangle to AIX nm, but means don't demangle with GNU nm
16934 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16935 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'
16936 else
16937 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'
16939 aix_use_runtimelinking=no
16941 # Test if we are trying to use run time linking or normal
16942 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16943 # need to do runtime linking.
16944 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
16945 for ld_flag in $LDFLAGS; do
16946 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16947 aix_use_runtimelinking=yes
16948 break
16950 done
16952 esac
16954 exp_sym_flag='-bexport'
16955 no_entry_flag='-bnoentry'
16958 # When large executables or shared objects are built, AIX ld can
16959 # have problems creating the table of contents. If linking a library
16960 # or program results in "error TOC overflow" add -mminimal-toc to
16961 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16962 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16964 archive_cmds_GCJ=''
16965 hardcode_direct_GCJ=yes
16966 hardcode_libdir_separator_GCJ=':'
16967 link_all_deplibs_GCJ=yes
16969 if test "$GCC" = yes; then
16970 case $host_os in aix4.[012]|aix4.[012].*)
16971 # We only want to do this on AIX 4.2 and lower, the check
16972 # below for broken collect2 doesn't work under 4.3+
16973 collect2name=`${CC} -print-prog-name=collect2`
16974 if test -f "$collect2name" && \
16975 strings "$collect2name" | grep resolve_lib_name >/dev/null
16976 then
16977 # We have reworked collect2
16978 hardcode_direct_GCJ=yes
16979 else
16980 # We have old collect2
16981 hardcode_direct_GCJ=unsupported
16982 # It fails to find uninstalled libraries when the uninstalled
16983 # path is not listed in the libpath. Setting hardcode_minus_L
16984 # to unsupported forces relinking
16985 hardcode_minus_L_GCJ=yes
16986 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16987 hardcode_libdir_separator_GCJ=
16990 esac
16991 shared_flag='-shared'
16992 if test "$aix_use_runtimelinking" = yes; then
16993 shared_flag="$shared_flag "'${wl}-G'
16995 else
16996 # not using gcc
16997 if test "$host_cpu" = ia64; then
16998 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16999 # chokes on -Wl,-G. The following line is correct:
17000 shared_flag='-G'
17001 else
17002 if test "$aix_use_runtimelinking" = yes; then
17003 shared_flag='${wl}-G'
17004 else
17005 shared_flag='${wl}-bM:SRE'
17010 # It seems that -bexpall does not export symbols beginning with
17011 # underscore (_), so it is better to generate a list of symbols to export.
17012 always_export_symbols_GCJ=yes
17013 if test "$aix_use_runtimelinking" = yes; then
17014 # Warning - without using the other runtime loading flags (-brtl),
17015 # -berok will link without error, but may produce a broken library.
17016 allow_undefined_flag_GCJ='-berok'
17017 # Determine the default libpath from the value encoded in an empty executable.
17018 cat >conftest.$ac_ext <<_ACEOF
17019 /* confdefs.h. */
17020 _ACEOF
17021 cat confdefs.h >>conftest.$ac_ext
17022 cat >>conftest.$ac_ext <<_ACEOF
17023 /* end confdefs.h. */
17026 main ()
17030 return 0;
17032 _ACEOF
17033 rm -f conftest.$ac_objext conftest$ac_exeext
17034 if { (ac_try="$ac_link"
17035 case "(($ac_try" in
17036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17037 *) ac_try_echo=$ac_try;;
17038 esac
17039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17040 (eval "$ac_link") 2>conftest.er1
17041 ac_status=$?
17042 grep -v '^ *+' conftest.er1 >conftest.err
17043 rm -f conftest.er1
17044 cat conftest.err >&5
17045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17046 (exit $ac_status); } && {
17047 test -z "$ac_cxx_werror_flag" ||
17048 test ! -s conftest.err
17049 } && test -s conftest$ac_exeext &&
17050 $as_test_x conftest$ac_exeext; then
17052 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17054 # Check for a 64-bit object if we didn't find anything.
17055 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17056 }'`; fi
17057 else
17058 echo "$as_me: failed program was:" >&5
17059 sed 's/^/| /' conftest.$ac_ext >&5
17064 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17065 conftest$ac_exeext conftest.$ac_ext
17066 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17068 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17069 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"
17070 else
17071 if test "$host_cpu" = ia64; then
17072 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17073 allow_undefined_flag_GCJ="-z nodefs"
17074 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"
17075 else
17076 # Determine the default libpath from the value encoded in an empty executable.
17077 cat >conftest.$ac_ext <<_ACEOF
17078 /* confdefs.h. */
17079 _ACEOF
17080 cat confdefs.h >>conftest.$ac_ext
17081 cat >>conftest.$ac_ext <<_ACEOF
17082 /* end confdefs.h. */
17085 main ()
17089 return 0;
17091 _ACEOF
17092 rm -f conftest.$ac_objext conftest$ac_exeext
17093 if { (ac_try="$ac_link"
17094 case "(($ac_try" in
17095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17096 *) ac_try_echo=$ac_try;;
17097 esac
17098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17099 (eval "$ac_link") 2>conftest.er1
17100 ac_status=$?
17101 grep -v '^ *+' conftest.er1 >conftest.err
17102 rm -f conftest.er1
17103 cat conftest.err >&5
17104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17105 (exit $ac_status); } && {
17106 test -z "$ac_cxx_werror_flag" ||
17107 test ! -s conftest.err
17108 } && test -s conftest$ac_exeext &&
17109 $as_test_x conftest$ac_exeext; then
17111 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17113 # Check for a 64-bit object if we didn't find anything.
17114 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17115 }'`; fi
17116 else
17117 echo "$as_me: failed program was:" >&5
17118 sed 's/^/| /' conftest.$ac_ext >&5
17123 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17124 conftest$ac_exeext conftest.$ac_ext
17125 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17127 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17128 # Warning - without using the other run time loading flags,
17129 # -berok will link without error, but may produce a broken library.
17130 no_undefined_flag_GCJ=' ${wl}-bernotok'
17131 allow_undefined_flag_GCJ=' ${wl}-berok'
17132 # Exported symbols can be pulled into shared objects from archives
17133 whole_archive_flag_spec_GCJ='$convenience'
17134 archive_cmds_need_lc_GCJ=yes
17135 # This is similar to how AIX traditionally builds its shared libraries.
17136 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'
17141 amigaos*)
17142 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)'
17143 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17144 hardcode_minus_L_GCJ=yes
17145 # see comment about different semantics on the GNU ld section
17146 ld_shlibs_GCJ=no
17149 bsdi[45]*)
17150 export_dynamic_flag_spec_GCJ=-rdynamic
17153 cygwin* | mingw* | pw32*)
17154 # When not using gcc, we currently assume that we are using
17155 # Microsoft Visual C++.
17156 # hardcode_libdir_flag_spec is actually meaningless, as there is
17157 # no search path for DLLs.
17158 hardcode_libdir_flag_spec_GCJ=' '
17159 allow_undefined_flag_GCJ=unsupported
17160 # Tell ltmain to make .lib files, not .a files.
17161 libext=lib
17162 # Tell ltmain to make .dll files, not .so files.
17163 shrext_cmds=".dll"
17164 # FIXME: Setting linknames here is a bad hack.
17165 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17166 # The linker will automatically build a .lib file if we build a DLL.
17167 old_archive_From_new_cmds_GCJ='true'
17168 # FIXME: Should let the user specify the lib program.
17169 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
17170 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
17171 enable_shared_with_static_runtimes_GCJ=yes
17174 darwin* | rhapsody*)
17175 case $host_os in
17176 rhapsody* | darwin1.[012])
17177 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
17179 *) # Darwin 1.3 on
17180 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17181 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17182 else
17183 case ${MACOSX_DEPLOYMENT_TARGET} in
17184 10.[012])
17185 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17187 10.*)
17188 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
17190 esac
17193 esac
17194 archive_cmds_need_lc_GCJ=no
17195 hardcode_direct_GCJ=no
17196 hardcode_automatic_GCJ=yes
17197 hardcode_shlibpath_var_GCJ=unsupported
17198 whole_archive_flag_spec_GCJ=''
17199 link_all_deplibs_GCJ=yes
17200 if test "$GCC" = yes ; then
17201 output_verbose_link_cmd='echo'
17202 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
17203 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17204 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17205 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}'
17206 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}'
17207 else
17208 case $cc_basename in
17209 xlc*)
17210 output_verbose_link_cmd='echo'
17211 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
17212 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17213 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17214 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17215 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}'
17218 ld_shlibs_GCJ=no
17220 esac
17224 dgux*)
17225 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17226 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17227 hardcode_shlibpath_var_GCJ=no
17230 freebsd1*)
17231 ld_shlibs_GCJ=no
17234 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17235 # support. Future versions do this automatically, but an explicit c++rt0.o
17236 # does not break anything, and helps significantly (at the cost of a little
17237 # extra space).
17238 freebsd2.2*)
17239 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17240 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17241 hardcode_direct_GCJ=yes
17242 hardcode_shlibpath_var_GCJ=no
17245 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17246 freebsd2*)
17247 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17248 hardcode_direct_GCJ=yes
17249 hardcode_minus_L_GCJ=yes
17250 hardcode_shlibpath_var_GCJ=no
17253 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17254 freebsd* | kfreebsd*-gnu | dragonfly*)
17255 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17256 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17257 hardcode_direct_GCJ=yes
17258 hardcode_shlibpath_var_GCJ=no
17261 hpux9*)
17262 if test "$GCC" = yes; then
17263 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'
17264 else
17265 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'
17267 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17268 hardcode_libdir_separator_GCJ=:
17269 hardcode_direct_GCJ=yes
17271 # hardcode_minus_L: Not really in the search PATH,
17272 # but as the default location of the library.
17273 hardcode_minus_L_GCJ=yes
17274 export_dynamic_flag_spec_GCJ='${wl}-E'
17277 hpux10*)
17278 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17279 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17280 else
17281 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17283 if test "$with_gnu_ld" = no; then
17284 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17285 hardcode_libdir_separator_GCJ=:
17287 hardcode_direct_GCJ=yes
17288 export_dynamic_flag_spec_GCJ='${wl}-E'
17290 # hardcode_minus_L: Not really in the search PATH,
17291 # but as the default location of the library.
17292 hardcode_minus_L_GCJ=yes
17296 hpux11*)
17297 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17298 case $host_cpu in
17299 hppa*64*)
17300 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17302 ia64*)
17303 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17306 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17308 esac
17309 else
17310 case $host_cpu in
17311 hppa*64*)
17312 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17314 ia64*)
17315 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17318 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17320 esac
17322 if test "$with_gnu_ld" = no; then
17323 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17324 hardcode_libdir_separator_GCJ=:
17326 case $host_cpu in
17327 hppa*64*|ia64*)
17328 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
17329 hardcode_direct_GCJ=no
17330 hardcode_shlibpath_var_GCJ=no
17333 hardcode_direct_GCJ=yes
17334 export_dynamic_flag_spec_GCJ='${wl}-E'
17336 # hardcode_minus_L: Not really in the search PATH,
17337 # but as the default location of the library.
17338 hardcode_minus_L_GCJ=yes
17340 esac
17344 irix5* | irix6* | nonstopux*)
17345 if test "$GCC" = yes; then
17346 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'
17347 else
17348 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'
17349 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
17351 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17352 hardcode_libdir_separator_GCJ=:
17353 link_all_deplibs_GCJ=yes
17356 netbsd*)
17357 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17358 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
17359 else
17360 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
17362 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17363 hardcode_direct_GCJ=yes
17364 hardcode_shlibpath_var_GCJ=no
17367 newsos6)
17368 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17369 hardcode_direct_GCJ=yes
17370 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17371 hardcode_libdir_separator_GCJ=:
17372 hardcode_shlibpath_var_GCJ=no
17375 openbsd*)
17376 hardcode_direct_GCJ=yes
17377 hardcode_shlibpath_var_GCJ=no
17378 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17379 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17380 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17381 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17382 export_dynamic_flag_spec_GCJ='${wl}-E'
17383 else
17384 case $host_os in
17385 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17386 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17387 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17390 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17391 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17393 esac
17397 os2*)
17398 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17399 hardcode_minus_L_GCJ=yes
17400 allow_undefined_flag_GCJ=unsupported
17401 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'
17402 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17405 osf3*)
17406 if test "$GCC" = yes; then
17407 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17408 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'
17409 else
17410 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17411 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'
17413 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17414 hardcode_libdir_separator_GCJ=:
17417 osf4* | osf5*) # as osf3* with the addition of -msym flag
17418 if test "$GCC" = yes; then
17419 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17420 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'
17421 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17422 else
17423 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17424 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'
17425 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~
17426 $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'
17428 # Both c and cxx compiler support -rpath directly
17429 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
17431 hardcode_libdir_separator_GCJ=:
17434 solaris*)
17435 no_undefined_flag_GCJ=' -z text'
17436 if test "$GCC" = yes; then
17437 wlarc='${wl}'
17438 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17439 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17440 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
17441 else
17442 wlarc=''
17443 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17444 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17445 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17447 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17448 hardcode_shlibpath_var_GCJ=no
17449 case $host_os in
17450 solaris2.[0-5] | solaris2.[0-5].*) ;;
17452 # The compiler driver will combine linker options so we
17453 # cannot just pass the convience library names through
17454 # without $wl, iff we do not link with $LD.
17455 # Luckily, gcc supports the same syntax we need for Sun Studio.
17456 # Supported since Solaris 2.6 (maybe 2.5.1?)
17457 case $wlarc in
17459 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
17461 whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
17462 esac ;;
17463 esac
17464 link_all_deplibs_GCJ=yes
17467 sunos4*)
17468 if test "x$host_vendor" = xsequent; then
17469 # Use $CC to link under sequent, because it throws in some extra .o
17470 # files that make .init and .fini sections work.
17471 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17472 else
17473 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17475 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17476 hardcode_direct_GCJ=yes
17477 hardcode_minus_L_GCJ=yes
17478 hardcode_shlibpath_var_GCJ=no
17481 sysv4)
17482 case $host_vendor in
17483 sni)
17484 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17485 hardcode_direct_GCJ=yes # is this really true???
17487 siemens)
17488 ## LD is ld it makes a PLAMLIB
17489 ## CC just makes a GrossModule.
17490 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17491 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
17492 hardcode_direct_GCJ=no
17494 motorola)
17495 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17496 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
17498 esac
17499 runpath_var='LD_RUN_PATH'
17500 hardcode_shlibpath_var_GCJ=no
17503 sysv4.3*)
17504 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17505 hardcode_shlibpath_var_GCJ=no
17506 export_dynamic_flag_spec_GCJ='-Bexport'
17509 sysv4*MP*)
17510 if test -d /usr/nec; then
17511 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17512 hardcode_shlibpath_var_GCJ=no
17513 runpath_var=LD_RUN_PATH
17514 hardcode_runpath_var=yes
17515 ld_shlibs_GCJ=yes
17519 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
17520 no_undefined_flag_GCJ='${wl}-z,text'
17521 archive_cmds_need_lc_GCJ=no
17522 hardcode_shlibpath_var_GCJ=no
17523 runpath_var='LD_RUN_PATH'
17525 if test "$GCC" = yes; then
17526 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17527 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17528 else
17529 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17530 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17534 sysv5* | sco3.2v5* | sco5v6*)
17535 # Note: We can NOT use -z defs as we might desire, because we do not
17536 # link with -lc, and that would cause any symbols used from libc to
17537 # always be unresolved, which means just about no library would
17538 # ever link correctly. If we're not using GNU ld we use -z text
17539 # though, which does catch some bad symbols but isn't as heavy-handed
17540 # as -z defs.
17541 no_undefined_flag_GCJ='${wl}-z,text'
17542 allow_undefined_flag_GCJ='${wl}-z,nodefs'
17543 archive_cmds_need_lc_GCJ=no
17544 hardcode_shlibpath_var_GCJ=no
17545 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
17546 hardcode_libdir_separator_GCJ=':'
17547 link_all_deplibs_GCJ=yes
17548 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
17549 runpath_var='LD_RUN_PATH'
17551 if test "$GCC" = yes; then
17552 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17553 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17554 else
17555 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17556 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17560 uts4*)
17561 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17562 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17563 hardcode_shlibpath_var_GCJ=no
17567 ld_shlibs_GCJ=no
17569 esac
17572 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
17573 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
17574 test "$ld_shlibs_GCJ" = no && can_build_shared=no
17577 # Do we need to explicitly link libc?
17579 case "x$archive_cmds_need_lc_GCJ" in
17580 x|xyes)
17581 # Assume -lc should be added
17582 archive_cmds_need_lc_GCJ=yes
17584 if test "$enable_shared" = yes && test "$GCC" = yes; then
17585 case $archive_cmds_GCJ in
17586 *'~'*)
17587 # FIXME: we may have to deal with multi-command sequences.
17589 '$CC '*)
17590 # Test whether the compiler implicitly links with -lc since on some
17591 # systems, -lgcc has to come before -lc. If gcc already passes -lc
17592 # to ld, don't add -lc before -lgcc.
17593 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
17594 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
17595 $rm conftest*
17596 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17598 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17599 (eval $ac_compile) 2>&5
17600 ac_status=$?
17601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17602 (exit $ac_status); } 2>conftest.err; then
17603 soname=conftest
17604 lib=conftest
17605 libobjs=conftest.$ac_objext
17606 deplibs=
17607 wl=$lt_prog_compiler_wl_GCJ
17608 pic_flag=$lt_prog_compiler_pic_GCJ
17609 compiler_flags=-v
17610 linker_flags=-v
17611 verstring=
17612 output_objdir=.
17613 libname=conftest
17614 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
17615 allow_undefined_flag_GCJ=
17616 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
17617 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17618 ac_status=$?
17619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17620 (exit $ac_status); }
17621 then
17622 archive_cmds_need_lc_GCJ=no
17623 else
17624 archive_cmds_need_lc_GCJ=yes
17626 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
17627 else
17628 cat conftest.err 1>&5
17630 $rm conftest*
17631 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
17632 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
17634 esac
17637 esac
17639 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17640 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
17641 library_names_spec=
17642 libname_spec='lib$name'
17643 soname_spec=
17644 shrext_cmds=".so"
17645 postinstall_cmds=
17646 postuninstall_cmds=
17647 finish_cmds=
17648 finish_eval=
17649 shlibpath_var=
17650 shlibpath_overrides_runpath=unknown
17651 version_type=none
17652 dynamic_linker="$host_os ld.so"
17653 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17654 if test "$GCC" = yes; then
17655 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17656 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
17657 # if the path contains ";" then we assume it to be the separator
17658 # otherwise default to the standard path separator (i.e. ":") - it is
17659 # assumed that no part of a normal pathname contains ";" but that should
17660 # okay in the real world where ";" in dirpaths is itself problematic.
17661 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17662 else
17663 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17665 else
17666 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17668 need_lib_prefix=unknown
17669 hardcode_into_libs=no
17671 # when you set need_version to no, make sure it does not cause -set_version
17672 # flags to be left without arguments
17673 need_version=unknown
17675 case $host_os in
17676 aix3*)
17677 version_type=linux
17678 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17679 shlibpath_var=LIBPATH
17681 # AIX 3 has no versioning support, so we append a major version to the name.
17682 soname_spec='${libname}${release}${shared_ext}$major'
17685 aix4* | aix5*)
17686 version_type=linux
17687 need_lib_prefix=no
17688 need_version=no
17689 hardcode_into_libs=yes
17690 if test "$host_cpu" = ia64; then
17691 # AIX 5 supports IA64
17692 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17693 shlibpath_var=LD_LIBRARY_PATH
17694 else
17695 # With GCC up to 2.95.x, collect2 would create an import file
17696 # for dependence libraries. The import file would start with
17697 # the line `#! .'. This would cause the generated library to
17698 # depend on `.', always an invalid library. This was fixed in
17699 # development snapshots of GCC prior to 3.0.
17700 case $host_os in
17701 aix4 | aix4.[01] | aix4.[01].*)
17702 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17703 echo ' yes '
17704 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17706 else
17707 can_build_shared=no
17710 esac
17711 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17712 # soname into executable. Probably we can add versioning support to
17713 # collect2, so additional links can be useful in future.
17714 if test "$aix_use_runtimelinking" = yes; then
17715 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17716 # instead of lib<name>.a to let people know that these are not
17717 # typical AIX shared libraries.
17718 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17719 else
17720 # We preserve .a as extension for shared libraries through AIX4.2
17721 # and later when we are not doing run time linking.
17722 library_names_spec='${libname}${release}.a $libname.a'
17723 soname_spec='${libname}${release}${shared_ext}$major'
17725 shlibpath_var=LIBPATH
17729 amigaos*)
17730 library_names_spec='$libname.ixlibrary $libname.a'
17731 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17732 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'
17735 beos*)
17736 library_names_spec='${libname}${shared_ext}'
17737 dynamic_linker="$host_os ld.so"
17738 shlibpath_var=LIBRARY_PATH
17741 bsdi[45]*)
17742 version_type=linux
17743 need_version=no
17744 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17745 soname_spec='${libname}${release}${shared_ext}$major'
17746 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17747 shlibpath_var=LD_LIBRARY_PATH
17748 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17749 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17750 # the default ld.so.conf also contains /usr/contrib/lib and
17751 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17752 # libtool to hard-code these into programs
17755 cygwin* | mingw* | pw32*)
17756 version_type=windows
17757 shrext_cmds=".dll"
17758 need_version=no
17759 need_lib_prefix=no
17761 case $GCC,$host_os in
17762 yes,cygwin* | yes,mingw* | yes,pw32*)
17763 library_names_spec='$libname.dll.a'
17764 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17765 postinstall_cmds='base_file=`basename \${file}`~
17766 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17767 dldir=$destdir/`dirname \$dlpath`~
17768 test -d \$dldir || mkdir -p \$dldir~
17769 $install_prog $dir/$dlname \$dldir/$dlname~
17770 chmod a+x \$dldir/$dlname'
17771 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17772 dlpath=$dir/\$dldll~
17773 $rm \$dlpath'
17774 shlibpath_overrides_runpath=yes
17776 case $host_os in
17777 cygwin*)
17778 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17779 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17780 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17782 mingw*)
17783 # MinGW DLLs use traditional 'lib' prefix
17784 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17785 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17786 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17787 # It is most probably a Windows format PATH printed by
17788 # mingw gcc, but we are running on Cygwin. Gcc prints its search
17789 # path with ; separators, and with drive letters. We can handle the
17790 # drive letters (cygwin fileutils understands them), so leave them,
17791 # especially as we might pass files found there to a mingw objdump,
17792 # which wouldn't understand a cygwinified path. Ahh.
17793 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17794 else
17795 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17798 pw32*)
17799 # pw32 DLLs use 'pw' prefix rather than 'lib'
17800 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17802 esac
17806 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17808 esac
17809 dynamic_linker='Win32 ld.exe'
17810 # FIXME: first we should search . and the directory the executable is in
17811 shlibpath_var=PATH
17814 darwin* | rhapsody*)
17815 dynamic_linker="$host_os dyld"
17816 version_type=darwin
17817 need_lib_prefix=no
17818 need_version=no
17819 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17820 soname_spec='${libname}${release}${major}$shared_ext'
17821 shlibpath_overrides_runpath=yes
17822 shlibpath_var=DYLD_LIBRARY_PATH
17823 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17824 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
17825 if test "$GCC" = yes; then
17826 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
17827 else
17828 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
17830 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17833 dgux*)
17834 version_type=linux
17835 need_lib_prefix=no
17836 need_version=no
17837 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17838 soname_spec='${libname}${release}${shared_ext}$major'
17839 shlibpath_var=LD_LIBRARY_PATH
17842 freebsd1*)
17843 dynamic_linker=no
17846 kfreebsd*-gnu)
17847 version_type=linux
17848 need_lib_prefix=no
17849 need_version=no
17850 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17851 soname_spec='${libname}${release}${shared_ext}$major'
17852 shlibpath_var=LD_LIBRARY_PATH
17853 shlibpath_overrides_runpath=no
17854 hardcode_into_libs=yes
17855 dynamic_linker='GNU ld.so'
17858 freebsd* | dragonfly*)
17859 # DragonFly does not have aout. When/if they implement a new
17860 # versioning mechanism, adjust this.
17861 if test -x /usr/bin/objformat; then
17862 objformat=`/usr/bin/objformat`
17863 else
17864 case $host_os in
17865 freebsd[123]*) objformat=aout ;;
17866 *) objformat=elf ;;
17867 esac
17869 version_type=freebsd-$objformat
17870 case $version_type in
17871 freebsd-elf*)
17872 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17873 need_version=no
17874 need_lib_prefix=no
17876 freebsd-*)
17877 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17878 need_version=yes
17880 esac
17881 shlibpath_var=LD_LIBRARY_PATH
17882 case $host_os in
17883 freebsd2*)
17884 shlibpath_overrides_runpath=yes
17886 freebsd3.[01]* | freebsdelf3.[01]*)
17887 shlibpath_overrides_runpath=yes
17888 hardcode_into_libs=yes
17890 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17891 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17892 shlibpath_overrides_runpath=no
17893 hardcode_into_libs=yes
17895 freebsd*) # from 4.6 on
17896 shlibpath_overrides_runpath=yes
17897 hardcode_into_libs=yes
17899 esac
17902 gnu*)
17903 version_type=linux
17904 need_lib_prefix=no
17905 need_version=no
17906 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17907 soname_spec='${libname}${release}${shared_ext}$major'
17908 shlibpath_var=LD_LIBRARY_PATH
17909 hardcode_into_libs=yes
17912 hpux9* | hpux10* | hpux11*)
17913 # Give a soname corresponding to the major version so that dld.sl refuses to
17914 # link against other versions.
17915 version_type=sunos
17916 need_lib_prefix=no
17917 need_version=no
17918 case $host_cpu in
17919 ia64*)
17920 shrext_cmds='.so'
17921 hardcode_into_libs=yes
17922 dynamic_linker="$host_os dld.so"
17923 shlibpath_var=LD_LIBRARY_PATH
17924 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17925 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17926 soname_spec='${libname}${release}${shared_ext}$major'
17927 if test "X$HPUX_IA64_MODE" = X32; then
17928 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17929 else
17930 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17932 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17934 hppa*64*)
17935 shrext_cmds='.sl'
17936 hardcode_into_libs=yes
17937 dynamic_linker="$host_os dld.sl"
17938 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17939 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17940 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17941 soname_spec='${libname}${release}${shared_ext}$major'
17942 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17943 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17946 shrext_cmds='.sl'
17947 dynamic_linker="$host_os dld.sl"
17948 shlibpath_var=SHLIB_PATH
17949 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17950 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17951 soname_spec='${libname}${release}${shared_ext}$major'
17953 esac
17954 # HP-UX runs *really* slowly unless shared libraries are mode 555.
17955 postinstall_cmds='chmod 555 $lib'
17958 interix3*)
17959 version_type=linux
17960 need_lib_prefix=no
17961 need_version=no
17962 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17963 soname_spec='${libname}${release}${shared_ext}$major'
17964 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17965 shlibpath_var=LD_LIBRARY_PATH
17966 shlibpath_overrides_runpath=no
17967 hardcode_into_libs=yes
17970 irix5* | irix6* | nonstopux*)
17971 case $host_os in
17972 nonstopux*) version_type=nonstopux ;;
17974 if test "$lt_cv_prog_gnu_ld" = yes; then
17975 version_type=linux
17976 else
17977 version_type=irix
17978 fi ;;
17979 esac
17980 need_lib_prefix=no
17981 need_version=no
17982 soname_spec='${libname}${release}${shared_ext}$major'
17983 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17984 case $host_os in
17985 irix5* | nonstopux*)
17986 libsuff= shlibsuff=
17989 case $LD in # libtool.m4 will add one of these switches to LD
17990 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17991 libsuff= shlibsuff= libmagic=32-bit;;
17992 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17993 libsuff=32 shlibsuff=N32 libmagic=N32;;
17994 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17995 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17996 *) libsuff= shlibsuff= libmagic=never-match;;
17997 esac
17999 esac
18000 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18001 shlibpath_overrides_runpath=no
18002 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18003 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18004 hardcode_into_libs=yes
18007 # No shared lib support for Linux oldld, aout, or coff.
18008 linux*oldld* | linux*aout* | linux*coff*)
18009 dynamic_linker=no
18012 # This must be Linux ELF.
18013 linux*)
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 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18020 shlibpath_var=LD_LIBRARY_PATH
18021 shlibpath_overrides_runpath=no
18022 # This implies no fast_install, which is unacceptable.
18023 # Some rework will be needed to allow for fast_install
18024 # before this can be enabled.
18025 hardcode_into_libs=yes
18027 # find out which ABI we are using
18028 libsuff=
18029 case "$host_cpu" in
18030 x86_64*|s390x*|powerpc64*)
18031 echo '#line 18031 "configure"' > conftest.$ac_ext
18032 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18033 (eval $ac_compile) 2>&5
18034 ac_status=$?
18035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18036 (exit $ac_status); }; then
18037 case `/usr/bin/file conftest.$ac_objext` in
18038 *64-bit*)
18039 libsuff=64
18040 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
18042 esac
18044 rm -rf conftest*
18046 esac
18048 # Append ld.so.conf contents to the search path
18049 if test -f /etc/ld.so.conf; then
18050 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/^ *//;s/#.*//;/^[^\/]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
18051 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
18054 # We used to test for /lib/ld.so.1 and disable shared libraries on
18055 # powerpc, because MkLinux only supported shared libraries with the
18056 # GNU dynamic linker. Since this was broken with cross compilers,
18057 # most powerpc-linux boxes support dynamic linking these days and
18058 # people can always --disable-shared, the test was removed, and we
18059 # assume the GNU/Linux dynamic linker is in use.
18060 dynamic_linker='GNU/Linux ld.so'
18063 knetbsd*-gnu)
18064 version_type=linux
18065 need_lib_prefix=no
18066 need_version=no
18067 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18068 soname_spec='${libname}${release}${shared_ext}$major'
18069 shlibpath_var=LD_LIBRARY_PATH
18070 shlibpath_overrides_runpath=no
18071 hardcode_into_libs=yes
18072 dynamic_linker='GNU ld.so'
18075 netbsd*)
18076 version_type=sunos
18077 need_lib_prefix=no
18078 need_version=no
18079 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18080 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18081 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18082 dynamic_linker='NetBSD (a.out) ld.so'
18083 else
18084 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18085 soname_spec='${libname}${release}${shared_ext}$major'
18086 dynamic_linker='NetBSD ld.elf_so'
18088 shlibpath_var=LD_LIBRARY_PATH
18089 shlibpath_overrides_runpath=yes
18090 hardcode_into_libs=yes
18093 newsos6)
18094 version_type=linux
18095 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18096 shlibpath_var=LD_LIBRARY_PATH
18097 shlibpath_overrides_runpath=yes
18100 nto-qnx*)
18101 version_type=linux
18102 need_lib_prefix=no
18103 need_version=no
18104 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18105 soname_spec='${libname}${release}${shared_ext}$major'
18106 shlibpath_var=LD_LIBRARY_PATH
18107 shlibpath_overrides_runpath=yes
18110 openbsd*)
18111 version_type=sunos
18112 sys_lib_dlsearch_path_spec="/usr/lib"
18113 need_lib_prefix=no
18114 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18115 case $host_os in
18116 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18117 *) need_version=no ;;
18118 esac
18119 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18120 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18121 shlibpath_var=LD_LIBRARY_PATH
18122 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18123 case $host_os in
18124 openbsd2.[89] | openbsd2.[89].*)
18125 shlibpath_overrides_runpath=no
18128 shlibpath_overrides_runpath=yes
18130 esac
18131 else
18132 shlibpath_overrides_runpath=yes
18136 os2*)
18137 libname_spec='$name'
18138 shrext_cmds=".dll"
18139 need_lib_prefix=no
18140 library_names_spec='$libname${shared_ext} $libname.a'
18141 dynamic_linker='OS/2 ld.exe'
18142 shlibpath_var=LIBPATH
18145 osf3* | osf4* | osf5*)
18146 version_type=osf
18147 need_lib_prefix=no
18148 need_version=no
18149 soname_spec='${libname}${release}${shared_ext}$major'
18150 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18151 shlibpath_var=LD_LIBRARY_PATH
18152 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18153 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18156 solaris*)
18157 version_type=linux
18158 need_lib_prefix=no
18159 need_version=no
18160 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18161 soname_spec='${libname}${release}${shared_ext}$major'
18162 shlibpath_var=LD_LIBRARY_PATH
18163 shlibpath_overrides_runpath=yes
18164 hardcode_into_libs=yes
18165 # ldd complains unless libraries are executable
18166 postinstall_cmds='chmod +x $lib'
18169 sunos4*)
18170 version_type=sunos
18171 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18172 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18173 shlibpath_var=LD_LIBRARY_PATH
18174 shlibpath_overrides_runpath=yes
18175 if test "$with_gnu_ld" = yes; then
18176 need_lib_prefix=no
18178 need_version=yes
18181 sysv4 | sysv4.3*)
18182 version_type=linux
18183 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18184 soname_spec='${libname}${release}${shared_ext}$major'
18185 shlibpath_var=LD_LIBRARY_PATH
18186 case $host_vendor in
18187 sni)
18188 shlibpath_overrides_runpath=no
18189 need_lib_prefix=no
18190 export_dynamic_flag_spec='${wl}-Blargedynsym'
18191 runpath_var=LD_RUN_PATH
18193 siemens)
18194 need_lib_prefix=no
18196 motorola)
18197 need_lib_prefix=no
18198 need_version=no
18199 shlibpath_overrides_runpath=no
18200 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18202 esac
18205 sysv4*MP*)
18206 if test -d /usr/nec ;then
18207 version_type=linux
18208 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18209 soname_spec='$libname${shared_ext}.$major'
18210 shlibpath_var=LD_LIBRARY_PATH
18214 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18215 version_type=freebsd-elf
18216 need_lib_prefix=no
18217 need_version=no
18218 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18219 soname_spec='${libname}${release}${shared_ext}$major'
18220 shlibpath_var=LD_LIBRARY_PATH
18221 hardcode_into_libs=yes
18222 if test "$with_gnu_ld" = yes; then
18223 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18224 shlibpath_overrides_runpath=no
18225 else
18226 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18227 shlibpath_overrides_runpath=yes
18228 case $host_os in
18229 sco3.2v5*)
18230 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18232 esac
18234 sys_lib_dlsearch_path_spec='/usr/lib'
18237 uts4*)
18238 version_type=linux
18239 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18240 soname_spec='${libname}${release}${shared_ext}$major'
18241 shlibpath_var=LD_LIBRARY_PATH
18245 dynamic_linker=no
18247 esac
18248 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18249 echo "${ECHO_T}$dynamic_linker" >&6; }
18250 test "$dynamic_linker" = no && can_build_shared=no
18252 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18253 if test "$GCC" = yes; then
18254 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18257 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18258 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
18259 hardcode_action_GCJ=
18260 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
18261 test -n "$runpath_var_GCJ" || \
18262 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
18264 # We can hardcode non-existant directories.
18265 if test "$hardcode_direct_GCJ" != no &&
18266 # If the only mechanism to avoid hardcoding is shlibpath_var, we
18267 # have to relink, otherwise we might link with an installed library
18268 # when we should be linking with a yet-to-be-installed one
18269 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18270 test "$hardcode_minus_L_GCJ" != no; then
18271 # Linking always hardcodes the temporary library directory.
18272 hardcode_action_GCJ=relink
18273 else
18274 # We can link without hardcoding, and we can hardcode nonexisting dirs.
18275 hardcode_action_GCJ=immediate
18277 else
18278 # We cannot hardcode anything, or else we can only hardcode existing
18279 # directories.
18280 hardcode_action_GCJ=unsupported
18282 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
18283 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
18285 if test "$hardcode_action_GCJ" = relink; then
18286 # Fast installation is not supported
18287 enable_fast_install=no
18288 elif test "$shlibpath_overrides_runpath" = yes ||
18289 test "$enable_shared" = no; then
18290 # Fast installation is not necessary
18291 enable_fast_install=needless
18295 # The else clause should only fire when bootstrapping the
18296 # libtool distribution, otherwise you forgot to ship ltmain.sh
18297 # with your package, and you will get complaints that there are
18298 # no rules to generate ltmain.sh.
18299 if test -f "$ltmain"; then
18300 # See if we are running on zsh, and set the options which allow our commands through
18301 # without removal of \ escapes.
18302 if test -n "${ZSH_VERSION+set}" ; then
18303 setopt NO_GLOB_SUBST
18305 # Now quote all the things that may contain metacharacters while being
18306 # careful not to overquote the AC_SUBSTed values. We take copies of the
18307 # variables and quote the copies for generation of the libtool script.
18308 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18309 SED SHELL STRIP \
18310 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18311 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18312 deplibs_check_method reload_flag reload_cmds need_locks \
18313 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18314 lt_cv_sys_global_symbol_to_c_name_address \
18315 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18316 old_postinstall_cmds old_postuninstall_cmds \
18317 compiler_GCJ \
18318 CC_GCJ \
18319 LD_GCJ \
18320 lt_prog_compiler_wl_GCJ \
18321 lt_prog_compiler_pic_GCJ \
18322 lt_prog_compiler_static_GCJ \
18323 lt_prog_compiler_no_builtin_flag_GCJ \
18324 export_dynamic_flag_spec_GCJ \
18325 thread_safe_flag_spec_GCJ \
18326 whole_archive_flag_spec_GCJ \
18327 enable_shared_with_static_runtimes_GCJ \
18328 old_archive_cmds_GCJ \
18329 old_archive_from_new_cmds_GCJ \
18330 predep_objects_GCJ \
18331 postdep_objects_GCJ \
18332 predeps_GCJ \
18333 postdeps_GCJ \
18334 compiler_lib_search_path_GCJ \
18335 archive_cmds_GCJ \
18336 archive_expsym_cmds_GCJ \
18337 postinstall_cmds_GCJ \
18338 postuninstall_cmds_GCJ \
18339 old_archive_from_expsyms_cmds_GCJ \
18340 allow_undefined_flag_GCJ \
18341 no_undefined_flag_GCJ \
18342 export_symbols_cmds_GCJ \
18343 hardcode_libdir_flag_spec_GCJ \
18344 hardcode_libdir_flag_spec_ld_GCJ \
18345 hardcode_libdir_separator_GCJ \
18346 hardcode_automatic_GCJ \
18347 module_cmds_GCJ \
18348 module_expsym_cmds_GCJ \
18349 lt_cv_prog_compiler_c_o_GCJ \
18350 exclude_expsyms_GCJ \
18351 include_expsyms_GCJ; do
18353 case $var in
18354 old_archive_cmds_GCJ | \
18355 old_archive_from_new_cmds_GCJ | \
18356 archive_cmds_GCJ | \
18357 archive_expsym_cmds_GCJ | \
18358 module_cmds_GCJ | \
18359 module_expsym_cmds_GCJ | \
18360 old_archive_from_expsyms_cmds_GCJ | \
18361 export_symbols_cmds_GCJ | \
18362 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18363 postinstall_cmds | postuninstall_cmds | \
18364 old_postinstall_cmds | old_postuninstall_cmds | \
18365 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18366 # Double-quote double-evaled strings.
18367 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18370 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18372 esac
18373 done
18375 case $lt_echo in
18376 *'\$0 --fallback-echo"')
18377 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18379 esac
18381 cfgfile="$ofile"
18383 cat <<__EOF__ >> "$cfgfile"
18384 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18386 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18388 # Shell to use when invoking shell scripts.
18389 SHELL=$lt_SHELL
18391 # Whether or not to build shared libraries.
18392 build_libtool_libs=$enable_shared
18394 # Whether or not to build static libraries.
18395 build_old_libs=$enable_static
18397 # Whether or not to add -lc for building shared libraries.
18398 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18400 # Whether or not to disallow shared libs when runtime libs are static
18401 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18403 # Whether or not to optimize for fast installation.
18404 fast_install=$enable_fast_install
18406 # The host system.
18407 host_alias=$host_alias
18408 host=$host
18409 host_os=$host_os
18411 # The build system.
18412 build_alias=$build_alias
18413 build=$build
18414 build_os=$build_os
18416 # An echo program that does not interpret backslashes.
18417 echo=$lt_echo
18419 # The archiver.
18420 AR=$lt_AR
18421 AR_FLAGS=$lt_AR_FLAGS
18423 # A C compiler.
18424 LTCC=$lt_LTCC
18426 # LTCC compiler flags.
18427 LTCFLAGS=$lt_LTCFLAGS
18429 # A language-specific compiler.
18430 CC=$lt_compiler_GCJ
18432 # Is the compiler the GNU C compiler?
18433 with_gcc=$GCC_GCJ
18435 # An ERE matcher.
18436 EGREP=$lt_EGREP
18438 # The linker used to build libraries.
18439 LD=$lt_LD_GCJ
18441 # Whether we need hard or soft links.
18442 LN_S=$lt_LN_S
18444 # A BSD-compatible nm program.
18445 NM=$lt_NM
18447 # A symbol stripping program
18448 STRIP=$lt_STRIP
18450 # Used to examine libraries when file_magic_cmd begins "file"
18451 MAGIC_CMD=$MAGIC_CMD
18453 # Used on cygwin: DLL creation program.
18454 DLLTOOL="$DLLTOOL"
18456 # Used on cygwin: object dumper.
18457 OBJDUMP="$OBJDUMP"
18459 # Used on cygwin: assembler.
18460 AS="$AS"
18462 # The name of the directory that contains temporary libtool files.
18463 objdir=$objdir
18465 # How to create reloadable object files.
18466 reload_flag=$lt_reload_flag
18467 reload_cmds=$lt_reload_cmds
18469 # How to pass a linker flag through the compiler.
18470 wl=$lt_lt_prog_compiler_wl_GCJ
18472 # Object file suffix (normally "o").
18473 objext="$ac_objext"
18475 # Old archive suffix (normally "a").
18476 libext="$libext"
18478 # Shared library suffix (normally ".so").
18479 shrext_cmds='$shrext_cmds'
18481 # Executable file suffix (normally "").
18482 exeext="$exeext"
18484 # Additional compiler flags for building library objects.
18485 pic_flag=$lt_lt_prog_compiler_pic_GCJ
18486 pic_mode=$pic_mode
18488 # What is the maximum length of a command?
18489 max_cmd_len=$lt_cv_sys_max_cmd_len
18491 # Does compiler simultaneously support -c and -o options?
18492 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18494 # Must we lock files when doing compilation?
18495 need_locks=$lt_need_locks
18497 # Do we need the lib prefix for modules?
18498 need_lib_prefix=$need_lib_prefix
18500 # Do we need a version for libraries?
18501 need_version=$need_version
18503 # Whether dlopen is supported.
18504 dlopen_support=$enable_dlopen
18506 # Whether dlopen of programs is supported.
18507 dlopen_self=$enable_dlopen_self
18509 # Whether dlopen of statically linked programs is supported.
18510 dlopen_self_static=$enable_dlopen_self_static
18512 # Compiler flag to prevent dynamic linking.
18513 link_static_flag=$lt_lt_prog_compiler_static_GCJ
18515 # Compiler flag to turn off builtin functions.
18516 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18518 # Compiler flag to allow reflexive dlopens.
18519 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18521 # Compiler flag to generate shared objects directly from archives.
18522 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18524 # Compiler flag to generate thread-safe objects.
18525 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18527 # Library versioning type.
18528 version_type=$version_type
18530 # Format of library name prefix.
18531 libname_spec=$lt_libname_spec
18533 # List of archive names. First name is the real one, the rest are links.
18534 # The last name is the one that the linker finds with -lNAME.
18535 library_names_spec=$lt_library_names_spec
18537 # The coded name of the library, if different from the real name.
18538 soname_spec=$lt_soname_spec
18540 # Commands used to build and install an old-style archive.
18541 RANLIB=$lt_RANLIB
18542 old_archive_cmds=$lt_old_archive_cmds_GCJ
18543 old_postinstall_cmds=$lt_old_postinstall_cmds
18544 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18546 # Create an old-style archive from a shared archive.
18547 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18549 # Create a temporary old-style archive to link instead of a shared archive.
18550 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18552 # Commands used to build and install a shared archive.
18553 archive_cmds=$lt_archive_cmds_GCJ
18554 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18555 postinstall_cmds=$lt_postinstall_cmds
18556 postuninstall_cmds=$lt_postuninstall_cmds
18558 # Commands used to build a loadable module (assumed same as above if empty)
18559 module_cmds=$lt_module_cmds_GCJ
18560 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18562 # Commands to strip libraries.
18563 old_striplib=$lt_old_striplib
18564 striplib=$lt_striplib
18566 # Dependencies to place before the objects being linked to create a
18567 # shared library.
18568 predep_objects=$lt_predep_objects_GCJ
18570 # Dependencies to place after the objects being linked to create a
18571 # shared library.
18572 postdep_objects=$lt_postdep_objects_GCJ
18574 # Dependencies to place before the objects being linked to create a
18575 # shared library.
18576 predeps=$lt_predeps_GCJ
18578 # Dependencies to place after the objects being linked to create a
18579 # shared library.
18580 postdeps=$lt_postdeps_GCJ
18582 # The library search path used internally by the compiler when linking
18583 # a shared library.
18584 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
18586 # Method to check whether dependent libraries are shared objects.
18587 deplibs_check_method=$lt_deplibs_check_method
18589 # Command to use when deplibs_check_method == file_magic.
18590 file_magic_cmd=$lt_file_magic_cmd
18592 # Flag that allows shared libraries with undefined symbols to be built.
18593 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18595 # Flag that forces no undefined symbols.
18596 no_undefined_flag=$lt_no_undefined_flag_GCJ
18598 # Commands used to finish a libtool library installation in a directory.
18599 finish_cmds=$lt_finish_cmds
18601 # Same as above, but a single script fragment to be evaled but not shown.
18602 finish_eval=$lt_finish_eval
18604 # Take the output of nm and produce a listing of raw symbols and C names.
18605 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18607 # Transform the output of nm in a proper C declaration
18608 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18610 # Transform the output of nm in a C name address pair
18611 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18613 # This is the shared library runtime path variable.
18614 runpath_var=$runpath_var
18616 # This is the shared library path variable.
18617 shlibpath_var=$shlibpath_var
18619 # Is shlibpath searched before the hard-coded library search path?
18620 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18622 # How to hardcode a shared library path into an executable.
18623 hardcode_action=$hardcode_action_GCJ
18625 # Whether we should hardcode library paths into libraries.
18626 hardcode_into_libs=$hardcode_into_libs
18628 # Flag to hardcode \$libdir into a binary during linking.
18629 # This must work even if \$libdir does not exist.
18630 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18632 # If ld is used when linking, flag to hardcode \$libdir into
18633 # a binary during linking. This must work even if \$libdir does
18634 # not exist.
18635 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18637 # Whether we need a single -rpath flag with a separated argument.
18638 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18640 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18641 # resulting binary.
18642 hardcode_direct=$hardcode_direct_GCJ
18644 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18645 # resulting binary.
18646 hardcode_minus_L=$hardcode_minus_L_GCJ
18648 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18649 # the resulting binary.
18650 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18652 # Set to yes if building a shared library automatically hardcodes DIR into the library
18653 # and all subsequent libraries and executables linked against it.
18654 hardcode_automatic=$hardcode_automatic_GCJ
18656 # Variables whose values should be saved in libtool wrapper scripts and
18657 # restored at relink time.
18658 variables_saved_for_relink="$variables_saved_for_relink"
18660 # Whether libtool must link a program against all its dependency libraries.
18661 link_all_deplibs=$link_all_deplibs_GCJ
18663 # Compile-time system search path for libraries
18664 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18666 # Run-time system search path for libraries
18667 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18669 # Fix the shell variable \$srcfile for the compiler.
18670 fix_srcfile_path="$fix_srcfile_path_GCJ"
18672 # Set to yes if exported symbols are required.
18673 always_export_symbols=$always_export_symbols_GCJ
18675 # The commands to list exported symbols.
18676 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18678 # The commands to extract the exported symbol list from a shared archive.
18679 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18681 # Symbols that should not be listed in the preloaded symbols.
18682 exclude_expsyms=$lt_exclude_expsyms_GCJ
18684 # Symbols that must always be exported.
18685 include_expsyms=$lt_include_expsyms_GCJ
18687 # ### END LIBTOOL TAG CONFIG: $tagname
18689 __EOF__
18692 else
18693 # If there is no Makefile yet, we rely on a make rule to execute
18694 # `config.status --recheck' to rerun these tests and create the
18695 # libtool script then.
18696 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18697 if test -f "$ltmain_in"; then
18698 test -f Makefile && make "$ltmain"
18703 ac_ext=cpp
18704 ac_cpp='$CXXCPP $CPPFLAGS'
18705 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18706 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18707 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18709 CC="$lt_save_CC"
18711 else
18712 tagname=""
18719 # Source file extension for RC test sources.
18720 ac_ext=rc
18722 # Object file extension for compiled RC test sources.
18723 objext=o
18724 objext_RC=$objext
18726 # Code to be used in simple compile tests
18727 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
18729 # Code to be used in simple link tests
18730 lt_simple_link_test_code="$lt_simple_compile_test_code"
18732 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18734 # If no C compiler was specified, use CC.
18735 LTCC=${LTCC-"$CC"}
18737 # If no C compiler flags were specified, use CFLAGS.
18738 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18740 # Allow CC to be a program name with arguments.
18741 compiler=$CC
18744 # save warnings/boilerplate of simple test code
18745 ac_outfile=conftest.$ac_objext
18746 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
18747 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18748 _lt_compiler_boilerplate=`cat conftest.err`
18749 $rm conftest*
18751 ac_outfile=conftest.$ac_objext
18752 printf "$lt_simple_link_test_code" >conftest.$ac_ext
18753 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18754 _lt_linker_boilerplate=`cat conftest.err`
18755 $rm conftest*
18758 # Allow CC to be a program name with arguments.
18759 lt_save_CC="$CC"
18760 CC=${RC-"windres"}
18761 compiler=$CC
18762 compiler_RC=$CC
18763 for cc_temp in $compiler""; do
18764 case $cc_temp in
18765 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18766 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18767 \-*) ;;
18768 *) break;;
18769 esac
18770 done
18771 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18773 lt_cv_prog_compiler_c_o_RC=yes
18775 # The else clause should only fire when bootstrapping the
18776 # libtool distribution, otherwise you forgot to ship ltmain.sh
18777 # with your package, and you will get complaints that there are
18778 # no rules to generate ltmain.sh.
18779 if test -f "$ltmain"; then
18780 # See if we are running on zsh, and set the options which allow our commands through
18781 # without removal of \ escapes.
18782 if test -n "${ZSH_VERSION+set}" ; then
18783 setopt NO_GLOB_SUBST
18785 # Now quote all the things that may contain metacharacters while being
18786 # careful not to overquote the AC_SUBSTed values. We take copies of the
18787 # variables and quote the copies for generation of the libtool script.
18788 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18789 SED SHELL STRIP \
18790 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18791 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18792 deplibs_check_method reload_flag reload_cmds need_locks \
18793 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18794 lt_cv_sys_global_symbol_to_c_name_address \
18795 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18796 old_postinstall_cmds old_postuninstall_cmds \
18797 compiler_RC \
18798 CC_RC \
18799 LD_RC \
18800 lt_prog_compiler_wl_RC \
18801 lt_prog_compiler_pic_RC \
18802 lt_prog_compiler_static_RC \
18803 lt_prog_compiler_no_builtin_flag_RC \
18804 export_dynamic_flag_spec_RC \
18805 thread_safe_flag_spec_RC \
18806 whole_archive_flag_spec_RC \
18807 enable_shared_with_static_runtimes_RC \
18808 old_archive_cmds_RC \
18809 old_archive_from_new_cmds_RC \
18810 predep_objects_RC \
18811 postdep_objects_RC \
18812 predeps_RC \
18813 postdeps_RC \
18814 compiler_lib_search_path_RC \
18815 archive_cmds_RC \
18816 archive_expsym_cmds_RC \
18817 postinstall_cmds_RC \
18818 postuninstall_cmds_RC \
18819 old_archive_from_expsyms_cmds_RC \
18820 allow_undefined_flag_RC \
18821 no_undefined_flag_RC \
18822 export_symbols_cmds_RC \
18823 hardcode_libdir_flag_spec_RC \
18824 hardcode_libdir_flag_spec_ld_RC \
18825 hardcode_libdir_separator_RC \
18826 hardcode_automatic_RC \
18827 module_cmds_RC \
18828 module_expsym_cmds_RC \
18829 lt_cv_prog_compiler_c_o_RC \
18830 exclude_expsyms_RC \
18831 include_expsyms_RC; do
18833 case $var in
18834 old_archive_cmds_RC | \
18835 old_archive_from_new_cmds_RC | \
18836 archive_cmds_RC | \
18837 archive_expsym_cmds_RC | \
18838 module_cmds_RC | \
18839 module_expsym_cmds_RC | \
18840 old_archive_from_expsyms_cmds_RC | \
18841 export_symbols_cmds_RC | \
18842 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18843 postinstall_cmds | postuninstall_cmds | \
18844 old_postinstall_cmds | old_postuninstall_cmds | \
18845 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18846 # Double-quote double-evaled strings.
18847 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18850 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18852 esac
18853 done
18855 case $lt_echo in
18856 *'\$0 --fallback-echo"')
18857 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18859 esac
18861 cfgfile="$ofile"
18863 cat <<__EOF__ >> "$cfgfile"
18864 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18866 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18868 # Shell to use when invoking shell scripts.
18869 SHELL=$lt_SHELL
18871 # Whether or not to build shared libraries.
18872 build_libtool_libs=$enable_shared
18874 # Whether or not to build static libraries.
18875 build_old_libs=$enable_static
18877 # Whether or not to add -lc for building shared libraries.
18878 build_libtool_need_lc=$archive_cmds_need_lc_RC
18880 # Whether or not to disallow shared libs when runtime libs are static
18881 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18883 # Whether or not to optimize for fast installation.
18884 fast_install=$enable_fast_install
18886 # The host system.
18887 host_alias=$host_alias
18888 host=$host
18889 host_os=$host_os
18891 # The build system.
18892 build_alias=$build_alias
18893 build=$build
18894 build_os=$build_os
18896 # An echo program that does not interpret backslashes.
18897 echo=$lt_echo
18899 # The archiver.
18900 AR=$lt_AR
18901 AR_FLAGS=$lt_AR_FLAGS
18903 # A C compiler.
18904 LTCC=$lt_LTCC
18906 # LTCC compiler flags.
18907 LTCFLAGS=$lt_LTCFLAGS
18909 # A language-specific compiler.
18910 CC=$lt_compiler_RC
18912 # Is the compiler the GNU C compiler?
18913 with_gcc=$GCC_RC
18915 # An ERE matcher.
18916 EGREP=$lt_EGREP
18918 # The linker used to build libraries.
18919 LD=$lt_LD_RC
18921 # Whether we need hard or soft links.
18922 LN_S=$lt_LN_S
18924 # A BSD-compatible nm program.
18925 NM=$lt_NM
18927 # A symbol stripping program
18928 STRIP=$lt_STRIP
18930 # Used to examine libraries when file_magic_cmd begins "file"
18931 MAGIC_CMD=$MAGIC_CMD
18933 # Used on cygwin: DLL creation program.
18934 DLLTOOL="$DLLTOOL"
18936 # Used on cygwin: object dumper.
18937 OBJDUMP="$OBJDUMP"
18939 # Used on cygwin: assembler.
18940 AS="$AS"
18942 # The name of the directory that contains temporary libtool files.
18943 objdir=$objdir
18945 # How to create reloadable object files.
18946 reload_flag=$lt_reload_flag
18947 reload_cmds=$lt_reload_cmds
18949 # How to pass a linker flag through the compiler.
18950 wl=$lt_lt_prog_compiler_wl_RC
18952 # Object file suffix (normally "o").
18953 objext="$ac_objext"
18955 # Old archive suffix (normally "a").
18956 libext="$libext"
18958 # Shared library suffix (normally ".so").
18959 shrext_cmds='$shrext_cmds'
18961 # Executable file suffix (normally "").
18962 exeext="$exeext"
18964 # Additional compiler flags for building library objects.
18965 pic_flag=$lt_lt_prog_compiler_pic_RC
18966 pic_mode=$pic_mode
18968 # What is the maximum length of a command?
18969 max_cmd_len=$lt_cv_sys_max_cmd_len
18971 # Does compiler simultaneously support -c and -o options?
18972 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
18974 # Must we lock files when doing compilation?
18975 need_locks=$lt_need_locks
18977 # Do we need the lib prefix for modules?
18978 need_lib_prefix=$need_lib_prefix
18980 # Do we need a version for libraries?
18981 need_version=$need_version
18983 # Whether dlopen is supported.
18984 dlopen_support=$enable_dlopen
18986 # Whether dlopen of programs is supported.
18987 dlopen_self=$enable_dlopen_self
18989 # Whether dlopen of statically linked programs is supported.
18990 dlopen_self_static=$enable_dlopen_self_static
18992 # Compiler flag to prevent dynamic linking.
18993 link_static_flag=$lt_lt_prog_compiler_static_RC
18995 # Compiler flag to turn off builtin functions.
18996 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
18998 # Compiler flag to allow reflexive dlopens.
18999 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19001 # Compiler flag to generate shared objects directly from archives.
19002 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19004 # Compiler flag to generate thread-safe objects.
19005 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19007 # Library versioning type.
19008 version_type=$version_type
19010 # Format of library name prefix.
19011 libname_spec=$lt_libname_spec
19013 # List of archive names. First name is the real one, the rest are links.
19014 # The last name is the one that the linker finds with -lNAME.
19015 library_names_spec=$lt_library_names_spec
19017 # The coded name of the library, if different from the real name.
19018 soname_spec=$lt_soname_spec
19020 # Commands used to build and install an old-style archive.
19021 RANLIB=$lt_RANLIB
19022 old_archive_cmds=$lt_old_archive_cmds_RC
19023 old_postinstall_cmds=$lt_old_postinstall_cmds
19024 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19026 # Create an old-style archive from a shared archive.
19027 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19029 # Create a temporary old-style archive to link instead of a shared archive.
19030 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19032 # Commands used to build and install a shared archive.
19033 archive_cmds=$lt_archive_cmds_RC
19034 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19035 postinstall_cmds=$lt_postinstall_cmds
19036 postuninstall_cmds=$lt_postuninstall_cmds
19038 # Commands used to build a loadable module (assumed same as above if empty)
19039 module_cmds=$lt_module_cmds_RC
19040 module_expsym_cmds=$lt_module_expsym_cmds_RC
19042 # Commands to strip libraries.
19043 old_striplib=$lt_old_striplib
19044 striplib=$lt_striplib
19046 # Dependencies to place before the objects being linked to create a
19047 # shared library.
19048 predep_objects=$lt_predep_objects_RC
19050 # Dependencies to place after the objects being linked to create a
19051 # shared library.
19052 postdep_objects=$lt_postdep_objects_RC
19054 # Dependencies to place before the objects being linked to create a
19055 # shared library.
19056 predeps=$lt_predeps_RC
19058 # Dependencies to place after the objects being linked to create a
19059 # shared library.
19060 postdeps=$lt_postdeps_RC
19062 # The library search path used internally by the compiler when linking
19063 # a shared library.
19064 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19066 # Method to check whether dependent libraries are shared objects.
19067 deplibs_check_method=$lt_deplibs_check_method
19069 # Command to use when deplibs_check_method == file_magic.
19070 file_magic_cmd=$lt_file_magic_cmd
19072 # Flag that allows shared libraries with undefined symbols to be built.
19073 allow_undefined_flag=$lt_allow_undefined_flag_RC
19075 # Flag that forces no undefined symbols.
19076 no_undefined_flag=$lt_no_undefined_flag_RC
19078 # Commands used to finish a libtool library installation in a directory.
19079 finish_cmds=$lt_finish_cmds
19081 # Same as above, but a single script fragment to be evaled but not shown.
19082 finish_eval=$lt_finish_eval
19084 # Take the output of nm and produce a listing of raw symbols and C names.
19085 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19087 # Transform the output of nm in a proper C declaration
19088 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19090 # Transform the output of nm in a C name address pair
19091 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19093 # This is the shared library runtime path variable.
19094 runpath_var=$runpath_var
19096 # This is the shared library path variable.
19097 shlibpath_var=$shlibpath_var
19099 # Is shlibpath searched before the hard-coded library search path?
19100 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19102 # How to hardcode a shared library path into an executable.
19103 hardcode_action=$hardcode_action_RC
19105 # Whether we should hardcode library paths into libraries.
19106 hardcode_into_libs=$hardcode_into_libs
19108 # Flag to hardcode \$libdir into a binary during linking.
19109 # This must work even if \$libdir does not exist.
19110 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19112 # If ld is used when linking, flag to hardcode \$libdir into
19113 # a binary during linking. This must work even if \$libdir does
19114 # not exist.
19115 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19117 # Whether we need a single -rpath flag with a separated argument.
19118 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19120 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19121 # resulting binary.
19122 hardcode_direct=$hardcode_direct_RC
19124 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19125 # resulting binary.
19126 hardcode_minus_L=$hardcode_minus_L_RC
19128 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19129 # the resulting binary.
19130 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19132 # Set to yes if building a shared library automatically hardcodes DIR into the library
19133 # and all subsequent libraries and executables linked against it.
19134 hardcode_automatic=$hardcode_automatic_RC
19136 # Variables whose values should be saved in libtool wrapper scripts and
19137 # restored at relink time.
19138 variables_saved_for_relink="$variables_saved_for_relink"
19140 # Whether libtool must link a program against all its dependency libraries.
19141 link_all_deplibs=$link_all_deplibs_RC
19143 # Compile-time system search path for libraries
19144 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19146 # Run-time system search path for libraries
19147 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19149 # Fix the shell variable \$srcfile for the compiler.
19150 fix_srcfile_path="$fix_srcfile_path_RC"
19152 # Set to yes if exported symbols are required.
19153 always_export_symbols=$always_export_symbols_RC
19155 # The commands to list exported symbols.
19156 export_symbols_cmds=$lt_export_symbols_cmds_RC
19158 # The commands to extract the exported symbol list from a shared archive.
19159 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19161 # Symbols that should not be listed in the preloaded symbols.
19162 exclude_expsyms=$lt_exclude_expsyms_RC
19164 # Symbols that must always be exported.
19165 include_expsyms=$lt_include_expsyms_RC
19167 # ### END LIBTOOL TAG CONFIG: $tagname
19169 __EOF__
19172 else
19173 # If there is no Makefile yet, we rely on a make rule to execute
19174 # `config.status --recheck' to rerun these tests and create the
19175 # libtool script then.
19176 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19177 if test -f "$ltmain_in"; then
19178 test -f Makefile && make "$ltmain"
19183 ac_ext=cpp
19184 ac_cpp='$CXXCPP $CPPFLAGS'
19185 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19186 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19187 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19189 CC="$lt_save_CC"
19194 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19195 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19196 { (exit 1); exit 1; }; }
19198 esac
19200 # Append the new tag name to the list of available tags.
19201 if test -n "$tagname" ; then
19202 available_tags="$available_tags $tagname"
19205 done
19206 IFS="$lt_save_ifs"
19208 # Now substitute the updated list of available tags.
19209 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19210 mv "${ofile}T" "$ofile"
19211 chmod +x "$ofile"
19212 else
19213 rm -f "${ofile}T"
19214 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19215 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19216 { (exit 1); exit 1; }; }
19222 # This can be used to rebuild libtool when needed
19223 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19225 # Always use our own libtool.
19226 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19228 # Prevent multiple expansion
19249 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
19250 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
19251 if test "${ac_cv_c_bigendian+set}" = set; then
19252 echo $ECHO_N "(cached) $ECHO_C" >&6
19253 else
19254 # See if sys/param.h defines the BYTE_ORDER macro.
19255 cat >conftest.$ac_ext <<_ACEOF
19256 /* confdefs.h. */
19257 _ACEOF
19258 cat confdefs.h >>conftest.$ac_ext
19259 cat >>conftest.$ac_ext <<_ACEOF
19260 /* end confdefs.h. */
19261 #include <sys/types.h>
19262 #include <sys/param.h>
19265 main ()
19267 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
19268 && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
19269 bogus endian macros
19270 #endif
19273 return 0;
19275 _ACEOF
19276 rm -f conftest.$ac_objext
19277 if { (ac_try="$ac_compile"
19278 case "(($ac_try" in
19279 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19280 *) ac_try_echo=$ac_try;;
19281 esac
19282 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19283 (eval "$ac_compile") 2>conftest.er1
19284 ac_status=$?
19285 grep -v '^ *+' conftest.er1 >conftest.err
19286 rm -f conftest.er1
19287 cat conftest.err >&5
19288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19289 (exit $ac_status); } && {
19290 test -z "$ac_cxx_werror_flag" ||
19291 test ! -s conftest.err
19292 } && test -s conftest.$ac_objext; then
19293 # It does; now see whether it defined to BIG_ENDIAN or not.
19294 cat >conftest.$ac_ext <<_ACEOF
19295 /* confdefs.h. */
19296 _ACEOF
19297 cat confdefs.h >>conftest.$ac_ext
19298 cat >>conftest.$ac_ext <<_ACEOF
19299 /* end confdefs.h. */
19300 #include <sys/types.h>
19301 #include <sys/param.h>
19304 main ()
19306 #if BYTE_ORDER != BIG_ENDIAN
19307 not big endian
19308 #endif
19311 return 0;
19313 _ACEOF
19314 rm -f conftest.$ac_objext
19315 if { (ac_try="$ac_compile"
19316 case "(($ac_try" in
19317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19318 *) ac_try_echo=$ac_try;;
19319 esac
19320 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19321 (eval "$ac_compile") 2>conftest.er1
19322 ac_status=$?
19323 grep -v '^ *+' conftest.er1 >conftest.err
19324 rm -f conftest.er1
19325 cat conftest.err >&5
19326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19327 (exit $ac_status); } && {
19328 test -z "$ac_cxx_werror_flag" ||
19329 test ! -s conftest.err
19330 } && test -s conftest.$ac_objext; then
19331 ac_cv_c_bigendian=yes
19332 else
19333 echo "$as_me: failed program was:" >&5
19334 sed 's/^/| /' conftest.$ac_ext >&5
19336 ac_cv_c_bigendian=no
19339 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19340 else
19341 echo "$as_me: failed program was:" >&5
19342 sed 's/^/| /' conftest.$ac_ext >&5
19344 # It does not; compile a test program.
19345 if test "$cross_compiling" = yes; then
19346 # try to guess the endianness by grepping values into an object file
19347 ac_cv_c_bigendian=unknown
19348 cat >conftest.$ac_ext <<_ACEOF
19349 /* confdefs.h. */
19350 _ACEOF
19351 cat confdefs.h >>conftest.$ac_ext
19352 cat >>conftest.$ac_ext <<_ACEOF
19353 /* end confdefs.h. */
19354 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
19355 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
19356 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
19357 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
19358 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
19359 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
19361 main ()
19363 _ascii (); _ebcdic ();
19365 return 0;
19367 _ACEOF
19368 rm -f conftest.$ac_objext
19369 if { (ac_try="$ac_compile"
19370 case "(($ac_try" in
19371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19372 *) ac_try_echo=$ac_try;;
19373 esac
19374 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19375 (eval "$ac_compile") 2>conftest.er1
19376 ac_status=$?
19377 grep -v '^ *+' conftest.er1 >conftest.err
19378 rm -f conftest.er1
19379 cat conftest.err >&5
19380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19381 (exit $ac_status); } && {
19382 test -z "$ac_cxx_werror_flag" ||
19383 test ! -s conftest.err
19384 } && test -s conftest.$ac_objext; then
19385 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
19386 ac_cv_c_bigendian=yes
19388 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
19389 if test "$ac_cv_c_bigendian" = unknown; then
19390 ac_cv_c_bigendian=no
19391 else
19392 # finding both strings is unlikely to happen, but who knows?
19393 ac_cv_c_bigendian=unknown
19396 else
19397 echo "$as_me: failed program was:" >&5
19398 sed 's/^/| /' conftest.$ac_ext >&5
19403 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19404 else
19405 cat >conftest.$ac_ext <<_ACEOF
19406 /* confdefs.h. */
19407 _ACEOF
19408 cat confdefs.h >>conftest.$ac_ext
19409 cat >>conftest.$ac_ext <<_ACEOF
19410 /* end confdefs.h. */
19411 $ac_includes_default
19413 main ()
19416 /* Are we little or big endian? From Harbison&Steele. */
19417 union
19419 long int l;
19420 char c[sizeof (long int)];
19421 } u;
19422 u.l = 1;
19423 return u.c[sizeof (long int) - 1] == 1;
19426 return 0;
19428 _ACEOF
19429 rm -f conftest$ac_exeext
19430 if { (ac_try="$ac_link"
19431 case "(($ac_try" in
19432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19433 *) ac_try_echo=$ac_try;;
19434 esac
19435 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19436 (eval "$ac_link") 2>&5
19437 ac_status=$?
19438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19439 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19440 { (case "(($ac_try" in
19441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19442 *) ac_try_echo=$ac_try;;
19443 esac
19444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19445 (eval "$ac_try") 2>&5
19446 ac_status=$?
19447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19448 (exit $ac_status); }; }; then
19449 ac_cv_c_bigendian=no
19450 else
19451 echo "$as_me: program exited with status $ac_status" >&5
19452 echo "$as_me: failed program was:" >&5
19453 sed 's/^/| /' conftest.$ac_ext >&5
19455 ( exit $ac_status )
19456 ac_cv_c_bigendian=yes
19458 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19464 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19466 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
19467 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
19468 case $ac_cv_c_bigendian in
19469 yes)
19471 cat >>confdefs.h <<\_ACEOF
19472 #define WORDS_BIGENDIAN 1
19473 _ACEOF
19478 { { echo "$as_me:$LINENO: error: unknown endianness
19479 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
19480 echo "$as_me: error: unknown endianness
19481 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
19482 { (exit 1); exit 1; }; } ;;
19483 esac
19485 { echo "$as_me:$LINENO: checking host system type" >&5
19486 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
19487 if test "${ac_cv_host+set}" = set; then
19488 echo $ECHO_N "(cached) $ECHO_C" >&6
19489 else
19490 if test "x$host_alias" = x; then
19491 ac_cv_host=$ac_cv_build
19492 else
19493 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
19494 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
19495 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
19496 { (exit 1); exit 1; }; }
19500 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
19501 echo "${ECHO_T}$ac_cv_host" >&6; }
19502 case $ac_cv_host in
19503 *-*-*) ;;
19504 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
19505 echo "$as_me: error: invalid value of canonical host" >&2;}
19506 { (exit 1); exit 1; }; };;
19507 esac
19508 host=$ac_cv_host
19509 ac_save_IFS=$IFS; IFS='-'
19510 set x $ac_cv_host
19511 shift
19512 host_cpu=$1
19513 host_vendor=$2
19514 shift; shift
19515 # Remember, the first character of IFS is used to create $*,
19516 # except with old shells:
19517 host_os=$*
19518 IFS=$ac_save_IFS
19519 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
19522 for ac_prog in 'bison -y' byacc
19524 # Extract the first word of "$ac_prog", so it can be a program name with args.
19525 set dummy $ac_prog; ac_word=$2
19526 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19527 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19528 if test "${ac_cv_prog_YACC+set}" = set; then
19529 echo $ECHO_N "(cached) $ECHO_C" >&6
19530 else
19531 if test -n "$YACC"; then
19532 ac_cv_prog_YACC="$YACC" # Let the user override the test.
19533 else
19534 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19535 for as_dir in $PATH
19537 IFS=$as_save_IFS
19538 test -z "$as_dir" && as_dir=.
19539 for ac_exec_ext in '' $ac_executable_extensions; do
19540 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19541 ac_cv_prog_YACC="$ac_prog"
19542 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19543 break 2
19545 done
19546 done
19547 IFS=$as_save_IFS
19551 YACC=$ac_cv_prog_YACC
19552 if test -n "$YACC"; then
19553 { echo "$as_me:$LINENO: result: $YACC" >&5
19554 echo "${ECHO_T}$YACC" >&6; }
19555 else
19556 { echo "$as_me:$LINENO: result: no" >&5
19557 echo "${ECHO_T}no" >&6; }
19561 test -n "$YACC" && break
19562 done
19563 test -n "$YACC" || YACC="yacc"
19565 for ac_prog in flex lex
19567 # Extract the first word of "$ac_prog", so it can be a program name with args.
19568 set dummy $ac_prog; ac_word=$2
19569 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19570 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19571 if test "${ac_cv_prog_LEX+set}" = set; then
19572 echo $ECHO_N "(cached) $ECHO_C" >&6
19573 else
19574 if test -n "$LEX"; then
19575 ac_cv_prog_LEX="$LEX" # Let the user override the test.
19576 else
19577 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19578 for as_dir in $PATH
19580 IFS=$as_save_IFS
19581 test -z "$as_dir" && as_dir=.
19582 for ac_exec_ext in '' $ac_executable_extensions; do
19583 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19584 ac_cv_prog_LEX="$ac_prog"
19585 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19586 break 2
19588 done
19589 done
19590 IFS=$as_save_IFS
19594 LEX=$ac_cv_prog_LEX
19595 if test -n "$LEX"; then
19596 { echo "$as_me:$LINENO: result: $LEX" >&5
19597 echo "${ECHO_T}$LEX" >&6; }
19598 else
19599 { echo "$as_me:$LINENO: result: no" >&5
19600 echo "${ECHO_T}no" >&6; }
19604 test -n "$LEX" && break
19605 done
19606 test -n "$LEX" || LEX=":"
19608 if test "x$LEX" != "x:"; then
19609 cat >conftest.l <<_ACEOF
19611 a { ECHO; }
19612 b { REJECT; }
19613 c { yymore (); }
19614 d { yyless (1); }
19615 e { yyless (input () != 0); }
19616 f { unput (yytext[0]); }
19617 . { BEGIN INITIAL; }
19619 #ifdef YYTEXT_POINTER
19620 extern char *yytext;
19621 #endif
19623 main (void)
19625 return ! yylex () + ! yywrap ();
19627 _ACEOF
19628 { (ac_try="$LEX conftest.l"
19629 case "(($ac_try" in
19630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19631 *) ac_try_echo=$ac_try;;
19632 esac
19633 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19634 (eval "$LEX conftest.l") 2>&5
19635 ac_status=$?
19636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19637 (exit $ac_status); }
19638 { echo "$as_me:$LINENO: checking lex output file root" >&5
19639 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6; }
19640 if test "${ac_cv_prog_lex_root+set}" = set; then
19641 echo $ECHO_N "(cached) $ECHO_C" >&6
19642 else
19644 if test -f lex.yy.c; then
19645 ac_cv_prog_lex_root=lex.yy
19646 elif test -f lexyy.c; then
19647 ac_cv_prog_lex_root=lexyy
19648 else
19649 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
19650 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
19651 { (exit 1); exit 1; }; }
19654 { echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
19655 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6; }
19656 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
19658 if test -z "${LEXLIB+set}"; then
19659 { echo "$as_me:$LINENO: checking lex library" >&5
19660 echo $ECHO_N "checking lex library... $ECHO_C" >&6; }
19661 if test "${ac_cv_lib_lex+set}" = set; then
19662 echo $ECHO_N "(cached) $ECHO_C" >&6
19663 else
19665 ac_save_LIBS=$LIBS
19666 ac_cv_lib_lex='none needed'
19667 for ac_lib in '' -lfl -ll; do
19668 LIBS="$ac_lib $ac_save_LIBS"
19669 cat >conftest.$ac_ext <<_ACEOF
19670 `cat $LEX_OUTPUT_ROOT.c`
19671 _ACEOF
19672 rm -f conftest.$ac_objext conftest$ac_exeext
19673 if { (ac_try="$ac_link"
19674 case "(($ac_try" in
19675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19676 *) ac_try_echo=$ac_try;;
19677 esac
19678 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19679 (eval "$ac_link") 2>conftest.er1
19680 ac_status=$?
19681 grep -v '^ *+' conftest.er1 >conftest.err
19682 rm -f conftest.er1
19683 cat conftest.err >&5
19684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19685 (exit $ac_status); } && {
19686 test -z "$ac_cxx_werror_flag" ||
19687 test ! -s conftest.err
19688 } && test -s conftest$ac_exeext &&
19689 $as_test_x conftest$ac_exeext; then
19690 ac_cv_lib_lex=$ac_lib
19691 else
19692 echo "$as_me: failed program was:" >&5
19693 sed 's/^/| /' conftest.$ac_ext >&5
19698 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19699 conftest$ac_exeext conftest.$ac_ext
19700 test "$ac_cv_lib_lex" != 'none needed' && break
19701 done
19702 LIBS=$ac_save_LIBS
19705 { echo "$as_me:$LINENO: result: $ac_cv_lib_lex" >&5
19706 echo "${ECHO_T}$ac_cv_lib_lex" >&6; }
19707 test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
19711 { echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
19712 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6; }
19713 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
19714 echo $ECHO_N "(cached) $ECHO_C" >&6
19715 else
19716 # POSIX says lex can declare yytext either as a pointer or an array; the
19717 # default is implementation-dependent. Figure out which it is, since
19718 # not all implementations provide the %pointer and %array declarations.
19719 ac_cv_prog_lex_yytext_pointer=no
19720 ac_save_LIBS=$LIBS
19721 LIBS="$LEXLIB $ac_save_LIBS"
19722 cat >conftest.$ac_ext <<_ACEOF
19723 #define YYTEXT_POINTER 1
19724 `cat $LEX_OUTPUT_ROOT.c`
19725 _ACEOF
19726 rm -f conftest.$ac_objext conftest$ac_exeext
19727 if { (ac_try="$ac_link"
19728 case "(($ac_try" in
19729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19730 *) ac_try_echo=$ac_try;;
19731 esac
19732 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19733 (eval "$ac_link") 2>conftest.er1
19734 ac_status=$?
19735 grep -v '^ *+' conftest.er1 >conftest.err
19736 rm -f conftest.er1
19737 cat conftest.err >&5
19738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19739 (exit $ac_status); } && {
19740 test -z "$ac_cxx_werror_flag" ||
19741 test ! -s conftest.err
19742 } && test -s conftest$ac_exeext &&
19743 $as_test_x conftest$ac_exeext; then
19744 ac_cv_prog_lex_yytext_pointer=yes
19745 else
19746 echo "$as_me: failed program was:" >&5
19747 sed 's/^/| /' conftest.$ac_ext >&5
19752 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19753 conftest$ac_exeext conftest.$ac_ext
19754 LIBS=$ac_save_LIBS
19757 { echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
19758 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6; }
19759 if test $ac_cv_prog_lex_yytext_pointer = yes; then
19761 cat >>confdefs.h <<\_ACEOF
19762 #define YYTEXT_POINTER 1
19763 _ACEOF
19766 rm -f conftest.l $LEX_OUTPUT_ROOT.c
19769 if test "$LEX" = :; then
19770 LEX=${am_missing_run}flex
19773 case "${host_os}" in
19774 *linux* )
19775 OSTYPE=LINUX
19777 esac
19778 case "${host_cpu}" in
19779 i686 | i386 )
19780 CPUTYPE=i686
19782 esac
19783 echo "#ifndef BUILD_H" >build.h
19784 echo "#define BUILD_H" >>build.h
19785 echo "#define CSQL" >>build.h
19786 echo "#define ${OSTYPE}" >>build.h
19787 echo "#define ${CPUTYPE}" >>build.h
19788 echo "#endif " >>build.h
19789 cp build.h include
19805 for ac_header in stdio.h sys/mman.h sys/shm.h sys/errno.h crypt.h unistd.h \
19806 string.h sys/types.h sys/stat.h fcntl.h pthread.h math.h \
19807 signal.h
19809 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19810 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19811 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19812 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19813 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19814 echo $ECHO_N "(cached) $ECHO_C" >&6
19816 ac_res=`eval echo '${'$as_ac_Header'}'`
19817 { echo "$as_me:$LINENO: result: $ac_res" >&5
19818 echo "${ECHO_T}$ac_res" >&6; }
19819 else
19820 # Is the header compilable?
19821 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
19822 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19823 cat >conftest.$ac_ext <<_ACEOF
19824 /* confdefs.h. */
19825 _ACEOF
19826 cat confdefs.h >>conftest.$ac_ext
19827 cat >>conftest.$ac_ext <<_ACEOF
19828 /* end confdefs.h. */
19829 $ac_includes_default
19830 #include <$ac_header>
19831 _ACEOF
19832 rm -f conftest.$ac_objext
19833 if { (ac_try="$ac_compile"
19834 case "(($ac_try" in
19835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19836 *) ac_try_echo=$ac_try;;
19837 esac
19838 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19839 (eval "$ac_compile") 2>conftest.er1
19840 ac_status=$?
19841 grep -v '^ *+' conftest.er1 >conftest.err
19842 rm -f conftest.er1
19843 cat conftest.err >&5
19844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19845 (exit $ac_status); } && {
19846 test -z "$ac_cxx_werror_flag" ||
19847 test ! -s conftest.err
19848 } && test -s conftest.$ac_objext; then
19849 ac_header_compiler=yes
19850 else
19851 echo "$as_me: failed program was:" >&5
19852 sed 's/^/| /' conftest.$ac_ext >&5
19854 ac_header_compiler=no
19857 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19858 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19859 echo "${ECHO_T}$ac_header_compiler" >&6; }
19861 # Is the header present?
19862 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
19863 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
19864 cat >conftest.$ac_ext <<_ACEOF
19865 /* confdefs.h. */
19866 _ACEOF
19867 cat confdefs.h >>conftest.$ac_ext
19868 cat >>conftest.$ac_ext <<_ACEOF
19869 /* end confdefs.h. */
19870 #include <$ac_header>
19871 _ACEOF
19872 if { (ac_try="$ac_cpp conftest.$ac_ext"
19873 case "(($ac_try" in
19874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19875 *) ac_try_echo=$ac_try;;
19876 esac
19877 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19878 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19879 ac_status=$?
19880 grep -v '^ *+' conftest.er1 >conftest.err
19881 rm -f conftest.er1
19882 cat conftest.err >&5
19883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19884 (exit $ac_status); } >/dev/null && {
19885 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
19886 test ! -s conftest.err
19887 }; then
19888 ac_header_preproc=yes
19889 else
19890 echo "$as_me: failed program was:" >&5
19891 sed 's/^/| /' conftest.$ac_ext >&5
19893 ac_header_preproc=no
19896 rm -f conftest.err conftest.$ac_ext
19897 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19898 echo "${ECHO_T}$ac_header_preproc" >&6; }
19900 # So? What about this header?
19901 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
19902 yes:no: )
19903 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19904 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19905 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19906 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19907 ac_header_preproc=yes
19909 no:yes:* )
19910 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19911 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19912 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19913 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19914 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19915 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19916 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19917 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19918 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19919 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19920 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19921 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19924 esac
19925 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19926 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19927 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19928 echo $ECHO_N "(cached) $ECHO_C" >&6
19929 else
19930 eval "$as_ac_Header=\$ac_header_preproc"
19932 ac_res=`eval echo '${'$as_ac_Header'}'`
19933 { echo "$as_me:$LINENO: result: $ac_res" >&5
19934 echo "${ECHO_T}$ac_res" >&6; }
19937 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19938 cat >>confdefs.h <<_ACEOF
19939 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19940 _ACEOF
19944 done
19949 ac_config_files="$ac_config_files Makefile src/Makefile include/Makefile src/server/Makefile src/sql/Makefile src/tools/Makefile src/jdbc/Makefile src/cache/Makefile"
19951 cat >confcache <<\_ACEOF
19952 # This file is a shell script that caches the results of configure
19953 # tests run on this system so they can be shared between configure
19954 # scripts and configure runs, see configure's option --config-cache.
19955 # It is not useful on other systems. If it contains results you don't
19956 # want to keep, you may remove or edit it.
19958 # config.status only pays attention to the cache file if you give it
19959 # the --recheck option to rerun configure.
19961 # `ac_cv_env_foo' variables (set or unset) will be overridden when
19962 # loading this file, other *unset* `ac_cv_foo' will be assigned the
19963 # following values.
19965 _ACEOF
19967 # The following way of writing the cache mishandles newlines in values,
19968 # but we know of no workaround that is simple, portable, and efficient.
19969 # So, we kill variables containing newlines.
19970 # Ultrix sh set writes to stderr and can't be redirected directly,
19971 # and sets the high bit in the cache file unless we assign to the vars.
19973 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
19974 eval ac_val=\$$ac_var
19975 case $ac_val in #(
19976 *${as_nl}*)
19977 case $ac_var in #(
19978 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
19979 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
19980 esac
19981 case $ac_var in #(
19982 _ | IFS | as_nl) ;; #(
19983 *) $as_unset $ac_var ;;
19984 esac ;;
19985 esac
19986 done
19988 (set) 2>&1 |
19989 case $as_nl`(ac_space=' '; set) 2>&1` in #(
19990 *${as_nl}ac_space=\ *)
19991 # `set' does not quote correctly, so add quotes (double-quote
19992 # substitution turns \\\\ into \\, and sed turns \\ into \).
19993 sed -n \
19994 "s/'/'\\\\''/g;
19995 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19996 ;; #(
19998 # `set' quotes correctly as required by POSIX, so do not add quotes.
19999 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
20001 esac |
20002 sort
20004 sed '
20005 /^ac_cv_env_/b end
20006 t clear
20007 :clear
20008 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20009 t end
20010 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20011 :end' >>confcache
20012 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
20013 if test -w "$cache_file"; then
20014 test "x$cache_file" != "x/dev/null" &&
20015 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
20016 echo "$as_me: updating cache $cache_file" >&6;}
20017 cat confcache >$cache_file
20018 else
20019 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
20020 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
20023 rm -f confcache
20025 test "x$prefix" = xNONE && prefix=$ac_default_prefix
20026 # Let make expand exec_prefix.
20027 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20029 DEFS=-DHAVE_CONFIG_H
20031 ac_libobjs=
20032 ac_ltlibobjs=
20033 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20034 # 1. Remove the extension, and $U if already installed.
20035 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
20036 ac_i=`echo "$ac_i" | sed "$ac_script"`
20037 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
20038 # will be set to the directory where LIBOBJS objects are built.
20039 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
20040 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
20041 done
20042 LIBOBJS=$ac_libobjs
20044 LTLIBOBJS=$ac_ltlibobjs
20047 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
20048 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
20049 Usually this means the macro was only invoked conditionally." >&5
20050 echo "$as_me: error: conditional \"AMDEP\" was never defined.
20051 Usually this means the macro was only invoked conditionally." >&2;}
20052 { (exit 1); exit 1; }; }
20054 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
20055 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
20056 Usually this means the macro was only invoked conditionally." >&5
20057 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
20058 Usually this means the macro was only invoked conditionally." >&2;}
20059 { (exit 1); exit 1; }; }
20061 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
20062 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
20063 Usually this means the macro was only invoked conditionally." >&5
20064 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
20065 Usually this means the macro was only invoked conditionally." >&2;}
20066 { (exit 1); exit 1; }; }
20069 : ${CONFIG_STATUS=./config.status}
20070 ac_clean_files_save=$ac_clean_files
20071 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
20072 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
20073 echo "$as_me: creating $CONFIG_STATUS" >&6;}
20074 cat >$CONFIG_STATUS <<_ACEOF
20075 #! $SHELL
20076 # Generated by $as_me.
20077 # Run this file to recreate the current configuration.
20078 # Compiler output produced by configure, useful for debugging
20079 # configure, is in config.log if it exists.
20081 debug=false
20082 ac_cs_recheck=false
20083 ac_cs_silent=false
20084 SHELL=\${CONFIG_SHELL-$SHELL}
20085 _ACEOF
20087 cat >>$CONFIG_STATUS <<\_ACEOF
20088 ## --------------------- ##
20089 ## M4sh Initialization. ##
20090 ## --------------------- ##
20092 # Be more Bourne compatible
20093 DUALCASE=1; export DUALCASE # for MKS sh
20094 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
20095 emulate sh
20096 NULLCMD=:
20097 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20098 # is contrary to our usage. Disable this feature.
20099 alias -g '${1+"$@"}'='"$@"'
20100 setopt NO_GLOB_SUBST
20101 else
20102 case `(set -o) 2>/dev/null` in
20103 *posix*) set -o posix ;;
20104 esac
20111 # PATH needs CR
20112 # Avoid depending upon Character Ranges.
20113 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20114 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20115 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20116 as_cr_digits='0123456789'
20117 as_cr_alnum=$as_cr_Letters$as_cr_digits
20119 # The user is always right.
20120 if test "${PATH_SEPARATOR+set}" != set; then
20121 echo "#! /bin/sh" >conf$$.sh
20122 echo "exit 0" >>conf$$.sh
20123 chmod +x conf$$.sh
20124 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
20125 PATH_SEPARATOR=';'
20126 else
20127 PATH_SEPARATOR=:
20129 rm -f conf$$.sh
20132 # Support unset when possible.
20133 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
20134 as_unset=unset
20135 else
20136 as_unset=false
20140 # IFS
20141 # We need space, tab and new line, in precisely that order. Quoting is
20142 # there to prevent editors from complaining about space-tab.
20143 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
20144 # splitting by setting IFS to empty value.)
20145 as_nl='
20147 IFS=" "" $as_nl"
20149 # Find who we are. Look in the path if we contain no directory separator.
20150 case $0 in
20151 *[\\/]* ) as_myself=$0 ;;
20152 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20153 for as_dir in $PATH
20155 IFS=$as_save_IFS
20156 test -z "$as_dir" && as_dir=.
20157 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20158 done
20159 IFS=$as_save_IFS
20162 esac
20163 # We did not find ourselves, most probably we were run as `sh COMMAND'
20164 # in which case we are not to be found in the path.
20165 if test "x$as_myself" = x; then
20166 as_myself=$0
20168 if test ! -f "$as_myself"; then
20169 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
20170 { (exit 1); exit 1; }
20173 # Work around bugs in pre-3.0 UWIN ksh.
20174 for as_var in ENV MAIL MAILPATH
20175 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
20176 done
20177 PS1='$ '
20178 PS2='> '
20179 PS4='+ '
20181 # NLS nuisances.
20182 for as_var in \
20183 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
20184 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
20185 LC_TELEPHONE LC_TIME
20187 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
20188 eval $as_var=C; export $as_var
20189 else
20190 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
20192 done
20194 # Required to use basename.
20195 if expr a : '\(a\)' >/dev/null 2>&1 &&
20196 test "X`expr 00001 : '.*\(...\)'`" = X001; then
20197 as_expr=expr
20198 else
20199 as_expr=false
20202 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
20203 as_basename=basename
20204 else
20205 as_basename=false
20209 # Name of the executable.
20210 as_me=`$as_basename -- "$0" ||
20211 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20212 X"$0" : 'X\(//\)$' \| \
20213 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
20214 echo X/"$0" |
20215 sed '/^.*\/\([^/][^/]*\)\/*$/{
20216 s//\1/
20219 /^X\/\(\/\/\)$/{
20220 s//\1/
20223 /^X\/\(\/\).*/{
20224 s//\1/
20227 s/.*/./; q'`
20229 # CDPATH.
20230 $as_unset CDPATH
20234 as_lineno_1=$LINENO
20235 as_lineno_2=$LINENO
20236 test "x$as_lineno_1" != "x$as_lineno_2" &&
20237 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
20239 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
20240 # uniformly replaced by the line number. The first 'sed' inserts a
20241 # line-number line after each line using $LINENO; the second 'sed'
20242 # does the real work. The second script uses 'N' to pair each
20243 # line-number line with the line containing $LINENO, and appends
20244 # trailing '-' during substitution so that $LINENO is not a special
20245 # case at line end.
20246 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
20247 # scripts with optimization help from Paolo Bonzini. Blame Lee
20248 # E. McMahon (1931-1989) for sed's syntax. :-)
20249 sed -n '
20251 /[$]LINENO/=
20252 ' <$as_myself |
20253 sed '
20254 s/[$]LINENO.*/&-/
20255 t lineno
20257 :lineno
20259 :loop
20260 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
20261 t loop
20262 s/-\n.*//
20263 ' >$as_me.lineno &&
20264 chmod +x "$as_me.lineno" ||
20265 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
20266 { (exit 1); exit 1; }; }
20268 # Don't try to exec as it changes $[0], causing all sort of problems
20269 # (the dirname of $[0] is not the place where we might find the
20270 # original and so on. Autoconf is especially sensitive to this).
20271 . "./$as_me.lineno"
20272 # Exit status is that of the last command.
20273 exit
20277 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
20278 as_dirname=dirname
20279 else
20280 as_dirname=false
20283 ECHO_C= ECHO_N= ECHO_T=
20284 case `echo -n x` in
20285 -n*)
20286 case `echo 'x\c'` in
20287 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
20288 *) ECHO_C='\c';;
20289 esac;;
20291 ECHO_N='-n';;
20292 esac
20294 if expr a : '\(a\)' >/dev/null 2>&1 &&
20295 test "X`expr 00001 : '.*\(...\)'`" = X001; then
20296 as_expr=expr
20297 else
20298 as_expr=false
20301 rm -f conf$$ conf$$.exe conf$$.file
20302 if test -d conf$$.dir; then
20303 rm -f conf$$.dir/conf$$.file
20304 else
20305 rm -f conf$$.dir
20306 mkdir conf$$.dir
20308 echo >conf$$.file
20309 if ln -s conf$$.file conf$$ 2>/dev/null; then
20310 as_ln_s='ln -s'
20311 # ... but there are two gotchas:
20312 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
20313 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
20314 # In both cases, we have to default to `cp -p'.
20315 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
20316 as_ln_s='cp -p'
20317 elif ln conf$$.file conf$$ 2>/dev/null; then
20318 as_ln_s=ln
20319 else
20320 as_ln_s='cp -p'
20322 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
20323 rmdir conf$$.dir 2>/dev/null
20325 if mkdir -p . 2>/dev/null; then
20326 as_mkdir_p=:
20327 else
20328 test -d ./-p && rmdir ./-p
20329 as_mkdir_p=false
20332 if test -x / >/dev/null 2>&1; then
20333 as_test_x='test -x'
20334 else
20335 if ls -dL / >/dev/null 2>&1; then
20336 as_ls_L_option=L
20337 else
20338 as_ls_L_option=
20340 as_test_x='
20341 eval sh -c '\''
20342 if test -d "$1"; then
20343 test -d "$1/.";
20344 else
20345 case $1 in
20346 -*)set "./$1";;
20347 esac;
20348 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
20349 ???[sx]*):;;*)false;;esac;fi
20350 '\'' sh
20353 as_executable_p=$as_test_x
20355 # Sed expression to map a string onto a valid CPP name.
20356 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20358 # Sed expression to map a string onto a valid variable name.
20359 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20362 exec 6>&1
20364 # Save the log message, to keep $[0] and so on meaningful, and to
20365 # report actual input values of CONFIG_FILES etc. instead of their
20366 # values after options handling.
20367 ac_log="
20368 This file was extended by $as_me, which was
20369 generated by GNU Autoconf 2.61. Invocation command line was
20371 CONFIG_FILES = $CONFIG_FILES
20372 CONFIG_HEADERS = $CONFIG_HEADERS
20373 CONFIG_LINKS = $CONFIG_LINKS
20374 CONFIG_COMMANDS = $CONFIG_COMMANDS
20375 $ $0 $@
20377 on `(hostname || uname -n) 2>/dev/null | sed 1q`
20380 _ACEOF
20382 cat >>$CONFIG_STATUS <<_ACEOF
20383 # Files that config.status was made for.
20384 config_files="$ac_config_files"
20385 config_headers="$ac_config_headers"
20386 config_commands="$ac_config_commands"
20388 _ACEOF
20390 cat >>$CONFIG_STATUS <<\_ACEOF
20391 ac_cs_usage="\
20392 \`$as_me' instantiates files from templates according to the
20393 current configuration.
20395 Usage: $0 [OPTIONS] [FILE]...
20397 -h, --help print this help, then exit
20398 -V, --version print version number and configuration settings, then exit
20399 -q, --quiet do not print progress messages
20400 -d, --debug don't remove temporary files
20401 --recheck update $as_me by reconfiguring in the same conditions
20402 --file=FILE[:TEMPLATE]
20403 instantiate the configuration file FILE
20404 --header=FILE[:TEMPLATE]
20405 instantiate the configuration header FILE
20407 Configuration files:
20408 $config_files
20410 Configuration headers:
20411 $config_headers
20413 Configuration commands:
20414 $config_commands
20416 Report bugs to <bug-autoconf@gnu.org>."
20418 _ACEOF
20419 cat >>$CONFIG_STATUS <<_ACEOF
20420 ac_cs_version="\\
20421 config.status
20422 configured by $0, generated by GNU Autoconf 2.61,
20423 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
20425 Copyright (C) 2006 Free Software Foundation, Inc.
20426 This config.status script is free software; the Free Software Foundation
20427 gives unlimited permission to copy, distribute and modify it."
20429 ac_pwd='$ac_pwd'
20430 srcdir='$srcdir'
20431 INSTALL='$INSTALL'
20432 MKDIR_P='$MKDIR_P'
20433 _ACEOF
20435 cat >>$CONFIG_STATUS <<\_ACEOF
20436 # If no file are specified by the user, then we need to provide default
20437 # value. By we need to know if files were specified by the user.
20438 ac_need_defaults=:
20439 while test $# != 0
20441 case $1 in
20442 --*=*)
20443 ac_option=`expr "X$1" : 'X\([^=]*\)='`
20444 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
20445 ac_shift=:
20448 ac_option=$1
20449 ac_optarg=$2
20450 ac_shift=shift
20452 esac
20454 case $ac_option in
20455 # Handling of the options.
20456 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20457 ac_cs_recheck=: ;;
20458 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
20459 echo "$ac_cs_version"; exit ;;
20460 --debug | --debu | --deb | --de | --d | -d )
20461 debug=: ;;
20462 --file | --fil | --fi | --f )
20463 $ac_shift
20464 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
20465 ac_need_defaults=false;;
20466 --header | --heade | --head | --hea )
20467 $ac_shift
20468 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
20469 ac_need_defaults=false;;
20470 --he | --h)
20471 # Conflict between --help and --header
20472 { echo "$as_me: error: ambiguous option: $1
20473 Try \`$0 --help' for more information." >&2
20474 { (exit 1); exit 1; }; };;
20475 --help | --hel | -h )
20476 echo "$ac_cs_usage"; exit ;;
20477 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20478 | -silent | --silent | --silen | --sile | --sil | --si | --s)
20479 ac_cs_silent=: ;;
20481 # This is an error.
20482 -*) { echo "$as_me: error: unrecognized option: $1
20483 Try \`$0 --help' for more information." >&2
20484 { (exit 1); exit 1; }; } ;;
20486 *) ac_config_targets="$ac_config_targets $1"
20487 ac_need_defaults=false ;;
20489 esac
20490 shift
20491 done
20493 ac_configure_extra_args=
20495 if $ac_cs_silent; then
20496 exec 6>/dev/null
20497 ac_configure_extra_args="$ac_configure_extra_args --silent"
20500 _ACEOF
20501 cat >>$CONFIG_STATUS <<_ACEOF
20502 if \$ac_cs_recheck; then
20503 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
20504 CONFIG_SHELL=$SHELL
20505 export CONFIG_SHELL
20506 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20509 _ACEOF
20510 cat >>$CONFIG_STATUS <<\_ACEOF
20511 exec 5>>config.log
20513 echo
20514 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20515 ## Running $as_me. ##
20516 _ASBOX
20517 echo "$ac_log"
20518 } >&5
20520 _ACEOF
20521 cat >>$CONFIG_STATUS <<_ACEOF
20523 # INIT-COMMANDS
20525 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
20527 _ACEOF
20529 cat >>$CONFIG_STATUS <<\_ACEOF
20531 # Handling of arguments.
20532 for ac_config_target in $ac_config_targets
20534 case $ac_config_target in
20535 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
20536 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
20537 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
20538 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
20539 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
20540 "src/server/Makefile") CONFIG_FILES="$CONFIG_FILES src/server/Makefile" ;;
20541 "src/sql/Makefile") CONFIG_FILES="$CONFIG_FILES src/sql/Makefile" ;;
20542 "src/tools/Makefile") CONFIG_FILES="$CONFIG_FILES src/tools/Makefile" ;;
20543 "src/jdbc/Makefile") CONFIG_FILES="$CONFIG_FILES src/jdbc/Makefile" ;;
20544 "src/cache/Makefile") CONFIG_FILES="$CONFIG_FILES src/cache/Makefile" ;;
20546 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
20547 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
20548 { (exit 1); exit 1; }; };;
20549 esac
20550 done
20553 # If the user did not use the arguments to specify the items to instantiate,
20554 # then the envvar interface is used. Set only those that are not.
20555 # We use the long form for the default assignment because of an extremely
20556 # bizarre bug on SunOS 4.1.3.
20557 if $ac_need_defaults; then
20558 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
20559 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
20560 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
20563 # Have a temporary directory for convenience. Make it in the build tree
20564 # simply because there is no reason against having it here, and in addition,
20565 # creating and moving files from /tmp can sometimes cause problems.
20566 # Hook for its removal unless debugging.
20567 # Note that there is a small window in which the directory will not be cleaned:
20568 # after its creation but before its name has been assigned to `$tmp'.
20569 $debug ||
20571 tmp=
20572 trap 'exit_status=$?
20573 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
20575 trap '{ (exit 1); exit 1; }' 1 2 13 15
20577 # Create a (secure) tmp directory for tmp files.
20580 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
20581 test -n "$tmp" && test -d "$tmp"
20582 } ||
20584 tmp=./conf$$-$RANDOM
20585 (umask 077 && mkdir "$tmp")
20586 } ||
20588 echo "$me: cannot create a temporary directory in ." >&2
20589 { (exit 1); exit 1; }
20593 # Set up the sed scripts for CONFIG_FILES section.
20596 # No need to generate the scripts if there are no CONFIG_FILES.
20597 # This happens for instance when ./config.status config.h
20598 if test -n "$CONFIG_FILES"; then
20600 _ACEOF
20604 ac_delim='%!_!# '
20605 for ac_last_try in false false false false false :; do
20606 cat >conf$$subs.sed <<_ACEOF
20607 SHELL!$SHELL$ac_delim
20608 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
20609 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
20610 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
20611 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
20612 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
20613 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
20614 exec_prefix!$exec_prefix$ac_delim
20615 prefix!$prefix$ac_delim
20616 program_transform_name!$program_transform_name$ac_delim
20617 bindir!$bindir$ac_delim
20618 sbindir!$sbindir$ac_delim
20619 libexecdir!$libexecdir$ac_delim
20620 datarootdir!$datarootdir$ac_delim
20621 datadir!$datadir$ac_delim
20622 sysconfdir!$sysconfdir$ac_delim
20623 sharedstatedir!$sharedstatedir$ac_delim
20624 localstatedir!$localstatedir$ac_delim
20625 includedir!$includedir$ac_delim
20626 oldincludedir!$oldincludedir$ac_delim
20627 docdir!$docdir$ac_delim
20628 infodir!$infodir$ac_delim
20629 htmldir!$htmldir$ac_delim
20630 dvidir!$dvidir$ac_delim
20631 pdfdir!$pdfdir$ac_delim
20632 psdir!$psdir$ac_delim
20633 libdir!$libdir$ac_delim
20634 localedir!$localedir$ac_delim
20635 mandir!$mandir$ac_delim
20636 DEFS!$DEFS$ac_delim
20637 ECHO_C!$ECHO_C$ac_delim
20638 ECHO_N!$ECHO_N$ac_delim
20639 ECHO_T!$ECHO_T$ac_delim
20640 LIBS!$LIBS$ac_delim
20641 build_alias!$build_alias$ac_delim
20642 host_alias!$host_alias$ac_delim
20643 target_alias!$target_alias$ac_delim
20644 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
20645 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
20646 INSTALL_DATA!$INSTALL_DATA$ac_delim
20647 am__isrc!$am__isrc$ac_delim
20648 CYGPATH_W!$CYGPATH_W$ac_delim
20649 PACKAGE!$PACKAGE$ac_delim
20650 VERSION!$VERSION$ac_delim
20651 ACLOCAL!$ACLOCAL$ac_delim
20652 AUTOCONF!$AUTOCONF$ac_delim
20653 AUTOMAKE!$AUTOMAKE$ac_delim
20654 AUTOHEADER!$AUTOHEADER$ac_delim
20655 MAKEINFO!$MAKEINFO$ac_delim
20656 install_sh!$install_sh$ac_delim
20657 STRIP!$STRIP$ac_delim
20658 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
20659 mkdir_p!$mkdir_p$ac_delim
20660 AWK!$AWK$ac_delim
20661 SET_MAKE!$SET_MAKE$ac_delim
20662 am__leading_dot!$am__leading_dot$ac_delim
20663 AMTAR!$AMTAR$ac_delim
20664 am__tar!$am__tar$ac_delim
20665 am__untar!$am__untar$ac_delim
20666 CXX!$CXX$ac_delim
20667 CXXFLAGS!$CXXFLAGS$ac_delim
20668 LDFLAGS!$LDFLAGS$ac_delim
20669 CPPFLAGS!$CPPFLAGS$ac_delim
20670 ac_ct_CXX!$ac_ct_CXX$ac_delim
20671 EXEEXT!$EXEEXT$ac_delim
20672 OBJEXT!$OBJEXT$ac_delim
20673 DEPDIR!$DEPDIR$ac_delim
20674 am__include!$am__include$ac_delim
20675 am__quote!$am__quote$ac_delim
20676 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
20677 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
20678 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
20679 CXXDEPMODE!$CXXDEPMODE$ac_delim
20680 am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
20681 am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
20682 build!$build$ac_delim
20683 build_cpu!$build_cpu$ac_delim
20684 build_vendor!$build_vendor$ac_delim
20685 build_os!$build_os$ac_delim
20686 host!$host$ac_delim
20687 host_cpu!$host_cpu$ac_delim
20688 host_vendor!$host_vendor$ac_delim
20689 host_os!$host_os$ac_delim
20690 CC!$CC$ac_delim
20691 CFLAGS!$CFLAGS$ac_delim
20692 ac_ct_CC!$ac_ct_CC$ac_delim
20693 CCDEPMODE!$CCDEPMODE$ac_delim
20694 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
20695 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
20696 SED!$SED$ac_delim
20697 GREP!$GREP$ac_delim
20698 EGREP!$EGREP$ac_delim
20699 LN_S!$LN_S$ac_delim
20700 ECHO!$ECHO$ac_delim
20701 AR!$AR$ac_delim
20702 RANLIB!$RANLIB$ac_delim
20703 CPP!$CPP$ac_delim
20704 _ACEOF
20706 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
20707 break
20708 elif $ac_last_try; then
20709 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
20710 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
20711 { (exit 1); exit 1; }; }
20712 else
20713 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20715 done
20717 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
20718 if test -n "$ac_eof"; then
20719 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
20720 ac_eof=`expr $ac_eof + 1`
20723 cat >>$CONFIG_STATUS <<_ACEOF
20724 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
20725 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20726 _ACEOF
20727 sed '
20728 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
20729 s/^/s,@/; s/!/@,|#_!!_#|/
20732 s/'"$ac_delim"'$/,g/; t
20733 s/$/\\/; p
20734 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
20735 ' >>$CONFIG_STATUS <conf$$subs.sed
20736 rm -f conf$$subs.sed
20737 cat >>$CONFIG_STATUS <<_ACEOF
20738 CEOF$ac_eof
20739 _ACEOF
20742 ac_delim='%!_!# '
20743 for ac_last_try in false false false false false :; do
20744 cat >conf$$subs.sed <<_ACEOF
20745 CXXCPP!$CXXCPP$ac_delim
20746 F77!$F77$ac_delim
20747 FFLAGS!$FFLAGS$ac_delim
20748 ac_ct_F77!$ac_ct_F77$ac_delim
20749 LIBTOOL!$LIBTOOL$ac_delim
20750 YACC!$YACC$ac_delim
20751 YFLAGS!$YFLAGS$ac_delim
20752 LEX!$LEX$ac_delim
20753 LEX_OUTPUT_ROOT!$LEX_OUTPUT_ROOT$ac_delim
20754 LEXLIB!$LEXLIB$ac_delim
20755 LIBOBJS!$LIBOBJS$ac_delim
20756 LTLIBOBJS!$LTLIBOBJS$ac_delim
20757 _ACEOF
20759 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 12; then
20760 break
20761 elif $ac_last_try; then
20762 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
20763 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
20764 { (exit 1); exit 1; }; }
20765 else
20766 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20768 done
20770 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
20771 if test -n "$ac_eof"; then
20772 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
20773 ac_eof=`expr $ac_eof + 1`
20776 cat >>$CONFIG_STATUS <<_ACEOF
20777 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
20778 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
20779 _ACEOF
20780 sed '
20781 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
20782 s/^/s,@/; s/!/@,|#_!!_#|/
20785 s/'"$ac_delim"'$/,g/; t
20786 s/$/\\/; p
20787 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
20788 ' >>$CONFIG_STATUS <conf$$subs.sed
20789 rm -f conf$$subs.sed
20790 cat >>$CONFIG_STATUS <<_ACEOF
20791 :end
20792 s/|#_!!_#|//g
20793 CEOF$ac_eof
20794 _ACEOF
20797 # VPATH may cause trouble with some makes, so we remove $(srcdir),
20798 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
20799 # trailing colons and then remove the whole line if VPATH becomes empty
20800 # (actually we leave an empty line to preserve line numbers).
20801 if test "x$srcdir" = x.; then
20802 ac_vpsub='/^[ ]*VPATH[ ]*=/{
20803 s/:*\$(srcdir):*/:/
20804 s/:*\${srcdir}:*/:/
20805 s/:*@srcdir@:*/:/
20806 s/^\([^=]*=[ ]*\):*/\1/
20807 s/:*$//
20808 s/^[^=]*=[ ]*$//
20812 cat >>$CONFIG_STATUS <<\_ACEOF
20813 fi # test -n "$CONFIG_FILES"
20816 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
20818 case $ac_tag in
20819 :[FHLC]) ac_mode=$ac_tag; continue;;
20820 esac
20821 case $ac_mode$ac_tag in
20822 :[FHL]*:*);;
20823 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
20824 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
20825 { (exit 1); exit 1; }; };;
20826 :[FH]-) ac_tag=-:-;;
20827 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
20828 esac
20829 ac_save_IFS=$IFS
20830 IFS=:
20831 set x $ac_tag
20832 IFS=$ac_save_IFS
20833 shift
20834 ac_file=$1
20835 shift
20837 case $ac_mode in
20838 :L) ac_source=$1;;
20839 :[FH])
20840 ac_file_inputs=
20841 for ac_f
20843 case $ac_f in
20844 -) ac_f="$tmp/stdin";;
20845 *) # Look for the file first in the build tree, then in the source tree
20846 # (if the path is not absolute). The absolute path cannot be DOS-style,
20847 # because $ac_f cannot contain `:'.
20848 test -f "$ac_f" ||
20849 case $ac_f in
20850 [\\/$]*) false;;
20851 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
20852 esac ||
20853 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
20854 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
20855 { (exit 1); exit 1; }; };;
20856 esac
20857 ac_file_inputs="$ac_file_inputs $ac_f"
20858 done
20860 # Let's still pretend it is `configure' which instantiates (i.e., don't
20861 # use $as_me), people would be surprised to read:
20862 # /* config.h. Generated by config.status. */
20863 configure_input="Generated from "`IFS=:
20864 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
20865 if test x"$ac_file" != x-; then
20866 configure_input="$ac_file. $configure_input"
20867 { echo "$as_me:$LINENO: creating $ac_file" >&5
20868 echo "$as_me: creating $ac_file" >&6;}
20871 case $ac_tag in
20872 *:-:* | *:-) cat >"$tmp/stdin";;
20873 esac
20875 esac
20877 ac_dir=`$as_dirname -- "$ac_file" ||
20878 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20879 X"$ac_file" : 'X\(//\)[^/]' \| \
20880 X"$ac_file" : 'X\(//\)$' \| \
20881 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
20882 echo X"$ac_file" |
20883 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20884 s//\1/
20887 /^X\(\/\/\)[^/].*/{
20888 s//\1/
20891 /^X\(\/\/\)$/{
20892 s//\1/
20895 /^X\(\/\).*/{
20896 s//\1/
20899 s/.*/./; q'`
20900 { as_dir="$ac_dir"
20901 case $as_dir in #(
20902 -*) as_dir=./$as_dir;;
20903 esac
20904 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
20905 as_dirs=
20906 while :; do
20907 case $as_dir in #(
20908 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
20909 *) as_qdir=$as_dir;;
20910 esac
20911 as_dirs="'$as_qdir' $as_dirs"
20912 as_dir=`$as_dirname -- "$as_dir" ||
20913 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20914 X"$as_dir" : 'X\(//\)[^/]' \| \
20915 X"$as_dir" : 'X\(//\)$' \| \
20916 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
20917 echo X"$as_dir" |
20918 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20919 s//\1/
20922 /^X\(\/\/\)[^/].*/{
20923 s//\1/
20926 /^X\(\/\/\)$/{
20927 s//\1/
20930 /^X\(\/\).*/{
20931 s//\1/
20934 s/.*/./; q'`
20935 test -d "$as_dir" && break
20936 done
20937 test -z "$as_dirs" || eval "mkdir $as_dirs"
20938 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
20939 echo "$as_me: error: cannot create directory $as_dir" >&2;}
20940 { (exit 1); exit 1; }; }; }
20941 ac_builddir=.
20943 case "$ac_dir" in
20944 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
20946 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
20947 # A ".." for each directory in $ac_dir_suffix.
20948 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
20949 case $ac_top_builddir_sub in
20950 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
20951 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
20952 esac ;;
20953 esac
20954 ac_abs_top_builddir=$ac_pwd
20955 ac_abs_builddir=$ac_pwd$ac_dir_suffix
20956 # for backward compatibility:
20957 ac_top_builddir=$ac_top_build_prefix
20959 case $srcdir in
20960 .) # We are building in place.
20961 ac_srcdir=.
20962 ac_top_srcdir=$ac_top_builddir_sub
20963 ac_abs_top_srcdir=$ac_pwd ;;
20964 [\\/]* | ?:[\\/]* ) # Absolute name.
20965 ac_srcdir=$srcdir$ac_dir_suffix;
20966 ac_top_srcdir=$srcdir
20967 ac_abs_top_srcdir=$srcdir ;;
20968 *) # Relative name.
20969 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
20970 ac_top_srcdir=$ac_top_build_prefix$srcdir
20971 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
20972 esac
20973 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
20976 case $ac_mode in
20979 # CONFIG_FILE
20982 case $INSTALL in
20983 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
20984 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
20985 esac
20986 ac_MKDIR_P=$MKDIR_P
20987 case $MKDIR_P in
20988 [\\/$]* | ?:[\\/]* ) ;;
20989 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
20990 esac
20991 _ACEOF
20993 cat >>$CONFIG_STATUS <<\_ACEOF
20994 # If the template does not know about datarootdir, expand it.
20995 # FIXME: This hack should be removed a few years after 2.60.
20996 ac_datarootdir_hack=; ac_datarootdir_seen=
20998 case `sed -n '/datarootdir/ {
21002 /@datadir@/p
21003 /@docdir@/p
21004 /@infodir@/p
21005 /@localedir@/p
21006 /@mandir@/p
21007 ' $ac_file_inputs` in
21008 *datarootdir*) ac_datarootdir_seen=yes;;
21009 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
21010 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
21011 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
21012 _ACEOF
21013 cat >>$CONFIG_STATUS <<_ACEOF
21014 ac_datarootdir_hack='
21015 s&@datadir@&$datadir&g
21016 s&@docdir@&$docdir&g
21017 s&@infodir@&$infodir&g
21018 s&@localedir@&$localedir&g
21019 s&@mandir@&$mandir&g
21020 s&\\\${datarootdir}&$datarootdir&g' ;;
21021 esac
21022 _ACEOF
21024 # Neutralize VPATH when `$srcdir' = `.'.
21025 # Shell code in configure.ac might set extrasub.
21026 # FIXME: do we really want to maintain this feature?
21027 cat >>$CONFIG_STATUS <<_ACEOF
21028 sed "$ac_vpsub
21029 $extrasub
21030 _ACEOF
21031 cat >>$CONFIG_STATUS <<\_ACEOF
21033 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21034 s&@configure_input@&$configure_input&;t t
21035 s&@top_builddir@&$ac_top_builddir_sub&;t t
21036 s&@srcdir@&$ac_srcdir&;t t
21037 s&@abs_srcdir@&$ac_abs_srcdir&;t t
21038 s&@top_srcdir@&$ac_top_srcdir&;t t
21039 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
21040 s&@builddir@&$ac_builddir&;t t
21041 s&@abs_builddir@&$ac_abs_builddir&;t t
21042 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
21043 s&@INSTALL@&$ac_INSTALL&;t t
21044 s&@MKDIR_P@&$ac_MKDIR_P&;t t
21045 $ac_datarootdir_hack
21046 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
21048 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
21049 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
21050 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
21051 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21052 which seems to be undefined. Please make sure it is defined." >&5
21053 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21054 which seems to be undefined. Please make sure it is defined." >&2;}
21056 rm -f "$tmp/stdin"
21057 case $ac_file in
21058 -) cat "$tmp/out"; rm -f "$tmp/out";;
21059 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
21060 esac
21064 # CONFIG_HEADER
21066 _ACEOF
21068 # Transform confdefs.h into a sed script `conftest.defines', that
21069 # substitutes the proper values into config.h.in to produce config.h.
21070 rm -f conftest.defines conftest.tail
21071 # First, append a space to every undef/define line, to ease matching.
21072 echo 's/$/ /' >conftest.defines
21073 # Then, protect against being on the right side of a sed subst, or in
21074 # an unquoted here document, in config.status. If some macros were
21075 # called several times there might be several #defines for the same
21076 # symbol, which is useless. But do not sort them, since the last
21077 # AC_DEFINE must be honored.
21078 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
21079 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
21080 # NAME is the cpp macro being defined, VALUE is the value it is being given.
21081 # PARAMS is the parameter list in the macro definition--in most cases, it's
21082 # just an empty string.
21083 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
21084 ac_dB='\\)[ (].*,\\1define\\2'
21085 ac_dC=' '
21086 ac_dD=' ,'
21088 uniq confdefs.h |
21089 sed -n '
21090 t rset
21091 :rset
21092 s/^[ ]*#[ ]*define[ ][ ]*//
21093 t ok
21096 s/[\\&,]/\\&/g
21097 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
21098 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
21099 ' >>conftest.defines
21101 # Remove the space that was appended to ease matching.
21102 # Then replace #undef with comments. This is necessary, for
21103 # example, in the case of _POSIX_SOURCE, which is predefined and required
21104 # on some systems where configure will not decide to define it.
21105 # (The regexp can be short, since the line contains either #define or #undef.)
21106 echo 's/ $//
21107 s,^[ #]*u.*,/* & */,' >>conftest.defines
21109 # Break up conftest.defines:
21110 ac_max_sed_lines=50
21112 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
21113 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
21114 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
21115 # et cetera.
21116 ac_in='$ac_file_inputs'
21117 ac_out='"$tmp/out1"'
21118 ac_nxt='"$tmp/out2"'
21120 while :
21122 # Write a here document:
21123 cat >>$CONFIG_STATUS <<_ACEOF
21124 # First, check the format of the line:
21125 cat >"\$tmp/defines.sed" <<\\CEOF
21126 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
21127 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
21129 :def
21130 _ACEOF
21131 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
21132 echo 'CEOF
21133 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
21134 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
21135 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
21136 grep . conftest.tail >/dev/null || break
21137 rm -f conftest.defines
21138 mv conftest.tail conftest.defines
21139 done
21140 rm -f conftest.defines conftest.tail
21142 echo "ac_result=$ac_in" >>$CONFIG_STATUS
21143 cat >>$CONFIG_STATUS <<\_ACEOF
21144 if test x"$ac_file" != x-; then
21145 echo "/* $configure_input */" >"$tmp/config.h"
21146 cat "$ac_result" >>"$tmp/config.h"
21147 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
21148 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
21149 echo "$as_me: $ac_file is unchanged" >&6;}
21150 else
21151 rm -f $ac_file
21152 mv "$tmp/config.h" $ac_file
21154 else
21155 echo "/* $configure_input */"
21156 cat "$ac_result"
21158 rm -f "$tmp/out12"
21159 # Compute $ac_file's index in $config_headers.
21160 _am_stamp_count=1
21161 for _am_header in $config_headers :; do
21162 case $_am_header in
21163 $ac_file | $ac_file:* )
21164 break ;;
21166 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
21167 esac
21168 done
21169 echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
21170 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21171 X$ac_file : 'X\(//\)[^/]' \| \
21172 X$ac_file : 'X\(//\)$' \| \
21173 X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
21174 echo X$ac_file |
21175 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21176 s//\1/
21179 /^X\(\/\/\)[^/].*/{
21180 s//\1/
21183 /^X\(\/\/\)$/{
21184 s//\1/
21187 /^X\(\/\).*/{
21188 s//\1/
21191 s/.*/./; q'`/stamp-h$_am_stamp_count
21194 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
21195 echo "$as_me: executing $ac_file commands" >&6;}
21197 esac
21200 case $ac_file$ac_mode in
21201 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
21202 # Strip MF so we end up with the name of the file.
21203 mf=`echo "$mf" | sed -e 's/:.*$//'`
21204 # Check whether this is an Automake generated Makefile or not.
21205 # We used to match only the files named `Makefile.in', but
21206 # some people rename them; so instead we look at the file content.
21207 # Grep'ing the first line is not enough: some people post-process
21208 # each Makefile.in and add a new line on top of each file to say so.
21209 # Grep'ing the whole file is not good either: AIX grep has a line
21210 # limit of 2048, but all sed's we know have understand at least 4000.
21211 if sed 10q "$mf" | grep '^#.*generated by automake' > /dev/null 2>&1; then
21212 dirpart=`$as_dirname -- "$mf" ||
21213 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21214 X"$mf" : 'X\(//\)[^/]' \| \
21215 X"$mf" : 'X\(//\)$' \| \
21216 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
21217 echo X"$mf" |
21218 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21219 s//\1/
21222 /^X\(\/\/\)[^/].*/{
21223 s//\1/
21226 /^X\(\/\/\)$/{
21227 s//\1/
21230 /^X\(\/\).*/{
21231 s//\1/
21234 s/.*/./; q'`
21235 else
21236 continue
21238 # Extract the definition of DEPDIR, am__include, and am__quote
21239 # from the Makefile without running `make'.
21240 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
21241 test -z "$DEPDIR" && continue
21242 am__include=`sed -n 's/^am__include = //p' < "$mf"`
21243 test -z "am__include" && continue
21244 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
21245 # When using ansi2knr, U may be empty or an underscore; expand it
21246 U=`sed -n 's/^U = //p' < "$mf"`
21247 # Find all dependency output files, they are included files with
21248 # $(DEPDIR) in their names. We invoke sed twice because it is the
21249 # simplest approach to changing $(DEPDIR) to its actual value in the
21250 # expansion.
21251 for file in `sed -n "
21252 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
21253 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
21254 # Make sure the directory exists.
21255 test -f "$dirpart/$file" && continue
21256 fdir=`$as_dirname -- "$file" ||
21257 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21258 X"$file" : 'X\(//\)[^/]' \| \
21259 X"$file" : 'X\(//\)$' \| \
21260 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
21261 echo X"$file" |
21262 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21263 s//\1/
21266 /^X\(\/\/\)[^/].*/{
21267 s//\1/
21270 /^X\(\/\/\)$/{
21271 s//\1/
21274 /^X\(\/\).*/{
21275 s//\1/
21278 s/.*/./; q'`
21279 { as_dir=$dirpart/$fdir
21280 case $as_dir in #(
21281 -*) as_dir=./$as_dir;;
21282 esac
21283 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
21284 as_dirs=
21285 while :; do
21286 case $as_dir in #(
21287 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
21288 *) as_qdir=$as_dir;;
21289 esac
21290 as_dirs="'$as_qdir' $as_dirs"
21291 as_dir=`$as_dirname -- "$as_dir" ||
21292 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21293 X"$as_dir" : 'X\(//\)[^/]' \| \
21294 X"$as_dir" : 'X\(//\)$' \| \
21295 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
21296 echo X"$as_dir" |
21297 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21298 s//\1/
21301 /^X\(\/\/\)[^/].*/{
21302 s//\1/
21305 /^X\(\/\/\)$/{
21306 s//\1/
21309 /^X\(\/\).*/{
21310 s//\1/
21313 s/.*/./; q'`
21314 test -d "$as_dir" && break
21315 done
21316 test -z "$as_dirs" || eval "mkdir $as_dirs"
21317 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
21318 echo "$as_me: error: cannot create directory $as_dir" >&2;}
21319 { (exit 1); exit 1; }; }; }
21320 # echo "creating $dirpart/$file"
21321 echo '# dummy' > "$dirpart/$file"
21322 done
21323 done
21326 esac
21327 done # for ac_tag
21330 { (exit 0); exit 0; }
21331 _ACEOF
21332 chmod +x $CONFIG_STATUS
21333 ac_clean_files=$ac_clean_files_save
21336 # configure is writing to config.log, and then calls config.status.
21337 # config.status does its own redirection, appending to config.log.
21338 # Unfortunately, on DOS this fails, as config.log is still kept open
21339 # by configure, so config.status won't be able to write to it; its
21340 # output is simply discarded. So we exec the FD to /dev/null,
21341 # effectively closing config.log, so it can be properly (re)opened and
21342 # appended to by config.status. When coming back to configure, we
21343 # need to make the FD available again.
21344 if test "$no_create" != yes; then
21345 ac_cs_success=:
21346 ac_config_status_args=
21347 test "$silent" = yes &&
21348 ac_config_status_args="$ac_config_status_args --quiet"
21349 exec 5>/dev/null
21350 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21351 exec 5>>config.log
21352 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21353 # would make configure fail if this is the last instruction.
21354 $ac_cs_success || { (exit 1); exit 1; }