Initial release.
[xdock.git] / configure
blob443abbbd57ee453e0185244244727c6a35a30577
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61 for xdock 0.0.1.
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='xdock'
728 PACKAGE_TARNAME='xdock'
729 PACKAGE_VERSION='0.0.1'
730 PACKAGE_STRING='xdock 0.0.1'
731 PACKAGE_BUGREPORT=''
733 # Factoring default headers for most tests.
734 ac_includes_default="\
735 #include <stdio.h>
736 #ifdef HAVE_SYS_TYPES_H
737 # include <sys/types.h>
738 #endif
739 #ifdef HAVE_SYS_STAT_H
740 # include <sys/stat.h>
741 #endif
742 #ifdef STDC_HEADERS
743 # include <stdlib.h>
744 # include <stddef.h>
745 #else
746 # ifdef HAVE_STDLIB_H
747 # include <stdlib.h>
748 # endif
749 #endif
750 #ifdef HAVE_STRING_H
751 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
752 # include <memory.h>
753 # endif
754 # include <string.h>
755 #endif
756 #ifdef HAVE_STRINGS_H
757 # include <strings.h>
758 #endif
759 #ifdef HAVE_INTTYPES_H
760 # include <inttypes.h>
761 #endif
762 #ifdef HAVE_STDINT_H
763 # include <stdint.h>
764 #endif
765 #ifdef HAVE_UNISTD_H
766 # include <unistd.h>
767 #endif"
769 ac_subst_vars='SHELL
770 PATH_SEPARATOR
771 PACKAGE_NAME
772 PACKAGE_TARNAME
773 PACKAGE_VERSION
774 PACKAGE_STRING
775 PACKAGE_BUGREPORT
776 exec_prefix
777 prefix
778 program_transform_name
779 bindir
780 sbindir
781 libexecdir
782 datarootdir
783 datadir
784 sysconfdir
785 sharedstatedir
786 localstatedir
787 includedir
788 oldincludedir
789 docdir
790 infodir
791 htmldir
792 dvidir
793 pdfdir
794 psdir
795 libdir
796 localedir
797 mandir
798 DEFS
799 ECHO_C
800 ECHO_N
801 ECHO_T
802 LIBS
803 build_alias
804 host_alias
805 target_alias
806 INSTALL_PROGRAM
807 INSTALL_SCRIPT
808 INSTALL_DATA
809 am__isrc
810 CYGPATH_W
811 PACKAGE
812 VERSION
813 ACLOCAL
814 AUTOCONF
815 AUTOMAKE
816 AUTOHEADER
817 MAKEINFO
818 install_sh
819 STRIP
820 INSTALL_STRIP_PROGRAM
821 mkdir_p
823 SET_MAKE
824 am__leading_dot
825 AMTAR
826 am__tar
827 am__untar
828 build
829 build_cpu
830 build_vendor
831 build_os
832 host
833 host_cpu
834 host_vendor
835 host_os
837 CFLAGS
838 LDFLAGS
839 CPPFLAGS
840 ac_ct_CC
841 EXEEXT
842 OBJEXT
843 DEPDIR
844 am__include
845 am__quote
846 AMDEP_TRUE
847 AMDEP_FALSE
848 AMDEPBACKSLASH
849 CCDEPMODE
850 am__fastdepCC_TRUE
851 am__fastdepCC_FALSE
853 GREP
854 EGREP
855 LN_S
856 ECHO
858 RANLIB
861 CXXFLAGS
862 ac_ct_CXX
863 CXXDEPMODE
864 am__fastdepCXX_TRUE
865 am__fastdepCXX_FALSE
866 CXXCPP
868 FFLAGS
869 ac_ct_F77
870 LIBTOOL
871 XMKMF
873 IMLIB
874 PTHREAD
875 MMS_BITFIELDS
876 WINSOCK
877 LIBOBJS
878 LTLIBOBJS'
879 ac_subst_files=''
880 ac_precious_vars='build_alias
881 host_alias
882 target_alias
884 CFLAGS
885 LDFLAGS
886 LIBS
887 CPPFLAGS
890 CXXFLAGS
892 CXXCPP
894 FFLAGS
895 XMKMF'
898 # Initialize some variables set by options.
899 ac_init_help=
900 ac_init_version=false
901 # The variables have the same names as the options, with
902 # dashes changed to underlines.
903 cache_file=/dev/null
904 exec_prefix=NONE
905 no_create=
906 no_recursion=
907 prefix=NONE
908 program_prefix=NONE
909 program_suffix=NONE
910 program_transform_name=s,x,x,
911 silent=
912 site=
913 srcdir=
914 verbose=
915 x_includes=NONE
916 x_libraries=NONE
918 # Installation directory options.
919 # These are left unexpanded so users can "make install exec_prefix=/foo"
920 # and all the variables that are supposed to be based on exec_prefix
921 # by default will actually change.
922 # Use braces instead of parens because sh, perl, etc. also accept them.
923 # (The list follows the same order as the GNU Coding Standards.)
924 bindir='${exec_prefix}/bin'
925 sbindir='${exec_prefix}/sbin'
926 libexecdir='${exec_prefix}/libexec'
927 datarootdir='${prefix}/share'
928 datadir='${datarootdir}'
929 sysconfdir='${prefix}/etc'
930 sharedstatedir='${prefix}/com'
931 localstatedir='${prefix}/var'
932 includedir='${prefix}/include'
933 oldincludedir='/usr/include'
934 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
935 infodir='${datarootdir}/info'
936 htmldir='${docdir}'
937 dvidir='${docdir}'
938 pdfdir='${docdir}'
939 psdir='${docdir}'
940 libdir='${exec_prefix}/lib'
941 localedir='${datarootdir}/locale'
942 mandir='${datarootdir}/man'
944 ac_prev=
945 ac_dashdash=
946 for ac_option
948 # If the previous option needs an argument, assign it.
949 if test -n "$ac_prev"; then
950 eval $ac_prev=\$ac_option
951 ac_prev=
952 continue
955 case $ac_option in
956 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
957 *) ac_optarg=yes ;;
958 esac
960 # Accept the important Cygnus configure options, so we can diagnose typos.
962 case $ac_dashdash$ac_option in
964 ac_dashdash=yes ;;
966 -bindir | --bindir | --bindi | --bind | --bin | --bi)
967 ac_prev=bindir ;;
968 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
969 bindir=$ac_optarg ;;
971 -build | --build | --buil | --bui | --bu)
972 ac_prev=build_alias ;;
973 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
974 build_alias=$ac_optarg ;;
976 -cache-file | --cache-file | --cache-fil | --cache-fi \
977 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
978 ac_prev=cache_file ;;
979 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
980 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
981 cache_file=$ac_optarg ;;
983 --config-cache | -C)
984 cache_file=config.cache ;;
986 -datadir | --datadir | --datadi | --datad)
987 ac_prev=datadir ;;
988 -datadir=* | --datadir=* | --datadi=* | --datad=*)
989 datadir=$ac_optarg ;;
991 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
992 | --dataroo | --dataro | --datar)
993 ac_prev=datarootdir ;;
994 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
995 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
996 datarootdir=$ac_optarg ;;
998 -disable-* | --disable-*)
999 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1000 # Reject names that are not valid shell variable names.
1001 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1002 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1003 { (exit 1); exit 1; }; }
1004 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1005 eval enable_$ac_feature=no ;;
1007 -docdir | --docdir | --docdi | --doc | --do)
1008 ac_prev=docdir ;;
1009 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1010 docdir=$ac_optarg ;;
1012 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1013 ac_prev=dvidir ;;
1014 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1015 dvidir=$ac_optarg ;;
1017 -enable-* | --enable-*)
1018 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1019 # Reject names that are not valid shell variable names.
1020 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1021 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1022 { (exit 1); exit 1; }; }
1023 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1024 eval enable_$ac_feature=\$ac_optarg ;;
1026 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1027 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1028 | --exec | --exe | --ex)
1029 ac_prev=exec_prefix ;;
1030 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1031 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1032 | --exec=* | --exe=* | --ex=*)
1033 exec_prefix=$ac_optarg ;;
1035 -gas | --gas | --ga | --g)
1036 # Obsolete; use --with-gas.
1037 with_gas=yes ;;
1039 -help | --help | --hel | --he | -h)
1040 ac_init_help=long ;;
1041 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1042 ac_init_help=recursive ;;
1043 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1044 ac_init_help=short ;;
1046 -host | --host | --hos | --ho)
1047 ac_prev=host_alias ;;
1048 -host=* | --host=* | --hos=* | --ho=*)
1049 host_alias=$ac_optarg ;;
1051 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1052 ac_prev=htmldir ;;
1053 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1054 | --ht=*)
1055 htmldir=$ac_optarg ;;
1057 -includedir | --includedir | --includedi | --included | --include \
1058 | --includ | --inclu | --incl | --inc)
1059 ac_prev=includedir ;;
1060 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1061 | --includ=* | --inclu=* | --incl=* | --inc=*)
1062 includedir=$ac_optarg ;;
1064 -infodir | --infodir | --infodi | --infod | --info | --inf)
1065 ac_prev=infodir ;;
1066 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1067 infodir=$ac_optarg ;;
1069 -libdir | --libdir | --libdi | --libd)
1070 ac_prev=libdir ;;
1071 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1072 libdir=$ac_optarg ;;
1074 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1075 | --libexe | --libex | --libe)
1076 ac_prev=libexecdir ;;
1077 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1078 | --libexe=* | --libex=* | --libe=*)
1079 libexecdir=$ac_optarg ;;
1081 -localedir | --localedir | --localedi | --localed | --locale)
1082 ac_prev=localedir ;;
1083 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1084 localedir=$ac_optarg ;;
1086 -localstatedir | --localstatedir | --localstatedi | --localstated \
1087 | --localstate | --localstat | --localsta | --localst | --locals)
1088 ac_prev=localstatedir ;;
1089 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1090 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1091 localstatedir=$ac_optarg ;;
1093 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1094 ac_prev=mandir ;;
1095 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1096 mandir=$ac_optarg ;;
1098 -nfp | --nfp | --nf)
1099 # Obsolete; use --without-fp.
1100 with_fp=no ;;
1102 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1103 | --no-cr | --no-c | -n)
1104 no_create=yes ;;
1106 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1107 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1108 no_recursion=yes ;;
1110 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1111 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1112 | --oldin | --oldi | --old | --ol | --o)
1113 ac_prev=oldincludedir ;;
1114 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1115 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1116 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1117 oldincludedir=$ac_optarg ;;
1119 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1120 ac_prev=prefix ;;
1121 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1122 prefix=$ac_optarg ;;
1124 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1125 | --program-pre | --program-pr | --program-p)
1126 ac_prev=program_prefix ;;
1127 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1128 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1129 program_prefix=$ac_optarg ;;
1131 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1132 | --program-suf | --program-su | --program-s)
1133 ac_prev=program_suffix ;;
1134 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1135 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1136 program_suffix=$ac_optarg ;;
1138 -program-transform-name | --program-transform-name \
1139 | --program-transform-nam | --program-transform-na \
1140 | --program-transform-n | --program-transform- \
1141 | --program-transform | --program-transfor \
1142 | --program-transfo | --program-transf \
1143 | --program-trans | --program-tran \
1144 | --progr-tra | --program-tr | --program-t)
1145 ac_prev=program_transform_name ;;
1146 -program-transform-name=* | --program-transform-name=* \
1147 | --program-transform-nam=* | --program-transform-na=* \
1148 | --program-transform-n=* | --program-transform-=* \
1149 | --program-transform=* | --program-transfor=* \
1150 | --program-transfo=* | --program-transf=* \
1151 | --program-trans=* | --program-tran=* \
1152 | --progr-tra=* | --program-tr=* | --program-t=*)
1153 program_transform_name=$ac_optarg ;;
1155 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1156 ac_prev=pdfdir ;;
1157 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1158 pdfdir=$ac_optarg ;;
1160 -psdir | --psdir | --psdi | --psd | --ps)
1161 ac_prev=psdir ;;
1162 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1163 psdir=$ac_optarg ;;
1165 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1166 | -silent | --silent | --silen | --sile | --sil)
1167 silent=yes ;;
1169 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1170 ac_prev=sbindir ;;
1171 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1172 | --sbi=* | --sb=*)
1173 sbindir=$ac_optarg ;;
1175 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1176 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1177 | --sharedst | --shareds | --shared | --share | --shar \
1178 | --sha | --sh)
1179 ac_prev=sharedstatedir ;;
1180 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1181 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1182 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1183 | --sha=* | --sh=*)
1184 sharedstatedir=$ac_optarg ;;
1186 -site | --site | --sit)
1187 ac_prev=site ;;
1188 -site=* | --site=* | --sit=*)
1189 site=$ac_optarg ;;
1191 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1192 ac_prev=srcdir ;;
1193 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1194 srcdir=$ac_optarg ;;
1196 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1197 | --syscon | --sysco | --sysc | --sys | --sy)
1198 ac_prev=sysconfdir ;;
1199 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1200 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1201 sysconfdir=$ac_optarg ;;
1203 -target | --target | --targe | --targ | --tar | --ta | --t)
1204 ac_prev=target_alias ;;
1205 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1206 target_alias=$ac_optarg ;;
1208 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1209 verbose=yes ;;
1211 -version | --version | --versio | --versi | --vers | -V)
1212 ac_init_version=: ;;
1214 -with-* | --with-*)
1215 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1216 # Reject names that are not valid shell variable names.
1217 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1218 { echo "$as_me: error: invalid package name: $ac_package" >&2
1219 { (exit 1); exit 1; }; }
1220 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1221 eval with_$ac_package=\$ac_optarg ;;
1223 -without-* | --without-*)
1224 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1225 # Reject names that are not valid shell variable names.
1226 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1227 { echo "$as_me: error: invalid package name: $ac_package" >&2
1228 { (exit 1); exit 1; }; }
1229 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1230 eval with_$ac_package=no ;;
1232 --x)
1233 # Obsolete; use --with-x.
1234 with_x=yes ;;
1236 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1237 | --x-incl | --x-inc | --x-in | --x-i)
1238 ac_prev=x_includes ;;
1239 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1240 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1241 x_includes=$ac_optarg ;;
1243 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1244 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1245 ac_prev=x_libraries ;;
1246 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1247 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1248 x_libraries=$ac_optarg ;;
1250 -*) { echo "$as_me: error: unrecognized option: $ac_option
1251 Try \`$0 --help' for more information." >&2
1252 { (exit 1); exit 1; }; }
1255 *=*)
1256 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1257 # Reject names that are not valid shell variable names.
1258 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1259 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1260 { (exit 1); exit 1; }; }
1261 eval $ac_envvar=\$ac_optarg
1262 export $ac_envvar ;;
1265 # FIXME: should be removed in autoconf 3.0.
1266 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1267 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1268 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1269 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1272 esac
1273 done
1275 if test -n "$ac_prev"; then
1276 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1277 { echo "$as_me: error: missing argument to $ac_option" >&2
1278 { (exit 1); exit 1; }; }
1281 # Be sure to have absolute directory names.
1282 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1283 datadir sysconfdir sharedstatedir localstatedir includedir \
1284 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1285 libdir localedir mandir
1287 eval ac_val=\$$ac_var
1288 case $ac_val in
1289 [\\/$]* | ?:[\\/]* ) continue;;
1290 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1291 esac
1292 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1293 { (exit 1); exit 1; }; }
1294 done
1296 # There might be people who depend on the old broken behavior: `$host'
1297 # used to hold the argument of --host etc.
1298 # FIXME: To remove some day.
1299 build=$build_alias
1300 host=$host_alias
1301 target=$target_alias
1303 # FIXME: To remove some day.
1304 if test "x$host_alias" != x; then
1305 if test "x$build_alias" = x; then
1306 cross_compiling=maybe
1307 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1308 If a cross compiler is detected then cross compile mode will be used." >&2
1309 elif test "x$build_alias" != "x$host_alias"; then
1310 cross_compiling=yes
1314 ac_tool_prefix=
1315 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1317 test "$silent" = yes && exec 6>/dev/null
1320 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1321 ac_ls_di=`ls -di .` &&
1322 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1323 { echo "$as_me: error: Working directory cannot be determined" >&2
1324 { (exit 1); exit 1; }; }
1325 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1326 { echo "$as_me: error: pwd does not report name of working directory" >&2
1327 { (exit 1); exit 1; }; }
1330 # Find the source files, if location was not specified.
1331 if test -z "$srcdir"; then
1332 ac_srcdir_defaulted=yes
1333 # Try the directory containing this script, then the parent directory.
1334 ac_confdir=`$as_dirname -- "$0" ||
1335 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1336 X"$0" : 'X\(//\)[^/]' \| \
1337 X"$0" : 'X\(//\)$' \| \
1338 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1339 echo X"$0" |
1340 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1341 s//\1/
1344 /^X\(\/\/\)[^/].*/{
1345 s//\1/
1348 /^X\(\/\/\)$/{
1349 s//\1/
1352 /^X\(\/\).*/{
1353 s//\1/
1356 s/.*/./; q'`
1357 srcdir=$ac_confdir
1358 if test ! -r "$srcdir/$ac_unique_file"; then
1359 srcdir=..
1361 else
1362 ac_srcdir_defaulted=no
1364 if test ! -r "$srcdir/$ac_unique_file"; then
1365 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1366 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1367 { (exit 1); exit 1; }; }
1369 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1370 ac_abs_confdir=`(
1371 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1372 { (exit 1); exit 1; }; }
1373 pwd)`
1374 # When building in place, set srcdir=.
1375 if test "$ac_abs_confdir" = "$ac_pwd"; then
1376 srcdir=.
1378 # Remove unnecessary trailing slashes from srcdir.
1379 # Double slashes in file names in object file debugging info
1380 # mess up M-x gdb in Emacs.
1381 case $srcdir in
1382 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1383 esac
1384 for ac_var in $ac_precious_vars; do
1385 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1386 eval ac_env_${ac_var}_value=\$${ac_var}
1387 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1388 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1389 done
1392 # Report the --help message.
1394 if test "$ac_init_help" = "long"; then
1395 # Omit some internal or obsolete options to make the list less imposing.
1396 # This message is too long to be a string in the A/UX 3.1 sh.
1397 cat <<_ACEOF
1398 \`configure' configures xdock 0.0.1 to adapt to many kinds of systems.
1400 Usage: $0 [OPTION]... [VAR=VALUE]...
1402 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1403 VAR=VALUE. See below for descriptions of some of the useful variables.
1405 Defaults for the options are specified in brackets.
1407 Configuration:
1408 -h, --help display this help and exit
1409 --help=short display options specific to this package
1410 --help=recursive display the short help of all the included packages
1411 -V, --version display version information and exit
1412 -q, --quiet, --silent do not print \`checking...' messages
1413 --cache-file=FILE cache test results in FILE [disabled]
1414 -C, --config-cache alias for \`--cache-file=config.cache'
1415 -n, --no-create do not create output files
1416 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1418 Installation directories:
1419 --prefix=PREFIX install architecture-independent files in PREFIX
1420 [$ac_default_prefix]
1421 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1422 [PREFIX]
1424 By default, \`make install' will install all the files in
1425 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1426 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1427 for instance \`--prefix=\$HOME'.
1429 For better control, use the options below.
1431 Fine tuning of the installation directories:
1432 --bindir=DIR user executables [EPREFIX/bin]
1433 --sbindir=DIR system admin executables [EPREFIX/sbin]
1434 --libexecdir=DIR program executables [EPREFIX/libexec]
1435 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1436 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1437 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1438 --libdir=DIR object code libraries [EPREFIX/lib]
1439 --includedir=DIR C header files [PREFIX/include]
1440 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1441 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1442 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1443 --infodir=DIR info documentation [DATAROOTDIR/info]
1444 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1445 --mandir=DIR man documentation [DATAROOTDIR/man]
1446 --docdir=DIR documentation root [DATAROOTDIR/doc/xdock]
1447 --htmldir=DIR html documentation [DOCDIR]
1448 --dvidir=DIR dvi documentation [DOCDIR]
1449 --pdfdir=DIR pdf documentation [DOCDIR]
1450 --psdir=DIR ps documentation [DOCDIR]
1451 _ACEOF
1453 cat <<\_ACEOF
1455 Program names:
1456 --program-prefix=PREFIX prepend PREFIX to installed program names
1457 --program-suffix=SUFFIX append SUFFIX to installed program names
1458 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1460 X features:
1461 --x-includes=DIR X include files are in DIR
1462 --x-libraries=DIR X library files are in DIR
1464 System types:
1465 --build=BUILD configure for building on BUILD [guessed]
1466 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1467 _ACEOF
1470 if test -n "$ac_init_help"; then
1471 case $ac_init_help in
1472 short | recursive ) echo "Configuration of xdock 0.0.1:";;
1473 esac
1474 cat <<\_ACEOF
1476 Optional Features:
1477 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1478 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1479 --enable-shared[=PKGS] build shared libraries [default=yes]
1480 --enable-static[=PKGS] build static libraries [default=yes]
1481 --enable-fast-install[=PKGS]
1482 optimize for fast installation [default=yes]
1483 --disable-dependency-tracking speeds up one-time build
1484 --enable-dependency-tracking do not reject slow dependency extractors
1485 --disable-libtool-lock avoid locking (might break parallel builds)
1487 Optional Packages:
1488 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1489 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1490 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1491 --with-pic try to use only PIC/non-PIC objects [default=use
1492 both]
1493 --with-tags[=TAGS] include additional configurations [automatic]
1494 --with-x use the X Window System
1496 Some influential environment variables:
1497 CC C compiler command
1498 CFLAGS C compiler flags
1499 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1500 nonstandard directory <lib dir>
1501 LIBS libraries to pass to the linker, e.g. -l<library>
1502 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1503 you have headers in a nonstandard directory <include dir>
1504 CPP C preprocessor
1505 CXX C++ compiler command
1506 CXXFLAGS C++ compiler flags
1507 CXXCPP C++ preprocessor
1508 F77 Fortran 77 compiler command
1509 FFLAGS Fortran 77 compiler flags
1510 XMKMF Path to xmkmf, Makefile generator for X Window System
1512 Use these variables to override the choices made by `configure' or to help
1513 it to find libraries and programs with nonstandard names/locations.
1515 _ACEOF
1516 ac_status=$?
1519 if test "$ac_init_help" = "recursive"; then
1520 # If there are subdirs, report their specific --help.
1521 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1522 test -d "$ac_dir" || continue
1523 ac_builddir=.
1525 case "$ac_dir" in
1526 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1528 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1529 # A ".." for each directory in $ac_dir_suffix.
1530 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1531 case $ac_top_builddir_sub in
1532 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1533 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1534 esac ;;
1535 esac
1536 ac_abs_top_builddir=$ac_pwd
1537 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1538 # for backward compatibility:
1539 ac_top_builddir=$ac_top_build_prefix
1541 case $srcdir in
1542 .) # We are building in place.
1543 ac_srcdir=.
1544 ac_top_srcdir=$ac_top_builddir_sub
1545 ac_abs_top_srcdir=$ac_pwd ;;
1546 [\\/]* | ?:[\\/]* ) # Absolute name.
1547 ac_srcdir=$srcdir$ac_dir_suffix;
1548 ac_top_srcdir=$srcdir
1549 ac_abs_top_srcdir=$srcdir ;;
1550 *) # Relative name.
1551 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1552 ac_top_srcdir=$ac_top_build_prefix$srcdir
1553 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1554 esac
1555 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1557 cd "$ac_dir" || { ac_status=$?; continue; }
1558 # Check for guested configure.
1559 if test -f "$ac_srcdir/configure.gnu"; then
1560 echo &&
1561 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1562 elif test -f "$ac_srcdir/configure"; then
1563 echo &&
1564 $SHELL "$ac_srcdir/configure" --help=recursive
1565 else
1566 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1567 fi || ac_status=$?
1568 cd "$ac_pwd" || { ac_status=$?; break; }
1569 done
1572 test -n "$ac_init_help" && exit $ac_status
1573 if $ac_init_version; then
1574 cat <<\_ACEOF
1575 xdock configure 0.0.1
1576 generated by GNU Autoconf 2.61
1578 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1579 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1580 This configure script is free software; the Free Software Foundation
1581 gives unlimited permission to copy, distribute and modify it.
1582 _ACEOF
1583 exit
1585 cat >config.log <<_ACEOF
1586 This file contains any messages produced by compilers while
1587 running configure, to aid debugging if configure makes a mistake.
1589 It was created by xdock $as_me 0.0.1, which was
1590 generated by GNU Autoconf 2.61. Invocation command line was
1592 $ $0 $@
1594 _ACEOF
1595 exec 5>>config.log
1597 cat <<_ASUNAME
1598 ## --------- ##
1599 ## Platform. ##
1600 ## --------- ##
1602 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1603 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1604 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1605 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1606 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1608 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1609 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1611 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1612 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1613 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1614 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1615 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1616 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1617 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1619 _ASUNAME
1621 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1622 for as_dir in $PATH
1624 IFS=$as_save_IFS
1625 test -z "$as_dir" && as_dir=.
1626 echo "PATH: $as_dir"
1627 done
1628 IFS=$as_save_IFS
1630 } >&5
1632 cat >&5 <<_ACEOF
1635 ## ----------- ##
1636 ## Core tests. ##
1637 ## ----------- ##
1639 _ACEOF
1642 # Keep a trace of the command line.
1643 # Strip out --no-create and --no-recursion so they do not pile up.
1644 # Strip out --silent because we don't want to record it for future runs.
1645 # Also quote any args containing shell meta-characters.
1646 # Make two passes to allow for proper duplicate-argument suppression.
1647 ac_configure_args=
1648 ac_configure_args0=
1649 ac_configure_args1=
1650 ac_must_keep_next=false
1651 for ac_pass in 1 2
1653 for ac_arg
1655 case $ac_arg in
1656 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1657 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1658 | -silent | --silent | --silen | --sile | --sil)
1659 continue ;;
1660 *\'*)
1661 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1662 esac
1663 case $ac_pass in
1664 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1666 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1667 if test $ac_must_keep_next = true; then
1668 ac_must_keep_next=false # Got value, back to normal.
1669 else
1670 case $ac_arg in
1671 *=* | --config-cache | -C | -disable-* | --disable-* \
1672 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1673 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1674 | -with-* | --with-* | -without-* | --without-* | --x)
1675 case "$ac_configure_args0 " in
1676 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1677 esac
1679 -* ) ac_must_keep_next=true ;;
1680 esac
1682 ac_configure_args="$ac_configure_args '$ac_arg'"
1684 esac
1685 done
1686 done
1687 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1688 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1690 # When interrupted or exit'd, cleanup temporary files, and complete
1691 # config.log. We remove comments because anyway the quotes in there
1692 # would cause problems or look ugly.
1693 # WARNING: Use '\'' to represent an apostrophe within the trap.
1694 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1695 trap 'exit_status=$?
1696 # Save into config.log some information that might help in debugging.
1698 echo
1700 cat <<\_ASBOX
1701 ## ---------------- ##
1702 ## Cache variables. ##
1703 ## ---------------- ##
1704 _ASBOX
1705 echo
1706 # The following way of writing the cache mishandles newlines in values,
1708 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1709 eval ac_val=\$$ac_var
1710 case $ac_val in #(
1711 *${as_nl}*)
1712 case $ac_var in #(
1713 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1714 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1715 esac
1716 case $ac_var in #(
1717 _ | IFS | as_nl) ;; #(
1718 *) $as_unset $ac_var ;;
1719 esac ;;
1720 esac
1721 done
1722 (set) 2>&1 |
1723 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1724 *${as_nl}ac_space=\ *)
1725 sed -n \
1726 "s/'\''/'\''\\\\'\'''\''/g;
1727 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1728 ;; #(
1730 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1732 esac |
1733 sort
1735 echo
1737 cat <<\_ASBOX
1738 ## ----------------- ##
1739 ## Output variables. ##
1740 ## ----------------- ##
1741 _ASBOX
1742 echo
1743 for ac_var in $ac_subst_vars
1745 eval ac_val=\$$ac_var
1746 case $ac_val in
1747 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1748 esac
1749 echo "$ac_var='\''$ac_val'\''"
1750 done | sort
1751 echo
1753 if test -n "$ac_subst_files"; then
1754 cat <<\_ASBOX
1755 ## ------------------- ##
1756 ## File substitutions. ##
1757 ## ------------------- ##
1758 _ASBOX
1759 echo
1760 for ac_var in $ac_subst_files
1762 eval ac_val=\$$ac_var
1763 case $ac_val in
1764 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1765 esac
1766 echo "$ac_var='\''$ac_val'\''"
1767 done | sort
1768 echo
1771 if test -s confdefs.h; then
1772 cat <<\_ASBOX
1773 ## ----------- ##
1774 ## confdefs.h. ##
1775 ## ----------- ##
1776 _ASBOX
1777 echo
1778 cat confdefs.h
1779 echo
1781 test "$ac_signal" != 0 &&
1782 echo "$as_me: caught signal $ac_signal"
1783 echo "$as_me: exit $exit_status"
1784 } >&5
1785 rm -f core *.core core.conftest.* &&
1786 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1787 exit $exit_status
1789 for ac_signal in 1 2 13 15; do
1790 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1791 done
1792 ac_signal=0
1794 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1795 rm -f -r conftest* confdefs.h
1797 # Predefined preprocessor variables.
1799 cat >>confdefs.h <<_ACEOF
1800 #define PACKAGE_NAME "$PACKAGE_NAME"
1801 _ACEOF
1804 cat >>confdefs.h <<_ACEOF
1805 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1806 _ACEOF
1809 cat >>confdefs.h <<_ACEOF
1810 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1811 _ACEOF
1814 cat >>confdefs.h <<_ACEOF
1815 #define PACKAGE_STRING "$PACKAGE_STRING"
1816 _ACEOF
1819 cat >>confdefs.h <<_ACEOF
1820 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1821 _ACEOF
1824 # Let the site file select an alternate cache file if it wants to.
1825 # Prefer explicitly selected file to automatically selected ones.
1826 if test -n "$CONFIG_SITE"; then
1827 set x "$CONFIG_SITE"
1828 elif test "x$prefix" != xNONE; then
1829 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1830 else
1831 set x "$ac_default_prefix/share/config.site" \
1832 "$ac_default_prefix/etc/config.site"
1834 shift
1835 for ac_site_file
1837 if test -r "$ac_site_file"; then
1838 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1839 echo "$as_me: loading site script $ac_site_file" >&6;}
1840 sed 's/^/| /' "$ac_site_file" >&5
1841 . "$ac_site_file"
1843 done
1845 if test -r "$cache_file"; then
1846 # Some versions of bash will fail to source /dev/null (special
1847 # files actually), so we avoid doing that.
1848 if test -f "$cache_file"; then
1849 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1850 echo "$as_me: loading cache $cache_file" >&6;}
1851 case $cache_file in
1852 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1853 *) . "./$cache_file";;
1854 esac
1856 else
1857 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1858 echo "$as_me: creating cache $cache_file" >&6;}
1859 >$cache_file
1862 # Check that the precious variables saved in the cache have kept the same
1863 # value.
1864 ac_cache_corrupted=false
1865 for ac_var in $ac_precious_vars; do
1866 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1867 eval ac_new_set=\$ac_env_${ac_var}_set
1868 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1869 eval ac_new_val=\$ac_env_${ac_var}_value
1870 case $ac_old_set,$ac_new_set in
1871 set,)
1872 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1873 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1874 ac_cache_corrupted=: ;;
1875 ,set)
1876 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1877 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1878 ac_cache_corrupted=: ;;
1879 ,);;
1881 if test "x$ac_old_val" != "x$ac_new_val"; then
1882 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1883 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1884 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1885 echo "$as_me: former value: $ac_old_val" >&2;}
1886 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1887 echo "$as_me: current value: $ac_new_val" >&2;}
1888 ac_cache_corrupted=:
1889 fi;;
1890 esac
1891 # Pass precious variables to config.status.
1892 if test "$ac_new_set" = set; then
1893 case $ac_new_val in
1894 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1895 *) ac_arg=$ac_var=$ac_new_val ;;
1896 esac
1897 case " $ac_configure_args " in
1898 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1899 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1900 esac
1902 done
1903 if $ac_cache_corrupted; then
1904 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1905 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1906 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1907 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1908 { (exit 1); exit 1; }; }
1935 ac_ext=c
1936 ac_cpp='$CPP $CPPFLAGS'
1937 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1938 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1939 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1942 am__api_version='1.10'
1944 ac_aux_dir=
1945 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1946 if test -f "$ac_dir/install-sh"; then
1947 ac_aux_dir=$ac_dir
1948 ac_install_sh="$ac_aux_dir/install-sh -c"
1949 break
1950 elif test -f "$ac_dir/install.sh"; then
1951 ac_aux_dir=$ac_dir
1952 ac_install_sh="$ac_aux_dir/install.sh -c"
1953 break
1954 elif test -f "$ac_dir/shtool"; then
1955 ac_aux_dir=$ac_dir
1956 ac_install_sh="$ac_aux_dir/shtool install -c"
1957 break
1959 done
1960 if test -z "$ac_aux_dir"; then
1961 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1962 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1963 { (exit 1); exit 1; }; }
1966 # These three variables are undocumented and unsupported,
1967 # and are intended to be withdrawn in a future Autoconf release.
1968 # They can cause serious problems if a builder's source tree is in a directory
1969 # whose full name contains unusual characters.
1970 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1971 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1972 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1975 # Find a good install program. We prefer a C program (faster),
1976 # so one script is as good as another. But avoid the broken or
1977 # incompatible versions:
1978 # SysV /etc/install, /usr/sbin/install
1979 # SunOS /usr/etc/install
1980 # IRIX /sbin/install
1981 # AIX /bin/install
1982 # AmigaOS /C/install, which installs bootblocks on floppy discs
1983 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1984 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1985 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1986 # OS/2's system install, which has a completely different semantic
1987 # ./install, which can be erroneously created by make from ./install.sh.
1988 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1989 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
1990 if test -z "$INSTALL"; then
1991 if test "${ac_cv_path_install+set}" = set; then
1992 echo $ECHO_N "(cached) $ECHO_C" >&6
1993 else
1994 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1995 for as_dir in $PATH
1997 IFS=$as_save_IFS
1998 test -z "$as_dir" && as_dir=.
1999 # Account for people who put trailing slashes in PATH elements.
2000 case $as_dir/ in
2001 ./ | .// | /cC/* | \
2002 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2003 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2004 /usr/ucb/* ) ;;
2006 # OSF1 and SCO ODT 3.0 have their own names for install.
2007 # Don't use installbsd from OSF since it installs stuff as root
2008 # by default.
2009 for ac_prog in ginstall scoinst install; do
2010 for ac_exec_ext in '' $ac_executable_extensions; do
2011 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2012 if test $ac_prog = install &&
2013 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2014 # AIX install. It has an incompatible calling convention.
2016 elif test $ac_prog = install &&
2017 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2018 # program-specific install script used by HP pwplus--don't use.
2020 else
2021 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2022 break 3
2025 done
2026 done
2028 esac
2029 done
2030 IFS=$as_save_IFS
2034 if test "${ac_cv_path_install+set}" = set; then
2035 INSTALL=$ac_cv_path_install
2036 else
2037 # As a last resort, use the slow shell script. Don't cache a
2038 # value for INSTALL within a source directory, because that will
2039 # break other packages using the cache if that directory is
2040 # removed, or if the value is a relative name.
2041 INSTALL=$ac_install_sh
2044 { echo "$as_me:$LINENO: result: $INSTALL" >&5
2045 echo "${ECHO_T}$INSTALL" >&6; }
2047 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2048 # It thinks the first close brace ends the variable substitution.
2049 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2051 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2053 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2055 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2056 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2057 # Just in case
2058 sleep 1
2059 echo timestamp > conftest.file
2060 # Do `set' in a subshell so we don't clobber the current shell's
2061 # arguments. Must try -L first in case configure is actually a
2062 # symlink; some systems play weird games with the mod time of symlinks
2063 # (eg FreeBSD returns the mod time of the symlink's containing
2064 # directory).
2065 if (
2066 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2067 if test "$*" = "X"; then
2068 # -L didn't work.
2069 set X `ls -t $srcdir/configure conftest.file`
2071 rm -f conftest.file
2072 if test "$*" != "X $srcdir/configure conftest.file" \
2073 && test "$*" != "X conftest.file $srcdir/configure"; then
2075 # If neither matched, then we have a broken ls. This can happen
2076 # if, for instance, CONFIG_SHELL is bash and it inherits a
2077 # broken ls alias from the environment. This has actually
2078 # happened. Such a system could not be considered "sane".
2079 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2080 alias in your environment" >&5
2081 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2082 alias in your environment" >&2;}
2083 { (exit 1); exit 1; }; }
2086 test "$2" = conftest.file
2088 then
2089 # Ok.
2091 else
2092 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2093 Check your system clock" >&5
2094 echo "$as_me: error: newly created file is older than distributed files!
2095 Check your system clock" >&2;}
2096 { (exit 1); exit 1; }; }
2098 { echo "$as_me:$LINENO: result: yes" >&5
2099 echo "${ECHO_T}yes" >&6; }
2100 test "$program_prefix" != NONE &&
2101 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2102 # Use a double $ so make ignores it.
2103 test "$program_suffix" != NONE &&
2104 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2105 # Double any \ or $. echo might interpret backslashes.
2106 # By default was `s,x,x', remove it if useless.
2107 cat <<\_ACEOF >conftest.sed
2108 s/[\\$]/&&/g;s/;s,x,x,$//
2109 _ACEOF
2110 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2111 rm -f conftest.sed
2113 # expand $ac_aux_dir to an absolute path
2114 am_aux_dir=`cd $ac_aux_dir && pwd`
2116 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2117 # Use eval to expand $SHELL
2118 if eval "$MISSING --run true"; then
2119 am_missing_run="$MISSING --run "
2120 else
2121 am_missing_run=
2122 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2123 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2126 { echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2127 echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
2128 if test -z "$MKDIR_P"; then
2129 if test "${ac_cv_path_mkdir+set}" = set; then
2130 echo $ECHO_N "(cached) $ECHO_C" >&6
2131 else
2132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2133 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2135 IFS=$as_save_IFS
2136 test -z "$as_dir" && as_dir=.
2137 for ac_prog in mkdir gmkdir; do
2138 for ac_exec_ext in '' $ac_executable_extensions; do
2139 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2140 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2141 'mkdir (GNU coreutils) '* | \
2142 'mkdir (coreutils) '* | \
2143 'mkdir (fileutils) '4.1*)
2144 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2145 break 3;;
2146 esac
2147 done
2148 done
2149 done
2150 IFS=$as_save_IFS
2154 if test "${ac_cv_path_mkdir+set}" = set; then
2155 MKDIR_P="$ac_cv_path_mkdir -p"
2156 else
2157 # As a last resort, use the slow shell script. Don't cache a
2158 # value for MKDIR_P within a source directory, because that will
2159 # break other packages using the cache if that directory is
2160 # removed, or if the value is a relative name.
2161 test -d ./--version && rmdir ./--version
2162 MKDIR_P="$ac_install_sh -d"
2165 { echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2166 echo "${ECHO_T}$MKDIR_P" >&6; }
2168 mkdir_p="$MKDIR_P"
2169 case $mkdir_p in
2170 [\\/$]* | ?:[\\/]*) ;;
2171 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2172 esac
2174 for ac_prog in gawk mawk nawk awk
2176 # Extract the first word of "$ac_prog", so it can be a program name with args.
2177 set dummy $ac_prog; ac_word=$2
2178 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2179 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2180 if test "${ac_cv_prog_AWK+set}" = set; then
2181 echo $ECHO_N "(cached) $ECHO_C" >&6
2182 else
2183 if test -n "$AWK"; then
2184 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2185 else
2186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2187 for as_dir in $PATH
2189 IFS=$as_save_IFS
2190 test -z "$as_dir" && as_dir=.
2191 for ac_exec_ext in '' $ac_executable_extensions; do
2192 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2193 ac_cv_prog_AWK="$ac_prog"
2194 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2195 break 2
2197 done
2198 done
2199 IFS=$as_save_IFS
2203 AWK=$ac_cv_prog_AWK
2204 if test -n "$AWK"; then
2205 { echo "$as_me:$LINENO: result: $AWK" >&5
2206 echo "${ECHO_T}$AWK" >&6; }
2207 else
2208 { echo "$as_me:$LINENO: result: no" >&5
2209 echo "${ECHO_T}no" >&6; }
2213 test -n "$AWK" && break
2214 done
2216 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2217 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2218 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2219 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2220 echo $ECHO_N "(cached) $ECHO_C" >&6
2221 else
2222 cat >conftest.make <<\_ACEOF
2223 SHELL = /bin/sh
2224 all:
2225 @echo '@@@%%%=$(MAKE)=@@@%%%'
2226 _ACEOF
2227 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2228 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2229 *@@@%%%=?*=@@@%%%*)
2230 eval ac_cv_prog_make_${ac_make}_set=yes;;
2232 eval ac_cv_prog_make_${ac_make}_set=no;;
2233 esac
2234 rm -f conftest.make
2236 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2237 { echo "$as_me:$LINENO: result: yes" >&5
2238 echo "${ECHO_T}yes" >&6; }
2239 SET_MAKE=
2240 else
2241 { echo "$as_me:$LINENO: result: no" >&5
2242 echo "${ECHO_T}no" >&6; }
2243 SET_MAKE="MAKE=${MAKE-make}"
2246 rm -rf .tst 2>/dev/null
2247 mkdir .tst 2>/dev/null
2248 if test -d .tst; then
2249 am__leading_dot=.
2250 else
2251 am__leading_dot=_
2253 rmdir .tst 2>/dev/null
2255 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2256 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2257 # is not polluted with repeated "-I."
2258 am__isrc=' -I$(srcdir)'
2259 # test to see if srcdir already configured
2260 if test -f $srcdir/config.status; then
2261 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2262 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2263 { (exit 1); exit 1; }; }
2267 # test whether we have cygpath
2268 if test -z "$CYGPATH_W"; then
2269 if (cygpath --version) >/dev/null 2>/dev/null; then
2270 CYGPATH_W='cygpath -w'
2271 else
2272 CYGPATH_W=echo
2277 # Define the identity of the package.
2278 PACKAGE='xdock'
2279 VERSION='0.0.1'
2282 cat >>confdefs.h <<_ACEOF
2283 #define PACKAGE "$PACKAGE"
2284 _ACEOF
2287 cat >>confdefs.h <<_ACEOF
2288 #define VERSION "$VERSION"
2289 _ACEOF
2291 # Some tools Automake needs.
2293 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2296 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2299 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2302 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2305 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2307 install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
2309 # Installed binaries are usually stripped using `strip' when the user
2310 # run `make install-strip'. However `strip' might not be the right
2311 # tool to use in cross-compilation environments, therefore Automake
2312 # will honor the `STRIP' environment variable to overrule this program.
2313 if test "$cross_compiling" != no; then
2314 if test -n "$ac_tool_prefix"; then
2315 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2316 set dummy ${ac_tool_prefix}strip; ac_word=$2
2317 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2318 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2319 if test "${ac_cv_prog_STRIP+set}" = set; then
2320 echo $ECHO_N "(cached) $ECHO_C" >&6
2321 else
2322 if test -n "$STRIP"; then
2323 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2324 else
2325 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2326 for as_dir in $PATH
2328 IFS=$as_save_IFS
2329 test -z "$as_dir" && as_dir=.
2330 for ac_exec_ext in '' $ac_executable_extensions; do
2331 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2332 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2333 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2334 break 2
2336 done
2337 done
2338 IFS=$as_save_IFS
2342 STRIP=$ac_cv_prog_STRIP
2343 if test -n "$STRIP"; then
2344 { echo "$as_me:$LINENO: result: $STRIP" >&5
2345 echo "${ECHO_T}$STRIP" >&6; }
2346 else
2347 { echo "$as_me:$LINENO: result: no" >&5
2348 echo "${ECHO_T}no" >&6; }
2353 if test -z "$ac_cv_prog_STRIP"; then
2354 ac_ct_STRIP=$STRIP
2355 # Extract the first word of "strip", so it can be a program name with args.
2356 set dummy strip; ac_word=$2
2357 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2358 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2359 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2360 echo $ECHO_N "(cached) $ECHO_C" >&6
2361 else
2362 if test -n "$ac_ct_STRIP"; then
2363 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2364 else
2365 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2366 for as_dir in $PATH
2368 IFS=$as_save_IFS
2369 test -z "$as_dir" && as_dir=.
2370 for ac_exec_ext in '' $ac_executable_extensions; do
2371 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2372 ac_cv_prog_ac_ct_STRIP="strip"
2373 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2374 break 2
2376 done
2377 done
2378 IFS=$as_save_IFS
2382 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2383 if test -n "$ac_ct_STRIP"; then
2384 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2385 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2386 else
2387 { echo "$as_me:$LINENO: result: no" >&5
2388 echo "${ECHO_T}no" >&6; }
2391 if test "x$ac_ct_STRIP" = x; then
2392 STRIP=":"
2393 else
2394 case $cross_compiling:$ac_tool_warned in
2395 yes:)
2396 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2397 whose name does not start with the host triplet. If you think this
2398 configuration is useful to you, please write to autoconf@gnu.org." >&5
2399 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2400 whose name does not start with the host triplet. If you think this
2401 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2402 ac_tool_warned=yes ;;
2403 esac
2404 STRIP=$ac_ct_STRIP
2406 else
2407 STRIP="$ac_cv_prog_STRIP"
2411 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2413 # We need awk for the "check" target. The system "awk" is bad on
2414 # some platforms.
2415 # Always define AMTAR for backward compatibility.
2417 AMTAR=${AMTAR-"${am_missing_run}tar"}
2419 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2425 ac_config_headers="$ac_config_headers config.h"
2428 # Checks for programs.
2429 # Check whether --enable-shared was given.
2430 if test "${enable_shared+set}" = set; then
2431 enableval=$enable_shared; p=${PACKAGE-default}
2432 case $enableval in
2433 yes) enable_shared=yes ;;
2434 no) enable_shared=no ;;
2436 enable_shared=no
2437 # Look at the argument we got. We use all the common list separators.
2438 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2439 for pkg in $enableval; do
2440 IFS="$lt_save_ifs"
2441 if test "X$pkg" = "X$p"; then
2442 enable_shared=yes
2444 done
2445 IFS="$lt_save_ifs"
2447 esac
2448 else
2449 enable_shared=yes
2453 # Check whether --enable-static was given.
2454 if test "${enable_static+set}" = set; then
2455 enableval=$enable_static; p=${PACKAGE-default}
2456 case $enableval in
2457 yes) enable_static=yes ;;
2458 no) enable_static=no ;;
2460 enable_static=no
2461 # Look at the argument we got. We use all the common list separators.
2462 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2463 for pkg in $enableval; do
2464 IFS="$lt_save_ifs"
2465 if test "X$pkg" = "X$p"; then
2466 enable_static=yes
2468 done
2469 IFS="$lt_save_ifs"
2471 esac
2472 else
2473 enable_static=yes
2477 # Check whether --enable-fast-install was given.
2478 if test "${enable_fast_install+set}" = set; then
2479 enableval=$enable_fast_install; p=${PACKAGE-default}
2480 case $enableval in
2481 yes) enable_fast_install=yes ;;
2482 no) enable_fast_install=no ;;
2484 enable_fast_install=no
2485 # Look at the argument we got. We use all the common list separators.
2486 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2487 for pkg in $enableval; do
2488 IFS="$lt_save_ifs"
2489 if test "X$pkg" = "X$p"; then
2490 enable_fast_install=yes
2492 done
2493 IFS="$lt_save_ifs"
2495 esac
2496 else
2497 enable_fast_install=yes
2501 # Make sure we can run config.sub.
2502 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2503 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2504 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2505 { (exit 1); exit 1; }; }
2507 { echo "$as_me:$LINENO: checking build system type" >&5
2508 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2509 if test "${ac_cv_build+set}" = set; then
2510 echo $ECHO_N "(cached) $ECHO_C" >&6
2511 else
2512 ac_build_alias=$build_alias
2513 test "x$ac_build_alias" = x &&
2514 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2515 test "x$ac_build_alias" = x &&
2516 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2517 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2518 { (exit 1); exit 1; }; }
2519 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2520 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2521 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2522 { (exit 1); exit 1; }; }
2525 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2526 echo "${ECHO_T}$ac_cv_build" >&6; }
2527 case $ac_cv_build in
2528 *-*-*) ;;
2529 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2530 echo "$as_me: error: invalid value of canonical build" >&2;}
2531 { (exit 1); exit 1; }; };;
2532 esac
2533 build=$ac_cv_build
2534 ac_save_IFS=$IFS; IFS='-'
2535 set x $ac_cv_build
2536 shift
2537 build_cpu=$1
2538 build_vendor=$2
2539 shift; shift
2540 # Remember, the first character of IFS is used to create $*,
2541 # except with old shells:
2542 build_os=$*
2543 IFS=$ac_save_IFS
2544 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2547 { echo "$as_me:$LINENO: checking host system type" >&5
2548 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2549 if test "${ac_cv_host+set}" = set; then
2550 echo $ECHO_N "(cached) $ECHO_C" >&6
2551 else
2552 if test "x$host_alias" = x; then
2553 ac_cv_host=$ac_cv_build
2554 else
2555 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2556 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2557 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2558 { (exit 1); exit 1; }; }
2562 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2563 echo "${ECHO_T}$ac_cv_host" >&6; }
2564 case $ac_cv_host in
2565 *-*-*) ;;
2566 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2567 echo "$as_me: error: invalid value of canonical host" >&2;}
2568 { (exit 1); exit 1; }; };;
2569 esac
2570 host=$ac_cv_host
2571 ac_save_IFS=$IFS; IFS='-'
2572 set x $ac_cv_host
2573 shift
2574 host_cpu=$1
2575 host_vendor=$2
2576 shift; shift
2577 # Remember, the first character of IFS is used to create $*,
2578 # except with old shells:
2579 host_os=$*
2580 IFS=$ac_save_IFS
2581 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2584 DEPDIR="${am__leading_dot}deps"
2586 ac_config_commands="$ac_config_commands depfiles"
2589 am_make=${MAKE-make}
2590 cat > confinc << 'END'
2591 am__doit:
2592 @echo done
2593 .PHONY: am__doit
2595 # If we don't find an include directive, just comment out the code.
2596 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2597 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
2598 am__include="#"
2599 am__quote=
2600 _am_result=none
2601 # First try GNU make style include.
2602 echo "include confinc" > confmf
2603 # We grep out `Entering directory' and `Leaving directory'
2604 # messages which can occur if `w' ends up in MAKEFLAGS.
2605 # In particular we don't look at `^make:' because GNU make might
2606 # be invoked under some other name (usually "gmake"), in which
2607 # case it prints its new name instead of `make'.
2608 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2609 am__include=include
2610 am__quote=
2611 _am_result=GNU
2613 # Now try BSD make style include.
2614 if test "$am__include" = "#"; then
2615 echo '.include "confinc"' > confmf
2616 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2617 am__include=.include
2618 am__quote="\""
2619 _am_result=BSD
2624 { echo "$as_me:$LINENO: result: $_am_result" >&5
2625 echo "${ECHO_T}$_am_result" >&6; }
2626 rm -f confinc confmf
2628 # Check whether --enable-dependency-tracking was given.
2629 if test "${enable_dependency_tracking+set}" = set; then
2630 enableval=$enable_dependency_tracking;
2633 if test "x$enable_dependency_tracking" != xno; then
2634 am_depcomp="$ac_aux_dir/depcomp"
2635 AMDEPBACKSLASH='\'
2637 if test "x$enable_dependency_tracking" != xno; then
2638 AMDEP_TRUE=
2639 AMDEP_FALSE='#'
2640 else
2641 AMDEP_TRUE='#'
2642 AMDEP_FALSE=
2646 ac_ext=c
2647 ac_cpp='$CPP $CPPFLAGS'
2648 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2649 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2650 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2651 if test -n "$ac_tool_prefix"; then
2652 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2653 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2654 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2655 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2656 if test "${ac_cv_prog_CC+set}" = set; then
2657 echo $ECHO_N "(cached) $ECHO_C" >&6
2658 else
2659 if test -n "$CC"; then
2660 ac_cv_prog_CC="$CC" # Let the user override the test.
2661 else
2662 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2663 for as_dir in $PATH
2665 IFS=$as_save_IFS
2666 test -z "$as_dir" && as_dir=.
2667 for ac_exec_ext in '' $ac_executable_extensions; do
2668 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2669 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2670 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2671 break 2
2673 done
2674 done
2675 IFS=$as_save_IFS
2679 CC=$ac_cv_prog_CC
2680 if test -n "$CC"; then
2681 { echo "$as_me:$LINENO: result: $CC" >&5
2682 echo "${ECHO_T}$CC" >&6; }
2683 else
2684 { echo "$as_me:$LINENO: result: no" >&5
2685 echo "${ECHO_T}no" >&6; }
2690 if test -z "$ac_cv_prog_CC"; then
2691 ac_ct_CC=$CC
2692 # Extract the first word of "gcc", so it can be a program name with args.
2693 set dummy gcc; ac_word=$2
2694 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2695 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2696 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2697 echo $ECHO_N "(cached) $ECHO_C" >&6
2698 else
2699 if test -n "$ac_ct_CC"; then
2700 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2701 else
2702 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2703 for as_dir in $PATH
2705 IFS=$as_save_IFS
2706 test -z "$as_dir" && as_dir=.
2707 for ac_exec_ext in '' $ac_executable_extensions; do
2708 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2709 ac_cv_prog_ac_ct_CC="gcc"
2710 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2711 break 2
2713 done
2714 done
2715 IFS=$as_save_IFS
2719 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2720 if test -n "$ac_ct_CC"; then
2721 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2722 echo "${ECHO_T}$ac_ct_CC" >&6; }
2723 else
2724 { echo "$as_me:$LINENO: result: no" >&5
2725 echo "${ECHO_T}no" >&6; }
2728 if test "x$ac_ct_CC" = x; then
2729 CC=""
2730 else
2731 case $cross_compiling:$ac_tool_warned in
2732 yes:)
2733 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2734 whose name does not start with the host triplet. If you think this
2735 configuration is useful to you, please write to autoconf@gnu.org." >&5
2736 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2737 whose name does not start with the host triplet. If you think this
2738 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2739 ac_tool_warned=yes ;;
2740 esac
2741 CC=$ac_ct_CC
2743 else
2744 CC="$ac_cv_prog_CC"
2747 if test -z "$CC"; then
2748 if test -n "$ac_tool_prefix"; then
2749 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2750 set dummy ${ac_tool_prefix}cc; ac_word=$2
2751 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2752 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2753 if test "${ac_cv_prog_CC+set}" = set; then
2754 echo $ECHO_N "(cached) $ECHO_C" >&6
2755 else
2756 if test -n "$CC"; then
2757 ac_cv_prog_CC="$CC" # Let the user override the test.
2758 else
2759 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2760 for as_dir in $PATH
2762 IFS=$as_save_IFS
2763 test -z "$as_dir" && as_dir=.
2764 for ac_exec_ext in '' $ac_executable_extensions; do
2765 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2766 ac_cv_prog_CC="${ac_tool_prefix}cc"
2767 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2768 break 2
2770 done
2771 done
2772 IFS=$as_save_IFS
2776 CC=$ac_cv_prog_CC
2777 if test -n "$CC"; then
2778 { echo "$as_me:$LINENO: result: $CC" >&5
2779 echo "${ECHO_T}$CC" >&6; }
2780 else
2781 { echo "$as_me:$LINENO: result: no" >&5
2782 echo "${ECHO_T}no" >&6; }
2788 if test -z "$CC"; then
2789 # Extract the first word of "cc", so it can be a program name with args.
2790 set dummy cc; ac_word=$2
2791 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2792 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2793 if test "${ac_cv_prog_CC+set}" = set; then
2794 echo $ECHO_N "(cached) $ECHO_C" >&6
2795 else
2796 if test -n "$CC"; then
2797 ac_cv_prog_CC="$CC" # Let the user override the test.
2798 else
2799 ac_prog_rejected=no
2800 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2801 for as_dir in $PATH
2803 IFS=$as_save_IFS
2804 test -z "$as_dir" && as_dir=.
2805 for ac_exec_ext in '' $ac_executable_extensions; do
2806 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2807 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2808 ac_prog_rejected=yes
2809 continue
2811 ac_cv_prog_CC="cc"
2812 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2813 break 2
2815 done
2816 done
2817 IFS=$as_save_IFS
2819 if test $ac_prog_rejected = yes; then
2820 # We found a bogon in the path, so make sure we never use it.
2821 set dummy $ac_cv_prog_CC
2822 shift
2823 if test $# != 0; then
2824 # We chose a different compiler from the bogus one.
2825 # However, it has the same basename, so the bogon will be chosen
2826 # first if we set CC to just the basename; use the full file name.
2827 shift
2828 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2833 CC=$ac_cv_prog_CC
2834 if test -n "$CC"; then
2835 { echo "$as_me:$LINENO: result: $CC" >&5
2836 echo "${ECHO_T}$CC" >&6; }
2837 else
2838 { echo "$as_me:$LINENO: result: no" >&5
2839 echo "${ECHO_T}no" >&6; }
2844 if test -z "$CC"; then
2845 if test -n "$ac_tool_prefix"; then
2846 for ac_prog in cl.exe
2848 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2849 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2850 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2851 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2852 if test "${ac_cv_prog_CC+set}" = set; then
2853 echo $ECHO_N "(cached) $ECHO_C" >&6
2854 else
2855 if test -n "$CC"; then
2856 ac_cv_prog_CC="$CC" # Let the user override the test.
2857 else
2858 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2859 for as_dir in $PATH
2861 IFS=$as_save_IFS
2862 test -z "$as_dir" && as_dir=.
2863 for ac_exec_ext in '' $ac_executable_extensions; do
2864 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2865 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2866 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2867 break 2
2869 done
2870 done
2871 IFS=$as_save_IFS
2875 CC=$ac_cv_prog_CC
2876 if test -n "$CC"; then
2877 { echo "$as_me:$LINENO: result: $CC" >&5
2878 echo "${ECHO_T}$CC" >&6; }
2879 else
2880 { echo "$as_me:$LINENO: result: no" >&5
2881 echo "${ECHO_T}no" >&6; }
2885 test -n "$CC" && break
2886 done
2888 if test -z "$CC"; then
2889 ac_ct_CC=$CC
2890 for ac_prog in cl.exe
2892 # Extract the first word of "$ac_prog", so it can be a program name with args.
2893 set dummy $ac_prog; ac_word=$2
2894 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2895 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2896 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2897 echo $ECHO_N "(cached) $ECHO_C" >&6
2898 else
2899 if test -n "$ac_ct_CC"; then
2900 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2901 else
2902 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2903 for as_dir in $PATH
2905 IFS=$as_save_IFS
2906 test -z "$as_dir" && as_dir=.
2907 for ac_exec_ext in '' $ac_executable_extensions; do
2908 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2909 ac_cv_prog_ac_ct_CC="$ac_prog"
2910 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2911 break 2
2913 done
2914 done
2915 IFS=$as_save_IFS
2919 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2920 if test -n "$ac_ct_CC"; then
2921 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2922 echo "${ECHO_T}$ac_ct_CC" >&6; }
2923 else
2924 { echo "$as_me:$LINENO: result: no" >&5
2925 echo "${ECHO_T}no" >&6; }
2929 test -n "$ac_ct_CC" && break
2930 done
2932 if test "x$ac_ct_CC" = x; then
2933 CC=""
2934 else
2935 case $cross_compiling:$ac_tool_warned in
2936 yes:)
2937 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2938 whose name does not start with the host triplet. If you think this
2939 configuration is useful to you, please write to autoconf@gnu.org." >&5
2940 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2941 whose name does not start with the host triplet. If you think this
2942 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2943 ac_tool_warned=yes ;;
2944 esac
2945 CC=$ac_ct_CC
2952 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2953 See \`config.log' for more details." >&5
2954 echo "$as_me: error: no acceptable C compiler found in \$PATH
2955 See \`config.log' for more details." >&2;}
2956 { (exit 1); exit 1; }; }
2958 # Provide some information about the compiler.
2959 echo "$as_me:$LINENO: checking for C compiler version" >&5
2960 ac_compiler=`set X $ac_compile; echo $2`
2961 { (ac_try="$ac_compiler --version >&5"
2962 case "(($ac_try" in
2963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2964 *) ac_try_echo=$ac_try;;
2965 esac
2966 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2967 (eval "$ac_compiler --version >&5") 2>&5
2968 ac_status=$?
2969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2970 (exit $ac_status); }
2971 { (ac_try="$ac_compiler -v >&5"
2972 case "(($ac_try" in
2973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2974 *) ac_try_echo=$ac_try;;
2975 esac
2976 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2977 (eval "$ac_compiler -v >&5") 2>&5
2978 ac_status=$?
2979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2980 (exit $ac_status); }
2981 { (ac_try="$ac_compiler -V >&5"
2982 case "(($ac_try" in
2983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2984 *) ac_try_echo=$ac_try;;
2985 esac
2986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2987 (eval "$ac_compiler -V >&5") 2>&5
2988 ac_status=$?
2989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2990 (exit $ac_status); }
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 ac_clean_files_save=$ac_clean_files
3008 ac_clean_files="$ac_clean_files a.out a.exe b.out"
3009 # Try to create an executable without -o first, disregard a.out.
3010 # It will help us diagnose broken compilers, and finding out an intuition
3011 # of exeext.
3012 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3013 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
3014 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3016 # List of possible output files, starting from the most likely.
3017 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
3018 # only as a last resort. b.out is created by i960 compilers.
3019 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
3021 # The IRIX 6 linker writes into existing files which may not be
3022 # executable, retaining their permissions. Remove them first so a
3023 # subsequent execution test works.
3024 ac_rmfiles=
3025 for ac_file in $ac_files
3027 case $ac_file in
3028 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3029 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3030 esac
3031 done
3032 rm -f $ac_rmfiles
3034 if { (ac_try="$ac_link_default"
3035 case "(($ac_try" in
3036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3037 *) ac_try_echo=$ac_try;;
3038 esac
3039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3040 (eval "$ac_link_default") 2>&5
3041 ac_status=$?
3042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3043 (exit $ac_status); }; then
3044 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3045 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3046 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3047 # so that the user can short-circuit this test for compilers unknown to
3048 # Autoconf.
3049 for ac_file in $ac_files ''
3051 test -f "$ac_file" || continue
3052 case $ac_file in
3053 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
3055 [ab].out )
3056 # We found the default executable, but exeext='' is most
3057 # certainly right.
3058 break;;
3059 *.* )
3060 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3061 then :; else
3062 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3064 # We set ac_cv_exeext here because the later test for it is not
3065 # safe: cross compilers may not add the suffix if given an `-o'
3066 # argument, so we may need to know it at that point already.
3067 # Even if this section looks crufty: it has the advantage of
3068 # actually working.
3069 break;;
3071 break;;
3072 esac
3073 done
3074 test "$ac_cv_exeext" = no && ac_cv_exeext=
3076 else
3077 ac_file=''
3080 { echo "$as_me:$LINENO: result: $ac_file" >&5
3081 echo "${ECHO_T}$ac_file" >&6; }
3082 if test -z "$ac_file"; then
3083 echo "$as_me: failed program was:" >&5
3084 sed 's/^/| /' conftest.$ac_ext >&5
3086 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3087 See \`config.log' for more details." >&5
3088 echo "$as_me: error: C compiler cannot create executables
3089 See \`config.log' for more details." >&2;}
3090 { (exit 77); exit 77; }; }
3093 ac_exeext=$ac_cv_exeext
3095 # Check that the compiler produces executables we can run. If not, either
3096 # the compiler is broken, or we cross compile.
3097 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3098 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3099 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3100 # If not cross compiling, check that we can run a simple program.
3101 if test "$cross_compiling" != yes; then
3102 if { ac_try='./$ac_file'
3103 { (case "(($ac_try" in
3104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3105 *) ac_try_echo=$ac_try;;
3106 esac
3107 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3108 (eval "$ac_try") 2>&5
3109 ac_status=$?
3110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3111 (exit $ac_status); }; }; then
3112 cross_compiling=no
3113 else
3114 if test "$cross_compiling" = maybe; then
3115 cross_compiling=yes
3116 else
3117 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3118 If you meant to cross compile, use \`--host'.
3119 See \`config.log' for more details." >&5
3120 echo "$as_me: error: cannot run C compiled programs.
3121 If you meant to cross compile, use \`--host'.
3122 See \`config.log' for more details." >&2;}
3123 { (exit 1); exit 1; }; }
3127 { echo "$as_me:$LINENO: result: yes" >&5
3128 echo "${ECHO_T}yes" >&6; }
3130 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3131 ac_clean_files=$ac_clean_files_save
3132 # Check that the compiler produces executables we can run. If not, either
3133 # the compiler is broken, or we cross compile.
3134 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3135 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3136 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
3137 echo "${ECHO_T}$cross_compiling" >&6; }
3139 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
3140 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3141 if { (ac_try="$ac_link"
3142 case "(($ac_try" in
3143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3144 *) ac_try_echo=$ac_try;;
3145 esac
3146 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3147 (eval "$ac_link") 2>&5
3148 ac_status=$?
3149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3150 (exit $ac_status); }; then
3151 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3152 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3153 # work properly (i.e., refer to `conftest.exe'), while it won't with
3154 # `rm'.
3155 for ac_file in conftest.exe conftest conftest.*; do
3156 test -f "$ac_file" || continue
3157 case $ac_file in
3158 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3159 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3160 break;;
3161 * ) break;;
3162 esac
3163 done
3164 else
3165 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3166 See \`config.log' for more details." >&5
3167 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3168 See \`config.log' for more details." >&2;}
3169 { (exit 1); exit 1; }; }
3172 rm -f conftest$ac_cv_exeext
3173 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3174 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3176 rm -f conftest.$ac_ext
3177 EXEEXT=$ac_cv_exeext
3178 ac_exeext=$EXEEXT
3179 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3180 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3181 if test "${ac_cv_objext+set}" = set; then
3182 echo $ECHO_N "(cached) $ECHO_C" >&6
3183 else
3184 cat >conftest.$ac_ext <<_ACEOF
3185 /* confdefs.h. */
3186 _ACEOF
3187 cat confdefs.h >>conftest.$ac_ext
3188 cat >>conftest.$ac_ext <<_ACEOF
3189 /* end confdefs.h. */
3192 main ()
3196 return 0;
3198 _ACEOF
3199 rm -f conftest.o conftest.obj
3200 if { (ac_try="$ac_compile"
3201 case "(($ac_try" in
3202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3203 *) ac_try_echo=$ac_try;;
3204 esac
3205 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3206 (eval "$ac_compile") 2>&5
3207 ac_status=$?
3208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3209 (exit $ac_status); }; then
3210 for ac_file in conftest.o conftest.obj conftest.*; do
3211 test -f "$ac_file" || continue;
3212 case $ac_file in
3213 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3214 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3215 break;;
3216 esac
3217 done
3218 else
3219 echo "$as_me: failed program was:" >&5
3220 sed 's/^/| /' conftest.$ac_ext >&5
3222 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3223 See \`config.log' for more details." >&5
3224 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3225 See \`config.log' for more details." >&2;}
3226 { (exit 1); exit 1; }; }
3229 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3231 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3232 echo "${ECHO_T}$ac_cv_objext" >&6; }
3233 OBJEXT=$ac_cv_objext
3234 ac_objext=$OBJEXT
3235 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3236 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3237 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3238 echo $ECHO_N "(cached) $ECHO_C" >&6
3239 else
3240 cat >conftest.$ac_ext <<_ACEOF
3241 /* confdefs.h. */
3242 _ACEOF
3243 cat confdefs.h >>conftest.$ac_ext
3244 cat >>conftest.$ac_ext <<_ACEOF
3245 /* end confdefs.h. */
3248 main ()
3250 #ifndef __GNUC__
3251 choke me
3252 #endif
3255 return 0;
3257 _ACEOF
3258 rm -f conftest.$ac_objext
3259 if { (ac_try="$ac_compile"
3260 case "(($ac_try" in
3261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3262 *) ac_try_echo=$ac_try;;
3263 esac
3264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3265 (eval "$ac_compile") 2>conftest.er1
3266 ac_status=$?
3267 grep -v '^ *+' conftest.er1 >conftest.err
3268 rm -f conftest.er1
3269 cat conftest.err >&5
3270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3271 (exit $ac_status); } && {
3272 test -z "$ac_c_werror_flag" ||
3273 test ! -s conftest.err
3274 } && test -s conftest.$ac_objext; then
3275 ac_compiler_gnu=yes
3276 else
3277 echo "$as_me: failed program was:" >&5
3278 sed 's/^/| /' conftest.$ac_ext >&5
3280 ac_compiler_gnu=no
3283 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3284 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3287 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3288 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3289 GCC=`test $ac_compiler_gnu = yes && echo yes`
3290 ac_test_CFLAGS=${CFLAGS+set}
3291 ac_save_CFLAGS=$CFLAGS
3292 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3293 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3294 if test "${ac_cv_prog_cc_g+set}" = set; then
3295 echo $ECHO_N "(cached) $ECHO_C" >&6
3296 else
3297 ac_save_c_werror_flag=$ac_c_werror_flag
3298 ac_c_werror_flag=yes
3299 ac_cv_prog_cc_g=no
3300 CFLAGS="-g"
3301 cat >conftest.$ac_ext <<_ACEOF
3302 /* confdefs.h. */
3303 _ACEOF
3304 cat confdefs.h >>conftest.$ac_ext
3305 cat >>conftest.$ac_ext <<_ACEOF
3306 /* end confdefs.h. */
3309 main ()
3313 return 0;
3315 _ACEOF
3316 rm -f conftest.$ac_objext
3317 if { (ac_try="$ac_compile"
3318 case "(($ac_try" in
3319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3320 *) ac_try_echo=$ac_try;;
3321 esac
3322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3323 (eval "$ac_compile") 2>conftest.er1
3324 ac_status=$?
3325 grep -v '^ *+' conftest.er1 >conftest.err
3326 rm -f conftest.er1
3327 cat conftest.err >&5
3328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3329 (exit $ac_status); } && {
3330 test -z "$ac_c_werror_flag" ||
3331 test ! -s conftest.err
3332 } && test -s conftest.$ac_objext; then
3333 ac_cv_prog_cc_g=yes
3334 else
3335 echo "$as_me: failed program was:" >&5
3336 sed 's/^/| /' conftest.$ac_ext >&5
3338 CFLAGS=""
3339 cat >conftest.$ac_ext <<_ACEOF
3340 /* confdefs.h. */
3341 _ACEOF
3342 cat confdefs.h >>conftest.$ac_ext
3343 cat >>conftest.$ac_ext <<_ACEOF
3344 /* end confdefs.h. */
3347 main ()
3351 return 0;
3353 _ACEOF
3354 rm -f conftest.$ac_objext
3355 if { (ac_try="$ac_compile"
3356 case "(($ac_try" in
3357 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3358 *) ac_try_echo=$ac_try;;
3359 esac
3360 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3361 (eval "$ac_compile") 2>conftest.er1
3362 ac_status=$?
3363 grep -v '^ *+' conftest.er1 >conftest.err
3364 rm -f conftest.er1
3365 cat conftest.err >&5
3366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3367 (exit $ac_status); } && {
3368 test -z "$ac_c_werror_flag" ||
3369 test ! -s conftest.err
3370 } && test -s conftest.$ac_objext; then
3372 else
3373 echo "$as_me: failed program was:" >&5
3374 sed 's/^/| /' conftest.$ac_ext >&5
3376 ac_c_werror_flag=$ac_save_c_werror_flag
3377 CFLAGS="-g"
3378 cat >conftest.$ac_ext <<_ACEOF
3379 /* confdefs.h. */
3380 _ACEOF
3381 cat confdefs.h >>conftest.$ac_ext
3382 cat >>conftest.$ac_ext <<_ACEOF
3383 /* end confdefs.h. */
3386 main ()
3390 return 0;
3392 _ACEOF
3393 rm -f conftest.$ac_objext
3394 if { (ac_try="$ac_compile"
3395 case "(($ac_try" in
3396 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3397 *) ac_try_echo=$ac_try;;
3398 esac
3399 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3400 (eval "$ac_compile") 2>conftest.er1
3401 ac_status=$?
3402 grep -v '^ *+' conftest.er1 >conftest.err
3403 rm -f conftest.er1
3404 cat conftest.err >&5
3405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3406 (exit $ac_status); } && {
3407 test -z "$ac_c_werror_flag" ||
3408 test ! -s conftest.err
3409 } && test -s conftest.$ac_objext; then
3410 ac_cv_prog_cc_g=yes
3411 else
3412 echo "$as_me: failed program was:" >&5
3413 sed 's/^/| /' conftest.$ac_ext >&5
3418 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3421 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3424 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3425 ac_c_werror_flag=$ac_save_c_werror_flag
3427 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3428 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3429 if test "$ac_test_CFLAGS" = set; then
3430 CFLAGS=$ac_save_CFLAGS
3431 elif test $ac_cv_prog_cc_g = yes; then
3432 if test "$GCC" = yes; then
3433 CFLAGS="-g -O2"
3434 else
3435 CFLAGS="-g"
3437 else
3438 if test "$GCC" = yes; then
3439 CFLAGS="-O2"
3440 else
3441 CFLAGS=
3444 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3445 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3446 if test "${ac_cv_prog_cc_c89+set}" = set; then
3447 echo $ECHO_N "(cached) $ECHO_C" >&6
3448 else
3449 ac_cv_prog_cc_c89=no
3450 ac_save_CC=$CC
3451 cat >conftest.$ac_ext <<_ACEOF
3452 /* confdefs.h. */
3453 _ACEOF
3454 cat confdefs.h >>conftest.$ac_ext
3455 cat >>conftest.$ac_ext <<_ACEOF
3456 /* end confdefs.h. */
3457 #include <stdarg.h>
3458 #include <stdio.h>
3459 #include <sys/types.h>
3460 #include <sys/stat.h>
3461 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3462 struct buf { int x; };
3463 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3464 static char *e (p, i)
3465 char **p;
3466 int i;
3468 return p[i];
3470 static char *f (char * (*g) (char **, int), char **p, ...)
3472 char *s;
3473 va_list v;
3474 va_start (v,p);
3475 s = g (p, va_arg (v,int));
3476 va_end (v);
3477 return s;
3480 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3481 function prototypes and stuff, but not '\xHH' hex character constants.
3482 These don't provoke an error unfortunately, instead are silently treated
3483 as 'x'. The following induces an error, until -std is added to get
3484 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3485 array size at least. It's necessary to write '\x00'==0 to get something
3486 that's true only with -std. */
3487 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3489 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3490 inside strings and character constants. */
3491 #define FOO(x) 'x'
3492 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3494 int test (int i, double x);
3495 struct s1 {int (*f) (int a);};
3496 struct s2 {int (*f) (double a);};
3497 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3498 int argc;
3499 char **argv;
3501 main ()
3503 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3505 return 0;
3507 _ACEOF
3508 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3509 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3511 CC="$ac_save_CC $ac_arg"
3512 rm -f conftest.$ac_objext
3513 if { (ac_try="$ac_compile"
3514 case "(($ac_try" in
3515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3516 *) ac_try_echo=$ac_try;;
3517 esac
3518 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3519 (eval "$ac_compile") 2>conftest.er1
3520 ac_status=$?
3521 grep -v '^ *+' conftest.er1 >conftest.err
3522 rm -f conftest.er1
3523 cat conftest.err >&5
3524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3525 (exit $ac_status); } && {
3526 test -z "$ac_c_werror_flag" ||
3527 test ! -s conftest.err
3528 } && test -s conftest.$ac_objext; then
3529 ac_cv_prog_cc_c89=$ac_arg
3530 else
3531 echo "$as_me: failed program was:" >&5
3532 sed 's/^/| /' conftest.$ac_ext >&5
3537 rm -f core conftest.err conftest.$ac_objext
3538 test "x$ac_cv_prog_cc_c89" != "xno" && break
3539 done
3540 rm -f conftest.$ac_ext
3541 CC=$ac_save_CC
3544 # AC_CACHE_VAL
3545 case "x$ac_cv_prog_cc_c89" in
3547 { echo "$as_me:$LINENO: result: none needed" >&5
3548 echo "${ECHO_T}none needed" >&6; } ;;
3549 xno)
3550 { echo "$as_me:$LINENO: result: unsupported" >&5
3551 echo "${ECHO_T}unsupported" >&6; } ;;
3553 CC="$CC $ac_cv_prog_cc_c89"
3554 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3555 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3556 esac
3559 ac_ext=c
3560 ac_cpp='$CPP $CPPFLAGS'
3561 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3562 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3563 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3565 depcc="$CC" am_compiler_list=
3567 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3568 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3569 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3570 echo $ECHO_N "(cached) $ECHO_C" >&6
3571 else
3572 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3573 # We make a subdir and do the tests there. Otherwise we can end up
3574 # making bogus files that we don't know about and never remove. For
3575 # instance it was reported that on HP-UX the gcc test will end up
3576 # making a dummy file named `D' -- because `-MD' means `put the output
3577 # in D'.
3578 mkdir conftest.dir
3579 # Copy depcomp to subdir because otherwise we won't find it if we're
3580 # using a relative directory.
3581 cp "$am_depcomp" conftest.dir
3582 cd conftest.dir
3583 # We will build objects and dependencies in a subdirectory because
3584 # it helps to detect inapplicable dependency modes. For instance
3585 # both Tru64's cc and ICC support -MD to output dependencies as a
3586 # side effect of compilation, but ICC will put the dependencies in
3587 # the current directory while Tru64 will put them in the object
3588 # directory.
3589 mkdir sub
3591 am_cv_CC_dependencies_compiler_type=none
3592 if test "$am_compiler_list" = ""; then
3593 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3595 for depmode in $am_compiler_list; do
3596 # Setup a source with many dependencies, because some compilers
3597 # like to wrap large dependency lists on column 80 (with \), and
3598 # we should not choose a depcomp mode which is confused by this.
3600 # We need to recreate these files for each test, as the compiler may
3601 # overwrite some of them when testing with obscure command lines.
3602 # This happens at least with the AIX C compiler.
3603 : > sub/conftest.c
3604 for i in 1 2 3 4 5 6; do
3605 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3606 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3607 # Solaris 8's {/usr,}/bin/sh.
3608 touch sub/conftst$i.h
3609 done
3610 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3612 case $depmode in
3613 nosideeffect)
3614 # after this tag, mechanisms are not by side-effect, so they'll
3615 # only be used when explicitly requested
3616 if test "x$enable_dependency_tracking" = xyes; then
3617 continue
3618 else
3619 break
3622 none) break ;;
3623 esac
3624 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3625 # mode. It turns out that the SunPro C++ compiler does not properly
3626 # handle `-M -o', and we need to detect this.
3627 if depmode=$depmode \
3628 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3629 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3630 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3631 >/dev/null 2>conftest.err &&
3632 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3633 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3634 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3635 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3636 # icc doesn't choke on unknown options, it will just issue warnings
3637 # or remarks (even with -Werror). So we grep stderr for any message
3638 # that says an option was ignored or not supported.
3639 # When given -MP, icc 7.0 and 7.1 complain thusly:
3640 # icc: Command line warning: ignoring option '-M'; no argument required
3641 # The diagnosis changed in icc 8.0:
3642 # icc: Command line remark: option '-MP' not supported
3643 if (grep 'ignoring option' conftest.err ||
3644 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3645 am_cv_CC_dependencies_compiler_type=$depmode
3646 break
3649 done
3651 cd ..
3652 rm -rf conftest.dir
3653 else
3654 am_cv_CC_dependencies_compiler_type=none
3658 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3659 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3660 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3663 test "x$enable_dependency_tracking" != xno \
3664 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3665 am__fastdepCC_TRUE=
3666 am__fastdepCC_FALSE='#'
3667 else
3668 am__fastdepCC_TRUE='#'
3669 am__fastdepCC_FALSE=
3673 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3674 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
3675 if test "${lt_cv_path_SED+set}" = set; then
3676 echo $ECHO_N "(cached) $ECHO_C" >&6
3677 else
3678 # Loop through the user's path and test for sed and gsed.
3679 # Then use that list of sed's as ones to test for truncation.
3680 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3681 for as_dir in $PATH
3683 IFS=$as_save_IFS
3684 test -z "$as_dir" && as_dir=.
3685 for lt_ac_prog in sed gsed; do
3686 for ac_exec_ext in '' $ac_executable_extensions; do
3687 if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then
3688 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3690 done
3691 done
3692 done
3693 IFS=$as_save_IFS
3694 lt_ac_max=0
3695 lt_ac_count=0
3696 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3697 # along with /bin/sed that truncates output.
3698 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3699 test ! -f $lt_ac_sed && continue
3700 cat /dev/null > conftest.in
3701 lt_ac_count=0
3702 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3703 # Check for GNU sed and select it if it is found.
3704 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3705 lt_cv_path_SED=$lt_ac_sed
3706 break
3708 while true; do
3709 cat conftest.in conftest.in >conftest.tmp
3710 mv conftest.tmp conftest.in
3711 cp conftest.in conftest.nl
3712 echo >>conftest.nl
3713 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3714 cmp -s conftest.out conftest.nl || break
3715 # 10000 chars as input seems more than enough
3716 test $lt_ac_count -gt 10 && break
3717 lt_ac_count=`expr $lt_ac_count + 1`
3718 if test $lt_ac_count -gt $lt_ac_max; then
3719 lt_ac_max=$lt_ac_count
3720 lt_cv_path_SED=$lt_ac_sed
3722 done
3723 done
3727 SED=$lt_cv_path_SED
3729 { echo "$as_me:$LINENO: result: $SED" >&5
3730 echo "${ECHO_T}$SED" >&6; }
3732 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3733 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3734 if test "${ac_cv_path_GREP+set}" = set; then
3735 echo $ECHO_N "(cached) $ECHO_C" >&6
3736 else
3737 # Extract the first word of "grep ggrep" to use in msg output
3738 if test -z "$GREP"; then
3739 set dummy grep ggrep; ac_prog_name=$2
3740 if test "${ac_cv_path_GREP+set}" = set; then
3741 echo $ECHO_N "(cached) $ECHO_C" >&6
3742 else
3743 ac_path_GREP_found=false
3744 # Loop through the user's path and test for each of PROGNAME-LIST
3745 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3746 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3748 IFS=$as_save_IFS
3749 test -z "$as_dir" && as_dir=.
3750 for ac_prog in grep ggrep; do
3751 for ac_exec_ext in '' $ac_executable_extensions; do
3752 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3753 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3754 # Check for GNU ac_path_GREP and select it if it is found.
3755 # Check for GNU $ac_path_GREP
3756 case `"$ac_path_GREP" --version 2>&1` in
3757 *GNU*)
3758 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3760 ac_count=0
3761 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3762 while :
3764 cat "conftest.in" "conftest.in" >"conftest.tmp"
3765 mv "conftest.tmp" "conftest.in"
3766 cp "conftest.in" "conftest.nl"
3767 echo 'GREP' >> "conftest.nl"
3768 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3769 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3770 ac_count=`expr $ac_count + 1`
3771 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3772 # Best one so far, save it but keep looking for a better one
3773 ac_cv_path_GREP="$ac_path_GREP"
3774 ac_path_GREP_max=$ac_count
3776 # 10*(2^10) chars as input seems more than enough
3777 test $ac_count -gt 10 && break
3778 done
3779 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3780 esac
3783 $ac_path_GREP_found && break 3
3784 done
3785 done
3787 done
3788 IFS=$as_save_IFS
3793 GREP="$ac_cv_path_GREP"
3794 if test -z "$GREP"; then
3795 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3796 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3797 { (exit 1); exit 1; }; }
3800 else
3801 ac_cv_path_GREP=$GREP
3806 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3807 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3808 GREP="$ac_cv_path_GREP"
3811 { echo "$as_me:$LINENO: checking for egrep" >&5
3812 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3813 if test "${ac_cv_path_EGREP+set}" = set; then
3814 echo $ECHO_N "(cached) $ECHO_C" >&6
3815 else
3816 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3817 then ac_cv_path_EGREP="$GREP -E"
3818 else
3819 # Extract the first word of "egrep" to use in msg output
3820 if test -z "$EGREP"; then
3821 set dummy egrep; ac_prog_name=$2
3822 if test "${ac_cv_path_EGREP+set}" = set; then
3823 echo $ECHO_N "(cached) $ECHO_C" >&6
3824 else
3825 ac_path_EGREP_found=false
3826 # Loop through the user's path and test for each of PROGNAME-LIST
3827 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3828 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3830 IFS=$as_save_IFS
3831 test -z "$as_dir" && as_dir=.
3832 for ac_prog in egrep; do
3833 for ac_exec_ext in '' $ac_executable_extensions; do
3834 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3835 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3836 # Check for GNU ac_path_EGREP and select it if it is found.
3837 # Check for GNU $ac_path_EGREP
3838 case `"$ac_path_EGREP" --version 2>&1` in
3839 *GNU*)
3840 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3842 ac_count=0
3843 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3844 while :
3846 cat "conftest.in" "conftest.in" >"conftest.tmp"
3847 mv "conftest.tmp" "conftest.in"
3848 cp "conftest.in" "conftest.nl"
3849 echo 'EGREP' >> "conftest.nl"
3850 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3851 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3852 ac_count=`expr $ac_count + 1`
3853 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3854 # Best one so far, save it but keep looking for a better one
3855 ac_cv_path_EGREP="$ac_path_EGREP"
3856 ac_path_EGREP_max=$ac_count
3858 # 10*(2^10) chars as input seems more than enough
3859 test $ac_count -gt 10 && break
3860 done
3861 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3862 esac
3865 $ac_path_EGREP_found && break 3
3866 done
3867 done
3869 done
3870 IFS=$as_save_IFS
3875 EGREP="$ac_cv_path_EGREP"
3876 if test -z "$EGREP"; then
3877 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3878 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3879 { (exit 1); exit 1; }; }
3882 else
3883 ac_cv_path_EGREP=$EGREP
3889 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3890 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3891 EGREP="$ac_cv_path_EGREP"
3895 # Check whether --with-gnu-ld was given.
3896 if test "${with_gnu_ld+set}" = set; then
3897 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
3898 else
3899 with_gnu_ld=no
3902 ac_prog=ld
3903 if test "$GCC" = yes; then
3904 # Check if gcc -print-prog-name=ld gives a path.
3905 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3906 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
3907 case $host in
3908 *-*-mingw*)
3909 # gcc leaves a trailing carriage return which upsets mingw
3910 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3912 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3913 esac
3914 case $ac_prog in
3915 # Accept absolute paths.
3916 [\\/]* | ?:[\\/]*)
3917 re_direlt='/[^/][^/]*/\.\./'
3918 # Canonicalize the pathname of ld
3919 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3920 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3921 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
3922 done
3923 test -z "$LD" && LD="$ac_prog"
3926 # If it fails, then pretend we aren't using GCC.
3927 ac_prog=ld
3930 # If it is relative, then search for the first ld in PATH.
3931 with_gnu_ld=unknown
3933 esac
3934 elif test "$with_gnu_ld" = yes; then
3935 { echo "$as_me:$LINENO: checking for GNU ld" >&5
3936 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
3937 else
3938 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3939 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
3941 if test "${lt_cv_path_LD+set}" = set; then
3942 echo $ECHO_N "(cached) $ECHO_C" >&6
3943 else
3944 if test -z "$LD"; then
3945 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3946 for ac_dir in $PATH; do
3947 IFS="$lt_save_ifs"
3948 test -z "$ac_dir" && ac_dir=.
3949 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3950 lt_cv_path_LD="$ac_dir/$ac_prog"
3951 # Check to see if the program is GNU ld. I'd rather use --version,
3952 # but apparently some variants of GNU ld only accept -v.
3953 # Break only if it was the GNU/non-GNU ld that we prefer.
3954 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3955 *GNU* | *'with BFD'*)
3956 test "$with_gnu_ld" != no && break
3959 test "$with_gnu_ld" != yes && break
3961 esac
3963 done
3964 IFS="$lt_save_ifs"
3965 else
3966 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3970 LD="$lt_cv_path_LD"
3971 if test -n "$LD"; then
3972 { echo "$as_me:$LINENO: result: $LD" >&5
3973 echo "${ECHO_T}$LD" >&6; }
3974 else
3975 { echo "$as_me:$LINENO: result: no" >&5
3976 echo "${ECHO_T}no" >&6; }
3978 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3979 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3980 { (exit 1); exit 1; }; }
3981 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3982 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
3983 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3984 echo $ECHO_N "(cached) $ECHO_C" >&6
3985 else
3986 # I'd rather use --version here, but apparently some GNU lds only accept -v.
3987 case `$LD -v 2>&1 </dev/null` in
3988 *GNU* | *'with BFD'*)
3989 lt_cv_prog_gnu_ld=yes
3992 lt_cv_prog_gnu_ld=no
3994 esac
3996 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3997 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
3998 with_gnu_ld=$lt_cv_prog_gnu_ld
4001 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4002 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
4003 if test "${lt_cv_ld_reload_flag+set}" = set; then
4004 echo $ECHO_N "(cached) $ECHO_C" >&6
4005 else
4006 lt_cv_ld_reload_flag='-r'
4008 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4009 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
4010 reload_flag=$lt_cv_ld_reload_flag
4011 case $reload_flag in
4012 "" | " "*) ;;
4013 *) reload_flag=" $reload_flag" ;;
4014 esac
4015 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4016 case $host_os in
4017 darwin*)
4018 if test "$GCC" = yes; then
4019 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4020 else
4021 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4024 esac
4026 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4027 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
4028 if test "${lt_cv_path_NM+set}" = set; then
4029 echo $ECHO_N "(cached) $ECHO_C" >&6
4030 else
4031 if test -n "$NM"; then
4032 # Let the user override the test.
4033 lt_cv_path_NM="$NM"
4034 else
4035 lt_nm_to_check="${ac_tool_prefix}nm"
4036 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4037 lt_nm_to_check="$lt_nm_to_check nm"
4039 for lt_tmp_nm in $lt_nm_to_check; do
4040 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4041 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4042 IFS="$lt_save_ifs"
4043 test -z "$ac_dir" && ac_dir=.
4044 tmp_nm="$ac_dir/$lt_tmp_nm"
4045 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4046 # Check to see if the nm accepts a BSD-compat flag.
4047 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4048 # nm: unknown option "B" ignored
4049 # Tru64's nm complains that /dev/null is an invalid object file
4050 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4051 */dev/null* | *'Invalid file or object type'*)
4052 lt_cv_path_NM="$tmp_nm -B"
4053 break
4056 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4057 */dev/null*)
4058 lt_cv_path_NM="$tmp_nm -p"
4059 break
4062 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4063 continue # so that we can try to find one that supports BSD flags
4065 esac
4067 esac
4069 done
4070 IFS="$lt_save_ifs"
4071 done
4072 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4075 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4076 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
4077 NM="$lt_cv_path_NM"
4079 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
4080 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4081 LN_S=$as_ln_s
4082 if test "$LN_S" = "ln -s"; then
4083 { echo "$as_me:$LINENO: result: yes" >&5
4084 echo "${ECHO_T}yes" >&6; }
4085 else
4086 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4087 echo "${ECHO_T}no, using $LN_S" >&6; }
4090 { echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
4091 echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6; }
4092 if test "${lt_cv_deplibs_check_method+set}" = set; then
4093 echo $ECHO_N "(cached) $ECHO_C" >&6
4094 else
4095 lt_cv_file_magic_cmd='$MAGIC_CMD'
4096 lt_cv_file_magic_test_file=
4097 lt_cv_deplibs_check_method='unknown'
4098 # Need to set the preceding variable on all platforms that support
4099 # interlibrary dependencies.
4100 # 'none' -- dependencies not supported.
4101 # `unknown' -- same as none, but documents that we really don't know.
4102 # 'pass_all' -- all dependencies passed with no checks.
4103 # 'test_compile' -- check by making test program.
4104 # 'file_magic [[regex]]' -- check by looking for files in library path
4105 # which responds to the $file_magic_cmd with a given extended regex.
4106 # If you have `file' or equivalent on your system and you're not sure
4107 # whether `pass_all' will *always* work, you probably want this one.
4109 case $host_os in
4110 aix4* | aix5*)
4111 lt_cv_deplibs_check_method=pass_all
4114 beos*)
4115 lt_cv_deplibs_check_method=pass_all
4118 bsdi[45]*)
4119 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4120 lt_cv_file_magic_cmd='/usr/bin/file -L'
4121 lt_cv_file_magic_test_file=/shlib/libc.so
4124 cygwin*)
4125 # func_win32_libid is a shell function defined in ltmain.sh
4126 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4127 lt_cv_file_magic_cmd='func_win32_libid'
4130 mingw* | pw32*)
4131 # Base MSYS/MinGW do not provide the 'file' command needed by
4132 # func_win32_libid shell function, so use a weaker test based on 'objdump',
4133 # unless we find 'file', for example because we are cross-compiling.
4134 if ( file / ) >/dev/null 2>&1; then
4135 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4136 lt_cv_file_magic_cmd='func_win32_libid'
4137 else
4138 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4139 lt_cv_file_magic_cmd='$OBJDUMP -f'
4143 darwin* | rhapsody*)
4144 lt_cv_deplibs_check_method=pass_all
4147 freebsd* | dragonfly*)
4148 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4149 case $host_cpu in
4150 i*86 )
4151 # Not sure whether the presence of OpenBSD here was a mistake.
4152 # Let's accept both of them until this is cleared up.
4153 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4154 lt_cv_file_magic_cmd=/usr/bin/file
4155 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4157 esac
4158 else
4159 lt_cv_deplibs_check_method=pass_all
4163 gnu*)
4164 lt_cv_deplibs_check_method=pass_all
4167 hpux10.20* | hpux11*)
4168 lt_cv_file_magic_cmd=/usr/bin/file
4169 case $host_cpu in
4170 ia64*)
4171 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4172 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4174 hppa*64*)
4175 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]'
4176 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4179 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4180 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4182 esac
4185 interix[3-9]*)
4186 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4187 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4190 irix5* | irix6* | nonstopux*)
4191 case $LD in
4192 *-32|*"-32 ") libmagic=32-bit;;
4193 *-n32|*"-n32 ") libmagic=N32;;
4194 *-64|*"-64 ") libmagic=64-bit;;
4195 *) libmagic=never-match;;
4196 esac
4197 lt_cv_deplibs_check_method=pass_all
4200 # This must be Linux ELF.
4201 linux* | k*bsd*-gnu)
4202 lt_cv_deplibs_check_method=pass_all
4205 netbsd* | netbsdelf*-gnu)
4206 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4207 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4208 else
4209 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4213 newos6*)
4214 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4215 lt_cv_file_magic_cmd=/usr/bin/file
4216 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4219 nto-qnx*)
4220 lt_cv_deplibs_check_method=unknown
4223 openbsd*)
4224 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4225 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4226 else
4227 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4231 osf3* | osf4* | osf5*)
4232 lt_cv_deplibs_check_method=pass_all
4235 rdos*)
4236 lt_cv_deplibs_check_method=pass_all
4239 solaris*)
4240 lt_cv_deplibs_check_method=pass_all
4243 sysv4 | sysv4.3*)
4244 case $host_vendor in
4245 motorola)
4246 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]'
4247 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4249 ncr)
4250 lt_cv_deplibs_check_method=pass_all
4252 sequent)
4253 lt_cv_file_magic_cmd='/bin/file'
4254 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4256 sni)
4257 lt_cv_file_magic_cmd='/bin/file'
4258 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4259 lt_cv_file_magic_test_file=/lib/libc.so
4261 siemens)
4262 lt_cv_deplibs_check_method=pass_all
4265 lt_cv_deplibs_check_method=pass_all
4267 esac
4270 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4271 lt_cv_deplibs_check_method=pass_all
4273 esac
4276 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4277 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
4278 file_magic_cmd=$lt_cv_file_magic_cmd
4279 deplibs_check_method=$lt_cv_deplibs_check_method
4280 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4285 # If no C compiler was specified, use CC.
4286 LTCC=${LTCC-"$CC"}
4288 # If no C compiler flags were specified, use CFLAGS.
4289 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4291 # Allow CC to be a program name with arguments.
4292 compiler=$CC
4295 # Check whether --enable-libtool-lock was given.
4296 if test "${enable_libtool_lock+set}" = set; then
4297 enableval=$enable_libtool_lock;
4300 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4302 # Some flags need to be propagated to the compiler or linker for good
4303 # libtool support.
4304 case $host in
4305 ia64-*-hpux*)
4306 # Find out which ABI we are using.
4307 echo 'int i;' > conftest.$ac_ext
4308 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4309 (eval $ac_compile) 2>&5
4310 ac_status=$?
4311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4312 (exit $ac_status); }; then
4313 case `/usr/bin/file conftest.$ac_objext` in
4314 *ELF-32*)
4315 HPUX_IA64_MODE="32"
4317 *ELF-64*)
4318 HPUX_IA64_MODE="64"
4320 esac
4322 rm -rf conftest*
4324 *-*-irix6*)
4325 # Find out which ABI we are using.
4326 echo '#line 4326 "configure"' > conftest.$ac_ext
4327 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4328 (eval $ac_compile) 2>&5
4329 ac_status=$?
4330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4331 (exit $ac_status); }; then
4332 if test "$lt_cv_prog_gnu_ld" = yes; then
4333 case `/usr/bin/file conftest.$ac_objext` in
4334 *32-bit*)
4335 LD="${LD-ld} -melf32bsmip"
4337 *N32*)
4338 LD="${LD-ld} -melf32bmipn32"
4340 *64-bit*)
4341 LD="${LD-ld} -melf64bmip"
4343 esac
4344 else
4345 case `/usr/bin/file conftest.$ac_objext` in
4346 *32-bit*)
4347 LD="${LD-ld} -32"
4349 *N32*)
4350 LD="${LD-ld} -n32"
4352 *64-bit*)
4353 LD="${LD-ld} -64"
4355 esac
4358 rm -rf conftest*
4361 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
4362 s390*-*linux*|sparc*-*linux*)
4363 # Find out which ABI we are using.
4364 echo 'int i;' > conftest.$ac_ext
4365 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4366 (eval $ac_compile) 2>&5
4367 ac_status=$?
4368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4369 (exit $ac_status); }; then
4370 case `/usr/bin/file conftest.o` in
4371 *32-bit*)
4372 case $host in
4373 x86_64-*kfreebsd*-gnu)
4374 LD="${LD-ld} -m elf_i386_fbsd"
4376 x86_64-*linux*)
4377 LD="${LD-ld} -m elf_i386"
4379 ppc64-*linux*|powerpc64-*linux*)
4380 LD="${LD-ld} -m elf32ppclinux"
4382 s390x-*linux*)
4383 LD="${LD-ld} -m elf_s390"
4385 sparc64-*linux*)
4386 LD="${LD-ld} -m elf32_sparc"
4388 esac
4390 *64-bit*)
4391 case $host in
4392 x86_64-*kfreebsd*-gnu)
4393 LD="${LD-ld} -m elf_x86_64_fbsd"
4395 x86_64-*linux*)
4396 LD="${LD-ld} -m elf_x86_64"
4398 ppc*-*linux*|powerpc*-*linux*)
4399 LD="${LD-ld} -m elf64ppc"
4401 s390*-*linux*)
4402 LD="${LD-ld} -m elf64_s390"
4404 sparc*-*linux*)
4405 LD="${LD-ld} -m elf64_sparc"
4407 esac
4409 esac
4411 rm -rf conftest*
4414 *-*-sco3.2v5*)
4415 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4416 SAVE_CFLAGS="$CFLAGS"
4417 CFLAGS="$CFLAGS -belf"
4418 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4419 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
4420 if test "${lt_cv_cc_needs_belf+set}" = set; then
4421 echo $ECHO_N "(cached) $ECHO_C" >&6
4422 else
4423 ac_ext=c
4424 ac_cpp='$CPP $CPPFLAGS'
4425 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4426 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4427 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4429 cat >conftest.$ac_ext <<_ACEOF
4430 /* confdefs.h. */
4431 _ACEOF
4432 cat confdefs.h >>conftest.$ac_ext
4433 cat >>conftest.$ac_ext <<_ACEOF
4434 /* end confdefs.h. */
4437 main ()
4441 return 0;
4443 _ACEOF
4444 rm -f conftest.$ac_objext conftest$ac_exeext
4445 if { (ac_try="$ac_link"
4446 case "(($ac_try" in
4447 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4448 *) ac_try_echo=$ac_try;;
4449 esac
4450 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4451 (eval "$ac_link") 2>conftest.er1
4452 ac_status=$?
4453 grep -v '^ *+' conftest.er1 >conftest.err
4454 rm -f conftest.er1
4455 cat conftest.err >&5
4456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4457 (exit $ac_status); } && {
4458 test -z "$ac_c_werror_flag" ||
4459 test ! -s conftest.err
4460 } && test -s conftest$ac_exeext &&
4461 $as_test_x conftest$ac_exeext; then
4462 lt_cv_cc_needs_belf=yes
4463 else
4464 echo "$as_me: failed program was:" >&5
4465 sed 's/^/| /' conftest.$ac_ext >&5
4467 lt_cv_cc_needs_belf=no
4470 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4471 conftest$ac_exeext conftest.$ac_ext
4472 ac_ext=c
4473 ac_cpp='$CPP $CPPFLAGS'
4474 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4475 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4476 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4479 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4480 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
4481 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4482 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4483 CFLAGS="$SAVE_CFLAGS"
4486 sparc*-*solaris*)
4487 # Find out which ABI we are using.
4488 echo 'int i;' > conftest.$ac_ext
4489 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4490 (eval $ac_compile) 2>&5
4491 ac_status=$?
4492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4493 (exit $ac_status); }; then
4494 case `/usr/bin/file conftest.o` in
4495 *64-bit*)
4496 case $lt_cv_prog_gnu_ld in
4497 yes*) LD="${LD-ld} -m elf64_sparc" ;;
4498 *) LD="${LD-ld} -64" ;;
4499 esac
4501 esac
4503 rm -rf conftest*
4507 esac
4509 need_locks="$enable_libtool_lock"
4512 ac_ext=c
4513 ac_cpp='$CPP $CPPFLAGS'
4514 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4515 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4516 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4517 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4518 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4519 # On Suns, sometimes $CPP names a directory.
4520 if test -n "$CPP" && test -d "$CPP"; then
4521 CPP=
4523 if test -z "$CPP"; then
4524 if test "${ac_cv_prog_CPP+set}" = set; then
4525 echo $ECHO_N "(cached) $ECHO_C" >&6
4526 else
4527 # Double quotes because CPP needs to be expanded
4528 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4530 ac_preproc_ok=false
4531 for ac_c_preproc_warn_flag in '' yes
4533 # Use a header file that comes with gcc, so configuring glibc
4534 # with a fresh cross-compiler works.
4535 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4536 # <limits.h> exists even on freestanding compilers.
4537 # On the NeXT, cc -E runs the code through the compiler's parser,
4538 # not just through cpp. "Syntax error" is here to catch this case.
4539 cat >conftest.$ac_ext <<_ACEOF
4540 /* confdefs.h. */
4541 _ACEOF
4542 cat confdefs.h >>conftest.$ac_ext
4543 cat >>conftest.$ac_ext <<_ACEOF
4544 /* end confdefs.h. */
4545 #ifdef __STDC__
4546 # include <limits.h>
4547 #else
4548 # include <assert.h>
4549 #endif
4550 Syntax error
4551 _ACEOF
4552 if { (ac_try="$ac_cpp conftest.$ac_ext"
4553 case "(($ac_try" in
4554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4555 *) ac_try_echo=$ac_try;;
4556 esac
4557 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4558 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4559 ac_status=$?
4560 grep -v '^ *+' conftest.er1 >conftest.err
4561 rm -f conftest.er1
4562 cat conftest.err >&5
4563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4564 (exit $ac_status); } >/dev/null && {
4565 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4566 test ! -s conftest.err
4567 }; then
4569 else
4570 echo "$as_me: failed program was:" >&5
4571 sed 's/^/| /' conftest.$ac_ext >&5
4573 # Broken: fails on valid input.
4574 continue
4577 rm -f conftest.err conftest.$ac_ext
4579 # OK, works on sane cases. Now check whether nonexistent headers
4580 # can be detected and how.
4581 cat >conftest.$ac_ext <<_ACEOF
4582 /* confdefs.h. */
4583 _ACEOF
4584 cat confdefs.h >>conftest.$ac_ext
4585 cat >>conftest.$ac_ext <<_ACEOF
4586 /* end confdefs.h. */
4587 #include <ac_nonexistent.h>
4588 _ACEOF
4589 if { (ac_try="$ac_cpp conftest.$ac_ext"
4590 case "(($ac_try" in
4591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4592 *) ac_try_echo=$ac_try;;
4593 esac
4594 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4595 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4596 ac_status=$?
4597 grep -v '^ *+' conftest.er1 >conftest.err
4598 rm -f conftest.er1
4599 cat conftest.err >&5
4600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4601 (exit $ac_status); } >/dev/null && {
4602 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4603 test ! -s conftest.err
4604 }; then
4605 # Broken: success on invalid input.
4606 continue
4607 else
4608 echo "$as_me: failed program was:" >&5
4609 sed 's/^/| /' conftest.$ac_ext >&5
4611 # Passes both tests.
4612 ac_preproc_ok=:
4613 break
4616 rm -f conftest.err conftest.$ac_ext
4618 done
4619 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4620 rm -f conftest.err conftest.$ac_ext
4621 if $ac_preproc_ok; then
4622 break
4625 done
4626 ac_cv_prog_CPP=$CPP
4629 CPP=$ac_cv_prog_CPP
4630 else
4631 ac_cv_prog_CPP=$CPP
4633 { echo "$as_me:$LINENO: result: $CPP" >&5
4634 echo "${ECHO_T}$CPP" >&6; }
4635 ac_preproc_ok=false
4636 for ac_c_preproc_warn_flag in '' yes
4638 # Use a header file that comes with gcc, so configuring glibc
4639 # with a fresh cross-compiler works.
4640 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4641 # <limits.h> exists even on freestanding compilers.
4642 # On the NeXT, cc -E runs the code through the compiler's parser,
4643 # not just through cpp. "Syntax error" is here to catch this case.
4644 cat >conftest.$ac_ext <<_ACEOF
4645 /* confdefs.h. */
4646 _ACEOF
4647 cat confdefs.h >>conftest.$ac_ext
4648 cat >>conftest.$ac_ext <<_ACEOF
4649 /* end confdefs.h. */
4650 #ifdef __STDC__
4651 # include <limits.h>
4652 #else
4653 # include <assert.h>
4654 #endif
4655 Syntax error
4656 _ACEOF
4657 if { (ac_try="$ac_cpp conftest.$ac_ext"
4658 case "(($ac_try" in
4659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4660 *) ac_try_echo=$ac_try;;
4661 esac
4662 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4663 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4664 ac_status=$?
4665 grep -v '^ *+' conftest.er1 >conftest.err
4666 rm -f conftest.er1
4667 cat conftest.err >&5
4668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4669 (exit $ac_status); } >/dev/null && {
4670 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4671 test ! -s conftest.err
4672 }; then
4674 else
4675 echo "$as_me: failed program was:" >&5
4676 sed 's/^/| /' conftest.$ac_ext >&5
4678 # Broken: fails on valid input.
4679 continue
4682 rm -f conftest.err conftest.$ac_ext
4684 # OK, works on sane cases. Now check whether nonexistent headers
4685 # can be detected and how.
4686 cat >conftest.$ac_ext <<_ACEOF
4687 /* confdefs.h. */
4688 _ACEOF
4689 cat confdefs.h >>conftest.$ac_ext
4690 cat >>conftest.$ac_ext <<_ACEOF
4691 /* end confdefs.h. */
4692 #include <ac_nonexistent.h>
4693 _ACEOF
4694 if { (ac_try="$ac_cpp conftest.$ac_ext"
4695 case "(($ac_try" in
4696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4697 *) ac_try_echo=$ac_try;;
4698 esac
4699 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4700 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4701 ac_status=$?
4702 grep -v '^ *+' conftest.er1 >conftest.err
4703 rm -f conftest.er1
4704 cat conftest.err >&5
4705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4706 (exit $ac_status); } >/dev/null && {
4707 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4708 test ! -s conftest.err
4709 }; then
4710 # Broken: success on invalid input.
4711 continue
4712 else
4713 echo "$as_me: failed program was:" >&5
4714 sed 's/^/| /' conftest.$ac_ext >&5
4716 # Passes both tests.
4717 ac_preproc_ok=:
4718 break
4721 rm -f conftest.err conftest.$ac_ext
4723 done
4724 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4725 rm -f conftest.err conftest.$ac_ext
4726 if $ac_preproc_ok; then
4728 else
4729 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4730 See \`config.log' for more details." >&5
4731 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4732 See \`config.log' for more details." >&2;}
4733 { (exit 1); exit 1; }; }
4736 ac_ext=c
4737 ac_cpp='$CPP $CPPFLAGS'
4738 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4739 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4740 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4743 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4744 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4745 if test "${ac_cv_header_stdc+set}" = set; then
4746 echo $ECHO_N "(cached) $ECHO_C" >&6
4747 else
4748 cat >conftest.$ac_ext <<_ACEOF
4749 /* confdefs.h. */
4750 _ACEOF
4751 cat confdefs.h >>conftest.$ac_ext
4752 cat >>conftest.$ac_ext <<_ACEOF
4753 /* end confdefs.h. */
4754 #include <stdlib.h>
4755 #include <stdarg.h>
4756 #include <string.h>
4757 #include <float.h>
4760 main ()
4764 return 0;
4766 _ACEOF
4767 rm -f conftest.$ac_objext
4768 if { (ac_try="$ac_compile"
4769 case "(($ac_try" in
4770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4771 *) ac_try_echo=$ac_try;;
4772 esac
4773 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4774 (eval "$ac_compile") 2>conftest.er1
4775 ac_status=$?
4776 grep -v '^ *+' conftest.er1 >conftest.err
4777 rm -f conftest.er1
4778 cat conftest.err >&5
4779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4780 (exit $ac_status); } && {
4781 test -z "$ac_c_werror_flag" ||
4782 test ! -s conftest.err
4783 } && test -s conftest.$ac_objext; then
4784 ac_cv_header_stdc=yes
4785 else
4786 echo "$as_me: failed program was:" >&5
4787 sed 's/^/| /' conftest.$ac_ext >&5
4789 ac_cv_header_stdc=no
4792 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4794 if test $ac_cv_header_stdc = yes; then
4795 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4796 cat >conftest.$ac_ext <<_ACEOF
4797 /* confdefs.h. */
4798 _ACEOF
4799 cat confdefs.h >>conftest.$ac_ext
4800 cat >>conftest.$ac_ext <<_ACEOF
4801 /* end confdefs.h. */
4802 #include <string.h>
4804 _ACEOF
4805 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4806 $EGREP "memchr" >/dev/null 2>&1; then
4808 else
4809 ac_cv_header_stdc=no
4811 rm -f conftest*
4815 if test $ac_cv_header_stdc = yes; then
4816 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4817 cat >conftest.$ac_ext <<_ACEOF
4818 /* confdefs.h. */
4819 _ACEOF
4820 cat confdefs.h >>conftest.$ac_ext
4821 cat >>conftest.$ac_ext <<_ACEOF
4822 /* end confdefs.h. */
4823 #include <stdlib.h>
4825 _ACEOF
4826 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4827 $EGREP "free" >/dev/null 2>&1; then
4829 else
4830 ac_cv_header_stdc=no
4832 rm -f conftest*
4836 if test $ac_cv_header_stdc = yes; then
4837 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4838 if test "$cross_compiling" = yes; then
4840 else
4841 cat >conftest.$ac_ext <<_ACEOF
4842 /* confdefs.h. */
4843 _ACEOF
4844 cat confdefs.h >>conftest.$ac_ext
4845 cat >>conftest.$ac_ext <<_ACEOF
4846 /* end confdefs.h. */
4847 #include <ctype.h>
4848 #include <stdlib.h>
4849 #if ((' ' & 0x0FF) == 0x020)
4850 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4851 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4852 #else
4853 # define ISLOWER(c) \
4854 (('a' <= (c) && (c) <= 'i') \
4855 || ('j' <= (c) && (c) <= 'r') \
4856 || ('s' <= (c) && (c) <= 'z'))
4857 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4858 #endif
4860 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4862 main ()
4864 int i;
4865 for (i = 0; i < 256; i++)
4866 if (XOR (islower (i), ISLOWER (i))
4867 || toupper (i) != TOUPPER (i))
4868 return 2;
4869 return 0;
4871 _ACEOF
4872 rm -f conftest$ac_exeext
4873 if { (ac_try="$ac_link"
4874 case "(($ac_try" in
4875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4876 *) ac_try_echo=$ac_try;;
4877 esac
4878 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4879 (eval "$ac_link") 2>&5
4880 ac_status=$?
4881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4882 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4883 { (case "(($ac_try" in
4884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4885 *) ac_try_echo=$ac_try;;
4886 esac
4887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4888 (eval "$ac_try") 2>&5
4889 ac_status=$?
4890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4891 (exit $ac_status); }; }; then
4893 else
4894 echo "$as_me: program exited with status $ac_status" >&5
4895 echo "$as_me: failed program was:" >&5
4896 sed 's/^/| /' conftest.$ac_ext >&5
4898 ( exit $ac_status )
4899 ac_cv_header_stdc=no
4901 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4907 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4908 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4909 if test $ac_cv_header_stdc = yes; then
4911 cat >>confdefs.h <<\_ACEOF
4912 #define STDC_HEADERS 1
4913 _ACEOF
4917 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4927 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4928 inttypes.h stdint.h unistd.h
4930 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4931 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4932 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4933 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4934 echo $ECHO_N "(cached) $ECHO_C" >&6
4935 else
4936 cat >conftest.$ac_ext <<_ACEOF
4937 /* confdefs.h. */
4938 _ACEOF
4939 cat confdefs.h >>conftest.$ac_ext
4940 cat >>conftest.$ac_ext <<_ACEOF
4941 /* end confdefs.h. */
4942 $ac_includes_default
4944 #include <$ac_header>
4945 _ACEOF
4946 rm -f conftest.$ac_objext
4947 if { (ac_try="$ac_compile"
4948 case "(($ac_try" in
4949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4950 *) ac_try_echo=$ac_try;;
4951 esac
4952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4953 (eval "$ac_compile") 2>conftest.er1
4954 ac_status=$?
4955 grep -v '^ *+' conftest.er1 >conftest.err
4956 rm -f conftest.er1
4957 cat conftest.err >&5
4958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4959 (exit $ac_status); } && {
4960 test -z "$ac_c_werror_flag" ||
4961 test ! -s conftest.err
4962 } && test -s conftest.$ac_objext; then
4963 eval "$as_ac_Header=yes"
4964 else
4965 echo "$as_me: failed program was:" >&5
4966 sed 's/^/| /' conftest.$ac_ext >&5
4968 eval "$as_ac_Header=no"
4971 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4973 ac_res=`eval echo '${'$as_ac_Header'}'`
4974 { echo "$as_me:$LINENO: result: $ac_res" >&5
4975 echo "${ECHO_T}$ac_res" >&6; }
4976 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4977 cat >>confdefs.h <<_ACEOF
4978 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4979 _ACEOF
4983 done
4987 for ac_header in dlfcn.h
4989 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4990 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4991 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4992 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4993 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4994 echo $ECHO_N "(cached) $ECHO_C" >&6
4996 ac_res=`eval echo '${'$as_ac_Header'}'`
4997 { echo "$as_me:$LINENO: result: $ac_res" >&5
4998 echo "${ECHO_T}$ac_res" >&6; }
4999 else
5000 # Is the header compilable?
5001 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5002 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5003 cat >conftest.$ac_ext <<_ACEOF
5004 /* confdefs.h. */
5005 _ACEOF
5006 cat confdefs.h >>conftest.$ac_ext
5007 cat >>conftest.$ac_ext <<_ACEOF
5008 /* end confdefs.h. */
5009 $ac_includes_default
5010 #include <$ac_header>
5011 _ACEOF
5012 rm -f conftest.$ac_objext
5013 if { (ac_try="$ac_compile"
5014 case "(($ac_try" in
5015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5016 *) ac_try_echo=$ac_try;;
5017 esac
5018 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5019 (eval "$ac_compile") 2>conftest.er1
5020 ac_status=$?
5021 grep -v '^ *+' conftest.er1 >conftest.err
5022 rm -f conftest.er1
5023 cat conftest.err >&5
5024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5025 (exit $ac_status); } && {
5026 test -z "$ac_c_werror_flag" ||
5027 test ! -s conftest.err
5028 } && test -s conftest.$ac_objext; then
5029 ac_header_compiler=yes
5030 else
5031 echo "$as_me: failed program was:" >&5
5032 sed 's/^/| /' conftest.$ac_ext >&5
5034 ac_header_compiler=no
5037 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5038 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5039 echo "${ECHO_T}$ac_header_compiler" >&6; }
5041 # Is the header present?
5042 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5043 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5044 cat >conftest.$ac_ext <<_ACEOF
5045 /* confdefs.h. */
5046 _ACEOF
5047 cat confdefs.h >>conftest.$ac_ext
5048 cat >>conftest.$ac_ext <<_ACEOF
5049 /* end confdefs.h. */
5050 #include <$ac_header>
5051 _ACEOF
5052 if { (ac_try="$ac_cpp conftest.$ac_ext"
5053 case "(($ac_try" in
5054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5055 *) ac_try_echo=$ac_try;;
5056 esac
5057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5058 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5059 ac_status=$?
5060 grep -v '^ *+' conftest.er1 >conftest.err
5061 rm -f conftest.er1
5062 cat conftest.err >&5
5063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5064 (exit $ac_status); } >/dev/null && {
5065 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5066 test ! -s conftest.err
5067 }; then
5068 ac_header_preproc=yes
5069 else
5070 echo "$as_me: failed program was:" >&5
5071 sed 's/^/| /' conftest.$ac_ext >&5
5073 ac_header_preproc=no
5076 rm -f conftest.err conftest.$ac_ext
5077 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5078 echo "${ECHO_T}$ac_header_preproc" >&6; }
5080 # So? What about this header?
5081 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5082 yes:no: )
5083 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5084 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5085 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5086 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5087 ac_header_preproc=yes
5089 no:yes:* )
5090 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5091 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5092 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5093 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5094 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5095 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5096 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5097 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5098 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5099 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5100 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5101 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5104 esac
5105 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5106 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5107 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5108 echo $ECHO_N "(cached) $ECHO_C" >&6
5109 else
5110 eval "$as_ac_Header=\$ac_header_preproc"
5112 ac_res=`eval echo '${'$as_ac_Header'}'`
5113 { echo "$as_me:$LINENO: result: $ac_res" >&5
5114 echo "${ECHO_T}$ac_res" >&6; }
5117 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5118 cat >>confdefs.h <<_ACEOF
5119 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5120 _ACEOF
5124 done
5126 ac_ext=cpp
5127 ac_cpp='$CXXCPP $CPPFLAGS'
5128 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5129 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5130 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5131 if test -z "$CXX"; then
5132 if test -n "$CCC"; then
5133 CXX=$CCC
5134 else
5135 if test -n "$ac_tool_prefix"; then
5136 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5138 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5139 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5140 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5141 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5142 if test "${ac_cv_prog_CXX+set}" = set; then
5143 echo $ECHO_N "(cached) $ECHO_C" >&6
5144 else
5145 if test -n "$CXX"; then
5146 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5147 else
5148 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5149 for as_dir in $PATH
5151 IFS=$as_save_IFS
5152 test -z "$as_dir" && as_dir=.
5153 for ac_exec_ext in '' $ac_executable_extensions; do
5154 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5155 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5156 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5157 break 2
5159 done
5160 done
5161 IFS=$as_save_IFS
5165 CXX=$ac_cv_prog_CXX
5166 if test -n "$CXX"; then
5167 { echo "$as_me:$LINENO: result: $CXX" >&5
5168 echo "${ECHO_T}$CXX" >&6; }
5169 else
5170 { echo "$as_me:$LINENO: result: no" >&5
5171 echo "${ECHO_T}no" >&6; }
5175 test -n "$CXX" && break
5176 done
5178 if test -z "$CXX"; then
5179 ac_ct_CXX=$CXX
5180 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5182 # Extract the first word of "$ac_prog", so it can be a program name with args.
5183 set dummy $ac_prog; ac_word=$2
5184 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5185 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5186 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5187 echo $ECHO_N "(cached) $ECHO_C" >&6
5188 else
5189 if test -n "$ac_ct_CXX"; then
5190 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5191 else
5192 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5193 for as_dir in $PATH
5195 IFS=$as_save_IFS
5196 test -z "$as_dir" && as_dir=.
5197 for ac_exec_ext in '' $ac_executable_extensions; do
5198 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5199 ac_cv_prog_ac_ct_CXX="$ac_prog"
5200 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5201 break 2
5203 done
5204 done
5205 IFS=$as_save_IFS
5209 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5210 if test -n "$ac_ct_CXX"; then
5211 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5212 echo "${ECHO_T}$ac_ct_CXX" >&6; }
5213 else
5214 { echo "$as_me:$LINENO: result: no" >&5
5215 echo "${ECHO_T}no" >&6; }
5219 test -n "$ac_ct_CXX" && break
5220 done
5222 if test "x$ac_ct_CXX" = x; then
5223 CXX="g++"
5224 else
5225 case $cross_compiling:$ac_tool_warned in
5226 yes:)
5227 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5228 whose name does not start with the host triplet. If you think this
5229 configuration is useful to you, please write to autoconf@gnu.org." >&5
5230 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5231 whose name does not start with the host triplet. If you think this
5232 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5233 ac_tool_warned=yes ;;
5234 esac
5235 CXX=$ac_ct_CXX
5241 # Provide some information about the compiler.
5242 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
5243 ac_compiler=`set X $ac_compile; echo $2`
5244 { (ac_try="$ac_compiler --version >&5"
5245 case "(($ac_try" in
5246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5247 *) ac_try_echo=$ac_try;;
5248 esac
5249 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5250 (eval "$ac_compiler --version >&5") 2>&5
5251 ac_status=$?
5252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5253 (exit $ac_status); }
5254 { (ac_try="$ac_compiler -v >&5"
5255 case "(($ac_try" in
5256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5257 *) ac_try_echo=$ac_try;;
5258 esac
5259 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5260 (eval "$ac_compiler -v >&5") 2>&5
5261 ac_status=$?
5262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5263 (exit $ac_status); }
5264 { (ac_try="$ac_compiler -V >&5"
5265 case "(($ac_try" in
5266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5267 *) ac_try_echo=$ac_try;;
5268 esac
5269 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5270 (eval "$ac_compiler -V >&5") 2>&5
5271 ac_status=$?
5272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5273 (exit $ac_status); }
5275 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5276 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
5277 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5278 echo $ECHO_N "(cached) $ECHO_C" >&6
5279 else
5280 cat >conftest.$ac_ext <<_ACEOF
5281 /* confdefs.h. */
5282 _ACEOF
5283 cat confdefs.h >>conftest.$ac_ext
5284 cat >>conftest.$ac_ext <<_ACEOF
5285 /* end confdefs.h. */
5288 main ()
5290 #ifndef __GNUC__
5291 choke me
5292 #endif
5295 return 0;
5297 _ACEOF
5298 rm -f conftest.$ac_objext
5299 if { (ac_try="$ac_compile"
5300 case "(($ac_try" in
5301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5302 *) ac_try_echo=$ac_try;;
5303 esac
5304 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5305 (eval "$ac_compile") 2>conftest.er1
5306 ac_status=$?
5307 grep -v '^ *+' conftest.er1 >conftest.err
5308 rm -f conftest.er1
5309 cat conftest.err >&5
5310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5311 (exit $ac_status); } && {
5312 test -z "$ac_cxx_werror_flag" ||
5313 test ! -s conftest.err
5314 } && test -s conftest.$ac_objext; then
5315 ac_compiler_gnu=yes
5316 else
5317 echo "$as_me: failed program was:" >&5
5318 sed 's/^/| /' conftest.$ac_ext >&5
5320 ac_compiler_gnu=no
5323 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5324 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5327 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5328 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
5329 GXX=`test $ac_compiler_gnu = yes && echo yes`
5330 ac_test_CXXFLAGS=${CXXFLAGS+set}
5331 ac_save_CXXFLAGS=$CXXFLAGS
5332 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5333 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
5334 if test "${ac_cv_prog_cxx_g+set}" = set; then
5335 echo $ECHO_N "(cached) $ECHO_C" >&6
5336 else
5337 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5338 ac_cxx_werror_flag=yes
5339 ac_cv_prog_cxx_g=no
5340 CXXFLAGS="-g"
5341 cat >conftest.$ac_ext <<_ACEOF
5342 /* confdefs.h. */
5343 _ACEOF
5344 cat confdefs.h >>conftest.$ac_ext
5345 cat >>conftest.$ac_ext <<_ACEOF
5346 /* end confdefs.h. */
5349 main ()
5353 return 0;
5355 _ACEOF
5356 rm -f conftest.$ac_objext
5357 if { (ac_try="$ac_compile"
5358 case "(($ac_try" in
5359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5360 *) ac_try_echo=$ac_try;;
5361 esac
5362 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5363 (eval "$ac_compile") 2>conftest.er1
5364 ac_status=$?
5365 grep -v '^ *+' conftest.er1 >conftest.err
5366 rm -f conftest.er1
5367 cat conftest.err >&5
5368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5369 (exit $ac_status); } && {
5370 test -z "$ac_cxx_werror_flag" ||
5371 test ! -s conftest.err
5372 } && test -s conftest.$ac_objext; then
5373 ac_cv_prog_cxx_g=yes
5374 else
5375 echo "$as_me: failed program was:" >&5
5376 sed 's/^/| /' conftest.$ac_ext >&5
5378 CXXFLAGS=""
5379 cat >conftest.$ac_ext <<_ACEOF
5380 /* confdefs.h. */
5381 _ACEOF
5382 cat confdefs.h >>conftest.$ac_ext
5383 cat >>conftest.$ac_ext <<_ACEOF
5384 /* end confdefs.h. */
5387 main ()
5391 return 0;
5393 _ACEOF
5394 rm -f conftest.$ac_objext
5395 if { (ac_try="$ac_compile"
5396 case "(($ac_try" in
5397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5398 *) ac_try_echo=$ac_try;;
5399 esac
5400 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5401 (eval "$ac_compile") 2>conftest.er1
5402 ac_status=$?
5403 grep -v '^ *+' conftest.er1 >conftest.err
5404 rm -f conftest.er1
5405 cat conftest.err >&5
5406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5407 (exit $ac_status); } && {
5408 test -z "$ac_cxx_werror_flag" ||
5409 test ! -s conftest.err
5410 } && test -s conftest.$ac_objext; then
5412 else
5413 echo "$as_me: failed program was:" >&5
5414 sed 's/^/| /' conftest.$ac_ext >&5
5416 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5417 CXXFLAGS="-g"
5418 cat >conftest.$ac_ext <<_ACEOF
5419 /* confdefs.h. */
5420 _ACEOF
5421 cat confdefs.h >>conftest.$ac_ext
5422 cat >>conftest.$ac_ext <<_ACEOF
5423 /* end confdefs.h. */
5426 main ()
5430 return 0;
5432 _ACEOF
5433 rm -f conftest.$ac_objext
5434 if { (ac_try="$ac_compile"
5435 case "(($ac_try" in
5436 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5437 *) ac_try_echo=$ac_try;;
5438 esac
5439 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5440 (eval "$ac_compile") 2>conftest.er1
5441 ac_status=$?
5442 grep -v '^ *+' conftest.er1 >conftest.err
5443 rm -f conftest.er1
5444 cat conftest.err >&5
5445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5446 (exit $ac_status); } && {
5447 test -z "$ac_cxx_werror_flag" ||
5448 test ! -s conftest.err
5449 } && test -s conftest.$ac_objext; then
5450 ac_cv_prog_cxx_g=yes
5451 else
5452 echo "$as_me: failed program was:" >&5
5453 sed 's/^/| /' conftest.$ac_ext >&5
5458 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5461 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5464 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5465 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5467 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5468 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
5469 if test "$ac_test_CXXFLAGS" = set; then
5470 CXXFLAGS=$ac_save_CXXFLAGS
5471 elif test $ac_cv_prog_cxx_g = yes; then
5472 if test "$GXX" = yes; then
5473 CXXFLAGS="-g -O2"
5474 else
5475 CXXFLAGS="-g"
5477 else
5478 if test "$GXX" = yes; then
5479 CXXFLAGS="-O2"
5480 else
5481 CXXFLAGS=
5484 ac_ext=cpp
5485 ac_cpp='$CXXCPP $CPPFLAGS'
5486 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5487 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5488 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5490 depcc="$CXX" am_compiler_list=
5492 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5493 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
5494 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
5495 echo $ECHO_N "(cached) $ECHO_C" >&6
5496 else
5497 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5498 # We make a subdir and do the tests there. Otherwise we can end up
5499 # making bogus files that we don't know about and never remove. For
5500 # instance it was reported that on HP-UX the gcc test will end up
5501 # making a dummy file named `D' -- because `-MD' means `put the output
5502 # in D'.
5503 mkdir conftest.dir
5504 # Copy depcomp to subdir because otherwise we won't find it if we're
5505 # using a relative directory.
5506 cp "$am_depcomp" conftest.dir
5507 cd conftest.dir
5508 # We will build objects and dependencies in a subdirectory because
5509 # it helps to detect inapplicable dependency modes. For instance
5510 # both Tru64's cc and ICC support -MD to output dependencies as a
5511 # side effect of compilation, but ICC will put the dependencies in
5512 # the current directory while Tru64 will put them in the object
5513 # directory.
5514 mkdir sub
5516 am_cv_CXX_dependencies_compiler_type=none
5517 if test "$am_compiler_list" = ""; then
5518 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5520 for depmode in $am_compiler_list; do
5521 # Setup a source with many dependencies, because some compilers
5522 # like to wrap large dependency lists on column 80 (with \), and
5523 # we should not choose a depcomp mode which is confused by this.
5525 # We need to recreate these files for each test, as the compiler may
5526 # overwrite some of them when testing with obscure command lines.
5527 # This happens at least with the AIX C compiler.
5528 : > sub/conftest.c
5529 for i in 1 2 3 4 5 6; do
5530 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5531 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5532 # Solaris 8's {/usr,}/bin/sh.
5533 touch sub/conftst$i.h
5534 done
5535 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5537 case $depmode in
5538 nosideeffect)
5539 # after this tag, mechanisms are not by side-effect, so they'll
5540 # only be used when explicitly requested
5541 if test "x$enable_dependency_tracking" = xyes; then
5542 continue
5543 else
5544 break
5547 none) break ;;
5548 esac
5549 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5550 # mode. It turns out that the SunPro C++ compiler does not properly
5551 # handle `-M -o', and we need to detect this.
5552 if depmode=$depmode \
5553 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5554 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5555 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5556 >/dev/null 2>conftest.err &&
5557 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5558 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5559 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5560 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5561 # icc doesn't choke on unknown options, it will just issue warnings
5562 # or remarks (even with -Werror). So we grep stderr for any message
5563 # that says an option was ignored or not supported.
5564 # When given -MP, icc 7.0 and 7.1 complain thusly:
5565 # icc: Command line warning: ignoring option '-M'; no argument required
5566 # The diagnosis changed in icc 8.0:
5567 # icc: Command line remark: option '-MP' not supported
5568 if (grep 'ignoring option' conftest.err ||
5569 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5570 am_cv_CXX_dependencies_compiler_type=$depmode
5571 break
5574 done
5576 cd ..
5577 rm -rf conftest.dir
5578 else
5579 am_cv_CXX_dependencies_compiler_type=none
5583 { echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
5584 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
5585 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5588 test "x$enable_dependency_tracking" != xno \
5589 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5590 am__fastdepCXX_TRUE=
5591 am__fastdepCXX_FALSE='#'
5592 else
5593 am__fastdepCXX_TRUE='#'
5594 am__fastdepCXX_FALSE=
5600 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5601 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5602 (test "X$CXX" != "Xg++"))) ; then
5603 ac_ext=cpp
5604 ac_cpp='$CXXCPP $CPPFLAGS'
5605 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5606 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5607 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5608 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5609 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
5610 if test -z "$CXXCPP"; then
5611 if test "${ac_cv_prog_CXXCPP+set}" = set; then
5612 echo $ECHO_N "(cached) $ECHO_C" >&6
5613 else
5614 # Double quotes because CXXCPP needs to be expanded
5615 for CXXCPP in "$CXX -E" "/lib/cpp"
5617 ac_preproc_ok=false
5618 for ac_cxx_preproc_warn_flag in '' yes
5620 # Use a header file that comes with gcc, so configuring glibc
5621 # with a fresh cross-compiler works.
5622 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5623 # <limits.h> exists even on freestanding compilers.
5624 # On the NeXT, cc -E runs the code through the compiler's parser,
5625 # not just through cpp. "Syntax error" is here to catch this case.
5626 cat >conftest.$ac_ext <<_ACEOF
5627 /* confdefs.h. */
5628 _ACEOF
5629 cat confdefs.h >>conftest.$ac_ext
5630 cat >>conftest.$ac_ext <<_ACEOF
5631 /* end confdefs.h. */
5632 #ifdef __STDC__
5633 # include <limits.h>
5634 #else
5635 # include <assert.h>
5636 #endif
5637 Syntax error
5638 _ACEOF
5639 if { (ac_try="$ac_cpp conftest.$ac_ext"
5640 case "(($ac_try" in
5641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5642 *) ac_try_echo=$ac_try;;
5643 esac
5644 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5645 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5646 ac_status=$?
5647 grep -v '^ *+' conftest.er1 >conftest.err
5648 rm -f conftest.er1
5649 cat conftest.err >&5
5650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5651 (exit $ac_status); } >/dev/null && {
5652 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5653 test ! -s conftest.err
5654 }; then
5656 else
5657 echo "$as_me: failed program was:" >&5
5658 sed 's/^/| /' conftest.$ac_ext >&5
5660 # Broken: fails on valid input.
5661 continue
5664 rm -f conftest.err conftest.$ac_ext
5666 # OK, works on sane cases. Now check whether nonexistent headers
5667 # can be detected and how.
5668 cat >conftest.$ac_ext <<_ACEOF
5669 /* confdefs.h. */
5670 _ACEOF
5671 cat confdefs.h >>conftest.$ac_ext
5672 cat >>conftest.$ac_ext <<_ACEOF
5673 /* end confdefs.h. */
5674 #include <ac_nonexistent.h>
5675 _ACEOF
5676 if { (ac_try="$ac_cpp conftest.$ac_ext"
5677 case "(($ac_try" in
5678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5679 *) ac_try_echo=$ac_try;;
5680 esac
5681 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5682 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5683 ac_status=$?
5684 grep -v '^ *+' conftest.er1 >conftest.err
5685 rm -f conftest.er1
5686 cat conftest.err >&5
5687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5688 (exit $ac_status); } >/dev/null && {
5689 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5690 test ! -s conftest.err
5691 }; then
5692 # Broken: success on invalid input.
5693 continue
5694 else
5695 echo "$as_me: failed program was:" >&5
5696 sed 's/^/| /' conftest.$ac_ext >&5
5698 # Passes both tests.
5699 ac_preproc_ok=:
5700 break
5703 rm -f conftest.err conftest.$ac_ext
5705 done
5706 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5707 rm -f conftest.err conftest.$ac_ext
5708 if $ac_preproc_ok; then
5709 break
5712 done
5713 ac_cv_prog_CXXCPP=$CXXCPP
5716 CXXCPP=$ac_cv_prog_CXXCPP
5717 else
5718 ac_cv_prog_CXXCPP=$CXXCPP
5720 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
5721 echo "${ECHO_T}$CXXCPP" >&6; }
5722 ac_preproc_ok=false
5723 for ac_cxx_preproc_warn_flag in '' yes
5725 # Use a header file that comes with gcc, so configuring glibc
5726 # with a fresh cross-compiler works.
5727 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5728 # <limits.h> exists even on freestanding compilers.
5729 # On the NeXT, cc -E runs the code through the compiler's parser,
5730 # not just through cpp. "Syntax error" is here to catch this case.
5731 cat >conftest.$ac_ext <<_ACEOF
5732 /* confdefs.h. */
5733 _ACEOF
5734 cat confdefs.h >>conftest.$ac_ext
5735 cat >>conftest.$ac_ext <<_ACEOF
5736 /* end confdefs.h. */
5737 #ifdef __STDC__
5738 # include <limits.h>
5739 #else
5740 # include <assert.h>
5741 #endif
5742 Syntax error
5743 _ACEOF
5744 if { (ac_try="$ac_cpp conftest.$ac_ext"
5745 case "(($ac_try" in
5746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5747 *) ac_try_echo=$ac_try;;
5748 esac
5749 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5750 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5751 ac_status=$?
5752 grep -v '^ *+' conftest.er1 >conftest.err
5753 rm -f conftest.er1
5754 cat conftest.err >&5
5755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5756 (exit $ac_status); } >/dev/null && {
5757 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5758 test ! -s conftest.err
5759 }; then
5761 else
5762 echo "$as_me: failed program was:" >&5
5763 sed 's/^/| /' conftest.$ac_ext >&5
5765 # Broken: fails on valid input.
5766 continue
5769 rm -f conftest.err conftest.$ac_ext
5771 # OK, works on sane cases. Now check whether nonexistent headers
5772 # can be detected and how.
5773 cat >conftest.$ac_ext <<_ACEOF
5774 /* confdefs.h. */
5775 _ACEOF
5776 cat confdefs.h >>conftest.$ac_ext
5777 cat >>conftest.$ac_ext <<_ACEOF
5778 /* end confdefs.h. */
5779 #include <ac_nonexistent.h>
5780 _ACEOF
5781 if { (ac_try="$ac_cpp conftest.$ac_ext"
5782 case "(($ac_try" in
5783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5784 *) ac_try_echo=$ac_try;;
5785 esac
5786 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5787 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5788 ac_status=$?
5789 grep -v '^ *+' conftest.er1 >conftest.err
5790 rm -f conftest.er1
5791 cat conftest.err >&5
5792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5793 (exit $ac_status); } >/dev/null && {
5794 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5795 test ! -s conftest.err
5796 }; then
5797 # Broken: success on invalid input.
5798 continue
5799 else
5800 echo "$as_me: failed program was:" >&5
5801 sed 's/^/| /' conftest.$ac_ext >&5
5803 # Passes both tests.
5804 ac_preproc_ok=:
5805 break
5808 rm -f conftest.err conftest.$ac_ext
5810 done
5811 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5812 rm -f conftest.err conftest.$ac_ext
5813 if $ac_preproc_ok; then
5815 else
5816 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5817 See \`config.log' for more details." >&5
5818 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5819 See \`config.log' for more details." >&2;}
5820 { (exit 1); exit 1; }; }
5823 ac_ext=cpp
5824 ac_cpp='$CXXCPP $CPPFLAGS'
5825 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5826 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5827 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5832 ac_ext=f
5833 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5834 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5835 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5836 if test -n "$ac_tool_prefix"; then
5837 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
5839 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5840 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5841 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5842 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5843 if test "${ac_cv_prog_F77+set}" = set; then
5844 echo $ECHO_N "(cached) $ECHO_C" >&6
5845 else
5846 if test -n "$F77"; then
5847 ac_cv_prog_F77="$F77" # Let the user override the test.
5848 else
5849 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5850 for as_dir in $PATH
5852 IFS=$as_save_IFS
5853 test -z "$as_dir" && as_dir=.
5854 for ac_exec_ext in '' $ac_executable_extensions; do
5855 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5856 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5857 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5858 break 2
5860 done
5861 done
5862 IFS=$as_save_IFS
5866 F77=$ac_cv_prog_F77
5867 if test -n "$F77"; then
5868 { echo "$as_me:$LINENO: result: $F77" >&5
5869 echo "${ECHO_T}$F77" >&6; }
5870 else
5871 { echo "$as_me:$LINENO: result: no" >&5
5872 echo "${ECHO_T}no" >&6; }
5876 test -n "$F77" && break
5877 done
5879 if test -z "$F77"; then
5880 ac_ct_F77=$F77
5881 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
5883 # Extract the first word of "$ac_prog", so it can be a program name with args.
5884 set dummy $ac_prog; ac_word=$2
5885 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5886 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5887 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5888 echo $ECHO_N "(cached) $ECHO_C" >&6
5889 else
5890 if test -n "$ac_ct_F77"; then
5891 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5892 else
5893 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5894 for as_dir in $PATH
5896 IFS=$as_save_IFS
5897 test -z "$as_dir" && as_dir=.
5898 for ac_exec_ext in '' $ac_executable_extensions; do
5899 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5900 ac_cv_prog_ac_ct_F77="$ac_prog"
5901 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5902 break 2
5904 done
5905 done
5906 IFS=$as_save_IFS
5910 ac_ct_F77=$ac_cv_prog_ac_ct_F77
5911 if test -n "$ac_ct_F77"; then
5912 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5913 echo "${ECHO_T}$ac_ct_F77" >&6; }
5914 else
5915 { echo "$as_me:$LINENO: result: no" >&5
5916 echo "${ECHO_T}no" >&6; }
5920 test -n "$ac_ct_F77" && break
5921 done
5923 if test "x$ac_ct_F77" = x; then
5924 F77=""
5925 else
5926 case $cross_compiling:$ac_tool_warned in
5927 yes:)
5928 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5929 whose name does not start with the host triplet. If you think this
5930 configuration is useful to you, please write to autoconf@gnu.org." >&5
5931 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5932 whose name does not start with the host triplet. If you think this
5933 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5934 ac_tool_warned=yes ;;
5935 esac
5936 F77=$ac_ct_F77
5941 # Provide some information about the compiler.
5942 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
5943 ac_compiler=`set X $ac_compile; echo $2`
5944 { (ac_try="$ac_compiler --version >&5"
5945 case "(($ac_try" in
5946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5947 *) ac_try_echo=$ac_try;;
5948 esac
5949 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5950 (eval "$ac_compiler --version >&5") 2>&5
5951 ac_status=$?
5952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5953 (exit $ac_status); }
5954 { (ac_try="$ac_compiler -v >&5"
5955 case "(($ac_try" in
5956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5957 *) ac_try_echo=$ac_try;;
5958 esac
5959 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5960 (eval "$ac_compiler -v >&5") 2>&5
5961 ac_status=$?
5962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5963 (exit $ac_status); }
5964 { (ac_try="$ac_compiler -V >&5"
5965 case "(($ac_try" in
5966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5967 *) ac_try_echo=$ac_try;;
5968 esac
5969 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5970 (eval "$ac_compiler -V >&5") 2>&5
5971 ac_status=$?
5972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5973 (exit $ac_status); }
5974 rm -f a.out
5976 # If we don't use `.F' as extension, the preprocessor is not run on the
5977 # input file. (Note that this only needs to work for GNU compilers.)
5978 ac_save_ext=$ac_ext
5979 ac_ext=F
5980 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5981 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
5982 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5983 echo $ECHO_N "(cached) $ECHO_C" >&6
5984 else
5985 cat >conftest.$ac_ext <<_ACEOF
5986 program main
5987 #ifndef __GNUC__
5988 choke me
5989 #endif
5992 _ACEOF
5993 rm -f conftest.$ac_objext
5994 if { (ac_try="$ac_compile"
5995 case "(($ac_try" in
5996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5997 *) ac_try_echo=$ac_try;;
5998 esac
5999 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6000 (eval "$ac_compile") 2>conftest.er1
6001 ac_status=$?
6002 grep -v '^ *+' conftest.er1 >conftest.err
6003 rm -f conftest.er1
6004 cat conftest.err >&5
6005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6006 (exit $ac_status); } && {
6007 test -z "$ac_f77_werror_flag" ||
6008 test ! -s conftest.err
6009 } && test -s conftest.$ac_objext; then
6010 ac_compiler_gnu=yes
6011 else
6012 echo "$as_me: failed program was:" >&5
6013 sed 's/^/| /' conftest.$ac_ext >&5
6015 ac_compiler_gnu=no
6018 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6019 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6022 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
6023 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
6024 ac_ext=$ac_save_ext
6025 ac_test_FFLAGS=${FFLAGS+set}
6026 ac_save_FFLAGS=$FFLAGS
6027 FFLAGS=
6028 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
6029 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
6030 if test "${ac_cv_prog_f77_g+set}" = set; then
6031 echo $ECHO_N "(cached) $ECHO_C" >&6
6032 else
6033 FFLAGS=-g
6034 cat >conftest.$ac_ext <<_ACEOF
6035 program main
6038 _ACEOF
6039 rm -f conftest.$ac_objext
6040 if { (ac_try="$ac_compile"
6041 case "(($ac_try" in
6042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6043 *) ac_try_echo=$ac_try;;
6044 esac
6045 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6046 (eval "$ac_compile") 2>conftest.er1
6047 ac_status=$?
6048 grep -v '^ *+' conftest.er1 >conftest.err
6049 rm -f conftest.er1
6050 cat conftest.err >&5
6051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6052 (exit $ac_status); } && {
6053 test -z "$ac_f77_werror_flag" ||
6054 test ! -s conftest.err
6055 } && test -s conftest.$ac_objext; then
6056 ac_cv_prog_f77_g=yes
6057 else
6058 echo "$as_me: failed program was:" >&5
6059 sed 's/^/| /' conftest.$ac_ext >&5
6061 ac_cv_prog_f77_g=no
6064 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6067 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6068 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
6069 if test "$ac_test_FFLAGS" = set; then
6070 FFLAGS=$ac_save_FFLAGS
6071 elif test $ac_cv_prog_f77_g = yes; then
6072 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6073 FFLAGS="-g -O2"
6074 else
6075 FFLAGS="-g"
6077 else
6078 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6079 FFLAGS="-O2"
6080 else
6081 FFLAGS=
6085 G77=`test $ac_compiler_gnu = yes && echo yes`
6086 ac_ext=c
6087 ac_cpp='$CPP $CPPFLAGS'
6088 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6089 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6090 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6094 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6096 # find the maximum length of command line arguments
6097 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6098 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
6099 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6100 echo $ECHO_N "(cached) $ECHO_C" >&6
6101 else
6103 teststring="ABCD"
6105 case $build_os in
6106 msdosdjgpp*)
6107 # On DJGPP, this test can blow up pretty badly due to problems in libc
6108 # (any single argument exceeding 2000 bytes causes a buffer overrun
6109 # during glob expansion). Even if it were fixed, the result of this
6110 # check would be larger than it should be.
6111 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6114 gnu*)
6115 # Under GNU Hurd, this test is not required because there is
6116 # no limit to the length of command line arguments.
6117 # Libtool will interpret -1 as no limit whatsoever
6118 lt_cv_sys_max_cmd_len=-1;
6121 cygwin* | mingw*)
6122 # On Win9x/ME, this test blows up -- it succeeds, but takes
6123 # about 5 minutes as the teststring grows exponentially.
6124 # Worse, since 9x/ME are not pre-emptively multitasking,
6125 # you end up with a "frozen" computer, even though with patience
6126 # the test eventually succeeds (with a max line length of 256k).
6127 # Instead, let's just punt: use the minimum linelength reported by
6128 # all of the supported platforms: 8192 (on NT/2K/XP).
6129 lt_cv_sys_max_cmd_len=8192;
6132 amigaos*)
6133 # On AmigaOS with pdksh, this test takes hours, literally.
6134 # So we just punt and use a minimum line length of 8192.
6135 lt_cv_sys_max_cmd_len=8192;
6138 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6139 # This has been around since 386BSD, at least. Likely further.
6140 if test -x /sbin/sysctl; then
6141 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6142 elif test -x /usr/sbin/sysctl; then
6143 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6144 else
6145 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6147 # And add a safety zone
6148 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6149 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6152 interix*)
6153 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6154 lt_cv_sys_max_cmd_len=196608
6157 osf*)
6158 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6159 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6160 # nice to cause kernel panics so lets avoid the loop below.
6161 # First set a reasonable default.
6162 lt_cv_sys_max_cmd_len=16384
6164 if test -x /sbin/sysconfig; then
6165 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6166 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6167 esac
6170 sco3.2v5*)
6171 lt_cv_sys_max_cmd_len=102400
6173 sysv5* | sco5v6* | sysv4.2uw2*)
6174 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6175 if test -n "$kargmax"; then
6176 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6177 else
6178 lt_cv_sys_max_cmd_len=32768
6182 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6183 if test -n "$lt_cv_sys_max_cmd_len"; then
6184 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6185 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6186 else
6187 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6188 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6189 = "XX$teststring") >/dev/null 2>&1 &&
6190 new_result=`expr "X$teststring" : ".*" 2>&1` &&
6191 lt_cv_sys_max_cmd_len=$new_result &&
6192 test $i != 17 # 1/2 MB should be enough
6194 i=`expr $i + 1`
6195 teststring=$teststring$teststring
6196 done
6197 teststring=
6198 # Add a significant safety factor because C++ compilers can tack on massive
6199 # amounts of additional arguments before passing them to the linker.
6200 # It appears as though 1/2 is a usable value.
6201 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6204 esac
6208 if test -n $lt_cv_sys_max_cmd_len ; then
6209 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6210 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
6211 else
6212 { echo "$as_me:$LINENO: result: none" >&5
6213 echo "${ECHO_T}none" >&6; }
6220 # Check for command to grab the raw symbol name followed by C symbol from nm.
6221 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6222 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
6223 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6224 echo $ECHO_N "(cached) $ECHO_C" >&6
6225 else
6227 # These are sane defaults that work on at least a few old systems.
6228 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6230 # Character class describing NM global symbol codes.
6231 symcode='[BCDEGRST]'
6233 # Regexp to match symbols that can be accessed directly from C.
6234 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6236 # Transform an extracted symbol line into a proper C declaration
6237 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6239 # Transform an extracted symbol line into symbol name and symbol address
6240 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'"
6242 # Define system-specific variables.
6243 case $host_os in
6244 aix*)
6245 symcode='[BCDT]'
6247 cygwin* | mingw* | pw32*)
6248 symcode='[ABCDGISTW]'
6250 hpux*) # Its linker distinguishes data from code symbols
6251 if test "$host_cpu" = ia64; then
6252 symcode='[ABCDEGRST]'
6254 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6255 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'"
6257 linux* | k*bsd*-gnu)
6258 if test "$host_cpu" = ia64; then
6259 symcode='[ABCDGIRSTW]'
6260 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6261 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'"
6264 irix* | nonstopux*)
6265 symcode='[BCDEGRST]'
6267 osf*)
6268 symcode='[BCDEGQRST]'
6270 solaris*)
6271 symcode='[BDRT]'
6273 sco3.2v5*)
6274 symcode='[DT]'
6276 sysv4.2uw2*)
6277 symcode='[DT]'
6279 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6280 symcode='[ABDT]'
6282 sysv4)
6283 symcode='[DFNSTU]'
6285 esac
6287 # Handle CRLF in mingw tool chain
6288 opt_cr=
6289 case $build_os in
6290 mingw*)
6291 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6293 esac
6295 # If we're using GNU nm, then use its standard symbol codes.
6296 case `$NM -V 2>&1` in
6297 *GNU* | *'with BFD'*)
6298 symcode='[ABCDGIRSTW]' ;;
6299 esac
6301 # Try without a prefix undercore, then with it.
6302 for ac_symprfx in "" "_"; do
6304 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6305 symxfrm="\\1 $ac_symprfx\\2 \\2"
6307 # Write the raw and C identifiers.
6308 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6310 # Check to see that the pipe works correctly.
6311 pipe_works=no
6313 rm -f conftest*
6314 cat > conftest.$ac_ext <<EOF
6315 #ifdef __cplusplus
6316 extern "C" {
6317 #endif
6318 char nm_test_var;
6319 void nm_test_func(){}
6320 #ifdef __cplusplus
6322 #endif
6323 int main(){nm_test_var='a';nm_test_func();return(0);}
6326 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6327 (eval $ac_compile) 2>&5
6328 ac_status=$?
6329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6330 (exit $ac_status); }; then
6331 # Now try to grab the symbols.
6332 nlist=conftest.nm
6333 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6334 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6335 ac_status=$?
6336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6337 (exit $ac_status); } && test -s "$nlist"; then
6338 # Try sorting and uniquifying the output.
6339 if sort "$nlist" | uniq > "$nlist"T; then
6340 mv -f "$nlist"T "$nlist"
6341 else
6342 rm -f "$nlist"T
6345 # Make sure that we snagged all the symbols we need.
6346 if grep ' nm_test_var$' "$nlist" >/dev/null; then
6347 if grep ' nm_test_func$' "$nlist" >/dev/null; then
6348 cat <<EOF > conftest.$ac_ext
6349 #ifdef __cplusplus
6350 extern "C" {
6351 #endif
6354 # Now generate the symbol file.
6355 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6357 cat <<EOF >> conftest.$ac_ext
6358 #if defined (__STDC__) && __STDC__
6359 # define lt_ptr_t void *
6360 #else
6361 # define lt_ptr_t char *
6362 # define const
6363 #endif
6365 /* The mapping between symbol names and symbols. */
6366 const struct {
6367 const char *name;
6368 lt_ptr_t address;
6370 lt_preloaded_symbols[] =
6373 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6374 cat <<\EOF >> conftest.$ac_ext
6375 {0, (lt_ptr_t) 0}
6378 #ifdef __cplusplus
6380 #endif
6382 # Now try linking the two files.
6383 mv conftest.$ac_objext conftstm.$ac_objext
6384 lt_save_LIBS="$LIBS"
6385 lt_save_CFLAGS="$CFLAGS"
6386 LIBS="conftstm.$ac_objext"
6387 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6388 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6389 (eval $ac_link) 2>&5
6390 ac_status=$?
6391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6392 (exit $ac_status); } && test -s conftest${ac_exeext}; then
6393 pipe_works=yes
6395 LIBS="$lt_save_LIBS"
6396 CFLAGS="$lt_save_CFLAGS"
6397 else
6398 echo "cannot find nm_test_func in $nlist" >&5
6400 else
6401 echo "cannot find nm_test_var in $nlist" >&5
6403 else
6404 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6406 else
6407 echo "$progname: failed program was:" >&5
6408 cat conftest.$ac_ext >&5
6410 rm -f conftest* conftst*
6412 # Do not use the global_symbol_pipe unless it works.
6413 if test "$pipe_works" = yes; then
6414 break
6415 else
6416 lt_cv_sys_global_symbol_pipe=
6418 done
6422 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6423 lt_cv_sys_global_symbol_to_cdecl=
6425 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6426 { echo "$as_me:$LINENO: result: failed" >&5
6427 echo "${ECHO_T}failed" >&6; }
6428 else
6429 { echo "$as_me:$LINENO: result: ok" >&5
6430 echo "${ECHO_T}ok" >&6; }
6433 { echo "$as_me:$LINENO: checking for objdir" >&5
6434 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
6435 if test "${lt_cv_objdir+set}" = set; then
6436 echo $ECHO_N "(cached) $ECHO_C" >&6
6437 else
6438 rm -f .libs 2>/dev/null
6439 mkdir .libs 2>/dev/null
6440 if test -d .libs; then
6441 lt_cv_objdir=.libs
6442 else
6443 # MS-DOS does not allow filenames that begin with a dot.
6444 lt_cv_objdir=_libs
6446 rmdir .libs 2>/dev/null
6448 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6449 echo "${ECHO_T}$lt_cv_objdir" >&6; }
6450 objdir=$lt_cv_objdir
6456 case $host_os in
6457 aix3*)
6458 # AIX sometimes has problems with the GCC collect2 program. For some
6459 # reason, if we set the COLLECT_NAMES environment variable, the problems
6460 # vanish in a puff of smoke.
6461 if test "X${COLLECT_NAMES+set}" != Xset; then
6462 COLLECT_NAMES=
6463 export COLLECT_NAMES
6466 esac
6468 # Sed substitution that helps us do robust quoting. It backslashifies
6469 # metacharacters that are still active within double-quoted strings.
6470 Xsed='sed -e 1s/^X//'
6471 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6473 # Same as above, but do not quote variable references.
6474 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6476 # Sed substitution to delay expansion of an escaped shell variable in a
6477 # double_quote_subst'ed string.
6478 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6480 # Sed substitution to avoid accidental globbing in evaled expressions
6481 no_glob_subst='s/\*/\\\*/g'
6483 # Constants:
6484 rm="rm -f"
6486 # Global variables:
6487 default_ofile=libtool
6488 can_build_shared=yes
6490 # All known linkers require a `.a' archive for static linking (except MSVC,
6491 # which needs '.lib').
6492 libext=a
6493 ltmain="$ac_aux_dir/ltmain.sh"
6494 ofile="$default_ofile"
6495 with_gnu_ld="$lt_cv_prog_gnu_ld"
6497 if test -n "$ac_tool_prefix"; then
6498 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6499 set dummy ${ac_tool_prefix}ar; ac_word=$2
6500 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6501 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6502 if test "${ac_cv_prog_AR+set}" = set; then
6503 echo $ECHO_N "(cached) $ECHO_C" >&6
6504 else
6505 if test -n "$AR"; then
6506 ac_cv_prog_AR="$AR" # Let the user override the test.
6507 else
6508 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6509 for as_dir in $PATH
6511 IFS=$as_save_IFS
6512 test -z "$as_dir" && as_dir=.
6513 for ac_exec_ext in '' $ac_executable_extensions; do
6514 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6515 ac_cv_prog_AR="${ac_tool_prefix}ar"
6516 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6517 break 2
6519 done
6520 done
6521 IFS=$as_save_IFS
6525 AR=$ac_cv_prog_AR
6526 if test -n "$AR"; then
6527 { echo "$as_me:$LINENO: result: $AR" >&5
6528 echo "${ECHO_T}$AR" >&6; }
6529 else
6530 { echo "$as_me:$LINENO: result: no" >&5
6531 echo "${ECHO_T}no" >&6; }
6536 if test -z "$ac_cv_prog_AR"; then
6537 ac_ct_AR=$AR
6538 # Extract the first word of "ar", so it can be a program name with args.
6539 set dummy ar; ac_word=$2
6540 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6541 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6542 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6543 echo $ECHO_N "(cached) $ECHO_C" >&6
6544 else
6545 if test -n "$ac_ct_AR"; then
6546 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6547 else
6548 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6549 for as_dir in $PATH
6551 IFS=$as_save_IFS
6552 test -z "$as_dir" && as_dir=.
6553 for ac_exec_ext in '' $ac_executable_extensions; do
6554 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6555 ac_cv_prog_ac_ct_AR="ar"
6556 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6557 break 2
6559 done
6560 done
6561 IFS=$as_save_IFS
6565 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6566 if test -n "$ac_ct_AR"; then
6567 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6568 echo "${ECHO_T}$ac_ct_AR" >&6; }
6569 else
6570 { echo "$as_me:$LINENO: result: no" >&5
6571 echo "${ECHO_T}no" >&6; }
6574 if test "x$ac_ct_AR" = x; then
6575 AR="false"
6576 else
6577 case $cross_compiling:$ac_tool_warned in
6578 yes:)
6579 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6580 whose name does not start with the host triplet. If you think this
6581 configuration is useful to you, please write to autoconf@gnu.org." >&5
6582 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6583 whose name does not start with the host triplet. If you think this
6584 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6585 ac_tool_warned=yes ;;
6586 esac
6587 AR=$ac_ct_AR
6589 else
6590 AR="$ac_cv_prog_AR"
6593 if test -n "$ac_tool_prefix"; then
6594 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6595 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6596 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6597 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6598 if test "${ac_cv_prog_RANLIB+set}" = set; then
6599 echo $ECHO_N "(cached) $ECHO_C" >&6
6600 else
6601 if test -n "$RANLIB"; then
6602 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6603 else
6604 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6605 for as_dir in $PATH
6607 IFS=$as_save_IFS
6608 test -z "$as_dir" && as_dir=.
6609 for ac_exec_ext in '' $ac_executable_extensions; do
6610 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6611 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6612 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6613 break 2
6615 done
6616 done
6617 IFS=$as_save_IFS
6621 RANLIB=$ac_cv_prog_RANLIB
6622 if test -n "$RANLIB"; then
6623 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6624 echo "${ECHO_T}$RANLIB" >&6; }
6625 else
6626 { echo "$as_me:$LINENO: result: no" >&5
6627 echo "${ECHO_T}no" >&6; }
6632 if test -z "$ac_cv_prog_RANLIB"; then
6633 ac_ct_RANLIB=$RANLIB
6634 # Extract the first word of "ranlib", so it can be a program name with args.
6635 set dummy ranlib; ac_word=$2
6636 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6637 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6638 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6639 echo $ECHO_N "(cached) $ECHO_C" >&6
6640 else
6641 if test -n "$ac_ct_RANLIB"; then
6642 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6643 else
6644 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6645 for as_dir in $PATH
6647 IFS=$as_save_IFS
6648 test -z "$as_dir" && as_dir=.
6649 for ac_exec_ext in '' $ac_executable_extensions; do
6650 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6651 ac_cv_prog_ac_ct_RANLIB="ranlib"
6652 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6653 break 2
6655 done
6656 done
6657 IFS=$as_save_IFS
6661 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6662 if test -n "$ac_ct_RANLIB"; then
6663 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6664 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6665 else
6666 { echo "$as_me:$LINENO: result: no" >&5
6667 echo "${ECHO_T}no" >&6; }
6670 if test "x$ac_ct_RANLIB" = x; then
6671 RANLIB=":"
6672 else
6673 case $cross_compiling:$ac_tool_warned in
6674 yes:)
6675 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6676 whose name does not start with the host triplet. If you think this
6677 configuration is useful to you, please write to autoconf@gnu.org." >&5
6678 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6679 whose name does not start with the host triplet. If you think this
6680 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6681 ac_tool_warned=yes ;;
6682 esac
6683 RANLIB=$ac_ct_RANLIB
6685 else
6686 RANLIB="$ac_cv_prog_RANLIB"
6689 if test -n "$ac_tool_prefix"; then
6690 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6691 set dummy ${ac_tool_prefix}strip; ac_word=$2
6692 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6693 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6694 if test "${ac_cv_prog_STRIP+set}" = set; then
6695 echo $ECHO_N "(cached) $ECHO_C" >&6
6696 else
6697 if test -n "$STRIP"; then
6698 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6699 else
6700 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6701 for as_dir in $PATH
6703 IFS=$as_save_IFS
6704 test -z "$as_dir" && as_dir=.
6705 for ac_exec_ext in '' $ac_executable_extensions; do
6706 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6707 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6708 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6709 break 2
6711 done
6712 done
6713 IFS=$as_save_IFS
6717 STRIP=$ac_cv_prog_STRIP
6718 if test -n "$STRIP"; then
6719 { echo "$as_me:$LINENO: result: $STRIP" >&5
6720 echo "${ECHO_T}$STRIP" >&6; }
6721 else
6722 { echo "$as_me:$LINENO: result: no" >&5
6723 echo "${ECHO_T}no" >&6; }
6728 if test -z "$ac_cv_prog_STRIP"; then
6729 ac_ct_STRIP=$STRIP
6730 # Extract the first word of "strip", so it can be a program name with args.
6731 set dummy strip; ac_word=$2
6732 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6733 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6734 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6735 echo $ECHO_N "(cached) $ECHO_C" >&6
6736 else
6737 if test -n "$ac_ct_STRIP"; then
6738 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6739 else
6740 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6741 for as_dir in $PATH
6743 IFS=$as_save_IFS
6744 test -z "$as_dir" && as_dir=.
6745 for ac_exec_ext in '' $ac_executable_extensions; do
6746 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6747 ac_cv_prog_ac_ct_STRIP="strip"
6748 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6749 break 2
6751 done
6752 done
6753 IFS=$as_save_IFS
6757 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6758 if test -n "$ac_ct_STRIP"; then
6759 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6760 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
6761 else
6762 { echo "$as_me:$LINENO: result: no" >&5
6763 echo "${ECHO_T}no" >&6; }
6766 if test "x$ac_ct_STRIP" = x; then
6767 STRIP=":"
6768 else
6769 case $cross_compiling:$ac_tool_warned in
6770 yes:)
6771 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6772 whose name does not start with the host triplet. If you think this
6773 configuration is useful to you, please write to autoconf@gnu.org." >&5
6774 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6775 whose name does not start with the host triplet. If you think this
6776 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6777 ac_tool_warned=yes ;;
6778 esac
6779 STRIP=$ac_ct_STRIP
6781 else
6782 STRIP="$ac_cv_prog_STRIP"
6786 old_CC="$CC"
6787 old_CFLAGS="$CFLAGS"
6789 # Set sane defaults for various variables
6790 test -z "$AR" && AR=ar
6791 test -z "$AR_FLAGS" && AR_FLAGS=cru
6792 test -z "$AS" && AS=as
6793 test -z "$CC" && CC=cc
6794 test -z "$LTCC" && LTCC=$CC
6795 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6796 test -z "$DLLTOOL" && DLLTOOL=dlltool
6797 test -z "$LD" && LD=ld
6798 test -z "$LN_S" && LN_S="ln -s"
6799 test -z "$MAGIC_CMD" && MAGIC_CMD=file
6800 test -z "$NM" && NM=nm
6801 test -z "$SED" && SED=sed
6802 test -z "$OBJDUMP" && OBJDUMP=objdump
6803 test -z "$RANLIB" && RANLIB=:
6804 test -z "$STRIP" && STRIP=:
6805 test -z "$ac_objext" && ac_objext=o
6807 # Determine commands to create old-style static archives.
6808 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6809 old_postinstall_cmds='chmod 644 $oldlib'
6810 old_postuninstall_cmds=
6812 if test -n "$RANLIB"; then
6813 case $host_os in
6814 openbsd*)
6815 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6818 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6820 esac
6821 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6824 for cc_temp in $compiler""; do
6825 case $cc_temp in
6826 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6827 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6828 \-*) ;;
6829 *) break;;
6830 esac
6831 done
6832 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6835 # Only perform the check for file, if the check method requires it
6836 case $deplibs_check_method in
6837 file_magic*)
6838 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6839 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6840 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
6841 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6842 echo $ECHO_N "(cached) $ECHO_C" >&6
6843 else
6844 case $MAGIC_CMD in
6845 [\\/*] | ?:[\\/]*)
6846 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6849 lt_save_MAGIC_CMD="$MAGIC_CMD"
6850 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6851 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6852 for ac_dir in $ac_dummy; do
6853 IFS="$lt_save_ifs"
6854 test -z "$ac_dir" && ac_dir=.
6855 if test -f $ac_dir/${ac_tool_prefix}file; then
6856 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6857 if test -n "$file_magic_test_file"; then
6858 case $deplibs_check_method in
6859 "file_magic "*)
6860 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6861 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6862 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6863 $EGREP "$file_magic_regex" > /dev/null; then
6865 else
6866 cat <<EOF 1>&2
6868 *** Warning: the command libtool uses to detect shared libraries,
6869 *** $file_magic_cmd, produces output that libtool cannot recognize.
6870 *** The result is that libtool may fail to recognize shared libraries
6871 *** as such. This will affect the creation of libtool libraries that
6872 *** depend on shared libraries, but programs linked with such libtool
6873 *** libraries will work regardless of this problem. Nevertheless, you
6874 *** may want to report the problem to your system manager and/or to
6875 *** bug-libtool@gnu.org
6878 fi ;;
6879 esac
6881 break
6883 done
6884 IFS="$lt_save_ifs"
6885 MAGIC_CMD="$lt_save_MAGIC_CMD"
6887 esac
6890 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6891 if test -n "$MAGIC_CMD"; then
6892 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6893 echo "${ECHO_T}$MAGIC_CMD" >&6; }
6894 else
6895 { echo "$as_me:$LINENO: result: no" >&5
6896 echo "${ECHO_T}no" >&6; }
6899 if test -z "$lt_cv_path_MAGIC_CMD"; then
6900 if test -n "$ac_tool_prefix"; then
6901 { echo "$as_me:$LINENO: checking for file" >&5
6902 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
6903 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6904 echo $ECHO_N "(cached) $ECHO_C" >&6
6905 else
6906 case $MAGIC_CMD in
6907 [\\/*] | ?:[\\/]*)
6908 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6911 lt_save_MAGIC_CMD="$MAGIC_CMD"
6912 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6913 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6914 for ac_dir in $ac_dummy; do
6915 IFS="$lt_save_ifs"
6916 test -z "$ac_dir" && ac_dir=.
6917 if test -f $ac_dir/file; then
6918 lt_cv_path_MAGIC_CMD="$ac_dir/file"
6919 if test -n "$file_magic_test_file"; then
6920 case $deplibs_check_method in
6921 "file_magic "*)
6922 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6923 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6924 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6925 $EGREP "$file_magic_regex" > /dev/null; then
6927 else
6928 cat <<EOF 1>&2
6930 *** Warning: the command libtool uses to detect shared libraries,
6931 *** $file_magic_cmd, produces output that libtool cannot recognize.
6932 *** The result is that libtool may fail to recognize shared libraries
6933 *** as such. This will affect the creation of libtool libraries that
6934 *** depend on shared libraries, but programs linked with such libtool
6935 *** libraries will work regardless of this problem. Nevertheless, you
6936 *** may want to report the problem to your system manager and/or to
6937 *** bug-libtool@gnu.org
6940 fi ;;
6941 esac
6943 break
6945 done
6946 IFS="$lt_save_ifs"
6947 MAGIC_CMD="$lt_save_MAGIC_CMD"
6949 esac
6952 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6953 if test -n "$MAGIC_CMD"; then
6954 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6955 echo "${ECHO_T}$MAGIC_CMD" >&6; }
6956 else
6957 { echo "$as_me:$LINENO: result: no" >&5
6958 echo "${ECHO_T}no" >&6; }
6961 else
6962 MAGIC_CMD=:
6968 esac
6970 enable_dlopen=no
6971 enable_win32_dll=no
6973 # Check whether --enable-libtool-lock was given.
6974 if test "${enable_libtool_lock+set}" = set; then
6975 enableval=$enable_libtool_lock;
6978 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6981 # Check whether --with-pic was given.
6982 if test "${with_pic+set}" = set; then
6983 withval=$with_pic; pic_mode="$withval"
6984 else
6985 pic_mode=default
6988 test -z "$pic_mode" && pic_mode=default
6990 # Use C for the default configuration in the libtool script
6991 tagname=
6992 lt_save_CC="$CC"
6993 ac_ext=c
6994 ac_cpp='$CPP $CPPFLAGS'
6995 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6996 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6997 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7000 # Source file extension for C test sources.
7001 ac_ext=c
7003 # Object file extension for compiled C test sources.
7004 objext=o
7005 objext=$objext
7007 # Code to be used in simple compile tests
7008 lt_simple_compile_test_code="int some_variable = 0;"
7010 # Code to be used in simple link tests
7011 lt_simple_link_test_code='int main(){return(0);}'
7014 # If no C compiler was specified, use CC.
7015 LTCC=${LTCC-"$CC"}
7017 # If no C compiler flags were specified, use CFLAGS.
7018 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7020 # Allow CC to be a program name with arguments.
7021 compiler=$CC
7024 # save warnings/boilerplate of simple test code
7025 ac_outfile=conftest.$ac_objext
7026 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7027 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7028 _lt_compiler_boilerplate=`cat conftest.err`
7029 $rm conftest*
7031 ac_outfile=conftest.$ac_objext
7032 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7033 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7034 _lt_linker_boilerplate=`cat conftest.err`
7035 $rm conftest*
7039 lt_prog_compiler_no_builtin_flag=
7041 if test "$GCC" = yes; then
7042 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7045 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7046 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
7047 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7048 echo $ECHO_N "(cached) $ECHO_C" >&6
7049 else
7050 lt_cv_prog_compiler_rtti_exceptions=no
7051 ac_outfile=conftest.$ac_objext
7052 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7053 lt_compiler_flag="-fno-rtti -fno-exceptions"
7054 # Insert the option either (1) after the last *FLAGS variable, or
7055 # (2) before a word containing "conftest.", or (3) at the end.
7056 # Note that $ac_compile itself does not contain backslashes and begins
7057 # with a dollar sign (not a hyphen), so the echo should work correctly.
7058 # The option is referenced via a variable to avoid confusing sed.
7059 lt_compile=`echo "$ac_compile" | $SED \
7060 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7061 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7062 -e 's:$: $lt_compiler_flag:'`
7063 (eval echo "\"\$as_me:7063: $lt_compile\"" >&5)
7064 (eval "$lt_compile" 2>conftest.err)
7065 ac_status=$?
7066 cat conftest.err >&5
7067 echo "$as_me:7067: \$? = $ac_status" >&5
7068 if (exit $ac_status) && test -s "$ac_outfile"; then
7069 # The compiler can only warn and ignore the option if not recognized
7070 # So say no if there are warnings other than the usual output.
7071 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7072 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7073 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7074 lt_cv_prog_compiler_rtti_exceptions=yes
7077 $rm conftest*
7080 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7081 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7083 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7084 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7085 else
7091 lt_prog_compiler_wl=
7092 lt_prog_compiler_pic=
7093 lt_prog_compiler_static=
7095 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7096 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
7098 if test "$GCC" = yes; then
7099 lt_prog_compiler_wl='-Wl,'
7100 lt_prog_compiler_static='-static'
7102 case $host_os in
7103 aix*)
7104 # All AIX code is PIC.
7105 if test "$host_cpu" = ia64; then
7106 # AIX 5 now supports IA64 processor
7107 lt_prog_compiler_static='-Bstatic'
7111 amigaos*)
7112 # FIXME: we need at least 68020 code to build shared libraries, but
7113 # adding the `-m68020' flag to GCC prevents building anything better,
7114 # like `-m68040'.
7115 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7118 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7119 # PIC is the default for these OSes.
7122 mingw* | cygwin* | pw32* | os2*)
7123 # This hack is so that the source file can tell whether it is being
7124 # built for inclusion in a dll (and should export symbols for example).
7125 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7126 # (--disable-auto-import) libraries
7127 lt_prog_compiler_pic='-DDLL_EXPORT'
7130 darwin* | rhapsody*)
7131 # PIC is the default on this platform
7132 # Common symbols not allowed in MH_DYLIB files
7133 lt_prog_compiler_pic='-fno-common'
7136 interix[3-9]*)
7137 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7138 # Instead, we relocate shared libraries at runtime.
7141 msdosdjgpp*)
7142 # Just because we use GCC doesn't mean we suddenly get shared libraries
7143 # on systems that don't support them.
7144 lt_prog_compiler_can_build_shared=no
7145 enable_shared=no
7148 sysv4*MP*)
7149 if test -d /usr/nec; then
7150 lt_prog_compiler_pic=-Kconform_pic
7154 hpux*)
7155 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7156 # not for PA HP-UX.
7157 case $host_cpu in
7158 hppa*64*|ia64*)
7159 # +Z the default
7162 lt_prog_compiler_pic='-fPIC'
7164 esac
7168 lt_prog_compiler_pic='-fPIC'
7170 esac
7171 else
7172 # PORTME Check for flag to pass linker flags through the system compiler.
7173 case $host_os in
7174 aix*)
7175 lt_prog_compiler_wl='-Wl,'
7176 if test "$host_cpu" = ia64; then
7177 # AIX 5 now supports IA64 processor
7178 lt_prog_compiler_static='-Bstatic'
7179 else
7180 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7183 darwin*)
7184 # PIC is the default on this platform
7185 # Common symbols not allowed in MH_DYLIB files
7186 case $cc_basename in
7187 xlc*)
7188 lt_prog_compiler_pic='-qnocommon'
7189 lt_prog_compiler_wl='-Wl,'
7191 esac
7194 mingw* | cygwin* | pw32* | os2*)
7195 # This hack is so that the source file can tell whether it is being
7196 # built for inclusion in a dll (and should export symbols for example).
7197 lt_prog_compiler_pic='-DDLL_EXPORT'
7200 hpux9* | hpux10* | hpux11*)
7201 lt_prog_compiler_wl='-Wl,'
7202 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7203 # not for PA HP-UX.
7204 case $host_cpu in
7205 hppa*64*|ia64*)
7206 # +Z the default
7209 lt_prog_compiler_pic='+Z'
7211 esac
7212 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7213 lt_prog_compiler_static='${wl}-a ${wl}archive'
7216 irix5* | irix6* | nonstopux*)
7217 lt_prog_compiler_wl='-Wl,'
7218 # PIC (with -KPIC) is the default.
7219 lt_prog_compiler_static='-non_shared'
7222 newsos6)
7223 lt_prog_compiler_pic='-KPIC'
7224 lt_prog_compiler_static='-Bstatic'
7227 linux* | k*bsd*-gnu)
7228 case $cc_basename in
7229 icc* | ecc*)
7230 lt_prog_compiler_wl='-Wl,'
7231 lt_prog_compiler_pic='-KPIC'
7232 lt_prog_compiler_static='-static'
7234 pgcc* | pgf77* | pgf90* | pgf95*)
7235 # Portland Group compilers (*not* the Pentium gcc compiler,
7236 # which looks to be a dead project)
7237 lt_prog_compiler_wl='-Wl,'
7238 lt_prog_compiler_pic='-fpic'
7239 lt_prog_compiler_static='-Bstatic'
7241 ccc*)
7242 lt_prog_compiler_wl='-Wl,'
7243 # All Alpha code is PIC.
7244 lt_prog_compiler_static='-non_shared'
7247 case `$CC -V 2>&1 | sed 5q` in
7248 *Sun\ C*)
7249 # Sun C 5.9
7250 lt_prog_compiler_pic='-KPIC'
7251 lt_prog_compiler_static='-Bstatic'
7252 lt_prog_compiler_wl='-Wl,'
7254 *Sun\ F*)
7255 # Sun Fortran 8.3 passes all unrecognized flags to the linker
7256 lt_prog_compiler_pic='-KPIC'
7257 lt_prog_compiler_static='-Bstatic'
7258 lt_prog_compiler_wl=''
7260 esac
7262 esac
7265 osf3* | osf4* | osf5*)
7266 lt_prog_compiler_wl='-Wl,'
7267 # All OSF/1 code is PIC.
7268 lt_prog_compiler_static='-non_shared'
7271 rdos*)
7272 lt_prog_compiler_static='-non_shared'
7275 solaris*)
7276 lt_prog_compiler_pic='-KPIC'
7277 lt_prog_compiler_static='-Bstatic'
7278 case $cc_basename in
7279 f77* | f90* | f95*)
7280 lt_prog_compiler_wl='-Qoption ld ';;
7282 lt_prog_compiler_wl='-Wl,';;
7283 esac
7286 sunos4*)
7287 lt_prog_compiler_wl='-Qoption ld '
7288 lt_prog_compiler_pic='-PIC'
7289 lt_prog_compiler_static='-Bstatic'
7292 sysv4 | sysv4.2uw2* | sysv4.3*)
7293 lt_prog_compiler_wl='-Wl,'
7294 lt_prog_compiler_pic='-KPIC'
7295 lt_prog_compiler_static='-Bstatic'
7298 sysv4*MP*)
7299 if test -d /usr/nec ;then
7300 lt_prog_compiler_pic='-Kconform_pic'
7301 lt_prog_compiler_static='-Bstatic'
7305 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7306 lt_prog_compiler_wl='-Wl,'
7307 lt_prog_compiler_pic='-KPIC'
7308 lt_prog_compiler_static='-Bstatic'
7311 unicos*)
7312 lt_prog_compiler_wl='-Wl,'
7313 lt_prog_compiler_can_build_shared=no
7316 uts4*)
7317 lt_prog_compiler_pic='-pic'
7318 lt_prog_compiler_static='-Bstatic'
7322 lt_prog_compiler_can_build_shared=no
7324 esac
7327 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7328 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
7331 # Check to make sure the PIC flag actually works.
7333 if test -n "$lt_prog_compiler_pic"; then
7335 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7336 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
7337 if test "${lt_prog_compiler_pic_works+set}" = set; then
7338 echo $ECHO_N "(cached) $ECHO_C" >&6
7339 else
7340 lt_prog_compiler_pic_works=no
7341 ac_outfile=conftest.$ac_objext
7342 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7343 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7344 # Insert the option either (1) after the last *FLAGS variable, or
7345 # (2) before a word containing "conftest.", or (3) at the end.
7346 # Note that $ac_compile itself does not contain backslashes and begins
7347 # with a dollar sign (not a hyphen), so the echo should work correctly.
7348 # The option is referenced via a variable to avoid confusing sed.
7349 lt_compile=`echo "$ac_compile" | $SED \
7350 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7351 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7352 -e 's:$: $lt_compiler_flag:'`
7353 (eval echo "\"\$as_me:7353: $lt_compile\"" >&5)
7354 (eval "$lt_compile" 2>conftest.err)
7355 ac_status=$?
7356 cat conftest.err >&5
7357 echo "$as_me:7357: \$? = $ac_status" >&5
7358 if (exit $ac_status) && test -s "$ac_outfile"; then
7359 # The compiler can only warn and ignore the option if not recognized
7360 # So say no if there are warnings other than the usual output.
7361 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7362 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7363 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7364 lt_prog_compiler_pic_works=yes
7367 $rm conftest*
7370 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7371 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
7373 if test x"$lt_prog_compiler_pic_works" = xyes; then
7374 case $lt_prog_compiler_pic in
7375 "" | " "*) ;;
7376 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7377 esac
7378 else
7379 lt_prog_compiler_pic=
7380 lt_prog_compiler_can_build_shared=no
7384 case $host_os in
7385 # For platforms which do not support PIC, -DPIC is meaningless:
7386 *djgpp*)
7387 lt_prog_compiler_pic=
7390 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7392 esac
7395 # Check to make sure the static flag actually works.
7397 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7398 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7399 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
7400 if test "${lt_prog_compiler_static_works+set}" = set; then
7401 echo $ECHO_N "(cached) $ECHO_C" >&6
7402 else
7403 lt_prog_compiler_static_works=no
7404 save_LDFLAGS="$LDFLAGS"
7405 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7406 echo "$lt_simple_link_test_code" > conftest.$ac_ext
7407 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7408 # The linker can only warn and ignore the option if not recognized
7409 # So say no if there are warnings
7410 if test -s conftest.err; then
7411 # Append any errors to the config.log.
7412 cat conftest.err 1>&5
7413 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7414 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7415 if diff conftest.exp conftest.er2 >/dev/null; then
7416 lt_prog_compiler_static_works=yes
7418 else
7419 lt_prog_compiler_static_works=yes
7422 $rm conftest*
7423 LDFLAGS="$save_LDFLAGS"
7426 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7427 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
7429 if test x"$lt_prog_compiler_static_works" = xyes; then
7431 else
7432 lt_prog_compiler_static=
7436 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7437 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
7438 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7439 echo $ECHO_N "(cached) $ECHO_C" >&6
7440 else
7441 lt_cv_prog_compiler_c_o=no
7442 $rm -r conftest 2>/dev/null
7443 mkdir conftest
7444 cd conftest
7445 mkdir out
7446 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7448 lt_compiler_flag="-o out/conftest2.$ac_objext"
7449 # Insert the option either (1) after the last *FLAGS variable, or
7450 # (2) before a word containing "conftest.", or (3) at the end.
7451 # Note that $ac_compile itself does not contain backslashes and begins
7452 # with a dollar sign (not a hyphen), so the echo should work correctly.
7453 lt_compile=`echo "$ac_compile" | $SED \
7454 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7455 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7456 -e 's:$: $lt_compiler_flag:'`
7457 (eval echo "\"\$as_me:7457: $lt_compile\"" >&5)
7458 (eval "$lt_compile" 2>out/conftest.err)
7459 ac_status=$?
7460 cat out/conftest.err >&5
7461 echo "$as_me:7461: \$? = $ac_status" >&5
7462 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7463 then
7464 # The compiler can only warn and ignore the option if not recognized
7465 # So say no if there are warnings
7466 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7467 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7468 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7469 lt_cv_prog_compiler_c_o=yes
7472 chmod u+w . 2>&5
7473 $rm conftest*
7474 # SGI C++ compiler will create directory out/ii_files/ for
7475 # template instantiation
7476 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7477 $rm out/* && rmdir out
7478 cd ..
7479 rmdir conftest
7480 $rm conftest*
7483 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7484 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
7487 hard_links="nottested"
7488 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7489 # do not overwrite the value of need_locks provided by the user
7490 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7491 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
7492 hard_links=yes
7493 $rm conftest*
7494 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7495 touch conftest.a
7496 ln conftest.a conftest.b 2>&5 || hard_links=no
7497 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7498 { echo "$as_me:$LINENO: result: $hard_links" >&5
7499 echo "${ECHO_T}$hard_links" >&6; }
7500 if test "$hard_links" = no; then
7501 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7502 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7503 need_locks=warn
7505 else
7506 need_locks=no
7509 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7510 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
7512 runpath_var=
7513 allow_undefined_flag=
7514 enable_shared_with_static_runtimes=no
7515 archive_cmds=
7516 archive_expsym_cmds=
7517 old_archive_From_new_cmds=
7518 old_archive_from_expsyms_cmds=
7519 export_dynamic_flag_spec=
7520 whole_archive_flag_spec=
7521 thread_safe_flag_spec=
7522 hardcode_libdir_flag_spec=
7523 hardcode_libdir_flag_spec_ld=
7524 hardcode_libdir_separator=
7525 hardcode_direct=no
7526 hardcode_minus_L=no
7527 hardcode_shlibpath_var=unsupported
7528 link_all_deplibs=unknown
7529 hardcode_automatic=no
7530 module_cmds=
7531 module_expsym_cmds=
7532 always_export_symbols=no
7533 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7534 # include_expsyms should be a list of space-separated symbols to be *always*
7535 # included in the symbol list
7536 include_expsyms=
7537 # exclude_expsyms can be an extended regexp of symbols to exclude
7538 # it will be wrapped by ` (' and `)$', so one must not match beginning or
7539 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7540 # as well as any symbol that contains `d'.
7541 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
7542 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7543 # platforms (ab)use it in PIC code, but their linkers get confused if
7544 # the symbol is explicitly referenced. Since portable code cannot
7545 # rely on this symbol name, it's probably fine to never include it in
7546 # preloaded symbol tables.
7547 extract_expsyms_cmds=
7548 # Just being paranoid about ensuring that cc_basename is set.
7549 for cc_temp in $compiler""; do
7550 case $cc_temp in
7551 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7552 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7553 \-*) ;;
7554 *) break;;
7555 esac
7556 done
7557 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7559 case $host_os in
7560 cygwin* | mingw* | pw32*)
7561 # FIXME: the MSVC++ port hasn't been tested in a loooong time
7562 # When not using gcc, we currently assume that we are using
7563 # Microsoft Visual C++.
7564 if test "$GCC" != yes; then
7565 with_gnu_ld=no
7568 interix*)
7569 # we just hope/assume this is gcc and not c89 (= MSVC++)
7570 with_gnu_ld=yes
7572 openbsd*)
7573 with_gnu_ld=no
7575 esac
7577 ld_shlibs=yes
7578 if test "$with_gnu_ld" = yes; then
7579 # If archive_cmds runs LD, not CC, wlarc should be empty
7580 wlarc='${wl}'
7582 # Set some defaults for GNU ld with shared library support. These
7583 # are reset later if shared libraries are not supported. Putting them
7584 # here allows them to be overridden if necessary.
7585 runpath_var=LD_RUN_PATH
7586 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
7587 export_dynamic_flag_spec='${wl}--export-dynamic'
7588 # ancient GNU ld didn't support --whole-archive et. al.
7589 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
7590 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7591 else
7592 whole_archive_flag_spec=
7594 supports_anon_versioning=no
7595 case `$LD -v 2>/dev/null` in
7596 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7597 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7598 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7599 *\ 2.11.*) ;; # other 2.11 versions
7600 *) supports_anon_versioning=yes ;;
7601 esac
7603 # See if GNU ld supports shared libraries.
7604 case $host_os in
7605 aix3* | aix4* | aix5*)
7606 # On AIX/PPC, the GNU linker is very broken
7607 if test "$host_cpu" != ia64; then
7608 ld_shlibs=no
7609 cat <<EOF 1>&2
7611 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
7612 *** to be unable to reliably create shared libraries on AIX.
7613 *** Therefore, libtool is disabling shared libraries support. If you
7614 *** really care for shared libraries, you may want to modify your PATH
7615 *** so that a non-GNU linker is found, and then restart.
7621 amigaos*)
7622 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)'
7623 hardcode_libdir_flag_spec='-L$libdir'
7624 hardcode_minus_L=yes
7626 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7627 # that the semantics of dynamic libraries on AmigaOS, at least up
7628 # to version 4, is to share data among multiple programs linked
7629 # with the same dynamic library. Since this doesn't match the
7630 # behavior of shared libraries on other platforms, we can't use
7631 # them.
7632 ld_shlibs=no
7635 beos*)
7636 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7637 allow_undefined_flag=unsupported
7638 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7639 # support --undefined. This deserves some investigation. FIXME
7640 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7641 else
7642 ld_shlibs=no
7646 cygwin* | mingw* | pw32*)
7647 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7648 # as there is no search path for DLLs.
7649 hardcode_libdir_flag_spec='-L$libdir'
7650 allow_undefined_flag=unsupported
7651 always_export_symbols=no
7652 enable_shared_with_static_runtimes=yes
7653 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
7655 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
7656 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7657 # If the export-symbols file already is a .def file (1st line
7658 # is EXPORTS), use it as is; otherwise, prepend...
7659 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7660 cp $export_symbols $output_objdir/$soname.def;
7661 else
7662 echo EXPORTS > $output_objdir/$soname.def;
7663 cat $export_symbols >> $output_objdir/$soname.def;
7665 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7666 else
7667 ld_shlibs=no
7671 interix[3-9]*)
7672 hardcode_direct=no
7673 hardcode_shlibpath_var=no
7674 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7675 export_dynamic_flag_spec='${wl}-E'
7676 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7677 # Instead, shared libraries are loaded at an image base (0x10000000 by
7678 # default) and relocated if they conflict, which is a slow very memory
7679 # consuming and fragmenting process. To avoid this, we pick a random,
7680 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7681 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
7682 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7683 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'
7686 gnu* | linux* | k*bsd*-gnu)
7687 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7688 tmp_addflag=
7689 case $cc_basename,$host_cpu in
7690 pgcc*) # Portland Group C compiler
7691 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'
7692 tmp_addflag=' $pic_flag'
7694 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
7695 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'
7696 tmp_addflag=' $pic_flag -Mnomain' ;;
7697 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
7698 tmp_addflag=' -i_dynamic' ;;
7699 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
7700 tmp_addflag=' -i_dynamic -nofor_main' ;;
7701 ifc* | ifort*) # Intel Fortran compiler
7702 tmp_addflag=' -nofor_main' ;;
7703 esac
7704 case `$CC -V 2>&1 | sed 5q` in
7705 *Sun\ C*) # Sun C 5.9
7706 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'
7707 tmp_sharedflag='-G' ;;
7708 *Sun\ F*) # Sun Fortran 8.3
7709 tmp_sharedflag='-G' ;;
7711 tmp_sharedflag='-shared' ;;
7712 esac
7713 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7715 if test $supports_anon_versioning = yes; then
7716 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
7717 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7718 $echo "local: *; };" >> $output_objdir/$libname.ver~
7719 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7721 link_all_deplibs=no
7722 else
7723 ld_shlibs=no
7727 netbsd* | netbsdelf*-gnu)
7728 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7729 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7730 wlarc=
7731 else
7732 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7733 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7737 solaris*)
7738 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
7739 ld_shlibs=no
7740 cat <<EOF 1>&2
7742 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
7743 *** create shared libraries on Solaris systems. Therefore, libtool
7744 *** is disabling shared libraries support. We urge you to upgrade GNU
7745 *** binutils to release 2.9.1 or newer. Another option is to modify
7746 *** your PATH or compiler configuration so that the native linker is
7747 *** used, and then restart.
7750 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7751 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7752 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7753 else
7754 ld_shlibs=no
7758 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7759 case `$LD -v 2>&1` in
7760 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7761 ld_shlibs=no
7762 cat <<_LT_EOF 1>&2
7764 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7765 *** reliably create shared libraries on SCO systems. Therefore, libtool
7766 *** is disabling shared libraries support. We urge you to upgrade GNU
7767 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
7768 *** your PATH or compiler configuration so that the native linker is
7769 *** used, and then restart.
7771 _LT_EOF
7774 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7775 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
7776 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
7777 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
7778 else
7779 ld_shlibs=no
7782 esac
7785 sunos4*)
7786 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7787 wlarc=
7788 hardcode_direct=yes
7789 hardcode_shlibpath_var=no
7793 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7794 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7795 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7796 else
7797 ld_shlibs=no
7800 esac
7802 if test "$ld_shlibs" = no; then
7803 runpath_var=
7804 hardcode_libdir_flag_spec=
7805 export_dynamic_flag_spec=
7806 whole_archive_flag_spec=
7808 else
7809 # PORTME fill in a description of your system's linker (not GNU ld)
7810 case $host_os in
7811 aix3*)
7812 allow_undefined_flag=unsupported
7813 always_export_symbols=yes
7814 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'
7815 # Note: this linker hardcodes the directories in LIBPATH if there
7816 # are no directories specified by -L.
7817 hardcode_minus_L=yes
7818 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
7819 # Neither direct hardcoding nor static linking is supported with a
7820 # broken collect2.
7821 hardcode_direct=unsupported
7825 aix4* | aix5*)
7826 if test "$host_cpu" = ia64; then
7827 # On IA64, the linker does run time linking by default, so we don't
7828 # have to do anything special.
7829 aix_use_runtimelinking=no
7830 exp_sym_flag='-Bexport'
7831 no_entry_flag=""
7832 else
7833 # If we're using GNU nm, then we don't want the "-C" option.
7834 # -C means demangle to AIX nm, but means don't demangle with GNU nm
7835 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
7836 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'
7837 else
7838 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'
7840 aix_use_runtimelinking=no
7842 # Test if we are trying to use run time linking or normal
7843 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7844 # need to do runtime linking.
7845 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
7846 for ld_flag in $LDFLAGS; do
7847 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7848 aix_use_runtimelinking=yes
7849 break
7851 done
7853 esac
7855 exp_sym_flag='-bexport'
7856 no_entry_flag='-bnoentry'
7859 # When large executables or shared objects are built, AIX ld can
7860 # have problems creating the table of contents. If linking a library
7861 # or program results in "error TOC overflow" add -mminimal-toc to
7862 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
7863 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7865 archive_cmds=''
7866 hardcode_direct=yes
7867 hardcode_libdir_separator=':'
7868 link_all_deplibs=yes
7870 if test "$GCC" = yes; then
7871 case $host_os in aix4.[012]|aix4.[012].*)
7872 # We only want to do this on AIX 4.2 and lower, the check
7873 # below for broken collect2 doesn't work under 4.3+
7874 collect2name=`${CC} -print-prog-name=collect2`
7875 if test -f "$collect2name" && \
7876 strings "$collect2name" | grep resolve_lib_name >/dev/null
7877 then
7878 # We have reworked collect2
7880 else
7881 # We have old collect2
7882 hardcode_direct=unsupported
7883 # It fails to find uninstalled libraries when the uninstalled
7884 # path is not listed in the libpath. Setting hardcode_minus_L
7885 # to unsupported forces relinking
7886 hardcode_minus_L=yes
7887 hardcode_libdir_flag_spec='-L$libdir'
7888 hardcode_libdir_separator=
7891 esac
7892 shared_flag='-shared'
7893 if test "$aix_use_runtimelinking" = yes; then
7894 shared_flag="$shared_flag "'${wl}-G'
7896 else
7897 # not using gcc
7898 if test "$host_cpu" = ia64; then
7899 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7900 # chokes on -Wl,-G. The following line is correct:
7901 shared_flag='-G'
7902 else
7903 if test "$aix_use_runtimelinking" = yes; then
7904 shared_flag='${wl}-G'
7905 else
7906 shared_flag='${wl}-bM:SRE'
7911 # It seems that -bexpall does not export symbols beginning with
7912 # underscore (_), so it is better to generate a list of symbols to export.
7913 always_export_symbols=yes
7914 if test "$aix_use_runtimelinking" = yes; then
7915 # Warning - without using the other runtime loading flags (-brtl),
7916 # -berok will link without error, but may produce a broken library.
7917 allow_undefined_flag='-berok'
7918 # Determine the default libpath from the value encoded in an empty executable.
7919 cat >conftest.$ac_ext <<_ACEOF
7920 /* confdefs.h. */
7921 _ACEOF
7922 cat confdefs.h >>conftest.$ac_ext
7923 cat >>conftest.$ac_ext <<_ACEOF
7924 /* end confdefs.h. */
7927 main ()
7931 return 0;
7933 _ACEOF
7934 rm -f conftest.$ac_objext conftest$ac_exeext
7935 if { (ac_try="$ac_link"
7936 case "(($ac_try" in
7937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7938 *) ac_try_echo=$ac_try;;
7939 esac
7940 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7941 (eval "$ac_link") 2>conftest.er1
7942 ac_status=$?
7943 grep -v '^ *+' conftest.er1 >conftest.err
7944 rm -f conftest.er1
7945 cat conftest.err >&5
7946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7947 (exit $ac_status); } && {
7948 test -z "$ac_c_werror_flag" ||
7949 test ! -s conftest.err
7950 } && test -s conftest$ac_exeext &&
7951 $as_test_x conftest$ac_exeext; then
7953 lt_aix_libpath_sed='
7954 /Import File Strings/,/^$/ {
7955 /^0/ {
7956 s/^0 *\(.*\)$/\1/
7960 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7961 # Check for a 64-bit object if we didn't find anything.
7962 if test -z "$aix_libpath"; then
7963 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7965 else
7966 echo "$as_me: failed program was:" >&5
7967 sed 's/^/| /' conftest.$ac_ext >&5
7972 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7973 conftest$ac_exeext conftest.$ac_ext
7974 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7976 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7977 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"
7978 else
7979 if test "$host_cpu" = ia64; then
7980 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7981 allow_undefined_flag="-z nodefs"
7982 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"
7983 else
7984 # Determine the default libpath from the value encoded in an empty executable.
7985 cat >conftest.$ac_ext <<_ACEOF
7986 /* confdefs.h. */
7987 _ACEOF
7988 cat confdefs.h >>conftest.$ac_ext
7989 cat >>conftest.$ac_ext <<_ACEOF
7990 /* end confdefs.h. */
7993 main ()
7997 return 0;
7999 _ACEOF
8000 rm -f conftest.$ac_objext conftest$ac_exeext
8001 if { (ac_try="$ac_link"
8002 case "(($ac_try" in
8003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8004 *) ac_try_echo=$ac_try;;
8005 esac
8006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8007 (eval "$ac_link") 2>conftest.er1
8008 ac_status=$?
8009 grep -v '^ *+' conftest.er1 >conftest.err
8010 rm -f conftest.er1
8011 cat conftest.err >&5
8012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8013 (exit $ac_status); } && {
8014 test -z "$ac_c_werror_flag" ||
8015 test ! -s conftest.err
8016 } && test -s conftest$ac_exeext &&
8017 $as_test_x conftest$ac_exeext; then
8019 lt_aix_libpath_sed='
8020 /Import File Strings/,/^$/ {
8021 /^0/ {
8022 s/^0 *\(.*\)$/\1/
8026 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8027 # Check for a 64-bit object if we didn't find anything.
8028 if test -z "$aix_libpath"; then
8029 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8031 else
8032 echo "$as_me: failed program was:" >&5
8033 sed 's/^/| /' conftest.$ac_ext >&5
8038 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8039 conftest$ac_exeext conftest.$ac_ext
8040 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8042 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8043 # Warning - without using the other run time loading flags,
8044 # -berok will link without error, but may produce a broken library.
8045 no_undefined_flag=' ${wl}-bernotok'
8046 allow_undefined_flag=' ${wl}-berok'
8047 # Exported symbols can be pulled into shared objects from archives
8048 whole_archive_flag_spec='$convenience'
8049 archive_cmds_need_lc=yes
8050 # This is similar to how AIX traditionally builds its shared libraries.
8051 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'
8056 amigaos*)
8057 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)'
8058 hardcode_libdir_flag_spec='-L$libdir'
8059 hardcode_minus_L=yes
8060 # see comment about different semantics on the GNU ld section
8061 ld_shlibs=no
8064 bsdi[45]*)
8065 export_dynamic_flag_spec=-rdynamic
8068 cygwin* | mingw* | pw32*)
8069 # When not using gcc, we currently assume that we are using
8070 # Microsoft Visual C++.
8071 # hardcode_libdir_flag_spec is actually meaningless, as there is
8072 # no search path for DLLs.
8073 hardcode_libdir_flag_spec=' '
8074 allow_undefined_flag=unsupported
8075 # Tell ltmain to make .lib files, not .a files.
8076 libext=lib
8077 # Tell ltmain to make .dll files, not .so files.
8078 shrext_cmds=".dll"
8079 # FIXME: Setting linknames here is a bad hack.
8080 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8081 # The linker will automatically build a .lib file if we build a DLL.
8082 old_archive_From_new_cmds='true'
8083 # FIXME: Should let the user specify the lib program.
8084 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8085 fix_srcfile_path='`cygpath -w "$srcfile"`'
8086 enable_shared_with_static_runtimes=yes
8089 darwin* | rhapsody*)
8090 case $host_os in
8091 rhapsody* | darwin1.[012])
8092 allow_undefined_flag='${wl}-undefined ${wl}suppress'
8094 *) # Darwin 1.3 on
8095 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8096 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8097 else
8098 case ${MACOSX_DEPLOYMENT_TARGET} in
8099 10.[012])
8100 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8102 10.*)
8103 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8105 esac
8108 esac
8109 archive_cmds_need_lc=no
8110 hardcode_direct=no
8111 hardcode_automatic=yes
8112 hardcode_shlibpath_var=unsupported
8113 whole_archive_flag_spec=''
8114 link_all_deplibs=yes
8115 if test "$GCC" = yes ; then
8116 output_verbose_link_cmd='echo'
8117 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8118 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8119 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8120 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8121 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}'
8122 else
8123 case $cc_basename in
8124 xlc*)
8125 output_verbose_link_cmd='echo'
8126 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
8127 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8128 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8129 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}'
8130 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}'
8133 ld_shlibs=no
8135 esac
8139 dgux*)
8140 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8141 hardcode_libdir_flag_spec='-L$libdir'
8142 hardcode_shlibpath_var=no
8145 freebsd1*)
8146 ld_shlibs=no
8149 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8150 # support. Future versions do this automatically, but an explicit c++rt0.o
8151 # does not break anything, and helps significantly (at the cost of a little
8152 # extra space).
8153 freebsd2.2*)
8154 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8155 hardcode_libdir_flag_spec='-R$libdir'
8156 hardcode_direct=yes
8157 hardcode_shlibpath_var=no
8160 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8161 freebsd2*)
8162 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8163 hardcode_direct=yes
8164 hardcode_minus_L=yes
8165 hardcode_shlibpath_var=no
8168 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8169 freebsd* | dragonfly*)
8170 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8171 hardcode_libdir_flag_spec='-R$libdir'
8172 hardcode_direct=yes
8173 hardcode_shlibpath_var=no
8176 hpux9*)
8177 if test "$GCC" = yes; then
8178 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'
8179 else
8180 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'
8182 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8183 hardcode_libdir_separator=:
8184 hardcode_direct=yes
8186 # hardcode_minus_L: Not really in the search PATH,
8187 # but as the default location of the library.
8188 hardcode_minus_L=yes
8189 export_dynamic_flag_spec='${wl}-E'
8192 hpux10*)
8193 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8194 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8195 else
8196 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8198 if test "$with_gnu_ld" = no; then
8199 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8200 hardcode_libdir_separator=:
8202 hardcode_direct=yes
8203 export_dynamic_flag_spec='${wl}-E'
8205 # hardcode_minus_L: Not really in the search PATH,
8206 # but as the default location of the library.
8207 hardcode_minus_L=yes
8211 hpux11*)
8212 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8213 case $host_cpu in
8214 hppa*64*)
8215 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8217 ia64*)
8218 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8221 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8223 esac
8224 else
8225 case $host_cpu in
8226 hppa*64*)
8227 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8229 ia64*)
8230 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8233 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8235 esac
8237 if test "$with_gnu_ld" = no; then
8238 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8239 hardcode_libdir_separator=:
8241 case $host_cpu in
8242 hppa*64*|ia64*)
8243 hardcode_libdir_flag_spec_ld='+b $libdir'
8244 hardcode_direct=no
8245 hardcode_shlibpath_var=no
8248 hardcode_direct=yes
8249 export_dynamic_flag_spec='${wl}-E'
8251 # hardcode_minus_L: Not really in the search PATH,
8252 # but as the default location of the library.
8253 hardcode_minus_L=yes
8255 esac
8259 irix5* | irix6* | nonstopux*)
8260 if test "$GCC" = yes; then
8261 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'
8262 else
8263 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'
8264 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8266 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8267 hardcode_libdir_separator=:
8268 link_all_deplibs=yes
8271 netbsd* | netbsdelf*-gnu)
8272 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8273 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8274 else
8275 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8277 hardcode_libdir_flag_spec='-R$libdir'
8278 hardcode_direct=yes
8279 hardcode_shlibpath_var=no
8282 newsos6)
8283 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8284 hardcode_direct=yes
8285 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8286 hardcode_libdir_separator=:
8287 hardcode_shlibpath_var=no
8290 openbsd*)
8291 if test -f /usr/libexec/ld.so; then
8292 hardcode_direct=yes
8293 hardcode_shlibpath_var=no
8294 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8295 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8296 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8297 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8298 export_dynamic_flag_spec='${wl}-E'
8299 else
8300 case $host_os in
8301 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8302 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8303 hardcode_libdir_flag_spec='-R$libdir'
8306 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8307 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8309 esac
8311 else
8312 ld_shlibs=no
8316 os2*)
8317 hardcode_libdir_flag_spec='-L$libdir'
8318 hardcode_minus_L=yes
8319 allow_undefined_flag=unsupported
8320 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'
8321 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8324 osf3*)
8325 if test "$GCC" = yes; then
8326 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8327 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'
8328 else
8329 allow_undefined_flag=' -expect_unresolved \*'
8330 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'
8332 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8333 hardcode_libdir_separator=:
8336 osf4* | osf5*) # as osf3* with the addition of -msym flag
8337 if test "$GCC" = yes; then
8338 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8339 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'
8340 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8341 else
8342 allow_undefined_flag=' -expect_unresolved \*'
8343 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'
8344 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8345 $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'
8347 # Both c and cxx compiler support -rpath directly
8348 hardcode_libdir_flag_spec='-rpath $libdir'
8350 hardcode_libdir_separator=:
8353 solaris*)
8354 no_undefined_flag=' -z text'
8355 if test "$GCC" = yes; then
8356 wlarc='${wl}'
8357 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8358 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8359 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8360 else
8361 wlarc=''
8362 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8363 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8364 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8366 hardcode_libdir_flag_spec='-R$libdir'
8367 hardcode_shlibpath_var=no
8368 case $host_os in
8369 solaris2.[0-5] | solaris2.[0-5].*) ;;
8371 # The compiler driver will combine and reorder linker options,
8372 # but understands `-z linker_flag'. GCC discards it without `$wl',
8373 # but is careful enough not to reorder.
8374 # Supported since Solaris 2.6 (maybe 2.5.1?)
8375 if test "$GCC" = yes; then
8376 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8377 else
8378 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8381 esac
8382 link_all_deplibs=yes
8385 sunos4*)
8386 if test "x$host_vendor" = xsequent; then
8387 # Use $CC to link under sequent, because it throws in some extra .o
8388 # files that make .init and .fini sections work.
8389 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8390 else
8391 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8393 hardcode_libdir_flag_spec='-L$libdir'
8394 hardcode_direct=yes
8395 hardcode_minus_L=yes
8396 hardcode_shlibpath_var=no
8399 sysv4)
8400 case $host_vendor in
8401 sni)
8402 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8403 hardcode_direct=yes # is this really true???
8405 siemens)
8406 ## LD is ld it makes a PLAMLIB
8407 ## CC just makes a GrossModule.
8408 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8409 reload_cmds='$CC -r -o $output$reload_objs'
8410 hardcode_direct=no
8412 motorola)
8413 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8414 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8416 esac
8417 runpath_var='LD_RUN_PATH'
8418 hardcode_shlibpath_var=no
8421 sysv4.3*)
8422 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8423 hardcode_shlibpath_var=no
8424 export_dynamic_flag_spec='-Bexport'
8427 sysv4*MP*)
8428 if test -d /usr/nec; then
8429 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8430 hardcode_shlibpath_var=no
8431 runpath_var=LD_RUN_PATH
8432 hardcode_runpath_var=yes
8433 ld_shlibs=yes
8437 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
8438 no_undefined_flag='${wl}-z,text'
8439 archive_cmds_need_lc=no
8440 hardcode_shlibpath_var=no
8441 runpath_var='LD_RUN_PATH'
8443 if test "$GCC" = yes; then
8444 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8445 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8446 else
8447 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8448 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8452 sysv5* | sco3.2v5* | sco5v6*)
8453 # Note: We can NOT use -z defs as we might desire, because we do not
8454 # link with -lc, and that would cause any symbols used from libc to
8455 # always be unresolved, which means just about no library would
8456 # ever link correctly. If we're not using GNU ld we use -z text
8457 # though, which does catch some bad symbols but isn't as heavy-handed
8458 # as -z defs.
8459 no_undefined_flag='${wl}-z,text'
8460 allow_undefined_flag='${wl}-z,nodefs'
8461 archive_cmds_need_lc=no
8462 hardcode_shlibpath_var=no
8463 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
8464 hardcode_libdir_separator=':'
8465 link_all_deplibs=yes
8466 export_dynamic_flag_spec='${wl}-Bexport'
8467 runpath_var='LD_RUN_PATH'
8469 if test "$GCC" = yes; then
8470 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8471 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8472 else
8473 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8474 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8478 uts4*)
8479 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8480 hardcode_libdir_flag_spec='-L$libdir'
8481 hardcode_shlibpath_var=no
8485 ld_shlibs=no
8487 esac
8490 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8491 echo "${ECHO_T}$ld_shlibs" >&6; }
8492 test "$ld_shlibs" = no && can_build_shared=no
8495 # Do we need to explicitly link libc?
8497 case "x$archive_cmds_need_lc" in
8498 x|xyes)
8499 # Assume -lc should be added
8500 archive_cmds_need_lc=yes
8502 if test "$enable_shared" = yes && test "$GCC" = yes; then
8503 case $archive_cmds in
8504 *'~'*)
8505 # FIXME: we may have to deal with multi-command sequences.
8507 '$CC '*)
8508 # Test whether the compiler implicitly links with -lc since on some
8509 # systems, -lgcc has to come before -lc. If gcc already passes -lc
8510 # to ld, don't add -lc before -lgcc.
8511 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8512 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
8513 $rm conftest*
8514 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8516 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8517 (eval $ac_compile) 2>&5
8518 ac_status=$?
8519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8520 (exit $ac_status); } 2>conftest.err; then
8521 soname=conftest
8522 lib=conftest
8523 libobjs=conftest.$ac_objext
8524 deplibs=
8525 wl=$lt_prog_compiler_wl
8526 pic_flag=$lt_prog_compiler_pic
8527 compiler_flags=-v
8528 linker_flags=-v
8529 verstring=
8530 output_objdir=.
8531 libname=conftest
8532 lt_save_allow_undefined_flag=$allow_undefined_flag
8533 allow_undefined_flag=
8534 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
8535 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8536 ac_status=$?
8537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8538 (exit $ac_status); }
8539 then
8540 archive_cmds_need_lc=no
8541 else
8542 archive_cmds_need_lc=yes
8544 allow_undefined_flag=$lt_save_allow_undefined_flag
8545 else
8546 cat conftest.err 1>&5
8548 $rm conftest*
8549 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8550 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
8552 esac
8555 esac
8557 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8558 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8559 library_names_spec=
8560 libname_spec='lib$name'
8561 soname_spec=
8562 shrext_cmds=".so"
8563 postinstall_cmds=
8564 postuninstall_cmds=
8565 finish_cmds=
8566 finish_eval=
8567 shlibpath_var=
8568 shlibpath_overrides_runpath=unknown
8569 version_type=none
8570 dynamic_linker="$host_os ld.so"
8571 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8573 if test "$GCC" = yes; then
8574 case $host_os in
8575 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
8576 *) lt_awk_arg="/^libraries:/" ;;
8577 esac
8578 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8579 if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
8580 # if the path contains ";" then we assume it to be the separator
8581 # otherwise default to the standard path separator (i.e. ":") - it is
8582 # assumed that no part of a normal pathname contains ";" but that should
8583 # okay in the real world where ";" in dirpaths is itself problematic.
8584 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
8585 else
8586 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8588 # Ok, now we have the path, separated by spaces, we can step through it
8589 # and add multilib dir if necessary.
8590 lt_tmp_lt_search_path_spec=
8591 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
8592 for lt_sys_path in $lt_search_path_spec; do
8593 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
8594 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
8595 else
8596 test -d "$lt_sys_path" && \
8597 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
8599 done
8600 lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
8601 BEGIN {RS=" "; FS="/|\n";} {
8602 lt_foo="";
8603 lt_count=0;
8604 for (lt_i = NF; lt_i > 0; lt_i--) {
8605 if ($lt_i != "" && $lt_i != ".") {
8606 if ($lt_i == "..") {
8607 lt_count++;
8608 } else {
8609 if (lt_count == 0) {
8610 lt_foo="/" $lt_i lt_foo;
8611 } else {
8612 lt_count--;
8617 if (lt_foo != "") { lt_freq[lt_foo]++; }
8618 if (lt_freq[lt_foo] == 1) { print lt_foo; }
8620 sys_lib_search_path_spec=`echo $lt_search_path_spec`
8621 else
8622 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8624 need_lib_prefix=unknown
8625 hardcode_into_libs=no
8627 # when you set need_version to no, make sure it does not cause -set_version
8628 # flags to be left without arguments
8629 need_version=unknown
8631 case $host_os in
8632 aix3*)
8633 version_type=linux
8634 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8635 shlibpath_var=LIBPATH
8637 # AIX 3 has no versioning support, so we append a major version to the name.
8638 soname_spec='${libname}${release}${shared_ext}$major'
8641 aix4* | aix5*)
8642 version_type=linux
8643 need_lib_prefix=no
8644 need_version=no
8645 hardcode_into_libs=yes
8646 if test "$host_cpu" = ia64; then
8647 # AIX 5 supports IA64
8648 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8649 shlibpath_var=LD_LIBRARY_PATH
8650 else
8651 # With GCC up to 2.95.x, collect2 would create an import file
8652 # for dependence libraries. The import file would start with
8653 # the line `#! .'. This would cause the generated library to
8654 # depend on `.', always an invalid library. This was fixed in
8655 # development snapshots of GCC prior to 3.0.
8656 case $host_os in
8657 aix4 | aix4.[01] | aix4.[01].*)
8658 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8659 echo ' yes '
8660 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8662 else
8663 can_build_shared=no
8666 esac
8667 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8668 # soname into executable. Probably we can add versioning support to
8669 # collect2, so additional links can be useful in future.
8670 if test "$aix_use_runtimelinking" = yes; then
8671 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8672 # instead of lib<name>.a to let people know that these are not
8673 # typical AIX shared libraries.
8674 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8675 else
8676 # We preserve .a as extension for shared libraries through AIX4.2
8677 # and later when we are not doing run time linking.
8678 library_names_spec='${libname}${release}.a $libname.a'
8679 soname_spec='${libname}${release}${shared_ext}$major'
8681 shlibpath_var=LIBPATH
8685 amigaos*)
8686 library_names_spec='$libname.ixlibrary $libname.a'
8687 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8688 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'
8691 beos*)
8692 library_names_spec='${libname}${shared_ext}'
8693 dynamic_linker="$host_os ld.so"
8694 shlibpath_var=LIBRARY_PATH
8697 bsdi[45]*)
8698 version_type=linux
8699 need_version=no
8700 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8701 soname_spec='${libname}${release}${shared_ext}$major'
8702 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8703 shlibpath_var=LD_LIBRARY_PATH
8704 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8705 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8706 # the default ld.so.conf also contains /usr/contrib/lib and
8707 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8708 # libtool to hard-code these into programs
8711 cygwin* | mingw* | pw32*)
8712 version_type=windows
8713 shrext_cmds=".dll"
8714 need_version=no
8715 need_lib_prefix=no
8717 case $GCC,$host_os in
8718 yes,cygwin* | yes,mingw* | yes,pw32*)
8719 library_names_spec='$libname.dll.a'
8720 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8721 postinstall_cmds='base_file=`basename \${file}`~
8722 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8723 dldir=$destdir/`dirname \$dlpath`~
8724 test -d \$dldir || mkdir -p \$dldir~
8725 $install_prog $dir/$dlname \$dldir/$dlname~
8726 chmod a+x \$dldir/$dlname'
8727 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8728 dlpath=$dir/\$dldll~
8729 $rm \$dlpath'
8730 shlibpath_overrides_runpath=yes
8732 case $host_os in
8733 cygwin*)
8734 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8735 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8736 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8738 mingw*)
8739 # MinGW DLLs use traditional 'lib' prefix
8740 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8741 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8742 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8743 # It is most probably a Windows format PATH printed by
8744 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8745 # path with ; separators, and with drive letters. We can handle the
8746 # drive letters (cygwin fileutils understands them), so leave them,
8747 # especially as we might pass files found there to a mingw objdump,
8748 # which wouldn't understand a cygwinified path. Ahh.
8749 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8750 else
8751 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8754 pw32*)
8755 # pw32 DLLs use 'pw' prefix rather than 'lib'
8756 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8758 esac
8762 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8764 esac
8765 dynamic_linker='Win32 ld.exe'
8766 # FIXME: first we should search . and the directory the executable is in
8767 shlibpath_var=PATH
8770 darwin* | rhapsody*)
8771 dynamic_linker="$host_os dyld"
8772 version_type=darwin
8773 need_lib_prefix=no
8774 need_version=no
8775 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8776 soname_spec='${libname}${release}${major}$shared_ext'
8777 shlibpath_overrides_runpath=yes
8778 shlibpath_var=DYLD_LIBRARY_PATH
8779 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
8781 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
8782 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8785 dgux*)
8786 version_type=linux
8787 need_lib_prefix=no
8788 need_version=no
8789 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8790 soname_spec='${libname}${release}${shared_ext}$major'
8791 shlibpath_var=LD_LIBRARY_PATH
8794 freebsd1*)
8795 dynamic_linker=no
8798 freebsd* | dragonfly*)
8799 # DragonFly does not have aout. When/if they implement a new
8800 # versioning mechanism, adjust this.
8801 if test -x /usr/bin/objformat; then
8802 objformat=`/usr/bin/objformat`
8803 else
8804 case $host_os in
8805 freebsd[123]*) objformat=aout ;;
8806 *) objformat=elf ;;
8807 esac
8809 version_type=freebsd-$objformat
8810 case $version_type in
8811 freebsd-elf*)
8812 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8813 need_version=no
8814 need_lib_prefix=no
8816 freebsd-*)
8817 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8818 need_version=yes
8820 esac
8821 shlibpath_var=LD_LIBRARY_PATH
8822 case $host_os in
8823 freebsd2*)
8824 shlibpath_overrides_runpath=yes
8826 freebsd3.[01]* | freebsdelf3.[01]*)
8827 shlibpath_overrides_runpath=yes
8828 hardcode_into_libs=yes
8830 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8831 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8832 shlibpath_overrides_runpath=no
8833 hardcode_into_libs=yes
8835 *) # from 4.6 on, and DragonFly
8836 shlibpath_overrides_runpath=yes
8837 hardcode_into_libs=yes
8839 esac
8842 gnu*)
8843 version_type=linux
8844 need_lib_prefix=no
8845 need_version=no
8846 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8847 soname_spec='${libname}${release}${shared_ext}$major'
8848 shlibpath_var=LD_LIBRARY_PATH
8849 hardcode_into_libs=yes
8852 hpux9* | hpux10* | hpux11*)
8853 # Give a soname corresponding to the major version so that dld.sl refuses to
8854 # link against other versions.
8855 version_type=sunos
8856 need_lib_prefix=no
8857 need_version=no
8858 case $host_cpu in
8859 ia64*)
8860 shrext_cmds='.so'
8861 hardcode_into_libs=yes
8862 dynamic_linker="$host_os dld.so"
8863 shlibpath_var=LD_LIBRARY_PATH
8864 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8865 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8866 soname_spec='${libname}${release}${shared_ext}$major'
8867 if test "X$HPUX_IA64_MODE" = X32; then
8868 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8869 else
8870 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8872 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8874 hppa*64*)
8875 shrext_cmds='.sl'
8876 hardcode_into_libs=yes
8877 dynamic_linker="$host_os dld.sl"
8878 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8879 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8880 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8881 soname_spec='${libname}${release}${shared_ext}$major'
8882 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8883 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8886 shrext_cmds='.sl'
8887 dynamic_linker="$host_os dld.sl"
8888 shlibpath_var=SHLIB_PATH
8889 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8890 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8891 soname_spec='${libname}${release}${shared_ext}$major'
8893 esac
8894 # HP-UX runs *really* slowly unless shared libraries are mode 555.
8895 postinstall_cmds='chmod 555 $lib'
8898 interix[3-9]*)
8899 version_type=linux
8900 need_lib_prefix=no
8901 need_version=no
8902 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8903 soname_spec='${libname}${release}${shared_ext}$major'
8904 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8905 shlibpath_var=LD_LIBRARY_PATH
8906 shlibpath_overrides_runpath=no
8907 hardcode_into_libs=yes
8910 irix5* | irix6* | nonstopux*)
8911 case $host_os in
8912 nonstopux*) version_type=nonstopux ;;
8914 if test "$lt_cv_prog_gnu_ld" = yes; then
8915 version_type=linux
8916 else
8917 version_type=irix
8918 fi ;;
8919 esac
8920 need_lib_prefix=no
8921 need_version=no
8922 soname_spec='${libname}${release}${shared_ext}$major'
8923 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8924 case $host_os in
8925 irix5* | nonstopux*)
8926 libsuff= shlibsuff=
8929 case $LD in # libtool.m4 will add one of these switches to LD
8930 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8931 libsuff= shlibsuff= libmagic=32-bit;;
8932 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8933 libsuff=32 shlibsuff=N32 libmagic=N32;;
8934 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8935 libsuff=64 shlibsuff=64 libmagic=64-bit;;
8936 *) libsuff= shlibsuff= libmagic=never-match;;
8937 esac
8939 esac
8940 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8941 shlibpath_overrides_runpath=no
8942 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8943 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8944 hardcode_into_libs=yes
8947 # No shared lib support for Linux oldld, aout, or coff.
8948 linux*oldld* | linux*aout* | linux*coff*)
8949 dynamic_linker=no
8952 # This must be Linux ELF.
8953 linux* | k*bsd*-gnu)
8954 version_type=linux
8955 need_lib_prefix=no
8956 need_version=no
8957 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8958 soname_spec='${libname}${release}${shared_ext}$major'
8959 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8960 shlibpath_var=LD_LIBRARY_PATH
8961 shlibpath_overrides_runpath=no
8962 # This implies no fast_install, which is unacceptable.
8963 # Some rework will be needed to allow for fast_install
8964 # before this can be enabled.
8965 hardcode_into_libs=yes
8967 # Append ld.so.conf contents to the search path
8968 if test -f /etc/ld.so.conf; then
8969 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' ' '`
8970 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
8973 # We used to test for /lib/ld.so.1 and disable shared libraries on
8974 # powerpc, because MkLinux only supported shared libraries with the
8975 # GNU dynamic linker. Since this was broken with cross compilers,
8976 # most powerpc-linux boxes support dynamic linking these days and
8977 # people can always --disable-shared, the test was removed, and we
8978 # assume the GNU/Linux dynamic linker is in use.
8979 dynamic_linker='GNU/Linux ld.so'
8982 netbsdelf*-gnu)
8983 version_type=linux
8984 need_lib_prefix=no
8985 need_version=no
8986 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8987 soname_spec='${libname}${release}${shared_ext}$major'
8988 shlibpath_var=LD_LIBRARY_PATH
8989 shlibpath_overrides_runpath=no
8990 hardcode_into_libs=yes
8991 dynamic_linker='NetBSD ld.elf_so'
8994 netbsd*)
8995 version_type=sunos
8996 need_lib_prefix=no
8997 need_version=no
8998 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8999 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9000 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9001 dynamic_linker='NetBSD (a.out) ld.so'
9002 else
9003 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9004 soname_spec='${libname}${release}${shared_ext}$major'
9005 dynamic_linker='NetBSD ld.elf_so'
9007 shlibpath_var=LD_LIBRARY_PATH
9008 shlibpath_overrides_runpath=yes
9009 hardcode_into_libs=yes
9012 newsos6)
9013 version_type=linux
9014 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9015 shlibpath_var=LD_LIBRARY_PATH
9016 shlibpath_overrides_runpath=yes
9019 nto-qnx*)
9020 version_type=linux
9021 need_lib_prefix=no
9022 need_version=no
9023 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9024 soname_spec='${libname}${release}${shared_ext}$major'
9025 shlibpath_var=LD_LIBRARY_PATH
9026 shlibpath_overrides_runpath=yes
9029 openbsd*)
9030 version_type=sunos
9031 sys_lib_dlsearch_path_spec="/usr/lib"
9032 need_lib_prefix=no
9033 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9034 case $host_os in
9035 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9036 *) need_version=no ;;
9037 esac
9038 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9039 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9040 shlibpath_var=LD_LIBRARY_PATH
9041 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9042 case $host_os in
9043 openbsd2.[89] | openbsd2.[89].*)
9044 shlibpath_overrides_runpath=no
9047 shlibpath_overrides_runpath=yes
9049 esac
9050 else
9051 shlibpath_overrides_runpath=yes
9055 os2*)
9056 libname_spec='$name'
9057 shrext_cmds=".dll"
9058 need_lib_prefix=no
9059 library_names_spec='$libname${shared_ext} $libname.a'
9060 dynamic_linker='OS/2 ld.exe'
9061 shlibpath_var=LIBPATH
9064 osf3* | osf4* | osf5*)
9065 version_type=osf
9066 need_lib_prefix=no
9067 need_version=no
9068 soname_spec='${libname}${release}${shared_ext}$major'
9069 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9070 shlibpath_var=LD_LIBRARY_PATH
9071 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9072 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9075 rdos*)
9076 dynamic_linker=no
9079 solaris*)
9080 version_type=linux
9081 need_lib_prefix=no
9082 need_version=no
9083 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9084 soname_spec='${libname}${release}${shared_ext}$major'
9085 shlibpath_var=LD_LIBRARY_PATH
9086 shlibpath_overrides_runpath=yes
9087 hardcode_into_libs=yes
9088 # ldd complains unless libraries are executable
9089 postinstall_cmds='chmod +x $lib'
9092 sunos4*)
9093 version_type=sunos
9094 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9095 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9096 shlibpath_var=LD_LIBRARY_PATH
9097 shlibpath_overrides_runpath=yes
9098 if test "$with_gnu_ld" = yes; then
9099 need_lib_prefix=no
9101 need_version=yes
9104 sysv4 | sysv4.3*)
9105 version_type=linux
9106 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9107 soname_spec='${libname}${release}${shared_ext}$major'
9108 shlibpath_var=LD_LIBRARY_PATH
9109 case $host_vendor in
9110 sni)
9111 shlibpath_overrides_runpath=no
9112 need_lib_prefix=no
9113 export_dynamic_flag_spec='${wl}-Blargedynsym'
9114 runpath_var=LD_RUN_PATH
9116 siemens)
9117 need_lib_prefix=no
9119 motorola)
9120 need_lib_prefix=no
9121 need_version=no
9122 shlibpath_overrides_runpath=no
9123 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9125 esac
9128 sysv4*MP*)
9129 if test -d /usr/nec ;then
9130 version_type=linux
9131 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9132 soname_spec='$libname${shared_ext}.$major'
9133 shlibpath_var=LD_LIBRARY_PATH
9137 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9138 version_type=freebsd-elf
9139 need_lib_prefix=no
9140 need_version=no
9141 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9142 soname_spec='${libname}${release}${shared_ext}$major'
9143 shlibpath_var=LD_LIBRARY_PATH
9144 hardcode_into_libs=yes
9145 if test "$with_gnu_ld" = yes; then
9146 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9147 shlibpath_overrides_runpath=no
9148 else
9149 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9150 shlibpath_overrides_runpath=yes
9151 case $host_os in
9152 sco3.2v5*)
9153 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9155 esac
9157 sys_lib_dlsearch_path_spec='/usr/lib'
9160 uts4*)
9161 version_type=linux
9162 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9163 soname_spec='${libname}${release}${shared_ext}$major'
9164 shlibpath_var=LD_LIBRARY_PATH
9168 dynamic_linker=no
9170 esac
9171 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9172 echo "${ECHO_T}$dynamic_linker" >&6; }
9173 test "$dynamic_linker" = no && can_build_shared=no
9175 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9176 if test "$GCC" = yes; then
9177 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9180 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9181 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
9182 hardcode_action=
9183 if test -n "$hardcode_libdir_flag_spec" || \
9184 test -n "$runpath_var" || \
9185 test "X$hardcode_automatic" = "Xyes" ; then
9187 # We can hardcode non-existant directories.
9188 if test "$hardcode_direct" != no &&
9189 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9190 # have to relink, otherwise we might link with an installed library
9191 # when we should be linking with a yet-to-be-installed one
9192 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9193 test "$hardcode_minus_L" != no; then
9194 # Linking always hardcodes the temporary library directory.
9195 hardcode_action=relink
9196 else
9197 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9198 hardcode_action=immediate
9200 else
9201 # We cannot hardcode anything, or else we can only hardcode existing
9202 # directories.
9203 hardcode_action=unsupported
9205 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
9206 echo "${ECHO_T}$hardcode_action" >&6; }
9208 if test "$hardcode_action" = relink; then
9209 # Fast installation is not supported
9210 enable_fast_install=no
9211 elif test "$shlibpath_overrides_runpath" = yes ||
9212 test "$enable_shared" = no; then
9213 # Fast installation is not necessary
9214 enable_fast_install=needless
9217 striplib=
9218 old_striplib=
9219 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9220 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
9221 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9222 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9223 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9224 { echo "$as_me:$LINENO: result: yes" >&5
9225 echo "${ECHO_T}yes" >&6; }
9226 else
9227 # FIXME - insert some real tests, host_os isn't really good enough
9228 case $host_os in
9229 darwin*)
9230 if test -n "$STRIP" ; then
9231 striplib="$STRIP -x"
9232 old_striplib="$STRIP -S"
9233 { echo "$as_me:$LINENO: result: yes" >&5
9234 echo "${ECHO_T}yes" >&6; }
9235 else
9236 { echo "$as_me:$LINENO: result: no" >&5
9237 echo "${ECHO_T}no" >&6; }
9241 { echo "$as_me:$LINENO: result: no" >&5
9242 echo "${ECHO_T}no" >&6; }
9244 esac
9247 if test "x$enable_dlopen" != xyes; then
9248 enable_dlopen=unknown
9249 enable_dlopen_self=unknown
9250 enable_dlopen_self_static=unknown
9251 else
9252 lt_cv_dlopen=no
9253 lt_cv_dlopen_libs=
9255 case $host_os in
9256 beos*)
9257 lt_cv_dlopen="load_add_on"
9258 lt_cv_dlopen_libs=
9259 lt_cv_dlopen_self=yes
9262 mingw* | pw32*)
9263 lt_cv_dlopen="LoadLibrary"
9264 lt_cv_dlopen_libs=
9267 cygwin*)
9268 lt_cv_dlopen="dlopen"
9269 lt_cv_dlopen_libs=
9272 darwin*)
9273 # if libdl is installed we need to link against it
9274 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9275 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9276 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9277 echo $ECHO_N "(cached) $ECHO_C" >&6
9278 else
9279 ac_check_lib_save_LIBS=$LIBS
9280 LIBS="-ldl $LIBS"
9281 cat >conftest.$ac_ext <<_ACEOF
9282 /* confdefs.h. */
9283 _ACEOF
9284 cat confdefs.h >>conftest.$ac_ext
9285 cat >>conftest.$ac_ext <<_ACEOF
9286 /* end confdefs.h. */
9288 /* Override any GCC internal prototype to avoid an error.
9289 Use char because int might match the return type of a GCC
9290 builtin and then its argument prototype would still apply. */
9291 #ifdef __cplusplus
9292 extern "C"
9293 #endif
9294 char dlopen ();
9296 main ()
9298 return dlopen ();
9300 return 0;
9302 _ACEOF
9303 rm -f conftest.$ac_objext conftest$ac_exeext
9304 if { (ac_try="$ac_link"
9305 case "(($ac_try" in
9306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9307 *) ac_try_echo=$ac_try;;
9308 esac
9309 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9310 (eval "$ac_link") 2>conftest.er1
9311 ac_status=$?
9312 grep -v '^ *+' conftest.er1 >conftest.err
9313 rm -f conftest.er1
9314 cat conftest.err >&5
9315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9316 (exit $ac_status); } && {
9317 test -z "$ac_c_werror_flag" ||
9318 test ! -s conftest.err
9319 } && test -s conftest$ac_exeext &&
9320 $as_test_x conftest$ac_exeext; then
9321 ac_cv_lib_dl_dlopen=yes
9322 else
9323 echo "$as_me: failed program was:" >&5
9324 sed 's/^/| /' conftest.$ac_ext >&5
9326 ac_cv_lib_dl_dlopen=no
9329 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9330 conftest$ac_exeext conftest.$ac_ext
9331 LIBS=$ac_check_lib_save_LIBS
9333 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9334 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9335 if test $ac_cv_lib_dl_dlopen = yes; then
9336 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9337 else
9339 lt_cv_dlopen="dyld"
9340 lt_cv_dlopen_libs=
9341 lt_cv_dlopen_self=yes
9348 { echo "$as_me:$LINENO: checking for shl_load" >&5
9349 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9350 if test "${ac_cv_func_shl_load+set}" = set; then
9351 echo $ECHO_N "(cached) $ECHO_C" >&6
9352 else
9353 cat >conftest.$ac_ext <<_ACEOF
9354 /* confdefs.h. */
9355 _ACEOF
9356 cat confdefs.h >>conftest.$ac_ext
9357 cat >>conftest.$ac_ext <<_ACEOF
9358 /* end confdefs.h. */
9359 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9360 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9361 #define shl_load innocuous_shl_load
9363 /* System header to define __stub macros and hopefully few prototypes,
9364 which can conflict with char shl_load (); below.
9365 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9366 <limits.h> exists even on freestanding compilers. */
9368 #ifdef __STDC__
9369 # include <limits.h>
9370 #else
9371 # include <assert.h>
9372 #endif
9374 #undef shl_load
9376 /* Override any GCC internal prototype to avoid an error.
9377 Use char because int might match the return type of a GCC
9378 builtin and then its argument prototype would still apply. */
9379 #ifdef __cplusplus
9380 extern "C"
9381 #endif
9382 char shl_load ();
9383 /* The GNU C library defines this for functions which it implements
9384 to always fail with ENOSYS. Some functions are actually named
9385 something starting with __ and the normal name is an alias. */
9386 #if defined __stub_shl_load || defined __stub___shl_load
9387 choke me
9388 #endif
9391 main ()
9393 return shl_load ();
9395 return 0;
9397 _ACEOF
9398 rm -f conftest.$ac_objext conftest$ac_exeext
9399 if { (ac_try="$ac_link"
9400 case "(($ac_try" in
9401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9402 *) ac_try_echo=$ac_try;;
9403 esac
9404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9405 (eval "$ac_link") 2>conftest.er1
9406 ac_status=$?
9407 grep -v '^ *+' conftest.er1 >conftest.err
9408 rm -f conftest.er1
9409 cat conftest.err >&5
9410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9411 (exit $ac_status); } && {
9412 test -z "$ac_c_werror_flag" ||
9413 test ! -s conftest.err
9414 } && test -s conftest$ac_exeext &&
9415 $as_test_x conftest$ac_exeext; then
9416 ac_cv_func_shl_load=yes
9417 else
9418 echo "$as_me: failed program was:" >&5
9419 sed 's/^/| /' conftest.$ac_ext >&5
9421 ac_cv_func_shl_load=no
9424 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9425 conftest$ac_exeext conftest.$ac_ext
9427 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9428 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9429 if test $ac_cv_func_shl_load = yes; then
9430 lt_cv_dlopen="shl_load"
9431 else
9432 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9433 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9434 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9435 echo $ECHO_N "(cached) $ECHO_C" >&6
9436 else
9437 ac_check_lib_save_LIBS=$LIBS
9438 LIBS="-ldld $LIBS"
9439 cat >conftest.$ac_ext <<_ACEOF
9440 /* confdefs.h. */
9441 _ACEOF
9442 cat confdefs.h >>conftest.$ac_ext
9443 cat >>conftest.$ac_ext <<_ACEOF
9444 /* end confdefs.h. */
9446 /* Override any GCC internal prototype to avoid an error.
9447 Use char because int might match the return type of a GCC
9448 builtin and then its argument prototype would still apply. */
9449 #ifdef __cplusplus
9450 extern "C"
9451 #endif
9452 char shl_load ();
9454 main ()
9456 return shl_load ();
9458 return 0;
9460 _ACEOF
9461 rm -f conftest.$ac_objext conftest$ac_exeext
9462 if { (ac_try="$ac_link"
9463 case "(($ac_try" in
9464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9465 *) ac_try_echo=$ac_try;;
9466 esac
9467 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9468 (eval "$ac_link") 2>conftest.er1
9469 ac_status=$?
9470 grep -v '^ *+' conftest.er1 >conftest.err
9471 rm -f conftest.er1
9472 cat conftest.err >&5
9473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9474 (exit $ac_status); } && {
9475 test -z "$ac_c_werror_flag" ||
9476 test ! -s conftest.err
9477 } && test -s conftest$ac_exeext &&
9478 $as_test_x conftest$ac_exeext; then
9479 ac_cv_lib_dld_shl_load=yes
9480 else
9481 echo "$as_me: failed program was:" >&5
9482 sed 's/^/| /' conftest.$ac_ext >&5
9484 ac_cv_lib_dld_shl_load=no
9487 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9488 conftest$ac_exeext conftest.$ac_ext
9489 LIBS=$ac_check_lib_save_LIBS
9491 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9492 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9493 if test $ac_cv_lib_dld_shl_load = yes; then
9494 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9495 else
9496 { echo "$as_me:$LINENO: checking for dlopen" >&5
9497 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
9498 if test "${ac_cv_func_dlopen+set}" = set; then
9499 echo $ECHO_N "(cached) $ECHO_C" >&6
9500 else
9501 cat >conftest.$ac_ext <<_ACEOF
9502 /* confdefs.h. */
9503 _ACEOF
9504 cat confdefs.h >>conftest.$ac_ext
9505 cat >>conftest.$ac_ext <<_ACEOF
9506 /* end confdefs.h. */
9507 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9508 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9509 #define dlopen innocuous_dlopen
9511 /* System header to define __stub macros and hopefully few prototypes,
9512 which can conflict with char dlopen (); below.
9513 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9514 <limits.h> exists even on freestanding compilers. */
9516 #ifdef __STDC__
9517 # include <limits.h>
9518 #else
9519 # include <assert.h>
9520 #endif
9522 #undef dlopen
9524 /* Override any GCC internal prototype to avoid an error.
9525 Use char because int might match the return type of a GCC
9526 builtin and then its argument prototype would still apply. */
9527 #ifdef __cplusplus
9528 extern "C"
9529 #endif
9530 char dlopen ();
9531 /* The GNU C library defines this for functions which it implements
9532 to always fail with ENOSYS. Some functions are actually named
9533 something starting with __ and the normal name is an alias. */
9534 #if defined __stub_dlopen || defined __stub___dlopen
9535 choke me
9536 #endif
9539 main ()
9541 return dlopen ();
9543 return 0;
9545 _ACEOF
9546 rm -f conftest.$ac_objext conftest$ac_exeext
9547 if { (ac_try="$ac_link"
9548 case "(($ac_try" in
9549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9550 *) ac_try_echo=$ac_try;;
9551 esac
9552 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9553 (eval "$ac_link") 2>conftest.er1
9554 ac_status=$?
9555 grep -v '^ *+' conftest.er1 >conftest.err
9556 rm -f conftest.er1
9557 cat conftest.err >&5
9558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9559 (exit $ac_status); } && {
9560 test -z "$ac_c_werror_flag" ||
9561 test ! -s conftest.err
9562 } && test -s conftest$ac_exeext &&
9563 $as_test_x conftest$ac_exeext; then
9564 ac_cv_func_dlopen=yes
9565 else
9566 echo "$as_me: failed program was:" >&5
9567 sed 's/^/| /' conftest.$ac_ext >&5
9569 ac_cv_func_dlopen=no
9572 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9573 conftest$ac_exeext conftest.$ac_ext
9575 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9576 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
9577 if test $ac_cv_func_dlopen = yes; then
9578 lt_cv_dlopen="dlopen"
9579 else
9580 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9581 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9582 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9583 echo $ECHO_N "(cached) $ECHO_C" >&6
9584 else
9585 ac_check_lib_save_LIBS=$LIBS
9586 LIBS="-ldl $LIBS"
9587 cat >conftest.$ac_ext <<_ACEOF
9588 /* confdefs.h. */
9589 _ACEOF
9590 cat confdefs.h >>conftest.$ac_ext
9591 cat >>conftest.$ac_ext <<_ACEOF
9592 /* end confdefs.h. */
9594 /* Override any GCC internal prototype to avoid an error.
9595 Use char because int might match the return type of a GCC
9596 builtin and then its argument prototype would still apply. */
9597 #ifdef __cplusplus
9598 extern "C"
9599 #endif
9600 char dlopen ();
9602 main ()
9604 return dlopen ();
9606 return 0;
9608 _ACEOF
9609 rm -f conftest.$ac_objext conftest$ac_exeext
9610 if { (ac_try="$ac_link"
9611 case "(($ac_try" in
9612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9613 *) ac_try_echo=$ac_try;;
9614 esac
9615 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9616 (eval "$ac_link") 2>conftest.er1
9617 ac_status=$?
9618 grep -v '^ *+' conftest.er1 >conftest.err
9619 rm -f conftest.er1
9620 cat conftest.err >&5
9621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9622 (exit $ac_status); } && {
9623 test -z "$ac_c_werror_flag" ||
9624 test ! -s conftest.err
9625 } && test -s conftest$ac_exeext &&
9626 $as_test_x conftest$ac_exeext; then
9627 ac_cv_lib_dl_dlopen=yes
9628 else
9629 echo "$as_me: failed program was:" >&5
9630 sed 's/^/| /' conftest.$ac_ext >&5
9632 ac_cv_lib_dl_dlopen=no
9635 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9636 conftest$ac_exeext conftest.$ac_ext
9637 LIBS=$ac_check_lib_save_LIBS
9639 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9640 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9641 if test $ac_cv_lib_dl_dlopen = yes; then
9642 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9643 else
9644 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9645 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
9646 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9647 echo $ECHO_N "(cached) $ECHO_C" >&6
9648 else
9649 ac_check_lib_save_LIBS=$LIBS
9650 LIBS="-lsvld $LIBS"
9651 cat >conftest.$ac_ext <<_ACEOF
9652 /* confdefs.h. */
9653 _ACEOF
9654 cat confdefs.h >>conftest.$ac_ext
9655 cat >>conftest.$ac_ext <<_ACEOF
9656 /* end confdefs.h. */
9658 /* Override any GCC internal prototype to avoid an error.
9659 Use char because int might match the return type of a GCC
9660 builtin and then its argument prototype would still apply. */
9661 #ifdef __cplusplus
9662 extern "C"
9663 #endif
9664 char dlopen ();
9666 main ()
9668 return dlopen ();
9670 return 0;
9672 _ACEOF
9673 rm -f conftest.$ac_objext conftest$ac_exeext
9674 if { (ac_try="$ac_link"
9675 case "(($ac_try" in
9676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9677 *) ac_try_echo=$ac_try;;
9678 esac
9679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9680 (eval "$ac_link") 2>conftest.er1
9681 ac_status=$?
9682 grep -v '^ *+' conftest.er1 >conftest.err
9683 rm -f conftest.er1
9684 cat conftest.err >&5
9685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9686 (exit $ac_status); } && {
9687 test -z "$ac_c_werror_flag" ||
9688 test ! -s conftest.err
9689 } && test -s conftest$ac_exeext &&
9690 $as_test_x conftest$ac_exeext; then
9691 ac_cv_lib_svld_dlopen=yes
9692 else
9693 echo "$as_me: failed program was:" >&5
9694 sed 's/^/| /' conftest.$ac_ext >&5
9696 ac_cv_lib_svld_dlopen=no
9699 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9700 conftest$ac_exeext conftest.$ac_ext
9701 LIBS=$ac_check_lib_save_LIBS
9703 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9704 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
9705 if test $ac_cv_lib_svld_dlopen = yes; then
9706 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9707 else
9708 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9709 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
9710 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9711 echo $ECHO_N "(cached) $ECHO_C" >&6
9712 else
9713 ac_check_lib_save_LIBS=$LIBS
9714 LIBS="-ldld $LIBS"
9715 cat >conftest.$ac_ext <<_ACEOF
9716 /* confdefs.h. */
9717 _ACEOF
9718 cat confdefs.h >>conftest.$ac_ext
9719 cat >>conftest.$ac_ext <<_ACEOF
9720 /* end confdefs.h. */
9722 /* Override any GCC internal prototype to avoid an error.
9723 Use char because int might match the return type of a GCC
9724 builtin and then its argument prototype would still apply. */
9725 #ifdef __cplusplus
9726 extern "C"
9727 #endif
9728 char dld_link ();
9730 main ()
9732 return dld_link ();
9734 return 0;
9736 _ACEOF
9737 rm -f conftest.$ac_objext conftest$ac_exeext
9738 if { (ac_try="$ac_link"
9739 case "(($ac_try" in
9740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9741 *) ac_try_echo=$ac_try;;
9742 esac
9743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9744 (eval "$ac_link") 2>conftest.er1
9745 ac_status=$?
9746 grep -v '^ *+' conftest.er1 >conftest.err
9747 rm -f conftest.er1
9748 cat conftest.err >&5
9749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9750 (exit $ac_status); } && {
9751 test -z "$ac_c_werror_flag" ||
9752 test ! -s conftest.err
9753 } && test -s conftest$ac_exeext &&
9754 $as_test_x conftest$ac_exeext; then
9755 ac_cv_lib_dld_dld_link=yes
9756 else
9757 echo "$as_me: failed program was:" >&5
9758 sed 's/^/| /' conftest.$ac_ext >&5
9760 ac_cv_lib_dld_dld_link=no
9763 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9764 conftest$ac_exeext conftest.$ac_ext
9765 LIBS=$ac_check_lib_save_LIBS
9767 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9768 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
9769 if test $ac_cv_lib_dld_dld_link = yes; then
9770 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
9789 esac
9791 if test "x$lt_cv_dlopen" != xno; then
9792 enable_dlopen=yes
9793 else
9794 enable_dlopen=no
9797 case $lt_cv_dlopen in
9798 dlopen)
9799 save_CPPFLAGS="$CPPFLAGS"
9800 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9802 save_LDFLAGS="$LDFLAGS"
9803 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9805 save_LIBS="$LIBS"
9806 LIBS="$lt_cv_dlopen_libs $LIBS"
9808 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
9809 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
9810 if test "${lt_cv_dlopen_self+set}" = set; then
9811 echo $ECHO_N "(cached) $ECHO_C" >&6
9812 else
9813 if test "$cross_compiling" = yes; then :
9814 lt_cv_dlopen_self=cross
9815 else
9816 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9817 lt_status=$lt_dlunknown
9818 cat > conftest.$ac_ext <<EOF
9819 #line 9819 "configure"
9820 #include "confdefs.h"
9822 #if HAVE_DLFCN_H
9823 #include <dlfcn.h>
9824 #endif
9826 #include <stdio.h>
9828 #ifdef RTLD_GLOBAL
9829 # define LT_DLGLOBAL RTLD_GLOBAL
9830 #else
9831 # ifdef DL_GLOBAL
9832 # define LT_DLGLOBAL DL_GLOBAL
9833 # else
9834 # define LT_DLGLOBAL 0
9835 # endif
9836 #endif
9838 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9839 find out it does not work in some platform. */
9840 #ifndef LT_DLLAZY_OR_NOW
9841 # ifdef RTLD_LAZY
9842 # define LT_DLLAZY_OR_NOW RTLD_LAZY
9843 # else
9844 # ifdef DL_LAZY
9845 # define LT_DLLAZY_OR_NOW DL_LAZY
9846 # else
9847 # ifdef RTLD_NOW
9848 # define LT_DLLAZY_OR_NOW RTLD_NOW
9849 # else
9850 # ifdef DL_NOW
9851 # define LT_DLLAZY_OR_NOW DL_NOW
9852 # else
9853 # define LT_DLLAZY_OR_NOW 0
9854 # endif
9855 # endif
9856 # endif
9857 # endif
9858 #endif
9860 #ifdef __cplusplus
9861 extern "C" void exit (int);
9862 #endif
9864 void fnord() { int i=42;}
9865 int main ()
9867 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9868 int status = $lt_dlunknown;
9870 if (self)
9872 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9873 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9874 /* dlclose (self); */
9876 else
9877 puts (dlerror ());
9879 exit (status);
9882 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9883 (eval $ac_link) 2>&5
9884 ac_status=$?
9885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9886 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9887 (./conftest; exit; ) >&5 2>/dev/null
9888 lt_status=$?
9889 case x$lt_status in
9890 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9891 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9892 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
9893 esac
9894 else :
9895 # compilation failed
9896 lt_cv_dlopen_self=no
9899 rm -fr conftest*
9903 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
9904 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
9906 if test "x$lt_cv_dlopen_self" = xyes; then
9907 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
9908 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
9909 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
9910 if test "${lt_cv_dlopen_self_static+set}" = set; then
9911 echo $ECHO_N "(cached) $ECHO_C" >&6
9912 else
9913 if test "$cross_compiling" = yes; then :
9914 lt_cv_dlopen_self_static=cross
9915 else
9916 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9917 lt_status=$lt_dlunknown
9918 cat > conftest.$ac_ext <<EOF
9919 #line 9919 "configure"
9920 #include "confdefs.h"
9922 #if HAVE_DLFCN_H
9923 #include <dlfcn.h>
9924 #endif
9926 #include <stdio.h>
9928 #ifdef RTLD_GLOBAL
9929 # define LT_DLGLOBAL RTLD_GLOBAL
9930 #else
9931 # ifdef DL_GLOBAL
9932 # define LT_DLGLOBAL DL_GLOBAL
9933 # else
9934 # define LT_DLGLOBAL 0
9935 # endif
9936 #endif
9938 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9939 find out it does not work in some platform. */
9940 #ifndef LT_DLLAZY_OR_NOW
9941 # ifdef RTLD_LAZY
9942 # define LT_DLLAZY_OR_NOW RTLD_LAZY
9943 # else
9944 # ifdef DL_LAZY
9945 # define LT_DLLAZY_OR_NOW DL_LAZY
9946 # else
9947 # ifdef RTLD_NOW
9948 # define LT_DLLAZY_OR_NOW RTLD_NOW
9949 # else
9950 # ifdef DL_NOW
9951 # define LT_DLLAZY_OR_NOW DL_NOW
9952 # else
9953 # define LT_DLLAZY_OR_NOW 0
9954 # endif
9955 # endif
9956 # endif
9957 # endif
9958 #endif
9960 #ifdef __cplusplus
9961 extern "C" void exit (int);
9962 #endif
9964 void fnord() { int i=42;}
9965 int main ()
9967 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9968 int status = $lt_dlunknown;
9970 if (self)
9972 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9973 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9974 /* dlclose (self); */
9976 else
9977 puts (dlerror ());
9979 exit (status);
9982 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9983 (eval $ac_link) 2>&5
9984 ac_status=$?
9985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9986 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9987 (./conftest; exit; ) >&5 2>/dev/null
9988 lt_status=$?
9989 case x$lt_status in
9990 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
9991 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
9992 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
9993 esac
9994 else :
9995 # compilation failed
9996 lt_cv_dlopen_self_static=no
9999 rm -fr conftest*
10003 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10004 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
10007 CPPFLAGS="$save_CPPFLAGS"
10008 LDFLAGS="$save_LDFLAGS"
10009 LIBS="$save_LIBS"
10011 esac
10013 case $lt_cv_dlopen_self in
10014 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10015 *) enable_dlopen_self=unknown ;;
10016 esac
10018 case $lt_cv_dlopen_self_static in
10019 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10020 *) enable_dlopen_self_static=unknown ;;
10021 esac
10025 # Report which library types will actually be built
10026 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10027 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
10028 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
10029 echo "${ECHO_T}$can_build_shared" >&6; }
10031 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10032 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
10033 test "$can_build_shared" = "no" && enable_shared=no
10035 # On AIX, shared libraries and static libraries use the same namespace, and
10036 # are all built from PIC.
10037 case $host_os in
10038 aix3*)
10039 test "$enable_shared" = yes && enable_static=no
10040 if test -n "$RANLIB"; then
10041 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10042 postinstall_cmds='$RANLIB $lib'
10046 aix4* | aix5*)
10047 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10048 test "$enable_shared" = yes && enable_static=no
10051 esac
10052 { echo "$as_me:$LINENO: result: $enable_shared" >&5
10053 echo "${ECHO_T}$enable_shared" >&6; }
10055 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10056 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
10057 # Make sure either enable_shared or enable_static is yes.
10058 test "$enable_shared" = yes || enable_static=yes
10059 { echo "$as_me:$LINENO: result: $enable_static" >&5
10060 echo "${ECHO_T}$enable_static" >&6; }
10062 # The else clause should only fire when bootstrapping the
10063 # libtool distribution, otherwise you forgot to ship ltmain.sh
10064 # with your package, and you will get complaints that there are
10065 # no rules to generate ltmain.sh.
10066 if test -f "$ltmain"; then
10067 # See if we are running on zsh, and set the options which allow our commands through
10068 # without removal of \ escapes.
10069 if test -n "${ZSH_VERSION+set}" ; then
10070 setopt NO_GLOB_SUBST
10072 # Now quote all the things that may contain metacharacters while being
10073 # careful not to overquote the AC_SUBSTed values. We take copies of the
10074 # variables and quote the copies for generation of the libtool script.
10075 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10076 SED SHELL STRIP \
10077 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10078 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10079 deplibs_check_method reload_flag reload_cmds need_locks \
10080 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10081 lt_cv_sys_global_symbol_to_c_name_address \
10082 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10083 old_postinstall_cmds old_postuninstall_cmds \
10084 compiler \
10085 CC \
10086 LD \
10087 lt_prog_compiler_wl \
10088 lt_prog_compiler_pic \
10089 lt_prog_compiler_static \
10090 lt_prog_compiler_no_builtin_flag \
10091 export_dynamic_flag_spec \
10092 thread_safe_flag_spec \
10093 whole_archive_flag_spec \
10094 enable_shared_with_static_runtimes \
10095 old_archive_cmds \
10096 old_archive_from_new_cmds \
10097 predep_objects \
10098 postdep_objects \
10099 predeps \
10100 postdeps \
10101 compiler_lib_search_path \
10102 archive_cmds \
10103 archive_expsym_cmds \
10104 postinstall_cmds \
10105 postuninstall_cmds \
10106 old_archive_from_expsyms_cmds \
10107 allow_undefined_flag \
10108 no_undefined_flag \
10109 export_symbols_cmds \
10110 hardcode_libdir_flag_spec \
10111 hardcode_libdir_flag_spec_ld \
10112 hardcode_libdir_separator \
10113 hardcode_automatic \
10114 module_cmds \
10115 module_expsym_cmds \
10116 lt_cv_prog_compiler_c_o \
10117 fix_srcfile_path \
10118 exclude_expsyms \
10119 include_expsyms; do
10121 case $var in
10122 old_archive_cmds | \
10123 old_archive_from_new_cmds | \
10124 archive_cmds | \
10125 archive_expsym_cmds | \
10126 module_cmds | \
10127 module_expsym_cmds | \
10128 old_archive_from_expsyms_cmds | \
10129 export_symbols_cmds | \
10130 extract_expsyms_cmds | reload_cmds | finish_cmds | \
10131 postinstall_cmds | postuninstall_cmds | \
10132 old_postinstall_cmds | old_postuninstall_cmds | \
10133 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10134 # Double-quote double-evaled strings.
10135 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10138 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10140 esac
10141 done
10143 case $lt_echo in
10144 *'\$0 --fallback-echo"')
10145 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10147 esac
10149 cfgfile="${ofile}T"
10150 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10151 $rm -f "$cfgfile"
10152 { echo "$as_me:$LINENO: creating $ofile" >&5
10153 echo "$as_me: creating $ofile" >&6;}
10155 cat <<__EOF__ >> "$cfgfile"
10156 #! $SHELL
10158 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10159 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10160 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
10162 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007
10163 # Free Software Foundation, Inc.
10165 # This file is part of GNU Libtool:
10166 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10168 # This program is free software; you can redistribute it and/or modify
10169 # it under the terms of the GNU General Public License as published by
10170 # the Free Software Foundation; either version 2 of the License, or
10171 # (at your option) any later version.
10173 # This program is distributed in the hope that it will be useful, but
10174 # WITHOUT ANY WARRANTY; without even the implied warranty of
10175 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
10176 # General Public License for more details.
10178 # You should have received a copy of the GNU General Public License
10179 # along with this program; if not, write to the Free Software
10180 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10182 # As a special exception to the GNU General Public License, if you
10183 # distribute this file as part of a program that contains a
10184 # configuration script generated by Autoconf, you may include it under
10185 # the same distribution terms that you use for the rest of that program.
10187 # A sed program that does not truncate output.
10188 SED=$lt_SED
10190 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
10191 Xsed="$SED -e 1s/^X//"
10193 # The HP-UX ksh and POSIX shell print the target directory to stdout
10194 # if CDPATH is set.
10195 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10197 # The names of the tagged configurations supported by this script.
10198 available_tags=
10200 # ### BEGIN LIBTOOL CONFIG
10202 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10204 # Shell to use when invoking shell scripts.
10205 SHELL=$lt_SHELL
10207 # Whether or not to build shared libraries.
10208 build_libtool_libs=$enable_shared
10210 # Whether or not to build static libraries.
10211 build_old_libs=$enable_static
10213 # Whether or not to add -lc for building shared libraries.
10214 build_libtool_need_lc=$archive_cmds_need_lc
10216 # Whether or not to disallow shared libs when runtime libs are static
10217 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10219 # Whether or not to optimize for fast installation.
10220 fast_install=$enable_fast_install
10222 # The host system.
10223 host_alias=$host_alias
10224 host=$host
10225 host_os=$host_os
10227 # The build system.
10228 build_alias=$build_alias
10229 build=$build
10230 build_os=$build_os
10232 # An echo program that does not interpret backslashes.
10233 echo=$lt_echo
10235 # The archiver.
10236 AR=$lt_AR
10237 AR_FLAGS=$lt_AR_FLAGS
10239 # A C compiler.
10240 LTCC=$lt_LTCC
10242 # LTCC compiler flags.
10243 LTCFLAGS=$lt_LTCFLAGS
10245 # A language-specific compiler.
10246 CC=$lt_compiler
10248 # Is the compiler the GNU C compiler?
10249 with_gcc=$GCC
10251 # An ERE matcher.
10252 EGREP=$lt_EGREP
10254 # The linker used to build libraries.
10255 LD=$lt_LD
10257 # Whether we need hard or soft links.
10258 LN_S=$lt_LN_S
10260 # A BSD-compatible nm program.
10261 NM=$lt_NM
10263 # A symbol stripping program
10264 STRIP=$lt_STRIP
10266 # Used to examine libraries when file_magic_cmd begins "file"
10267 MAGIC_CMD=$MAGIC_CMD
10269 # Used on cygwin: DLL creation program.
10270 DLLTOOL="$DLLTOOL"
10272 # Used on cygwin: object dumper.
10273 OBJDUMP="$OBJDUMP"
10275 # Used on cygwin: assembler.
10276 AS="$AS"
10278 # The name of the directory that contains temporary libtool files.
10279 objdir=$objdir
10281 # How to create reloadable object files.
10282 reload_flag=$lt_reload_flag
10283 reload_cmds=$lt_reload_cmds
10285 # How to pass a linker flag through the compiler.
10286 wl=$lt_lt_prog_compiler_wl
10288 # Object file suffix (normally "o").
10289 objext="$ac_objext"
10291 # Old archive suffix (normally "a").
10292 libext="$libext"
10294 # Shared library suffix (normally ".so").
10295 shrext_cmds='$shrext_cmds'
10297 # Executable file suffix (normally "").
10298 exeext="$exeext"
10300 # Additional compiler flags for building library objects.
10301 pic_flag=$lt_lt_prog_compiler_pic
10302 pic_mode=$pic_mode
10304 # What is the maximum length of a command?
10305 max_cmd_len=$lt_cv_sys_max_cmd_len
10307 # Does compiler simultaneously support -c and -o options?
10308 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10310 # Must we lock files when doing compilation?
10311 need_locks=$lt_need_locks
10313 # Do we need the lib prefix for modules?
10314 need_lib_prefix=$need_lib_prefix
10316 # Do we need a version for libraries?
10317 need_version=$need_version
10319 # Whether dlopen is supported.
10320 dlopen_support=$enable_dlopen
10322 # Whether dlopen of programs is supported.
10323 dlopen_self=$enable_dlopen_self
10325 # Whether dlopen of statically linked programs is supported.
10326 dlopen_self_static=$enable_dlopen_self_static
10328 # Compiler flag to prevent dynamic linking.
10329 link_static_flag=$lt_lt_prog_compiler_static
10331 # Compiler flag to turn off builtin functions.
10332 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10334 # Compiler flag to allow reflexive dlopens.
10335 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10337 # Compiler flag to generate shared objects directly from archives.
10338 whole_archive_flag_spec=$lt_whole_archive_flag_spec
10340 # Compiler flag to generate thread-safe objects.
10341 thread_safe_flag_spec=$lt_thread_safe_flag_spec
10343 # Library versioning type.
10344 version_type=$version_type
10346 # Format of library name prefix.
10347 libname_spec=$lt_libname_spec
10349 # List of archive names. First name is the real one, the rest are links.
10350 # The last name is the one that the linker finds with -lNAME.
10351 library_names_spec=$lt_library_names_spec
10353 # The coded name of the library, if different from the real name.
10354 soname_spec=$lt_soname_spec
10356 # Commands used to build and install an old-style archive.
10357 RANLIB=$lt_RANLIB
10358 old_archive_cmds=$lt_old_archive_cmds
10359 old_postinstall_cmds=$lt_old_postinstall_cmds
10360 old_postuninstall_cmds=$lt_old_postuninstall_cmds
10362 # Create an old-style archive from a shared archive.
10363 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10365 # Create a temporary old-style archive to link instead of a shared archive.
10366 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10368 # Commands used to build and install a shared archive.
10369 archive_cmds=$lt_archive_cmds
10370 archive_expsym_cmds=$lt_archive_expsym_cmds
10371 postinstall_cmds=$lt_postinstall_cmds
10372 postuninstall_cmds=$lt_postuninstall_cmds
10374 # Commands used to build a loadable module (assumed same as above if empty)
10375 module_cmds=$lt_module_cmds
10376 module_expsym_cmds=$lt_module_expsym_cmds
10378 # Commands to strip libraries.
10379 old_striplib=$lt_old_striplib
10380 striplib=$lt_striplib
10382 # Dependencies to place before the objects being linked to create a
10383 # shared library.
10384 predep_objects=$lt_predep_objects
10386 # Dependencies to place after the objects being linked to create a
10387 # shared library.
10388 postdep_objects=$lt_postdep_objects
10390 # Dependencies to place before the objects being linked to create a
10391 # shared library.
10392 predeps=$lt_predeps
10394 # Dependencies to place after the objects being linked to create a
10395 # shared library.
10396 postdeps=$lt_postdeps
10398 # The library search path used internally by the compiler when linking
10399 # a shared library.
10400 compiler_lib_search_path=$lt_compiler_lib_search_path
10402 # Method to check whether dependent libraries are shared objects.
10403 deplibs_check_method=$lt_deplibs_check_method
10405 # Command to use when deplibs_check_method == file_magic.
10406 file_magic_cmd=$lt_file_magic_cmd
10408 # Flag that allows shared libraries with undefined symbols to be built.
10409 allow_undefined_flag=$lt_allow_undefined_flag
10411 # Flag that forces no undefined symbols.
10412 no_undefined_flag=$lt_no_undefined_flag
10414 # Commands used to finish a libtool library installation in a directory.
10415 finish_cmds=$lt_finish_cmds
10417 # Same as above, but a single script fragment to be evaled but not shown.
10418 finish_eval=$lt_finish_eval
10420 # Take the output of nm and produce a listing of raw symbols and C names.
10421 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10423 # Transform the output of nm in a proper C declaration
10424 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10426 # Transform the output of nm in a C name address pair
10427 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10429 # This is the shared library runtime path variable.
10430 runpath_var=$runpath_var
10432 # This is the shared library path variable.
10433 shlibpath_var=$shlibpath_var
10435 # Is shlibpath searched before the hard-coded library search path?
10436 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10438 # How to hardcode a shared library path into an executable.
10439 hardcode_action=$hardcode_action
10441 # Whether we should hardcode library paths into libraries.
10442 hardcode_into_libs=$hardcode_into_libs
10444 # Flag to hardcode \$libdir into a binary during linking.
10445 # This must work even if \$libdir does not exist.
10446 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10448 # If ld is used when linking, flag to hardcode \$libdir into
10449 # a binary during linking. This must work even if \$libdir does
10450 # not exist.
10451 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10453 # Whether we need a single -rpath flag with a separated argument.
10454 hardcode_libdir_separator=$lt_hardcode_libdir_separator
10456 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10457 # resulting binary.
10458 hardcode_direct=$hardcode_direct
10460 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10461 # resulting binary.
10462 hardcode_minus_L=$hardcode_minus_L
10464 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10465 # the resulting binary.
10466 hardcode_shlibpath_var=$hardcode_shlibpath_var
10468 # Set to yes if building a shared library automatically hardcodes DIR into the library
10469 # and all subsequent libraries and executables linked against it.
10470 hardcode_automatic=$hardcode_automatic
10472 # Variables whose values should be saved in libtool wrapper scripts and
10473 # restored at relink time.
10474 variables_saved_for_relink="$variables_saved_for_relink"
10476 # Whether libtool must link a program against all its dependency libraries.
10477 link_all_deplibs=$link_all_deplibs
10479 # Compile-time system search path for libraries
10480 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10482 # Run-time system search path for libraries
10483 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10485 # Fix the shell variable \$srcfile for the compiler.
10486 fix_srcfile_path=$lt_fix_srcfile_path
10488 # Set to yes if exported symbols are required.
10489 always_export_symbols=$always_export_symbols
10491 # The commands to list exported symbols.
10492 export_symbols_cmds=$lt_export_symbols_cmds
10494 # The commands to extract the exported symbol list from a shared archive.
10495 extract_expsyms_cmds=$lt_extract_expsyms_cmds
10497 # Symbols that should not be listed in the preloaded symbols.
10498 exclude_expsyms=$lt_exclude_expsyms
10500 # Symbols that must always be exported.
10501 include_expsyms=$lt_include_expsyms
10503 # ### END LIBTOOL CONFIG
10505 __EOF__
10508 case $host_os in
10509 aix3*)
10510 cat <<\EOF >> "$cfgfile"
10512 # AIX sometimes has problems with the GCC collect2 program. For some
10513 # reason, if we set the COLLECT_NAMES environment variable, the problems
10514 # vanish in a puff of smoke.
10515 if test "X${COLLECT_NAMES+set}" != Xset; then
10516 COLLECT_NAMES=
10517 export COLLECT_NAMES
10521 esac
10523 # We use sed instead of cat because bash on DJGPP gets confused if
10524 # if finds mixed CR/LF and LF-only lines. Since sed operates in
10525 # text mode, it properly converts lines to CR/LF. This bash problem
10526 # is reportedly fixed, but why not run on old versions too?
10527 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10529 mv -f "$cfgfile" "$ofile" || \
10530 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10531 chmod +x "$ofile"
10533 else
10534 # If there is no Makefile yet, we rely on a make rule to execute
10535 # `config.status --recheck' to rerun these tests and create the
10536 # libtool script then.
10537 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10538 if test -f "$ltmain_in"; then
10539 test -f Makefile && make "$ltmain"
10544 ac_ext=c
10545 ac_cpp='$CPP $CPPFLAGS'
10546 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10547 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10548 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10550 CC="$lt_save_CC"
10553 # Check whether --with-tags was given.
10554 if test "${with_tags+set}" = set; then
10555 withval=$with_tags; tagnames="$withval"
10559 if test -f "$ltmain" && test -n "$tagnames"; then
10560 if test ! -f "${ofile}"; then
10561 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
10562 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
10565 if test -z "$LTCC"; then
10566 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
10567 if test -z "$LTCC"; then
10568 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10569 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
10570 else
10571 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
10572 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
10575 if test -z "$LTCFLAGS"; then
10576 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
10579 # Extract list of available tagged configurations in $ofile.
10580 # Note that this assumes the entire list is on one line.
10581 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10583 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10584 for tagname in $tagnames; do
10585 IFS="$lt_save_ifs"
10586 # Check whether tagname contains only valid characters
10587 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
10588 "") ;;
10589 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
10590 echo "$as_me: error: invalid tag name: $tagname" >&2;}
10591 { (exit 1); exit 1; }; }
10593 esac
10595 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
10596 then
10597 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
10598 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
10599 { (exit 1); exit 1; }; }
10602 # Update the list of available tags.
10603 if test -n "$tagname"; then
10604 echo appending configuration tag \"$tagname\" to $ofile
10606 case $tagname in
10607 CXX)
10608 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10609 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10610 (test "X$CXX" != "Xg++"))) ; then
10611 ac_ext=cpp
10612 ac_cpp='$CXXCPP $CPPFLAGS'
10613 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10614 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10615 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10620 archive_cmds_need_lc_CXX=no
10621 allow_undefined_flag_CXX=
10622 always_export_symbols_CXX=no
10623 archive_expsym_cmds_CXX=
10624 export_dynamic_flag_spec_CXX=
10625 hardcode_direct_CXX=no
10626 hardcode_libdir_flag_spec_CXX=
10627 hardcode_libdir_flag_spec_ld_CXX=
10628 hardcode_libdir_separator_CXX=
10629 hardcode_minus_L_CXX=no
10630 hardcode_shlibpath_var_CXX=unsupported
10631 hardcode_automatic_CXX=no
10632 module_cmds_CXX=
10633 module_expsym_cmds_CXX=
10634 link_all_deplibs_CXX=unknown
10635 old_archive_cmds_CXX=$old_archive_cmds
10636 no_undefined_flag_CXX=
10637 whole_archive_flag_spec_CXX=
10638 enable_shared_with_static_runtimes_CXX=no
10640 # Dependencies to place before and after the object being linked:
10641 predep_objects_CXX=
10642 postdep_objects_CXX=
10643 predeps_CXX=
10644 postdeps_CXX=
10645 compiler_lib_search_path_CXX=
10647 # Source file extension for C++ test sources.
10648 ac_ext=cpp
10650 # Object file extension for compiled C++ test sources.
10651 objext=o
10652 objext_CXX=$objext
10654 # Code to be used in simple compile tests
10655 lt_simple_compile_test_code="int some_variable = 0;"
10657 # Code to be used in simple link tests
10658 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
10660 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
10662 # If no C compiler was specified, use CC.
10663 LTCC=${LTCC-"$CC"}
10665 # If no C compiler flags were specified, use CFLAGS.
10666 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10668 # Allow CC to be a program name with arguments.
10669 compiler=$CC
10672 # save warnings/boilerplate of simple test code
10673 ac_outfile=conftest.$ac_objext
10674 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
10675 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10676 _lt_compiler_boilerplate=`cat conftest.err`
10677 $rm conftest*
10679 ac_outfile=conftest.$ac_objext
10680 echo "$lt_simple_link_test_code" >conftest.$ac_ext
10681 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10682 _lt_linker_boilerplate=`cat conftest.err`
10683 $rm conftest*
10686 # Allow CC to be a program name with arguments.
10687 lt_save_CC=$CC
10688 lt_save_LD=$LD
10689 lt_save_GCC=$GCC
10690 GCC=$GXX
10691 lt_save_with_gnu_ld=$with_gnu_ld
10692 lt_save_path_LD=$lt_cv_path_LD
10693 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
10694 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
10695 else
10696 $as_unset lt_cv_prog_gnu_ld
10698 if test -n "${lt_cv_path_LDCXX+set}"; then
10699 lt_cv_path_LD=$lt_cv_path_LDCXX
10700 else
10701 $as_unset lt_cv_path_LD
10703 test -z "${LDCXX+set}" || LD=$LDCXX
10704 CC=${CXX-"c++"}
10705 compiler=$CC
10706 compiler_CXX=$CC
10707 for cc_temp in $compiler""; do
10708 case $cc_temp in
10709 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10710 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10711 \-*) ;;
10712 *) break;;
10713 esac
10714 done
10715 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
10718 # We don't want -fno-exception wen compiling C++ code, so set the
10719 # no_builtin_flag separately
10720 if test "$GXX" = yes; then
10721 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
10722 else
10723 lt_prog_compiler_no_builtin_flag_CXX=
10726 if test "$GXX" = yes; then
10727 # Set up default GNU C++ configuration
10730 # Check whether --with-gnu-ld was given.
10731 if test "${with_gnu_ld+set}" = set; then
10732 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
10733 else
10734 with_gnu_ld=no
10737 ac_prog=ld
10738 if test "$GCC" = yes; then
10739 # Check if gcc -print-prog-name=ld gives a path.
10740 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
10741 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
10742 case $host in
10743 *-*-mingw*)
10744 # gcc leaves a trailing carriage return which upsets mingw
10745 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10747 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10748 esac
10749 case $ac_prog in
10750 # Accept absolute paths.
10751 [\\/]* | ?:[\\/]*)
10752 re_direlt='/[^/][^/]*/\.\./'
10753 # Canonicalize the pathname of ld
10754 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
10755 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10756 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
10757 done
10758 test -z "$LD" && LD="$ac_prog"
10761 # If it fails, then pretend we aren't using GCC.
10762 ac_prog=ld
10765 # If it is relative, then search for the first ld in PATH.
10766 with_gnu_ld=unknown
10768 esac
10769 elif test "$with_gnu_ld" = yes; then
10770 { echo "$as_me:$LINENO: checking for GNU ld" >&5
10771 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
10772 else
10773 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10774 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
10776 if test "${lt_cv_path_LD+set}" = set; then
10777 echo $ECHO_N "(cached) $ECHO_C" >&6
10778 else
10779 if test -z "$LD"; then
10780 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10781 for ac_dir in $PATH; do
10782 IFS="$lt_save_ifs"
10783 test -z "$ac_dir" && ac_dir=.
10784 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10785 lt_cv_path_LD="$ac_dir/$ac_prog"
10786 # Check to see if the program is GNU ld. I'd rather use --version,
10787 # but apparently some variants of GNU ld only accept -v.
10788 # Break only if it was the GNU/non-GNU ld that we prefer.
10789 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10790 *GNU* | *'with BFD'*)
10791 test "$with_gnu_ld" != no && break
10794 test "$with_gnu_ld" != yes && break
10796 esac
10798 done
10799 IFS="$lt_save_ifs"
10800 else
10801 lt_cv_path_LD="$LD" # Let the user override the test with a path.
10805 LD="$lt_cv_path_LD"
10806 if test -n "$LD"; then
10807 { echo "$as_me:$LINENO: result: $LD" >&5
10808 echo "${ECHO_T}$LD" >&6; }
10809 else
10810 { echo "$as_me:$LINENO: result: no" >&5
10811 echo "${ECHO_T}no" >&6; }
10813 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10814 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10815 { (exit 1); exit 1; }; }
10816 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10817 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
10818 if test "${lt_cv_prog_gnu_ld+set}" = set; then
10819 echo $ECHO_N "(cached) $ECHO_C" >&6
10820 else
10821 # I'd rather use --version here, but apparently some GNU lds only accept -v.
10822 case `$LD -v 2>&1 </dev/null` in
10823 *GNU* | *'with BFD'*)
10824 lt_cv_prog_gnu_ld=yes
10827 lt_cv_prog_gnu_ld=no
10829 esac
10831 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
10832 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
10833 with_gnu_ld=$lt_cv_prog_gnu_ld
10837 # Check if GNU C++ uses GNU ld as the underlying linker, since the
10838 # archiving commands below assume that GNU ld is being used.
10839 if test "$with_gnu_ld" = yes; then
10840 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10841 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'
10843 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10844 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10846 # If archive_cmds runs LD, not CC, wlarc should be empty
10847 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
10848 # investigate it a little bit more. (MM)
10849 wlarc='${wl}'
10851 # ancient GNU ld didn't support --whole-archive et. al.
10852 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
10853 grep 'no-whole-archive' > /dev/null; then
10854 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10855 else
10856 whole_archive_flag_spec_CXX=
10858 else
10859 with_gnu_ld=no
10860 wlarc=
10862 # A generic and very simple default shared library creation
10863 # command for GNU C++ for the case where it uses the native
10864 # linker, instead of GNU ld. If possible, this setting should
10865 # overridden to take advantage of the native linker features on
10866 # the platform it is being used on.
10867 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10870 # Commands to make compiler produce verbose output that lists
10871 # what "hidden" libraries, object files and flags are used when
10872 # linking a shared library.
10873 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10875 else
10876 GXX=no
10877 with_gnu_ld=no
10878 wlarc=
10881 # PORTME: fill in a description of your system's C++ link characteristics
10882 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10883 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
10884 ld_shlibs_CXX=yes
10885 case $host_os in
10886 aix3*)
10887 # FIXME: insert proper C++ library support
10888 ld_shlibs_CXX=no
10890 aix4* | aix5*)
10891 if test "$host_cpu" = ia64; then
10892 # On IA64, the linker does run time linking by default, so we don't
10893 # have to do anything special.
10894 aix_use_runtimelinking=no
10895 exp_sym_flag='-Bexport'
10896 no_entry_flag=""
10897 else
10898 aix_use_runtimelinking=no
10900 # Test if we are trying to use run time linking or normal
10901 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10902 # need to do runtime linking.
10903 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
10904 for ld_flag in $LDFLAGS; do
10905 case $ld_flag in
10906 *-brtl*)
10907 aix_use_runtimelinking=yes
10908 break
10910 esac
10911 done
10913 esac
10915 exp_sym_flag='-bexport'
10916 no_entry_flag='-bnoentry'
10919 # When large executables or shared objects are built, AIX ld can
10920 # have problems creating the table of contents. If linking a library
10921 # or program results in "error TOC overflow" add -mminimal-toc to
10922 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10923 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10925 archive_cmds_CXX=''
10926 hardcode_direct_CXX=yes
10927 hardcode_libdir_separator_CXX=':'
10928 link_all_deplibs_CXX=yes
10930 if test "$GXX" = yes; then
10931 case $host_os in aix4.[012]|aix4.[012].*)
10932 # We only want to do this on AIX 4.2 and lower, the check
10933 # below for broken collect2 doesn't work under 4.3+
10934 collect2name=`${CC} -print-prog-name=collect2`
10935 if test -f "$collect2name" && \
10936 strings "$collect2name" | grep resolve_lib_name >/dev/null
10937 then
10938 # We have reworked collect2
10940 else
10941 # We have old collect2
10942 hardcode_direct_CXX=unsupported
10943 # It fails to find uninstalled libraries when the uninstalled
10944 # path is not listed in the libpath. Setting hardcode_minus_L
10945 # to unsupported forces relinking
10946 hardcode_minus_L_CXX=yes
10947 hardcode_libdir_flag_spec_CXX='-L$libdir'
10948 hardcode_libdir_separator_CXX=
10951 esac
10952 shared_flag='-shared'
10953 if test "$aix_use_runtimelinking" = yes; then
10954 shared_flag="$shared_flag "'${wl}-G'
10956 else
10957 # not using gcc
10958 if test "$host_cpu" = ia64; then
10959 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10960 # chokes on -Wl,-G. The following line is correct:
10961 shared_flag='-G'
10962 else
10963 if test "$aix_use_runtimelinking" = yes; then
10964 shared_flag='${wl}-G'
10965 else
10966 shared_flag='${wl}-bM:SRE'
10971 # It seems that -bexpall does not export symbols beginning with
10972 # underscore (_), so it is better to generate a list of symbols to export.
10973 always_export_symbols_CXX=yes
10974 if test "$aix_use_runtimelinking" = yes; then
10975 # Warning - without using the other runtime loading flags (-brtl),
10976 # -berok will link without error, but may produce a broken library.
10977 allow_undefined_flag_CXX='-berok'
10978 # Determine the default libpath from the value encoded in an empty executable.
10979 cat >conftest.$ac_ext <<_ACEOF
10980 /* confdefs.h. */
10981 _ACEOF
10982 cat confdefs.h >>conftest.$ac_ext
10983 cat >>conftest.$ac_ext <<_ACEOF
10984 /* end confdefs.h. */
10987 main ()
10991 return 0;
10993 _ACEOF
10994 rm -f conftest.$ac_objext conftest$ac_exeext
10995 if { (ac_try="$ac_link"
10996 case "(($ac_try" in
10997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10998 *) ac_try_echo=$ac_try;;
10999 esac
11000 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11001 (eval "$ac_link") 2>conftest.er1
11002 ac_status=$?
11003 grep -v '^ *+' conftest.er1 >conftest.err
11004 rm -f conftest.er1
11005 cat conftest.err >&5
11006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11007 (exit $ac_status); } && {
11008 test -z "$ac_cxx_werror_flag" ||
11009 test ! -s conftest.err
11010 } && test -s conftest$ac_exeext &&
11011 $as_test_x conftest$ac_exeext; then
11013 lt_aix_libpath_sed='
11014 /Import File Strings/,/^$/ {
11015 /^0/ {
11016 s/^0 *\(.*\)$/\1/
11020 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11021 # Check for a 64-bit object if we didn't find anything.
11022 if test -z "$aix_libpath"; then
11023 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11025 else
11026 echo "$as_me: failed program was:" >&5
11027 sed 's/^/| /' conftest.$ac_ext >&5
11032 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11033 conftest$ac_exeext conftest.$ac_ext
11034 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11036 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11038 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"
11039 else
11040 if test "$host_cpu" = ia64; then
11041 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11042 allow_undefined_flag_CXX="-z nodefs"
11043 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"
11044 else
11045 # Determine the default libpath from the value encoded in an empty executable.
11046 cat >conftest.$ac_ext <<_ACEOF
11047 /* confdefs.h. */
11048 _ACEOF
11049 cat confdefs.h >>conftest.$ac_ext
11050 cat >>conftest.$ac_ext <<_ACEOF
11051 /* end confdefs.h. */
11054 main ()
11058 return 0;
11060 _ACEOF
11061 rm -f conftest.$ac_objext conftest$ac_exeext
11062 if { (ac_try="$ac_link"
11063 case "(($ac_try" in
11064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11065 *) ac_try_echo=$ac_try;;
11066 esac
11067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11068 (eval "$ac_link") 2>conftest.er1
11069 ac_status=$?
11070 grep -v '^ *+' conftest.er1 >conftest.err
11071 rm -f conftest.er1
11072 cat conftest.err >&5
11073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11074 (exit $ac_status); } && {
11075 test -z "$ac_cxx_werror_flag" ||
11076 test ! -s conftest.err
11077 } && test -s conftest$ac_exeext &&
11078 $as_test_x conftest$ac_exeext; then
11080 lt_aix_libpath_sed='
11081 /Import File Strings/,/^$/ {
11082 /^0/ {
11083 s/^0 *\(.*\)$/\1/
11087 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11088 # Check for a 64-bit object if we didn't find anything.
11089 if test -z "$aix_libpath"; then
11090 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11092 else
11093 echo "$as_me: failed program was:" >&5
11094 sed 's/^/| /' conftest.$ac_ext >&5
11099 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11100 conftest$ac_exeext conftest.$ac_ext
11101 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11103 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11104 # Warning - without using the other run time loading flags,
11105 # -berok will link without error, but may produce a broken library.
11106 no_undefined_flag_CXX=' ${wl}-bernotok'
11107 allow_undefined_flag_CXX=' ${wl}-berok'
11108 # Exported symbols can be pulled into shared objects from archives
11109 whole_archive_flag_spec_CXX='$convenience'
11110 archive_cmds_need_lc_CXX=yes
11111 # This is similar to how AIX traditionally builds its shared libraries.
11112 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'
11117 beos*)
11118 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11119 allow_undefined_flag_CXX=unsupported
11120 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11121 # support --undefined. This deserves some investigation. FIXME
11122 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11123 else
11124 ld_shlibs_CXX=no
11128 chorus*)
11129 case $cc_basename in
11131 # FIXME: insert proper C++ library support
11132 ld_shlibs_CXX=no
11134 esac
11137 cygwin* | mingw* | pw32*)
11138 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11139 # as there is no search path for DLLs.
11140 hardcode_libdir_flag_spec_CXX='-L$libdir'
11141 allow_undefined_flag_CXX=unsupported
11142 always_export_symbols_CXX=no
11143 enable_shared_with_static_runtimes_CXX=yes
11145 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11146 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'
11147 # If the export-symbols file already is a .def file (1st line
11148 # is EXPORTS), use it as is; otherwise, prepend...
11149 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11150 cp $export_symbols $output_objdir/$soname.def;
11151 else
11152 echo EXPORTS > $output_objdir/$soname.def;
11153 cat $export_symbols >> $output_objdir/$soname.def;
11155 $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'
11156 else
11157 ld_shlibs_CXX=no
11160 darwin* | rhapsody*)
11161 case $host_os in
11162 rhapsody* | darwin1.[012])
11163 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
11165 *) # Darwin 1.3 on
11166 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
11167 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11168 else
11169 case ${MACOSX_DEPLOYMENT_TARGET} in
11170 10.[012])
11171 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11173 10.*)
11174 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
11176 esac
11179 esac
11180 archive_cmds_need_lc_CXX=no
11181 hardcode_direct_CXX=no
11182 hardcode_automatic_CXX=yes
11183 hardcode_shlibpath_var_CXX=unsupported
11184 whole_archive_flag_spec_CXX=''
11185 link_all_deplibs_CXX=yes
11187 if test "$GXX" = yes ; then
11188 lt_int_apple_cc_single_mod=no
11189 output_verbose_link_cmd='echo'
11190 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
11191 lt_int_apple_cc_single_mod=yes
11193 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11194 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
11195 else
11196 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'
11198 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11199 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11200 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11201 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11202 else
11203 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11205 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}'
11206 else
11207 case $cc_basename in
11208 xlc*)
11209 output_verbose_link_cmd='echo'
11210 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'
11211 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11212 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11213 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}'
11214 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}'
11217 ld_shlibs_CXX=no
11219 esac
11223 dgux*)
11224 case $cc_basename in
11225 ec++*)
11226 # FIXME: insert proper C++ library support
11227 ld_shlibs_CXX=no
11229 ghcx*)
11230 # Green Hills C++ Compiler
11231 # FIXME: insert proper C++ library support
11232 ld_shlibs_CXX=no
11235 # FIXME: insert proper C++ library support
11236 ld_shlibs_CXX=no
11238 esac
11240 freebsd[12]*)
11241 # C++ shared libraries reported to be fairly broken before switch to ELF
11242 ld_shlibs_CXX=no
11244 freebsd-elf*)
11245 archive_cmds_need_lc_CXX=no
11247 freebsd* | dragonfly*)
11248 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11249 # conventions
11250 ld_shlibs_CXX=yes
11252 gnu*)
11254 hpux9*)
11255 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11256 hardcode_libdir_separator_CXX=:
11257 export_dynamic_flag_spec_CXX='${wl}-E'
11258 hardcode_direct_CXX=yes
11259 hardcode_minus_L_CXX=yes # Not in the search PATH,
11260 # but as the default
11261 # location of the library.
11263 case $cc_basename in
11264 CC*)
11265 # FIXME: insert proper C++ library support
11266 ld_shlibs_CXX=no
11268 aCC*)
11269 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'
11270 # Commands to make compiler produce verbose output that lists
11271 # what "hidden" libraries, object files and flags are used when
11272 # linking a shared library.
11274 # There doesn't appear to be a way to prevent this compiler from
11275 # explicitly linking system object files so we need to strip them
11276 # from the output so that they don't get included in the library
11277 # dependencies.
11278 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'
11281 if test "$GXX" = yes; then
11282 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'
11283 else
11284 # FIXME: insert proper C++ library support
11285 ld_shlibs_CXX=no
11288 esac
11290 hpux10*|hpux11*)
11291 if test $with_gnu_ld = no; then
11292 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11293 hardcode_libdir_separator_CXX=:
11295 case $host_cpu in
11296 hppa*64*|ia64*) ;;
11298 export_dynamic_flag_spec_CXX='${wl}-E'
11300 esac
11302 case $host_cpu in
11303 hppa*64*|ia64*)
11304 hardcode_direct_CXX=no
11305 hardcode_shlibpath_var_CXX=no
11308 hardcode_direct_CXX=yes
11309 hardcode_minus_L_CXX=yes # Not in the search PATH,
11310 # but as the default
11311 # location of the library.
11313 esac
11315 case $cc_basename in
11316 CC*)
11317 # FIXME: insert proper C++ library support
11318 ld_shlibs_CXX=no
11320 aCC*)
11321 case $host_cpu in
11322 hppa*64*)
11323 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11325 ia64*)
11326 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11329 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11331 esac
11332 # Commands to make compiler produce verbose output that lists
11333 # what "hidden" libraries, object files and flags are used when
11334 # linking a shared library.
11336 # There doesn't appear to be a way to prevent this compiler from
11337 # explicitly linking system object files so we need to strip them
11338 # from the output so that they don't get included in the library
11339 # dependencies.
11340 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'
11343 if test "$GXX" = yes; then
11344 if test $with_gnu_ld = no; then
11345 case $host_cpu in
11346 hppa*64*)
11347 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11349 ia64*)
11350 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11353 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'
11355 esac
11357 else
11358 # FIXME: insert proper C++ library support
11359 ld_shlibs_CXX=no
11362 esac
11364 interix[3-9]*)
11365 hardcode_direct_CXX=no
11366 hardcode_shlibpath_var_CXX=no
11367 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11368 export_dynamic_flag_spec_CXX='${wl}-E'
11369 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11370 # Instead, shared libraries are loaded at an image base (0x10000000 by
11371 # default) and relocated if they conflict, which is a slow very memory
11372 # consuming and fragmenting process. To avoid this, we pick a random,
11373 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11374 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
11375 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'
11376 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'
11378 irix5* | irix6*)
11379 case $cc_basename in
11380 CC*)
11381 # SGI C++
11382 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'
11384 # Archives containing C++ object files must be created using
11385 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
11386 # necessary to make sure instantiated templates are included
11387 # in the archive.
11388 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11391 if test "$GXX" = yes; then
11392 if test "$with_gnu_ld" = no; then
11393 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'
11394 else
11395 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'
11398 link_all_deplibs_CXX=yes
11400 esac
11401 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11402 hardcode_libdir_separator_CXX=:
11404 linux* | k*bsd*-gnu)
11405 case $cc_basename in
11406 KCC*)
11407 # Kuck and Associates, Inc. (KAI) C++ Compiler
11409 # KCC will only create a shared library if the output file
11410 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11411 # to its proper name (with version) after linking.
11412 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'
11413 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'
11414 # Commands to make compiler produce verbose output that lists
11415 # what "hidden" libraries, object files and flags are used when
11416 # linking a shared library.
11418 # There doesn't appear to be a way to prevent this compiler from
11419 # explicitly linking system object files so we need to strip them
11420 # from the output so that they don't get included in the library
11421 # dependencies.
11422 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'
11424 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
11425 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11427 # Archives containing C++ object files must be created using
11428 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11429 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11431 icpc*)
11432 # Intel C++
11433 with_gnu_ld=yes
11434 # version 8.0 and above of icpc choke on multiply defined symbols
11435 # if we add $predep_objects and $postdep_objects, however 7.1 and
11436 # earlier do not add the objects themselves.
11437 case `$CC -V 2>&1` in
11438 *"Version 7."*)
11439 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11440 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'
11442 *) # Version 8.0 or newer
11443 tmp_idyn=
11444 case $host_cpu in
11445 ia64*) tmp_idyn=' -i_dynamic';;
11446 esac
11447 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11448 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'
11450 esac
11451 archive_cmds_need_lc_CXX=no
11452 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11453 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11454 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11456 pgCC*)
11457 # Portland Group C++ compiler
11458 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
11459 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'
11461 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11462 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11463 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'
11465 cxx*)
11466 # Compaq C++
11467 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11468 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'
11470 runpath_var=LD_RUN_PATH
11471 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11472 hardcode_libdir_separator_CXX=:
11474 # Commands to make compiler produce verbose output that lists
11475 # what "hidden" libraries, object files and flags are used when
11476 # linking a shared library.
11478 # There doesn't appear to be a way to prevent this compiler from
11479 # explicitly linking system object files so we need to strip them
11480 # from the output so that they don't get included in the library
11481 # dependencies.
11482 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'
11485 case `$CC -V 2>&1 | sed 5q` in
11486 *Sun\ C*)
11487 # Sun C++ 5.9
11488 no_undefined_flag_CXX=' -zdefs'
11489 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11490 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'
11491 hardcode_libdir_flag_spec_CXX='-R$libdir'
11492 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'
11494 # Not sure whether something based on
11495 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
11496 # would be better.
11497 output_verbose_link_cmd='echo'
11499 # Archives containing C++ object files must be created using
11500 # "CC -xar", where "CC" is the Sun C++ compiler. This is
11501 # necessary to make sure instantiated templates are included
11502 # in the archive.
11503 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11505 esac
11507 esac
11509 lynxos*)
11510 # FIXME: insert proper C++ library support
11511 ld_shlibs_CXX=no
11513 m88k*)
11514 # FIXME: insert proper C++ library support
11515 ld_shlibs_CXX=no
11517 mvs*)
11518 case $cc_basename in
11519 cxx*)
11520 # FIXME: insert proper C++ library support
11521 ld_shlibs_CXX=no
11524 # FIXME: insert proper C++ library support
11525 ld_shlibs_CXX=no
11527 esac
11529 netbsd* | netbsdelf*-gnu)
11530 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11531 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
11532 wlarc=
11533 hardcode_libdir_flag_spec_CXX='-R$libdir'
11534 hardcode_direct_CXX=yes
11535 hardcode_shlibpath_var_CXX=no
11537 # Workaround some broken pre-1.5 toolchains
11538 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
11540 openbsd2*)
11541 # C++ shared libraries are fairly broken
11542 ld_shlibs_CXX=no
11544 openbsd*)
11545 if test -f /usr/libexec/ld.so; then
11546 hardcode_direct_CXX=yes
11547 hardcode_shlibpath_var_CXX=no
11548 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11549 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11550 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11551 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
11552 export_dynamic_flag_spec_CXX='${wl}-E'
11553 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11555 output_verbose_link_cmd='echo'
11556 else
11557 ld_shlibs_CXX=no
11560 osf3*)
11561 case $cc_basename in
11562 KCC*)
11563 # Kuck and Associates, Inc. (KAI) C++ Compiler
11565 # KCC will only create a shared library if the output file
11566 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11567 # to its proper name (with version) after linking.
11568 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'
11570 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11571 hardcode_libdir_separator_CXX=:
11573 # Archives containing C++ object files must be created using
11574 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11575 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11578 RCC*)
11579 # Rational C++ 2.4.1
11580 # FIXME: insert proper C++ library support
11581 ld_shlibs_CXX=no
11583 cxx*)
11584 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11585 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'
11587 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11588 hardcode_libdir_separator_CXX=:
11590 # Commands to make compiler produce verbose output that lists
11591 # what "hidden" libraries, object files and flags are used when
11592 # linking a shared library.
11594 # There doesn't appear to be a way to prevent this compiler from
11595 # explicitly linking system object files so we need to strip them
11596 # from the output so that they don't get included in the library
11597 # dependencies.
11598 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'
11601 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11602 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11603 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'
11605 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11606 hardcode_libdir_separator_CXX=:
11608 # Commands to make compiler produce verbose output that lists
11609 # what "hidden" libraries, object files and flags are used when
11610 # linking a shared library.
11611 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11613 else
11614 # FIXME: insert proper C++ library support
11615 ld_shlibs_CXX=no
11618 esac
11620 osf4* | osf5*)
11621 case $cc_basename in
11622 KCC*)
11623 # Kuck and Associates, Inc. (KAI) C++ Compiler
11625 # KCC will only create a shared library if the output file
11626 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11627 # to its proper name (with version) after linking.
11628 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'
11630 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11631 hardcode_libdir_separator_CXX=:
11633 # Archives containing C++ object files must be created using
11634 # the KAI C++ compiler.
11635 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
11637 RCC*)
11638 # Rational C++ 2.4.1
11639 # FIXME: insert proper C++ library support
11640 ld_shlibs_CXX=no
11642 cxx*)
11643 allow_undefined_flag_CXX=' -expect_unresolved \*'
11644 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'
11645 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
11646 echo "-hidden">> $lib.exp~
11647 $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~
11648 $rm $lib.exp'
11650 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11651 hardcode_libdir_separator_CXX=:
11653 # Commands to make compiler produce verbose output that lists
11654 # what "hidden" libraries, object files and flags are used when
11655 # linking a shared library.
11657 # There doesn't appear to be a way to prevent this compiler from
11658 # explicitly linking system object files so we need to strip them
11659 # from the output so that they don't get included in the library
11660 # dependencies.
11661 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'
11664 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11665 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11666 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'
11668 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11669 hardcode_libdir_separator_CXX=:
11671 # Commands to make compiler produce verbose output that lists
11672 # what "hidden" libraries, object files and flags are used when
11673 # linking a shared library.
11674 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11676 else
11677 # FIXME: insert proper C++ library support
11678 ld_shlibs_CXX=no
11681 esac
11683 psos*)
11684 # FIXME: insert proper C++ library support
11685 ld_shlibs_CXX=no
11687 sunos4*)
11688 case $cc_basename in
11689 CC*)
11690 # Sun C++ 4.x
11691 # FIXME: insert proper C++ library support
11692 ld_shlibs_CXX=no
11694 lcc*)
11695 # Lucid
11696 # FIXME: insert proper C++ library support
11697 ld_shlibs_CXX=no
11700 # FIXME: insert proper C++ library support
11701 ld_shlibs_CXX=no
11703 esac
11705 solaris*)
11706 case $cc_basename in
11707 CC*)
11708 # Sun C++ 4.2, 5.x and Centerline C++
11709 archive_cmds_need_lc_CXX=yes
11710 no_undefined_flag_CXX=' -zdefs'
11711 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11712 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11713 $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'
11715 hardcode_libdir_flag_spec_CXX='-R$libdir'
11716 hardcode_shlibpath_var_CXX=no
11717 case $host_os in
11718 solaris2.[0-5] | solaris2.[0-5].*) ;;
11720 # The compiler driver will combine and reorder linker options,
11721 # but understands `-z linker_flag'.
11722 # Supported since Solaris 2.6 (maybe 2.5.1?)
11723 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
11725 esac
11726 link_all_deplibs_CXX=yes
11728 output_verbose_link_cmd='echo'
11730 # Archives containing C++ object files must be created using
11731 # "CC -xar", where "CC" is the Sun C++ compiler. This is
11732 # necessary to make sure instantiated templates are included
11733 # in the archive.
11734 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11736 gcx*)
11737 # Green Hills C++ Compiler
11738 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11740 # The C++ compiler must be used to create the archive.
11741 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
11744 # GNU C++ compiler with Solaris linker
11745 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11746 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
11747 if $CC --version | grep -v '^2\.7' > /dev/null; then
11748 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11749 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11750 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11752 # Commands to make compiler produce verbose output that lists
11753 # what "hidden" libraries, object files and flags are used when
11754 # linking a shared library.
11755 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11756 else
11757 # g++ 2.7 appears to require `-G' NOT `-shared' on this
11758 # platform.
11759 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11760 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11761 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11763 # Commands to make compiler produce verbose output that lists
11764 # what "hidden" libraries, object files and flags are used when
11765 # linking a shared library.
11766 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11769 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
11770 case $host_os in
11771 solaris2.[0-5] | solaris2.[0-5].*) ;;
11773 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
11775 esac
11778 esac
11780 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11781 no_undefined_flag_CXX='${wl}-z,text'
11782 archive_cmds_need_lc_CXX=no
11783 hardcode_shlibpath_var_CXX=no
11784 runpath_var='LD_RUN_PATH'
11786 case $cc_basename in
11787 CC*)
11788 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11789 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11792 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11793 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11795 esac
11797 sysv5* | sco3.2v5* | sco5v6*)
11798 # Note: We can NOT use -z defs as we might desire, because we do not
11799 # link with -lc, and that would cause any symbols used from libc to
11800 # always be unresolved, which means just about no library would
11801 # ever link correctly. If we're not using GNU ld we use -z text
11802 # though, which does catch some bad symbols but isn't as heavy-handed
11803 # as -z defs.
11804 # For security reasons, it is highly recommended that you always
11805 # use absolute paths for naming shared libraries, and exclude the
11806 # DT_RUNPATH tag from executables and libraries. But doing so
11807 # requires that you compile everything twice, which is a pain.
11808 # So that behaviour is only enabled if SCOABSPATH is set to a
11809 # non-empty value in the environment. Most likely only useful for
11810 # creating official distributions of packages.
11811 # This is a hack until libtool officially supports absolute path
11812 # names for shared libraries.
11813 no_undefined_flag_CXX='${wl}-z,text'
11814 allow_undefined_flag_CXX='${wl}-z,nodefs'
11815 archive_cmds_need_lc_CXX=no
11816 hardcode_shlibpath_var_CXX=no
11817 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
11818 hardcode_libdir_separator_CXX=':'
11819 link_all_deplibs_CXX=yes
11820 export_dynamic_flag_spec_CXX='${wl}-Bexport'
11821 runpath_var='LD_RUN_PATH'
11823 case $cc_basename in
11824 CC*)
11825 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11826 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11829 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11830 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11832 esac
11834 tandem*)
11835 case $cc_basename in
11836 NCC*)
11837 # NonStop-UX NCC 3.20
11838 # FIXME: insert proper C++ library support
11839 ld_shlibs_CXX=no
11842 # FIXME: insert proper C++ library support
11843 ld_shlibs_CXX=no
11845 esac
11847 vxworks*)
11848 # FIXME: insert proper C++ library support
11849 ld_shlibs_CXX=no
11852 # FIXME: insert proper C++ library support
11853 ld_shlibs_CXX=no
11855 esac
11856 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11857 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
11858 test "$ld_shlibs_CXX" = no && can_build_shared=no
11860 GCC_CXX="$GXX"
11861 LD_CXX="$LD"
11864 cat > conftest.$ac_ext <<EOF
11865 class Foo
11867 public:
11868 Foo (void) { a = 0; }
11869 private:
11870 int a;
11874 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11875 (eval $ac_compile) 2>&5
11876 ac_status=$?
11877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11878 (exit $ac_status); }; then
11879 # Parse the compiler output and extract the necessary
11880 # objects, libraries and library flags.
11882 # Sentinel used to keep track of whether or not we are before
11883 # the conftest object file.
11884 pre_test_object_deps_done=no
11886 # The `*' in the case matches for architectures that use `case' in
11887 # $output_verbose_cmd can trigger glob expansion during the loop
11888 # eval without this substitution.
11889 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
11891 for p in `eval $output_verbose_link_cmd`; do
11892 case $p in
11894 -L* | -R* | -l*)
11895 # Some compilers place space between "-{L,R}" and the path.
11896 # Remove the space.
11897 if test $p = "-L" \
11898 || test $p = "-R"; then
11899 prev=$p
11900 continue
11901 else
11902 prev=
11905 if test "$pre_test_object_deps_done" = no; then
11906 case $p in
11907 -L* | -R*)
11908 # Internal compiler library paths should come after those
11909 # provided the user. The postdeps already come after the
11910 # user supplied libs so there is no need to process them.
11911 if test -z "$compiler_lib_search_path_CXX"; then
11912 compiler_lib_search_path_CXX="${prev}${p}"
11913 else
11914 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
11917 # The "-l" case would never come before the object being
11918 # linked, so don't bother handling this case.
11919 esac
11920 else
11921 if test -z "$postdeps_CXX"; then
11922 postdeps_CXX="${prev}${p}"
11923 else
11924 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
11929 *.$objext)
11930 # This assumes that the test object file only shows up
11931 # once in the compiler output.
11932 if test "$p" = "conftest.$objext"; then
11933 pre_test_object_deps_done=yes
11934 continue
11937 if test "$pre_test_object_deps_done" = no; then
11938 if test -z "$predep_objects_CXX"; then
11939 predep_objects_CXX="$p"
11940 else
11941 predep_objects_CXX="$predep_objects_CXX $p"
11943 else
11944 if test -z "$postdep_objects_CXX"; then
11945 postdep_objects_CXX="$p"
11946 else
11947 postdep_objects_CXX="$postdep_objects_CXX $p"
11952 *) ;; # Ignore the rest.
11954 esac
11955 done
11957 # Clean up.
11958 rm -f a.out a.exe
11959 else
11960 echo "libtool.m4: error: problem compiling CXX test program"
11963 $rm -f confest.$objext
11965 # PORTME: override above test on systems where it is broken
11966 case $host_os in
11967 interix[3-9]*)
11968 # Interix 3.5 installs completely hosed .la files for C++, so rather than
11969 # hack all around it, let's just trust "g++" to DTRT.
11970 predep_objects_CXX=
11971 postdep_objects_CXX=
11972 postdeps_CXX=
11975 linux*)
11976 case `$CC -V 2>&1 | sed 5q` in
11977 *Sun\ C*)
11978 # Sun C++ 5.9
11980 # The more standards-conforming stlport4 library is
11981 # incompatible with the Cstd library. Avoid specifying
11982 # it if it's in CXXFLAGS. Ignore libCrun as
11983 # -library=stlport4 depends on it.
11984 case " $CXX $CXXFLAGS " in
11985 *" -library=stlport4 "*)
11986 solaris_use_stlport4=yes
11988 esac
11989 if test "$solaris_use_stlport4" != yes; then
11990 postdeps_CXX='-library=Cstd -library=Crun'
11993 esac
11996 solaris*)
11997 case $cc_basename in
11998 CC*)
11999 # The more standards-conforming stlport4 library is
12000 # incompatible with the Cstd library. Avoid specifying
12001 # it if it's in CXXFLAGS. Ignore libCrun as
12002 # -library=stlport4 depends on it.
12003 case " $CXX $CXXFLAGS " in
12004 *" -library=stlport4 "*)
12005 solaris_use_stlport4=yes
12007 esac
12009 # Adding this requires a known-good setup of shared libraries for
12010 # Sun compiler versions before 5.6, else PIC objects from an old
12011 # archive will be linked into the output, leading to subtle bugs.
12012 if test "$solaris_use_stlport4" != yes; then
12013 postdeps_CXX='-library=Cstd -library=Crun'
12016 esac
12018 esac
12021 case " $postdeps_CXX " in
12022 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
12023 esac
12025 lt_prog_compiler_wl_CXX=
12026 lt_prog_compiler_pic_CXX=
12027 lt_prog_compiler_static_CXX=
12029 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12030 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
12032 # C++ specific cases for pic, static, wl, etc.
12033 if test "$GXX" = yes; then
12034 lt_prog_compiler_wl_CXX='-Wl,'
12035 lt_prog_compiler_static_CXX='-static'
12037 case $host_os in
12038 aix*)
12039 # All AIX code is PIC.
12040 if test "$host_cpu" = ia64; then
12041 # AIX 5 now supports IA64 processor
12042 lt_prog_compiler_static_CXX='-Bstatic'
12045 amigaos*)
12046 # FIXME: we need at least 68020 code to build shared libraries, but
12047 # adding the `-m68020' flag to GCC prevents building anything better,
12048 # like `-m68040'.
12049 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12051 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12052 # PIC is the default for these OSes.
12054 mingw* | cygwin* | os2* | pw32*)
12055 # This hack is so that the source file can tell whether it is being
12056 # built for inclusion in a dll (and should export symbols for example).
12057 # Although the cygwin gcc ignores -fPIC, still need this for old-style
12058 # (--disable-auto-import) libraries
12059 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12061 darwin* | rhapsody*)
12062 # PIC is the default on this platform
12063 # Common symbols not allowed in MH_DYLIB files
12064 lt_prog_compiler_pic_CXX='-fno-common'
12066 *djgpp*)
12067 # DJGPP does not support shared libraries at all
12068 lt_prog_compiler_pic_CXX=
12070 interix[3-9]*)
12071 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12072 # Instead, we relocate shared libraries at runtime.
12074 sysv4*MP*)
12075 if test -d /usr/nec; then
12076 lt_prog_compiler_pic_CXX=-Kconform_pic
12079 hpux*)
12080 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12081 # not for PA HP-UX.
12082 case $host_cpu in
12083 hppa*64*|ia64*)
12086 lt_prog_compiler_pic_CXX='-fPIC'
12088 esac
12091 lt_prog_compiler_pic_CXX='-fPIC'
12093 esac
12094 else
12095 case $host_os in
12096 aix4* | aix5*)
12097 # All AIX code is PIC.
12098 if test "$host_cpu" = ia64; then
12099 # AIX 5 now supports IA64 processor
12100 lt_prog_compiler_static_CXX='-Bstatic'
12101 else
12102 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12105 chorus*)
12106 case $cc_basename in
12107 cxch68*)
12108 # Green Hills C++ Compiler
12109 # _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"
12111 esac
12113 darwin*)
12114 # PIC is the default on this platform
12115 # Common symbols not allowed in MH_DYLIB files
12116 case $cc_basename in
12117 xlc*)
12118 lt_prog_compiler_pic_CXX='-qnocommon'
12119 lt_prog_compiler_wl_CXX='-Wl,'
12121 esac
12123 dgux*)
12124 case $cc_basename in
12125 ec++*)
12126 lt_prog_compiler_pic_CXX='-KPIC'
12128 ghcx*)
12129 # Green Hills C++ Compiler
12130 lt_prog_compiler_pic_CXX='-pic'
12134 esac
12136 freebsd* | dragonfly*)
12137 # FreeBSD uses GNU C++
12139 hpux9* | hpux10* | hpux11*)
12140 case $cc_basename in
12141 CC*)
12142 lt_prog_compiler_wl_CXX='-Wl,'
12143 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12144 if test "$host_cpu" != ia64; then
12145 lt_prog_compiler_pic_CXX='+Z'
12148 aCC*)
12149 lt_prog_compiler_wl_CXX='-Wl,'
12150 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12151 case $host_cpu in
12152 hppa*64*|ia64*)
12153 # +Z the default
12156 lt_prog_compiler_pic_CXX='+Z'
12158 esac
12162 esac
12164 interix*)
12165 # This is c89, which is MS Visual C++ (no shared libs)
12166 # Anyone wants to do a port?
12168 irix5* | irix6* | nonstopux*)
12169 case $cc_basename in
12170 CC*)
12171 lt_prog_compiler_wl_CXX='-Wl,'
12172 lt_prog_compiler_static_CXX='-non_shared'
12173 # CC pic flag -KPIC is the default.
12177 esac
12179 linux* | k*bsd*-gnu)
12180 case $cc_basename in
12181 KCC*)
12182 # KAI C++ Compiler
12183 lt_prog_compiler_wl_CXX='--backend -Wl,'
12184 lt_prog_compiler_pic_CXX='-fPIC'
12186 icpc* | ecpc*)
12187 # Intel C++
12188 lt_prog_compiler_wl_CXX='-Wl,'
12189 lt_prog_compiler_pic_CXX='-KPIC'
12190 lt_prog_compiler_static_CXX='-static'
12192 pgCC*)
12193 # Portland Group C++ compiler.
12194 lt_prog_compiler_wl_CXX='-Wl,'
12195 lt_prog_compiler_pic_CXX='-fpic'
12196 lt_prog_compiler_static_CXX='-Bstatic'
12198 cxx*)
12199 # Compaq C++
12200 # Make sure the PIC flag is empty. It appears that all Alpha
12201 # Linux and Compaq Tru64 Unix objects are PIC.
12202 lt_prog_compiler_pic_CXX=
12203 lt_prog_compiler_static_CXX='-non_shared'
12206 case `$CC -V 2>&1 | sed 5q` in
12207 *Sun\ C*)
12208 # Sun C++ 5.9
12209 lt_prog_compiler_pic_CXX='-KPIC'
12210 lt_prog_compiler_static_CXX='-Bstatic'
12211 lt_prog_compiler_wl_CXX='-Qoption ld '
12213 esac
12215 esac
12217 lynxos*)
12219 m88k*)
12221 mvs*)
12222 case $cc_basename in
12223 cxx*)
12224 lt_prog_compiler_pic_CXX='-W c,exportall'
12228 esac
12230 netbsd* | netbsdelf*-gnu)
12232 osf3* | osf4* | osf5*)
12233 case $cc_basename in
12234 KCC*)
12235 lt_prog_compiler_wl_CXX='--backend -Wl,'
12237 RCC*)
12238 # Rational C++ 2.4.1
12239 lt_prog_compiler_pic_CXX='-pic'
12241 cxx*)
12242 # Digital/Compaq C++
12243 lt_prog_compiler_wl_CXX='-Wl,'
12244 # Make sure the PIC flag is empty. It appears that all Alpha
12245 # Linux and Compaq Tru64 Unix objects are PIC.
12246 lt_prog_compiler_pic_CXX=
12247 lt_prog_compiler_static_CXX='-non_shared'
12251 esac
12253 psos*)
12255 solaris*)
12256 case $cc_basename in
12257 CC*)
12258 # Sun C++ 4.2, 5.x and Centerline C++
12259 lt_prog_compiler_pic_CXX='-KPIC'
12260 lt_prog_compiler_static_CXX='-Bstatic'
12261 lt_prog_compiler_wl_CXX='-Qoption ld '
12263 gcx*)
12264 # Green Hills C++ Compiler
12265 lt_prog_compiler_pic_CXX='-PIC'
12269 esac
12271 sunos4*)
12272 case $cc_basename in
12273 CC*)
12274 # Sun C++ 4.x
12275 lt_prog_compiler_pic_CXX='-pic'
12276 lt_prog_compiler_static_CXX='-Bstatic'
12278 lcc*)
12279 # Lucid
12280 lt_prog_compiler_pic_CXX='-pic'
12284 esac
12286 tandem*)
12287 case $cc_basename in
12288 NCC*)
12289 # NonStop-UX NCC 3.20
12290 lt_prog_compiler_pic_CXX='-KPIC'
12294 esac
12296 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12297 case $cc_basename in
12298 CC*)
12299 lt_prog_compiler_wl_CXX='-Wl,'
12300 lt_prog_compiler_pic_CXX='-KPIC'
12301 lt_prog_compiler_static_CXX='-Bstatic'
12303 esac
12305 vxworks*)
12308 lt_prog_compiler_can_build_shared_CXX=no
12310 esac
12313 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
12314 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
12317 # Check to make sure the PIC flag actually works.
12319 if test -n "$lt_prog_compiler_pic_CXX"; then
12321 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12322 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
12323 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
12324 echo $ECHO_N "(cached) $ECHO_C" >&6
12325 else
12326 lt_prog_compiler_pic_works_CXX=no
12327 ac_outfile=conftest.$ac_objext
12328 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12329 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12330 # Insert the option either (1) after the last *FLAGS variable, or
12331 # (2) before a word containing "conftest.", or (3) at the end.
12332 # Note that $ac_compile itself does not contain backslashes and begins
12333 # with a dollar sign (not a hyphen), so the echo should work correctly.
12334 # The option is referenced via a variable to avoid confusing sed.
12335 lt_compile=`echo "$ac_compile" | $SED \
12336 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12337 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12338 -e 's:$: $lt_compiler_flag:'`
12339 (eval echo "\"\$as_me:12339: $lt_compile\"" >&5)
12340 (eval "$lt_compile" 2>conftest.err)
12341 ac_status=$?
12342 cat conftest.err >&5
12343 echo "$as_me:12343: \$? = $ac_status" >&5
12344 if (exit $ac_status) && test -s "$ac_outfile"; then
12345 # The compiler can only warn and ignore the option if not recognized
12346 # So say no if there are warnings other than the usual output.
12347 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12348 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12349 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12350 lt_prog_compiler_pic_works_CXX=yes
12353 $rm conftest*
12356 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
12357 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
12359 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
12360 case $lt_prog_compiler_pic_CXX in
12361 "" | " "*) ;;
12362 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12363 esac
12364 else
12365 lt_prog_compiler_pic_CXX=
12366 lt_prog_compiler_can_build_shared_CXX=no
12370 case $host_os in
12371 # For platforms which do not support PIC, -DPIC is meaningless:
12372 *djgpp*)
12373 lt_prog_compiler_pic_CXX=
12376 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
12378 esac
12381 # Check to make sure the static flag actually works.
12383 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
12384 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12385 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
12386 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
12387 echo $ECHO_N "(cached) $ECHO_C" >&6
12388 else
12389 lt_prog_compiler_static_works_CXX=no
12390 save_LDFLAGS="$LDFLAGS"
12391 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12392 echo "$lt_simple_link_test_code" > conftest.$ac_ext
12393 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12394 # The linker can only warn and ignore the option if not recognized
12395 # So say no if there are warnings
12396 if test -s conftest.err; then
12397 # Append any errors to the config.log.
12398 cat conftest.err 1>&5
12399 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
12400 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12401 if diff conftest.exp conftest.er2 >/dev/null; then
12402 lt_prog_compiler_static_works_CXX=yes
12404 else
12405 lt_prog_compiler_static_works_CXX=yes
12408 $rm conftest*
12409 LDFLAGS="$save_LDFLAGS"
12412 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
12413 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
12415 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
12417 else
12418 lt_prog_compiler_static_CXX=
12422 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12423 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
12424 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
12425 echo $ECHO_N "(cached) $ECHO_C" >&6
12426 else
12427 lt_cv_prog_compiler_c_o_CXX=no
12428 $rm -r conftest 2>/dev/null
12429 mkdir conftest
12430 cd conftest
12431 mkdir out
12432 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12434 lt_compiler_flag="-o out/conftest2.$ac_objext"
12435 # Insert the option either (1) after the last *FLAGS variable, or
12436 # (2) before a word containing "conftest.", or (3) at the end.
12437 # Note that $ac_compile itself does not contain backslashes and begins
12438 # with a dollar sign (not a hyphen), so the echo should work correctly.
12439 lt_compile=`echo "$ac_compile" | $SED \
12440 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12441 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12442 -e 's:$: $lt_compiler_flag:'`
12443 (eval echo "\"\$as_me:12443: $lt_compile\"" >&5)
12444 (eval "$lt_compile" 2>out/conftest.err)
12445 ac_status=$?
12446 cat out/conftest.err >&5
12447 echo "$as_me:12447: \$? = $ac_status" >&5
12448 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12449 then
12450 # The compiler can only warn and ignore the option if not recognized
12451 # So say no if there are warnings
12452 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
12453 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12454 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12455 lt_cv_prog_compiler_c_o_CXX=yes
12458 chmod u+w . 2>&5
12459 $rm conftest*
12460 # SGI C++ compiler will create directory out/ii_files/ for
12461 # template instantiation
12462 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12463 $rm out/* && rmdir out
12464 cd ..
12465 rmdir conftest
12466 $rm conftest*
12469 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
12470 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
12473 hard_links="nottested"
12474 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
12475 # do not overwrite the value of need_locks provided by the user
12476 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12477 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
12478 hard_links=yes
12479 $rm conftest*
12480 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12481 touch conftest.a
12482 ln conftest.a conftest.b 2>&5 || hard_links=no
12483 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12484 { echo "$as_me:$LINENO: result: $hard_links" >&5
12485 echo "${ECHO_T}$hard_links" >&6; }
12486 if test "$hard_links" = no; then
12487 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12488 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12489 need_locks=warn
12491 else
12492 need_locks=no
12495 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12496 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
12498 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12499 case $host_os in
12500 aix4* | aix5*)
12501 # If we're using GNU nm, then we don't want the "-C" option.
12502 # -C means demangle to AIX nm, but means don't demangle with GNU nm
12503 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12504 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'
12505 else
12506 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'
12509 pw32*)
12510 export_symbols_cmds_CXX="$ltdll_cmds"
12512 cygwin* | mingw*)
12513 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'
12515 linux* | k*bsd*-gnu)
12516 link_all_deplibs_CXX=no
12519 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12521 esac
12523 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12524 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12525 test "$ld_shlibs_CXX" = no && can_build_shared=no
12528 # Do we need to explicitly link libc?
12530 case "x$archive_cmds_need_lc_CXX" in
12531 x|xyes)
12532 # Assume -lc should be added
12533 archive_cmds_need_lc_CXX=yes
12535 if test "$enable_shared" = yes && test "$GCC" = yes; then
12536 case $archive_cmds_CXX in
12537 *'~'*)
12538 # FIXME: we may have to deal with multi-command sequences.
12540 '$CC '*)
12541 # Test whether the compiler implicitly links with -lc since on some
12542 # systems, -lgcc has to come before -lc. If gcc already passes -lc
12543 # to ld, don't add -lc before -lgcc.
12544 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
12545 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
12546 $rm conftest*
12547 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12549 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12550 (eval $ac_compile) 2>&5
12551 ac_status=$?
12552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12553 (exit $ac_status); } 2>conftest.err; then
12554 soname=conftest
12555 lib=conftest
12556 libobjs=conftest.$ac_objext
12557 deplibs=
12558 wl=$lt_prog_compiler_wl_CXX
12559 pic_flag=$lt_prog_compiler_pic_CXX
12560 compiler_flags=-v
12561 linker_flags=-v
12562 verstring=
12563 output_objdir=.
12564 libname=conftest
12565 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
12566 allow_undefined_flag_CXX=
12567 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
12568 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
12569 ac_status=$?
12570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12571 (exit $ac_status); }
12572 then
12573 archive_cmds_need_lc_CXX=no
12574 else
12575 archive_cmds_need_lc_CXX=yes
12577 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
12578 else
12579 cat conftest.err 1>&5
12581 $rm conftest*
12582 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
12583 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
12585 esac
12588 esac
12590 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
12591 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
12592 library_names_spec=
12593 libname_spec='lib$name'
12594 soname_spec=
12595 shrext_cmds=".so"
12596 postinstall_cmds=
12597 postuninstall_cmds=
12598 finish_cmds=
12599 finish_eval=
12600 shlibpath_var=
12601 shlibpath_overrides_runpath=unknown
12602 version_type=none
12603 dynamic_linker="$host_os ld.so"
12604 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12606 need_lib_prefix=unknown
12607 hardcode_into_libs=no
12609 # when you set need_version to no, make sure it does not cause -set_version
12610 # flags to be left without arguments
12611 need_version=unknown
12613 case $host_os in
12614 aix3*)
12615 version_type=linux
12616 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12617 shlibpath_var=LIBPATH
12619 # AIX 3 has no versioning support, so we append a major version to the name.
12620 soname_spec='${libname}${release}${shared_ext}$major'
12623 aix4* | aix5*)
12624 version_type=linux
12625 need_lib_prefix=no
12626 need_version=no
12627 hardcode_into_libs=yes
12628 if test "$host_cpu" = ia64; then
12629 # AIX 5 supports IA64
12630 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12631 shlibpath_var=LD_LIBRARY_PATH
12632 else
12633 # With GCC up to 2.95.x, collect2 would create an import file
12634 # for dependence libraries. The import file would start with
12635 # the line `#! .'. This would cause the generated library to
12636 # depend on `.', always an invalid library. This was fixed in
12637 # development snapshots of GCC prior to 3.0.
12638 case $host_os in
12639 aix4 | aix4.[01] | aix4.[01].*)
12640 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12641 echo ' yes '
12642 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
12644 else
12645 can_build_shared=no
12648 esac
12649 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12650 # soname into executable. Probably we can add versioning support to
12651 # collect2, so additional links can be useful in future.
12652 if test "$aix_use_runtimelinking" = yes; then
12653 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12654 # instead of lib<name>.a to let people know that these are not
12655 # typical AIX shared libraries.
12656 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12657 else
12658 # We preserve .a as extension for shared libraries through AIX4.2
12659 # and later when we are not doing run time linking.
12660 library_names_spec='${libname}${release}.a $libname.a'
12661 soname_spec='${libname}${release}${shared_ext}$major'
12663 shlibpath_var=LIBPATH
12667 amigaos*)
12668 library_names_spec='$libname.ixlibrary $libname.a'
12669 # Create ${libname}_ixlibrary.a entries in /sys/libs.
12670 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'
12673 beos*)
12674 library_names_spec='${libname}${shared_ext}'
12675 dynamic_linker="$host_os ld.so"
12676 shlibpath_var=LIBRARY_PATH
12679 bsdi[45]*)
12680 version_type=linux
12681 need_version=no
12682 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12683 soname_spec='${libname}${release}${shared_ext}$major'
12684 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12685 shlibpath_var=LD_LIBRARY_PATH
12686 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12687 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12688 # the default ld.so.conf also contains /usr/contrib/lib and
12689 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12690 # libtool to hard-code these into programs
12693 cygwin* | mingw* | pw32*)
12694 version_type=windows
12695 shrext_cmds=".dll"
12696 need_version=no
12697 need_lib_prefix=no
12699 case $GCC,$host_os in
12700 yes,cygwin* | yes,mingw* | yes,pw32*)
12701 library_names_spec='$libname.dll.a'
12702 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12703 postinstall_cmds='base_file=`basename \${file}`~
12704 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
12705 dldir=$destdir/`dirname \$dlpath`~
12706 test -d \$dldir || mkdir -p \$dldir~
12707 $install_prog $dir/$dlname \$dldir/$dlname~
12708 chmod a+x \$dldir/$dlname'
12709 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12710 dlpath=$dir/\$dldll~
12711 $rm \$dlpath'
12712 shlibpath_overrides_runpath=yes
12714 case $host_os in
12715 cygwin*)
12716 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12717 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12718 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
12720 mingw*)
12721 # MinGW DLLs use traditional 'lib' prefix
12722 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12723 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12724 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
12725 # It is most probably a Windows format PATH printed by
12726 # mingw gcc, but we are running on Cygwin. Gcc prints its search
12727 # path with ; separators, and with drive letters. We can handle the
12728 # drive letters (cygwin fileutils understands them), so leave them,
12729 # especially as we might pass files found there to a mingw objdump,
12730 # which wouldn't understand a cygwinified path. Ahh.
12731 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12732 else
12733 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12736 pw32*)
12737 # pw32 DLLs use 'pw' prefix rather than 'lib'
12738 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12740 esac
12744 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12746 esac
12747 dynamic_linker='Win32 ld.exe'
12748 # FIXME: first we should search . and the directory the executable is in
12749 shlibpath_var=PATH
12752 darwin* | rhapsody*)
12753 dynamic_linker="$host_os dyld"
12754 version_type=darwin
12755 need_lib_prefix=no
12756 need_version=no
12757 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12758 soname_spec='${libname}${release}${major}$shared_ext'
12759 shlibpath_overrides_runpath=yes
12760 shlibpath_var=DYLD_LIBRARY_PATH
12761 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12763 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12766 dgux*)
12767 version_type=linux
12768 need_lib_prefix=no
12769 need_version=no
12770 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12771 soname_spec='${libname}${release}${shared_ext}$major'
12772 shlibpath_var=LD_LIBRARY_PATH
12775 freebsd1*)
12776 dynamic_linker=no
12779 freebsd* | dragonfly*)
12780 # DragonFly does not have aout. When/if they implement a new
12781 # versioning mechanism, adjust this.
12782 if test -x /usr/bin/objformat; then
12783 objformat=`/usr/bin/objformat`
12784 else
12785 case $host_os in
12786 freebsd[123]*) objformat=aout ;;
12787 *) objformat=elf ;;
12788 esac
12790 version_type=freebsd-$objformat
12791 case $version_type in
12792 freebsd-elf*)
12793 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12794 need_version=no
12795 need_lib_prefix=no
12797 freebsd-*)
12798 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12799 need_version=yes
12801 esac
12802 shlibpath_var=LD_LIBRARY_PATH
12803 case $host_os in
12804 freebsd2*)
12805 shlibpath_overrides_runpath=yes
12807 freebsd3.[01]* | freebsdelf3.[01]*)
12808 shlibpath_overrides_runpath=yes
12809 hardcode_into_libs=yes
12811 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12812 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12813 shlibpath_overrides_runpath=no
12814 hardcode_into_libs=yes
12816 *) # from 4.6 on, and DragonFly
12817 shlibpath_overrides_runpath=yes
12818 hardcode_into_libs=yes
12820 esac
12823 gnu*)
12824 version_type=linux
12825 need_lib_prefix=no
12826 need_version=no
12827 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12828 soname_spec='${libname}${release}${shared_ext}$major'
12829 shlibpath_var=LD_LIBRARY_PATH
12830 hardcode_into_libs=yes
12833 hpux9* | hpux10* | hpux11*)
12834 # Give a soname corresponding to the major version so that dld.sl refuses to
12835 # link against other versions.
12836 version_type=sunos
12837 need_lib_prefix=no
12838 need_version=no
12839 case $host_cpu in
12840 ia64*)
12841 shrext_cmds='.so'
12842 hardcode_into_libs=yes
12843 dynamic_linker="$host_os dld.so"
12844 shlibpath_var=LD_LIBRARY_PATH
12845 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12846 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12847 soname_spec='${libname}${release}${shared_ext}$major'
12848 if test "X$HPUX_IA64_MODE" = X32; then
12849 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12850 else
12851 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12853 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12855 hppa*64*)
12856 shrext_cmds='.sl'
12857 hardcode_into_libs=yes
12858 dynamic_linker="$host_os dld.sl"
12859 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12860 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12861 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12862 soname_spec='${libname}${release}${shared_ext}$major'
12863 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12864 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12867 shrext_cmds='.sl'
12868 dynamic_linker="$host_os dld.sl"
12869 shlibpath_var=SHLIB_PATH
12870 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12871 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12872 soname_spec='${libname}${release}${shared_ext}$major'
12874 esac
12875 # HP-UX runs *really* slowly unless shared libraries are mode 555.
12876 postinstall_cmds='chmod 555 $lib'
12879 interix[3-9]*)
12880 version_type=linux
12881 need_lib_prefix=no
12882 need_version=no
12883 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12884 soname_spec='${libname}${release}${shared_ext}$major'
12885 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12886 shlibpath_var=LD_LIBRARY_PATH
12887 shlibpath_overrides_runpath=no
12888 hardcode_into_libs=yes
12891 irix5* | irix6* | nonstopux*)
12892 case $host_os in
12893 nonstopux*) version_type=nonstopux ;;
12895 if test "$lt_cv_prog_gnu_ld" = yes; then
12896 version_type=linux
12897 else
12898 version_type=irix
12899 fi ;;
12900 esac
12901 need_lib_prefix=no
12902 need_version=no
12903 soname_spec='${libname}${release}${shared_ext}$major'
12904 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12905 case $host_os in
12906 irix5* | nonstopux*)
12907 libsuff= shlibsuff=
12910 case $LD in # libtool.m4 will add one of these switches to LD
12911 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12912 libsuff= shlibsuff= libmagic=32-bit;;
12913 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12914 libsuff=32 shlibsuff=N32 libmagic=N32;;
12915 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12916 libsuff=64 shlibsuff=64 libmagic=64-bit;;
12917 *) libsuff= shlibsuff= libmagic=never-match;;
12918 esac
12920 esac
12921 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12922 shlibpath_overrides_runpath=no
12923 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12924 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12925 hardcode_into_libs=yes
12928 # No shared lib support for Linux oldld, aout, or coff.
12929 linux*oldld* | linux*aout* | linux*coff*)
12930 dynamic_linker=no
12933 # This must be Linux ELF.
12934 linux* | k*bsd*-gnu)
12935 version_type=linux
12936 need_lib_prefix=no
12937 need_version=no
12938 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12939 soname_spec='${libname}${release}${shared_ext}$major'
12940 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12941 shlibpath_var=LD_LIBRARY_PATH
12942 shlibpath_overrides_runpath=no
12943 # This implies no fast_install, which is unacceptable.
12944 # Some rework will be needed to allow for fast_install
12945 # before this can be enabled.
12946 hardcode_into_libs=yes
12948 # Append ld.so.conf contents to the search path
12949 if test -f /etc/ld.so.conf; then
12950 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' ' '`
12951 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12954 # We used to test for /lib/ld.so.1 and disable shared libraries on
12955 # powerpc, because MkLinux only supported shared libraries with the
12956 # GNU dynamic linker. Since this was broken with cross compilers,
12957 # most powerpc-linux boxes support dynamic linking these days and
12958 # people can always --disable-shared, the test was removed, and we
12959 # assume the GNU/Linux dynamic linker is in use.
12960 dynamic_linker='GNU/Linux ld.so'
12963 netbsdelf*-gnu)
12964 version_type=linux
12965 need_lib_prefix=no
12966 need_version=no
12967 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12968 soname_spec='${libname}${release}${shared_ext}$major'
12969 shlibpath_var=LD_LIBRARY_PATH
12970 shlibpath_overrides_runpath=no
12971 hardcode_into_libs=yes
12972 dynamic_linker='NetBSD ld.elf_so'
12975 netbsd*)
12976 version_type=sunos
12977 need_lib_prefix=no
12978 need_version=no
12979 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12980 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12981 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12982 dynamic_linker='NetBSD (a.out) ld.so'
12983 else
12984 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12985 soname_spec='${libname}${release}${shared_ext}$major'
12986 dynamic_linker='NetBSD ld.elf_so'
12988 shlibpath_var=LD_LIBRARY_PATH
12989 shlibpath_overrides_runpath=yes
12990 hardcode_into_libs=yes
12993 newsos6)
12994 version_type=linux
12995 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12996 shlibpath_var=LD_LIBRARY_PATH
12997 shlibpath_overrides_runpath=yes
13000 nto-qnx*)
13001 version_type=linux
13002 need_lib_prefix=no
13003 need_version=no
13004 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13005 soname_spec='${libname}${release}${shared_ext}$major'
13006 shlibpath_var=LD_LIBRARY_PATH
13007 shlibpath_overrides_runpath=yes
13010 openbsd*)
13011 version_type=sunos
13012 sys_lib_dlsearch_path_spec="/usr/lib"
13013 need_lib_prefix=no
13014 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13015 case $host_os in
13016 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
13017 *) need_version=no ;;
13018 esac
13019 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13020 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13021 shlibpath_var=LD_LIBRARY_PATH
13022 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13023 case $host_os in
13024 openbsd2.[89] | openbsd2.[89].*)
13025 shlibpath_overrides_runpath=no
13028 shlibpath_overrides_runpath=yes
13030 esac
13031 else
13032 shlibpath_overrides_runpath=yes
13036 os2*)
13037 libname_spec='$name'
13038 shrext_cmds=".dll"
13039 need_lib_prefix=no
13040 library_names_spec='$libname${shared_ext} $libname.a'
13041 dynamic_linker='OS/2 ld.exe'
13042 shlibpath_var=LIBPATH
13045 osf3* | osf4* | osf5*)
13046 version_type=osf
13047 need_lib_prefix=no
13048 need_version=no
13049 soname_spec='${libname}${release}${shared_ext}$major'
13050 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13051 shlibpath_var=LD_LIBRARY_PATH
13052 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13053 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13056 rdos*)
13057 dynamic_linker=no
13060 solaris*)
13061 version_type=linux
13062 need_lib_prefix=no
13063 need_version=no
13064 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13065 soname_spec='${libname}${release}${shared_ext}$major'
13066 shlibpath_var=LD_LIBRARY_PATH
13067 shlibpath_overrides_runpath=yes
13068 hardcode_into_libs=yes
13069 # ldd complains unless libraries are executable
13070 postinstall_cmds='chmod +x $lib'
13073 sunos4*)
13074 version_type=sunos
13075 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13076 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13077 shlibpath_var=LD_LIBRARY_PATH
13078 shlibpath_overrides_runpath=yes
13079 if test "$with_gnu_ld" = yes; then
13080 need_lib_prefix=no
13082 need_version=yes
13085 sysv4 | sysv4.3*)
13086 version_type=linux
13087 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13088 soname_spec='${libname}${release}${shared_ext}$major'
13089 shlibpath_var=LD_LIBRARY_PATH
13090 case $host_vendor in
13091 sni)
13092 shlibpath_overrides_runpath=no
13093 need_lib_prefix=no
13094 export_dynamic_flag_spec='${wl}-Blargedynsym'
13095 runpath_var=LD_RUN_PATH
13097 siemens)
13098 need_lib_prefix=no
13100 motorola)
13101 need_lib_prefix=no
13102 need_version=no
13103 shlibpath_overrides_runpath=no
13104 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13106 esac
13109 sysv4*MP*)
13110 if test -d /usr/nec ;then
13111 version_type=linux
13112 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13113 soname_spec='$libname${shared_ext}.$major'
13114 shlibpath_var=LD_LIBRARY_PATH
13118 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13119 version_type=freebsd-elf
13120 need_lib_prefix=no
13121 need_version=no
13122 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13123 soname_spec='${libname}${release}${shared_ext}$major'
13124 shlibpath_var=LD_LIBRARY_PATH
13125 hardcode_into_libs=yes
13126 if test "$with_gnu_ld" = yes; then
13127 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13128 shlibpath_overrides_runpath=no
13129 else
13130 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13131 shlibpath_overrides_runpath=yes
13132 case $host_os in
13133 sco3.2v5*)
13134 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13136 esac
13138 sys_lib_dlsearch_path_spec='/usr/lib'
13141 uts4*)
13142 version_type=linux
13143 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13144 soname_spec='${libname}${release}${shared_ext}$major'
13145 shlibpath_var=LD_LIBRARY_PATH
13149 dynamic_linker=no
13151 esac
13152 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13153 echo "${ECHO_T}$dynamic_linker" >&6; }
13154 test "$dynamic_linker" = no && can_build_shared=no
13156 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13157 if test "$GCC" = yes; then
13158 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13161 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13162 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
13163 hardcode_action_CXX=
13164 if test -n "$hardcode_libdir_flag_spec_CXX" || \
13165 test -n "$runpath_var_CXX" || \
13166 test "X$hardcode_automatic_CXX" = "Xyes" ; then
13168 # We can hardcode non-existant directories.
13169 if test "$hardcode_direct_CXX" != no &&
13170 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13171 # have to relink, otherwise we might link with an installed library
13172 # when we should be linking with a yet-to-be-installed one
13173 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13174 test "$hardcode_minus_L_CXX" != no; then
13175 # Linking always hardcodes the temporary library directory.
13176 hardcode_action_CXX=relink
13177 else
13178 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13179 hardcode_action_CXX=immediate
13181 else
13182 # We cannot hardcode anything, or else we can only hardcode existing
13183 # directories.
13184 hardcode_action_CXX=unsupported
13186 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
13187 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
13189 if test "$hardcode_action_CXX" = relink; then
13190 # Fast installation is not supported
13191 enable_fast_install=no
13192 elif test "$shlibpath_overrides_runpath" = yes ||
13193 test "$enable_shared" = no; then
13194 # Fast installation is not necessary
13195 enable_fast_install=needless
13199 # The else clause should only fire when bootstrapping the
13200 # libtool distribution, otherwise you forgot to ship ltmain.sh
13201 # with your package, and you will get complaints that there are
13202 # no rules to generate ltmain.sh.
13203 if test -f "$ltmain"; then
13204 # See if we are running on zsh, and set the options which allow our commands through
13205 # without removal of \ escapes.
13206 if test -n "${ZSH_VERSION+set}" ; then
13207 setopt NO_GLOB_SUBST
13209 # Now quote all the things that may contain metacharacters while being
13210 # careful not to overquote the AC_SUBSTed values. We take copies of the
13211 # variables and quote the copies for generation of the libtool script.
13212 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
13213 SED SHELL STRIP \
13214 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13215 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13216 deplibs_check_method reload_flag reload_cmds need_locks \
13217 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13218 lt_cv_sys_global_symbol_to_c_name_address \
13219 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13220 old_postinstall_cmds old_postuninstall_cmds \
13221 compiler_CXX \
13222 CC_CXX \
13223 LD_CXX \
13224 lt_prog_compiler_wl_CXX \
13225 lt_prog_compiler_pic_CXX \
13226 lt_prog_compiler_static_CXX \
13227 lt_prog_compiler_no_builtin_flag_CXX \
13228 export_dynamic_flag_spec_CXX \
13229 thread_safe_flag_spec_CXX \
13230 whole_archive_flag_spec_CXX \
13231 enable_shared_with_static_runtimes_CXX \
13232 old_archive_cmds_CXX \
13233 old_archive_from_new_cmds_CXX \
13234 predep_objects_CXX \
13235 postdep_objects_CXX \
13236 predeps_CXX \
13237 postdeps_CXX \
13238 compiler_lib_search_path_CXX \
13239 archive_cmds_CXX \
13240 archive_expsym_cmds_CXX \
13241 postinstall_cmds_CXX \
13242 postuninstall_cmds_CXX \
13243 old_archive_from_expsyms_cmds_CXX \
13244 allow_undefined_flag_CXX \
13245 no_undefined_flag_CXX \
13246 export_symbols_cmds_CXX \
13247 hardcode_libdir_flag_spec_CXX \
13248 hardcode_libdir_flag_spec_ld_CXX \
13249 hardcode_libdir_separator_CXX \
13250 hardcode_automatic_CXX \
13251 module_cmds_CXX \
13252 module_expsym_cmds_CXX \
13253 lt_cv_prog_compiler_c_o_CXX \
13254 fix_srcfile_path_CXX \
13255 exclude_expsyms_CXX \
13256 include_expsyms_CXX; do
13258 case $var in
13259 old_archive_cmds_CXX | \
13260 old_archive_from_new_cmds_CXX | \
13261 archive_cmds_CXX | \
13262 archive_expsym_cmds_CXX | \
13263 module_cmds_CXX | \
13264 module_expsym_cmds_CXX | \
13265 old_archive_from_expsyms_cmds_CXX | \
13266 export_symbols_cmds_CXX | \
13267 extract_expsyms_cmds | reload_cmds | finish_cmds | \
13268 postinstall_cmds | postuninstall_cmds | \
13269 old_postinstall_cmds | old_postuninstall_cmds | \
13270 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13271 # Double-quote double-evaled strings.
13272 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13275 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13277 esac
13278 done
13280 case $lt_echo in
13281 *'\$0 --fallback-echo"')
13282 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13284 esac
13286 cfgfile="$ofile"
13288 cat <<__EOF__ >> "$cfgfile"
13289 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
13291 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13293 # Shell to use when invoking shell scripts.
13294 SHELL=$lt_SHELL
13296 # Whether or not to build shared libraries.
13297 build_libtool_libs=$enable_shared
13299 # Whether or not to build static libraries.
13300 build_old_libs=$enable_static
13302 # Whether or not to add -lc for building shared libraries.
13303 build_libtool_need_lc=$archive_cmds_need_lc_CXX
13305 # Whether or not to disallow shared libs when runtime libs are static
13306 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13308 # Whether or not to optimize for fast installation.
13309 fast_install=$enable_fast_install
13311 # The host system.
13312 host_alias=$host_alias
13313 host=$host
13314 host_os=$host_os
13316 # The build system.
13317 build_alias=$build_alias
13318 build=$build
13319 build_os=$build_os
13321 # An echo program that does not interpret backslashes.
13322 echo=$lt_echo
13324 # The archiver.
13325 AR=$lt_AR
13326 AR_FLAGS=$lt_AR_FLAGS
13328 # A C compiler.
13329 LTCC=$lt_LTCC
13331 # LTCC compiler flags.
13332 LTCFLAGS=$lt_LTCFLAGS
13334 # A language-specific compiler.
13335 CC=$lt_compiler_CXX
13337 # Is the compiler the GNU C compiler?
13338 with_gcc=$GCC_CXX
13340 # An ERE matcher.
13341 EGREP=$lt_EGREP
13343 # The linker used to build libraries.
13344 LD=$lt_LD_CXX
13346 # Whether we need hard or soft links.
13347 LN_S=$lt_LN_S
13349 # A BSD-compatible nm program.
13350 NM=$lt_NM
13352 # A symbol stripping program
13353 STRIP=$lt_STRIP
13355 # Used to examine libraries when file_magic_cmd begins "file"
13356 MAGIC_CMD=$MAGIC_CMD
13358 # Used on cygwin: DLL creation program.
13359 DLLTOOL="$DLLTOOL"
13361 # Used on cygwin: object dumper.
13362 OBJDUMP="$OBJDUMP"
13364 # Used on cygwin: assembler.
13365 AS="$AS"
13367 # The name of the directory that contains temporary libtool files.
13368 objdir=$objdir
13370 # How to create reloadable object files.
13371 reload_flag=$lt_reload_flag
13372 reload_cmds=$lt_reload_cmds
13374 # How to pass a linker flag through the compiler.
13375 wl=$lt_lt_prog_compiler_wl_CXX
13377 # Object file suffix (normally "o").
13378 objext="$ac_objext"
13380 # Old archive suffix (normally "a").
13381 libext="$libext"
13383 # Shared library suffix (normally ".so").
13384 shrext_cmds='$shrext_cmds'
13386 # Executable file suffix (normally "").
13387 exeext="$exeext"
13389 # Additional compiler flags for building library objects.
13390 pic_flag=$lt_lt_prog_compiler_pic_CXX
13391 pic_mode=$pic_mode
13393 # What is the maximum length of a command?
13394 max_cmd_len=$lt_cv_sys_max_cmd_len
13396 # Does compiler simultaneously support -c and -o options?
13397 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13399 # Must we lock files when doing compilation?
13400 need_locks=$lt_need_locks
13402 # Do we need the lib prefix for modules?
13403 need_lib_prefix=$need_lib_prefix
13405 # Do we need a version for libraries?
13406 need_version=$need_version
13408 # Whether dlopen is supported.
13409 dlopen_support=$enable_dlopen
13411 # Whether dlopen of programs is supported.
13412 dlopen_self=$enable_dlopen_self
13414 # Whether dlopen of statically linked programs is supported.
13415 dlopen_self_static=$enable_dlopen_self_static
13417 # Compiler flag to prevent dynamic linking.
13418 link_static_flag=$lt_lt_prog_compiler_static_CXX
13420 # Compiler flag to turn off builtin functions.
13421 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13423 # Compiler flag to allow reflexive dlopens.
13424 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13426 # Compiler flag to generate shared objects directly from archives.
13427 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13429 # Compiler flag to generate thread-safe objects.
13430 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13432 # Library versioning type.
13433 version_type=$version_type
13435 # Format of library name prefix.
13436 libname_spec=$lt_libname_spec
13438 # List of archive names. First name is the real one, the rest are links.
13439 # The last name is the one that the linker finds with -lNAME.
13440 library_names_spec=$lt_library_names_spec
13442 # The coded name of the library, if different from the real name.
13443 soname_spec=$lt_soname_spec
13445 # Commands used to build and install an old-style archive.
13446 RANLIB=$lt_RANLIB
13447 old_archive_cmds=$lt_old_archive_cmds_CXX
13448 old_postinstall_cmds=$lt_old_postinstall_cmds
13449 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13451 # Create an old-style archive from a shared archive.
13452 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13454 # Create a temporary old-style archive to link instead of a shared archive.
13455 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13457 # Commands used to build and install a shared archive.
13458 archive_cmds=$lt_archive_cmds_CXX
13459 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13460 postinstall_cmds=$lt_postinstall_cmds
13461 postuninstall_cmds=$lt_postuninstall_cmds
13463 # Commands used to build a loadable module (assumed same as above if empty)
13464 module_cmds=$lt_module_cmds_CXX
13465 module_expsym_cmds=$lt_module_expsym_cmds_CXX
13467 # Commands to strip libraries.
13468 old_striplib=$lt_old_striplib
13469 striplib=$lt_striplib
13471 # Dependencies to place before the objects being linked to create a
13472 # shared library.
13473 predep_objects=$lt_predep_objects_CXX
13475 # Dependencies to place after the objects being linked to create a
13476 # shared library.
13477 postdep_objects=$lt_postdep_objects_CXX
13479 # Dependencies to place before the objects being linked to create a
13480 # shared library.
13481 predeps=$lt_predeps_CXX
13483 # Dependencies to place after the objects being linked to create a
13484 # shared library.
13485 postdeps=$lt_postdeps_CXX
13487 # The library search path used internally by the compiler when linking
13488 # a shared library.
13489 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13491 # Method to check whether dependent libraries are shared objects.
13492 deplibs_check_method=$lt_deplibs_check_method
13494 # Command to use when deplibs_check_method == file_magic.
13495 file_magic_cmd=$lt_file_magic_cmd
13497 # Flag that allows shared libraries with undefined symbols to be built.
13498 allow_undefined_flag=$lt_allow_undefined_flag_CXX
13500 # Flag that forces no undefined symbols.
13501 no_undefined_flag=$lt_no_undefined_flag_CXX
13503 # Commands used to finish a libtool library installation in a directory.
13504 finish_cmds=$lt_finish_cmds
13506 # Same as above, but a single script fragment to be evaled but not shown.
13507 finish_eval=$lt_finish_eval
13509 # Take the output of nm and produce a listing of raw symbols and C names.
13510 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13512 # Transform the output of nm in a proper C declaration
13513 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13515 # Transform the output of nm in a C name address pair
13516 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13518 # This is the shared library runtime path variable.
13519 runpath_var=$runpath_var
13521 # This is the shared library path variable.
13522 shlibpath_var=$shlibpath_var
13524 # Is shlibpath searched before the hard-coded library search path?
13525 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13527 # How to hardcode a shared library path into an executable.
13528 hardcode_action=$hardcode_action_CXX
13530 # Whether we should hardcode library paths into libraries.
13531 hardcode_into_libs=$hardcode_into_libs
13533 # Flag to hardcode \$libdir into a binary during linking.
13534 # This must work even if \$libdir does not exist.
13535 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13537 # If ld is used when linking, flag to hardcode \$libdir into
13538 # a binary during linking. This must work even if \$libdir does
13539 # not exist.
13540 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13542 # Whether we need a single -rpath flag with a separated argument.
13543 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13545 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13546 # resulting binary.
13547 hardcode_direct=$hardcode_direct_CXX
13549 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13550 # resulting binary.
13551 hardcode_minus_L=$hardcode_minus_L_CXX
13553 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13554 # the resulting binary.
13555 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13557 # Set to yes if building a shared library automatically hardcodes DIR into the library
13558 # and all subsequent libraries and executables linked against it.
13559 hardcode_automatic=$hardcode_automatic_CXX
13561 # Variables whose values should be saved in libtool wrapper scripts and
13562 # restored at relink time.
13563 variables_saved_for_relink="$variables_saved_for_relink"
13565 # Whether libtool must link a program against all its dependency libraries.
13566 link_all_deplibs=$link_all_deplibs_CXX
13568 # Compile-time system search path for libraries
13569 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13571 # Run-time system search path for libraries
13572 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13574 # Fix the shell variable \$srcfile for the compiler.
13575 fix_srcfile_path=$lt_fix_srcfile_path
13577 # Set to yes if exported symbols are required.
13578 always_export_symbols=$always_export_symbols_CXX
13580 # The commands to list exported symbols.
13581 export_symbols_cmds=$lt_export_symbols_cmds_CXX
13583 # The commands to extract the exported symbol list from a shared archive.
13584 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13586 # Symbols that should not be listed in the preloaded symbols.
13587 exclude_expsyms=$lt_exclude_expsyms_CXX
13589 # Symbols that must always be exported.
13590 include_expsyms=$lt_include_expsyms_CXX
13592 # ### END LIBTOOL TAG CONFIG: $tagname
13594 __EOF__
13597 else
13598 # If there is no Makefile yet, we rely on a make rule to execute
13599 # `config.status --recheck' to rerun these tests and create the
13600 # libtool script then.
13601 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13602 if test -f "$ltmain_in"; then
13603 test -f Makefile && make "$ltmain"
13608 ac_ext=c
13609 ac_cpp='$CPP $CPPFLAGS'
13610 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13611 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13612 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13614 CC=$lt_save_CC
13615 LDCXX=$LD
13616 LD=$lt_save_LD
13617 GCC=$lt_save_GCC
13618 with_gnu_ldcxx=$with_gnu_ld
13619 with_gnu_ld=$lt_save_with_gnu_ld
13620 lt_cv_path_LDCXX=$lt_cv_path_LD
13621 lt_cv_path_LD=$lt_save_path_LD
13622 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13623 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13625 else
13626 tagname=""
13630 F77)
13631 if test -n "$F77" && test "X$F77" != "Xno"; then
13633 ac_ext=f
13634 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13635 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13636 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13639 archive_cmds_need_lc_F77=no
13640 allow_undefined_flag_F77=
13641 always_export_symbols_F77=no
13642 archive_expsym_cmds_F77=
13643 export_dynamic_flag_spec_F77=
13644 hardcode_direct_F77=no
13645 hardcode_libdir_flag_spec_F77=
13646 hardcode_libdir_flag_spec_ld_F77=
13647 hardcode_libdir_separator_F77=
13648 hardcode_minus_L_F77=no
13649 hardcode_automatic_F77=no
13650 module_cmds_F77=
13651 module_expsym_cmds_F77=
13652 link_all_deplibs_F77=unknown
13653 old_archive_cmds_F77=$old_archive_cmds
13654 no_undefined_flag_F77=
13655 whole_archive_flag_spec_F77=
13656 enable_shared_with_static_runtimes_F77=no
13658 # Source file extension for f77 test sources.
13659 ac_ext=f
13661 # Object file extension for compiled f77 test sources.
13662 objext=o
13663 objext_F77=$objext
13665 # Code to be used in simple compile tests
13666 lt_simple_compile_test_code="\
13667 subroutine t
13668 return
13672 # Code to be used in simple link tests
13673 lt_simple_link_test_code="\
13674 program t
13678 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13680 # If no C compiler was specified, use CC.
13681 LTCC=${LTCC-"$CC"}
13683 # If no C compiler flags were specified, use CFLAGS.
13684 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13686 # Allow CC to be a program name with arguments.
13687 compiler=$CC
13690 # save warnings/boilerplate of simple test code
13691 ac_outfile=conftest.$ac_objext
13692 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13693 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13694 _lt_compiler_boilerplate=`cat conftest.err`
13695 $rm conftest*
13697 ac_outfile=conftest.$ac_objext
13698 echo "$lt_simple_link_test_code" >conftest.$ac_ext
13699 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13700 _lt_linker_boilerplate=`cat conftest.err`
13701 $rm conftest*
13704 # Allow CC to be a program name with arguments.
13705 lt_save_CC="$CC"
13706 CC=${F77-"f77"}
13707 compiler=$CC
13708 compiler_F77=$CC
13709 for cc_temp in $compiler""; do
13710 case $cc_temp in
13711 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13712 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13713 \-*) ;;
13714 *) break;;
13715 esac
13716 done
13717 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13720 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13721 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
13722 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
13723 echo "${ECHO_T}$can_build_shared" >&6; }
13725 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13726 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
13727 test "$can_build_shared" = "no" && enable_shared=no
13729 # On AIX, shared libraries and static libraries use the same namespace, and
13730 # are all built from PIC.
13731 case $host_os in
13732 aix3*)
13733 test "$enable_shared" = yes && enable_static=no
13734 if test -n "$RANLIB"; then
13735 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13736 postinstall_cmds='$RANLIB $lib'
13739 aix4* | aix5*)
13740 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13741 test "$enable_shared" = yes && enable_static=no
13744 esac
13745 { echo "$as_me:$LINENO: result: $enable_shared" >&5
13746 echo "${ECHO_T}$enable_shared" >&6; }
13748 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13749 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
13750 # Make sure either enable_shared or enable_static is yes.
13751 test "$enable_shared" = yes || enable_static=yes
13752 { echo "$as_me:$LINENO: result: $enable_static" >&5
13753 echo "${ECHO_T}$enable_static" >&6; }
13755 GCC_F77="$G77"
13756 LD_F77="$LD"
13758 lt_prog_compiler_wl_F77=
13759 lt_prog_compiler_pic_F77=
13760 lt_prog_compiler_static_F77=
13762 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13763 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
13765 if test "$GCC" = yes; then
13766 lt_prog_compiler_wl_F77='-Wl,'
13767 lt_prog_compiler_static_F77='-static'
13769 case $host_os in
13770 aix*)
13771 # All AIX code is PIC.
13772 if test "$host_cpu" = ia64; then
13773 # AIX 5 now supports IA64 processor
13774 lt_prog_compiler_static_F77='-Bstatic'
13778 amigaos*)
13779 # FIXME: we need at least 68020 code to build shared libraries, but
13780 # adding the `-m68020' flag to GCC prevents building anything better,
13781 # like `-m68040'.
13782 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13785 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13786 # PIC is the default for these OSes.
13789 mingw* | cygwin* | pw32* | os2*)
13790 # This hack is so that the source file can tell whether it is being
13791 # built for inclusion in a dll (and should export symbols for example).
13792 # Although the cygwin gcc ignores -fPIC, still need this for old-style
13793 # (--disable-auto-import) libraries
13794 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13797 darwin* | rhapsody*)
13798 # PIC is the default on this platform
13799 # Common symbols not allowed in MH_DYLIB files
13800 lt_prog_compiler_pic_F77='-fno-common'
13803 interix[3-9]*)
13804 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13805 # Instead, we relocate shared libraries at runtime.
13808 msdosdjgpp*)
13809 # Just because we use GCC doesn't mean we suddenly get shared libraries
13810 # on systems that don't support them.
13811 lt_prog_compiler_can_build_shared_F77=no
13812 enable_shared=no
13815 sysv4*MP*)
13816 if test -d /usr/nec; then
13817 lt_prog_compiler_pic_F77=-Kconform_pic
13821 hpux*)
13822 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13823 # not for PA HP-UX.
13824 case $host_cpu in
13825 hppa*64*|ia64*)
13826 # +Z the default
13829 lt_prog_compiler_pic_F77='-fPIC'
13831 esac
13835 lt_prog_compiler_pic_F77='-fPIC'
13837 esac
13838 else
13839 # PORTME Check for flag to pass linker flags through the system compiler.
13840 case $host_os in
13841 aix*)
13842 lt_prog_compiler_wl_F77='-Wl,'
13843 if test "$host_cpu" = ia64; then
13844 # AIX 5 now supports IA64 processor
13845 lt_prog_compiler_static_F77='-Bstatic'
13846 else
13847 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13850 darwin*)
13851 # PIC is the default on this platform
13852 # Common symbols not allowed in MH_DYLIB files
13853 case $cc_basename in
13854 xlc*)
13855 lt_prog_compiler_pic_F77='-qnocommon'
13856 lt_prog_compiler_wl_F77='-Wl,'
13858 esac
13861 mingw* | cygwin* | pw32* | os2*)
13862 # This hack is so that the source file can tell whether it is being
13863 # built for inclusion in a dll (and should export symbols for example).
13864 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13867 hpux9* | hpux10* | hpux11*)
13868 lt_prog_compiler_wl_F77='-Wl,'
13869 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13870 # not for PA HP-UX.
13871 case $host_cpu in
13872 hppa*64*|ia64*)
13873 # +Z the default
13876 lt_prog_compiler_pic_F77='+Z'
13878 esac
13879 # Is there a better lt_prog_compiler_static that works with the bundled CC?
13880 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13883 irix5* | irix6* | nonstopux*)
13884 lt_prog_compiler_wl_F77='-Wl,'
13885 # PIC (with -KPIC) is the default.
13886 lt_prog_compiler_static_F77='-non_shared'
13889 newsos6)
13890 lt_prog_compiler_pic_F77='-KPIC'
13891 lt_prog_compiler_static_F77='-Bstatic'
13894 linux* | k*bsd*-gnu)
13895 case $cc_basename in
13896 icc* | ecc*)
13897 lt_prog_compiler_wl_F77='-Wl,'
13898 lt_prog_compiler_pic_F77='-KPIC'
13899 lt_prog_compiler_static_F77='-static'
13901 pgcc* | pgf77* | pgf90* | pgf95*)
13902 # Portland Group compilers (*not* the Pentium gcc compiler,
13903 # which looks to be a dead project)
13904 lt_prog_compiler_wl_F77='-Wl,'
13905 lt_prog_compiler_pic_F77='-fpic'
13906 lt_prog_compiler_static_F77='-Bstatic'
13908 ccc*)
13909 lt_prog_compiler_wl_F77='-Wl,'
13910 # All Alpha code is PIC.
13911 lt_prog_compiler_static_F77='-non_shared'
13914 case `$CC -V 2>&1 | sed 5q` in
13915 *Sun\ C*)
13916 # Sun C 5.9
13917 lt_prog_compiler_pic_F77='-KPIC'
13918 lt_prog_compiler_static_F77='-Bstatic'
13919 lt_prog_compiler_wl_F77='-Wl,'
13921 *Sun\ F*)
13922 # Sun Fortran 8.3 passes all unrecognized flags to the linker
13923 lt_prog_compiler_pic_F77='-KPIC'
13924 lt_prog_compiler_static_F77='-Bstatic'
13925 lt_prog_compiler_wl_F77=''
13927 esac
13929 esac
13932 osf3* | osf4* | osf5*)
13933 lt_prog_compiler_wl_F77='-Wl,'
13934 # All OSF/1 code is PIC.
13935 lt_prog_compiler_static_F77='-non_shared'
13938 rdos*)
13939 lt_prog_compiler_static_F77='-non_shared'
13942 solaris*)
13943 lt_prog_compiler_pic_F77='-KPIC'
13944 lt_prog_compiler_static_F77='-Bstatic'
13945 case $cc_basename in
13946 f77* | f90* | f95*)
13947 lt_prog_compiler_wl_F77='-Qoption ld ';;
13949 lt_prog_compiler_wl_F77='-Wl,';;
13950 esac
13953 sunos4*)
13954 lt_prog_compiler_wl_F77='-Qoption ld '
13955 lt_prog_compiler_pic_F77='-PIC'
13956 lt_prog_compiler_static_F77='-Bstatic'
13959 sysv4 | sysv4.2uw2* | sysv4.3*)
13960 lt_prog_compiler_wl_F77='-Wl,'
13961 lt_prog_compiler_pic_F77='-KPIC'
13962 lt_prog_compiler_static_F77='-Bstatic'
13965 sysv4*MP*)
13966 if test -d /usr/nec ;then
13967 lt_prog_compiler_pic_F77='-Kconform_pic'
13968 lt_prog_compiler_static_F77='-Bstatic'
13972 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13973 lt_prog_compiler_wl_F77='-Wl,'
13974 lt_prog_compiler_pic_F77='-KPIC'
13975 lt_prog_compiler_static_F77='-Bstatic'
13978 unicos*)
13979 lt_prog_compiler_wl_F77='-Wl,'
13980 lt_prog_compiler_can_build_shared_F77=no
13983 uts4*)
13984 lt_prog_compiler_pic_F77='-pic'
13985 lt_prog_compiler_static_F77='-Bstatic'
13989 lt_prog_compiler_can_build_shared_F77=no
13991 esac
13994 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13995 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
13998 # Check to make sure the PIC flag actually works.
14000 if test -n "$lt_prog_compiler_pic_F77"; then
14002 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
14003 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
14004 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
14005 echo $ECHO_N "(cached) $ECHO_C" >&6
14006 else
14007 lt_prog_compiler_pic_works_F77=no
14008 ac_outfile=conftest.$ac_objext
14009 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14010 lt_compiler_flag="$lt_prog_compiler_pic_F77"
14011 # Insert the option either (1) after the last *FLAGS variable, or
14012 # (2) before a word containing "conftest.", or (3) at the end.
14013 # Note that $ac_compile itself does not contain backslashes and begins
14014 # with a dollar sign (not a hyphen), so the echo should work correctly.
14015 # The option is referenced via a variable to avoid confusing sed.
14016 lt_compile=`echo "$ac_compile" | $SED \
14017 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14018 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14019 -e 's:$: $lt_compiler_flag:'`
14020 (eval echo "\"\$as_me:14020: $lt_compile\"" >&5)
14021 (eval "$lt_compile" 2>conftest.err)
14022 ac_status=$?
14023 cat conftest.err >&5
14024 echo "$as_me:14024: \$? = $ac_status" >&5
14025 if (exit $ac_status) && test -s "$ac_outfile"; then
14026 # The compiler can only warn and ignore the option if not recognized
14027 # So say no if there are warnings other than the usual output.
14028 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14029 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14030 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14031 lt_prog_compiler_pic_works_F77=yes
14034 $rm conftest*
14037 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
14038 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
14040 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
14041 case $lt_prog_compiler_pic_F77 in
14042 "" | " "*) ;;
14043 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
14044 esac
14045 else
14046 lt_prog_compiler_pic_F77=
14047 lt_prog_compiler_can_build_shared_F77=no
14051 case $host_os in
14052 # For platforms which do not support PIC, -DPIC is meaningless:
14053 *djgpp*)
14054 lt_prog_compiler_pic_F77=
14057 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14059 esac
14062 # Check to make sure the static flag actually works.
14064 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
14065 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14066 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14067 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
14068 echo $ECHO_N "(cached) $ECHO_C" >&6
14069 else
14070 lt_prog_compiler_static_works_F77=no
14071 save_LDFLAGS="$LDFLAGS"
14072 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14073 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14074 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14075 # The linker can only warn and ignore the option if not recognized
14076 # So say no if there are warnings
14077 if test -s conftest.err; then
14078 # Append any errors to the config.log.
14079 cat conftest.err 1>&5
14080 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14081 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14082 if diff conftest.exp conftest.er2 >/dev/null; then
14083 lt_prog_compiler_static_works_F77=yes
14085 else
14086 lt_prog_compiler_static_works_F77=yes
14089 $rm conftest*
14090 LDFLAGS="$save_LDFLAGS"
14093 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
14094 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
14096 if test x"$lt_prog_compiler_static_works_F77" = xyes; then
14098 else
14099 lt_prog_compiler_static_F77=
14103 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14104 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14105 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14106 echo $ECHO_N "(cached) $ECHO_C" >&6
14107 else
14108 lt_cv_prog_compiler_c_o_F77=no
14109 $rm -r conftest 2>/dev/null
14110 mkdir conftest
14111 cd conftest
14112 mkdir out
14113 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14115 lt_compiler_flag="-o out/conftest2.$ac_objext"
14116 # Insert the option either (1) after the last *FLAGS variable, or
14117 # (2) before a word containing "conftest.", or (3) at the end.
14118 # Note that $ac_compile itself does not contain backslashes and begins
14119 # with a dollar sign (not a hyphen), so the echo should work correctly.
14120 lt_compile=`echo "$ac_compile" | $SED \
14121 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14122 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14123 -e 's:$: $lt_compiler_flag:'`
14124 (eval echo "\"\$as_me:14124: $lt_compile\"" >&5)
14125 (eval "$lt_compile" 2>out/conftest.err)
14126 ac_status=$?
14127 cat out/conftest.err >&5
14128 echo "$as_me:14128: \$? = $ac_status" >&5
14129 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14130 then
14131 # The compiler can only warn and ignore the option if not recognized
14132 # So say no if there are warnings
14133 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14134 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14135 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14136 lt_cv_prog_compiler_c_o_F77=yes
14139 chmod u+w . 2>&5
14140 $rm conftest*
14141 # SGI C++ compiler will create directory out/ii_files/ for
14142 # template instantiation
14143 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14144 $rm out/* && rmdir out
14145 cd ..
14146 rmdir conftest
14147 $rm conftest*
14150 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14151 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
14154 hard_links="nottested"
14155 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14156 # do not overwrite the value of need_locks provided by the user
14157 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14158 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14159 hard_links=yes
14160 $rm conftest*
14161 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14162 touch conftest.a
14163 ln conftest.a conftest.b 2>&5 || hard_links=no
14164 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14165 { echo "$as_me:$LINENO: result: $hard_links" >&5
14166 echo "${ECHO_T}$hard_links" >&6; }
14167 if test "$hard_links" = no; then
14168 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14169 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14170 need_locks=warn
14172 else
14173 need_locks=no
14176 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14177 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14179 runpath_var=
14180 allow_undefined_flag_F77=
14181 enable_shared_with_static_runtimes_F77=no
14182 archive_cmds_F77=
14183 archive_expsym_cmds_F77=
14184 old_archive_From_new_cmds_F77=
14185 old_archive_from_expsyms_cmds_F77=
14186 export_dynamic_flag_spec_F77=
14187 whole_archive_flag_spec_F77=
14188 thread_safe_flag_spec_F77=
14189 hardcode_libdir_flag_spec_F77=
14190 hardcode_libdir_flag_spec_ld_F77=
14191 hardcode_libdir_separator_F77=
14192 hardcode_direct_F77=no
14193 hardcode_minus_L_F77=no
14194 hardcode_shlibpath_var_F77=unsupported
14195 link_all_deplibs_F77=unknown
14196 hardcode_automatic_F77=no
14197 module_cmds_F77=
14198 module_expsym_cmds_F77=
14199 always_export_symbols_F77=no
14200 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14201 # include_expsyms should be a list of space-separated symbols to be *always*
14202 # included in the symbol list
14203 include_expsyms_F77=
14204 # exclude_expsyms can be an extended regexp of symbols to exclude
14205 # it will be wrapped by ` (' and `)$', so one must not match beginning or
14206 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14207 # as well as any symbol that contains `d'.
14208 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
14209 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14210 # platforms (ab)use it in PIC code, but their linkers get confused if
14211 # the symbol is explicitly referenced. Since portable code cannot
14212 # rely on this symbol name, it's probably fine to never include it in
14213 # preloaded symbol tables.
14214 extract_expsyms_cmds=
14215 # Just being paranoid about ensuring that cc_basename is set.
14216 for cc_temp in $compiler""; do
14217 case $cc_temp in
14218 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14219 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14220 \-*) ;;
14221 *) break;;
14222 esac
14223 done
14224 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14226 case $host_os in
14227 cygwin* | mingw* | pw32*)
14228 # FIXME: the MSVC++ port hasn't been tested in a loooong time
14229 # When not using gcc, we currently assume that we are using
14230 # Microsoft Visual C++.
14231 if test "$GCC" != yes; then
14232 with_gnu_ld=no
14235 interix*)
14236 # we just hope/assume this is gcc and not c89 (= MSVC++)
14237 with_gnu_ld=yes
14239 openbsd*)
14240 with_gnu_ld=no
14242 esac
14244 ld_shlibs_F77=yes
14245 if test "$with_gnu_ld" = yes; then
14246 # If archive_cmds runs LD, not CC, wlarc should be empty
14247 wlarc='${wl}'
14249 # Set some defaults for GNU ld with shared library support. These
14250 # are reset later if shared libraries are not supported. Putting them
14251 # here allows them to be overridden if necessary.
14252 runpath_var=LD_RUN_PATH
14253 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14254 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14255 # ancient GNU ld didn't support --whole-archive et. al.
14256 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14257 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14258 else
14259 whole_archive_flag_spec_F77=
14261 supports_anon_versioning=no
14262 case `$LD -v 2>/dev/null` in
14263 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14264 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14265 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14266 *\ 2.11.*) ;; # other 2.11 versions
14267 *) supports_anon_versioning=yes ;;
14268 esac
14270 # See if GNU ld supports shared libraries.
14271 case $host_os in
14272 aix3* | aix4* | aix5*)
14273 # On AIX/PPC, the GNU linker is very broken
14274 if test "$host_cpu" != ia64; then
14275 ld_shlibs_F77=no
14276 cat <<EOF 1>&2
14278 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
14279 *** to be unable to reliably create shared libraries on AIX.
14280 *** Therefore, libtool is disabling shared libraries support. If you
14281 *** really care for shared libraries, you may want to modify your PATH
14282 *** so that a non-GNU linker is found, and then restart.
14288 amigaos*)
14289 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)'
14290 hardcode_libdir_flag_spec_F77='-L$libdir'
14291 hardcode_minus_L_F77=yes
14293 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14294 # that the semantics of dynamic libraries on AmigaOS, at least up
14295 # to version 4, is to share data among multiple programs linked
14296 # with the same dynamic library. Since this doesn't match the
14297 # behavior of shared libraries on other platforms, we can't use
14298 # them.
14299 ld_shlibs_F77=no
14302 beos*)
14303 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14304 allow_undefined_flag_F77=unsupported
14305 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14306 # support --undefined. This deserves some investigation. FIXME
14307 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14308 else
14309 ld_shlibs_F77=no
14313 cygwin* | mingw* | pw32*)
14314 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14315 # as there is no search path for DLLs.
14316 hardcode_libdir_flag_spec_F77='-L$libdir'
14317 allow_undefined_flag_F77=unsupported
14318 always_export_symbols_F77=no
14319 enable_shared_with_static_runtimes_F77=yes
14320 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
14322 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14323 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14324 # If the export-symbols file already is a .def file (1st line
14325 # is EXPORTS), use it as is; otherwise, prepend...
14326 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14327 cp $export_symbols $output_objdir/$soname.def;
14328 else
14329 echo EXPORTS > $output_objdir/$soname.def;
14330 cat $export_symbols >> $output_objdir/$soname.def;
14332 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14333 else
14334 ld_shlibs_F77=no
14338 interix[3-9]*)
14339 hardcode_direct_F77=no
14340 hardcode_shlibpath_var_F77=no
14341 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14342 export_dynamic_flag_spec_F77='${wl}-E'
14343 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14344 # Instead, shared libraries are loaded at an image base (0x10000000 by
14345 # default) and relocated if they conflict, which is a slow very memory
14346 # consuming and fragmenting process. To avoid this, we pick a random,
14347 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14348 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14349 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'
14350 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'
14353 gnu* | linux* | k*bsd*-gnu)
14354 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14355 tmp_addflag=
14356 case $cc_basename,$host_cpu in
14357 pgcc*) # Portland Group C compiler
14358 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'
14359 tmp_addflag=' $pic_flag'
14361 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
14362 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'
14363 tmp_addflag=' $pic_flag -Mnomain' ;;
14364 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
14365 tmp_addflag=' -i_dynamic' ;;
14366 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
14367 tmp_addflag=' -i_dynamic -nofor_main' ;;
14368 ifc* | ifort*) # Intel Fortran compiler
14369 tmp_addflag=' -nofor_main' ;;
14370 esac
14371 case `$CC -V 2>&1 | sed 5q` in
14372 *Sun\ C*) # Sun C 5.9
14373 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'
14374 tmp_sharedflag='-G' ;;
14375 *Sun\ F*) # Sun Fortran 8.3
14376 tmp_sharedflag='-G' ;;
14378 tmp_sharedflag='-shared' ;;
14379 esac
14380 archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14382 if test $supports_anon_versioning = yes; then
14383 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14384 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14385 $echo "local: *; };" >> $output_objdir/$libname.ver~
14386 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14388 link_all_deplibs_F77=no
14389 else
14390 ld_shlibs_F77=no
14394 netbsd* | netbsdelf*-gnu)
14395 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14396 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14397 wlarc=
14398 else
14399 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14400 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14404 solaris*)
14405 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14406 ld_shlibs_F77=no
14407 cat <<EOF 1>&2
14409 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
14410 *** create shared libraries on Solaris systems. Therefore, libtool
14411 *** is disabling shared libraries support. We urge you to upgrade GNU
14412 *** binutils to release 2.9.1 or newer. Another option is to modify
14413 *** your PATH or compiler configuration so that the native linker is
14414 *** used, and then restart.
14417 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14418 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14419 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14420 else
14421 ld_shlibs_F77=no
14425 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14426 case `$LD -v 2>&1` in
14427 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14428 ld_shlibs_F77=no
14429 cat <<_LT_EOF 1>&2
14431 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14432 *** reliably create shared libraries on SCO systems. Therefore, libtool
14433 *** is disabling shared libraries support. We urge you to upgrade GNU
14434 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
14435 *** your PATH or compiler configuration so that the native linker is
14436 *** used, and then restart.
14438 _LT_EOF
14441 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14442 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
14443 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
14444 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
14445 else
14446 ld_shlibs_F77=no
14449 esac
14452 sunos4*)
14453 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14454 wlarc=
14455 hardcode_direct_F77=yes
14456 hardcode_shlibpath_var_F77=no
14460 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14461 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14462 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14463 else
14464 ld_shlibs_F77=no
14467 esac
14469 if test "$ld_shlibs_F77" = no; then
14470 runpath_var=
14471 hardcode_libdir_flag_spec_F77=
14472 export_dynamic_flag_spec_F77=
14473 whole_archive_flag_spec_F77=
14475 else
14476 # PORTME fill in a description of your system's linker (not GNU ld)
14477 case $host_os in
14478 aix3*)
14479 allow_undefined_flag_F77=unsupported
14480 always_export_symbols_F77=yes
14481 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'
14482 # Note: this linker hardcodes the directories in LIBPATH if there
14483 # are no directories specified by -L.
14484 hardcode_minus_L_F77=yes
14485 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14486 # Neither direct hardcoding nor static linking is supported with a
14487 # broken collect2.
14488 hardcode_direct_F77=unsupported
14492 aix4* | aix5*)
14493 if test "$host_cpu" = ia64; then
14494 # On IA64, the linker does run time linking by default, so we don't
14495 # have to do anything special.
14496 aix_use_runtimelinking=no
14497 exp_sym_flag='-Bexport'
14498 no_entry_flag=""
14499 else
14500 # If we're using GNU nm, then we don't want the "-C" option.
14501 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14502 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14503 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'
14504 else
14505 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'
14507 aix_use_runtimelinking=no
14509 # Test if we are trying to use run time linking or normal
14510 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14511 # need to do runtime linking.
14512 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
14513 for ld_flag in $LDFLAGS; do
14514 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14515 aix_use_runtimelinking=yes
14516 break
14518 done
14520 esac
14522 exp_sym_flag='-bexport'
14523 no_entry_flag='-bnoentry'
14526 # When large executables or shared objects are built, AIX ld can
14527 # have problems creating the table of contents. If linking a library
14528 # or program results in "error TOC overflow" add -mminimal-toc to
14529 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14530 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14532 archive_cmds_F77=''
14533 hardcode_direct_F77=yes
14534 hardcode_libdir_separator_F77=':'
14535 link_all_deplibs_F77=yes
14537 if test "$GCC" = yes; then
14538 case $host_os in aix4.[012]|aix4.[012].*)
14539 # We only want to do this on AIX 4.2 and lower, the check
14540 # below for broken collect2 doesn't work under 4.3+
14541 collect2name=`${CC} -print-prog-name=collect2`
14542 if test -f "$collect2name" && \
14543 strings "$collect2name" | grep resolve_lib_name >/dev/null
14544 then
14545 # We have reworked collect2
14547 else
14548 # We have old collect2
14549 hardcode_direct_F77=unsupported
14550 # It fails to find uninstalled libraries when the uninstalled
14551 # path is not listed in the libpath. Setting hardcode_minus_L
14552 # to unsupported forces relinking
14553 hardcode_minus_L_F77=yes
14554 hardcode_libdir_flag_spec_F77='-L$libdir'
14555 hardcode_libdir_separator_F77=
14558 esac
14559 shared_flag='-shared'
14560 if test "$aix_use_runtimelinking" = yes; then
14561 shared_flag="$shared_flag "'${wl}-G'
14563 else
14564 # not using gcc
14565 if test "$host_cpu" = ia64; then
14566 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14567 # chokes on -Wl,-G. The following line is correct:
14568 shared_flag='-G'
14569 else
14570 if test "$aix_use_runtimelinking" = yes; then
14571 shared_flag='${wl}-G'
14572 else
14573 shared_flag='${wl}-bM:SRE'
14578 # It seems that -bexpall does not export symbols beginning with
14579 # underscore (_), so it is better to generate a list of symbols to export.
14580 always_export_symbols_F77=yes
14581 if test "$aix_use_runtimelinking" = yes; then
14582 # Warning - without using the other runtime loading flags (-brtl),
14583 # -berok will link without error, but may produce a broken library.
14584 allow_undefined_flag_F77='-berok'
14585 # Determine the default libpath from the value encoded in an empty executable.
14586 cat >conftest.$ac_ext <<_ACEOF
14587 program main
14590 _ACEOF
14591 rm -f conftest.$ac_objext conftest$ac_exeext
14592 if { (ac_try="$ac_link"
14593 case "(($ac_try" in
14594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14595 *) ac_try_echo=$ac_try;;
14596 esac
14597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14598 (eval "$ac_link") 2>conftest.er1
14599 ac_status=$?
14600 grep -v '^ *+' conftest.er1 >conftest.err
14601 rm -f conftest.er1
14602 cat conftest.err >&5
14603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14604 (exit $ac_status); } && {
14605 test -z "$ac_f77_werror_flag" ||
14606 test ! -s conftest.err
14607 } && test -s conftest$ac_exeext &&
14608 $as_test_x conftest$ac_exeext; then
14610 lt_aix_libpath_sed='
14611 /Import File Strings/,/^$/ {
14612 /^0/ {
14613 s/^0 *\(.*\)$/\1/
14617 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14618 # Check for a 64-bit object if we didn't find anything.
14619 if test -z "$aix_libpath"; then
14620 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14622 else
14623 echo "$as_me: failed program was:" >&5
14624 sed 's/^/| /' conftest.$ac_ext >&5
14629 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14630 conftest$ac_exeext conftest.$ac_ext
14631 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14633 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14634 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"
14635 else
14636 if test "$host_cpu" = ia64; then
14637 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
14638 allow_undefined_flag_F77="-z nodefs"
14639 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"
14640 else
14641 # Determine the default libpath from the value encoded in an empty executable.
14642 cat >conftest.$ac_ext <<_ACEOF
14643 program main
14646 _ACEOF
14647 rm -f conftest.$ac_objext conftest$ac_exeext
14648 if { (ac_try="$ac_link"
14649 case "(($ac_try" in
14650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14651 *) ac_try_echo=$ac_try;;
14652 esac
14653 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14654 (eval "$ac_link") 2>conftest.er1
14655 ac_status=$?
14656 grep -v '^ *+' conftest.er1 >conftest.err
14657 rm -f conftest.er1
14658 cat conftest.err >&5
14659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14660 (exit $ac_status); } && {
14661 test -z "$ac_f77_werror_flag" ||
14662 test ! -s conftest.err
14663 } && test -s conftest$ac_exeext &&
14664 $as_test_x conftest$ac_exeext; then
14666 lt_aix_libpath_sed='
14667 /Import File Strings/,/^$/ {
14668 /^0/ {
14669 s/^0 *\(.*\)$/\1/
14673 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14674 # Check for a 64-bit object if we didn't find anything.
14675 if test -z "$aix_libpath"; then
14676 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14678 else
14679 echo "$as_me: failed program was:" >&5
14680 sed 's/^/| /' conftest.$ac_ext >&5
14685 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14686 conftest$ac_exeext conftest.$ac_ext
14687 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14689 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14690 # Warning - without using the other run time loading flags,
14691 # -berok will link without error, but may produce a broken library.
14692 no_undefined_flag_F77=' ${wl}-bernotok'
14693 allow_undefined_flag_F77=' ${wl}-berok'
14694 # Exported symbols can be pulled into shared objects from archives
14695 whole_archive_flag_spec_F77='$convenience'
14696 archive_cmds_need_lc_F77=yes
14697 # This is similar to how AIX traditionally builds its shared libraries.
14698 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'
14703 amigaos*)
14704 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)'
14705 hardcode_libdir_flag_spec_F77='-L$libdir'
14706 hardcode_minus_L_F77=yes
14707 # see comment about different semantics on the GNU ld section
14708 ld_shlibs_F77=no
14711 bsdi[45]*)
14712 export_dynamic_flag_spec_F77=-rdynamic
14715 cygwin* | mingw* | pw32*)
14716 # When not using gcc, we currently assume that we are using
14717 # Microsoft Visual C++.
14718 # hardcode_libdir_flag_spec is actually meaningless, as there is
14719 # no search path for DLLs.
14720 hardcode_libdir_flag_spec_F77=' '
14721 allow_undefined_flag_F77=unsupported
14722 # Tell ltmain to make .lib files, not .a files.
14723 libext=lib
14724 # Tell ltmain to make .dll files, not .so files.
14725 shrext_cmds=".dll"
14726 # FIXME: Setting linknames here is a bad hack.
14727 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
14728 # The linker will automatically build a .lib file if we build a DLL.
14729 old_archive_From_new_cmds_F77='true'
14730 # FIXME: Should let the user specify the lib program.
14731 old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs'
14732 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
14733 enable_shared_with_static_runtimes_F77=yes
14736 darwin* | rhapsody*)
14737 case $host_os in
14738 rhapsody* | darwin1.[012])
14739 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
14741 *) # Darwin 1.3 on
14742 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14743 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14744 else
14745 case ${MACOSX_DEPLOYMENT_TARGET} in
14746 10.[012])
14747 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14749 10.*)
14750 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
14752 esac
14755 esac
14756 archive_cmds_need_lc_F77=no
14757 hardcode_direct_F77=no
14758 hardcode_automatic_F77=yes
14759 hardcode_shlibpath_var_F77=unsupported
14760 whole_archive_flag_spec_F77=''
14761 link_all_deplibs_F77=yes
14762 if test "$GCC" = yes ; then
14763 output_verbose_link_cmd='echo'
14764 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14765 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14766 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14767 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14768 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}'
14769 else
14770 case $cc_basename in
14771 xlc*)
14772 output_verbose_link_cmd='echo'
14773 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
14774 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14775 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14776 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}'
14777 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}'
14780 ld_shlibs_F77=no
14782 esac
14786 dgux*)
14787 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14788 hardcode_libdir_flag_spec_F77='-L$libdir'
14789 hardcode_shlibpath_var_F77=no
14792 freebsd1*)
14793 ld_shlibs_F77=no
14796 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14797 # support. Future versions do this automatically, but an explicit c++rt0.o
14798 # does not break anything, and helps significantly (at the cost of a little
14799 # extra space).
14800 freebsd2.2*)
14801 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14802 hardcode_libdir_flag_spec_F77='-R$libdir'
14803 hardcode_direct_F77=yes
14804 hardcode_shlibpath_var_F77=no
14807 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14808 freebsd2*)
14809 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14810 hardcode_direct_F77=yes
14811 hardcode_minus_L_F77=yes
14812 hardcode_shlibpath_var_F77=no
14815 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14816 freebsd* | dragonfly*)
14817 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14818 hardcode_libdir_flag_spec_F77='-R$libdir'
14819 hardcode_direct_F77=yes
14820 hardcode_shlibpath_var_F77=no
14823 hpux9*)
14824 if test "$GCC" = yes; then
14825 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'
14826 else
14827 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'
14829 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14830 hardcode_libdir_separator_F77=:
14831 hardcode_direct_F77=yes
14833 # hardcode_minus_L: Not really in the search PATH,
14834 # but as the default location of the library.
14835 hardcode_minus_L_F77=yes
14836 export_dynamic_flag_spec_F77='${wl}-E'
14839 hpux10*)
14840 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14841 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14842 else
14843 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14845 if test "$with_gnu_ld" = no; then
14846 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14847 hardcode_libdir_separator_F77=:
14849 hardcode_direct_F77=yes
14850 export_dynamic_flag_spec_F77='${wl}-E'
14852 # hardcode_minus_L: Not really in the search PATH,
14853 # but as the default location of the library.
14854 hardcode_minus_L_F77=yes
14858 hpux11*)
14859 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14860 case $host_cpu in
14861 hppa*64*)
14862 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14864 ia64*)
14865 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14868 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14870 esac
14871 else
14872 case $host_cpu in
14873 hppa*64*)
14874 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14876 ia64*)
14877 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14880 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14882 esac
14884 if test "$with_gnu_ld" = no; then
14885 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14886 hardcode_libdir_separator_F77=:
14888 case $host_cpu in
14889 hppa*64*|ia64*)
14890 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14891 hardcode_direct_F77=no
14892 hardcode_shlibpath_var_F77=no
14895 hardcode_direct_F77=yes
14896 export_dynamic_flag_spec_F77='${wl}-E'
14898 # hardcode_minus_L: Not really in the search PATH,
14899 # but as the default location of the library.
14900 hardcode_minus_L_F77=yes
14902 esac
14906 irix5* | irix6* | nonstopux*)
14907 if test "$GCC" = yes; then
14908 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'
14909 else
14910 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'
14911 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14913 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14914 hardcode_libdir_separator_F77=:
14915 link_all_deplibs_F77=yes
14918 netbsd* | netbsdelf*-gnu)
14919 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14920 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
14921 else
14922 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
14924 hardcode_libdir_flag_spec_F77='-R$libdir'
14925 hardcode_direct_F77=yes
14926 hardcode_shlibpath_var_F77=no
14929 newsos6)
14930 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14931 hardcode_direct_F77=yes
14932 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14933 hardcode_libdir_separator_F77=:
14934 hardcode_shlibpath_var_F77=no
14937 openbsd*)
14938 if test -f /usr/libexec/ld.so; then
14939 hardcode_direct_F77=yes
14940 hardcode_shlibpath_var_F77=no
14941 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14942 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14943 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
14944 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14945 export_dynamic_flag_spec_F77='${wl}-E'
14946 else
14947 case $host_os in
14948 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14949 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14950 hardcode_libdir_flag_spec_F77='-R$libdir'
14953 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14954 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14956 esac
14958 else
14959 ld_shlibs_F77=no
14963 os2*)
14964 hardcode_libdir_flag_spec_F77='-L$libdir'
14965 hardcode_minus_L_F77=yes
14966 allow_undefined_flag_F77=unsupported
14967 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'
14968 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14971 osf3*)
14972 if test "$GCC" = yes; then
14973 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14974 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'
14975 else
14976 allow_undefined_flag_F77=' -expect_unresolved \*'
14977 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'
14979 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14980 hardcode_libdir_separator_F77=:
14983 osf4* | osf5*) # as osf3* with the addition of -msym flag
14984 if test "$GCC" = yes; then
14985 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14986 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'
14987 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14988 else
14989 allow_undefined_flag_F77=' -expect_unresolved \*'
14990 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'
14991 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~
14992 $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'
14994 # Both c and cxx compiler support -rpath directly
14995 hardcode_libdir_flag_spec_F77='-rpath $libdir'
14997 hardcode_libdir_separator_F77=:
15000 solaris*)
15001 no_undefined_flag_F77=' -z text'
15002 if test "$GCC" = yes; then
15003 wlarc='${wl}'
15004 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15005 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15006 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15007 else
15008 wlarc=''
15009 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15010 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15011 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15013 hardcode_libdir_flag_spec_F77='-R$libdir'
15014 hardcode_shlibpath_var_F77=no
15015 case $host_os in
15016 solaris2.[0-5] | solaris2.[0-5].*) ;;
15018 # The compiler driver will combine and reorder linker options,
15019 # but understands `-z linker_flag'. GCC discards it without `$wl',
15020 # but is careful enough not to reorder.
15021 # Supported since Solaris 2.6 (maybe 2.5.1?)
15022 if test "$GCC" = yes; then
15023 whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
15024 else
15025 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract'
15028 esac
15029 link_all_deplibs_F77=yes
15032 sunos4*)
15033 if test "x$host_vendor" = xsequent; then
15034 # Use $CC to link under sequent, because it throws in some extra .o
15035 # files that make .init and .fini sections work.
15036 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15037 else
15038 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15040 hardcode_libdir_flag_spec_F77='-L$libdir'
15041 hardcode_direct_F77=yes
15042 hardcode_minus_L_F77=yes
15043 hardcode_shlibpath_var_F77=no
15046 sysv4)
15047 case $host_vendor in
15048 sni)
15049 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15050 hardcode_direct_F77=yes # is this really true???
15052 siemens)
15053 ## LD is ld it makes a PLAMLIB
15054 ## CC just makes a GrossModule.
15055 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15056 reload_cmds_F77='$CC -r -o $output$reload_objs'
15057 hardcode_direct_F77=no
15059 motorola)
15060 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15061 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
15063 esac
15064 runpath_var='LD_RUN_PATH'
15065 hardcode_shlibpath_var_F77=no
15068 sysv4.3*)
15069 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15070 hardcode_shlibpath_var_F77=no
15071 export_dynamic_flag_spec_F77='-Bexport'
15074 sysv4*MP*)
15075 if test -d /usr/nec; then
15076 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15077 hardcode_shlibpath_var_F77=no
15078 runpath_var=LD_RUN_PATH
15079 hardcode_runpath_var=yes
15080 ld_shlibs_F77=yes
15084 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15085 no_undefined_flag_F77='${wl}-z,text'
15086 archive_cmds_need_lc_F77=no
15087 hardcode_shlibpath_var_F77=no
15088 runpath_var='LD_RUN_PATH'
15090 if test "$GCC" = yes; then
15091 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15092 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15093 else
15094 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15095 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15099 sysv5* | sco3.2v5* | sco5v6*)
15100 # Note: We can NOT use -z defs as we might desire, because we do not
15101 # link with -lc, and that would cause any symbols used from libc to
15102 # always be unresolved, which means just about no library would
15103 # ever link correctly. If we're not using GNU ld we use -z text
15104 # though, which does catch some bad symbols but isn't as heavy-handed
15105 # as -z defs.
15106 no_undefined_flag_F77='${wl}-z,text'
15107 allow_undefined_flag_F77='${wl}-z,nodefs'
15108 archive_cmds_need_lc_F77=no
15109 hardcode_shlibpath_var_F77=no
15110 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15111 hardcode_libdir_separator_F77=':'
15112 link_all_deplibs_F77=yes
15113 export_dynamic_flag_spec_F77='${wl}-Bexport'
15114 runpath_var='LD_RUN_PATH'
15116 if test "$GCC" = yes; then
15117 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15118 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15119 else
15120 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15121 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15125 uts4*)
15126 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15127 hardcode_libdir_flag_spec_F77='-L$libdir'
15128 hardcode_shlibpath_var_F77=no
15132 ld_shlibs_F77=no
15134 esac
15137 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
15138 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
15139 test "$ld_shlibs_F77" = no && can_build_shared=no
15142 # Do we need to explicitly link libc?
15144 case "x$archive_cmds_need_lc_F77" in
15145 x|xyes)
15146 # Assume -lc should be added
15147 archive_cmds_need_lc_F77=yes
15149 if test "$enable_shared" = yes && test "$GCC" = yes; then
15150 case $archive_cmds_F77 in
15151 *'~'*)
15152 # FIXME: we may have to deal with multi-command sequences.
15154 '$CC '*)
15155 # Test whether the compiler implicitly links with -lc since on some
15156 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15157 # to ld, don't add -lc before -lgcc.
15158 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15159 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
15160 $rm conftest*
15161 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15163 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15164 (eval $ac_compile) 2>&5
15165 ac_status=$?
15166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15167 (exit $ac_status); } 2>conftest.err; then
15168 soname=conftest
15169 lib=conftest
15170 libobjs=conftest.$ac_objext
15171 deplibs=
15172 wl=$lt_prog_compiler_wl_F77
15173 pic_flag=$lt_prog_compiler_pic_F77
15174 compiler_flags=-v
15175 linker_flags=-v
15176 verstring=
15177 output_objdir=.
15178 libname=conftest
15179 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15180 allow_undefined_flag_F77=
15181 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15182 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15183 ac_status=$?
15184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15185 (exit $ac_status); }
15186 then
15187 archive_cmds_need_lc_F77=no
15188 else
15189 archive_cmds_need_lc_F77=yes
15191 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15192 else
15193 cat conftest.err 1>&5
15195 $rm conftest*
15196 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15197 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
15199 esac
15202 esac
15204 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15205 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
15206 library_names_spec=
15207 libname_spec='lib$name'
15208 soname_spec=
15209 shrext_cmds=".so"
15210 postinstall_cmds=
15211 postuninstall_cmds=
15212 finish_cmds=
15213 finish_eval=
15214 shlibpath_var=
15215 shlibpath_overrides_runpath=unknown
15216 version_type=none
15217 dynamic_linker="$host_os ld.so"
15218 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15220 need_lib_prefix=unknown
15221 hardcode_into_libs=no
15223 # when you set need_version to no, make sure it does not cause -set_version
15224 # flags to be left without arguments
15225 need_version=unknown
15227 case $host_os in
15228 aix3*)
15229 version_type=linux
15230 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15231 shlibpath_var=LIBPATH
15233 # AIX 3 has no versioning support, so we append a major version to the name.
15234 soname_spec='${libname}${release}${shared_ext}$major'
15237 aix4* | aix5*)
15238 version_type=linux
15239 need_lib_prefix=no
15240 need_version=no
15241 hardcode_into_libs=yes
15242 if test "$host_cpu" = ia64; then
15243 # AIX 5 supports IA64
15244 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15245 shlibpath_var=LD_LIBRARY_PATH
15246 else
15247 # With GCC up to 2.95.x, collect2 would create an import file
15248 # for dependence libraries. The import file would start with
15249 # the line `#! .'. This would cause the generated library to
15250 # depend on `.', always an invalid library. This was fixed in
15251 # development snapshots of GCC prior to 3.0.
15252 case $host_os in
15253 aix4 | aix4.[01] | aix4.[01].*)
15254 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15255 echo ' yes '
15256 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15258 else
15259 can_build_shared=no
15262 esac
15263 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15264 # soname into executable. Probably we can add versioning support to
15265 # collect2, so additional links can be useful in future.
15266 if test "$aix_use_runtimelinking" = yes; then
15267 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15268 # instead of lib<name>.a to let people know that these are not
15269 # typical AIX shared libraries.
15270 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15271 else
15272 # We preserve .a as extension for shared libraries through AIX4.2
15273 # and later when we are not doing run time linking.
15274 library_names_spec='${libname}${release}.a $libname.a'
15275 soname_spec='${libname}${release}${shared_ext}$major'
15277 shlibpath_var=LIBPATH
15281 amigaos*)
15282 library_names_spec='$libname.ixlibrary $libname.a'
15283 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15284 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'
15287 beos*)
15288 library_names_spec='${libname}${shared_ext}'
15289 dynamic_linker="$host_os ld.so"
15290 shlibpath_var=LIBRARY_PATH
15293 bsdi[45]*)
15294 version_type=linux
15295 need_version=no
15296 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15297 soname_spec='${libname}${release}${shared_ext}$major'
15298 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15299 shlibpath_var=LD_LIBRARY_PATH
15300 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15301 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15302 # the default ld.so.conf also contains /usr/contrib/lib and
15303 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15304 # libtool to hard-code these into programs
15307 cygwin* | mingw* | pw32*)
15308 version_type=windows
15309 shrext_cmds=".dll"
15310 need_version=no
15311 need_lib_prefix=no
15313 case $GCC,$host_os in
15314 yes,cygwin* | yes,mingw* | yes,pw32*)
15315 library_names_spec='$libname.dll.a'
15316 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15317 postinstall_cmds='base_file=`basename \${file}`~
15318 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15319 dldir=$destdir/`dirname \$dlpath`~
15320 test -d \$dldir || mkdir -p \$dldir~
15321 $install_prog $dir/$dlname \$dldir/$dlname~
15322 chmod a+x \$dldir/$dlname'
15323 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15324 dlpath=$dir/\$dldll~
15325 $rm \$dlpath'
15326 shlibpath_overrides_runpath=yes
15328 case $host_os in
15329 cygwin*)
15330 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15331 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15332 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15334 mingw*)
15335 # MinGW DLLs use traditional 'lib' prefix
15336 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15337 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15338 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15339 # It is most probably a Windows format PATH printed by
15340 # mingw gcc, but we are running on Cygwin. Gcc prints its search
15341 # path with ; separators, and with drive letters. We can handle the
15342 # drive letters (cygwin fileutils understands them), so leave them,
15343 # especially as we might pass files found there to a mingw objdump,
15344 # which wouldn't understand a cygwinified path. Ahh.
15345 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15346 else
15347 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15350 pw32*)
15351 # pw32 DLLs use 'pw' prefix rather than 'lib'
15352 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15354 esac
15358 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15360 esac
15361 dynamic_linker='Win32 ld.exe'
15362 # FIXME: first we should search . and the directory the executable is in
15363 shlibpath_var=PATH
15366 darwin* | rhapsody*)
15367 dynamic_linker="$host_os dyld"
15368 version_type=darwin
15369 need_lib_prefix=no
15370 need_version=no
15371 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15372 soname_spec='${libname}${release}${major}$shared_ext'
15373 shlibpath_overrides_runpath=yes
15374 shlibpath_var=DYLD_LIBRARY_PATH
15375 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15377 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15380 dgux*)
15381 version_type=linux
15382 need_lib_prefix=no
15383 need_version=no
15384 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15385 soname_spec='${libname}${release}${shared_ext}$major'
15386 shlibpath_var=LD_LIBRARY_PATH
15389 freebsd1*)
15390 dynamic_linker=no
15393 freebsd* | dragonfly*)
15394 # DragonFly does not have aout. When/if they implement a new
15395 # versioning mechanism, adjust this.
15396 if test -x /usr/bin/objformat; then
15397 objformat=`/usr/bin/objformat`
15398 else
15399 case $host_os in
15400 freebsd[123]*) objformat=aout ;;
15401 *) objformat=elf ;;
15402 esac
15404 version_type=freebsd-$objformat
15405 case $version_type in
15406 freebsd-elf*)
15407 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15408 need_version=no
15409 need_lib_prefix=no
15411 freebsd-*)
15412 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15413 need_version=yes
15415 esac
15416 shlibpath_var=LD_LIBRARY_PATH
15417 case $host_os in
15418 freebsd2*)
15419 shlibpath_overrides_runpath=yes
15421 freebsd3.[01]* | freebsdelf3.[01]*)
15422 shlibpath_overrides_runpath=yes
15423 hardcode_into_libs=yes
15425 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15426 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15427 shlibpath_overrides_runpath=no
15428 hardcode_into_libs=yes
15430 *) # from 4.6 on, and DragonFly
15431 shlibpath_overrides_runpath=yes
15432 hardcode_into_libs=yes
15434 esac
15437 gnu*)
15438 version_type=linux
15439 need_lib_prefix=no
15440 need_version=no
15441 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15442 soname_spec='${libname}${release}${shared_ext}$major'
15443 shlibpath_var=LD_LIBRARY_PATH
15444 hardcode_into_libs=yes
15447 hpux9* | hpux10* | hpux11*)
15448 # Give a soname corresponding to the major version so that dld.sl refuses to
15449 # link against other versions.
15450 version_type=sunos
15451 need_lib_prefix=no
15452 need_version=no
15453 case $host_cpu in
15454 ia64*)
15455 shrext_cmds='.so'
15456 hardcode_into_libs=yes
15457 dynamic_linker="$host_os dld.so"
15458 shlibpath_var=LD_LIBRARY_PATH
15459 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15460 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15461 soname_spec='${libname}${release}${shared_ext}$major'
15462 if test "X$HPUX_IA64_MODE" = X32; then
15463 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15464 else
15465 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15467 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15469 hppa*64*)
15470 shrext_cmds='.sl'
15471 hardcode_into_libs=yes
15472 dynamic_linker="$host_os dld.sl"
15473 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15474 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15475 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15476 soname_spec='${libname}${release}${shared_ext}$major'
15477 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15478 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15481 shrext_cmds='.sl'
15482 dynamic_linker="$host_os dld.sl"
15483 shlibpath_var=SHLIB_PATH
15484 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15485 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15486 soname_spec='${libname}${release}${shared_ext}$major'
15488 esac
15489 # HP-UX runs *really* slowly unless shared libraries are mode 555.
15490 postinstall_cmds='chmod 555 $lib'
15493 interix[3-9]*)
15494 version_type=linux
15495 need_lib_prefix=no
15496 need_version=no
15497 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15498 soname_spec='${libname}${release}${shared_ext}$major'
15499 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15500 shlibpath_var=LD_LIBRARY_PATH
15501 shlibpath_overrides_runpath=no
15502 hardcode_into_libs=yes
15505 irix5* | irix6* | nonstopux*)
15506 case $host_os in
15507 nonstopux*) version_type=nonstopux ;;
15509 if test "$lt_cv_prog_gnu_ld" = yes; then
15510 version_type=linux
15511 else
15512 version_type=irix
15513 fi ;;
15514 esac
15515 need_lib_prefix=no
15516 need_version=no
15517 soname_spec='${libname}${release}${shared_ext}$major'
15518 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15519 case $host_os in
15520 irix5* | nonstopux*)
15521 libsuff= shlibsuff=
15524 case $LD in # libtool.m4 will add one of these switches to LD
15525 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15526 libsuff= shlibsuff= libmagic=32-bit;;
15527 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15528 libsuff=32 shlibsuff=N32 libmagic=N32;;
15529 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15530 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15531 *) libsuff= shlibsuff= libmagic=never-match;;
15532 esac
15534 esac
15535 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15536 shlibpath_overrides_runpath=no
15537 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15538 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15539 hardcode_into_libs=yes
15542 # No shared lib support for Linux oldld, aout, or coff.
15543 linux*oldld* | linux*aout* | linux*coff*)
15544 dynamic_linker=no
15547 # This must be Linux ELF.
15548 linux* | k*bsd*-gnu)
15549 version_type=linux
15550 need_lib_prefix=no
15551 need_version=no
15552 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15553 soname_spec='${libname}${release}${shared_ext}$major'
15554 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15555 shlibpath_var=LD_LIBRARY_PATH
15556 shlibpath_overrides_runpath=no
15557 # This implies no fast_install, which is unacceptable.
15558 # Some rework will be needed to allow for fast_install
15559 # before this can be enabled.
15560 hardcode_into_libs=yes
15562 # Append ld.so.conf contents to the search path
15563 if test -f /etc/ld.so.conf; then
15564 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' ' '`
15565 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15568 # We used to test for /lib/ld.so.1 and disable shared libraries on
15569 # powerpc, because MkLinux only supported shared libraries with the
15570 # GNU dynamic linker. Since this was broken with cross compilers,
15571 # most powerpc-linux boxes support dynamic linking these days and
15572 # people can always --disable-shared, the test was removed, and we
15573 # assume the GNU/Linux dynamic linker is in use.
15574 dynamic_linker='GNU/Linux ld.so'
15577 netbsdelf*-gnu)
15578 version_type=linux
15579 need_lib_prefix=no
15580 need_version=no
15581 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15582 soname_spec='${libname}${release}${shared_ext}$major'
15583 shlibpath_var=LD_LIBRARY_PATH
15584 shlibpath_overrides_runpath=no
15585 hardcode_into_libs=yes
15586 dynamic_linker='NetBSD ld.elf_so'
15589 netbsd*)
15590 version_type=sunos
15591 need_lib_prefix=no
15592 need_version=no
15593 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15594 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15595 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15596 dynamic_linker='NetBSD (a.out) ld.so'
15597 else
15598 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15599 soname_spec='${libname}${release}${shared_ext}$major'
15600 dynamic_linker='NetBSD ld.elf_so'
15602 shlibpath_var=LD_LIBRARY_PATH
15603 shlibpath_overrides_runpath=yes
15604 hardcode_into_libs=yes
15607 newsos6)
15608 version_type=linux
15609 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15610 shlibpath_var=LD_LIBRARY_PATH
15611 shlibpath_overrides_runpath=yes
15614 nto-qnx*)
15615 version_type=linux
15616 need_lib_prefix=no
15617 need_version=no
15618 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15619 soname_spec='${libname}${release}${shared_ext}$major'
15620 shlibpath_var=LD_LIBRARY_PATH
15621 shlibpath_overrides_runpath=yes
15624 openbsd*)
15625 version_type=sunos
15626 sys_lib_dlsearch_path_spec="/usr/lib"
15627 need_lib_prefix=no
15628 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15629 case $host_os in
15630 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15631 *) need_version=no ;;
15632 esac
15633 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15634 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15635 shlibpath_var=LD_LIBRARY_PATH
15636 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15637 case $host_os in
15638 openbsd2.[89] | openbsd2.[89].*)
15639 shlibpath_overrides_runpath=no
15642 shlibpath_overrides_runpath=yes
15644 esac
15645 else
15646 shlibpath_overrides_runpath=yes
15650 os2*)
15651 libname_spec='$name'
15652 shrext_cmds=".dll"
15653 need_lib_prefix=no
15654 library_names_spec='$libname${shared_ext} $libname.a'
15655 dynamic_linker='OS/2 ld.exe'
15656 shlibpath_var=LIBPATH
15659 osf3* | osf4* | osf5*)
15660 version_type=osf
15661 need_lib_prefix=no
15662 need_version=no
15663 soname_spec='${libname}${release}${shared_ext}$major'
15664 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15665 shlibpath_var=LD_LIBRARY_PATH
15666 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15667 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15670 rdos*)
15671 dynamic_linker=no
15674 solaris*)
15675 version_type=linux
15676 need_lib_prefix=no
15677 need_version=no
15678 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15679 soname_spec='${libname}${release}${shared_ext}$major'
15680 shlibpath_var=LD_LIBRARY_PATH
15681 shlibpath_overrides_runpath=yes
15682 hardcode_into_libs=yes
15683 # ldd complains unless libraries are executable
15684 postinstall_cmds='chmod +x $lib'
15687 sunos4*)
15688 version_type=sunos
15689 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15690 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15691 shlibpath_var=LD_LIBRARY_PATH
15692 shlibpath_overrides_runpath=yes
15693 if test "$with_gnu_ld" = yes; then
15694 need_lib_prefix=no
15696 need_version=yes
15699 sysv4 | sysv4.3*)
15700 version_type=linux
15701 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15702 soname_spec='${libname}${release}${shared_ext}$major'
15703 shlibpath_var=LD_LIBRARY_PATH
15704 case $host_vendor in
15705 sni)
15706 shlibpath_overrides_runpath=no
15707 need_lib_prefix=no
15708 export_dynamic_flag_spec='${wl}-Blargedynsym'
15709 runpath_var=LD_RUN_PATH
15711 siemens)
15712 need_lib_prefix=no
15714 motorola)
15715 need_lib_prefix=no
15716 need_version=no
15717 shlibpath_overrides_runpath=no
15718 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15720 esac
15723 sysv4*MP*)
15724 if test -d /usr/nec ;then
15725 version_type=linux
15726 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15727 soname_spec='$libname${shared_ext}.$major'
15728 shlibpath_var=LD_LIBRARY_PATH
15732 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15733 version_type=freebsd-elf
15734 need_lib_prefix=no
15735 need_version=no
15736 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15737 soname_spec='${libname}${release}${shared_ext}$major'
15738 shlibpath_var=LD_LIBRARY_PATH
15739 hardcode_into_libs=yes
15740 if test "$with_gnu_ld" = yes; then
15741 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15742 shlibpath_overrides_runpath=no
15743 else
15744 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15745 shlibpath_overrides_runpath=yes
15746 case $host_os in
15747 sco3.2v5*)
15748 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15750 esac
15752 sys_lib_dlsearch_path_spec='/usr/lib'
15755 uts4*)
15756 version_type=linux
15757 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15758 soname_spec='${libname}${release}${shared_ext}$major'
15759 shlibpath_var=LD_LIBRARY_PATH
15763 dynamic_linker=no
15765 esac
15766 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15767 echo "${ECHO_T}$dynamic_linker" >&6; }
15768 test "$dynamic_linker" = no && can_build_shared=no
15770 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15771 if test "$GCC" = yes; then
15772 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15775 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15776 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
15777 hardcode_action_F77=
15778 if test -n "$hardcode_libdir_flag_spec_F77" || \
15779 test -n "$runpath_var_F77" || \
15780 test "X$hardcode_automatic_F77" = "Xyes" ; then
15782 # We can hardcode non-existant directories.
15783 if test "$hardcode_direct_F77" != no &&
15784 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15785 # have to relink, otherwise we might link with an installed library
15786 # when we should be linking with a yet-to-be-installed one
15787 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
15788 test "$hardcode_minus_L_F77" != no; then
15789 # Linking always hardcodes the temporary library directory.
15790 hardcode_action_F77=relink
15791 else
15792 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15793 hardcode_action_F77=immediate
15795 else
15796 # We cannot hardcode anything, or else we can only hardcode existing
15797 # directories.
15798 hardcode_action_F77=unsupported
15800 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
15801 echo "${ECHO_T}$hardcode_action_F77" >&6; }
15803 if test "$hardcode_action_F77" = relink; then
15804 # Fast installation is not supported
15805 enable_fast_install=no
15806 elif test "$shlibpath_overrides_runpath" = yes ||
15807 test "$enable_shared" = no; then
15808 # Fast installation is not necessary
15809 enable_fast_install=needless
15813 # The else clause should only fire when bootstrapping the
15814 # libtool distribution, otherwise you forgot to ship ltmain.sh
15815 # with your package, and you will get complaints that there are
15816 # no rules to generate ltmain.sh.
15817 if test -f "$ltmain"; then
15818 # See if we are running on zsh, and set the options which allow our commands through
15819 # without removal of \ escapes.
15820 if test -n "${ZSH_VERSION+set}" ; then
15821 setopt NO_GLOB_SUBST
15823 # Now quote all the things that may contain metacharacters while being
15824 # careful not to overquote the AC_SUBSTed values. We take copies of the
15825 # variables and quote the copies for generation of the libtool script.
15826 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
15827 SED SHELL STRIP \
15828 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15829 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15830 deplibs_check_method reload_flag reload_cmds need_locks \
15831 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15832 lt_cv_sys_global_symbol_to_c_name_address \
15833 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15834 old_postinstall_cmds old_postuninstall_cmds \
15835 compiler_F77 \
15836 CC_F77 \
15837 LD_F77 \
15838 lt_prog_compiler_wl_F77 \
15839 lt_prog_compiler_pic_F77 \
15840 lt_prog_compiler_static_F77 \
15841 lt_prog_compiler_no_builtin_flag_F77 \
15842 export_dynamic_flag_spec_F77 \
15843 thread_safe_flag_spec_F77 \
15844 whole_archive_flag_spec_F77 \
15845 enable_shared_with_static_runtimes_F77 \
15846 old_archive_cmds_F77 \
15847 old_archive_from_new_cmds_F77 \
15848 predep_objects_F77 \
15849 postdep_objects_F77 \
15850 predeps_F77 \
15851 postdeps_F77 \
15852 compiler_lib_search_path_F77 \
15853 archive_cmds_F77 \
15854 archive_expsym_cmds_F77 \
15855 postinstall_cmds_F77 \
15856 postuninstall_cmds_F77 \
15857 old_archive_from_expsyms_cmds_F77 \
15858 allow_undefined_flag_F77 \
15859 no_undefined_flag_F77 \
15860 export_symbols_cmds_F77 \
15861 hardcode_libdir_flag_spec_F77 \
15862 hardcode_libdir_flag_spec_ld_F77 \
15863 hardcode_libdir_separator_F77 \
15864 hardcode_automatic_F77 \
15865 module_cmds_F77 \
15866 module_expsym_cmds_F77 \
15867 lt_cv_prog_compiler_c_o_F77 \
15868 fix_srcfile_path_F77 \
15869 exclude_expsyms_F77 \
15870 include_expsyms_F77; do
15872 case $var in
15873 old_archive_cmds_F77 | \
15874 old_archive_from_new_cmds_F77 | \
15875 archive_cmds_F77 | \
15876 archive_expsym_cmds_F77 | \
15877 module_cmds_F77 | \
15878 module_expsym_cmds_F77 | \
15879 old_archive_from_expsyms_cmds_F77 | \
15880 export_symbols_cmds_F77 | \
15881 extract_expsyms_cmds | reload_cmds | finish_cmds | \
15882 postinstall_cmds | postuninstall_cmds | \
15883 old_postinstall_cmds | old_postuninstall_cmds | \
15884 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15885 # Double-quote double-evaled strings.
15886 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15889 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15891 esac
15892 done
15894 case $lt_echo in
15895 *'\$0 --fallback-echo"')
15896 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15898 esac
15900 cfgfile="$ofile"
15902 cat <<__EOF__ >> "$cfgfile"
15903 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
15905 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15907 # Shell to use when invoking shell scripts.
15908 SHELL=$lt_SHELL
15910 # Whether or not to build shared libraries.
15911 build_libtool_libs=$enable_shared
15913 # Whether or not to build static libraries.
15914 build_old_libs=$enable_static
15916 # Whether or not to add -lc for building shared libraries.
15917 build_libtool_need_lc=$archive_cmds_need_lc_F77
15919 # Whether or not to disallow shared libs when runtime libs are static
15920 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
15922 # Whether or not to optimize for fast installation.
15923 fast_install=$enable_fast_install
15925 # The host system.
15926 host_alias=$host_alias
15927 host=$host
15928 host_os=$host_os
15930 # The build system.
15931 build_alias=$build_alias
15932 build=$build
15933 build_os=$build_os
15935 # An echo program that does not interpret backslashes.
15936 echo=$lt_echo
15938 # The archiver.
15939 AR=$lt_AR
15940 AR_FLAGS=$lt_AR_FLAGS
15942 # A C compiler.
15943 LTCC=$lt_LTCC
15945 # LTCC compiler flags.
15946 LTCFLAGS=$lt_LTCFLAGS
15948 # A language-specific compiler.
15949 CC=$lt_compiler_F77
15951 # Is the compiler the GNU C compiler?
15952 with_gcc=$GCC_F77
15954 # An ERE matcher.
15955 EGREP=$lt_EGREP
15957 # The linker used to build libraries.
15958 LD=$lt_LD_F77
15960 # Whether we need hard or soft links.
15961 LN_S=$lt_LN_S
15963 # A BSD-compatible nm program.
15964 NM=$lt_NM
15966 # A symbol stripping program
15967 STRIP=$lt_STRIP
15969 # Used to examine libraries when file_magic_cmd begins "file"
15970 MAGIC_CMD=$MAGIC_CMD
15972 # Used on cygwin: DLL creation program.
15973 DLLTOOL="$DLLTOOL"
15975 # Used on cygwin: object dumper.
15976 OBJDUMP="$OBJDUMP"
15978 # Used on cygwin: assembler.
15979 AS="$AS"
15981 # The name of the directory that contains temporary libtool files.
15982 objdir=$objdir
15984 # How to create reloadable object files.
15985 reload_flag=$lt_reload_flag
15986 reload_cmds=$lt_reload_cmds
15988 # How to pass a linker flag through the compiler.
15989 wl=$lt_lt_prog_compiler_wl_F77
15991 # Object file suffix (normally "o").
15992 objext="$ac_objext"
15994 # Old archive suffix (normally "a").
15995 libext="$libext"
15997 # Shared library suffix (normally ".so").
15998 shrext_cmds='$shrext_cmds'
16000 # Executable file suffix (normally "").
16001 exeext="$exeext"
16003 # Additional compiler flags for building library objects.
16004 pic_flag=$lt_lt_prog_compiler_pic_F77
16005 pic_mode=$pic_mode
16007 # What is the maximum length of a command?
16008 max_cmd_len=$lt_cv_sys_max_cmd_len
16010 # Does compiler simultaneously support -c and -o options?
16011 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
16013 # Must we lock files when doing compilation?
16014 need_locks=$lt_need_locks
16016 # Do we need the lib prefix for modules?
16017 need_lib_prefix=$need_lib_prefix
16019 # Do we need a version for libraries?
16020 need_version=$need_version
16022 # Whether dlopen is supported.
16023 dlopen_support=$enable_dlopen
16025 # Whether dlopen of programs is supported.
16026 dlopen_self=$enable_dlopen_self
16028 # Whether dlopen of statically linked programs is supported.
16029 dlopen_self_static=$enable_dlopen_self_static
16031 # Compiler flag to prevent dynamic linking.
16032 link_static_flag=$lt_lt_prog_compiler_static_F77
16034 # Compiler flag to turn off builtin functions.
16035 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
16037 # Compiler flag to allow reflexive dlopens.
16038 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
16040 # Compiler flag to generate shared objects directly from archives.
16041 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
16043 # Compiler flag to generate thread-safe objects.
16044 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
16046 # Library versioning type.
16047 version_type=$version_type
16049 # Format of library name prefix.
16050 libname_spec=$lt_libname_spec
16052 # List of archive names. First name is the real one, the rest are links.
16053 # The last name is the one that the linker finds with -lNAME.
16054 library_names_spec=$lt_library_names_spec
16056 # The coded name of the library, if different from the real name.
16057 soname_spec=$lt_soname_spec
16059 # Commands used to build and install an old-style archive.
16060 RANLIB=$lt_RANLIB
16061 old_archive_cmds=$lt_old_archive_cmds_F77
16062 old_postinstall_cmds=$lt_old_postinstall_cmds
16063 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16065 # Create an old-style archive from a shared archive.
16066 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16068 # Create a temporary old-style archive to link instead of a shared archive.
16069 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16071 # Commands used to build and install a shared archive.
16072 archive_cmds=$lt_archive_cmds_F77
16073 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16074 postinstall_cmds=$lt_postinstall_cmds
16075 postuninstall_cmds=$lt_postuninstall_cmds
16077 # Commands used to build a loadable module (assumed same as above if empty)
16078 module_cmds=$lt_module_cmds_F77
16079 module_expsym_cmds=$lt_module_expsym_cmds_F77
16081 # Commands to strip libraries.
16082 old_striplib=$lt_old_striplib
16083 striplib=$lt_striplib
16085 # Dependencies to place before the objects being linked to create a
16086 # shared library.
16087 predep_objects=$lt_predep_objects_F77
16089 # Dependencies to place after the objects being linked to create a
16090 # shared library.
16091 postdep_objects=$lt_postdep_objects_F77
16093 # Dependencies to place before the objects being linked to create a
16094 # shared library.
16095 predeps=$lt_predeps_F77
16097 # Dependencies to place after the objects being linked to create a
16098 # shared library.
16099 postdeps=$lt_postdeps_F77
16101 # The library search path used internally by the compiler when linking
16102 # a shared library.
16103 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
16105 # Method to check whether dependent libraries are shared objects.
16106 deplibs_check_method=$lt_deplibs_check_method
16108 # Command to use when deplibs_check_method == file_magic.
16109 file_magic_cmd=$lt_file_magic_cmd
16111 # Flag that allows shared libraries with undefined symbols to be built.
16112 allow_undefined_flag=$lt_allow_undefined_flag_F77
16114 # Flag that forces no undefined symbols.
16115 no_undefined_flag=$lt_no_undefined_flag_F77
16117 # Commands used to finish a libtool library installation in a directory.
16118 finish_cmds=$lt_finish_cmds
16120 # Same as above, but a single script fragment to be evaled but not shown.
16121 finish_eval=$lt_finish_eval
16123 # Take the output of nm and produce a listing of raw symbols and C names.
16124 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16126 # Transform the output of nm in a proper C declaration
16127 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16129 # Transform the output of nm in a C name address pair
16130 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16132 # This is the shared library runtime path variable.
16133 runpath_var=$runpath_var
16135 # This is the shared library path variable.
16136 shlibpath_var=$shlibpath_var
16138 # Is shlibpath searched before the hard-coded library search path?
16139 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16141 # How to hardcode a shared library path into an executable.
16142 hardcode_action=$hardcode_action_F77
16144 # Whether we should hardcode library paths into libraries.
16145 hardcode_into_libs=$hardcode_into_libs
16147 # Flag to hardcode \$libdir into a binary during linking.
16148 # This must work even if \$libdir does not exist.
16149 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16151 # If ld is used when linking, flag to hardcode \$libdir into
16152 # a binary during linking. This must work even if \$libdir does
16153 # not exist.
16154 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16156 # Whether we need a single -rpath flag with a separated argument.
16157 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16159 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16160 # resulting binary.
16161 hardcode_direct=$hardcode_direct_F77
16163 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16164 # resulting binary.
16165 hardcode_minus_L=$hardcode_minus_L_F77
16167 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16168 # the resulting binary.
16169 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16171 # Set to yes if building a shared library automatically hardcodes DIR into the library
16172 # and all subsequent libraries and executables linked against it.
16173 hardcode_automatic=$hardcode_automatic_F77
16175 # Variables whose values should be saved in libtool wrapper scripts and
16176 # restored at relink time.
16177 variables_saved_for_relink="$variables_saved_for_relink"
16179 # Whether libtool must link a program against all its dependency libraries.
16180 link_all_deplibs=$link_all_deplibs_F77
16182 # Compile-time system search path for libraries
16183 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16185 # Run-time system search path for libraries
16186 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16188 # Fix the shell variable \$srcfile for the compiler.
16189 fix_srcfile_path=$lt_fix_srcfile_path
16191 # Set to yes if exported symbols are required.
16192 always_export_symbols=$always_export_symbols_F77
16194 # The commands to list exported symbols.
16195 export_symbols_cmds=$lt_export_symbols_cmds_F77
16197 # The commands to extract the exported symbol list from a shared archive.
16198 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16200 # Symbols that should not be listed in the preloaded symbols.
16201 exclude_expsyms=$lt_exclude_expsyms_F77
16203 # Symbols that must always be exported.
16204 include_expsyms=$lt_include_expsyms_F77
16206 # ### END LIBTOOL TAG CONFIG: $tagname
16208 __EOF__
16211 else
16212 # If there is no Makefile yet, we rely on a make rule to execute
16213 # `config.status --recheck' to rerun these tests and create the
16214 # libtool script then.
16215 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16216 if test -f "$ltmain_in"; then
16217 test -f Makefile && make "$ltmain"
16222 ac_ext=c
16223 ac_cpp='$CPP $CPPFLAGS'
16224 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16225 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16226 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16228 CC="$lt_save_CC"
16230 else
16231 tagname=""
16235 GCJ)
16236 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16239 # Source file extension for Java test sources.
16240 ac_ext=java
16242 # Object file extension for compiled Java test sources.
16243 objext=o
16244 objext_GCJ=$objext
16246 # Code to be used in simple compile tests
16247 lt_simple_compile_test_code="class foo {}"
16249 # Code to be used in simple link tests
16250 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }'
16252 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
16254 # If no C compiler was specified, use CC.
16255 LTCC=${LTCC-"$CC"}
16257 # If no C compiler flags were specified, use CFLAGS.
16258 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16260 # Allow CC to be a program name with arguments.
16261 compiler=$CC
16264 # save warnings/boilerplate of simple test code
16265 ac_outfile=conftest.$ac_objext
16266 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
16267 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16268 _lt_compiler_boilerplate=`cat conftest.err`
16269 $rm conftest*
16271 ac_outfile=conftest.$ac_objext
16272 echo "$lt_simple_link_test_code" >conftest.$ac_ext
16273 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16274 _lt_linker_boilerplate=`cat conftest.err`
16275 $rm conftest*
16278 # Allow CC to be a program name with arguments.
16279 lt_save_CC="$CC"
16280 CC=${GCJ-"gcj"}
16281 compiler=$CC
16282 compiler_GCJ=$CC
16283 for cc_temp in $compiler""; do
16284 case $cc_temp in
16285 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16286 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16287 \-*) ;;
16288 *) break;;
16289 esac
16290 done
16291 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16294 # GCJ did not exist at the time GCC didn't implicitly link libc in.
16295 archive_cmds_need_lc_GCJ=no
16297 old_archive_cmds_GCJ=$old_archive_cmds
16300 lt_prog_compiler_no_builtin_flag_GCJ=
16302 if test "$GCC" = yes; then
16303 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16306 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16307 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
16308 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16309 echo $ECHO_N "(cached) $ECHO_C" >&6
16310 else
16311 lt_cv_prog_compiler_rtti_exceptions=no
16312 ac_outfile=conftest.$ac_objext
16313 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16314 lt_compiler_flag="-fno-rtti -fno-exceptions"
16315 # Insert the option either (1) after the last *FLAGS variable, or
16316 # (2) before a word containing "conftest.", or (3) at the end.
16317 # Note that $ac_compile itself does not contain backslashes and begins
16318 # with a dollar sign (not a hyphen), so the echo should work correctly.
16319 # The option is referenced via a variable to avoid confusing sed.
16320 lt_compile=`echo "$ac_compile" | $SED \
16321 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16322 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16323 -e 's:$: $lt_compiler_flag:'`
16324 (eval echo "\"\$as_me:16324: $lt_compile\"" >&5)
16325 (eval "$lt_compile" 2>conftest.err)
16326 ac_status=$?
16327 cat conftest.err >&5
16328 echo "$as_me:16328: \$? = $ac_status" >&5
16329 if (exit $ac_status) && test -s "$ac_outfile"; then
16330 # The compiler can only warn and ignore the option if not recognized
16331 # So say no if there are warnings other than the usual output.
16332 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16333 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16334 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16335 lt_cv_prog_compiler_rtti_exceptions=yes
16338 $rm conftest*
16341 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16342 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
16344 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16345 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16346 else
16352 lt_prog_compiler_wl_GCJ=
16353 lt_prog_compiler_pic_GCJ=
16354 lt_prog_compiler_static_GCJ=
16356 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16357 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
16359 if test "$GCC" = yes; then
16360 lt_prog_compiler_wl_GCJ='-Wl,'
16361 lt_prog_compiler_static_GCJ='-static'
16363 case $host_os in
16364 aix*)
16365 # All AIX code is PIC.
16366 if test "$host_cpu" = ia64; then
16367 # AIX 5 now supports IA64 processor
16368 lt_prog_compiler_static_GCJ='-Bstatic'
16372 amigaos*)
16373 # FIXME: we need at least 68020 code to build shared libraries, but
16374 # adding the `-m68020' flag to GCC prevents building anything better,
16375 # like `-m68040'.
16376 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16379 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16380 # PIC is the default for these OSes.
16383 mingw* | cygwin* | pw32* | os2*)
16384 # This hack is so that the source file can tell whether it is being
16385 # built for inclusion in a dll (and should export symbols for example).
16386 # Although the cygwin gcc ignores -fPIC, still need this for old-style
16387 # (--disable-auto-import) libraries
16388 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16391 darwin* | rhapsody*)
16392 # PIC is the default on this platform
16393 # Common symbols not allowed in MH_DYLIB files
16394 lt_prog_compiler_pic_GCJ='-fno-common'
16397 interix[3-9]*)
16398 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16399 # Instead, we relocate shared libraries at runtime.
16402 msdosdjgpp*)
16403 # Just because we use GCC doesn't mean we suddenly get shared libraries
16404 # on systems that don't support them.
16405 lt_prog_compiler_can_build_shared_GCJ=no
16406 enable_shared=no
16409 sysv4*MP*)
16410 if test -d /usr/nec; then
16411 lt_prog_compiler_pic_GCJ=-Kconform_pic
16415 hpux*)
16416 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16417 # not for PA HP-UX.
16418 case $host_cpu in
16419 hppa*64*|ia64*)
16420 # +Z the default
16423 lt_prog_compiler_pic_GCJ='-fPIC'
16425 esac
16429 lt_prog_compiler_pic_GCJ='-fPIC'
16431 esac
16432 else
16433 # PORTME Check for flag to pass linker flags through the system compiler.
16434 case $host_os in
16435 aix*)
16436 lt_prog_compiler_wl_GCJ='-Wl,'
16437 if test "$host_cpu" = ia64; then
16438 # AIX 5 now supports IA64 processor
16439 lt_prog_compiler_static_GCJ='-Bstatic'
16440 else
16441 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16444 darwin*)
16445 # PIC is the default on this platform
16446 # Common symbols not allowed in MH_DYLIB files
16447 case $cc_basename in
16448 xlc*)
16449 lt_prog_compiler_pic_GCJ='-qnocommon'
16450 lt_prog_compiler_wl_GCJ='-Wl,'
16452 esac
16455 mingw* | cygwin* | pw32* | os2*)
16456 # This hack is so that the source file can tell whether it is being
16457 # built for inclusion in a dll (and should export symbols for example).
16458 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16461 hpux9* | hpux10* | hpux11*)
16462 lt_prog_compiler_wl_GCJ='-Wl,'
16463 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16464 # not for PA HP-UX.
16465 case $host_cpu in
16466 hppa*64*|ia64*)
16467 # +Z the default
16470 lt_prog_compiler_pic_GCJ='+Z'
16472 esac
16473 # Is there a better lt_prog_compiler_static that works with the bundled CC?
16474 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
16477 irix5* | irix6* | nonstopux*)
16478 lt_prog_compiler_wl_GCJ='-Wl,'
16479 # PIC (with -KPIC) is the default.
16480 lt_prog_compiler_static_GCJ='-non_shared'
16483 newsos6)
16484 lt_prog_compiler_pic_GCJ='-KPIC'
16485 lt_prog_compiler_static_GCJ='-Bstatic'
16488 linux* | k*bsd*-gnu)
16489 case $cc_basename in
16490 icc* | ecc*)
16491 lt_prog_compiler_wl_GCJ='-Wl,'
16492 lt_prog_compiler_pic_GCJ='-KPIC'
16493 lt_prog_compiler_static_GCJ='-static'
16495 pgcc* | pgf77* | pgf90* | pgf95*)
16496 # Portland Group compilers (*not* the Pentium gcc compiler,
16497 # which looks to be a dead project)
16498 lt_prog_compiler_wl_GCJ='-Wl,'
16499 lt_prog_compiler_pic_GCJ='-fpic'
16500 lt_prog_compiler_static_GCJ='-Bstatic'
16502 ccc*)
16503 lt_prog_compiler_wl_GCJ='-Wl,'
16504 # All Alpha code is PIC.
16505 lt_prog_compiler_static_GCJ='-non_shared'
16508 case `$CC -V 2>&1 | sed 5q` in
16509 *Sun\ C*)
16510 # Sun C 5.9
16511 lt_prog_compiler_pic_GCJ='-KPIC'
16512 lt_prog_compiler_static_GCJ='-Bstatic'
16513 lt_prog_compiler_wl_GCJ='-Wl,'
16515 *Sun\ F*)
16516 # Sun Fortran 8.3 passes all unrecognized flags to the linker
16517 lt_prog_compiler_pic_GCJ='-KPIC'
16518 lt_prog_compiler_static_GCJ='-Bstatic'
16519 lt_prog_compiler_wl_GCJ=''
16521 esac
16523 esac
16526 osf3* | osf4* | osf5*)
16527 lt_prog_compiler_wl_GCJ='-Wl,'
16528 # All OSF/1 code is PIC.
16529 lt_prog_compiler_static_GCJ='-non_shared'
16532 rdos*)
16533 lt_prog_compiler_static_GCJ='-non_shared'
16536 solaris*)
16537 lt_prog_compiler_pic_GCJ='-KPIC'
16538 lt_prog_compiler_static_GCJ='-Bstatic'
16539 case $cc_basename in
16540 f77* | f90* | f95*)
16541 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
16543 lt_prog_compiler_wl_GCJ='-Wl,';;
16544 esac
16547 sunos4*)
16548 lt_prog_compiler_wl_GCJ='-Qoption ld '
16549 lt_prog_compiler_pic_GCJ='-PIC'
16550 lt_prog_compiler_static_GCJ='-Bstatic'
16553 sysv4 | sysv4.2uw2* | sysv4.3*)
16554 lt_prog_compiler_wl_GCJ='-Wl,'
16555 lt_prog_compiler_pic_GCJ='-KPIC'
16556 lt_prog_compiler_static_GCJ='-Bstatic'
16559 sysv4*MP*)
16560 if test -d /usr/nec ;then
16561 lt_prog_compiler_pic_GCJ='-Kconform_pic'
16562 lt_prog_compiler_static_GCJ='-Bstatic'
16566 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16567 lt_prog_compiler_wl_GCJ='-Wl,'
16568 lt_prog_compiler_pic_GCJ='-KPIC'
16569 lt_prog_compiler_static_GCJ='-Bstatic'
16572 unicos*)
16573 lt_prog_compiler_wl_GCJ='-Wl,'
16574 lt_prog_compiler_can_build_shared_GCJ=no
16577 uts4*)
16578 lt_prog_compiler_pic_GCJ='-pic'
16579 lt_prog_compiler_static_GCJ='-Bstatic'
16583 lt_prog_compiler_can_build_shared_GCJ=no
16585 esac
16588 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
16589 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
16592 # Check to make sure the PIC flag actually works.
16594 if test -n "$lt_prog_compiler_pic_GCJ"; then
16596 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
16597 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
16598 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
16599 echo $ECHO_N "(cached) $ECHO_C" >&6
16600 else
16601 lt_prog_compiler_pic_works_GCJ=no
16602 ac_outfile=conftest.$ac_objext
16603 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16604 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
16605 # Insert the option either (1) after the last *FLAGS variable, or
16606 # (2) before a word containing "conftest.", or (3) at the end.
16607 # Note that $ac_compile itself does not contain backslashes and begins
16608 # with a dollar sign (not a hyphen), so the echo should work correctly.
16609 # The option is referenced via a variable to avoid confusing sed.
16610 lt_compile=`echo "$ac_compile" | $SED \
16611 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16612 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16613 -e 's:$: $lt_compiler_flag:'`
16614 (eval echo "\"\$as_me:16614: $lt_compile\"" >&5)
16615 (eval "$lt_compile" 2>conftest.err)
16616 ac_status=$?
16617 cat conftest.err >&5
16618 echo "$as_me:16618: \$? = $ac_status" >&5
16619 if (exit $ac_status) && test -s "$ac_outfile"; then
16620 # The compiler can only warn and ignore the option if not recognized
16621 # So say no if there are warnings other than the usual output.
16622 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16623 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16624 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16625 lt_prog_compiler_pic_works_GCJ=yes
16628 $rm conftest*
16631 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
16632 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
16634 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
16635 case $lt_prog_compiler_pic_GCJ in
16636 "" | " "*) ;;
16637 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
16638 esac
16639 else
16640 lt_prog_compiler_pic_GCJ=
16641 lt_prog_compiler_can_build_shared_GCJ=no
16645 case $host_os in
16646 # For platforms which do not support PIC, -DPIC is meaningless:
16647 *djgpp*)
16648 lt_prog_compiler_pic_GCJ=
16651 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
16653 esac
16656 # Check to make sure the static flag actually works.
16658 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
16659 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16660 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
16661 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
16662 echo $ECHO_N "(cached) $ECHO_C" >&6
16663 else
16664 lt_prog_compiler_static_works_GCJ=no
16665 save_LDFLAGS="$LDFLAGS"
16666 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16667 echo "$lt_simple_link_test_code" > conftest.$ac_ext
16668 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16669 # The linker can only warn and ignore the option if not recognized
16670 # So say no if there are warnings
16671 if test -s conftest.err; then
16672 # Append any errors to the config.log.
16673 cat conftest.err 1>&5
16674 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
16675 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16676 if diff conftest.exp conftest.er2 >/dev/null; then
16677 lt_prog_compiler_static_works_GCJ=yes
16679 else
16680 lt_prog_compiler_static_works_GCJ=yes
16683 $rm conftest*
16684 LDFLAGS="$save_LDFLAGS"
16687 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
16688 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
16690 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
16692 else
16693 lt_prog_compiler_static_GCJ=
16697 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16698 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
16699 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
16700 echo $ECHO_N "(cached) $ECHO_C" >&6
16701 else
16702 lt_cv_prog_compiler_c_o_GCJ=no
16703 $rm -r conftest 2>/dev/null
16704 mkdir conftest
16705 cd conftest
16706 mkdir out
16707 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16709 lt_compiler_flag="-o out/conftest2.$ac_objext"
16710 # Insert the option either (1) after the last *FLAGS variable, or
16711 # (2) before a word containing "conftest.", or (3) at the end.
16712 # Note that $ac_compile itself does not contain backslashes and begins
16713 # with a dollar sign (not a hyphen), so the echo should work correctly.
16714 lt_compile=`echo "$ac_compile" | $SED \
16715 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16716 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16717 -e 's:$: $lt_compiler_flag:'`
16718 (eval echo "\"\$as_me:16718: $lt_compile\"" >&5)
16719 (eval "$lt_compile" 2>out/conftest.err)
16720 ac_status=$?
16721 cat out/conftest.err >&5
16722 echo "$as_me:16722: \$? = $ac_status" >&5
16723 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16724 then
16725 # The compiler can only warn and ignore the option if not recognized
16726 # So say no if there are warnings
16727 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
16728 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16729 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16730 lt_cv_prog_compiler_c_o_GCJ=yes
16733 chmod u+w . 2>&5
16734 $rm conftest*
16735 # SGI C++ compiler will create directory out/ii_files/ for
16736 # template instantiation
16737 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16738 $rm out/* && rmdir out
16739 cd ..
16740 rmdir conftest
16741 $rm conftest*
16744 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
16745 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
16748 hard_links="nottested"
16749 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
16750 # do not overwrite the value of need_locks provided by the user
16751 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16752 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
16753 hard_links=yes
16754 $rm conftest*
16755 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16756 touch conftest.a
16757 ln conftest.a conftest.b 2>&5 || hard_links=no
16758 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16759 { echo "$as_me:$LINENO: result: $hard_links" >&5
16760 echo "${ECHO_T}$hard_links" >&6; }
16761 if test "$hard_links" = no; then
16762 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16763 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16764 need_locks=warn
16766 else
16767 need_locks=no
16770 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16771 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
16773 runpath_var=
16774 allow_undefined_flag_GCJ=
16775 enable_shared_with_static_runtimes_GCJ=no
16776 archive_cmds_GCJ=
16777 archive_expsym_cmds_GCJ=
16778 old_archive_From_new_cmds_GCJ=
16779 old_archive_from_expsyms_cmds_GCJ=
16780 export_dynamic_flag_spec_GCJ=
16781 whole_archive_flag_spec_GCJ=
16782 thread_safe_flag_spec_GCJ=
16783 hardcode_libdir_flag_spec_GCJ=
16784 hardcode_libdir_flag_spec_ld_GCJ=
16785 hardcode_libdir_separator_GCJ=
16786 hardcode_direct_GCJ=no
16787 hardcode_minus_L_GCJ=no
16788 hardcode_shlibpath_var_GCJ=unsupported
16789 link_all_deplibs_GCJ=unknown
16790 hardcode_automatic_GCJ=no
16791 module_cmds_GCJ=
16792 module_expsym_cmds_GCJ=
16793 always_export_symbols_GCJ=no
16794 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16795 # include_expsyms should be a list of space-separated symbols to be *always*
16796 # included in the symbol list
16797 include_expsyms_GCJ=
16798 # exclude_expsyms can be an extended regexp of symbols to exclude
16799 # it will be wrapped by ` (' and `)$', so one must not match beginning or
16800 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16801 # as well as any symbol that contains `d'.
16802 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
16803 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16804 # platforms (ab)use it in PIC code, but their linkers get confused if
16805 # the symbol is explicitly referenced. Since portable code cannot
16806 # rely on this symbol name, it's probably fine to never include it in
16807 # preloaded symbol tables.
16808 extract_expsyms_cmds=
16809 # Just being paranoid about ensuring that cc_basename is set.
16810 for cc_temp in $compiler""; do
16811 case $cc_temp in
16812 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16813 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16814 \-*) ;;
16815 *) break;;
16816 esac
16817 done
16818 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16820 case $host_os in
16821 cygwin* | mingw* | pw32*)
16822 # FIXME: the MSVC++ port hasn't been tested in a loooong time
16823 # When not using gcc, we currently assume that we are using
16824 # Microsoft Visual C++.
16825 if test "$GCC" != yes; then
16826 with_gnu_ld=no
16829 interix*)
16830 # we just hope/assume this is gcc and not c89 (= MSVC++)
16831 with_gnu_ld=yes
16833 openbsd*)
16834 with_gnu_ld=no
16836 esac
16838 ld_shlibs_GCJ=yes
16839 if test "$with_gnu_ld" = yes; then
16840 # If archive_cmds runs LD, not CC, wlarc should be empty
16841 wlarc='${wl}'
16843 # Set some defaults for GNU ld with shared library support. These
16844 # are reset later if shared libraries are not supported. Putting them
16845 # here allows them to be overridden if necessary.
16846 runpath_var=LD_RUN_PATH
16847 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16848 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16849 # ancient GNU ld didn't support --whole-archive et. al.
16850 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16851 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16852 else
16853 whole_archive_flag_spec_GCJ=
16855 supports_anon_versioning=no
16856 case `$LD -v 2>/dev/null` in
16857 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16858 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16859 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16860 *\ 2.11.*) ;; # other 2.11 versions
16861 *) supports_anon_versioning=yes ;;
16862 esac
16864 # See if GNU ld supports shared libraries.
16865 case $host_os in
16866 aix3* | aix4* | aix5*)
16867 # On AIX/PPC, the GNU linker is very broken
16868 if test "$host_cpu" != ia64; then
16869 ld_shlibs_GCJ=no
16870 cat <<EOF 1>&2
16872 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
16873 *** to be unable to reliably create shared libraries on AIX.
16874 *** Therefore, libtool is disabling shared libraries support. If you
16875 *** really care for shared libraries, you may want to modify your PATH
16876 *** so that a non-GNU linker is found, and then restart.
16882 amigaos*)
16883 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)'
16884 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16885 hardcode_minus_L_GCJ=yes
16887 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16888 # that the semantics of dynamic libraries on AmigaOS, at least up
16889 # to version 4, is to share data among multiple programs linked
16890 # with the same dynamic library. Since this doesn't match the
16891 # behavior of shared libraries on other platforms, we can't use
16892 # them.
16893 ld_shlibs_GCJ=no
16896 beos*)
16897 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16898 allow_undefined_flag_GCJ=unsupported
16899 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16900 # support --undefined. This deserves some investigation. FIXME
16901 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16902 else
16903 ld_shlibs_GCJ=no
16907 cygwin* | mingw* | pw32*)
16908 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
16909 # as there is no search path for DLLs.
16910 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16911 allow_undefined_flag_GCJ=unsupported
16912 always_export_symbols_GCJ=no
16913 enable_shared_with_static_runtimes_GCJ=yes
16914 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
16916 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16917 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16918 # If the export-symbols file already is a .def file (1st line
16919 # is EXPORTS), use it as is; otherwise, prepend...
16920 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16921 cp $export_symbols $output_objdir/$soname.def;
16922 else
16923 echo EXPORTS > $output_objdir/$soname.def;
16924 cat $export_symbols >> $output_objdir/$soname.def;
16926 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16927 else
16928 ld_shlibs_GCJ=no
16932 interix[3-9]*)
16933 hardcode_direct_GCJ=no
16934 hardcode_shlibpath_var_GCJ=no
16935 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16936 export_dynamic_flag_spec_GCJ='${wl}-E'
16937 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16938 # Instead, shared libraries are loaded at an image base (0x10000000 by
16939 # default) and relocated if they conflict, which is a slow very memory
16940 # consuming and fragmenting process. To avoid this, we pick a random,
16941 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16942 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
16943 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'
16944 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'
16947 gnu* | linux* | k*bsd*-gnu)
16948 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16949 tmp_addflag=
16950 case $cc_basename,$host_cpu in
16951 pgcc*) # Portland Group C compiler
16952 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'
16953 tmp_addflag=' $pic_flag'
16955 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
16956 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'
16957 tmp_addflag=' $pic_flag -Mnomain' ;;
16958 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
16959 tmp_addflag=' -i_dynamic' ;;
16960 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
16961 tmp_addflag=' -i_dynamic -nofor_main' ;;
16962 ifc* | ifort*) # Intel Fortran compiler
16963 tmp_addflag=' -nofor_main' ;;
16964 esac
16965 case `$CC -V 2>&1 | sed 5q` in
16966 *Sun\ C*) # Sun C 5.9
16967 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'
16968 tmp_sharedflag='-G' ;;
16969 *Sun\ F*) # Sun Fortran 8.3
16970 tmp_sharedflag='-G' ;;
16972 tmp_sharedflag='-shared' ;;
16973 esac
16974 archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16976 if test $supports_anon_versioning = yes; then
16977 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
16978 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16979 $echo "local: *; };" >> $output_objdir/$libname.ver~
16980 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16982 link_all_deplibs_GCJ=no
16983 else
16984 ld_shlibs_GCJ=no
16988 netbsd* | netbsdelf*-gnu)
16989 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16990 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16991 wlarc=
16992 else
16993 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16994 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16998 solaris*)
16999 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
17000 ld_shlibs_GCJ=no
17001 cat <<EOF 1>&2
17003 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
17004 *** create shared libraries on Solaris systems. Therefore, libtool
17005 *** is disabling shared libraries support. We urge you to upgrade GNU
17006 *** binutils to release 2.9.1 or newer. Another option is to modify
17007 *** your PATH or compiler configuration so that the native linker is
17008 *** used, and then restart.
17011 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17012 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17013 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17014 else
17015 ld_shlibs_GCJ=no
17019 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
17020 case `$LD -v 2>&1` in
17021 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
17022 ld_shlibs_GCJ=no
17023 cat <<_LT_EOF 1>&2
17025 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
17026 *** reliably create shared libraries on SCO systems. Therefore, libtool
17027 *** is disabling shared libraries support. We urge you to upgrade GNU
17028 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
17029 *** your PATH or compiler configuration so that the native linker is
17030 *** used, and then restart.
17032 _LT_EOF
17035 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17036 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
17037 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
17038 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
17039 else
17040 ld_shlibs_GCJ=no
17043 esac
17046 sunos4*)
17047 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17048 wlarc=
17049 hardcode_direct_GCJ=yes
17050 hardcode_shlibpath_var_GCJ=no
17054 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17055 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17056 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17057 else
17058 ld_shlibs_GCJ=no
17061 esac
17063 if test "$ld_shlibs_GCJ" = no; then
17064 runpath_var=
17065 hardcode_libdir_flag_spec_GCJ=
17066 export_dynamic_flag_spec_GCJ=
17067 whole_archive_flag_spec_GCJ=
17069 else
17070 # PORTME fill in a description of your system's linker (not GNU ld)
17071 case $host_os in
17072 aix3*)
17073 allow_undefined_flag_GCJ=unsupported
17074 always_export_symbols_GCJ=yes
17075 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'
17076 # Note: this linker hardcodes the directories in LIBPATH if there
17077 # are no directories specified by -L.
17078 hardcode_minus_L_GCJ=yes
17079 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17080 # Neither direct hardcoding nor static linking is supported with a
17081 # broken collect2.
17082 hardcode_direct_GCJ=unsupported
17086 aix4* | aix5*)
17087 if test "$host_cpu" = ia64; then
17088 # On IA64, the linker does run time linking by default, so we don't
17089 # have to do anything special.
17090 aix_use_runtimelinking=no
17091 exp_sym_flag='-Bexport'
17092 no_entry_flag=""
17093 else
17094 # If we're using GNU nm, then we don't want the "-C" option.
17095 # -C means demangle to AIX nm, but means don't demangle with GNU nm
17096 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17097 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'
17098 else
17099 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'
17101 aix_use_runtimelinking=no
17103 # Test if we are trying to use run time linking or normal
17104 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17105 # need to do runtime linking.
17106 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
17107 for ld_flag in $LDFLAGS; do
17108 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17109 aix_use_runtimelinking=yes
17110 break
17112 done
17114 esac
17116 exp_sym_flag='-bexport'
17117 no_entry_flag='-bnoentry'
17120 # When large executables or shared objects are built, AIX ld can
17121 # have problems creating the table of contents. If linking a library
17122 # or program results in "error TOC overflow" add -mminimal-toc to
17123 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
17124 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17126 archive_cmds_GCJ=''
17127 hardcode_direct_GCJ=yes
17128 hardcode_libdir_separator_GCJ=':'
17129 link_all_deplibs_GCJ=yes
17131 if test "$GCC" = yes; then
17132 case $host_os in aix4.[012]|aix4.[012].*)
17133 # We only want to do this on AIX 4.2 and lower, the check
17134 # below for broken collect2 doesn't work under 4.3+
17135 collect2name=`${CC} -print-prog-name=collect2`
17136 if test -f "$collect2name" && \
17137 strings "$collect2name" | grep resolve_lib_name >/dev/null
17138 then
17139 # We have reworked collect2
17141 else
17142 # We have old collect2
17143 hardcode_direct_GCJ=unsupported
17144 # It fails to find uninstalled libraries when the uninstalled
17145 # path is not listed in the libpath. Setting hardcode_minus_L
17146 # to unsupported forces relinking
17147 hardcode_minus_L_GCJ=yes
17148 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17149 hardcode_libdir_separator_GCJ=
17152 esac
17153 shared_flag='-shared'
17154 if test "$aix_use_runtimelinking" = yes; then
17155 shared_flag="$shared_flag "'${wl}-G'
17157 else
17158 # not using gcc
17159 if test "$host_cpu" = ia64; then
17160 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17161 # chokes on -Wl,-G. The following line is correct:
17162 shared_flag='-G'
17163 else
17164 if test "$aix_use_runtimelinking" = yes; then
17165 shared_flag='${wl}-G'
17166 else
17167 shared_flag='${wl}-bM:SRE'
17172 # It seems that -bexpall does not export symbols beginning with
17173 # underscore (_), so it is better to generate a list of symbols to export.
17174 always_export_symbols_GCJ=yes
17175 if test "$aix_use_runtimelinking" = yes; then
17176 # Warning - without using the other runtime loading flags (-brtl),
17177 # -berok will link without error, but may produce a broken library.
17178 allow_undefined_flag_GCJ='-berok'
17179 # Determine the default libpath from the value encoded in an empty executable.
17180 cat >conftest.$ac_ext <<_ACEOF
17181 /* confdefs.h. */
17182 _ACEOF
17183 cat confdefs.h >>conftest.$ac_ext
17184 cat >>conftest.$ac_ext <<_ACEOF
17185 /* end confdefs.h. */
17188 main ()
17192 return 0;
17194 _ACEOF
17195 rm -f conftest.$ac_objext conftest$ac_exeext
17196 if { (ac_try="$ac_link"
17197 case "(($ac_try" in
17198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17199 *) ac_try_echo=$ac_try;;
17200 esac
17201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17202 (eval "$ac_link") 2>conftest.er1
17203 ac_status=$?
17204 grep -v '^ *+' conftest.er1 >conftest.err
17205 rm -f conftest.er1
17206 cat conftest.err >&5
17207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17208 (exit $ac_status); } && {
17209 test -z "$ac_c_werror_flag" ||
17210 test ! -s conftest.err
17211 } && test -s conftest$ac_exeext &&
17212 $as_test_x conftest$ac_exeext; then
17214 lt_aix_libpath_sed='
17215 /Import File Strings/,/^$/ {
17216 /^0/ {
17217 s/^0 *\(.*\)$/\1/
17221 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17222 # Check for a 64-bit object if we didn't find anything.
17223 if test -z "$aix_libpath"; then
17224 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17226 else
17227 echo "$as_me: failed program was:" >&5
17228 sed 's/^/| /' conftest.$ac_ext >&5
17233 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17234 conftest$ac_exeext conftest.$ac_ext
17235 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17237 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17238 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"
17239 else
17240 if test "$host_cpu" = ia64; then
17241 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17242 allow_undefined_flag_GCJ="-z nodefs"
17243 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"
17244 else
17245 # Determine the default libpath from the value encoded in an empty executable.
17246 cat >conftest.$ac_ext <<_ACEOF
17247 /* confdefs.h. */
17248 _ACEOF
17249 cat confdefs.h >>conftest.$ac_ext
17250 cat >>conftest.$ac_ext <<_ACEOF
17251 /* end confdefs.h. */
17254 main ()
17258 return 0;
17260 _ACEOF
17261 rm -f conftest.$ac_objext conftest$ac_exeext
17262 if { (ac_try="$ac_link"
17263 case "(($ac_try" in
17264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17265 *) ac_try_echo=$ac_try;;
17266 esac
17267 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17268 (eval "$ac_link") 2>conftest.er1
17269 ac_status=$?
17270 grep -v '^ *+' conftest.er1 >conftest.err
17271 rm -f conftest.er1
17272 cat conftest.err >&5
17273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17274 (exit $ac_status); } && {
17275 test -z "$ac_c_werror_flag" ||
17276 test ! -s conftest.err
17277 } && test -s conftest$ac_exeext &&
17278 $as_test_x conftest$ac_exeext; then
17280 lt_aix_libpath_sed='
17281 /Import File Strings/,/^$/ {
17282 /^0/ {
17283 s/^0 *\(.*\)$/\1/
17287 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17288 # Check for a 64-bit object if we didn't find anything.
17289 if test -z "$aix_libpath"; then
17290 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17292 else
17293 echo "$as_me: failed program was:" >&5
17294 sed 's/^/| /' conftest.$ac_ext >&5
17299 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17300 conftest$ac_exeext conftest.$ac_ext
17301 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17303 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17304 # Warning - without using the other run time loading flags,
17305 # -berok will link without error, but may produce a broken library.
17306 no_undefined_flag_GCJ=' ${wl}-bernotok'
17307 allow_undefined_flag_GCJ=' ${wl}-berok'
17308 # Exported symbols can be pulled into shared objects from archives
17309 whole_archive_flag_spec_GCJ='$convenience'
17310 archive_cmds_need_lc_GCJ=yes
17311 # This is similar to how AIX traditionally builds its shared libraries.
17312 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'
17317 amigaos*)
17318 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)'
17319 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17320 hardcode_minus_L_GCJ=yes
17321 # see comment about different semantics on the GNU ld section
17322 ld_shlibs_GCJ=no
17325 bsdi[45]*)
17326 export_dynamic_flag_spec_GCJ=-rdynamic
17329 cygwin* | mingw* | pw32*)
17330 # When not using gcc, we currently assume that we are using
17331 # Microsoft Visual C++.
17332 # hardcode_libdir_flag_spec is actually meaningless, as there is
17333 # no search path for DLLs.
17334 hardcode_libdir_flag_spec_GCJ=' '
17335 allow_undefined_flag_GCJ=unsupported
17336 # Tell ltmain to make .lib files, not .a files.
17337 libext=lib
17338 # Tell ltmain to make .dll files, not .so files.
17339 shrext_cmds=".dll"
17340 # FIXME: Setting linknames here is a bad hack.
17341 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17342 # The linker will automatically build a .lib file if we build a DLL.
17343 old_archive_From_new_cmds_GCJ='true'
17344 # FIXME: Should let the user specify the lib program.
17345 old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs'
17346 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
17347 enable_shared_with_static_runtimes_GCJ=yes
17350 darwin* | rhapsody*)
17351 case $host_os in
17352 rhapsody* | darwin1.[012])
17353 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
17355 *) # Darwin 1.3 on
17356 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17357 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17358 else
17359 case ${MACOSX_DEPLOYMENT_TARGET} in
17360 10.[012])
17361 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17363 10.*)
17364 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
17366 esac
17369 esac
17370 archive_cmds_need_lc_GCJ=no
17371 hardcode_direct_GCJ=no
17372 hardcode_automatic_GCJ=yes
17373 hardcode_shlibpath_var_GCJ=unsupported
17374 whole_archive_flag_spec_GCJ=''
17375 link_all_deplibs_GCJ=yes
17376 if test "$GCC" = yes ; then
17377 output_verbose_link_cmd='echo'
17378 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
17379 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17380 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17381 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17382 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}'
17383 else
17384 case $cc_basename in
17385 xlc*)
17386 output_verbose_link_cmd='echo'
17387 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
17388 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17389 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17390 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}'
17391 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}'
17394 ld_shlibs_GCJ=no
17396 esac
17400 dgux*)
17401 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17402 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17403 hardcode_shlibpath_var_GCJ=no
17406 freebsd1*)
17407 ld_shlibs_GCJ=no
17410 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17411 # support. Future versions do this automatically, but an explicit c++rt0.o
17412 # does not break anything, and helps significantly (at the cost of a little
17413 # extra space).
17414 freebsd2.2*)
17415 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17416 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17417 hardcode_direct_GCJ=yes
17418 hardcode_shlibpath_var_GCJ=no
17421 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17422 freebsd2*)
17423 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17424 hardcode_direct_GCJ=yes
17425 hardcode_minus_L_GCJ=yes
17426 hardcode_shlibpath_var_GCJ=no
17429 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17430 freebsd* | dragonfly*)
17431 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17432 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17433 hardcode_direct_GCJ=yes
17434 hardcode_shlibpath_var_GCJ=no
17437 hpux9*)
17438 if test "$GCC" = yes; then
17439 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'
17440 else
17441 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'
17443 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17444 hardcode_libdir_separator_GCJ=:
17445 hardcode_direct_GCJ=yes
17447 # hardcode_minus_L: Not really in the search PATH,
17448 # but as the default location of the library.
17449 hardcode_minus_L_GCJ=yes
17450 export_dynamic_flag_spec_GCJ='${wl}-E'
17453 hpux10*)
17454 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17455 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17456 else
17457 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17459 if test "$with_gnu_ld" = no; then
17460 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17461 hardcode_libdir_separator_GCJ=:
17463 hardcode_direct_GCJ=yes
17464 export_dynamic_flag_spec_GCJ='${wl}-E'
17466 # hardcode_minus_L: Not really in the search PATH,
17467 # but as the default location of the library.
17468 hardcode_minus_L_GCJ=yes
17472 hpux11*)
17473 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17474 case $host_cpu in
17475 hppa*64*)
17476 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17478 ia64*)
17479 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17482 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17484 esac
17485 else
17486 case $host_cpu in
17487 hppa*64*)
17488 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17490 ia64*)
17491 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17494 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17496 esac
17498 if test "$with_gnu_ld" = no; then
17499 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17500 hardcode_libdir_separator_GCJ=:
17502 case $host_cpu in
17503 hppa*64*|ia64*)
17504 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
17505 hardcode_direct_GCJ=no
17506 hardcode_shlibpath_var_GCJ=no
17509 hardcode_direct_GCJ=yes
17510 export_dynamic_flag_spec_GCJ='${wl}-E'
17512 # hardcode_minus_L: Not really in the search PATH,
17513 # but as the default location of the library.
17514 hardcode_minus_L_GCJ=yes
17516 esac
17520 irix5* | irix6* | nonstopux*)
17521 if test "$GCC" = yes; then
17522 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'
17523 else
17524 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'
17525 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
17527 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17528 hardcode_libdir_separator_GCJ=:
17529 link_all_deplibs_GCJ=yes
17532 netbsd* | netbsdelf*-gnu)
17533 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17534 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
17535 else
17536 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
17538 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17539 hardcode_direct_GCJ=yes
17540 hardcode_shlibpath_var_GCJ=no
17543 newsos6)
17544 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17545 hardcode_direct_GCJ=yes
17546 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17547 hardcode_libdir_separator_GCJ=:
17548 hardcode_shlibpath_var_GCJ=no
17551 openbsd*)
17552 if test -f /usr/libexec/ld.so; then
17553 hardcode_direct_GCJ=yes
17554 hardcode_shlibpath_var_GCJ=no
17555 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17556 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17557 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17558 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17559 export_dynamic_flag_spec_GCJ='${wl}-E'
17560 else
17561 case $host_os in
17562 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17563 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17564 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17567 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17568 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17570 esac
17572 else
17573 ld_shlibs_GCJ=no
17577 os2*)
17578 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17579 hardcode_minus_L_GCJ=yes
17580 allow_undefined_flag_GCJ=unsupported
17581 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'
17582 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17585 osf3*)
17586 if test "$GCC" = yes; then
17587 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17588 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'
17589 else
17590 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17591 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'
17593 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17594 hardcode_libdir_separator_GCJ=:
17597 osf4* | osf5*) # as osf3* with the addition of -msym flag
17598 if test "$GCC" = yes; then
17599 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17600 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'
17601 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17602 else
17603 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17604 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'
17605 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~
17606 $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'
17608 # Both c and cxx compiler support -rpath directly
17609 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
17611 hardcode_libdir_separator_GCJ=:
17614 solaris*)
17615 no_undefined_flag_GCJ=' -z text'
17616 if test "$GCC" = yes; then
17617 wlarc='${wl}'
17618 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17619 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17620 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
17621 else
17622 wlarc=''
17623 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17624 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17625 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17627 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17628 hardcode_shlibpath_var_GCJ=no
17629 case $host_os in
17630 solaris2.[0-5] | solaris2.[0-5].*) ;;
17632 # The compiler driver will combine and reorder linker options,
17633 # but understands `-z linker_flag'. GCC discards it without `$wl',
17634 # but is careful enough not to reorder.
17635 # Supported since Solaris 2.6 (maybe 2.5.1?)
17636 if test "$GCC" = yes; then
17637 whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
17638 else
17639 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract'
17642 esac
17643 link_all_deplibs_GCJ=yes
17646 sunos4*)
17647 if test "x$host_vendor" = xsequent; then
17648 # Use $CC to link under sequent, because it throws in some extra .o
17649 # files that make .init and .fini sections work.
17650 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17651 else
17652 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17654 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17655 hardcode_direct_GCJ=yes
17656 hardcode_minus_L_GCJ=yes
17657 hardcode_shlibpath_var_GCJ=no
17660 sysv4)
17661 case $host_vendor in
17662 sni)
17663 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17664 hardcode_direct_GCJ=yes # is this really true???
17666 siemens)
17667 ## LD is ld it makes a PLAMLIB
17668 ## CC just makes a GrossModule.
17669 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17670 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
17671 hardcode_direct_GCJ=no
17673 motorola)
17674 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17675 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
17677 esac
17678 runpath_var='LD_RUN_PATH'
17679 hardcode_shlibpath_var_GCJ=no
17682 sysv4.3*)
17683 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17684 hardcode_shlibpath_var_GCJ=no
17685 export_dynamic_flag_spec_GCJ='-Bexport'
17688 sysv4*MP*)
17689 if test -d /usr/nec; then
17690 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17691 hardcode_shlibpath_var_GCJ=no
17692 runpath_var=LD_RUN_PATH
17693 hardcode_runpath_var=yes
17694 ld_shlibs_GCJ=yes
17698 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
17699 no_undefined_flag_GCJ='${wl}-z,text'
17700 archive_cmds_need_lc_GCJ=no
17701 hardcode_shlibpath_var_GCJ=no
17702 runpath_var='LD_RUN_PATH'
17704 if test "$GCC" = yes; then
17705 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17706 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17707 else
17708 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17709 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17713 sysv5* | sco3.2v5* | sco5v6*)
17714 # Note: We can NOT use -z defs as we might desire, because we do not
17715 # link with -lc, and that would cause any symbols used from libc to
17716 # always be unresolved, which means just about no library would
17717 # ever link correctly. If we're not using GNU ld we use -z text
17718 # though, which does catch some bad symbols but isn't as heavy-handed
17719 # as -z defs.
17720 no_undefined_flag_GCJ='${wl}-z,text'
17721 allow_undefined_flag_GCJ='${wl}-z,nodefs'
17722 archive_cmds_need_lc_GCJ=no
17723 hardcode_shlibpath_var_GCJ=no
17724 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
17725 hardcode_libdir_separator_GCJ=':'
17726 link_all_deplibs_GCJ=yes
17727 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
17728 runpath_var='LD_RUN_PATH'
17730 if test "$GCC" = yes; then
17731 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17732 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17733 else
17734 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17735 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17739 uts4*)
17740 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17741 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17742 hardcode_shlibpath_var_GCJ=no
17746 ld_shlibs_GCJ=no
17748 esac
17751 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
17752 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
17753 test "$ld_shlibs_GCJ" = no && can_build_shared=no
17756 # Do we need to explicitly link libc?
17758 case "x$archive_cmds_need_lc_GCJ" in
17759 x|xyes)
17760 # Assume -lc should be added
17761 archive_cmds_need_lc_GCJ=yes
17763 if test "$enable_shared" = yes && test "$GCC" = yes; then
17764 case $archive_cmds_GCJ in
17765 *'~'*)
17766 # FIXME: we may have to deal with multi-command sequences.
17768 '$CC '*)
17769 # Test whether the compiler implicitly links with -lc since on some
17770 # systems, -lgcc has to come before -lc. If gcc already passes -lc
17771 # to ld, don't add -lc before -lgcc.
17772 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
17773 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
17774 $rm conftest*
17775 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17777 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17778 (eval $ac_compile) 2>&5
17779 ac_status=$?
17780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17781 (exit $ac_status); } 2>conftest.err; then
17782 soname=conftest
17783 lib=conftest
17784 libobjs=conftest.$ac_objext
17785 deplibs=
17786 wl=$lt_prog_compiler_wl_GCJ
17787 pic_flag=$lt_prog_compiler_pic_GCJ
17788 compiler_flags=-v
17789 linker_flags=-v
17790 verstring=
17791 output_objdir=.
17792 libname=conftest
17793 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
17794 allow_undefined_flag_GCJ=
17795 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
17796 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17797 ac_status=$?
17798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17799 (exit $ac_status); }
17800 then
17801 archive_cmds_need_lc_GCJ=no
17802 else
17803 archive_cmds_need_lc_GCJ=yes
17805 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
17806 else
17807 cat conftest.err 1>&5
17809 $rm conftest*
17810 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
17811 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
17813 esac
17816 esac
17818 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17819 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
17820 library_names_spec=
17821 libname_spec='lib$name'
17822 soname_spec=
17823 shrext_cmds=".so"
17824 postinstall_cmds=
17825 postuninstall_cmds=
17826 finish_cmds=
17827 finish_eval=
17828 shlibpath_var=
17829 shlibpath_overrides_runpath=unknown
17830 version_type=none
17831 dynamic_linker="$host_os ld.so"
17832 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17834 need_lib_prefix=unknown
17835 hardcode_into_libs=no
17837 # when you set need_version to no, make sure it does not cause -set_version
17838 # flags to be left without arguments
17839 need_version=unknown
17841 case $host_os in
17842 aix3*)
17843 version_type=linux
17844 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17845 shlibpath_var=LIBPATH
17847 # AIX 3 has no versioning support, so we append a major version to the name.
17848 soname_spec='${libname}${release}${shared_ext}$major'
17851 aix4* | aix5*)
17852 version_type=linux
17853 need_lib_prefix=no
17854 need_version=no
17855 hardcode_into_libs=yes
17856 if test "$host_cpu" = ia64; then
17857 # AIX 5 supports IA64
17858 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17859 shlibpath_var=LD_LIBRARY_PATH
17860 else
17861 # With GCC up to 2.95.x, collect2 would create an import file
17862 # for dependence libraries. The import file would start with
17863 # the line `#! .'. This would cause the generated library to
17864 # depend on `.', always an invalid library. This was fixed in
17865 # development snapshots of GCC prior to 3.0.
17866 case $host_os in
17867 aix4 | aix4.[01] | aix4.[01].*)
17868 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17869 echo ' yes '
17870 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17872 else
17873 can_build_shared=no
17876 esac
17877 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17878 # soname into executable. Probably we can add versioning support to
17879 # collect2, so additional links can be useful in future.
17880 if test "$aix_use_runtimelinking" = yes; then
17881 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17882 # instead of lib<name>.a to let people know that these are not
17883 # typical AIX shared libraries.
17884 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17885 else
17886 # We preserve .a as extension for shared libraries through AIX4.2
17887 # and later when we are not doing run time linking.
17888 library_names_spec='${libname}${release}.a $libname.a'
17889 soname_spec='${libname}${release}${shared_ext}$major'
17891 shlibpath_var=LIBPATH
17895 amigaos*)
17896 library_names_spec='$libname.ixlibrary $libname.a'
17897 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17898 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'
17901 beos*)
17902 library_names_spec='${libname}${shared_ext}'
17903 dynamic_linker="$host_os ld.so"
17904 shlibpath_var=LIBRARY_PATH
17907 bsdi[45]*)
17908 version_type=linux
17909 need_version=no
17910 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17911 soname_spec='${libname}${release}${shared_ext}$major'
17912 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17913 shlibpath_var=LD_LIBRARY_PATH
17914 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17915 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17916 # the default ld.so.conf also contains /usr/contrib/lib and
17917 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17918 # libtool to hard-code these into programs
17921 cygwin* | mingw* | pw32*)
17922 version_type=windows
17923 shrext_cmds=".dll"
17924 need_version=no
17925 need_lib_prefix=no
17927 case $GCC,$host_os in
17928 yes,cygwin* | yes,mingw* | yes,pw32*)
17929 library_names_spec='$libname.dll.a'
17930 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17931 postinstall_cmds='base_file=`basename \${file}`~
17932 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17933 dldir=$destdir/`dirname \$dlpath`~
17934 test -d \$dldir || mkdir -p \$dldir~
17935 $install_prog $dir/$dlname \$dldir/$dlname~
17936 chmod a+x \$dldir/$dlname'
17937 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17938 dlpath=$dir/\$dldll~
17939 $rm \$dlpath'
17940 shlibpath_overrides_runpath=yes
17942 case $host_os in
17943 cygwin*)
17944 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17945 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17946 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17948 mingw*)
17949 # MinGW DLLs use traditional 'lib' prefix
17950 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17951 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17952 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17953 # It is most probably a Windows format PATH printed by
17954 # mingw gcc, but we are running on Cygwin. Gcc prints its search
17955 # path with ; separators, and with drive letters. We can handle the
17956 # drive letters (cygwin fileutils understands them), so leave them,
17957 # especially as we might pass files found there to a mingw objdump,
17958 # which wouldn't understand a cygwinified path. Ahh.
17959 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17960 else
17961 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17964 pw32*)
17965 # pw32 DLLs use 'pw' prefix rather than 'lib'
17966 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17968 esac
17972 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17974 esac
17975 dynamic_linker='Win32 ld.exe'
17976 # FIXME: first we should search . and the directory the executable is in
17977 shlibpath_var=PATH
17980 darwin* | rhapsody*)
17981 dynamic_linker="$host_os dyld"
17982 version_type=darwin
17983 need_lib_prefix=no
17984 need_version=no
17985 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17986 soname_spec='${libname}${release}${major}$shared_ext'
17987 shlibpath_overrides_runpath=yes
17988 shlibpath_var=DYLD_LIBRARY_PATH
17989 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17991 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17994 dgux*)
17995 version_type=linux
17996 need_lib_prefix=no
17997 need_version=no
17998 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17999 soname_spec='${libname}${release}${shared_ext}$major'
18000 shlibpath_var=LD_LIBRARY_PATH
18003 freebsd1*)
18004 dynamic_linker=no
18007 freebsd* | dragonfly*)
18008 # DragonFly does not have aout. When/if they implement a new
18009 # versioning mechanism, adjust this.
18010 if test -x /usr/bin/objformat; then
18011 objformat=`/usr/bin/objformat`
18012 else
18013 case $host_os in
18014 freebsd[123]*) objformat=aout ;;
18015 *) objformat=elf ;;
18016 esac
18018 version_type=freebsd-$objformat
18019 case $version_type in
18020 freebsd-elf*)
18021 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18022 need_version=no
18023 need_lib_prefix=no
18025 freebsd-*)
18026 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18027 need_version=yes
18029 esac
18030 shlibpath_var=LD_LIBRARY_PATH
18031 case $host_os in
18032 freebsd2*)
18033 shlibpath_overrides_runpath=yes
18035 freebsd3.[01]* | freebsdelf3.[01]*)
18036 shlibpath_overrides_runpath=yes
18037 hardcode_into_libs=yes
18039 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18040 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18041 shlibpath_overrides_runpath=no
18042 hardcode_into_libs=yes
18044 *) # from 4.6 on, and DragonFly
18045 shlibpath_overrides_runpath=yes
18046 hardcode_into_libs=yes
18048 esac
18051 gnu*)
18052 version_type=linux
18053 need_lib_prefix=no
18054 need_version=no
18055 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18056 soname_spec='${libname}${release}${shared_ext}$major'
18057 shlibpath_var=LD_LIBRARY_PATH
18058 hardcode_into_libs=yes
18061 hpux9* | hpux10* | hpux11*)
18062 # Give a soname corresponding to the major version so that dld.sl refuses to
18063 # link against other versions.
18064 version_type=sunos
18065 need_lib_prefix=no
18066 need_version=no
18067 case $host_cpu in
18068 ia64*)
18069 shrext_cmds='.so'
18070 hardcode_into_libs=yes
18071 dynamic_linker="$host_os dld.so"
18072 shlibpath_var=LD_LIBRARY_PATH
18073 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18074 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18075 soname_spec='${libname}${release}${shared_ext}$major'
18076 if test "X$HPUX_IA64_MODE" = X32; then
18077 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18078 else
18079 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18081 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18083 hppa*64*)
18084 shrext_cmds='.sl'
18085 hardcode_into_libs=yes
18086 dynamic_linker="$host_os dld.sl"
18087 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18088 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18089 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18090 soname_spec='${libname}${release}${shared_ext}$major'
18091 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18092 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18095 shrext_cmds='.sl'
18096 dynamic_linker="$host_os dld.sl"
18097 shlibpath_var=SHLIB_PATH
18098 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18099 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18100 soname_spec='${libname}${release}${shared_ext}$major'
18102 esac
18103 # HP-UX runs *really* slowly unless shared libraries are mode 555.
18104 postinstall_cmds='chmod 555 $lib'
18107 interix[3-9]*)
18108 version_type=linux
18109 need_lib_prefix=no
18110 need_version=no
18111 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18112 soname_spec='${libname}${release}${shared_ext}$major'
18113 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18114 shlibpath_var=LD_LIBRARY_PATH
18115 shlibpath_overrides_runpath=no
18116 hardcode_into_libs=yes
18119 irix5* | irix6* | nonstopux*)
18120 case $host_os in
18121 nonstopux*) version_type=nonstopux ;;
18123 if test "$lt_cv_prog_gnu_ld" = yes; then
18124 version_type=linux
18125 else
18126 version_type=irix
18127 fi ;;
18128 esac
18129 need_lib_prefix=no
18130 need_version=no
18131 soname_spec='${libname}${release}${shared_ext}$major'
18132 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18133 case $host_os in
18134 irix5* | nonstopux*)
18135 libsuff= shlibsuff=
18138 case $LD in # libtool.m4 will add one of these switches to LD
18139 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18140 libsuff= shlibsuff= libmagic=32-bit;;
18141 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18142 libsuff=32 shlibsuff=N32 libmagic=N32;;
18143 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18144 libsuff=64 shlibsuff=64 libmagic=64-bit;;
18145 *) libsuff= shlibsuff= libmagic=never-match;;
18146 esac
18148 esac
18149 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18150 shlibpath_overrides_runpath=no
18151 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18152 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18153 hardcode_into_libs=yes
18156 # No shared lib support for Linux oldld, aout, or coff.
18157 linux*oldld* | linux*aout* | linux*coff*)
18158 dynamic_linker=no
18161 # This must be Linux ELF.
18162 linux* | k*bsd*-gnu)
18163 version_type=linux
18164 need_lib_prefix=no
18165 need_version=no
18166 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18167 soname_spec='${libname}${release}${shared_ext}$major'
18168 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18169 shlibpath_var=LD_LIBRARY_PATH
18170 shlibpath_overrides_runpath=no
18171 # This implies no fast_install, which is unacceptable.
18172 # Some rework will be needed to allow for fast_install
18173 # before this can be enabled.
18174 hardcode_into_libs=yes
18176 # Append ld.so.conf contents to the search path
18177 if test -f /etc/ld.so.conf; then
18178 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' ' '`
18179 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18182 # We used to test for /lib/ld.so.1 and disable shared libraries on
18183 # powerpc, because MkLinux only supported shared libraries with the
18184 # GNU dynamic linker. Since this was broken with cross compilers,
18185 # most powerpc-linux boxes support dynamic linking these days and
18186 # people can always --disable-shared, the test was removed, and we
18187 # assume the GNU/Linux dynamic linker is in use.
18188 dynamic_linker='GNU/Linux ld.so'
18191 netbsdelf*-gnu)
18192 version_type=linux
18193 need_lib_prefix=no
18194 need_version=no
18195 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18196 soname_spec='${libname}${release}${shared_ext}$major'
18197 shlibpath_var=LD_LIBRARY_PATH
18198 shlibpath_overrides_runpath=no
18199 hardcode_into_libs=yes
18200 dynamic_linker='NetBSD ld.elf_so'
18203 netbsd*)
18204 version_type=sunos
18205 need_lib_prefix=no
18206 need_version=no
18207 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18208 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18209 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18210 dynamic_linker='NetBSD (a.out) ld.so'
18211 else
18212 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18213 soname_spec='${libname}${release}${shared_ext}$major'
18214 dynamic_linker='NetBSD ld.elf_so'
18216 shlibpath_var=LD_LIBRARY_PATH
18217 shlibpath_overrides_runpath=yes
18218 hardcode_into_libs=yes
18221 newsos6)
18222 version_type=linux
18223 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18224 shlibpath_var=LD_LIBRARY_PATH
18225 shlibpath_overrides_runpath=yes
18228 nto-qnx*)
18229 version_type=linux
18230 need_lib_prefix=no
18231 need_version=no
18232 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18233 soname_spec='${libname}${release}${shared_ext}$major'
18234 shlibpath_var=LD_LIBRARY_PATH
18235 shlibpath_overrides_runpath=yes
18238 openbsd*)
18239 version_type=sunos
18240 sys_lib_dlsearch_path_spec="/usr/lib"
18241 need_lib_prefix=no
18242 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18243 case $host_os in
18244 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18245 *) need_version=no ;;
18246 esac
18247 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18248 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18249 shlibpath_var=LD_LIBRARY_PATH
18250 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18251 case $host_os in
18252 openbsd2.[89] | openbsd2.[89].*)
18253 shlibpath_overrides_runpath=no
18256 shlibpath_overrides_runpath=yes
18258 esac
18259 else
18260 shlibpath_overrides_runpath=yes
18264 os2*)
18265 libname_spec='$name'
18266 shrext_cmds=".dll"
18267 need_lib_prefix=no
18268 library_names_spec='$libname${shared_ext} $libname.a'
18269 dynamic_linker='OS/2 ld.exe'
18270 shlibpath_var=LIBPATH
18273 osf3* | osf4* | osf5*)
18274 version_type=osf
18275 need_lib_prefix=no
18276 need_version=no
18277 soname_spec='${libname}${release}${shared_ext}$major'
18278 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18279 shlibpath_var=LD_LIBRARY_PATH
18280 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18281 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18284 rdos*)
18285 dynamic_linker=no
18288 solaris*)
18289 version_type=linux
18290 need_lib_prefix=no
18291 need_version=no
18292 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18293 soname_spec='${libname}${release}${shared_ext}$major'
18294 shlibpath_var=LD_LIBRARY_PATH
18295 shlibpath_overrides_runpath=yes
18296 hardcode_into_libs=yes
18297 # ldd complains unless libraries are executable
18298 postinstall_cmds='chmod +x $lib'
18301 sunos4*)
18302 version_type=sunos
18303 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18304 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18305 shlibpath_var=LD_LIBRARY_PATH
18306 shlibpath_overrides_runpath=yes
18307 if test "$with_gnu_ld" = yes; then
18308 need_lib_prefix=no
18310 need_version=yes
18313 sysv4 | sysv4.3*)
18314 version_type=linux
18315 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18316 soname_spec='${libname}${release}${shared_ext}$major'
18317 shlibpath_var=LD_LIBRARY_PATH
18318 case $host_vendor in
18319 sni)
18320 shlibpath_overrides_runpath=no
18321 need_lib_prefix=no
18322 export_dynamic_flag_spec='${wl}-Blargedynsym'
18323 runpath_var=LD_RUN_PATH
18325 siemens)
18326 need_lib_prefix=no
18328 motorola)
18329 need_lib_prefix=no
18330 need_version=no
18331 shlibpath_overrides_runpath=no
18332 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18334 esac
18337 sysv4*MP*)
18338 if test -d /usr/nec ;then
18339 version_type=linux
18340 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18341 soname_spec='$libname${shared_ext}.$major'
18342 shlibpath_var=LD_LIBRARY_PATH
18346 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18347 version_type=freebsd-elf
18348 need_lib_prefix=no
18349 need_version=no
18350 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18351 soname_spec='${libname}${release}${shared_ext}$major'
18352 shlibpath_var=LD_LIBRARY_PATH
18353 hardcode_into_libs=yes
18354 if test "$with_gnu_ld" = yes; then
18355 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18356 shlibpath_overrides_runpath=no
18357 else
18358 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18359 shlibpath_overrides_runpath=yes
18360 case $host_os in
18361 sco3.2v5*)
18362 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18364 esac
18366 sys_lib_dlsearch_path_spec='/usr/lib'
18369 uts4*)
18370 version_type=linux
18371 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18372 soname_spec='${libname}${release}${shared_ext}$major'
18373 shlibpath_var=LD_LIBRARY_PATH
18377 dynamic_linker=no
18379 esac
18380 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18381 echo "${ECHO_T}$dynamic_linker" >&6; }
18382 test "$dynamic_linker" = no && can_build_shared=no
18384 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18385 if test "$GCC" = yes; then
18386 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18389 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18390 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
18391 hardcode_action_GCJ=
18392 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
18393 test -n "$runpath_var_GCJ" || \
18394 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
18396 # We can hardcode non-existant directories.
18397 if test "$hardcode_direct_GCJ" != no &&
18398 # If the only mechanism to avoid hardcoding is shlibpath_var, we
18399 # have to relink, otherwise we might link with an installed library
18400 # when we should be linking with a yet-to-be-installed one
18401 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18402 test "$hardcode_minus_L_GCJ" != no; then
18403 # Linking always hardcodes the temporary library directory.
18404 hardcode_action_GCJ=relink
18405 else
18406 # We can link without hardcoding, and we can hardcode nonexisting dirs.
18407 hardcode_action_GCJ=immediate
18409 else
18410 # We cannot hardcode anything, or else we can only hardcode existing
18411 # directories.
18412 hardcode_action_GCJ=unsupported
18414 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
18415 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
18417 if test "$hardcode_action_GCJ" = relink; then
18418 # Fast installation is not supported
18419 enable_fast_install=no
18420 elif test "$shlibpath_overrides_runpath" = yes ||
18421 test "$enable_shared" = no; then
18422 # Fast installation is not necessary
18423 enable_fast_install=needless
18427 # The else clause should only fire when bootstrapping the
18428 # libtool distribution, otherwise you forgot to ship ltmain.sh
18429 # with your package, and you will get complaints that there are
18430 # no rules to generate ltmain.sh.
18431 if test -f "$ltmain"; then
18432 # See if we are running on zsh, and set the options which allow our commands through
18433 # without removal of \ escapes.
18434 if test -n "${ZSH_VERSION+set}" ; then
18435 setopt NO_GLOB_SUBST
18437 # Now quote all the things that may contain metacharacters while being
18438 # careful not to overquote the AC_SUBSTed values. We take copies of the
18439 # variables and quote the copies for generation of the libtool script.
18440 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18441 SED SHELL STRIP \
18442 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18443 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18444 deplibs_check_method reload_flag reload_cmds need_locks \
18445 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18446 lt_cv_sys_global_symbol_to_c_name_address \
18447 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18448 old_postinstall_cmds old_postuninstall_cmds \
18449 compiler_GCJ \
18450 CC_GCJ \
18451 LD_GCJ \
18452 lt_prog_compiler_wl_GCJ \
18453 lt_prog_compiler_pic_GCJ \
18454 lt_prog_compiler_static_GCJ \
18455 lt_prog_compiler_no_builtin_flag_GCJ \
18456 export_dynamic_flag_spec_GCJ \
18457 thread_safe_flag_spec_GCJ \
18458 whole_archive_flag_spec_GCJ \
18459 enable_shared_with_static_runtimes_GCJ \
18460 old_archive_cmds_GCJ \
18461 old_archive_from_new_cmds_GCJ \
18462 predep_objects_GCJ \
18463 postdep_objects_GCJ \
18464 predeps_GCJ \
18465 postdeps_GCJ \
18466 compiler_lib_search_path_GCJ \
18467 archive_cmds_GCJ \
18468 archive_expsym_cmds_GCJ \
18469 postinstall_cmds_GCJ \
18470 postuninstall_cmds_GCJ \
18471 old_archive_from_expsyms_cmds_GCJ \
18472 allow_undefined_flag_GCJ \
18473 no_undefined_flag_GCJ \
18474 export_symbols_cmds_GCJ \
18475 hardcode_libdir_flag_spec_GCJ \
18476 hardcode_libdir_flag_spec_ld_GCJ \
18477 hardcode_libdir_separator_GCJ \
18478 hardcode_automatic_GCJ \
18479 module_cmds_GCJ \
18480 module_expsym_cmds_GCJ \
18481 lt_cv_prog_compiler_c_o_GCJ \
18482 fix_srcfile_path_GCJ \
18483 exclude_expsyms_GCJ \
18484 include_expsyms_GCJ; do
18486 case $var in
18487 old_archive_cmds_GCJ | \
18488 old_archive_from_new_cmds_GCJ | \
18489 archive_cmds_GCJ | \
18490 archive_expsym_cmds_GCJ | \
18491 module_cmds_GCJ | \
18492 module_expsym_cmds_GCJ | \
18493 old_archive_from_expsyms_cmds_GCJ | \
18494 export_symbols_cmds_GCJ | \
18495 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18496 postinstall_cmds | postuninstall_cmds | \
18497 old_postinstall_cmds | old_postuninstall_cmds | \
18498 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18499 # Double-quote double-evaled strings.
18500 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18503 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18505 esac
18506 done
18508 case $lt_echo in
18509 *'\$0 --fallback-echo"')
18510 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18512 esac
18514 cfgfile="$ofile"
18516 cat <<__EOF__ >> "$cfgfile"
18517 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18519 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18521 # Shell to use when invoking shell scripts.
18522 SHELL=$lt_SHELL
18524 # Whether or not to build shared libraries.
18525 build_libtool_libs=$enable_shared
18527 # Whether or not to build static libraries.
18528 build_old_libs=$enable_static
18530 # Whether or not to add -lc for building shared libraries.
18531 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18533 # Whether or not to disallow shared libs when runtime libs are static
18534 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18536 # Whether or not to optimize for fast installation.
18537 fast_install=$enable_fast_install
18539 # The host system.
18540 host_alias=$host_alias
18541 host=$host
18542 host_os=$host_os
18544 # The build system.
18545 build_alias=$build_alias
18546 build=$build
18547 build_os=$build_os
18549 # An echo program that does not interpret backslashes.
18550 echo=$lt_echo
18552 # The archiver.
18553 AR=$lt_AR
18554 AR_FLAGS=$lt_AR_FLAGS
18556 # A C compiler.
18557 LTCC=$lt_LTCC
18559 # LTCC compiler flags.
18560 LTCFLAGS=$lt_LTCFLAGS
18562 # A language-specific compiler.
18563 CC=$lt_compiler_GCJ
18565 # Is the compiler the GNU C compiler?
18566 with_gcc=$GCC_GCJ
18568 # An ERE matcher.
18569 EGREP=$lt_EGREP
18571 # The linker used to build libraries.
18572 LD=$lt_LD_GCJ
18574 # Whether we need hard or soft links.
18575 LN_S=$lt_LN_S
18577 # A BSD-compatible nm program.
18578 NM=$lt_NM
18580 # A symbol stripping program
18581 STRIP=$lt_STRIP
18583 # Used to examine libraries when file_magic_cmd begins "file"
18584 MAGIC_CMD=$MAGIC_CMD
18586 # Used on cygwin: DLL creation program.
18587 DLLTOOL="$DLLTOOL"
18589 # Used on cygwin: object dumper.
18590 OBJDUMP="$OBJDUMP"
18592 # Used on cygwin: assembler.
18593 AS="$AS"
18595 # The name of the directory that contains temporary libtool files.
18596 objdir=$objdir
18598 # How to create reloadable object files.
18599 reload_flag=$lt_reload_flag
18600 reload_cmds=$lt_reload_cmds
18602 # How to pass a linker flag through the compiler.
18603 wl=$lt_lt_prog_compiler_wl_GCJ
18605 # Object file suffix (normally "o").
18606 objext="$ac_objext"
18608 # Old archive suffix (normally "a").
18609 libext="$libext"
18611 # Shared library suffix (normally ".so").
18612 shrext_cmds='$shrext_cmds'
18614 # Executable file suffix (normally "").
18615 exeext="$exeext"
18617 # Additional compiler flags for building library objects.
18618 pic_flag=$lt_lt_prog_compiler_pic_GCJ
18619 pic_mode=$pic_mode
18621 # What is the maximum length of a command?
18622 max_cmd_len=$lt_cv_sys_max_cmd_len
18624 # Does compiler simultaneously support -c and -o options?
18625 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18627 # Must we lock files when doing compilation?
18628 need_locks=$lt_need_locks
18630 # Do we need the lib prefix for modules?
18631 need_lib_prefix=$need_lib_prefix
18633 # Do we need a version for libraries?
18634 need_version=$need_version
18636 # Whether dlopen is supported.
18637 dlopen_support=$enable_dlopen
18639 # Whether dlopen of programs is supported.
18640 dlopen_self=$enable_dlopen_self
18642 # Whether dlopen of statically linked programs is supported.
18643 dlopen_self_static=$enable_dlopen_self_static
18645 # Compiler flag to prevent dynamic linking.
18646 link_static_flag=$lt_lt_prog_compiler_static_GCJ
18648 # Compiler flag to turn off builtin functions.
18649 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18651 # Compiler flag to allow reflexive dlopens.
18652 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18654 # Compiler flag to generate shared objects directly from archives.
18655 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18657 # Compiler flag to generate thread-safe objects.
18658 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18660 # Library versioning type.
18661 version_type=$version_type
18663 # Format of library name prefix.
18664 libname_spec=$lt_libname_spec
18666 # List of archive names. First name is the real one, the rest are links.
18667 # The last name is the one that the linker finds with -lNAME.
18668 library_names_spec=$lt_library_names_spec
18670 # The coded name of the library, if different from the real name.
18671 soname_spec=$lt_soname_spec
18673 # Commands used to build and install an old-style archive.
18674 RANLIB=$lt_RANLIB
18675 old_archive_cmds=$lt_old_archive_cmds_GCJ
18676 old_postinstall_cmds=$lt_old_postinstall_cmds
18677 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18679 # Create an old-style archive from a shared archive.
18680 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18682 # Create a temporary old-style archive to link instead of a shared archive.
18683 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18685 # Commands used to build and install a shared archive.
18686 archive_cmds=$lt_archive_cmds_GCJ
18687 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18688 postinstall_cmds=$lt_postinstall_cmds
18689 postuninstall_cmds=$lt_postuninstall_cmds
18691 # Commands used to build a loadable module (assumed same as above if empty)
18692 module_cmds=$lt_module_cmds_GCJ
18693 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18695 # Commands to strip libraries.
18696 old_striplib=$lt_old_striplib
18697 striplib=$lt_striplib
18699 # Dependencies to place before the objects being linked to create a
18700 # shared library.
18701 predep_objects=$lt_predep_objects_GCJ
18703 # Dependencies to place after the objects being linked to create a
18704 # shared library.
18705 postdep_objects=$lt_postdep_objects_GCJ
18707 # Dependencies to place before the objects being linked to create a
18708 # shared library.
18709 predeps=$lt_predeps_GCJ
18711 # Dependencies to place after the objects being linked to create a
18712 # shared library.
18713 postdeps=$lt_postdeps_GCJ
18715 # The library search path used internally by the compiler when linking
18716 # a shared library.
18717 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
18719 # Method to check whether dependent libraries are shared objects.
18720 deplibs_check_method=$lt_deplibs_check_method
18722 # Command to use when deplibs_check_method == file_magic.
18723 file_magic_cmd=$lt_file_magic_cmd
18725 # Flag that allows shared libraries with undefined symbols to be built.
18726 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18728 # Flag that forces no undefined symbols.
18729 no_undefined_flag=$lt_no_undefined_flag_GCJ
18731 # Commands used to finish a libtool library installation in a directory.
18732 finish_cmds=$lt_finish_cmds
18734 # Same as above, but a single script fragment to be evaled but not shown.
18735 finish_eval=$lt_finish_eval
18737 # Take the output of nm and produce a listing of raw symbols and C names.
18738 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18740 # Transform the output of nm in a proper C declaration
18741 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18743 # Transform the output of nm in a C name address pair
18744 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18746 # This is the shared library runtime path variable.
18747 runpath_var=$runpath_var
18749 # This is the shared library path variable.
18750 shlibpath_var=$shlibpath_var
18752 # Is shlibpath searched before the hard-coded library search path?
18753 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18755 # How to hardcode a shared library path into an executable.
18756 hardcode_action=$hardcode_action_GCJ
18758 # Whether we should hardcode library paths into libraries.
18759 hardcode_into_libs=$hardcode_into_libs
18761 # Flag to hardcode \$libdir into a binary during linking.
18762 # This must work even if \$libdir does not exist.
18763 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18765 # If ld is used when linking, flag to hardcode \$libdir into
18766 # a binary during linking. This must work even if \$libdir does
18767 # not exist.
18768 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18770 # Whether we need a single -rpath flag with a separated argument.
18771 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18773 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18774 # resulting binary.
18775 hardcode_direct=$hardcode_direct_GCJ
18777 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18778 # resulting binary.
18779 hardcode_minus_L=$hardcode_minus_L_GCJ
18781 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18782 # the resulting binary.
18783 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18785 # Set to yes if building a shared library automatically hardcodes DIR into the library
18786 # and all subsequent libraries and executables linked against it.
18787 hardcode_automatic=$hardcode_automatic_GCJ
18789 # Variables whose values should be saved in libtool wrapper scripts and
18790 # restored at relink time.
18791 variables_saved_for_relink="$variables_saved_for_relink"
18793 # Whether libtool must link a program against all its dependency libraries.
18794 link_all_deplibs=$link_all_deplibs_GCJ
18796 # Compile-time system search path for libraries
18797 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18799 # Run-time system search path for libraries
18800 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18802 # Fix the shell variable \$srcfile for the compiler.
18803 fix_srcfile_path=$lt_fix_srcfile_path
18805 # Set to yes if exported symbols are required.
18806 always_export_symbols=$always_export_symbols_GCJ
18808 # The commands to list exported symbols.
18809 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18811 # The commands to extract the exported symbol list from a shared archive.
18812 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18814 # Symbols that should not be listed in the preloaded symbols.
18815 exclude_expsyms=$lt_exclude_expsyms_GCJ
18817 # Symbols that must always be exported.
18818 include_expsyms=$lt_include_expsyms_GCJ
18820 # ### END LIBTOOL TAG CONFIG: $tagname
18822 __EOF__
18825 else
18826 # If there is no Makefile yet, we rely on a make rule to execute
18827 # `config.status --recheck' to rerun these tests and create the
18828 # libtool script then.
18829 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18830 if test -f "$ltmain_in"; then
18831 test -f Makefile && make "$ltmain"
18836 ac_ext=c
18837 ac_cpp='$CPP $CPPFLAGS'
18838 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18839 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18840 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18842 CC="$lt_save_CC"
18844 else
18845 tagname=""
18852 # Source file extension for RC test sources.
18853 ac_ext=rc
18855 # Object file extension for compiled RC test sources.
18856 objext=o
18857 objext_RC=$objext
18859 # Code to be used in simple compile tests
18860 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
18862 # Code to be used in simple link tests
18863 lt_simple_link_test_code="$lt_simple_compile_test_code"
18865 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18867 # If no C compiler was specified, use CC.
18868 LTCC=${LTCC-"$CC"}
18870 # If no C compiler flags were specified, use CFLAGS.
18871 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18873 # Allow CC to be a program name with arguments.
18874 compiler=$CC
18877 # save warnings/boilerplate of simple test code
18878 ac_outfile=conftest.$ac_objext
18879 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
18880 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18881 _lt_compiler_boilerplate=`cat conftest.err`
18882 $rm conftest*
18884 ac_outfile=conftest.$ac_objext
18885 echo "$lt_simple_link_test_code" >conftest.$ac_ext
18886 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18887 _lt_linker_boilerplate=`cat conftest.err`
18888 $rm conftest*
18891 # Allow CC to be a program name with arguments.
18892 lt_save_CC="$CC"
18893 CC=${RC-"windres"}
18894 compiler=$CC
18895 compiler_RC=$CC
18896 for cc_temp in $compiler""; do
18897 case $cc_temp in
18898 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18899 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18900 \-*) ;;
18901 *) break;;
18902 esac
18903 done
18904 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18906 lt_cv_prog_compiler_c_o_RC=yes
18908 # The else clause should only fire when bootstrapping the
18909 # libtool distribution, otherwise you forgot to ship ltmain.sh
18910 # with your package, and you will get complaints that there are
18911 # no rules to generate ltmain.sh.
18912 if test -f "$ltmain"; then
18913 # See if we are running on zsh, and set the options which allow our commands through
18914 # without removal of \ escapes.
18915 if test -n "${ZSH_VERSION+set}" ; then
18916 setopt NO_GLOB_SUBST
18918 # Now quote all the things that may contain metacharacters while being
18919 # careful not to overquote the AC_SUBSTed values. We take copies of the
18920 # variables and quote the copies for generation of the libtool script.
18921 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18922 SED SHELL STRIP \
18923 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18924 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18925 deplibs_check_method reload_flag reload_cmds need_locks \
18926 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18927 lt_cv_sys_global_symbol_to_c_name_address \
18928 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18929 old_postinstall_cmds old_postuninstall_cmds \
18930 compiler_RC \
18931 CC_RC \
18932 LD_RC \
18933 lt_prog_compiler_wl_RC \
18934 lt_prog_compiler_pic_RC \
18935 lt_prog_compiler_static_RC \
18936 lt_prog_compiler_no_builtin_flag_RC \
18937 export_dynamic_flag_spec_RC \
18938 thread_safe_flag_spec_RC \
18939 whole_archive_flag_spec_RC \
18940 enable_shared_with_static_runtimes_RC \
18941 old_archive_cmds_RC \
18942 old_archive_from_new_cmds_RC \
18943 predep_objects_RC \
18944 postdep_objects_RC \
18945 predeps_RC \
18946 postdeps_RC \
18947 compiler_lib_search_path_RC \
18948 archive_cmds_RC \
18949 archive_expsym_cmds_RC \
18950 postinstall_cmds_RC \
18951 postuninstall_cmds_RC \
18952 old_archive_from_expsyms_cmds_RC \
18953 allow_undefined_flag_RC \
18954 no_undefined_flag_RC \
18955 export_symbols_cmds_RC \
18956 hardcode_libdir_flag_spec_RC \
18957 hardcode_libdir_flag_spec_ld_RC \
18958 hardcode_libdir_separator_RC \
18959 hardcode_automatic_RC \
18960 module_cmds_RC \
18961 module_expsym_cmds_RC \
18962 lt_cv_prog_compiler_c_o_RC \
18963 fix_srcfile_path_RC \
18964 exclude_expsyms_RC \
18965 include_expsyms_RC; do
18967 case $var in
18968 old_archive_cmds_RC | \
18969 old_archive_from_new_cmds_RC | \
18970 archive_cmds_RC | \
18971 archive_expsym_cmds_RC | \
18972 module_cmds_RC | \
18973 module_expsym_cmds_RC | \
18974 old_archive_from_expsyms_cmds_RC | \
18975 export_symbols_cmds_RC | \
18976 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18977 postinstall_cmds | postuninstall_cmds | \
18978 old_postinstall_cmds | old_postuninstall_cmds | \
18979 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18980 # Double-quote double-evaled strings.
18981 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18984 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18986 esac
18987 done
18989 case $lt_echo in
18990 *'\$0 --fallback-echo"')
18991 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18993 esac
18995 cfgfile="$ofile"
18997 cat <<__EOF__ >> "$cfgfile"
18998 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19000 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19002 # Shell to use when invoking shell scripts.
19003 SHELL=$lt_SHELL
19005 # Whether or not to build shared libraries.
19006 build_libtool_libs=$enable_shared
19008 # Whether or not to build static libraries.
19009 build_old_libs=$enable_static
19011 # Whether or not to add -lc for building shared libraries.
19012 build_libtool_need_lc=$archive_cmds_need_lc_RC
19014 # Whether or not to disallow shared libs when runtime libs are static
19015 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19017 # Whether or not to optimize for fast installation.
19018 fast_install=$enable_fast_install
19020 # The host system.
19021 host_alias=$host_alias
19022 host=$host
19023 host_os=$host_os
19025 # The build system.
19026 build_alias=$build_alias
19027 build=$build
19028 build_os=$build_os
19030 # An echo program that does not interpret backslashes.
19031 echo=$lt_echo
19033 # The archiver.
19034 AR=$lt_AR
19035 AR_FLAGS=$lt_AR_FLAGS
19037 # A C compiler.
19038 LTCC=$lt_LTCC
19040 # LTCC compiler flags.
19041 LTCFLAGS=$lt_LTCFLAGS
19043 # A language-specific compiler.
19044 CC=$lt_compiler_RC
19046 # Is the compiler the GNU C compiler?
19047 with_gcc=$GCC_RC
19049 # An ERE matcher.
19050 EGREP=$lt_EGREP
19052 # The linker used to build libraries.
19053 LD=$lt_LD_RC
19055 # Whether we need hard or soft links.
19056 LN_S=$lt_LN_S
19058 # A BSD-compatible nm program.
19059 NM=$lt_NM
19061 # A symbol stripping program
19062 STRIP=$lt_STRIP
19064 # Used to examine libraries when file_magic_cmd begins "file"
19065 MAGIC_CMD=$MAGIC_CMD
19067 # Used on cygwin: DLL creation program.
19068 DLLTOOL="$DLLTOOL"
19070 # Used on cygwin: object dumper.
19071 OBJDUMP="$OBJDUMP"
19073 # Used on cygwin: assembler.
19074 AS="$AS"
19076 # The name of the directory that contains temporary libtool files.
19077 objdir=$objdir
19079 # How to create reloadable object files.
19080 reload_flag=$lt_reload_flag
19081 reload_cmds=$lt_reload_cmds
19083 # How to pass a linker flag through the compiler.
19084 wl=$lt_lt_prog_compiler_wl_RC
19086 # Object file suffix (normally "o").
19087 objext="$ac_objext"
19089 # Old archive suffix (normally "a").
19090 libext="$libext"
19092 # Shared library suffix (normally ".so").
19093 shrext_cmds='$shrext_cmds'
19095 # Executable file suffix (normally "").
19096 exeext="$exeext"
19098 # Additional compiler flags for building library objects.
19099 pic_flag=$lt_lt_prog_compiler_pic_RC
19100 pic_mode=$pic_mode
19102 # What is the maximum length of a command?
19103 max_cmd_len=$lt_cv_sys_max_cmd_len
19105 # Does compiler simultaneously support -c and -o options?
19106 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19108 # Must we lock files when doing compilation?
19109 need_locks=$lt_need_locks
19111 # Do we need the lib prefix for modules?
19112 need_lib_prefix=$need_lib_prefix
19114 # Do we need a version for libraries?
19115 need_version=$need_version
19117 # Whether dlopen is supported.
19118 dlopen_support=$enable_dlopen
19120 # Whether dlopen of programs is supported.
19121 dlopen_self=$enable_dlopen_self
19123 # Whether dlopen of statically linked programs is supported.
19124 dlopen_self_static=$enable_dlopen_self_static
19126 # Compiler flag to prevent dynamic linking.
19127 link_static_flag=$lt_lt_prog_compiler_static_RC
19129 # Compiler flag to turn off builtin functions.
19130 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19132 # Compiler flag to allow reflexive dlopens.
19133 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19135 # Compiler flag to generate shared objects directly from archives.
19136 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19138 # Compiler flag to generate thread-safe objects.
19139 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19141 # Library versioning type.
19142 version_type=$version_type
19144 # Format of library name prefix.
19145 libname_spec=$lt_libname_spec
19147 # List of archive names. First name is the real one, the rest are links.
19148 # The last name is the one that the linker finds with -lNAME.
19149 library_names_spec=$lt_library_names_spec
19151 # The coded name of the library, if different from the real name.
19152 soname_spec=$lt_soname_spec
19154 # Commands used to build and install an old-style archive.
19155 RANLIB=$lt_RANLIB
19156 old_archive_cmds=$lt_old_archive_cmds_RC
19157 old_postinstall_cmds=$lt_old_postinstall_cmds
19158 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19160 # Create an old-style archive from a shared archive.
19161 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19163 # Create a temporary old-style archive to link instead of a shared archive.
19164 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19166 # Commands used to build and install a shared archive.
19167 archive_cmds=$lt_archive_cmds_RC
19168 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19169 postinstall_cmds=$lt_postinstall_cmds
19170 postuninstall_cmds=$lt_postuninstall_cmds
19172 # Commands used to build a loadable module (assumed same as above if empty)
19173 module_cmds=$lt_module_cmds_RC
19174 module_expsym_cmds=$lt_module_expsym_cmds_RC
19176 # Commands to strip libraries.
19177 old_striplib=$lt_old_striplib
19178 striplib=$lt_striplib
19180 # Dependencies to place before the objects being linked to create a
19181 # shared library.
19182 predep_objects=$lt_predep_objects_RC
19184 # Dependencies to place after the objects being linked to create a
19185 # shared library.
19186 postdep_objects=$lt_postdep_objects_RC
19188 # Dependencies to place before the objects being linked to create a
19189 # shared library.
19190 predeps=$lt_predeps_RC
19192 # Dependencies to place after the objects being linked to create a
19193 # shared library.
19194 postdeps=$lt_postdeps_RC
19196 # The library search path used internally by the compiler when linking
19197 # a shared library.
19198 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19200 # Method to check whether dependent libraries are shared objects.
19201 deplibs_check_method=$lt_deplibs_check_method
19203 # Command to use when deplibs_check_method == file_magic.
19204 file_magic_cmd=$lt_file_magic_cmd
19206 # Flag that allows shared libraries with undefined symbols to be built.
19207 allow_undefined_flag=$lt_allow_undefined_flag_RC
19209 # Flag that forces no undefined symbols.
19210 no_undefined_flag=$lt_no_undefined_flag_RC
19212 # Commands used to finish a libtool library installation in a directory.
19213 finish_cmds=$lt_finish_cmds
19215 # Same as above, but a single script fragment to be evaled but not shown.
19216 finish_eval=$lt_finish_eval
19218 # Take the output of nm and produce a listing of raw symbols and C names.
19219 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19221 # Transform the output of nm in a proper C declaration
19222 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19224 # Transform the output of nm in a C name address pair
19225 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19227 # This is the shared library runtime path variable.
19228 runpath_var=$runpath_var
19230 # This is the shared library path variable.
19231 shlibpath_var=$shlibpath_var
19233 # Is shlibpath searched before the hard-coded library search path?
19234 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19236 # How to hardcode a shared library path into an executable.
19237 hardcode_action=$hardcode_action_RC
19239 # Whether we should hardcode library paths into libraries.
19240 hardcode_into_libs=$hardcode_into_libs
19242 # Flag to hardcode \$libdir into a binary during linking.
19243 # This must work even if \$libdir does not exist.
19244 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19246 # If ld is used when linking, flag to hardcode \$libdir into
19247 # a binary during linking. This must work even if \$libdir does
19248 # not exist.
19249 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19251 # Whether we need a single -rpath flag with a separated argument.
19252 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19254 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19255 # resulting binary.
19256 hardcode_direct=$hardcode_direct_RC
19258 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19259 # resulting binary.
19260 hardcode_minus_L=$hardcode_minus_L_RC
19262 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19263 # the resulting binary.
19264 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19266 # Set to yes if building a shared library automatically hardcodes DIR into the library
19267 # and all subsequent libraries and executables linked against it.
19268 hardcode_automatic=$hardcode_automatic_RC
19270 # Variables whose values should be saved in libtool wrapper scripts and
19271 # restored at relink time.
19272 variables_saved_for_relink="$variables_saved_for_relink"
19274 # Whether libtool must link a program against all its dependency libraries.
19275 link_all_deplibs=$link_all_deplibs_RC
19277 # Compile-time system search path for libraries
19278 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19280 # Run-time system search path for libraries
19281 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19283 # Fix the shell variable \$srcfile for the compiler.
19284 fix_srcfile_path=$lt_fix_srcfile_path
19286 # Set to yes if exported symbols are required.
19287 always_export_symbols=$always_export_symbols_RC
19289 # The commands to list exported symbols.
19290 export_symbols_cmds=$lt_export_symbols_cmds_RC
19292 # The commands to extract the exported symbol list from a shared archive.
19293 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19295 # Symbols that should not be listed in the preloaded symbols.
19296 exclude_expsyms=$lt_exclude_expsyms_RC
19298 # Symbols that must always be exported.
19299 include_expsyms=$lt_include_expsyms_RC
19301 # ### END LIBTOOL TAG CONFIG: $tagname
19303 __EOF__
19306 else
19307 # If there is no Makefile yet, we rely on a make rule to execute
19308 # `config.status --recheck' to rerun these tests and create the
19309 # libtool script then.
19310 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19311 if test -f "$ltmain_in"; then
19312 test -f Makefile && make "$ltmain"
19317 ac_ext=c
19318 ac_cpp='$CPP $CPPFLAGS'
19319 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19320 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19321 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19323 CC="$lt_save_CC"
19328 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19329 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19330 { (exit 1); exit 1; }; }
19332 esac
19334 # Append the new tag name to the list of available tags.
19335 if test -n "$tagname" ; then
19336 available_tags="$available_tags $tagname"
19339 done
19340 IFS="$lt_save_ifs"
19342 # Now substitute the updated list of available tags.
19343 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19344 mv "${ofile}T" "$ofile"
19345 chmod +x "$ofile"
19346 else
19347 rm -f "${ofile}T"
19348 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19349 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19350 { (exit 1); exit 1; }; }
19356 # This can be used to rebuild libtool when needed
19357 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19359 # Always use our own libtool.
19360 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19362 # Prevent multiple expansion
19383 # Find a good install program. We prefer a C program (faster),
19384 # so one script is as good as another. But avoid the broken or
19385 # incompatible versions:
19386 # SysV /etc/install, /usr/sbin/install
19387 # SunOS /usr/etc/install
19388 # IRIX /sbin/install
19389 # AIX /bin/install
19390 # AmigaOS /C/install, which installs bootblocks on floppy discs
19391 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
19392 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
19393 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
19394 # OS/2's system install, which has a completely different semantic
19395 # ./install, which can be erroneously created by make from ./install.sh.
19396 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
19397 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
19398 if test -z "$INSTALL"; then
19399 if test "${ac_cv_path_install+set}" = set; then
19400 echo $ECHO_N "(cached) $ECHO_C" >&6
19401 else
19402 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19403 for as_dir in $PATH
19405 IFS=$as_save_IFS
19406 test -z "$as_dir" && as_dir=.
19407 # Account for people who put trailing slashes in PATH elements.
19408 case $as_dir/ in
19409 ./ | .// | /cC/* | \
19410 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
19411 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
19412 /usr/ucb/* ) ;;
19414 # OSF1 and SCO ODT 3.0 have their own names for install.
19415 # Don't use installbsd from OSF since it installs stuff as root
19416 # by default.
19417 for ac_prog in ginstall scoinst install; do
19418 for ac_exec_ext in '' $ac_executable_extensions; do
19419 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
19420 if test $ac_prog = install &&
19421 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
19422 # AIX install. It has an incompatible calling convention.
19424 elif test $ac_prog = install &&
19425 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
19426 # program-specific install script used by HP pwplus--don't use.
19428 else
19429 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
19430 break 3
19433 done
19434 done
19436 esac
19437 done
19438 IFS=$as_save_IFS
19442 if test "${ac_cv_path_install+set}" = set; then
19443 INSTALL=$ac_cv_path_install
19444 else
19445 # As a last resort, use the slow shell script. Don't cache a
19446 # value for INSTALL within a source directory, because that will
19447 # break other packages using the cache if that directory is
19448 # removed, or if the value is a relative name.
19449 INSTALL=$ac_install_sh
19452 { echo "$as_me:$LINENO: result: $INSTALL" >&5
19453 echo "${ECHO_T}$INSTALL" >&6; }
19455 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
19456 # It thinks the first close brace ends the variable substitution.
19457 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
19459 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
19461 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
19463 ac_ext=c
19464 ac_cpp='$CPP $CPPFLAGS'
19465 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19466 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19467 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19468 if test -n "$ac_tool_prefix"; then
19469 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
19470 set dummy ${ac_tool_prefix}gcc; ac_word=$2
19471 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19472 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19473 if test "${ac_cv_prog_CC+set}" = set; then
19474 echo $ECHO_N "(cached) $ECHO_C" >&6
19475 else
19476 if test -n "$CC"; then
19477 ac_cv_prog_CC="$CC" # Let the user override the test.
19478 else
19479 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19480 for as_dir in $PATH
19482 IFS=$as_save_IFS
19483 test -z "$as_dir" && as_dir=.
19484 for ac_exec_ext in '' $ac_executable_extensions; do
19485 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19486 ac_cv_prog_CC="${ac_tool_prefix}gcc"
19487 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19488 break 2
19490 done
19491 done
19492 IFS=$as_save_IFS
19496 CC=$ac_cv_prog_CC
19497 if test -n "$CC"; then
19498 { echo "$as_me:$LINENO: result: $CC" >&5
19499 echo "${ECHO_T}$CC" >&6; }
19500 else
19501 { echo "$as_me:$LINENO: result: no" >&5
19502 echo "${ECHO_T}no" >&6; }
19507 if test -z "$ac_cv_prog_CC"; then
19508 ac_ct_CC=$CC
19509 # Extract the first word of "gcc", so it can be a program name with args.
19510 set dummy gcc; ac_word=$2
19511 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19512 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19513 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
19514 echo $ECHO_N "(cached) $ECHO_C" >&6
19515 else
19516 if test -n "$ac_ct_CC"; then
19517 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
19518 else
19519 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19520 for as_dir in $PATH
19522 IFS=$as_save_IFS
19523 test -z "$as_dir" && as_dir=.
19524 for ac_exec_ext in '' $ac_executable_extensions; do
19525 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19526 ac_cv_prog_ac_ct_CC="gcc"
19527 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19528 break 2
19530 done
19531 done
19532 IFS=$as_save_IFS
19536 ac_ct_CC=$ac_cv_prog_ac_ct_CC
19537 if test -n "$ac_ct_CC"; then
19538 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
19539 echo "${ECHO_T}$ac_ct_CC" >&6; }
19540 else
19541 { echo "$as_me:$LINENO: result: no" >&5
19542 echo "${ECHO_T}no" >&6; }
19545 if test "x$ac_ct_CC" = x; then
19546 CC=""
19547 else
19548 case $cross_compiling:$ac_tool_warned in
19549 yes:)
19550 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
19551 whose name does not start with the host triplet. If you think this
19552 configuration is useful to you, please write to autoconf@gnu.org." >&5
19553 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
19554 whose name does not start with the host triplet. If you think this
19555 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
19556 ac_tool_warned=yes ;;
19557 esac
19558 CC=$ac_ct_CC
19560 else
19561 CC="$ac_cv_prog_CC"
19564 if test -z "$CC"; then
19565 if test -n "$ac_tool_prefix"; then
19566 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
19567 set dummy ${ac_tool_prefix}cc; ac_word=$2
19568 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19569 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19570 if test "${ac_cv_prog_CC+set}" = set; then
19571 echo $ECHO_N "(cached) $ECHO_C" >&6
19572 else
19573 if test -n "$CC"; then
19574 ac_cv_prog_CC="$CC" # Let the user override the test.
19575 else
19576 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19577 for as_dir in $PATH
19579 IFS=$as_save_IFS
19580 test -z "$as_dir" && as_dir=.
19581 for ac_exec_ext in '' $ac_executable_extensions; do
19582 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19583 ac_cv_prog_CC="${ac_tool_prefix}cc"
19584 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19585 break 2
19587 done
19588 done
19589 IFS=$as_save_IFS
19593 CC=$ac_cv_prog_CC
19594 if test -n "$CC"; then
19595 { echo "$as_me:$LINENO: result: $CC" >&5
19596 echo "${ECHO_T}$CC" >&6; }
19597 else
19598 { echo "$as_me:$LINENO: result: no" >&5
19599 echo "${ECHO_T}no" >&6; }
19605 if test -z "$CC"; then
19606 # Extract the first word of "cc", so it can be a program name with args.
19607 set dummy cc; ac_word=$2
19608 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19609 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19610 if test "${ac_cv_prog_CC+set}" = set; then
19611 echo $ECHO_N "(cached) $ECHO_C" >&6
19612 else
19613 if test -n "$CC"; then
19614 ac_cv_prog_CC="$CC" # Let the user override the test.
19615 else
19616 ac_prog_rejected=no
19617 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19618 for as_dir in $PATH
19620 IFS=$as_save_IFS
19621 test -z "$as_dir" && as_dir=.
19622 for ac_exec_ext in '' $ac_executable_extensions; do
19623 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19624 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
19625 ac_prog_rejected=yes
19626 continue
19628 ac_cv_prog_CC="cc"
19629 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19630 break 2
19632 done
19633 done
19634 IFS=$as_save_IFS
19636 if test $ac_prog_rejected = yes; then
19637 # We found a bogon in the path, so make sure we never use it.
19638 set dummy $ac_cv_prog_CC
19639 shift
19640 if test $# != 0; then
19641 # We chose a different compiler from the bogus one.
19642 # However, it has the same basename, so the bogon will be chosen
19643 # first if we set CC to just the basename; use the full file name.
19644 shift
19645 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
19650 CC=$ac_cv_prog_CC
19651 if test -n "$CC"; then
19652 { echo "$as_me:$LINENO: result: $CC" >&5
19653 echo "${ECHO_T}$CC" >&6; }
19654 else
19655 { echo "$as_me:$LINENO: result: no" >&5
19656 echo "${ECHO_T}no" >&6; }
19661 if test -z "$CC"; then
19662 if test -n "$ac_tool_prefix"; then
19663 for ac_prog in cl.exe
19665 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
19666 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
19667 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19668 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19669 if test "${ac_cv_prog_CC+set}" = set; then
19670 echo $ECHO_N "(cached) $ECHO_C" >&6
19671 else
19672 if test -n "$CC"; then
19673 ac_cv_prog_CC="$CC" # Let the user override the test.
19674 else
19675 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19676 for as_dir in $PATH
19678 IFS=$as_save_IFS
19679 test -z "$as_dir" && as_dir=.
19680 for ac_exec_ext in '' $ac_executable_extensions; do
19681 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19682 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
19683 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19684 break 2
19686 done
19687 done
19688 IFS=$as_save_IFS
19692 CC=$ac_cv_prog_CC
19693 if test -n "$CC"; then
19694 { echo "$as_me:$LINENO: result: $CC" >&5
19695 echo "${ECHO_T}$CC" >&6; }
19696 else
19697 { echo "$as_me:$LINENO: result: no" >&5
19698 echo "${ECHO_T}no" >&6; }
19702 test -n "$CC" && break
19703 done
19705 if test -z "$CC"; then
19706 ac_ct_CC=$CC
19707 for ac_prog in cl.exe
19709 # Extract the first word of "$ac_prog", so it can be a program name with args.
19710 set dummy $ac_prog; ac_word=$2
19711 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19712 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19713 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
19714 echo $ECHO_N "(cached) $ECHO_C" >&6
19715 else
19716 if test -n "$ac_ct_CC"; then
19717 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
19718 else
19719 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19720 for as_dir in $PATH
19722 IFS=$as_save_IFS
19723 test -z "$as_dir" && as_dir=.
19724 for ac_exec_ext in '' $ac_executable_extensions; do
19725 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19726 ac_cv_prog_ac_ct_CC="$ac_prog"
19727 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19728 break 2
19730 done
19731 done
19732 IFS=$as_save_IFS
19736 ac_ct_CC=$ac_cv_prog_ac_ct_CC
19737 if test -n "$ac_ct_CC"; then
19738 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
19739 echo "${ECHO_T}$ac_ct_CC" >&6; }
19740 else
19741 { echo "$as_me:$LINENO: result: no" >&5
19742 echo "${ECHO_T}no" >&6; }
19746 test -n "$ac_ct_CC" && break
19747 done
19749 if test "x$ac_ct_CC" = x; then
19750 CC=""
19751 else
19752 case $cross_compiling:$ac_tool_warned in
19753 yes:)
19754 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
19755 whose name does not start with the host triplet. If you think this
19756 configuration is useful to you, please write to autoconf@gnu.org." >&5
19757 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
19758 whose name does not start with the host triplet. If you think this
19759 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
19760 ac_tool_warned=yes ;;
19761 esac
19762 CC=$ac_ct_CC
19769 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
19770 See \`config.log' for more details." >&5
19771 echo "$as_me: error: no acceptable C compiler found in \$PATH
19772 See \`config.log' for more details." >&2;}
19773 { (exit 1); exit 1; }; }
19775 # Provide some information about the compiler.
19776 echo "$as_me:$LINENO: checking for C compiler version" >&5
19777 ac_compiler=`set X $ac_compile; echo $2`
19778 { (ac_try="$ac_compiler --version >&5"
19779 case "(($ac_try" in
19780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19781 *) ac_try_echo=$ac_try;;
19782 esac
19783 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19784 (eval "$ac_compiler --version >&5") 2>&5
19785 ac_status=$?
19786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19787 (exit $ac_status); }
19788 { (ac_try="$ac_compiler -v >&5"
19789 case "(($ac_try" in
19790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19791 *) ac_try_echo=$ac_try;;
19792 esac
19793 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19794 (eval "$ac_compiler -v >&5") 2>&5
19795 ac_status=$?
19796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19797 (exit $ac_status); }
19798 { (ac_try="$ac_compiler -V >&5"
19799 case "(($ac_try" in
19800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19801 *) ac_try_echo=$ac_try;;
19802 esac
19803 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19804 (eval "$ac_compiler -V >&5") 2>&5
19805 ac_status=$?
19806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19807 (exit $ac_status); }
19809 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
19810 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
19811 if test "${ac_cv_c_compiler_gnu+set}" = set; then
19812 echo $ECHO_N "(cached) $ECHO_C" >&6
19813 else
19814 cat >conftest.$ac_ext <<_ACEOF
19815 /* confdefs.h. */
19816 _ACEOF
19817 cat confdefs.h >>conftest.$ac_ext
19818 cat >>conftest.$ac_ext <<_ACEOF
19819 /* end confdefs.h. */
19822 main ()
19824 #ifndef __GNUC__
19825 choke me
19826 #endif
19829 return 0;
19831 _ACEOF
19832 rm -f conftest.$ac_objext
19833 if { (ac_try="$ac_compile"
19834 case "(($ac_try" in
19835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19836 *) ac_try_echo=$ac_try;;
19837 esac
19838 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19839 (eval "$ac_compile") 2>conftest.er1
19840 ac_status=$?
19841 grep -v '^ *+' conftest.er1 >conftest.err
19842 rm -f conftest.er1
19843 cat conftest.err >&5
19844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19845 (exit $ac_status); } && {
19846 test -z "$ac_c_werror_flag" ||
19847 test ! -s conftest.err
19848 } && test -s conftest.$ac_objext; then
19849 ac_compiler_gnu=yes
19850 else
19851 echo "$as_me: failed program was:" >&5
19852 sed 's/^/| /' conftest.$ac_ext >&5
19854 ac_compiler_gnu=no
19857 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19858 ac_cv_c_compiler_gnu=$ac_compiler_gnu
19861 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
19862 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
19863 GCC=`test $ac_compiler_gnu = yes && echo yes`
19864 ac_test_CFLAGS=${CFLAGS+set}
19865 ac_save_CFLAGS=$CFLAGS
19866 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
19867 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
19868 if test "${ac_cv_prog_cc_g+set}" = set; then
19869 echo $ECHO_N "(cached) $ECHO_C" >&6
19870 else
19871 ac_save_c_werror_flag=$ac_c_werror_flag
19872 ac_c_werror_flag=yes
19873 ac_cv_prog_cc_g=no
19874 CFLAGS="-g"
19875 cat >conftest.$ac_ext <<_ACEOF
19876 /* confdefs.h. */
19877 _ACEOF
19878 cat confdefs.h >>conftest.$ac_ext
19879 cat >>conftest.$ac_ext <<_ACEOF
19880 /* end confdefs.h. */
19883 main ()
19887 return 0;
19889 _ACEOF
19890 rm -f conftest.$ac_objext
19891 if { (ac_try="$ac_compile"
19892 case "(($ac_try" in
19893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19894 *) ac_try_echo=$ac_try;;
19895 esac
19896 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19897 (eval "$ac_compile") 2>conftest.er1
19898 ac_status=$?
19899 grep -v '^ *+' conftest.er1 >conftest.err
19900 rm -f conftest.er1
19901 cat conftest.err >&5
19902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19903 (exit $ac_status); } && {
19904 test -z "$ac_c_werror_flag" ||
19905 test ! -s conftest.err
19906 } && test -s conftest.$ac_objext; then
19907 ac_cv_prog_cc_g=yes
19908 else
19909 echo "$as_me: failed program was:" >&5
19910 sed 's/^/| /' conftest.$ac_ext >&5
19912 CFLAGS=""
19913 cat >conftest.$ac_ext <<_ACEOF
19914 /* confdefs.h. */
19915 _ACEOF
19916 cat confdefs.h >>conftest.$ac_ext
19917 cat >>conftest.$ac_ext <<_ACEOF
19918 /* end confdefs.h. */
19921 main ()
19925 return 0;
19927 _ACEOF
19928 rm -f conftest.$ac_objext
19929 if { (ac_try="$ac_compile"
19930 case "(($ac_try" in
19931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19932 *) ac_try_echo=$ac_try;;
19933 esac
19934 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19935 (eval "$ac_compile") 2>conftest.er1
19936 ac_status=$?
19937 grep -v '^ *+' conftest.er1 >conftest.err
19938 rm -f conftest.er1
19939 cat conftest.err >&5
19940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19941 (exit $ac_status); } && {
19942 test -z "$ac_c_werror_flag" ||
19943 test ! -s conftest.err
19944 } && test -s conftest.$ac_objext; then
19946 else
19947 echo "$as_me: failed program was:" >&5
19948 sed 's/^/| /' conftest.$ac_ext >&5
19950 ac_c_werror_flag=$ac_save_c_werror_flag
19951 CFLAGS="-g"
19952 cat >conftest.$ac_ext <<_ACEOF
19953 /* confdefs.h. */
19954 _ACEOF
19955 cat confdefs.h >>conftest.$ac_ext
19956 cat >>conftest.$ac_ext <<_ACEOF
19957 /* end confdefs.h. */
19960 main ()
19964 return 0;
19966 _ACEOF
19967 rm -f conftest.$ac_objext
19968 if { (ac_try="$ac_compile"
19969 case "(($ac_try" in
19970 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19971 *) ac_try_echo=$ac_try;;
19972 esac
19973 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19974 (eval "$ac_compile") 2>conftest.er1
19975 ac_status=$?
19976 grep -v '^ *+' conftest.er1 >conftest.err
19977 rm -f conftest.er1
19978 cat conftest.err >&5
19979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19980 (exit $ac_status); } && {
19981 test -z "$ac_c_werror_flag" ||
19982 test ! -s conftest.err
19983 } && test -s conftest.$ac_objext; then
19984 ac_cv_prog_cc_g=yes
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
19995 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19998 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19999 ac_c_werror_flag=$ac_save_c_werror_flag
20001 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
20002 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
20003 if test "$ac_test_CFLAGS" = set; then
20004 CFLAGS=$ac_save_CFLAGS
20005 elif test $ac_cv_prog_cc_g = yes; then
20006 if test "$GCC" = yes; then
20007 CFLAGS="-g -O2"
20008 else
20009 CFLAGS="-g"
20011 else
20012 if test "$GCC" = yes; then
20013 CFLAGS="-O2"
20014 else
20015 CFLAGS=
20018 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
20019 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
20020 if test "${ac_cv_prog_cc_c89+set}" = set; then
20021 echo $ECHO_N "(cached) $ECHO_C" >&6
20022 else
20023 ac_cv_prog_cc_c89=no
20024 ac_save_CC=$CC
20025 cat >conftest.$ac_ext <<_ACEOF
20026 /* confdefs.h. */
20027 _ACEOF
20028 cat confdefs.h >>conftest.$ac_ext
20029 cat >>conftest.$ac_ext <<_ACEOF
20030 /* end confdefs.h. */
20031 #include <stdarg.h>
20032 #include <stdio.h>
20033 #include <sys/types.h>
20034 #include <sys/stat.h>
20035 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
20036 struct buf { int x; };
20037 FILE * (*rcsopen) (struct buf *, struct stat *, int);
20038 static char *e (p, i)
20039 char **p;
20040 int i;
20042 return p[i];
20044 static char *f (char * (*g) (char **, int), char **p, ...)
20046 char *s;
20047 va_list v;
20048 va_start (v,p);
20049 s = g (p, va_arg (v,int));
20050 va_end (v);
20051 return s;
20054 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
20055 function prototypes and stuff, but not '\xHH' hex character constants.
20056 These don't provoke an error unfortunately, instead are silently treated
20057 as 'x'. The following induces an error, until -std is added to get
20058 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
20059 array size at least. It's necessary to write '\x00'==0 to get something
20060 that's true only with -std. */
20061 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
20063 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
20064 inside strings and character constants. */
20065 #define FOO(x) 'x'
20066 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
20068 int test (int i, double x);
20069 struct s1 {int (*f) (int a);};
20070 struct s2 {int (*f) (double a);};
20071 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
20072 int argc;
20073 char **argv;
20075 main ()
20077 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
20079 return 0;
20081 _ACEOF
20082 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
20083 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
20085 CC="$ac_save_CC $ac_arg"
20086 rm -f conftest.$ac_objext
20087 if { (ac_try="$ac_compile"
20088 case "(($ac_try" in
20089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20090 *) ac_try_echo=$ac_try;;
20091 esac
20092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20093 (eval "$ac_compile") 2>conftest.er1
20094 ac_status=$?
20095 grep -v '^ *+' conftest.er1 >conftest.err
20096 rm -f conftest.er1
20097 cat conftest.err >&5
20098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20099 (exit $ac_status); } && {
20100 test -z "$ac_c_werror_flag" ||
20101 test ! -s conftest.err
20102 } && test -s conftest.$ac_objext; then
20103 ac_cv_prog_cc_c89=$ac_arg
20104 else
20105 echo "$as_me: failed program was:" >&5
20106 sed 's/^/| /' conftest.$ac_ext >&5
20111 rm -f core conftest.err conftest.$ac_objext
20112 test "x$ac_cv_prog_cc_c89" != "xno" && break
20113 done
20114 rm -f conftest.$ac_ext
20115 CC=$ac_save_CC
20118 # AC_CACHE_VAL
20119 case "x$ac_cv_prog_cc_c89" in
20121 { echo "$as_me:$LINENO: result: none needed" >&5
20122 echo "${ECHO_T}none needed" >&6; } ;;
20123 xno)
20124 { echo "$as_me:$LINENO: result: unsupported" >&5
20125 echo "${ECHO_T}unsupported" >&6; } ;;
20127 CC="$CC $ac_cv_prog_cc_c89"
20128 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
20129 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
20130 esac
20133 ac_ext=c
20134 ac_cpp='$CPP $CPPFLAGS'
20135 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20136 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20137 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20139 depcc="$CC" am_compiler_list=
20141 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
20142 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
20143 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
20144 echo $ECHO_N "(cached) $ECHO_C" >&6
20145 else
20146 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
20147 # We make a subdir and do the tests there. Otherwise we can end up
20148 # making bogus files that we don't know about and never remove. For
20149 # instance it was reported that on HP-UX the gcc test will end up
20150 # making a dummy file named `D' -- because `-MD' means `put the output
20151 # in D'.
20152 mkdir conftest.dir
20153 # Copy depcomp to subdir because otherwise we won't find it if we're
20154 # using a relative directory.
20155 cp "$am_depcomp" conftest.dir
20156 cd conftest.dir
20157 # We will build objects and dependencies in a subdirectory because
20158 # it helps to detect inapplicable dependency modes. For instance
20159 # both Tru64's cc and ICC support -MD to output dependencies as a
20160 # side effect of compilation, but ICC will put the dependencies in
20161 # the current directory while Tru64 will put them in the object
20162 # directory.
20163 mkdir sub
20165 am_cv_CC_dependencies_compiler_type=none
20166 if test "$am_compiler_list" = ""; then
20167 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
20169 for depmode in $am_compiler_list; do
20170 # Setup a source with many dependencies, because some compilers
20171 # like to wrap large dependency lists on column 80 (with \), and
20172 # we should not choose a depcomp mode which is confused by this.
20174 # We need to recreate these files for each test, as the compiler may
20175 # overwrite some of them when testing with obscure command lines.
20176 # This happens at least with the AIX C compiler.
20177 : > sub/conftest.c
20178 for i in 1 2 3 4 5 6; do
20179 echo '#include "conftst'$i'.h"' >> sub/conftest.c
20180 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
20181 # Solaris 8's {/usr,}/bin/sh.
20182 touch sub/conftst$i.h
20183 done
20184 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
20186 case $depmode in
20187 nosideeffect)
20188 # after this tag, mechanisms are not by side-effect, so they'll
20189 # only be used when explicitly requested
20190 if test "x$enable_dependency_tracking" = xyes; then
20191 continue
20192 else
20193 break
20196 none) break ;;
20197 esac
20198 # We check with `-c' and `-o' for the sake of the "dashmstdout"
20199 # mode. It turns out that the SunPro C++ compiler does not properly
20200 # handle `-M -o', and we need to detect this.
20201 if depmode=$depmode \
20202 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
20203 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
20204 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
20205 >/dev/null 2>conftest.err &&
20206 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
20207 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
20208 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
20209 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
20210 # icc doesn't choke on unknown options, it will just issue warnings
20211 # or remarks (even with -Werror). So we grep stderr for any message
20212 # that says an option was ignored or not supported.
20213 # When given -MP, icc 7.0 and 7.1 complain thusly:
20214 # icc: Command line warning: ignoring option '-M'; no argument required
20215 # The diagnosis changed in icc 8.0:
20216 # icc: Command line remark: option '-MP' not supported
20217 if (grep 'ignoring option' conftest.err ||
20218 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
20219 am_cv_CC_dependencies_compiler_type=$depmode
20220 break
20223 done
20225 cd ..
20226 rm -rf conftest.dir
20227 else
20228 am_cv_CC_dependencies_compiler_type=none
20232 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
20233 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
20234 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
20237 test "x$enable_dependency_tracking" != xno \
20238 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
20239 am__fastdepCC_TRUE=
20240 am__fastdepCC_FALSE='#'
20241 else
20242 am__fastdepCC_TRUE='#'
20243 am__fastdepCC_FALSE=
20247 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
20248 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
20249 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
20250 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
20251 echo $ECHO_N "(cached) $ECHO_C" >&6
20252 else
20253 cat >conftest.make <<\_ACEOF
20254 SHELL = /bin/sh
20255 all:
20256 @echo '@@@%%%=$(MAKE)=@@@%%%'
20257 _ACEOF
20258 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
20259 case `${MAKE-make} -f conftest.make 2>/dev/null` in
20260 *@@@%%%=?*=@@@%%%*)
20261 eval ac_cv_prog_make_${ac_make}_set=yes;;
20263 eval ac_cv_prog_make_${ac_make}_set=no;;
20264 esac
20265 rm -f conftest.make
20267 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
20268 { echo "$as_me:$LINENO: result: yes" >&5
20269 echo "${ECHO_T}yes" >&6; }
20270 SET_MAKE=
20271 else
20272 { echo "$as_me:$LINENO: result: no" >&5
20273 echo "${ECHO_T}no" >&6; }
20274 SET_MAKE="MAKE=${MAKE-make}"
20278 # Checks for GTK
20279 #PKG_CHECK_MODULES(DEPS, gtk+-2.0 >= 2.2)
20280 #AC_SUBST(DEPS_CFLAGS)
20281 #AC_SUBST(DEPS_LIBS)
20283 # Check for X
20284 { echo "$as_me:$LINENO: checking for X" >&5
20285 echo $ECHO_N "checking for X... $ECHO_C" >&6; }
20288 # Check whether --with-x was given.
20289 if test "${with_x+set}" = set; then
20290 withval=$with_x;
20293 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
20294 if test "x$with_x" = xno; then
20295 # The user explicitly disabled X.
20296 have_x=disabled
20297 else
20298 case $x_includes,$x_libraries in #(
20299 *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
20300 echo "$as_me: error: Cannot use X directory names containing '" >&2;}
20301 { (exit 1); exit 1; }; };; #(
20302 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
20303 echo $ECHO_N "(cached) $ECHO_C" >&6
20304 else
20305 # One or both of the vars are not set, and there is no cached value.
20306 ac_x_includes=no ac_x_libraries=no
20307 rm -f -r conftest.dir
20308 if mkdir conftest.dir; then
20309 cd conftest.dir
20310 cat >Imakefile <<'_ACEOF'
20311 incroot:
20312 @echo incroot='${INCROOT}'
20313 usrlibdir:
20314 @echo usrlibdir='${USRLIBDIR}'
20315 libdir:
20316 @echo libdir='${LIBDIR}'
20317 _ACEOF
20318 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
20319 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
20320 for ac_var in incroot usrlibdir libdir; do
20321 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
20322 done
20323 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
20324 for ac_extension in a so sl; do
20325 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
20326 test -f "$ac_im_libdir/libX11.$ac_extension"; then
20327 ac_im_usrlibdir=$ac_im_libdir; break
20329 done
20330 # Screen out bogus values from the imake configuration. They are
20331 # bogus both because they are the default anyway, and because
20332 # using them would break gcc on systems where it needs fixed includes.
20333 case $ac_im_incroot in
20334 /usr/include) ac_x_includes= ;;
20335 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
20336 esac
20337 case $ac_im_usrlibdir in
20338 /usr/lib | /lib) ;;
20339 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
20340 esac
20342 cd ..
20343 rm -f -r conftest.dir
20346 # Standard set of common directories for X headers.
20347 # Check X11 before X11Rn because it is often a symlink to the current release.
20348 ac_x_header_dirs='
20349 /usr/X11/include
20350 /usr/X11R6/include
20351 /usr/X11R5/include
20352 /usr/X11R4/include
20354 /usr/include/X11
20355 /usr/include/X11R6
20356 /usr/include/X11R5
20357 /usr/include/X11R4
20359 /usr/local/X11/include
20360 /usr/local/X11R6/include
20361 /usr/local/X11R5/include
20362 /usr/local/X11R4/include
20364 /usr/local/include/X11
20365 /usr/local/include/X11R6
20366 /usr/local/include/X11R5
20367 /usr/local/include/X11R4
20369 /usr/X386/include
20370 /usr/x386/include
20371 /usr/XFree86/include/X11
20373 /usr/include
20374 /usr/local/include
20375 /usr/unsupported/include
20376 /usr/athena/include
20377 /usr/local/x11r5/include
20378 /usr/lpp/Xamples/include
20380 /usr/openwin/include
20381 /usr/openwin/share/include'
20383 if test "$ac_x_includes" = no; then
20384 # Guess where to find include files, by looking for Xlib.h.
20385 # First, try using that file with no special directory specified.
20386 cat >conftest.$ac_ext <<_ACEOF
20387 /* confdefs.h. */
20388 _ACEOF
20389 cat confdefs.h >>conftest.$ac_ext
20390 cat >>conftest.$ac_ext <<_ACEOF
20391 /* end confdefs.h. */
20392 #include <X11/Xlib.h>
20393 _ACEOF
20394 if { (ac_try="$ac_cpp conftest.$ac_ext"
20395 case "(($ac_try" in
20396 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20397 *) ac_try_echo=$ac_try;;
20398 esac
20399 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20400 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20401 ac_status=$?
20402 grep -v '^ *+' conftest.er1 >conftest.err
20403 rm -f conftest.er1
20404 cat conftest.err >&5
20405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20406 (exit $ac_status); } >/dev/null && {
20407 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20408 test ! -s conftest.err
20409 }; then
20410 # We can compile using X headers with no special include directory.
20411 ac_x_includes=
20412 else
20413 echo "$as_me: failed program was:" >&5
20414 sed 's/^/| /' conftest.$ac_ext >&5
20416 for ac_dir in $ac_x_header_dirs; do
20417 if test -r "$ac_dir/X11/Xlib.h"; then
20418 ac_x_includes=$ac_dir
20419 break
20421 done
20424 rm -f conftest.err conftest.$ac_ext
20425 fi # $ac_x_includes = no
20427 if test "$ac_x_libraries" = no; then
20428 # Check for the libraries.
20429 # See if we find them without any special options.
20430 # Don't add to $LIBS permanently.
20431 ac_save_LIBS=$LIBS
20432 LIBS="-lX11 $LIBS"
20433 cat >conftest.$ac_ext <<_ACEOF
20434 /* confdefs.h. */
20435 _ACEOF
20436 cat confdefs.h >>conftest.$ac_ext
20437 cat >>conftest.$ac_ext <<_ACEOF
20438 /* end confdefs.h. */
20439 #include <X11/Xlib.h>
20441 main ()
20443 XrmInitialize ()
20445 return 0;
20447 _ACEOF
20448 rm -f conftest.$ac_objext conftest$ac_exeext
20449 if { (ac_try="$ac_link"
20450 case "(($ac_try" in
20451 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20452 *) ac_try_echo=$ac_try;;
20453 esac
20454 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20455 (eval "$ac_link") 2>conftest.er1
20456 ac_status=$?
20457 grep -v '^ *+' conftest.er1 >conftest.err
20458 rm -f conftest.er1
20459 cat conftest.err >&5
20460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20461 (exit $ac_status); } && {
20462 test -z "$ac_c_werror_flag" ||
20463 test ! -s conftest.err
20464 } && test -s conftest$ac_exeext &&
20465 $as_test_x conftest$ac_exeext; then
20466 LIBS=$ac_save_LIBS
20467 # We can link X programs with no special library path.
20468 ac_x_libraries=
20469 else
20470 echo "$as_me: failed program was:" >&5
20471 sed 's/^/| /' conftest.$ac_ext >&5
20473 LIBS=$ac_save_LIBS
20474 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
20476 # Don't even attempt the hair of trying to link an X program!
20477 for ac_extension in a so sl; do
20478 if test -r "$ac_dir/libX11.$ac_extension"; then
20479 ac_x_libraries=$ac_dir
20480 break 2
20482 done
20483 done
20486 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20487 conftest$ac_exeext conftest.$ac_ext
20488 fi # $ac_x_libraries = no
20490 case $ac_x_includes,$ac_x_libraries in #(
20491 no,* | *,no | *\'*)
20492 # Didn't find X, or a directory has "'" in its name.
20493 ac_cv_have_x="have_x=no";; #(
20495 # Record where we found X for the cache.
20496 ac_cv_have_x="have_x=yes\
20497 ac_x_includes='$ac_x_includes'\
20498 ac_x_libraries='$ac_x_libraries'"
20499 esac
20501 ;; #(
20502 *) have_x=yes;;
20503 esac
20504 eval "$ac_cv_have_x"
20505 fi # $with_x != no
20507 if test "$have_x" != yes; then
20508 { echo "$as_me:$LINENO: result: $have_x" >&5
20509 echo "${ECHO_T}$have_x" >&6; }
20510 no_x=yes
20511 else
20512 # If each of the values was on the command line, it overrides each guess.
20513 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
20514 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
20515 # Update the cache value to reflect the command line values.
20516 ac_cv_have_x="have_x=yes\
20517 ac_x_includes='$x_includes'\
20518 ac_x_libraries='$x_libraries'"
20519 { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
20520 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
20523 { echo "$as_me:$LINENO: checking for XFlush in -lX11" >&5
20524 echo $ECHO_N "checking for XFlush in -lX11... $ECHO_C" >&6; }
20525 if test "${ac_cv_lib_X11_XFlush+set}" = set; then
20526 echo $ECHO_N "(cached) $ECHO_C" >&6
20527 else
20528 ac_check_lib_save_LIBS=$LIBS
20529 LIBS="-lX11 $LIBS"
20530 cat >conftest.$ac_ext <<_ACEOF
20531 /* confdefs.h. */
20532 _ACEOF
20533 cat confdefs.h >>conftest.$ac_ext
20534 cat >>conftest.$ac_ext <<_ACEOF
20535 /* end confdefs.h. */
20537 /* Override any GCC internal prototype to avoid an error.
20538 Use char because int might match the return type of a GCC
20539 builtin and then its argument prototype would still apply. */
20540 #ifdef __cplusplus
20541 extern "C"
20542 #endif
20543 char XFlush ();
20545 main ()
20547 return XFlush ();
20549 return 0;
20551 _ACEOF
20552 rm -f conftest.$ac_objext conftest$ac_exeext
20553 if { (ac_try="$ac_link"
20554 case "(($ac_try" in
20555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20556 *) ac_try_echo=$ac_try;;
20557 esac
20558 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20559 (eval "$ac_link") 2>conftest.er1
20560 ac_status=$?
20561 grep -v '^ *+' conftest.er1 >conftest.err
20562 rm -f conftest.er1
20563 cat conftest.err >&5
20564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20565 (exit $ac_status); } && {
20566 test -z "$ac_c_werror_flag" ||
20567 test ! -s conftest.err
20568 } && test -s conftest$ac_exeext &&
20569 $as_test_x conftest$ac_exeext; then
20570 ac_cv_lib_X11_XFlush=yes
20571 else
20572 echo "$as_me: failed program was:" >&5
20573 sed 's/^/| /' conftest.$ac_ext >&5
20575 ac_cv_lib_X11_XFlush=no
20578 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20579 conftest$ac_exeext conftest.$ac_ext
20580 LIBS=$ac_check_lib_save_LIBS
20582 { echo "$as_me:$LINENO: result: $ac_cv_lib_X11_XFlush" >&5
20583 echo "${ECHO_T}$ac_cv_lib_X11_XFlush" >&6; }
20584 if test $ac_cv_lib_X11_XFlush = yes; then
20585 X11=-lX11
20586 else
20588 echo "Unable to find Xlib libraries. Bailing out."
20589 exit -1
20595 # Check for Imlib
20596 { echo "$as_me:$LINENO: checking for Imlib_init in -lImlib" >&5
20597 echo $ECHO_N "checking for Imlib_init in -lImlib... $ECHO_C" >&6; }
20598 if test "${ac_cv_lib_Imlib_Imlib_init+set}" = set; then
20599 echo $ECHO_N "(cached) $ECHO_C" >&6
20600 else
20601 ac_check_lib_save_LIBS=$LIBS
20602 LIBS="-lImlib $LIBS"
20603 cat >conftest.$ac_ext <<_ACEOF
20604 /* confdefs.h. */
20605 _ACEOF
20606 cat confdefs.h >>conftest.$ac_ext
20607 cat >>conftest.$ac_ext <<_ACEOF
20608 /* end confdefs.h. */
20610 /* Override any GCC internal prototype to avoid an error.
20611 Use char because int might match the return type of a GCC
20612 builtin and then its argument prototype would still apply. */
20613 #ifdef __cplusplus
20614 extern "C"
20615 #endif
20616 char Imlib_init ();
20618 main ()
20620 return Imlib_init ();
20622 return 0;
20624 _ACEOF
20625 rm -f conftest.$ac_objext conftest$ac_exeext
20626 if { (ac_try="$ac_link"
20627 case "(($ac_try" in
20628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20629 *) ac_try_echo=$ac_try;;
20630 esac
20631 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20632 (eval "$ac_link") 2>conftest.er1
20633 ac_status=$?
20634 grep -v '^ *+' conftest.er1 >conftest.err
20635 rm -f conftest.er1
20636 cat conftest.err >&5
20637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20638 (exit $ac_status); } && {
20639 test -z "$ac_c_werror_flag" ||
20640 test ! -s conftest.err
20641 } && test -s conftest$ac_exeext &&
20642 $as_test_x conftest$ac_exeext; then
20643 ac_cv_lib_Imlib_Imlib_init=yes
20644 else
20645 echo "$as_me: failed program was:" >&5
20646 sed 's/^/| /' conftest.$ac_ext >&5
20648 ac_cv_lib_Imlib_Imlib_init=no
20651 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20652 conftest$ac_exeext conftest.$ac_ext
20653 LIBS=$ac_check_lib_save_LIBS
20655 { echo "$as_me:$LINENO: result: $ac_cv_lib_Imlib_Imlib_init" >&5
20656 echo "${ECHO_T}$ac_cv_lib_Imlib_Imlib_init" >&6; }
20657 if test $ac_cv_lib_Imlib_Imlib_init = yes; then
20658 IMLIB=-lImlib
20659 else
20661 echo "Unable to find Imlib libraries. Bailing out."
20662 exit -1
20668 # Check for pthreads
20669 { echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
20670 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6; }
20671 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
20672 echo $ECHO_N "(cached) $ECHO_C" >&6
20673 else
20674 ac_check_lib_save_LIBS=$LIBS
20675 LIBS="-lpthread $LIBS"
20676 cat >conftest.$ac_ext <<_ACEOF
20677 /* confdefs.h. */
20678 _ACEOF
20679 cat confdefs.h >>conftest.$ac_ext
20680 cat >>conftest.$ac_ext <<_ACEOF
20681 /* end confdefs.h. */
20683 /* Override any GCC internal prototype to avoid an error.
20684 Use char because int might match the return type of a GCC
20685 builtin and then its argument prototype would still apply. */
20686 #ifdef __cplusplus
20687 extern "C"
20688 #endif
20689 char pthread_create ();
20691 main ()
20693 return pthread_create ();
20695 return 0;
20697 _ACEOF
20698 rm -f conftest.$ac_objext conftest$ac_exeext
20699 if { (ac_try="$ac_link"
20700 case "(($ac_try" in
20701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20702 *) ac_try_echo=$ac_try;;
20703 esac
20704 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20705 (eval "$ac_link") 2>conftest.er1
20706 ac_status=$?
20707 grep -v '^ *+' conftest.er1 >conftest.err
20708 rm -f conftest.er1
20709 cat conftest.err >&5
20710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20711 (exit $ac_status); } && {
20712 test -z "$ac_c_werror_flag" ||
20713 test ! -s conftest.err
20714 } && test -s conftest$ac_exeext &&
20715 $as_test_x conftest$ac_exeext; then
20716 ac_cv_lib_pthread_pthread_create=yes
20717 else
20718 echo "$as_me: failed program was:" >&5
20719 sed 's/^/| /' conftest.$ac_ext >&5
20721 ac_cv_lib_pthread_pthread_create=no
20724 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20725 conftest$ac_exeext conftest.$ac_ext
20726 LIBS=$ac_check_lib_save_LIBS
20728 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
20729 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6; }
20730 if test $ac_cv_lib_pthread_pthread_create = yes; then
20731 PTHREAD=-lpthread
20736 # Checks for header files.
20737 #AC_HEADER_STDC
20739 # Checks for typedefs, structures, and compiler characteristics.
20740 case $OSTYPE in
20741 *msys*) MMS_BITFIELDS='-mms-bitfields' ; WINSOCK='-lws2_32' ;;
20742 *) MMS_BITFIELDS='' ; WINSOCK='' ;;
20743 esac
20747 # Checks for library functions.
20748 ac_config_files="$ac_config_files Makefile src/Makefile src/lib/Makefile src/server/Makefile src/hello/Makefile"
20750 cat >confcache <<\_ACEOF
20751 # This file is a shell script that caches the results of configure
20752 # tests run on this system so they can be shared between configure
20753 # scripts and configure runs, see configure's option --config-cache.
20754 # It is not useful on other systems. If it contains results you don't
20755 # want to keep, you may remove or edit it.
20757 # config.status only pays attention to the cache file if you give it
20758 # the --recheck option to rerun configure.
20760 # `ac_cv_env_foo' variables (set or unset) will be overridden when
20761 # loading this file, other *unset* `ac_cv_foo' will be assigned the
20762 # following values.
20764 _ACEOF
20766 # The following way of writing the cache mishandles newlines in values,
20767 # but we know of no workaround that is simple, portable, and efficient.
20768 # So, we kill variables containing newlines.
20769 # Ultrix sh set writes to stderr and can't be redirected directly,
20770 # and sets the high bit in the cache file unless we assign to the vars.
20772 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
20773 eval ac_val=\$$ac_var
20774 case $ac_val in #(
20775 *${as_nl}*)
20776 case $ac_var in #(
20777 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
20778 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
20779 esac
20780 case $ac_var in #(
20781 _ | IFS | as_nl) ;; #(
20782 *) $as_unset $ac_var ;;
20783 esac ;;
20784 esac
20785 done
20787 (set) 2>&1 |
20788 case $as_nl`(ac_space=' '; set) 2>&1` in #(
20789 *${as_nl}ac_space=\ *)
20790 # `set' does not quote correctly, so add quotes (double-quote
20791 # substitution turns \\\\ into \\, and sed turns \\ into \).
20792 sed -n \
20793 "s/'/'\\\\''/g;
20794 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
20795 ;; #(
20797 # `set' quotes correctly as required by POSIX, so do not add quotes.
20798 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
20800 esac |
20801 sort
20803 sed '
20804 /^ac_cv_env_/b end
20805 t clear
20806 :clear
20807 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20808 t end
20809 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20810 :end' >>confcache
20811 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
20812 if test -w "$cache_file"; then
20813 test "x$cache_file" != "x/dev/null" &&
20814 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
20815 echo "$as_me: updating cache $cache_file" >&6;}
20816 cat confcache >$cache_file
20817 else
20818 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
20819 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
20822 rm -f confcache
20824 test "x$prefix" = xNONE && prefix=$ac_default_prefix
20825 # Let make expand exec_prefix.
20826 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20828 DEFS=-DHAVE_CONFIG_H
20830 ac_libobjs=
20831 ac_ltlibobjs=
20832 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20833 # 1. Remove the extension, and $U if already installed.
20834 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
20835 ac_i=`echo "$ac_i" | sed "$ac_script"`
20836 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
20837 # will be set to the directory where LIBOBJS objects are built.
20838 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
20839 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
20840 done
20841 LIBOBJS=$ac_libobjs
20843 LTLIBOBJS=$ac_ltlibobjs
20846 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
20847 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
20848 Usually this means the macro was only invoked conditionally." >&5
20849 echo "$as_me: error: conditional \"AMDEP\" was never defined.
20850 Usually this means the macro was only invoked conditionally." >&2;}
20851 { (exit 1); exit 1; }; }
20853 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
20854 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
20855 Usually this means the macro was only invoked conditionally." >&5
20856 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
20857 Usually this means the macro was only invoked conditionally." >&2;}
20858 { (exit 1); exit 1; }; }
20860 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
20861 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
20862 Usually this means the macro was only invoked conditionally." >&5
20863 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
20864 Usually this means the macro was only invoked conditionally." >&2;}
20865 { (exit 1); exit 1; }; }
20867 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
20868 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
20869 Usually this means the macro was only invoked conditionally." >&5
20870 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
20871 Usually this means the macro was only invoked conditionally." >&2;}
20872 { (exit 1); exit 1; }; }
20875 : ${CONFIG_STATUS=./config.status}
20876 ac_clean_files_save=$ac_clean_files
20877 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
20878 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
20879 echo "$as_me: creating $CONFIG_STATUS" >&6;}
20880 cat >$CONFIG_STATUS <<_ACEOF
20881 #! $SHELL
20882 # Generated by $as_me.
20883 # Run this file to recreate the current configuration.
20884 # Compiler output produced by configure, useful for debugging
20885 # configure, is in config.log if it exists.
20887 debug=false
20888 ac_cs_recheck=false
20889 ac_cs_silent=false
20890 SHELL=\${CONFIG_SHELL-$SHELL}
20891 _ACEOF
20893 cat >>$CONFIG_STATUS <<\_ACEOF
20894 ## --------------------- ##
20895 ## M4sh Initialization. ##
20896 ## --------------------- ##
20898 # Be more Bourne compatible
20899 DUALCASE=1; export DUALCASE # for MKS sh
20900 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
20901 emulate sh
20902 NULLCMD=:
20903 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20904 # is contrary to our usage. Disable this feature.
20905 alias -g '${1+"$@"}'='"$@"'
20906 setopt NO_GLOB_SUBST
20907 else
20908 case `(set -o) 2>/dev/null` in
20909 *posix*) set -o posix ;;
20910 esac
20917 # PATH needs CR
20918 # Avoid depending upon Character Ranges.
20919 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20920 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20921 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20922 as_cr_digits='0123456789'
20923 as_cr_alnum=$as_cr_Letters$as_cr_digits
20925 # The user is always right.
20926 if test "${PATH_SEPARATOR+set}" != set; then
20927 echo "#! /bin/sh" >conf$$.sh
20928 echo "exit 0" >>conf$$.sh
20929 chmod +x conf$$.sh
20930 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
20931 PATH_SEPARATOR=';'
20932 else
20933 PATH_SEPARATOR=:
20935 rm -f conf$$.sh
20938 # Support unset when possible.
20939 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
20940 as_unset=unset
20941 else
20942 as_unset=false
20946 # IFS
20947 # We need space, tab and new line, in precisely that order. Quoting is
20948 # there to prevent editors from complaining about space-tab.
20949 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
20950 # splitting by setting IFS to empty value.)
20951 as_nl='
20953 IFS=" "" $as_nl"
20955 # Find who we are. Look in the path if we contain no directory separator.
20956 case $0 in
20957 *[\\/]* ) as_myself=$0 ;;
20958 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20959 for as_dir in $PATH
20961 IFS=$as_save_IFS
20962 test -z "$as_dir" && as_dir=.
20963 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20964 done
20965 IFS=$as_save_IFS
20968 esac
20969 # We did not find ourselves, most probably we were run as `sh COMMAND'
20970 # in which case we are not to be found in the path.
20971 if test "x$as_myself" = x; then
20972 as_myself=$0
20974 if test ! -f "$as_myself"; then
20975 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
20976 { (exit 1); exit 1; }
20979 # Work around bugs in pre-3.0 UWIN ksh.
20980 for as_var in ENV MAIL MAILPATH
20981 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
20982 done
20983 PS1='$ '
20984 PS2='> '
20985 PS4='+ '
20987 # NLS nuisances.
20988 for as_var in \
20989 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
20990 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
20991 LC_TELEPHONE LC_TIME
20993 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
20994 eval $as_var=C; export $as_var
20995 else
20996 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
20998 done
21000 # Required to use basename.
21001 if expr a : '\(a\)' >/dev/null 2>&1 &&
21002 test "X`expr 00001 : '.*\(...\)'`" = X001; then
21003 as_expr=expr
21004 else
21005 as_expr=false
21008 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
21009 as_basename=basename
21010 else
21011 as_basename=false
21015 # Name of the executable.
21016 as_me=`$as_basename -- "$0" ||
21017 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21018 X"$0" : 'X\(//\)$' \| \
21019 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
21020 echo X/"$0" |
21021 sed '/^.*\/\([^/][^/]*\)\/*$/{
21022 s//\1/
21025 /^X\/\(\/\/\)$/{
21026 s//\1/
21029 /^X\/\(\/\).*/{
21030 s//\1/
21033 s/.*/./; q'`
21035 # CDPATH.
21036 $as_unset CDPATH
21040 as_lineno_1=$LINENO
21041 as_lineno_2=$LINENO
21042 test "x$as_lineno_1" != "x$as_lineno_2" &&
21043 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
21045 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21046 # uniformly replaced by the line number. The first 'sed' inserts a
21047 # line-number line after each line using $LINENO; the second 'sed'
21048 # does the real work. The second script uses 'N' to pair each
21049 # line-number line with the line containing $LINENO, and appends
21050 # trailing '-' during substitution so that $LINENO is not a special
21051 # case at line end.
21052 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
21053 # scripts with optimization help from Paolo Bonzini. Blame Lee
21054 # E. McMahon (1931-1989) for sed's syntax. :-)
21055 sed -n '
21057 /[$]LINENO/=
21058 ' <$as_myself |
21059 sed '
21060 s/[$]LINENO.*/&-/
21061 t lineno
21063 :lineno
21065 :loop
21066 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
21067 t loop
21068 s/-\n.*//
21069 ' >$as_me.lineno &&
21070 chmod +x "$as_me.lineno" ||
21071 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
21072 { (exit 1); exit 1; }; }
21074 # Don't try to exec as it changes $[0], causing all sort of problems
21075 # (the dirname of $[0] is not the place where we might find the
21076 # original and so on. Autoconf is especially sensitive to this).
21077 . "./$as_me.lineno"
21078 # Exit status is that of the last command.
21079 exit
21083 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
21084 as_dirname=dirname
21085 else
21086 as_dirname=false
21089 ECHO_C= ECHO_N= ECHO_T=
21090 case `echo -n x` in
21091 -n*)
21092 case `echo 'x\c'` in
21093 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
21094 *) ECHO_C='\c';;
21095 esac;;
21097 ECHO_N='-n';;
21098 esac
21100 if expr a : '\(a\)' >/dev/null 2>&1 &&
21101 test "X`expr 00001 : '.*\(...\)'`" = X001; then
21102 as_expr=expr
21103 else
21104 as_expr=false
21107 rm -f conf$$ conf$$.exe conf$$.file
21108 if test -d conf$$.dir; then
21109 rm -f conf$$.dir/conf$$.file
21110 else
21111 rm -f conf$$.dir
21112 mkdir conf$$.dir
21114 echo >conf$$.file
21115 if ln -s conf$$.file conf$$ 2>/dev/null; then
21116 as_ln_s='ln -s'
21117 # ... but there are two gotchas:
21118 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
21119 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
21120 # In both cases, we have to default to `cp -p'.
21121 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
21122 as_ln_s='cp -p'
21123 elif ln conf$$.file conf$$ 2>/dev/null; then
21124 as_ln_s=ln
21125 else
21126 as_ln_s='cp -p'
21128 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
21129 rmdir conf$$.dir 2>/dev/null
21131 if mkdir -p . 2>/dev/null; then
21132 as_mkdir_p=:
21133 else
21134 test -d ./-p && rmdir ./-p
21135 as_mkdir_p=false
21138 if test -x / >/dev/null 2>&1; then
21139 as_test_x='test -x'
21140 else
21141 if ls -dL / >/dev/null 2>&1; then
21142 as_ls_L_option=L
21143 else
21144 as_ls_L_option=
21146 as_test_x='
21147 eval sh -c '\''
21148 if test -d "$1"; then
21149 test -d "$1/.";
21150 else
21151 case $1 in
21152 -*)set "./$1";;
21153 esac;
21154 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
21155 ???[sx]*):;;*)false;;esac;fi
21156 '\'' sh
21159 as_executable_p=$as_test_x
21161 # Sed expression to map a string onto a valid CPP name.
21162 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21164 # Sed expression to map a string onto a valid variable name.
21165 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21168 exec 6>&1
21170 # Save the log message, to keep $[0] and so on meaningful, and to
21171 # report actual input values of CONFIG_FILES etc. instead of their
21172 # values after options handling.
21173 ac_log="
21174 This file was extended by xdock $as_me 0.0.1, which was
21175 generated by GNU Autoconf 2.61. Invocation command line was
21177 CONFIG_FILES = $CONFIG_FILES
21178 CONFIG_HEADERS = $CONFIG_HEADERS
21179 CONFIG_LINKS = $CONFIG_LINKS
21180 CONFIG_COMMANDS = $CONFIG_COMMANDS
21181 $ $0 $@
21183 on `(hostname || uname -n) 2>/dev/null | sed 1q`
21186 _ACEOF
21188 cat >>$CONFIG_STATUS <<_ACEOF
21189 # Files that config.status was made for.
21190 config_files="$ac_config_files"
21191 config_headers="$ac_config_headers"
21192 config_commands="$ac_config_commands"
21194 _ACEOF
21196 cat >>$CONFIG_STATUS <<\_ACEOF
21197 ac_cs_usage="\
21198 \`$as_me' instantiates files from templates according to the
21199 current configuration.
21201 Usage: $0 [OPTIONS] [FILE]...
21203 -h, --help print this help, then exit
21204 -V, --version print version number and configuration settings, then exit
21205 -q, --quiet do not print progress messages
21206 -d, --debug don't remove temporary files
21207 --recheck update $as_me by reconfiguring in the same conditions
21208 --file=FILE[:TEMPLATE]
21209 instantiate the configuration file FILE
21210 --header=FILE[:TEMPLATE]
21211 instantiate the configuration header FILE
21213 Configuration files:
21214 $config_files
21216 Configuration headers:
21217 $config_headers
21219 Configuration commands:
21220 $config_commands
21222 Report bugs to <bug-autoconf@gnu.org>."
21224 _ACEOF
21225 cat >>$CONFIG_STATUS <<_ACEOF
21226 ac_cs_version="\\
21227 xdock config.status 0.0.1
21228 configured by $0, generated by GNU Autoconf 2.61,
21229 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
21231 Copyright (C) 2006 Free Software Foundation, Inc.
21232 This config.status script is free software; the Free Software Foundation
21233 gives unlimited permission to copy, distribute and modify it."
21235 ac_pwd='$ac_pwd'
21236 srcdir='$srcdir'
21237 INSTALL='$INSTALL'
21238 MKDIR_P='$MKDIR_P'
21239 _ACEOF
21241 cat >>$CONFIG_STATUS <<\_ACEOF
21242 # If no file are specified by the user, then we need to provide default
21243 # value. By we need to know if files were specified by the user.
21244 ac_need_defaults=:
21245 while test $# != 0
21247 case $1 in
21248 --*=*)
21249 ac_option=`expr "X$1" : 'X\([^=]*\)='`
21250 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
21251 ac_shift=:
21254 ac_option=$1
21255 ac_optarg=$2
21256 ac_shift=shift
21258 esac
21260 case $ac_option in
21261 # Handling of the options.
21262 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21263 ac_cs_recheck=: ;;
21264 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
21265 echo "$ac_cs_version"; exit ;;
21266 --debug | --debu | --deb | --de | --d | -d )
21267 debug=: ;;
21268 --file | --fil | --fi | --f )
21269 $ac_shift
21270 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
21271 ac_need_defaults=false;;
21272 --header | --heade | --head | --hea )
21273 $ac_shift
21274 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
21275 ac_need_defaults=false;;
21276 --he | --h)
21277 # Conflict between --help and --header
21278 { echo "$as_me: error: ambiguous option: $1
21279 Try \`$0 --help' for more information." >&2
21280 { (exit 1); exit 1; }; };;
21281 --help | --hel | -h )
21282 echo "$ac_cs_usage"; exit ;;
21283 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21284 | -silent | --silent | --silen | --sile | --sil | --si | --s)
21285 ac_cs_silent=: ;;
21287 # This is an error.
21288 -*) { echo "$as_me: error: unrecognized option: $1
21289 Try \`$0 --help' for more information." >&2
21290 { (exit 1); exit 1; }; } ;;
21292 *) ac_config_targets="$ac_config_targets $1"
21293 ac_need_defaults=false ;;
21295 esac
21296 shift
21297 done
21299 ac_configure_extra_args=
21301 if $ac_cs_silent; then
21302 exec 6>/dev/null
21303 ac_configure_extra_args="$ac_configure_extra_args --silent"
21306 _ACEOF
21307 cat >>$CONFIG_STATUS <<_ACEOF
21308 if \$ac_cs_recheck; then
21309 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
21310 CONFIG_SHELL=$SHELL
21311 export CONFIG_SHELL
21312 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21315 _ACEOF
21316 cat >>$CONFIG_STATUS <<\_ACEOF
21317 exec 5>>config.log
21319 echo
21320 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21321 ## Running $as_me. ##
21322 _ASBOX
21323 echo "$ac_log"
21324 } >&5
21326 _ACEOF
21327 cat >>$CONFIG_STATUS <<_ACEOF
21329 # INIT-COMMANDS
21331 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
21333 _ACEOF
21335 cat >>$CONFIG_STATUS <<\_ACEOF
21337 # Handling of arguments.
21338 for ac_config_target in $ac_config_targets
21340 case $ac_config_target in
21341 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
21342 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
21343 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
21344 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
21345 "src/lib/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;;
21346 "src/server/Makefile") CONFIG_FILES="$CONFIG_FILES src/server/Makefile" ;;
21347 "src/hello/Makefile") CONFIG_FILES="$CONFIG_FILES src/hello/Makefile" ;;
21349 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
21350 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21351 { (exit 1); exit 1; }; };;
21352 esac
21353 done
21356 # If the user did not use the arguments to specify the items to instantiate,
21357 # then the envvar interface is used. Set only those that are not.
21358 # We use the long form for the default assignment because of an extremely
21359 # bizarre bug on SunOS 4.1.3.
21360 if $ac_need_defaults; then
21361 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21362 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
21363 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21366 # Have a temporary directory for convenience. Make it in the build tree
21367 # simply because there is no reason against having it here, and in addition,
21368 # creating and moving files from /tmp can sometimes cause problems.
21369 # Hook for its removal unless debugging.
21370 # Note that there is a small window in which the directory will not be cleaned:
21371 # after its creation but before its name has been assigned to `$tmp'.
21372 $debug ||
21374 tmp=
21375 trap 'exit_status=$?
21376 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
21378 trap '{ (exit 1); exit 1; }' 1 2 13 15
21380 # Create a (secure) tmp directory for tmp files.
21383 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
21384 test -n "$tmp" && test -d "$tmp"
21385 } ||
21387 tmp=./conf$$-$RANDOM
21388 (umask 077 && mkdir "$tmp")
21389 } ||
21391 echo "$me: cannot create a temporary directory in ." >&2
21392 { (exit 1); exit 1; }
21396 # Set up the sed scripts for CONFIG_FILES section.
21399 # No need to generate the scripts if there are no CONFIG_FILES.
21400 # This happens for instance when ./config.status config.h
21401 if test -n "$CONFIG_FILES"; then
21403 _ACEOF
21407 ac_delim='%!_!# '
21408 for ac_last_try in false false false false false :; do
21409 cat >conf$$subs.sed <<_ACEOF
21410 SHELL!$SHELL$ac_delim
21411 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
21412 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
21413 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
21414 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
21415 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
21416 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
21417 exec_prefix!$exec_prefix$ac_delim
21418 prefix!$prefix$ac_delim
21419 program_transform_name!$program_transform_name$ac_delim
21420 bindir!$bindir$ac_delim
21421 sbindir!$sbindir$ac_delim
21422 libexecdir!$libexecdir$ac_delim
21423 datarootdir!$datarootdir$ac_delim
21424 datadir!$datadir$ac_delim
21425 sysconfdir!$sysconfdir$ac_delim
21426 sharedstatedir!$sharedstatedir$ac_delim
21427 localstatedir!$localstatedir$ac_delim
21428 includedir!$includedir$ac_delim
21429 oldincludedir!$oldincludedir$ac_delim
21430 docdir!$docdir$ac_delim
21431 infodir!$infodir$ac_delim
21432 htmldir!$htmldir$ac_delim
21433 dvidir!$dvidir$ac_delim
21434 pdfdir!$pdfdir$ac_delim
21435 psdir!$psdir$ac_delim
21436 libdir!$libdir$ac_delim
21437 localedir!$localedir$ac_delim
21438 mandir!$mandir$ac_delim
21439 DEFS!$DEFS$ac_delim
21440 ECHO_C!$ECHO_C$ac_delim
21441 ECHO_N!$ECHO_N$ac_delim
21442 ECHO_T!$ECHO_T$ac_delim
21443 LIBS!$LIBS$ac_delim
21444 build_alias!$build_alias$ac_delim
21445 host_alias!$host_alias$ac_delim
21446 target_alias!$target_alias$ac_delim
21447 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
21448 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
21449 INSTALL_DATA!$INSTALL_DATA$ac_delim
21450 am__isrc!$am__isrc$ac_delim
21451 CYGPATH_W!$CYGPATH_W$ac_delim
21452 PACKAGE!$PACKAGE$ac_delim
21453 VERSION!$VERSION$ac_delim
21454 ACLOCAL!$ACLOCAL$ac_delim
21455 AUTOCONF!$AUTOCONF$ac_delim
21456 AUTOMAKE!$AUTOMAKE$ac_delim
21457 AUTOHEADER!$AUTOHEADER$ac_delim
21458 MAKEINFO!$MAKEINFO$ac_delim
21459 install_sh!$install_sh$ac_delim
21460 STRIP!$STRIP$ac_delim
21461 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
21462 mkdir_p!$mkdir_p$ac_delim
21463 AWK!$AWK$ac_delim
21464 SET_MAKE!$SET_MAKE$ac_delim
21465 am__leading_dot!$am__leading_dot$ac_delim
21466 AMTAR!$AMTAR$ac_delim
21467 am__tar!$am__tar$ac_delim
21468 am__untar!$am__untar$ac_delim
21469 build!$build$ac_delim
21470 build_cpu!$build_cpu$ac_delim
21471 build_vendor!$build_vendor$ac_delim
21472 build_os!$build_os$ac_delim
21473 host!$host$ac_delim
21474 host_cpu!$host_cpu$ac_delim
21475 host_vendor!$host_vendor$ac_delim
21476 host_os!$host_os$ac_delim
21477 CC!$CC$ac_delim
21478 CFLAGS!$CFLAGS$ac_delim
21479 LDFLAGS!$LDFLAGS$ac_delim
21480 CPPFLAGS!$CPPFLAGS$ac_delim
21481 ac_ct_CC!$ac_ct_CC$ac_delim
21482 EXEEXT!$EXEEXT$ac_delim
21483 OBJEXT!$OBJEXT$ac_delim
21484 DEPDIR!$DEPDIR$ac_delim
21485 am__include!$am__include$ac_delim
21486 am__quote!$am__quote$ac_delim
21487 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
21488 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
21489 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
21490 CCDEPMODE!$CCDEPMODE$ac_delim
21491 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
21492 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
21493 SED!$SED$ac_delim
21494 GREP!$GREP$ac_delim
21495 EGREP!$EGREP$ac_delim
21496 LN_S!$LN_S$ac_delim
21497 ECHO!$ECHO$ac_delim
21498 AR!$AR$ac_delim
21499 RANLIB!$RANLIB$ac_delim
21500 CPP!$CPP$ac_delim
21501 CXX!$CXX$ac_delim
21502 CXXFLAGS!$CXXFLAGS$ac_delim
21503 ac_ct_CXX!$ac_ct_CXX$ac_delim
21504 CXXDEPMODE!$CXXDEPMODE$ac_delim
21505 am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
21506 am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
21507 _ACEOF
21509 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
21510 break
21511 elif $ac_last_try; then
21512 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21513 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21514 { (exit 1); exit 1; }; }
21515 else
21516 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21518 done
21520 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21521 if test -n "$ac_eof"; then
21522 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21523 ac_eof=`expr $ac_eof + 1`
21526 cat >>$CONFIG_STATUS <<_ACEOF
21527 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
21528 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21529 _ACEOF
21530 sed '
21531 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21532 s/^/s,@/; s/!/@,|#_!!_#|/
21535 s/'"$ac_delim"'$/,g/; t
21536 s/$/\\/; p
21537 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21538 ' >>$CONFIG_STATUS <conf$$subs.sed
21539 rm -f conf$$subs.sed
21540 cat >>$CONFIG_STATUS <<_ACEOF
21541 CEOF$ac_eof
21542 _ACEOF
21545 ac_delim='%!_!# '
21546 for ac_last_try in false false false false false :; do
21547 cat >conf$$subs.sed <<_ACEOF
21548 CXXCPP!$CXXCPP$ac_delim
21549 F77!$F77$ac_delim
21550 FFLAGS!$FFLAGS$ac_delim
21551 ac_ct_F77!$ac_ct_F77$ac_delim
21552 LIBTOOL!$LIBTOOL$ac_delim
21553 XMKMF!$XMKMF$ac_delim
21554 X11!$X11$ac_delim
21555 IMLIB!$IMLIB$ac_delim
21556 PTHREAD!$PTHREAD$ac_delim
21557 MMS_BITFIELDS!$MMS_BITFIELDS$ac_delim
21558 WINSOCK!$WINSOCK$ac_delim
21559 LIBOBJS!$LIBOBJS$ac_delim
21560 LTLIBOBJS!$LTLIBOBJS$ac_delim
21561 _ACEOF
21563 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 13; then
21564 break
21565 elif $ac_last_try; then
21566 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21567 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21568 { (exit 1); exit 1; }; }
21569 else
21570 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21572 done
21574 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21575 if test -n "$ac_eof"; then
21576 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21577 ac_eof=`expr $ac_eof + 1`
21580 cat >>$CONFIG_STATUS <<_ACEOF
21581 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
21582 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
21583 _ACEOF
21584 sed '
21585 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21586 s/^/s,@/; s/!/@,|#_!!_#|/
21589 s/'"$ac_delim"'$/,g/; t
21590 s/$/\\/; p
21591 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21592 ' >>$CONFIG_STATUS <conf$$subs.sed
21593 rm -f conf$$subs.sed
21594 cat >>$CONFIG_STATUS <<_ACEOF
21595 :end
21596 s/|#_!!_#|//g
21597 CEOF$ac_eof
21598 _ACEOF
21601 # VPATH may cause trouble with some makes, so we remove $(srcdir),
21602 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
21603 # trailing colons and then remove the whole line if VPATH becomes empty
21604 # (actually we leave an empty line to preserve line numbers).
21605 if test "x$srcdir" = x.; then
21606 ac_vpsub='/^[ ]*VPATH[ ]*=/{
21607 s/:*\$(srcdir):*/:/
21608 s/:*\${srcdir}:*/:/
21609 s/:*@srcdir@:*/:/
21610 s/^\([^=]*=[ ]*\):*/\1/
21611 s/:*$//
21612 s/^[^=]*=[ ]*$//
21616 cat >>$CONFIG_STATUS <<\_ACEOF
21617 fi # test -n "$CONFIG_FILES"
21620 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
21622 case $ac_tag in
21623 :[FHLC]) ac_mode=$ac_tag; continue;;
21624 esac
21625 case $ac_mode$ac_tag in
21626 :[FHL]*:*);;
21627 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
21628 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
21629 { (exit 1); exit 1; }; };;
21630 :[FH]-) ac_tag=-:-;;
21631 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
21632 esac
21633 ac_save_IFS=$IFS
21634 IFS=:
21635 set x $ac_tag
21636 IFS=$ac_save_IFS
21637 shift
21638 ac_file=$1
21639 shift
21641 case $ac_mode in
21642 :L) ac_source=$1;;
21643 :[FH])
21644 ac_file_inputs=
21645 for ac_f
21647 case $ac_f in
21648 -) ac_f="$tmp/stdin";;
21649 *) # Look for the file first in the build tree, then in the source tree
21650 # (if the path is not absolute). The absolute path cannot be DOS-style,
21651 # because $ac_f cannot contain `:'.
21652 test -f "$ac_f" ||
21653 case $ac_f in
21654 [\\/$]*) false;;
21655 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
21656 esac ||
21657 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
21658 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
21659 { (exit 1); exit 1; }; };;
21660 esac
21661 ac_file_inputs="$ac_file_inputs $ac_f"
21662 done
21664 # Let's still pretend it is `configure' which instantiates (i.e., don't
21665 # use $as_me), people would be surprised to read:
21666 # /* config.h. Generated by config.status. */
21667 configure_input="Generated from "`IFS=:
21668 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
21669 if test x"$ac_file" != x-; then
21670 configure_input="$ac_file. $configure_input"
21671 { echo "$as_me:$LINENO: creating $ac_file" >&5
21672 echo "$as_me: creating $ac_file" >&6;}
21675 case $ac_tag in
21676 *:-:* | *:-) cat >"$tmp/stdin";;
21677 esac
21679 esac
21681 ac_dir=`$as_dirname -- "$ac_file" ||
21682 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21683 X"$ac_file" : 'X\(//\)[^/]' \| \
21684 X"$ac_file" : 'X\(//\)$' \| \
21685 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
21686 echo X"$ac_file" |
21687 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21688 s//\1/
21691 /^X\(\/\/\)[^/].*/{
21692 s//\1/
21695 /^X\(\/\/\)$/{
21696 s//\1/
21699 /^X\(\/\).*/{
21700 s//\1/
21703 s/.*/./; q'`
21704 { as_dir="$ac_dir"
21705 case $as_dir in #(
21706 -*) as_dir=./$as_dir;;
21707 esac
21708 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
21709 as_dirs=
21710 while :; do
21711 case $as_dir in #(
21712 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
21713 *) as_qdir=$as_dir;;
21714 esac
21715 as_dirs="'$as_qdir' $as_dirs"
21716 as_dir=`$as_dirname -- "$as_dir" ||
21717 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21718 X"$as_dir" : 'X\(//\)[^/]' \| \
21719 X"$as_dir" : 'X\(//\)$' \| \
21720 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
21721 echo X"$as_dir" |
21722 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21723 s//\1/
21726 /^X\(\/\/\)[^/].*/{
21727 s//\1/
21730 /^X\(\/\/\)$/{
21731 s//\1/
21734 /^X\(\/\).*/{
21735 s//\1/
21738 s/.*/./; q'`
21739 test -d "$as_dir" && break
21740 done
21741 test -z "$as_dirs" || eval "mkdir $as_dirs"
21742 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
21743 echo "$as_me: error: cannot create directory $as_dir" >&2;}
21744 { (exit 1); exit 1; }; }; }
21745 ac_builddir=.
21747 case "$ac_dir" in
21748 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21750 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
21751 # A ".." for each directory in $ac_dir_suffix.
21752 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
21753 case $ac_top_builddir_sub in
21754 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21755 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21756 esac ;;
21757 esac
21758 ac_abs_top_builddir=$ac_pwd
21759 ac_abs_builddir=$ac_pwd$ac_dir_suffix
21760 # for backward compatibility:
21761 ac_top_builddir=$ac_top_build_prefix
21763 case $srcdir in
21764 .) # We are building in place.
21765 ac_srcdir=.
21766 ac_top_srcdir=$ac_top_builddir_sub
21767 ac_abs_top_srcdir=$ac_pwd ;;
21768 [\\/]* | ?:[\\/]* ) # Absolute name.
21769 ac_srcdir=$srcdir$ac_dir_suffix;
21770 ac_top_srcdir=$srcdir
21771 ac_abs_top_srcdir=$srcdir ;;
21772 *) # Relative name.
21773 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21774 ac_top_srcdir=$ac_top_build_prefix$srcdir
21775 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
21776 esac
21777 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
21780 case $ac_mode in
21783 # CONFIG_FILE
21786 case $INSTALL in
21787 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21788 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
21789 esac
21790 ac_MKDIR_P=$MKDIR_P
21791 case $MKDIR_P in
21792 [\\/$]* | ?:[\\/]* ) ;;
21793 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
21794 esac
21795 _ACEOF
21797 cat >>$CONFIG_STATUS <<\_ACEOF
21798 # If the template does not know about datarootdir, expand it.
21799 # FIXME: This hack should be removed a few years after 2.60.
21800 ac_datarootdir_hack=; ac_datarootdir_seen=
21802 case `sed -n '/datarootdir/ {
21806 /@datadir@/p
21807 /@docdir@/p
21808 /@infodir@/p
21809 /@localedir@/p
21810 /@mandir@/p
21811 ' $ac_file_inputs` in
21812 *datarootdir*) ac_datarootdir_seen=yes;;
21813 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
21814 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
21815 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
21816 _ACEOF
21817 cat >>$CONFIG_STATUS <<_ACEOF
21818 ac_datarootdir_hack='
21819 s&@datadir@&$datadir&g
21820 s&@docdir@&$docdir&g
21821 s&@infodir@&$infodir&g
21822 s&@localedir@&$localedir&g
21823 s&@mandir@&$mandir&g
21824 s&\\\${datarootdir}&$datarootdir&g' ;;
21825 esac
21826 _ACEOF
21828 # Neutralize VPATH when `$srcdir' = `.'.
21829 # Shell code in configure.ac might set extrasub.
21830 # FIXME: do we really want to maintain this feature?
21831 cat >>$CONFIG_STATUS <<_ACEOF
21832 sed "$ac_vpsub
21833 $extrasub
21834 _ACEOF
21835 cat >>$CONFIG_STATUS <<\_ACEOF
21837 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21838 s&@configure_input@&$configure_input&;t t
21839 s&@top_builddir@&$ac_top_builddir_sub&;t t
21840 s&@srcdir@&$ac_srcdir&;t t
21841 s&@abs_srcdir@&$ac_abs_srcdir&;t t
21842 s&@top_srcdir@&$ac_top_srcdir&;t t
21843 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
21844 s&@builddir@&$ac_builddir&;t t
21845 s&@abs_builddir@&$ac_abs_builddir&;t t
21846 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
21847 s&@INSTALL@&$ac_INSTALL&;t t
21848 s&@MKDIR_P@&$ac_MKDIR_P&;t t
21849 $ac_datarootdir_hack
21850 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
21852 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
21853 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
21854 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
21855 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21856 which seems to be undefined. Please make sure it is defined." >&5
21857 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21858 which seems to be undefined. Please make sure it is defined." >&2;}
21860 rm -f "$tmp/stdin"
21861 case $ac_file in
21862 -) cat "$tmp/out"; rm -f "$tmp/out";;
21863 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
21864 esac
21868 # CONFIG_HEADER
21870 _ACEOF
21872 # Transform confdefs.h into a sed script `conftest.defines', that
21873 # substitutes the proper values into config.h.in to produce config.h.
21874 rm -f conftest.defines conftest.tail
21875 # First, append a space to every undef/define line, to ease matching.
21876 echo 's/$/ /' >conftest.defines
21877 # Then, protect against being on the right side of a sed subst, or in
21878 # an unquoted here document, in config.status. If some macros were
21879 # called several times there might be several #defines for the same
21880 # symbol, which is useless. But do not sort them, since the last
21881 # AC_DEFINE must be honored.
21882 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
21883 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
21884 # NAME is the cpp macro being defined, VALUE is the value it is being given.
21885 # PARAMS is the parameter list in the macro definition--in most cases, it's
21886 # just an empty string.
21887 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
21888 ac_dB='\\)[ (].*,\\1define\\2'
21889 ac_dC=' '
21890 ac_dD=' ,'
21892 uniq confdefs.h |
21893 sed -n '
21894 t rset
21895 :rset
21896 s/^[ ]*#[ ]*define[ ][ ]*//
21897 t ok
21900 s/[\\&,]/\\&/g
21901 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
21902 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
21903 ' >>conftest.defines
21905 # Remove the space that was appended to ease matching.
21906 # Then replace #undef with comments. This is necessary, for
21907 # example, in the case of _POSIX_SOURCE, which is predefined and required
21908 # on some systems where configure will not decide to define it.
21909 # (The regexp can be short, since the line contains either #define or #undef.)
21910 echo 's/ $//
21911 s,^[ #]*u.*,/* & */,' >>conftest.defines
21913 # Break up conftest.defines:
21914 ac_max_sed_lines=50
21916 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
21917 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
21918 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
21919 # et cetera.
21920 ac_in='$ac_file_inputs'
21921 ac_out='"$tmp/out1"'
21922 ac_nxt='"$tmp/out2"'
21924 while :
21926 # Write a here document:
21927 cat >>$CONFIG_STATUS <<_ACEOF
21928 # First, check the format of the line:
21929 cat >"\$tmp/defines.sed" <<\\CEOF
21930 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
21931 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
21933 :def
21934 _ACEOF
21935 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
21936 echo 'CEOF
21937 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
21938 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
21939 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
21940 grep . conftest.tail >/dev/null || break
21941 rm -f conftest.defines
21942 mv conftest.tail conftest.defines
21943 done
21944 rm -f conftest.defines conftest.tail
21946 echo "ac_result=$ac_in" >>$CONFIG_STATUS
21947 cat >>$CONFIG_STATUS <<\_ACEOF
21948 if test x"$ac_file" != x-; then
21949 echo "/* $configure_input */" >"$tmp/config.h"
21950 cat "$ac_result" >>"$tmp/config.h"
21951 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
21952 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
21953 echo "$as_me: $ac_file is unchanged" >&6;}
21954 else
21955 rm -f $ac_file
21956 mv "$tmp/config.h" $ac_file
21958 else
21959 echo "/* $configure_input */"
21960 cat "$ac_result"
21962 rm -f "$tmp/out12"
21963 # Compute $ac_file's index in $config_headers.
21964 _am_stamp_count=1
21965 for _am_header in $config_headers :; do
21966 case $_am_header in
21967 $ac_file | $ac_file:* )
21968 break ;;
21970 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
21971 esac
21972 done
21973 echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
21974 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21975 X$ac_file : 'X\(//\)[^/]' \| \
21976 X$ac_file : 'X\(//\)$' \| \
21977 X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
21978 echo X$ac_file |
21979 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21980 s//\1/
21983 /^X\(\/\/\)[^/].*/{
21984 s//\1/
21987 /^X\(\/\/\)$/{
21988 s//\1/
21991 /^X\(\/\).*/{
21992 s//\1/
21995 s/.*/./; q'`/stamp-h$_am_stamp_count
21998 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
21999 echo "$as_me: executing $ac_file commands" >&6;}
22001 esac
22004 case $ac_file$ac_mode in
22005 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
22006 # Strip MF so we end up with the name of the file.
22007 mf=`echo "$mf" | sed -e 's/:.*$//'`
22008 # Check whether this is an Automake generated Makefile or not.
22009 # We used to match only the files named `Makefile.in', but
22010 # some people rename them; so instead we look at the file content.
22011 # Grep'ing the first line is not enough: some people post-process
22012 # each Makefile.in and add a new line on top of each file to say so.
22013 # Grep'ing the whole file is not good either: AIX grep has a line
22014 # limit of 2048, but all sed's we know have understand at least 4000.
22015 if sed 10q "$mf" | grep '^#.*generated by automake' > /dev/null 2>&1; then
22016 dirpart=`$as_dirname -- "$mf" ||
22017 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22018 X"$mf" : 'X\(//\)[^/]' \| \
22019 X"$mf" : 'X\(//\)$' \| \
22020 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
22021 echo X"$mf" |
22022 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22023 s//\1/
22026 /^X\(\/\/\)[^/].*/{
22027 s//\1/
22030 /^X\(\/\/\)$/{
22031 s//\1/
22034 /^X\(\/\).*/{
22035 s//\1/
22038 s/.*/./; q'`
22039 else
22040 continue
22042 # Extract the definition of DEPDIR, am__include, and am__quote
22043 # from the Makefile without running `make'.
22044 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
22045 test -z "$DEPDIR" && continue
22046 am__include=`sed -n 's/^am__include = //p' < "$mf"`
22047 test -z "am__include" && continue
22048 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
22049 # When using ansi2knr, U may be empty or an underscore; expand it
22050 U=`sed -n 's/^U = //p' < "$mf"`
22051 # Find all dependency output files, they are included files with
22052 # $(DEPDIR) in their names. We invoke sed twice because it is the
22053 # simplest approach to changing $(DEPDIR) to its actual value in the
22054 # expansion.
22055 for file in `sed -n "
22056 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
22057 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
22058 # Make sure the directory exists.
22059 test -f "$dirpart/$file" && continue
22060 fdir=`$as_dirname -- "$file" ||
22061 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22062 X"$file" : 'X\(//\)[^/]' \| \
22063 X"$file" : 'X\(//\)$' \| \
22064 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
22065 echo X"$file" |
22066 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22067 s//\1/
22070 /^X\(\/\/\)[^/].*/{
22071 s//\1/
22074 /^X\(\/\/\)$/{
22075 s//\1/
22078 /^X\(\/\).*/{
22079 s//\1/
22082 s/.*/./; q'`
22083 { as_dir=$dirpart/$fdir
22084 case $as_dir in #(
22085 -*) as_dir=./$as_dir;;
22086 esac
22087 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22088 as_dirs=
22089 while :; do
22090 case $as_dir in #(
22091 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22092 *) as_qdir=$as_dir;;
22093 esac
22094 as_dirs="'$as_qdir' $as_dirs"
22095 as_dir=`$as_dirname -- "$as_dir" ||
22096 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22097 X"$as_dir" : 'X\(//\)[^/]' \| \
22098 X"$as_dir" : 'X\(//\)$' \| \
22099 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22100 echo X"$as_dir" |
22101 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22102 s//\1/
22105 /^X\(\/\/\)[^/].*/{
22106 s//\1/
22109 /^X\(\/\/\)$/{
22110 s//\1/
22113 /^X\(\/\).*/{
22114 s//\1/
22117 s/.*/./; q'`
22118 test -d "$as_dir" && break
22119 done
22120 test -z "$as_dirs" || eval "mkdir $as_dirs"
22121 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22122 echo "$as_me: error: cannot create directory $as_dir" >&2;}
22123 { (exit 1); exit 1; }; }; }
22124 # echo "creating $dirpart/$file"
22125 echo '# dummy' > "$dirpart/$file"
22126 done
22127 done
22130 esac
22131 done # for ac_tag
22134 { (exit 0); exit 0; }
22135 _ACEOF
22136 chmod +x $CONFIG_STATUS
22137 ac_clean_files=$ac_clean_files_save
22140 # configure is writing to config.log, and then calls config.status.
22141 # config.status does its own redirection, appending to config.log.
22142 # Unfortunately, on DOS this fails, as config.log is still kept open
22143 # by configure, so config.status won't be able to write to it; its
22144 # output is simply discarded. So we exec the FD to /dev/null,
22145 # effectively closing config.log, so it can be properly (re)opened and
22146 # appended to by config.status. When coming back to configure, we
22147 # need to make the FD available again.
22148 if test "$no_create" != yes; then
22149 ac_cs_success=:
22150 ac_config_status_args=
22151 test "$silent" = yes &&
22152 ac_config_status_args="$ac_config_status_args --quiet"
22153 exec 5>/dev/null
22154 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22155 exec 5>>config.log
22156 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22157 # would make configure fail if this is the last instruction.
22158 $ac_cs_success || { (exit 1); exit 1; }