usbmodeswitch: Updated to v.1.2.6 from shibby's branch.
[tomato.git] / release / src / router / libogg / configure
bloba7afccb9a66ee45437fd94c7ef38501e43aad538
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="src/framing.c"
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
829 MAINTAINER_MODE_TRUE
830 MAINTAINER_MODE_FALSE
831 MAINT
832 LIB_CURRENT
833 LIB_REVISION
834 LIB_AGE
836 CFLAGS
837 LDFLAGS
838 CPPFLAGS
839 ac_ct_CC
840 EXEEXT
841 OBJEXT
842 DEPDIR
843 am__include
844 am__quote
845 AMDEP_TRUE
846 AMDEP_FALSE
847 AMDEPBACKSLASH
848 CCDEPMODE
849 am__fastdepCC_TRUE
850 am__fastdepCC_FALSE
851 build
852 build_cpu
853 build_vendor
854 build_os
855 host
856 host_cpu
857 host_vendor
858 host_os
860 GREP
861 EGREP
862 LN_S
863 ECHO
865 RANLIB
866 DSYMUTIL
867 NMEDIT
870 CXXFLAGS
871 ac_ct_CXX
872 CXXDEPMODE
873 am__fastdepCXX_TRUE
874 am__fastdepCXX_FALSE
875 CXXCPP
877 FFLAGS
878 ac_ct_F77
879 LIBTOOL
880 LIBOBJS
881 LIBTOOL_DEPS
882 SIZE16
883 USIZE16
884 SIZE32
885 USIZE32
886 SIZE64
888 DEBUG
889 PROFILE
890 LTLIBOBJS'
891 ac_subst_files=''
892 ac_precious_vars='build_alias
893 host_alias
894 target_alias
896 CFLAGS
897 LDFLAGS
898 LIBS
899 CPPFLAGS
902 CXXFLAGS
904 CXXCPP
906 FFLAGS'
909 # Initialize some variables set by options.
910 ac_init_help=
911 ac_init_version=false
912 # The variables have the same names as the options, with
913 # dashes changed to underlines.
914 cache_file=/dev/null
915 exec_prefix=NONE
916 no_create=
917 no_recursion=
918 prefix=NONE
919 program_prefix=NONE
920 program_suffix=NONE
921 program_transform_name=s,x,x,
922 silent=
923 site=
924 srcdir=
925 verbose=
926 x_includes=NONE
927 x_libraries=NONE
929 # Installation directory options.
930 # These are left unexpanded so users can "make install exec_prefix=/foo"
931 # and all the variables that are supposed to be based on exec_prefix
932 # by default will actually change.
933 # Use braces instead of parens because sh, perl, etc. also accept them.
934 # (The list follows the same order as the GNU Coding Standards.)
935 bindir='${exec_prefix}/bin'
936 sbindir='${exec_prefix}/sbin'
937 libexecdir='${exec_prefix}/libexec'
938 datarootdir='${prefix}/share'
939 datadir='${datarootdir}'
940 sysconfdir='${prefix}/etc'
941 sharedstatedir='${prefix}/com'
942 localstatedir='${prefix}/var'
943 includedir='${prefix}/include'
944 oldincludedir='/usr/include'
945 docdir='${datarootdir}/doc/${PACKAGE}'
946 infodir='${datarootdir}/info'
947 htmldir='${docdir}'
948 dvidir='${docdir}'
949 pdfdir='${docdir}'
950 psdir='${docdir}'
951 libdir='${exec_prefix}/lib'
952 localedir='${datarootdir}/locale'
953 mandir='${datarootdir}/man'
955 ac_prev=
956 ac_dashdash=
957 for ac_option
959 # If the previous option needs an argument, assign it.
960 if test -n "$ac_prev"; then
961 eval $ac_prev=\$ac_option
962 ac_prev=
963 continue
966 case $ac_option in
967 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
968 *) ac_optarg=yes ;;
969 esac
971 # Accept the important Cygnus configure options, so we can diagnose typos.
973 case $ac_dashdash$ac_option in
975 ac_dashdash=yes ;;
977 -bindir | --bindir | --bindi | --bind | --bin | --bi)
978 ac_prev=bindir ;;
979 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
980 bindir=$ac_optarg ;;
982 -build | --build | --buil | --bui | --bu)
983 ac_prev=build_alias ;;
984 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
985 build_alias=$ac_optarg ;;
987 -cache-file | --cache-file | --cache-fil | --cache-fi \
988 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
989 ac_prev=cache_file ;;
990 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
991 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
992 cache_file=$ac_optarg ;;
994 --config-cache | -C)
995 cache_file=config.cache ;;
997 -datadir | --datadir | --datadi | --datad)
998 ac_prev=datadir ;;
999 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1000 datadir=$ac_optarg ;;
1002 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1003 | --dataroo | --dataro | --datar)
1004 ac_prev=datarootdir ;;
1005 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1006 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1007 datarootdir=$ac_optarg ;;
1009 -disable-* | --disable-*)
1010 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1011 # Reject names that are not valid shell variable names.
1012 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1013 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1014 { (exit 1); exit 1; }; }
1015 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1016 eval enable_$ac_feature=no ;;
1018 -docdir | --docdir | --docdi | --doc | --do)
1019 ac_prev=docdir ;;
1020 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1021 docdir=$ac_optarg ;;
1023 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1024 ac_prev=dvidir ;;
1025 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1026 dvidir=$ac_optarg ;;
1028 -enable-* | --enable-*)
1029 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1030 # Reject names that are not valid shell variable names.
1031 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1032 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1033 { (exit 1); exit 1; }; }
1034 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1035 eval enable_$ac_feature=\$ac_optarg ;;
1037 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1038 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1039 | --exec | --exe | --ex)
1040 ac_prev=exec_prefix ;;
1041 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1042 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1043 | --exec=* | --exe=* | --ex=*)
1044 exec_prefix=$ac_optarg ;;
1046 -gas | --gas | --ga | --g)
1047 # Obsolete; use --with-gas.
1048 with_gas=yes ;;
1050 -help | --help | --hel | --he | -h)
1051 ac_init_help=long ;;
1052 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1053 ac_init_help=recursive ;;
1054 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1055 ac_init_help=short ;;
1057 -host | --host | --hos | --ho)
1058 ac_prev=host_alias ;;
1059 -host=* | --host=* | --hos=* | --ho=*)
1060 host_alias=$ac_optarg ;;
1062 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1063 ac_prev=htmldir ;;
1064 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1065 | --ht=*)
1066 htmldir=$ac_optarg ;;
1068 -includedir | --includedir | --includedi | --included | --include \
1069 | --includ | --inclu | --incl | --inc)
1070 ac_prev=includedir ;;
1071 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1072 | --includ=* | --inclu=* | --incl=* | --inc=*)
1073 includedir=$ac_optarg ;;
1075 -infodir | --infodir | --infodi | --infod | --info | --inf)
1076 ac_prev=infodir ;;
1077 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1078 infodir=$ac_optarg ;;
1080 -libdir | --libdir | --libdi | --libd)
1081 ac_prev=libdir ;;
1082 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1083 libdir=$ac_optarg ;;
1085 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1086 | --libexe | --libex | --libe)
1087 ac_prev=libexecdir ;;
1088 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1089 | --libexe=* | --libex=* | --libe=*)
1090 libexecdir=$ac_optarg ;;
1092 -localedir | --localedir | --localedi | --localed | --locale)
1093 ac_prev=localedir ;;
1094 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1095 localedir=$ac_optarg ;;
1097 -localstatedir | --localstatedir | --localstatedi | --localstated \
1098 | --localstate | --localstat | --localsta | --localst | --locals)
1099 ac_prev=localstatedir ;;
1100 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1101 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1102 localstatedir=$ac_optarg ;;
1104 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1105 ac_prev=mandir ;;
1106 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1107 mandir=$ac_optarg ;;
1109 -nfp | --nfp | --nf)
1110 # Obsolete; use --without-fp.
1111 with_fp=no ;;
1113 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1114 | --no-cr | --no-c | -n)
1115 no_create=yes ;;
1117 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1118 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1119 no_recursion=yes ;;
1121 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1122 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1123 | --oldin | --oldi | --old | --ol | --o)
1124 ac_prev=oldincludedir ;;
1125 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1126 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1127 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1128 oldincludedir=$ac_optarg ;;
1130 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1131 ac_prev=prefix ;;
1132 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1133 prefix=$ac_optarg ;;
1135 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1136 | --program-pre | --program-pr | --program-p)
1137 ac_prev=program_prefix ;;
1138 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1139 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1140 program_prefix=$ac_optarg ;;
1142 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1143 | --program-suf | --program-su | --program-s)
1144 ac_prev=program_suffix ;;
1145 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1146 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1147 program_suffix=$ac_optarg ;;
1149 -program-transform-name | --program-transform-name \
1150 | --program-transform-nam | --program-transform-na \
1151 | --program-transform-n | --program-transform- \
1152 | --program-transform | --program-transfor \
1153 | --program-transfo | --program-transf \
1154 | --program-trans | --program-tran \
1155 | --progr-tra | --program-tr | --program-t)
1156 ac_prev=program_transform_name ;;
1157 -program-transform-name=* | --program-transform-name=* \
1158 | --program-transform-nam=* | --program-transform-na=* \
1159 | --program-transform-n=* | --program-transform-=* \
1160 | --program-transform=* | --program-transfor=* \
1161 | --program-transfo=* | --program-transf=* \
1162 | --program-trans=* | --program-tran=* \
1163 | --progr-tra=* | --program-tr=* | --program-t=*)
1164 program_transform_name=$ac_optarg ;;
1166 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1167 ac_prev=pdfdir ;;
1168 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1169 pdfdir=$ac_optarg ;;
1171 -psdir | --psdir | --psdi | --psd | --ps)
1172 ac_prev=psdir ;;
1173 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1174 psdir=$ac_optarg ;;
1176 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1177 | -silent | --silent | --silen | --sile | --sil)
1178 silent=yes ;;
1180 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1181 ac_prev=sbindir ;;
1182 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1183 | --sbi=* | --sb=*)
1184 sbindir=$ac_optarg ;;
1186 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1187 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1188 | --sharedst | --shareds | --shared | --share | --shar \
1189 | --sha | --sh)
1190 ac_prev=sharedstatedir ;;
1191 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1192 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1193 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1194 | --sha=* | --sh=*)
1195 sharedstatedir=$ac_optarg ;;
1197 -site | --site | --sit)
1198 ac_prev=site ;;
1199 -site=* | --site=* | --sit=*)
1200 site=$ac_optarg ;;
1202 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1203 ac_prev=srcdir ;;
1204 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1205 srcdir=$ac_optarg ;;
1207 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1208 | --syscon | --sysco | --sysc | --sys | --sy)
1209 ac_prev=sysconfdir ;;
1210 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1211 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1212 sysconfdir=$ac_optarg ;;
1214 -target | --target | --targe | --targ | --tar | --ta | --t)
1215 ac_prev=target_alias ;;
1216 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1217 target_alias=$ac_optarg ;;
1219 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1220 verbose=yes ;;
1222 -version | --version | --versio | --versi | --vers | -V)
1223 ac_init_version=: ;;
1225 -with-* | --with-*)
1226 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1227 # Reject names that are not valid shell variable names.
1228 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1229 { echo "$as_me: error: invalid package name: $ac_package" >&2
1230 { (exit 1); exit 1; }; }
1231 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1232 eval with_$ac_package=\$ac_optarg ;;
1234 -without-* | --without-*)
1235 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1236 # Reject names that are not valid shell variable names.
1237 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1238 { echo "$as_me: error: invalid package name: $ac_package" >&2
1239 { (exit 1); exit 1; }; }
1240 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1241 eval with_$ac_package=no ;;
1243 --x)
1244 # Obsolete; use --with-x.
1245 with_x=yes ;;
1247 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1248 | --x-incl | --x-inc | --x-in | --x-i)
1249 ac_prev=x_includes ;;
1250 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1251 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1252 x_includes=$ac_optarg ;;
1254 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1255 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1256 ac_prev=x_libraries ;;
1257 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1258 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1259 x_libraries=$ac_optarg ;;
1261 -*) { echo "$as_me: error: unrecognized option: $ac_option
1262 Try \`$0 --help' for more information." >&2
1263 { (exit 1); exit 1; }; }
1266 *=*)
1267 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1268 # Reject names that are not valid shell variable names.
1269 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1270 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1271 { (exit 1); exit 1; }; }
1272 eval $ac_envvar=\$ac_optarg
1273 export $ac_envvar ;;
1276 # FIXME: should be removed in autoconf 3.0.
1277 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1278 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1279 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1280 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1283 esac
1284 done
1286 if test -n "$ac_prev"; then
1287 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1288 { echo "$as_me: error: missing argument to $ac_option" >&2
1289 { (exit 1); exit 1; }; }
1292 # Be sure to have absolute directory names.
1293 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1294 datadir sysconfdir sharedstatedir localstatedir includedir \
1295 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1296 libdir localedir mandir
1298 eval ac_val=\$$ac_var
1299 case $ac_val in
1300 [\\/$]* | ?:[\\/]* ) continue;;
1301 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1302 esac
1303 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1304 { (exit 1); exit 1; }; }
1305 done
1307 # There might be people who depend on the old broken behavior: `$host'
1308 # used to hold the argument of --host etc.
1309 # FIXME: To remove some day.
1310 build=$build_alias
1311 host=$host_alias
1312 target=$target_alias
1314 # FIXME: To remove some day.
1315 if test "x$host_alias" != x; then
1316 if test "x$build_alias" = x; then
1317 cross_compiling=maybe
1318 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1319 If a cross compiler is detected then cross compile mode will be used." >&2
1320 elif test "x$build_alias" != "x$host_alias"; then
1321 cross_compiling=yes
1325 ac_tool_prefix=
1326 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1328 test "$silent" = yes && exec 6>/dev/null
1331 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1332 ac_ls_di=`ls -di .` &&
1333 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1334 { echo "$as_me: error: Working directory cannot be determined" >&2
1335 { (exit 1); exit 1; }; }
1336 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1337 { echo "$as_me: error: pwd does not report name of working directory" >&2
1338 { (exit 1); exit 1; }; }
1341 # Find the source files, if location was not specified.
1342 if test -z "$srcdir"; then
1343 ac_srcdir_defaulted=yes
1344 # Try the directory containing this script, then the parent directory.
1345 ac_confdir=`$as_dirname -- "$0" ||
1346 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1347 X"$0" : 'X\(//\)[^/]' \| \
1348 X"$0" : 'X\(//\)$' \| \
1349 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1350 echo X"$0" |
1351 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1352 s//\1/
1355 /^X\(\/\/\)[^/].*/{
1356 s//\1/
1359 /^X\(\/\/\)$/{
1360 s//\1/
1363 /^X\(\/\).*/{
1364 s//\1/
1367 s/.*/./; q'`
1368 srcdir=$ac_confdir
1369 if test ! -r "$srcdir/$ac_unique_file"; then
1370 srcdir=..
1372 else
1373 ac_srcdir_defaulted=no
1375 if test ! -r "$srcdir/$ac_unique_file"; then
1376 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1377 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1378 { (exit 1); exit 1; }; }
1380 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1381 ac_abs_confdir=`(
1382 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1383 { (exit 1); exit 1; }; }
1384 pwd)`
1385 # When building in place, set srcdir=.
1386 if test "$ac_abs_confdir" = "$ac_pwd"; then
1387 srcdir=.
1389 # Remove unnecessary trailing slashes from srcdir.
1390 # Double slashes in file names in object file debugging info
1391 # mess up M-x gdb in Emacs.
1392 case $srcdir in
1393 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1394 esac
1395 for ac_var in $ac_precious_vars; do
1396 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1397 eval ac_env_${ac_var}_value=\$${ac_var}
1398 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1399 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1400 done
1403 # Report the --help message.
1405 if test "$ac_init_help" = "long"; then
1406 # Omit some internal or obsolete options to make the list less imposing.
1407 # This message is too long to be a string in the A/UX 3.1 sh.
1408 cat <<_ACEOF
1409 \`configure' configures this package to adapt to many kinds of systems.
1411 Usage: $0 [OPTION]... [VAR=VALUE]...
1413 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1414 VAR=VALUE. See below for descriptions of some of the useful variables.
1416 Defaults for the options are specified in brackets.
1418 Configuration:
1419 -h, --help display this help and exit
1420 --help=short display options specific to this package
1421 --help=recursive display the short help of all the included packages
1422 -V, --version display version information and exit
1423 -q, --quiet, --silent do not print \`checking...' messages
1424 --cache-file=FILE cache test results in FILE [disabled]
1425 -C, --config-cache alias for \`--cache-file=config.cache'
1426 -n, --no-create do not create output files
1427 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1429 Installation directories:
1430 --prefix=PREFIX install architecture-independent files in PREFIX
1431 [$ac_default_prefix]
1432 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1433 [PREFIX]
1435 By default, \`make install' will install all the files in
1436 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1437 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1438 for instance \`--prefix=\$HOME'.
1440 For better control, use the options below.
1442 Fine tuning of the installation directories:
1443 --bindir=DIR user executables [EPREFIX/bin]
1444 --sbindir=DIR system admin executables [EPREFIX/sbin]
1445 --libexecdir=DIR program executables [EPREFIX/libexec]
1446 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1447 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1448 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1449 --libdir=DIR object code libraries [EPREFIX/lib]
1450 --includedir=DIR C header files [PREFIX/include]
1451 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1452 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1453 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1454 --infodir=DIR info documentation [DATAROOTDIR/info]
1455 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1456 --mandir=DIR man documentation [DATAROOTDIR/man]
1457 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1458 --htmldir=DIR html documentation [DOCDIR]
1459 --dvidir=DIR dvi documentation [DOCDIR]
1460 --pdfdir=DIR pdf documentation [DOCDIR]
1461 --psdir=DIR ps documentation [DOCDIR]
1462 _ACEOF
1464 cat <<\_ACEOF
1466 Program names:
1467 --program-prefix=PREFIX prepend PREFIX to installed program names
1468 --program-suffix=SUFFIX append SUFFIX to installed program names
1469 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1471 System types:
1472 --build=BUILD configure for building on BUILD [guessed]
1473 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1474 _ACEOF
1477 if test -n "$ac_init_help"; then
1479 cat <<\_ACEOF
1481 Optional Features:
1482 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1483 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1484 --enable-maintainer-mode enable make rules and dependencies not useful
1485 (and sometimes confusing) to the casual installer
1486 --disable-dependency-tracking speeds up one-time build
1487 --enable-dependency-tracking do not reject slow dependency extractors
1488 --enable-shared[=PKGS] build shared libraries [default=yes]
1489 --enable-static[=PKGS] build static libraries [default=yes]
1490 --enable-fast-install[=PKGS]
1491 optimize for fast installation [default=yes]
1492 --disable-libtool-lock avoid locking (might break parallel builds)
1494 Optional Packages:
1495 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1496 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1497 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1498 --with-pic try to use only PIC/non-PIC objects [default=use
1499 both]
1500 --with-tags[=TAGS] include additional configurations [automatic]
1502 Some influential environment variables:
1503 CC C compiler command
1504 CFLAGS C compiler flags
1505 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1506 nonstandard directory <lib dir>
1507 LIBS libraries to pass to the linker, e.g. -l<library>
1508 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1509 you have headers in a nonstandard directory <include dir>
1510 CPP C preprocessor
1511 CXX C++ compiler command
1512 CXXFLAGS C++ compiler flags
1513 CXXCPP C++ preprocessor
1514 F77 Fortran 77 compiler command
1515 FFLAGS Fortran 77 compiler flags
1517 Use these variables to override the choices made by `configure' or to help
1518 it to find libraries and programs with nonstandard names/locations.
1520 _ACEOF
1521 ac_status=$?
1524 if test "$ac_init_help" = "recursive"; then
1525 # If there are subdirs, report their specific --help.
1526 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1527 test -d "$ac_dir" || continue
1528 ac_builddir=.
1530 case "$ac_dir" in
1531 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1533 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1534 # A ".." for each directory in $ac_dir_suffix.
1535 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1536 case $ac_top_builddir_sub in
1537 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1538 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1539 esac ;;
1540 esac
1541 ac_abs_top_builddir=$ac_pwd
1542 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1543 # for backward compatibility:
1544 ac_top_builddir=$ac_top_build_prefix
1546 case $srcdir in
1547 .) # We are building in place.
1548 ac_srcdir=.
1549 ac_top_srcdir=$ac_top_builddir_sub
1550 ac_abs_top_srcdir=$ac_pwd ;;
1551 [\\/]* | ?:[\\/]* ) # Absolute name.
1552 ac_srcdir=$srcdir$ac_dir_suffix;
1553 ac_top_srcdir=$srcdir
1554 ac_abs_top_srcdir=$srcdir ;;
1555 *) # Relative name.
1556 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1557 ac_top_srcdir=$ac_top_build_prefix$srcdir
1558 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1559 esac
1560 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1562 cd "$ac_dir" || { ac_status=$?; continue; }
1563 # Check for guested configure.
1564 if test -f "$ac_srcdir/configure.gnu"; then
1565 echo &&
1566 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1567 elif test -f "$ac_srcdir/configure"; then
1568 echo &&
1569 $SHELL "$ac_srcdir/configure" --help=recursive
1570 else
1571 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1572 fi || ac_status=$?
1573 cd "$ac_pwd" || { ac_status=$?; break; }
1574 done
1577 test -n "$ac_init_help" && exit $ac_status
1578 if $ac_init_version; then
1579 cat <<\_ACEOF
1580 configure
1581 generated by GNU Autoconf 2.61
1583 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1584 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1585 This configure script is free software; the Free Software Foundation
1586 gives unlimited permission to copy, distribute and modify it.
1587 _ACEOF
1588 exit
1590 cat >config.log <<_ACEOF
1591 This file contains any messages produced by compilers while
1592 running configure, to aid debugging if configure makes a mistake.
1594 It was created by $as_me, which was
1595 generated by GNU Autoconf 2.61. Invocation command line was
1597 $ $0 $@
1599 _ACEOF
1600 exec 5>>config.log
1602 cat <<_ASUNAME
1603 ## --------- ##
1604 ## Platform. ##
1605 ## --------- ##
1607 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1608 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1609 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1610 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1611 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1613 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1614 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1616 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1617 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1618 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1619 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1620 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1621 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1622 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1624 _ASUNAME
1626 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1627 for as_dir in $PATH
1629 IFS=$as_save_IFS
1630 test -z "$as_dir" && as_dir=.
1631 echo "PATH: $as_dir"
1632 done
1633 IFS=$as_save_IFS
1635 } >&5
1637 cat >&5 <<_ACEOF
1640 ## ----------- ##
1641 ## Core tests. ##
1642 ## ----------- ##
1644 _ACEOF
1647 # Keep a trace of the command line.
1648 # Strip out --no-create and --no-recursion so they do not pile up.
1649 # Strip out --silent because we don't want to record it for future runs.
1650 # Also quote any args containing shell meta-characters.
1651 # Make two passes to allow for proper duplicate-argument suppression.
1652 ac_configure_args=
1653 ac_configure_args0=
1654 ac_configure_args1=
1655 ac_must_keep_next=false
1656 for ac_pass in 1 2
1658 for ac_arg
1660 case $ac_arg in
1661 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1662 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1663 | -silent | --silent | --silen | --sile | --sil)
1664 continue ;;
1665 *\'*)
1666 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1667 esac
1668 case $ac_pass in
1669 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1671 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1672 if test $ac_must_keep_next = true; then
1673 ac_must_keep_next=false # Got value, back to normal.
1674 else
1675 case $ac_arg in
1676 *=* | --config-cache | -C | -disable-* | --disable-* \
1677 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1678 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1679 | -with-* | --with-* | -without-* | --without-* | --x)
1680 case "$ac_configure_args0 " in
1681 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1682 esac
1684 -* ) ac_must_keep_next=true ;;
1685 esac
1687 ac_configure_args="$ac_configure_args '$ac_arg'"
1689 esac
1690 done
1691 done
1692 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1693 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1695 # When interrupted or exit'd, cleanup temporary files, and complete
1696 # config.log. We remove comments because anyway the quotes in there
1697 # would cause problems or look ugly.
1698 # WARNING: Use '\'' to represent an apostrophe within the trap.
1699 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1700 trap 'exit_status=$?
1701 # Save into config.log some information that might help in debugging.
1703 echo
1705 cat <<\_ASBOX
1706 ## ---------------- ##
1707 ## Cache variables. ##
1708 ## ---------------- ##
1709 _ASBOX
1710 echo
1711 # The following way of writing the cache mishandles newlines in values,
1713 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1714 eval ac_val=\$$ac_var
1715 case $ac_val in #(
1716 *${as_nl}*)
1717 case $ac_var in #(
1718 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1719 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1720 esac
1721 case $ac_var in #(
1722 _ | IFS | as_nl) ;; #(
1723 *) $as_unset $ac_var ;;
1724 esac ;;
1725 esac
1726 done
1727 (set) 2>&1 |
1728 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1729 *${as_nl}ac_space=\ *)
1730 sed -n \
1731 "s/'\''/'\''\\\\'\'''\''/g;
1732 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1733 ;; #(
1735 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1737 esac |
1738 sort
1740 echo
1742 cat <<\_ASBOX
1743 ## ----------------- ##
1744 ## Output variables. ##
1745 ## ----------------- ##
1746 _ASBOX
1747 echo
1748 for ac_var in $ac_subst_vars
1750 eval ac_val=\$$ac_var
1751 case $ac_val in
1752 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1753 esac
1754 echo "$ac_var='\''$ac_val'\''"
1755 done | sort
1756 echo
1758 if test -n "$ac_subst_files"; then
1759 cat <<\_ASBOX
1760 ## ------------------- ##
1761 ## File substitutions. ##
1762 ## ------------------- ##
1763 _ASBOX
1764 echo
1765 for ac_var in $ac_subst_files
1767 eval ac_val=\$$ac_var
1768 case $ac_val in
1769 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1770 esac
1771 echo "$ac_var='\''$ac_val'\''"
1772 done | sort
1773 echo
1776 if test -s confdefs.h; then
1777 cat <<\_ASBOX
1778 ## ----------- ##
1779 ## confdefs.h. ##
1780 ## ----------- ##
1781 _ASBOX
1782 echo
1783 cat confdefs.h
1784 echo
1786 test "$ac_signal" != 0 &&
1787 echo "$as_me: caught signal $ac_signal"
1788 echo "$as_me: exit $exit_status"
1789 } >&5
1790 rm -f core *.core core.conftest.* &&
1791 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1792 exit $exit_status
1794 for ac_signal in 1 2 13 15; do
1795 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1796 done
1797 ac_signal=0
1799 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1800 rm -f -r conftest* confdefs.h
1802 # Predefined preprocessor variables.
1804 cat >>confdefs.h <<_ACEOF
1805 #define PACKAGE_NAME "$PACKAGE_NAME"
1806 _ACEOF
1809 cat >>confdefs.h <<_ACEOF
1810 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1811 _ACEOF
1814 cat >>confdefs.h <<_ACEOF
1815 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1816 _ACEOF
1819 cat >>confdefs.h <<_ACEOF
1820 #define PACKAGE_STRING "$PACKAGE_STRING"
1821 _ACEOF
1824 cat >>confdefs.h <<_ACEOF
1825 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1826 _ACEOF
1829 # Let the site file select an alternate cache file if it wants to.
1830 # Prefer explicitly selected file to automatically selected ones.
1831 if test -n "$CONFIG_SITE"; then
1832 set x "$CONFIG_SITE"
1833 elif test "x$prefix" != xNONE; then
1834 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1835 else
1836 set x "$ac_default_prefix/share/config.site" \
1837 "$ac_default_prefix/etc/config.site"
1839 shift
1840 for ac_site_file
1842 if test -r "$ac_site_file"; then
1843 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1844 echo "$as_me: loading site script $ac_site_file" >&6;}
1845 sed 's/^/| /' "$ac_site_file" >&5
1846 . "$ac_site_file"
1848 done
1850 if test -r "$cache_file"; then
1851 # Some versions of bash will fail to source /dev/null (special
1852 # files actually), so we avoid doing that.
1853 if test -f "$cache_file"; then
1854 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1855 echo "$as_me: loading cache $cache_file" >&6;}
1856 case $cache_file in
1857 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1858 *) . "./$cache_file";;
1859 esac
1861 else
1862 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1863 echo "$as_me: creating cache $cache_file" >&6;}
1864 >$cache_file
1867 # Check that the precious variables saved in the cache have kept the same
1868 # value.
1869 ac_cache_corrupted=false
1870 for ac_var in $ac_precious_vars; do
1871 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1872 eval ac_new_set=\$ac_env_${ac_var}_set
1873 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1874 eval ac_new_val=\$ac_env_${ac_var}_value
1875 case $ac_old_set,$ac_new_set in
1876 set,)
1877 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1878 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1879 ac_cache_corrupted=: ;;
1880 ,set)
1881 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1882 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1883 ac_cache_corrupted=: ;;
1884 ,);;
1886 if test "x$ac_old_val" != "x$ac_new_val"; then
1887 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1888 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1889 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1890 echo "$as_me: former value: $ac_old_val" >&2;}
1891 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1892 echo "$as_me: current value: $ac_new_val" >&2;}
1893 ac_cache_corrupted=:
1894 fi;;
1895 esac
1896 # Pass precious variables to config.status.
1897 if test "$ac_new_set" = set; then
1898 case $ac_new_val in
1899 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1900 *) ac_arg=$ac_var=$ac_new_val ;;
1901 esac
1902 case " $ac_configure_args " in
1903 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1904 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1905 esac
1907 done
1908 if $ac_cache_corrupted; then
1909 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1910 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1911 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1912 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1913 { (exit 1); exit 1; }; }
1932 ac_ext=c
1933 ac_cpp='$CPP $CPPFLAGS'
1934 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1935 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1936 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1940 am__api_version='1.10'
1942 ac_aux_dir=
1943 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1944 if test -f "$ac_dir/install-sh"; then
1945 ac_aux_dir=$ac_dir
1946 ac_install_sh="$ac_aux_dir/install-sh -c"
1947 break
1948 elif test -f "$ac_dir/install.sh"; then
1949 ac_aux_dir=$ac_dir
1950 ac_install_sh="$ac_aux_dir/install.sh -c"
1951 break
1952 elif test -f "$ac_dir/shtool"; then
1953 ac_aux_dir=$ac_dir
1954 ac_install_sh="$ac_aux_dir/shtool install -c"
1955 break
1957 done
1958 if test -z "$ac_aux_dir"; then
1959 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1960 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1961 { (exit 1); exit 1; }; }
1964 # These three variables are undocumented and unsupported,
1965 # and are intended to be withdrawn in a future Autoconf release.
1966 # They can cause serious problems if a builder's source tree is in a directory
1967 # whose full name contains unusual characters.
1968 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1969 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1970 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1973 # Find a good install program. We prefer a C program (faster),
1974 # so one script is as good as another. But avoid the broken or
1975 # incompatible versions:
1976 # SysV /etc/install, /usr/sbin/install
1977 # SunOS /usr/etc/install
1978 # IRIX /sbin/install
1979 # AIX /bin/install
1980 # AmigaOS /C/install, which installs bootblocks on floppy discs
1981 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1982 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1983 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1984 # OS/2's system install, which has a completely different semantic
1985 # ./install, which can be erroneously created by make from ./install.sh.
1986 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1987 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
1988 if test -z "$INSTALL"; then
1989 if test "${ac_cv_path_install+set}" = set; then
1990 echo $ECHO_N "(cached) $ECHO_C" >&6
1991 else
1992 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1993 for as_dir in $PATH
1995 IFS=$as_save_IFS
1996 test -z "$as_dir" && as_dir=.
1997 # Account for people who put trailing slashes in PATH elements.
1998 case $as_dir/ in
1999 ./ | .// | /cC/* | \
2000 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2001 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2002 /usr/ucb/* ) ;;
2004 # OSF1 and SCO ODT 3.0 have their own names for install.
2005 # Don't use installbsd from OSF since it installs stuff as root
2006 # by default.
2007 for ac_prog in ginstall scoinst install; do
2008 for ac_exec_ext in '' $ac_executable_extensions; do
2009 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2010 if test $ac_prog = install &&
2011 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2012 # AIX install. It has an incompatible calling convention.
2014 elif test $ac_prog = install &&
2015 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2016 # program-specific install script used by HP pwplus--don't use.
2018 else
2019 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2020 break 3
2023 done
2024 done
2026 esac
2027 done
2028 IFS=$as_save_IFS
2032 if test "${ac_cv_path_install+set}" = set; then
2033 INSTALL=$ac_cv_path_install
2034 else
2035 # As a last resort, use the slow shell script. Don't cache a
2036 # value for INSTALL within a source directory, because that will
2037 # break other packages using the cache if that directory is
2038 # removed, or if the value is a relative name.
2039 INSTALL=$ac_install_sh
2042 { echo "$as_me:$LINENO: result: $INSTALL" >&5
2043 echo "${ECHO_T}$INSTALL" >&6; }
2045 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2046 # It thinks the first close brace ends the variable substitution.
2047 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2049 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2051 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2053 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2054 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2055 # Just in case
2056 sleep 1
2057 echo timestamp > conftest.file
2058 # Do `set' in a subshell so we don't clobber the current shell's
2059 # arguments. Must try -L first in case configure is actually a
2060 # symlink; some systems play weird games with the mod time of symlinks
2061 # (eg FreeBSD returns the mod time of the symlink's containing
2062 # directory).
2063 if (
2064 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2065 if test "$*" = "X"; then
2066 # -L didn't work.
2067 set X `ls -t $srcdir/configure conftest.file`
2069 rm -f conftest.file
2070 if test "$*" != "X $srcdir/configure conftest.file" \
2071 && test "$*" != "X conftest.file $srcdir/configure"; then
2073 # If neither matched, then we have a broken ls. This can happen
2074 # if, for instance, CONFIG_SHELL is bash and it inherits a
2075 # broken ls alias from the environment. This has actually
2076 # happened. Such a system could not be considered "sane".
2077 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2078 alias in your environment" >&5
2079 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2080 alias in your environment" >&2;}
2081 { (exit 1); exit 1; }; }
2084 test "$2" = conftest.file
2086 then
2087 # Ok.
2089 else
2090 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2091 Check your system clock" >&5
2092 echo "$as_me: error: newly created file is older than distributed files!
2093 Check your system clock" >&2;}
2094 { (exit 1); exit 1; }; }
2096 { echo "$as_me:$LINENO: result: yes" >&5
2097 echo "${ECHO_T}yes" >&6; }
2098 test "$program_prefix" != NONE &&
2099 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2100 # Use a double $ so make ignores it.
2101 test "$program_suffix" != NONE &&
2102 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2103 # Double any \ or $. echo might interpret backslashes.
2104 # By default was `s,x,x', remove it if useless.
2105 cat <<\_ACEOF >conftest.sed
2106 s/[\\$]/&&/g;s/;s,x,x,$//
2107 _ACEOF
2108 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2109 rm -f conftest.sed
2111 # expand $ac_aux_dir to an absolute path
2112 am_aux_dir=`cd $ac_aux_dir && pwd`
2114 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2115 # Use eval to expand $SHELL
2116 if eval "$MISSING --run true"; then
2117 am_missing_run="$MISSING --run "
2118 else
2119 am_missing_run=
2120 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2121 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2124 { echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2125 echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
2126 if test -z "$MKDIR_P"; then
2127 if test "${ac_cv_path_mkdir+set}" = set; then
2128 echo $ECHO_N "(cached) $ECHO_C" >&6
2129 else
2130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2131 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2133 IFS=$as_save_IFS
2134 test -z "$as_dir" && as_dir=.
2135 for ac_prog in mkdir gmkdir; do
2136 for ac_exec_ext in '' $ac_executable_extensions; do
2137 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2138 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2139 'mkdir (GNU coreutils) '* | \
2140 'mkdir (coreutils) '* | \
2141 'mkdir (fileutils) '4.1*)
2142 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2143 break 3;;
2144 esac
2145 done
2146 done
2147 done
2148 IFS=$as_save_IFS
2152 if test "${ac_cv_path_mkdir+set}" = set; then
2153 MKDIR_P="$ac_cv_path_mkdir -p"
2154 else
2155 # As a last resort, use the slow shell script. Don't cache a
2156 # value for MKDIR_P within a source directory, because that will
2157 # break other packages using the cache if that directory is
2158 # removed, or if the value is a relative name.
2159 test -d ./--version && rmdir ./--version
2160 MKDIR_P="$ac_install_sh -d"
2163 { echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2164 echo "${ECHO_T}$MKDIR_P" >&6; }
2166 mkdir_p="$MKDIR_P"
2167 case $mkdir_p in
2168 [\\/$]* | ?:[\\/]*) ;;
2169 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2170 esac
2172 for ac_prog in gawk mawk nawk awk
2174 # Extract the first word of "$ac_prog", so it can be a program name with args.
2175 set dummy $ac_prog; ac_word=$2
2176 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2177 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2178 if test "${ac_cv_prog_AWK+set}" = set; then
2179 echo $ECHO_N "(cached) $ECHO_C" >&6
2180 else
2181 if test -n "$AWK"; then
2182 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2183 else
2184 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2185 for as_dir in $PATH
2187 IFS=$as_save_IFS
2188 test -z "$as_dir" && as_dir=.
2189 for ac_exec_ext in '' $ac_executable_extensions; do
2190 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2191 ac_cv_prog_AWK="$ac_prog"
2192 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2193 break 2
2195 done
2196 done
2197 IFS=$as_save_IFS
2201 AWK=$ac_cv_prog_AWK
2202 if test -n "$AWK"; then
2203 { echo "$as_me:$LINENO: result: $AWK" >&5
2204 echo "${ECHO_T}$AWK" >&6; }
2205 else
2206 { echo "$as_me:$LINENO: result: no" >&5
2207 echo "${ECHO_T}no" >&6; }
2211 test -n "$AWK" && break
2212 done
2214 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2215 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2216 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2217 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2218 echo $ECHO_N "(cached) $ECHO_C" >&6
2219 else
2220 cat >conftest.make <<\_ACEOF
2221 SHELL = /bin/sh
2222 all:
2223 @echo '@@@%%%=$(MAKE)=@@@%%%'
2224 _ACEOF
2225 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2226 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2227 *@@@%%%=?*=@@@%%%*)
2228 eval ac_cv_prog_make_${ac_make}_set=yes;;
2230 eval ac_cv_prog_make_${ac_make}_set=no;;
2231 esac
2232 rm -f conftest.make
2234 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2235 { echo "$as_me:$LINENO: result: yes" >&5
2236 echo "${ECHO_T}yes" >&6; }
2237 SET_MAKE=
2238 else
2239 { echo "$as_me:$LINENO: result: no" >&5
2240 echo "${ECHO_T}no" >&6; }
2241 SET_MAKE="MAKE=${MAKE-make}"
2244 rm -rf .tst 2>/dev/null
2245 mkdir .tst 2>/dev/null
2246 if test -d .tst; then
2247 am__leading_dot=.
2248 else
2249 am__leading_dot=_
2251 rmdir .tst 2>/dev/null
2253 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2254 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2255 # is not polluted with repeated "-I."
2256 am__isrc=' -I$(srcdir)'
2257 # test to see if srcdir already configured
2258 if test -f $srcdir/config.status; then
2259 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2260 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2261 { (exit 1); exit 1; }; }
2265 # test whether we have cygpath
2266 if test -z "$CYGPATH_W"; then
2267 if (cygpath --version) >/dev/null 2>/dev/null; then
2268 CYGPATH_W='cygpath -w'
2269 else
2270 CYGPATH_W=echo
2275 # Define the identity of the package.
2276 PACKAGE=libogg
2277 VERSION=1.1.4
2280 cat >>confdefs.h <<_ACEOF
2281 #define PACKAGE "$PACKAGE"
2282 _ACEOF
2285 cat >>confdefs.h <<_ACEOF
2286 #define VERSION "$VERSION"
2287 _ACEOF
2289 # Some tools Automake needs.
2291 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2294 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2297 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2300 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2303 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2305 install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
2307 # Installed binaries are usually stripped using `strip' when the user
2308 # run `make install-strip'. However `strip' might not be the right
2309 # tool to use in cross-compilation environments, therefore Automake
2310 # will honor the `STRIP' environment variable to overrule this program.
2311 if test "$cross_compiling" != no; then
2312 if test -n "$ac_tool_prefix"; then
2313 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2314 set dummy ${ac_tool_prefix}strip; ac_word=$2
2315 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2316 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2317 if test "${ac_cv_prog_STRIP+set}" = set; then
2318 echo $ECHO_N "(cached) $ECHO_C" >&6
2319 else
2320 if test -n "$STRIP"; then
2321 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2322 else
2323 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2324 for as_dir in $PATH
2326 IFS=$as_save_IFS
2327 test -z "$as_dir" && as_dir=.
2328 for ac_exec_ext in '' $ac_executable_extensions; do
2329 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2330 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2331 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2332 break 2
2334 done
2335 done
2336 IFS=$as_save_IFS
2340 STRIP=$ac_cv_prog_STRIP
2341 if test -n "$STRIP"; then
2342 { echo "$as_me:$LINENO: result: $STRIP" >&5
2343 echo "${ECHO_T}$STRIP" >&6; }
2344 else
2345 { echo "$as_me:$LINENO: result: no" >&5
2346 echo "${ECHO_T}no" >&6; }
2351 if test -z "$ac_cv_prog_STRIP"; then
2352 ac_ct_STRIP=$STRIP
2353 # Extract the first word of "strip", so it can be a program name with args.
2354 set dummy strip; ac_word=$2
2355 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2356 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2357 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2358 echo $ECHO_N "(cached) $ECHO_C" >&6
2359 else
2360 if test -n "$ac_ct_STRIP"; then
2361 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2362 else
2363 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2364 for as_dir in $PATH
2366 IFS=$as_save_IFS
2367 test -z "$as_dir" && as_dir=.
2368 for ac_exec_ext in '' $ac_executable_extensions; do
2369 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2370 ac_cv_prog_ac_ct_STRIP="strip"
2371 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2372 break 2
2374 done
2375 done
2376 IFS=$as_save_IFS
2380 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2381 if test -n "$ac_ct_STRIP"; then
2382 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2383 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2384 else
2385 { echo "$as_me:$LINENO: result: no" >&5
2386 echo "${ECHO_T}no" >&6; }
2389 if test "x$ac_ct_STRIP" = x; then
2390 STRIP=":"
2391 else
2392 case $cross_compiling:$ac_tool_warned in
2393 yes:)
2394 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2395 whose name does not start with the host triplet. If you think this
2396 configuration is useful to you, please write to autoconf@gnu.org." >&5
2397 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2398 whose name does not start with the host triplet. If you think this
2399 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2400 ac_tool_warned=yes ;;
2401 esac
2402 STRIP=$ac_ct_STRIP
2404 else
2405 STRIP="$ac_cv_prog_STRIP"
2409 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2411 # We need awk for the "check" target. The system "awk" is bad on
2412 # some platforms.
2413 # Always define AMTAR for backward compatibility.
2415 AMTAR=${AMTAR-"${am_missing_run}tar"}
2417 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2423 { echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
2424 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6; }
2425 # Check whether --enable-maintainer-mode was given.
2426 if test "${enable_maintainer_mode+set}" = set; then
2427 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2428 else
2429 USE_MAINTAINER_MODE=no
2432 { echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
2433 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6; }
2434 if test $USE_MAINTAINER_MODE = yes; then
2435 MAINTAINER_MODE_TRUE=
2436 MAINTAINER_MODE_FALSE='#'
2437 else
2438 MAINTAINER_MODE_TRUE='#'
2439 MAINTAINER_MODE_FALSE=
2442 MAINT=$MAINTAINER_MODE_TRUE
2447 LIB_CURRENT=6
2448 LIB_REVISION=0
2449 LIB_AGE=6
2454 ac_ext=c
2455 ac_cpp='$CPP $CPPFLAGS'
2456 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2457 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2458 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2459 if test -n "$ac_tool_prefix"; then
2460 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2461 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2462 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2463 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2464 if test "${ac_cv_prog_CC+set}" = set; then
2465 echo $ECHO_N "(cached) $ECHO_C" >&6
2466 else
2467 if test -n "$CC"; then
2468 ac_cv_prog_CC="$CC" # Let the user override the test.
2469 else
2470 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2471 for as_dir in $PATH
2473 IFS=$as_save_IFS
2474 test -z "$as_dir" && as_dir=.
2475 for ac_exec_ext in '' $ac_executable_extensions; do
2476 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2477 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2478 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2479 break 2
2481 done
2482 done
2483 IFS=$as_save_IFS
2487 CC=$ac_cv_prog_CC
2488 if test -n "$CC"; then
2489 { echo "$as_me:$LINENO: result: $CC" >&5
2490 echo "${ECHO_T}$CC" >&6; }
2491 else
2492 { echo "$as_me:$LINENO: result: no" >&5
2493 echo "${ECHO_T}no" >&6; }
2498 if test -z "$ac_cv_prog_CC"; then
2499 ac_ct_CC=$CC
2500 # Extract the first word of "gcc", so it can be a program name with args.
2501 set dummy gcc; ac_word=$2
2502 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2503 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2504 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2505 echo $ECHO_N "(cached) $ECHO_C" >&6
2506 else
2507 if test -n "$ac_ct_CC"; then
2508 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2509 else
2510 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2511 for as_dir in $PATH
2513 IFS=$as_save_IFS
2514 test -z "$as_dir" && as_dir=.
2515 for ac_exec_ext in '' $ac_executable_extensions; do
2516 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2517 ac_cv_prog_ac_ct_CC="gcc"
2518 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2519 break 2
2521 done
2522 done
2523 IFS=$as_save_IFS
2527 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2528 if test -n "$ac_ct_CC"; then
2529 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2530 echo "${ECHO_T}$ac_ct_CC" >&6; }
2531 else
2532 { echo "$as_me:$LINENO: result: no" >&5
2533 echo "${ECHO_T}no" >&6; }
2536 if test "x$ac_ct_CC" = x; then
2537 CC=""
2538 else
2539 case $cross_compiling:$ac_tool_warned in
2540 yes:)
2541 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2542 whose name does not start with the host triplet. If you think this
2543 configuration is useful to you, please write to autoconf@gnu.org." >&5
2544 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2545 whose name does not start with the host triplet. If you think this
2546 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2547 ac_tool_warned=yes ;;
2548 esac
2549 CC=$ac_ct_CC
2551 else
2552 CC="$ac_cv_prog_CC"
2555 if test -z "$CC"; then
2556 if test -n "$ac_tool_prefix"; then
2557 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2558 set dummy ${ac_tool_prefix}cc; ac_word=$2
2559 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2560 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2561 if test "${ac_cv_prog_CC+set}" = set; then
2562 echo $ECHO_N "(cached) $ECHO_C" >&6
2563 else
2564 if test -n "$CC"; then
2565 ac_cv_prog_CC="$CC" # Let the user override the test.
2566 else
2567 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2568 for as_dir in $PATH
2570 IFS=$as_save_IFS
2571 test -z "$as_dir" && as_dir=.
2572 for ac_exec_ext in '' $ac_executable_extensions; do
2573 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2574 ac_cv_prog_CC="${ac_tool_prefix}cc"
2575 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2576 break 2
2578 done
2579 done
2580 IFS=$as_save_IFS
2584 CC=$ac_cv_prog_CC
2585 if test -n "$CC"; then
2586 { echo "$as_me:$LINENO: result: $CC" >&5
2587 echo "${ECHO_T}$CC" >&6; }
2588 else
2589 { echo "$as_me:$LINENO: result: no" >&5
2590 echo "${ECHO_T}no" >&6; }
2596 if test -z "$CC"; then
2597 # Extract the first word of "cc", so it can be a program name with args.
2598 set dummy cc; ac_word=$2
2599 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2600 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2601 if test "${ac_cv_prog_CC+set}" = set; then
2602 echo $ECHO_N "(cached) $ECHO_C" >&6
2603 else
2604 if test -n "$CC"; then
2605 ac_cv_prog_CC="$CC" # Let the user override the test.
2606 else
2607 ac_prog_rejected=no
2608 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2609 for as_dir in $PATH
2611 IFS=$as_save_IFS
2612 test -z "$as_dir" && as_dir=.
2613 for ac_exec_ext in '' $ac_executable_extensions; do
2614 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2615 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2616 ac_prog_rejected=yes
2617 continue
2619 ac_cv_prog_CC="cc"
2620 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2621 break 2
2623 done
2624 done
2625 IFS=$as_save_IFS
2627 if test $ac_prog_rejected = yes; then
2628 # We found a bogon in the path, so make sure we never use it.
2629 set dummy $ac_cv_prog_CC
2630 shift
2631 if test $# != 0; then
2632 # We chose a different compiler from the bogus one.
2633 # However, it has the same basename, so the bogon will be chosen
2634 # first if we set CC to just the basename; use the full file name.
2635 shift
2636 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2641 CC=$ac_cv_prog_CC
2642 if test -n "$CC"; then
2643 { echo "$as_me:$LINENO: result: $CC" >&5
2644 echo "${ECHO_T}$CC" >&6; }
2645 else
2646 { echo "$as_me:$LINENO: result: no" >&5
2647 echo "${ECHO_T}no" >&6; }
2652 if test -z "$CC"; then
2653 if test -n "$ac_tool_prefix"; then
2654 for ac_prog in cl.exe
2656 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2657 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2658 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2659 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2660 if test "${ac_cv_prog_CC+set}" = set; then
2661 echo $ECHO_N "(cached) $ECHO_C" >&6
2662 else
2663 if test -n "$CC"; then
2664 ac_cv_prog_CC="$CC" # Let the user override the test.
2665 else
2666 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2667 for as_dir in $PATH
2669 IFS=$as_save_IFS
2670 test -z "$as_dir" && as_dir=.
2671 for ac_exec_ext in '' $ac_executable_extensions; do
2672 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2673 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2674 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2675 break 2
2677 done
2678 done
2679 IFS=$as_save_IFS
2683 CC=$ac_cv_prog_CC
2684 if test -n "$CC"; then
2685 { echo "$as_me:$LINENO: result: $CC" >&5
2686 echo "${ECHO_T}$CC" >&6; }
2687 else
2688 { echo "$as_me:$LINENO: result: no" >&5
2689 echo "${ECHO_T}no" >&6; }
2693 test -n "$CC" && break
2694 done
2696 if test -z "$CC"; then
2697 ac_ct_CC=$CC
2698 for ac_prog in cl.exe
2700 # Extract the first word of "$ac_prog", so it can be a program name with args.
2701 set dummy $ac_prog; ac_word=$2
2702 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2703 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2704 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2705 echo $ECHO_N "(cached) $ECHO_C" >&6
2706 else
2707 if test -n "$ac_ct_CC"; then
2708 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2709 else
2710 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2711 for as_dir in $PATH
2713 IFS=$as_save_IFS
2714 test -z "$as_dir" && as_dir=.
2715 for ac_exec_ext in '' $ac_executable_extensions; do
2716 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2717 ac_cv_prog_ac_ct_CC="$ac_prog"
2718 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2719 break 2
2721 done
2722 done
2723 IFS=$as_save_IFS
2727 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2728 if test -n "$ac_ct_CC"; then
2729 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2730 echo "${ECHO_T}$ac_ct_CC" >&6; }
2731 else
2732 { echo "$as_me:$LINENO: result: no" >&5
2733 echo "${ECHO_T}no" >&6; }
2737 test -n "$ac_ct_CC" && break
2738 done
2740 if test "x$ac_ct_CC" = x; then
2741 CC=""
2742 else
2743 case $cross_compiling:$ac_tool_warned in
2744 yes:)
2745 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2746 whose name does not start with the host triplet. If you think this
2747 configuration is useful to you, please write to autoconf@gnu.org." >&5
2748 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2749 whose name does not start with the host triplet. If you think this
2750 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2751 ac_tool_warned=yes ;;
2752 esac
2753 CC=$ac_ct_CC
2760 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2761 See \`config.log' for more details." >&5
2762 echo "$as_me: error: no acceptable C compiler found in \$PATH
2763 See \`config.log' for more details." >&2;}
2764 { (exit 1); exit 1; }; }
2766 # Provide some information about the compiler.
2767 echo "$as_me:$LINENO: checking for C compiler version" >&5
2768 ac_compiler=`set X $ac_compile; echo $2`
2769 { (ac_try="$ac_compiler --version >&5"
2770 case "(($ac_try" in
2771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2772 *) ac_try_echo=$ac_try;;
2773 esac
2774 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2775 (eval "$ac_compiler --version >&5") 2>&5
2776 ac_status=$?
2777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2778 (exit $ac_status); }
2779 { (ac_try="$ac_compiler -v >&5"
2780 case "(($ac_try" in
2781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2782 *) ac_try_echo=$ac_try;;
2783 esac
2784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2785 (eval "$ac_compiler -v >&5") 2>&5
2786 ac_status=$?
2787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2788 (exit $ac_status); }
2789 { (ac_try="$ac_compiler -V >&5"
2790 case "(($ac_try" in
2791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2792 *) ac_try_echo=$ac_try;;
2793 esac
2794 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2795 (eval "$ac_compiler -V >&5") 2>&5
2796 ac_status=$?
2797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2798 (exit $ac_status); }
2800 cat >conftest.$ac_ext <<_ACEOF
2801 /* confdefs.h. */
2802 _ACEOF
2803 cat confdefs.h >>conftest.$ac_ext
2804 cat >>conftest.$ac_ext <<_ACEOF
2805 /* end confdefs.h. */
2808 main ()
2812 return 0;
2814 _ACEOF
2815 ac_clean_files_save=$ac_clean_files
2816 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2817 # Try to create an executable without -o first, disregard a.out.
2818 # It will help us diagnose broken compilers, and finding out an intuition
2819 # of exeext.
2820 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2821 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2822 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2824 # List of possible output files, starting from the most likely.
2825 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2826 # only as a last resort. b.out is created by i960 compilers.
2827 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2829 # The IRIX 6 linker writes into existing files which may not be
2830 # executable, retaining their permissions. Remove them first so a
2831 # subsequent execution test works.
2832 ac_rmfiles=
2833 for ac_file in $ac_files
2835 case $ac_file in
2836 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2837 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2838 esac
2839 done
2840 rm -f $ac_rmfiles
2842 if { (ac_try="$ac_link_default"
2843 case "(($ac_try" in
2844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2845 *) ac_try_echo=$ac_try;;
2846 esac
2847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2848 (eval "$ac_link_default") 2>&5
2849 ac_status=$?
2850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2851 (exit $ac_status); }; then
2852 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2853 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2854 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2855 # so that the user can short-circuit this test for compilers unknown to
2856 # Autoconf.
2857 for ac_file in $ac_files ''
2859 test -f "$ac_file" || continue
2860 case $ac_file in
2861 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2863 [ab].out )
2864 # We found the default executable, but exeext='' is most
2865 # certainly right.
2866 break;;
2867 *.* )
2868 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2869 then :; else
2870 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2872 # We set ac_cv_exeext here because the later test for it is not
2873 # safe: cross compilers may not add the suffix if given an `-o'
2874 # argument, so we may need to know it at that point already.
2875 # Even if this section looks crufty: it has the advantage of
2876 # actually working.
2877 break;;
2879 break;;
2880 esac
2881 done
2882 test "$ac_cv_exeext" = no && ac_cv_exeext=
2884 else
2885 ac_file=''
2888 { echo "$as_me:$LINENO: result: $ac_file" >&5
2889 echo "${ECHO_T}$ac_file" >&6; }
2890 if test -z "$ac_file"; then
2891 echo "$as_me: failed program was:" >&5
2892 sed 's/^/| /' conftest.$ac_ext >&5
2894 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2895 See \`config.log' for more details." >&5
2896 echo "$as_me: error: C compiler cannot create executables
2897 See \`config.log' for more details." >&2;}
2898 { (exit 77); exit 77; }; }
2901 ac_exeext=$ac_cv_exeext
2903 # Check that the compiler produces executables we can run. If not, either
2904 # the compiler is broken, or we cross compile.
2905 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2906 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2907 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2908 # If not cross compiling, check that we can run a simple program.
2909 if test "$cross_compiling" != yes; then
2910 if { ac_try='./$ac_file'
2911 { (case "(($ac_try" in
2912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2913 *) ac_try_echo=$ac_try;;
2914 esac
2915 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2916 (eval "$ac_try") 2>&5
2917 ac_status=$?
2918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2919 (exit $ac_status); }; }; then
2920 cross_compiling=no
2921 else
2922 if test "$cross_compiling" = maybe; then
2923 cross_compiling=yes
2924 else
2925 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2926 If you meant to cross compile, use \`--host'.
2927 See \`config.log' for more details." >&5
2928 echo "$as_me: error: cannot run C compiled programs.
2929 If you meant to cross compile, use \`--host'.
2930 See \`config.log' for more details." >&2;}
2931 { (exit 1); exit 1; }; }
2935 { echo "$as_me:$LINENO: result: yes" >&5
2936 echo "${ECHO_T}yes" >&6; }
2938 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2939 ac_clean_files=$ac_clean_files_save
2940 # Check that the compiler produces executables we can run. If not, either
2941 # the compiler is broken, or we cross compile.
2942 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2943 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2944 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2945 echo "${ECHO_T}$cross_compiling" >&6; }
2947 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2948 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2949 if { (ac_try="$ac_link"
2950 case "(($ac_try" in
2951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2952 *) ac_try_echo=$ac_try;;
2953 esac
2954 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2955 (eval "$ac_link") 2>&5
2956 ac_status=$?
2957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2958 (exit $ac_status); }; then
2959 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2960 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2961 # work properly (i.e., refer to `conftest.exe'), while it won't with
2962 # `rm'.
2963 for ac_file in conftest.exe conftest conftest.*; do
2964 test -f "$ac_file" || continue
2965 case $ac_file in
2966 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2967 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2968 break;;
2969 * ) break;;
2970 esac
2971 done
2972 else
2973 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2974 See \`config.log' for more details." >&5
2975 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2976 See \`config.log' for more details." >&2;}
2977 { (exit 1); exit 1; }; }
2980 rm -f conftest$ac_cv_exeext
2981 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2982 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2984 rm -f conftest.$ac_ext
2985 EXEEXT=$ac_cv_exeext
2986 ac_exeext=$EXEEXT
2987 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2988 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2989 if test "${ac_cv_objext+set}" = set; then
2990 echo $ECHO_N "(cached) $ECHO_C" >&6
2991 else
2992 cat >conftest.$ac_ext <<_ACEOF
2993 /* confdefs.h. */
2994 _ACEOF
2995 cat confdefs.h >>conftest.$ac_ext
2996 cat >>conftest.$ac_ext <<_ACEOF
2997 /* end confdefs.h. */
3000 main ()
3004 return 0;
3006 _ACEOF
3007 rm -f conftest.o conftest.obj
3008 if { (ac_try="$ac_compile"
3009 case "(($ac_try" in
3010 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3011 *) ac_try_echo=$ac_try;;
3012 esac
3013 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3014 (eval "$ac_compile") 2>&5
3015 ac_status=$?
3016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3017 (exit $ac_status); }; then
3018 for ac_file in conftest.o conftest.obj conftest.*; do
3019 test -f "$ac_file" || continue;
3020 case $ac_file in
3021 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3022 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3023 break;;
3024 esac
3025 done
3026 else
3027 echo "$as_me: failed program was:" >&5
3028 sed 's/^/| /' conftest.$ac_ext >&5
3030 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3031 See \`config.log' for more details." >&5
3032 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3033 See \`config.log' for more details." >&2;}
3034 { (exit 1); exit 1; }; }
3037 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3039 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3040 echo "${ECHO_T}$ac_cv_objext" >&6; }
3041 OBJEXT=$ac_cv_objext
3042 ac_objext=$OBJEXT
3043 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3044 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3045 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3046 echo $ECHO_N "(cached) $ECHO_C" >&6
3047 else
3048 cat >conftest.$ac_ext <<_ACEOF
3049 /* confdefs.h. */
3050 _ACEOF
3051 cat confdefs.h >>conftest.$ac_ext
3052 cat >>conftest.$ac_ext <<_ACEOF
3053 /* end confdefs.h. */
3056 main ()
3058 #ifndef __GNUC__
3059 choke me
3060 #endif
3063 return 0;
3065 _ACEOF
3066 rm -f conftest.$ac_objext
3067 if { (ac_try="$ac_compile"
3068 case "(($ac_try" in
3069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3070 *) ac_try_echo=$ac_try;;
3071 esac
3072 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3073 (eval "$ac_compile") 2>conftest.er1
3074 ac_status=$?
3075 grep -v '^ *+' conftest.er1 >conftest.err
3076 rm -f conftest.er1
3077 cat conftest.err >&5
3078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3079 (exit $ac_status); } && {
3080 test -z "$ac_c_werror_flag" ||
3081 test ! -s conftest.err
3082 } && test -s conftest.$ac_objext; then
3083 ac_compiler_gnu=yes
3084 else
3085 echo "$as_me: failed program was:" >&5
3086 sed 's/^/| /' conftest.$ac_ext >&5
3088 ac_compiler_gnu=no
3091 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3092 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3095 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3096 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3097 GCC=`test $ac_compiler_gnu = yes && echo yes`
3098 ac_test_CFLAGS=${CFLAGS+set}
3099 ac_save_CFLAGS=$CFLAGS
3100 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3101 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3102 if test "${ac_cv_prog_cc_g+set}" = set; then
3103 echo $ECHO_N "(cached) $ECHO_C" >&6
3104 else
3105 ac_save_c_werror_flag=$ac_c_werror_flag
3106 ac_c_werror_flag=yes
3107 ac_cv_prog_cc_g=no
3108 CFLAGS="-g"
3109 cat >conftest.$ac_ext <<_ACEOF
3110 /* confdefs.h. */
3111 _ACEOF
3112 cat confdefs.h >>conftest.$ac_ext
3113 cat >>conftest.$ac_ext <<_ACEOF
3114 /* end confdefs.h. */
3117 main ()
3121 return 0;
3123 _ACEOF
3124 rm -f conftest.$ac_objext
3125 if { (ac_try="$ac_compile"
3126 case "(($ac_try" in
3127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3128 *) ac_try_echo=$ac_try;;
3129 esac
3130 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3131 (eval "$ac_compile") 2>conftest.er1
3132 ac_status=$?
3133 grep -v '^ *+' conftest.er1 >conftest.err
3134 rm -f conftest.er1
3135 cat conftest.err >&5
3136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3137 (exit $ac_status); } && {
3138 test -z "$ac_c_werror_flag" ||
3139 test ! -s conftest.err
3140 } && test -s conftest.$ac_objext; then
3141 ac_cv_prog_cc_g=yes
3142 else
3143 echo "$as_me: failed program was:" >&5
3144 sed 's/^/| /' conftest.$ac_ext >&5
3146 CFLAGS=""
3147 cat >conftest.$ac_ext <<_ACEOF
3148 /* confdefs.h. */
3149 _ACEOF
3150 cat confdefs.h >>conftest.$ac_ext
3151 cat >>conftest.$ac_ext <<_ACEOF
3152 /* end confdefs.h. */
3155 main ()
3159 return 0;
3161 _ACEOF
3162 rm -f conftest.$ac_objext
3163 if { (ac_try="$ac_compile"
3164 case "(($ac_try" in
3165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3166 *) ac_try_echo=$ac_try;;
3167 esac
3168 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3169 (eval "$ac_compile") 2>conftest.er1
3170 ac_status=$?
3171 grep -v '^ *+' conftest.er1 >conftest.err
3172 rm -f conftest.er1
3173 cat conftest.err >&5
3174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3175 (exit $ac_status); } && {
3176 test -z "$ac_c_werror_flag" ||
3177 test ! -s conftest.err
3178 } && test -s conftest.$ac_objext; then
3180 else
3181 echo "$as_me: failed program was:" >&5
3182 sed 's/^/| /' conftest.$ac_ext >&5
3184 ac_c_werror_flag=$ac_save_c_werror_flag
3185 CFLAGS="-g"
3186 cat >conftest.$ac_ext <<_ACEOF
3187 /* confdefs.h. */
3188 _ACEOF
3189 cat confdefs.h >>conftest.$ac_ext
3190 cat >>conftest.$ac_ext <<_ACEOF
3191 /* end confdefs.h. */
3194 main ()
3198 return 0;
3200 _ACEOF
3201 rm -f conftest.$ac_objext
3202 if { (ac_try="$ac_compile"
3203 case "(($ac_try" in
3204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3205 *) ac_try_echo=$ac_try;;
3206 esac
3207 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3208 (eval "$ac_compile") 2>conftest.er1
3209 ac_status=$?
3210 grep -v '^ *+' conftest.er1 >conftest.err
3211 rm -f conftest.er1
3212 cat conftest.err >&5
3213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3214 (exit $ac_status); } && {
3215 test -z "$ac_c_werror_flag" ||
3216 test ! -s conftest.err
3217 } && test -s conftest.$ac_objext; then
3218 ac_cv_prog_cc_g=yes
3219 else
3220 echo "$as_me: failed program was:" >&5
3221 sed 's/^/| /' conftest.$ac_ext >&5
3226 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3229 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3232 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3233 ac_c_werror_flag=$ac_save_c_werror_flag
3235 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3236 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3237 if test "$ac_test_CFLAGS" = set; then
3238 CFLAGS=$ac_save_CFLAGS
3239 elif test $ac_cv_prog_cc_g = yes; then
3240 if test "$GCC" = yes; then
3241 CFLAGS="-g -O2"
3242 else
3243 CFLAGS="-g"
3245 else
3246 if test "$GCC" = yes; then
3247 CFLAGS="-O2"
3248 else
3249 CFLAGS=
3252 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3253 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3254 if test "${ac_cv_prog_cc_c89+set}" = set; then
3255 echo $ECHO_N "(cached) $ECHO_C" >&6
3256 else
3257 ac_cv_prog_cc_c89=no
3258 ac_save_CC=$CC
3259 cat >conftest.$ac_ext <<_ACEOF
3260 /* confdefs.h. */
3261 _ACEOF
3262 cat confdefs.h >>conftest.$ac_ext
3263 cat >>conftest.$ac_ext <<_ACEOF
3264 /* end confdefs.h. */
3265 #include <stdarg.h>
3266 #include <stdio.h>
3267 #include <sys/types.h>
3268 #include <sys/stat.h>
3269 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3270 struct buf { int x; };
3271 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3272 static char *e (p, i)
3273 char **p;
3274 int i;
3276 return p[i];
3278 static char *f (char * (*g) (char **, int), char **p, ...)
3280 char *s;
3281 va_list v;
3282 va_start (v,p);
3283 s = g (p, va_arg (v,int));
3284 va_end (v);
3285 return s;
3288 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3289 function prototypes and stuff, but not '\xHH' hex character constants.
3290 These don't provoke an error unfortunately, instead are silently treated
3291 as 'x'. The following induces an error, until -std is added to get
3292 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3293 array size at least. It's necessary to write '\x00'==0 to get something
3294 that's true only with -std. */
3295 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3297 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3298 inside strings and character constants. */
3299 #define FOO(x) 'x'
3300 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3302 int test (int i, double x);
3303 struct s1 {int (*f) (int a);};
3304 struct s2 {int (*f) (double a);};
3305 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3306 int argc;
3307 char **argv;
3309 main ()
3311 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3313 return 0;
3315 _ACEOF
3316 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3317 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3319 CC="$ac_save_CC $ac_arg"
3320 rm -f conftest.$ac_objext
3321 if { (ac_try="$ac_compile"
3322 case "(($ac_try" in
3323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3324 *) ac_try_echo=$ac_try;;
3325 esac
3326 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3327 (eval "$ac_compile") 2>conftest.er1
3328 ac_status=$?
3329 grep -v '^ *+' conftest.er1 >conftest.err
3330 rm -f conftest.er1
3331 cat conftest.err >&5
3332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3333 (exit $ac_status); } && {
3334 test -z "$ac_c_werror_flag" ||
3335 test ! -s conftest.err
3336 } && test -s conftest.$ac_objext; then
3337 ac_cv_prog_cc_c89=$ac_arg
3338 else
3339 echo "$as_me: failed program was:" >&5
3340 sed 's/^/| /' conftest.$ac_ext >&5
3345 rm -f core conftest.err conftest.$ac_objext
3346 test "x$ac_cv_prog_cc_c89" != "xno" && break
3347 done
3348 rm -f conftest.$ac_ext
3349 CC=$ac_save_CC
3352 # AC_CACHE_VAL
3353 case "x$ac_cv_prog_cc_c89" in
3355 { echo "$as_me:$LINENO: result: none needed" >&5
3356 echo "${ECHO_T}none needed" >&6; } ;;
3357 xno)
3358 { echo "$as_me:$LINENO: result: unsupported" >&5
3359 echo "${ECHO_T}unsupported" >&6; } ;;
3361 CC="$CC $ac_cv_prog_cc_c89"
3362 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3363 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3364 esac
3367 ac_ext=c
3368 ac_cpp='$CPP $CPPFLAGS'
3369 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3370 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3371 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3372 DEPDIR="${am__leading_dot}deps"
3374 ac_config_commands="$ac_config_commands depfiles"
3377 am_make=${MAKE-make}
3378 cat > confinc << 'END'
3379 am__doit:
3380 @echo done
3381 .PHONY: am__doit
3383 # If we don't find an include directive, just comment out the code.
3384 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3385 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
3386 am__include="#"
3387 am__quote=
3388 _am_result=none
3389 # First try GNU make style include.
3390 echo "include confinc" > confmf
3391 # We grep out `Entering directory' and `Leaving directory'
3392 # messages which can occur if `w' ends up in MAKEFLAGS.
3393 # In particular we don't look at `^make:' because GNU make might
3394 # be invoked under some other name (usually "gmake"), in which
3395 # case it prints its new name instead of `make'.
3396 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3397 am__include=include
3398 am__quote=
3399 _am_result=GNU
3401 # Now try BSD make style include.
3402 if test "$am__include" = "#"; then
3403 echo '.include "confinc"' > confmf
3404 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3405 am__include=.include
3406 am__quote="\""
3407 _am_result=BSD
3412 { echo "$as_me:$LINENO: result: $_am_result" >&5
3413 echo "${ECHO_T}$_am_result" >&6; }
3414 rm -f confinc confmf
3416 # Check whether --enable-dependency-tracking was given.
3417 if test "${enable_dependency_tracking+set}" = set; then
3418 enableval=$enable_dependency_tracking;
3421 if test "x$enable_dependency_tracking" != xno; then
3422 am_depcomp="$ac_aux_dir/depcomp"
3423 AMDEPBACKSLASH='\'
3425 if test "x$enable_dependency_tracking" != xno; then
3426 AMDEP_TRUE=
3427 AMDEP_FALSE='#'
3428 else
3429 AMDEP_TRUE='#'
3430 AMDEP_FALSE=
3435 depcc="$CC" am_compiler_list=
3437 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3438 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3439 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3440 echo $ECHO_N "(cached) $ECHO_C" >&6
3441 else
3442 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3443 # We make a subdir and do the tests there. Otherwise we can end up
3444 # making bogus files that we don't know about and never remove. For
3445 # instance it was reported that on HP-UX the gcc test will end up
3446 # making a dummy file named `D' -- because `-MD' means `put the output
3447 # in D'.
3448 mkdir conftest.dir
3449 # Copy depcomp to subdir because otherwise we won't find it if we're
3450 # using a relative directory.
3451 cp "$am_depcomp" conftest.dir
3452 cd conftest.dir
3453 # We will build objects and dependencies in a subdirectory because
3454 # it helps to detect inapplicable dependency modes. For instance
3455 # both Tru64's cc and ICC support -MD to output dependencies as a
3456 # side effect of compilation, but ICC will put the dependencies in
3457 # the current directory while Tru64 will put them in the object
3458 # directory.
3459 mkdir sub
3461 am_cv_CC_dependencies_compiler_type=none
3462 if test "$am_compiler_list" = ""; then
3463 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3465 for depmode in $am_compiler_list; do
3466 # Setup a source with many dependencies, because some compilers
3467 # like to wrap large dependency lists on column 80 (with \), and
3468 # we should not choose a depcomp mode which is confused by this.
3470 # We need to recreate these files for each test, as the compiler may
3471 # overwrite some of them when testing with obscure command lines.
3472 # This happens at least with the AIX C compiler.
3473 : > sub/conftest.c
3474 for i in 1 2 3 4 5 6; do
3475 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3476 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3477 # Solaris 8's {/usr,}/bin/sh.
3478 touch sub/conftst$i.h
3479 done
3480 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3482 case $depmode in
3483 nosideeffect)
3484 # after this tag, mechanisms are not by side-effect, so they'll
3485 # only be used when explicitly requested
3486 if test "x$enable_dependency_tracking" = xyes; then
3487 continue
3488 else
3489 break
3492 none) break ;;
3493 esac
3494 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3495 # mode. It turns out that the SunPro C++ compiler does not properly
3496 # handle `-M -o', and we need to detect this.
3497 if depmode=$depmode \
3498 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3499 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3500 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3501 >/dev/null 2>conftest.err &&
3502 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3503 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3504 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3505 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3506 # icc doesn't choke on unknown options, it will just issue warnings
3507 # or remarks (even with -Werror). So we grep stderr for any message
3508 # that says an option was ignored or not supported.
3509 # When given -MP, icc 7.0 and 7.1 complain thusly:
3510 # icc: Command line warning: ignoring option '-M'; no argument required
3511 # The diagnosis changed in icc 8.0:
3512 # icc: Command line remark: option '-MP' not supported
3513 if (grep 'ignoring option' conftest.err ||
3514 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3515 am_cv_CC_dependencies_compiler_type=$depmode
3516 break
3519 done
3521 cd ..
3522 rm -rf conftest.dir
3523 else
3524 am_cv_CC_dependencies_compiler_type=none
3528 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3529 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3530 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3533 test "x$enable_dependency_tracking" != xno \
3534 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3535 am__fastdepCC_TRUE=
3536 am__fastdepCC_FALSE='#'
3537 else
3538 am__fastdepCC_TRUE='#'
3539 am__fastdepCC_FALSE=
3543 # Check whether --enable-shared was given.
3544 if test "${enable_shared+set}" = set; then
3545 enableval=$enable_shared; p=${PACKAGE-default}
3546 case $enableval in
3547 yes) enable_shared=yes ;;
3548 no) enable_shared=no ;;
3550 enable_shared=no
3551 # Look at the argument we got. We use all the common list separators.
3552 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3553 for pkg in $enableval; do
3554 IFS="$lt_save_ifs"
3555 if test "X$pkg" = "X$p"; then
3556 enable_shared=yes
3558 done
3559 IFS="$lt_save_ifs"
3561 esac
3562 else
3563 enable_shared=yes
3567 # Check whether --enable-static was given.
3568 if test "${enable_static+set}" = set; then
3569 enableval=$enable_static; p=${PACKAGE-default}
3570 case $enableval in
3571 yes) enable_static=yes ;;
3572 no) enable_static=no ;;
3574 enable_static=no
3575 # Look at the argument we got. We use all the common list separators.
3576 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3577 for pkg in $enableval; do
3578 IFS="$lt_save_ifs"
3579 if test "X$pkg" = "X$p"; then
3580 enable_static=yes
3582 done
3583 IFS="$lt_save_ifs"
3585 esac
3586 else
3587 enable_static=yes
3591 # Check whether --enable-fast-install was given.
3592 if test "${enable_fast_install+set}" = set; then
3593 enableval=$enable_fast_install; p=${PACKAGE-default}
3594 case $enableval in
3595 yes) enable_fast_install=yes ;;
3596 no) enable_fast_install=no ;;
3598 enable_fast_install=no
3599 # Look at the argument we got. We use all the common list separators.
3600 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3601 for pkg in $enableval; do
3602 IFS="$lt_save_ifs"
3603 if test "X$pkg" = "X$p"; then
3604 enable_fast_install=yes
3606 done
3607 IFS="$lt_save_ifs"
3609 esac
3610 else
3611 enable_fast_install=yes
3615 # Make sure we can run config.sub.
3616 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3617 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3618 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3619 { (exit 1); exit 1; }; }
3621 { echo "$as_me:$LINENO: checking build system type" >&5
3622 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
3623 if test "${ac_cv_build+set}" = set; then
3624 echo $ECHO_N "(cached) $ECHO_C" >&6
3625 else
3626 ac_build_alias=$build_alias
3627 test "x$ac_build_alias" = x &&
3628 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3629 test "x$ac_build_alias" = x &&
3630 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3631 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3632 { (exit 1); exit 1; }; }
3633 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3634 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3635 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3636 { (exit 1); exit 1; }; }
3639 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3640 echo "${ECHO_T}$ac_cv_build" >&6; }
3641 case $ac_cv_build in
3642 *-*-*) ;;
3643 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3644 echo "$as_me: error: invalid value of canonical build" >&2;}
3645 { (exit 1); exit 1; }; };;
3646 esac
3647 build=$ac_cv_build
3648 ac_save_IFS=$IFS; IFS='-'
3649 set x $ac_cv_build
3650 shift
3651 build_cpu=$1
3652 build_vendor=$2
3653 shift; shift
3654 # Remember, the first character of IFS is used to create $*,
3655 # except with old shells:
3656 build_os=$*
3657 IFS=$ac_save_IFS
3658 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3661 { echo "$as_me:$LINENO: checking host system type" >&5
3662 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
3663 if test "${ac_cv_host+set}" = set; then
3664 echo $ECHO_N "(cached) $ECHO_C" >&6
3665 else
3666 if test "x$host_alias" = x; then
3667 ac_cv_host=$ac_cv_build
3668 else
3669 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3670 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3671 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3672 { (exit 1); exit 1; }; }
3676 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3677 echo "${ECHO_T}$ac_cv_host" >&6; }
3678 case $ac_cv_host in
3679 *-*-*) ;;
3680 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3681 echo "$as_me: error: invalid value of canonical host" >&2;}
3682 { (exit 1); exit 1; }; };;
3683 esac
3684 host=$ac_cv_host
3685 ac_save_IFS=$IFS; IFS='-'
3686 set x $ac_cv_host
3687 shift
3688 host_cpu=$1
3689 host_vendor=$2
3690 shift; shift
3691 # Remember, the first character of IFS is used to create $*,
3692 # except with old shells:
3693 host_os=$*
3694 IFS=$ac_save_IFS
3695 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3698 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3699 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
3700 if test "${lt_cv_path_SED+set}" = set; then
3701 echo $ECHO_N "(cached) $ECHO_C" >&6
3702 else
3703 # Loop through the user's path and test for sed and gsed.
3704 # Then use that list of sed's as ones to test for truncation.
3705 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3706 for as_dir in $PATH
3708 IFS=$as_save_IFS
3709 test -z "$as_dir" && as_dir=.
3710 for lt_ac_prog in sed gsed; do
3711 for ac_exec_ext in '' $ac_executable_extensions; do
3712 if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then
3713 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3715 done
3716 done
3717 done
3718 IFS=$as_save_IFS
3719 lt_ac_max=0
3720 lt_ac_count=0
3721 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3722 # along with /bin/sed that truncates output.
3723 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3724 test ! -f $lt_ac_sed && continue
3725 cat /dev/null > conftest.in
3726 lt_ac_count=0
3727 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3728 # Check for GNU sed and select it if it is found.
3729 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3730 lt_cv_path_SED=$lt_ac_sed
3731 break
3733 while true; do
3734 cat conftest.in conftest.in >conftest.tmp
3735 mv conftest.tmp conftest.in
3736 cp conftest.in conftest.nl
3737 echo >>conftest.nl
3738 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3739 cmp -s conftest.out conftest.nl || break
3740 # 10000 chars as input seems more than enough
3741 test $lt_ac_count -gt 10 && break
3742 lt_ac_count=`expr $lt_ac_count + 1`
3743 if test $lt_ac_count -gt $lt_ac_max; then
3744 lt_ac_max=$lt_ac_count
3745 lt_cv_path_SED=$lt_ac_sed
3747 done
3748 done
3752 SED=$lt_cv_path_SED
3754 { echo "$as_me:$LINENO: result: $SED" >&5
3755 echo "${ECHO_T}$SED" >&6; }
3757 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3758 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3759 if test "${ac_cv_path_GREP+set}" = set; then
3760 echo $ECHO_N "(cached) $ECHO_C" >&6
3761 else
3762 # Extract the first word of "grep ggrep" to use in msg output
3763 if test -z "$GREP"; then
3764 set dummy grep ggrep; ac_prog_name=$2
3765 if test "${ac_cv_path_GREP+set}" = set; then
3766 echo $ECHO_N "(cached) $ECHO_C" >&6
3767 else
3768 ac_path_GREP_found=false
3769 # Loop through the user's path and test for each of PROGNAME-LIST
3770 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3771 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3773 IFS=$as_save_IFS
3774 test -z "$as_dir" && as_dir=.
3775 for ac_prog in grep ggrep; do
3776 for ac_exec_ext in '' $ac_executable_extensions; do
3777 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3778 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3779 # Check for GNU ac_path_GREP and select it if it is found.
3780 # Check for GNU $ac_path_GREP
3781 case `"$ac_path_GREP" --version 2>&1` in
3782 *GNU*)
3783 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3785 ac_count=0
3786 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3787 while :
3789 cat "conftest.in" "conftest.in" >"conftest.tmp"
3790 mv "conftest.tmp" "conftest.in"
3791 cp "conftest.in" "conftest.nl"
3792 echo 'GREP' >> "conftest.nl"
3793 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3794 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3795 ac_count=`expr $ac_count + 1`
3796 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3797 # Best one so far, save it but keep looking for a better one
3798 ac_cv_path_GREP="$ac_path_GREP"
3799 ac_path_GREP_max=$ac_count
3801 # 10*(2^10) chars as input seems more than enough
3802 test $ac_count -gt 10 && break
3803 done
3804 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3805 esac
3808 $ac_path_GREP_found && break 3
3809 done
3810 done
3812 done
3813 IFS=$as_save_IFS
3818 GREP="$ac_cv_path_GREP"
3819 if test -z "$GREP"; then
3820 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3821 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3822 { (exit 1); exit 1; }; }
3825 else
3826 ac_cv_path_GREP=$GREP
3831 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3832 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3833 GREP="$ac_cv_path_GREP"
3836 { echo "$as_me:$LINENO: checking for egrep" >&5
3837 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3838 if test "${ac_cv_path_EGREP+set}" = set; then
3839 echo $ECHO_N "(cached) $ECHO_C" >&6
3840 else
3841 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3842 then ac_cv_path_EGREP="$GREP -E"
3843 else
3844 # Extract the first word of "egrep" to use in msg output
3845 if test -z "$EGREP"; then
3846 set dummy egrep; ac_prog_name=$2
3847 if test "${ac_cv_path_EGREP+set}" = set; then
3848 echo $ECHO_N "(cached) $ECHO_C" >&6
3849 else
3850 ac_path_EGREP_found=false
3851 # Loop through the user's path and test for each of PROGNAME-LIST
3852 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3853 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3855 IFS=$as_save_IFS
3856 test -z "$as_dir" && as_dir=.
3857 for ac_prog in egrep; do
3858 for ac_exec_ext in '' $ac_executable_extensions; do
3859 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3860 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3861 # Check for GNU ac_path_EGREP and select it if it is found.
3862 # Check for GNU $ac_path_EGREP
3863 case `"$ac_path_EGREP" --version 2>&1` in
3864 *GNU*)
3865 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3867 ac_count=0
3868 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3869 while :
3871 cat "conftest.in" "conftest.in" >"conftest.tmp"
3872 mv "conftest.tmp" "conftest.in"
3873 cp "conftest.in" "conftest.nl"
3874 echo 'EGREP' >> "conftest.nl"
3875 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3876 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3877 ac_count=`expr $ac_count + 1`
3878 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3879 # Best one so far, save it but keep looking for a better one
3880 ac_cv_path_EGREP="$ac_path_EGREP"
3881 ac_path_EGREP_max=$ac_count
3883 # 10*(2^10) chars as input seems more than enough
3884 test $ac_count -gt 10 && break
3885 done
3886 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3887 esac
3890 $ac_path_EGREP_found && break 3
3891 done
3892 done
3894 done
3895 IFS=$as_save_IFS
3900 EGREP="$ac_cv_path_EGREP"
3901 if test -z "$EGREP"; then
3902 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3903 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3904 { (exit 1); exit 1; }; }
3907 else
3908 ac_cv_path_EGREP=$EGREP
3914 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3915 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3916 EGREP="$ac_cv_path_EGREP"
3920 # Check whether --with-gnu-ld was given.
3921 if test "${with_gnu_ld+set}" = set; then
3922 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
3923 else
3924 with_gnu_ld=no
3927 ac_prog=ld
3928 if test "$GCC" = yes; then
3929 # Check if gcc -print-prog-name=ld gives a path.
3930 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3931 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
3932 case $host in
3933 *-*-mingw*)
3934 # gcc leaves a trailing carriage return which upsets mingw
3935 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3937 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3938 esac
3939 case $ac_prog in
3940 # Accept absolute paths.
3941 [\\/]* | ?:[\\/]*)
3942 re_direlt='/[^/][^/]*/\.\./'
3943 # Canonicalize the pathname of ld
3944 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3945 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3946 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
3947 done
3948 test -z "$LD" && LD="$ac_prog"
3951 # If it fails, then pretend we aren't using GCC.
3952 ac_prog=ld
3955 # If it is relative, then search for the first ld in PATH.
3956 with_gnu_ld=unknown
3958 esac
3959 elif test "$with_gnu_ld" = yes; then
3960 { echo "$as_me:$LINENO: checking for GNU ld" >&5
3961 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
3962 else
3963 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3964 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
3966 if test "${lt_cv_path_LD+set}" = set; then
3967 echo $ECHO_N "(cached) $ECHO_C" >&6
3968 else
3969 if test -z "$LD"; then
3970 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3971 for ac_dir in $PATH; do
3972 IFS="$lt_save_ifs"
3973 test -z "$ac_dir" && ac_dir=.
3974 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3975 lt_cv_path_LD="$ac_dir/$ac_prog"
3976 # Check to see if the program is GNU ld. I'd rather use --version,
3977 # but apparently some variants of GNU ld only accept -v.
3978 # Break only if it was the GNU/non-GNU ld that we prefer.
3979 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3980 *GNU* | *'with BFD'*)
3981 test "$with_gnu_ld" != no && break
3984 test "$with_gnu_ld" != yes && break
3986 esac
3988 done
3989 IFS="$lt_save_ifs"
3990 else
3991 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3995 LD="$lt_cv_path_LD"
3996 if test -n "$LD"; then
3997 { echo "$as_me:$LINENO: result: $LD" >&5
3998 echo "${ECHO_T}$LD" >&6; }
3999 else
4000 { echo "$as_me:$LINENO: result: no" >&5
4001 echo "${ECHO_T}no" >&6; }
4003 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4004 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4005 { (exit 1); exit 1; }; }
4006 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4007 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
4008 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4009 echo $ECHO_N "(cached) $ECHO_C" >&6
4010 else
4011 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4012 case `$LD -v 2>&1 </dev/null` in
4013 *GNU* | *'with BFD'*)
4014 lt_cv_prog_gnu_ld=yes
4017 lt_cv_prog_gnu_ld=no
4019 esac
4021 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4022 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
4023 with_gnu_ld=$lt_cv_prog_gnu_ld
4026 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4027 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
4028 if test "${lt_cv_ld_reload_flag+set}" = set; then
4029 echo $ECHO_N "(cached) $ECHO_C" >&6
4030 else
4031 lt_cv_ld_reload_flag='-r'
4033 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4034 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
4035 reload_flag=$lt_cv_ld_reload_flag
4036 case $reload_flag in
4037 "" | " "*) ;;
4038 *) reload_flag=" $reload_flag" ;;
4039 esac
4040 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4041 case $host_os in
4042 darwin*)
4043 if test "$GCC" = yes; then
4044 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4045 else
4046 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4049 esac
4051 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4052 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
4053 if test "${lt_cv_path_NM+set}" = set; then
4054 echo $ECHO_N "(cached) $ECHO_C" >&6
4055 else
4056 if test -n "$NM"; then
4057 # Let the user override the test.
4058 lt_cv_path_NM="$NM"
4059 else
4060 lt_nm_to_check="${ac_tool_prefix}nm"
4061 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4062 lt_nm_to_check="$lt_nm_to_check nm"
4064 for lt_tmp_nm in $lt_nm_to_check; do
4065 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4066 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4067 IFS="$lt_save_ifs"
4068 test -z "$ac_dir" && ac_dir=.
4069 tmp_nm="$ac_dir/$lt_tmp_nm"
4070 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4071 # Check to see if the nm accepts a BSD-compat flag.
4072 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4073 # nm: unknown option "B" ignored
4074 # Tru64's nm complains that /dev/null is an invalid object file
4075 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4076 */dev/null* | *'Invalid file or object type'*)
4077 lt_cv_path_NM="$tmp_nm -B"
4078 break
4081 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4082 */dev/null*)
4083 lt_cv_path_NM="$tmp_nm -p"
4084 break
4087 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4088 continue # so that we can try to find one that supports BSD flags
4090 esac
4092 esac
4094 done
4095 IFS="$lt_save_ifs"
4096 done
4097 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4100 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4101 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
4102 NM="$lt_cv_path_NM"
4104 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
4105 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4106 LN_S=$as_ln_s
4107 if test "$LN_S" = "ln -s"; then
4108 { echo "$as_me:$LINENO: result: yes" >&5
4109 echo "${ECHO_T}yes" >&6; }
4110 else
4111 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4112 echo "${ECHO_T}no, using $LN_S" >&6; }
4115 { echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
4116 echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6; }
4117 if test "${lt_cv_deplibs_check_method+set}" = set; then
4118 echo $ECHO_N "(cached) $ECHO_C" >&6
4119 else
4120 lt_cv_file_magic_cmd='$MAGIC_CMD'
4121 lt_cv_file_magic_test_file=
4122 lt_cv_deplibs_check_method='unknown'
4123 # Need to set the preceding variable on all platforms that support
4124 # interlibrary dependencies.
4125 # 'none' -- dependencies not supported.
4126 # `unknown' -- same as none, but documents that we really don't know.
4127 # 'pass_all' -- all dependencies passed with no checks.
4128 # 'test_compile' -- check by making test program.
4129 # 'file_magic [[regex]]' -- check by looking for files in library path
4130 # which responds to the $file_magic_cmd with a given extended regex.
4131 # If you have `file' or equivalent on your system and you're not sure
4132 # whether `pass_all' will *always* work, you probably want this one.
4134 case $host_os in
4135 aix[4-9]*)
4136 lt_cv_deplibs_check_method=pass_all
4139 beos*)
4140 lt_cv_deplibs_check_method=pass_all
4143 bsdi[45]*)
4144 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4145 lt_cv_file_magic_cmd='/usr/bin/file -L'
4146 lt_cv_file_magic_test_file=/shlib/libc.so
4149 cygwin*)
4150 # func_win32_libid is a shell function defined in ltmain.sh
4151 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4152 lt_cv_file_magic_cmd='func_win32_libid'
4155 mingw* | pw32*)
4156 # Base MSYS/MinGW do not provide the 'file' command needed by
4157 # func_win32_libid shell function, so use a weaker test based on 'objdump',
4158 # unless we find 'file', for example because we are cross-compiling.
4159 if ( file / ) >/dev/null 2>&1; then
4160 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4161 lt_cv_file_magic_cmd='func_win32_libid'
4162 else
4163 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4164 lt_cv_file_magic_cmd='$OBJDUMP -f'
4168 darwin* | rhapsody*)
4169 lt_cv_deplibs_check_method=pass_all
4172 freebsd* | dragonfly*)
4173 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4174 case $host_cpu in
4175 i*86 )
4176 # Not sure whether the presence of OpenBSD here was a mistake.
4177 # Let's accept both of them until this is cleared up.
4178 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4179 lt_cv_file_magic_cmd=/usr/bin/file
4180 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4182 esac
4183 else
4184 lt_cv_deplibs_check_method=pass_all
4188 gnu*)
4189 lt_cv_deplibs_check_method=pass_all
4192 hpux10.20* | hpux11*)
4193 lt_cv_file_magic_cmd=/usr/bin/file
4194 case $host_cpu in
4195 ia64*)
4196 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4197 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4199 hppa*64*)
4200 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]'
4201 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4204 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4205 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4207 esac
4210 interix[3-9]*)
4211 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4212 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4215 irix5* | irix6* | nonstopux*)
4216 case $LD in
4217 *-32|*"-32 ") libmagic=32-bit;;
4218 *-n32|*"-n32 ") libmagic=N32;;
4219 *-64|*"-64 ") libmagic=64-bit;;
4220 *) libmagic=never-match;;
4221 esac
4222 lt_cv_deplibs_check_method=pass_all
4225 # This must be Linux ELF.
4226 linux* | k*bsd*-gnu)
4227 lt_cv_deplibs_check_method=pass_all
4230 netbsd* | netbsdelf*-gnu)
4231 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4232 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4233 else
4234 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4238 newos6*)
4239 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4240 lt_cv_file_magic_cmd=/usr/bin/file
4241 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4244 nto-qnx*)
4245 lt_cv_deplibs_check_method=unknown
4248 openbsd*)
4249 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4250 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4251 else
4252 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4256 osf3* | osf4* | osf5*)
4257 lt_cv_deplibs_check_method=pass_all
4260 rdos*)
4261 lt_cv_deplibs_check_method=pass_all
4264 solaris*)
4265 lt_cv_deplibs_check_method=pass_all
4268 sysv4 | sysv4.3*)
4269 case $host_vendor in
4270 motorola)
4271 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]'
4272 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4274 ncr)
4275 lt_cv_deplibs_check_method=pass_all
4277 sequent)
4278 lt_cv_file_magic_cmd='/bin/file'
4279 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4281 sni)
4282 lt_cv_file_magic_cmd='/bin/file'
4283 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4284 lt_cv_file_magic_test_file=/lib/libc.so
4286 siemens)
4287 lt_cv_deplibs_check_method=pass_all
4290 lt_cv_deplibs_check_method=pass_all
4292 esac
4295 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4296 lt_cv_deplibs_check_method=pass_all
4298 esac
4301 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4302 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
4303 file_magic_cmd=$lt_cv_file_magic_cmd
4304 deplibs_check_method=$lt_cv_deplibs_check_method
4305 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4310 # If no C compiler was specified, use CC.
4311 LTCC=${LTCC-"$CC"}
4313 # If no C compiler flags were specified, use CFLAGS.
4314 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4316 # Allow CC to be a program name with arguments.
4317 compiler=$CC
4320 # Check whether --enable-libtool-lock was given.
4321 if test "${enable_libtool_lock+set}" = set; then
4322 enableval=$enable_libtool_lock;
4325 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4327 # Some flags need to be propagated to the compiler or linker for good
4328 # libtool support.
4329 case $host in
4330 ia64-*-hpux*)
4331 # Find out which ABI we are using.
4332 echo 'int i;' > conftest.$ac_ext
4333 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4334 (eval $ac_compile) 2>&5
4335 ac_status=$?
4336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4337 (exit $ac_status); }; then
4338 case `/usr/bin/file conftest.$ac_objext` in
4339 *ELF-32*)
4340 HPUX_IA64_MODE="32"
4342 *ELF-64*)
4343 HPUX_IA64_MODE="64"
4345 esac
4347 rm -rf conftest*
4349 *-*-irix6*)
4350 # Find out which ABI we are using.
4351 echo '#line 4351 "configure"' > conftest.$ac_ext
4352 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4353 (eval $ac_compile) 2>&5
4354 ac_status=$?
4355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4356 (exit $ac_status); }; then
4357 if test "$lt_cv_prog_gnu_ld" = yes; then
4358 case `/usr/bin/file conftest.$ac_objext` in
4359 *32-bit*)
4360 LD="${LD-ld} -melf32bsmip"
4362 *N32*)
4363 LD="${LD-ld} -melf32bmipn32"
4365 *64-bit*)
4366 LD="${LD-ld} -melf64bmip"
4368 esac
4369 else
4370 case `/usr/bin/file conftest.$ac_objext` in
4371 *32-bit*)
4372 LD="${LD-ld} -32"
4374 *N32*)
4375 LD="${LD-ld} -n32"
4377 *64-bit*)
4378 LD="${LD-ld} -64"
4380 esac
4383 rm -rf conftest*
4386 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
4387 s390*-*linux*|sparc*-*linux*)
4388 # Find out which ABI we are using.
4389 echo 'int i;' > conftest.$ac_ext
4390 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4391 (eval $ac_compile) 2>&5
4392 ac_status=$?
4393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4394 (exit $ac_status); }; then
4395 case `/usr/bin/file conftest.o` in
4396 *32-bit*)
4397 case $host in
4398 x86_64-*kfreebsd*-gnu)
4399 LD="${LD-ld} -m elf_i386_fbsd"
4401 x86_64-*linux*)
4402 LD="${LD-ld} -m elf_i386"
4404 ppc64-*linux*|powerpc64-*linux*)
4405 LD="${LD-ld} -m elf32ppclinux"
4407 s390x-*linux*)
4408 LD="${LD-ld} -m elf_s390"
4410 sparc64-*linux*)
4411 LD="${LD-ld} -m elf32_sparc"
4413 esac
4415 *64-bit*)
4416 case $host in
4417 x86_64-*kfreebsd*-gnu)
4418 LD="${LD-ld} -m elf_x86_64_fbsd"
4420 x86_64-*linux*)
4421 LD="${LD-ld} -m elf_x86_64"
4423 ppc*-*linux*|powerpc*-*linux*)
4424 LD="${LD-ld} -m elf64ppc"
4426 s390*-*linux*)
4427 LD="${LD-ld} -m elf64_s390"
4429 sparc*-*linux*)
4430 LD="${LD-ld} -m elf64_sparc"
4432 esac
4434 esac
4436 rm -rf conftest*
4439 *-*-sco3.2v5*)
4440 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4441 SAVE_CFLAGS="$CFLAGS"
4442 CFLAGS="$CFLAGS -belf"
4443 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4444 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
4445 if test "${lt_cv_cc_needs_belf+set}" = set; then
4446 echo $ECHO_N "(cached) $ECHO_C" >&6
4447 else
4448 ac_ext=c
4449 ac_cpp='$CPP $CPPFLAGS'
4450 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4451 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4452 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4454 cat >conftest.$ac_ext <<_ACEOF
4455 /* confdefs.h. */
4456 _ACEOF
4457 cat confdefs.h >>conftest.$ac_ext
4458 cat >>conftest.$ac_ext <<_ACEOF
4459 /* end confdefs.h. */
4462 main ()
4466 return 0;
4468 _ACEOF
4469 rm -f conftest.$ac_objext conftest$ac_exeext
4470 if { (ac_try="$ac_link"
4471 case "(($ac_try" in
4472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4473 *) ac_try_echo=$ac_try;;
4474 esac
4475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4476 (eval "$ac_link") 2>conftest.er1
4477 ac_status=$?
4478 grep -v '^ *+' conftest.er1 >conftest.err
4479 rm -f conftest.er1
4480 cat conftest.err >&5
4481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4482 (exit $ac_status); } && {
4483 test -z "$ac_c_werror_flag" ||
4484 test ! -s conftest.err
4485 } && test -s conftest$ac_exeext &&
4486 $as_test_x conftest$ac_exeext; then
4487 lt_cv_cc_needs_belf=yes
4488 else
4489 echo "$as_me: failed program was:" >&5
4490 sed 's/^/| /' conftest.$ac_ext >&5
4492 lt_cv_cc_needs_belf=no
4495 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4496 conftest$ac_exeext conftest.$ac_ext
4497 ac_ext=c
4498 ac_cpp='$CPP $CPPFLAGS'
4499 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4500 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4501 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4504 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4505 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
4506 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4507 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4508 CFLAGS="$SAVE_CFLAGS"
4511 sparc*-*solaris*)
4512 # Find out which ABI we are using.
4513 echo 'int i;' > conftest.$ac_ext
4514 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4515 (eval $ac_compile) 2>&5
4516 ac_status=$?
4517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4518 (exit $ac_status); }; then
4519 case `/usr/bin/file conftest.o` in
4520 *64-bit*)
4521 case $lt_cv_prog_gnu_ld in
4522 yes*) LD="${LD-ld} -m elf64_sparc" ;;
4524 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
4525 LD="${LD-ld} -64"
4528 esac
4530 esac
4532 rm -rf conftest*
4536 esac
4538 need_locks="$enable_libtool_lock"
4541 ac_ext=c
4542 ac_cpp='$CPP $CPPFLAGS'
4543 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4544 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4545 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4546 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4547 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4548 # On Suns, sometimes $CPP names a directory.
4549 if test -n "$CPP" && test -d "$CPP"; then
4550 CPP=
4552 if test -z "$CPP"; then
4553 if test "${ac_cv_prog_CPP+set}" = set; then
4554 echo $ECHO_N "(cached) $ECHO_C" >&6
4555 else
4556 # Double quotes because CPP needs to be expanded
4557 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4559 ac_preproc_ok=false
4560 for ac_c_preproc_warn_flag in '' yes
4562 # Use a header file that comes with gcc, so configuring glibc
4563 # with a fresh cross-compiler works.
4564 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4565 # <limits.h> exists even on freestanding compilers.
4566 # On the NeXT, cc -E runs the code through the compiler's parser,
4567 # not just through cpp. "Syntax error" is here to catch this case.
4568 cat >conftest.$ac_ext <<_ACEOF
4569 /* confdefs.h. */
4570 _ACEOF
4571 cat confdefs.h >>conftest.$ac_ext
4572 cat >>conftest.$ac_ext <<_ACEOF
4573 /* end confdefs.h. */
4574 #ifdef __STDC__
4575 # include <limits.h>
4576 #else
4577 # include <assert.h>
4578 #endif
4579 Syntax error
4580 _ACEOF
4581 if { (ac_try="$ac_cpp conftest.$ac_ext"
4582 case "(($ac_try" in
4583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4584 *) ac_try_echo=$ac_try;;
4585 esac
4586 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4587 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4588 ac_status=$?
4589 grep -v '^ *+' conftest.er1 >conftest.err
4590 rm -f conftest.er1
4591 cat conftest.err >&5
4592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4593 (exit $ac_status); } >/dev/null && {
4594 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4595 test ! -s conftest.err
4596 }; then
4598 else
4599 echo "$as_me: failed program was:" >&5
4600 sed 's/^/| /' conftest.$ac_ext >&5
4602 # Broken: fails on valid input.
4603 continue
4606 rm -f conftest.err conftest.$ac_ext
4608 # OK, works on sane cases. Now check whether nonexistent headers
4609 # can be detected and how.
4610 cat >conftest.$ac_ext <<_ACEOF
4611 /* confdefs.h. */
4612 _ACEOF
4613 cat confdefs.h >>conftest.$ac_ext
4614 cat >>conftest.$ac_ext <<_ACEOF
4615 /* end confdefs.h. */
4616 #include <ac_nonexistent.h>
4617 _ACEOF
4618 if { (ac_try="$ac_cpp conftest.$ac_ext"
4619 case "(($ac_try" in
4620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4621 *) ac_try_echo=$ac_try;;
4622 esac
4623 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4624 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4625 ac_status=$?
4626 grep -v '^ *+' conftest.er1 >conftest.err
4627 rm -f conftest.er1
4628 cat conftest.err >&5
4629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4630 (exit $ac_status); } >/dev/null && {
4631 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4632 test ! -s conftest.err
4633 }; then
4634 # Broken: success on invalid input.
4635 continue
4636 else
4637 echo "$as_me: failed program was:" >&5
4638 sed 's/^/| /' conftest.$ac_ext >&5
4640 # Passes both tests.
4641 ac_preproc_ok=:
4642 break
4645 rm -f conftest.err conftest.$ac_ext
4647 done
4648 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4649 rm -f conftest.err conftest.$ac_ext
4650 if $ac_preproc_ok; then
4651 break
4654 done
4655 ac_cv_prog_CPP=$CPP
4658 CPP=$ac_cv_prog_CPP
4659 else
4660 ac_cv_prog_CPP=$CPP
4662 { echo "$as_me:$LINENO: result: $CPP" >&5
4663 echo "${ECHO_T}$CPP" >&6; }
4664 ac_preproc_ok=false
4665 for ac_c_preproc_warn_flag in '' yes
4667 # Use a header file that comes with gcc, so configuring glibc
4668 # with a fresh cross-compiler works.
4669 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4670 # <limits.h> exists even on freestanding compilers.
4671 # On the NeXT, cc -E runs the code through the compiler's parser,
4672 # not just through cpp. "Syntax error" is here to catch this case.
4673 cat >conftest.$ac_ext <<_ACEOF
4674 /* confdefs.h. */
4675 _ACEOF
4676 cat confdefs.h >>conftest.$ac_ext
4677 cat >>conftest.$ac_ext <<_ACEOF
4678 /* end confdefs.h. */
4679 #ifdef __STDC__
4680 # include <limits.h>
4681 #else
4682 # include <assert.h>
4683 #endif
4684 Syntax error
4685 _ACEOF
4686 if { (ac_try="$ac_cpp conftest.$ac_ext"
4687 case "(($ac_try" in
4688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4689 *) ac_try_echo=$ac_try;;
4690 esac
4691 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4692 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4693 ac_status=$?
4694 grep -v '^ *+' conftest.er1 >conftest.err
4695 rm -f conftest.er1
4696 cat conftest.err >&5
4697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4698 (exit $ac_status); } >/dev/null && {
4699 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4700 test ! -s conftest.err
4701 }; then
4703 else
4704 echo "$as_me: failed program was:" >&5
4705 sed 's/^/| /' conftest.$ac_ext >&5
4707 # Broken: fails on valid input.
4708 continue
4711 rm -f conftest.err conftest.$ac_ext
4713 # OK, works on sane cases. Now check whether nonexistent headers
4714 # can be detected and how.
4715 cat >conftest.$ac_ext <<_ACEOF
4716 /* confdefs.h. */
4717 _ACEOF
4718 cat confdefs.h >>conftest.$ac_ext
4719 cat >>conftest.$ac_ext <<_ACEOF
4720 /* end confdefs.h. */
4721 #include <ac_nonexistent.h>
4722 _ACEOF
4723 if { (ac_try="$ac_cpp conftest.$ac_ext"
4724 case "(($ac_try" in
4725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4726 *) ac_try_echo=$ac_try;;
4727 esac
4728 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4729 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4730 ac_status=$?
4731 grep -v '^ *+' conftest.er1 >conftest.err
4732 rm -f conftest.er1
4733 cat conftest.err >&5
4734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4735 (exit $ac_status); } >/dev/null && {
4736 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4737 test ! -s conftest.err
4738 }; then
4739 # Broken: success on invalid input.
4740 continue
4741 else
4742 echo "$as_me: failed program was:" >&5
4743 sed 's/^/| /' conftest.$ac_ext >&5
4745 # Passes both tests.
4746 ac_preproc_ok=:
4747 break
4750 rm -f conftest.err conftest.$ac_ext
4752 done
4753 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4754 rm -f conftest.err conftest.$ac_ext
4755 if $ac_preproc_ok; then
4757 else
4758 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4759 See \`config.log' for more details." >&5
4760 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4761 See \`config.log' for more details." >&2;}
4762 { (exit 1); exit 1; }; }
4765 ac_ext=c
4766 ac_cpp='$CPP $CPPFLAGS'
4767 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4768 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4769 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4772 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4773 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4774 if test "${ac_cv_header_stdc+set}" = set; then
4775 echo $ECHO_N "(cached) $ECHO_C" >&6
4776 else
4777 cat >conftest.$ac_ext <<_ACEOF
4778 /* confdefs.h. */
4779 _ACEOF
4780 cat confdefs.h >>conftest.$ac_ext
4781 cat >>conftest.$ac_ext <<_ACEOF
4782 /* end confdefs.h. */
4783 #include <stdlib.h>
4784 #include <stdarg.h>
4785 #include <string.h>
4786 #include <float.h>
4789 main ()
4793 return 0;
4795 _ACEOF
4796 rm -f conftest.$ac_objext
4797 if { (ac_try="$ac_compile"
4798 case "(($ac_try" in
4799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4800 *) ac_try_echo=$ac_try;;
4801 esac
4802 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4803 (eval "$ac_compile") 2>conftest.er1
4804 ac_status=$?
4805 grep -v '^ *+' conftest.er1 >conftest.err
4806 rm -f conftest.er1
4807 cat conftest.err >&5
4808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4809 (exit $ac_status); } && {
4810 test -z "$ac_c_werror_flag" ||
4811 test ! -s conftest.err
4812 } && test -s conftest.$ac_objext; then
4813 ac_cv_header_stdc=yes
4814 else
4815 echo "$as_me: failed program was:" >&5
4816 sed 's/^/| /' conftest.$ac_ext >&5
4818 ac_cv_header_stdc=no
4821 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4823 if test $ac_cv_header_stdc = yes; then
4824 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4825 cat >conftest.$ac_ext <<_ACEOF
4826 /* confdefs.h. */
4827 _ACEOF
4828 cat confdefs.h >>conftest.$ac_ext
4829 cat >>conftest.$ac_ext <<_ACEOF
4830 /* end confdefs.h. */
4831 #include <string.h>
4833 _ACEOF
4834 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4835 $EGREP "memchr" >/dev/null 2>&1; then
4837 else
4838 ac_cv_header_stdc=no
4840 rm -f conftest*
4844 if test $ac_cv_header_stdc = yes; then
4845 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4846 cat >conftest.$ac_ext <<_ACEOF
4847 /* confdefs.h. */
4848 _ACEOF
4849 cat confdefs.h >>conftest.$ac_ext
4850 cat >>conftest.$ac_ext <<_ACEOF
4851 /* end confdefs.h. */
4852 #include <stdlib.h>
4854 _ACEOF
4855 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4856 $EGREP "free" >/dev/null 2>&1; then
4858 else
4859 ac_cv_header_stdc=no
4861 rm -f conftest*
4865 if test $ac_cv_header_stdc = yes; then
4866 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4867 if test "$cross_compiling" = yes; then
4869 else
4870 cat >conftest.$ac_ext <<_ACEOF
4871 /* confdefs.h. */
4872 _ACEOF
4873 cat confdefs.h >>conftest.$ac_ext
4874 cat >>conftest.$ac_ext <<_ACEOF
4875 /* end confdefs.h. */
4876 #include <ctype.h>
4877 #include <stdlib.h>
4878 #if ((' ' & 0x0FF) == 0x020)
4879 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4880 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4881 #else
4882 # define ISLOWER(c) \
4883 (('a' <= (c) && (c) <= 'i') \
4884 || ('j' <= (c) && (c) <= 'r') \
4885 || ('s' <= (c) && (c) <= 'z'))
4886 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4887 #endif
4889 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4891 main ()
4893 int i;
4894 for (i = 0; i < 256; i++)
4895 if (XOR (islower (i), ISLOWER (i))
4896 || toupper (i) != TOUPPER (i))
4897 return 2;
4898 return 0;
4900 _ACEOF
4901 rm -f conftest$ac_exeext
4902 if { (ac_try="$ac_link"
4903 case "(($ac_try" in
4904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4905 *) ac_try_echo=$ac_try;;
4906 esac
4907 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4908 (eval "$ac_link") 2>&5
4909 ac_status=$?
4910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4911 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4912 { (case "(($ac_try" in
4913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4914 *) ac_try_echo=$ac_try;;
4915 esac
4916 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4917 (eval "$ac_try") 2>&5
4918 ac_status=$?
4919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4920 (exit $ac_status); }; }; then
4922 else
4923 echo "$as_me: program exited with status $ac_status" >&5
4924 echo "$as_me: failed program was:" >&5
4925 sed 's/^/| /' conftest.$ac_ext >&5
4927 ( exit $ac_status )
4928 ac_cv_header_stdc=no
4930 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4936 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4937 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4938 if test $ac_cv_header_stdc = yes; then
4940 cat >>confdefs.h <<\_ACEOF
4941 #define STDC_HEADERS 1
4942 _ACEOF
4946 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4956 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4957 inttypes.h stdint.h unistd.h
4959 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4960 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4961 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4962 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4963 echo $ECHO_N "(cached) $ECHO_C" >&6
4964 else
4965 cat >conftest.$ac_ext <<_ACEOF
4966 /* confdefs.h. */
4967 _ACEOF
4968 cat confdefs.h >>conftest.$ac_ext
4969 cat >>conftest.$ac_ext <<_ACEOF
4970 /* end confdefs.h. */
4971 $ac_includes_default
4973 #include <$ac_header>
4974 _ACEOF
4975 rm -f conftest.$ac_objext
4976 if { (ac_try="$ac_compile"
4977 case "(($ac_try" in
4978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4979 *) ac_try_echo=$ac_try;;
4980 esac
4981 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4982 (eval "$ac_compile") 2>conftest.er1
4983 ac_status=$?
4984 grep -v '^ *+' conftest.er1 >conftest.err
4985 rm -f conftest.er1
4986 cat conftest.err >&5
4987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4988 (exit $ac_status); } && {
4989 test -z "$ac_c_werror_flag" ||
4990 test ! -s conftest.err
4991 } && test -s conftest.$ac_objext; then
4992 eval "$as_ac_Header=yes"
4993 else
4994 echo "$as_me: failed program was:" >&5
4995 sed 's/^/| /' conftest.$ac_ext >&5
4997 eval "$as_ac_Header=no"
5000 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5002 ac_res=`eval echo '${'$as_ac_Header'}'`
5003 { echo "$as_me:$LINENO: result: $ac_res" >&5
5004 echo "${ECHO_T}$ac_res" >&6; }
5005 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5006 cat >>confdefs.h <<_ACEOF
5007 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5008 _ACEOF
5012 done
5016 for ac_header in dlfcn.h
5018 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5019 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5020 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5021 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5022 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5023 echo $ECHO_N "(cached) $ECHO_C" >&6
5025 ac_res=`eval echo '${'$as_ac_Header'}'`
5026 { echo "$as_me:$LINENO: result: $ac_res" >&5
5027 echo "${ECHO_T}$ac_res" >&6; }
5028 else
5029 # Is the header compilable?
5030 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5031 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5032 cat >conftest.$ac_ext <<_ACEOF
5033 /* confdefs.h. */
5034 _ACEOF
5035 cat confdefs.h >>conftest.$ac_ext
5036 cat >>conftest.$ac_ext <<_ACEOF
5037 /* end confdefs.h. */
5038 $ac_includes_default
5039 #include <$ac_header>
5040 _ACEOF
5041 rm -f conftest.$ac_objext
5042 if { (ac_try="$ac_compile"
5043 case "(($ac_try" in
5044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5045 *) ac_try_echo=$ac_try;;
5046 esac
5047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5048 (eval "$ac_compile") 2>conftest.er1
5049 ac_status=$?
5050 grep -v '^ *+' conftest.er1 >conftest.err
5051 rm -f conftest.er1
5052 cat conftest.err >&5
5053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5054 (exit $ac_status); } && {
5055 test -z "$ac_c_werror_flag" ||
5056 test ! -s conftest.err
5057 } && test -s conftest.$ac_objext; then
5058 ac_header_compiler=yes
5059 else
5060 echo "$as_me: failed program was:" >&5
5061 sed 's/^/| /' conftest.$ac_ext >&5
5063 ac_header_compiler=no
5066 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5067 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5068 echo "${ECHO_T}$ac_header_compiler" >&6; }
5070 # Is the header present?
5071 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5072 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5073 cat >conftest.$ac_ext <<_ACEOF
5074 /* confdefs.h. */
5075 _ACEOF
5076 cat confdefs.h >>conftest.$ac_ext
5077 cat >>conftest.$ac_ext <<_ACEOF
5078 /* end confdefs.h. */
5079 #include <$ac_header>
5080 _ACEOF
5081 if { (ac_try="$ac_cpp conftest.$ac_ext"
5082 case "(($ac_try" in
5083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5084 *) ac_try_echo=$ac_try;;
5085 esac
5086 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5087 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5088 ac_status=$?
5089 grep -v '^ *+' conftest.er1 >conftest.err
5090 rm -f conftest.er1
5091 cat conftest.err >&5
5092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5093 (exit $ac_status); } >/dev/null && {
5094 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5095 test ! -s conftest.err
5096 }; then
5097 ac_header_preproc=yes
5098 else
5099 echo "$as_me: failed program was:" >&5
5100 sed 's/^/| /' conftest.$ac_ext >&5
5102 ac_header_preproc=no
5105 rm -f conftest.err conftest.$ac_ext
5106 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5107 echo "${ECHO_T}$ac_header_preproc" >&6; }
5109 # So? What about this header?
5110 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5111 yes:no: )
5112 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5113 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5114 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5115 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5116 ac_header_preproc=yes
5118 no:yes:* )
5119 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5120 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5121 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5122 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5123 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5124 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5125 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5126 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5127 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5128 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5129 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5130 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5133 esac
5134 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5135 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5136 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5137 echo $ECHO_N "(cached) $ECHO_C" >&6
5138 else
5139 eval "$as_ac_Header=\$ac_header_preproc"
5141 ac_res=`eval echo '${'$as_ac_Header'}'`
5142 { echo "$as_me:$LINENO: result: $ac_res" >&5
5143 echo "${ECHO_T}$ac_res" >&6; }
5146 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5147 cat >>confdefs.h <<_ACEOF
5148 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5149 _ACEOF
5153 done
5155 ac_ext=cpp
5156 ac_cpp='$CXXCPP $CPPFLAGS'
5157 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5158 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5159 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5160 if test -z "$CXX"; then
5161 if test -n "$CCC"; then
5162 CXX=$CCC
5163 else
5164 if test -n "$ac_tool_prefix"; then
5165 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5167 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5168 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5169 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5170 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5171 if test "${ac_cv_prog_CXX+set}" = set; then
5172 echo $ECHO_N "(cached) $ECHO_C" >&6
5173 else
5174 if test -n "$CXX"; then
5175 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5176 else
5177 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5178 for as_dir in $PATH
5180 IFS=$as_save_IFS
5181 test -z "$as_dir" && as_dir=.
5182 for ac_exec_ext in '' $ac_executable_extensions; do
5183 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5184 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5185 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5186 break 2
5188 done
5189 done
5190 IFS=$as_save_IFS
5194 CXX=$ac_cv_prog_CXX
5195 if test -n "$CXX"; then
5196 { echo "$as_me:$LINENO: result: $CXX" >&5
5197 echo "${ECHO_T}$CXX" >&6; }
5198 else
5199 { echo "$as_me:$LINENO: result: no" >&5
5200 echo "${ECHO_T}no" >&6; }
5204 test -n "$CXX" && break
5205 done
5207 if test -z "$CXX"; then
5208 ac_ct_CXX=$CXX
5209 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5211 # Extract the first word of "$ac_prog", so it can be a program name with args.
5212 set dummy $ac_prog; ac_word=$2
5213 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5214 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5215 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5216 echo $ECHO_N "(cached) $ECHO_C" >&6
5217 else
5218 if test -n "$ac_ct_CXX"; then
5219 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5220 else
5221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5222 for as_dir in $PATH
5224 IFS=$as_save_IFS
5225 test -z "$as_dir" && as_dir=.
5226 for ac_exec_ext in '' $ac_executable_extensions; do
5227 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5228 ac_cv_prog_ac_ct_CXX="$ac_prog"
5229 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5230 break 2
5232 done
5233 done
5234 IFS=$as_save_IFS
5238 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5239 if test -n "$ac_ct_CXX"; then
5240 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5241 echo "${ECHO_T}$ac_ct_CXX" >&6; }
5242 else
5243 { echo "$as_me:$LINENO: result: no" >&5
5244 echo "${ECHO_T}no" >&6; }
5248 test -n "$ac_ct_CXX" && break
5249 done
5251 if test "x$ac_ct_CXX" = x; then
5252 CXX="g++"
5253 else
5254 case $cross_compiling:$ac_tool_warned in
5255 yes:)
5256 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5257 whose name does not start with the host triplet. If you think this
5258 configuration is useful to you, please write to autoconf@gnu.org." >&5
5259 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5260 whose name does not start with the host triplet. If you think this
5261 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5262 ac_tool_warned=yes ;;
5263 esac
5264 CXX=$ac_ct_CXX
5270 # Provide some information about the compiler.
5271 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
5272 ac_compiler=`set X $ac_compile; echo $2`
5273 { (ac_try="$ac_compiler --version >&5"
5274 case "(($ac_try" in
5275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5276 *) ac_try_echo=$ac_try;;
5277 esac
5278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5279 (eval "$ac_compiler --version >&5") 2>&5
5280 ac_status=$?
5281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5282 (exit $ac_status); }
5283 { (ac_try="$ac_compiler -v >&5"
5284 case "(($ac_try" in
5285 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5286 *) ac_try_echo=$ac_try;;
5287 esac
5288 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5289 (eval "$ac_compiler -v >&5") 2>&5
5290 ac_status=$?
5291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5292 (exit $ac_status); }
5293 { (ac_try="$ac_compiler -V >&5"
5294 case "(($ac_try" in
5295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5296 *) ac_try_echo=$ac_try;;
5297 esac
5298 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5299 (eval "$ac_compiler -V >&5") 2>&5
5300 ac_status=$?
5301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5302 (exit $ac_status); }
5304 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5305 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
5306 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5307 echo $ECHO_N "(cached) $ECHO_C" >&6
5308 else
5309 cat >conftest.$ac_ext <<_ACEOF
5310 /* confdefs.h. */
5311 _ACEOF
5312 cat confdefs.h >>conftest.$ac_ext
5313 cat >>conftest.$ac_ext <<_ACEOF
5314 /* end confdefs.h. */
5317 main ()
5319 #ifndef __GNUC__
5320 choke me
5321 #endif
5324 return 0;
5326 _ACEOF
5327 rm -f conftest.$ac_objext
5328 if { (ac_try="$ac_compile"
5329 case "(($ac_try" in
5330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5331 *) ac_try_echo=$ac_try;;
5332 esac
5333 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5334 (eval "$ac_compile") 2>conftest.er1
5335 ac_status=$?
5336 grep -v '^ *+' conftest.er1 >conftest.err
5337 rm -f conftest.er1
5338 cat conftest.err >&5
5339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5340 (exit $ac_status); } && {
5341 test -z "$ac_cxx_werror_flag" ||
5342 test ! -s conftest.err
5343 } && test -s conftest.$ac_objext; then
5344 ac_compiler_gnu=yes
5345 else
5346 echo "$as_me: failed program was:" >&5
5347 sed 's/^/| /' conftest.$ac_ext >&5
5349 ac_compiler_gnu=no
5352 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5353 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5356 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5357 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
5358 GXX=`test $ac_compiler_gnu = yes && echo yes`
5359 ac_test_CXXFLAGS=${CXXFLAGS+set}
5360 ac_save_CXXFLAGS=$CXXFLAGS
5361 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5362 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
5363 if test "${ac_cv_prog_cxx_g+set}" = set; then
5364 echo $ECHO_N "(cached) $ECHO_C" >&6
5365 else
5366 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5367 ac_cxx_werror_flag=yes
5368 ac_cv_prog_cxx_g=no
5369 CXXFLAGS="-g"
5370 cat >conftest.$ac_ext <<_ACEOF
5371 /* confdefs.h. */
5372 _ACEOF
5373 cat confdefs.h >>conftest.$ac_ext
5374 cat >>conftest.$ac_ext <<_ACEOF
5375 /* end confdefs.h. */
5378 main ()
5382 return 0;
5384 _ACEOF
5385 rm -f conftest.$ac_objext
5386 if { (ac_try="$ac_compile"
5387 case "(($ac_try" in
5388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5389 *) ac_try_echo=$ac_try;;
5390 esac
5391 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5392 (eval "$ac_compile") 2>conftest.er1
5393 ac_status=$?
5394 grep -v '^ *+' conftest.er1 >conftest.err
5395 rm -f conftest.er1
5396 cat conftest.err >&5
5397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5398 (exit $ac_status); } && {
5399 test -z "$ac_cxx_werror_flag" ||
5400 test ! -s conftest.err
5401 } && test -s conftest.$ac_objext; then
5402 ac_cv_prog_cxx_g=yes
5403 else
5404 echo "$as_me: failed program was:" >&5
5405 sed 's/^/| /' conftest.$ac_ext >&5
5407 CXXFLAGS=""
5408 cat >conftest.$ac_ext <<_ACEOF
5409 /* confdefs.h. */
5410 _ACEOF
5411 cat confdefs.h >>conftest.$ac_ext
5412 cat >>conftest.$ac_ext <<_ACEOF
5413 /* end confdefs.h. */
5416 main ()
5420 return 0;
5422 _ACEOF
5423 rm -f conftest.$ac_objext
5424 if { (ac_try="$ac_compile"
5425 case "(($ac_try" in
5426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5427 *) ac_try_echo=$ac_try;;
5428 esac
5429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5430 (eval "$ac_compile") 2>conftest.er1
5431 ac_status=$?
5432 grep -v '^ *+' conftest.er1 >conftest.err
5433 rm -f conftest.er1
5434 cat conftest.err >&5
5435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5436 (exit $ac_status); } && {
5437 test -z "$ac_cxx_werror_flag" ||
5438 test ! -s conftest.err
5439 } && test -s conftest.$ac_objext; then
5441 else
5442 echo "$as_me: failed program was:" >&5
5443 sed 's/^/| /' conftest.$ac_ext >&5
5445 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5446 CXXFLAGS="-g"
5447 cat >conftest.$ac_ext <<_ACEOF
5448 /* confdefs.h. */
5449 _ACEOF
5450 cat confdefs.h >>conftest.$ac_ext
5451 cat >>conftest.$ac_ext <<_ACEOF
5452 /* end confdefs.h. */
5455 main ()
5459 return 0;
5461 _ACEOF
5462 rm -f conftest.$ac_objext
5463 if { (ac_try="$ac_compile"
5464 case "(($ac_try" in
5465 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5466 *) ac_try_echo=$ac_try;;
5467 esac
5468 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5469 (eval "$ac_compile") 2>conftest.er1
5470 ac_status=$?
5471 grep -v '^ *+' conftest.er1 >conftest.err
5472 rm -f conftest.er1
5473 cat conftest.err >&5
5474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5475 (exit $ac_status); } && {
5476 test -z "$ac_cxx_werror_flag" ||
5477 test ! -s conftest.err
5478 } && test -s conftest.$ac_objext; then
5479 ac_cv_prog_cxx_g=yes
5480 else
5481 echo "$as_me: failed program was:" >&5
5482 sed 's/^/| /' conftest.$ac_ext >&5
5487 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5490 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5493 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5494 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5496 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5497 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
5498 if test "$ac_test_CXXFLAGS" = set; then
5499 CXXFLAGS=$ac_save_CXXFLAGS
5500 elif test $ac_cv_prog_cxx_g = yes; then
5501 if test "$GXX" = yes; then
5502 CXXFLAGS="-g -O2"
5503 else
5504 CXXFLAGS="-g"
5506 else
5507 if test "$GXX" = yes; then
5508 CXXFLAGS="-O2"
5509 else
5510 CXXFLAGS=
5513 ac_ext=cpp
5514 ac_cpp='$CXXCPP $CPPFLAGS'
5515 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5516 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5517 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5519 depcc="$CXX" am_compiler_list=
5521 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5522 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
5523 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
5524 echo $ECHO_N "(cached) $ECHO_C" >&6
5525 else
5526 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5527 # We make a subdir and do the tests there. Otherwise we can end up
5528 # making bogus files that we don't know about and never remove. For
5529 # instance it was reported that on HP-UX the gcc test will end up
5530 # making a dummy file named `D' -- because `-MD' means `put the output
5531 # in D'.
5532 mkdir conftest.dir
5533 # Copy depcomp to subdir because otherwise we won't find it if we're
5534 # using a relative directory.
5535 cp "$am_depcomp" conftest.dir
5536 cd conftest.dir
5537 # We will build objects and dependencies in a subdirectory because
5538 # it helps to detect inapplicable dependency modes. For instance
5539 # both Tru64's cc and ICC support -MD to output dependencies as a
5540 # side effect of compilation, but ICC will put the dependencies in
5541 # the current directory while Tru64 will put them in the object
5542 # directory.
5543 mkdir sub
5545 am_cv_CXX_dependencies_compiler_type=none
5546 if test "$am_compiler_list" = ""; then
5547 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5549 for depmode in $am_compiler_list; do
5550 # Setup a source with many dependencies, because some compilers
5551 # like to wrap large dependency lists on column 80 (with \), and
5552 # we should not choose a depcomp mode which is confused by this.
5554 # We need to recreate these files for each test, as the compiler may
5555 # overwrite some of them when testing with obscure command lines.
5556 # This happens at least with the AIX C compiler.
5557 : > sub/conftest.c
5558 for i in 1 2 3 4 5 6; do
5559 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5560 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5561 # Solaris 8's {/usr,}/bin/sh.
5562 touch sub/conftst$i.h
5563 done
5564 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5566 case $depmode in
5567 nosideeffect)
5568 # after this tag, mechanisms are not by side-effect, so they'll
5569 # only be used when explicitly requested
5570 if test "x$enable_dependency_tracking" = xyes; then
5571 continue
5572 else
5573 break
5576 none) break ;;
5577 esac
5578 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5579 # mode. It turns out that the SunPro C++ compiler does not properly
5580 # handle `-M -o', and we need to detect this.
5581 if depmode=$depmode \
5582 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5583 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5584 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5585 >/dev/null 2>conftest.err &&
5586 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5587 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5588 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5589 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5590 # icc doesn't choke on unknown options, it will just issue warnings
5591 # or remarks (even with -Werror). So we grep stderr for any message
5592 # that says an option was ignored or not supported.
5593 # When given -MP, icc 7.0 and 7.1 complain thusly:
5594 # icc: Command line warning: ignoring option '-M'; no argument required
5595 # The diagnosis changed in icc 8.0:
5596 # icc: Command line remark: option '-MP' not supported
5597 if (grep 'ignoring option' conftest.err ||
5598 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5599 am_cv_CXX_dependencies_compiler_type=$depmode
5600 break
5603 done
5605 cd ..
5606 rm -rf conftest.dir
5607 else
5608 am_cv_CXX_dependencies_compiler_type=none
5612 { echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
5613 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
5614 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5617 test "x$enable_dependency_tracking" != xno \
5618 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5619 am__fastdepCXX_TRUE=
5620 am__fastdepCXX_FALSE='#'
5621 else
5622 am__fastdepCXX_TRUE='#'
5623 am__fastdepCXX_FALSE=
5629 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5630 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5631 (test "X$CXX" != "Xg++"))) ; then
5632 ac_ext=cpp
5633 ac_cpp='$CXXCPP $CPPFLAGS'
5634 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5635 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5636 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5637 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5638 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
5639 if test -z "$CXXCPP"; then
5640 if test "${ac_cv_prog_CXXCPP+set}" = set; then
5641 echo $ECHO_N "(cached) $ECHO_C" >&6
5642 else
5643 # Double quotes because CXXCPP needs to be expanded
5644 for CXXCPP in "$CXX -E" "/lib/cpp"
5646 ac_preproc_ok=false
5647 for ac_cxx_preproc_warn_flag in '' yes
5649 # Use a header file that comes with gcc, so configuring glibc
5650 # with a fresh cross-compiler works.
5651 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5652 # <limits.h> exists even on freestanding compilers.
5653 # On the NeXT, cc -E runs the code through the compiler's parser,
5654 # not just through cpp. "Syntax error" is here to catch this case.
5655 cat >conftest.$ac_ext <<_ACEOF
5656 /* confdefs.h. */
5657 _ACEOF
5658 cat confdefs.h >>conftest.$ac_ext
5659 cat >>conftest.$ac_ext <<_ACEOF
5660 /* end confdefs.h. */
5661 #ifdef __STDC__
5662 # include <limits.h>
5663 #else
5664 # include <assert.h>
5665 #endif
5666 Syntax error
5667 _ACEOF
5668 if { (ac_try="$ac_cpp conftest.$ac_ext"
5669 case "(($ac_try" in
5670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5671 *) ac_try_echo=$ac_try;;
5672 esac
5673 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5674 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5675 ac_status=$?
5676 grep -v '^ *+' conftest.er1 >conftest.err
5677 rm -f conftest.er1
5678 cat conftest.err >&5
5679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5680 (exit $ac_status); } >/dev/null && {
5681 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5682 test ! -s conftest.err
5683 }; then
5685 else
5686 echo "$as_me: failed program was:" >&5
5687 sed 's/^/| /' conftest.$ac_ext >&5
5689 # Broken: fails on valid input.
5690 continue
5693 rm -f conftest.err conftest.$ac_ext
5695 # OK, works on sane cases. Now check whether nonexistent headers
5696 # can be detected and how.
5697 cat >conftest.$ac_ext <<_ACEOF
5698 /* confdefs.h. */
5699 _ACEOF
5700 cat confdefs.h >>conftest.$ac_ext
5701 cat >>conftest.$ac_ext <<_ACEOF
5702 /* end confdefs.h. */
5703 #include <ac_nonexistent.h>
5704 _ACEOF
5705 if { (ac_try="$ac_cpp conftest.$ac_ext"
5706 case "(($ac_try" in
5707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5708 *) ac_try_echo=$ac_try;;
5709 esac
5710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5711 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5712 ac_status=$?
5713 grep -v '^ *+' conftest.er1 >conftest.err
5714 rm -f conftest.er1
5715 cat conftest.err >&5
5716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5717 (exit $ac_status); } >/dev/null && {
5718 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5719 test ! -s conftest.err
5720 }; then
5721 # Broken: success on invalid input.
5722 continue
5723 else
5724 echo "$as_me: failed program was:" >&5
5725 sed 's/^/| /' conftest.$ac_ext >&5
5727 # Passes both tests.
5728 ac_preproc_ok=:
5729 break
5732 rm -f conftest.err conftest.$ac_ext
5734 done
5735 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5736 rm -f conftest.err conftest.$ac_ext
5737 if $ac_preproc_ok; then
5738 break
5741 done
5742 ac_cv_prog_CXXCPP=$CXXCPP
5745 CXXCPP=$ac_cv_prog_CXXCPP
5746 else
5747 ac_cv_prog_CXXCPP=$CXXCPP
5749 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
5750 echo "${ECHO_T}$CXXCPP" >&6; }
5751 ac_preproc_ok=false
5752 for ac_cxx_preproc_warn_flag in '' yes
5754 # Use a header file that comes with gcc, so configuring glibc
5755 # with a fresh cross-compiler works.
5756 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5757 # <limits.h> exists even on freestanding compilers.
5758 # On the NeXT, cc -E runs the code through the compiler's parser,
5759 # not just through cpp. "Syntax error" is here to catch this case.
5760 cat >conftest.$ac_ext <<_ACEOF
5761 /* confdefs.h. */
5762 _ACEOF
5763 cat confdefs.h >>conftest.$ac_ext
5764 cat >>conftest.$ac_ext <<_ACEOF
5765 /* end confdefs.h. */
5766 #ifdef __STDC__
5767 # include <limits.h>
5768 #else
5769 # include <assert.h>
5770 #endif
5771 Syntax error
5772 _ACEOF
5773 if { (ac_try="$ac_cpp conftest.$ac_ext"
5774 case "(($ac_try" in
5775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5776 *) ac_try_echo=$ac_try;;
5777 esac
5778 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5779 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5780 ac_status=$?
5781 grep -v '^ *+' conftest.er1 >conftest.err
5782 rm -f conftest.er1
5783 cat conftest.err >&5
5784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5785 (exit $ac_status); } >/dev/null && {
5786 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5787 test ! -s conftest.err
5788 }; then
5790 else
5791 echo "$as_me: failed program was:" >&5
5792 sed 's/^/| /' conftest.$ac_ext >&5
5794 # Broken: fails on valid input.
5795 continue
5798 rm -f conftest.err conftest.$ac_ext
5800 # OK, works on sane cases. Now check whether nonexistent headers
5801 # can be detected and how.
5802 cat >conftest.$ac_ext <<_ACEOF
5803 /* confdefs.h. */
5804 _ACEOF
5805 cat confdefs.h >>conftest.$ac_ext
5806 cat >>conftest.$ac_ext <<_ACEOF
5807 /* end confdefs.h. */
5808 #include <ac_nonexistent.h>
5809 _ACEOF
5810 if { (ac_try="$ac_cpp conftest.$ac_ext"
5811 case "(($ac_try" in
5812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5813 *) ac_try_echo=$ac_try;;
5814 esac
5815 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5816 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5817 ac_status=$?
5818 grep -v '^ *+' conftest.er1 >conftest.err
5819 rm -f conftest.er1
5820 cat conftest.err >&5
5821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5822 (exit $ac_status); } >/dev/null && {
5823 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5824 test ! -s conftest.err
5825 }; then
5826 # Broken: success on invalid input.
5827 continue
5828 else
5829 echo "$as_me: failed program was:" >&5
5830 sed 's/^/| /' conftest.$ac_ext >&5
5832 # Passes both tests.
5833 ac_preproc_ok=:
5834 break
5837 rm -f conftest.err conftest.$ac_ext
5839 done
5840 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5841 rm -f conftest.err conftest.$ac_ext
5842 if $ac_preproc_ok; then
5844 else
5845 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5846 See \`config.log' for more details." >&5
5847 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5848 See \`config.log' for more details." >&2;}
5849 { (exit 1); exit 1; }; }
5852 ac_ext=cpp
5853 ac_cpp='$CXXCPP $CPPFLAGS'
5854 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5855 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5856 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5861 ac_ext=f
5862 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5863 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5864 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5865 if test -n "$ac_tool_prefix"; then
5866 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
5868 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5869 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5870 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5871 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5872 if test "${ac_cv_prog_F77+set}" = set; then
5873 echo $ECHO_N "(cached) $ECHO_C" >&6
5874 else
5875 if test -n "$F77"; then
5876 ac_cv_prog_F77="$F77" # Let the user override the test.
5877 else
5878 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5879 for as_dir in $PATH
5881 IFS=$as_save_IFS
5882 test -z "$as_dir" && as_dir=.
5883 for ac_exec_ext in '' $ac_executable_extensions; do
5884 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5885 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5886 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5887 break 2
5889 done
5890 done
5891 IFS=$as_save_IFS
5895 F77=$ac_cv_prog_F77
5896 if test -n "$F77"; then
5897 { echo "$as_me:$LINENO: result: $F77" >&5
5898 echo "${ECHO_T}$F77" >&6; }
5899 else
5900 { echo "$as_me:$LINENO: result: no" >&5
5901 echo "${ECHO_T}no" >&6; }
5905 test -n "$F77" && break
5906 done
5908 if test -z "$F77"; then
5909 ac_ct_F77=$F77
5910 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
5912 # Extract the first word of "$ac_prog", so it can be a program name with args.
5913 set dummy $ac_prog; ac_word=$2
5914 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5915 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5916 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5917 echo $ECHO_N "(cached) $ECHO_C" >&6
5918 else
5919 if test -n "$ac_ct_F77"; then
5920 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5921 else
5922 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5923 for as_dir in $PATH
5925 IFS=$as_save_IFS
5926 test -z "$as_dir" && as_dir=.
5927 for ac_exec_ext in '' $ac_executable_extensions; do
5928 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5929 ac_cv_prog_ac_ct_F77="$ac_prog"
5930 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5931 break 2
5933 done
5934 done
5935 IFS=$as_save_IFS
5939 ac_ct_F77=$ac_cv_prog_ac_ct_F77
5940 if test -n "$ac_ct_F77"; then
5941 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5942 echo "${ECHO_T}$ac_ct_F77" >&6; }
5943 else
5944 { echo "$as_me:$LINENO: result: no" >&5
5945 echo "${ECHO_T}no" >&6; }
5949 test -n "$ac_ct_F77" && break
5950 done
5952 if test "x$ac_ct_F77" = x; then
5953 F77=""
5954 else
5955 case $cross_compiling:$ac_tool_warned in
5956 yes:)
5957 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5958 whose name does not start with the host triplet. If you think this
5959 configuration is useful to you, please write to autoconf@gnu.org." >&5
5960 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5961 whose name does not start with the host triplet. If you think this
5962 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5963 ac_tool_warned=yes ;;
5964 esac
5965 F77=$ac_ct_F77
5970 # Provide some information about the compiler.
5971 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
5972 ac_compiler=`set X $ac_compile; echo $2`
5973 { (ac_try="$ac_compiler --version >&5"
5974 case "(($ac_try" in
5975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5976 *) ac_try_echo=$ac_try;;
5977 esac
5978 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5979 (eval "$ac_compiler --version >&5") 2>&5
5980 ac_status=$?
5981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5982 (exit $ac_status); }
5983 { (ac_try="$ac_compiler -v >&5"
5984 case "(($ac_try" in
5985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5986 *) ac_try_echo=$ac_try;;
5987 esac
5988 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5989 (eval "$ac_compiler -v >&5") 2>&5
5990 ac_status=$?
5991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5992 (exit $ac_status); }
5993 { (ac_try="$ac_compiler -V >&5"
5994 case "(($ac_try" in
5995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5996 *) ac_try_echo=$ac_try;;
5997 esac
5998 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5999 (eval "$ac_compiler -V >&5") 2>&5
6000 ac_status=$?
6001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6002 (exit $ac_status); }
6003 rm -f a.out
6005 # If we don't use `.F' as extension, the preprocessor is not run on the
6006 # input file. (Note that this only needs to work for GNU compilers.)
6007 ac_save_ext=$ac_ext
6008 ac_ext=F
6009 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
6010 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
6011 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
6012 echo $ECHO_N "(cached) $ECHO_C" >&6
6013 else
6014 cat >conftest.$ac_ext <<_ACEOF
6015 program main
6016 #ifndef __GNUC__
6017 choke me
6018 #endif
6021 _ACEOF
6022 rm -f conftest.$ac_objext
6023 if { (ac_try="$ac_compile"
6024 case "(($ac_try" in
6025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6026 *) ac_try_echo=$ac_try;;
6027 esac
6028 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6029 (eval "$ac_compile") 2>conftest.er1
6030 ac_status=$?
6031 grep -v '^ *+' conftest.er1 >conftest.err
6032 rm -f conftest.er1
6033 cat conftest.err >&5
6034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6035 (exit $ac_status); } && {
6036 test -z "$ac_f77_werror_flag" ||
6037 test ! -s conftest.err
6038 } && test -s conftest.$ac_objext; then
6039 ac_compiler_gnu=yes
6040 else
6041 echo "$as_me: failed program was:" >&5
6042 sed 's/^/| /' conftest.$ac_ext >&5
6044 ac_compiler_gnu=no
6047 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6048 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6051 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
6052 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
6053 ac_ext=$ac_save_ext
6054 ac_test_FFLAGS=${FFLAGS+set}
6055 ac_save_FFLAGS=$FFLAGS
6056 FFLAGS=
6057 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
6058 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
6059 if test "${ac_cv_prog_f77_g+set}" = set; then
6060 echo $ECHO_N "(cached) $ECHO_C" >&6
6061 else
6062 FFLAGS=-g
6063 cat >conftest.$ac_ext <<_ACEOF
6064 program main
6067 _ACEOF
6068 rm -f conftest.$ac_objext
6069 if { (ac_try="$ac_compile"
6070 case "(($ac_try" in
6071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6072 *) ac_try_echo=$ac_try;;
6073 esac
6074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6075 (eval "$ac_compile") 2>conftest.er1
6076 ac_status=$?
6077 grep -v '^ *+' conftest.er1 >conftest.err
6078 rm -f conftest.er1
6079 cat conftest.err >&5
6080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6081 (exit $ac_status); } && {
6082 test -z "$ac_f77_werror_flag" ||
6083 test ! -s conftest.err
6084 } && test -s conftest.$ac_objext; then
6085 ac_cv_prog_f77_g=yes
6086 else
6087 echo "$as_me: failed program was:" >&5
6088 sed 's/^/| /' conftest.$ac_ext >&5
6090 ac_cv_prog_f77_g=no
6093 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6096 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6097 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
6098 if test "$ac_test_FFLAGS" = set; then
6099 FFLAGS=$ac_save_FFLAGS
6100 elif test $ac_cv_prog_f77_g = yes; then
6101 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6102 FFLAGS="-g -O2"
6103 else
6104 FFLAGS="-g"
6106 else
6107 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6108 FFLAGS="-O2"
6109 else
6110 FFLAGS=
6114 G77=`test $ac_compiler_gnu = yes && echo yes`
6115 ac_ext=c
6116 ac_cpp='$CPP $CPPFLAGS'
6117 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6118 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6119 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6123 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6124 # find the maximum length of command line arguments
6125 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6126 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
6127 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6128 echo $ECHO_N "(cached) $ECHO_C" >&6
6129 else
6131 teststring="ABCD"
6133 case $build_os in
6134 msdosdjgpp*)
6135 # On DJGPP, this test can blow up pretty badly due to problems in libc
6136 # (any single argument exceeding 2000 bytes causes a buffer overrun
6137 # during glob expansion). Even if it were fixed, the result of this
6138 # check would be larger than it should be.
6139 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6142 gnu*)
6143 # Under GNU Hurd, this test is not required because there is
6144 # no limit to the length of command line arguments.
6145 # Libtool will interpret -1 as no limit whatsoever
6146 lt_cv_sys_max_cmd_len=-1;
6149 cygwin* | mingw*)
6150 # On Win9x/ME, this test blows up -- it succeeds, but takes
6151 # about 5 minutes as the teststring grows exponentially.
6152 # Worse, since 9x/ME are not pre-emptively multitasking,
6153 # you end up with a "frozen" computer, even though with patience
6154 # the test eventually succeeds (with a max line length of 256k).
6155 # Instead, let's just punt: use the minimum linelength reported by
6156 # all of the supported platforms: 8192 (on NT/2K/XP).
6157 lt_cv_sys_max_cmd_len=8192;
6160 amigaos*)
6161 # On AmigaOS with pdksh, this test takes hours, literally.
6162 # So we just punt and use a minimum line length of 8192.
6163 lt_cv_sys_max_cmd_len=8192;
6166 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6167 # This has been around since 386BSD, at least. Likely further.
6168 if test -x /sbin/sysctl; then
6169 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6170 elif test -x /usr/sbin/sysctl; then
6171 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6172 else
6173 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6175 # And add a safety zone
6176 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6177 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6180 interix*)
6181 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6182 lt_cv_sys_max_cmd_len=196608
6185 osf*)
6186 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6187 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6188 # nice to cause kernel panics so lets avoid the loop below.
6189 # First set a reasonable default.
6190 lt_cv_sys_max_cmd_len=16384
6192 if test -x /sbin/sysconfig; then
6193 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6194 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6195 esac
6198 sco3.2v5*)
6199 lt_cv_sys_max_cmd_len=102400
6201 sysv5* | sco5v6* | sysv4.2uw2*)
6202 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6203 if test -n "$kargmax"; then
6204 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6205 else
6206 lt_cv_sys_max_cmd_len=32768
6210 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6211 if test -n "$lt_cv_sys_max_cmd_len"; then
6212 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6213 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6214 else
6215 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6216 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6217 = "XX$teststring") >/dev/null 2>&1 &&
6218 new_result=`expr "X$teststring" : ".*" 2>&1` &&
6219 lt_cv_sys_max_cmd_len=$new_result &&
6220 test $i != 17 # 1/2 MB should be enough
6222 i=`expr $i + 1`
6223 teststring=$teststring$teststring
6224 done
6225 teststring=
6226 # Add a significant safety factor because C++ compilers can tack on massive
6227 # amounts of additional arguments before passing them to the linker.
6228 # It appears as though 1/2 is a usable value.
6229 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6232 esac
6236 if test -n $lt_cv_sys_max_cmd_len ; then
6237 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6238 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
6239 else
6240 { echo "$as_me:$LINENO: result: none" >&5
6241 echo "${ECHO_T}none" >&6; }
6248 # Check for command to grab the raw symbol name followed by C symbol from nm.
6249 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6250 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
6251 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6252 echo $ECHO_N "(cached) $ECHO_C" >&6
6253 else
6255 # These are sane defaults that work on at least a few old systems.
6256 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6258 # Character class describing NM global symbol codes.
6259 symcode='[BCDEGRST]'
6261 # Regexp to match symbols that can be accessed directly from C.
6262 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6264 # Transform an extracted symbol line into a proper C declaration
6265 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6267 # Transform an extracted symbol line into symbol name and symbol address
6268 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'"
6270 # Define system-specific variables.
6271 case $host_os in
6272 aix*)
6273 symcode='[BCDT]'
6275 cygwin* | mingw* | pw32*)
6276 symcode='[ABCDGISTW]'
6278 hpux*) # Its linker distinguishes data from code symbols
6279 if test "$host_cpu" = ia64; then
6280 symcode='[ABCDEGRST]'
6282 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6283 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'"
6285 linux* | k*bsd*-gnu)
6286 if test "$host_cpu" = ia64; then
6287 symcode='[ABCDGIRSTW]'
6288 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6289 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'"
6292 irix* | nonstopux*)
6293 symcode='[BCDEGRST]'
6295 osf*)
6296 symcode='[BCDEGQRST]'
6298 solaris*)
6299 symcode='[BDRT]'
6301 sco3.2v5*)
6302 symcode='[DT]'
6304 sysv4.2uw2*)
6305 symcode='[DT]'
6307 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6308 symcode='[ABDT]'
6310 sysv4)
6311 symcode='[DFNSTU]'
6313 esac
6315 # Handle CRLF in mingw tool chain
6316 opt_cr=
6317 case $build_os in
6318 mingw*)
6319 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6321 esac
6323 # If we're using GNU nm, then use its standard symbol codes.
6324 case `$NM -V 2>&1` in
6325 *GNU* | *'with BFD'*)
6326 symcode='[ABCDGIRSTW]' ;;
6327 esac
6329 # Try without a prefix undercore, then with it.
6330 for ac_symprfx in "" "_"; do
6332 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6333 symxfrm="\\1 $ac_symprfx\\2 \\2"
6335 # Write the raw and C identifiers.
6336 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6338 # Check to see that the pipe works correctly.
6339 pipe_works=no
6341 rm -f conftest*
6342 cat > conftest.$ac_ext <<EOF
6343 #ifdef __cplusplus
6344 extern "C" {
6345 #endif
6346 char nm_test_var;
6347 void nm_test_func(){}
6348 #ifdef __cplusplus
6350 #endif
6351 int main(){nm_test_var='a';nm_test_func();return(0);}
6354 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6355 (eval $ac_compile) 2>&5
6356 ac_status=$?
6357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6358 (exit $ac_status); }; then
6359 # Now try to grab the symbols.
6360 nlist=conftest.nm
6361 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6362 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6363 ac_status=$?
6364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6365 (exit $ac_status); } && test -s "$nlist"; then
6366 # Try sorting and uniquifying the output.
6367 if sort "$nlist" | uniq > "$nlist"T; then
6368 mv -f "$nlist"T "$nlist"
6369 else
6370 rm -f "$nlist"T
6373 # Make sure that we snagged all the symbols we need.
6374 if grep ' nm_test_var$' "$nlist" >/dev/null; then
6375 if grep ' nm_test_func$' "$nlist" >/dev/null; then
6376 cat <<EOF > conftest.$ac_ext
6377 #ifdef __cplusplus
6378 extern "C" {
6379 #endif
6382 # Now generate the symbol file.
6383 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6385 cat <<EOF >> conftest.$ac_ext
6386 #if defined (__STDC__) && __STDC__
6387 # define lt_ptr_t void *
6388 #else
6389 # define lt_ptr_t char *
6390 # define const
6391 #endif
6393 /* The mapping between symbol names and symbols. */
6394 const struct {
6395 const char *name;
6396 lt_ptr_t address;
6398 lt_preloaded_symbols[] =
6401 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6402 cat <<\EOF >> conftest.$ac_ext
6403 {0, (lt_ptr_t) 0}
6406 #ifdef __cplusplus
6408 #endif
6410 # Now try linking the two files.
6411 mv conftest.$ac_objext conftstm.$ac_objext
6412 lt_save_LIBS="$LIBS"
6413 lt_save_CFLAGS="$CFLAGS"
6414 LIBS="conftstm.$ac_objext"
6415 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6416 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6417 (eval $ac_link) 2>&5
6418 ac_status=$?
6419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6420 (exit $ac_status); } && test -s conftest${ac_exeext}; then
6421 pipe_works=yes
6423 LIBS="$lt_save_LIBS"
6424 CFLAGS="$lt_save_CFLAGS"
6425 else
6426 echo "cannot find nm_test_func in $nlist" >&5
6428 else
6429 echo "cannot find nm_test_var in $nlist" >&5
6431 else
6432 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6434 else
6435 echo "$progname: failed program was:" >&5
6436 cat conftest.$ac_ext >&5
6438 rm -rf conftest* conftst*
6440 # Do not use the global_symbol_pipe unless it works.
6441 if test "$pipe_works" = yes; then
6442 break
6443 else
6444 lt_cv_sys_global_symbol_pipe=
6446 done
6450 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6451 lt_cv_sys_global_symbol_to_cdecl=
6453 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6454 { echo "$as_me:$LINENO: result: failed" >&5
6455 echo "${ECHO_T}failed" >&6; }
6456 else
6457 { echo "$as_me:$LINENO: result: ok" >&5
6458 echo "${ECHO_T}ok" >&6; }
6461 { echo "$as_me:$LINENO: checking for objdir" >&5
6462 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
6463 if test "${lt_cv_objdir+set}" = set; then
6464 echo $ECHO_N "(cached) $ECHO_C" >&6
6465 else
6466 rm -f .libs 2>/dev/null
6467 mkdir .libs 2>/dev/null
6468 if test -d .libs; then
6469 lt_cv_objdir=.libs
6470 else
6471 # MS-DOS does not allow filenames that begin with a dot.
6472 lt_cv_objdir=_libs
6474 rmdir .libs 2>/dev/null
6476 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6477 echo "${ECHO_T}$lt_cv_objdir" >&6; }
6478 objdir=$lt_cv_objdir
6484 case $host_os in
6485 aix3*)
6486 # AIX sometimes has problems with the GCC collect2 program. For some
6487 # reason, if we set the COLLECT_NAMES environment variable, the problems
6488 # vanish in a puff of smoke.
6489 if test "X${COLLECT_NAMES+set}" != Xset; then
6490 COLLECT_NAMES=
6491 export COLLECT_NAMES
6494 esac
6496 # Sed substitution that helps us do robust quoting. It backslashifies
6497 # metacharacters that are still active within double-quoted strings.
6498 Xsed='sed -e 1s/^X//'
6499 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6501 # Same as above, but do not quote variable references.
6502 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6504 # Sed substitution to delay expansion of an escaped shell variable in a
6505 # double_quote_subst'ed string.
6506 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6508 # Sed substitution to avoid accidental globbing in evaled expressions
6509 no_glob_subst='s/\*/\\\*/g'
6511 # Constants:
6512 rm="rm -f"
6514 # Global variables:
6515 default_ofile=libtool
6516 can_build_shared=yes
6518 # All known linkers require a `.a' archive for static linking (except MSVC,
6519 # which needs '.lib').
6520 libext=a
6521 ltmain="$ac_aux_dir/ltmain.sh"
6522 ofile="$default_ofile"
6523 with_gnu_ld="$lt_cv_prog_gnu_ld"
6525 if test -n "$ac_tool_prefix"; then
6526 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6527 set dummy ${ac_tool_prefix}ar; ac_word=$2
6528 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6529 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6530 if test "${ac_cv_prog_AR+set}" = set; then
6531 echo $ECHO_N "(cached) $ECHO_C" >&6
6532 else
6533 if test -n "$AR"; then
6534 ac_cv_prog_AR="$AR" # Let the user override the test.
6535 else
6536 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6537 for as_dir in $PATH
6539 IFS=$as_save_IFS
6540 test -z "$as_dir" && as_dir=.
6541 for ac_exec_ext in '' $ac_executable_extensions; do
6542 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6543 ac_cv_prog_AR="${ac_tool_prefix}ar"
6544 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6545 break 2
6547 done
6548 done
6549 IFS=$as_save_IFS
6553 AR=$ac_cv_prog_AR
6554 if test -n "$AR"; then
6555 { echo "$as_me:$LINENO: result: $AR" >&5
6556 echo "${ECHO_T}$AR" >&6; }
6557 else
6558 { echo "$as_me:$LINENO: result: no" >&5
6559 echo "${ECHO_T}no" >&6; }
6564 if test -z "$ac_cv_prog_AR"; then
6565 ac_ct_AR=$AR
6566 # Extract the first word of "ar", so it can be a program name with args.
6567 set dummy ar; ac_word=$2
6568 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6569 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6570 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6571 echo $ECHO_N "(cached) $ECHO_C" >&6
6572 else
6573 if test -n "$ac_ct_AR"; then
6574 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6575 else
6576 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6577 for as_dir in $PATH
6579 IFS=$as_save_IFS
6580 test -z "$as_dir" && as_dir=.
6581 for ac_exec_ext in '' $ac_executable_extensions; do
6582 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6583 ac_cv_prog_ac_ct_AR="ar"
6584 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6585 break 2
6587 done
6588 done
6589 IFS=$as_save_IFS
6593 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6594 if test -n "$ac_ct_AR"; then
6595 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6596 echo "${ECHO_T}$ac_ct_AR" >&6; }
6597 else
6598 { echo "$as_me:$LINENO: result: no" >&5
6599 echo "${ECHO_T}no" >&6; }
6602 if test "x$ac_ct_AR" = x; then
6603 AR="false"
6604 else
6605 case $cross_compiling:$ac_tool_warned in
6606 yes:)
6607 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6608 whose name does not start with the host triplet. If you think this
6609 configuration is useful to you, please write to autoconf@gnu.org." >&5
6610 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6611 whose name does not start with the host triplet. If you think this
6612 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6613 ac_tool_warned=yes ;;
6614 esac
6615 AR=$ac_ct_AR
6617 else
6618 AR="$ac_cv_prog_AR"
6621 if test -n "$ac_tool_prefix"; then
6622 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6623 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6624 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6625 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6626 if test "${ac_cv_prog_RANLIB+set}" = set; then
6627 echo $ECHO_N "(cached) $ECHO_C" >&6
6628 else
6629 if test -n "$RANLIB"; then
6630 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6631 else
6632 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6633 for as_dir in $PATH
6635 IFS=$as_save_IFS
6636 test -z "$as_dir" && as_dir=.
6637 for ac_exec_ext in '' $ac_executable_extensions; do
6638 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6639 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6640 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6641 break 2
6643 done
6644 done
6645 IFS=$as_save_IFS
6649 RANLIB=$ac_cv_prog_RANLIB
6650 if test -n "$RANLIB"; then
6651 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6652 echo "${ECHO_T}$RANLIB" >&6; }
6653 else
6654 { echo "$as_me:$LINENO: result: no" >&5
6655 echo "${ECHO_T}no" >&6; }
6660 if test -z "$ac_cv_prog_RANLIB"; then
6661 ac_ct_RANLIB=$RANLIB
6662 # Extract the first word of "ranlib", so it can be a program name with args.
6663 set dummy ranlib; ac_word=$2
6664 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6665 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6666 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6667 echo $ECHO_N "(cached) $ECHO_C" >&6
6668 else
6669 if test -n "$ac_ct_RANLIB"; then
6670 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6671 else
6672 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6673 for as_dir in $PATH
6675 IFS=$as_save_IFS
6676 test -z "$as_dir" && as_dir=.
6677 for ac_exec_ext in '' $ac_executable_extensions; do
6678 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6679 ac_cv_prog_ac_ct_RANLIB="ranlib"
6680 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6681 break 2
6683 done
6684 done
6685 IFS=$as_save_IFS
6689 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6690 if test -n "$ac_ct_RANLIB"; then
6691 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6692 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6693 else
6694 { echo "$as_me:$LINENO: result: no" >&5
6695 echo "${ECHO_T}no" >&6; }
6698 if test "x$ac_ct_RANLIB" = x; then
6699 RANLIB=":"
6700 else
6701 case $cross_compiling:$ac_tool_warned in
6702 yes:)
6703 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6704 whose name does not start with the host triplet. If you think this
6705 configuration is useful to you, please write to autoconf@gnu.org." >&5
6706 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6707 whose name does not start with the host triplet. If you think this
6708 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6709 ac_tool_warned=yes ;;
6710 esac
6711 RANLIB=$ac_ct_RANLIB
6713 else
6714 RANLIB="$ac_cv_prog_RANLIB"
6717 if test -n "$ac_tool_prefix"; then
6718 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6719 set dummy ${ac_tool_prefix}strip; ac_word=$2
6720 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6721 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6722 if test "${ac_cv_prog_STRIP+set}" = set; then
6723 echo $ECHO_N "(cached) $ECHO_C" >&6
6724 else
6725 if test -n "$STRIP"; then
6726 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6727 else
6728 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6729 for as_dir in $PATH
6731 IFS=$as_save_IFS
6732 test -z "$as_dir" && as_dir=.
6733 for ac_exec_ext in '' $ac_executable_extensions; do
6734 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6735 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6736 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6737 break 2
6739 done
6740 done
6741 IFS=$as_save_IFS
6745 STRIP=$ac_cv_prog_STRIP
6746 if test -n "$STRIP"; then
6747 { echo "$as_me:$LINENO: result: $STRIP" >&5
6748 echo "${ECHO_T}$STRIP" >&6; }
6749 else
6750 { echo "$as_me:$LINENO: result: no" >&5
6751 echo "${ECHO_T}no" >&6; }
6756 if test -z "$ac_cv_prog_STRIP"; then
6757 ac_ct_STRIP=$STRIP
6758 # Extract the first word of "strip", so it can be a program name with args.
6759 set dummy strip; ac_word=$2
6760 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6761 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6762 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6763 echo $ECHO_N "(cached) $ECHO_C" >&6
6764 else
6765 if test -n "$ac_ct_STRIP"; then
6766 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6767 else
6768 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6769 for as_dir in $PATH
6771 IFS=$as_save_IFS
6772 test -z "$as_dir" && as_dir=.
6773 for ac_exec_ext in '' $ac_executable_extensions; do
6774 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6775 ac_cv_prog_ac_ct_STRIP="strip"
6776 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6777 break 2
6779 done
6780 done
6781 IFS=$as_save_IFS
6785 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6786 if test -n "$ac_ct_STRIP"; then
6787 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6788 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
6789 else
6790 { echo "$as_me:$LINENO: result: no" >&5
6791 echo "${ECHO_T}no" >&6; }
6794 if test "x$ac_ct_STRIP" = x; then
6795 STRIP=":"
6796 else
6797 case $cross_compiling:$ac_tool_warned in
6798 yes:)
6799 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6800 whose name does not start with the host triplet. If you think this
6801 configuration is useful to you, please write to autoconf@gnu.org." >&5
6802 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6803 whose name does not start with the host triplet. If you think this
6804 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6805 ac_tool_warned=yes ;;
6806 esac
6807 STRIP=$ac_ct_STRIP
6809 else
6810 STRIP="$ac_cv_prog_STRIP"
6814 old_CC="$CC"
6815 old_CFLAGS="$CFLAGS"
6817 # Set sane defaults for various variables
6818 test -z "$AR" && AR=ar
6819 test -z "$AR_FLAGS" && AR_FLAGS=cru
6820 test -z "$AS" && AS=as
6821 test -z "$CC" && CC=cc
6822 test -z "$LTCC" && LTCC=$CC
6823 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6824 test -z "$DLLTOOL" && DLLTOOL=dlltool
6825 test -z "$LD" && LD=ld
6826 test -z "$LN_S" && LN_S="ln -s"
6827 test -z "$MAGIC_CMD" && MAGIC_CMD=file
6828 test -z "$NM" && NM=nm
6829 test -z "$SED" && SED=sed
6830 test -z "$OBJDUMP" && OBJDUMP=objdump
6831 test -z "$RANLIB" && RANLIB=:
6832 test -z "$STRIP" && STRIP=:
6833 test -z "$ac_objext" && ac_objext=o
6835 # Determine commands to create old-style static archives.
6836 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6837 old_postinstall_cmds='chmod 644 $oldlib'
6838 old_postuninstall_cmds=
6840 if test -n "$RANLIB"; then
6841 case $host_os in
6842 openbsd*)
6843 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6846 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6848 esac
6849 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6852 for cc_temp in $compiler""; do
6853 case $cc_temp in
6854 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6855 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6856 \-*) ;;
6857 *) break;;
6858 esac
6859 done
6860 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6863 # Only perform the check for file, if the check method requires it
6864 case $deplibs_check_method in
6865 file_magic*)
6866 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6867 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6868 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
6869 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6870 echo $ECHO_N "(cached) $ECHO_C" >&6
6871 else
6872 case $MAGIC_CMD in
6873 [\\/*] | ?:[\\/]*)
6874 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6877 lt_save_MAGIC_CMD="$MAGIC_CMD"
6878 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6879 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6880 for ac_dir in $ac_dummy; do
6881 IFS="$lt_save_ifs"
6882 test -z "$ac_dir" && ac_dir=.
6883 if test -f $ac_dir/${ac_tool_prefix}file; then
6884 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6885 if test -n "$file_magic_test_file"; then
6886 case $deplibs_check_method in
6887 "file_magic "*)
6888 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6889 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6890 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6891 $EGREP "$file_magic_regex" > /dev/null; then
6893 else
6894 cat <<EOF 1>&2
6896 *** Warning: the command libtool uses to detect shared libraries,
6897 *** $file_magic_cmd, produces output that libtool cannot recognize.
6898 *** The result is that libtool may fail to recognize shared libraries
6899 *** as such. This will affect the creation of libtool libraries that
6900 *** depend on shared libraries, but programs linked with such libtool
6901 *** libraries will work regardless of this problem. Nevertheless, you
6902 *** may want to report the problem to your system manager and/or to
6903 *** bug-libtool@gnu.org
6906 fi ;;
6907 esac
6909 break
6911 done
6912 IFS="$lt_save_ifs"
6913 MAGIC_CMD="$lt_save_MAGIC_CMD"
6915 esac
6918 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6919 if test -n "$MAGIC_CMD"; then
6920 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6921 echo "${ECHO_T}$MAGIC_CMD" >&6; }
6922 else
6923 { echo "$as_me:$LINENO: result: no" >&5
6924 echo "${ECHO_T}no" >&6; }
6927 if test -z "$lt_cv_path_MAGIC_CMD"; then
6928 if test -n "$ac_tool_prefix"; then
6929 { echo "$as_me:$LINENO: checking for file" >&5
6930 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
6931 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6932 echo $ECHO_N "(cached) $ECHO_C" >&6
6933 else
6934 case $MAGIC_CMD in
6935 [\\/*] | ?:[\\/]*)
6936 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6939 lt_save_MAGIC_CMD="$MAGIC_CMD"
6940 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6941 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6942 for ac_dir in $ac_dummy; do
6943 IFS="$lt_save_ifs"
6944 test -z "$ac_dir" && ac_dir=.
6945 if test -f $ac_dir/file; then
6946 lt_cv_path_MAGIC_CMD="$ac_dir/file"
6947 if test -n "$file_magic_test_file"; then
6948 case $deplibs_check_method in
6949 "file_magic "*)
6950 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6951 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6952 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6953 $EGREP "$file_magic_regex" > /dev/null; then
6955 else
6956 cat <<EOF 1>&2
6958 *** Warning: the command libtool uses to detect shared libraries,
6959 *** $file_magic_cmd, produces output that libtool cannot recognize.
6960 *** The result is that libtool may fail to recognize shared libraries
6961 *** as such. This will affect the creation of libtool libraries that
6962 *** depend on shared libraries, but programs linked with such libtool
6963 *** libraries will work regardless of this problem. Nevertheless, you
6964 *** may want to report the problem to your system manager and/or to
6965 *** bug-libtool@gnu.org
6968 fi ;;
6969 esac
6971 break
6973 done
6974 IFS="$lt_save_ifs"
6975 MAGIC_CMD="$lt_save_MAGIC_CMD"
6977 esac
6980 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6981 if test -n "$MAGIC_CMD"; then
6982 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6983 echo "${ECHO_T}$MAGIC_CMD" >&6; }
6984 else
6985 { echo "$as_me:$LINENO: result: no" >&5
6986 echo "${ECHO_T}no" >&6; }
6989 else
6990 MAGIC_CMD=:
6996 esac
6999 case $host_os in
7000 rhapsody* | darwin*)
7001 if test -n "$ac_tool_prefix"; then
7002 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7003 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7004 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7005 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7006 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
7007 echo $ECHO_N "(cached) $ECHO_C" >&6
7008 else
7009 if test -n "$DSYMUTIL"; then
7010 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7011 else
7012 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7013 for as_dir in $PATH
7015 IFS=$as_save_IFS
7016 test -z "$as_dir" && as_dir=.
7017 for ac_exec_ext in '' $ac_executable_extensions; do
7018 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7019 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7020 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7021 break 2
7023 done
7024 done
7025 IFS=$as_save_IFS
7029 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7030 if test -n "$DSYMUTIL"; then
7031 { echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
7032 echo "${ECHO_T}$DSYMUTIL" >&6; }
7033 else
7034 { echo "$as_me:$LINENO: result: no" >&5
7035 echo "${ECHO_T}no" >&6; }
7040 if test -z "$ac_cv_prog_DSYMUTIL"; then
7041 ac_ct_DSYMUTIL=$DSYMUTIL
7042 # Extract the first word of "dsymutil", so it can be a program name with args.
7043 set dummy dsymutil; ac_word=$2
7044 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7045 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7046 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
7047 echo $ECHO_N "(cached) $ECHO_C" >&6
7048 else
7049 if test -n "$ac_ct_DSYMUTIL"; then
7050 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7051 else
7052 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7053 for as_dir in $PATH
7055 IFS=$as_save_IFS
7056 test -z "$as_dir" && as_dir=.
7057 for ac_exec_ext in '' $ac_executable_extensions; do
7058 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7059 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7060 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7061 break 2
7063 done
7064 done
7065 IFS=$as_save_IFS
7069 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7070 if test -n "$ac_ct_DSYMUTIL"; then
7071 { echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
7072 echo "${ECHO_T}$ac_ct_DSYMUTIL" >&6; }
7073 else
7074 { echo "$as_me:$LINENO: result: no" >&5
7075 echo "${ECHO_T}no" >&6; }
7078 if test "x$ac_ct_DSYMUTIL" = x; then
7079 DSYMUTIL=":"
7080 else
7081 case $cross_compiling:$ac_tool_warned in
7082 yes:)
7083 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7084 whose name does not start with the host triplet. If you think this
7085 configuration is useful to you, please write to autoconf@gnu.org." >&5
7086 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7087 whose name does not start with the host triplet. If you think this
7088 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7089 ac_tool_warned=yes ;;
7090 esac
7091 DSYMUTIL=$ac_ct_DSYMUTIL
7093 else
7094 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7097 if test -n "$ac_tool_prefix"; then
7098 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7099 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7100 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7101 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7102 if test "${ac_cv_prog_NMEDIT+set}" = set; then
7103 echo $ECHO_N "(cached) $ECHO_C" >&6
7104 else
7105 if test -n "$NMEDIT"; then
7106 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7107 else
7108 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7109 for as_dir in $PATH
7111 IFS=$as_save_IFS
7112 test -z "$as_dir" && as_dir=.
7113 for ac_exec_ext in '' $ac_executable_extensions; do
7114 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7115 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7116 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7117 break 2
7119 done
7120 done
7121 IFS=$as_save_IFS
7125 NMEDIT=$ac_cv_prog_NMEDIT
7126 if test -n "$NMEDIT"; then
7127 { echo "$as_me:$LINENO: result: $NMEDIT" >&5
7128 echo "${ECHO_T}$NMEDIT" >&6; }
7129 else
7130 { echo "$as_me:$LINENO: result: no" >&5
7131 echo "${ECHO_T}no" >&6; }
7136 if test -z "$ac_cv_prog_NMEDIT"; then
7137 ac_ct_NMEDIT=$NMEDIT
7138 # Extract the first word of "nmedit", so it can be a program name with args.
7139 set dummy nmedit; ac_word=$2
7140 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7141 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7142 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
7143 echo $ECHO_N "(cached) $ECHO_C" >&6
7144 else
7145 if test -n "$ac_ct_NMEDIT"; then
7146 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7147 else
7148 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7149 for as_dir in $PATH
7151 IFS=$as_save_IFS
7152 test -z "$as_dir" && as_dir=.
7153 for ac_exec_ext in '' $ac_executable_extensions; do
7154 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7155 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7156 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7157 break 2
7159 done
7160 done
7161 IFS=$as_save_IFS
7165 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7166 if test -n "$ac_ct_NMEDIT"; then
7167 { echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
7168 echo "${ECHO_T}$ac_ct_NMEDIT" >&6; }
7169 else
7170 { echo "$as_me:$LINENO: result: no" >&5
7171 echo "${ECHO_T}no" >&6; }
7174 if test "x$ac_ct_NMEDIT" = x; then
7175 NMEDIT=":"
7176 else
7177 case $cross_compiling:$ac_tool_warned in
7178 yes:)
7179 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7180 whose name does not start with the host triplet. If you think this
7181 configuration is useful to you, please write to autoconf@gnu.org." >&5
7182 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7183 whose name does not start with the host triplet. If you think this
7184 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7185 ac_tool_warned=yes ;;
7186 esac
7187 NMEDIT=$ac_ct_NMEDIT
7189 else
7190 NMEDIT="$ac_cv_prog_NMEDIT"
7194 { echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
7195 echo $ECHO_N "checking for -single_module linker flag... $ECHO_C" >&6; }
7196 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
7197 echo $ECHO_N "(cached) $ECHO_C" >&6
7198 else
7199 lt_cv_apple_cc_single_mod=no
7200 if test -z "${LT_MULTI_MODULE}"; then
7201 # By default we will add the -single_module flag. You can override
7202 # by either setting the environment variable LT_MULTI_MODULE
7203 # non-empty at configure time, or by adding -multi_module to the
7204 # link flags.
7205 echo "int foo(void){return 1;}" > conftest.c
7206 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7207 -dynamiclib ${wl}-single_module conftest.c
7208 if test -f libconftest.dylib; then
7209 lt_cv_apple_cc_single_mod=yes
7210 rm -rf libconftest.dylib*
7212 rm conftest.c
7215 { echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
7216 echo "${ECHO_T}$lt_cv_apple_cc_single_mod" >&6; }
7217 { echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
7218 echo $ECHO_N "checking for -exported_symbols_list linker flag... $ECHO_C" >&6; }
7219 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
7220 echo $ECHO_N "(cached) $ECHO_C" >&6
7221 else
7222 lt_cv_ld_exported_symbols_list=no
7223 save_LDFLAGS=$LDFLAGS
7224 echo "_main" > conftest.sym
7225 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7226 cat >conftest.$ac_ext <<_ACEOF
7227 /* confdefs.h. */
7228 _ACEOF
7229 cat confdefs.h >>conftest.$ac_ext
7230 cat >>conftest.$ac_ext <<_ACEOF
7231 /* end confdefs.h. */
7234 main ()
7238 return 0;
7240 _ACEOF
7241 rm -f conftest.$ac_objext conftest$ac_exeext
7242 if { (ac_try="$ac_link"
7243 case "(($ac_try" in
7244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7245 *) ac_try_echo=$ac_try;;
7246 esac
7247 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7248 (eval "$ac_link") 2>conftest.er1
7249 ac_status=$?
7250 grep -v '^ *+' conftest.er1 >conftest.err
7251 rm -f conftest.er1
7252 cat conftest.err >&5
7253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7254 (exit $ac_status); } && {
7255 test -z "$ac_c_werror_flag" ||
7256 test ! -s conftest.err
7257 } && test -s conftest$ac_exeext &&
7258 $as_test_x conftest$ac_exeext; then
7259 lt_cv_ld_exported_symbols_list=yes
7260 else
7261 echo "$as_me: failed program was:" >&5
7262 sed 's/^/| /' conftest.$ac_ext >&5
7264 lt_cv_ld_exported_symbols_list=no
7267 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7268 conftest$ac_exeext conftest.$ac_ext
7269 LDFLAGS="$save_LDFLAGS"
7272 { echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
7273 echo "${ECHO_T}$lt_cv_ld_exported_symbols_list" >&6; }
7274 case $host_os in
7275 rhapsody* | darwin1.[0123])
7276 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7277 darwin1.*)
7278 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7279 darwin*)
7280 # if running on 10.5 or later, the deployment target defaults
7281 # to the OS version, if on x86, and 10.4, the deployment
7282 # target defaults to 10.4. Don't you love it?
7283 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7284 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7285 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7286 10.[012]*)
7287 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7288 10.*)
7289 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7290 esac
7292 esac
7293 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7294 _lt_dar_single_mod='$single_module'
7296 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7297 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7298 else
7299 _lt_dar_export_syms="~$NMEDIT -s \$output_objdir/\${libname}-symbols.expsym \${lib}"
7301 if test "$DSYMUTIL" != ":"; then
7302 _lt_dsymutil="~$DSYMUTIL \$lib || :"
7303 else
7304 _lt_dsymutil=
7307 esac
7310 enable_dlopen=no
7311 enable_win32_dll=no
7313 # Check whether --enable-libtool-lock was given.
7314 if test "${enable_libtool_lock+set}" = set; then
7315 enableval=$enable_libtool_lock;
7318 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7321 # Check whether --with-pic was given.
7322 if test "${with_pic+set}" = set; then
7323 withval=$with_pic; pic_mode="$withval"
7324 else
7325 pic_mode=default
7328 test -z "$pic_mode" && pic_mode=default
7330 # Use C for the default configuration in the libtool script
7331 tagname=
7332 lt_save_CC="$CC"
7333 ac_ext=c
7334 ac_cpp='$CPP $CPPFLAGS'
7335 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7336 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7337 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7340 # Source file extension for C test sources.
7341 ac_ext=c
7343 # Object file extension for compiled C test sources.
7344 objext=o
7345 objext=$objext
7347 # Code to be used in simple compile tests
7348 lt_simple_compile_test_code="int some_variable = 0;"
7350 # Code to be used in simple link tests
7351 lt_simple_link_test_code='int main(){return(0);}'
7354 # If no C compiler was specified, use CC.
7355 LTCC=${LTCC-"$CC"}
7357 # If no C compiler flags were specified, use CFLAGS.
7358 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7360 # Allow CC to be a program name with arguments.
7361 compiler=$CC
7364 # save warnings/boilerplate of simple test code
7365 ac_outfile=conftest.$ac_objext
7366 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7367 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7368 _lt_compiler_boilerplate=`cat conftest.err`
7369 $rm conftest*
7371 ac_outfile=conftest.$ac_objext
7372 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7373 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7374 _lt_linker_boilerplate=`cat conftest.err`
7375 $rm -r conftest*
7379 lt_prog_compiler_no_builtin_flag=
7381 if test "$GCC" = yes; then
7382 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7385 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7386 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
7387 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7388 echo $ECHO_N "(cached) $ECHO_C" >&6
7389 else
7390 lt_cv_prog_compiler_rtti_exceptions=no
7391 ac_outfile=conftest.$ac_objext
7392 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7393 lt_compiler_flag="-fno-rtti -fno-exceptions"
7394 # Insert the option either (1) after the last *FLAGS variable, or
7395 # (2) before a word containing "conftest.", or (3) at the end.
7396 # Note that $ac_compile itself does not contain backslashes and begins
7397 # with a dollar sign (not a hyphen), so the echo should work correctly.
7398 # The option is referenced via a variable to avoid confusing sed.
7399 lt_compile=`echo "$ac_compile" | $SED \
7400 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7401 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7402 -e 's:$: $lt_compiler_flag:'`
7403 (eval echo "\"\$as_me:7403: $lt_compile\"" >&5)
7404 (eval "$lt_compile" 2>conftest.err)
7405 ac_status=$?
7406 cat conftest.err >&5
7407 echo "$as_me:7407: \$? = $ac_status" >&5
7408 if (exit $ac_status) && test -s "$ac_outfile"; then
7409 # The compiler can only warn and ignore the option if not recognized
7410 # So say no if there are warnings other than the usual output.
7411 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7412 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7413 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7414 lt_cv_prog_compiler_rtti_exceptions=yes
7417 $rm conftest*
7420 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7421 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7423 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7424 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7425 else
7431 lt_prog_compiler_wl=
7432 lt_prog_compiler_pic=
7433 lt_prog_compiler_static=
7435 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7436 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
7438 if test "$GCC" = yes; then
7439 lt_prog_compiler_wl='-Wl,'
7440 lt_prog_compiler_static='-static'
7442 case $host_os in
7443 aix*)
7444 # All AIX code is PIC.
7445 if test "$host_cpu" = ia64; then
7446 # AIX 5 now supports IA64 processor
7447 lt_prog_compiler_static='-Bstatic'
7451 amigaos*)
7452 # FIXME: we need at least 68020 code to build shared libraries, but
7453 # adding the `-m68020' flag to GCC prevents building anything better,
7454 # like `-m68040'.
7455 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7458 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7459 # PIC is the default for these OSes.
7462 mingw* | cygwin* | pw32* | os2*)
7463 # This hack is so that the source file can tell whether it is being
7464 # built for inclusion in a dll (and should export symbols for example).
7465 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7466 # (--disable-auto-import) libraries
7467 lt_prog_compiler_pic='-DDLL_EXPORT'
7470 darwin* | rhapsody*)
7471 # PIC is the default on this platform
7472 # Common symbols not allowed in MH_DYLIB files
7473 lt_prog_compiler_pic='-fno-common'
7476 interix[3-9]*)
7477 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7478 # Instead, we relocate shared libraries at runtime.
7481 msdosdjgpp*)
7482 # Just because we use GCC doesn't mean we suddenly get shared libraries
7483 # on systems that don't support them.
7484 lt_prog_compiler_can_build_shared=no
7485 enable_shared=no
7488 sysv4*MP*)
7489 if test -d /usr/nec; then
7490 lt_prog_compiler_pic=-Kconform_pic
7494 hpux*)
7495 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7496 # not for PA HP-UX.
7497 case $host_cpu in
7498 hppa*64*|ia64*)
7499 # +Z the default
7502 lt_prog_compiler_pic='-fPIC'
7504 esac
7508 lt_prog_compiler_pic='-fPIC'
7510 esac
7511 else
7512 # PORTME Check for flag to pass linker flags through the system compiler.
7513 case $host_os in
7514 aix*)
7515 lt_prog_compiler_wl='-Wl,'
7516 if test "$host_cpu" = ia64; then
7517 # AIX 5 now supports IA64 processor
7518 lt_prog_compiler_static='-Bstatic'
7519 else
7520 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7523 darwin*)
7524 # PIC is the default on this platform
7525 # Common symbols not allowed in MH_DYLIB files
7526 case $cc_basename in
7527 xlc*)
7528 lt_prog_compiler_pic='-qnocommon'
7529 lt_prog_compiler_wl='-Wl,'
7531 esac
7534 mingw* | cygwin* | pw32* | os2*)
7535 # This hack is so that the source file can tell whether it is being
7536 # built for inclusion in a dll (and should export symbols for example).
7537 lt_prog_compiler_pic='-DDLL_EXPORT'
7540 hpux9* | hpux10* | hpux11*)
7541 lt_prog_compiler_wl='-Wl,'
7542 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7543 # not for PA HP-UX.
7544 case $host_cpu in
7545 hppa*64*|ia64*)
7546 # +Z the default
7549 lt_prog_compiler_pic='+Z'
7551 esac
7552 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7553 lt_prog_compiler_static='${wl}-a ${wl}archive'
7556 irix5* | irix6* | nonstopux*)
7557 lt_prog_compiler_wl='-Wl,'
7558 # PIC (with -KPIC) is the default.
7559 lt_prog_compiler_static='-non_shared'
7562 newsos6)
7563 lt_prog_compiler_pic='-KPIC'
7564 lt_prog_compiler_static='-Bstatic'
7567 linux* | k*bsd*-gnu)
7568 case $cc_basename in
7569 icc* | ecc*)
7570 lt_prog_compiler_wl='-Wl,'
7571 lt_prog_compiler_pic='-KPIC'
7572 lt_prog_compiler_static='-static'
7574 pgcc* | pgf77* | pgf90* | pgf95*)
7575 # Portland Group compilers (*not* the Pentium gcc compiler,
7576 # which looks to be a dead project)
7577 lt_prog_compiler_wl='-Wl,'
7578 lt_prog_compiler_pic='-fpic'
7579 lt_prog_compiler_static='-Bstatic'
7581 ccc*)
7582 lt_prog_compiler_wl='-Wl,'
7583 # All Alpha code is PIC.
7584 lt_prog_compiler_static='-non_shared'
7587 case `$CC -V 2>&1 | sed 5q` in
7588 *Sun\ C*)
7589 # Sun C 5.9
7590 lt_prog_compiler_pic='-KPIC'
7591 lt_prog_compiler_static='-Bstatic'
7592 lt_prog_compiler_wl='-Wl,'
7594 *Sun\ F*)
7595 # Sun Fortran 8.3 passes all unrecognized flags to the linker
7596 lt_prog_compiler_pic='-KPIC'
7597 lt_prog_compiler_static='-Bstatic'
7598 lt_prog_compiler_wl=''
7600 esac
7602 esac
7605 osf3* | osf4* | osf5*)
7606 lt_prog_compiler_wl='-Wl,'
7607 # All OSF/1 code is PIC.
7608 lt_prog_compiler_static='-non_shared'
7611 rdos*)
7612 lt_prog_compiler_static='-non_shared'
7615 solaris*)
7616 lt_prog_compiler_pic='-KPIC'
7617 lt_prog_compiler_static='-Bstatic'
7618 case $cc_basename in
7619 f77* | f90* | f95*)
7620 lt_prog_compiler_wl='-Qoption ld ';;
7622 lt_prog_compiler_wl='-Wl,';;
7623 esac
7626 sunos4*)
7627 lt_prog_compiler_wl='-Qoption ld '
7628 lt_prog_compiler_pic='-PIC'
7629 lt_prog_compiler_static='-Bstatic'
7632 sysv4 | sysv4.2uw2* | sysv4.3*)
7633 lt_prog_compiler_wl='-Wl,'
7634 lt_prog_compiler_pic='-KPIC'
7635 lt_prog_compiler_static='-Bstatic'
7638 sysv4*MP*)
7639 if test -d /usr/nec ;then
7640 lt_prog_compiler_pic='-Kconform_pic'
7641 lt_prog_compiler_static='-Bstatic'
7645 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7646 lt_prog_compiler_wl='-Wl,'
7647 lt_prog_compiler_pic='-KPIC'
7648 lt_prog_compiler_static='-Bstatic'
7651 unicos*)
7652 lt_prog_compiler_wl='-Wl,'
7653 lt_prog_compiler_can_build_shared=no
7656 uts4*)
7657 lt_prog_compiler_pic='-pic'
7658 lt_prog_compiler_static='-Bstatic'
7662 lt_prog_compiler_can_build_shared=no
7664 esac
7667 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7668 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
7671 # Check to make sure the PIC flag actually works.
7673 if test -n "$lt_prog_compiler_pic"; then
7675 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7676 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
7677 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
7678 echo $ECHO_N "(cached) $ECHO_C" >&6
7679 else
7680 lt_cv_prog_compiler_pic_works=no
7681 ac_outfile=conftest.$ac_objext
7682 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7683 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7684 # Insert the option either (1) after the last *FLAGS variable, or
7685 # (2) before a word containing "conftest.", or (3) at the end.
7686 # Note that $ac_compile itself does not contain backslashes and begins
7687 # with a dollar sign (not a hyphen), so the echo should work correctly.
7688 # The option is referenced via a variable to avoid confusing sed.
7689 lt_compile=`echo "$ac_compile" | $SED \
7690 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7691 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7692 -e 's:$: $lt_compiler_flag:'`
7693 (eval echo "\"\$as_me:7693: $lt_compile\"" >&5)
7694 (eval "$lt_compile" 2>conftest.err)
7695 ac_status=$?
7696 cat conftest.err >&5
7697 echo "$as_me:7697: \$? = $ac_status" >&5
7698 if (exit $ac_status) && test -s "$ac_outfile"; then
7699 # The compiler can only warn and ignore the option if not recognized
7700 # So say no if there are warnings other than the usual output.
7701 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7702 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7703 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7704 lt_cv_prog_compiler_pic_works=yes
7707 $rm conftest*
7710 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
7711 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works" >&6; }
7713 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
7714 case $lt_prog_compiler_pic in
7715 "" | " "*) ;;
7716 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7717 esac
7718 else
7719 lt_prog_compiler_pic=
7720 lt_prog_compiler_can_build_shared=no
7724 case $host_os in
7725 # For platforms which do not support PIC, -DPIC is meaningless:
7726 *djgpp*)
7727 lt_prog_compiler_pic=
7730 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7732 esac
7735 # Check to make sure the static flag actually works.
7737 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7738 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7739 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
7740 if test "${lt_cv_prog_compiler_static_works+set}" = set; then
7741 echo $ECHO_N "(cached) $ECHO_C" >&6
7742 else
7743 lt_cv_prog_compiler_static_works=no
7744 save_LDFLAGS="$LDFLAGS"
7745 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7746 echo "$lt_simple_link_test_code" > conftest.$ac_ext
7747 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7748 # The linker can only warn and ignore the option if not recognized
7749 # So say no if there are warnings
7750 if test -s conftest.err; then
7751 # Append any errors to the config.log.
7752 cat conftest.err 1>&5
7753 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7754 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7755 if diff conftest.exp conftest.er2 >/dev/null; then
7756 lt_cv_prog_compiler_static_works=yes
7758 else
7759 lt_cv_prog_compiler_static_works=yes
7762 $rm -r conftest*
7763 LDFLAGS="$save_LDFLAGS"
7766 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
7767 echo "${ECHO_T}$lt_cv_prog_compiler_static_works" >&6; }
7769 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
7771 else
7772 lt_prog_compiler_static=
7776 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7777 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
7778 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7779 echo $ECHO_N "(cached) $ECHO_C" >&6
7780 else
7781 lt_cv_prog_compiler_c_o=no
7782 $rm -r conftest 2>/dev/null
7783 mkdir conftest
7784 cd conftest
7785 mkdir out
7786 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7788 lt_compiler_flag="-o out/conftest2.$ac_objext"
7789 # Insert the option either (1) after the last *FLAGS variable, or
7790 # (2) before a word containing "conftest.", or (3) at the end.
7791 # Note that $ac_compile itself does not contain backslashes and begins
7792 # with a dollar sign (not a hyphen), so the echo should work correctly.
7793 lt_compile=`echo "$ac_compile" | $SED \
7794 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7795 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7796 -e 's:$: $lt_compiler_flag:'`
7797 (eval echo "\"\$as_me:7797: $lt_compile\"" >&5)
7798 (eval "$lt_compile" 2>out/conftest.err)
7799 ac_status=$?
7800 cat out/conftest.err >&5
7801 echo "$as_me:7801: \$? = $ac_status" >&5
7802 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7803 then
7804 # The compiler can only warn and ignore the option if not recognized
7805 # So say no if there are warnings
7806 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7807 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7808 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7809 lt_cv_prog_compiler_c_o=yes
7812 chmod u+w . 2>&5
7813 $rm conftest*
7814 # SGI C++ compiler will create directory out/ii_files/ for
7815 # template instantiation
7816 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7817 $rm out/* && rmdir out
7818 cd ..
7819 rmdir conftest
7820 $rm conftest*
7823 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7824 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
7827 hard_links="nottested"
7828 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7829 # do not overwrite the value of need_locks provided by the user
7830 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7831 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
7832 hard_links=yes
7833 $rm conftest*
7834 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7835 touch conftest.a
7836 ln conftest.a conftest.b 2>&5 || hard_links=no
7837 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7838 { echo "$as_me:$LINENO: result: $hard_links" >&5
7839 echo "${ECHO_T}$hard_links" >&6; }
7840 if test "$hard_links" = no; then
7841 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7842 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7843 need_locks=warn
7845 else
7846 need_locks=no
7849 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7850 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
7852 runpath_var=
7853 allow_undefined_flag=
7854 enable_shared_with_static_runtimes=no
7855 archive_cmds=
7856 archive_expsym_cmds=
7857 old_archive_From_new_cmds=
7858 old_archive_from_expsyms_cmds=
7859 export_dynamic_flag_spec=
7860 whole_archive_flag_spec=
7861 thread_safe_flag_spec=
7862 hardcode_libdir_flag_spec=
7863 hardcode_libdir_flag_spec_ld=
7864 hardcode_libdir_separator=
7865 hardcode_direct=no
7866 hardcode_minus_L=no
7867 hardcode_shlibpath_var=unsupported
7868 link_all_deplibs=unknown
7869 hardcode_automatic=no
7870 module_cmds=
7871 module_expsym_cmds=
7872 always_export_symbols=no
7873 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7874 # include_expsyms should be a list of space-separated symbols to be *always*
7875 # included in the symbol list
7876 include_expsyms=
7877 # exclude_expsyms can be an extended regexp of symbols to exclude
7878 # it will be wrapped by ` (' and `)$', so one must not match beginning or
7879 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7880 # as well as any symbol that contains `d'.
7881 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
7882 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7883 # platforms (ab)use it in PIC code, but their linkers get confused if
7884 # the symbol is explicitly referenced. Since portable code cannot
7885 # rely on this symbol name, it's probably fine to never include it in
7886 # preloaded symbol tables.
7887 # Exclude shared library initialization/finalization symbols.
7888 extract_expsyms_cmds=
7889 # Just being paranoid about ensuring that cc_basename is set.
7890 for cc_temp in $compiler""; do
7891 case $cc_temp in
7892 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7893 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7894 \-*) ;;
7895 *) break;;
7896 esac
7897 done
7898 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7900 case $host_os in
7901 cygwin* | mingw* | pw32*)
7902 # FIXME: the MSVC++ port hasn't been tested in a loooong time
7903 # When not using gcc, we currently assume that we are using
7904 # Microsoft Visual C++.
7905 if test "$GCC" != yes; then
7906 with_gnu_ld=no
7909 interix*)
7910 # we just hope/assume this is gcc and not c89 (= MSVC++)
7911 with_gnu_ld=yes
7913 openbsd*)
7914 with_gnu_ld=no
7916 esac
7918 ld_shlibs=yes
7919 if test "$with_gnu_ld" = yes; then
7920 # If archive_cmds runs LD, not CC, wlarc should be empty
7921 wlarc='${wl}'
7923 # Set some defaults for GNU ld with shared library support. These
7924 # are reset later if shared libraries are not supported. Putting them
7925 # here allows them to be overridden if necessary.
7926 runpath_var=LD_RUN_PATH
7927 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
7928 export_dynamic_flag_spec='${wl}--export-dynamic'
7929 # ancient GNU ld didn't support --whole-archive et. al.
7930 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
7931 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7932 else
7933 whole_archive_flag_spec=
7935 supports_anon_versioning=no
7936 case `$LD -v 2>/dev/null` in
7937 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7938 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7939 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7940 *\ 2.11.*) ;; # other 2.11 versions
7941 *) supports_anon_versioning=yes ;;
7942 esac
7944 # See if GNU ld supports shared libraries.
7945 case $host_os in
7946 aix[3-9]*)
7947 # On AIX/PPC, the GNU linker is very broken
7948 if test "$host_cpu" != ia64; then
7949 ld_shlibs=no
7950 cat <<EOF 1>&2
7952 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
7953 *** to be unable to reliably create shared libraries on AIX.
7954 *** Therefore, libtool is disabling shared libraries support. If you
7955 *** really care for shared libraries, you may want to modify your PATH
7956 *** so that a non-GNU linker is found, and then restart.
7962 amigaos*)
7963 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)'
7964 hardcode_libdir_flag_spec='-L$libdir'
7965 hardcode_minus_L=yes
7967 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7968 # that the semantics of dynamic libraries on AmigaOS, at least up
7969 # to version 4, is to share data among multiple programs linked
7970 # with the same dynamic library. Since this doesn't match the
7971 # behavior of shared libraries on other platforms, we can't use
7972 # them.
7973 ld_shlibs=no
7976 beos*)
7977 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7978 allow_undefined_flag=unsupported
7979 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7980 # support --undefined. This deserves some investigation. FIXME
7981 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7982 else
7983 ld_shlibs=no
7987 cygwin* | mingw* | pw32*)
7988 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7989 # as there is no search path for DLLs.
7990 hardcode_libdir_flag_spec='-L$libdir'
7991 allow_undefined_flag=unsupported
7992 always_export_symbols=no
7993 enable_shared_with_static_runtimes=yes
7994 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
7996 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
7997 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7998 # If the export-symbols file already is a .def file (1st line
7999 # is EXPORTS), use it as is; otherwise, prepend...
8000 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8001 cp $export_symbols $output_objdir/$soname.def;
8002 else
8003 echo EXPORTS > $output_objdir/$soname.def;
8004 cat $export_symbols >> $output_objdir/$soname.def;
8006 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8007 else
8008 ld_shlibs=no
8012 interix[3-9]*)
8013 hardcode_direct=no
8014 hardcode_shlibpath_var=no
8015 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8016 export_dynamic_flag_spec='${wl}-E'
8017 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8018 # Instead, shared libraries are loaded at an image base (0x10000000 by
8019 # default) and relocated if they conflict, which is a slow very memory
8020 # consuming and fragmenting process. To avoid this, we pick a random,
8021 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8022 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8023 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8024 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'
8027 gnu* | linux* | k*bsd*-gnu)
8028 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8029 tmp_addflag=
8030 case $cc_basename,$host_cpu in
8031 pgcc*) # Portland Group C compiler
8032 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'
8033 tmp_addflag=' $pic_flag'
8035 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
8036 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'
8037 tmp_addflag=' $pic_flag -Mnomain' ;;
8038 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8039 tmp_addflag=' -i_dynamic' ;;
8040 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8041 tmp_addflag=' -i_dynamic -nofor_main' ;;
8042 ifc* | ifort*) # Intel Fortran compiler
8043 tmp_addflag=' -nofor_main' ;;
8044 esac
8045 case `$CC -V 2>&1 | sed 5q` in
8046 *Sun\ C*) # Sun C 5.9
8047 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
8048 tmp_sharedflag='-G' ;;
8049 *Sun\ F*) # Sun Fortran 8.3
8050 tmp_sharedflag='-G' ;;
8052 tmp_sharedflag='-shared' ;;
8053 esac
8054 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8056 if test $supports_anon_versioning = yes; then
8057 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8058 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8059 $echo "local: *; };" >> $output_objdir/$libname.ver~
8060 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8062 link_all_deplibs=no
8063 else
8064 ld_shlibs=no
8068 netbsd* | netbsdelf*-gnu)
8069 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8070 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8071 wlarc=
8072 else
8073 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8074 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8078 solaris*)
8079 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8080 ld_shlibs=no
8081 cat <<EOF 1>&2
8083 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8084 *** create shared libraries on Solaris systems. Therefore, libtool
8085 *** is disabling shared libraries support. We urge you to upgrade GNU
8086 *** binutils to release 2.9.1 or newer. Another option is to modify
8087 *** your PATH or compiler configuration so that the native linker is
8088 *** used, and then restart.
8091 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8092 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8093 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8094 else
8095 ld_shlibs=no
8099 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8100 case `$LD -v 2>&1` in
8101 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8102 ld_shlibs=no
8103 cat <<_LT_EOF 1>&2
8105 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8106 *** reliably create shared libraries on SCO systems. Therefore, libtool
8107 *** is disabling shared libraries support. We urge you to upgrade GNU
8108 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8109 *** your PATH or compiler configuration so that the native linker is
8110 *** used, and then restart.
8112 _LT_EOF
8115 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8116 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
8117 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
8118 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
8119 else
8120 ld_shlibs=no
8123 esac
8126 sunos4*)
8127 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8128 wlarc=
8129 hardcode_direct=yes
8130 hardcode_shlibpath_var=no
8134 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8135 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8136 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8137 else
8138 ld_shlibs=no
8141 esac
8143 if test "$ld_shlibs" = no; then
8144 runpath_var=
8145 hardcode_libdir_flag_spec=
8146 export_dynamic_flag_spec=
8147 whole_archive_flag_spec=
8149 else
8150 # PORTME fill in a description of your system's linker (not GNU ld)
8151 case $host_os in
8152 aix3*)
8153 allow_undefined_flag=unsupported
8154 always_export_symbols=yes
8155 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'
8156 # Note: this linker hardcodes the directories in LIBPATH if there
8157 # are no directories specified by -L.
8158 hardcode_minus_L=yes
8159 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8160 # Neither direct hardcoding nor static linking is supported with a
8161 # broken collect2.
8162 hardcode_direct=unsupported
8166 aix[4-9]*)
8167 if test "$host_cpu" = ia64; then
8168 # On IA64, the linker does run time linking by default, so we don't
8169 # have to do anything special.
8170 aix_use_runtimelinking=no
8171 exp_sym_flag='-Bexport'
8172 no_entry_flag=""
8173 else
8174 # If we're using GNU nm, then we don't want the "-C" option.
8175 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8176 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8177 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'
8178 else
8179 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'
8181 aix_use_runtimelinking=no
8183 # Test if we are trying to use run time linking or normal
8184 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8185 # need to do runtime linking.
8186 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8187 for ld_flag in $LDFLAGS; do
8188 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8189 aix_use_runtimelinking=yes
8190 break
8192 done
8194 esac
8196 exp_sym_flag='-bexport'
8197 no_entry_flag='-bnoentry'
8200 # When large executables or shared objects are built, AIX ld can
8201 # have problems creating the table of contents. If linking a library
8202 # or program results in "error TOC overflow" add -mminimal-toc to
8203 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8204 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8206 archive_cmds=''
8207 hardcode_direct=yes
8208 hardcode_libdir_separator=':'
8209 link_all_deplibs=yes
8211 if test "$GCC" = yes; then
8212 case $host_os in aix4.[012]|aix4.[012].*)
8213 # We only want to do this on AIX 4.2 and lower, the check
8214 # below for broken collect2 doesn't work under 4.3+
8215 collect2name=`${CC} -print-prog-name=collect2`
8216 if test -f "$collect2name" && \
8217 strings "$collect2name" | grep resolve_lib_name >/dev/null
8218 then
8219 # We have reworked collect2
8221 else
8222 # We have old collect2
8223 hardcode_direct=unsupported
8224 # It fails to find uninstalled libraries when the uninstalled
8225 # path is not listed in the libpath. Setting hardcode_minus_L
8226 # to unsupported forces relinking
8227 hardcode_minus_L=yes
8228 hardcode_libdir_flag_spec='-L$libdir'
8229 hardcode_libdir_separator=
8232 esac
8233 shared_flag='-shared'
8234 if test "$aix_use_runtimelinking" = yes; then
8235 shared_flag="$shared_flag "'${wl}-G'
8237 else
8238 # not using gcc
8239 if test "$host_cpu" = ia64; then
8240 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8241 # chokes on -Wl,-G. The following line is correct:
8242 shared_flag='-G'
8243 else
8244 if test "$aix_use_runtimelinking" = yes; then
8245 shared_flag='${wl}-G'
8246 else
8247 shared_flag='${wl}-bM:SRE'
8252 # It seems that -bexpall does not export symbols beginning with
8253 # underscore (_), so it is better to generate a list of symbols to export.
8254 always_export_symbols=yes
8255 if test "$aix_use_runtimelinking" = yes; then
8256 # Warning - without using the other runtime loading flags (-brtl),
8257 # -berok will link without error, but may produce a broken library.
8258 allow_undefined_flag='-berok'
8259 # Determine the default libpath from the value encoded in an empty executable.
8260 cat >conftest.$ac_ext <<_ACEOF
8261 /* confdefs.h. */
8262 _ACEOF
8263 cat confdefs.h >>conftest.$ac_ext
8264 cat >>conftest.$ac_ext <<_ACEOF
8265 /* end confdefs.h. */
8268 main ()
8272 return 0;
8274 _ACEOF
8275 rm -f conftest.$ac_objext conftest$ac_exeext
8276 if { (ac_try="$ac_link"
8277 case "(($ac_try" in
8278 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8279 *) ac_try_echo=$ac_try;;
8280 esac
8281 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8282 (eval "$ac_link") 2>conftest.er1
8283 ac_status=$?
8284 grep -v '^ *+' conftest.er1 >conftest.err
8285 rm -f conftest.er1
8286 cat conftest.err >&5
8287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8288 (exit $ac_status); } && {
8289 test -z "$ac_c_werror_flag" ||
8290 test ! -s conftest.err
8291 } && test -s conftest$ac_exeext &&
8292 $as_test_x conftest$ac_exeext; then
8294 lt_aix_libpath_sed='
8295 /Import File Strings/,/^$/ {
8296 /^0/ {
8297 s/^0 *\(.*\)$/\1/
8301 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8302 # Check for a 64-bit object if we didn't find anything.
8303 if test -z "$aix_libpath"; then
8304 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8306 else
8307 echo "$as_me: failed program was:" >&5
8308 sed 's/^/| /' conftest.$ac_ext >&5
8313 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8314 conftest$ac_exeext conftest.$ac_ext
8315 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8317 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8318 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"
8319 else
8320 if test "$host_cpu" = ia64; then
8321 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8322 allow_undefined_flag="-z nodefs"
8323 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"
8324 else
8325 # Determine the default libpath from the value encoded in an empty executable.
8326 cat >conftest.$ac_ext <<_ACEOF
8327 /* confdefs.h. */
8328 _ACEOF
8329 cat confdefs.h >>conftest.$ac_ext
8330 cat >>conftest.$ac_ext <<_ACEOF
8331 /* end confdefs.h. */
8334 main ()
8338 return 0;
8340 _ACEOF
8341 rm -f conftest.$ac_objext conftest$ac_exeext
8342 if { (ac_try="$ac_link"
8343 case "(($ac_try" in
8344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8345 *) ac_try_echo=$ac_try;;
8346 esac
8347 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8348 (eval "$ac_link") 2>conftest.er1
8349 ac_status=$?
8350 grep -v '^ *+' conftest.er1 >conftest.err
8351 rm -f conftest.er1
8352 cat conftest.err >&5
8353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8354 (exit $ac_status); } && {
8355 test -z "$ac_c_werror_flag" ||
8356 test ! -s conftest.err
8357 } && test -s conftest$ac_exeext &&
8358 $as_test_x conftest$ac_exeext; then
8360 lt_aix_libpath_sed='
8361 /Import File Strings/,/^$/ {
8362 /^0/ {
8363 s/^0 *\(.*\)$/\1/
8367 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8368 # Check for a 64-bit object if we didn't find anything.
8369 if test -z "$aix_libpath"; then
8370 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8372 else
8373 echo "$as_me: failed program was:" >&5
8374 sed 's/^/| /' conftest.$ac_ext >&5
8379 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8380 conftest$ac_exeext conftest.$ac_ext
8381 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8383 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8384 # Warning - without using the other run time loading flags,
8385 # -berok will link without error, but may produce a broken library.
8386 no_undefined_flag=' ${wl}-bernotok'
8387 allow_undefined_flag=' ${wl}-berok'
8388 # Exported symbols can be pulled into shared objects from archives
8389 whole_archive_flag_spec='$convenience'
8390 archive_cmds_need_lc=yes
8391 # This is similar to how AIX traditionally builds its shared libraries.
8392 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'
8397 amigaos*)
8398 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)'
8399 hardcode_libdir_flag_spec='-L$libdir'
8400 hardcode_minus_L=yes
8401 # see comment about different semantics on the GNU ld section
8402 ld_shlibs=no
8405 bsdi[45]*)
8406 export_dynamic_flag_spec=-rdynamic
8409 cygwin* | mingw* | pw32*)
8410 # When not using gcc, we currently assume that we are using
8411 # Microsoft Visual C++.
8412 # hardcode_libdir_flag_spec is actually meaningless, as there is
8413 # no search path for DLLs.
8414 hardcode_libdir_flag_spec=' '
8415 allow_undefined_flag=unsupported
8416 # Tell ltmain to make .lib files, not .a files.
8417 libext=lib
8418 # Tell ltmain to make .dll files, not .so files.
8419 shrext_cmds=".dll"
8420 # FIXME: Setting linknames here is a bad hack.
8421 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8422 # The linker will automatically build a .lib file if we build a DLL.
8423 old_archive_From_new_cmds='true'
8424 # FIXME: Should let the user specify the lib program.
8425 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8426 fix_srcfile_path='`cygpath -w "$srcfile"`'
8427 enable_shared_with_static_runtimes=yes
8430 darwin* | rhapsody*)
8431 case $host_os in
8432 rhapsody* | darwin1.[012])
8433 allow_undefined_flag='${wl}-undefined ${wl}suppress'
8435 *) # Darwin 1.3 on
8436 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8437 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8438 else
8439 case ${MACOSX_DEPLOYMENT_TARGET} in
8440 10.[012])
8441 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8443 10.*)
8444 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8446 esac
8449 esac
8450 archive_cmds_need_lc=no
8451 hardcode_direct=no
8452 hardcode_automatic=yes
8453 hardcode_shlibpath_var=unsupported
8454 whole_archive_flag_spec=''
8455 link_all_deplibs=yes
8456 if test "$GCC" = yes ; then
8457 output_verbose_link_cmd='echo'
8458 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8459 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8460 archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
8461 module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
8462 else
8463 case $cc_basename in
8464 xlc*)
8465 output_verbose_link_cmd='echo'
8466 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
8467 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8468 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8469 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8470 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}'
8473 ld_shlibs=no
8475 esac
8479 dgux*)
8480 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8481 hardcode_libdir_flag_spec='-L$libdir'
8482 hardcode_shlibpath_var=no
8485 freebsd1*)
8486 ld_shlibs=no
8489 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8490 # support. Future versions do this automatically, but an explicit c++rt0.o
8491 # does not break anything, and helps significantly (at the cost of a little
8492 # extra space).
8493 freebsd2.2*)
8494 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8495 hardcode_libdir_flag_spec='-R$libdir'
8496 hardcode_direct=yes
8497 hardcode_shlibpath_var=no
8500 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8501 freebsd2*)
8502 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8503 hardcode_direct=yes
8504 hardcode_minus_L=yes
8505 hardcode_shlibpath_var=no
8508 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8509 freebsd* | dragonfly*)
8510 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8511 hardcode_libdir_flag_spec='-R$libdir'
8512 hardcode_direct=yes
8513 hardcode_shlibpath_var=no
8516 hpux9*)
8517 if test "$GCC" = yes; then
8518 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'
8519 else
8520 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'
8522 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8523 hardcode_libdir_separator=:
8524 hardcode_direct=yes
8526 # hardcode_minus_L: Not really in the search PATH,
8527 # but as the default location of the library.
8528 hardcode_minus_L=yes
8529 export_dynamic_flag_spec='${wl}-E'
8532 hpux10*)
8533 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8534 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8535 else
8536 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8538 if test "$with_gnu_ld" = no; then
8539 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8540 hardcode_libdir_separator=:
8542 hardcode_direct=yes
8543 export_dynamic_flag_spec='${wl}-E'
8545 # hardcode_minus_L: Not really in the search PATH,
8546 # but as the default location of the library.
8547 hardcode_minus_L=yes
8551 hpux11*)
8552 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8553 case $host_cpu in
8554 hppa*64*)
8555 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8557 ia64*)
8558 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8561 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8563 esac
8564 else
8565 case $host_cpu in
8566 hppa*64*)
8567 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8569 ia64*)
8570 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8573 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8575 esac
8577 if test "$with_gnu_ld" = no; then
8578 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8579 hardcode_libdir_separator=:
8581 case $host_cpu in
8582 hppa*64*|ia64*)
8583 hardcode_libdir_flag_spec_ld='+b $libdir'
8584 hardcode_direct=no
8585 hardcode_shlibpath_var=no
8588 hardcode_direct=yes
8589 export_dynamic_flag_spec='${wl}-E'
8591 # hardcode_minus_L: Not really in the search PATH,
8592 # but as the default location of the library.
8593 hardcode_minus_L=yes
8595 esac
8599 irix5* | irix6* | nonstopux*)
8600 if test "$GCC" = yes; then
8601 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'
8602 else
8603 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'
8604 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8606 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8607 hardcode_libdir_separator=:
8608 link_all_deplibs=yes
8611 netbsd* | netbsdelf*-gnu)
8612 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8613 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8614 else
8615 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8617 hardcode_libdir_flag_spec='-R$libdir'
8618 hardcode_direct=yes
8619 hardcode_shlibpath_var=no
8622 newsos6)
8623 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8624 hardcode_direct=yes
8625 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8626 hardcode_libdir_separator=:
8627 hardcode_shlibpath_var=no
8630 openbsd*)
8631 if test -f /usr/libexec/ld.so; then
8632 hardcode_direct=yes
8633 hardcode_shlibpath_var=no
8634 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8635 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8636 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8637 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8638 export_dynamic_flag_spec='${wl}-E'
8639 else
8640 case $host_os in
8641 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8642 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8643 hardcode_libdir_flag_spec='-R$libdir'
8646 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8647 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8649 esac
8651 else
8652 ld_shlibs=no
8656 os2*)
8657 hardcode_libdir_flag_spec='-L$libdir'
8658 hardcode_minus_L=yes
8659 allow_undefined_flag=unsupported
8660 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'
8661 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8664 osf3*)
8665 if test "$GCC" = yes; then
8666 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8667 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'
8668 else
8669 allow_undefined_flag=' -expect_unresolved \*'
8670 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'
8672 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8673 hardcode_libdir_separator=:
8676 osf4* | osf5*) # as osf3* with the addition of -msym flag
8677 if test "$GCC" = yes; then
8678 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8679 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'
8680 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8681 else
8682 allow_undefined_flag=' -expect_unresolved \*'
8683 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'
8684 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8685 $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'
8687 # Both c and cxx compiler support -rpath directly
8688 hardcode_libdir_flag_spec='-rpath $libdir'
8690 hardcode_libdir_separator=:
8693 solaris*)
8694 no_undefined_flag=' -z text'
8695 if test "$GCC" = yes; then
8696 wlarc='${wl}'
8697 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8698 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8699 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8700 else
8701 wlarc=''
8702 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8703 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8704 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8706 hardcode_libdir_flag_spec='-R$libdir'
8707 hardcode_shlibpath_var=no
8708 case $host_os in
8709 solaris2.[0-5] | solaris2.[0-5].*) ;;
8711 # The compiler driver will combine and reorder linker options,
8712 # but understands `-z linker_flag'. GCC discards it without `$wl',
8713 # but is careful enough not to reorder.
8714 # Supported since Solaris 2.6 (maybe 2.5.1?)
8715 if test "$GCC" = yes; then
8716 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8717 else
8718 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8721 esac
8722 link_all_deplibs=yes
8725 sunos4*)
8726 if test "x$host_vendor" = xsequent; then
8727 # Use $CC to link under sequent, because it throws in some extra .o
8728 # files that make .init and .fini sections work.
8729 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8730 else
8731 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8733 hardcode_libdir_flag_spec='-L$libdir'
8734 hardcode_direct=yes
8735 hardcode_minus_L=yes
8736 hardcode_shlibpath_var=no
8739 sysv4)
8740 case $host_vendor in
8741 sni)
8742 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8743 hardcode_direct=yes # is this really true???
8745 siemens)
8746 ## LD is ld it makes a PLAMLIB
8747 ## CC just makes a GrossModule.
8748 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8749 reload_cmds='$CC -r -o $output$reload_objs'
8750 hardcode_direct=no
8752 motorola)
8753 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8754 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8756 esac
8757 runpath_var='LD_RUN_PATH'
8758 hardcode_shlibpath_var=no
8761 sysv4.3*)
8762 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8763 hardcode_shlibpath_var=no
8764 export_dynamic_flag_spec='-Bexport'
8767 sysv4*MP*)
8768 if test -d /usr/nec; then
8769 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8770 hardcode_shlibpath_var=no
8771 runpath_var=LD_RUN_PATH
8772 hardcode_runpath_var=yes
8773 ld_shlibs=yes
8777 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
8778 no_undefined_flag='${wl}-z,text'
8779 archive_cmds_need_lc=no
8780 hardcode_shlibpath_var=no
8781 runpath_var='LD_RUN_PATH'
8783 if test "$GCC" = yes; then
8784 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8785 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8786 else
8787 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8788 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8792 sysv5* | sco3.2v5* | sco5v6*)
8793 # Note: We can NOT use -z defs as we might desire, because we do not
8794 # link with -lc, and that would cause any symbols used from libc to
8795 # always be unresolved, which means just about no library would
8796 # ever link correctly. If we're not using GNU ld we use -z text
8797 # though, which does catch some bad symbols but isn't as heavy-handed
8798 # as -z defs.
8799 no_undefined_flag='${wl}-z,text'
8800 allow_undefined_flag='${wl}-z,nodefs'
8801 archive_cmds_need_lc=no
8802 hardcode_shlibpath_var=no
8803 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
8804 hardcode_libdir_separator=':'
8805 link_all_deplibs=yes
8806 export_dynamic_flag_spec='${wl}-Bexport'
8807 runpath_var='LD_RUN_PATH'
8809 if test "$GCC" = yes; then
8810 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8811 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8812 else
8813 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8814 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8818 uts4*)
8819 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8820 hardcode_libdir_flag_spec='-L$libdir'
8821 hardcode_shlibpath_var=no
8825 ld_shlibs=no
8827 esac
8830 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8831 echo "${ECHO_T}$ld_shlibs" >&6; }
8832 test "$ld_shlibs" = no && can_build_shared=no
8835 # Do we need to explicitly link libc?
8837 case "x$archive_cmds_need_lc" in
8838 x|xyes)
8839 # Assume -lc should be added
8840 archive_cmds_need_lc=yes
8842 if test "$enable_shared" = yes && test "$GCC" = yes; then
8843 case $archive_cmds in
8844 *'~'*)
8845 # FIXME: we may have to deal with multi-command sequences.
8847 '$CC '*)
8848 # Test whether the compiler implicitly links with -lc since on some
8849 # systems, -lgcc has to come before -lc. If gcc already passes -lc
8850 # to ld, don't add -lc before -lgcc.
8851 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8852 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
8853 $rm conftest*
8854 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8856 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8857 (eval $ac_compile) 2>&5
8858 ac_status=$?
8859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8860 (exit $ac_status); } 2>conftest.err; then
8861 soname=conftest
8862 lib=conftest
8863 libobjs=conftest.$ac_objext
8864 deplibs=
8865 wl=$lt_prog_compiler_wl
8866 pic_flag=$lt_prog_compiler_pic
8867 compiler_flags=-v
8868 linker_flags=-v
8869 verstring=
8870 output_objdir=.
8871 libname=conftest
8872 lt_save_allow_undefined_flag=$allow_undefined_flag
8873 allow_undefined_flag=
8874 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
8875 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8876 ac_status=$?
8877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8878 (exit $ac_status); }
8879 then
8880 archive_cmds_need_lc=no
8881 else
8882 archive_cmds_need_lc=yes
8884 allow_undefined_flag=$lt_save_allow_undefined_flag
8885 else
8886 cat conftest.err 1>&5
8888 $rm conftest*
8889 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8890 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
8892 esac
8895 esac
8897 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8898 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8899 library_names_spec=
8900 libname_spec='lib$name'
8901 soname_spec=
8902 shrext_cmds=".so"
8903 postinstall_cmds=
8904 postuninstall_cmds=
8905 finish_cmds=
8906 finish_eval=
8907 shlibpath_var=
8908 shlibpath_overrides_runpath=unknown
8909 version_type=none
8910 dynamic_linker="$host_os ld.so"
8911 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8913 if test "$GCC" = yes; then
8914 case $host_os in
8915 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
8916 *) lt_awk_arg="/^libraries:/" ;;
8917 esac
8918 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8919 if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
8920 # if the path contains ";" then we assume it to be the separator
8921 # otherwise default to the standard path separator (i.e. ":") - it is
8922 # assumed that no part of a normal pathname contains ";" but that should
8923 # okay in the real world where ";" in dirpaths is itself problematic.
8924 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
8925 else
8926 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8928 # Ok, now we have the path, separated by spaces, we can step through it
8929 # and add multilib dir if necessary.
8930 lt_tmp_lt_search_path_spec=
8931 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
8932 for lt_sys_path in $lt_search_path_spec; do
8933 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
8934 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
8935 else
8936 test -d "$lt_sys_path" && \
8937 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
8939 done
8940 lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
8941 BEGIN {RS=" "; FS="/|\n";} {
8942 lt_foo="";
8943 lt_count=0;
8944 for (lt_i = NF; lt_i > 0; lt_i--) {
8945 if ($lt_i != "" && $lt_i != ".") {
8946 if ($lt_i == "..") {
8947 lt_count++;
8948 } else {
8949 if (lt_count == 0) {
8950 lt_foo="/" $lt_i lt_foo;
8951 } else {
8952 lt_count--;
8957 if (lt_foo != "") { lt_freq[lt_foo]++; }
8958 if (lt_freq[lt_foo] == 1) { print lt_foo; }
8960 sys_lib_search_path_spec=`echo $lt_search_path_spec`
8961 else
8962 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8964 need_lib_prefix=unknown
8965 hardcode_into_libs=no
8967 # when you set need_version to no, make sure it does not cause -set_version
8968 # flags to be left without arguments
8969 need_version=unknown
8971 case $host_os in
8972 aix3*)
8973 version_type=linux
8974 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8975 shlibpath_var=LIBPATH
8977 # AIX 3 has no versioning support, so we append a major version to the name.
8978 soname_spec='${libname}${release}${shared_ext}$major'
8981 aix[4-9]*)
8982 version_type=linux
8983 need_lib_prefix=no
8984 need_version=no
8985 hardcode_into_libs=yes
8986 if test "$host_cpu" = ia64; then
8987 # AIX 5 supports IA64
8988 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8989 shlibpath_var=LD_LIBRARY_PATH
8990 else
8991 # With GCC up to 2.95.x, collect2 would create an import file
8992 # for dependence libraries. The import file would start with
8993 # the line `#! .'. This would cause the generated library to
8994 # depend on `.', always an invalid library. This was fixed in
8995 # development snapshots of GCC prior to 3.0.
8996 case $host_os in
8997 aix4 | aix4.[01] | aix4.[01].*)
8998 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8999 echo ' yes '
9000 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9002 else
9003 can_build_shared=no
9006 esac
9007 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9008 # soname into executable. Probably we can add versioning support to
9009 # collect2, so additional links can be useful in future.
9010 if test "$aix_use_runtimelinking" = yes; then
9011 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9012 # instead of lib<name>.a to let people know that these are not
9013 # typical AIX shared libraries.
9014 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9015 else
9016 # We preserve .a as extension for shared libraries through AIX4.2
9017 # and later when we are not doing run time linking.
9018 library_names_spec='${libname}${release}.a $libname.a'
9019 soname_spec='${libname}${release}${shared_ext}$major'
9021 shlibpath_var=LIBPATH
9025 amigaos*)
9026 library_names_spec='$libname.ixlibrary $libname.a'
9027 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9028 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'
9031 beos*)
9032 library_names_spec='${libname}${shared_ext}'
9033 dynamic_linker="$host_os ld.so"
9034 shlibpath_var=LIBRARY_PATH
9037 bsdi[45]*)
9038 version_type=linux
9039 need_version=no
9040 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9041 soname_spec='${libname}${release}${shared_ext}$major'
9042 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9043 shlibpath_var=LD_LIBRARY_PATH
9044 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9045 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9046 # the default ld.so.conf also contains /usr/contrib/lib and
9047 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9048 # libtool to hard-code these into programs
9051 cygwin* | mingw* | pw32*)
9052 version_type=windows
9053 shrext_cmds=".dll"
9054 need_version=no
9055 need_lib_prefix=no
9057 case $GCC,$host_os in
9058 yes,cygwin* | yes,mingw* | yes,pw32*)
9059 library_names_spec='$libname.dll.a'
9060 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9061 postinstall_cmds='base_file=`basename \${file}`~
9062 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9063 dldir=$destdir/`dirname \$dlpath`~
9064 test -d \$dldir || mkdir -p \$dldir~
9065 $install_prog $dir/$dlname \$dldir/$dlname~
9066 chmod a+x \$dldir/$dlname'
9067 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9068 dlpath=$dir/\$dldll~
9069 $rm \$dlpath'
9070 shlibpath_overrides_runpath=yes
9072 case $host_os in
9073 cygwin*)
9074 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9075 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9076 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9078 mingw*)
9079 # MinGW DLLs use traditional 'lib' prefix
9080 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9081 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9082 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9083 # It is most probably a Windows format PATH printed by
9084 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9085 # path with ; separators, and with drive letters. We can handle the
9086 # drive letters (cygwin fileutils understands them), so leave them,
9087 # especially as we might pass files found there to a mingw objdump,
9088 # which wouldn't understand a cygwinified path. Ahh.
9089 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9090 else
9091 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9094 pw32*)
9095 # pw32 DLLs use 'pw' prefix rather than 'lib'
9096 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9098 esac
9102 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9104 esac
9105 dynamic_linker='Win32 ld.exe'
9106 # FIXME: first we should search . and the directory the executable is in
9107 shlibpath_var=PATH
9110 darwin* | rhapsody*)
9111 dynamic_linker="$host_os dyld"
9112 version_type=darwin
9113 need_lib_prefix=no
9114 need_version=no
9115 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9116 soname_spec='${libname}${release}${major}$shared_ext'
9117 shlibpath_overrides_runpath=yes
9118 shlibpath_var=DYLD_LIBRARY_PATH
9119 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9121 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9122 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9125 dgux*)
9126 version_type=linux
9127 need_lib_prefix=no
9128 need_version=no
9129 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9130 soname_spec='${libname}${release}${shared_ext}$major'
9131 shlibpath_var=LD_LIBRARY_PATH
9134 freebsd1*)
9135 dynamic_linker=no
9138 freebsd* | dragonfly*)
9139 # DragonFly does not have aout. When/if they implement a new
9140 # versioning mechanism, adjust this.
9141 if test -x /usr/bin/objformat; then
9142 objformat=`/usr/bin/objformat`
9143 else
9144 case $host_os in
9145 freebsd[123]*) objformat=aout ;;
9146 *) objformat=elf ;;
9147 esac
9149 version_type=freebsd-$objformat
9150 case $version_type in
9151 freebsd-elf*)
9152 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9153 need_version=no
9154 need_lib_prefix=no
9156 freebsd-*)
9157 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9158 need_version=yes
9160 esac
9161 shlibpath_var=LD_LIBRARY_PATH
9162 case $host_os in
9163 freebsd2*)
9164 shlibpath_overrides_runpath=yes
9166 freebsd3.[01]* | freebsdelf3.[01]*)
9167 shlibpath_overrides_runpath=yes
9168 hardcode_into_libs=yes
9170 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9171 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9172 shlibpath_overrides_runpath=no
9173 hardcode_into_libs=yes
9175 *) # from 4.6 on, and DragonFly
9176 shlibpath_overrides_runpath=yes
9177 hardcode_into_libs=yes
9179 esac
9182 gnu*)
9183 version_type=linux
9184 need_lib_prefix=no
9185 need_version=no
9186 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9187 soname_spec='${libname}${release}${shared_ext}$major'
9188 shlibpath_var=LD_LIBRARY_PATH
9189 hardcode_into_libs=yes
9192 hpux9* | hpux10* | hpux11*)
9193 # Give a soname corresponding to the major version so that dld.sl refuses to
9194 # link against other versions.
9195 version_type=sunos
9196 need_lib_prefix=no
9197 need_version=no
9198 case $host_cpu in
9199 ia64*)
9200 shrext_cmds='.so'
9201 hardcode_into_libs=yes
9202 dynamic_linker="$host_os dld.so"
9203 shlibpath_var=LD_LIBRARY_PATH
9204 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9205 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9206 soname_spec='${libname}${release}${shared_ext}$major'
9207 if test "X$HPUX_IA64_MODE" = X32; then
9208 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9209 else
9210 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9212 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9214 hppa*64*)
9215 shrext_cmds='.sl'
9216 hardcode_into_libs=yes
9217 dynamic_linker="$host_os dld.sl"
9218 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9219 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9220 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9221 soname_spec='${libname}${release}${shared_ext}$major'
9222 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9223 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9226 shrext_cmds='.sl'
9227 dynamic_linker="$host_os dld.sl"
9228 shlibpath_var=SHLIB_PATH
9229 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9230 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9231 soname_spec='${libname}${release}${shared_ext}$major'
9233 esac
9234 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9235 postinstall_cmds='chmod 555 $lib'
9238 interix[3-9]*)
9239 version_type=linux
9240 need_lib_prefix=no
9241 need_version=no
9242 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9243 soname_spec='${libname}${release}${shared_ext}$major'
9244 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9245 shlibpath_var=LD_LIBRARY_PATH
9246 shlibpath_overrides_runpath=no
9247 hardcode_into_libs=yes
9250 irix5* | irix6* | nonstopux*)
9251 case $host_os in
9252 nonstopux*) version_type=nonstopux ;;
9254 if test "$lt_cv_prog_gnu_ld" = yes; then
9255 version_type=linux
9256 else
9257 version_type=irix
9258 fi ;;
9259 esac
9260 need_lib_prefix=no
9261 need_version=no
9262 soname_spec='${libname}${release}${shared_ext}$major'
9263 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9264 case $host_os in
9265 irix5* | nonstopux*)
9266 libsuff= shlibsuff=
9269 case $LD in # libtool.m4 will add one of these switches to LD
9270 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9271 libsuff= shlibsuff= libmagic=32-bit;;
9272 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9273 libsuff=32 shlibsuff=N32 libmagic=N32;;
9274 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9275 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9276 *) libsuff= shlibsuff= libmagic=never-match;;
9277 esac
9279 esac
9280 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9281 shlibpath_overrides_runpath=no
9282 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9283 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9284 hardcode_into_libs=yes
9287 # No shared lib support for Linux oldld, aout, or coff.
9288 linux*oldld* | linux*aout* | linux*coff*)
9289 dynamic_linker=no
9292 # This must be Linux ELF.
9293 linux* | k*bsd*-gnu)
9294 version_type=linux
9295 need_lib_prefix=no
9296 need_version=no
9297 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9298 soname_spec='${libname}${release}${shared_ext}$major'
9299 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9300 shlibpath_var=LD_LIBRARY_PATH
9301 shlibpath_overrides_runpath=no
9302 # This implies no fast_install, which is unacceptable.
9303 # Some rework will be needed to allow for fast_install
9304 # before this can be enabled.
9305 hardcode_into_libs=yes
9307 # Append ld.so.conf contents to the search path
9308 if test -f /etc/ld.so.conf; then
9309 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
9310 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9313 # We used to test for /lib/ld.so.1 and disable shared libraries on
9314 # powerpc, because MkLinux only supported shared libraries with the
9315 # GNU dynamic linker. Since this was broken with cross compilers,
9316 # most powerpc-linux boxes support dynamic linking these days and
9317 # people can always --disable-shared, the test was removed, and we
9318 # assume the GNU/Linux dynamic linker is in use.
9319 dynamic_linker='GNU/Linux ld.so'
9322 netbsdelf*-gnu)
9323 version_type=linux
9324 need_lib_prefix=no
9325 need_version=no
9326 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9327 soname_spec='${libname}${release}${shared_ext}$major'
9328 shlibpath_var=LD_LIBRARY_PATH
9329 shlibpath_overrides_runpath=no
9330 hardcode_into_libs=yes
9331 dynamic_linker='NetBSD ld.elf_so'
9334 netbsd*)
9335 version_type=sunos
9336 need_lib_prefix=no
9337 need_version=no
9338 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9339 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9340 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9341 dynamic_linker='NetBSD (a.out) ld.so'
9342 else
9343 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9344 soname_spec='${libname}${release}${shared_ext}$major'
9345 dynamic_linker='NetBSD ld.elf_so'
9347 shlibpath_var=LD_LIBRARY_PATH
9348 shlibpath_overrides_runpath=yes
9349 hardcode_into_libs=yes
9352 newsos6)
9353 version_type=linux
9354 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9355 shlibpath_var=LD_LIBRARY_PATH
9356 shlibpath_overrides_runpath=yes
9359 nto-qnx*)
9360 version_type=linux
9361 need_lib_prefix=no
9362 need_version=no
9363 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9364 soname_spec='${libname}${release}${shared_ext}$major'
9365 shlibpath_var=LD_LIBRARY_PATH
9366 shlibpath_overrides_runpath=yes
9369 openbsd*)
9370 version_type=sunos
9371 sys_lib_dlsearch_path_spec="/usr/lib"
9372 need_lib_prefix=no
9373 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9374 case $host_os in
9375 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9376 *) need_version=no ;;
9377 esac
9378 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9379 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9380 shlibpath_var=LD_LIBRARY_PATH
9381 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9382 case $host_os in
9383 openbsd2.[89] | openbsd2.[89].*)
9384 shlibpath_overrides_runpath=no
9387 shlibpath_overrides_runpath=yes
9389 esac
9390 else
9391 shlibpath_overrides_runpath=yes
9395 os2*)
9396 libname_spec='$name'
9397 shrext_cmds=".dll"
9398 need_lib_prefix=no
9399 library_names_spec='$libname${shared_ext} $libname.a'
9400 dynamic_linker='OS/2 ld.exe'
9401 shlibpath_var=LIBPATH
9404 osf3* | osf4* | osf5*)
9405 version_type=osf
9406 need_lib_prefix=no
9407 need_version=no
9408 soname_spec='${libname}${release}${shared_ext}$major'
9409 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9410 shlibpath_var=LD_LIBRARY_PATH
9411 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9412 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9415 rdos*)
9416 dynamic_linker=no
9419 solaris*)
9420 version_type=linux
9421 need_lib_prefix=no
9422 need_version=no
9423 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9424 soname_spec='${libname}${release}${shared_ext}$major'
9425 shlibpath_var=LD_LIBRARY_PATH
9426 shlibpath_overrides_runpath=yes
9427 hardcode_into_libs=yes
9428 # ldd complains unless libraries are executable
9429 postinstall_cmds='chmod +x $lib'
9432 sunos4*)
9433 version_type=sunos
9434 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9435 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9436 shlibpath_var=LD_LIBRARY_PATH
9437 shlibpath_overrides_runpath=yes
9438 if test "$with_gnu_ld" = yes; then
9439 need_lib_prefix=no
9441 need_version=yes
9444 sysv4 | sysv4.3*)
9445 version_type=linux
9446 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9447 soname_spec='${libname}${release}${shared_ext}$major'
9448 shlibpath_var=LD_LIBRARY_PATH
9449 case $host_vendor in
9450 sni)
9451 shlibpath_overrides_runpath=no
9452 need_lib_prefix=no
9453 export_dynamic_flag_spec='${wl}-Blargedynsym'
9454 runpath_var=LD_RUN_PATH
9456 siemens)
9457 need_lib_prefix=no
9459 motorola)
9460 need_lib_prefix=no
9461 need_version=no
9462 shlibpath_overrides_runpath=no
9463 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9465 esac
9468 sysv4*MP*)
9469 if test -d /usr/nec ;then
9470 version_type=linux
9471 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9472 soname_spec='$libname${shared_ext}.$major'
9473 shlibpath_var=LD_LIBRARY_PATH
9477 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9478 version_type=freebsd-elf
9479 need_lib_prefix=no
9480 need_version=no
9481 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9482 soname_spec='${libname}${release}${shared_ext}$major'
9483 shlibpath_var=LD_LIBRARY_PATH
9484 hardcode_into_libs=yes
9485 if test "$with_gnu_ld" = yes; then
9486 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9487 shlibpath_overrides_runpath=no
9488 else
9489 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9490 shlibpath_overrides_runpath=yes
9491 case $host_os in
9492 sco3.2v5*)
9493 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9495 esac
9497 sys_lib_dlsearch_path_spec='/usr/lib'
9500 uts4*)
9501 version_type=linux
9502 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9503 soname_spec='${libname}${release}${shared_ext}$major'
9504 shlibpath_var=LD_LIBRARY_PATH
9508 dynamic_linker=no
9510 esac
9511 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9512 echo "${ECHO_T}$dynamic_linker" >&6; }
9513 test "$dynamic_linker" = no && can_build_shared=no
9515 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
9516 echo $ECHO_N "(cached) $ECHO_C" >&6
9517 else
9518 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
9521 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
9522 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
9523 echo $ECHO_N "(cached) $ECHO_C" >&6
9524 else
9525 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
9528 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
9530 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9531 if test "$GCC" = yes; then
9532 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9535 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9536 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
9537 hardcode_action=
9538 if test -n "$hardcode_libdir_flag_spec" || \
9539 test -n "$runpath_var" || \
9540 test "X$hardcode_automatic" = "Xyes" ; then
9542 # We can hardcode non-existant directories.
9543 if test "$hardcode_direct" != no &&
9544 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9545 # have to relink, otherwise we might link with an installed library
9546 # when we should be linking with a yet-to-be-installed one
9547 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9548 test "$hardcode_minus_L" != no; then
9549 # Linking always hardcodes the temporary library directory.
9550 hardcode_action=relink
9551 else
9552 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9553 hardcode_action=immediate
9555 else
9556 # We cannot hardcode anything, or else we can only hardcode existing
9557 # directories.
9558 hardcode_action=unsupported
9560 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
9561 echo "${ECHO_T}$hardcode_action" >&6; }
9563 if test "$hardcode_action" = relink; then
9564 # Fast installation is not supported
9565 enable_fast_install=no
9566 elif test "$shlibpath_overrides_runpath" = yes ||
9567 test "$enable_shared" = no; then
9568 # Fast installation is not necessary
9569 enable_fast_install=needless
9572 striplib=
9573 old_striplib=
9574 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9575 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
9576 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9577 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9578 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9579 { echo "$as_me:$LINENO: result: yes" >&5
9580 echo "${ECHO_T}yes" >&6; }
9581 else
9582 # FIXME - insert some real tests, host_os isn't really good enough
9583 case $host_os in
9584 darwin*)
9585 if test -n "$STRIP" ; then
9586 striplib="$STRIP -x"
9587 old_striplib="$STRIP -S"
9588 { echo "$as_me:$LINENO: result: yes" >&5
9589 echo "${ECHO_T}yes" >&6; }
9590 else
9591 { echo "$as_me:$LINENO: result: no" >&5
9592 echo "${ECHO_T}no" >&6; }
9596 { echo "$as_me:$LINENO: result: no" >&5
9597 echo "${ECHO_T}no" >&6; }
9599 esac
9602 if test "x$enable_dlopen" != xyes; then
9603 enable_dlopen=unknown
9604 enable_dlopen_self=unknown
9605 enable_dlopen_self_static=unknown
9606 else
9607 lt_cv_dlopen=no
9608 lt_cv_dlopen_libs=
9610 case $host_os in
9611 beos*)
9612 lt_cv_dlopen="load_add_on"
9613 lt_cv_dlopen_libs=
9614 lt_cv_dlopen_self=yes
9617 mingw* | pw32*)
9618 lt_cv_dlopen="LoadLibrary"
9619 lt_cv_dlopen_libs=
9622 cygwin*)
9623 lt_cv_dlopen="dlopen"
9624 lt_cv_dlopen_libs=
9627 darwin*)
9628 # if libdl is installed we need to link against it
9629 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9630 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9631 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9632 echo $ECHO_N "(cached) $ECHO_C" >&6
9633 else
9634 ac_check_lib_save_LIBS=$LIBS
9635 LIBS="-ldl $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 dlopen ();
9651 main ()
9653 return dlopen ();
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_dl_dlopen=yes
9677 else
9678 echo "$as_me: failed program was:" >&5
9679 sed 's/^/| /' conftest.$ac_ext >&5
9681 ac_cv_lib_dl_dlopen=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_dl_dlopen" >&5
9689 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9690 if test $ac_cv_lib_dl_dlopen = yes; then
9691 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9692 else
9694 lt_cv_dlopen="dyld"
9695 lt_cv_dlopen_libs=
9696 lt_cv_dlopen_self=yes
9703 { echo "$as_me:$LINENO: checking for shl_load" >&5
9704 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9705 if test "${ac_cv_func_shl_load+set}" = set; then
9706 echo $ECHO_N "(cached) $ECHO_C" >&6
9707 else
9708 cat >conftest.$ac_ext <<_ACEOF
9709 /* confdefs.h. */
9710 _ACEOF
9711 cat confdefs.h >>conftest.$ac_ext
9712 cat >>conftest.$ac_ext <<_ACEOF
9713 /* end confdefs.h. */
9714 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9715 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9716 #define shl_load innocuous_shl_load
9718 /* System header to define __stub macros and hopefully few prototypes,
9719 which can conflict with char shl_load (); below.
9720 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9721 <limits.h> exists even on freestanding compilers. */
9723 #ifdef __STDC__
9724 # include <limits.h>
9725 #else
9726 # include <assert.h>
9727 #endif
9729 #undef shl_load
9731 /* Override any GCC internal prototype to avoid an error.
9732 Use char because int might match the return type of a GCC
9733 builtin and then its argument prototype would still apply. */
9734 #ifdef __cplusplus
9735 extern "C"
9736 #endif
9737 char shl_load ();
9738 /* The GNU C library defines this for functions which it implements
9739 to always fail with ENOSYS. Some functions are actually named
9740 something starting with __ and the normal name is an alias. */
9741 #if defined __stub_shl_load || defined __stub___shl_load
9742 choke me
9743 #endif
9746 main ()
9748 return shl_load ();
9750 return 0;
9752 _ACEOF
9753 rm -f conftest.$ac_objext conftest$ac_exeext
9754 if { (ac_try="$ac_link"
9755 case "(($ac_try" in
9756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9757 *) ac_try_echo=$ac_try;;
9758 esac
9759 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9760 (eval "$ac_link") 2>conftest.er1
9761 ac_status=$?
9762 grep -v '^ *+' conftest.er1 >conftest.err
9763 rm -f conftest.er1
9764 cat conftest.err >&5
9765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9766 (exit $ac_status); } && {
9767 test -z "$ac_c_werror_flag" ||
9768 test ! -s conftest.err
9769 } && test -s conftest$ac_exeext &&
9770 $as_test_x conftest$ac_exeext; then
9771 ac_cv_func_shl_load=yes
9772 else
9773 echo "$as_me: failed program was:" >&5
9774 sed 's/^/| /' conftest.$ac_ext >&5
9776 ac_cv_func_shl_load=no
9779 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9780 conftest$ac_exeext conftest.$ac_ext
9782 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9783 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9784 if test $ac_cv_func_shl_load = yes; then
9785 lt_cv_dlopen="shl_load"
9786 else
9787 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9788 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9789 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9790 echo $ECHO_N "(cached) $ECHO_C" >&6
9791 else
9792 ac_check_lib_save_LIBS=$LIBS
9793 LIBS="-ldld $LIBS"
9794 cat >conftest.$ac_ext <<_ACEOF
9795 /* confdefs.h. */
9796 _ACEOF
9797 cat confdefs.h >>conftest.$ac_ext
9798 cat >>conftest.$ac_ext <<_ACEOF
9799 /* end confdefs.h. */
9801 /* Override any GCC internal prototype to avoid an error.
9802 Use char because int might match the return type of a GCC
9803 builtin and then its argument prototype would still apply. */
9804 #ifdef __cplusplus
9805 extern "C"
9806 #endif
9807 char shl_load ();
9809 main ()
9811 return shl_load ();
9813 return 0;
9815 _ACEOF
9816 rm -f conftest.$ac_objext conftest$ac_exeext
9817 if { (ac_try="$ac_link"
9818 case "(($ac_try" in
9819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9820 *) ac_try_echo=$ac_try;;
9821 esac
9822 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9823 (eval "$ac_link") 2>conftest.er1
9824 ac_status=$?
9825 grep -v '^ *+' conftest.er1 >conftest.err
9826 rm -f conftest.er1
9827 cat conftest.err >&5
9828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9829 (exit $ac_status); } && {
9830 test -z "$ac_c_werror_flag" ||
9831 test ! -s conftest.err
9832 } && test -s conftest$ac_exeext &&
9833 $as_test_x conftest$ac_exeext; then
9834 ac_cv_lib_dld_shl_load=yes
9835 else
9836 echo "$as_me: failed program was:" >&5
9837 sed 's/^/| /' conftest.$ac_ext >&5
9839 ac_cv_lib_dld_shl_load=no
9842 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9843 conftest$ac_exeext conftest.$ac_ext
9844 LIBS=$ac_check_lib_save_LIBS
9846 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9847 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9848 if test $ac_cv_lib_dld_shl_load = yes; then
9849 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
9850 else
9851 { echo "$as_me:$LINENO: checking for dlopen" >&5
9852 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
9853 if test "${ac_cv_func_dlopen+set}" = set; then
9854 echo $ECHO_N "(cached) $ECHO_C" >&6
9855 else
9856 cat >conftest.$ac_ext <<_ACEOF
9857 /* confdefs.h. */
9858 _ACEOF
9859 cat confdefs.h >>conftest.$ac_ext
9860 cat >>conftest.$ac_ext <<_ACEOF
9861 /* end confdefs.h. */
9862 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9863 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9864 #define dlopen innocuous_dlopen
9866 /* System header to define __stub macros and hopefully few prototypes,
9867 which can conflict with char dlopen (); below.
9868 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9869 <limits.h> exists even on freestanding compilers. */
9871 #ifdef __STDC__
9872 # include <limits.h>
9873 #else
9874 # include <assert.h>
9875 #endif
9877 #undef dlopen
9879 /* Override any GCC internal prototype to avoid an error.
9880 Use char because int might match the return type of a GCC
9881 builtin and then its argument prototype would still apply. */
9882 #ifdef __cplusplus
9883 extern "C"
9884 #endif
9885 char dlopen ();
9886 /* The GNU C library defines this for functions which it implements
9887 to always fail with ENOSYS. Some functions are actually named
9888 something starting with __ and the normal name is an alias. */
9889 #if defined __stub_dlopen || defined __stub___dlopen
9890 choke me
9891 #endif
9894 main ()
9896 return dlopen ();
9898 return 0;
9900 _ACEOF
9901 rm -f conftest.$ac_objext conftest$ac_exeext
9902 if { (ac_try="$ac_link"
9903 case "(($ac_try" in
9904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9905 *) ac_try_echo=$ac_try;;
9906 esac
9907 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9908 (eval "$ac_link") 2>conftest.er1
9909 ac_status=$?
9910 grep -v '^ *+' conftest.er1 >conftest.err
9911 rm -f conftest.er1
9912 cat conftest.err >&5
9913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9914 (exit $ac_status); } && {
9915 test -z "$ac_c_werror_flag" ||
9916 test ! -s conftest.err
9917 } && test -s conftest$ac_exeext &&
9918 $as_test_x conftest$ac_exeext; then
9919 ac_cv_func_dlopen=yes
9920 else
9921 echo "$as_me: failed program was:" >&5
9922 sed 's/^/| /' conftest.$ac_ext >&5
9924 ac_cv_func_dlopen=no
9927 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9928 conftest$ac_exeext conftest.$ac_ext
9930 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9931 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
9932 if test $ac_cv_func_dlopen = yes; then
9933 lt_cv_dlopen="dlopen"
9934 else
9935 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9936 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9937 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9938 echo $ECHO_N "(cached) $ECHO_C" >&6
9939 else
9940 ac_check_lib_save_LIBS=$LIBS
9941 LIBS="-ldl $LIBS"
9942 cat >conftest.$ac_ext <<_ACEOF
9943 /* confdefs.h. */
9944 _ACEOF
9945 cat confdefs.h >>conftest.$ac_ext
9946 cat >>conftest.$ac_ext <<_ACEOF
9947 /* end confdefs.h. */
9949 /* Override any GCC internal prototype to avoid an error.
9950 Use char because int might match the return type of a GCC
9951 builtin and then its argument prototype would still apply. */
9952 #ifdef __cplusplus
9953 extern "C"
9954 #endif
9955 char dlopen ();
9957 main ()
9959 return dlopen ();
9961 return 0;
9963 _ACEOF
9964 rm -f conftest.$ac_objext conftest$ac_exeext
9965 if { (ac_try="$ac_link"
9966 case "(($ac_try" in
9967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9968 *) ac_try_echo=$ac_try;;
9969 esac
9970 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9971 (eval "$ac_link") 2>conftest.er1
9972 ac_status=$?
9973 grep -v '^ *+' conftest.er1 >conftest.err
9974 rm -f conftest.er1
9975 cat conftest.err >&5
9976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9977 (exit $ac_status); } && {
9978 test -z "$ac_c_werror_flag" ||
9979 test ! -s conftest.err
9980 } && test -s conftest$ac_exeext &&
9981 $as_test_x conftest$ac_exeext; then
9982 ac_cv_lib_dl_dlopen=yes
9983 else
9984 echo "$as_me: failed program was:" >&5
9985 sed 's/^/| /' conftest.$ac_ext >&5
9987 ac_cv_lib_dl_dlopen=no
9990 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9991 conftest$ac_exeext conftest.$ac_ext
9992 LIBS=$ac_check_lib_save_LIBS
9994 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9995 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9996 if test $ac_cv_lib_dl_dlopen = yes; then
9997 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9998 else
9999 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10000 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10001 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10002 echo $ECHO_N "(cached) $ECHO_C" >&6
10003 else
10004 ac_check_lib_save_LIBS=$LIBS
10005 LIBS="-lsvld $LIBS"
10006 cat >conftest.$ac_ext <<_ACEOF
10007 /* confdefs.h. */
10008 _ACEOF
10009 cat confdefs.h >>conftest.$ac_ext
10010 cat >>conftest.$ac_ext <<_ACEOF
10011 /* end confdefs.h. */
10013 /* Override any GCC internal prototype to avoid an error.
10014 Use char because int might match the return type of a GCC
10015 builtin and then its argument prototype would still apply. */
10016 #ifdef __cplusplus
10017 extern "C"
10018 #endif
10019 char dlopen ();
10021 main ()
10023 return dlopen ();
10025 return 0;
10027 _ACEOF
10028 rm -f conftest.$ac_objext conftest$ac_exeext
10029 if { (ac_try="$ac_link"
10030 case "(($ac_try" in
10031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10032 *) ac_try_echo=$ac_try;;
10033 esac
10034 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10035 (eval "$ac_link") 2>conftest.er1
10036 ac_status=$?
10037 grep -v '^ *+' conftest.er1 >conftest.err
10038 rm -f conftest.er1
10039 cat conftest.err >&5
10040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10041 (exit $ac_status); } && {
10042 test -z "$ac_c_werror_flag" ||
10043 test ! -s conftest.err
10044 } && test -s conftest$ac_exeext &&
10045 $as_test_x conftest$ac_exeext; then
10046 ac_cv_lib_svld_dlopen=yes
10047 else
10048 echo "$as_me: failed program was:" >&5
10049 sed 's/^/| /' conftest.$ac_ext >&5
10051 ac_cv_lib_svld_dlopen=no
10054 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10055 conftest$ac_exeext conftest.$ac_ext
10056 LIBS=$ac_check_lib_save_LIBS
10058 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10059 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10060 if test $ac_cv_lib_svld_dlopen = yes; then
10061 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10062 else
10063 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10064 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10065 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10066 echo $ECHO_N "(cached) $ECHO_C" >&6
10067 else
10068 ac_check_lib_save_LIBS=$LIBS
10069 LIBS="-ldld $LIBS"
10070 cat >conftest.$ac_ext <<_ACEOF
10071 /* confdefs.h. */
10072 _ACEOF
10073 cat confdefs.h >>conftest.$ac_ext
10074 cat >>conftest.$ac_ext <<_ACEOF
10075 /* end confdefs.h. */
10077 /* Override any GCC internal prototype to avoid an error.
10078 Use char because int might match the return type of a GCC
10079 builtin and then its argument prototype would still apply. */
10080 #ifdef __cplusplus
10081 extern "C"
10082 #endif
10083 char dld_link ();
10085 main ()
10087 return dld_link ();
10089 return 0;
10091 _ACEOF
10092 rm -f conftest.$ac_objext conftest$ac_exeext
10093 if { (ac_try="$ac_link"
10094 case "(($ac_try" in
10095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10096 *) ac_try_echo=$ac_try;;
10097 esac
10098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10099 (eval "$ac_link") 2>conftest.er1
10100 ac_status=$?
10101 grep -v '^ *+' conftest.er1 >conftest.err
10102 rm -f conftest.er1
10103 cat conftest.err >&5
10104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10105 (exit $ac_status); } && {
10106 test -z "$ac_c_werror_flag" ||
10107 test ! -s conftest.err
10108 } && test -s conftest$ac_exeext &&
10109 $as_test_x conftest$ac_exeext; then
10110 ac_cv_lib_dld_dld_link=yes
10111 else
10112 echo "$as_me: failed program was:" >&5
10113 sed 's/^/| /' conftest.$ac_ext >&5
10115 ac_cv_lib_dld_dld_link=no
10118 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10119 conftest$ac_exeext conftest.$ac_ext
10120 LIBS=$ac_check_lib_save_LIBS
10122 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10123 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10124 if test $ac_cv_lib_dld_dld_link = yes; then
10125 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10144 esac
10146 if test "x$lt_cv_dlopen" != xno; then
10147 enable_dlopen=yes
10148 else
10149 enable_dlopen=no
10152 case $lt_cv_dlopen in
10153 dlopen)
10154 save_CPPFLAGS="$CPPFLAGS"
10155 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10157 save_LDFLAGS="$LDFLAGS"
10158 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10160 save_LIBS="$LIBS"
10161 LIBS="$lt_cv_dlopen_libs $LIBS"
10163 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10164 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
10165 if test "${lt_cv_dlopen_self+set}" = set; then
10166 echo $ECHO_N "(cached) $ECHO_C" >&6
10167 else
10168 if test "$cross_compiling" = yes; then :
10169 lt_cv_dlopen_self=cross
10170 else
10171 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10172 lt_status=$lt_dlunknown
10173 cat > conftest.$ac_ext <<EOF
10174 #line 10174 "configure"
10175 #include "confdefs.h"
10177 #if HAVE_DLFCN_H
10178 #include <dlfcn.h>
10179 #endif
10181 #include <stdio.h>
10183 #ifdef RTLD_GLOBAL
10184 # define LT_DLGLOBAL RTLD_GLOBAL
10185 #else
10186 # ifdef DL_GLOBAL
10187 # define LT_DLGLOBAL DL_GLOBAL
10188 # else
10189 # define LT_DLGLOBAL 0
10190 # endif
10191 #endif
10193 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10194 find out it does not work in some platform. */
10195 #ifndef LT_DLLAZY_OR_NOW
10196 # ifdef RTLD_LAZY
10197 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10198 # else
10199 # ifdef DL_LAZY
10200 # define LT_DLLAZY_OR_NOW DL_LAZY
10201 # else
10202 # ifdef RTLD_NOW
10203 # define LT_DLLAZY_OR_NOW RTLD_NOW
10204 # else
10205 # ifdef DL_NOW
10206 # define LT_DLLAZY_OR_NOW DL_NOW
10207 # else
10208 # define LT_DLLAZY_OR_NOW 0
10209 # endif
10210 # endif
10211 # endif
10212 # endif
10213 #endif
10215 #ifdef __cplusplus
10216 extern "C" void exit (int);
10217 #endif
10219 void fnord() { int i=42;}
10220 int main ()
10222 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10223 int status = $lt_dlunknown;
10225 if (self)
10227 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10228 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10229 /* dlclose (self); */
10231 else
10232 puts (dlerror ());
10234 exit (status);
10237 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10238 (eval $ac_link) 2>&5
10239 ac_status=$?
10240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10241 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10242 (./conftest; exit; ) >&5 2>/dev/null
10243 lt_status=$?
10244 case x$lt_status in
10245 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10246 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10247 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10248 esac
10249 else :
10250 # compilation failed
10251 lt_cv_dlopen_self=no
10254 rm -fr conftest*
10258 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10259 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
10261 if test "x$lt_cv_dlopen_self" = xyes; then
10262 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10263 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10264 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
10265 if test "${lt_cv_dlopen_self_static+set}" = set; then
10266 echo $ECHO_N "(cached) $ECHO_C" >&6
10267 else
10268 if test "$cross_compiling" = yes; then :
10269 lt_cv_dlopen_self_static=cross
10270 else
10271 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10272 lt_status=$lt_dlunknown
10273 cat > conftest.$ac_ext <<EOF
10274 #line 10274 "configure"
10275 #include "confdefs.h"
10277 #if HAVE_DLFCN_H
10278 #include <dlfcn.h>
10279 #endif
10281 #include <stdio.h>
10283 #ifdef RTLD_GLOBAL
10284 # define LT_DLGLOBAL RTLD_GLOBAL
10285 #else
10286 # ifdef DL_GLOBAL
10287 # define LT_DLGLOBAL DL_GLOBAL
10288 # else
10289 # define LT_DLGLOBAL 0
10290 # endif
10291 #endif
10293 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10294 find out it does not work in some platform. */
10295 #ifndef LT_DLLAZY_OR_NOW
10296 # ifdef RTLD_LAZY
10297 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10298 # else
10299 # ifdef DL_LAZY
10300 # define LT_DLLAZY_OR_NOW DL_LAZY
10301 # else
10302 # ifdef RTLD_NOW
10303 # define LT_DLLAZY_OR_NOW RTLD_NOW
10304 # else
10305 # ifdef DL_NOW
10306 # define LT_DLLAZY_OR_NOW DL_NOW
10307 # else
10308 # define LT_DLLAZY_OR_NOW 0
10309 # endif
10310 # endif
10311 # endif
10312 # endif
10313 #endif
10315 #ifdef __cplusplus
10316 extern "C" void exit (int);
10317 #endif
10319 void fnord() { int i=42;}
10320 int main ()
10322 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10323 int status = $lt_dlunknown;
10325 if (self)
10327 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10328 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10329 /* dlclose (self); */
10331 else
10332 puts (dlerror ());
10334 exit (status);
10337 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10338 (eval $ac_link) 2>&5
10339 ac_status=$?
10340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10341 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10342 (./conftest; exit; ) >&5 2>/dev/null
10343 lt_status=$?
10344 case x$lt_status in
10345 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10346 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10347 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10348 esac
10349 else :
10350 # compilation failed
10351 lt_cv_dlopen_self_static=no
10354 rm -fr conftest*
10358 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10359 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
10362 CPPFLAGS="$save_CPPFLAGS"
10363 LDFLAGS="$save_LDFLAGS"
10364 LIBS="$save_LIBS"
10366 esac
10368 case $lt_cv_dlopen_self in
10369 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10370 *) enable_dlopen_self=unknown ;;
10371 esac
10373 case $lt_cv_dlopen_self_static in
10374 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10375 *) enable_dlopen_self_static=unknown ;;
10376 esac
10380 # Report which library types will actually be built
10381 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10382 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
10383 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
10384 echo "${ECHO_T}$can_build_shared" >&6; }
10386 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10387 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
10388 test "$can_build_shared" = "no" && enable_shared=no
10390 # On AIX, shared libraries and static libraries use the same namespace, and
10391 # are all built from PIC.
10392 case $host_os in
10393 aix3*)
10394 test "$enable_shared" = yes && enable_static=no
10395 if test -n "$RANLIB"; then
10396 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10397 postinstall_cmds='$RANLIB $lib'
10401 aix[4-9]*)
10402 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10403 test "$enable_shared" = yes && enable_static=no
10406 esac
10407 { echo "$as_me:$LINENO: result: $enable_shared" >&5
10408 echo "${ECHO_T}$enable_shared" >&6; }
10410 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10411 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
10412 # Make sure either enable_shared or enable_static is yes.
10413 test "$enable_shared" = yes || enable_static=yes
10414 { echo "$as_me:$LINENO: result: $enable_static" >&5
10415 echo "${ECHO_T}$enable_static" >&6; }
10417 # The else clause should only fire when bootstrapping the
10418 # libtool distribution, otherwise you forgot to ship ltmain.sh
10419 # with your package, and you will get complaints that there are
10420 # no rules to generate ltmain.sh.
10421 if test -f "$ltmain"; then
10422 # See if we are running on zsh, and set the options which allow our commands through
10423 # without removal of \ escapes.
10424 if test -n "${ZSH_VERSION+set}" ; then
10425 setopt NO_GLOB_SUBST
10427 # Now quote all the things that may contain metacharacters while being
10428 # careful not to overquote the AC_SUBSTed values. We take copies of the
10429 # variables and quote the copies for generation of the libtool script.
10430 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10431 SED SHELL STRIP \
10432 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10433 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10434 deplibs_check_method reload_flag reload_cmds need_locks \
10435 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10436 lt_cv_sys_global_symbol_to_c_name_address \
10437 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10438 old_postinstall_cmds old_postuninstall_cmds \
10439 compiler \
10440 CC \
10441 LD \
10442 lt_prog_compiler_wl \
10443 lt_prog_compiler_pic \
10444 lt_prog_compiler_static \
10445 lt_prog_compiler_no_builtin_flag \
10446 export_dynamic_flag_spec \
10447 thread_safe_flag_spec \
10448 whole_archive_flag_spec \
10449 enable_shared_with_static_runtimes \
10450 old_archive_cmds \
10451 old_archive_from_new_cmds \
10452 predep_objects \
10453 postdep_objects \
10454 predeps \
10455 postdeps \
10456 compiler_lib_search_path \
10457 compiler_lib_search_dirs \
10458 archive_cmds \
10459 archive_expsym_cmds \
10460 postinstall_cmds \
10461 postuninstall_cmds \
10462 old_archive_from_expsyms_cmds \
10463 allow_undefined_flag \
10464 no_undefined_flag \
10465 export_symbols_cmds \
10466 hardcode_libdir_flag_spec \
10467 hardcode_libdir_flag_spec_ld \
10468 hardcode_libdir_separator \
10469 hardcode_automatic \
10470 module_cmds \
10471 module_expsym_cmds \
10472 lt_cv_prog_compiler_c_o \
10473 fix_srcfile_path \
10474 exclude_expsyms \
10475 include_expsyms; do
10477 case $var in
10478 old_archive_cmds | \
10479 old_archive_from_new_cmds | \
10480 archive_cmds | \
10481 archive_expsym_cmds | \
10482 module_cmds | \
10483 module_expsym_cmds | \
10484 old_archive_from_expsyms_cmds | \
10485 export_symbols_cmds | \
10486 extract_expsyms_cmds | reload_cmds | finish_cmds | \
10487 postinstall_cmds | postuninstall_cmds | \
10488 old_postinstall_cmds | old_postuninstall_cmds | \
10489 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10490 # Double-quote double-evaled strings.
10491 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10494 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10496 esac
10497 done
10499 case $lt_echo in
10500 *'\$0 --fallback-echo"')
10501 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10503 esac
10505 cfgfile="${ofile}T"
10506 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10507 $rm -f "$cfgfile"
10508 { echo "$as_me:$LINENO: creating $ofile" >&5
10509 echo "$as_me: creating $ofile" >&6;}
10511 cat <<__EOF__ >> "$cfgfile"
10512 #! $SHELL
10514 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10515 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10516 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
10518 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
10519 # Free Software Foundation, Inc.
10521 # This file is part of GNU Libtool:
10522 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10524 # This program is free software; you can redistribute it and/or modify
10525 # it under the terms of the GNU General Public License as published by
10526 # the Free Software Foundation; either version 2 of the License, or
10527 # (at your option) any later version.
10529 # This program is distributed in the hope that it will be useful, but
10530 # WITHOUT ANY WARRANTY; without even the implied warranty of
10531 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
10532 # General Public License for more details.
10534 # You should have received a copy of the GNU General Public License
10535 # along with this program; if not, write to the Free Software
10536 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10538 # As a special exception to the GNU General Public License, if you
10539 # distribute this file as part of a program that contains a
10540 # configuration script generated by Autoconf, you may include it under
10541 # the same distribution terms that you use for the rest of that program.
10543 # A sed program that does not truncate output.
10544 SED=$lt_SED
10546 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
10547 Xsed="$SED -e 1s/^X//"
10549 # The HP-UX ksh and POSIX shell print the target directory to stdout
10550 # if CDPATH is set.
10551 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10553 # The names of the tagged configurations supported by this script.
10554 available_tags=
10556 # ### BEGIN LIBTOOL CONFIG
10558 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10560 # Shell to use when invoking shell scripts.
10561 SHELL=$lt_SHELL
10563 # Whether or not to build shared libraries.
10564 build_libtool_libs=$enable_shared
10566 # Whether or not to build static libraries.
10567 build_old_libs=$enable_static
10569 # Whether or not to add -lc for building shared libraries.
10570 build_libtool_need_lc=$archive_cmds_need_lc
10572 # Whether or not to disallow shared libs when runtime libs are static
10573 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10575 # Whether or not to optimize for fast installation.
10576 fast_install=$enable_fast_install
10578 # The host system.
10579 host_alias=$host_alias
10580 host=$host
10581 host_os=$host_os
10583 # The build system.
10584 build_alias=$build_alias
10585 build=$build
10586 build_os=$build_os
10588 # An echo program that does not interpret backslashes.
10589 echo=$lt_echo
10591 # The archiver.
10592 AR=$lt_AR
10593 AR_FLAGS=$lt_AR_FLAGS
10595 # A C compiler.
10596 LTCC=$lt_LTCC
10598 # LTCC compiler flags.
10599 LTCFLAGS=$lt_LTCFLAGS
10601 # A language-specific compiler.
10602 CC=$lt_compiler
10604 # Is the compiler the GNU C compiler?
10605 with_gcc=$GCC
10607 # An ERE matcher.
10608 EGREP=$lt_EGREP
10610 # The linker used to build libraries.
10611 LD=$lt_LD
10613 # Whether we need hard or soft links.
10614 LN_S=$lt_LN_S
10616 # A BSD-compatible nm program.
10617 NM=$lt_NM
10619 # A symbol stripping program
10620 STRIP=$lt_STRIP
10622 # Used to examine libraries when file_magic_cmd begins "file"
10623 MAGIC_CMD=$MAGIC_CMD
10625 # Used on cygwin: DLL creation program.
10626 DLLTOOL="$DLLTOOL"
10628 # Used on cygwin: object dumper.
10629 OBJDUMP="$OBJDUMP"
10631 # Used on cygwin: assembler.
10632 AS="$AS"
10634 # The name of the directory that contains temporary libtool files.
10635 objdir=$objdir
10637 # How to create reloadable object files.
10638 reload_flag=$lt_reload_flag
10639 reload_cmds=$lt_reload_cmds
10641 # How to pass a linker flag through the compiler.
10642 wl=$lt_lt_prog_compiler_wl
10644 # Object file suffix (normally "o").
10645 objext="$ac_objext"
10647 # Old archive suffix (normally "a").
10648 libext="$libext"
10650 # Shared library suffix (normally ".so").
10651 shrext_cmds='$shrext_cmds'
10653 # Executable file suffix (normally "").
10654 exeext="$exeext"
10656 # Additional compiler flags for building library objects.
10657 pic_flag=$lt_lt_prog_compiler_pic
10658 pic_mode=$pic_mode
10660 # What is the maximum length of a command?
10661 max_cmd_len=$lt_cv_sys_max_cmd_len
10663 # Does compiler simultaneously support -c and -o options?
10664 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10666 # Must we lock files when doing compilation?
10667 need_locks=$lt_need_locks
10669 # Do we need the lib prefix for modules?
10670 need_lib_prefix=$need_lib_prefix
10672 # Do we need a version for libraries?
10673 need_version=$need_version
10675 # Whether dlopen is supported.
10676 dlopen_support=$enable_dlopen
10678 # Whether dlopen of programs is supported.
10679 dlopen_self=$enable_dlopen_self
10681 # Whether dlopen of statically linked programs is supported.
10682 dlopen_self_static=$enable_dlopen_self_static
10684 # Compiler flag to prevent dynamic linking.
10685 link_static_flag=$lt_lt_prog_compiler_static
10687 # Compiler flag to turn off builtin functions.
10688 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10690 # Compiler flag to allow reflexive dlopens.
10691 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10693 # Compiler flag to generate shared objects directly from archives.
10694 whole_archive_flag_spec=$lt_whole_archive_flag_spec
10696 # Compiler flag to generate thread-safe objects.
10697 thread_safe_flag_spec=$lt_thread_safe_flag_spec
10699 # Library versioning type.
10700 version_type=$version_type
10702 # Format of library name prefix.
10703 libname_spec=$lt_libname_spec
10705 # List of archive names. First name is the real one, the rest are links.
10706 # The last name is the one that the linker finds with -lNAME.
10707 library_names_spec=$lt_library_names_spec
10709 # The coded name of the library, if different from the real name.
10710 soname_spec=$lt_soname_spec
10712 # Commands used to build and install an old-style archive.
10713 RANLIB=$lt_RANLIB
10714 old_archive_cmds=$lt_old_archive_cmds
10715 old_postinstall_cmds=$lt_old_postinstall_cmds
10716 old_postuninstall_cmds=$lt_old_postuninstall_cmds
10718 # Create an old-style archive from a shared archive.
10719 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10721 # Create a temporary old-style archive to link instead of a shared archive.
10722 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10724 # Commands used to build and install a shared archive.
10725 archive_cmds=$lt_archive_cmds
10726 archive_expsym_cmds=$lt_archive_expsym_cmds
10727 postinstall_cmds=$lt_postinstall_cmds
10728 postuninstall_cmds=$lt_postuninstall_cmds
10730 # Commands used to build a loadable module (assumed same as above if empty)
10731 module_cmds=$lt_module_cmds
10732 module_expsym_cmds=$lt_module_expsym_cmds
10734 # Commands to strip libraries.
10735 old_striplib=$lt_old_striplib
10736 striplib=$lt_striplib
10738 # Dependencies to place before the objects being linked to create a
10739 # shared library.
10740 predep_objects=$lt_predep_objects
10742 # Dependencies to place after the objects being linked to create a
10743 # shared library.
10744 postdep_objects=$lt_postdep_objects
10746 # Dependencies to place before the objects being linked to create a
10747 # shared library.
10748 predeps=$lt_predeps
10750 # Dependencies to place after the objects being linked to create a
10751 # shared library.
10752 postdeps=$lt_postdeps
10754 # The directories searched by this compiler when creating a shared
10755 # library
10756 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
10758 # The library search path used internally by the compiler when linking
10759 # a shared library.
10760 compiler_lib_search_path=$lt_compiler_lib_search_path
10762 # Method to check whether dependent libraries are shared objects.
10763 deplibs_check_method=$lt_deplibs_check_method
10765 # Command to use when deplibs_check_method == file_magic.
10766 file_magic_cmd=$lt_file_magic_cmd
10768 # Flag that allows shared libraries with undefined symbols to be built.
10769 allow_undefined_flag=$lt_allow_undefined_flag
10771 # Flag that forces no undefined symbols.
10772 no_undefined_flag=$lt_no_undefined_flag
10774 # Commands used to finish a libtool library installation in a directory.
10775 finish_cmds=$lt_finish_cmds
10777 # Same as above, but a single script fragment to be evaled but not shown.
10778 finish_eval=$lt_finish_eval
10780 # Take the output of nm and produce a listing of raw symbols and C names.
10781 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10783 # Transform the output of nm in a proper C declaration
10784 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10786 # Transform the output of nm in a C name address pair
10787 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10789 # This is the shared library runtime path variable.
10790 runpath_var=$runpath_var
10792 # This is the shared library path variable.
10793 shlibpath_var=$shlibpath_var
10795 # Is shlibpath searched before the hard-coded library search path?
10796 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10798 # How to hardcode a shared library path into an executable.
10799 hardcode_action=$hardcode_action
10801 # Whether we should hardcode library paths into libraries.
10802 hardcode_into_libs=$hardcode_into_libs
10804 # Flag to hardcode \$libdir into a binary during linking.
10805 # This must work even if \$libdir does not exist.
10806 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10808 # If ld is used when linking, flag to hardcode \$libdir into
10809 # a binary during linking. This must work even if \$libdir does
10810 # not exist.
10811 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10813 # Whether we need a single -rpath flag with a separated argument.
10814 hardcode_libdir_separator=$lt_hardcode_libdir_separator
10816 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10817 # resulting binary.
10818 hardcode_direct=$hardcode_direct
10820 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10821 # resulting binary.
10822 hardcode_minus_L=$hardcode_minus_L
10824 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10825 # the resulting binary.
10826 hardcode_shlibpath_var=$hardcode_shlibpath_var
10828 # Set to yes if building a shared library automatically hardcodes DIR into the library
10829 # and all subsequent libraries and executables linked against it.
10830 hardcode_automatic=$hardcode_automatic
10832 # Variables whose values should be saved in libtool wrapper scripts and
10833 # restored at relink time.
10834 variables_saved_for_relink="$variables_saved_for_relink"
10836 # Whether libtool must link a program against all its dependency libraries.
10837 link_all_deplibs=$link_all_deplibs
10839 # Compile-time system search path for libraries
10840 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10842 # Run-time system search path for libraries
10843 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10845 # Fix the shell variable \$srcfile for the compiler.
10846 fix_srcfile_path=$lt_fix_srcfile_path
10848 # Set to yes if exported symbols are required.
10849 always_export_symbols=$always_export_symbols
10851 # The commands to list exported symbols.
10852 export_symbols_cmds=$lt_export_symbols_cmds
10854 # The commands to extract the exported symbol list from a shared archive.
10855 extract_expsyms_cmds=$lt_extract_expsyms_cmds
10857 # Symbols that should not be listed in the preloaded symbols.
10858 exclude_expsyms=$lt_exclude_expsyms
10860 # Symbols that must always be exported.
10861 include_expsyms=$lt_include_expsyms
10863 # ### END LIBTOOL CONFIG
10865 __EOF__
10868 case $host_os in
10869 aix3*)
10870 cat <<\EOF >> "$cfgfile"
10872 # AIX sometimes has problems with the GCC collect2 program. For some
10873 # reason, if we set the COLLECT_NAMES environment variable, the problems
10874 # vanish in a puff of smoke.
10875 if test "X${COLLECT_NAMES+set}" != Xset; then
10876 COLLECT_NAMES=
10877 export COLLECT_NAMES
10881 esac
10883 # We use sed instead of cat because bash on DJGPP gets confused if
10884 # if finds mixed CR/LF and LF-only lines. Since sed operates in
10885 # text mode, it properly converts lines to CR/LF. This bash problem
10886 # is reportedly fixed, but why not run on old versions too?
10887 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10889 mv -f "$cfgfile" "$ofile" || \
10890 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10891 chmod +x "$ofile"
10893 else
10894 # If there is no Makefile yet, we rely on a make rule to execute
10895 # `config.status --recheck' to rerun these tests and create the
10896 # libtool script then.
10897 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10898 if test -f "$ltmain_in"; then
10899 test -f Makefile && make "$ltmain"
10904 ac_ext=c
10905 ac_cpp='$CPP $CPPFLAGS'
10906 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10907 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10908 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10910 CC="$lt_save_CC"
10913 # Check whether --with-tags was given.
10914 if test "${with_tags+set}" = set; then
10915 withval=$with_tags; tagnames="$withval"
10919 if test -f "$ltmain" && test -n "$tagnames"; then
10920 if test ! -f "${ofile}"; then
10921 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
10922 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
10925 if test -z "$LTCC"; then
10926 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
10927 if test -z "$LTCC"; then
10928 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10929 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
10930 else
10931 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
10932 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
10935 if test -z "$LTCFLAGS"; then
10936 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
10939 # Extract list of available tagged configurations in $ofile.
10940 # Note that this assumes the entire list is on one line.
10941 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10943 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10944 for tagname in $tagnames; do
10945 IFS="$lt_save_ifs"
10946 # Check whether tagname contains only valid characters
10947 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
10948 "") ;;
10949 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
10950 echo "$as_me: error: invalid tag name: $tagname" >&2;}
10951 { (exit 1); exit 1; }; }
10953 esac
10955 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
10956 then
10957 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
10958 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
10959 { (exit 1); exit 1; }; }
10962 # Update the list of available tags.
10963 if test -n "$tagname"; then
10964 echo appending configuration tag \"$tagname\" to $ofile
10966 case $tagname in
10967 CXX)
10968 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10969 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10970 (test "X$CXX" != "Xg++"))) ; then
10971 ac_ext=cpp
10972 ac_cpp='$CXXCPP $CPPFLAGS'
10973 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10974 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10975 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10980 archive_cmds_need_lc_CXX=no
10981 allow_undefined_flag_CXX=
10982 always_export_symbols_CXX=no
10983 archive_expsym_cmds_CXX=
10984 export_dynamic_flag_spec_CXX=
10985 hardcode_direct_CXX=no
10986 hardcode_libdir_flag_spec_CXX=
10987 hardcode_libdir_flag_spec_ld_CXX=
10988 hardcode_libdir_separator_CXX=
10989 hardcode_minus_L_CXX=no
10990 hardcode_shlibpath_var_CXX=unsupported
10991 hardcode_automatic_CXX=no
10992 module_cmds_CXX=
10993 module_expsym_cmds_CXX=
10994 link_all_deplibs_CXX=unknown
10995 old_archive_cmds_CXX=$old_archive_cmds
10996 no_undefined_flag_CXX=
10997 whole_archive_flag_spec_CXX=
10998 enable_shared_with_static_runtimes_CXX=no
11000 # Dependencies to place before and after the object being linked:
11001 predep_objects_CXX=
11002 postdep_objects_CXX=
11003 predeps_CXX=
11004 postdeps_CXX=
11005 compiler_lib_search_path_CXX=
11006 compiler_lib_search_dirs_CXX=
11008 # Source file extension for C++ test sources.
11009 ac_ext=cpp
11011 # Object file extension for compiled C++ test sources.
11012 objext=o
11013 objext_CXX=$objext
11015 # Code to be used in simple compile tests
11016 lt_simple_compile_test_code="int some_variable = 0;"
11018 # Code to be used in simple link tests
11019 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
11021 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11023 # If no C compiler was specified, use CC.
11024 LTCC=${LTCC-"$CC"}
11026 # If no C compiler flags were specified, use CFLAGS.
11027 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11029 # Allow CC to be a program name with arguments.
11030 compiler=$CC
11033 # save warnings/boilerplate of simple test code
11034 ac_outfile=conftest.$ac_objext
11035 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11036 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11037 _lt_compiler_boilerplate=`cat conftest.err`
11038 $rm conftest*
11040 ac_outfile=conftest.$ac_objext
11041 echo "$lt_simple_link_test_code" >conftest.$ac_ext
11042 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11043 _lt_linker_boilerplate=`cat conftest.err`
11044 $rm -r conftest*
11047 # Allow CC to be a program name with arguments.
11048 lt_save_CC=$CC
11049 lt_save_LD=$LD
11050 lt_save_GCC=$GCC
11051 GCC=$GXX
11052 lt_save_with_gnu_ld=$with_gnu_ld
11053 lt_save_path_LD=$lt_cv_path_LD
11054 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11055 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11056 else
11057 $as_unset lt_cv_prog_gnu_ld
11059 if test -n "${lt_cv_path_LDCXX+set}"; then
11060 lt_cv_path_LD=$lt_cv_path_LDCXX
11061 else
11062 $as_unset lt_cv_path_LD
11064 test -z "${LDCXX+set}" || LD=$LDCXX
11065 CC=${CXX-"c++"}
11066 compiler=$CC
11067 compiler_CXX=$CC
11068 for cc_temp in $compiler""; do
11069 case $cc_temp in
11070 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11071 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11072 \-*) ;;
11073 *) break;;
11074 esac
11075 done
11076 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11079 # We don't want -fno-exception wen compiling C++ code, so set the
11080 # no_builtin_flag separately
11081 if test "$GXX" = yes; then
11082 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11083 else
11084 lt_prog_compiler_no_builtin_flag_CXX=
11087 if test "$GXX" = yes; then
11088 # Set up default GNU C++ configuration
11091 # Check whether --with-gnu-ld was given.
11092 if test "${with_gnu_ld+set}" = set; then
11093 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11094 else
11095 with_gnu_ld=no
11098 ac_prog=ld
11099 if test "$GCC" = yes; then
11100 # Check if gcc -print-prog-name=ld gives a path.
11101 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
11102 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
11103 case $host in
11104 *-*-mingw*)
11105 # gcc leaves a trailing carriage return which upsets mingw
11106 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11108 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11109 esac
11110 case $ac_prog in
11111 # Accept absolute paths.
11112 [\\/]* | ?:[\\/]*)
11113 re_direlt='/[^/][^/]*/\.\./'
11114 # Canonicalize the pathname of ld
11115 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
11116 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11117 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
11118 done
11119 test -z "$LD" && LD="$ac_prog"
11122 # If it fails, then pretend we aren't using GCC.
11123 ac_prog=ld
11126 # If it is relative, then search for the first ld in PATH.
11127 with_gnu_ld=unknown
11129 esac
11130 elif test "$with_gnu_ld" = yes; then
11131 { echo "$as_me:$LINENO: checking for GNU ld" >&5
11132 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
11133 else
11134 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
11135 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
11137 if test "${lt_cv_path_LD+set}" = set; then
11138 echo $ECHO_N "(cached) $ECHO_C" >&6
11139 else
11140 if test -z "$LD"; then
11141 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11142 for ac_dir in $PATH; do
11143 IFS="$lt_save_ifs"
11144 test -z "$ac_dir" && ac_dir=.
11145 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11146 lt_cv_path_LD="$ac_dir/$ac_prog"
11147 # Check to see if the program is GNU ld. I'd rather use --version,
11148 # but apparently some variants of GNU ld only accept -v.
11149 # Break only if it was the GNU/non-GNU ld that we prefer.
11150 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11151 *GNU* | *'with BFD'*)
11152 test "$with_gnu_ld" != no && break
11155 test "$with_gnu_ld" != yes && break
11157 esac
11159 done
11160 IFS="$lt_save_ifs"
11161 else
11162 lt_cv_path_LD="$LD" # Let the user override the test with a path.
11166 LD="$lt_cv_path_LD"
11167 if test -n "$LD"; then
11168 { echo "$as_me:$LINENO: result: $LD" >&5
11169 echo "${ECHO_T}$LD" >&6; }
11170 else
11171 { echo "$as_me:$LINENO: result: no" >&5
11172 echo "${ECHO_T}no" >&6; }
11174 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
11175 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
11176 { (exit 1); exit 1; }; }
11177 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
11178 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
11179 if test "${lt_cv_prog_gnu_ld+set}" = set; then
11180 echo $ECHO_N "(cached) $ECHO_C" >&6
11181 else
11182 # I'd rather use --version here, but apparently some GNU lds only accept -v.
11183 case `$LD -v 2>&1 </dev/null` in
11184 *GNU* | *'with BFD'*)
11185 lt_cv_prog_gnu_ld=yes
11188 lt_cv_prog_gnu_ld=no
11190 esac
11192 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
11193 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
11194 with_gnu_ld=$lt_cv_prog_gnu_ld
11198 # Check if GNU C++ uses GNU ld as the underlying linker, since the
11199 # archiving commands below assume that GNU ld is being used.
11200 if test "$with_gnu_ld" = yes; then
11201 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11202 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'
11204 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11205 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11207 # If archive_cmds runs LD, not CC, wlarc should be empty
11208 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11209 # investigate it a little bit more. (MM)
11210 wlarc='${wl}'
11212 # ancient GNU ld didn't support --whole-archive et. al.
11213 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
11214 grep 'no-whole-archive' > /dev/null; then
11215 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11216 else
11217 whole_archive_flag_spec_CXX=
11219 else
11220 with_gnu_ld=no
11221 wlarc=
11223 # A generic and very simple default shared library creation
11224 # command for GNU C++ for the case where it uses the native
11225 # linker, instead of GNU ld. If possible, this setting should
11226 # overridden to take advantage of the native linker features on
11227 # the platform it is being used on.
11228 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11231 # Commands to make compiler produce verbose output that lists
11232 # what "hidden" libraries, object files and flags are used when
11233 # linking a shared library.
11234 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11236 else
11237 GXX=no
11238 with_gnu_ld=no
11239 wlarc=
11242 # PORTME: fill in a description of your system's C++ link characteristics
11243 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11244 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
11245 ld_shlibs_CXX=yes
11246 case $host_os in
11247 aix3*)
11248 # FIXME: insert proper C++ library support
11249 ld_shlibs_CXX=no
11251 aix[4-9]*)
11252 if test "$host_cpu" = ia64; then
11253 # On IA64, the linker does run time linking by default, so we don't
11254 # have to do anything special.
11255 aix_use_runtimelinking=no
11256 exp_sym_flag='-Bexport'
11257 no_entry_flag=""
11258 else
11259 aix_use_runtimelinking=no
11261 # Test if we are trying to use run time linking or normal
11262 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11263 # need to do runtime linking.
11264 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11265 for ld_flag in $LDFLAGS; do
11266 case $ld_flag in
11267 *-brtl*)
11268 aix_use_runtimelinking=yes
11269 break
11271 esac
11272 done
11274 esac
11276 exp_sym_flag='-bexport'
11277 no_entry_flag='-bnoentry'
11280 # When large executables or shared objects are built, AIX ld can
11281 # have problems creating the table of contents. If linking a library
11282 # or program results in "error TOC overflow" add -mminimal-toc to
11283 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11284 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11286 archive_cmds_CXX=''
11287 hardcode_direct_CXX=yes
11288 hardcode_libdir_separator_CXX=':'
11289 link_all_deplibs_CXX=yes
11291 if test "$GXX" = yes; then
11292 case $host_os in aix4.[012]|aix4.[012].*)
11293 # We only want to do this on AIX 4.2 and lower, the check
11294 # below for broken collect2 doesn't work under 4.3+
11295 collect2name=`${CC} -print-prog-name=collect2`
11296 if test -f "$collect2name" && \
11297 strings "$collect2name" | grep resolve_lib_name >/dev/null
11298 then
11299 # We have reworked collect2
11301 else
11302 # We have old collect2
11303 hardcode_direct_CXX=unsupported
11304 # It fails to find uninstalled libraries when the uninstalled
11305 # path is not listed in the libpath. Setting hardcode_minus_L
11306 # to unsupported forces relinking
11307 hardcode_minus_L_CXX=yes
11308 hardcode_libdir_flag_spec_CXX='-L$libdir'
11309 hardcode_libdir_separator_CXX=
11312 esac
11313 shared_flag='-shared'
11314 if test "$aix_use_runtimelinking" = yes; then
11315 shared_flag="$shared_flag "'${wl}-G'
11317 else
11318 # not using gcc
11319 if test "$host_cpu" = ia64; then
11320 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11321 # chokes on -Wl,-G. The following line is correct:
11322 shared_flag='-G'
11323 else
11324 if test "$aix_use_runtimelinking" = yes; then
11325 shared_flag='${wl}-G'
11326 else
11327 shared_flag='${wl}-bM:SRE'
11332 # It seems that -bexpall does not export symbols beginning with
11333 # underscore (_), so it is better to generate a list of symbols to export.
11334 always_export_symbols_CXX=yes
11335 if test "$aix_use_runtimelinking" = yes; then
11336 # Warning - without using the other runtime loading flags (-brtl),
11337 # -berok will link without error, but may produce a broken library.
11338 allow_undefined_flag_CXX='-berok'
11339 # Determine the default libpath from the value encoded in an empty executable.
11340 cat >conftest.$ac_ext <<_ACEOF
11341 /* confdefs.h. */
11342 _ACEOF
11343 cat confdefs.h >>conftest.$ac_ext
11344 cat >>conftest.$ac_ext <<_ACEOF
11345 /* end confdefs.h. */
11348 main ()
11352 return 0;
11354 _ACEOF
11355 rm -f conftest.$ac_objext conftest$ac_exeext
11356 if { (ac_try="$ac_link"
11357 case "(($ac_try" in
11358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11359 *) ac_try_echo=$ac_try;;
11360 esac
11361 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11362 (eval "$ac_link") 2>conftest.er1
11363 ac_status=$?
11364 grep -v '^ *+' conftest.er1 >conftest.err
11365 rm -f conftest.er1
11366 cat conftest.err >&5
11367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11368 (exit $ac_status); } && {
11369 test -z "$ac_cxx_werror_flag" ||
11370 test ! -s conftest.err
11371 } && test -s conftest$ac_exeext &&
11372 $as_test_x conftest$ac_exeext; then
11374 lt_aix_libpath_sed='
11375 /Import File Strings/,/^$/ {
11376 /^0/ {
11377 s/^0 *\(.*\)$/\1/
11381 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11382 # Check for a 64-bit object if we didn't find anything.
11383 if test -z "$aix_libpath"; then
11384 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11386 else
11387 echo "$as_me: failed program was:" >&5
11388 sed 's/^/| /' conftest.$ac_ext >&5
11393 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11394 conftest$ac_exeext conftest.$ac_ext
11395 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11397 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11399 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"
11400 else
11401 if test "$host_cpu" = ia64; then
11402 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11403 allow_undefined_flag_CXX="-z nodefs"
11404 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"
11405 else
11406 # Determine the default libpath from the value encoded in an empty executable.
11407 cat >conftest.$ac_ext <<_ACEOF
11408 /* confdefs.h. */
11409 _ACEOF
11410 cat confdefs.h >>conftest.$ac_ext
11411 cat >>conftest.$ac_ext <<_ACEOF
11412 /* end confdefs.h. */
11415 main ()
11419 return 0;
11421 _ACEOF
11422 rm -f conftest.$ac_objext conftest$ac_exeext
11423 if { (ac_try="$ac_link"
11424 case "(($ac_try" in
11425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11426 *) ac_try_echo=$ac_try;;
11427 esac
11428 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11429 (eval "$ac_link") 2>conftest.er1
11430 ac_status=$?
11431 grep -v '^ *+' conftest.er1 >conftest.err
11432 rm -f conftest.er1
11433 cat conftest.err >&5
11434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11435 (exit $ac_status); } && {
11436 test -z "$ac_cxx_werror_flag" ||
11437 test ! -s conftest.err
11438 } && test -s conftest$ac_exeext &&
11439 $as_test_x conftest$ac_exeext; then
11441 lt_aix_libpath_sed='
11442 /Import File Strings/,/^$/ {
11443 /^0/ {
11444 s/^0 *\(.*\)$/\1/
11448 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11449 # Check for a 64-bit object if we didn't find anything.
11450 if test -z "$aix_libpath"; then
11451 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11453 else
11454 echo "$as_me: failed program was:" >&5
11455 sed 's/^/| /' conftest.$ac_ext >&5
11460 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11461 conftest$ac_exeext conftest.$ac_ext
11462 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11464 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11465 # Warning - without using the other run time loading flags,
11466 # -berok will link without error, but may produce a broken library.
11467 no_undefined_flag_CXX=' ${wl}-bernotok'
11468 allow_undefined_flag_CXX=' ${wl}-berok'
11469 # Exported symbols can be pulled into shared objects from archives
11470 whole_archive_flag_spec_CXX='$convenience'
11471 archive_cmds_need_lc_CXX=yes
11472 # This is similar to how AIX traditionally builds its shared libraries.
11473 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'
11478 beos*)
11479 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11480 allow_undefined_flag_CXX=unsupported
11481 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11482 # support --undefined. This deserves some investigation. FIXME
11483 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11484 else
11485 ld_shlibs_CXX=no
11489 chorus*)
11490 case $cc_basename in
11492 # FIXME: insert proper C++ library support
11493 ld_shlibs_CXX=no
11495 esac
11498 cygwin* | mingw* | pw32*)
11499 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11500 # as there is no search path for DLLs.
11501 hardcode_libdir_flag_spec_CXX='-L$libdir'
11502 allow_undefined_flag_CXX=unsupported
11503 always_export_symbols_CXX=no
11504 enable_shared_with_static_runtimes_CXX=yes
11506 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11507 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'
11508 # If the export-symbols file already is a .def file (1st line
11509 # is EXPORTS), use it as is; otherwise, prepend...
11510 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11511 cp $export_symbols $output_objdir/$soname.def;
11512 else
11513 echo EXPORTS > $output_objdir/$soname.def;
11514 cat $export_symbols >> $output_objdir/$soname.def;
11516 $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'
11517 else
11518 ld_shlibs_CXX=no
11521 darwin* | rhapsody*)
11522 archive_cmds_need_lc_CXX=no
11523 hardcode_direct_CXX=no
11524 hardcode_automatic_CXX=yes
11525 hardcode_shlibpath_var_CXX=unsupported
11526 whole_archive_flag_spec_CXX=''
11527 link_all_deplibs_CXX=yes
11528 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
11529 if test "$GXX" = yes ; then
11530 output_verbose_link_cmd='echo'
11531 archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
11532 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
11533 archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
11534 module_expsym_cmds_CXX="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
11535 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
11536 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${_lt_dsymutil}"
11537 archive_expsym_cmds_CXX="sed '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${_lt_dar_export_syms}${_lt_dsymutil}"
11539 else
11540 case $cc_basename in
11541 xlc*)
11542 output_verbose_link_cmd='echo'
11543 archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
11544 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11545 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11546 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11547 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}'
11550 ld_shlibs_CXX=no
11552 esac
11556 dgux*)
11557 case $cc_basename in
11558 ec++*)
11559 # FIXME: insert proper C++ library support
11560 ld_shlibs_CXX=no
11562 ghcx*)
11563 # Green Hills C++ Compiler
11564 # FIXME: insert proper C++ library support
11565 ld_shlibs_CXX=no
11568 # FIXME: insert proper C++ library support
11569 ld_shlibs_CXX=no
11571 esac
11573 freebsd[12]*)
11574 # C++ shared libraries reported to be fairly broken before switch to ELF
11575 ld_shlibs_CXX=no
11577 freebsd-elf*)
11578 archive_cmds_need_lc_CXX=no
11580 freebsd* | dragonfly*)
11581 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11582 # conventions
11583 ld_shlibs_CXX=yes
11585 gnu*)
11587 hpux9*)
11588 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11589 hardcode_libdir_separator_CXX=:
11590 export_dynamic_flag_spec_CXX='${wl}-E'
11591 hardcode_direct_CXX=yes
11592 hardcode_minus_L_CXX=yes # Not in the search PATH,
11593 # but as the default
11594 # location of the library.
11596 case $cc_basename in
11597 CC*)
11598 # FIXME: insert proper C++ library support
11599 ld_shlibs_CXX=no
11601 aCC*)
11602 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'
11603 # Commands to make compiler produce verbose output that lists
11604 # what "hidden" libraries, object files and flags are used when
11605 # linking a shared library.
11607 # There doesn't appear to be a way to prevent this compiler from
11608 # explicitly linking system object files so we need to strip them
11609 # from the output so that they don't get included in the library
11610 # dependencies.
11611 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'
11614 if test "$GXX" = yes; then
11615 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'
11616 else
11617 # FIXME: insert proper C++ library support
11618 ld_shlibs_CXX=no
11621 esac
11623 hpux10*|hpux11*)
11624 if test $with_gnu_ld = no; then
11625 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11626 hardcode_libdir_separator_CXX=:
11628 case $host_cpu in
11629 hppa*64*|ia64*) ;;
11631 export_dynamic_flag_spec_CXX='${wl}-E'
11633 esac
11635 case $host_cpu in
11636 hppa*64*|ia64*)
11637 hardcode_direct_CXX=no
11638 hardcode_shlibpath_var_CXX=no
11641 hardcode_direct_CXX=yes
11642 hardcode_minus_L_CXX=yes # Not in the search PATH,
11643 # but as the default
11644 # location of the library.
11646 esac
11648 case $cc_basename in
11649 CC*)
11650 # FIXME: insert proper C++ library support
11651 ld_shlibs_CXX=no
11653 aCC*)
11654 case $host_cpu in
11655 hppa*64*)
11656 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11658 ia64*)
11659 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11662 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11664 esac
11665 # Commands to make compiler produce verbose output that lists
11666 # what "hidden" libraries, object files and flags are used when
11667 # linking a shared library.
11669 # There doesn't appear to be a way to prevent this compiler from
11670 # explicitly linking system object files so we need to strip them
11671 # from the output so that they don't get included in the library
11672 # dependencies.
11673 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'
11676 if test "$GXX" = yes; then
11677 if test $with_gnu_ld = no; then
11678 case $host_cpu in
11679 hppa*64*)
11680 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11682 ia64*)
11683 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11686 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'
11688 esac
11690 else
11691 # FIXME: insert proper C++ library support
11692 ld_shlibs_CXX=no
11695 esac
11697 interix[3-9]*)
11698 hardcode_direct_CXX=no
11699 hardcode_shlibpath_var_CXX=no
11700 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11701 export_dynamic_flag_spec_CXX='${wl}-E'
11702 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11703 # Instead, shared libraries are loaded at an image base (0x10000000 by
11704 # default) and relocated if they conflict, which is a slow very memory
11705 # consuming and fragmenting process. To avoid this, we pick a random,
11706 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11707 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
11708 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'
11709 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'
11711 irix5* | irix6*)
11712 case $cc_basename in
11713 CC*)
11714 # SGI C++
11715 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'
11717 # Archives containing C++ object files must be created using
11718 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
11719 # necessary to make sure instantiated templates are included
11720 # in the archive.
11721 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11724 if test "$GXX" = yes; then
11725 if test "$with_gnu_ld" = no; then
11726 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'
11727 else
11728 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'
11731 link_all_deplibs_CXX=yes
11733 esac
11734 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11735 hardcode_libdir_separator_CXX=:
11737 linux* | k*bsd*-gnu)
11738 case $cc_basename in
11739 KCC*)
11740 # Kuck and Associates, Inc. (KAI) C++ Compiler
11742 # KCC will only create a shared library if the output file
11743 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11744 # to its proper name (with version) after linking.
11745 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'
11746 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'
11747 # Commands to make compiler produce verbose output that lists
11748 # what "hidden" libraries, object files and flags are used when
11749 # linking a shared library.
11751 # There doesn't appear to be a way to prevent this compiler from
11752 # explicitly linking system object files so we need to strip them
11753 # from the output so that they don't get included in the library
11754 # dependencies.
11755 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'
11757 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
11758 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11760 # Archives containing C++ object files must be created using
11761 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11762 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11764 icpc*)
11765 # Intel C++
11766 with_gnu_ld=yes
11767 # version 8.0 and above of icpc choke on multiply defined symbols
11768 # if we add $predep_objects and $postdep_objects, however 7.1 and
11769 # earlier do not add the objects themselves.
11770 case `$CC -V 2>&1` in
11771 *"Version 7."*)
11772 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11773 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'
11775 *) # Version 8.0 or newer
11776 tmp_idyn=
11777 case $host_cpu in
11778 ia64*) tmp_idyn=' -i_dynamic';;
11779 esac
11780 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11781 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'
11783 esac
11784 archive_cmds_need_lc_CXX=no
11785 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11786 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11787 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11789 pgCC* | pgcpp*)
11790 # Portland Group C++ compiler
11791 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
11792 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'
11794 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11795 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11796 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'
11798 cxx*)
11799 # Compaq C++
11800 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11801 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'
11803 runpath_var=LD_RUN_PATH
11804 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11805 hardcode_libdir_separator_CXX=:
11807 # Commands to make compiler produce verbose output that lists
11808 # what "hidden" libraries, object files and flags are used when
11809 # linking a shared library.
11811 # There doesn't appear to be a way to prevent this compiler from
11812 # explicitly linking system object files so we need to strip them
11813 # from the output so that they don't get included in the library
11814 # dependencies.
11815 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'
11818 case `$CC -V 2>&1 | sed 5q` in
11819 *Sun\ C*)
11820 # Sun C++ 5.9
11821 no_undefined_flag_CXX=' -zdefs'
11822 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11823 archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
11824 hardcode_libdir_flag_spec_CXX='-R$libdir'
11825 whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
11827 # Not sure whether something based on
11828 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
11829 # would be better.
11830 output_verbose_link_cmd='echo'
11832 # Archives containing C++ object files must be created using
11833 # "CC -xar", where "CC" is the Sun C++ compiler. This is
11834 # necessary to make sure instantiated templates are included
11835 # in the archive.
11836 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11838 esac
11840 esac
11842 lynxos*)
11843 # FIXME: insert proper C++ library support
11844 ld_shlibs_CXX=no
11846 m88k*)
11847 # FIXME: insert proper C++ library support
11848 ld_shlibs_CXX=no
11850 mvs*)
11851 case $cc_basename in
11852 cxx*)
11853 # FIXME: insert proper C++ library support
11854 ld_shlibs_CXX=no
11857 # FIXME: insert proper C++ library support
11858 ld_shlibs_CXX=no
11860 esac
11862 netbsd* | netbsdelf*-gnu)
11863 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11864 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
11865 wlarc=
11866 hardcode_libdir_flag_spec_CXX='-R$libdir'
11867 hardcode_direct_CXX=yes
11868 hardcode_shlibpath_var_CXX=no
11870 # Workaround some broken pre-1.5 toolchains
11871 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
11873 openbsd2*)
11874 # C++ shared libraries are fairly broken
11875 ld_shlibs_CXX=no
11877 openbsd*)
11878 if test -f /usr/libexec/ld.so; then
11879 hardcode_direct_CXX=yes
11880 hardcode_shlibpath_var_CXX=no
11881 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11882 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11883 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11884 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
11885 export_dynamic_flag_spec_CXX='${wl}-E'
11886 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11888 output_verbose_link_cmd='echo'
11889 else
11890 ld_shlibs_CXX=no
11893 osf3*)
11894 case $cc_basename in
11895 KCC*)
11896 # Kuck and Associates, Inc. (KAI) C++ Compiler
11898 # KCC will only create a shared library if the output file
11899 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11900 # to its proper name (with version) after linking.
11901 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'
11903 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11904 hardcode_libdir_separator_CXX=:
11906 # Archives containing C++ object files must be created using
11907 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11908 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11911 RCC*)
11912 # Rational C++ 2.4.1
11913 # FIXME: insert proper C++ library support
11914 ld_shlibs_CXX=no
11916 cxx*)
11917 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11918 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'
11920 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11921 hardcode_libdir_separator_CXX=:
11923 # Commands to make compiler produce verbose output that lists
11924 # what "hidden" libraries, object files and flags are used when
11925 # linking a shared library.
11927 # There doesn't appear to be a way to prevent this compiler from
11928 # explicitly linking system object files so we need to strip them
11929 # from the output so that they don't get included in the library
11930 # dependencies.
11931 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'
11934 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11935 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11936 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'
11938 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11939 hardcode_libdir_separator_CXX=:
11941 # Commands to make compiler produce verbose output that lists
11942 # what "hidden" libraries, object files and flags are used when
11943 # linking a shared library.
11944 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11946 else
11947 # FIXME: insert proper C++ library support
11948 ld_shlibs_CXX=no
11951 esac
11953 osf4* | osf5*)
11954 case $cc_basename in
11955 KCC*)
11956 # Kuck and Associates, Inc. (KAI) C++ Compiler
11958 # KCC will only create a shared library if the output file
11959 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11960 # to its proper name (with version) after linking.
11961 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'
11963 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11964 hardcode_libdir_separator_CXX=:
11966 # Archives containing C++ object files must be created using
11967 # the KAI C++ compiler.
11968 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
11970 RCC*)
11971 # Rational C++ 2.4.1
11972 # FIXME: insert proper C++ library support
11973 ld_shlibs_CXX=no
11975 cxx*)
11976 allow_undefined_flag_CXX=' -expect_unresolved \*'
11977 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'
11978 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
11979 echo "-hidden">> $lib.exp~
11980 $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~
11981 $rm $lib.exp'
11983 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11984 hardcode_libdir_separator_CXX=:
11986 # Commands to make compiler produce verbose output that lists
11987 # what "hidden" libraries, object files and flags are used when
11988 # linking a shared library.
11990 # There doesn't appear to be a way to prevent this compiler from
11991 # explicitly linking system object files so we need to strip them
11992 # from the output so that they don't get included in the library
11993 # dependencies.
11994 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'
11997 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11998 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11999 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'
12001 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12002 hardcode_libdir_separator_CXX=:
12004 # Commands to make compiler produce verbose output that lists
12005 # what "hidden" libraries, object files and flags are used when
12006 # linking a shared library.
12007 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12009 else
12010 # FIXME: insert proper C++ library support
12011 ld_shlibs_CXX=no
12014 esac
12016 psos*)
12017 # FIXME: insert proper C++ library support
12018 ld_shlibs_CXX=no
12020 sunos4*)
12021 case $cc_basename in
12022 CC*)
12023 # Sun C++ 4.x
12024 # FIXME: insert proper C++ library support
12025 ld_shlibs_CXX=no
12027 lcc*)
12028 # Lucid
12029 # FIXME: insert proper C++ library support
12030 ld_shlibs_CXX=no
12033 # FIXME: insert proper C++ library support
12034 ld_shlibs_CXX=no
12036 esac
12038 solaris*)
12039 case $cc_basename in
12040 CC*)
12041 # Sun C++ 4.2, 5.x and Centerline C++
12042 archive_cmds_need_lc_CXX=yes
12043 no_undefined_flag_CXX=' -zdefs'
12044 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12045 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12046 $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'
12048 hardcode_libdir_flag_spec_CXX='-R$libdir'
12049 hardcode_shlibpath_var_CXX=no
12050 case $host_os in
12051 solaris2.[0-5] | solaris2.[0-5].*) ;;
12053 # The compiler driver will combine and reorder linker options,
12054 # but understands `-z linker_flag'.
12055 # Supported since Solaris 2.6 (maybe 2.5.1?)
12056 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
12058 esac
12059 link_all_deplibs_CXX=yes
12061 output_verbose_link_cmd='echo'
12063 # Archives containing C++ object files must be created using
12064 # "CC -xar", where "CC" is the Sun C++ compiler. This is
12065 # necessary to make sure instantiated templates are included
12066 # in the archive.
12067 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12069 gcx*)
12070 # Green Hills C++ Compiler
12071 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12073 # The C++ compiler must be used to create the archive.
12074 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12077 # GNU C++ compiler with Solaris linker
12078 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12079 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12080 if $CC --version | grep -v '^2\.7' > /dev/null; then
12081 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12082 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12083 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12085 # Commands to make compiler produce verbose output that lists
12086 # what "hidden" libraries, object files and flags are used when
12087 # linking a shared library.
12088 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12089 else
12090 # g++ 2.7 appears to require `-G' NOT `-shared' on this
12091 # platform.
12092 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12093 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12094 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12096 # Commands to make compiler produce verbose output that lists
12097 # what "hidden" libraries, object files and flags are used when
12098 # linking a shared library.
12099 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12102 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12103 case $host_os in
12104 solaris2.[0-5] | solaris2.[0-5].*) ;;
12106 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
12108 esac
12111 esac
12113 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12114 no_undefined_flag_CXX='${wl}-z,text'
12115 archive_cmds_need_lc_CXX=no
12116 hardcode_shlibpath_var_CXX=no
12117 runpath_var='LD_RUN_PATH'
12119 case $cc_basename in
12120 CC*)
12121 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12122 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12125 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12126 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12128 esac
12130 sysv5* | sco3.2v5* | sco5v6*)
12131 # Note: We can NOT use -z defs as we might desire, because we do not
12132 # link with -lc, and that would cause any symbols used from libc to
12133 # always be unresolved, which means just about no library would
12134 # ever link correctly. If we're not using GNU ld we use -z text
12135 # though, which does catch some bad symbols but isn't as heavy-handed
12136 # as -z defs.
12137 # For security reasons, it is highly recommended that you always
12138 # use absolute paths for naming shared libraries, and exclude the
12139 # DT_RUNPATH tag from executables and libraries. But doing so
12140 # requires that you compile everything twice, which is a pain.
12141 # So that behaviour is only enabled if SCOABSPATH is set to a
12142 # non-empty value in the environment. Most likely only useful for
12143 # creating official distributions of packages.
12144 # This is a hack until libtool officially supports absolute path
12145 # names for shared libraries.
12146 no_undefined_flag_CXX='${wl}-z,text'
12147 allow_undefined_flag_CXX='${wl}-z,nodefs'
12148 archive_cmds_need_lc_CXX=no
12149 hardcode_shlibpath_var_CXX=no
12150 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
12151 hardcode_libdir_separator_CXX=':'
12152 link_all_deplibs_CXX=yes
12153 export_dynamic_flag_spec_CXX='${wl}-Bexport'
12154 runpath_var='LD_RUN_PATH'
12156 case $cc_basename in
12157 CC*)
12158 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12159 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12162 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12163 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12165 esac
12167 tandem*)
12168 case $cc_basename in
12169 NCC*)
12170 # NonStop-UX NCC 3.20
12171 # FIXME: insert proper C++ library support
12172 ld_shlibs_CXX=no
12175 # FIXME: insert proper C++ library support
12176 ld_shlibs_CXX=no
12178 esac
12180 vxworks*)
12181 # FIXME: insert proper C++ library support
12182 ld_shlibs_CXX=no
12185 # FIXME: insert proper C++ library support
12186 ld_shlibs_CXX=no
12188 esac
12189 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12190 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12191 test "$ld_shlibs_CXX" = no && can_build_shared=no
12193 GCC_CXX="$GXX"
12194 LD_CXX="$LD"
12196 cat > conftest.$ac_ext <<EOF
12197 class Foo
12199 public:
12200 Foo (void) { a = 0; }
12201 private:
12202 int a;
12206 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12207 (eval $ac_compile) 2>&5
12208 ac_status=$?
12209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12210 (exit $ac_status); }; then
12211 # Parse the compiler output and extract the necessary
12212 # objects, libraries and library flags.
12214 # Sentinel used to keep track of whether or not we are before
12215 # the conftest object file.
12216 pre_test_object_deps_done=no
12218 # The `*' in the case matches for architectures that use `case' in
12219 # $output_verbose_cmd can trigger glob expansion during the loop
12220 # eval without this substitution.
12221 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
12223 for p in `eval $output_verbose_link_cmd`; do
12224 case $p in
12226 -L* | -R* | -l*)
12227 # Some compilers place space between "-{L,R}" and the path.
12228 # Remove the space.
12229 if test $p = "-L" \
12230 || test $p = "-R"; then
12231 prev=$p
12232 continue
12233 else
12234 prev=
12237 if test "$pre_test_object_deps_done" = no; then
12238 case $p in
12239 -L* | -R*)
12240 # Internal compiler library paths should come after those
12241 # provided the user. The postdeps already come after the
12242 # user supplied libs so there is no need to process them.
12243 if test -z "$compiler_lib_search_path_CXX"; then
12244 compiler_lib_search_path_CXX="${prev}${p}"
12245 else
12246 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
12249 # The "-l" case would never come before the object being
12250 # linked, so don't bother handling this case.
12251 esac
12252 else
12253 if test -z "$postdeps_CXX"; then
12254 postdeps_CXX="${prev}${p}"
12255 else
12256 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
12261 *.$objext)
12262 # This assumes that the test object file only shows up
12263 # once in the compiler output.
12264 if test "$p" = "conftest.$objext"; then
12265 pre_test_object_deps_done=yes
12266 continue
12269 if test "$pre_test_object_deps_done" = no; then
12270 if test -z "$predep_objects_CXX"; then
12271 predep_objects_CXX="$p"
12272 else
12273 predep_objects_CXX="$predep_objects_CXX $p"
12275 else
12276 if test -z "$postdep_objects_CXX"; then
12277 postdep_objects_CXX="$p"
12278 else
12279 postdep_objects_CXX="$postdep_objects_CXX $p"
12284 *) ;; # Ignore the rest.
12286 esac
12287 done
12289 # Clean up.
12290 rm -f a.out a.exe
12291 else
12292 echo "libtool.m4: error: problem compiling CXX test program"
12295 $rm -f confest.$objext
12297 compiler_lib_search_dirs_CXX=
12298 if test -n "$compiler_lib_search_path_CXX"; then
12299 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
12302 # PORTME: override above test on systems where it is broken
12303 case $host_os in
12304 interix[3-9]*)
12305 # Interix 3.5 installs completely hosed .la files for C++, so rather than
12306 # hack all around it, let's just trust "g++" to DTRT.
12307 predep_objects_CXX=
12308 postdep_objects_CXX=
12309 postdeps_CXX=
12312 linux*)
12313 case `$CC -V 2>&1 | sed 5q` in
12314 *Sun\ C*)
12315 # Sun C++ 5.9
12317 # The more standards-conforming stlport4 library is
12318 # incompatible with the Cstd library. Avoid specifying
12319 # it if it's in CXXFLAGS. Ignore libCrun as
12320 # -library=stlport4 depends on it.
12321 case " $CXX $CXXFLAGS " in
12322 *" -library=stlport4 "*)
12323 solaris_use_stlport4=yes
12325 esac
12326 if test "$solaris_use_stlport4" != yes; then
12327 postdeps_CXX='-library=Cstd -library=Crun'
12330 esac
12333 solaris*)
12334 case $cc_basename in
12335 CC*)
12336 # The more standards-conforming stlport4 library is
12337 # incompatible with the Cstd library. Avoid specifying
12338 # it if it's in CXXFLAGS. Ignore libCrun as
12339 # -library=stlport4 depends on it.
12340 case " $CXX $CXXFLAGS " in
12341 *" -library=stlport4 "*)
12342 solaris_use_stlport4=yes
12344 esac
12346 # Adding this requires a known-good setup of shared libraries for
12347 # Sun compiler versions before 5.6, else PIC objects from an old
12348 # archive will be linked into the output, leading to subtle bugs.
12349 if test "$solaris_use_stlport4" != yes; then
12350 postdeps_CXX='-library=Cstd -library=Crun'
12353 esac
12355 esac
12357 case " $postdeps_CXX " in
12358 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
12359 esac
12361 lt_prog_compiler_wl_CXX=
12362 lt_prog_compiler_pic_CXX=
12363 lt_prog_compiler_static_CXX=
12365 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12366 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
12368 # C++ specific cases for pic, static, wl, etc.
12369 if test "$GXX" = yes; then
12370 lt_prog_compiler_wl_CXX='-Wl,'
12371 lt_prog_compiler_static_CXX='-static'
12373 case $host_os in
12374 aix*)
12375 # All AIX code is PIC.
12376 if test "$host_cpu" = ia64; then
12377 # AIX 5 now supports IA64 processor
12378 lt_prog_compiler_static_CXX='-Bstatic'
12381 amigaos*)
12382 # FIXME: we need at least 68020 code to build shared libraries, but
12383 # adding the `-m68020' flag to GCC prevents building anything better,
12384 # like `-m68040'.
12385 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12387 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12388 # PIC is the default for these OSes.
12390 mingw* | cygwin* | os2* | pw32*)
12391 # This hack is so that the source file can tell whether it is being
12392 # built for inclusion in a dll (and should export symbols for example).
12393 # Although the cygwin gcc ignores -fPIC, still need this for old-style
12394 # (--disable-auto-import) libraries
12395 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12397 darwin* | rhapsody*)
12398 # PIC is the default on this platform
12399 # Common symbols not allowed in MH_DYLIB files
12400 lt_prog_compiler_pic_CXX='-fno-common'
12402 *djgpp*)
12403 # DJGPP does not support shared libraries at all
12404 lt_prog_compiler_pic_CXX=
12406 interix[3-9]*)
12407 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12408 # Instead, we relocate shared libraries at runtime.
12410 sysv4*MP*)
12411 if test -d /usr/nec; then
12412 lt_prog_compiler_pic_CXX=-Kconform_pic
12415 hpux*)
12416 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12417 # not for PA HP-UX.
12418 case $host_cpu in
12419 hppa*64*|ia64*)
12422 lt_prog_compiler_pic_CXX='-fPIC'
12424 esac
12427 lt_prog_compiler_pic_CXX='-fPIC'
12429 esac
12430 else
12431 case $host_os in
12432 aix[4-9]*)
12433 # All AIX code is PIC.
12434 if test "$host_cpu" = ia64; then
12435 # AIX 5 now supports IA64 processor
12436 lt_prog_compiler_static_CXX='-Bstatic'
12437 else
12438 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12441 chorus*)
12442 case $cc_basename in
12443 cxch68*)
12444 # Green Hills C++ Compiler
12445 # _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"
12447 esac
12449 darwin*)
12450 # PIC is the default on this platform
12451 # Common symbols not allowed in MH_DYLIB files
12452 case $cc_basename in
12453 xlc*)
12454 lt_prog_compiler_pic_CXX='-qnocommon'
12455 lt_prog_compiler_wl_CXX='-Wl,'
12457 esac
12459 dgux*)
12460 case $cc_basename in
12461 ec++*)
12462 lt_prog_compiler_pic_CXX='-KPIC'
12464 ghcx*)
12465 # Green Hills C++ Compiler
12466 lt_prog_compiler_pic_CXX='-pic'
12470 esac
12472 freebsd* | dragonfly*)
12473 # FreeBSD uses GNU C++
12475 hpux9* | hpux10* | hpux11*)
12476 case $cc_basename in
12477 CC*)
12478 lt_prog_compiler_wl_CXX='-Wl,'
12479 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12480 if test "$host_cpu" != ia64; then
12481 lt_prog_compiler_pic_CXX='+Z'
12484 aCC*)
12485 lt_prog_compiler_wl_CXX='-Wl,'
12486 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12487 case $host_cpu in
12488 hppa*64*|ia64*)
12489 # +Z the default
12492 lt_prog_compiler_pic_CXX='+Z'
12494 esac
12498 esac
12500 interix*)
12501 # This is c89, which is MS Visual C++ (no shared libs)
12502 # Anyone wants to do a port?
12504 irix5* | irix6* | nonstopux*)
12505 case $cc_basename in
12506 CC*)
12507 lt_prog_compiler_wl_CXX='-Wl,'
12508 lt_prog_compiler_static_CXX='-non_shared'
12509 # CC pic flag -KPIC is the default.
12513 esac
12515 linux* | k*bsd*-gnu)
12516 case $cc_basename in
12517 KCC*)
12518 # KAI C++ Compiler
12519 lt_prog_compiler_wl_CXX='--backend -Wl,'
12520 lt_prog_compiler_pic_CXX='-fPIC'
12522 icpc* | ecpc*)
12523 # Intel C++
12524 lt_prog_compiler_wl_CXX='-Wl,'
12525 lt_prog_compiler_pic_CXX='-KPIC'
12526 lt_prog_compiler_static_CXX='-static'
12528 pgCC* | pgcpp*)
12529 # Portland Group C++ compiler.
12530 lt_prog_compiler_wl_CXX='-Wl,'
12531 lt_prog_compiler_pic_CXX='-fpic'
12532 lt_prog_compiler_static_CXX='-Bstatic'
12534 cxx*)
12535 # Compaq C++
12536 # Make sure the PIC flag is empty. It appears that all Alpha
12537 # Linux and Compaq Tru64 Unix objects are PIC.
12538 lt_prog_compiler_pic_CXX=
12539 lt_prog_compiler_static_CXX='-non_shared'
12542 case `$CC -V 2>&1 | sed 5q` in
12543 *Sun\ C*)
12544 # Sun C++ 5.9
12545 lt_prog_compiler_pic_CXX='-KPIC'
12546 lt_prog_compiler_static_CXX='-Bstatic'
12547 lt_prog_compiler_wl_CXX='-Qoption ld '
12549 esac
12551 esac
12553 lynxos*)
12555 m88k*)
12557 mvs*)
12558 case $cc_basename in
12559 cxx*)
12560 lt_prog_compiler_pic_CXX='-W c,exportall'
12564 esac
12566 netbsd* | netbsdelf*-gnu)
12568 osf3* | osf4* | osf5*)
12569 case $cc_basename in
12570 KCC*)
12571 lt_prog_compiler_wl_CXX='--backend -Wl,'
12573 RCC*)
12574 # Rational C++ 2.4.1
12575 lt_prog_compiler_pic_CXX='-pic'
12577 cxx*)
12578 # Digital/Compaq C++
12579 lt_prog_compiler_wl_CXX='-Wl,'
12580 # Make sure the PIC flag is empty. It appears that all Alpha
12581 # Linux and Compaq Tru64 Unix objects are PIC.
12582 lt_prog_compiler_pic_CXX=
12583 lt_prog_compiler_static_CXX='-non_shared'
12587 esac
12589 psos*)
12591 solaris*)
12592 case $cc_basename in
12593 CC*)
12594 # Sun C++ 4.2, 5.x and Centerline C++
12595 lt_prog_compiler_pic_CXX='-KPIC'
12596 lt_prog_compiler_static_CXX='-Bstatic'
12597 lt_prog_compiler_wl_CXX='-Qoption ld '
12599 gcx*)
12600 # Green Hills C++ Compiler
12601 lt_prog_compiler_pic_CXX='-PIC'
12605 esac
12607 sunos4*)
12608 case $cc_basename in
12609 CC*)
12610 # Sun C++ 4.x
12611 lt_prog_compiler_pic_CXX='-pic'
12612 lt_prog_compiler_static_CXX='-Bstatic'
12614 lcc*)
12615 # Lucid
12616 lt_prog_compiler_pic_CXX='-pic'
12620 esac
12622 tandem*)
12623 case $cc_basename in
12624 NCC*)
12625 # NonStop-UX NCC 3.20
12626 lt_prog_compiler_pic_CXX='-KPIC'
12630 esac
12632 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12633 case $cc_basename in
12634 CC*)
12635 lt_prog_compiler_wl_CXX='-Wl,'
12636 lt_prog_compiler_pic_CXX='-KPIC'
12637 lt_prog_compiler_static_CXX='-Bstatic'
12639 esac
12641 vxworks*)
12644 lt_prog_compiler_can_build_shared_CXX=no
12646 esac
12649 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
12650 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
12653 # Check to make sure the PIC flag actually works.
12655 if test -n "$lt_prog_compiler_pic_CXX"; then
12657 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12658 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
12659 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then
12660 echo $ECHO_N "(cached) $ECHO_C" >&6
12661 else
12662 lt_cv_prog_compiler_pic_works_CXX=no
12663 ac_outfile=conftest.$ac_objext
12664 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12665 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12666 # Insert the option either (1) after the last *FLAGS variable, or
12667 # (2) before a word containing "conftest.", or (3) at the end.
12668 # Note that $ac_compile itself does not contain backslashes and begins
12669 # with a dollar sign (not a hyphen), so the echo should work correctly.
12670 # The option is referenced via a variable to avoid confusing sed.
12671 lt_compile=`echo "$ac_compile" | $SED \
12672 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12673 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12674 -e 's:$: $lt_compiler_flag:'`
12675 (eval echo "\"\$as_me:12675: $lt_compile\"" >&5)
12676 (eval "$lt_compile" 2>conftest.err)
12677 ac_status=$?
12678 cat conftest.err >&5
12679 echo "$as_me:12679: \$? = $ac_status" >&5
12680 if (exit $ac_status) && test -s "$ac_outfile"; then
12681 # The compiler can only warn and ignore the option if not recognized
12682 # So say no if there are warnings other than the usual output.
12683 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12684 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12685 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12686 lt_cv_prog_compiler_pic_works_CXX=yes
12689 $rm conftest*
12692 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
12693 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_CXX" >&6; }
12695 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
12696 case $lt_prog_compiler_pic_CXX in
12697 "" | " "*) ;;
12698 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12699 esac
12700 else
12701 lt_prog_compiler_pic_CXX=
12702 lt_prog_compiler_can_build_shared_CXX=no
12706 case $host_os in
12707 # For platforms which do not support PIC, -DPIC is meaningless:
12708 *djgpp*)
12709 lt_prog_compiler_pic_CXX=
12712 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
12714 esac
12717 # Check to make sure the static flag actually works.
12719 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
12720 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12721 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
12722 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then
12723 echo $ECHO_N "(cached) $ECHO_C" >&6
12724 else
12725 lt_cv_prog_compiler_static_works_CXX=no
12726 save_LDFLAGS="$LDFLAGS"
12727 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12728 echo "$lt_simple_link_test_code" > conftest.$ac_ext
12729 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12730 # The linker can only warn and ignore the option if not recognized
12731 # So say no if there are warnings
12732 if test -s conftest.err; then
12733 # Append any errors to the config.log.
12734 cat conftest.err 1>&5
12735 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
12736 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12737 if diff conftest.exp conftest.er2 >/dev/null; then
12738 lt_cv_prog_compiler_static_works_CXX=yes
12740 else
12741 lt_cv_prog_compiler_static_works_CXX=yes
12744 $rm -r conftest*
12745 LDFLAGS="$save_LDFLAGS"
12748 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_CXX" >&5
12749 echo "${ECHO_T}$lt_cv_prog_compiler_static_works_CXX" >&6; }
12751 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
12753 else
12754 lt_prog_compiler_static_CXX=
12758 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12759 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
12760 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
12761 echo $ECHO_N "(cached) $ECHO_C" >&6
12762 else
12763 lt_cv_prog_compiler_c_o_CXX=no
12764 $rm -r conftest 2>/dev/null
12765 mkdir conftest
12766 cd conftest
12767 mkdir out
12768 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12770 lt_compiler_flag="-o out/conftest2.$ac_objext"
12771 # Insert the option either (1) after the last *FLAGS variable, or
12772 # (2) before a word containing "conftest.", or (3) at the end.
12773 # Note that $ac_compile itself does not contain backslashes and begins
12774 # with a dollar sign (not a hyphen), so the echo should work correctly.
12775 lt_compile=`echo "$ac_compile" | $SED \
12776 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12777 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12778 -e 's:$: $lt_compiler_flag:'`
12779 (eval echo "\"\$as_me:12779: $lt_compile\"" >&5)
12780 (eval "$lt_compile" 2>out/conftest.err)
12781 ac_status=$?
12782 cat out/conftest.err >&5
12783 echo "$as_me:12783: \$? = $ac_status" >&5
12784 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12785 then
12786 # The compiler can only warn and ignore the option if not recognized
12787 # So say no if there are warnings
12788 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
12789 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12790 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12791 lt_cv_prog_compiler_c_o_CXX=yes
12794 chmod u+w . 2>&5
12795 $rm conftest*
12796 # SGI C++ compiler will create directory out/ii_files/ for
12797 # template instantiation
12798 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12799 $rm out/* && rmdir out
12800 cd ..
12801 rmdir conftest
12802 $rm conftest*
12805 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
12806 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
12809 hard_links="nottested"
12810 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
12811 # do not overwrite the value of need_locks provided by the user
12812 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12813 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
12814 hard_links=yes
12815 $rm conftest*
12816 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12817 touch conftest.a
12818 ln conftest.a conftest.b 2>&5 || hard_links=no
12819 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12820 { echo "$as_me:$LINENO: result: $hard_links" >&5
12821 echo "${ECHO_T}$hard_links" >&6; }
12822 if test "$hard_links" = no; then
12823 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12824 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12825 need_locks=warn
12827 else
12828 need_locks=no
12831 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12832 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
12834 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12835 case $host_os in
12836 aix[4-9]*)
12837 # If we're using GNU nm, then we don't want the "-C" option.
12838 # -C means demangle to AIX nm, but means don't demangle with GNU nm
12839 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12840 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'
12841 else
12842 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'
12845 pw32*)
12846 export_symbols_cmds_CXX="$ltdll_cmds"
12848 cygwin* | mingw*)
12849 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'
12851 linux* | k*bsd*-gnu)
12852 link_all_deplibs_CXX=no
12855 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12857 esac
12858 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
12860 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12861 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12862 test "$ld_shlibs_CXX" = no && can_build_shared=no
12865 # Do we need to explicitly link libc?
12867 case "x$archive_cmds_need_lc_CXX" in
12868 x|xyes)
12869 # Assume -lc should be added
12870 archive_cmds_need_lc_CXX=yes
12872 if test "$enable_shared" = yes && test "$GCC" = yes; then
12873 case $archive_cmds_CXX in
12874 *'~'*)
12875 # FIXME: we may have to deal with multi-command sequences.
12877 '$CC '*)
12878 # Test whether the compiler implicitly links with -lc since on some
12879 # systems, -lgcc has to come before -lc. If gcc already passes -lc
12880 # to ld, don't add -lc before -lgcc.
12881 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
12882 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
12883 $rm conftest*
12884 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12886 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12887 (eval $ac_compile) 2>&5
12888 ac_status=$?
12889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12890 (exit $ac_status); } 2>conftest.err; then
12891 soname=conftest
12892 lib=conftest
12893 libobjs=conftest.$ac_objext
12894 deplibs=
12895 wl=$lt_prog_compiler_wl_CXX
12896 pic_flag=$lt_prog_compiler_pic_CXX
12897 compiler_flags=-v
12898 linker_flags=-v
12899 verstring=
12900 output_objdir=.
12901 libname=conftest
12902 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
12903 allow_undefined_flag_CXX=
12904 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
12905 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
12906 ac_status=$?
12907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12908 (exit $ac_status); }
12909 then
12910 archive_cmds_need_lc_CXX=no
12911 else
12912 archive_cmds_need_lc_CXX=yes
12914 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
12915 else
12916 cat conftest.err 1>&5
12918 $rm conftest*
12919 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
12920 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
12922 esac
12925 esac
12927 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
12928 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
12929 library_names_spec=
12930 libname_spec='lib$name'
12931 soname_spec=
12932 shrext_cmds=".so"
12933 postinstall_cmds=
12934 postuninstall_cmds=
12935 finish_cmds=
12936 finish_eval=
12937 shlibpath_var=
12938 shlibpath_overrides_runpath=unknown
12939 version_type=none
12940 dynamic_linker="$host_os ld.so"
12941 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12943 need_lib_prefix=unknown
12944 hardcode_into_libs=no
12946 # when you set need_version to no, make sure it does not cause -set_version
12947 # flags to be left without arguments
12948 need_version=unknown
12950 case $host_os in
12951 aix3*)
12952 version_type=linux
12953 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12954 shlibpath_var=LIBPATH
12956 # AIX 3 has no versioning support, so we append a major version to the name.
12957 soname_spec='${libname}${release}${shared_ext}$major'
12960 aix[4-9]*)
12961 version_type=linux
12962 need_lib_prefix=no
12963 need_version=no
12964 hardcode_into_libs=yes
12965 if test "$host_cpu" = ia64; then
12966 # AIX 5 supports IA64
12967 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12968 shlibpath_var=LD_LIBRARY_PATH
12969 else
12970 # With GCC up to 2.95.x, collect2 would create an import file
12971 # for dependence libraries. The import file would start with
12972 # the line `#! .'. This would cause the generated library to
12973 # depend on `.', always an invalid library. This was fixed in
12974 # development snapshots of GCC prior to 3.0.
12975 case $host_os in
12976 aix4 | aix4.[01] | aix4.[01].*)
12977 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12978 echo ' yes '
12979 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
12981 else
12982 can_build_shared=no
12985 esac
12986 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12987 # soname into executable. Probably we can add versioning support to
12988 # collect2, so additional links can be useful in future.
12989 if test "$aix_use_runtimelinking" = yes; then
12990 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12991 # instead of lib<name>.a to let people know that these are not
12992 # typical AIX shared libraries.
12993 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12994 else
12995 # We preserve .a as extension for shared libraries through AIX4.2
12996 # and later when we are not doing run time linking.
12997 library_names_spec='${libname}${release}.a $libname.a'
12998 soname_spec='${libname}${release}${shared_ext}$major'
13000 shlibpath_var=LIBPATH
13004 amigaos*)
13005 library_names_spec='$libname.ixlibrary $libname.a'
13006 # Create ${libname}_ixlibrary.a entries in /sys/libs.
13007 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'
13010 beos*)
13011 library_names_spec='${libname}${shared_ext}'
13012 dynamic_linker="$host_os ld.so"
13013 shlibpath_var=LIBRARY_PATH
13016 bsdi[45]*)
13017 version_type=linux
13018 need_version=no
13019 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13020 soname_spec='${libname}${release}${shared_ext}$major'
13021 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13022 shlibpath_var=LD_LIBRARY_PATH
13023 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13024 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13025 # the default ld.so.conf also contains /usr/contrib/lib and
13026 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13027 # libtool to hard-code these into programs
13030 cygwin* | mingw* | pw32*)
13031 version_type=windows
13032 shrext_cmds=".dll"
13033 need_version=no
13034 need_lib_prefix=no
13036 case $GCC,$host_os in
13037 yes,cygwin* | yes,mingw* | yes,pw32*)
13038 library_names_spec='$libname.dll.a'
13039 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13040 postinstall_cmds='base_file=`basename \${file}`~
13041 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13042 dldir=$destdir/`dirname \$dlpath`~
13043 test -d \$dldir || mkdir -p \$dldir~
13044 $install_prog $dir/$dlname \$dldir/$dlname~
13045 chmod a+x \$dldir/$dlname'
13046 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13047 dlpath=$dir/\$dldll~
13048 $rm \$dlpath'
13049 shlibpath_overrides_runpath=yes
13051 case $host_os in
13052 cygwin*)
13053 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13054 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13055 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13057 mingw*)
13058 # MinGW DLLs use traditional 'lib' prefix
13059 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13060 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13061 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13062 # It is most probably a Windows format PATH printed by
13063 # mingw gcc, but we are running on Cygwin. Gcc prints its search
13064 # path with ; separators, and with drive letters. We can handle the
13065 # drive letters (cygwin fileutils understands them), so leave them,
13066 # especially as we might pass files found there to a mingw objdump,
13067 # which wouldn't understand a cygwinified path. Ahh.
13068 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13069 else
13070 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13073 pw32*)
13074 # pw32 DLLs use 'pw' prefix rather than 'lib'
13075 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13077 esac
13081 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13083 esac
13084 dynamic_linker='Win32 ld.exe'
13085 # FIXME: first we should search . and the directory the executable is in
13086 shlibpath_var=PATH
13089 darwin* | rhapsody*)
13090 dynamic_linker="$host_os dyld"
13091 version_type=darwin
13092 need_lib_prefix=no
13093 need_version=no
13094 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13095 soname_spec='${libname}${release}${major}$shared_ext'
13096 shlibpath_overrides_runpath=yes
13097 shlibpath_var=DYLD_LIBRARY_PATH
13098 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13100 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13103 dgux*)
13104 version_type=linux
13105 need_lib_prefix=no
13106 need_version=no
13107 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13108 soname_spec='${libname}${release}${shared_ext}$major'
13109 shlibpath_var=LD_LIBRARY_PATH
13112 freebsd1*)
13113 dynamic_linker=no
13116 freebsd* | dragonfly*)
13117 # DragonFly does not have aout. When/if they implement a new
13118 # versioning mechanism, adjust this.
13119 if test -x /usr/bin/objformat; then
13120 objformat=`/usr/bin/objformat`
13121 else
13122 case $host_os in
13123 freebsd[123]*) objformat=aout ;;
13124 *) objformat=elf ;;
13125 esac
13127 version_type=freebsd-$objformat
13128 case $version_type in
13129 freebsd-elf*)
13130 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13131 need_version=no
13132 need_lib_prefix=no
13134 freebsd-*)
13135 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13136 need_version=yes
13138 esac
13139 shlibpath_var=LD_LIBRARY_PATH
13140 case $host_os in
13141 freebsd2*)
13142 shlibpath_overrides_runpath=yes
13144 freebsd3.[01]* | freebsdelf3.[01]*)
13145 shlibpath_overrides_runpath=yes
13146 hardcode_into_libs=yes
13148 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13149 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13150 shlibpath_overrides_runpath=no
13151 hardcode_into_libs=yes
13153 *) # from 4.6 on, and DragonFly
13154 shlibpath_overrides_runpath=yes
13155 hardcode_into_libs=yes
13157 esac
13160 gnu*)
13161 version_type=linux
13162 need_lib_prefix=no
13163 need_version=no
13164 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13165 soname_spec='${libname}${release}${shared_ext}$major'
13166 shlibpath_var=LD_LIBRARY_PATH
13167 hardcode_into_libs=yes
13170 hpux9* | hpux10* | hpux11*)
13171 # Give a soname corresponding to the major version so that dld.sl refuses to
13172 # link against other versions.
13173 version_type=sunos
13174 need_lib_prefix=no
13175 need_version=no
13176 case $host_cpu in
13177 ia64*)
13178 shrext_cmds='.so'
13179 hardcode_into_libs=yes
13180 dynamic_linker="$host_os dld.so"
13181 shlibpath_var=LD_LIBRARY_PATH
13182 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13183 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13184 soname_spec='${libname}${release}${shared_ext}$major'
13185 if test "X$HPUX_IA64_MODE" = X32; then
13186 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13187 else
13188 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13190 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13192 hppa*64*)
13193 shrext_cmds='.sl'
13194 hardcode_into_libs=yes
13195 dynamic_linker="$host_os dld.sl"
13196 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13197 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13198 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13199 soname_spec='${libname}${release}${shared_ext}$major'
13200 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13201 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13204 shrext_cmds='.sl'
13205 dynamic_linker="$host_os dld.sl"
13206 shlibpath_var=SHLIB_PATH
13207 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13208 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13209 soname_spec='${libname}${release}${shared_ext}$major'
13211 esac
13212 # HP-UX runs *really* slowly unless shared libraries are mode 555.
13213 postinstall_cmds='chmod 555 $lib'
13216 interix[3-9]*)
13217 version_type=linux
13218 need_lib_prefix=no
13219 need_version=no
13220 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13221 soname_spec='${libname}${release}${shared_ext}$major'
13222 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13223 shlibpath_var=LD_LIBRARY_PATH
13224 shlibpath_overrides_runpath=no
13225 hardcode_into_libs=yes
13228 irix5* | irix6* | nonstopux*)
13229 case $host_os in
13230 nonstopux*) version_type=nonstopux ;;
13232 if test "$lt_cv_prog_gnu_ld" = yes; then
13233 version_type=linux
13234 else
13235 version_type=irix
13236 fi ;;
13237 esac
13238 need_lib_prefix=no
13239 need_version=no
13240 soname_spec='${libname}${release}${shared_ext}$major'
13241 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13242 case $host_os in
13243 irix5* | nonstopux*)
13244 libsuff= shlibsuff=
13247 case $LD in # libtool.m4 will add one of these switches to LD
13248 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13249 libsuff= shlibsuff= libmagic=32-bit;;
13250 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13251 libsuff=32 shlibsuff=N32 libmagic=N32;;
13252 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13253 libsuff=64 shlibsuff=64 libmagic=64-bit;;
13254 *) libsuff= shlibsuff= libmagic=never-match;;
13255 esac
13257 esac
13258 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13259 shlibpath_overrides_runpath=no
13260 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13261 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13262 hardcode_into_libs=yes
13265 # No shared lib support for Linux oldld, aout, or coff.
13266 linux*oldld* | linux*aout* | linux*coff*)
13267 dynamic_linker=no
13270 # This must be Linux ELF.
13271 linux* | k*bsd*-gnu)
13272 version_type=linux
13273 need_lib_prefix=no
13274 need_version=no
13275 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13276 soname_spec='${libname}${release}${shared_ext}$major'
13277 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13278 shlibpath_var=LD_LIBRARY_PATH
13279 shlibpath_overrides_runpath=no
13280 # This implies no fast_install, which is unacceptable.
13281 # Some rework will be needed to allow for fast_install
13282 # before this can be enabled.
13283 hardcode_into_libs=yes
13285 # Append ld.so.conf contents to the search path
13286 if test -f /etc/ld.so.conf; then
13287 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
13288 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13291 # We used to test for /lib/ld.so.1 and disable shared libraries on
13292 # powerpc, because MkLinux only supported shared libraries with the
13293 # GNU dynamic linker. Since this was broken with cross compilers,
13294 # most powerpc-linux boxes support dynamic linking these days and
13295 # people can always --disable-shared, the test was removed, and we
13296 # assume the GNU/Linux dynamic linker is in use.
13297 dynamic_linker='GNU/Linux ld.so'
13300 netbsdelf*-gnu)
13301 version_type=linux
13302 need_lib_prefix=no
13303 need_version=no
13304 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13305 soname_spec='${libname}${release}${shared_ext}$major'
13306 shlibpath_var=LD_LIBRARY_PATH
13307 shlibpath_overrides_runpath=no
13308 hardcode_into_libs=yes
13309 dynamic_linker='NetBSD ld.elf_so'
13312 netbsd*)
13313 version_type=sunos
13314 need_lib_prefix=no
13315 need_version=no
13316 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13317 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13318 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13319 dynamic_linker='NetBSD (a.out) ld.so'
13320 else
13321 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13322 soname_spec='${libname}${release}${shared_ext}$major'
13323 dynamic_linker='NetBSD ld.elf_so'
13325 shlibpath_var=LD_LIBRARY_PATH
13326 shlibpath_overrides_runpath=yes
13327 hardcode_into_libs=yes
13330 newsos6)
13331 version_type=linux
13332 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13333 shlibpath_var=LD_LIBRARY_PATH
13334 shlibpath_overrides_runpath=yes
13337 nto-qnx*)
13338 version_type=linux
13339 need_lib_prefix=no
13340 need_version=no
13341 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13342 soname_spec='${libname}${release}${shared_ext}$major'
13343 shlibpath_var=LD_LIBRARY_PATH
13344 shlibpath_overrides_runpath=yes
13347 openbsd*)
13348 version_type=sunos
13349 sys_lib_dlsearch_path_spec="/usr/lib"
13350 need_lib_prefix=no
13351 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13352 case $host_os in
13353 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
13354 *) need_version=no ;;
13355 esac
13356 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13357 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13358 shlibpath_var=LD_LIBRARY_PATH
13359 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13360 case $host_os in
13361 openbsd2.[89] | openbsd2.[89].*)
13362 shlibpath_overrides_runpath=no
13365 shlibpath_overrides_runpath=yes
13367 esac
13368 else
13369 shlibpath_overrides_runpath=yes
13373 os2*)
13374 libname_spec='$name'
13375 shrext_cmds=".dll"
13376 need_lib_prefix=no
13377 library_names_spec='$libname${shared_ext} $libname.a'
13378 dynamic_linker='OS/2 ld.exe'
13379 shlibpath_var=LIBPATH
13382 osf3* | osf4* | osf5*)
13383 version_type=osf
13384 need_lib_prefix=no
13385 need_version=no
13386 soname_spec='${libname}${release}${shared_ext}$major'
13387 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13388 shlibpath_var=LD_LIBRARY_PATH
13389 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13390 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13393 rdos*)
13394 dynamic_linker=no
13397 solaris*)
13398 version_type=linux
13399 need_lib_prefix=no
13400 need_version=no
13401 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13402 soname_spec='${libname}${release}${shared_ext}$major'
13403 shlibpath_var=LD_LIBRARY_PATH
13404 shlibpath_overrides_runpath=yes
13405 hardcode_into_libs=yes
13406 # ldd complains unless libraries are executable
13407 postinstall_cmds='chmod +x $lib'
13410 sunos4*)
13411 version_type=sunos
13412 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13413 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13414 shlibpath_var=LD_LIBRARY_PATH
13415 shlibpath_overrides_runpath=yes
13416 if test "$with_gnu_ld" = yes; then
13417 need_lib_prefix=no
13419 need_version=yes
13422 sysv4 | sysv4.3*)
13423 version_type=linux
13424 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13425 soname_spec='${libname}${release}${shared_ext}$major'
13426 shlibpath_var=LD_LIBRARY_PATH
13427 case $host_vendor in
13428 sni)
13429 shlibpath_overrides_runpath=no
13430 need_lib_prefix=no
13431 export_dynamic_flag_spec='${wl}-Blargedynsym'
13432 runpath_var=LD_RUN_PATH
13434 siemens)
13435 need_lib_prefix=no
13437 motorola)
13438 need_lib_prefix=no
13439 need_version=no
13440 shlibpath_overrides_runpath=no
13441 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13443 esac
13446 sysv4*MP*)
13447 if test -d /usr/nec ;then
13448 version_type=linux
13449 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13450 soname_spec='$libname${shared_ext}.$major'
13451 shlibpath_var=LD_LIBRARY_PATH
13455 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13456 version_type=freebsd-elf
13457 need_lib_prefix=no
13458 need_version=no
13459 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13460 soname_spec='${libname}${release}${shared_ext}$major'
13461 shlibpath_var=LD_LIBRARY_PATH
13462 hardcode_into_libs=yes
13463 if test "$with_gnu_ld" = yes; then
13464 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13465 shlibpath_overrides_runpath=no
13466 else
13467 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13468 shlibpath_overrides_runpath=yes
13469 case $host_os in
13470 sco3.2v5*)
13471 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13473 esac
13475 sys_lib_dlsearch_path_spec='/usr/lib'
13478 uts4*)
13479 version_type=linux
13480 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13481 soname_spec='${libname}${release}${shared_ext}$major'
13482 shlibpath_var=LD_LIBRARY_PATH
13486 dynamic_linker=no
13488 esac
13489 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13490 echo "${ECHO_T}$dynamic_linker" >&6; }
13491 test "$dynamic_linker" = no && can_build_shared=no
13493 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
13494 echo $ECHO_N "(cached) $ECHO_C" >&6
13495 else
13496 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
13499 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
13500 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
13501 echo $ECHO_N "(cached) $ECHO_C" >&6
13502 else
13503 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
13506 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
13508 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13509 if test "$GCC" = yes; then
13510 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13513 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13514 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
13515 hardcode_action_CXX=
13516 if test -n "$hardcode_libdir_flag_spec_CXX" || \
13517 test -n "$runpath_var_CXX" || \
13518 test "X$hardcode_automatic_CXX" = "Xyes" ; then
13520 # We can hardcode non-existant directories.
13521 if test "$hardcode_direct_CXX" != no &&
13522 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13523 # have to relink, otherwise we might link with an installed library
13524 # when we should be linking with a yet-to-be-installed one
13525 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13526 test "$hardcode_minus_L_CXX" != no; then
13527 # Linking always hardcodes the temporary library directory.
13528 hardcode_action_CXX=relink
13529 else
13530 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13531 hardcode_action_CXX=immediate
13533 else
13534 # We cannot hardcode anything, or else we can only hardcode existing
13535 # directories.
13536 hardcode_action_CXX=unsupported
13538 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
13539 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
13541 if test "$hardcode_action_CXX" = relink; then
13542 # Fast installation is not supported
13543 enable_fast_install=no
13544 elif test "$shlibpath_overrides_runpath" = yes ||
13545 test "$enable_shared" = no; then
13546 # Fast installation is not necessary
13547 enable_fast_install=needless
13551 # The else clause should only fire when bootstrapping the
13552 # libtool distribution, otherwise you forgot to ship ltmain.sh
13553 # with your package, and you will get complaints that there are
13554 # no rules to generate ltmain.sh.
13555 if test -f "$ltmain"; then
13556 # See if we are running on zsh, and set the options which allow our commands through
13557 # without removal of \ escapes.
13558 if test -n "${ZSH_VERSION+set}" ; then
13559 setopt NO_GLOB_SUBST
13561 # Now quote all the things that may contain metacharacters while being
13562 # careful not to overquote the AC_SUBSTed values. We take copies of the
13563 # variables and quote the copies for generation of the libtool script.
13564 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
13565 SED SHELL STRIP \
13566 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13567 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13568 deplibs_check_method reload_flag reload_cmds need_locks \
13569 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13570 lt_cv_sys_global_symbol_to_c_name_address \
13571 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13572 old_postinstall_cmds old_postuninstall_cmds \
13573 compiler_CXX \
13574 CC_CXX \
13575 LD_CXX \
13576 lt_prog_compiler_wl_CXX \
13577 lt_prog_compiler_pic_CXX \
13578 lt_prog_compiler_static_CXX \
13579 lt_prog_compiler_no_builtin_flag_CXX \
13580 export_dynamic_flag_spec_CXX \
13581 thread_safe_flag_spec_CXX \
13582 whole_archive_flag_spec_CXX \
13583 enable_shared_with_static_runtimes_CXX \
13584 old_archive_cmds_CXX \
13585 old_archive_from_new_cmds_CXX \
13586 predep_objects_CXX \
13587 postdep_objects_CXX \
13588 predeps_CXX \
13589 postdeps_CXX \
13590 compiler_lib_search_path_CXX \
13591 compiler_lib_search_dirs_CXX \
13592 archive_cmds_CXX \
13593 archive_expsym_cmds_CXX \
13594 postinstall_cmds_CXX \
13595 postuninstall_cmds_CXX \
13596 old_archive_from_expsyms_cmds_CXX \
13597 allow_undefined_flag_CXX \
13598 no_undefined_flag_CXX \
13599 export_symbols_cmds_CXX \
13600 hardcode_libdir_flag_spec_CXX \
13601 hardcode_libdir_flag_spec_ld_CXX \
13602 hardcode_libdir_separator_CXX \
13603 hardcode_automatic_CXX \
13604 module_cmds_CXX \
13605 module_expsym_cmds_CXX \
13606 lt_cv_prog_compiler_c_o_CXX \
13607 fix_srcfile_path_CXX \
13608 exclude_expsyms_CXX \
13609 include_expsyms_CXX; do
13611 case $var in
13612 old_archive_cmds_CXX | \
13613 old_archive_from_new_cmds_CXX | \
13614 archive_cmds_CXX | \
13615 archive_expsym_cmds_CXX | \
13616 module_cmds_CXX | \
13617 module_expsym_cmds_CXX | \
13618 old_archive_from_expsyms_cmds_CXX | \
13619 export_symbols_cmds_CXX | \
13620 extract_expsyms_cmds | reload_cmds | finish_cmds | \
13621 postinstall_cmds | postuninstall_cmds | \
13622 old_postinstall_cmds | old_postuninstall_cmds | \
13623 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13624 # Double-quote double-evaled strings.
13625 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13628 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13630 esac
13631 done
13633 case $lt_echo in
13634 *'\$0 --fallback-echo"')
13635 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13637 esac
13639 cfgfile="$ofile"
13641 cat <<__EOF__ >> "$cfgfile"
13642 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
13644 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13646 # Shell to use when invoking shell scripts.
13647 SHELL=$lt_SHELL
13649 # Whether or not to build shared libraries.
13650 build_libtool_libs=$enable_shared
13652 # Whether or not to build static libraries.
13653 build_old_libs=$enable_static
13655 # Whether or not to add -lc for building shared libraries.
13656 build_libtool_need_lc=$archive_cmds_need_lc_CXX
13658 # Whether or not to disallow shared libs when runtime libs are static
13659 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13661 # Whether or not to optimize for fast installation.
13662 fast_install=$enable_fast_install
13664 # The host system.
13665 host_alias=$host_alias
13666 host=$host
13667 host_os=$host_os
13669 # The build system.
13670 build_alias=$build_alias
13671 build=$build
13672 build_os=$build_os
13674 # An echo program that does not interpret backslashes.
13675 echo=$lt_echo
13677 # The archiver.
13678 AR=$lt_AR
13679 AR_FLAGS=$lt_AR_FLAGS
13681 # A C compiler.
13682 LTCC=$lt_LTCC
13684 # LTCC compiler flags.
13685 LTCFLAGS=$lt_LTCFLAGS
13687 # A language-specific compiler.
13688 CC=$lt_compiler_CXX
13690 # Is the compiler the GNU C compiler?
13691 with_gcc=$GCC_CXX
13693 # An ERE matcher.
13694 EGREP=$lt_EGREP
13696 # The linker used to build libraries.
13697 LD=$lt_LD_CXX
13699 # Whether we need hard or soft links.
13700 LN_S=$lt_LN_S
13702 # A BSD-compatible nm program.
13703 NM=$lt_NM
13705 # A symbol stripping program
13706 STRIP=$lt_STRIP
13708 # Used to examine libraries when file_magic_cmd begins "file"
13709 MAGIC_CMD=$MAGIC_CMD
13711 # Used on cygwin: DLL creation program.
13712 DLLTOOL="$DLLTOOL"
13714 # Used on cygwin: object dumper.
13715 OBJDUMP="$OBJDUMP"
13717 # Used on cygwin: assembler.
13718 AS="$AS"
13720 # The name of the directory that contains temporary libtool files.
13721 objdir=$objdir
13723 # How to create reloadable object files.
13724 reload_flag=$lt_reload_flag
13725 reload_cmds=$lt_reload_cmds
13727 # How to pass a linker flag through the compiler.
13728 wl=$lt_lt_prog_compiler_wl_CXX
13730 # Object file suffix (normally "o").
13731 objext="$ac_objext"
13733 # Old archive suffix (normally "a").
13734 libext="$libext"
13736 # Shared library suffix (normally ".so").
13737 shrext_cmds='$shrext_cmds'
13739 # Executable file suffix (normally "").
13740 exeext="$exeext"
13742 # Additional compiler flags for building library objects.
13743 pic_flag=$lt_lt_prog_compiler_pic_CXX
13744 pic_mode=$pic_mode
13746 # What is the maximum length of a command?
13747 max_cmd_len=$lt_cv_sys_max_cmd_len
13749 # Does compiler simultaneously support -c and -o options?
13750 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13752 # Must we lock files when doing compilation?
13753 need_locks=$lt_need_locks
13755 # Do we need the lib prefix for modules?
13756 need_lib_prefix=$need_lib_prefix
13758 # Do we need a version for libraries?
13759 need_version=$need_version
13761 # Whether dlopen is supported.
13762 dlopen_support=$enable_dlopen
13764 # Whether dlopen of programs is supported.
13765 dlopen_self=$enable_dlopen_self
13767 # Whether dlopen of statically linked programs is supported.
13768 dlopen_self_static=$enable_dlopen_self_static
13770 # Compiler flag to prevent dynamic linking.
13771 link_static_flag=$lt_lt_prog_compiler_static_CXX
13773 # Compiler flag to turn off builtin functions.
13774 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13776 # Compiler flag to allow reflexive dlopens.
13777 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13779 # Compiler flag to generate shared objects directly from archives.
13780 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13782 # Compiler flag to generate thread-safe objects.
13783 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13785 # Library versioning type.
13786 version_type=$version_type
13788 # Format of library name prefix.
13789 libname_spec=$lt_libname_spec
13791 # List of archive names. First name is the real one, the rest are links.
13792 # The last name is the one that the linker finds with -lNAME.
13793 library_names_spec=$lt_library_names_spec
13795 # The coded name of the library, if different from the real name.
13796 soname_spec=$lt_soname_spec
13798 # Commands used to build and install an old-style archive.
13799 RANLIB=$lt_RANLIB
13800 old_archive_cmds=$lt_old_archive_cmds_CXX
13801 old_postinstall_cmds=$lt_old_postinstall_cmds
13802 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13804 # Create an old-style archive from a shared archive.
13805 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13807 # Create a temporary old-style archive to link instead of a shared archive.
13808 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13810 # Commands used to build and install a shared archive.
13811 archive_cmds=$lt_archive_cmds_CXX
13812 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13813 postinstall_cmds=$lt_postinstall_cmds
13814 postuninstall_cmds=$lt_postuninstall_cmds
13816 # Commands used to build a loadable module (assumed same as above if empty)
13817 module_cmds=$lt_module_cmds_CXX
13818 module_expsym_cmds=$lt_module_expsym_cmds_CXX
13820 # Commands to strip libraries.
13821 old_striplib=$lt_old_striplib
13822 striplib=$lt_striplib
13824 # Dependencies to place before the objects being linked to create a
13825 # shared library.
13826 predep_objects=$lt_predep_objects_CXX
13828 # Dependencies to place after the objects being linked to create a
13829 # shared library.
13830 postdep_objects=$lt_postdep_objects_CXX
13832 # Dependencies to place before the objects being linked to create a
13833 # shared library.
13834 predeps=$lt_predeps_CXX
13836 # Dependencies to place after the objects being linked to create a
13837 # shared library.
13838 postdeps=$lt_postdeps_CXX
13840 # The directories searched by this compiler when creating a shared
13841 # library
13842 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
13844 # The library search path used internally by the compiler when linking
13845 # a shared library.
13846 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13848 # Method to check whether dependent libraries are shared objects.
13849 deplibs_check_method=$lt_deplibs_check_method
13851 # Command to use when deplibs_check_method == file_magic.
13852 file_magic_cmd=$lt_file_magic_cmd
13854 # Flag that allows shared libraries with undefined symbols to be built.
13855 allow_undefined_flag=$lt_allow_undefined_flag_CXX
13857 # Flag that forces no undefined symbols.
13858 no_undefined_flag=$lt_no_undefined_flag_CXX
13860 # Commands used to finish a libtool library installation in a directory.
13861 finish_cmds=$lt_finish_cmds
13863 # Same as above, but a single script fragment to be evaled but not shown.
13864 finish_eval=$lt_finish_eval
13866 # Take the output of nm and produce a listing of raw symbols and C names.
13867 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13869 # Transform the output of nm in a proper C declaration
13870 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13872 # Transform the output of nm in a C name address pair
13873 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13875 # This is the shared library runtime path variable.
13876 runpath_var=$runpath_var
13878 # This is the shared library path variable.
13879 shlibpath_var=$shlibpath_var
13881 # Is shlibpath searched before the hard-coded library search path?
13882 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13884 # How to hardcode a shared library path into an executable.
13885 hardcode_action=$hardcode_action_CXX
13887 # Whether we should hardcode library paths into libraries.
13888 hardcode_into_libs=$hardcode_into_libs
13890 # Flag to hardcode \$libdir into a binary during linking.
13891 # This must work even if \$libdir does not exist.
13892 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13894 # If ld is used when linking, flag to hardcode \$libdir into
13895 # a binary during linking. This must work even if \$libdir does
13896 # not exist.
13897 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13899 # Whether we need a single -rpath flag with a separated argument.
13900 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13902 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13903 # resulting binary.
13904 hardcode_direct=$hardcode_direct_CXX
13906 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13907 # resulting binary.
13908 hardcode_minus_L=$hardcode_minus_L_CXX
13910 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13911 # the resulting binary.
13912 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13914 # Set to yes if building a shared library automatically hardcodes DIR into the library
13915 # and all subsequent libraries and executables linked against it.
13916 hardcode_automatic=$hardcode_automatic_CXX
13918 # Variables whose values should be saved in libtool wrapper scripts and
13919 # restored at relink time.
13920 variables_saved_for_relink="$variables_saved_for_relink"
13922 # Whether libtool must link a program against all its dependency libraries.
13923 link_all_deplibs=$link_all_deplibs_CXX
13925 # Compile-time system search path for libraries
13926 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13928 # Run-time system search path for libraries
13929 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13931 # Fix the shell variable \$srcfile for the compiler.
13932 fix_srcfile_path=$lt_fix_srcfile_path
13934 # Set to yes if exported symbols are required.
13935 always_export_symbols=$always_export_symbols_CXX
13937 # The commands to list exported symbols.
13938 export_symbols_cmds=$lt_export_symbols_cmds_CXX
13940 # The commands to extract the exported symbol list from a shared archive.
13941 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13943 # Symbols that should not be listed in the preloaded symbols.
13944 exclude_expsyms=$lt_exclude_expsyms_CXX
13946 # Symbols that must always be exported.
13947 include_expsyms=$lt_include_expsyms_CXX
13949 # ### END LIBTOOL TAG CONFIG: $tagname
13951 __EOF__
13954 else
13955 # If there is no Makefile yet, we rely on a make rule to execute
13956 # `config.status --recheck' to rerun these tests and create the
13957 # libtool script then.
13958 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13959 if test -f "$ltmain_in"; then
13960 test -f Makefile && make "$ltmain"
13965 ac_ext=c
13966 ac_cpp='$CPP $CPPFLAGS'
13967 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13968 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13969 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13971 CC=$lt_save_CC
13972 LDCXX=$LD
13973 LD=$lt_save_LD
13974 GCC=$lt_save_GCC
13975 with_gnu_ldcxx=$with_gnu_ld
13976 with_gnu_ld=$lt_save_with_gnu_ld
13977 lt_cv_path_LDCXX=$lt_cv_path_LD
13978 lt_cv_path_LD=$lt_save_path_LD
13979 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13980 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13982 else
13983 tagname=""
13987 F77)
13988 if test -n "$F77" && test "X$F77" != "Xno"; then
13990 ac_ext=f
13991 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13992 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13993 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13996 archive_cmds_need_lc_F77=no
13997 allow_undefined_flag_F77=
13998 always_export_symbols_F77=no
13999 archive_expsym_cmds_F77=
14000 export_dynamic_flag_spec_F77=
14001 hardcode_direct_F77=no
14002 hardcode_libdir_flag_spec_F77=
14003 hardcode_libdir_flag_spec_ld_F77=
14004 hardcode_libdir_separator_F77=
14005 hardcode_minus_L_F77=no
14006 hardcode_automatic_F77=no
14007 module_cmds_F77=
14008 module_expsym_cmds_F77=
14009 link_all_deplibs_F77=unknown
14010 old_archive_cmds_F77=$old_archive_cmds
14011 no_undefined_flag_F77=
14012 whole_archive_flag_spec_F77=
14013 enable_shared_with_static_runtimes_F77=no
14015 # Source file extension for f77 test sources.
14016 ac_ext=f
14018 # Object file extension for compiled f77 test sources.
14019 objext=o
14020 objext_F77=$objext
14022 # Code to be used in simple compile tests
14023 lt_simple_compile_test_code="\
14024 subroutine t
14025 return
14029 # Code to be used in simple link tests
14030 lt_simple_link_test_code="\
14031 program t
14035 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
14037 # If no C compiler was specified, use CC.
14038 LTCC=${LTCC-"$CC"}
14040 # If no C compiler flags were specified, use CFLAGS.
14041 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14043 # Allow CC to be a program name with arguments.
14044 compiler=$CC
14047 # save warnings/boilerplate of simple test code
14048 ac_outfile=conftest.$ac_objext
14049 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14050 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14051 _lt_compiler_boilerplate=`cat conftest.err`
14052 $rm conftest*
14054 ac_outfile=conftest.$ac_objext
14055 echo "$lt_simple_link_test_code" >conftest.$ac_ext
14056 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14057 _lt_linker_boilerplate=`cat conftest.err`
14058 $rm -r conftest*
14061 # Allow CC to be a program name with arguments.
14062 lt_save_CC="$CC"
14063 CC=${F77-"f77"}
14064 compiler=$CC
14065 compiler_F77=$CC
14066 for cc_temp in $compiler""; do
14067 case $cc_temp in
14068 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14069 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14070 \-*) ;;
14071 *) break;;
14072 esac
14073 done
14074 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14077 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14078 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
14079 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
14080 echo "${ECHO_T}$can_build_shared" >&6; }
14082 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14083 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
14084 test "$can_build_shared" = "no" && enable_shared=no
14086 # On AIX, shared libraries and static libraries use the same namespace, and
14087 # are all built from PIC.
14088 case $host_os in
14089 aix3*)
14090 test "$enable_shared" = yes && enable_static=no
14091 if test -n "$RANLIB"; then
14092 archive_cmds="$archive_cmds~\$RANLIB \$lib"
14093 postinstall_cmds='$RANLIB $lib'
14096 aix[4-9]*)
14097 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14098 test "$enable_shared" = yes && enable_static=no
14101 esac
14102 { echo "$as_me:$LINENO: result: $enable_shared" >&5
14103 echo "${ECHO_T}$enable_shared" >&6; }
14105 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14106 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
14107 # Make sure either enable_shared or enable_static is yes.
14108 test "$enable_shared" = yes || enable_static=yes
14109 { echo "$as_me:$LINENO: result: $enable_static" >&5
14110 echo "${ECHO_T}$enable_static" >&6; }
14112 GCC_F77="$G77"
14113 LD_F77="$LD"
14115 lt_prog_compiler_wl_F77=
14116 lt_prog_compiler_pic_F77=
14117 lt_prog_compiler_static_F77=
14119 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14120 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
14122 if test "$GCC" = yes; then
14123 lt_prog_compiler_wl_F77='-Wl,'
14124 lt_prog_compiler_static_F77='-static'
14126 case $host_os in
14127 aix*)
14128 # All AIX code is PIC.
14129 if test "$host_cpu" = ia64; then
14130 # AIX 5 now supports IA64 processor
14131 lt_prog_compiler_static_F77='-Bstatic'
14135 amigaos*)
14136 # FIXME: we need at least 68020 code to build shared libraries, but
14137 # adding the `-m68020' flag to GCC prevents building anything better,
14138 # like `-m68040'.
14139 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
14142 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14143 # PIC is the default for these OSes.
14146 mingw* | cygwin* | pw32* | os2*)
14147 # This hack is so that the source file can tell whether it is being
14148 # built for inclusion in a dll (and should export symbols for example).
14149 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14150 # (--disable-auto-import) libraries
14151 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14154 darwin* | rhapsody*)
14155 # PIC is the default on this platform
14156 # Common symbols not allowed in MH_DYLIB files
14157 lt_prog_compiler_pic_F77='-fno-common'
14160 interix[3-9]*)
14161 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14162 # Instead, we relocate shared libraries at runtime.
14165 msdosdjgpp*)
14166 # Just because we use GCC doesn't mean we suddenly get shared libraries
14167 # on systems that don't support them.
14168 lt_prog_compiler_can_build_shared_F77=no
14169 enable_shared=no
14172 sysv4*MP*)
14173 if test -d /usr/nec; then
14174 lt_prog_compiler_pic_F77=-Kconform_pic
14178 hpux*)
14179 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14180 # not for PA HP-UX.
14181 case $host_cpu in
14182 hppa*64*|ia64*)
14183 # +Z the default
14186 lt_prog_compiler_pic_F77='-fPIC'
14188 esac
14192 lt_prog_compiler_pic_F77='-fPIC'
14194 esac
14195 else
14196 # PORTME Check for flag to pass linker flags through the system compiler.
14197 case $host_os in
14198 aix*)
14199 lt_prog_compiler_wl_F77='-Wl,'
14200 if test "$host_cpu" = ia64; then
14201 # AIX 5 now supports IA64 processor
14202 lt_prog_compiler_static_F77='-Bstatic'
14203 else
14204 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
14207 darwin*)
14208 # PIC is the default on this platform
14209 # Common symbols not allowed in MH_DYLIB files
14210 case $cc_basename in
14211 xlc*)
14212 lt_prog_compiler_pic_F77='-qnocommon'
14213 lt_prog_compiler_wl_F77='-Wl,'
14215 esac
14218 mingw* | cygwin* | pw32* | os2*)
14219 # This hack is so that the source file can tell whether it is being
14220 # built for inclusion in a dll (and should export symbols for example).
14221 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14224 hpux9* | hpux10* | hpux11*)
14225 lt_prog_compiler_wl_F77='-Wl,'
14226 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14227 # not for PA HP-UX.
14228 case $host_cpu in
14229 hppa*64*|ia64*)
14230 # +Z the default
14233 lt_prog_compiler_pic_F77='+Z'
14235 esac
14236 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14237 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
14240 irix5* | irix6* | nonstopux*)
14241 lt_prog_compiler_wl_F77='-Wl,'
14242 # PIC (with -KPIC) is the default.
14243 lt_prog_compiler_static_F77='-non_shared'
14246 newsos6)
14247 lt_prog_compiler_pic_F77='-KPIC'
14248 lt_prog_compiler_static_F77='-Bstatic'
14251 linux* | k*bsd*-gnu)
14252 case $cc_basename in
14253 icc* | ecc*)
14254 lt_prog_compiler_wl_F77='-Wl,'
14255 lt_prog_compiler_pic_F77='-KPIC'
14256 lt_prog_compiler_static_F77='-static'
14258 pgcc* | pgf77* | pgf90* | pgf95*)
14259 # Portland Group compilers (*not* the Pentium gcc compiler,
14260 # which looks to be a dead project)
14261 lt_prog_compiler_wl_F77='-Wl,'
14262 lt_prog_compiler_pic_F77='-fpic'
14263 lt_prog_compiler_static_F77='-Bstatic'
14265 ccc*)
14266 lt_prog_compiler_wl_F77='-Wl,'
14267 # All Alpha code is PIC.
14268 lt_prog_compiler_static_F77='-non_shared'
14271 case `$CC -V 2>&1 | sed 5q` in
14272 *Sun\ C*)
14273 # Sun C 5.9
14274 lt_prog_compiler_pic_F77='-KPIC'
14275 lt_prog_compiler_static_F77='-Bstatic'
14276 lt_prog_compiler_wl_F77='-Wl,'
14278 *Sun\ F*)
14279 # Sun Fortran 8.3 passes all unrecognized flags to the linker
14280 lt_prog_compiler_pic_F77='-KPIC'
14281 lt_prog_compiler_static_F77='-Bstatic'
14282 lt_prog_compiler_wl_F77=''
14284 esac
14286 esac
14289 osf3* | osf4* | osf5*)
14290 lt_prog_compiler_wl_F77='-Wl,'
14291 # All OSF/1 code is PIC.
14292 lt_prog_compiler_static_F77='-non_shared'
14295 rdos*)
14296 lt_prog_compiler_static_F77='-non_shared'
14299 solaris*)
14300 lt_prog_compiler_pic_F77='-KPIC'
14301 lt_prog_compiler_static_F77='-Bstatic'
14302 case $cc_basename in
14303 f77* | f90* | f95*)
14304 lt_prog_compiler_wl_F77='-Qoption ld ';;
14306 lt_prog_compiler_wl_F77='-Wl,';;
14307 esac
14310 sunos4*)
14311 lt_prog_compiler_wl_F77='-Qoption ld '
14312 lt_prog_compiler_pic_F77='-PIC'
14313 lt_prog_compiler_static_F77='-Bstatic'
14316 sysv4 | sysv4.2uw2* | sysv4.3*)
14317 lt_prog_compiler_wl_F77='-Wl,'
14318 lt_prog_compiler_pic_F77='-KPIC'
14319 lt_prog_compiler_static_F77='-Bstatic'
14322 sysv4*MP*)
14323 if test -d /usr/nec ;then
14324 lt_prog_compiler_pic_F77='-Kconform_pic'
14325 lt_prog_compiler_static_F77='-Bstatic'
14329 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14330 lt_prog_compiler_wl_F77='-Wl,'
14331 lt_prog_compiler_pic_F77='-KPIC'
14332 lt_prog_compiler_static_F77='-Bstatic'
14335 unicos*)
14336 lt_prog_compiler_wl_F77='-Wl,'
14337 lt_prog_compiler_can_build_shared_F77=no
14340 uts4*)
14341 lt_prog_compiler_pic_F77='-pic'
14342 lt_prog_compiler_static_F77='-Bstatic'
14346 lt_prog_compiler_can_build_shared_F77=no
14348 esac
14351 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
14352 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
14355 # Check to make sure the PIC flag actually works.
14357 if test -n "$lt_prog_compiler_pic_F77"; then
14359 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
14360 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
14361 if test "${lt_cv_prog_compiler_pic_works_F77+set}" = set; then
14362 echo $ECHO_N "(cached) $ECHO_C" >&6
14363 else
14364 lt_cv_prog_compiler_pic_works_F77=no
14365 ac_outfile=conftest.$ac_objext
14366 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14367 lt_compiler_flag="$lt_prog_compiler_pic_F77"
14368 # Insert the option either (1) after the last *FLAGS variable, or
14369 # (2) before a word containing "conftest.", or (3) at the end.
14370 # Note that $ac_compile itself does not contain backslashes and begins
14371 # with a dollar sign (not a hyphen), so the echo should work correctly.
14372 # The option is referenced via a variable to avoid confusing sed.
14373 lt_compile=`echo "$ac_compile" | $SED \
14374 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14375 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14376 -e 's:$: $lt_compiler_flag:'`
14377 (eval echo "\"\$as_me:14377: $lt_compile\"" >&5)
14378 (eval "$lt_compile" 2>conftest.err)
14379 ac_status=$?
14380 cat conftest.err >&5
14381 echo "$as_me:14381: \$? = $ac_status" >&5
14382 if (exit $ac_status) && test -s "$ac_outfile"; then
14383 # The compiler can only warn and ignore the option if not recognized
14384 # So say no if there are warnings other than the usual output.
14385 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14386 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14387 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14388 lt_cv_prog_compiler_pic_works_F77=yes
14391 $rm conftest*
14394 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_F77" >&5
14395 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_F77" >&6; }
14397 if test x"$lt_cv_prog_compiler_pic_works_F77" = xyes; then
14398 case $lt_prog_compiler_pic_F77 in
14399 "" | " "*) ;;
14400 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
14401 esac
14402 else
14403 lt_prog_compiler_pic_F77=
14404 lt_prog_compiler_can_build_shared_F77=no
14408 case $host_os in
14409 # For platforms which do not support PIC, -DPIC is meaningless:
14410 *djgpp*)
14411 lt_prog_compiler_pic_F77=
14414 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14416 esac
14419 # Check to make sure the static flag actually works.
14421 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
14422 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14423 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14424 if test "${lt_cv_prog_compiler_static_works_F77+set}" = set; then
14425 echo $ECHO_N "(cached) $ECHO_C" >&6
14426 else
14427 lt_cv_prog_compiler_static_works_F77=no
14428 save_LDFLAGS="$LDFLAGS"
14429 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14430 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14431 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14432 # The linker can only warn and ignore the option if not recognized
14433 # So say no if there are warnings
14434 if test -s conftest.err; then
14435 # Append any errors to the config.log.
14436 cat conftest.err 1>&5
14437 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14438 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14439 if diff conftest.exp conftest.er2 >/dev/null; then
14440 lt_cv_prog_compiler_static_works_F77=yes
14442 else
14443 lt_cv_prog_compiler_static_works_F77=yes
14446 $rm -r conftest*
14447 LDFLAGS="$save_LDFLAGS"
14450 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_F77" >&5
14451 echo "${ECHO_T}$lt_cv_prog_compiler_static_works_F77" >&6; }
14453 if test x"$lt_cv_prog_compiler_static_works_F77" = xyes; then
14455 else
14456 lt_prog_compiler_static_F77=
14460 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14461 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14462 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14463 echo $ECHO_N "(cached) $ECHO_C" >&6
14464 else
14465 lt_cv_prog_compiler_c_o_F77=no
14466 $rm -r conftest 2>/dev/null
14467 mkdir conftest
14468 cd conftest
14469 mkdir out
14470 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14472 lt_compiler_flag="-o out/conftest2.$ac_objext"
14473 # Insert the option either (1) after the last *FLAGS variable, or
14474 # (2) before a word containing "conftest.", or (3) at the end.
14475 # Note that $ac_compile itself does not contain backslashes and begins
14476 # with a dollar sign (not a hyphen), so the echo should work correctly.
14477 lt_compile=`echo "$ac_compile" | $SED \
14478 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14479 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14480 -e 's:$: $lt_compiler_flag:'`
14481 (eval echo "\"\$as_me:14481: $lt_compile\"" >&5)
14482 (eval "$lt_compile" 2>out/conftest.err)
14483 ac_status=$?
14484 cat out/conftest.err >&5
14485 echo "$as_me:14485: \$? = $ac_status" >&5
14486 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14487 then
14488 # The compiler can only warn and ignore the option if not recognized
14489 # So say no if there are warnings
14490 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14491 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14492 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14493 lt_cv_prog_compiler_c_o_F77=yes
14496 chmod u+w . 2>&5
14497 $rm conftest*
14498 # SGI C++ compiler will create directory out/ii_files/ for
14499 # template instantiation
14500 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14501 $rm out/* && rmdir out
14502 cd ..
14503 rmdir conftest
14504 $rm conftest*
14507 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14508 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
14511 hard_links="nottested"
14512 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14513 # do not overwrite the value of need_locks provided by the user
14514 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14515 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14516 hard_links=yes
14517 $rm conftest*
14518 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14519 touch conftest.a
14520 ln conftest.a conftest.b 2>&5 || hard_links=no
14521 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14522 { echo "$as_me:$LINENO: result: $hard_links" >&5
14523 echo "${ECHO_T}$hard_links" >&6; }
14524 if test "$hard_links" = no; then
14525 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14526 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14527 need_locks=warn
14529 else
14530 need_locks=no
14533 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14534 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14536 runpath_var=
14537 allow_undefined_flag_F77=
14538 enable_shared_with_static_runtimes_F77=no
14539 archive_cmds_F77=
14540 archive_expsym_cmds_F77=
14541 old_archive_From_new_cmds_F77=
14542 old_archive_from_expsyms_cmds_F77=
14543 export_dynamic_flag_spec_F77=
14544 whole_archive_flag_spec_F77=
14545 thread_safe_flag_spec_F77=
14546 hardcode_libdir_flag_spec_F77=
14547 hardcode_libdir_flag_spec_ld_F77=
14548 hardcode_libdir_separator_F77=
14549 hardcode_direct_F77=no
14550 hardcode_minus_L_F77=no
14551 hardcode_shlibpath_var_F77=unsupported
14552 link_all_deplibs_F77=unknown
14553 hardcode_automatic_F77=no
14554 module_cmds_F77=
14555 module_expsym_cmds_F77=
14556 always_export_symbols_F77=no
14557 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14558 # include_expsyms should be a list of space-separated symbols to be *always*
14559 # included in the symbol list
14560 include_expsyms_F77=
14561 # exclude_expsyms can be an extended regexp of symbols to exclude
14562 # it will be wrapped by ` (' and `)$', so one must not match beginning or
14563 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14564 # as well as any symbol that contains `d'.
14565 exclude_expsyms_F77='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14566 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14567 # platforms (ab)use it in PIC code, but their linkers get confused if
14568 # the symbol is explicitly referenced. Since portable code cannot
14569 # rely on this symbol name, it's probably fine to never include it in
14570 # preloaded symbol tables.
14571 # Exclude shared library initialization/finalization symbols.
14572 extract_expsyms_cmds=
14573 # Just being paranoid about ensuring that cc_basename is set.
14574 for cc_temp in $compiler""; do
14575 case $cc_temp in
14576 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14577 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14578 \-*) ;;
14579 *) break;;
14580 esac
14581 done
14582 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14584 case $host_os in
14585 cygwin* | mingw* | pw32*)
14586 # FIXME: the MSVC++ port hasn't been tested in a loooong time
14587 # When not using gcc, we currently assume that we are using
14588 # Microsoft Visual C++.
14589 if test "$GCC" != yes; then
14590 with_gnu_ld=no
14593 interix*)
14594 # we just hope/assume this is gcc and not c89 (= MSVC++)
14595 with_gnu_ld=yes
14597 openbsd*)
14598 with_gnu_ld=no
14600 esac
14602 ld_shlibs_F77=yes
14603 if test "$with_gnu_ld" = yes; then
14604 # If archive_cmds runs LD, not CC, wlarc should be empty
14605 wlarc='${wl}'
14607 # Set some defaults for GNU ld with shared library support. These
14608 # are reset later if shared libraries are not supported. Putting them
14609 # here allows them to be overridden if necessary.
14610 runpath_var=LD_RUN_PATH
14611 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14612 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14613 # ancient GNU ld didn't support --whole-archive et. al.
14614 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14615 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14616 else
14617 whole_archive_flag_spec_F77=
14619 supports_anon_versioning=no
14620 case `$LD -v 2>/dev/null` in
14621 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14622 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14623 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14624 *\ 2.11.*) ;; # other 2.11 versions
14625 *) supports_anon_versioning=yes ;;
14626 esac
14628 # See if GNU ld supports shared libraries.
14629 case $host_os in
14630 aix[3-9]*)
14631 # On AIX/PPC, the GNU linker is very broken
14632 if test "$host_cpu" != ia64; then
14633 ld_shlibs_F77=no
14634 cat <<EOF 1>&2
14636 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
14637 *** to be unable to reliably create shared libraries on AIX.
14638 *** Therefore, libtool is disabling shared libraries support. If you
14639 *** really care for shared libraries, you may want to modify your PATH
14640 *** so that a non-GNU linker is found, and then restart.
14646 amigaos*)
14647 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)'
14648 hardcode_libdir_flag_spec_F77='-L$libdir'
14649 hardcode_minus_L_F77=yes
14651 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14652 # that the semantics of dynamic libraries on AmigaOS, at least up
14653 # to version 4, is to share data among multiple programs linked
14654 # with the same dynamic library. Since this doesn't match the
14655 # behavior of shared libraries on other platforms, we can't use
14656 # them.
14657 ld_shlibs_F77=no
14660 beos*)
14661 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14662 allow_undefined_flag_F77=unsupported
14663 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14664 # support --undefined. This deserves some investigation. FIXME
14665 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14666 else
14667 ld_shlibs_F77=no
14671 cygwin* | mingw* | pw32*)
14672 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14673 # as there is no search path for DLLs.
14674 hardcode_libdir_flag_spec_F77='-L$libdir'
14675 allow_undefined_flag_F77=unsupported
14676 always_export_symbols_F77=no
14677 enable_shared_with_static_runtimes_F77=yes
14678 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
14680 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14681 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14682 # If the export-symbols file already is a .def file (1st line
14683 # is EXPORTS), use it as is; otherwise, prepend...
14684 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14685 cp $export_symbols $output_objdir/$soname.def;
14686 else
14687 echo EXPORTS > $output_objdir/$soname.def;
14688 cat $export_symbols >> $output_objdir/$soname.def;
14690 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14691 else
14692 ld_shlibs_F77=no
14696 interix[3-9]*)
14697 hardcode_direct_F77=no
14698 hardcode_shlibpath_var_F77=no
14699 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14700 export_dynamic_flag_spec_F77='${wl}-E'
14701 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14702 # Instead, shared libraries are loaded at an image base (0x10000000 by
14703 # default) and relocated if they conflict, which is a slow very memory
14704 # consuming and fragmenting process. To avoid this, we pick a random,
14705 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14706 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14707 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'
14708 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'
14711 gnu* | linux* | k*bsd*-gnu)
14712 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14713 tmp_addflag=
14714 case $cc_basename,$host_cpu in
14715 pgcc*) # Portland Group C compiler
14716 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'
14717 tmp_addflag=' $pic_flag'
14719 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
14720 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'
14721 tmp_addflag=' $pic_flag -Mnomain' ;;
14722 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
14723 tmp_addflag=' -i_dynamic' ;;
14724 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
14725 tmp_addflag=' -i_dynamic -nofor_main' ;;
14726 ifc* | ifort*) # Intel Fortran compiler
14727 tmp_addflag=' -nofor_main' ;;
14728 esac
14729 case `$CC -V 2>&1 | sed 5q` in
14730 *Sun\ C*) # Sun C 5.9
14731 whole_archive_flag_spec_F77='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
14732 tmp_sharedflag='-G' ;;
14733 *Sun\ F*) # Sun Fortran 8.3
14734 tmp_sharedflag='-G' ;;
14736 tmp_sharedflag='-shared' ;;
14737 esac
14738 archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14740 if test $supports_anon_versioning = yes; then
14741 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14742 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14743 $echo "local: *; };" >> $output_objdir/$libname.ver~
14744 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14746 link_all_deplibs_F77=no
14747 else
14748 ld_shlibs_F77=no
14752 netbsd* | netbsdelf*-gnu)
14753 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14754 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14755 wlarc=
14756 else
14757 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14758 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14762 solaris*)
14763 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14764 ld_shlibs_F77=no
14765 cat <<EOF 1>&2
14767 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
14768 *** create shared libraries on Solaris systems. Therefore, libtool
14769 *** is disabling shared libraries support. We urge you to upgrade GNU
14770 *** binutils to release 2.9.1 or newer. Another option is to modify
14771 *** your PATH or compiler configuration so that the native linker is
14772 *** used, and then restart.
14775 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14776 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14777 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14778 else
14779 ld_shlibs_F77=no
14783 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14784 case `$LD -v 2>&1` in
14785 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14786 ld_shlibs_F77=no
14787 cat <<_LT_EOF 1>&2
14789 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14790 *** reliably create shared libraries on SCO systems. Therefore, libtool
14791 *** is disabling shared libraries support. We urge you to upgrade GNU
14792 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
14793 *** your PATH or compiler configuration so that the native linker is
14794 *** used, and then restart.
14796 _LT_EOF
14799 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14800 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
14801 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
14802 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
14803 else
14804 ld_shlibs_F77=no
14807 esac
14810 sunos4*)
14811 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14812 wlarc=
14813 hardcode_direct_F77=yes
14814 hardcode_shlibpath_var_F77=no
14818 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14819 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14820 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14821 else
14822 ld_shlibs_F77=no
14825 esac
14827 if test "$ld_shlibs_F77" = no; then
14828 runpath_var=
14829 hardcode_libdir_flag_spec_F77=
14830 export_dynamic_flag_spec_F77=
14831 whole_archive_flag_spec_F77=
14833 else
14834 # PORTME fill in a description of your system's linker (not GNU ld)
14835 case $host_os in
14836 aix3*)
14837 allow_undefined_flag_F77=unsupported
14838 always_export_symbols_F77=yes
14839 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'
14840 # Note: this linker hardcodes the directories in LIBPATH if there
14841 # are no directories specified by -L.
14842 hardcode_minus_L_F77=yes
14843 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14844 # Neither direct hardcoding nor static linking is supported with a
14845 # broken collect2.
14846 hardcode_direct_F77=unsupported
14850 aix[4-9]*)
14851 if test "$host_cpu" = ia64; then
14852 # On IA64, the linker does run time linking by default, so we don't
14853 # have to do anything special.
14854 aix_use_runtimelinking=no
14855 exp_sym_flag='-Bexport'
14856 no_entry_flag=""
14857 else
14858 # If we're using GNU nm, then we don't want the "-C" option.
14859 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14860 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14861 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'
14862 else
14863 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'
14865 aix_use_runtimelinking=no
14867 # Test if we are trying to use run time linking or normal
14868 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14869 # need to do runtime linking.
14870 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
14871 for ld_flag in $LDFLAGS; do
14872 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14873 aix_use_runtimelinking=yes
14874 break
14876 done
14878 esac
14880 exp_sym_flag='-bexport'
14881 no_entry_flag='-bnoentry'
14884 # When large executables or shared objects are built, AIX ld can
14885 # have problems creating the table of contents. If linking a library
14886 # or program results in "error TOC overflow" add -mminimal-toc to
14887 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14888 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14890 archive_cmds_F77=''
14891 hardcode_direct_F77=yes
14892 hardcode_libdir_separator_F77=':'
14893 link_all_deplibs_F77=yes
14895 if test "$GCC" = yes; then
14896 case $host_os in aix4.[012]|aix4.[012].*)
14897 # We only want to do this on AIX 4.2 and lower, the check
14898 # below for broken collect2 doesn't work under 4.3+
14899 collect2name=`${CC} -print-prog-name=collect2`
14900 if test -f "$collect2name" && \
14901 strings "$collect2name" | grep resolve_lib_name >/dev/null
14902 then
14903 # We have reworked collect2
14905 else
14906 # We have old collect2
14907 hardcode_direct_F77=unsupported
14908 # It fails to find uninstalled libraries when the uninstalled
14909 # path is not listed in the libpath. Setting hardcode_minus_L
14910 # to unsupported forces relinking
14911 hardcode_minus_L_F77=yes
14912 hardcode_libdir_flag_spec_F77='-L$libdir'
14913 hardcode_libdir_separator_F77=
14916 esac
14917 shared_flag='-shared'
14918 if test "$aix_use_runtimelinking" = yes; then
14919 shared_flag="$shared_flag "'${wl}-G'
14921 else
14922 # not using gcc
14923 if test "$host_cpu" = ia64; then
14924 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14925 # chokes on -Wl,-G. The following line is correct:
14926 shared_flag='-G'
14927 else
14928 if test "$aix_use_runtimelinking" = yes; then
14929 shared_flag='${wl}-G'
14930 else
14931 shared_flag='${wl}-bM:SRE'
14936 # It seems that -bexpall does not export symbols beginning with
14937 # underscore (_), so it is better to generate a list of symbols to export.
14938 always_export_symbols_F77=yes
14939 if test "$aix_use_runtimelinking" = yes; then
14940 # Warning - without using the other runtime loading flags (-brtl),
14941 # -berok will link without error, but may produce a broken library.
14942 allow_undefined_flag_F77='-berok'
14943 # Determine the default libpath from the value encoded in an empty executable.
14944 cat >conftest.$ac_ext <<_ACEOF
14945 program main
14948 _ACEOF
14949 rm -f conftest.$ac_objext conftest$ac_exeext
14950 if { (ac_try="$ac_link"
14951 case "(($ac_try" in
14952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14953 *) ac_try_echo=$ac_try;;
14954 esac
14955 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14956 (eval "$ac_link") 2>conftest.er1
14957 ac_status=$?
14958 grep -v '^ *+' conftest.er1 >conftest.err
14959 rm -f conftest.er1
14960 cat conftest.err >&5
14961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14962 (exit $ac_status); } && {
14963 test -z "$ac_f77_werror_flag" ||
14964 test ! -s conftest.err
14965 } && test -s conftest$ac_exeext &&
14966 $as_test_x conftest$ac_exeext; then
14968 lt_aix_libpath_sed='
14969 /Import File Strings/,/^$/ {
14970 /^0/ {
14971 s/^0 *\(.*\)$/\1/
14975 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14976 # Check for a 64-bit object if we didn't find anything.
14977 if test -z "$aix_libpath"; then
14978 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14980 else
14981 echo "$as_me: failed program was:" >&5
14982 sed 's/^/| /' conftest.$ac_ext >&5
14987 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14988 conftest$ac_exeext conftest.$ac_ext
14989 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14991 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14992 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"
14993 else
14994 if test "$host_cpu" = ia64; then
14995 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
14996 allow_undefined_flag_F77="-z nodefs"
14997 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"
14998 else
14999 # Determine the default libpath from the value encoded in an empty executable.
15000 cat >conftest.$ac_ext <<_ACEOF
15001 program main
15004 _ACEOF
15005 rm -f conftest.$ac_objext conftest$ac_exeext
15006 if { (ac_try="$ac_link"
15007 case "(($ac_try" in
15008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15009 *) ac_try_echo=$ac_try;;
15010 esac
15011 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15012 (eval "$ac_link") 2>conftest.er1
15013 ac_status=$?
15014 grep -v '^ *+' conftest.er1 >conftest.err
15015 rm -f conftest.er1
15016 cat conftest.err >&5
15017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15018 (exit $ac_status); } && {
15019 test -z "$ac_f77_werror_flag" ||
15020 test ! -s conftest.err
15021 } && test -s conftest$ac_exeext &&
15022 $as_test_x conftest$ac_exeext; then
15024 lt_aix_libpath_sed='
15025 /Import File Strings/,/^$/ {
15026 /^0/ {
15027 s/^0 *\(.*\)$/\1/
15031 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15032 # Check for a 64-bit object if we didn't find anything.
15033 if test -z "$aix_libpath"; then
15034 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15036 else
15037 echo "$as_me: failed program was:" >&5
15038 sed 's/^/| /' conftest.$ac_ext >&5
15043 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15044 conftest$ac_exeext conftest.$ac_ext
15045 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15047 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15048 # Warning - without using the other run time loading flags,
15049 # -berok will link without error, but may produce a broken library.
15050 no_undefined_flag_F77=' ${wl}-bernotok'
15051 allow_undefined_flag_F77=' ${wl}-berok'
15052 # Exported symbols can be pulled into shared objects from archives
15053 whole_archive_flag_spec_F77='$convenience'
15054 archive_cmds_need_lc_F77=yes
15055 # This is similar to how AIX traditionally builds its shared libraries.
15056 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'
15061 amigaos*)
15062 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)'
15063 hardcode_libdir_flag_spec_F77='-L$libdir'
15064 hardcode_minus_L_F77=yes
15065 # see comment about different semantics on the GNU ld section
15066 ld_shlibs_F77=no
15069 bsdi[45]*)
15070 export_dynamic_flag_spec_F77=-rdynamic
15073 cygwin* | mingw* | pw32*)
15074 # When not using gcc, we currently assume that we are using
15075 # Microsoft Visual C++.
15076 # hardcode_libdir_flag_spec is actually meaningless, as there is
15077 # no search path for DLLs.
15078 hardcode_libdir_flag_spec_F77=' '
15079 allow_undefined_flag_F77=unsupported
15080 # Tell ltmain to make .lib files, not .a files.
15081 libext=lib
15082 # Tell ltmain to make .dll files, not .so files.
15083 shrext_cmds=".dll"
15084 # FIXME: Setting linknames here is a bad hack.
15085 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15086 # The linker will automatically build a .lib file if we build a DLL.
15087 old_archive_From_new_cmds_F77='true'
15088 # FIXME: Should let the user specify the lib program.
15089 old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs'
15090 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
15091 enable_shared_with_static_runtimes_F77=yes
15094 darwin* | rhapsody*)
15095 case $host_os in
15096 rhapsody* | darwin1.[012])
15097 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
15099 *) # Darwin 1.3 on
15100 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15101 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15102 else
15103 case ${MACOSX_DEPLOYMENT_TARGET} in
15104 10.[012])
15105 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15107 10.*)
15108 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
15110 esac
15113 esac
15114 archive_cmds_need_lc_F77=no
15115 hardcode_direct_F77=no
15116 hardcode_automatic_F77=yes
15117 hardcode_shlibpath_var_F77=unsupported
15118 whole_archive_flag_spec_F77=''
15119 link_all_deplibs_F77=yes
15120 if test "$GCC" = yes ; then
15121 output_verbose_link_cmd='echo'
15122 archive_cmds_F77="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
15123 module_cmds_F77="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
15124 archive_expsym_cmds_F77="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
15125 module_expsym_cmds_F77="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
15126 else
15127 case $cc_basename in
15128 xlc*)
15129 output_verbose_link_cmd='echo'
15130 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
15131 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15132 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15133 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15134 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}'
15137 ld_shlibs_F77=no
15139 esac
15143 dgux*)
15144 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15145 hardcode_libdir_flag_spec_F77='-L$libdir'
15146 hardcode_shlibpath_var_F77=no
15149 freebsd1*)
15150 ld_shlibs_F77=no
15153 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15154 # support. Future versions do this automatically, but an explicit c++rt0.o
15155 # does not break anything, and helps significantly (at the cost of a little
15156 # extra space).
15157 freebsd2.2*)
15158 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15159 hardcode_libdir_flag_spec_F77='-R$libdir'
15160 hardcode_direct_F77=yes
15161 hardcode_shlibpath_var_F77=no
15164 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15165 freebsd2*)
15166 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15167 hardcode_direct_F77=yes
15168 hardcode_minus_L_F77=yes
15169 hardcode_shlibpath_var_F77=no
15172 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15173 freebsd* | dragonfly*)
15174 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15175 hardcode_libdir_flag_spec_F77='-R$libdir'
15176 hardcode_direct_F77=yes
15177 hardcode_shlibpath_var_F77=no
15180 hpux9*)
15181 if test "$GCC" = yes; then
15182 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'
15183 else
15184 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'
15186 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15187 hardcode_libdir_separator_F77=:
15188 hardcode_direct_F77=yes
15190 # hardcode_minus_L: Not really in the search PATH,
15191 # but as the default location of the library.
15192 hardcode_minus_L_F77=yes
15193 export_dynamic_flag_spec_F77='${wl}-E'
15196 hpux10*)
15197 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15198 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15199 else
15200 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15202 if test "$with_gnu_ld" = no; then
15203 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15204 hardcode_libdir_separator_F77=:
15206 hardcode_direct_F77=yes
15207 export_dynamic_flag_spec_F77='${wl}-E'
15209 # hardcode_minus_L: Not really in the search PATH,
15210 # but as the default location of the library.
15211 hardcode_minus_L_F77=yes
15215 hpux11*)
15216 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15217 case $host_cpu in
15218 hppa*64*)
15219 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15221 ia64*)
15222 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15225 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15227 esac
15228 else
15229 case $host_cpu in
15230 hppa*64*)
15231 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15233 ia64*)
15234 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15237 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15239 esac
15241 if test "$with_gnu_ld" = no; then
15242 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15243 hardcode_libdir_separator_F77=:
15245 case $host_cpu in
15246 hppa*64*|ia64*)
15247 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
15248 hardcode_direct_F77=no
15249 hardcode_shlibpath_var_F77=no
15252 hardcode_direct_F77=yes
15253 export_dynamic_flag_spec_F77='${wl}-E'
15255 # hardcode_minus_L: Not really in the search PATH,
15256 # but as the default location of the library.
15257 hardcode_minus_L_F77=yes
15259 esac
15263 irix5* | irix6* | nonstopux*)
15264 if test "$GCC" = yes; then
15265 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'
15266 else
15267 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'
15268 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
15270 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15271 hardcode_libdir_separator_F77=:
15272 link_all_deplibs_F77=yes
15275 netbsd* | netbsdelf*-gnu)
15276 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15277 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15278 else
15279 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15281 hardcode_libdir_flag_spec_F77='-R$libdir'
15282 hardcode_direct_F77=yes
15283 hardcode_shlibpath_var_F77=no
15286 newsos6)
15287 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15288 hardcode_direct_F77=yes
15289 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15290 hardcode_libdir_separator_F77=:
15291 hardcode_shlibpath_var_F77=no
15294 openbsd*)
15295 if test -f /usr/libexec/ld.so; then
15296 hardcode_direct_F77=yes
15297 hardcode_shlibpath_var_F77=no
15298 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15299 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15300 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15301 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15302 export_dynamic_flag_spec_F77='${wl}-E'
15303 else
15304 case $host_os in
15305 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15306 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15307 hardcode_libdir_flag_spec_F77='-R$libdir'
15310 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15311 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15313 esac
15315 else
15316 ld_shlibs_F77=no
15320 os2*)
15321 hardcode_libdir_flag_spec_F77='-L$libdir'
15322 hardcode_minus_L_F77=yes
15323 allow_undefined_flag_F77=unsupported
15324 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'
15325 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15328 osf3*)
15329 if test "$GCC" = yes; then
15330 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15331 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'
15332 else
15333 allow_undefined_flag_F77=' -expect_unresolved \*'
15334 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'
15336 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15337 hardcode_libdir_separator_F77=:
15340 osf4* | osf5*) # as osf3* with the addition of -msym flag
15341 if test "$GCC" = yes; then
15342 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15343 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'
15344 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15345 else
15346 allow_undefined_flag_F77=' -expect_unresolved \*'
15347 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'
15348 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~
15349 $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'
15351 # Both c and cxx compiler support -rpath directly
15352 hardcode_libdir_flag_spec_F77='-rpath $libdir'
15354 hardcode_libdir_separator_F77=:
15357 solaris*)
15358 no_undefined_flag_F77=' -z text'
15359 if test "$GCC" = yes; then
15360 wlarc='${wl}'
15361 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15362 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15363 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15364 else
15365 wlarc=''
15366 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15367 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15368 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15370 hardcode_libdir_flag_spec_F77='-R$libdir'
15371 hardcode_shlibpath_var_F77=no
15372 case $host_os in
15373 solaris2.[0-5] | solaris2.[0-5].*) ;;
15375 # The compiler driver will combine and reorder linker options,
15376 # but understands `-z linker_flag'. GCC discards it without `$wl',
15377 # but is careful enough not to reorder.
15378 # Supported since Solaris 2.6 (maybe 2.5.1?)
15379 if test "$GCC" = yes; then
15380 whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
15381 else
15382 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract'
15385 esac
15386 link_all_deplibs_F77=yes
15389 sunos4*)
15390 if test "x$host_vendor" = xsequent; then
15391 # Use $CC to link under sequent, because it throws in some extra .o
15392 # files that make .init and .fini sections work.
15393 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15394 else
15395 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15397 hardcode_libdir_flag_spec_F77='-L$libdir'
15398 hardcode_direct_F77=yes
15399 hardcode_minus_L_F77=yes
15400 hardcode_shlibpath_var_F77=no
15403 sysv4)
15404 case $host_vendor in
15405 sni)
15406 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15407 hardcode_direct_F77=yes # is this really true???
15409 siemens)
15410 ## LD is ld it makes a PLAMLIB
15411 ## CC just makes a GrossModule.
15412 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15413 reload_cmds_F77='$CC -r -o $output$reload_objs'
15414 hardcode_direct_F77=no
15416 motorola)
15417 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15418 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
15420 esac
15421 runpath_var='LD_RUN_PATH'
15422 hardcode_shlibpath_var_F77=no
15425 sysv4.3*)
15426 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15427 hardcode_shlibpath_var_F77=no
15428 export_dynamic_flag_spec_F77='-Bexport'
15431 sysv4*MP*)
15432 if test -d /usr/nec; then
15433 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15434 hardcode_shlibpath_var_F77=no
15435 runpath_var=LD_RUN_PATH
15436 hardcode_runpath_var=yes
15437 ld_shlibs_F77=yes
15441 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15442 no_undefined_flag_F77='${wl}-z,text'
15443 archive_cmds_need_lc_F77=no
15444 hardcode_shlibpath_var_F77=no
15445 runpath_var='LD_RUN_PATH'
15447 if test "$GCC" = yes; then
15448 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15449 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15450 else
15451 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15452 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15456 sysv5* | sco3.2v5* | sco5v6*)
15457 # Note: We can NOT use -z defs as we might desire, because we do not
15458 # link with -lc, and that would cause any symbols used from libc to
15459 # always be unresolved, which means just about no library would
15460 # ever link correctly. If we're not using GNU ld we use -z text
15461 # though, which does catch some bad symbols but isn't as heavy-handed
15462 # as -z defs.
15463 no_undefined_flag_F77='${wl}-z,text'
15464 allow_undefined_flag_F77='${wl}-z,nodefs'
15465 archive_cmds_need_lc_F77=no
15466 hardcode_shlibpath_var_F77=no
15467 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15468 hardcode_libdir_separator_F77=':'
15469 link_all_deplibs_F77=yes
15470 export_dynamic_flag_spec_F77='${wl}-Bexport'
15471 runpath_var='LD_RUN_PATH'
15473 if test "$GCC" = yes; then
15474 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15475 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15476 else
15477 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15478 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15482 uts4*)
15483 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15484 hardcode_libdir_flag_spec_F77='-L$libdir'
15485 hardcode_shlibpath_var_F77=no
15489 ld_shlibs_F77=no
15491 esac
15494 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
15495 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
15496 test "$ld_shlibs_F77" = no && can_build_shared=no
15499 # Do we need to explicitly link libc?
15501 case "x$archive_cmds_need_lc_F77" in
15502 x|xyes)
15503 # Assume -lc should be added
15504 archive_cmds_need_lc_F77=yes
15506 if test "$enable_shared" = yes && test "$GCC" = yes; then
15507 case $archive_cmds_F77 in
15508 *'~'*)
15509 # FIXME: we may have to deal with multi-command sequences.
15511 '$CC '*)
15512 # Test whether the compiler implicitly links with -lc since on some
15513 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15514 # to ld, don't add -lc before -lgcc.
15515 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15516 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
15517 $rm conftest*
15518 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15520 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15521 (eval $ac_compile) 2>&5
15522 ac_status=$?
15523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15524 (exit $ac_status); } 2>conftest.err; then
15525 soname=conftest
15526 lib=conftest
15527 libobjs=conftest.$ac_objext
15528 deplibs=
15529 wl=$lt_prog_compiler_wl_F77
15530 pic_flag=$lt_prog_compiler_pic_F77
15531 compiler_flags=-v
15532 linker_flags=-v
15533 verstring=
15534 output_objdir=.
15535 libname=conftest
15536 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15537 allow_undefined_flag_F77=
15538 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15539 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15540 ac_status=$?
15541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15542 (exit $ac_status); }
15543 then
15544 archive_cmds_need_lc_F77=no
15545 else
15546 archive_cmds_need_lc_F77=yes
15548 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15549 else
15550 cat conftest.err 1>&5
15552 $rm conftest*
15553 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15554 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
15556 esac
15559 esac
15561 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15562 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
15563 library_names_spec=
15564 libname_spec='lib$name'
15565 soname_spec=
15566 shrext_cmds=".so"
15567 postinstall_cmds=
15568 postuninstall_cmds=
15569 finish_cmds=
15570 finish_eval=
15571 shlibpath_var=
15572 shlibpath_overrides_runpath=unknown
15573 version_type=none
15574 dynamic_linker="$host_os ld.so"
15575 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15577 need_lib_prefix=unknown
15578 hardcode_into_libs=no
15580 # when you set need_version to no, make sure it does not cause -set_version
15581 # flags to be left without arguments
15582 need_version=unknown
15584 case $host_os in
15585 aix3*)
15586 version_type=linux
15587 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15588 shlibpath_var=LIBPATH
15590 # AIX 3 has no versioning support, so we append a major version to the name.
15591 soname_spec='${libname}${release}${shared_ext}$major'
15594 aix[4-9]*)
15595 version_type=linux
15596 need_lib_prefix=no
15597 need_version=no
15598 hardcode_into_libs=yes
15599 if test "$host_cpu" = ia64; then
15600 # AIX 5 supports IA64
15601 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15602 shlibpath_var=LD_LIBRARY_PATH
15603 else
15604 # With GCC up to 2.95.x, collect2 would create an import file
15605 # for dependence libraries. The import file would start with
15606 # the line `#! .'. This would cause the generated library to
15607 # depend on `.', always an invalid library. This was fixed in
15608 # development snapshots of GCC prior to 3.0.
15609 case $host_os in
15610 aix4 | aix4.[01] | aix4.[01].*)
15611 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15612 echo ' yes '
15613 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15615 else
15616 can_build_shared=no
15619 esac
15620 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15621 # soname into executable. Probably we can add versioning support to
15622 # collect2, so additional links can be useful in future.
15623 if test "$aix_use_runtimelinking" = yes; then
15624 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15625 # instead of lib<name>.a to let people know that these are not
15626 # typical AIX shared libraries.
15627 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15628 else
15629 # We preserve .a as extension for shared libraries through AIX4.2
15630 # and later when we are not doing run time linking.
15631 library_names_spec='${libname}${release}.a $libname.a'
15632 soname_spec='${libname}${release}${shared_ext}$major'
15634 shlibpath_var=LIBPATH
15638 amigaos*)
15639 library_names_spec='$libname.ixlibrary $libname.a'
15640 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15641 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'
15644 beos*)
15645 library_names_spec='${libname}${shared_ext}'
15646 dynamic_linker="$host_os ld.so"
15647 shlibpath_var=LIBRARY_PATH
15650 bsdi[45]*)
15651 version_type=linux
15652 need_version=no
15653 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15654 soname_spec='${libname}${release}${shared_ext}$major'
15655 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15656 shlibpath_var=LD_LIBRARY_PATH
15657 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15658 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15659 # the default ld.so.conf also contains /usr/contrib/lib and
15660 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15661 # libtool to hard-code these into programs
15664 cygwin* | mingw* | pw32*)
15665 version_type=windows
15666 shrext_cmds=".dll"
15667 need_version=no
15668 need_lib_prefix=no
15670 case $GCC,$host_os in
15671 yes,cygwin* | yes,mingw* | yes,pw32*)
15672 library_names_spec='$libname.dll.a'
15673 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15674 postinstall_cmds='base_file=`basename \${file}`~
15675 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15676 dldir=$destdir/`dirname \$dlpath`~
15677 test -d \$dldir || mkdir -p \$dldir~
15678 $install_prog $dir/$dlname \$dldir/$dlname~
15679 chmod a+x \$dldir/$dlname'
15680 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15681 dlpath=$dir/\$dldll~
15682 $rm \$dlpath'
15683 shlibpath_overrides_runpath=yes
15685 case $host_os in
15686 cygwin*)
15687 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15688 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15689 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15691 mingw*)
15692 # MinGW DLLs use traditional 'lib' prefix
15693 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15694 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15695 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15696 # It is most probably a Windows format PATH printed by
15697 # mingw gcc, but we are running on Cygwin. Gcc prints its search
15698 # path with ; separators, and with drive letters. We can handle the
15699 # drive letters (cygwin fileutils understands them), so leave them,
15700 # especially as we might pass files found there to a mingw objdump,
15701 # which wouldn't understand a cygwinified path. Ahh.
15702 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15703 else
15704 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15707 pw32*)
15708 # pw32 DLLs use 'pw' prefix rather than 'lib'
15709 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15711 esac
15715 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15717 esac
15718 dynamic_linker='Win32 ld.exe'
15719 # FIXME: first we should search . and the directory the executable is in
15720 shlibpath_var=PATH
15723 darwin* | rhapsody*)
15724 dynamic_linker="$host_os dyld"
15725 version_type=darwin
15726 need_lib_prefix=no
15727 need_version=no
15728 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15729 soname_spec='${libname}${release}${major}$shared_ext'
15730 shlibpath_overrides_runpath=yes
15731 shlibpath_var=DYLD_LIBRARY_PATH
15732 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15734 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15737 dgux*)
15738 version_type=linux
15739 need_lib_prefix=no
15740 need_version=no
15741 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15742 soname_spec='${libname}${release}${shared_ext}$major'
15743 shlibpath_var=LD_LIBRARY_PATH
15746 freebsd1*)
15747 dynamic_linker=no
15750 freebsd* | dragonfly*)
15751 # DragonFly does not have aout. When/if they implement a new
15752 # versioning mechanism, adjust this.
15753 if test -x /usr/bin/objformat; then
15754 objformat=`/usr/bin/objformat`
15755 else
15756 case $host_os in
15757 freebsd[123]*) objformat=aout ;;
15758 *) objformat=elf ;;
15759 esac
15761 version_type=freebsd-$objformat
15762 case $version_type in
15763 freebsd-elf*)
15764 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15765 need_version=no
15766 need_lib_prefix=no
15768 freebsd-*)
15769 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15770 need_version=yes
15772 esac
15773 shlibpath_var=LD_LIBRARY_PATH
15774 case $host_os in
15775 freebsd2*)
15776 shlibpath_overrides_runpath=yes
15778 freebsd3.[01]* | freebsdelf3.[01]*)
15779 shlibpath_overrides_runpath=yes
15780 hardcode_into_libs=yes
15782 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15783 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15784 shlibpath_overrides_runpath=no
15785 hardcode_into_libs=yes
15787 *) # from 4.6 on, and DragonFly
15788 shlibpath_overrides_runpath=yes
15789 hardcode_into_libs=yes
15791 esac
15794 gnu*)
15795 version_type=linux
15796 need_lib_prefix=no
15797 need_version=no
15798 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15799 soname_spec='${libname}${release}${shared_ext}$major'
15800 shlibpath_var=LD_LIBRARY_PATH
15801 hardcode_into_libs=yes
15804 hpux9* | hpux10* | hpux11*)
15805 # Give a soname corresponding to the major version so that dld.sl refuses to
15806 # link against other versions.
15807 version_type=sunos
15808 need_lib_prefix=no
15809 need_version=no
15810 case $host_cpu in
15811 ia64*)
15812 shrext_cmds='.so'
15813 hardcode_into_libs=yes
15814 dynamic_linker="$host_os dld.so"
15815 shlibpath_var=LD_LIBRARY_PATH
15816 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15817 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15818 soname_spec='${libname}${release}${shared_ext}$major'
15819 if test "X$HPUX_IA64_MODE" = X32; then
15820 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15821 else
15822 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15824 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15826 hppa*64*)
15827 shrext_cmds='.sl'
15828 hardcode_into_libs=yes
15829 dynamic_linker="$host_os dld.sl"
15830 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15831 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15832 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15833 soname_spec='${libname}${release}${shared_ext}$major'
15834 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15835 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15838 shrext_cmds='.sl'
15839 dynamic_linker="$host_os dld.sl"
15840 shlibpath_var=SHLIB_PATH
15841 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15842 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15843 soname_spec='${libname}${release}${shared_ext}$major'
15845 esac
15846 # HP-UX runs *really* slowly unless shared libraries are mode 555.
15847 postinstall_cmds='chmod 555 $lib'
15850 interix[3-9]*)
15851 version_type=linux
15852 need_lib_prefix=no
15853 need_version=no
15854 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15855 soname_spec='${libname}${release}${shared_ext}$major'
15856 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15857 shlibpath_var=LD_LIBRARY_PATH
15858 shlibpath_overrides_runpath=no
15859 hardcode_into_libs=yes
15862 irix5* | irix6* | nonstopux*)
15863 case $host_os in
15864 nonstopux*) version_type=nonstopux ;;
15866 if test "$lt_cv_prog_gnu_ld" = yes; then
15867 version_type=linux
15868 else
15869 version_type=irix
15870 fi ;;
15871 esac
15872 need_lib_prefix=no
15873 need_version=no
15874 soname_spec='${libname}${release}${shared_ext}$major'
15875 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15876 case $host_os in
15877 irix5* | nonstopux*)
15878 libsuff= shlibsuff=
15881 case $LD in # libtool.m4 will add one of these switches to LD
15882 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15883 libsuff= shlibsuff= libmagic=32-bit;;
15884 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15885 libsuff=32 shlibsuff=N32 libmagic=N32;;
15886 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15887 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15888 *) libsuff= shlibsuff= libmagic=never-match;;
15889 esac
15891 esac
15892 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15893 shlibpath_overrides_runpath=no
15894 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15895 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15896 hardcode_into_libs=yes
15899 # No shared lib support for Linux oldld, aout, or coff.
15900 linux*oldld* | linux*aout* | linux*coff*)
15901 dynamic_linker=no
15904 # This must be Linux ELF.
15905 linux* | k*bsd*-gnu)
15906 version_type=linux
15907 need_lib_prefix=no
15908 need_version=no
15909 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15910 soname_spec='${libname}${release}${shared_ext}$major'
15911 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15912 shlibpath_var=LD_LIBRARY_PATH
15913 shlibpath_overrides_runpath=no
15914 # This implies no fast_install, which is unacceptable.
15915 # Some rework will be needed to allow for fast_install
15916 # before this can be enabled.
15917 hardcode_into_libs=yes
15919 # Append ld.so.conf contents to the search path
15920 if test -f /etc/ld.so.conf; then
15921 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
15922 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15925 # We used to test for /lib/ld.so.1 and disable shared libraries on
15926 # powerpc, because MkLinux only supported shared libraries with the
15927 # GNU dynamic linker. Since this was broken with cross compilers,
15928 # most powerpc-linux boxes support dynamic linking these days and
15929 # people can always --disable-shared, the test was removed, and we
15930 # assume the GNU/Linux dynamic linker is in use.
15931 dynamic_linker='GNU/Linux ld.so'
15934 netbsdelf*-gnu)
15935 version_type=linux
15936 need_lib_prefix=no
15937 need_version=no
15938 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15939 soname_spec='${libname}${release}${shared_ext}$major'
15940 shlibpath_var=LD_LIBRARY_PATH
15941 shlibpath_overrides_runpath=no
15942 hardcode_into_libs=yes
15943 dynamic_linker='NetBSD ld.elf_so'
15946 netbsd*)
15947 version_type=sunos
15948 need_lib_prefix=no
15949 need_version=no
15950 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15951 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15952 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15953 dynamic_linker='NetBSD (a.out) ld.so'
15954 else
15955 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15956 soname_spec='${libname}${release}${shared_ext}$major'
15957 dynamic_linker='NetBSD ld.elf_so'
15959 shlibpath_var=LD_LIBRARY_PATH
15960 shlibpath_overrides_runpath=yes
15961 hardcode_into_libs=yes
15964 newsos6)
15965 version_type=linux
15966 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15967 shlibpath_var=LD_LIBRARY_PATH
15968 shlibpath_overrides_runpath=yes
15971 nto-qnx*)
15972 version_type=linux
15973 need_lib_prefix=no
15974 need_version=no
15975 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15976 soname_spec='${libname}${release}${shared_ext}$major'
15977 shlibpath_var=LD_LIBRARY_PATH
15978 shlibpath_overrides_runpath=yes
15981 openbsd*)
15982 version_type=sunos
15983 sys_lib_dlsearch_path_spec="/usr/lib"
15984 need_lib_prefix=no
15985 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15986 case $host_os in
15987 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15988 *) need_version=no ;;
15989 esac
15990 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15991 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15992 shlibpath_var=LD_LIBRARY_PATH
15993 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15994 case $host_os in
15995 openbsd2.[89] | openbsd2.[89].*)
15996 shlibpath_overrides_runpath=no
15999 shlibpath_overrides_runpath=yes
16001 esac
16002 else
16003 shlibpath_overrides_runpath=yes
16007 os2*)
16008 libname_spec='$name'
16009 shrext_cmds=".dll"
16010 need_lib_prefix=no
16011 library_names_spec='$libname${shared_ext} $libname.a'
16012 dynamic_linker='OS/2 ld.exe'
16013 shlibpath_var=LIBPATH
16016 osf3* | osf4* | osf5*)
16017 version_type=osf
16018 need_lib_prefix=no
16019 need_version=no
16020 soname_spec='${libname}${release}${shared_ext}$major'
16021 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16022 shlibpath_var=LD_LIBRARY_PATH
16023 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16024 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16027 rdos*)
16028 dynamic_linker=no
16031 solaris*)
16032 version_type=linux
16033 need_lib_prefix=no
16034 need_version=no
16035 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16036 soname_spec='${libname}${release}${shared_ext}$major'
16037 shlibpath_var=LD_LIBRARY_PATH
16038 shlibpath_overrides_runpath=yes
16039 hardcode_into_libs=yes
16040 # ldd complains unless libraries are executable
16041 postinstall_cmds='chmod +x $lib'
16044 sunos4*)
16045 version_type=sunos
16046 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16047 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16048 shlibpath_var=LD_LIBRARY_PATH
16049 shlibpath_overrides_runpath=yes
16050 if test "$with_gnu_ld" = yes; then
16051 need_lib_prefix=no
16053 need_version=yes
16056 sysv4 | sysv4.3*)
16057 version_type=linux
16058 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16059 soname_spec='${libname}${release}${shared_ext}$major'
16060 shlibpath_var=LD_LIBRARY_PATH
16061 case $host_vendor in
16062 sni)
16063 shlibpath_overrides_runpath=no
16064 need_lib_prefix=no
16065 export_dynamic_flag_spec='${wl}-Blargedynsym'
16066 runpath_var=LD_RUN_PATH
16068 siemens)
16069 need_lib_prefix=no
16071 motorola)
16072 need_lib_prefix=no
16073 need_version=no
16074 shlibpath_overrides_runpath=no
16075 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16077 esac
16080 sysv4*MP*)
16081 if test -d /usr/nec ;then
16082 version_type=linux
16083 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16084 soname_spec='$libname${shared_ext}.$major'
16085 shlibpath_var=LD_LIBRARY_PATH
16089 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16090 version_type=freebsd-elf
16091 need_lib_prefix=no
16092 need_version=no
16093 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16094 soname_spec='${libname}${release}${shared_ext}$major'
16095 shlibpath_var=LD_LIBRARY_PATH
16096 hardcode_into_libs=yes
16097 if test "$with_gnu_ld" = yes; then
16098 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16099 shlibpath_overrides_runpath=no
16100 else
16101 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16102 shlibpath_overrides_runpath=yes
16103 case $host_os in
16104 sco3.2v5*)
16105 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16107 esac
16109 sys_lib_dlsearch_path_spec='/usr/lib'
16112 uts4*)
16113 version_type=linux
16114 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16115 soname_spec='${libname}${release}${shared_ext}$major'
16116 shlibpath_var=LD_LIBRARY_PATH
16120 dynamic_linker=no
16122 esac
16123 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16124 echo "${ECHO_T}$dynamic_linker" >&6; }
16125 test "$dynamic_linker" = no && can_build_shared=no
16127 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
16128 echo $ECHO_N "(cached) $ECHO_C" >&6
16129 else
16130 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
16133 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
16134 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16135 echo $ECHO_N "(cached) $ECHO_C" >&6
16136 else
16137 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
16140 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
16142 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16143 if test "$GCC" = yes; then
16144 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16147 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16148 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
16149 hardcode_action_F77=
16150 if test -n "$hardcode_libdir_flag_spec_F77" || \
16151 test -n "$runpath_var_F77" || \
16152 test "X$hardcode_automatic_F77" = "Xyes" ; then
16154 # We can hardcode non-existant directories.
16155 if test "$hardcode_direct_F77" != no &&
16156 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16157 # have to relink, otherwise we might link with an installed library
16158 # when we should be linking with a yet-to-be-installed one
16159 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
16160 test "$hardcode_minus_L_F77" != no; then
16161 # Linking always hardcodes the temporary library directory.
16162 hardcode_action_F77=relink
16163 else
16164 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16165 hardcode_action_F77=immediate
16167 else
16168 # We cannot hardcode anything, or else we can only hardcode existing
16169 # directories.
16170 hardcode_action_F77=unsupported
16172 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
16173 echo "${ECHO_T}$hardcode_action_F77" >&6; }
16175 if test "$hardcode_action_F77" = relink; then
16176 # Fast installation is not supported
16177 enable_fast_install=no
16178 elif test "$shlibpath_overrides_runpath" = yes ||
16179 test "$enable_shared" = no; then
16180 # Fast installation is not necessary
16181 enable_fast_install=needless
16185 # The else clause should only fire when bootstrapping the
16186 # libtool distribution, otherwise you forgot to ship ltmain.sh
16187 # with your package, and you will get complaints that there are
16188 # no rules to generate ltmain.sh.
16189 if test -f "$ltmain"; then
16190 # See if we are running on zsh, and set the options which allow our commands through
16191 # without removal of \ escapes.
16192 if test -n "${ZSH_VERSION+set}" ; then
16193 setopt NO_GLOB_SUBST
16195 # Now quote all the things that may contain metacharacters while being
16196 # careful not to overquote the AC_SUBSTed values. We take copies of the
16197 # variables and quote the copies for generation of the libtool script.
16198 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
16199 SED SHELL STRIP \
16200 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
16201 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
16202 deplibs_check_method reload_flag reload_cmds need_locks \
16203 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
16204 lt_cv_sys_global_symbol_to_c_name_address \
16205 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
16206 old_postinstall_cmds old_postuninstall_cmds \
16207 compiler_F77 \
16208 CC_F77 \
16209 LD_F77 \
16210 lt_prog_compiler_wl_F77 \
16211 lt_prog_compiler_pic_F77 \
16212 lt_prog_compiler_static_F77 \
16213 lt_prog_compiler_no_builtin_flag_F77 \
16214 export_dynamic_flag_spec_F77 \
16215 thread_safe_flag_spec_F77 \
16216 whole_archive_flag_spec_F77 \
16217 enable_shared_with_static_runtimes_F77 \
16218 old_archive_cmds_F77 \
16219 old_archive_from_new_cmds_F77 \
16220 predep_objects_F77 \
16221 postdep_objects_F77 \
16222 predeps_F77 \
16223 postdeps_F77 \
16224 compiler_lib_search_path_F77 \
16225 compiler_lib_search_dirs_F77 \
16226 archive_cmds_F77 \
16227 archive_expsym_cmds_F77 \
16228 postinstall_cmds_F77 \
16229 postuninstall_cmds_F77 \
16230 old_archive_from_expsyms_cmds_F77 \
16231 allow_undefined_flag_F77 \
16232 no_undefined_flag_F77 \
16233 export_symbols_cmds_F77 \
16234 hardcode_libdir_flag_spec_F77 \
16235 hardcode_libdir_flag_spec_ld_F77 \
16236 hardcode_libdir_separator_F77 \
16237 hardcode_automatic_F77 \
16238 module_cmds_F77 \
16239 module_expsym_cmds_F77 \
16240 lt_cv_prog_compiler_c_o_F77 \
16241 fix_srcfile_path_F77 \
16242 exclude_expsyms_F77 \
16243 include_expsyms_F77; do
16245 case $var in
16246 old_archive_cmds_F77 | \
16247 old_archive_from_new_cmds_F77 | \
16248 archive_cmds_F77 | \
16249 archive_expsym_cmds_F77 | \
16250 module_cmds_F77 | \
16251 module_expsym_cmds_F77 | \
16252 old_archive_from_expsyms_cmds_F77 | \
16253 export_symbols_cmds_F77 | \
16254 extract_expsyms_cmds | reload_cmds | finish_cmds | \
16255 postinstall_cmds | postuninstall_cmds | \
16256 old_postinstall_cmds | old_postuninstall_cmds | \
16257 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
16258 # Double-quote double-evaled strings.
16259 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
16262 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
16264 esac
16265 done
16267 case $lt_echo in
16268 *'\$0 --fallback-echo"')
16269 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
16271 esac
16273 cfgfile="$ofile"
16275 cat <<__EOF__ >> "$cfgfile"
16276 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
16278 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16280 # Shell to use when invoking shell scripts.
16281 SHELL=$lt_SHELL
16283 # Whether or not to build shared libraries.
16284 build_libtool_libs=$enable_shared
16286 # Whether or not to build static libraries.
16287 build_old_libs=$enable_static
16289 # Whether or not to add -lc for building shared libraries.
16290 build_libtool_need_lc=$archive_cmds_need_lc_F77
16292 # Whether or not to disallow shared libs when runtime libs are static
16293 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
16295 # Whether or not to optimize for fast installation.
16296 fast_install=$enable_fast_install
16298 # The host system.
16299 host_alias=$host_alias
16300 host=$host
16301 host_os=$host_os
16303 # The build system.
16304 build_alias=$build_alias
16305 build=$build
16306 build_os=$build_os
16308 # An echo program that does not interpret backslashes.
16309 echo=$lt_echo
16311 # The archiver.
16312 AR=$lt_AR
16313 AR_FLAGS=$lt_AR_FLAGS
16315 # A C compiler.
16316 LTCC=$lt_LTCC
16318 # LTCC compiler flags.
16319 LTCFLAGS=$lt_LTCFLAGS
16321 # A language-specific compiler.
16322 CC=$lt_compiler_F77
16324 # Is the compiler the GNU C compiler?
16325 with_gcc=$GCC_F77
16327 # An ERE matcher.
16328 EGREP=$lt_EGREP
16330 # The linker used to build libraries.
16331 LD=$lt_LD_F77
16333 # Whether we need hard or soft links.
16334 LN_S=$lt_LN_S
16336 # A BSD-compatible nm program.
16337 NM=$lt_NM
16339 # A symbol stripping program
16340 STRIP=$lt_STRIP
16342 # Used to examine libraries when file_magic_cmd begins "file"
16343 MAGIC_CMD=$MAGIC_CMD
16345 # Used on cygwin: DLL creation program.
16346 DLLTOOL="$DLLTOOL"
16348 # Used on cygwin: object dumper.
16349 OBJDUMP="$OBJDUMP"
16351 # Used on cygwin: assembler.
16352 AS="$AS"
16354 # The name of the directory that contains temporary libtool files.
16355 objdir=$objdir
16357 # How to create reloadable object files.
16358 reload_flag=$lt_reload_flag
16359 reload_cmds=$lt_reload_cmds
16361 # How to pass a linker flag through the compiler.
16362 wl=$lt_lt_prog_compiler_wl_F77
16364 # Object file suffix (normally "o").
16365 objext="$ac_objext"
16367 # Old archive suffix (normally "a").
16368 libext="$libext"
16370 # Shared library suffix (normally ".so").
16371 shrext_cmds='$shrext_cmds'
16373 # Executable file suffix (normally "").
16374 exeext="$exeext"
16376 # Additional compiler flags for building library objects.
16377 pic_flag=$lt_lt_prog_compiler_pic_F77
16378 pic_mode=$pic_mode
16380 # What is the maximum length of a command?
16381 max_cmd_len=$lt_cv_sys_max_cmd_len
16383 # Does compiler simultaneously support -c and -o options?
16384 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
16386 # Must we lock files when doing compilation?
16387 need_locks=$lt_need_locks
16389 # Do we need the lib prefix for modules?
16390 need_lib_prefix=$need_lib_prefix
16392 # Do we need a version for libraries?
16393 need_version=$need_version
16395 # Whether dlopen is supported.
16396 dlopen_support=$enable_dlopen
16398 # Whether dlopen of programs is supported.
16399 dlopen_self=$enable_dlopen_self
16401 # Whether dlopen of statically linked programs is supported.
16402 dlopen_self_static=$enable_dlopen_self_static
16404 # Compiler flag to prevent dynamic linking.
16405 link_static_flag=$lt_lt_prog_compiler_static_F77
16407 # Compiler flag to turn off builtin functions.
16408 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
16410 # Compiler flag to allow reflexive dlopens.
16411 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
16413 # Compiler flag to generate shared objects directly from archives.
16414 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
16416 # Compiler flag to generate thread-safe objects.
16417 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
16419 # Library versioning type.
16420 version_type=$version_type
16422 # Format of library name prefix.
16423 libname_spec=$lt_libname_spec
16425 # List of archive names. First name is the real one, the rest are links.
16426 # The last name is the one that the linker finds with -lNAME.
16427 library_names_spec=$lt_library_names_spec
16429 # The coded name of the library, if different from the real name.
16430 soname_spec=$lt_soname_spec
16432 # Commands used to build and install an old-style archive.
16433 RANLIB=$lt_RANLIB
16434 old_archive_cmds=$lt_old_archive_cmds_F77
16435 old_postinstall_cmds=$lt_old_postinstall_cmds
16436 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16438 # Create an old-style archive from a shared archive.
16439 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16441 # Create a temporary old-style archive to link instead of a shared archive.
16442 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16444 # Commands used to build and install a shared archive.
16445 archive_cmds=$lt_archive_cmds_F77
16446 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16447 postinstall_cmds=$lt_postinstall_cmds
16448 postuninstall_cmds=$lt_postuninstall_cmds
16450 # Commands used to build a loadable module (assumed same as above if empty)
16451 module_cmds=$lt_module_cmds_F77
16452 module_expsym_cmds=$lt_module_expsym_cmds_F77
16454 # Commands to strip libraries.
16455 old_striplib=$lt_old_striplib
16456 striplib=$lt_striplib
16458 # Dependencies to place before the objects being linked to create a
16459 # shared library.
16460 predep_objects=$lt_predep_objects_F77
16462 # Dependencies to place after the objects being linked to create a
16463 # shared library.
16464 postdep_objects=$lt_postdep_objects_F77
16466 # Dependencies to place before the objects being linked to create a
16467 # shared library.
16468 predeps=$lt_predeps_F77
16470 # Dependencies to place after the objects being linked to create a
16471 # shared library.
16472 postdeps=$lt_postdeps_F77
16474 # The directories searched by this compiler when creating a shared
16475 # library
16476 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_F77
16478 # The library search path used internally by the compiler when linking
16479 # a shared library.
16480 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
16482 # Method to check whether dependent libraries are shared objects.
16483 deplibs_check_method=$lt_deplibs_check_method
16485 # Command to use when deplibs_check_method == file_magic.
16486 file_magic_cmd=$lt_file_magic_cmd
16488 # Flag that allows shared libraries with undefined symbols to be built.
16489 allow_undefined_flag=$lt_allow_undefined_flag_F77
16491 # Flag that forces no undefined symbols.
16492 no_undefined_flag=$lt_no_undefined_flag_F77
16494 # Commands used to finish a libtool library installation in a directory.
16495 finish_cmds=$lt_finish_cmds
16497 # Same as above, but a single script fragment to be evaled but not shown.
16498 finish_eval=$lt_finish_eval
16500 # Take the output of nm and produce a listing of raw symbols and C names.
16501 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16503 # Transform the output of nm in a proper C declaration
16504 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16506 # Transform the output of nm in a C name address pair
16507 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16509 # This is the shared library runtime path variable.
16510 runpath_var=$runpath_var
16512 # This is the shared library path variable.
16513 shlibpath_var=$shlibpath_var
16515 # Is shlibpath searched before the hard-coded library search path?
16516 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16518 # How to hardcode a shared library path into an executable.
16519 hardcode_action=$hardcode_action_F77
16521 # Whether we should hardcode library paths into libraries.
16522 hardcode_into_libs=$hardcode_into_libs
16524 # Flag to hardcode \$libdir into a binary during linking.
16525 # This must work even if \$libdir does not exist.
16526 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16528 # If ld is used when linking, flag to hardcode \$libdir into
16529 # a binary during linking. This must work even if \$libdir does
16530 # not exist.
16531 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16533 # Whether we need a single -rpath flag with a separated argument.
16534 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16536 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16537 # resulting binary.
16538 hardcode_direct=$hardcode_direct_F77
16540 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16541 # resulting binary.
16542 hardcode_minus_L=$hardcode_minus_L_F77
16544 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16545 # the resulting binary.
16546 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16548 # Set to yes if building a shared library automatically hardcodes DIR into the library
16549 # and all subsequent libraries and executables linked against it.
16550 hardcode_automatic=$hardcode_automatic_F77
16552 # Variables whose values should be saved in libtool wrapper scripts and
16553 # restored at relink time.
16554 variables_saved_for_relink="$variables_saved_for_relink"
16556 # Whether libtool must link a program against all its dependency libraries.
16557 link_all_deplibs=$link_all_deplibs_F77
16559 # Compile-time system search path for libraries
16560 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16562 # Run-time system search path for libraries
16563 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16565 # Fix the shell variable \$srcfile for the compiler.
16566 fix_srcfile_path=$lt_fix_srcfile_path
16568 # Set to yes if exported symbols are required.
16569 always_export_symbols=$always_export_symbols_F77
16571 # The commands to list exported symbols.
16572 export_symbols_cmds=$lt_export_symbols_cmds_F77
16574 # The commands to extract the exported symbol list from a shared archive.
16575 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16577 # Symbols that should not be listed in the preloaded symbols.
16578 exclude_expsyms=$lt_exclude_expsyms_F77
16580 # Symbols that must always be exported.
16581 include_expsyms=$lt_include_expsyms_F77
16583 # ### END LIBTOOL TAG CONFIG: $tagname
16585 __EOF__
16588 else
16589 # If there is no Makefile yet, we rely on a make rule to execute
16590 # `config.status --recheck' to rerun these tests and create the
16591 # libtool script then.
16592 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16593 if test -f "$ltmain_in"; then
16594 test -f Makefile && make "$ltmain"
16599 ac_ext=c
16600 ac_cpp='$CPP $CPPFLAGS'
16601 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16602 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16603 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16605 CC="$lt_save_CC"
16607 else
16608 tagname=""
16612 GCJ)
16613 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16616 # Source file extension for Java test sources.
16617 ac_ext=java
16619 # Object file extension for compiled Java test sources.
16620 objext=o
16621 objext_GCJ=$objext
16623 # Code to be used in simple compile tests
16624 lt_simple_compile_test_code="class foo {}"
16626 # Code to be used in simple link tests
16627 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }'
16629 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
16631 # If no C compiler was specified, use CC.
16632 LTCC=${LTCC-"$CC"}
16634 # If no C compiler flags were specified, use CFLAGS.
16635 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16637 # Allow CC to be a program name with arguments.
16638 compiler=$CC
16641 # save warnings/boilerplate of simple test code
16642 ac_outfile=conftest.$ac_objext
16643 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
16644 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16645 _lt_compiler_boilerplate=`cat conftest.err`
16646 $rm conftest*
16648 ac_outfile=conftest.$ac_objext
16649 echo "$lt_simple_link_test_code" >conftest.$ac_ext
16650 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16651 _lt_linker_boilerplate=`cat conftest.err`
16652 $rm -r conftest*
16655 # Allow CC to be a program name with arguments.
16656 lt_save_CC="$CC"
16657 CC=${GCJ-"gcj"}
16658 compiler=$CC
16659 compiler_GCJ=$CC
16660 for cc_temp in $compiler""; do
16661 case $cc_temp in
16662 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16663 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16664 \-*) ;;
16665 *) break;;
16666 esac
16667 done
16668 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16671 # GCJ did not exist at the time GCC didn't implicitly link libc in.
16672 archive_cmds_need_lc_GCJ=no
16674 old_archive_cmds_GCJ=$old_archive_cmds
16677 lt_prog_compiler_no_builtin_flag_GCJ=
16679 if test "$GCC" = yes; then
16680 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16683 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16684 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
16685 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16686 echo $ECHO_N "(cached) $ECHO_C" >&6
16687 else
16688 lt_cv_prog_compiler_rtti_exceptions=no
16689 ac_outfile=conftest.$ac_objext
16690 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16691 lt_compiler_flag="-fno-rtti -fno-exceptions"
16692 # Insert the option either (1) after the last *FLAGS variable, or
16693 # (2) before a word containing "conftest.", or (3) at the end.
16694 # Note that $ac_compile itself does not contain backslashes and begins
16695 # with a dollar sign (not a hyphen), so the echo should work correctly.
16696 # The option is referenced via a variable to avoid confusing sed.
16697 lt_compile=`echo "$ac_compile" | $SED \
16698 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16699 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16700 -e 's:$: $lt_compiler_flag:'`
16701 (eval echo "\"\$as_me:16701: $lt_compile\"" >&5)
16702 (eval "$lt_compile" 2>conftest.err)
16703 ac_status=$?
16704 cat conftest.err >&5
16705 echo "$as_me:16705: \$? = $ac_status" >&5
16706 if (exit $ac_status) && test -s "$ac_outfile"; then
16707 # The compiler can only warn and ignore the option if not recognized
16708 # So say no if there are warnings other than the usual output.
16709 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16710 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16711 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16712 lt_cv_prog_compiler_rtti_exceptions=yes
16715 $rm conftest*
16718 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16719 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
16721 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16722 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16723 else
16729 lt_prog_compiler_wl_GCJ=
16730 lt_prog_compiler_pic_GCJ=
16731 lt_prog_compiler_static_GCJ=
16733 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16734 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
16736 if test "$GCC" = yes; then
16737 lt_prog_compiler_wl_GCJ='-Wl,'
16738 lt_prog_compiler_static_GCJ='-static'
16740 case $host_os in
16741 aix*)
16742 # All AIX code is PIC.
16743 if test "$host_cpu" = ia64; then
16744 # AIX 5 now supports IA64 processor
16745 lt_prog_compiler_static_GCJ='-Bstatic'
16749 amigaos*)
16750 # FIXME: we need at least 68020 code to build shared libraries, but
16751 # adding the `-m68020' flag to GCC prevents building anything better,
16752 # like `-m68040'.
16753 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16756 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16757 # PIC is the default for these OSes.
16760 mingw* | cygwin* | pw32* | os2*)
16761 # This hack is so that the source file can tell whether it is being
16762 # built for inclusion in a dll (and should export symbols for example).
16763 # Although the cygwin gcc ignores -fPIC, still need this for old-style
16764 # (--disable-auto-import) libraries
16768 darwin* | rhapsody*)
16769 # PIC is the default on this platform
16770 # Common symbols not allowed in MH_DYLIB files
16771 lt_prog_compiler_pic_GCJ='-fno-common'
16774 interix[3-9]*)
16775 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16776 # Instead, we relocate shared libraries at runtime.
16779 msdosdjgpp*)
16780 # Just because we use GCC doesn't mean we suddenly get shared libraries
16781 # on systems that don't support them.
16782 lt_prog_compiler_can_build_shared_GCJ=no
16783 enable_shared=no
16786 sysv4*MP*)
16787 if test -d /usr/nec; then
16788 lt_prog_compiler_pic_GCJ=-Kconform_pic
16792 hpux*)
16793 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16794 # not for PA HP-UX.
16795 case $host_cpu in
16796 hppa*64*|ia64*)
16797 # +Z the default
16800 lt_prog_compiler_pic_GCJ='-fPIC'
16802 esac
16806 lt_prog_compiler_pic_GCJ='-fPIC'
16808 esac
16809 else
16810 # PORTME Check for flag to pass linker flags through the system compiler.
16811 case $host_os in
16812 aix*)
16813 lt_prog_compiler_wl_GCJ='-Wl,'
16814 if test "$host_cpu" = ia64; then
16815 # AIX 5 now supports IA64 processor
16816 lt_prog_compiler_static_GCJ='-Bstatic'
16817 else
16818 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16821 darwin*)
16822 # PIC is the default on this platform
16823 # Common symbols not allowed in MH_DYLIB files
16824 case $cc_basename in
16825 xlc*)
16826 lt_prog_compiler_pic_GCJ='-qnocommon'
16827 lt_prog_compiler_wl_GCJ='-Wl,'
16829 esac
16832 mingw* | cygwin* | pw32* | os2*)
16833 # This hack is so that the source file can tell whether it is being
16834 # built for inclusion in a dll (and should export symbols for example).
16838 hpux9* | hpux10* | hpux11*)
16839 lt_prog_compiler_wl_GCJ='-Wl,'
16840 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16841 # not for PA HP-UX.
16842 case $host_cpu in
16843 hppa*64*|ia64*)
16844 # +Z the default
16847 lt_prog_compiler_pic_GCJ='+Z'
16849 esac
16850 # Is there a better lt_prog_compiler_static that works with the bundled CC?
16851 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
16854 irix5* | irix6* | nonstopux*)
16855 lt_prog_compiler_wl_GCJ='-Wl,'
16856 # PIC (with -KPIC) is the default.
16857 lt_prog_compiler_static_GCJ='-non_shared'
16860 newsos6)
16861 lt_prog_compiler_pic_GCJ='-KPIC'
16862 lt_prog_compiler_static_GCJ='-Bstatic'
16865 linux* | k*bsd*-gnu)
16866 case $cc_basename in
16867 icc* | ecc*)
16868 lt_prog_compiler_wl_GCJ='-Wl,'
16869 lt_prog_compiler_pic_GCJ='-KPIC'
16870 lt_prog_compiler_static_GCJ='-static'
16872 pgcc* | pgf77* | pgf90* | pgf95*)
16873 # Portland Group compilers (*not* the Pentium gcc compiler,
16874 # which looks to be a dead project)
16875 lt_prog_compiler_wl_GCJ='-Wl,'
16876 lt_prog_compiler_pic_GCJ='-fpic'
16877 lt_prog_compiler_static_GCJ='-Bstatic'
16879 ccc*)
16880 lt_prog_compiler_wl_GCJ='-Wl,'
16881 # All Alpha code is PIC.
16882 lt_prog_compiler_static_GCJ='-non_shared'
16885 case `$CC -V 2>&1 | sed 5q` in
16886 *Sun\ C*)
16887 # Sun C 5.9
16888 lt_prog_compiler_pic_GCJ='-KPIC'
16889 lt_prog_compiler_static_GCJ='-Bstatic'
16890 lt_prog_compiler_wl_GCJ='-Wl,'
16892 *Sun\ F*)
16893 # Sun Fortran 8.3 passes all unrecognized flags to the linker
16894 lt_prog_compiler_pic_GCJ='-KPIC'
16895 lt_prog_compiler_static_GCJ='-Bstatic'
16896 lt_prog_compiler_wl_GCJ=''
16898 esac
16900 esac
16903 osf3* | osf4* | osf5*)
16904 lt_prog_compiler_wl_GCJ='-Wl,'
16905 # All OSF/1 code is PIC.
16906 lt_prog_compiler_static_GCJ='-non_shared'
16909 rdos*)
16910 lt_prog_compiler_static_GCJ='-non_shared'
16913 solaris*)
16914 lt_prog_compiler_pic_GCJ='-KPIC'
16915 lt_prog_compiler_static_GCJ='-Bstatic'
16916 case $cc_basename in
16917 f77* | f90* | f95*)
16918 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
16920 lt_prog_compiler_wl_GCJ='-Wl,';;
16921 esac
16924 sunos4*)
16925 lt_prog_compiler_wl_GCJ='-Qoption ld '
16926 lt_prog_compiler_pic_GCJ='-PIC'
16927 lt_prog_compiler_static_GCJ='-Bstatic'
16930 sysv4 | sysv4.2uw2* | sysv4.3*)
16931 lt_prog_compiler_wl_GCJ='-Wl,'
16932 lt_prog_compiler_pic_GCJ='-KPIC'
16933 lt_prog_compiler_static_GCJ='-Bstatic'
16936 sysv4*MP*)
16937 if test -d /usr/nec ;then
16938 lt_prog_compiler_pic_GCJ='-Kconform_pic'
16939 lt_prog_compiler_static_GCJ='-Bstatic'
16943 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16944 lt_prog_compiler_wl_GCJ='-Wl,'
16945 lt_prog_compiler_pic_GCJ='-KPIC'
16946 lt_prog_compiler_static_GCJ='-Bstatic'
16949 unicos*)
16950 lt_prog_compiler_wl_GCJ='-Wl,'
16951 lt_prog_compiler_can_build_shared_GCJ=no
16954 uts4*)
16955 lt_prog_compiler_pic_GCJ='-pic'
16956 lt_prog_compiler_static_GCJ='-Bstatic'
16960 lt_prog_compiler_can_build_shared_GCJ=no
16962 esac
16965 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
16966 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
16969 # Check to make sure the PIC flag actually works.
16971 if test -n "$lt_prog_compiler_pic_GCJ"; then
16973 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
16974 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
16975 if test "${lt_cv_prog_compiler_pic_works_GCJ+set}" = set; then
16976 echo $ECHO_N "(cached) $ECHO_C" >&6
16977 else
16978 lt_cv_prog_compiler_pic_works_GCJ=no
16979 ac_outfile=conftest.$ac_objext
16980 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16981 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
16982 # Insert the option either (1) after the last *FLAGS variable, or
16983 # (2) before a word containing "conftest.", or (3) at the end.
16984 # Note that $ac_compile itself does not contain backslashes and begins
16985 # with a dollar sign (not a hyphen), so the echo should work correctly.
16986 # The option is referenced via a variable to avoid confusing sed.
16987 lt_compile=`echo "$ac_compile" | $SED \
16988 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16989 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16990 -e 's:$: $lt_compiler_flag:'`
16991 (eval echo "\"\$as_me:16991: $lt_compile\"" >&5)
16992 (eval "$lt_compile" 2>conftest.err)
16993 ac_status=$?
16994 cat conftest.err >&5
16995 echo "$as_me:16995: \$? = $ac_status" >&5
16996 if (exit $ac_status) && test -s "$ac_outfile"; then
16997 # The compiler can only warn and ignore the option if not recognized
16998 # So say no if there are warnings other than the usual output.
16999 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
17000 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17001 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17002 lt_cv_prog_compiler_pic_works_GCJ=yes
17005 $rm conftest*
17008 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_GCJ" >&5
17009 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_GCJ" >&6; }
17011 if test x"$lt_cv_prog_compiler_pic_works_GCJ" = xyes; then
17012 case $lt_prog_compiler_pic_GCJ in
17013 "" | " "*) ;;
17014 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
17015 esac
17016 else
17017 lt_prog_compiler_pic_GCJ=
17018 lt_prog_compiler_can_build_shared_GCJ=no
17022 case $host_os in
17023 # For platforms which do not support PIC, -DPIC is meaningless:
17024 *djgpp*)
17025 lt_prog_compiler_pic_GCJ=
17028 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
17030 esac
17033 # Check to make sure the static flag actually works.
17035 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
17036 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
17037 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
17038 if test "${lt_cv_prog_compiler_static_works_GCJ+set}" = set; then
17039 echo $ECHO_N "(cached) $ECHO_C" >&6
17040 else
17041 lt_cv_prog_compiler_static_works_GCJ=no
17042 save_LDFLAGS="$LDFLAGS"
17043 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
17044 echo "$lt_simple_link_test_code" > conftest.$ac_ext
17045 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17046 # The linker can only warn and ignore the option if not recognized
17047 # So say no if there are warnings
17048 if test -s conftest.err; then
17049 # Append any errors to the config.log.
17050 cat conftest.err 1>&5
17051 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
17052 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17053 if diff conftest.exp conftest.er2 >/dev/null; then
17054 lt_cv_prog_compiler_static_works_GCJ=yes
17056 else
17057 lt_cv_prog_compiler_static_works_GCJ=yes
17060 $rm -r conftest*
17061 LDFLAGS="$save_LDFLAGS"
17064 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_GCJ" >&5
17065 echo "${ECHO_T}$lt_cv_prog_compiler_static_works_GCJ" >&6; }
17067 if test x"$lt_cv_prog_compiler_static_works_GCJ" = xyes; then
17069 else
17070 lt_prog_compiler_static_GCJ=
17074 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
17075 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
17076 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
17077 echo $ECHO_N "(cached) $ECHO_C" >&6
17078 else
17079 lt_cv_prog_compiler_c_o_GCJ=no
17080 $rm -r conftest 2>/dev/null
17081 mkdir conftest
17082 cd conftest
17083 mkdir out
17084 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17086 lt_compiler_flag="-o out/conftest2.$ac_objext"
17087 # Insert the option either (1) after the last *FLAGS variable, or
17088 # (2) before a word containing "conftest.", or (3) at the end.
17089 # Note that $ac_compile itself does not contain backslashes and begins
17090 # with a dollar sign (not a hyphen), so the echo should work correctly.
17091 lt_compile=`echo "$ac_compile" | $SED \
17092 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17093 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17094 -e 's:$: $lt_compiler_flag:'`
17095 (eval echo "\"\$as_me:17095: $lt_compile\"" >&5)
17096 (eval "$lt_compile" 2>out/conftest.err)
17097 ac_status=$?
17098 cat out/conftest.err >&5
17099 echo "$as_me:17099: \$? = $ac_status" >&5
17100 if (exit $ac_status) && test -s out/conftest2.$ac_objext
17101 then
17102 # The compiler can only warn and ignore the option if not recognized
17103 # So say no if there are warnings
17104 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
17105 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17106 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17107 lt_cv_prog_compiler_c_o_GCJ=yes
17110 chmod u+w . 2>&5
17111 $rm conftest*
17112 # SGI C++ compiler will create directory out/ii_files/ for
17113 # template instantiation
17114 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
17115 $rm out/* && rmdir out
17116 cd ..
17117 rmdir conftest
17118 $rm conftest*
17121 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
17122 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
17125 hard_links="nottested"
17126 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
17127 # do not overwrite the value of need_locks provided by the user
17128 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
17129 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
17130 hard_links=yes
17131 $rm conftest*
17132 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17133 touch conftest.a
17134 ln conftest.a conftest.b 2>&5 || hard_links=no
17135 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17136 { echo "$as_me:$LINENO: result: $hard_links" >&5
17137 echo "${ECHO_T}$hard_links" >&6; }
17138 if test "$hard_links" = no; then
17139 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17140 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17141 need_locks=warn
17143 else
17144 need_locks=no
17147 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17148 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
17150 runpath_var=
17151 allow_undefined_flag_GCJ=
17152 enable_shared_with_static_runtimes_GCJ=no
17153 archive_cmds_GCJ=
17154 archive_expsym_cmds_GCJ=
17155 old_archive_From_new_cmds_GCJ=
17156 old_archive_from_expsyms_cmds_GCJ=
17157 export_dynamic_flag_spec_GCJ=
17158 whole_archive_flag_spec_GCJ=
17159 thread_safe_flag_spec_GCJ=
17160 hardcode_libdir_flag_spec_GCJ=
17161 hardcode_libdir_flag_spec_ld_GCJ=
17162 hardcode_libdir_separator_GCJ=
17163 hardcode_direct_GCJ=no
17164 hardcode_minus_L_GCJ=no
17165 hardcode_shlibpath_var_GCJ=unsupported
17166 link_all_deplibs_GCJ=unknown
17167 hardcode_automatic_GCJ=no
17168 module_cmds_GCJ=
17169 module_expsym_cmds_GCJ=
17170 always_export_symbols_GCJ=no
17171 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17172 # include_expsyms should be a list of space-separated symbols to be *always*
17173 # included in the symbol list
17174 include_expsyms_GCJ=
17175 # exclude_expsyms can be an extended regexp of symbols to exclude
17176 # it will be wrapped by ` (' and `)$', so one must not match beginning or
17177 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
17178 # as well as any symbol that contains `d'.
17179 exclude_expsyms_GCJ='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
17180 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17181 # platforms (ab)use it in PIC code, but their linkers get confused if
17182 # the symbol is explicitly referenced. Since portable code cannot
17183 # rely on this symbol name, it's probably fine to never include it in
17184 # preloaded symbol tables.
17185 # Exclude shared library initialization/finalization symbols.
17186 extract_expsyms_cmds=
17187 # Just being paranoid about ensuring that cc_basename is set.
17188 for cc_temp in $compiler""; do
17189 case $cc_temp in
17190 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17191 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17192 \-*) ;;
17193 *) break;;
17194 esac
17195 done
17196 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17198 case $host_os in
17199 cygwin* | mingw* | pw32*)
17200 # FIXME: the MSVC++ port hasn't been tested in a loooong time
17201 # When not using gcc, we currently assume that we are using
17202 # Microsoft Visual C++.
17203 if test "$GCC" != yes; then
17204 with_gnu_ld=no
17207 interix*)
17208 # we just hope/assume this is gcc and not c89 (= MSVC++)
17209 with_gnu_ld=yes
17211 openbsd*)
17212 with_gnu_ld=no
17214 esac
17216 ld_shlibs_GCJ=yes
17217 if test "$with_gnu_ld" = yes; then
17218 # If archive_cmds runs LD, not CC, wlarc should be empty
17219 wlarc='${wl}'
17221 # Set some defaults for GNU ld with shared library support. These
17222 # are reset later if shared libraries are not supported. Putting them
17223 # here allows them to be overridden if necessary.
17224 runpath_var=LD_RUN_PATH
17225 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
17226 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
17227 # ancient GNU ld didn't support --whole-archive et. al.
17228 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
17229 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17230 else
17231 whole_archive_flag_spec_GCJ=
17233 supports_anon_versioning=no
17234 case `$LD -v 2>/dev/null` in
17235 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17236 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17237 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17238 *\ 2.11.*) ;; # other 2.11 versions
17239 *) supports_anon_versioning=yes ;;
17240 esac
17242 # See if GNU ld supports shared libraries.
17243 case $host_os in
17244 aix[3-9]*)
17245 # On AIX/PPC, the GNU linker is very broken
17246 if test "$host_cpu" != ia64; then
17247 ld_shlibs_GCJ=no
17248 cat <<EOF 1>&2
17250 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
17251 *** to be unable to reliably create shared libraries on AIX.
17252 *** Therefore, libtool is disabling shared libraries support. If you
17253 *** really care for shared libraries, you may want to modify your PATH
17254 *** so that a non-GNU linker is found, and then restart.
17260 amigaos*)
17261 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)'
17262 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17263 hardcode_minus_L_GCJ=yes
17265 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
17266 # that the semantics of dynamic libraries on AmigaOS, at least up
17267 # to version 4, is to share data among multiple programs linked
17268 # with the same dynamic library. Since this doesn't match the
17269 # behavior of shared libraries on other platforms, we can't use
17270 # them.
17271 ld_shlibs_GCJ=no
17274 beos*)
17275 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17276 allow_undefined_flag_GCJ=unsupported
17277 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17278 # support --undefined. This deserves some investigation. FIXME
17279 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17280 else
17281 ld_shlibs_GCJ=no
17285 cygwin* | mingw* | pw32*)
17286 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
17287 # as there is no search path for DLLs.
17288 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17289 allow_undefined_flag_GCJ=unsupported
17290 always_export_symbols_GCJ=no
17291 enable_shared_with_static_runtimes_GCJ=yes
17292 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
17294 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
17295 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17296 # If the export-symbols file already is a .def file (1st line
17297 # is EXPORTS), use it as is; otherwise, prepend...
17298 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17299 cp $export_symbols $output_objdir/$soname.def;
17300 else
17301 echo EXPORTS > $output_objdir/$soname.def;
17302 cat $export_symbols >> $output_objdir/$soname.def;
17304 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17305 else
17306 ld_shlibs_GCJ=no
17310 interix[3-9]*)
17311 hardcode_direct_GCJ=no
17312 hardcode_shlibpath_var_GCJ=no
17313 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17314 export_dynamic_flag_spec_GCJ='${wl}-E'
17315 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17316 # Instead, shared libraries are loaded at an image base (0x10000000 by
17317 # default) and relocated if they conflict, which is a slow very memory
17318 # consuming and fragmenting process. To avoid this, we pick a random,
17319 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17320 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
17321 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'
17322 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'
17325 gnu* | linux* | k*bsd*-gnu)
17326 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17327 tmp_addflag=
17328 case $cc_basename,$host_cpu in
17329 pgcc*) # Portland Group C compiler
17330 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'
17331 tmp_addflag=' $pic_flag'
17333 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
17334 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'
17335 tmp_addflag=' $pic_flag -Mnomain' ;;
17336 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
17337 tmp_addflag=' -i_dynamic' ;;
17338 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
17339 tmp_addflag=' -i_dynamic -nofor_main' ;;
17340 ifc* | ifort*) # Intel Fortran compiler
17341 tmp_addflag=' -nofor_main' ;;
17342 esac
17343 case `$CC -V 2>&1 | sed 5q` in
17344 *Sun\ C*) # Sun C 5.9
17345 whole_archive_flag_spec_GCJ='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
17346 tmp_sharedflag='-G' ;;
17347 *Sun\ F*) # Sun Fortran 8.3
17348 tmp_sharedflag='-G' ;;
17350 tmp_sharedflag='-shared' ;;
17351 esac
17352 archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17354 if test $supports_anon_versioning = yes; then
17355 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
17356 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17357 $echo "local: *; };" >> $output_objdir/$libname.ver~
17358 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17360 link_all_deplibs_GCJ=no
17361 else
17362 ld_shlibs_GCJ=no
17366 netbsd* | netbsdelf*-gnu)
17367 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17368 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17369 wlarc=
17370 else
17371 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17372 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17376 solaris*)
17377 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
17378 ld_shlibs_GCJ=no
17379 cat <<EOF 1>&2
17381 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
17382 *** create shared libraries on Solaris systems. Therefore, libtool
17383 *** is disabling shared libraries support. We urge you to upgrade GNU
17384 *** binutils to release 2.9.1 or newer. Another option is to modify
17385 *** your PATH or compiler configuration so that the native linker is
17386 *** used, and then restart.
17389 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17390 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17391 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17392 else
17393 ld_shlibs_GCJ=no
17397 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
17398 case `$LD -v 2>&1` in
17399 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
17400 ld_shlibs_GCJ=no
17401 cat <<_LT_EOF 1>&2
17403 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
17404 *** reliably create shared libraries on SCO systems. Therefore, libtool
17405 *** is disabling shared libraries support. We urge you to upgrade GNU
17406 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
17407 *** your PATH or compiler configuration so that the native linker is
17408 *** used, and then restart.
17410 _LT_EOF
17413 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17414 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
17415 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
17416 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
17417 else
17418 ld_shlibs_GCJ=no
17421 esac
17424 sunos4*)
17425 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17426 wlarc=
17427 hardcode_direct_GCJ=yes
17428 hardcode_shlibpath_var_GCJ=no
17432 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17433 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17434 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17435 else
17436 ld_shlibs_GCJ=no
17439 esac
17441 if test "$ld_shlibs_GCJ" = no; then
17442 runpath_var=
17443 hardcode_libdir_flag_spec_GCJ=
17444 export_dynamic_flag_spec_GCJ=
17445 whole_archive_flag_spec_GCJ=
17447 else
17448 # PORTME fill in a description of your system's linker (not GNU ld)
17449 case $host_os in
17450 aix3*)
17451 allow_undefined_flag_GCJ=unsupported
17452 always_export_symbols_GCJ=yes
17453 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'
17454 # Note: this linker hardcodes the directories in LIBPATH if there
17455 # are no directories specified by -L.
17456 hardcode_minus_L_GCJ=yes
17457 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17458 # Neither direct hardcoding nor static linking is supported with a
17459 # broken collect2.
17460 hardcode_direct_GCJ=unsupported
17464 aix[4-9]*)
17465 if test "$host_cpu" = ia64; then
17466 # On IA64, the linker does run time linking by default, so we don't
17467 # have to do anything special.
17468 aix_use_runtimelinking=no
17469 exp_sym_flag='-Bexport'
17470 no_entry_flag=""
17471 else
17472 # If we're using GNU nm, then we don't want the "-C" option.
17473 # -C means demangle to AIX nm, but means don't demangle with GNU nm
17474 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17475 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'
17476 else
17477 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'
17479 aix_use_runtimelinking=no
17481 # Test if we are trying to use run time linking or normal
17482 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17483 # need to do runtime linking.
17484 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
17485 for ld_flag in $LDFLAGS; do
17486 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17487 aix_use_runtimelinking=yes
17488 break
17490 done
17492 esac
17494 exp_sym_flag='-bexport'
17495 no_entry_flag='-bnoentry'
17498 # When large executables or shared objects are built, AIX ld can
17499 # have problems creating the table of contents. If linking a library
17500 # or program results in "error TOC overflow" add -mminimal-toc to
17501 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
17502 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17504 archive_cmds_GCJ=''
17505 hardcode_direct_GCJ=yes
17506 hardcode_libdir_separator_GCJ=':'
17507 link_all_deplibs_GCJ=yes
17509 if test "$GCC" = yes; then
17510 case $host_os in aix4.[012]|aix4.[012].*)
17511 # We only want to do this on AIX 4.2 and lower, the check
17512 # below for broken collect2 doesn't work under 4.3+
17513 collect2name=`${CC} -print-prog-name=collect2`
17514 if test -f "$collect2name" && \
17515 strings "$collect2name" | grep resolve_lib_name >/dev/null
17516 then
17517 # We have reworked collect2
17519 else
17520 # We have old collect2
17521 hardcode_direct_GCJ=unsupported
17522 # It fails to find uninstalled libraries when the uninstalled
17523 # path is not listed in the libpath. Setting hardcode_minus_L
17524 # to unsupported forces relinking
17525 hardcode_minus_L_GCJ=yes
17526 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17527 hardcode_libdir_separator_GCJ=
17530 esac
17531 shared_flag='-shared'
17532 if test "$aix_use_runtimelinking" = yes; then
17533 shared_flag="$shared_flag "'${wl}-G'
17535 else
17536 # not using gcc
17537 if test "$host_cpu" = ia64; then
17538 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17539 # chokes on -Wl,-G. The following line is correct:
17540 shared_flag='-G'
17541 else
17542 if test "$aix_use_runtimelinking" = yes; then
17543 shared_flag='${wl}-G'
17544 else
17545 shared_flag='${wl}-bM:SRE'
17550 # It seems that -bexpall does not export symbols beginning with
17551 # underscore (_), so it is better to generate a list of symbols to export.
17552 always_export_symbols_GCJ=yes
17553 if test "$aix_use_runtimelinking" = yes; then
17554 # Warning - without using the other runtime loading flags (-brtl),
17555 # -berok will link without error, but may produce a broken library.
17556 allow_undefined_flag_GCJ='-berok'
17557 # Determine the default libpath from the value encoded in an empty executable.
17558 cat >conftest.$ac_ext <<_ACEOF
17559 /* confdefs.h. */
17560 _ACEOF
17561 cat confdefs.h >>conftest.$ac_ext
17562 cat >>conftest.$ac_ext <<_ACEOF
17563 /* end confdefs.h. */
17566 main ()
17570 return 0;
17572 _ACEOF
17573 rm -f conftest.$ac_objext conftest$ac_exeext
17574 if { (ac_try="$ac_link"
17575 case "(($ac_try" in
17576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17577 *) ac_try_echo=$ac_try;;
17578 esac
17579 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17580 (eval "$ac_link") 2>conftest.er1
17581 ac_status=$?
17582 grep -v '^ *+' conftest.er1 >conftest.err
17583 rm -f conftest.er1
17584 cat conftest.err >&5
17585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17586 (exit $ac_status); } && {
17587 test -z "$ac_c_werror_flag" ||
17588 test ! -s conftest.err
17589 } && test -s conftest$ac_exeext &&
17590 $as_test_x conftest$ac_exeext; then
17592 lt_aix_libpath_sed='
17593 /Import File Strings/,/^$/ {
17594 /^0/ {
17595 s/^0 *\(.*\)$/\1/
17599 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17600 # Check for a 64-bit object if we didn't find anything.
17601 if test -z "$aix_libpath"; then
17602 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17604 else
17605 echo "$as_me: failed program was:" >&5
17606 sed 's/^/| /' conftest.$ac_ext >&5
17611 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17612 conftest$ac_exeext conftest.$ac_ext
17613 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17615 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17616 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"
17617 else
17618 if test "$host_cpu" = ia64; then
17619 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17620 allow_undefined_flag_GCJ="-z nodefs"
17621 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"
17622 else
17623 # Determine the default libpath from the value encoded in an empty executable.
17624 cat >conftest.$ac_ext <<_ACEOF
17625 /* confdefs.h. */
17626 _ACEOF
17627 cat confdefs.h >>conftest.$ac_ext
17628 cat >>conftest.$ac_ext <<_ACEOF
17629 /* end confdefs.h. */
17632 main ()
17636 return 0;
17638 _ACEOF
17639 rm -f conftest.$ac_objext conftest$ac_exeext
17640 if { (ac_try="$ac_link"
17641 case "(($ac_try" in
17642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17643 *) ac_try_echo=$ac_try;;
17644 esac
17645 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17646 (eval "$ac_link") 2>conftest.er1
17647 ac_status=$?
17648 grep -v '^ *+' conftest.er1 >conftest.err
17649 rm -f conftest.er1
17650 cat conftest.err >&5
17651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17652 (exit $ac_status); } && {
17653 test -z "$ac_c_werror_flag" ||
17654 test ! -s conftest.err
17655 } && test -s conftest$ac_exeext &&
17656 $as_test_x conftest$ac_exeext; then
17658 lt_aix_libpath_sed='
17659 /Import File Strings/,/^$/ {
17660 /^0/ {
17661 s/^0 *\(.*\)$/\1/
17665 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17666 # Check for a 64-bit object if we didn't find anything.
17667 if test -z "$aix_libpath"; then
17668 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17670 else
17671 echo "$as_me: failed program was:" >&5
17672 sed 's/^/| /' conftest.$ac_ext >&5
17677 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17678 conftest$ac_exeext conftest.$ac_ext
17679 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17681 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17682 # Warning - without using the other run time loading flags,
17683 # -berok will link without error, but may produce a broken library.
17684 no_undefined_flag_GCJ=' ${wl}-bernotok'
17685 allow_undefined_flag_GCJ=' ${wl}-berok'
17686 # Exported symbols can be pulled into shared objects from archives
17687 whole_archive_flag_spec_GCJ='$convenience'
17688 archive_cmds_need_lc_GCJ=yes
17689 # This is similar to how AIX traditionally builds its shared libraries.
17690 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'
17695 amigaos*)
17696 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)'
17697 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17698 hardcode_minus_L_GCJ=yes
17699 # see comment about different semantics on the GNU ld section
17700 ld_shlibs_GCJ=no
17703 bsdi[45]*)
17704 export_dynamic_flag_spec_GCJ=-rdynamic
17707 cygwin* | mingw* | pw32*)
17708 # When not using gcc, we currently assume that we are using
17709 # Microsoft Visual C++.
17710 # hardcode_libdir_flag_spec is actually meaningless, as there is
17711 # no search path for DLLs.
17712 hardcode_libdir_flag_spec_GCJ=' '
17713 allow_undefined_flag_GCJ=unsupported
17714 # Tell ltmain to make .lib files, not .a files.
17715 libext=lib
17716 # Tell ltmain to make .dll files, not .so files.
17717 shrext_cmds=".dll"
17718 # FIXME: Setting linknames here is a bad hack.
17719 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17720 # The linker will automatically build a .lib file if we build a DLL.
17721 old_archive_From_new_cmds_GCJ='true'
17722 # FIXME: Should let the user specify the lib program.
17723 old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs'
17724 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
17725 enable_shared_with_static_runtimes_GCJ=yes
17728 darwin* | rhapsody*)
17729 case $host_os in
17730 rhapsody* | darwin1.[012])
17731 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
17733 *) # Darwin 1.3 on
17734 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17735 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17736 else
17737 case ${MACOSX_DEPLOYMENT_TARGET} in
17738 10.[012])
17739 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17741 10.*)
17742 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
17744 esac
17747 esac
17748 archive_cmds_need_lc_GCJ=no
17749 hardcode_direct_GCJ=no
17750 hardcode_automatic_GCJ=yes
17751 hardcode_shlibpath_var_GCJ=unsupported
17752 whole_archive_flag_spec_GCJ=''
17753 link_all_deplibs_GCJ=yes
17754 if test "$GCC" = yes ; then
17755 output_verbose_link_cmd='echo'
17756 archive_cmds_GCJ="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
17757 module_cmds_GCJ="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
17758 archive_expsym_cmds_GCJ="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
17759 module_expsym_cmds_GCJ="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
17760 else
17761 case $cc_basename in
17762 xlc*)
17763 output_verbose_link_cmd='echo'
17764 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
17765 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17766 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17767 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17768 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}'
17771 ld_shlibs_GCJ=no
17773 esac
17777 dgux*)
17778 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17779 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17780 hardcode_shlibpath_var_GCJ=no
17783 freebsd1*)
17784 ld_shlibs_GCJ=no
17787 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17788 # support. Future versions do this automatically, but an explicit c++rt0.o
17789 # does not break anything, and helps significantly (at the cost of a little
17790 # extra space).
17791 freebsd2.2*)
17792 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17793 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17794 hardcode_direct_GCJ=yes
17795 hardcode_shlibpath_var_GCJ=no
17798 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17799 freebsd2*)
17800 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17801 hardcode_direct_GCJ=yes
17802 hardcode_minus_L_GCJ=yes
17803 hardcode_shlibpath_var_GCJ=no
17806 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17807 freebsd* | dragonfly*)
17808 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17809 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17810 hardcode_direct_GCJ=yes
17811 hardcode_shlibpath_var_GCJ=no
17814 hpux9*)
17815 if test "$GCC" = yes; then
17816 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'
17817 else
17818 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'
17820 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17821 hardcode_libdir_separator_GCJ=:
17822 hardcode_direct_GCJ=yes
17824 # hardcode_minus_L: Not really in the search PATH,
17825 # but as the default location of the library.
17826 hardcode_minus_L_GCJ=yes
17827 export_dynamic_flag_spec_GCJ='${wl}-E'
17830 hpux10*)
17831 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17832 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17833 else
17834 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17836 if test "$with_gnu_ld" = no; then
17837 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17838 hardcode_libdir_separator_GCJ=:
17840 hardcode_direct_GCJ=yes
17841 export_dynamic_flag_spec_GCJ='${wl}-E'
17843 # hardcode_minus_L: Not really in the search PATH,
17844 # but as the default location of the library.
17845 hardcode_minus_L_GCJ=yes
17849 hpux11*)
17850 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17851 case $host_cpu in
17852 hppa*64*)
17853 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17855 ia64*)
17856 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17859 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17861 esac
17862 else
17863 case $host_cpu in
17864 hppa*64*)
17865 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17867 ia64*)
17868 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17871 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17873 esac
17875 if test "$with_gnu_ld" = no; then
17876 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17877 hardcode_libdir_separator_GCJ=:
17879 case $host_cpu in
17880 hppa*64*|ia64*)
17881 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
17882 hardcode_direct_GCJ=no
17883 hardcode_shlibpath_var_GCJ=no
17886 hardcode_direct_GCJ=yes
17887 export_dynamic_flag_spec_GCJ='${wl}-E'
17889 # hardcode_minus_L: Not really in the search PATH,
17890 # but as the default location of the library.
17891 hardcode_minus_L_GCJ=yes
17893 esac
17897 irix5* | irix6* | nonstopux*)
17898 if test "$GCC" = yes; then
17899 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'
17900 else
17901 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'
17902 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
17904 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17905 hardcode_libdir_separator_GCJ=:
17906 link_all_deplibs_GCJ=yes
17909 netbsd* | netbsdelf*-gnu)
17910 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17911 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
17912 else
17913 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
17915 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17916 hardcode_direct_GCJ=yes
17917 hardcode_shlibpath_var_GCJ=no
17920 newsos6)
17921 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17922 hardcode_direct_GCJ=yes
17923 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17924 hardcode_libdir_separator_GCJ=:
17925 hardcode_shlibpath_var_GCJ=no
17928 openbsd*)
17929 if test -f /usr/libexec/ld.so; then
17930 hardcode_direct_GCJ=yes
17931 hardcode_shlibpath_var_GCJ=no
17932 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17933 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17934 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17935 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17936 export_dynamic_flag_spec_GCJ='${wl}-E'
17937 else
17938 case $host_os in
17939 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17940 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17941 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17944 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17945 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17947 esac
17949 else
17950 ld_shlibs_GCJ=no
17954 os2*)
17955 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17956 hardcode_minus_L_GCJ=yes
17957 allow_undefined_flag_GCJ=unsupported
17958 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'
17959 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17962 osf3*)
17963 if test "$GCC" = yes; then
17964 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17965 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'
17966 else
17967 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17968 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'
17970 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17971 hardcode_libdir_separator_GCJ=:
17974 osf4* | osf5*) # as osf3* with the addition of -msym flag
17975 if test "$GCC" = yes; then
17976 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17977 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'
17978 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17979 else
17980 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17981 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'
17982 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~
17983 $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'
17985 # Both c and cxx compiler support -rpath directly
17986 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
17988 hardcode_libdir_separator_GCJ=:
17991 solaris*)
17992 no_undefined_flag_GCJ=' -z text'
17993 if test "$GCC" = yes; then
17994 wlarc='${wl}'
17995 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17996 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17997 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
17998 else
17999 wlarc=''
18000 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
18001 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18002 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
18004 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18005 hardcode_shlibpath_var_GCJ=no
18006 case $host_os in
18007 solaris2.[0-5] | solaris2.[0-5].*) ;;
18009 # The compiler driver will combine and reorder linker options,
18010 # but understands `-z linker_flag'. GCC discards it without `$wl',
18011 # but is careful enough not to reorder.
18012 # Supported since Solaris 2.6 (maybe 2.5.1?)
18013 if test "$GCC" = yes; then
18014 whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
18015 else
18016 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract'
18019 esac
18020 link_all_deplibs_GCJ=yes
18023 sunos4*)
18024 if test "x$host_vendor" = xsequent; then
18025 # Use $CC to link under sequent, because it throws in some extra .o
18026 # files that make .init and .fini sections work.
18027 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
18028 else
18029 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
18031 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18032 hardcode_direct_GCJ=yes
18033 hardcode_minus_L_GCJ=yes
18034 hardcode_shlibpath_var_GCJ=no
18037 sysv4)
18038 case $host_vendor in
18039 sni)
18040 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18041 hardcode_direct_GCJ=yes # is this really true???
18043 siemens)
18044 ## LD is ld it makes a PLAMLIB
18045 ## CC just makes a GrossModule.
18046 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18047 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
18048 hardcode_direct_GCJ=no
18050 motorola)
18051 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18052 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
18054 esac
18055 runpath_var='LD_RUN_PATH'
18056 hardcode_shlibpath_var_GCJ=no
18059 sysv4.3*)
18060 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18061 hardcode_shlibpath_var_GCJ=no
18062 export_dynamic_flag_spec_GCJ='-Bexport'
18065 sysv4*MP*)
18066 if test -d /usr/nec; then
18067 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18068 hardcode_shlibpath_var_GCJ=no
18069 runpath_var=LD_RUN_PATH
18070 hardcode_runpath_var=yes
18071 ld_shlibs_GCJ=yes
18075 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
18076 no_undefined_flag_GCJ='${wl}-z,text'
18077 archive_cmds_need_lc_GCJ=no
18078 hardcode_shlibpath_var_GCJ=no
18079 runpath_var='LD_RUN_PATH'
18081 if test "$GCC" = yes; then
18082 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18083 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18084 else
18085 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18086 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18090 sysv5* | sco3.2v5* | sco5v6*)
18091 # Note: We can NOT use -z defs as we might desire, because we do not
18092 # link with -lc, and that would cause any symbols used from libc to
18093 # always be unresolved, which means just about no library would
18094 # ever link correctly. If we're not using GNU ld we use -z text
18095 # though, which does catch some bad symbols but isn't as heavy-handed
18096 # as -z defs.
18097 no_undefined_flag_GCJ='${wl}-z,text'
18098 allow_undefined_flag_GCJ='${wl}-z,nodefs'
18099 archive_cmds_need_lc_GCJ=no
18100 hardcode_shlibpath_var_GCJ=no
18101 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
18102 hardcode_libdir_separator_GCJ=':'
18103 link_all_deplibs_GCJ=yes
18104 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
18105 runpath_var='LD_RUN_PATH'
18107 if test "$GCC" = yes; then
18108 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18109 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18110 else
18111 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18112 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18116 uts4*)
18117 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18118 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18119 hardcode_shlibpath_var_GCJ=no
18123 ld_shlibs_GCJ=no
18125 esac
18128 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
18129 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
18130 test "$ld_shlibs_GCJ" = no && can_build_shared=no
18133 # Do we need to explicitly link libc?
18135 case "x$archive_cmds_need_lc_GCJ" in
18136 x|xyes)
18137 # Assume -lc should be added
18138 archive_cmds_need_lc_GCJ=yes
18140 if test "$enable_shared" = yes && test "$GCC" = yes; then
18141 case $archive_cmds_GCJ in
18142 *'~'*)
18143 # FIXME: we may have to deal with multi-command sequences.
18145 '$CC '*)
18146 # Test whether the compiler implicitly links with -lc since on some
18147 # systems, -lgcc has to come before -lc. If gcc already passes -lc
18148 # to ld, don't add -lc before -lgcc.
18149 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
18150 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
18151 $rm conftest*
18152 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18154 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18155 (eval $ac_compile) 2>&5
18156 ac_status=$?
18157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18158 (exit $ac_status); } 2>conftest.err; then
18159 soname=conftest
18160 lib=conftest
18161 libobjs=conftest.$ac_objext
18162 deplibs=
18163 wl=$lt_prog_compiler_wl_GCJ
18164 pic_flag=$lt_prog_compiler_pic_GCJ
18165 compiler_flags=-v
18166 linker_flags=-v
18167 verstring=
18168 output_objdir=.
18169 libname=conftest
18170 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
18171 allow_undefined_flag_GCJ=
18172 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
18173 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
18174 ac_status=$?
18175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18176 (exit $ac_status); }
18177 then
18178 archive_cmds_need_lc_GCJ=no
18179 else
18180 archive_cmds_need_lc_GCJ=yes
18182 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
18183 else
18184 cat conftest.err 1>&5
18186 $rm conftest*
18187 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
18188 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
18190 esac
18193 esac
18195 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
18196 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
18197 library_names_spec=
18198 libname_spec='lib$name'
18199 soname_spec=
18200 shrext_cmds=".so"
18201 postinstall_cmds=
18202 postuninstall_cmds=
18203 finish_cmds=
18204 finish_eval=
18205 shlibpath_var=
18206 shlibpath_overrides_runpath=unknown
18207 version_type=none
18208 dynamic_linker="$host_os ld.so"
18209 sys_lib_dlsearch_path_spec="/lib /usr/lib"
18211 need_lib_prefix=unknown
18212 hardcode_into_libs=no
18214 # when you set need_version to no, make sure it does not cause -set_version
18215 # flags to be left without arguments
18216 need_version=unknown
18218 case $host_os in
18219 aix3*)
18220 version_type=linux
18221 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18222 shlibpath_var=LIBPATH
18224 # AIX 3 has no versioning support, so we append a major version to the name.
18225 soname_spec='${libname}${release}${shared_ext}$major'
18228 aix[4-9]*)
18229 version_type=linux
18230 need_lib_prefix=no
18231 need_version=no
18232 hardcode_into_libs=yes
18233 if test "$host_cpu" = ia64; then
18234 # AIX 5 supports IA64
18235 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18236 shlibpath_var=LD_LIBRARY_PATH
18237 else
18238 # With GCC up to 2.95.x, collect2 would create an import file
18239 # for dependence libraries. The import file would start with
18240 # the line `#! .'. This would cause the generated library to
18241 # depend on `.', always an invalid library. This was fixed in
18242 # development snapshots of GCC prior to 3.0.
18243 case $host_os in
18244 aix4 | aix4.[01] | aix4.[01].*)
18245 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18246 echo ' yes '
18247 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
18249 else
18250 can_build_shared=no
18253 esac
18254 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18255 # soname into executable. Probably we can add versioning support to
18256 # collect2, so additional links can be useful in future.
18257 if test "$aix_use_runtimelinking" = yes; then
18258 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18259 # instead of lib<name>.a to let people know that these are not
18260 # typical AIX shared libraries.
18261 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18262 else
18263 # We preserve .a as extension for shared libraries through AIX4.2
18264 # and later when we are not doing run time linking.
18265 library_names_spec='${libname}${release}.a $libname.a'
18266 soname_spec='${libname}${release}${shared_ext}$major'
18268 shlibpath_var=LIBPATH
18272 amigaos*)
18273 library_names_spec='$libname.ixlibrary $libname.a'
18274 # Create ${libname}_ixlibrary.a entries in /sys/libs.
18275 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'
18278 beos*)
18279 library_names_spec='${libname}${shared_ext}'
18280 dynamic_linker="$host_os ld.so"
18281 shlibpath_var=LIBRARY_PATH
18284 bsdi[45]*)
18285 version_type=linux
18286 need_version=no
18287 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18288 soname_spec='${libname}${release}${shared_ext}$major'
18289 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18290 shlibpath_var=LD_LIBRARY_PATH
18291 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18292 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18293 # the default ld.so.conf also contains /usr/contrib/lib and
18294 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18295 # libtool to hard-code these into programs
18298 cygwin* | mingw* | pw32*)
18299 version_type=windows
18300 shrext_cmds=".dll"
18301 need_version=no
18302 need_lib_prefix=no
18304 case $GCC,$host_os in
18305 yes,cygwin* | yes,mingw* | yes,pw32*)
18306 library_names_spec='$libname.dll.a'
18307 # DLL is installed to $(libdir)/../bin by postinstall_cmds
18308 postinstall_cmds='base_file=`basename \${file}`~
18309 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
18310 dldir=$destdir/`dirname \$dlpath`~
18311 test -d \$dldir || mkdir -p \$dldir~
18312 $install_prog $dir/$dlname \$dldir/$dlname~
18313 chmod a+x \$dldir/$dlname'
18314 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18315 dlpath=$dir/\$dldll~
18316 $rm \$dlpath'
18317 shlibpath_overrides_runpath=yes
18319 case $host_os in
18320 cygwin*)
18321 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18322 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18323 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
18325 mingw*)
18326 # MinGW DLLs use traditional 'lib' prefix
18327 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18328 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18329 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
18330 # It is most probably a Windows format PATH printed by
18331 # mingw gcc, but we are running on Cygwin. Gcc prints its search
18332 # path with ; separators, and with drive letters. We can handle the
18333 # drive letters (cygwin fileutils understands them), so leave them,
18334 # especially as we might pass files found there to a mingw objdump,
18335 # which wouldn't understand a cygwinified path. Ahh.
18336 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18337 else
18338 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18341 pw32*)
18342 # pw32 DLLs use 'pw' prefix rather than 'lib'
18343 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18345 esac
18349 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18351 esac
18352 dynamic_linker='Win32 ld.exe'
18353 # FIXME: first we should search . and the directory the executable is in
18354 shlibpath_var=PATH
18357 darwin* | rhapsody*)
18358 dynamic_linker="$host_os dyld"
18359 version_type=darwin
18360 need_lib_prefix=no
18361 need_version=no
18362 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18363 soname_spec='${libname}${release}${major}$shared_ext'
18364 shlibpath_overrides_runpath=yes
18365 shlibpath_var=DYLD_LIBRARY_PATH
18366 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18368 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18371 dgux*)
18372 version_type=linux
18373 need_lib_prefix=no
18374 need_version=no
18375 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18376 soname_spec='${libname}${release}${shared_ext}$major'
18377 shlibpath_var=LD_LIBRARY_PATH
18380 freebsd1*)
18381 dynamic_linker=no
18384 freebsd* | dragonfly*)
18385 # DragonFly does not have aout. When/if they implement a new
18386 # versioning mechanism, adjust this.
18387 if test -x /usr/bin/objformat; then
18388 objformat=`/usr/bin/objformat`
18389 else
18390 case $host_os in
18391 freebsd[123]*) objformat=aout ;;
18392 *) objformat=elf ;;
18393 esac
18395 version_type=freebsd-$objformat
18396 case $version_type in
18397 freebsd-elf*)
18398 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18399 need_version=no
18400 need_lib_prefix=no
18402 freebsd-*)
18403 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18404 need_version=yes
18406 esac
18407 shlibpath_var=LD_LIBRARY_PATH
18408 case $host_os in
18409 freebsd2*)
18410 shlibpath_overrides_runpath=yes
18412 freebsd3.[01]* | freebsdelf3.[01]*)
18413 shlibpath_overrides_runpath=yes
18414 hardcode_into_libs=yes
18416 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18417 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18418 shlibpath_overrides_runpath=no
18419 hardcode_into_libs=yes
18421 *) # from 4.6 on, and DragonFly
18422 shlibpath_overrides_runpath=yes
18423 hardcode_into_libs=yes
18425 esac
18428 gnu*)
18429 version_type=linux
18430 need_lib_prefix=no
18431 need_version=no
18432 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18433 soname_spec='${libname}${release}${shared_ext}$major'
18434 shlibpath_var=LD_LIBRARY_PATH
18435 hardcode_into_libs=yes
18438 hpux9* | hpux10* | hpux11*)
18439 # Give a soname corresponding to the major version so that dld.sl refuses to
18440 # link against other versions.
18441 version_type=sunos
18442 need_lib_prefix=no
18443 need_version=no
18444 case $host_cpu in
18445 ia64*)
18446 shrext_cmds='.so'
18447 hardcode_into_libs=yes
18448 dynamic_linker="$host_os dld.so"
18449 shlibpath_var=LD_LIBRARY_PATH
18450 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18451 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18452 soname_spec='${libname}${release}${shared_ext}$major'
18453 if test "X$HPUX_IA64_MODE" = X32; then
18454 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18455 else
18456 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18458 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18460 hppa*64*)
18461 shrext_cmds='.sl'
18462 hardcode_into_libs=yes
18463 dynamic_linker="$host_os dld.sl"
18464 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18465 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18466 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18467 soname_spec='${libname}${release}${shared_ext}$major'
18468 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18469 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18472 shrext_cmds='.sl'
18473 dynamic_linker="$host_os dld.sl"
18474 shlibpath_var=SHLIB_PATH
18475 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18476 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18477 soname_spec='${libname}${release}${shared_ext}$major'
18479 esac
18480 # HP-UX runs *really* slowly unless shared libraries are mode 555.
18481 postinstall_cmds='chmod 555 $lib'
18484 interix[3-9]*)
18485 version_type=linux
18486 need_lib_prefix=no
18487 need_version=no
18488 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18489 soname_spec='${libname}${release}${shared_ext}$major'
18490 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18491 shlibpath_var=LD_LIBRARY_PATH
18492 shlibpath_overrides_runpath=no
18493 hardcode_into_libs=yes
18496 irix5* | irix6* | nonstopux*)
18497 case $host_os in
18498 nonstopux*) version_type=nonstopux ;;
18500 if test "$lt_cv_prog_gnu_ld" = yes; then
18501 version_type=linux
18502 else
18503 version_type=irix
18504 fi ;;
18505 esac
18506 need_lib_prefix=no
18507 need_version=no
18508 soname_spec='${libname}${release}${shared_ext}$major'
18509 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18510 case $host_os in
18511 irix5* | nonstopux*)
18512 libsuff= shlibsuff=
18515 case $LD in # libtool.m4 will add one of these switches to LD
18516 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18517 libsuff= shlibsuff= libmagic=32-bit;;
18518 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18519 libsuff=32 shlibsuff=N32 libmagic=N32;;
18520 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18521 libsuff=64 shlibsuff=64 libmagic=64-bit;;
18522 *) libsuff= shlibsuff= libmagic=never-match;;
18523 esac
18525 esac
18526 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18527 shlibpath_overrides_runpath=no
18528 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18529 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18530 hardcode_into_libs=yes
18533 # No shared lib support for Linux oldld, aout, or coff.
18534 linux*oldld* | linux*aout* | linux*coff*)
18535 dynamic_linker=no
18538 # This must be Linux ELF.
18539 linux* | k*bsd*-gnu)
18540 version_type=linux
18541 need_lib_prefix=no
18542 need_version=no
18543 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18544 soname_spec='${libname}${release}${shared_ext}$major'
18545 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18546 shlibpath_var=LD_LIBRARY_PATH
18547 shlibpath_overrides_runpath=no
18548 # This implies no fast_install, which is unacceptable.
18549 # Some rework will be needed to allow for fast_install
18550 # before this can be enabled.
18551 hardcode_into_libs=yes
18553 # Append ld.so.conf contents to the search path
18554 if test -f /etc/ld.so.conf; then
18555 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
18556 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18559 # We used to test for /lib/ld.so.1 and disable shared libraries on
18560 # powerpc, because MkLinux only supported shared libraries with the
18561 # GNU dynamic linker. Since this was broken with cross compilers,
18562 # most powerpc-linux boxes support dynamic linking these days and
18563 # people can always --disable-shared, the test was removed, and we
18564 # assume the GNU/Linux dynamic linker is in use.
18565 dynamic_linker='GNU/Linux ld.so'
18568 netbsdelf*-gnu)
18569 version_type=linux
18570 need_lib_prefix=no
18571 need_version=no
18572 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18573 soname_spec='${libname}${release}${shared_ext}$major'
18574 shlibpath_var=LD_LIBRARY_PATH
18575 shlibpath_overrides_runpath=no
18576 hardcode_into_libs=yes
18577 dynamic_linker='NetBSD ld.elf_so'
18580 netbsd*)
18581 version_type=sunos
18582 need_lib_prefix=no
18583 need_version=no
18584 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18585 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18586 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18587 dynamic_linker='NetBSD (a.out) ld.so'
18588 else
18589 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18590 soname_spec='${libname}${release}${shared_ext}$major'
18591 dynamic_linker='NetBSD ld.elf_so'
18593 shlibpath_var=LD_LIBRARY_PATH
18594 shlibpath_overrides_runpath=yes
18595 hardcode_into_libs=yes
18598 newsos6)
18599 version_type=linux
18600 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18601 shlibpath_var=LD_LIBRARY_PATH
18602 shlibpath_overrides_runpath=yes
18605 nto-qnx*)
18606 version_type=linux
18607 need_lib_prefix=no
18608 need_version=no
18609 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18610 soname_spec='${libname}${release}${shared_ext}$major'
18611 shlibpath_var=LD_LIBRARY_PATH
18612 shlibpath_overrides_runpath=yes
18615 openbsd*)
18616 version_type=sunos
18617 sys_lib_dlsearch_path_spec="/usr/lib"
18618 need_lib_prefix=no
18619 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18620 case $host_os in
18621 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18622 *) need_version=no ;;
18623 esac
18624 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18625 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18626 shlibpath_var=LD_LIBRARY_PATH
18627 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18628 case $host_os in
18629 openbsd2.[89] | openbsd2.[89].*)
18630 shlibpath_overrides_runpath=no
18633 shlibpath_overrides_runpath=yes
18635 esac
18636 else
18637 shlibpath_overrides_runpath=yes
18641 os2*)
18642 libname_spec='$name'
18643 shrext_cmds=".dll"
18644 need_lib_prefix=no
18645 library_names_spec='$libname${shared_ext} $libname.a'
18646 dynamic_linker='OS/2 ld.exe'
18647 shlibpath_var=LIBPATH
18650 osf3* | osf4* | osf5*)
18651 version_type=osf
18652 need_lib_prefix=no
18653 need_version=no
18654 soname_spec='${libname}${release}${shared_ext}$major'
18655 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18656 shlibpath_var=LD_LIBRARY_PATH
18657 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18658 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18661 rdos*)
18662 dynamic_linker=no
18665 solaris*)
18666 version_type=linux
18667 need_lib_prefix=no
18668 need_version=no
18669 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18670 soname_spec='${libname}${release}${shared_ext}$major'
18671 shlibpath_var=LD_LIBRARY_PATH
18672 shlibpath_overrides_runpath=yes
18673 hardcode_into_libs=yes
18674 # ldd complains unless libraries are executable
18675 postinstall_cmds='chmod +x $lib'
18678 sunos4*)
18679 version_type=sunos
18680 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18681 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18682 shlibpath_var=LD_LIBRARY_PATH
18683 shlibpath_overrides_runpath=yes
18684 if test "$with_gnu_ld" = yes; then
18685 need_lib_prefix=no
18687 need_version=yes
18690 sysv4 | sysv4.3*)
18691 version_type=linux
18692 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18693 soname_spec='${libname}${release}${shared_ext}$major'
18694 shlibpath_var=LD_LIBRARY_PATH
18695 case $host_vendor in
18696 sni)
18697 shlibpath_overrides_runpath=no
18698 need_lib_prefix=no
18699 export_dynamic_flag_spec='${wl}-Blargedynsym'
18700 runpath_var=LD_RUN_PATH
18702 siemens)
18703 need_lib_prefix=no
18705 motorola)
18706 need_lib_prefix=no
18707 need_version=no
18708 shlibpath_overrides_runpath=no
18709 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18711 esac
18714 sysv4*MP*)
18715 if test -d /usr/nec ;then
18716 version_type=linux
18717 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18718 soname_spec='$libname${shared_ext}.$major'
18719 shlibpath_var=LD_LIBRARY_PATH
18723 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18724 version_type=freebsd-elf
18725 need_lib_prefix=no
18726 need_version=no
18727 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18728 soname_spec='${libname}${release}${shared_ext}$major'
18729 shlibpath_var=LD_LIBRARY_PATH
18730 hardcode_into_libs=yes
18731 if test "$with_gnu_ld" = yes; then
18732 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18733 shlibpath_overrides_runpath=no
18734 else
18735 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18736 shlibpath_overrides_runpath=yes
18737 case $host_os in
18738 sco3.2v5*)
18739 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18741 esac
18743 sys_lib_dlsearch_path_spec='/usr/lib'
18746 uts4*)
18747 version_type=linux
18748 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18749 soname_spec='${libname}${release}${shared_ext}$major'
18750 shlibpath_var=LD_LIBRARY_PATH
18754 dynamic_linker=no
18756 esac
18757 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18758 echo "${ECHO_T}$dynamic_linker" >&6; }
18759 test "$dynamic_linker" = no && can_build_shared=no
18761 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
18762 echo $ECHO_N "(cached) $ECHO_C" >&6
18763 else
18764 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
18767 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
18768 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
18769 echo $ECHO_N "(cached) $ECHO_C" >&6
18770 else
18771 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
18774 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
18776 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18777 if test "$GCC" = yes; then
18778 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18781 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18782 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
18783 hardcode_action_GCJ=
18784 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
18785 test -n "$runpath_var_GCJ" || \
18786 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
18788 # We can hardcode non-existant directories.
18789 if test "$hardcode_direct_GCJ" != no &&
18790 # If the only mechanism to avoid hardcoding is shlibpath_var, we
18791 # have to relink, otherwise we might link with an installed library
18792 # when we should be linking with a yet-to-be-installed one
18793 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18794 test "$hardcode_minus_L_GCJ" != no; then
18795 # Linking always hardcodes the temporary library directory.
18796 hardcode_action_GCJ=relink
18797 else
18798 # We can link without hardcoding, and we can hardcode nonexisting dirs.
18799 hardcode_action_GCJ=immediate
18801 else
18802 # We cannot hardcode anything, or else we can only hardcode existing
18803 # directories.
18804 hardcode_action_GCJ=unsupported
18806 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
18807 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
18809 if test "$hardcode_action_GCJ" = relink; then
18810 # Fast installation is not supported
18811 enable_fast_install=no
18812 elif test "$shlibpath_overrides_runpath" = yes ||
18813 test "$enable_shared" = no; then
18814 # Fast installation is not necessary
18815 enable_fast_install=needless
18819 # The else clause should only fire when bootstrapping the
18820 # libtool distribution, otherwise you forgot to ship ltmain.sh
18821 # with your package, and you will get complaints that there are
18822 # no rules to generate ltmain.sh.
18823 if test -f "$ltmain"; then
18824 # See if we are running on zsh, and set the options which allow our commands through
18825 # without removal of \ escapes.
18826 if test -n "${ZSH_VERSION+set}" ; then
18827 setopt NO_GLOB_SUBST
18829 # Now quote all the things that may contain metacharacters while being
18830 # careful not to overquote the AC_SUBSTed values. We take copies of the
18831 # variables and quote the copies for generation of the libtool script.
18832 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18833 SED SHELL STRIP \
18834 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18835 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18836 deplibs_check_method reload_flag reload_cmds need_locks \
18837 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18838 lt_cv_sys_global_symbol_to_c_name_address \
18839 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18840 old_postinstall_cmds old_postuninstall_cmds \
18841 compiler_GCJ \
18842 CC_GCJ \
18843 LD_GCJ \
18844 lt_prog_compiler_wl_GCJ \
18845 lt_prog_compiler_pic_GCJ \
18846 lt_prog_compiler_static_GCJ \
18847 lt_prog_compiler_no_builtin_flag_GCJ \
18848 export_dynamic_flag_spec_GCJ \
18849 thread_safe_flag_spec_GCJ \
18850 whole_archive_flag_spec_GCJ \
18851 enable_shared_with_static_runtimes_GCJ \
18852 old_archive_cmds_GCJ \
18853 old_archive_from_new_cmds_GCJ \
18854 predep_objects_GCJ \
18855 postdep_objects_GCJ \
18856 predeps_GCJ \
18857 postdeps_GCJ \
18858 compiler_lib_search_path_GCJ \
18859 compiler_lib_search_dirs_GCJ \
18860 archive_cmds_GCJ \
18861 archive_expsym_cmds_GCJ \
18862 postinstall_cmds_GCJ \
18863 postuninstall_cmds_GCJ \
18864 old_archive_from_expsyms_cmds_GCJ \
18865 allow_undefined_flag_GCJ \
18866 no_undefined_flag_GCJ \
18867 export_symbols_cmds_GCJ \
18868 hardcode_libdir_flag_spec_GCJ \
18869 hardcode_libdir_flag_spec_ld_GCJ \
18870 hardcode_libdir_separator_GCJ \
18871 hardcode_automatic_GCJ \
18872 module_cmds_GCJ \
18873 module_expsym_cmds_GCJ \
18874 lt_cv_prog_compiler_c_o_GCJ \
18875 fix_srcfile_path_GCJ \
18876 exclude_expsyms_GCJ \
18877 include_expsyms_GCJ; do
18879 case $var in
18880 old_archive_cmds_GCJ | \
18881 old_archive_from_new_cmds_GCJ | \
18882 archive_cmds_GCJ | \
18883 archive_expsym_cmds_GCJ | \
18884 module_cmds_GCJ | \
18885 module_expsym_cmds_GCJ | \
18886 old_archive_from_expsyms_cmds_GCJ | \
18887 export_symbols_cmds_GCJ | \
18888 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18889 postinstall_cmds | postuninstall_cmds | \
18890 old_postinstall_cmds | old_postuninstall_cmds | \
18891 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18892 # Double-quote double-evaled strings.
18893 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18896 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18898 esac
18899 done
18901 case $lt_echo in
18902 *'\$0 --fallback-echo"')
18903 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18905 esac
18907 cfgfile="$ofile"
18909 cat <<__EOF__ >> "$cfgfile"
18910 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18912 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18914 # Shell to use when invoking shell scripts.
18915 SHELL=$lt_SHELL
18917 # Whether or not to build shared libraries.
18918 build_libtool_libs=$enable_shared
18920 # Whether or not to build static libraries.
18921 build_old_libs=$enable_static
18923 # Whether or not to add -lc for building shared libraries.
18924 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18926 # Whether or not to disallow shared libs when runtime libs are static
18927 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18929 # Whether or not to optimize for fast installation.
18930 fast_install=$enable_fast_install
18932 # The host system.
18933 host_alias=$host_alias
18934 host=$host
18935 host_os=$host_os
18937 # The build system.
18938 build_alias=$build_alias
18939 build=$build
18940 build_os=$build_os
18942 # An echo program that does not interpret backslashes.
18943 echo=$lt_echo
18945 # The archiver.
18946 AR=$lt_AR
18947 AR_FLAGS=$lt_AR_FLAGS
18949 # A C compiler.
18950 LTCC=$lt_LTCC
18952 # LTCC compiler flags.
18953 LTCFLAGS=$lt_LTCFLAGS
18955 # A language-specific compiler.
18956 CC=$lt_compiler_GCJ
18958 # Is the compiler the GNU C compiler?
18959 with_gcc=$GCC_GCJ
18961 # An ERE matcher.
18962 EGREP=$lt_EGREP
18964 # The linker used to build libraries.
18965 LD=$lt_LD_GCJ
18967 # Whether we need hard or soft links.
18968 LN_S=$lt_LN_S
18970 # A BSD-compatible nm program.
18971 NM=$lt_NM
18973 # A symbol stripping program
18974 STRIP=$lt_STRIP
18976 # Used to examine libraries when file_magic_cmd begins "file"
18977 MAGIC_CMD=$MAGIC_CMD
18979 # Used on cygwin: DLL creation program.
18980 DLLTOOL="$DLLTOOL"
18982 # Used on cygwin: object dumper.
18983 OBJDUMP="$OBJDUMP"
18985 # Used on cygwin: assembler.
18986 AS="$AS"
18988 # The name of the directory that contains temporary libtool files.
18989 objdir=$objdir
18991 # How to create reloadable object files.
18992 reload_flag=$lt_reload_flag
18993 reload_cmds=$lt_reload_cmds
18995 # How to pass a linker flag through the compiler.
18996 wl=$lt_lt_prog_compiler_wl_GCJ
18998 # Object file suffix (normally "o").
18999 objext="$ac_objext"
19001 # Old archive suffix (normally "a").
19002 libext="$libext"
19004 # Shared library suffix (normally ".so").
19005 shrext_cmds='$shrext_cmds'
19007 # Executable file suffix (normally "").
19008 exeext="$exeext"
19010 # Additional compiler flags for building library objects.
19011 pic_flag=$lt_lt_prog_compiler_pic_GCJ
19012 pic_mode=$pic_mode
19014 # What is the maximum length of a command?
19015 max_cmd_len=$lt_cv_sys_max_cmd_len
19017 # Does compiler simultaneously support -c and -o options?
19018 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
19020 # Must we lock files when doing compilation?
19021 need_locks=$lt_need_locks
19023 # Do we need the lib prefix for modules?
19024 need_lib_prefix=$need_lib_prefix
19026 # Do we need a version for libraries?
19027 need_version=$need_version
19029 # Whether dlopen is supported.
19030 dlopen_support=$enable_dlopen
19032 # Whether dlopen of programs is supported.
19033 dlopen_self=$enable_dlopen_self
19035 # Whether dlopen of statically linked programs is supported.
19036 dlopen_self_static=$enable_dlopen_self_static
19038 # Compiler flag to prevent dynamic linking.
19039 link_static_flag=$lt_lt_prog_compiler_static_GCJ
19041 # Compiler flag to turn off builtin functions.
19042 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
19044 # Compiler flag to allow reflexive dlopens.
19045 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
19047 # Compiler flag to generate shared objects directly from archives.
19048 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
19050 # Compiler flag to generate thread-safe objects.
19051 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
19053 # Library versioning type.
19054 version_type=$version_type
19056 # Format of library name prefix.
19057 libname_spec=$lt_libname_spec
19059 # List of archive names. First name is the real one, the rest are links.
19060 # The last name is the one that the linker finds with -lNAME.
19061 library_names_spec=$lt_library_names_spec
19063 # The coded name of the library, if different from the real name.
19064 soname_spec=$lt_soname_spec
19066 # Commands used to build and install an old-style archive.
19067 RANLIB=$lt_RANLIB
19068 old_archive_cmds=$lt_old_archive_cmds_GCJ
19069 old_postinstall_cmds=$lt_old_postinstall_cmds
19070 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19072 # Create an old-style archive from a shared archive.
19073 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
19075 # Create a temporary old-style archive to link instead of a shared archive.
19076 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
19078 # Commands used to build and install a shared archive.
19079 archive_cmds=$lt_archive_cmds_GCJ
19080 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
19081 postinstall_cmds=$lt_postinstall_cmds
19082 postuninstall_cmds=$lt_postuninstall_cmds
19084 # Commands used to build a loadable module (assumed same as above if empty)
19085 module_cmds=$lt_module_cmds_GCJ
19086 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
19088 # Commands to strip libraries.
19089 old_striplib=$lt_old_striplib
19090 striplib=$lt_striplib
19092 # Dependencies to place before the objects being linked to create a
19093 # shared library.
19094 predep_objects=$lt_predep_objects_GCJ
19096 # Dependencies to place after the objects being linked to create a
19097 # shared library.
19098 postdep_objects=$lt_postdep_objects_GCJ
19100 # Dependencies to place before the objects being linked to create a
19101 # shared library.
19102 predeps=$lt_predeps_GCJ
19104 # Dependencies to place after the objects being linked to create a
19105 # shared library.
19106 postdeps=$lt_postdeps_GCJ
19108 # The directories searched by this compiler when creating a shared
19109 # library
19110 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_GCJ
19112 # The library search path used internally by the compiler when linking
19113 # a shared library.
19114 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
19116 # Method to check whether dependent libraries are shared objects.
19117 deplibs_check_method=$lt_deplibs_check_method
19119 # Command to use when deplibs_check_method == file_magic.
19120 file_magic_cmd=$lt_file_magic_cmd
19122 # Flag that allows shared libraries with undefined symbols to be built.
19123 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
19125 # Flag that forces no undefined symbols.
19126 no_undefined_flag=$lt_no_undefined_flag_GCJ
19128 # Commands used to finish a libtool library installation in a directory.
19129 finish_cmds=$lt_finish_cmds
19131 # Same as above, but a single script fragment to be evaled but not shown.
19132 finish_eval=$lt_finish_eval
19134 # Take the output of nm and produce a listing of raw symbols and C names.
19135 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19137 # Transform the output of nm in a proper C declaration
19138 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19140 # Transform the output of nm in a C name address pair
19141 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19143 # This is the shared library runtime path variable.
19144 runpath_var=$runpath_var
19146 # This is the shared library path variable.
19147 shlibpath_var=$shlibpath_var
19149 # Is shlibpath searched before the hard-coded library search path?
19150 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19152 # How to hardcode a shared library path into an executable.
19153 hardcode_action=$hardcode_action_GCJ
19155 # Whether we should hardcode library paths into libraries.
19156 hardcode_into_libs=$hardcode_into_libs
19158 # Flag to hardcode \$libdir into a binary during linking.
19159 # This must work even if \$libdir does not exist.
19160 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
19162 # If ld is used when linking, flag to hardcode \$libdir into
19163 # a binary during linking. This must work even if \$libdir does
19164 # not exist.
19165 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
19167 # Whether we need a single -rpath flag with a separated argument.
19168 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
19170 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19171 # resulting binary.
19172 hardcode_direct=$hardcode_direct_GCJ
19174 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19175 # resulting binary.
19176 hardcode_minus_L=$hardcode_minus_L_GCJ
19178 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19179 # the resulting binary.
19180 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
19182 # Set to yes if building a shared library automatically hardcodes DIR into the library
19183 # and all subsequent libraries and executables linked against it.
19184 hardcode_automatic=$hardcode_automatic_GCJ
19186 # Variables whose values should be saved in libtool wrapper scripts and
19187 # restored at relink time.
19188 variables_saved_for_relink="$variables_saved_for_relink"
19190 # Whether libtool must link a program against all its dependency libraries.
19191 link_all_deplibs=$link_all_deplibs_GCJ
19193 # Compile-time system search path for libraries
19194 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19196 # Run-time system search path for libraries
19197 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19199 # Fix the shell variable \$srcfile for the compiler.
19200 fix_srcfile_path=$lt_fix_srcfile_path
19202 # Set to yes if exported symbols are required.
19203 always_export_symbols=$always_export_symbols_GCJ
19205 # The commands to list exported symbols.
19206 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
19208 # The commands to extract the exported symbol list from a shared archive.
19209 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19211 # Symbols that should not be listed in the preloaded symbols.
19212 exclude_expsyms=$lt_exclude_expsyms_GCJ
19214 # Symbols that must always be exported.
19215 include_expsyms=$lt_include_expsyms_GCJ
19217 # ### END LIBTOOL TAG CONFIG: $tagname
19219 __EOF__
19222 else
19223 # If there is no Makefile yet, we rely on a make rule to execute
19224 # `config.status --recheck' to rerun these tests and create the
19225 # libtool script then.
19226 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19227 if test -f "$ltmain_in"; then
19228 test -f Makefile && make "$ltmain"
19233 ac_ext=c
19234 ac_cpp='$CPP $CPPFLAGS'
19235 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19236 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19237 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19239 CC="$lt_save_CC"
19241 else
19242 tagname=""
19249 # Source file extension for RC test sources.
19250 ac_ext=rc
19252 # Object file extension for compiled RC test sources.
19253 objext=o
19254 objext_RC=$objext
19256 # Code to be used in simple compile tests
19257 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
19259 # Code to be used in simple link tests
19260 lt_simple_link_test_code="$lt_simple_compile_test_code"
19262 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
19264 # If no C compiler was specified, use CC.
19265 LTCC=${LTCC-"$CC"}
19267 # If no C compiler flags were specified, use CFLAGS.
19268 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
19270 # Allow CC to be a program name with arguments.
19271 compiler=$CC
19274 # save warnings/boilerplate of simple test code
19275 ac_outfile=conftest.$ac_objext
19276 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
19277 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19278 _lt_compiler_boilerplate=`cat conftest.err`
19279 $rm conftest*
19281 ac_outfile=conftest.$ac_objext
19282 echo "$lt_simple_link_test_code" >conftest.$ac_ext
19283 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19284 _lt_linker_boilerplate=`cat conftest.err`
19285 $rm -r conftest*
19288 # Allow CC to be a program name with arguments.
19289 lt_save_CC="$CC"
19290 CC=${RC-"windres"}
19291 compiler=$CC
19292 compiler_RC=$CC
19293 for cc_temp in $compiler""; do
19294 case $cc_temp in
19295 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19296 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19297 \-*) ;;
19298 *) break;;
19299 esac
19300 done
19301 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
19303 lt_cv_prog_compiler_c_o_RC=yes
19305 # The else clause should only fire when bootstrapping the
19306 # libtool distribution, otherwise you forgot to ship ltmain.sh
19307 # with your package, and you will get complaints that there are
19308 # no rules to generate ltmain.sh.
19309 if test -f "$ltmain"; then
19310 # See if we are running on zsh, and set the options which allow our commands through
19311 # without removal of \ escapes.
19312 if test -n "${ZSH_VERSION+set}" ; then
19313 setopt NO_GLOB_SUBST
19315 # Now quote all the things that may contain metacharacters while being
19316 # careful not to overquote the AC_SUBSTed values. We take copies of the
19317 # variables and quote the copies for generation of the libtool script.
19318 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19319 SED SHELL STRIP \
19320 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19321 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19322 deplibs_check_method reload_flag reload_cmds need_locks \
19323 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19324 lt_cv_sys_global_symbol_to_c_name_address \
19325 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19326 old_postinstall_cmds old_postuninstall_cmds \
19327 compiler_RC \
19328 CC_RC \
19329 LD_RC \
19330 lt_prog_compiler_wl_RC \
19331 lt_prog_compiler_pic_RC \
19332 lt_prog_compiler_static_RC \
19333 lt_prog_compiler_no_builtin_flag_RC \
19334 export_dynamic_flag_spec_RC \
19335 thread_safe_flag_spec_RC \
19336 whole_archive_flag_spec_RC \
19337 enable_shared_with_static_runtimes_RC \
19338 old_archive_cmds_RC \
19339 old_archive_from_new_cmds_RC \
19340 predep_objects_RC \
19341 postdep_objects_RC \
19342 predeps_RC \
19343 postdeps_RC \
19344 compiler_lib_search_path_RC \
19345 compiler_lib_search_dirs_RC \
19346 archive_cmds_RC \
19347 archive_expsym_cmds_RC \
19348 postinstall_cmds_RC \
19349 postuninstall_cmds_RC \
19350 old_archive_from_expsyms_cmds_RC \
19351 allow_undefined_flag_RC \
19352 no_undefined_flag_RC \
19353 export_symbols_cmds_RC \
19354 hardcode_libdir_flag_spec_RC \
19355 hardcode_libdir_flag_spec_ld_RC \
19356 hardcode_libdir_separator_RC \
19357 hardcode_automatic_RC \
19358 module_cmds_RC \
19359 module_expsym_cmds_RC \
19360 lt_cv_prog_compiler_c_o_RC \
19361 fix_srcfile_path_RC \
19362 exclude_expsyms_RC \
19363 include_expsyms_RC; do
19365 case $var in
19366 old_archive_cmds_RC | \
19367 old_archive_from_new_cmds_RC | \
19368 archive_cmds_RC | \
19369 archive_expsym_cmds_RC | \
19370 module_cmds_RC | \
19371 module_expsym_cmds_RC | \
19372 old_archive_from_expsyms_cmds_RC | \
19373 export_symbols_cmds_RC | \
19374 extract_expsyms_cmds | reload_cmds | finish_cmds | \
19375 postinstall_cmds | postuninstall_cmds | \
19376 old_postinstall_cmds | old_postuninstall_cmds | \
19377 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19378 # Double-quote double-evaled strings.
19379 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19382 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19384 esac
19385 done
19387 case $lt_echo in
19388 *'\$0 --fallback-echo"')
19389 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19391 esac
19393 cfgfile="$ofile"
19395 cat <<__EOF__ >> "$cfgfile"
19396 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19398 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19400 # Shell to use when invoking shell scripts.
19401 SHELL=$lt_SHELL
19403 # Whether or not to build shared libraries.
19404 build_libtool_libs=$enable_shared
19406 # Whether or not to build static libraries.
19407 build_old_libs=$enable_static
19409 # Whether or not to add -lc for building shared libraries.
19410 build_libtool_need_lc=$archive_cmds_need_lc_RC
19412 # Whether or not to disallow shared libs when runtime libs are static
19413 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19415 # Whether or not to optimize for fast installation.
19416 fast_install=$enable_fast_install
19418 # The host system.
19419 host_alias=$host_alias
19420 host=$host
19421 host_os=$host_os
19423 # The build system.
19424 build_alias=$build_alias
19425 build=$build
19426 build_os=$build_os
19428 # An echo program that does not interpret backslashes.
19429 echo=$lt_echo
19431 # The archiver.
19432 AR=$lt_AR
19433 AR_FLAGS=$lt_AR_FLAGS
19435 # A C compiler.
19436 LTCC=$lt_LTCC
19438 # LTCC compiler flags.
19439 LTCFLAGS=$lt_LTCFLAGS
19441 # A language-specific compiler.
19442 CC=$lt_compiler_RC
19444 # Is the compiler the GNU C compiler?
19445 with_gcc=$GCC_RC
19447 # An ERE matcher.
19448 EGREP=$lt_EGREP
19450 # The linker used to build libraries.
19451 LD=$lt_LD_RC
19453 # Whether we need hard or soft links.
19454 LN_S=$lt_LN_S
19456 # A BSD-compatible nm program.
19457 NM=$lt_NM
19459 # A symbol stripping program
19460 STRIP=$lt_STRIP
19462 # Used to examine libraries when file_magic_cmd begins "file"
19463 MAGIC_CMD=$MAGIC_CMD
19465 # Used on cygwin: DLL creation program.
19466 DLLTOOL="$DLLTOOL"
19468 # Used on cygwin: object dumper.
19469 OBJDUMP="$OBJDUMP"
19471 # Used on cygwin: assembler.
19472 AS="$AS"
19474 # The name of the directory that contains temporary libtool files.
19475 objdir=$objdir
19477 # How to create reloadable object files.
19478 reload_flag=$lt_reload_flag
19479 reload_cmds=$lt_reload_cmds
19481 # How to pass a linker flag through the compiler.
19482 wl=$lt_lt_prog_compiler_wl_RC
19484 # Object file suffix (normally "o").
19485 objext="$ac_objext"
19487 # Old archive suffix (normally "a").
19488 libext="$libext"
19490 # Shared library suffix (normally ".so").
19491 shrext_cmds='$shrext_cmds'
19493 # Executable file suffix (normally "").
19494 exeext="$exeext"
19496 # Additional compiler flags for building library objects.
19497 pic_flag=$lt_lt_prog_compiler_pic_RC
19498 pic_mode=$pic_mode
19500 # What is the maximum length of a command?
19501 max_cmd_len=$lt_cv_sys_max_cmd_len
19503 # Does compiler simultaneously support -c and -o options?
19504 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19506 # Must we lock files when doing compilation?
19507 need_locks=$lt_need_locks
19509 # Do we need the lib prefix for modules?
19510 need_lib_prefix=$need_lib_prefix
19512 # Do we need a version for libraries?
19513 need_version=$need_version
19515 # Whether dlopen is supported.
19516 dlopen_support=$enable_dlopen
19518 # Whether dlopen of programs is supported.
19519 dlopen_self=$enable_dlopen_self
19521 # Whether dlopen of statically linked programs is supported.
19522 dlopen_self_static=$enable_dlopen_self_static
19524 # Compiler flag to prevent dynamic linking.
19525 link_static_flag=$lt_lt_prog_compiler_static_RC
19527 # Compiler flag to turn off builtin functions.
19528 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19530 # Compiler flag to allow reflexive dlopens.
19531 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19533 # Compiler flag to generate shared objects directly from archives.
19534 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19536 # Compiler flag to generate thread-safe objects.
19537 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19539 # Library versioning type.
19540 version_type=$version_type
19542 # Format of library name prefix.
19543 libname_spec=$lt_libname_spec
19545 # List of archive names. First name is the real one, the rest are links.
19546 # The last name is the one that the linker finds with -lNAME.
19547 library_names_spec=$lt_library_names_spec
19549 # The coded name of the library, if different from the real name.
19550 soname_spec=$lt_soname_spec
19552 # Commands used to build and install an old-style archive.
19553 RANLIB=$lt_RANLIB
19554 old_archive_cmds=$lt_old_archive_cmds_RC
19555 old_postinstall_cmds=$lt_old_postinstall_cmds
19556 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19558 # Create an old-style archive from a shared archive.
19559 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19561 # Create a temporary old-style archive to link instead of a shared archive.
19562 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19564 # Commands used to build and install a shared archive.
19565 archive_cmds=$lt_archive_cmds_RC
19566 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19567 postinstall_cmds=$lt_postinstall_cmds
19568 postuninstall_cmds=$lt_postuninstall_cmds
19570 # Commands used to build a loadable module (assumed same as above if empty)
19571 module_cmds=$lt_module_cmds_RC
19572 module_expsym_cmds=$lt_module_expsym_cmds_RC
19574 # Commands to strip libraries.
19575 old_striplib=$lt_old_striplib
19576 striplib=$lt_striplib
19578 # Dependencies to place before the objects being linked to create a
19579 # shared library.
19580 predep_objects=$lt_predep_objects_RC
19582 # Dependencies to place after the objects being linked to create a
19583 # shared library.
19584 postdep_objects=$lt_postdep_objects_RC
19586 # Dependencies to place before the objects being linked to create a
19587 # shared library.
19588 predeps=$lt_predeps_RC
19590 # Dependencies to place after the objects being linked to create a
19591 # shared library.
19592 postdeps=$lt_postdeps_RC
19594 # The directories searched by this compiler when creating a shared
19595 # library
19596 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_RC
19598 # The library search path used internally by the compiler when linking
19599 # a shared library.
19600 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19602 # Method to check whether dependent libraries are shared objects.
19603 deplibs_check_method=$lt_deplibs_check_method
19605 # Command to use when deplibs_check_method == file_magic.
19606 file_magic_cmd=$lt_file_magic_cmd
19608 # Flag that allows shared libraries with undefined symbols to be built.
19609 allow_undefined_flag=$lt_allow_undefined_flag_RC
19611 # Flag that forces no undefined symbols.
19612 no_undefined_flag=$lt_no_undefined_flag_RC
19614 # Commands used to finish a libtool library installation in a directory.
19615 finish_cmds=$lt_finish_cmds
19617 # Same as above, but a single script fragment to be evaled but not shown.
19618 finish_eval=$lt_finish_eval
19620 # Take the output of nm and produce a listing of raw symbols and C names.
19621 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19623 # Transform the output of nm in a proper C declaration
19624 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19626 # Transform the output of nm in a C name address pair
19627 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19629 # This is the shared library runtime path variable.
19630 runpath_var=$runpath_var
19632 # This is the shared library path variable.
19633 shlibpath_var=$shlibpath_var
19635 # Is shlibpath searched before the hard-coded library search path?
19636 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19638 # How to hardcode a shared library path into an executable.
19639 hardcode_action=$hardcode_action_RC
19641 # Whether we should hardcode library paths into libraries.
19642 hardcode_into_libs=$hardcode_into_libs
19644 # Flag to hardcode \$libdir into a binary during linking.
19645 # This must work even if \$libdir does not exist.
19646 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19648 # If ld is used when linking, flag to hardcode \$libdir into
19649 # a binary during linking. This must work even if \$libdir does
19650 # not exist.
19651 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19653 # Whether we need a single -rpath flag with a separated argument.
19654 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19656 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19657 # resulting binary.
19658 hardcode_direct=$hardcode_direct_RC
19660 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19661 # resulting binary.
19662 hardcode_minus_L=$hardcode_minus_L_RC
19664 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19665 # the resulting binary.
19666 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19668 # Set to yes if building a shared library automatically hardcodes DIR into the library
19669 # and all subsequent libraries and executables linked against it.
19670 hardcode_automatic=$hardcode_automatic_RC
19672 # Variables whose values should be saved in libtool wrapper scripts and
19673 # restored at relink time.
19674 variables_saved_for_relink="$variables_saved_for_relink"
19676 # Whether libtool must link a program against all its dependency libraries.
19677 link_all_deplibs=$link_all_deplibs_RC
19679 # Compile-time system search path for libraries
19680 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19682 # Run-time system search path for libraries
19683 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19685 # Fix the shell variable \$srcfile for the compiler.
19686 fix_srcfile_path=$lt_fix_srcfile_path
19688 # Set to yes if exported symbols are required.
19689 always_export_symbols=$always_export_symbols_RC
19691 # The commands to list exported symbols.
19692 export_symbols_cmds=$lt_export_symbols_cmds_RC
19694 # The commands to extract the exported symbol list from a shared archive.
19695 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19697 # Symbols that should not be listed in the preloaded symbols.
19698 exclude_expsyms=$lt_exclude_expsyms_RC
19700 # Symbols that must always be exported.
19701 include_expsyms=$lt_include_expsyms_RC
19703 # ### END LIBTOOL TAG CONFIG: $tagname
19705 __EOF__
19708 else
19709 # If there is no Makefile yet, we rely on a make rule to execute
19710 # `config.status --recheck' to rerun these tests and create the
19711 # libtool script then.
19712 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19713 if test -f "$ltmain_in"; then
19714 test -f Makefile && make "$ltmain"
19719 ac_ext=c
19720 ac_cpp='$CPP $CPPFLAGS'
19721 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19722 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19723 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19725 CC="$lt_save_CC"
19730 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19731 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19732 { (exit 1); exit 1; }; }
19734 esac
19736 # Append the new tag name to the list of available tags.
19737 if test -n "$tagname" ; then
19738 available_tags="$available_tags $tagname"
19741 done
19742 IFS="$lt_save_ifs"
19744 # Now substitute the updated list of available tags.
19745 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19746 mv "${ofile}T" "$ofile"
19747 chmod +x "$ofile"
19748 else
19749 rm -f "${ofile}T"
19750 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19751 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19752 { (exit 1); exit 1; }; }
19758 # This can be used to rebuild libtool when needed
19759 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19761 # Always use our own libtool.
19762 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19764 # Prevent multiple expansion
19785 if test "x$CC" != xcc; then
19786 { echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
19787 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6; }
19788 else
19789 { echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
19790 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6; }
19792 set dummy $CC; ac_cc=`echo $2 |
19793 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
19794 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then
19795 echo $ECHO_N "(cached) $ECHO_C" >&6
19796 else
19797 cat >conftest.$ac_ext <<_ACEOF
19798 /* confdefs.h. */
19799 _ACEOF
19800 cat confdefs.h >>conftest.$ac_ext
19801 cat >>conftest.$ac_ext <<_ACEOF
19802 /* end confdefs.h. */
19805 main ()
19809 return 0;
19811 _ACEOF
19812 # Make sure it works both with $CC and with simple cc.
19813 # We do the test twice because some compilers refuse to overwrite an
19814 # existing .o file with -o, though they will create one.
19815 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
19816 rm -f conftest2.*
19817 if { (case "(($ac_try" in
19818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19819 *) ac_try_echo=$ac_try;;
19820 esac
19821 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19822 (eval "$ac_try") 2>&5
19823 ac_status=$?
19824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19825 (exit $ac_status); } &&
19826 test -f conftest2.$ac_objext && { (case "(($ac_try" in
19827 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19828 *) ac_try_echo=$ac_try;;
19829 esac
19830 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19831 (eval "$ac_try") 2>&5
19832 ac_status=$?
19833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19834 (exit $ac_status); };
19835 then
19836 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
19837 if test "x$CC" != xcc; then
19838 # Test first that cc exists at all.
19839 if { ac_try='cc -c conftest.$ac_ext >&5'
19840 { (case "(($ac_try" in
19841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19842 *) ac_try_echo=$ac_try;;
19843 esac
19844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19845 (eval "$ac_try") 2>&5
19846 ac_status=$?
19847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19848 (exit $ac_status); }; }; then
19849 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
19850 rm -f conftest2.*
19851 if { (case "(($ac_try" in
19852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19853 *) ac_try_echo=$ac_try;;
19854 esac
19855 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19856 (eval "$ac_try") 2>&5
19857 ac_status=$?
19858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19859 (exit $ac_status); } &&
19860 test -f conftest2.$ac_objext && { (case "(($ac_try" in
19861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19862 *) ac_try_echo=$ac_try;;
19863 esac
19864 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19865 (eval "$ac_try") 2>&5
19866 ac_status=$?
19867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19868 (exit $ac_status); };
19869 then
19870 # cc works too.
19872 else
19873 # cc exists but doesn't like -o.
19874 eval ac_cv_prog_cc_${ac_cc}_c_o=no
19878 else
19879 eval ac_cv_prog_cc_${ac_cc}_c_o=no
19881 rm -f core conftest*
19884 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
19885 { echo "$as_me:$LINENO: result: yes" >&5
19886 echo "${ECHO_T}yes" >&6; }
19887 else
19888 { echo "$as_me:$LINENO: result: no" >&5
19889 echo "${ECHO_T}no" >&6; }
19891 cat >>confdefs.h <<\_ACEOF
19892 #define NO_MINUS_C_MINUS_O 1
19893 _ACEOF
19897 # FIXME: we rely on the cache variable name because
19898 # there is no other way.
19899 set dummy $CC
19900 ac_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
19901 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
19902 # Losing compiler, so override with the script.
19903 # FIXME: It is wrong to rewrite CC.
19904 # But if we don't then we get into trouble of one sort or another.
19905 # A longer-term fix would be to have automake use am__CC in this case,
19906 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
19907 CC="$am_aux_dir/compile $CC"
19912 ac_config_headers="$ac_config_headers config.h"
19916 cflags_save="$CFLAGS"
19917 if test -z "$GCC"; then
19918 case $host in
19919 *-*-irix*)
19920 DEBUG="-g -signed"
19921 CFLAGS="-O2 -w -signed"
19922 PROFILE="-p -g3 -O2 -signed"
19924 sparc-sun-solaris*)
19925 DEBUG="-v -g"
19926 CFLAGS="-xO4 -fast -w -fsimple -native -xcg92"
19927 PROFILE="-v -xpg -g -xO4 -fast -native -fsimple -xcg92 -Dsuncc"
19930 DEBUG="-g"
19931 CFLAGS="-O"
19932 PROFILE="-g -p"
19934 esac
19935 else
19936 case $host in
19937 *-*-linux*)
19938 DEBUG="-g -Wall -fsigned-char"
19939 CFLAGS="-O20 -ffast-math -fsigned-char"
19940 PROFILE="-Wall -W -pg -g -O20 -ffast-math -fsigned-char"
19942 sparc-sun-*)
19943 sparc_cpu=""
19944 { echo "$as_me:$LINENO: checking if gcc supports -mv8" >&5
19945 echo $ECHO_N "checking if gcc supports -mv8... $ECHO_C" >&6; }
19946 old_cflags="$CFLAGS"
19947 CFLAGS="$CFLAGS -mv8"
19948 cat >conftest.$ac_ext <<_ACEOF
19949 /* confdefs.h. */
19950 _ACEOF
19951 cat confdefs.h >>conftest.$ac_ext
19952 cat >>conftest.$ac_ext <<_ACEOF
19953 /* end confdefs.h. */
19956 main ()
19958 return 0;
19960 return 0;
19962 _ACEOF
19963 rm -f conftest.$ac_objext
19964 if { (ac_try="$ac_compile"
19965 case "(($ac_try" in
19966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19967 *) ac_try_echo=$ac_try;;
19968 esac
19969 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19970 (eval "$ac_compile") 2>conftest.er1
19971 ac_status=$?
19972 grep -v '^ *+' conftest.er1 >conftest.err
19973 rm -f conftest.er1
19974 cat conftest.err >&5
19975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19976 (exit $ac_status); } && {
19977 test -z "$ac_c_werror_flag" ||
19978 test ! -s conftest.err
19979 } && test -s conftest.$ac_objext; then
19981 { echo "$as_me:$LINENO: result: yes" >&5
19982 echo "${ECHO_T}yes" >&6; }
19983 sparc_cpu="-mv8"
19985 else
19986 echo "$as_me: failed program was:" >&5
19987 sed 's/^/| /' conftest.$ac_ext >&5
19992 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19993 CFLAGS="$old_cflags"
19994 DEBUG="-g -Wall -fsigned-char $sparc_cpu"
19995 CFLAGS="-O20 -ffast-math -fsigned-char $sparc_cpu"
19996 PROFILE="-pg -g -O20 -fsigned-char $sparc_cpu"
19998 *-*-darwin*)
19999 DEBUG="-fno-common -g -Wall -fsigned-char"
20000 CFLAGS="-fno-common -O4 -Wall -fsigned-char -ffast-math"
20001 PROFILE="-fno-common -O4 -Wall -pg -g -fsigned-char -ffast-math"
20004 DEBUG="-g -Wall -fsigned-char"
20005 CFLAGS="-O20 -fsigned-char"
20006 PROFILE="-O20 -g -pg -fsigned-char"
20008 esac
20010 CFLAGS="$CFLAGS $cflags_save"
20011 DEBUG="$DEBUG $cflags_save"
20012 PROFILE="$PROFILE $cflags_save"
20016 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
20017 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
20018 if test "${ac_cv_header_stdc+set}" = set; then
20019 echo $ECHO_N "(cached) $ECHO_C" >&6
20020 else
20021 cat >conftest.$ac_ext <<_ACEOF
20022 /* confdefs.h. */
20023 _ACEOF
20024 cat confdefs.h >>conftest.$ac_ext
20025 cat >>conftest.$ac_ext <<_ACEOF
20026 /* end confdefs.h. */
20027 #include <stdlib.h>
20028 #include <stdarg.h>
20029 #include <string.h>
20030 #include <float.h>
20033 main ()
20037 return 0;
20039 _ACEOF
20040 rm -f conftest.$ac_objext
20041 if { (ac_try="$ac_compile"
20042 case "(($ac_try" in
20043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20044 *) ac_try_echo=$ac_try;;
20045 esac
20046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20047 (eval "$ac_compile") 2>conftest.er1
20048 ac_status=$?
20049 grep -v '^ *+' conftest.er1 >conftest.err
20050 rm -f conftest.er1
20051 cat conftest.err >&5
20052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20053 (exit $ac_status); } && {
20054 test -z "$ac_c_werror_flag" ||
20055 test ! -s conftest.err
20056 } && test -s conftest.$ac_objext; then
20057 ac_cv_header_stdc=yes
20058 else
20059 echo "$as_me: failed program was:" >&5
20060 sed 's/^/| /' conftest.$ac_ext >&5
20062 ac_cv_header_stdc=no
20065 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20067 if test $ac_cv_header_stdc = yes; then
20068 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
20069 cat >conftest.$ac_ext <<_ACEOF
20070 /* confdefs.h. */
20071 _ACEOF
20072 cat confdefs.h >>conftest.$ac_ext
20073 cat >>conftest.$ac_ext <<_ACEOF
20074 /* end confdefs.h. */
20075 #include <string.h>
20077 _ACEOF
20078 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20079 $EGREP "memchr" >/dev/null 2>&1; then
20081 else
20082 ac_cv_header_stdc=no
20084 rm -f conftest*
20088 if test $ac_cv_header_stdc = yes; then
20089 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
20090 cat >conftest.$ac_ext <<_ACEOF
20091 /* confdefs.h. */
20092 _ACEOF
20093 cat confdefs.h >>conftest.$ac_ext
20094 cat >>conftest.$ac_ext <<_ACEOF
20095 /* end confdefs.h. */
20096 #include <stdlib.h>
20098 _ACEOF
20099 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20100 $EGREP "free" >/dev/null 2>&1; then
20102 else
20103 ac_cv_header_stdc=no
20105 rm -f conftest*
20109 if test $ac_cv_header_stdc = yes; then
20110 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
20111 if test "$cross_compiling" = yes; then
20113 else
20114 cat >conftest.$ac_ext <<_ACEOF
20115 /* confdefs.h. */
20116 _ACEOF
20117 cat confdefs.h >>conftest.$ac_ext
20118 cat >>conftest.$ac_ext <<_ACEOF
20119 /* end confdefs.h. */
20120 #include <ctype.h>
20121 #include <stdlib.h>
20122 #if ((' ' & 0x0FF) == 0x020)
20123 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
20124 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
20125 #else
20126 # define ISLOWER(c) \
20127 (('a' <= (c) && (c) <= 'i') \
20128 || ('j' <= (c) && (c) <= 'r') \
20129 || ('s' <= (c) && (c) <= 'z'))
20130 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
20131 #endif
20133 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
20135 main ()
20137 int i;
20138 for (i = 0; i < 256; i++)
20139 if (XOR (islower (i), ISLOWER (i))
20140 || toupper (i) != TOUPPER (i))
20141 return 2;
20142 return 0;
20144 _ACEOF
20145 rm -f conftest$ac_exeext
20146 if { (ac_try="$ac_link"
20147 case "(($ac_try" in
20148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20149 *) ac_try_echo=$ac_try;;
20150 esac
20151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20152 (eval "$ac_link") 2>&5
20153 ac_status=$?
20154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20155 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20156 { (case "(($ac_try" in
20157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20158 *) ac_try_echo=$ac_try;;
20159 esac
20160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20161 (eval "$ac_try") 2>&5
20162 ac_status=$?
20163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20164 (exit $ac_status); }; }; then
20166 else
20167 echo "$as_me: program exited with status $ac_status" >&5
20168 echo "$as_me: failed program was:" >&5
20169 sed 's/^/| /' conftest.$ac_ext >&5
20171 ( exit $ac_status )
20172 ac_cv_header_stdc=no
20174 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20180 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
20181 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
20182 if test $ac_cv_header_stdc = yes; then
20184 cat >>confdefs.h <<\_ACEOF
20185 #define STDC_HEADERS 1
20186 _ACEOF
20191 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
20192 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
20193 if test "${ac_cv_c_const+set}" = set; then
20194 echo $ECHO_N "(cached) $ECHO_C" >&6
20195 else
20196 cat >conftest.$ac_ext <<_ACEOF
20197 /* confdefs.h. */
20198 _ACEOF
20199 cat confdefs.h >>conftest.$ac_ext
20200 cat >>conftest.$ac_ext <<_ACEOF
20201 /* end confdefs.h. */
20204 main ()
20206 /* FIXME: Include the comments suggested by Paul. */
20207 #ifndef __cplusplus
20208 /* Ultrix mips cc rejects this. */
20209 typedef int charset[2];
20210 const charset cs;
20211 /* SunOS 4.1.1 cc rejects this. */
20212 char const *const *pcpcc;
20213 char **ppc;
20214 /* NEC SVR4.0.2 mips cc rejects this. */
20215 struct point {int x, y;};
20216 static struct point const zero = {0,0};
20217 /* AIX XL C 1.02.0.0 rejects this.
20218 It does not let you subtract one const X* pointer from another in
20219 an arm of an if-expression whose if-part is not a constant
20220 expression */
20221 const char *g = "string";
20222 pcpcc = &g + (g ? g-g : 0);
20223 /* HPUX 7.0 cc rejects these. */
20224 ++pcpcc;
20225 ppc = (char**) pcpcc;
20226 pcpcc = (char const *const *) ppc;
20227 { /* SCO 3.2v4 cc rejects this. */
20228 char *t;
20229 char const *s = 0 ? (char *) 0 : (char const *) 0;
20231 *t++ = 0;
20232 if (s) return 0;
20234 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
20235 int x[] = {25, 17};
20236 const int *foo = &x[0];
20237 ++foo;
20239 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
20240 typedef const int *iptr;
20241 iptr p = 0;
20242 ++p;
20244 { /* AIX XL C 1.02.0.0 rejects this saying
20245 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
20246 struct s { int j; const int *ap[3]; };
20247 struct s *b; b->j = 5;
20249 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
20250 const int foo = 10;
20251 if (!foo) return 0;
20253 return !cs[0] && !zero.x;
20254 #endif
20257 return 0;
20259 _ACEOF
20260 rm -f conftest.$ac_objext
20261 if { (ac_try="$ac_compile"
20262 case "(($ac_try" in
20263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20264 *) ac_try_echo=$ac_try;;
20265 esac
20266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20267 (eval "$ac_compile") 2>conftest.er1
20268 ac_status=$?
20269 grep -v '^ *+' conftest.er1 >conftest.err
20270 rm -f conftest.er1
20271 cat conftest.err >&5
20272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20273 (exit $ac_status); } && {
20274 test -z "$ac_c_werror_flag" ||
20275 test ! -s conftest.err
20276 } && test -s conftest.$ac_objext; then
20277 ac_cv_c_const=yes
20278 else
20279 echo "$as_me: failed program was:" >&5
20280 sed 's/^/| /' conftest.$ac_ext >&5
20282 ac_cv_c_const=no
20285 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20287 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
20288 echo "${ECHO_T}$ac_cv_c_const" >&6; }
20289 if test $ac_cv_c_const = no; then
20291 cat >>confdefs.h <<\_ACEOF
20292 #define const
20293 _ACEOF
20299 { echo "$as_me:$LINENO: checking for int16_t" >&5
20300 echo $ECHO_N "checking for int16_t... $ECHO_C" >&6; }
20301 if test "${has_cv_int16_t+set}" = set; then
20302 echo $ECHO_N "(cached) $ECHO_C" >&6
20303 else
20304 if test "$cross_compiling" = yes; then
20305 has_cv_int16_t=no
20307 else
20308 cat >conftest.$ac_ext <<_ACEOF
20309 /* confdefs.h. */
20310 _ACEOF
20311 cat confdefs.h >>conftest.$ac_ext
20312 cat >>conftest.$ac_ext <<_ACEOF
20313 /* end confdefs.h. */
20315 #if defined __BEOS__ && !defined __HAIKU__
20316 #include <inttypes.h>
20317 #endif
20318 #include <sys/types.h>
20319 int16_t foo;
20320 int main() {return 0;}
20322 _ACEOF
20323 rm -f conftest$ac_exeext
20324 if { (ac_try="$ac_link"
20325 case "(($ac_try" in
20326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20327 *) ac_try_echo=$ac_try;;
20328 esac
20329 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20330 (eval "$ac_link") 2>&5
20331 ac_status=$?
20332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20333 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20334 { (case "(($ac_try" in
20335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20336 *) ac_try_echo=$ac_try;;
20337 esac
20338 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20339 (eval "$ac_try") 2>&5
20340 ac_status=$?
20341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20342 (exit $ac_status); }; }; then
20343 has_cv_int16_t=yes
20344 else
20345 echo "$as_me: program exited with status $ac_status" >&5
20346 echo "$as_me: failed program was:" >&5
20347 sed 's/^/| /' conftest.$ac_ext >&5
20349 ( exit $ac_status )
20350 has_cv_int16_t=no
20352 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20358 { echo "$as_me:$LINENO: result: $has_cv_int16_t" >&5
20359 echo "${ECHO_T}$has_cv_int16_t" >&6; }
20361 { echo "$as_me:$LINENO: checking for int32_t" >&5
20362 echo $ECHO_N "checking for int32_t... $ECHO_C" >&6; }
20363 if test "${has_cv_int32_t+set}" = set; then
20364 echo $ECHO_N "(cached) $ECHO_C" >&6
20365 else
20366 if test "$cross_compiling" = yes; then
20367 has_cv_int32_t=no
20369 else
20370 cat >conftest.$ac_ext <<_ACEOF
20371 /* confdefs.h. */
20372 _ACEOF
20373 cat confdefs.h >>conftest.$ac_ext
20374 cat >>conftest.$ac_ext <<_ACEOF
20375 /* end confdefs.h. */
20377 #if defined __BEOS__ && !defined __HAIKU__
20378 #include <inttypes.h>
20379 #endif
20380 #include <sys/types.h>
20381 int32_t foo;
20382 int main() {return 0;}
20384 _ACEOF
20385 rm -f conftest$ac_exeext
20386 if { (ac_try="$ac_link"
20387 case "(($ac_try" in
20388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20389 *) ac_try_echo=$ac_try;;
20390 esac
20391 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20392 (eval "$ac_link") 2>&5
20393 ac_status=$?
20394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20395 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20396 { (case "(($ac_try" in
20397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20398 *) ac_try_echo=$ac_try;;
20399 esac
20400 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20401 (eval "$ac_try") 2>&5
20402 ac_status=$?
20403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20404 (exit $ac_status); }; }; then
20405 has_cv_int32_t=yes
20406 else
20407 echo "$as_me: program exited with status $ac_status" >&5
20408 echo "$as_me: failed program was:" >&5
20409 sed 's/^/| /' conftest.$ac_ext >&5
20411 ( exit $ac_status )
20412 has_cv_int32_t=no
20414 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20420 { echo "$as_me:$LINENO: result: $has_cv_int32_t" >&5
20421 echo "${ECHO_T}$has_cv_int32_t" >&6; }
20423 { echo "$as_me:$LINENO: checking for uint32_t" >&5
20424 echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6; }
20425 if test "${has_cv_uint32_t+set}" = set; then
20426 echo $ECHO_N "(cached) $ECHO_C" >&6
20427 else
20428 if test "$cross_compiling" = yes; then
20429 has_cv_uint32_t=no
20431 else
20432 cat >conftest.$ac_ext <<_ACEOF
20433 /* confdefs.h. */
20434 _ACEOF
20435 cat confdefs.h >>conftest.$ac_ext
20436 cat >>conftest.$ac_ext <<_ACEOF
20437 /* end confdefs.h. */
20439 #if defined __BEOS__ && !defined __HAIKU__
20440 #include <inttypes.h>
20441 #endif
20442 #include <sys/types.h>
20443 uint32_t foo;
20444 int main() {return 0;}
20446 _ACEOF
20447 rm -f conftest$ac_exeext
20448 if { (ac_try="$ac_link"
20449 case "(($ac_try" in
20450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20451 *) ac_try_echo=$ac_try;;
20452 esac
20453 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20454 (eval "$ac_link") 2>&5
20455 ac_status=$?
20456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20457 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20458 { (case "(($ac_try" in
20459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20460 *) ac_try_echo=$ac_try;;
20461 esac
20462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20463 (eval "$ac_try") 2>&5
20464 ac_status=$?
20465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20466 (exit $ac_status); }; }; then
20467 has_cv_uint32_t=yes
20468 else
20469 echo "$as_me: program exited with status $ac_status" >&5
20470 echo "$as_me: failed program was:" >&5
20471 sed 's/^/| /' conftest.$ac_ext >&5
20473 ( exit $ac_status )
20474 has_cv_uint32_t=no
20476 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20482 { echo "$as_me:$LINENO: result: $has_cv_uint32_t" >&5
20483 echo "${ECHO_T}$has_cv_uint32_t" >&6; }
20485 { echo "$as_me:$LINENO: checking for uint16_t" >&5
20486 echo $ECHO_N "checking for uint16_t... $ECHO_C" >&6; }
20487 if test "${has_cv_uint16_t+set}" = set; then
20488 echo $ECHO_N "(cached) $ECHO_C" >&6
20489 else
20490 if test "$cross_compiling" = yes; then
20491 has_cv_uint16_t=no
20493 else
20494 cat >conftest.$ac_ext <<_ACEOF
20495 /* confdefs.h. */
20496 _ACEOF
20497 cat confdefs.h >>conftest.$ac_ext
20498 cat >>conftest.$ac_ext <<_ACEOF
20499 /* end confdefs.h. */
20501 #if defined __BEOS__ && !defined __HAIKU__
20502 #include <inttypes.h>
20503 #endif
20504 #include <sys/types.h>
20505 uint16_t foo;
20506 int main() {return 0;}
20508 _ACEOF
20509 rm -f conftest$ac_exeext
20510 if { (ac_try="$ac_link"
20511 case "(($ac_try" in
20512 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20513 *) ac_try_echo=$ac_try;;
20514 esac
20515 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20516 (eval "$ac_link") 2>&5
20517 ac_status=$?
20518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20519 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20520 { (case "(($ac_try" in
20521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20522 *) ac_try_echo=$ac_try;;
20523 esac
20524 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20525 (eval "$ac_try") 2>&5
20526 ac_status=$?
20527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20528 (exit $ac_status); }; }; then
20529 has_cv_uint16_t=yes
20530 else
20531 echo "$as_me: program exited with status $ac_status" >&5
20532 echo "$as_me: failed program was:" >&5
20533 sed 's/^/| /' conftest.$ac_ext >&5
20535 ( exit $ac_status )
20536 has_cv_uint16_t=no
20538 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20544 { echo "$as_me:$LINENO: result: $has_cv_uint16_t" >&5
20545 echo "${ECHO_T}$has_cv_uint16_t" >&6; }
20547 { echo "$as_me:$LINENO: checking for u_int32_t" >&5
20548 echo $ECHO_N "checking for u_int32_t... $ECHO_C" >&6; }
20549 if test "${has_cv_u_int32_t+set}" = set; then
20550 echo $ECHO_N "(cached) $ECHO_C" >&6
20551 else
20552 if test "$cross_compiling" = yes; then
20553 has_cv_u_int32_t=no
20555 else
20556 cat >conftest.$ac_ext <<_ACEOF
20557 /* confdefs.h. */
20558 _ACEOF
20559 cat confdefs.h >>conftest.$ac_ext
20560 cat >>conftest.$ac_ext <<_ACEOF
20561 /* end confdefs.h. */
20563 #if defined __BEOS__ && !defined __HAIKU__
20564 #include <inttypes.h>
20565 #endif
20566 #include <sys/types.h>
20567 u_int32_t foo;
20568 int main() {return 0;}
20570 _ACEOF
20571 rm -f conftest$ac_exeext
20572 if { (ac_try="$ac_link"
20573 case "(($ac_try" in
20574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20575 *) ac_try_echo=$ac_try;;
20576 esac
20577 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20578 (eval "$ac_link") 2>&5
20579 ac_status=$?
20580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20581 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20582 { (case "(($ac_try" in
20583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20584 *) ac_try_echo=$ac_try;;
20585 esac
20586 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20587 (eval "$ac_try") 2>&5
20588 ac_status=$?
20589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20590 (exit $ac_status); }; }; then
20591 has_cv_u_int32_t=yes
20592 else
20593 echo "$as_me: program exited with status $ac_status" >&5
20594 echo "$as_me: failed program was:" >&5
20595 sed 's/^/| /' conftest.$ac_ext >&5
20597 ( exit $ac_status )
20598 has_cv_u_int32_t=no
20600 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20606 { echo "$as_me:$LINENO: result: $has_cv_u_int32_t" >&5
20607 echo "${ECHO_T}$has_cv_u_int32_t" >&6; }
20609 { echo "$as_me:$LINENO: checking for u_int16_t" >&5
20610 echo $ECHO_N "checking for u_int16_t... $ECHO_C" >&6; }
20611 if test "${has_cv_u_int16_t+set}" = set; then
20612 echo $ECHO_N "(cached) $ECHO_C" >&6
20613 else
20614 if test "$cross_compiling" = yes; then
20615 has_cv_u_int16_t=no
20617 else
20618 cat >conftest.$ac_ext <<_ACEOF
20619 /* confdefs.h. */
20620 _ACEOF
20621 cat confdefs.h >>conftest.$ac_ext
20622 cat >>conftest.$ac_ext <<_ACEOF
20623 /* end confdefs.h. */
20625 #if defined __BEOS__ && !defined __HAIKU__
20626 #include <inttypes.h>
20627 #endif
20628 #include <sys/types.h>
20629 u_int16_t foo;
20630 int main() {return 0;}
20632 _ACEOF
20633 rm -f conftest$ac_exeext
20634 if { (ac_try="$ac_link"
20635 case "(($ac_try" in
20636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20637 *) ac_try_echo=$ac_try;;
20638 esac
20639 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20640 (eval "$ac_link") 2>&5
20641 ac_status=$?
20642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20643 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20644 { (case "(($ac_try" in
20645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20646 *) ac_try_echo=$ac_try;;
20647 esac
20648 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20649 (eval "$ac_try") 2>&5
20650 ac_status=$?
20651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20652 (exit $ac_status); }; }; then
20653 has_cv_u_int16_t=yes
20654 else
20655 echo "$as_me: program exited with status $ac_status" >&5
20656 echo "$as_me: failed program was:" >&5
20657 sed 's/^/| /' conftest.$ac_ext >&5
20659 ( exit $ac_status )
20660 has_cv_u_int16_t=no
20662 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20668 { echo "$as_me:$LINENO: result: $has_cv_u_int16_t" >&5
20669 echo "${ECHO_T}$has_cv_u_int16_t" >&6; }
20671 { echo "$as_me:$LINENO: checking for int64_t" >&5
20672 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
20673 if test "${has_cv_int64_t+set}" = set; then
20674 echo $ECHO_N "(cached) $ECHO_C" >&6
20675 else
20676 if test "$cross_compiling" = yes; then
20677 has_cv_int64_t=no
20679 else
20680 cat >conftest.$ac_ext <<_ACEOF
20681 /* confdefs.h. */
20682 _ACEOF
20683 cat confdefs.h >>conftest.$ac_ext
20684 cat >>conftest.$ac_ext <<_ACEOF
20685 /* end confdefs.h. */
20687 #if defined __BEOS__ && !defined __HAIKU__
20688 #include <inttypes.h>
20689 #endif
20690 #include <sys/types.h>
20691 int64_t foo;
20692 int main() {return 0;}
20694 _ACEOF
20695 rm -f conftest$ac_exeext
20696 if { (ac_try="$ac_link"
20697 case "(($ac_try" in
20698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20699 *) ac_try_echo=$ac_try;;
20700 esac
20701 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20702 (eval "$ac_link") 2>&5
20703 ac_status=$?
20704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20705 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20706 { (case "(($ac_try" in
20707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20708 *) ac_try_echo=$ac_try;;
20709 esac
20710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20711 (eval "$ac_try") 2>&5
20712 ac_status=$?
20713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20714 (exit $ac_status); }; }; then
20715 has_cv_int64_t=yes
20716 else
20717 echo "$as_me: program exited with status $ac_status" >&5
20718 echo "$as_me: failed program was:" >&5
20719 sed 's/^/| /' conftest.$ac_ext >&5
20721 ( exit $ac_status )
20722 has_cv_int64_t=no
20724 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20730 { echo "$as_me:$LINENO: result: $has_cv_int64_t" >&5
20731 echo "${ECHO_T}$has_cv_int64_t" >&6; }
20733 { echo "$as_me:$LINENO: checking for short" >&5
20734 echo $ECHO_N "checking for short... $ECHO_C" >&6; }
20735 if test "${ac_cv_type_short+set}" = set; then
20736 echo $ECHO_N "(cached) $ECHO_C" >&6
20737 else
20738 cat >conftest.$ac_ext <<_ACEOF
20739 /* confdefs.h. */
20740 _ACEOF
20741 cat confdefs.h >>conftest.$ac_ext
20742 cat >>conftest.$ac_ext <<_ACEOF
20743 /* end confdefs.h. */
20744 $ac_includes_default
20745 typedef short ac__type_new_;
20747 main ()
20749 if ((ac__type_new_ *) 0)
20750 return 0;
20751 if (sizeof (ac__type_new_))
20752 return 0;
20754 return 0;
20756 _ACEOF
20757 rm -f conftest.$ac_objext
20758 if { (ac_try="$ac_compile"
20759 case "(($ac_try" in
20760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20761 *) ac_try_echo=$ac_try;;
20762 esac
20763 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20764 (eval "$ac_compile") 2>conftest.er1
20765 ac_status=$?
20766 grep -v '^ *+' conftest.er1 >conftest.err
20767 rm -f conftest.er1
20768 cat conftest.err >&5
20769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20770 (exit $ac_status); } && {
20771 test -z "$ac_c_werror_flag" ||
20772 test ! -s conftest.err
20773 } && test -s conftest.$ac_objext; then
20774 ac_cv_type_short=yes
20775 else
20776 echo "$as_me: failed program was:" >&5
20777 sed 's/^/| /' conftest.$ac_ext >&5
20779 ac_cv_type_short=no
20782 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20784 { echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
20785 echo "${ECHO_T}$ac_cv_type_short" >&6; }
20787 # The cast to long int works around a bug in the HP C Compiler
20788 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20789 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20790 # This bug is HP SR number 8606223364.
20791 { echo "$as_me:$LINENO: checking size of short" >&5
20792 echo $ECHO_N "checking size of short... $ECHO_C" >&6; }
20793 if test "${ac_cv_sizeof_short+set}" = set; then
20794 echo $ECHO_N "(cached) $ECHO_C" >&6
20795 else
20796 if test "$cross_compiling" = yes; then
20797 # Depending upon the size, compute the lo and hi bounds.
20798 cat >conftest.$ac_ext <<_ACEOF
20799 /* confdefs.h. */
20800 _ACEOF
20801 cat confdefs.h >>conftest.$ac_ext
20802 cat >>conftest.$ac_ext <<_ACEOF
20803 /* end confdefs.h. */
20804 $ac_includes_default
20805 typedef short ac__type_sizeof_;
20807 main ()
20809 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
20810 test_array [0] = 0
20813 return 0;
20815 _ACEOF
20816 rm -f conftest.$ac_objext
20817 if { (ac_try="$ac_compile"
20818 case "(($ac_try" in
20819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20820 *) ac_try_echo=$ac_try;;
20821 esac
20822 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20823 (eval "$ac_compile") 2>conftest.er1
20824 ac_status=$?
20825 grep -v '^ *+' conftest.er1 >conftest.err
20826 rm -f conftest.er1
20827 cat conftest.err >&5
20828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20829 (exit $ac_status); } && {
20830 test -z "$ac_c_werror_flag" ||
20831 test ! -s conftest.err
20832 } && test -s conftest.$ac_objext; then
20833 ac_lo=0 ac_mid=0
20834 while :; do
20835 cat >conftest.$ac_ext <<_ACEOF
20836 /* confdefs.h. */
20837 _ACEOF
20838 cat confdefs.h >>conftest.$ac_ext
20839 cat >>conftest.$ac_ext <<_ACEOF
20840 /* end confdefs.h. */
20841 $ac_includes_default
20842 typedef short ac__type_sizeof_;
20844 main ()
20846 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
20847 test_array [0] = 0
20850 return 0;
20852 _ACEOF
20853 rm -f conftest.$ac_objext
20854 if { (ac_try="$ac_compile"
20855 case "(($ac_try" in
20856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20857 *) ac_try_echo=$ac_try;;
20858 esac
20859 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20860 (eval "$ac_compile") 2>conftest.er1
20861 ac_status=$?
20862 grep -v '^ *+' conftest.er1 >conftest.err
20863 rm -f conftest.er1
20864 cat conftest.err >&5
20865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20866 (exit $ac_status); } && {
20867 test -z "$ac_c_werror_flag" ||
20868 test ! -s conftest.err
20869 } && test -s conftest.$ac_objext; then
20870 ac_hi=$ac_mid; break
20871 else
20872 echo "$as_me: failed program was:" >&5
20873 sed 's/^/| /' conftest.$ac_ext >&5
20875 ac_lo=`expr $ac_mid + 1`
20876 if test $ac_lo -le $ac_mid; then
20877 ac_lo= ac_hi=
20878 break
20880 ac_mid=`expr 2 '*' $ac_mid + 1`
20883 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20884 done
20885 else
20886 echo "$as_me: failed program was:" >&5
20887 sed 's/^/| /' conftest.$ac_ext >&5
20889 cat >conftest.$ac_ext <<_ACEOF
20890 /* confdefs.h. */
20891 _ACEOF
20892 cat confdefs.h >>conftest.$ac_ext
20893 cat >>conftest.$ac_ext <<_ACEOF
20894 /* end confdefs.h. */
20895 $ac_includes_default
20896 typedef short ac__type_sizeof_;
20898 main ()
20900 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
20901 test_array [0] = 0
20904 return 0;
20906 _ACEOF
20907 rm -f conftest.$ac_objext
20908 if { (ac_try="$ac_compile"
20909 case "(($ac_try" in
20910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20911 *) ac_try_echo=$ac_try;;
20912 esac
20913 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20914 (eval "$ac_compile") 2>conftest.er1
20915 ac_status=$?
20916 grep -v '^ *+' conftest.er1 >conftest.err
20917 rm -f conftest.er1
20918 cat conftest.err >&5
20919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20920 (exit $ac_status); } && {
20921 test -z "$ac_c_werror_flag" ||
20922 test ! -s conftest.err
20923 } && test -s conftest.$ac_objext; then
20924 ac_hi=-1 ac_mid=-1
20925 while :; do
20926 cat >conftest.$ac_ext <<_ACEOF
20927 /* confdefs.h. */
20928 _ACEOF
20929 cat confdefs.h >>conftest.$ac_ext
20930 cat >>conftest.$ac_ext <<_ACEOF
20931 /* end confdefs.h. */
20932 $ac_includes_default
20933 typedef short ac__type_sizeof_;
20935 main ()
20937 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
20938 test_array [0] = 0
20941 return 0;
20943 _ACEOF
20944 rm -f conftest.$ac_objext
20945 if { (ac_try="$ac_compile"
20946 case "(($ac_try" in
20947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20948 *) ac_try_echo=$ac_try;;
20949 esac
20950 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20951 (eval "$ac_compile") 2>conftest.er1
20952 ac_status=$?
20953 grep -v '^ *+' conftest.er1 >conftest.err
20954 rm -f conftest.er1
20955 cat conftest.err >&5
20956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20957 (exit $ac_status); } && {
20958 test -z "$ac_c_werror_flag" ||
20959 test ! -s conftest.err
20960 } && test -s conftest.$ac_objext; then
20961 ac_lo=$ac_mid; break
20962 else
20963 echo "$as_me: failed program was:" >&5
20964 sed 's/^/| /' conftest.$ac_ext >&5
20966 ac_hi=`expr '(' $ac_mid ')' - 1`
20967 if test $ac_mid -le $ac_hi; then
20968 ac_lo= ac_hi=
20969 break
20971 ac_mid=`expr 2 '*' $ac_mid`
20974 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20975 done
20976 else
20977 echo "$as_me: failed program was:" >&5
20978 sed 's/^/| /' conftest.$ac_ext >&5
20980 ac_lo= ac_hi=
20983 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20986 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20987 # Binary search between lo and hi bounds.
20988 while test "x$ac_lo" != "x$ac_hi"; do
20989 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
20990 cat >conftest.$ac_ext <<_ACEOF
20991 /* confdefs.h. */
20992 _ACEOF
20993 cat confdefs.h >>conftest.$ac_ext
20994 cat >>conftest.$ac_ext <<_ACEOF
20995 /* end confdefs.h. */
20996 $ac_includes_default
20997 typedef short ac__type_sizeof_;
20999 main ()
21001 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
21002 test_array [0] = 0
21005 return 0;
21007 _ACEOF
21008 rm -f conftest.$ac_objext
21009 if { (ac_try="$ac_compile"
21010 case "(($ac_try" in
21011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21012 *) ac_try_echo=$ac_try;;
21013 esac
21014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21015 (eval "$ac_compile") 2>conftest.er1
21016 ac_status=$?
21017 grep -v '^ *+' conftest.er1 >conftest.err
21018 rm -f conftest.er1
21019 cat conftest.err >&5
21020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21021 (exit $ac_status); } && {
21022 test -z "$ac_c_werror_flag" ||
21023 test ! -s conftest.err
21024 } && test -s conftest.$ac_objext; then
21025 ac_hi=$ac_mid
21026 else
21027 echo "$as_me: failed program was:" >&5
21028 sed 's/^/| /' conftest.$ac_ext >&5
21030 ac_lo=`expr '(' $ac_mid ')' + 1`
21033 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21034 done
21035 case $ac_lo in
21036 ?*) ac_cv_sizeof_short=$ac_lo;;
21037 '') if test "$ac_cv_type_short" = yes; then
21038 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
21039 See \`config.log' for more details." >&5
21040 echo "$as_me: error: cannot compute sizeof (short)
21041 See \`config.log' for more details." >&2;}
21042 { (exit 77); exit 77; }; }
21043 else
21044 ac_cv_sizeof_short=0
21045 fi ;;
21046 esac
21047 else
21048 cat >conftest.$ac_ext <<_ACEOF
21049 /* confdefs.h. */
21050 _ACEOF
21051 cat confdefs.h >>conftest.$ac_ext
21052 cat >>conftest.$ac_ext <<_ACEOF
21053 /* end confdefs.h. */
21054 $ac_includes_default
21055 typedef short ac__type_sizeof_;
21056 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
21057 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
21058 #include <stdio.h>
21059 #include <stdlib.h>
21061 main ()
21064 FILE *f = fopen ("conftest.val", "w");
21065 if (! f)
21066 return 1;
21067 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
21069 long int i = longval ();
21070 if (i != ((long int) (sizeof (ac__type_sizeof_))))
21071 return 1;
21072 fprintf (f, "%ld\n", i);
21074 else
21076 unsigned long int i = ulongval ();
21077 if (i != ((long int) (sizeof (ac__type_sizeof_))))
21078 return 1;
21079 fprintf (f, "%lu\n", i);
21081 return ferror (f) || fclose (f) != 0;
21084 return 0;
21086 _ACEOF
21087 rm -f conftest$ac_exeext
21088 if { (ac_try="$ac_link"
21089 case "(($ac_try" in
21090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21091 *) ac_try_echo=$ac_try;;
21092 esac
21093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21094 (eval "$ac_link") 2>&5
21095 ac_status=$?
21096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21097 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21098 { (case "(($ac_try" in
21099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21100 *) ac_try_echo=$ac_try;;
21101 esac
21102 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21103 (eval "$ac_try") 2>&5
21104 ac_status=$?
21105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21106 (exit $ac_status); }; }; then
21107 ac_cv_sizeof_short=`cat conftest.val`
21108 else
21109 echo "$as_me: program exited with status $ac_status" >&5
21110 echo "$as_me: failed program was:" >&5
21111 sed 's/^/| /' conftest.$ac_ext >&5
21113 ( exit $ac_status )
21114 if test "$ac_cv_type_short" = yes; then
21115 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
21116 See \`config.log' for more details." >&5
21117 echo "$as_me: error: cannot compute sizeof (short)
21118 See \`config.log' for more details." >&2;}
21119 { (exit 77); exit 77; }; }
21120 else
21121 ac_cv_sizeof_short=0
21124 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21126 rm -f conftest.val
21128 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
21129 echo "${ECHO_T}$ac_cv_sizeof_short" >&6; }
21133 cat >>confdefs.h <<_ACEOF
21134 #define SIZEOF_SHORT $ac_cv_sizeof_short
21135 _ACEOF
21138 { echo "$as_me:$LINENO: checking for int" >&5
21139 echo $ECHO_N "checking for int... $ECHO_C" >&6; }
21140 if test "${ac_cv_type_int+set}" = set; then
21141 echo $ECHO_N "(cached) $ECHO_C" >&6
21142 else
21143 cat >conftest.$ac_ext <<_ACEOF
21144 /* confdefs.h. */
21145 _ACEOF
21146 cat confdefs.h >>conftest.$ac_ext
21147 cat >>conftest.$ac_ext <<_ACEOF
21148 /* end confdefs.h. */
21149 $ac_includes_default
21150 typedef int ac__type_new_;
21152 main ()
21154 if ((ac__type_new_ *) 0)
21155 return 0;
21156 if (sizeof (ac__type_new_))
21157 return 0;
21159 return 0;
21161 _ACEOF
21162 rm -f conftest.$ac_objext
21163 if { (ac_try="$ac_compile"
21164 case "(($ac_try" in
21165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21166 *) ac_try_echo=$ac_try;;
21167 esac
21168 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21169 (eval "$ac_compile") 2>conftest.er1
21170 ac_status=$?
21171 grep -v '^ *+' conftest.er1 >conftest.err
21172 rm -f conftest.er1
21173 cat conftest.err >&5
21174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21175 (exit $ac_status); } && {
21176 test -z "$ac_c_werror_flag" ||
21177 test ! -s conftest.err
21178 } && test -s conftest.$ac_objext; then
21179 ac_cv_type_int=yes
21180 else
21181 echo "$as_me: failed program was:" >&5
21182 sed 's/^/| /' conftest.$ac_ext >&5
21184 ac_cv_type_int=no
21187 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21189 { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
21190 echo "${ECHO_T}$ac_cv_type_int" >&6; }
21192 # The cast to long int works around a bug in the HP C Compiler
21193 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21194 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21195 # This bug is HP SR number 8606223364.
21196 { echo "$as_me:$LINENO: checking size of int" >&5
21197 echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
21198 if test "${ac_cv_sizeof_int+set}" = set; then
21199 echo $ECHO_N "(cached) $ECHO_C" >&6
21200 else
21201 if test "$cross_compiling" = yes; then
21202 # Depending upon the size, compute the lo and hi bounds.
21203 cat >conftest.$ac_ext <<_ACEOF
21204 /* confdefs.h. */
21205 _ACEOF
21206 cat confdefs.h >>conftest.$ac_ext
21207 cat >>conftest.$ac_ext <<_ACEOF
21208 /* end confdefs.h. */
21209 $ac_includes_default
21210 typedef int ac__type_sizeof_;
21212 main ()
21214 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
21215 test_array [0] = 0
21218 return 0;
21220 _ACEOF
21221 rm -f conftest.$ac_objext
21222 if { (ac_try="$ac_compile"
21223 case "(($ac_try" in
21224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21225 *) ac_try_echo=$ac_try;;
21226 esac
21227 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21228 (eval "$ac_compile") 2>conftest.er1
21229 ac_status=$?
21230 grep -v '^ *+' conftest.er1 >conftest.err
21231 rm -f conftest.er1
21232 cat conftest.err >&5
21233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21234 (exit $ac_status); } && {
21235 test -z "$ac_c_werror_flag" ||
21236 test ! -s conftest.err
21237 } && test -s conftest.$ac_objext; then
21238 ac_lo=0 ac_mid=0
21239 while :; do
21240 cat >conftest.$ac_ext <<_ACEOF
21241 /* confdefs.h. */
21242 _ACEOF
21243 cat confdefs.h >>conftest.$ac_ext
21244 cat >>conftest.$ac_ext <<_ACEOF
21245 /* end confdefs.h. */
21246 $ac_includes_default
21247 typedef int ac__type_sizeof_;
21249 main ()
21251 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
21252 test_array [0] = 0
21255 return 0;
21257 _ACEOF
21258 rm -f conftest.$ac_objext
21259 if { (ac_try="$ac_compile"
21260 case "(($ac_try" in
21261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21262 *) ac_try_echo=$ac_try;;
21263 esac
21264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21265 (eval "$ac_compile") 2>conftest.er1
21266 ac_status=$?
21267 grep -v '^ *+' conftest.er1 >conftest.err
21268 rm -f conftest.er1
21269 cat conftest.err >&5
21270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21271 (exit $ac_status); } && {
21272 test -z "$ac_c_werror_flag" ||
21273 test ! -s conftest.err
21274 } && test -s conftest.$ac_objext; then
21275 ac_hi=$ac_mid; break
21276 else
21277 echo "$as_me: failed program was:" >&5
21278 sed 's/^/| /' conftest.$ac_ext >&5
21280 ac_lo=`expr $ac_mid + 1`
21281 if test $ac_lo -le $ac_mid; then
21282 ac_lo= ac_hi=
21283 break
21285 ac_mid=`expr 2 '*' $ac_mid + 1`
21288 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21289 done
21290 else
21291 echo "$as_me: failed program was:" >&5
21292 sed 's/^/| /' conftest.$ac_ext >&5
21294 cat >conftest.$ac_ext <<_ACEOF
21295 /* confdefs.h. */
21296 _ACEOF
21297 cat confdefs.h >>conftest.$ac_ext
21298 cat >>conftest.$ac_ext <<_ACEOF
21299 /* end confdefs.h. */
21300 $ac_includes_default
21301 typedef int ac__type_sizeof_;
21303 main ()
21305 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
21306 test_array [0] = 0
21309 return 0;
21311 _ACEOF
21312 rm -f conftest.$ac_objext
21313 if { (ac_try="$ac_compile"
21314 case "(($ac_try" in
21315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21316 *) ac_try_echo=$ac_try;;
21317 esac
21318 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21319 (eval "$ac_compile") 2>conftest.er1
21320 ac_status=$?
21321 grep -v '^ *+' conftest.er1 >conftest.err
21322 rm -f conftest.er1
21323 cat conftest.err >&5
21324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21325 (exit $ac_status); } && {
21326 test -z "$ac_c_werror_flag" ||
21327 test ! -s conftest.err
21328 } && test -s conftest.$ac_objext; then
21329 ac_hi=-1 ac_mid=-1
21330 while :; do
21331 cat >conftest.$ac_ext <<_ACEOF
21332 /* confdefs.h. */
21333 _ACEOF
21334 cat confdefs.h >>conftest.$ac_ext
21335 cat >>conftest.$ac_ext <<_ACEOF
21336 /* end confdefs.h. */
21337 $ac_includes_default
21338 typedef int ac__type_sizeof_;
21340 main ()
21342 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
21343 test_array [0] = 0
21346 return 0;
21348 _ACEOF
21349 rm -f conftest.$ac_objext
21350 if { (ac_try="$ac_compile"
21351 case "(($ac_try" in
21352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21353 *) ac_try_echo=$ac_try;;
21354 esac
21355 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21356 (eval "$ac_compile") 2>conftest.er1
21357 ac_status=$?
21358 grep -v '^ *+' conftest.er1 >conftest.err
21359 rm -f conftest.er1
21360 cat conftest.err >&5
21361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21362 (exit $ac_status); } && {
21363 test -z "$ac_c_werror_flag" ||
21364 test ! -s conftest.err
21365 } && test -s conftest.$ac_objext; then
21366 ac_lo=$ac_mid; break
21367 else
21368 echo "$as_me: failed program was:" >&5
21369 sed 's/^/| /' conftest.$ac_ext >&5
21371 ac_hi=`expr '(' $ac_mid ')' - 1`
21372 if test $ac_mid -le $ac_hi; then
21373 ac_lo= ac_hi=
21374 break
21376 ac_mid=`expr 2 '*' $ac_mid`
21379 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21380 done
21381 else
21382 echo "$as_me: failed program was:" >&5
21383 sed 's/^/| /' conftest.$ac_ext >&5
21385 ac_lo= ac_hi=
21388 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21391 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21392 # Binary search between lo and hi bounds.
21393 while test "x$ac_lo" != "x$ac_hi"; do
21394 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21395 cat >conftest.$ac_ext <<_ACEOF
21396 /* confdefs.h. */
21397 _ACEOF
21398 cat confdefs.h >>conftest.$ac_ext
21399 cat >>conftest.$ac_ext <<_ACEOF
21400 /* end confdefs.h. */
21401 $ac_includes_default
21402 typedef int ac__type_sizeof_;
21404 main ()
21406 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
21407 test_array [0] = 0
21410 return 0;
21412 _ACEOF
21413 rm -f conftest.$ac_objext
21414 if { (ac_try="$ac_compile"
21415 case "(($ac_try" in
21416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21417 *) ac_try_echo=$ac_try;;
21418 esac
21419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21420 (eval "$ac_compile") 2>conftest.er1
21421 ac_status=$?
21422 grep -v '^ *+' conftest.er1 >conftest.err
21423 rm -f conftest.er1
21424 cat conftest.err >&5
21425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21426 (exit $ac_status); } && {
21427 test -z "$ac_c_werror_flag" ||
21428 test ! -s conftest.err
21429 } && test -s conftest.$ac_objext; then
21430 ac_hi=$ac_mid
21431 else
21432 echo "$as_me: failed program was:" >&5
21433 sed 's/^/| /' conftest.$ac_ext >&5
21435 ac_lo=`expr '(' $ac_mid ')' + 1`
21438 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21439 done
21440 case $ac_lo in
21441 ?*) ac_cv_sizeof_int=$ac_lo;;
21442 '') if test "$ac_cv_type_int" = yes; then
21443 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
21444 See \`config.log' for more details." >&5
21445 echo "$as_me: error: cannot compute sizeof (int)
21446 See \`config.log' for more details." >&2;}
21447 { (exit 77); exit 77; }; }
21448 else
21449 ac_cv_sizeof_int=0
21450 fi ;;
21451 esac
21452 else
21453 cat >conftest.$ac_ext <<_ACEOF
21454 /* confdefs.h. */
21455 _ACEOF
21456 cat confdefs.h >>conftest.$ac_ext
21457 cat >>conftest.$ac_ext <<_ACEOF
21458 /* end confdefs.h. */
21459 $ac_includes_default
21460 typedef int ac__type_sizeof_;
21461 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
21462 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
21463 #include <stdio.h>
21464 #include <stdlib.h>
21466 main ()
21469 FILE *f = fopen ("conftest.val", "w");
21470 if (! f)
21471 return 1;
21472 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
21474 long int i = longval ();
21475 if (i != ((long int) (sizeof (ac__type_sizeof_))))
21476 return 1;
21477 fprintf (f, "%ld\n", i);
21479 else
21481 unsigned long int i = ulongval ();
21482 if (i != ((long int) (sizeof (ac__type_sizeof_))))
21483 return 1;
21484 fprintf (f, "%lu\n", i);
21486 return ferror (f) || fclose (f) != 0;
21489 return 0;
21491 _ACEOF
21492 rm -f conftest$ac_exeext
21493 if { (ac_try="$ac_link"
21494 case "(($ac_try" in
21495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21496 *) ac_try_echo=$ac_try;;
21497 esac
21498 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21499 (eval "$ac_link") 2>&5
21500 ac_status=$?
21501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21502 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21503 { (case "(($ac_try" in
21504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21505 *) ac_try_echo=$ac_try;;
21506 esac
21507 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21508 (eval "$ac_try") 2>&5
21509 ac_status=$?
21510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21511 (exit $ac_status); }; }; then
21512 ac_cv_sizeof_int=`cat conftest.val`
21513 else
21514 echo "$as_me: program exited with status $ac_status" >&5
21515 echo "$as_me: failed program was:" >&5
21516 sed 's/^/| /' conftest.$ac_ext >&5
21518 ( exit $ac_status )
21519 if test "$ac_cv_type_int" = yes; then
21520 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
21521 See \`config.log' for more details." >&5
21522 echo "$as_me: error: cannot compute sizeof (int)
21523 See \`config.log' for more details." >&2;}
21524 { (exit 77); exit 77; }; }
21525 else
21526 ac_cv_sizeof_int=0
21529 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21531 rm -f conftest.val
21533 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
21534 echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
21538 cat >>confdefs.h <<_ACEOF
21539 #define SIZEOF_INT $ac_cv_sizeof_int
21540 _ACEOF
21543 { echo "$as_me:$LINENO: checking for long" >&5
21544 echo $ECHO_N "checking for long... $ECHO_C" >&6; }
21545 if test "${ac_cv_type_long+set}" = set; then
21546 echo $ECHO_N "(cached) $ECHO_C" >&6
21547 else
21548 cat >conftest.$ac_ext <<_ACEOF
21549 /* confdefs.h. */
21550 _ACEOF
21551 cat confdefs.h >>conftest.$ac_ext
21552 cat >>conftest.$ac_ext <<_ACEOF
21553 /* end confdefs.h. */
21554 $ac_includes_default
21555 typedef long ac__type_new_;
21557 main ()
21559 if ((ac__type_new_ *) 0)
21560 return 0;
21561 if (sizeof (ac__type_new_))
21562 return 0;
21564 return 0;
21566 _ACEOF
21567 rm -f conftest.$ac_objext
21568 if { (ac_try="$ac_compile"
21569 case "(($ac_try" in
21570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21571 *) ac_try_echo=$ac_try;;
21572 esac
21573 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21574 (eval "$ac_compile") 2>conftest.er1
21575 ac_status=$?
21576 grep -v '^ *+' conftest.er1 >conftest.err
21577 rm -f conftest.er1
21578 cat conftest.err >&5
21579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21580 (exit $ac_status); } && {
21581 test -z "$ac_c_werror_flag" ||
21582 test ! -s conftest.err
21583 } && test -s conftest.$ac_objext; then
21584 ac_cv_type_long=yes
21585 else
21586 echo "$as_me: failed program was:" >&5
21587 sed 's/^/| /' conftest.$ac_ext >&5
21589 ac_cv_type_long=no
21592 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21594 { echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
21595 echo "${ECHO_T}$ac_cv_type_long" >&6; }
21597 # The cast to long int works around a bug in the HP C Compiler
21598 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21599 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21600 # This bug is HP SR number 8606223364.
21601 { echo "$as_me:$LINENO: checking size of long" >&5
21602 echo $ECHO_N "checking size of long... $ECHO_C" >&6; }
21603 if test "${ac_cv_sizeof_long+set}" = set; then
21604 echo $ECHO_N "(cached) $ECHO_C" >&6
21605 else
21606 if test "$cross_compiling" = yes; then
21607 # Depending upon the size, compute the lo and hi bounds.
21608 cat >conftest.$ac_ext <<_ACEOF
21609 /* confdefs.h. */
21610 _ACEOF
21611 cat confdefs.h >>conftest.$ac_ext
21612 cat >>conftest.$ac_ext <<_ACEOF
21613 /* end confdefs.h. */
21614 $ac_includes_default
21615 typedef long ac__type_sizeof_;
21617 main ()
21619 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
21620 test_array [0] = 0
21623 return 0;
21625 _ACEOF
21626 rm -f conftest.$ac_objext
21627 if { (ac_try="$ac_compile"
21628 case "(($ac_try" in
21629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21630 *) ac_try_echo=$ac_try;;
21631 esac
21632 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21633 (eval "$ac_compile") 2>conftest.er1
21634 ac_status=$?
21635 grep -v '^ *+' conftest.er1 >conftest.err
21636 rm -f conftest.er1
21637 cat conftest.err >&5
21638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21639 (exit $ac_status); } && {
21640 test -z "$ac_c_werror_flag" ||
21641 test ! -s conftest.err
21642 } && test -s conftest.$ac_objext; then
21643 ac_lo=0 ac_mid=0
21644 while :; do
21645 cat >conftest.$ac_ext <<_ACEOF
21646 /* confdefs.h. */
21647 _ACEOF
21648 cat confdefs.h >>conftest.$ac_ext
21649 cat >>conftest.$ac_ext <<_ACEOF
21650 /* end confdefs.h. */
21651 $ac_includes_default
21652 typedef long ac__type_sizeof_;
21654 main ()
21656 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
21657 test_array [0] = 0
21660 return 0;
21662 _ACEOF
21663 rm -f conftest.$ac_objext
21664 if { (ac_try="$ac_compile"
21665 case "(($ac_try" in
21666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21667 *) ac_try_echo=$ac_try;;
21668 esac
21669 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21670 (eval "$ac_compile") 2>conftest.er1
21671 ac_status=$?
21672 grep -v '^ *+' conftest.er1 >conftest.err
21673 rm -f conftest.er1
21674 cat conftest.err >&5
21675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21676 (exit $ac_status); } && {
21677 test -z "$ac_c_werror_flag" ||
21678 test ! -s conftest.err
21679 } && test -s conftest.$ac_objext; then
21680 ac_hi=$ac_mid; break
21681 else
21682 echo "$as_me: failed program was:" >&5
21683 sed 's/^/| /' conftest.$ac_ext >&5
21685 ac_lo=`expr $ac_mid + 1`
21686 if test $ac_lo -le $ac_mid; then
21687 ac_lo= ac_hi=
21688 break
21690 ac_mid=`expr 2 '*' $ac_mid + 1`
21693 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21694 done
21695 else
21696 echo "$as_me: failed program was:" >&5
21697 sed 's/^/| /' conftest.$ac_ext >&5
21699 cat >conftest.$ac_ext <<_ACEOF
21700 /* confdefs.h. */
21701 _ACEOF
21702 cat confdefs.h >>conftest.$ac_ext
21703 cat >>conftest.$ac_ext <<_ACEOF
21704 /* end confdefs.h. */
21705 $ac_includes_default
21706 typedef long ac__type_sizeof_;
21708 main ()
21710 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
21711 test_array [0] = 0
21714 return 0;
21716 _ACEOF
21717 rm -f conftest.$ac_objext
21718 if { (ac_try="$ac_compile"
21719 case "(($ac_try" in
21720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21721 *) ac_try_echo=$ac_try;;
21722 esac
21723 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21724 (eval "$ac_compile") 2>conftest.er1
21725 ac_status=$?
21726 grep -v '^ *+' conftest.er1 >conftest.err
21727 rm -f conftest.er1
21728 cat conftest.err >&5
21729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21730 (exit $ac_status); } && {
21731 test -z "$ac_c_werror_flag" ||
21732 test ! -s conftest.err
21733 } && test -s conftest.$ac_objext; then
21734 ac_hi=-1 ac_mid=-1
21735 while :; do
21736 cat >conftest.$ac_ext <<_ACEOF
21737 /* confdefs.h. */
21738 _ACEOF
21739 cat confdefs.h >>conftest.$ac_ext
21740 cat >>conftest.$ac_ext <<_ACEOF
21741 /* end confdefs.h. */
21742 $ac_includes_default
21743 typedef long ac__type_sizeof_;
21745 main ()
21747 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
21748 test_array [0] = 0
21751 return 0;
21753 _ACEOF
21754 rm -f conftest.$ac_objext
21755 if { (ac_try="$ac_compile"
21756 case "(($ac_try" in
21757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21758 *) ac_try_echo=$ac_try;;
21759 esac
21760 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21761 (eval "$ac_compile") 2>conftest.er1
21762 ac_status=$?
21763 grep -v '^ *+' conftest.er1 >conftest.err
21764 rm -f conftest.er1
21765 cat conftest.err >&5
21766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21767 (exit $ac_status); } && {
21768 test -z "$ac_c_werror_flag" ||
21769 test ! -s conftest.err
21770 } && test -s conftest.$ac_objext; then
21771 ac_lo=$ac_mid; break
21772 else
21773 echo "$as_me: failed program was:" >&5
21774 sed 's/^/| /' conftest.$ac_ext >&5
21776 ac_hi=`expr '(' $ac_mid ')' - 1`
21777 if test $ac_mid -le $ac_hi; then
21778 ac_lo= ac_hi=
21779 break
21781 ac_mid=`expr 2 '*' $ac_mid`
21784 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21785 done
21786 else
21787 echo "$as_me: failed program was:" >&5
21788 sed 's/^/| /' conftest.$ac_ext >&5
21790 ac_lo= ac_hi=
21793 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21796 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21797 # Binary search between lo and hi bounds.
21798 while test "x$ac_lo" != "x$ac_hi"; do
21799 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21800 cat >conftest.$ac_ext <<_ACEOF
21801 /* confdefs.h. */
21802 _ACEOF
21803 cat confdefs.h >>conftest.$ac_ext
21804 cat >>conftest.$ac_ext <<_ACEOF
21805 /* end confdefs.h. */
21806 $ac_includes_default
21807 typedef long ac__type_sizeof_;
21809 main ()
21811 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
21812 test_array [0] = 0
21815 return 0;
21817 _ACEOF
21818 rm -f conftest.$ac_objext
21819 if { (ac_try="$ac_compile"
21820 case "(($ac_try" in
21821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21822 *) ac_try_echo=$ac_try;;
21823 esac
21824 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21825 (eval "$ac_compile") 2>conftest.er1
21826 ac_status=$?
21827 grep -v '^ *+' conftest.er1 >conftest.err
21828 rm -f conftest.er1
21829 cat conftest.err >&5
21830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21831 (exit $ac_status); } && {
21832 test -z "$ac_c_werror_flag" ||
21833 test ! -s conftest.err
21834 } && test -s conftest.$ac_objext; then
21835 ac_hi=$ac_mid
21836 else
21837 echo "$as_me: failed program was:" >&5
21838 sed 's/^/| /' conftest.$ac_ext >&5
21840 ac_lo=`expr '(' $ac_mid ')' + 1`
21843 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21844 done
21845 case $ac_lo in
21846 ?*) ac_cv_sizeof_long=$ac_lo;;
21847 '') if test "$ac_cv_type_long" = yes; then
21848 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
21849 See \`config.log' for more details." >&5
21850 echo "$as_me: error: cannot compute sizeof (long)
21851 See \`config.log' for more details." >&2;}
21852 { (exit 77); exit 77; }; }
21853 else
21854 ac_cv_sizeof_long=0
21855 fi ;;
21856 esac
21857 else
21858 cat >conftest.$ac_ext <<_ACEOF
21859 /* confdefs.h. */
21860 _ACEOF
21861 cat confdefs.h >>conftest.$ac_ext
21862 cat >>conftest.$ac_ext <<_ACEOF
21863 /* end confdefs.h. */
21864 $ac_includes_default
21865 typedef long ac__type_sizeof_;
21866 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
21867 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
21868 #include <stdio.h>
21869 #include <stdlib.h>
21871 main ()
21874 FILE *f = fopen ("conftest.val", "w");
21875 if (! f)
21876 return 1;
21877 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
21879 long int i = longval ();
21880 if (i != ((long int) (sizeof (ac__type_sizeof_))))
21881 return 1;
21882 fprintf (f, "%ld\n", i);
21884 else
21886 unsigned long int i = ulongval ();
21887 if (i != ((long int) (sizeof (ac__type_sizeof_))))
21888 return 1;
21889 fprintf (f, "%lu\n", i);
21891 return ferror (f) || fclose (f) != 0;
21894 return 0;
21896 _ACEOF
21897 rm -f conftest$ac_exeext
21898 if { (ac_try="$ac_link"
21899 case "(($ac_try" in
21900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21901 *) ac_try_echo=$ac_try;;
21902 esac
21903 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21904 (eval "$ac_link") 2>&5
21905 ac_status=$?
21906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21907 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21908 { (case "(($ac_try" in
21909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21910 *) ac_try_echo=$ac_try;;
21911 esac
21912 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21913 (eval "$ac_try") 2>&5
21914 ac_status=$?
21915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21916 (exit $ac_status); }; }; then
21917 ac_cv_sizeof_long=`cat conftest.val`
21918 else
21919 echo "$as_me: program exited with status $ac_status" >&5
21920 echo "$as_me: failed program was:" >&5
21921 sed 's/^/| /' conftest.$ac_ext >&5
21923 ( exit $ac_status )
21924 if test "$ac_cv_type_long" = yes; then
21925 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
21926 See \`config.log' for more details." >&5
21927 echo "$as_me: error: cannot compute sizeof (long)
21928 See \`config.log' for more details." >&2;}
21929 { (exit 77); exit 77; }; }
21930 else
21931 ac_cv_sizeof_long=0
21934 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21936 rm -f conftest.val
21938 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
21939 echo "${ECHO_T}$ac_cv_sizeof_long" >&6; }
21943 cat >>confdefs.h <<_ACEOF
21944 #define SIZEOF_LONG $ac_cv_sizeof_long
21945 _ACEOF
21948 { echo "$as_me:$LINENO: checking for long long" >&5
21949 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
21950 if test "${ac_cv_type_long_long+set}" = set; then
21951 echo $ECHO_N "(cached) $ECHO_C" >&6
21952 else
21953 cat >conftest.$ac_ext <<_ACEOF
21954 /* confdefs.h. */
21955 _ACEOF
21956 cat confdefs.h >>conftest.$ac_ext
21957 cat >>conftest.$ac_ext <<_ACEOF
21958 /* end confdefs.h. */
21959 $ac_includes_default
21960 typedef long long ac__type_new_;
21962 main ()
21964 if ((ac__type_new_ *) 0)
21965 return 0;
21966 if (sizeof (ac__type_new_))
21967 return 0;
21969 return 0;
21971 _ACEOF
21972 rm -f conftest.$ac_objext
21973 if { (ac_try="$ac_compile"
21974 case "(($ac_try" in
21975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21976 *) ac_try_echo=$ac_try;;
21977 esac
21978 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21979 (eval "$ac_compile") 2>conftest.er1
21980 ac_status=$?
21981 grep -v '^ *+' conftest.er1 >conftest.err
21982 rm -f conftest.er1
21983 cat conftest.err >&5
21984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21985 (exit $ac_status); } && {
21986 test -z "$ac_c_werror_flag" ||
21987 test ! -s conftest.err
21988 } && test -s conftest.$ac_objext; then
21989 ac_cv_type_long_long=yes
21990 else
21991 echo "$as_me: failed program was:" >&5
21992 sed 's/^/| /' conftest.$ac_ext >&5
21994 ac_cv_type_long_long=no
21997 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21999 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
22000 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
22002 # The cast to long int works around a bug in the HP C Compiler
22003 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22004 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22005 # This bug is HP SR number 8606223364.
22006 { echo "$as_me:$LINENO: checking size of long long" >&5
22007 echo $ECHO_N "checking size of long long... $ECHO_C" >&6; }
22008 if test "${ac_cv_sizeof_long_long+set}" = set; then
22009 echo $ECHO_N "(cached) $ECHO_C" >&6
22010 else
22011 if test "$cross_compiling" = yes; then
22012 # Depending upon the size, compute the lo and hi bounds.
22013 cat >conftest.$ac_ext <<_ACEOF
22014 /* confdefs.h. */
22015 _ACEOF
22016 cat confdefs.h >>conftest.$ac_ext
22017 cat >>conftest.$ac_ext <<_ACEOF
22018 /* end confdefs.h. */
22019 $ac_includes_default
22020 typedef long long ac__type_sizeof_;
22022 main ()
22024 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
22025 test_array [0] = 0
22028 return 0;
22030 _ACEOF
22031 rm -f conftest.$ac_objext
22032 if { (ac_try="$ac_compile"
22033 case "(($ac_try" in
22034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22035 *) ac_try_echo=$ac_try;;
22036 esac
22037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22038 (eval "$ac_compile") 2>conftest.er1
22039 ac_status=$?
22040 grep -v '^ *+' conftest.er1 >conftest.err
22041 rm -f conftest.er1
22042 cat conftest.err >&5
22043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22044 (exit $ac_status); } && {
22045 test -z "$ac_c_werror_flag" ||
22046 test ! -s conftest.err
22047 } && test -s conftest.$ac_objext; then
22048 ac_lo=0 ac_mid=0
22049 while :; do
22050 cat >conftest.$ac_ext <<_ACEOF
22051 /* confdefs.h. */
22052 _ACEOF
22053 cat confdefs.h >>conftest.$ac_ext
22054 cat >>conftest.$ac_ext <<_ACEOF
22055 /* end confdefs.h. */
22056 $ac_includes_default
22057 typedef long long ac__type_sizeof_;
22059 main ()
22061 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
22062 test_array [0] = 0
22065 return 0;
22067 _ACEOF
22068 rm -f conftest.$ac_objext
22069 if { (ac_try="$ac_compile"
22070 case "(($ac_try" in
22071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22072 *) ac_try_echo=$ac_try;;
22073 esac
22074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22075 (eval "$ac_compile") 2>conftest.er1
22076 ac_status=$?
22077 grep -v '^ *+' conftest.er1 >conftest.err
22078 rm -f conftest.er1
22079 cat conftest.err >&5
22080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22081 (exit $ac_status); } && {
22082 test -z "$ac_c_werror_flag" ||
22083 test ! -s conftest.err
22084 } && test -s conftest.$ac_objext; then
22085 ac_hi=$ac_mid; break
22086 else
22087 echo "$as_me: failed program was:" >&5
22088 sed 's/^/| /' conftest.$ac_ext >&5
22090 ac_lo=`expr $ac_mid + 1`
22091 if test $ac_lo -le $ac_mid; then
22092 ac_lo= ac_hi=
22093 break
22095 ac_mid=`expr 2 '*' $ac_mid + 1`
22098 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22099 done
22100 else
22101 echo "$as_me: failed program was:" >&5
22102 sed 's/^/| /' conftest.$ac_ext >&5
22104 cat >conftest.$ac_ext <<_ACEOF
22105 /* confdefs.h. */
22106 _ACEOF
22107 cat confdefs.h >>conftest.$ac_ext
22108 cat >>conftest.$ac_ext <<_ACEOF
22109 /* end confdefs.h. */
22110 $ac_includes_default
22111 typedef long long ac__type_sizeof_;
22113 main ()
22115 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
22116 test_array [0] = 0
22119 return 0;
22121 _ACEOF
22122 rm -f conftest.$ac_objext
22123 if { (ac_try="$ac_compile"
22124 case "(($ac_try" in
22125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22126 *) ac_try_echo=$ac_try;;
22127 esac
22128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22129 (eval "$ac_compile") 2>conftest.er1
22130 ac_status=$?
22131 grep -v '^ *+' conftest.er1 >conftest.err
22132 rm -f conftest.er1
22133 cat conftest.err >&5
22134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22135 (exit $ac_status); } && {
22136 test -z "$ac_c_werror_flag" ||
22137 test ! -s conftest.err
22138 } && test -s conftest.$ac_objext; then
22139 ac_hi=-1 ac_mid=-1
22140 while :; do
22141 cat >conftest.$ac_ext <<_ACEOF
22142 /* confdefs.h. */
22143 _ACEOF
22144 cat confdefs.h >>conftest.$ac_ext
22145 cat >>conftest.$ac_ext <<_ACEOF
22146 /* end confdefs.h. */
22147 $ac_includes_default
22148 typedef long long ac__type_sizeof_;
22150 main ()
22152 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
22153 test_array [0] = 0
22156 return 0;
22158 _ACEOF
22159 rm -f conftest.$ac_objext
22160 if { (ac_try="$ac_compile"
22161 case "(($ac_try" in
22162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22163 *) ac_try_echo=$ac_try;;
22164 esac
22165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22166 (eval "$ac_compile") 2>conftest.er1
22167 ac_status=$?
22168 grep -v '^ *+' conftest.er1 >conftest.err
22169 rm -f conftest.er1
22170 cat conftest.err >&5
22171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22172 (exit $ac_status); } && {
22173 test -z "$ac_c_werror_flag" ||
22174 test ! -s conftest.err
22175 } && test -s conftest.$ac_objext; then
22176 ac_lo=$ac_mid; break
22177 else
22178 echo "$as_me: failed program was:" >&5
22179 sed 's/^/| /' conftest.$ac_ext >&5
22181 ac_hi=`expr '(' $ac_mid ')' - 1`
22182 if test $ac_mid -le $ac_hi; then
22183 ac_lo= ac_hi=
22184 break
22186 ac_mid=`expr 2 '*' $ac_mid`
22189 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22190 done
22191 else
22192 echo "$as_me: failed program was:" >&5
22193 sed 's/^/| /' conftest.$ac_ext >&5
22195 ac_lo= ac_hi=
22198 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22201 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22202 # Binary search between lo and hi bounds.
22203 while test "x$ac_lo" != "x$ac_hi"; do
22204 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
22205 cat >conftest.$ac_ext <<_ACEOF
22206 /* confdefs.h. */
22207 _ACEOF
22208 cat confdefs.h >>conftest.$ac_ext
22209 cat >>conftest.$ac_ext <<_ACEOF
22210 /* end confdefs.h. */
22211 $ac_includes_default
22212 typedef long long ac__type_sizeof_;
22214 main ()
22216 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
22217 test_array [0] = 0
22220 return 0;
22222 _ACEOF
22223 rm -f conftest.$ac_objext
22224 if { (ac_try="$ac_compile"
22225 case "(($ac_try" in
22226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22227 *) ac_try_echo=$ac_try;;
22228 esac
22229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22230 (eval "$ac_compile") 2>conftest.er1
22231 ac_status=$?
22232 grep -v '^ *+' conftest.er1 >conftest.err
22233 rm -f conftest.er1
22234 cat conftest.err >&5
22235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22236 (exit $ac_status); } && {
22237 test -z "$ac_c_werror_flag" ||
22238 test ! -s conftest.err
22239 } && test -s conftest.$ac_objext; then
22240 ac_hi=$ac_mid
22241 else
22242 echo "$as_me: failed program was:" >&5
22243 sed 's/^/| /' conftest.$ac_ext >&5
22245 ac_lo=`expr '(' $ac_mid ')' + 1`
22248 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22249 done
22250 case $ac_lo in
22251 ?*) ac_cv_sizeof_long_long=$ac_lo;;
22252 '') if test "$ac_cv_type_long_long" = yes; then
22253 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
22254 See \`config.log' for more details." >&5
22255 echo "$as_me: error: cannot compute sizeof (long long)
22256 See \`config.log' for more details." >&2;}
22257 { (exit 77); exit 77; }; }
22258 else
22259 ac_cv_sizeof_long_long=0
22260 fi ;;
22261 esac
22262 else
22263 cat >conftest.$ac_ext <<_ACEOF
22264 /* confdefs.h. */
22265 _ACEOF
22266 cat confdefs.h >>conftest.$ac_ext
22267 cat >>conftest.$ac_ext <<_ACEOF
22268 /* end confdefs.h. */
22269 $ac_includes_default
22270 typedef long long ac__type_sizeof_;
22271 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
22272 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
22273 #include <stdio.h>
22274 #include <stdlib.h>
22276 main ()
22279 FILE *f = fopen ("conftest.val", "w");
22280 if (! f)
22281 return 1;
22282 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
22284 long int i = longval ();
22285 if (i != ((long int) (sizeof (ac__type_sizeof_))))
22286 return 1;
22287 fprintf (f, "%ld\n", i);
22289 else
22291 unsigned long int i = ulongval ();
22292 if (i != ((long int) (sizeof (ac__type_sizeof_))))
22293 return 1;
22294 fprintf (f, "%lu\n", i);
22296 return ferror (f) || fclose (f) != 0;
22299 return 0;
22301 _ACEOF
22302 rm -f conftest$ac_exeext
22303 if { (ac_try="$ac_link"
22304 case "(($ac_try" in
22305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22306 *) ac_try_echo=$ac_try;;
22307 esac
22308 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22309 (eval "$ac_link") 2>&5
22310 ac_status=$?
22311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22312 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22313 { (case "(($ac_try" in
22314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22315 *) ac_try_echo=$ac_try;;
22316 esac
22317 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22318 (eval "$ac_try") 2>&5
22319 ac_status=$?
22320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22321 (exit $ac_status); }; }; then
22322 ac_cv_sizeof_long_long=`cat conftest.val`
22323 else
22324 echo "$as_me: program exited with status $ac_status" >&5
22325 echo "$as_me: failed program was:" >&5
22326 sed 's/^/| /' conftest.$ac_ext >&5
22328 ( exit $ac_status )
22329 if test "$ac_cv_type_long_long" = yes; then
22330 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
22331 See \`config.log' for more details." >&5
22332 echo "$as_me: error: cannot compute sizeof (long long)
22333 See \`config.log' for more details." >&2;}
22334 { (exit 77); exit 77; }; }
22335 else
22336 ac_cv_sizeof_long_long=0
22339 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22341 rm -f conftest.val
22343 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
22344 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6; }
22348 cat >>confdefs.h <<_ACEOF
22349 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
22350 _ACEOF
22355 if test x$has_cv_int16_t = "xyes" ; then
22356 SIZE16="int16_t"
22357 else
22358 case 2 in
22359 $ac_cv_sizeof_short) SIZE16="short";;
22360 $ac_cv_sizeof_int) SIZE16="int";;
22361 esac
22364 if test x$has_cv_int32_t = "xyes" ; then
22365 SIZE32="int32_t"
22366 else
22367 case 4 in
22368 $ac_cv_sizeof_short) SIZE32="short";;
22369 $ac_cv_sizeof_int) SIZE32="int";;
22370 $ac_cv_sizeof_long) SIZE32="long";;
22371 esac
22374 if test x$has_cv_uint32_t = "xyes" ; then
22375 USIZE32="uint32_t"
22376 else
22377 if test x$has_cv_u_int32_t = "xyes" ; then
22378 USIZE32="u_int32_t"
22379 else
22380 case 4 in
22381 $ac_cv_sizeof_short) USIZE32="unsigned short";;
22382 $ac_cv_sizeof_int) USIZE32="unsigned int";;
22383 $ac_cv_sizeof_long) USIZE32="unsigned long";;
22384 esac
22388 if test x$has_cv_uint16_t = "xyes" ; then
22389 USIZE16="uint16_t"
22390 else
22391 if test x$has_cv_u_int16_t = "xyes" ; then
22392 USIZE16="u_int16_t"
22393 else
22394 case 2 in
22395 $ac_cv_sizeof_short) USIZE16="unsigned short";;
22396 $ac_cv_sizeof_int) USIZE16="unsigned int";;
22397 $ac_cv_sizeof_long) USIZE16="unsigned long";;
22398 esac
22402 if test x$has_cv_int64_t = "xyes" ; then
22403 SIZE64="int64_t"
22404 else
22405 case 8 in
22406 $ac_cv_sizeof_int) SIZE64="int";;
22407 $ac_cv_sizeof_long) SIZE64="long";;
22408 $ac_cv_sizeof_long_long) SIZE64="long long";;
22409 esac
22412 if test -z "$SIZE16"; then
22413 { { echo "$as_me:$LINENO: error: No 16 bit type found on this platform!" >&5
22414 echo "$as_me: error: No 16 bit type found on this platform!" >&2;}
22415 { (exit 1); exit 1; }; }
22417 if test -z "$USIZE16"; then
22418 { { echo "$as_me:$LINENO: error: No unsigned 16 bit type found on this platform!" >&5
22419 echo "$as_me: error: No unsigned 16 bit type found on this platform!" >&2;}
22420 { (exit 1); exit 1; }; }
22422 if test -z "$SIZE32"; then
22423 { { echo "$as_me:$LINENO: error: No 32 bit type found on this platform!" >&5
22424 echo "$as_me: error: No 32 bit type found on this platform!" >&2;}
22425 { (exit 1); exit 1; }; }
22427 if test -z "$USIZE32"; then
22428 { { echo "$as_me:$LINENO: error: No unsigned 32 bit type found on this platform!" >&5
22429 echo "$as_me: error: No unsigned 32 bit type found on this platform!" >&2;}
22430 { (exit 1); exit 1; }; }
22432 if test -z "$SIZE64"; then
22433 { echo "$as_me:$LINENO: WARNING: No 64 bit type found on this platform!" >&5
22434 echo "$as_me: WARNING: No 64 bit type found on this platform!" >&2;}
22437 { echo "$as_me:$LINENO: checking for working memcmp" >&5
22438 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6; }
22439 if test "${ac_cv_func_memcmp_working+set}" = set; then
22440 echo $ECHO_N "(cached) $ECHO_C" >&6
22441 else
22442 if test "$cross_compiling" = yes; then
22443 ac_cv_func_memcmp_working=no
22444 else
22445 cat >conftest.$ac_ext <<_ACEOF
22446 /* confdefs.h. */
22447 _ACEOF
22448 cat confdefs.h >>conftest.$ac_ext
22449 cat >>conftest.$ac_ext <<_ACEOF
22450 /* end confdefs.h. */
22451 $ac_includes_default
22453 main ()
22456 /* Some versions of memcmp are not 8-bit clean. */
22457 char c0 = '\100', c1 = '\200', c2 = '\201';
22458 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
22459 return 1;
22461 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
22462 or more and with at least one buffer not starting on a 4-byte boundary.
22463 William Lewis provided this test program. */
22465 char foo[21];
22466 char bar[21];
22467 int i;
22468 for (i = 0; i < 4; i++)
22470 char *a = foo + i;
22471 char *b = bar + i;
22472 strcpy (a, "--------01111111");
22473 strcpy (b, "--------10000000");
22474 if (memcmp (a, b, 16) >= 0)
22475 return 1;
22477 return 0;
22481 return 0;
22483 _ACEOF
22484 rm -f conftest$ac_exeext
22485 if { (ac_try="$ac_link"
22486 case "(($ac_try" in
22487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22488 *) ac_try_echo=$ac_try;;
22489 esac
22490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22491 (eval "$ac_link") 2>&5
22492 ac_status=$?
22493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22494 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22495 { (case "(($ac_try" in
22496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22497 *) ac_try_echo=$ac_try;;
22498 esac
22499 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22500 (eval "$ac_try") 2>&5
22501 ac_status=$?
22502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22503 (exit $ac_status); }; }; then
22504 ac_cv_func_memcmp_working=yes
22505 else
22506 echo "$as_me: program exited with status $ac_status" >&5
22507 echo "$as_me: failed program was:" >&5
22508 sed 's/^/| /' conftest.$ac_ext >&5
22510 ( exit $ac_status )
22511 ac_cv_func_memcmp_working=no
22513 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22518 { echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
22519 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6; }
22520 test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
22521 *" memcmp.$ac_objext "* ) ;;
22522 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
22524 esac
22541 ac_config_files="$ac_config_files Makefile src/Makefile doc/Makefile doc/libogg/Makefile include/Makefile include/ogg/Makefile include/ogg/config_types.h libogg.spec ogg.pc ogg-uninstalled.pc"
22543 cat >confcache <<\_ACEOF
22544 # This file is a shell script that caches the results of configure
22545 # tests run on this system so they can be shared between configure
22546 # scripts and configure runs, see configure's option --config-cache.
22547 # It is not useful on other systems. If it contains results you don't
22548 # want to keep, you may remove or edit it.
22550 # config.status only pays attention to the cache file if you give it
22551 # the --recheck option to rerun configure.
22553 # `ac_cv_env_foo' variables (set or unset) will be overridden when
22554 # loading this file, other *unset* `ac_cv_foo' will be assigned the
22555 # following values.
22557 _ACEOF
22559 # The following way of writing the cache mishandles newlines in values,
22560 # but we know of no workaround that is simple, portable, and efficient.
22561 # So, we kill variables containing newlines.
22562 # Ultrix sh set writes to stderr and can't be redirected directly,
22563 # and sets the high bit in the cache file unless we assign to the vars.
22565 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
22566 eval ac_val=\$$ac_var
22567 case $ac_val in #(
22568 *${as_nl}*)
22569 case $ac_var in #(
22570 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
22571 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
22572 esac
22573 case $ac_var in #(
22574 _ | IFS | as_nl) ;; #(
22575 *) $as_unset $ac_var ;;
22576 esac ;;
22577 esac
22578 done
22580 (set) 2>&1 |
22581 case $as_nl`(ac_space=' '; set) 2>&1` in #(
22582 *${as_nl}ac_space=\ *)
22583 # `set' does not quote correctly, so add quotes (double-quote
22584 # substitution turns \\\\ into \\, and sed turns \\ into \).
22585 sed -n \
22586 "s/'/'\\\\''/g;
22587 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22588 ;; #(
22590 # `set' quotes correctly as required by POSIX, so do not add quotes.
22591 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
22593 esac |
22594 sort
22596 sed '
22597 /^ac_cv_env_/b end
22598 t clear
22599 :clear
22600 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22601 t end
22602 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22603 :end' >>confcache
22604 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
22605 if test -w "$cache_file"; then
22606 test "x$cache_file" != "x/dev/null" &&
22607 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
22608 echo "$as_me: updating cache $cache_file" >&6;}
22609 cat confcache >$cache_file
22610 else
22611 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
22612 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
22615 rm -f confcache
22617 test "x$prefix" = xNONE && prefix=$ac_default_prefix
22618 # Let make expand exec_prefix.
22619 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22621 DEFS=-DHAVE_CONFIG_H
22623 ac_libobjs=
22624 ac_ltlibobjs=
22625 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
22626 # 1. Remove the extension, and $U if already installed.
22627 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
22628 ac_i=`echo "$ac_i" | sed "$ac_script"`
22629 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
22630 # will be set to the directory where LIBOBJS objects are built.
22631 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
22632 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
22633 done
22634 LIBOBJS=$ac_libobjs
22636 LTLIBOBJS=$ac_ltlibobjs
22639 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
22640 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
22641 Usually this means the macro was only invoked conditionally." >&5
22642 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
22643 Usually this means the macro was only invoked conditionally." >&2;}
22644 { (exit 1); exit 1; }; }
22646 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
22647 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
22648 Usually this means the macro was only invoked conditionally." >&5
22649 echo "$as_me: error: conditional \"AMDEP\" was never defined.
22650 Usually this means the macro was only invoked conditionally." >&2;}
22651 { (exit 1); exit 1; }; }
22653 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
22654 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
22655 Usually this means the macro was only invoked conditionally." >&5
22656 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
22657 Usually this means the macro was only invoked conditionally." >&2;}
22658 { (exit 1); exit 1; }; }
22660 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
22661 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
22662 Usually this means the macro was only invoked conditionally." >&5
22663 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
22664 Usually this means the macro was only invoked conditionally." >&2;}
22665 { (exit 1); exit 1; }; }
22668 : ${CONFIG_STATUS=./config.status}
22669 ac_clean_files_save=$ac_clean_files
22670 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
22671 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
22672 echo "$as_me: creating $CONFIG_STATUS" >&6;}
22673 cat >$CONFIG_STATUS <<_ACEOF
22674 #! $SHELL
22675 # Generated by $as_me.
22676 # Run this file to recreate the current configuration.
22677 # Compiler output produced by configure, useful for debugging
22678 # configure, is in config.log if it exists.
22680 debug=false
22681 ac_cs_recheck=false
22682 ac_cs_silent=false
22683 SHELL=\${CONFIG_SHELL-$SHELL}
22684 _ACEOF
22686 cat >>$CONFIG_STATUS <<\_ACEOF
22687 ## --------------------- ##
22688 ## M4sh Initialization. ##
22689 ## --------------------- ##
22691 # Be more Bourne compatible
22692 DUALCASE=1; export DUALCASE # for MKS sh
22693 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22694 emulate sh
22695 NULLCMD=:
22696 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22697 # is contrary to our usage. Disable this feature.
22698 alias -g '${1+"$@"}'='"$@"'
22699 setopt NO_GLOB_SUBST
22700 else
22701 case `(set -o) 2>/dev/null` in
22702 *posix*) set -o posix ;;
22703 esac
22710 # PATH needs CR
22711 # Avoid depending upon Character Ranges.
22712 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
22713 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22714 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
22715 as_cr_digits='0123456789'
22716 as_cr_alnum=$as_cr_Letters$as_cr_digits
22718 # The user is always right.
22719 if test "${PATH_SEPARATOR+set}" != set; then
22720 echo "#! /bin/sh" >conf$$.sh
22721 echo "exit 0" >>conf$$.sh
22722 chmod +x conf$$.sh
22723 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
22724 PATH_SEPARATOR=';'
22725 else
22726 PATH_SEPARATOR=:
22728 rm -f conf$$.sh
22731 # Support unset when possible.
22732 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
22733 as_unset=unset
22734 else
22735 as_unset=false
22739 # IFS
22740 # We need space, tab and new line, in precisely that order. Quoting is
22741 # there to prevent editors from complaining about space-tab.
22742 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
22743 # splitting by setting IFS to empty value.)
22744 as_nl='
22746 IFS=" "" $as_nl"
22748 # Find who we are. Look in the path if we contain no directory separator.
22749 case $0 in
22750 *[\\/]* ) as_myself=$0 ;;
22751 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22752 for as_dir in $PATH
22754 IFS=$as_save_IFS
22755 test -z "$as_dir" && as_dir=.
22756 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
22757 done
22758 IFS=$as_save_IFS
22761 esac
22762 # We did not find ourselves, most probably we were run as `sh COMMAND'
22763 # in which case we are not to be found in the path.
22764 if test "x$as_myself" = x; then
22765 as_myself=$0
22767 if test ! -f "$as_myself"; then
22768 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
22769 { (exit 1); exit 1; }
22772 # Work around bugs in pre-3.0 UWIN ksh.
22773 for as_var in ENV MAIL MAILPATH
22774 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
22775 done
22776 PS1='$ '
22777 PS2='> '
22778 PS4='+ '
22780 # NLS nuisances.
22781 for as_var in \
22782 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
22783 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
22784 LC_TELEPHONE LC_TIME
22786 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
22787 eval $as_var=C; export $as_var
22788 else
22789 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
22791 done
22793 # Required to use basename.
22794 if expr a : '\(a\)' >/dev/null 2>&1 &&
22795 test "X`expr 00001 : '.*\(...\)'`" = X001; then
22796 as_expr=expr
22797 else
22798 as_expr=false
22801 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
22802 as_basename=basename
22803 else
22804 as_basename=false
22808 # Name of the executable.
22809 as_me=`$as_basename -- "$0" ||
22810 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22811 X"$0" : 'X\(//\)$' \| \
22812 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
22813 echo X/"$0" |
22814 sed '/^.*\/\([^/][^/]*\)\/*$/{
22815 s//\1/
22818 /^X\/\(\/\/\)$/{
22819 s//\1/
22822 /^X\/\(\/\).*/{
22823 s//\1/
22826 s/.*/./; q'`
22828 # CDPATH.
22829 $as_unset CDPATH
22833 as_lineno_1=$LINENO
22834 as_lineno_2=$LINENO
22835 test "x$as_lineno_1" != "x$as_lineno_2" &&
22836 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
22838 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
22839 # uniformly replaced by the line number. The first 'sed' inserts a
22840 # line-number line after each line using $LINENO; the second 'sed'
22841 # does the real work. The second script uses 'N' to pair each
22842 # line-number line with the line containing $LINENO, and appends
22843 # trailing '-' during substitution so that $LINENO is not a special
22844 # case at line end.
22845 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
22846 # scripts with optimization help from Paolo Bonzini. Blame Lee
22847 # E. McMahon (1931-1989) for sed's syntax. :-)
22848 sed -n '
22850 /[$]LINENO/=
22851 ' <$as_myself |
22852 sed '
22853 s/[$]LINENO.*/&-/
22854 t lineno
22856 :lineno
22858 :loop
22859 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
22860 t loop
22861 s/-\n.*//
22862 ' >$as_me.lineno &&
22863 chmod +x "$as_me.lineno" ||
22864 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
22865 { (exit 1); exit 1; }; }
22867 # Don't try to exec as it changes $[0], causing all sort of problems
22868 # (the dirname of $[0] is not the place where we might find the
22869 # original and so on. Autoconf is especially sensitive to this).
22870 . "./$as_me.lineno"
22871 # Exit status is that of the last command.
22872 exit
22876 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
22877 as_dirname=dirname
22878 else
22879 as_dirname=false
22882 ECHO_C= ECHO_N= ECHO_T=
22883 case `echo -n x` in
22884 -n*)
22885 case `echo 'x\c'` in
22886 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
22887 *) ECHO_C='\c';;
22888 esac;;
22890 ECHO_N='-n';;
22891 esac
22893 if expr a : '\(a\)' >/dev/null 2>&1 &&
22894 test "X`expr 00001 : '.*\(...\)'`" = X001; then
22895 as_expr=expr
22896 else
22897 as_expr=false
22900 rm -f conf$$ conf$$.exe conf$$.file
22901 if test -d conf$$.dir; then
22902 rm -f conf$$.dir/conf$$.file
22903 else
22904 rm -f conf$$.dir
22905 mkdir conf$$.dir
22907 echo >conf$$.file
22908 if ln -s conf$$.file conf$$ 2>/dev/null; then
22909 as_ln_s='ln -s'
22910 # ... but there are two gotchas:
22911 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
22912 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
22913 # In both cases, we have to default to `cp -p'.
22914 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
22915 as_ln_s='cp -p'
22916 elif ln conf$$.file conf$$ 2>/dev/null; then
22917 as_ln_s=ln
22918 else
22919 as_ln_s='cp -p'
22921 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
22922 rmdir conf$$.dir 2>/dev/null
22924 if mkdir -p . 2>/dev/null; then
22925 as_mkdir_p=:
22926 else
22927 test -d ./-p && rmdir ./-p
22928 as_mkdir_p=false
22931 if test -x / >/dev/null 2>&1; then
22932 as_test_x='test -x'
22933 else
22934 if ls -dL / >/dev/null 2>&1; then
22935 as_ls_L_option=L
22936 else
22937 as_ls_L_option=
22939 as_test_x='
22940 eval sh -c '\''
22941 if test -d "$1"; then
22942 test -d "$1/.";
22943 else
22944 case $1 in
22945 -*)set "./$1";;
22946 esac;
22947 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
22948 ???[sx]*):;;*)false;;esac;fi
22949 '\'' sh
22952 as_executable_p=$as_test_x
22954 # Sed expression to map a string onto a valid CPP name.
22955 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
22957 # Sed expression to map a string onto a valid variable name.
22958 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
22961 exec 6>&1
22963 # Save the log message, to keep $[0] and so on meaningful, and to
22964 # report actual input values of CONFIG_FILES etc. instead of their
22965 # values after options handling.
22966 ac_log="
22967 This file was extended by $as_me, which was
22968 generated by GNU Autoconf 2.61. Invocation command line was
22970 CONFIG_FILES = $CONFIG_FILES
22971 CONFIG_HEADERS = $CONFIG_HEADERS
22972 CONFIG_LINKS = $CONFIG_LINKS
22973 CONFIG_COMMANDS = $CONFIG_COMMANDS
22974 $ $0 $@
22976 on `(hostname || uname -n) 2>/dev/null | sed 1q`
22979 _ACEOF
22981 cat >>$CONFIG_STATUS <<_ACEOF
22982 # Files that config.status was made for.
22983 config_files="$ac_config_files"
22984 config_headers="$ac_config_headers"
22985 config_commands="$ac_config_commands"
22987 _ACEOF
22989 cat >>$CONFIG_STATUS <<\_ACEOF
22990 ac_cs_usage="\
22991 \`$as_me' instantiates files from templates according to the
22992 current configuration.
22994 Usage: $0 [OPTIONS] [FILE]...
22996 -h, --help print this help, then exit
22997 -V, --version print version number and configuration settings, then exit
22998 -q, --quiet do not print progress messages
22999 -d, --debug don't remove temporary files
23000 --recheck update $as_me by reconfiguring in the same conditions
23001 --file=FILE[:TEMPLATE]
23002 instantiate the configuration file FILE
23003 --header=FILE[:TEMPLATE]
23004 instantiate the configuration header FILE
23006 Configuration files:
23007 $config_files
23009 Configuration headers:
23010 $config_headers
23012 Configuration commands:
23013 $config_commands
23015 Report bugs to <bug-autoconf@gnu.org>."
23017 _ACEOF
23018 cat >>$CONFIG_STATUS <<_ACEOF
23019 ac_cs_version="\\
23020 config.status
23021 configured by $0, generated by GNU Autoconf 2.61,
23022 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
23024 Copyright (C) 2006 Free Software Foundation, Inc.
23025 This config.status script is free software; the Free Software Foundation
23026 gives unlimited permission to copy, distribute and modify it."
23028 ac_pwd='$ac_pwd'
23029 srcdir='$srcdir'
23030 INSTALL='$INSTALL'
23031 MKDIR_P='$MKDIR_P'
23032 _ACEOF
23034 cat >>$CONFIG_STATUS <<\_ACEOF
23035 # If no file are specified by the user, then we need to provide default
23036 # value. By we need to know if files were specified by the user.
23037 ac_need_defaults=:
23038 while test $# != 0
23040 case $1 in
23041 --*=*)
23042 ac_option=`expr "X$1" : 'X\([^=]*\)='`
23043 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
23044 ac_shift=:
23047 ac_option=$1
23048 ac_optarg=$2
23049 ac_shift=shift
23051 esac
23053 case $ac_option in
23054 # Handling of the options.
23055 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
23056 ac_cs_recheck=: ;;
23057 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
23058 echo "$ac_cs_version"; exit ;;
23059 --debug | --debu | --deb | --de | --d | -d )
23060 debug=: ;;
23061 --file | --fil | --fi | --f )
23062 $ac_shift
23063 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
23064 ac_need_defaults=false;;
23065 --header | --heade | --head | --hea )
23066 $ac_shift
23067 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
23068 ac_need_defaults=false;;
23069 --he | --h)
23070 # Conflict between --help and --header
23071 { echo "$as_me: error: ambiguous option: $1
23072 Try \`$0 --help' for more information." >&2
23073 { (exit 1); exit 1; }; };;
23074 --help | --hel | -h )
23075 echo "$ac_cs_usage"; exit ;;
23076 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
23077 | -silent | --silent | --silen | --sile | --sil | --si | --s)
23078 ac_cs_silent=: ;;
23080 # This is an error.
23081 -*) { echo "$as_me: error: unrecognized option: $1
23082 Try \`$0 --help' for more information." >&2
23083 { (exit 1); exit 1; }; } ;;
23085 *) ac_config_targets="$ac_config_targets $1"
23086 ac_need_defaults=false ;;
23088 esac
23089 shift
23090 done
23092 ac_configure_extra_args=
23094 if $ac_cs_silent; then
23095 exec 6>/dev/null
23096 ac_configure_extra_args="$ac_configure_extra_args --silent"
23099 _ACEOF
23100 cat >>$CONFIG_STATUS <<_ACEOF
23101 if \$ac_cs_recheck; then
23102 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
23103 CONFIG_SHELL=$SHELL
23104 export CONFIG_SHELL
23105 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
23108 _ACEOF
23109 cat >>$CONFIG_STATUS <<\_ACEOF
23110 exec 5>>config.log
23112 echo
23113 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
23114 ## Running $as_me. ##
23115 _ASBOX
23116 echo "$ac_log"
23117 } >&5
23119 _ACEOF
23120 cat >>$CONFIG_STATUS <<_ACEOF
23122 # INIT-COMMANDS
23124 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
23126 _ACEOF
23128 cat >>$CONFIG_STATUS <<\_ACEOF
23130 # Handling of arguments.
23131 for ac_config_target in $ac_config_targets
23133 case $ac_config_target in
23134 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
23135 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
23136 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
23137 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
23138 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
23139 "doc/libogg/Makefile") CONFIG_FILES="$CONFIG_FILES doc/libogg/Makefile" ;;
23140 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
23141 "include/ogg/Makefile") CONFIG_FILES="$CONFIG_FILES include/ogg/Makefile" ;;
23142 "include/ogg/config_types.h") CONFIG_FILES="$CONFIG_FILES include/ogg/config_types.h" ;;
23143 "libogg.spec") CONFIG_FILES="$CONFIG_FILES libogg.spec" ;;
23144 "ogg.pc") CONFIG_FILES="$CONFIG_FILES ogg.pc" ;;
23145 "ogg-uninstalled.pc") CONFIG_FILES="$CONFIG_FILES ogg-uninstalled.pc" ;;
23147 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
23148 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
23149 { (exit 1); exit 1; }; };;
23150 esac
23151 done
23154 # If the user did not use the arguments to specify the items to instantiate,
23155 # then the envvar interface is used. Set only those that are not.
23156 # We use the long form for the default assignment because of an extremely
23157 # bizarre bug on SunOS 4.1.3.
23158 if $ac_need_defaults; then
23159 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
23160 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
23161 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
23164 # Have a temporary directory for convenience. Make it in the build tree
23165 # simply because there is no reason against having it here, and in addition,
23166 # creating and moving files from /tmp can sometimes cause problems.
23167 # Hook for its removal unless debugging.
23168 # Note that there is a small window in which the directory will not be cleaned:
23169 # after its creation but before its name has been assigned to `$tmp'.
23170 $debug ||
23172 tmp=
23173 trap 'exit_status=$?
23174 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
23176 trap '{ (exit 1); exit 1; }' 1 2 13 15
23178 # Create a (secure) tmp directory for tmp files.
23181 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
23182 test -n "$tmp" && test -d "$tmp"
23183 } ||
23185 tmp=./conf$$-$RANDOM
23186 (umask 077 && mkdir "$tmp")
23187 } ||
23189 echo "$me: cannot create a temporary directory in ." >&2
23190 { (exit 1); exit 1; }
23194 # Set up the sed scripts for CONFIG_FILES section.
23197 # No need to generate the scripts if there are no CONFIG_FILES.
23198 # This happens for instance when ./config.status config.h
23199 if test -n "$CONFIG_FILES"; then
23201 _ACEOF
23205 ac_delim='%!_!# '
23206 for ac_last_try in false false false false false :; do
23207 cat >conf$$subs.sed <<_ACEOF
23208 SHELL!$SHELL$ac_delim
23209 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
23210 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
23211 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
23212 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
23213 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
23214 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
23215 exec_prefix!$exec_prefix$ac_delim
23216 prefix!$prefix$ac_delim
23217 program_transform_name!$program_transform_name$ac_delim
23218 bindir!$bindir$ac_delim
23219 sbindir!$sbindir$ac_delim
23220 libexecdir!$libexecdir$ac_delim
23221 datarootdir!$datarootdir$ac_delim
23222 datadir!$datadir$ac_delim
23223 sysconfdir!$sysconfdir$ac_delim
23224 sharedstatedir!$sharedstatedir$ac_delim
23225 localstatedir!$localstatedir$ac_delim
23226 includedir!$includedir$ac_delim
23227 oldincludedir!$oldincludedir$ac_delim
23228 docdir!$docdir$ac_delim
23229 infodir!$infodir$ac_delim
23230 htmldir!$htmldir$ac_delim
23231 dvidir!$dvidir$ac_delim
23232 pdfdir!$pdfdir$ac_delim
23233 psdir!$psdir$ac_delim
23234 libdir!$libdir$ac_delim
23235 localedir!$localedir$ac_delim
23236 mandir!$mandir$ac_delim
23237 DEFS!$DEFS$ac_delim
23238 ECHO_C!$ECHO_C$ac_delim
23239 ECHO_N!$ECHO_N$ac_delim
23240 ECHO_T!$ECHO_T$ac_delim
23241 LIBS!$LIBS$ac_delim
23242 build_alias!$build_alias$ac_delim
23243 host_alias!$host_alias$ac_delim
23244 target_alias!$target_alias$ac_delim
23245 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
23246 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
23247 INSTALL_DATA!$INSTALL_DATA$ac_delim
23248 am__isrc!$am__isrc$ac_delim
23249 CYGPATH_W!$CYGPATH_W$ac_delim
23250 PACKAGE!$PACKAGE$ac_delim
23251 VERSION!$VERSION$ac_delim
23252 ACLOCAL!$ACLOCAL$ac_delim
23253 AUTOCONF!$AUTOCONF$ac_delim
23254 AUTOMAKE!$AUTOMAKE$ac_delim
23255 AUTOHEADER!$AUTOHEADER$ac_delim
23256 MAKEINFO!$MAKEINFO$ac_delim
23257 install_sh!$install_sh$ac_delim
23258 STRIP!$STRIP$ac_delim
23259 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
23260 mkdir_p!$mkdir_p$ac_delim
23261 AWK!$AWK$ac_delim
23262 SET_MAKE!$SET_MAKE$ac_delim
23263 am__leading_dot!$am__leading_dot$ac_delim
23264 AMTAR!$AMTAR$ac_delim
23265 am__tar!$am__tar$ac_delim
23266 am__untar!$am__untar$ac_delim
23267 MAINTAINER_MODE_TRUE!$MAINTAINER_MODE_TRUE$ac_delim
23268 MAINTAINER_MODE_FALSE!$MAINTAINER_MODE_FALSE$ac_delim
23269 MAINT!$MAINT$ac_delim
23270 LIB_CURRENT!$LIB_CURRENT$ac_delim
23271 LIB_REVISION!$LIB_REVISION$ac_delim
23272 LIB_AGE!$LIB_AGE$ac_delim
23273 CC!$CC$ac_delim
23274 CFLAGS!$CFLAGS$ac_delim
23275 LDFLAGS!$LDFLAGS$ac_delim
23276 CPPFLAGS!$CPPFLAGS$ac_delim
23277 ac_ct_CC!$ac_ct_CC$ac_delim
23278 EXEEXT!$EXEEXT$ac_delim
23279 OBJEXT!$OBJEXT$ac_delim
23280 DEPDIR!$DEPDIR$ac_delim
23281 am__include!$am__include$ac_delim
23282 am__quote!$am__quote$ac_delim
23283 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
23284 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
23285 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
23286 CCDEPMODE!$CCDEPMODE$ac_delim
23287 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
23288 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
23289 build!$build$ac_delim
23290 build_cpu!$build_cpu$ac_delim
23291 build_vendor!$build_vendor$ac_delim
23292 build_os!$build_os$ac_delim
23293 host!$host$ac_delim
23294 host_cpu!$host_cpu$ac_delim
23295 host_vendor!$host_vendor$ac_delim
23296 host_os!$host_os$ac_delim
23297 SED!$SED$ac_delim
23298 GREP!$GREP$ac_delim
23299 EGREP!$EGREP$ac_delim
23300 LN_S!$LN_S$ac_delim
23301 ECHO!$ECHO$ac_delim
23302 AR!$AR$ac_delim
23303 RANLIB!$RANLIB$ac_delim
23304 DSYMUTIL!$DSYMUTIL$ac_delim
23305 _ACEOF
23307 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
23308 break
23309 elif $ac_last_try; then
23310 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23311 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23312 { (exit 1); exit 1; }; }
23313 else
23314 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23316 done
23318 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
23319 if test -n "$ac_eof"; then
23320 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
23321 ac_eof=`expr $ac_eof + 1`
23324 cat >>$CONFIG_STATUS <<_ACEOF
23325 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
23326 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23327 _ACEOF
23328 sed '
23329 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
23330 s/^/s,@/; s/!/@,|#_!!_#|/
23333 s/'"$ac_delim"'$/,g/; t
23334 s/$/\\/; p
23335 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
23336 ' >>$CONFIG_STATUS <conf$$subs.sed
23337 rm -f conf$$subs.sed
23338 cat >>$CONFIG_STATUS <<_ACEOF
23339 CEOF$ac_eof
23340 _ACEOF
23343 ac_delim='%!_!# '
23344 for ac_last_try in false false false false false :; do
23345 cat >conf$$subs.sed <<_ACEOF
23346 NMEDIT!$NMEDIT$ac_delim
23347 CPP!$CPP$ac_delim
23348 CXX!$CXX$ac_delim
23349 CXXFLAGS!$CXXFLAGS$ac_delim
23350 ac_ct_CXX!$ac_ct_CXX$ac_delim
23351 CXXDEPMODE!$CXXDEPMODE$ac_delim
23352 am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
23353 am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
23354 CXXCPP!$CXXCPP$ac_delim
23355 F77!$F77$ac_delim
23356 FFLAGS!$FFLAGS$ac_delim
23357 ac_ct_F77!$ac_ct_F77$ac_delim
23358 LIBTOOL!$LIBTOOL$ac_delim
23359 LIBOBJS!$LIBOBJS$ac_delim
23360 LIBTOOL_DEPS!$LIBTOOL_DEPS$ac_delim
23361 SIZE16!$SIZE16$ac_delim
23362 USIZE16!$USIZE16$ac_delim
23363 SIZE32!$SIZE32$ac_delim
23364 USIZE32!$USIZE32$ac_delim
23365 SIZE64!$SIZE64$ac_delim
23366 OPT!$OPT$ac_delim
23367 DEBUG!$DEBUG$ac_delim
23368 PROFILE!$PROFILE$ac_delim
23369 LTLIBOBJS!$LTLIBOBJS$ac_delim
23370 _ACEOF
23372 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 24; then
23373 break
23374 elif $ac_last_try; then
23375 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23376 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23377 { (exit 1); exit 1; }; }
23378 else
23379 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23381 done
23383 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
23384 if test -n "$ac_eof"; then
23385 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
23386 ac_eof=`expr $ac_eof + 1`
23389 cat >>$CONFIG_STATUS <<_ACEOF
23390 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
23391 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
23392 _ACEOF
23393 sed '
23394 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
23395 s/^/s,@/; s/!/@,|#_!!_#|/
23398 s/'"$ac_delim"'$/,g/; t
23399 s/$/\\/; p
23400 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
23401 ' >>$CONFIG_STATUS <conf$$subs.sed
23402 rm -f conf$$subs.sed
23403 cat >>$CONFIG_STATUS <<_ACEOF
23404 :end
23405 s/|#_!!_#|//g
23406 CEOF$ac_eof
23407 _ACEOF
23410 # VPATH may cause trouble with some makes, so we remove $(srcdir),
23411 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
23412 # trailing colons and then remove the whole line if VPATH becomes empty
23413 # (actually we leave an empty line to preserve line numbers).
23414 if test "x$srcdir" = x.; then
23415 ac_vpsub='/^[ ]*VPATH[ ]*=/{
23416 s/:*\$(srcdir):*/:/
23417 s/:*\${srcdir}:*/:/
23418 s/:*@srcdir@:*/:/
23419 s/^\([^=]*=[ ]*\):*/\1/
23420 s/:*$//
23421 s/^[^=]*=[ ]*$//
23425 cat >>$CONFIG_STATUS <<\_ACEOF
23426 fi # test -n "$CONFIG_FILES"
23429 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
23431 case $ac_tag in
23432 :[FHLC]) ac_mode=$ac_tag; continue;;
23433 esac
23434 case $ac_mode$ac_tag in
23435 :[FHL]*:*);;
23436 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
23437 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
23438 { (exit 1); exit 1; }; };;
23439 :[FH]-) ac_tag=-:-;;
23440 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
23441 esac
23442 ac_save_IFS=$IFS
23443 IFS=:
23444 set x $ac_tag
23445 IFS=$ac_save_IFS
23446 shift
23447 ac_file=$1
23448 shift
23450 case $ac_mode in
23451 :L) ac_source=$1;;
23452 :[FH])
23453 ac_file_inputs=
23454 for ac_f
23456 case $ac_f in
23457 -) ac_f="$tmp/stdin";;
23458 *) # Look for the file first in the build tree, then in the source tree
23459 # (if the path is not absolute). The absolute path cannot be DOS-style,
23460 # because $ac_f cannot contain `:'.
23461 test -f "$ac_f" ||
23462 case $ac_f in
23463 [\\/$]*) false;;
23464 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
23465 esac ||
23466 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
23467 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
23468 { (exit 1); exit 1; }; };;
23469 esac
23470 ac_file_inputs="$ac_file_inputs $ac_f"
23471 done
23473 # Let's still pretend it is `configure' which instantiates (i.e., don't
23474 # use $as_me), people would be surprised to read:
23475 # /* config.h. Generated by config.status. */
23476 configure_input="Generated from "`IFS=:
23477 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
23478 if test x"$ac_file" != x-; then
23479 configure_input="$ac_file. $configure_input"
23480 { echo "$as_me:$LINENO: creating $ac_file" >&5
23481 echo "$as_me: creating $ac_file" >&6;}
23484 case $ac_tag in
23485 *:-:* | *:-) cat >"$tmp/stdin";;
23486 esac
23488 esac
23490 ac_dir=`$as_dirname -- "$ac_file" ||
23491 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23492 X"$ac_file" : 'X\(//\)[^/]' \| \
23493 X"$ac_file" : 'X\(//\)$' \| \
23494 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
23495 echo X"$ac_file" |
23496 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23497 s//\1/
23500 /^X\(\/\/\)[^/].*/{
23501 s//\1/
23504 /^X\(\/\/\)$/{
23505 s//\1/
23508 /^X\(\/\).*/{
23509 s//\1/
23512 s/.*/./; q'`
23513 { as_dir="$ac_dir"
23514 case $as_dir in #(
23515 -*) as_dir=./$as_dir;;
23516 esac
23517 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
23518 as_dirs=
23519 while :; do
23520 case $as_dir in #(
23521 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
23522 *) as_qdir=$as_dir;;
23523 esac
23524 as_dirs="'$as_qdir' $as_dirs"
23525 as_dir=`$as_dirname -- "$as_dir" ||
23526 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23527 X"$as_dir" : 'X\(//\)[^/]' \| \
23528 X"$as_dir" : 'X\(//\)$' \| \
23529 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
23530 echo X"$as_dir" |
23531 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23532 s//\1/
23535 /^X\(\/\/\)[^/].*/{
23536 s//\1/
23539 /^X\(\/\/\)$/{
23540 s//\1/
23543 /^X\(\/\).*/{
23544 s//\1/
23547 s/.*/./; q'`
23548 test -d "$as_dir" && break
23549 done
23550 test -z "$as_dirs" || eval "mkdir $as_dirs"
23551 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
23552 echo "$as_me: error: cannot create directory $as_dir" >&2;}
23553 { (exit 1); exit 1; }; }; }
23554 ac_builddir=.
23556 case "$ac_dir" in
23557 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
23559 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23560 # A ".." for each directory in $ac_dir_suffix.
23561 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
23562 case $ac_top_builddir_sub in
23563 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
23564 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
23565 esac ;;
23566 esac
23567 ac_abs_top_builddir=$ac_pwd
23568 ac_abs_builddir=$ac_pwd$ac_dir_suffix
23569 # for backward compatibility:
23570 ac_top_builddir=$ac_top_build_prefix
23572 case $srcdir in
23573 .) # We are building in place.
23574 ac_srcdir=.
23575 ac_top_srcdir=$ac_top_builddir_sub
23576 ac_abs_top_srcdir=$ac_pwd ;;
23577 [\\/]* | ?:[\\/]* ) # Absolute name.
23578 ac_srcdir=$srcdir$ac_dir_suffix;
23579 ac_top_srcdir=$srcdir
23580 ac_abs_top_srcdir=$srcdir ;;
23581 *) # Relative name.
23582 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
23583 ac_top_srcdir=$ac_top_build_prefix$srcdir
23584 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
23585 esac
23586 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
23589 case $ac_mode in
23592 # CONFIG_FILE
23595 case $INSTALL in
23596 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
23597 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
23598 esac
23599 ac_MKDIR_P=$MKDIR_P
23600 case $MKDIR_P in
23601 [\\/$]* | ?:[\\/]* ) ;;
23602 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
23603 esac
23604 _ACEOF
23606 cat >>$CONFIG_STATUS <<\_ACEOF
23607 # If the template does not know about datarootdir, expand it.
23608 # FIXME: This hack should be removed a few years after 2.60.
23609 ac_datarootdir_hack=; ac_datarootdir_seen=
23611 case `sed -n '/datarootdir/ {
23615 /@datadir@/p
23616 /@docdir@/p
23617 /@infodir@/p
23618 /@localedir@/p
23619 /@mandir@/p
23620 ' $ac_file_inputs` in
23621 *datarootdir*) ac_datarootdir_seen=yes;;
23622 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
23623 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
23624 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
23625 _ACEOF
23626 cat >>$CONFIG_STATUS <<_ACEOF
23627 ac_datarootdir_hack='
23628 s&@datadir@&$datadir&g
23629 s&@docdir@&$docdir&g
23630 s&@infodir@&$infodir&g
23631 s&@localedir@&$localedir&g
23632 s&@mandir@&$mandir&g
23633 s&\\\${datarootdir}&$datarootdir&g' ;;
23634 esac
23635 _ACEOF
23637 # Neutralize VPATH when `$srcdir' = `.'.
23638 # Shell code in configure.ac might set extrasub.
23639 # FIXME: do we really want to maintain this feature?
23640 cat >>$CONFIG_STATUS <<_ACEOF
23641 sed "$ac_vpsub
23642 $extrasub
23643 _ACEOF
23644 cat >>$CONFIG_STATUS <<\_ACEOF
23646 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23647 s&@configure_input@&$configure_input&;t t
23648 s&@top_builddir@&$ac_top_builddir_sub&;t t
23649 s&@srcdir@&$ac_srcdir&;t t
23650 s&@abs_srcdir@&$ac_abs_srcdir&;t t
23651 s&@top_srcdir@&$ac_top_srcdir&;t t
23652 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
23653 s&@builddir@&$ac_builddir&;t t
23654 s&@abs_builddir@&$ac_abs_builddir&;t t
23655 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
23656 s&@INSTALL@&$ac_INSTALL&;t t
23657 s&@MKDIR_P@&$ac_MKDIR_P&;t t
23658 $ac_datarootdir_hack
23659 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
23661 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
23662 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
23663 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
23664 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23665 which seems to be undefined. Please make sure it is defined." >&5
23666 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23667 which seems to be undefined. Please make sure it is defined." >&2;}
23669 rm -f "$tmp/stdin"
23670 case $ac_file in
23671 -) cat "$tmp/out"; rm -f "$tmp/out";;
23672 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
23673 esac
23677 # CONFIG_HEADER
23679 _ACEOF
23681 # Transform confdefs.h into a sed script `conftest.defines', that
23682 # substitutes the proper values into config.h.in to produce config.h.
23683 rm -f conftest.defines conftest.tail
23684 # First, append a space to every undef/define line, to ease matching.
23685 echo 's/$/ /' >conftest.defines
23686 # Then, protect against being on the right side of a sed subst, or in
23687 # an unquoted here document, in config.status. If some macros were
23688 # called several times there might be several #defines for the same
23689 # symbol, which is useless. But do not sort them, since the last
23690 # AC_DEFINE must be honored.
23691 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
23692 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
23693 # NAME is the cpp macro being defined, VALUE is the value it is being given.
23694 # PARAMS is the parameter list in the macro definition--in most cases, it's
23695 # just an empty string.
23696 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
23697 ac_dB='\\)[ (].*,\\1define\\2'
23698 ac_dC=' '
23699 ac_dD=' ,'
23701 uniq confdefs.h |
23702 sed -n '
23703 t rset
23704 :rset
23705 s/^[ ]*#[ ]*define[ ][ ]*//
23706 t ok
23709 s/[\\&,]/\\&/g
23710 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
23711 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
23712 ' >>conftest.defines
23714 # Remove the space that was appended to ease matching.
23715 # Then replace #undef with comments. This is necessary, for
23716 # example, in the case of _POSIX_SOURCE, which is predefined and required
23717 # on some systems where configure will not decide to define it.
23718 # (The regexp can be short, since the line contains either #define or #undef.)
23719 echo 's/ $//
23720 s,^[ #]*u.*,/* & */,' >>conftest.defines
23722 # Break up conftest.defines:
23723 ac_max_sed_lines=50
23725 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
23726 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
23727 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
23728 # et cetera.
23729 ac_in='$ac_file_inputs'
23730 ac_out='"$tmp/out1"'
23731 ac_nxt='"$tmp/out2"'
23733 while :
23735 # Write a here document:
23736 cat >>$CONFIG_STATUS <<_ACEOF
23737 # First, check the format of the line:
23738 cat >"\$tmp/defines.sed" <<\\CEOF
23739 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
23740 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
23742 :def
23743 _ACEOF
23744 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
23745 echo 'CEOF
23746 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
23747 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
23748 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
23749 grep . conftest.tail >/dev/null || break
23750 rm -f conftest.defines
23751 mv conftest.tail conftest.defines
23752 done
23753 rm -f conftest.defines conftest.tail
23755 echo "ac_result=$ac_in" >>$CONFIG_STATUS
23756 cat >>$CONFIG_STATUS <<\_ACEOF
23757 if test x"$ac_file" != x-; then
23758 echo "/* $configure_input */" >"$tmp/config.h"
23759 cat "$ac_result" >>"$tmp/config.h"
23760 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
23761 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
23762 echo "$as_me: $ac_file is unchanged" >&6;}
23763 else
23764 rm -f $ac_file
23765 mv "$tmp/config.h" $ac_file
23767 else
23768 echo "/* $configure_input */"
23769 cat "$ac_result"
23771 rm -f "$tmp/out12"
23772 # Compute $ac_file's index in $config_headers.
23773 _am_arg=$ac_file
23774 _am_stamp_count=1
23775 for _am_header in $config_headers :; do
23776 case $_am_header in
23777 $_am_arg | $_am_arg:* )
23778 break ;;
23780 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
23781 esac
23782 done
23783 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
23784 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23785 X"$_am_arg" : 'X\(//\)[^/]' \| \
23786 X"$_am_arg" : 'X\(//\)$' \| \
23787 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
23788 echo X"$_am_arg" |
23789 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23790 s//\1/
23793 /^X\(\/\/\)[^/].*/{
23794 s//\1/
23797 /^X\(\/\/\)$/{
23798 s//\1/
23801 /^X\(\/\).*/{
23802 s//\1/
23805 s/.*/./; q'`/stamp-h$_am_stamp_count
23808 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
23809 echo "$as_me: executing $ac_file commands" >&6;}
23811 esac
23814 case $ac_file$ac_mode in
23815 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
23816 # Strip MF so we end up with the name of the file.
23817 mf=`echo "$mf" | sed -e 's/:.*$//'`
23818 # Check whether this is an Automake generated Makefile or not.
23819 # We used to match only the files named `Makefile.in', but
23820 # some people rename them; so instead we look at the file content.
23821 # Grep'ing the first line is not enough: some people post-process
23822 # each Makefile.in and add a new line on top of each file to say so.
23823 # Grep'ing the whole file is not good either: AIX grep has a line
23824 # limit of 2048, but all sed's we know have understand at least 4000.
23825 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
23826 dirpart=`$as_dirname -- "$mf" ||
23827 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23828 X"$mf" : 'X\(//\)[^/]' \| \
23829 X"$mf" : 'X\(//\)$' \| \
23830 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
23831 echo X"$mf" |
23832 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23833 s//\1/
23836 /^X\(\/\/\)[^/].*/{
23837 s//\1/
23840 /^X\(\/\/\)$/{
23841 s//\1/
23844 /^X\(\/\).*/{
23845 s//\1/
23848 s/.*/./; q'`
23849 else
23850 continue
23852 # Extract the definition of DEPDIR, am__include, and am__quote
23853 # from the Makefile without running `make'.
23854 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
23855 test -z "$DEPDIR" && continue
23856 am__include=`sed -n 's/^am__include = //p' < "$mf"`
23857 test -z "am__include" && continue
23858 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
23859 # When using ansi2knr, U may be empty or an underscore; expand it
23860 U=`sed -n 's/^U = //p' < "$mf"`
23861 # Find all dependency output files, they are included files with
23862 # $(DEPDIR) in their names. We invoke sed twice because it is the
23863 # simplest approach to changing $(DEPDIR) to its actual value in the
23864 # expansion.
23865 for file in `sed -n "
23866 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
23867 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
23868 # Make sure the directory exists.
23869 test -f "$dirpart/$file" && continue
23870 fdir=`$as_dirname -- "$file" ||
23871 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23872 X"$file" : 'X\(//\)[^/]' \| \
23873 X"$file" : 'X\(//\)$' \| \
23874 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
23875 echo X"$file" |
23876 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23877 s//\1/
23880 /^X\(\/\/\)[^/].*/{
23881 s//\1/
23884 /^X\(\/\/\)$/{
23885 s//\1/
23888 /^X\(\/\).*/{
23889 s//\1/
23892 s/.*/./; q'`
23893 { as_dir=$dirpart/$fdir
23894 case $as_dir in #(
23895 -*) as_dir=./$as_dir;;
23896 esac
23897 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
23898 as_dirs=
23899 while :; do
23900 case $as_dir in #(
23901 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
23902 *) as_qdir=$as_dir;;
23903 esac
23904 as_dirs="'$as_qdir' $as_dirs"
23905 as_dir=`$as_dirname -- "$as_dir" ||
23906 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23907 X"$as_dir" : 'X\(//\)[^/]' \| \
23908 X"$as_dir" : 'X\(//\)$' \| \
23909 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
23910 echo X"$as_dir" |
23911 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23912 s//\1/
23915 /^X\(\/\/\)[^/].*/{
23916 s//\1/
23919 /^X\(\/\/\)$/{
23920 s//\1/
23923 /^X\(\/\).*/{
23924 s//\1/
23927 s/.*/./; q'`
23928 test -d "$as_dir" && break
23929 done
23930 test -z "$as_dirs" || eval "mkdir $as_dirs"
23931 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
23932 echo "$as_me: error: cannot create directory $as_dir" >&2;}
23933 { (exit 1); exit 1; }; }; }
23934 # echo "creating $dirpart/$file"
23935 echo '# dummy' > "$dirpart/$file"
23936 done
23937 done
23940 esac
23941 done # for ac_tag
23944 { (exit 0); exit 0; }
23945 _ACEOF
23946 chmod +x $CONFIG_STATUS
23947 ac_clean_files=$ac_clean_files_save
23950 # configure is writing to config.log, and then calls config.status.
23951 # config.status does its own redirection, appending to config.log.
23952 # Unfortunately, on DOS this fails, as config.log is still kept open
23953 # by configure, so config.status won't be able to write to it; its
23954 # output is simply discarded. So we exec the FD to /dev/null,
23955 # effectively closing config.log, so it can be properly (re)opened and
23956 # appended to by config.status. When coming back to configure, we
23957 # need to make the FD available again.
23958 if test "$no_create" != yes; then
23959 ac_cs_success=:
23960 ac_config_status_args=
23961 test "$silent" = yes &&
23962 ac_config_status_args="$ac_config_status_args --quiet"
23963 exec 5>/dev/null
23964 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
23965 exec 5>>config.log
23966 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23967 # would make configure fail if this is the last instruction.
23968 $ac_cs_success || { (exit 1); exit 1; }