Added exec_prefix to the .pc.in file
[libconfigfile.git] / configure
blob0be809d3a26c320b04a283cd022ef320ec06c09d
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61 for libconfigfile 1.0.
5 # Report bugs to <ahmed.badran@gmail.com>.
7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## --------------------- ##
12 ## M4sh Initialization. ##
13 ## --------------------- ##
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18 emulate sh
19 NULLCMD=:
20 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST
24 else
25 case `(set -o) 2>/dev/null` in
26 *posix*) set -o posix ;;
27 esac
34 # PATH needs CR
35 # Avoid depending upon Character Ranges.
36 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
37 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
38 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
39 as_cr_digits='0123456789'
40 as_cr_alnum=$as_cr_Letters$as_cr_digits
42 # The user is always right.
43 if test "${PATH_SEPARATOR+set}" != set; then
44 echo "#! /bin/sh" >conf$$.sh
45 echo "exit 0" >>conf$$.sh
46 chmod +x conf$$.sh
47 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
48 PATH_SEPARATOR=';'
49 else
50 PATH_SEPARATOR=:
52 rm -f conf$$.sh
55 # Support unset when possible.
56 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
57 as_unset=unset
58 else
59 as_unset=false
63 # IFS
64 # We need space, tab and new line, in precisely that order. Quoting is
65 # there to prevent editors from complaining about space-tab.
66 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
67 # splitting by setting IFS to empty value.)
68 as_nl='
70 IFS=" "" $as_nl"
72 # Find who we are. Look in the path if we contain no directory separator.
73 case $0 in
74 *[\\/]* ) as_myself=$0 ;;
75 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
76 for as_dir in $PATH
78 IFS=$as_save_IFS
79 test -z "$as_dir" && as_dir=.
80 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
81 done
82 IFS=$as_save_IFS
85 esac
86 # We did not find ourselves, most probably we were run as `sh COMMAND'
87 # in which case we are not to be found in the path.
88 if test "x$as_myself" = x; then
89 as_myself=$0
91 if test ! -f "$as_myself"; then
92 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
93 { (exit 1); exit 1; }
96 # Work around bugs in pre-3.0 UWIN ksh.
97 for as_var in ENV MAIL MAILPATH
98 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
99 done
100 PS1='$ '
101 PS2='> '
102 PS4='+ '
104 # NLS nuisances.
105 for as_var in \
106 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
107 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
108 LC_TELEPHONE LC_TIME
110 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
111 eval $as_var=C; export $as_var
112 else
113 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
115 done
117 # Required to use basename.
118 if expr a : '\(a\)' >/dev/null 2>&1 &&
119 test "X`expr 00001 : '.*\(...\)'`" = X001; then
120 as_expr=expr
121 else
122 as_expr=false
125 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
126 as_basename=basename
127 else
128 as_basename=false
132 # Name of the executable.
133 as_me=`$as_basename -- "$0" ||
134 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
135 X"$0" : 'X\(//\)$' \| \
136 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
137 echo X/"$0" |
138 sed '/^.*\/\([^/][^/]*\)\/*$/{
139 s//\1/
142 /^X\/\(\/\/\)$/{
143 s//\1/
146 /^X\/\(\/\).*/{
147 s//\1/
150 s/.*/./; q'`
152 # CDPATH.
153 $as_unset CDPATH
156 if test "x$CONFIG_SHELL" = x; then
157 if (eval ":") 2>/dev/null; then
158 as_have_required=yes
159 else
160 as_have_required=no
163 if test $as_have_required = yes && (eval ":
164 (as_func_return () {
165 (exit \$1)
167 as_func_success () {
168 as_func_return 0
170 as_func_failure () {
171 as_func_return 1
173 as_func_ret_success () {
174 return 0
176 as_func_ret_failure () {
177 return 1
180 exitcode=0
181 if as_func_success; then
183 else
184 exitcode=1
185 echo as_func_success failed.
188 if as_func_failure; then
189 exitcode=1
190 echo as_func_failure succeeded.
193 if as_func_ret_success; then
195 else
196 exitcode=1
197 echo as_func_ret_success failed.
200 if as_func_ret_failure; then
201 exitcode=1
202 echo as_func_ret_failure succeeded.
205 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
207 else
208 exitcode=1
209 echo positional parameters were not saved.
212 test \$exitcode = 0) || { (exit 1); exit 1; }
215 as_lineno_1=\$LINENO
216 as_lineno_2=\$LINENO
217 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
218 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
219 ") 2> /dev/null; then
221 else
222 as_candidate_shells=
223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
224 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
226 IFS=$as_save_IFS
227 test -z "$as_dir" && as_dir=.
228 case $as_dir in
230 for as_base in sh bash ksh sh5; do
231 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
232 done;;
233 esac
234 done
235 IFS=$as_save_IFS
238 for as_shell in $as_candidate_shells $SHELL; do
239 # Try only shells that exist, to save several forks.
240 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
241 { ("$as_shell") 2> /dev/null <<\_ASEOF
242 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
243 emulate sh
244 NULLCMD=:
245 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
246 # is contrary to our usage. Disable this feature.
247 alias -g '${1+"$@"}'='"$@"'
248 setopt NO_GLOB_SUBST
249 else
250 case `(set -o) 2>/dev/null` in
251 *posix*) set -o posix ;;
252 esac
258 _ASEOF
259 }; then
260 CONFIG_SHELL=$as_shell
261 as_have_required=yes
262 if { "$as_shell" 2> /dev/null <<\_ASEOF
263 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
264 emulate sh
265 NULLCMD=:
266 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
267 # is contrary to our usage. Disable this feature.
268 alias -g '${1+"$@"}'='"$@"'
269 setopt NO_GLOB_SUBST
270 else
271 case `(set -o) 2>/dev/null` in
272 *posix*) set -o posix ;;
273 esac
279 (as_func_return () {
280 (exit $1)
282 as_func_success () {
283 as_func_return 0
285 as_func_failure () {
286 as_func_return 1
288 as_func_ret_success () {
289 return 0
291 as_func_ret_failure () {
292 return 1
295 exitcode=0
296 if as_func_success; then
298 else
299 exitcode=1
300 echo as_func_success failed.
303 if as_func_failure; then
304 exitcode=1
305 echo as_func_failure succeeded.
308 if as_func_ret_success; then
310 else
311 exitcode=1
312 echo as_func_ret_success failed.
315 if as_func_ret_failure; then
316 exitcode=1
317 echo as_func_ret_failure succeeded.
320 if ( set x; as_func_ret_success y && test x = "$1" ); then
322 else
323 exitcode=1
324 echo positional parameters were not saved.
327 test $exitcode = 0) || { (exit 1); exit 1; }
330 as_lineno_1=$LINENO
331 as_lineno_2=$LINENO
332 test "x$as_lineno_1" != "x$as_lineno_2" &&
333 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
335 _ASEOF
336 }; then
337 break
342 done
344 if test "x$CONFIG_SHELL" != x; then
345 for as_var in BASH_ENV ENV
346 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
347 done
348 export CONFIG_SHELL
349 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
353 if test $as_have_required = no; then
354 echo This script requires a shell more modern than all the
355 echo shells that I found on your system. Please install a
356 echo modern shell, or manually run the script under such a
357 echo shell if you do have one.
358 { (exit 1); exit 1; }
368 (eval "as_func_return () {
369 (exit \$1)
371 as_func_success () {
372 as_func_return 0
374 as_func_failure () {
375 as_func_return 1
377 as_func_ret_success () {
378 return 0
380 as_func_ret_failure () {
381 return 1
384 exitcode=0
385 if as_func_success; then
387 else
388 exitcode=1
389 echo as_func_success failed.
392 if as_func_failure; then
393 exitcode=1
394 echo as_func_failure succeeded.
397 if as_func_ret_success; then
399 else
400 exitcode=1
401 echo as_func_ret_success failed.
404 if as_func_ret_failure; then
405 exitcode=1
406 echo as_func_ret_failure succeeded.
409 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
411 else
412 exitcode=1
413 echo positional parameters were not saved.
416 test \$exitcode = 0") || {
417 echo No shell found that supports shell functions.
418 echo Please tell autoconf@gnu.org about your system,
419 echo including any error possibly output before this
420 echo message
425 as_lineno_1=$LINENO
426 as_lineno_2=$LINENO
427 test "x$as_lineno_1" != "x$as_lineno_2" &&
428 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
430 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
431 # uniformly replaced by the line number. The first 'sed' inserts a
432 # line-number line after each line using $LINENO; the second 'sed'
433 # does the real work. The second script uses 'N' to pair each
434 # line-number line with the line containing $LINENO, and appends
435 # trailing '-' during substitution so that $LINENO is not a special
436 # case at line end.
437 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
438 # scripts with optimization help from Paolo Bonzini. Blame Lee
439 # E. McMahon (1931-1989) for sed's syntax. :-)
440 sed -n '
442 /[$]LINENO/=
443 ' <$as_myself |
444 sed '
445 s/[$]LINENO.*/&-/
446 t lineno
448 :lineno
450 :loop
451 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
452 t loop
453 s/-\n.*//
454 ' >$as_me.lineno &&
455 chmod +x "$as_me.lineno" ||
456 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
457 { (exit 1); exit 1; }; }
459 # Don't try to exec as it changes $[0], causing all sort of problems
460 # (the dirname of $[0] is not the place where we might find the
461 # original and so on. Autoconf is especially sensitive to this).
462 . "./$as_me.lineno"
463 # Exit status is that of the last command.
464 exit
468 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
469 as_dirname=dirname
470 else
471 as_dirname=false
474 ECHO_C= ECHO_N= ECHO_T=
475 case `echo -n x` in
476 -n*)
477 case `echo 'x\c'` in
478 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
479 *) ECHO_C='\c';;
480 esac;;
482 ECHO_N='-n';;
483 esac
485 if expr a : '\(a\)' >/dev/null 2>&1 &&
486 test "X`expr 00001 : '.*\(...\)'`" = X001; then
487 as_expr=expr
488 else
489 as_expr=false
492 rm -f conf$$ conf$$.exe conf$$.file
493 if test -d conf$$.dir; then
494 rm -f conf$$.dir/conf$$.file
495 else
496 rm -f conf$$.dir
497 mkdir conf$$.dir
499 echo >conf$$.file
500 if ln -s conf$$.file conf$$ 2>/dev/null; then
501 as_ln_s='ln -s'
502 # ... but there are two gotchas:
503 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
504 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
505 # In both cases, we have to default to `cp -p'.
506 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
507 as_ln_s='cp -p'
508 elif ln conf$$.file conf$$ 2>/dev/null; then
509 as_ln_s=ln
510 else
511 as_ln_s='cp -p'
513 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
514 rmdir conf$$.dir 2>/dev/null
516 if mkdir -p . 2>/dev/null; then
517 as_mkdir_p=:
518 else
519 test -d ./-p && rmdir ./-p
520 as_mkdir_p=false
523 if test -x / >/dev/null 2>&1; then
524 as_test_x='test -x'
525 else
526 if ls -dL / >/dev/null 2>&1; then
527 as_ls_L_option=L
528 else
529 as_ls_L_option=
531 as_test_x='
532 eval sh -c '\''
533 if test -d "$1"; then
534 test -d "$1/.";
535 else
536 case $1 in
537 -*)set "./$1";;
538 esac;
539 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
540 ???[sx]*):;;*)false;;esac;fi
541 '\'' sh
544 as_executable_p=$as_test_x
546 # Sed expression to map a string onto a valid CPP name.
547 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
549 # Sed expression to map a string onto a valid variable name.
550 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
555 # Check that we are running under the correct shell.
556 SHELL=${CONFIG_SHELL-/bin/sh}
558 case X$ECHO in
559 X*--fallback-echo)
560 # Remove one level of quotation (which was required for Make).
561 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
563 esac
565 echo=${ECHO-echo}
566 if test "X$1" = X--no-reexec; then
567 # Discard the --no-reexec flag, and continue.
568 shift
569 elif test "X$1" = X--fallback-echo; then
570 # Avoid inline document here, it may be left over
572 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
573 # Yippee, $echo works!
575 else
576 # Restart under the correct shell.
577 exec $SHELL "$0" --no-reexec ${1+"$@"}
580 if test "X$1" = X--fallback-echo; then
581 # used as fallback echo
582 shift
583 cat <<EOF
586 exit 0
589 # The HP-UX ksh and POSIX shell print the target directory to stdout
590 # if CDPATH is set.
591 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
593 if test -z "$ECHO"; then
594 if test "X${echo_test_string+set}" != Xset; then
595 # find a string as large as possible, as long as the shell can cope with it
596 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
597 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
598 if (echo_test_string=`eval $cmd`) 2>/dev/null &&
599 echo_test_string=`eval $cmd` &&
600 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
601 then
602 break
604 done
607 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
608 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
609 test "X$echo_testing_string" = "X$echo_test_string"; then
611 else
612 # The Solaris, AIX, and Digital Unix default echo programs unquote
613 # backslashes. This makes it impossible to quote backslashes using
614 # echo "$something" | sed 's/\\/\\\\/g'
616 # So, first we look for a working echo in the user's PATH.
618 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
619 for dir in $PATH /usr/ucb; do
620 IFS="$lt_save_ifs"
621 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
622 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
623 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
624 test "X$echo_testing_string" = "X$echo_test_string"; then
625 echo="$dir/echo"
626 break
628 done
629 IFS="$lt_save_ifs"
631 if test "X$echo" = Xecho; then
632 # We didn't find a better echo, so look for alternatives.
633 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
634 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
635 test "X$echo_testing_string" = "X$echo_test_string"; then
636 # This shell has a builtin print -r that does the trick.
637 echo='print -r'
638 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
639 test "X$CONFIG_SHELL" != X/bin/ksh; then
640 # If we have ksh, try running configure again with it.
641 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
642 export ORIGINAL_CONFIG_SHELL
643 CONFIG_SHELL=/bin/ksh
644 export CONFIG_SHELL
645 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
646 else
647 # Try using printf.
648 echo='printf %s\n'
649 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
650 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
651 test "X$echo_testing_string" = "X$echo_test_string"; then
652 # Cool, printf works
654 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
655 test "X$echo_testing_string" = 'X\t' &&
656 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
657 test "X$echo_testing_string" = "X$echo_test_string"; then
658 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
659 export CONFIG_SHELL
660 SHELL="$CONFIG_SHELL"
661 export SHELL
662 echo="$CONFIG_SHELL $0 --fallback-echo"
663 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
664 test "X$echo_testing_string" = 'X\t' &&
665 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
666 test "X$echo_testing_string" = "X$echo_test_string"; then
667 echo="$CONFIG_SHELL $0 --fallback-echo"
668 else
669 # maybe with a smaller string...
670 prev=:
672 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
673 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
674 then
675 break
677 prev="$cmd"
678 done
680 if test "$prev" != 'sed 50q "$0"'; then
681 echo_test_string=`eval $prev`
682 export echo_test_string
683 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
684 else
685 # Oops. We lost completely, so just stick with echo.
686 echo=echo
694 # Copy echo and quote the copy suitably for passing to libtool from
695 # the Makefile, instead of quoting the original, which is used later.
696 ECHO=$echo
697 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
698 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
704 tagnames=${tagnames+${tagnames},}CXX
706 tagnames=${tagnames+${tagnames},}F77
708 exec 7<&0 </dev/null 6>&1
710 # Name of the host.
711 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
712 # so uname gets run too.
713 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
716 # Initializations.
718 ac_default_prefix=/usr/local
719 ac_clean_files=
720 ac_config_libobj_dir=.
721 LIBOBJS=
722 cross_compiling=no
723 subdirs=
724 MFLAGS=
725 MAKEFLAGS=
726 SHELL=${CONFIG_SHELL-/bin/sh}
728 # Identity of this package.
729 PACKAGE_NAME='libconfigfile'
730 PACKAGE_TARNAME='libconfigfile'
731 PACKAGE_VERSION='1.0'
732 PACKAGE_STRING='libconfigfile 1.0'
733 PACKAGE_BUGREPORT='ahmed.badran@gmail.com'
735 ac_unique_file="src/configfile.cc"
736 # Factoring default headers for most tests.
737 ac_includes_default="\
738 #include <stdio.h>
739 #ifdef HAVE_SYS_TYPES_H
740 # include <sys/types.h>
741 #endif
742 #ifdef HAVE_SYS_STAT_H
743 # include <sys/stat.h>
744 #endif
745 #ifdef STDC_HEADERS
746 # include <stdlib.h>
747 # include <stddef.h>
748 #else
749 # ifdef HAVE_STDLIB_H
750 # include <stdlib.h>
751 # endif
752 #endif
753 #ifdef HAVE_STRING_H
754 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
755 # include <memory.h>
756 # endif
757 # include <string.h>
758 #endif
759 #ifdef HAVE_STRINGS_H
760 # include <strings.h>
761 #endif
762 #ifdef HAVE_INTTYPES_H
763 # include <inttypes.h>
764 #endif
765 #ifdef HAVE_STDINT_H
766 # include <stdint.h>
767 #endif
768 #ifdef HAVE_UNISTD_H
769 # include <unistd.h>
770 #endif"
772 ac_subst_vars='SHELL
773 PATH_SEPARATOR
774 PACKAGE_NAME
775 PACKAGE_TARNAME
776 PACKAGE_VERSION
777 PACKAGE_STRING
778 PACKAGE_BUGREPORT
779 exec_prefix
780 prefix
781 program_transform_name
782 bindir
783 sbindir
784 libexecdir
785 datarootdir
786 datadir
787 sysconfdir
788 sharedstatedir
789 localstatedir
790 includedir
791 oldincludedir
792 docdir
793 infodir
794 htmldir
795 dvidir
796 pdfdir
797 psdir
798 libdir
799 localedir
800 mandir
801 DEFS
802 ECHO_C
803 ECHO_N
804 ECHO_T
805 LIBS
806 build_alias
807 host_alias
808 target_alias
809 INSTALL_PROGRAM
810 INSTALL_SCRIPT
811 INSTALL_DATA
812 am__isrc
813 CYGPATH_W
814 PACKAGE
815 VERSION
816 ACLOCAL
817 AUTOCONF
818 AUTOMAKE
819 AUTOHEADER
820 MAKEINFO
821 install_sh
822 STRIP
823 INSTALL_STRIP_PROGRAM
824 mkdir_p
826 SET_MAKE
827 am__leading_dot
828 AMTAR
829 am__tar
830 am__untar
832 CXXFLAGS
833 LDFLAGS
834 CPPFLAGS
835 ac_ct_CXX
836 EXEEXT
837 OBJEXT
838 DEPDIR
839 am__include
840 am__quote
841 AMDEP_TRUE
842 AMDEP_FALSE
843 AMDEPBACKSLASH
844 CXXDEPMODE
845 am__fastdepCXX_TRUE
846 am__fastdepCXX_FALSE
848 CFLAGS
849 ac_ct_CC
850 CCDEPMODE
851 am__fastdepCC_TRUE
852 am__fastdepCC_FALSE
853 build
854 build_cpu
855 build_vendor
856 build_os
857 host
858 host_cpu
859 host_vendor
860 host_os
862 GREP
863 EGREP
864 LN_S
865 ECHO
867 RANLIB
869 CXXCPP
871 FFLAGS
872 ac_ct_F77
873 LIBTOOL
874 LIBOBJS
875 LTLIBOBJS'
876 ac_subst_files=''
877 ac_precious_vars='build_alias
878 host_alias
879 target_alias
881 CXXFLAGS
882 LDFLAGS
883 LIBS
884 CPPFLAGS
887 CFLAGS
889 CXXCPP
891 FFLAGS'
894 # Initialize some variables set by options.
895 ac_init_help=
896 ac_init_version=false
897 # The variables have the same names as the options, with
898 # dashes changed to underlines.
899 cache_file=/dev/null
900 exec_prefix=NONE
901 no_create=
902 no_recursion=
903 prefix=NONE
904 program_prefix=NONE
905 program_suffix=NONE
906 program_transform_name=s,x,x,
907 silent=
908 site=
909 srcdir=
910 verbose=
911 x_includes=NONE
912 x_libraries=NONE
914 # Installation directory options.
915 # These are left unexpanded so users can "make install exec_prefix=/foo"
916 # and all the variables that are supposed to be based on exec_prefix
917 # by default will actually change.
918 # Use braces instead of parens because sh, perl, etc. also accept them.
919 # (The list follows the same order as the GNU Coding Standards.)
920 bindir='${exec_prefix}/bin'
921 sbindir='${exec_prefix}/sbin'
922 libexecdir='${exec_prefix}/libexec'
923 datarootdir='${prefix}/share'
924 datadir='${datarootdir}'
925 sysconfdir='${prefix}/etc'
926 sharedstatedir='${prefix}/com'
927 localstatedir='${prefix}/var'
928 includedir='${prefix}/include'
929 oldincludedir='/usr/include'
930 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
931 infodir='${datarootdir}/info'
932 htmldir='${docdir}'
933 dvidir='${docdir}'
934 pdfdir='${docdir}'
935 psdir='${docdir}'
936 libdir='${exec_prefix}/lib'
937 localedir='${datarootdir}/locale'
938 mandir='${datarootdir}/man'
940 ac_prev=
941 ac_dashdash=
942 for ac_option
944 # If the previous option needs an argument, assign it.
945 if test -n "$ac_prev"; then
946 eval $ac_prev=\$ac_option
947 ac_prev=
948 continue
951 case $ac_option in
952 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
953 *) ac_optarg=yes ;;
954 esac
956 # Accept the important Cygnus configure options, so we can diagnose typos.
958 case $ac_dashdash$ac_option in
960 ac_dashdash=yes ;;
962 -bindir | --bindir | --bindi | --bind | --bin | --bi)
963 ac_prev=bindir ;;
964 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
965 bindir=$ac_optarg ;;
967 -build | --build | --buil | --bui | --bu)
968 ac_prev=build_alias ;;
969 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
970 build_alias=$ac_optarg ;;
972 -cache-file | --cache-file | --cache-fil | --cache-fi \
973 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
974 ac_prev=cache_file ;;
975 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
976 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
977 cache_file=$ac_optarg ;;
979 --config-cache | -C)
980 cache_file=config.cache ;;
982 -datadir | --datadir | --datadi | --datad)
983 ac_prev=datadir ;;
984 -datadir=* | --datadir=* | --datadi=* | --datad=*)
985 datadir=$ac_optarg ;;
987 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
988 | --dataroo | --dataro | --datar)
989 ac_prev=datarootdir ;;
990 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
991 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
992 datarootdir=$ac_optarg ;;
994 -disable-* | --disable-*)
995 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
996 # Reject names that are not valid shell variable names.
997 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
998 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
999 { (exit 1); exit 1; }; }
1000 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1001 eval enable_$ac_feature=no ;;
1003 -docdir | --docdir | --docdi | --doc | --do)
1004 ac_prev=docdir ;;
1005 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1006 docdir=$ac_optarg ;;
1008 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1009 ac_prev=dvidir ;;
1010 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1011 dvidir=$ac_optarg ;;
1013 -enable-* | --enable-*)
1014 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1015 # Reject names that are not valid shell variable names.
1016 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1017 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1018 { (exit 1); exit 1; }; }
1019 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1020 eval enable_$ac_feature=\$ac_optarg ;;
1022 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1023 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1024 | --exec | --exe | --ex)
1025 ac_prev=exec_prefix ;;
1026 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1027 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1028 | --exec=* | --exe=* | --ex=*)
1029 exec_prefix=$ac_optarg ;;
1031 -gas | --gas | --ga | --g)
1032 # Obsolete; use --with-gas.
1033 with_gas=yes ;;
1035 -help | --help | --hel | --he | -h)
1036 ac_init_help=long ;;
1037 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1038 ac_init_help=recursive ;;
1039 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1040 ac_init_help=short ;;
1042 -host | --host | --hos | --ho)
1043 ac_prev=host_alias ;;
1044 -host=* | --host=* | --hos=* | --ho=*)
1045 host_alias=$ac_optarg ;;
1047 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1048 ac_prev=htmldir ;;
1049 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1050 | --ht=*)
1051 htmldir=$ac_optarg ;;
1053 -includedir | --includedir | --includedi | --included | --include \
1054 | --includ | --inclu | --incl | --inc)
1055 ac_prev=includedir ;;
1056 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1057 | --includ=* | --inclu=* | --incl=* | --inc=*)
1058 includedir=$ac_optarg ;;
1060 -infodir | --infodir | --infodi | --infod | --info | --inf)
1061 ac_prev=infodir ;;
1062 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1063 infodir=$ac_optarg ;;
1065 -libdir | --libdir | --libdi | --libd)
1066 ac_prev=libdir ;;
1067 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1068 libdir=$ac_optarg ;;
1070 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1071 | --libexe | --libex | --libe)
1072 ac_prev=libexecdir ;;
1073 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1074 | --libexe=* | --libex=* | --libe=*)
1075 libexecdir=$ac_optarg ;;
1077 -localedir | --localedir | --localedi | --localed | --locale)
1078 ac_prev=localedir ;;
1079 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1080 localedir=$ac_optarg ;;
1082 -localstatedir | --localstatedir | --localstatedi | --localstated \
1083 | --localstate | --localstat | --localsta | --localst | --locals)
1084 ac_prev=localstatedir ;;
1085 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1086 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1087 localstatedir=$ac_optarg ;;
1089 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1090 ac_prev=mandir ;;
1091 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1092 mandir=$ac_optarg ;;
1094 -nfp | --nfp | --nf)
1095 # Obsolete; use --without-fp.
1096 with_fp=no ;;
1098 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1099 | --no-cr | --no-c | -n)
1100 no_create=yes ;;
1102 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1103 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1104 no_recursion=yes ;;
1106 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1107 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1108 | --oldin | --oldi | --old | --ol | --o)
1109 ac_prev=oldincludedir ;;
1110 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1111 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1112 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1113 oldincludedir=$ac_optarg ;;
1115 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1116 ac_prev=prefix ;;
1117 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1118 prefix=$ac_optarg ;;
1120 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1121 | --program-pre | --program-pr | --program-p)
1122 ac_prev=program_prefix ;;
1123 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1124 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1125 program_prefix=$ac_optarg ;;
1127 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1128 | --program-suf | --program-su | --program-s)
1129 ac_prev=program_suffix ;;
1130 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1131 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1132 program_suffix=$ac_optarg ;;
1134 -program-transform-name | --program-transform-name \
1135 | --program-transform-nam | --program-transform-na \
1136 | --program-transform-n | --program-transform- \
1137 | --program-transform | --program-transfor \
1138 | --program-transfo | --program-transf \
1139 | --program-trans | --program-tran \
1140 | --progr-tra | --program-tr | --program-t)
1141 ac_prev=program_transform_name ;;
1142 -program-transform-name=* | --program-transform-name=* \
1143 | --program-transform-nam=* | --program-transform-na=* \
1144 | --program-transform-n=* | --program-transform-=* \
1145 | --program-transform=* | --program-transfor=* \
1146 | --program-transfo=* | --program-transf=* \
1147 | --program-trans=* | --program-tran=* \
1148 | --progr-tra=* | --program-tr=* | --program-t=*)
1149 program_transform_name=$ac_optarg ;;
1151 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1152 ac_prev=pdfdir ;;
1153 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1154 pdfdir=$ac_optarg ;;
1156 -psdir | --psdir | --psdi | --psd | --ps)
1157 ac_prev=psdir ;;
1158 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1159 psdir=$ac_optarg ;;
1161 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1162 | -silent | --silent | --silen | --sile | --sil)
1163 silent=yes ;;
1165 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1166 ac_prev=sbindir ;;
1167 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1168 | --sbi=* | --sb=*)
1169 sbindir=$ac_optarg ;;
1171 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1172 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1173 | --sharedst | --shareds | --shared | --share | --shar \
1174 | --sha | --sh)
1175 ac_prev=sharedstatedir ;;
1176 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1177 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1178 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1179 | --sha=* | --sh=*)
1180 sharedstatedir=$ac_optarg ;;
1182 -site | --site | --sit)
1183 ac_prev=site ;;
1184 -site=* | --site=* | --sit=*)
1185 site=$ac_optarg ;;
1187 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1188 ac_prev=srcdir ;;
1189 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1190 srcdir=$ac_optarg ;;
1192 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1193 | --syscon | --sysco | --sysc | --sys | --sy)
1194 ac_prev=sysconfdir ;;
1195 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1196 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1197 sysconfdir=$ac_optarg ;;
1199 -target | --target | --targe | --targ | --tar | --ta | --t)
1200 ac_prev=target_alias ;;
1201 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1202 target_alias=$ac_optarg ;;
1204 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1205 verbose=yes ;;
1207 -version | --version | --versio | --versi | --vers | -V)
1208 ac_init_version=: ;;
1210 -with-* | --with-*)
1211 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1212 # Reject names that are not valid shell variable names.
1213 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1214 { echo "$as_me: error: invalid package name: $ac_package" >&2
1215 { (exit 1); exit 1; }; }
1216 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1217 eval with_$ac_package=\$ac_optarg ;;
1219 -without-* | --without-*)
1220 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1221 # Reject names that are not valid shell variable names.
1222 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1223 { echo "$as_me: error: invalid package name: $ac_package" >&2
1224 { (exit 1); exit 1; }; }
1225 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1226 eval with_$ac_package=no ;;
1228 --x)
1229 # Obsolete; use --with-x.
1230 with_x=yes ;;
1232 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1233 | --x-incl | --x-inc | --x-in | --x-i)
1234 ac_prev=x_includes ;;
1235 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1236 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1237 x_includes=$ac_optarg ;;
1239 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1240 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1241 ac_prev=x_libraries ;;
1242 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1243 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1244 x_libraries=$ac_optarg ;;
1246 -*) { echo "$as_me: error: unrecognized option: $ac_option
1247 Try \`$0 --help' for more information." >&2
1248 { (exit 1); exit 1; }; }
1251 *=*)
1252 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1253 # Reject names that are not valid shell variable names.
1254 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1255 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1256 { (exit 1); exit 1; }; }
1257 eval $ac_envvar=\$ac_optarg
1258 export $ac_envvar ;;
1261 # FIXME: should be removed in autoconf 3.0.
1262 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1263 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1264 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1265 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1268 esac
1269 done
1271 if test -n "$ac_prev"; then
1272 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1273 { echo "$as_me: error: missing argument to $ac_option" >&2
1274 { (exit 1); exit 1; }; }
1277 # Be sure to have absolute directory names.
1278 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1279 datadir sysconfdir sharedstatedir localstatedir includedir \
1280 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1281 libdir localedir mandir
1283 eval ac_val=\$$ac_var
1284 case $ac_val in
1285 [\\/$]* | ?:[\\/]* ) continue;;
1286 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1287 esac
1288 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1289 { (exit 1); exit 1; }; }
1290 done
1292 # There might be people who depend on the old broken behavior: `$host'
1293 # used to hold the argument of --host etc.
1294 # FIXME: To remove some day.
1295 build=$build_alias
1296 host=$host_alias
1297 target=$target_alias
1299 # FIXME: To remove some day.
1300 if test "x$host_alias" != x; then
1301 if test "x$build_alias" = x; then
1302 cross_compiling=maybe
1303 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1304 If a cross compiler is detected then cross compile mode will be used." >&2
1305 elif test "x$build_alias" != "x$host_alias"; then
1306 cross_compiling=yes
1310 ac_tool_prefix=
1311 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1313 test "$silent" = yes && exec 6>/dev/null
1316 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1317 ac_ls_di=`ls -di .` &&
1318 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1319 { echo "$as_me: error: Working directory cannot be determined" >&2
1320 { (exit 1); exit 1; }; }
1321 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1322 { echo "$as_me: error: pwd does not report name of working directory" >&2
1323 { (exit 1); exit 1; }; }
1326 # Find the source files, if location was not specified.
1327 if test -z "$srcdir"; then
1328 ac_srcdir_defaulted=yes
1329 # Try the directory containing this script, then the parent directory.
1330 ac_confdir=`$as_dirname -- "$0" ||
1331 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1332 X"$0" : 'X\(//\)[^/]' \| \
1333 X"$0" : 'X\(//\)$' \| \
1334 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1335 echo X"$0" |
1336 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1337 s//\1/
1340 /^X\(\/\/\)[^/].*/{
1341 s//\1/
1344 /^X\(\/\/\)$/{
1345 s//\1/
1348 /^X\(\/\).*/{
1349 s//\1/
1352 s/.*/./; q'`
1353 srcdir=$ac_confdir
1354 if test ! -r "$srcdir/$ac_unique_file"; then
1355 srcdir=..
1357 else
1358 ac_srcdir_defaulted=no
1360 if test ! -r "$srcdir/$ac_unique_file"; then
1361 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1362 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1363 { (exit 1); exit 1; }; }
1365 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1366 ac_abs_confdir=`(
1367 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1368 { (exit 1); exit 1; }; }
1369 pwd)`
1370 # When building in place, set srcdir=.
1371 if test "$ac_abs_confdir" = "$ac_pwd"; then
1372 srcdir=.
1374 # Remove unnecessary trailing slashes from srcdir.
1375 # Double slashes in file names in object file debugging info
1376 # mess up M-x gdb in Emacs.
1377 case $srcdir in
1378 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1379 esac
1380 for ac_var in $ac_precious_vars; do
1381 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1382 eval ac_env_${ac_var}_value=\$${ac_var}
1383 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1384 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1385 done
1388 # Report the --help message.
1390 if test "$ac_init_help" = "long"; then
1391 # Omit some internal or obsolete options to make the list less imposing.
1392 # This message is too long to be a string in the A/UX 3.1 sh.
1393 cat <<_ACEOF
1394 \`configure' configures libconfigfile 1.0 to adapt to many kinds of systems.
1396 Usage: $0 [OPTION]... [VAR=VALUE]...
1398 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1399 VAR=VALUE. See below for descriptions of some of the useful variables.
1401 Defaults for the options are specified in brackets.
1403 Configuration:
1404 -h, --help display this help and exit
1405 --help=short display options specific to this package
1406 --help=recursive display the short help of all the included packages
1407 -V, --version display version information and exit
1408 -q, --quiet, --silent do not print \`checking...' messages
1409 --cache-file=FILE cache test results in FILE [disabled]
1410 -C, --config-cache alias for \`--cache-file=config.cache'
1411 -n, --no-create do not create output files
1412 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1414 Installation directories:
1415 --prefix=PREFIX install architecture-independent files in PREFIX
1416 [$ac_default_prefix]
1417 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1418 [PREFIX]
1420 By default, \`make install' will install all the files in
1421 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1422 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1423 for instance \`--prefix=\$HOME'.
1425 For better control, use the options below.
1427 Fine tuning of the installation directories:
1428 --bindir=DIR user executables [EPREFIX/bin]
1429 --sbindir=DIR system admin executables [EPREFIX/sbin]
1430 --libexecdir=DIR program executables [EPREFIX/libexec]
1431 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1432 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1433 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1434 --libdir=DIR object code libraries [EPREFIX/lib]
1435 --includedir=DIR C header files [PREFIX/include]
1436 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1437 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1438 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1439 --infodir=DIR info documentation [DATAROOTDIR/info]
1440 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1441 --mandir=DIR man documentation [DATAROOTDIR/man]
1442 --docdir=DIR documentation root [DATAROOTDIR/doc/libconfigfile]
1443 --htmldir=DIR html documentation [DOCDIR]
1444 --dvidir=DIR dvi documentation [DOCDIR]
1445 --pdfdir=DIR pdf documentation [DOCDIR]
1446 --psdir=DIR ps documentation [DOCDIR]
1447 _ACEOF
1449 cat <<\_ACEOF
1451 Program names:
1452 --program-prefix=PREFIX prepend PREFIX to installed program names
1453 --program-suffix=SUFFIX append SUFFIX to installed program names
1454 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1456 System types:
1457 --build=BUILD configure for building on BUILD [guessed]
1458 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1459 _ACEOF
1462 if test -n "$ac_init_help"; then
1463 case $ac_init_help in
1464 short | recursive ) echo "Configuration of libconfigfile 1.0:";;
1465 esac
1466 cat <<\_ACEOF
1468 Optional Features:
1469 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1470 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1471 --disable-dependency-tracking speeds up one-time build
1472 --enable-dependency-tracking do not reject slow dependency extractors
1473 --enable-shared[=PKGS] build shared libraries [default=yes]
1474 --enable-static[=PKGS] build static libraries [default=yes]
1475 --enable-fast-install[=PKGS]
1476 optimize for fast installation [default=yes]
1477 --disable-libtool-lock avoid locking (might break parallel builds)
1479 Optional Packages:
1480 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1481 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1482 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1483 --with-pic try to use only PIC/non-PIC objects [default=use
1484 both]
1485 --with-tags[=TAGS] include additional configurations [automatic]
1487 Some influential environment variables:
1488 CXX C++ compiler command
1489 CXXFLAGS C++ compiler flags
1490 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1491 nonstandard directory <lib dir>
1492 LIBS libraries to pass to the linker, e.g. -l<library>
1493 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1494 you have headers in a nonstandard directory <include dir>
1495 CC C compiler command
1496 CFLAGS C compiler flags
1497 CPP C preprocessor
1498 CXXCPP C++ preprocessor
1499 F77 Fortran 77 compiler command
1500 FFLAGS Fortran 77 compiler flags
1502 Use these variables to override the choices made by `configure' or to help
1503 it to find libraries and programs with nonstandard names/locations.
1505 Report bugs to <ahmed.badran@gmail.com>.
1506 _ACEOF
1507 ac_status=$?
1510 if test "$ac_init_help" = "recursive"; then
1511 # If there are subdirs, report their specific --help.
1512 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1513 test -d "$ac_dir" || continue
1514 ac_builddir=.
1516 case "$ac_dir" in
1517 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1519 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1520 # A ".." for each directory in $ac_dir_suffix.
1521 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1522 case $ac_top_builddir_sub in
1523 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1524 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1525 esac ;;
1526 esac
1527 ac_abs_top_builddir=$ac_pwd
1528 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1529 # for backward compatibility:
1530 ac_top_builddir=$ac_top_build_prefix
1532 case $srcdir in
1533 .) # We are building in place.
1534 ac_srcdir=.
1535 ac_top_srcdir=$ac_top_builddir_sub
1536 ac_abs_top_srcdir=$ac_pwd ;;
1537 [\\/]* | ?:[\\/]* ) # Absolute name.
1538 ac_srcdir=$srcdir$ac_dir_suffix;
1539 ac_top_srcdir=$srcdir
1540 ac_abs_top_srcdir=$srcdir ;;
1541 *) # Relative name.
1542 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1543 ac_top_srcdir=$ac_top_build_prefix$srcdir
1544 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1545 esac
1546 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1548 cd "$ac_dir" || { ac_status=$?; continue; }
1549 # Check for guested configure.
1550 if test -f "$ac_srcdir/configure.gnu"; then
1551 echo &&
1552 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1553 elif test -f "$ac_srcdir/configure"; then
1554 echo &&
1555 $SHELL "$ac_srcdir/configure" --help=recursive
1556 else
1557 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1558 fi || ac_status=$?
1559 cd "$ac_pwd" || { ac_status=$?; break; }
1560 done
1563 test -n "$ac_init_help" && exit $ac_status
1564 if $ac_init_version; then
1565 cat <<\_ACEOF
1566 libconfigfile configure 1.0
1567 generated by GNU Autoconf 2.61
1569 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1570 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1571 This configure script is free software; the Free Software Foundation
1572 gives unlimited permission to copy, distribute and modify it.
1573 _ACEOF
1574 exit
1576 cat >config.log <<_ACEOF
1577 This file contains any messages produced by compilers while
1578 running configure, to aid debugging if configure makes a mistake.
1580 It was created by libconfigfile $as_me 1.0, which was
1581 generated by GNU Autoconf 2.61. Invocation command line was
1583 $ $0 $@
1585 _ACEOF
1586 exec 5>>config.log
1588 cat <<_ASUNAME
1589 ## --------- ##
1590 ## Platform. ##
1591 ## --------- ##
1593 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1594 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1595 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1596 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1597 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1599 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1600 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1602 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1603 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1604 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1605 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1606 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1607 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1608 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1610 _ASUNAME
1612 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1613 for as_dir in $PATH
1615 IFS=$as_save_IFS
1616 test -z "$as_dir" && as_dir=.
1617 echo "PATH: $as_dir"
1618 done
1619 IFS=$as_save_IFS
1621 } >&5
1623 cat >&5 <<_ACEOF
1626 ## ----------- ##
1627 ## Core tests. ##
1628 ## ----------- ##
1630 _ACEOF
1633 # Keep a trace of the command line.
1634 # Strip out --no-create and --no-recursion so they do not pile up.
1635 # Strip out --silent because we don't want to record it for future runs.
1636 # Also quote any args containing shell meta-characters.
1637 # Make two passes to allow for proper duplicate-argument suppression.
1638 ac_configure_args=
1639 ac_configure_args0=
1640 ac_configure_args1=
1641 ac_must_keep_next=false
1642 for ac_pass in 1 2
1644 for ac_arg
1646 case $ac_arg in
1647 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1648 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1649 | -silent | --silent | --silen | --sile | --sil)
1650 continue ;;
1651 *\'*)
1652 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1653 esac
1654 case $ac_pass in
1655 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1657 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1658 if test $ac_must_keep_next = true; then
1659 ac_must_keep_next=false # Got value, back to normal.
1660 else
1661 case $ac_arg in
1662 *=* | --config-cache | -C | -disable-* | --disable-* \
1663 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1664 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1665 | -with-* | --with-* | -without-* | --without-* | --x)
1666 case "$ac_configure_args0 " in
1667 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1668 esac
1670 -* ) ac_must_keep_next=true ;;
1671 esac
1673 ac_configure_args="$ac_configure_args '$ac_arg'"
1675 esac
1676 done
1677 done
1678 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1679 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1681 # When interrupted or exit'd, cleanup temporary files, and complete
1682 # config.log. We remove comments because anyway the quotes in there
1683 # would cause problems or look ugly.
1684 # WARNING: Use '\'' to represent an apostrophe within the trap.
1685 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1686 trap 'exit_status=$?
1687 # Save into config.log some information that might help in debugging.
1689 echo
1691 cat <<\_ASBOX
1692 ## ---------------- ##
1693 ## Cache variables. ##
1694 ## ---------------- ##
1695 _ASBOX
1696 echo
1697 # The following way of writing the cache mishandles newlines in values,
1699 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1700 eval ac_val=\$$ac_var
1701 case $ac_val in #(
1702 *${as_nl}*)
1703 case $ac_var in #(
1704 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1705 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1706 esac
1707 case $ac_var in #(
1708 _ | IFS | as_nl) ;; #(
1709 *) $as_unset $ac_var ;;
1710 esac ;;
1711 esac
1712 done
1713 (set) 2>&1 |
1714 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1715 *${as_nl}ac_space=\ *)
1716 sed -n \
1717 "s/'\''/'\''\\\\'\'''\''/g;
1718 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1719 ;; #(
1721 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1723 esac |
1724 sort
1726 echo
1728 cat <<\_ASBOX
1729 ## ----------------- ##
1730 ## Output variables. ##
1731 ## ----------------- ##
1732 _ASBOX
1733 echo
1734 for ac_var in $ac_subst_vars
1736 eval ac_val=\$$ac_var
1737 case $ac_val in
1738 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1739 esac
1740 echo "$ac_var='\''$ac_val'\''"
1741 done | sort
1742 echo
1744 if test -n "$ac_subst_files"; then
1745 cat <<\_ASBOX
1746 ## ------------------- ##
1747 ## File substitutions. ##
1748 ## ------------------- ##
1749 _ASBOX
1750 echo
1751 for ac_var in $ac_subst_files
1753 eval ac_val=\$$ac_var
1754 case $ac_val in
1755 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1756 esac
1757 echo "$ac_var='\''$ac_val'\''"
1758 done | sort
1759 echo
1762 if test -s confdefs.h; then
1763 cat <<\_ASBOX
1764 ## ----------- ##
1765 ## confdefs.h. ##
1766 ## ----------- ##
1767 _ASBOX
1768 echo
1769 cat confdefs.h
1770 echo
1772 test "$ac_signal" != 0 &&
1773 echo "$as_me: caught signal $ac_signal"
1774 echo "$as_me: exit $exit_status"
1775 } >&5
1776 rm -f core *.core core.conftest.* &&
1777 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1778 exit $exit_status
1780 for ac_signal in 1 2 13 15; do
1781 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1782 done
1783 ac_signal=0
1785 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1786 rm -f -r conftest* confdefs.h
1788 # Predefined preprocessor variables.
1790 cat >>confdefs.h <<_ACEOF
1791 #define PACKAGE_NAME "$PACKAGE_NAME"
1792 _ACEOF
1795 cat >>confdefs.h <<_ACEOF
1796 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1797 _ACEOF
1800 cat >>confdefs.h <<_ACEOF
1801 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1802 _ACEOF
1805 cat >>confdefs.h <<_ACEOF
1806 #define PACKAGE_STRING "$PACKAGE_STRING"
1807 _ACEOF
1810 cat >>confdefs.h <<_ACEOF
1811 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1812 _ACEOF
1815 # Let the site file select an alternate cache file if it wants to.
1816 # Prefer explicitly selected file to automatically selected ones.
1817 if test -n "$CONFIG_SITE"; then
1818 set x "$CONFIG_SITE"
1819 elif test "x$prefix" != xNONE; then
1820 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1821 else
1822 set x "$ac_default_prefix/share/config.site" \
1823 "$ac_default_prefix/etc/config.site"
1825 shift
1826 for ac_site_file
1828 if test -r "$ac_site_file"; then
1829 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1830 echo "$as_me: loading site script $ac_site_file" >&6;}
1831 sed 's/^/| /' "$ac_site_file" >&5
1832 . "$ac_site_file"
1834 done
1836 if test -r "$cache_file"; then
1837 # Some versions of bash will fail to source /dev/null (special
1838 # files actually), so we avoid doing that.
1839 if test -f "$cache_file"; then
1840 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1841 echo "$as_me: loading cache $cache_file" >&6;}
1842 case $cache_file in
1843 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1844 *) . "./$cache_file";;
1845 esac
1847 else
1848 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1849 echo "$as_me: creating cache $cache_file" >&6;}
1850 >$cache_file
1853 # Check that the precious variables saved in the cache have kept the same
1854 # value.
1855 ac_cache_corrupted=false
1856 for ac_var in $ac_precious_vars; do
1857 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1858 eval ac_new_set=\$ac_env_${ac_var}_set
1859 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1860 eval ac_new_val=\$ac_env_${ac_var}_value
1861 case $ac_old_set,$ac_new_set in
1862 set,)
1863 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1864 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1865 ac_cache_corrupted=: ;;
1866 ,set)
1867 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1868 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1869 ac_cache_corrupted=: ;;
1870 ,);;
1872 if test "x$ac_old_val" != "x$ac_new_val"; then
1873 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1874 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1875 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1876 echo "$as_me: former value: $ac_old_val" >&2;}
1877 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1878 echo "$as_me: current value: $ac_new_val" >&2;}
1879 ac_cache_corrupted=:
1880 fi;;
1881 esac
1882 # Pass precious variables to config.status.
1883 if test "$ac_new_set" = set; then
1884 case $ac_new_val in
1885 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1886 *) ac_arg=$ac_var=$ac_new_val ;;
1887 esac
1888 case " $ac_configure_args " in
1889 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1890 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1891 esac
1893 done
1894 if $ac_cache_corrupted; then
1895 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1896 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1897 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1898 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1899 { (exit 1); exit 1; }; }
1926 ac_ext=c
1927 ac_cpp='$CPP $CPPFLAGS'
1928 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1929 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1930 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1933 am__api_version='1.10'
1935 ac_aux_dir=
1936 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1937 if test -f "$ac_dir/install-sh"; then
1938 ac_aux_dir=$ac_dir
1939 ac_install_sh="$ac_aux_dir/install-sh -c"
1940 break
1941 elif test -f "$ac_dir/install.sh"; then
1942 ac_aux_dir=$ac_dir
1943 ac_install_sh="$ac_aux_dir/install.sh -c"
1944 break
1945 elif test -f "$ac_dir/shtool"; then
1946 ac_aux_dir=$ac_dir
1947 ac_install_sh="$ac_aux_dir/shtool install -c"
1948 break
1950 done
1951 if test -z "$ac_aux_dir"; then
1952 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1953 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1954 { (exit 1); exit 1; }; }
1957 # These three variables are undocumented and unsupported,
1958 # and are intended to be withdrawn in a future Autoconf release.
1959 # They can cause serious problems if a builder's source tree is in a directory
1960 # whose full name contains unusual characters.
1961 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1962 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1963 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1966 # Find a good install program. We prefer a C program (faster),
1967 # so one script is as good as another. But avoid the broken or
1968 # incompatible versions:
1969 # SysV /etc/install, /usr/sbin/install
1970 # SunOS /usr/etc/install
1971 # IRIX /sbin/install
1972 # AIX /bin/install
1973 # AmigaOS /C/install, which installs bootblocks on floppy discs
1974 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1975 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1976 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1977 # OS/2's system install, which has a completely different semantic
1978 # ./install, which can be erroneously created by make from ./install.sh.
1979 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1980 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
1981 if test -z "$INSTALL"; then
1982 if test "${ac_cv_path_install+set}" = set; then
1983 echo $ECHO_N "(cached) $ECHO_C" >&6
1984 else
1985 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1986 for as_dir in $PATH
1988 IFS=$as_save_IFS
1989 test -z "$as_dir" && as_dir=.
1990 # Account for people who put trailing slashes in PATH elements.
1991 case $as_dir/ in
1992 ./ | .// | /cC/* | \
1993 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1994 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1995 /usr/ucb/* ) ;;
1997 # OSF1 and SCO ODT 3.0 have their own names for install.
1998 # Don't use installbsd from OSF since it installs stuff as root
1999 # by default.
2000 for ac_prog in ginstall scoinst install; do
2001 for ac_exec_ext in '' $ac_executable_extensions; do
2002 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2003 if test $ac_prog = install &&
2004 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2005 # AIX install. It has an incompatible calling convention.
2007 elif test $ac_prog = install &&
2008 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2009 # program-specific install script used by HP pwplus--don't use.
2011 else
2012 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2013 break 3
2016 done
2017 done
2019 esac
2020 done
2021 IFS=$as_save_IFS
2025 if test "${ac_cv_path_install+set}" = set; then
2026 INSTALL=$ac_cv_path_install
2027 else
2028 # As a last resort, use the slow shell script. Don't cache a
2029 # value for INSTALL within a source directory, because that will
2030 # break other packages using the cache if that directory is
2031 # removed, or if the value is a relative name.
2032 INSTALL=$ac_install_sh
2035 { echo "$as_me:$LINENO: result: $INSTALL" >&5
2036 echo "${ECHO_T}$INSTALL" >&6; }
2038 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2039 # It thinks the first close brace ends the variable substitution.
2040 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2042 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2044 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2046 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2047 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2048 # Just in case
2049 sleep 1
2050 echo timestamp > conftest.file
2051 # Do `set' in a subshell so we don't clobber the current shell's
2052 # arguments. Must try -L first in case configure is actually a
2053 # symlink; some systems play weird games with the mod time of symlinks
2054 # (eg FreeBSD returns the mod time of the symlink's containing
2055 # directory).
2056 if (
2057 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2058 if test "$*" = "X"; then
2059 # -L didn't work.
2060 set X `ls -t $srcdir/configure conftest.file`
2062 rm -f conftest.file
2063 if test "$*" != "X $srcdir/configure conftest.file" \
2064 && test "$*" != "X conftest.file $srcdir/configure"; then
2066 # If neither matched, then we have a broken ls. This can happen
2067 # if, for instance, CONFIG_SHELL is bash and it inherits a
2068 # broken ls alias from the environment. This has actually
2069 # happened. Such a system could not be considered "sane".
2070 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2071 alias in your environment" >&5
2072 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2073 alias in your environment" >&2;}
2074 { (exit 1); exit 1; }; }
2077 test "$2" = conftest.file
2079 then
2080 # Ok.
2082 else
2083 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2084 Check your system clock" >&5
2085 echo "$as_me: error: newly created file is older than distributed files!
2086 Check your system clock" >&2;}
2087 { (exit 1); exit 1; }; }
2089 { echo "$as_me:$LINENO: result: yes" >&5
2090 echo "${ECHO_T}yes" >&6; }
2091 test "$program_prefix" != NONE &&
2092 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2093 # Use a double $ so make ignores it.
2094 test "$program_suffix" != NONE &&
2095 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2096 # Double any \ or $. echo might interpret backslashes.
2097 # By default was `s,x,x', remove it if useless.
2098 cat <<\_ACEOF >conftest.sed
2099 s/[\\$]/&&/g;s/;s,x,x,$//
2100 _ACEOF
2101 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2102 rm -f conftest.sed
2104 # expand $ac_aux_dir to an absolute path
2105 am_aux_dir=`cd $ac_aux_dir && pwd`
2107 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2108 # Use eval to expand $SHELL
2109 if eval "$MISSING --run true"; then
2110 am_missing_run="$MISSING --run "
2111 else
2112 am_missing_run=
2113 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2114 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2117 { echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2118 echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
2119 if test -z "$MKDIR_P"; then
2120 if test "${ac_cv_path_mkdir+set}" = set; then
2121 echo $ECHO_N "(cached) $ECHO_C" >&6
2122 else
2123 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2124 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2126 IFS=$as_save_IFS
2127 test -z "$as_dir" && as_dir=.
2128 for ac_prog in mkdir gmkdir; do
2129 for ac_exec_ext in '' $ac_executable_extensions; do
2130 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2131 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2132 'mkdir (GNU coreutils) '* | \
2133 'mkdir (coreutils) '* | \
2134 'mkdir (fileutils) '4.1*)
2135 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2136 break 3;;
2137 esac
2138 done
2139 done
2140 done
2141 IFS=$as_save_IFS
2145 if test "${ac_cv_path_mkdir+set}" = set; then
2146 MKDIR_P="$ac_cv_path_mkdir -p"
2147 else
2148 # As a last resort, use the slow shell script. Don't cache a
2149 # value for MKDIR_P within a source directory, because that will
2150 # break other packages using the cache if that directory is
2151 # removed, or if the value is a relative name.
2152 test -d ./--version && rmdir ./--version
2153 MKDIR_P="$ac_install_sh -d"
2156 { echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2157 echo "${ECHO_T}$MKDIR_P" >&6; }
2159 mkdir_p="$MKDIR_P"
2160 case $mkdir_p in
2161 [\\/$]* | ?:[\\/]*) ;;
2162 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2163 esac
2165 for ac_prog in gawk mawk nawk awk
2167 # Extract the first word of "$ac_prog", so it can be a program name with args.
2168 set dummy $ac_prog; ac_word=$2
2169 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2170 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2171 if test "${ac_cv_prog_AWK+set}" = set; then
2172 echo $ECHO_N "(cached) $ECHO_C" >&6
2173 else
2174 if test -n "$AWK"; then
2175 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2176 else
2177 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2178 for as_dir in $PATH
2180 IFS=$as_save_IFS
2181 test -z "$as_dir" && as_dir=.
2182 for ac_exec_ext in '' $ac_executable_extensions; do
2183 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2184 ac_cv_prog_AWK="$ac_prog"
2185 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2186 break 2
2188 done
2189 done
2190 IFS=$as_save_IFS
2194 AWK=$ac_cv_prog_AWK
2195 if test -n "$AWK"; then
2196 { echo "$as_me:$LINENO: result: $AWK" >&5
2197 echo "${ECHO_T}$AWK" >&6; }
2198 else
2199 { echo "$as_me:$LINENO: result: no" >&5
2200 echo "${ECHO_T}no" >&6; }
2204 test -n "$AWK" && break
2205 done
2207 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2208 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2209 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2210 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2211 echo $ECHO_N "(cached) $ECHO_C" >&6
2212 else
2213 cat >conftest.make <<\_ACEOF
2214 SHELL = /bin/sh
2215 all:
2216 @echo '@@@%%%=$(MAKE)=@@@%%%'
2217 _ACEOF
2218 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2219 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2220 *@@@%%%=?*=@@@%%%*)
2221 eval ac_cv_prog_make_${ac_make}_set=yes;;
2223 eval ac_cv_prog_make_${ac_make}_set=no;;
2224 esac
2225 rm -f conftest.make
2227 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2228 { echo "$as_me:$LINENO: result: yes" >&5
2229 echo "${ECHO_T}yes" >&6; }
2230 SET_MAKE=
2231 else
2232 { echo "$as_me:$LINENO: result: no" >&5
2233 echo "${ECHO_T}no" >&6; }
2234 SET_MAKE="MAKE=${MAKE-make}"
2237 rm -rf .tst 2>/dev/null
2238 mkdir .tst 2>/dev/null
2239 if test -d .tst; then
2240 am__leading_dot=.
2241 else
2242 am__leading_dot=_
2244 rmdir .tst 2>/dev/null
2246 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2247 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2248 # is not polluted with repeated "-I."
2249 am__isrc=' -I$(srcdir)'
2250 # test to see if srcdir already configured
2251 if test -f $srcdir/config.status; then
2252 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2253 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2254 { (exit 1); exit 1; }; }
2258 # test whether we have cygpath
2259 if test -z "$CYGPATH_W"; then
2260 if (cygpath --version) >/dev/null 2>/dev/null; then
2261 CYGPATH_W='cygpath -w'
2262 else
2263 CYGPATH_W=echo
2268 # Define the identity of the package.
2269 PACKAGE=libconfigfile
2270 VERSION=1.0
2273 # Some tools Automake needs.
2275 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2278 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2281 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2284 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2287 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2289 install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
2291 # Installed binaries are usually stripped using `strip' when the user
2292 # run `make install-strip'. However `strip' might not be the right
2293 # tool to use in cross-compilation environments, therefore Automake
2294 # will honor the `STRIP' environment variable to overrule this program.
2295 if test "$cross_compiling" != no; then
2296 if test -n "$ac_tool_prefix"; then
2297 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2298 set dummy ${ac_tool_prefix}strip; ac_word=$2
2299 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2300 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2301 if test "${ac_cv_prog_STRIP+set}" = set; then
2302 echo $ECHO_N "(cached) $ECHO_C" >&6
2303 else
2304 if test -n "$STRIP"; then
2305 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2306 else
2307 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2308 for as_dir in $PATH
2310 IFS=$as_save_IFS
2311 test -z "$as_dir" && as_dir=.
2312 for ac_exec_ext in '' $ac_executable_extensions; do
2313 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2314 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2315 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2316 break 2
2318 done
2319 done
2320 IFS=$as_save_IFS
2324 STRIP=$ac_cv_prog_STRIP
2325 if test -n "$STRIP"; then
2326 { echo "$as_me:$LINENO: result: $STRIP" >&5
2327 echo "${ECHO_T}$STRIP" >&6; }
2328 else
2329 { echo "$as_me:$LINENO: result: no" >&5
2330 echo "${ECHO_T}no" >&6; }
2335 if test -z "$ac_cv_prog_STRIP"; then
2336 ac_ct_STRIP=$STRIP
2337 # Extract the first word of "strip", so it can be a program name with args.
2338 set dummy strip; ac_word=$2
2339 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2340 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2341 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2342 echo $ECHO_N "(cached) $ECHO_C" >&6
2343 else
2344 if test -n "$ac_ct_STRIP"; then
2345 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2346 else
2347 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2348 for as_dir in $PATH
2350 IFS=$as_save_IFS
2351 test -z "$as_dir" && as_dir=.
2352 for ac_exec_ext in '' $ac_executable_extensions; do
2353 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2354 ac_cv_prog_ac_ct_STRIP="strip"
2355 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2356 break 2
2358 done
2359 done
2360 IFS=$as_save_IFS
2364 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2365 if test -n "$ac_ct_STRIP"; then
2366 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2367 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2368 else
2369 { echo "$as_me:$LINENO: result: no" >&5
2370 echo "${ECHO_T}no" >&6; }
2373 if test "x$ac_ct_STRIP" = x; then
2374 STRIP=":"
2375 else
2376 case $cross_compiling:$ac_tool_warned in
2377 yes:)
2378 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2379 whose name does not start with the host triplet. If you think this
2380 configuration is useful to you, please write to autoconf@gnu.org." >&5
2381 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2382 whose name does not start with the host triplet. If you think this
2383 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2384 ac_tool_warned=yes ;;
2385 esac
2386 STRIP=$ac_ct_STRIP
2388 else
2389 STRIP="$ac_cv_prog_STRIP"
2393 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2395 # We need awk for the "check" target. The system "awk" is bad on
2396 # some platforms.
2397 # Always define AMTAR for backward compatibility.
2399 AMTAR=${AMTAR-"${am_missing_run}tar"}
2401 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2408 ac_config_headers="$ac_config_headers config.h"
2411 # Checks for programs.
2412 ac_ext=cpp
2413 ac_cpp='$CXXCPP $CPPFLAGS'
2414 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2415 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2416 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2417 if test -z "$CXX"; then
2418 if test -n "$CCC"; then
2419 CXX=$CCC
2420 else
2421 if test -n "$ac_tool_prefix"; then
2422 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2424 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2425 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2426 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2427 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2428 if test "${ac_cv_prog_CXX+set}" = set; then
2429 echo $ECHO_N "(cached) $ECHO_C" >&6
2430 else
2431 if test -n "$CXX"; then
2432 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2433 else
2434 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2435 for as_dir in $PATH
2437 IFS=$as_save_IFS
2438 test -z "$as_dir" && as_dir=.
2439 for ac_exec_ext in '' $ac_executable_extensions; do
2440 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2441 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2442 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2443 break 2
2445 done
2446 done
2447 IFS=$as_save_IFS
2451 CXX=$ac_cv_prog_CXX
2452 if test -n "$CXX"; then
2453 { echo "$as_me:$LINENO: result: $CXX" >&5
2454 echo "${ECHO_T}$CXX" >&6; }
2455 else
2456 { echo "$as_me:$LINENO: result: no" >&5
2457 echo "${ECHO_T}no" >&6; }
2461 test -n "$CXX" && break
2462 done
2464 if test -z "$CXX"; then
2465 ac_ct_CXX=$CXX
2466 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2468 # Extract the first word of "$ac_prog", so it can be a program name with args.
2469 set dummy $ac_prog; ac_word=$2
2470 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2471 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2472 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2473 echo $ECHO_N "(cached) $ECHO_C" >&6
2474 else
2475 if test -n "$ac_ct_CXX"; then
2476 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2477 else
2478 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2479 for as_dir in $PATH
2481 IFS=$as_save_IFS
2482 test -z "$as_dir" && as_dir=.
2483 for ac_exec_ext in '' $ac_executable_extensions; do
2484 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2485 ac_cv_prog_ac_ct_CXX="$ac_prog"
2486 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2487 break 2
2489 done
2490 done
2491 IFS=$as_save_IFS
2495 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2496 if test -n "$ac_ct_CXX"; then
2497 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2498 echo "${ECHO_T}$ac_ct_CXX" >&6; }
2499 else
2500 { echo "$as_me:$LINENO: result: no" >&5
2501 echo "${ECHO_T}no" >&6; }
2505 test -n "$ac_ct_CXX" && break
2506 done
2508 if test "x$ac_ct_CXX" = x; then
2509 CXX="g++"
2510 else
2511 case $cross_compiling:$ac_tool_warned in
2512 yes:)
2513 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2514 whose name does not start with the host triplet. If you think this
2515 configuration is useful to you, please write to autoconf@gnu.org." >&5
2516 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2517 whose name does not start with the host triplet. If you think this
2518 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2519 ac_tool_warned=yes ;;
2520 esac
2521 CXX=$ac_ct_CXX
2527 # Provide some information about the compiler.
2528 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
2529 ac_compiler=`set X $ac_compile; echo $2`
2530 { (ac_try="$ac_compiler --version >&5"
2531 case "(($ac_try" in
2532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2533 *) ac_try_echo=$ac_try;;
2534 esac
2535 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2536 (eval "$ac_compiler --version >&5") 2>&5
2537 ac_status=$?
2538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2539 (exit $ac_status); }
2540 { (ac_try="$ac_compiler -v >&5"
2541 case "(($ac_try" in
2542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2543 *) ac_try_echo=$ac_try;;
2544 esac
2545 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2546 (eval "$ac_compiler -v >&5") 2>&5
2547 ac_status=$?
2548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2549 (exit $ac_status); }
2550 { (ac_try="$ac_compiler -V >&5"
2551 case "(($ac_try" in
2552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2553 *) ac_try_echo=$ac_try;;
2554 esac
2555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2556 (eval "$ac_compiler -V >&5") 2>&5
2557 ac_status=$?
2558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2559 (exit $ac_status); }
2561 cat >conftest.$ac_ext <<_ACEOF
2562 /* confdefs.h. */
2563 _ACEOF
2564 cat confdefs.h >>conftest.$ac_ext
2565 cat >>conftest.$ac_ext <<_ACEOF
2566 /* end confdefs.h. */
2569 main ()
2573 return 0;
2575 _ACEOF
2576 ac_clean_files_save=$ac_clean_files
2577 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2578 # Try to create an executable without -o first, disregard a.out.
2579 # It will help us diagnose broken compilers, and finding out an intuition
2580 # of exeext.
2581 { echo "$as_me:$LINENO: checking for C++ compiler default output file name" >&5
2582 echo $ECHO_N "checking for C++ compiler default output file name... $ECHO_C" >&6; }
2583 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2585 # List of possible output files, starting from the most likely.
2586 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2587 # only as a last resort. b.out is created by i960 compilers.
2588 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2590 # The IRIX 6 linker writes into existing files which may not be
2591 # executable, retaining their permissions. Remove them first so a
2592 # subsequent execution test works.
2593 ac_rmfiles=
2594 for ac_file in $ac_files
2596 case $ac_file in
2597 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2598 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2599 esac
2600 done
2601 rm -f $ac_rmfiles
2603 if { (ac_try="$ac_link_default"
2604 case "(($ac_try" in
2605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2606 *) ac_try_echo=$ac_try;;
2607 esac
2608 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2609 (eval "$ac_link_default") 2>&5
2610 ac_status=$?
2611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2612 (exit $ac_status); }; then
2613 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2614 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2615 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2616 # so that the user can short-circuit this test for compilers unknown to
2617 # Autoconf.
2618 for ac_file in $ac_files ''
2620 test -f "$ac_file" || continue
2621 case $ac_file in
2622 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2624 [ab].out )
2625 # We found the default executable, but exeext='' is most
2626 # certainly right.
2627 break;;
2628 *.* )
2629 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2630 then :; else
2631 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2633 # We set ac_cv_exeext here because the later test for it is not
2634 # safe: cross compilers may not add the suffix if given an `-o'
2635 # argument, so we may need to know it at that point already.
2636 # Even if this section looks crufty: it has the advantage of
2637 # actually working.
2638 break;;
2640 break;;
2641 esac
2642 done
2643 test "$ac_cv_exeext" = no && ac_cv_exeext=
2645 else
2646 ac_file=''
2649 { echo "$as_me:$LINENO: result: $ac_file" >&5
2650 echo "${ECHO_T}$ac_file" >&6; }
2651 if test -z "$ac_file"; then
2652 echo "$as_me: failed program was:" >&5
2653 sed 's/^/| /' conftest.$ac_ext >&5
2655 { { echo "$as_me:$LINENO: error: C++ compiler cannot create executables
2656 See \`config.log' for more details." >&5
2657 echo "$as_me: error: C++ compiler cannot create executables
2658 See \`config.log' for more details." >&2;}
2659 { (exit 77); exit 77; }; }
2662 ac_exeext=$ac_cv_exeext
2664 # Check that the compiler produces executables we can run. If not, either
2665 # the compiler is broken, or we cross compile.
2666 { echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
2667 echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6; }
2668 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2669 # If not cross compiling, check that we can run a simple program.
2670 if test "$cross_compiling" != yes; then
2671 if { ac_try='./$ac_file'
2672 { (case "(($ac_try" in
2673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2674 *) ac_try_echo=$ac_try;;
2675 esac
2676 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2677 (eval "$ac_try") 2>&5
2678 ac_status=$?
2679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2680 (exit $ac_status); }; }; then
2681 cross_compiling=no
2682 else
2683 if test "$cross_compiling" = maybe; then
2684 cross_compiling=yes
2685 else
2686 { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
2687 If you meant to cross compile, use \`--host'.
2688 See \`config.log' for more details." >&5
2689 echo "$as_me: error: cannot run C++ compiled programs.
2690 If you meant to cross compile, use \`--host'.
2691 See \`config.log' for more details." >&2;}
2692 { (exit 1); exit 1; }; }
2696 { echo "$as_me:$LINENO: result: yes" >&5
2697 echo "${ECHO_T}yes" >&6; }
2699 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2700 ac_clean_files=$ac_clean_files_save
2701 # Check that the compiler produces executables we can run. If not, either
2702 # the compiler is broken, or we cross compile.
2703 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2704 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2705 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2706 echo "${ECHO_T}$cross_compiling" >&6; }
2708 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2709 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2710 if { (ac_try="$ac_link"
2711 case "(($ac_try" in
2712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2713 *) ac_try_echo=$ac_try;;
2714 esac
2715 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2716 (eval "$ac_link") 2>&5
2717 ac_status=$?
2718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2719 (exit $ac_status); }; then
2720 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2721 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2722 # work properly (i.e., refer to `conftest.exe'), while it won't with
2723 # `rm'.
2724 for ac_file in conftest.exe conftest conftest.*; do
2725 test -f "$ac_file" || continue
2726 case $ac_file in
2727 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2728 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2729 break;;
2730 * ) break;;
2731 esac
2732 done
2733 else
2734 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2735 See \`config.log' for more details." >&5
2736 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2737 See \`config.log' for more details." >&2;}
2738 { (exit 1); exit 1; }; }
2741 rm -f conftest$ac_cv_exeext
2742 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2743 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2745 rm -f conftest.$ac_ext
2746 EXEEXT=$ac_cv_exeext
2747 ac_exeext=$EXEEXT
2748 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2749 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2750 if test "${ac_cv_objext+set}" = set; then
2751 echo $ECHO_N "(cached) $ECHO_C" >&6
2752 else
2753 cat >conftest.$ac_ext <<_ACEOF
2754 /* confdefs.h. */
2755 _ACEOF
2756 cat confdefs.h >>conftest.$ac_ext
2757 cat >>conftest.$ac_ext <<_ACEOF
2758 /* end confdefs.h. */
2761 main ()
2765 return 0;
2767 _ACEOF
2768 rm -f conftest.o conftest.obj
2769 if { (ac_try="$ac_compile"
2770 case "(($ac_try" in
2771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2772 *) ac_try_echo=$ac_try;;
2773 esac
2774 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2775 (eval "$ac_compile") 2>&5
2776 ac_status=$?
2777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2778 (exit $ac_status); }; then
2779 for ac_file in conftest.o conftest.obj conftest.*; do
2780 test -f "$ac_file" || continue;
2781 case $ac_file in
2782 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2783 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2784 break;;
2785 esac
2786 done
2787 else
2788 echo "$as_me: failed program was:" >&5
2789 sed 's/^/| /' conftest.$ac_ext >&5
2791 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2792 See \`config.log' for more details." >&5
2793 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2794 See \`config.log' for more details." >&2;}
2795 { (exit 1); exit 1; }; }
2798 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2800 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2801 echo "${ECHO_T}$ac_cv_objext" >&6; }
2802 OBJEXT=$ac_cv_objext
2803 ac_objext=$OBJEXT
2804 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2805 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
2806 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2807 echo $ECHO_N "(cached) $ECHO_C" >&6
2808 else
2809 cat >conftest.$ac_ext <<_ACEOF
2810 /* confdefs.h. */
2811 _ACEOF
2812 cat confdefs.h >>conftest.$ac_ext
2813 cat >>conftest.$ac_ext <<_ACEOF
2814 /* end confdefs.h. */
2817 main ()
2819 #ifndef __GNUC__
2820 choke me
2821 #endif
2824 return 0;
2826 _ACEOF
2827 rm -f conftest.$ac_objext
2828 if { (ac_try="$ac_compile"
2829 case "(($ac_try" in
2830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2831 *) ac_try_echo=$ac_try;;
2832 esac
2833 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2834 (eval "$ac_compile") 2>conftest.er1
2835 ac_status=$?
2836 grep -v '^ *+' conftest.er1 >conftest.err
2837 rm -f conftest.er1
2838 cat conftest.err >&5
2839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2840 (exit $ac_status); } && {
2841 test -z "$ac_cxx_werror_flag" ||
2842 test ! -s conftest.err
2843 } && test -s conftest.$ac_objext; then
2844 ac_compiler_gnu=yes
2845 else
2846 echo "$as_me: failed program was:" >&5
2847 sed 's/^/| /' conftest.$ac_ext >&5
2849 ac_compiler_gnu=no
2852 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2853 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2856 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2857 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
2858 GXX=`test $ac_compiler_gnu = yes && echo yes`
2859 ac_test_CXXFLAGS=${CXXFLAGS+set}
2860 ac_save_CXXFLAGS=$CXXFLAGS
2861 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2862 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
2863 if test "${ac_cv_prog_cxx_g+set}" = set; then
2864 echo $ECHO_N "(cached) $ECHO_C" >&6
2865 else
2866 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
2867 ac_cxx_werror_flag=yes
2868 ac_cv_prog_cxx_g=no
2869 CXXFLAGS="-g"
2870 cat >conftest.$ac_ext <<_ACEOF
2871 /* confdefs.h. */
2872 _ACEOF
2873 cat confdefs.h >>conftest.$ac_ext
2874 cat >>conftest.$ac_ext <<_ACEOF
2875 /* end confdefs.h. */
2878 main ()
2882 return 0;
2884 _ACEOF
2885 rm -f conftest.$ac_objext
2886 if { (ac_try="$ac_compile"
2887 case "(($ac_try" in
2888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2889 *) ac_try_echo=$ac_try;;
2890 esac
2891 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2892 (eval "$ac_compile") 2>conftest.er1
2893 ac_status=$?
2894 grep -v '^ *+' conftest.er1 >conftest.err
2895 rm -f conftest.er1
2896 cat conftest.err >&5
2897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2898 (exit $ac_status); } && {
2899 test -z "$ac_cxx_werror_flag" ||
2900 test ! -s conftest.err
2901 } && test -s conftest.$ac_objext; then
2902 ac_cv_prog_cxx_g=yes
2903 else
2904 echo "$as_me: failed program was:" >&5
2905 sed 's/^/| /' conftest.$ac_ext >&5
2907 CXXFLAGS=""
2908 cat >conftest.$ac_ext <<_ACEOF
2909 /* confdefs.h. */
2910 _ACEOF
2911 cat confdefs.h >>conftest.$ac_ext
2912 cat >>conftest.$ac_ext <<_ACEOF
2913 /* end confdefs.h. */
2916 main ()
2920 return 0;
2922 _ACEOF
2923 rm -f conftest.$ac_objext
2924 if { (ac_try="$ac_compile"
2925 case "(($ac_try" in
2926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2927 *) ac_try_echo=$ac_try;;
2928 esac
2929 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2930 (eval "$ac_compile") 2>conftest.er1
2931 ac_status=$?
2932 grep -v '^ *+' conftest.er1 >conftest.err
2933 rm -f conftest.er1
2934 cat conftest.err >&5
2935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2936 (exit $ac_status); } && {
2937 test -z "$ac_cxx_werror_flag" ||
2938 test ! -s conftest.err
2939 } && test -s conftest.$ac_objext; then
2941 else
2942 echo "$as_me: failed program was:" >&5
2943 sed 's/^/| /' conftest.$ac_ext >&5
2945 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
2946 CXXFLAGS="-g"
2947 cat >conftest.$ac_ext <<_ACEOF
2948 /* confdefs.h. */
2949 _ACEOF
2950 cat confdefs.h >>conftest.$ac_ext
2951 cat >>conftest.$ac_ext <<_ACEOF
2952 /* end confdefs.h. */
2955 main ()
2959 return 0;
2961 _ACEOF
2962 rm -f conftest.$ac_objext
2963 if { (ac_try="$ac_compile"
2964 case "(($ac_try" in
2965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2966 *) ac_try_echo=$ac_try;;
2967 esac
2968 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2969 (eval "$ac_compile") 2>conftest.er1
2970 ac_status=$?
2971 grep -v '^ *+' conftest.er1 >conftest.err
2972 rm -f conftest.er1
2973 cat conftest.err >&5
2974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2975 (exit $ac_status); } && {
2976 test -z "$ac_cxx_werror_flag" ||
2977 test ! -s conftest.err
2978 } && test -s conftest.$ac_objext; then
2979 ac_cv_prog_cxx_g=yes
2980 else
2981 echo "$as_me: failed program was:" >&5
2982 sed 's/^/| /' conftest.$ac_ext >&5
2987 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2990 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2993 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2994 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
2996 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2997 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
2998 if test "$ac_test_CXXFLAGS" = set; then
2999 CXXFLAGS=$ac_save_CXXFLAGS
3000 elif test $ac_cv_prog_cxx_g = yes; then
3001 if test "$GXX" = yes; then
3002 CXXFLAGS="-g -O2"
3003 else
3004 CXXFLAGS="-g"
3006 else
3007 if test "$GXX" = yes; then
3008 CXXFLAGS="-O2"
3009 else
3010 CXXFLAGS=
3013 ac_ext=c
3014 ac_cpp='$CPP $CPPFLAGS'
3015 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3016 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3017 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3018 DEPDIR="${am__leading_dot}deps"
3020 ac_config_commands="$ac_config_commands depfiles"
3023 am_make=${MAKE-make}
3024 cat > confinc << 'END'
3025 am__doit:
3026 @echo done
3027 .PHONY: am__doit
3029 # If we don't find an include directive, just comment out the code.
3030 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3031 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
3032 am__include="#"
3033 am__quote=
3034 _am_result=none
3035 # First try GNU make style include.
3036 echo "include confinc" > confmf
3037 # We grep out `Entering directory' and `Leaving directory'
3038 # messages which can occur if `w' ends up in MAKEFLAGS.
3039 # In particular we don't look at `^make:' because GNU make might
3040 # be invoked under some other name (usually "gmake"), in which
3041 # case it prints its new name instead of `make'.
3042 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3043 am__include=include
3044 am__quote=
3045 _am_result=GNU
3047 # Now try BSD make style include.
3048 if test "$am__include" = "#"; then
3049 echo '.include "confinc"' > confmf
3050 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3051 am__include=.include
3052 am__quote="\""
3053 _am_result=BSD
3058 { echo "$as_me:$LINENO: result: $_am_result" >&5
3059 echo "${ECHO_T}$_am_result" >&6; }
3060 rm -f confinc confmf
3062 # Check whether --enable-dependency-tracking was given.
3063 if test "${enable_dependency_tracking+set}" = set; then
3064 enableval=$enable_dependency_tracking;
3067 if test "x$enable_dependency_tracking" != xno; then
3068 am_depcomp="$ac_aux_dir/depcomp"
3069 AMDEPBACKSLASH='\'
3071 if test "x$enable_dependency_tracking" != xno; then
3072 AMDEP_TRUE=
3073 AMDEP_FALSE='#'
3074 else
3075 AMDEP_TRUE='#'
3076 AMDEP_FALSE=
3081 depcc="$CXX" am_compiler_list=
3083 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3084 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3085 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
3086 echo $ECHO_N "(cached) $ECHO_C" >&6
3087 else
3088 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3089 # We make a subdir and do the tests there. Otherwise we can end up
3090 # making bogus files that we don't know about and never remove. For
3091 # instance it was reported that on HP-UX the gcc test will end up
3092 # making a dummy file named `D' -- because `-MD' means `put the output
3093 # in D'.
3094 mkdir conftest.dir
3095 # Copy depcomp to subdir because otherwise we won't find it if we're
3096 # using a relative directory.
3097 cp "$am_depcomp" conftest.dir
3098 cd conftest.dir
3099 # We will build objects and dependencies in a subdirectory because
3100 # it helps to detect inapplicable dependency modes. For instance
3101 # both Tru64's cc and ICC support -MD to output dependencies as a
3102 # side effect of compilation, but ICC will put the dependencies in
3103 # the current directory while Tru64 will put them in the object
3104 # directory.
3105 mkdir sub
3107 am_cv_CXX_dependencies_compiler_type=none
3108 if test "$am_compiler_list" = ""; then
3109 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3111 for depmode in $am_compiler_list; do
3112 # Setup a source with many dependencies, because some compilers
3113 # like to wrap large dependency lists on column 80 (with \), and
3114 # we should not choose a depcomp mode which is confused by this.
3116 # We need to recreate these files for each test, as the compiler may
3117 # overwrite some of them when testing with obscure command lines.
3118 # This happens at least with the AIX C compiler.
3119 : > sub/conftest.c
3120 for i in 1 2 3 4 5 6; do
3121 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3122 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3123 # Solaris 8's {/usr,}/bin/sh.
3124 touch sub/conftst$i.h
3125 done
3126 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3128 case $depmode in
3129 nosideeffect)
3130 # after this tag, mechanisms are not by side-effect, so they'll
3131 # only be used when explicitly requested
3132 if test "x$enable_dependency_tracking" = xyes; then
3133 continue
3134 else
3135 break
3138 none) break ;;
3139 esac
3140 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3141 # mode. It turns out that the SunPro C++ compiler does not properly
3142 # handle `-M -o', and we need to detect this.
3143 if depmode=$depmode \
3144 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3145 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3146 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3147 >/dev/null 2>conftest.err &&
3148 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3149 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3150 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3151 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3152 # icc doesn't choke on unknown options, it will just issue warnings
3153 # or remarks (even with -Werror). So we grep stderr for any message
3154 # that says an option was ignored or not supported.
3155 # When given -MP, icc 7.0 and 7.1 complain thusly:
3156 # icc: Command line warning: ignoring option '-M'; no argument required
3157 # The diagnosis changed in icc 8.0:
3158 # icc: Command line remark: option '-MP' not supported
3159 if (grep 'ignoring option' conftest.err ||
3160 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3161 am_cv_CXX_dependencies_compiler_type=$depmode
3162 break
3165 done
3167 cd ..
3168 rm -rf conftest.dir
3169 else
3170 am_cv_CXX_dependencies_compiler_type=none
3174 { echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
3175 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
3176 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
3179 test "x$enable_dependency_tracking" != xno \
3180 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
3181 am__fastdepCXX_TRUE=
3182 am__fastdepCXX_FALSE='#'
3183 else
3184 am__fastdepCXX_TRUE='#'
3185 am__fastdepCXX_FALSE=
3189 ac_ext=c
3190 ac_cpp='$CPP $CPPFLAGS'
3191 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3192 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3193 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3194 if test -n "$ac_tool_prefix"; then
3195 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3196 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3197 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3198 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3199 if test "${ac_cv_prog_CC+set}" = set; then
3200 echo $ECHO_N "(cached) $ECHO_C" >&6
3201 else
3202 if test -n "$CC"; then
3203 ac_cv_prog_CC="$CC" # Let the user override the test.
3204 else
3205 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3206 for as_dir in $PATH
3208 IFS=$as_save_IFS
3209 test -z "$as_dir" && as_dir=.
3210 for ac_exec_ext in '' $ac_executable_extensions; do
3211 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3212 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3213 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3214 break 2
3216 done
3217 done
3218 IFS=$as_save_IFS
3222 CC=$ac_cv_prog_CC
3223 if test -n "$CC"; then
3224 { echo "$as_me:$LINENO: result: $CC" >&5
3225 echo "${ECHO_T}$CC" >&6; }
3226 else
3227 { echo "$as_me:$LINENO: result: no" >&5
3228 echo "${ECHO_T}no" >&6; }
3233 if test -z "$ac_cv_prog_CC"; then
3234 ac_ct_CC=$CC
3235 # Extract the first word of "gcc", so it can be a program name with args.
3236 set dummy gcc; ac_word=$2
3237 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3238 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3239 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3240 echo $ECHO_N "(cached) $ECHO_C" >&6
3241 else
3242 if test -n "$ac_ct_CC"; then
3243 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3244 else
3245 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3246 for as_dir in $PATH
3248 IFS=$as_save_IFS
3249 test -z "$as_dir" && as_dir=.
3250 for ac_exec_ext in '' $ac_executable_extensions; do
3251 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3252 ac_cv_prog_ac_ct_CC="gcc"
3253 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3254 break 2
3256 done
3257 done
3258 IFS=$as_save_IFS
3262 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3263 if test -n "$ac_ct_CC"; then
3264 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3265 echo "${ECHO_T}$ac_ct_CC" >&6; }
3266 else
3267 { echo "$as_me:$LINENO: result: no" >&5
3268 echo "${ECHO_T}no" >&6; }
3271 if test "x$ac_ct_CC" = x; then
3272 CC=""
3273 else
3274 case $cross_compiling:$ac_tool_warned in
3275 yes:)
3276 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3277 whose name does not start with the host triplet. If you think this
3278 configuration is useful to you, please write to autoconf@gnu.org." >&5
3279 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3280 whose name does not start with the host triplet. If you think this
3281 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3282 ac_tool_warned=yes ;;
3283 esac
3284 CC=$ac_ct_CC
3286 else
3287 CC="$ac_cv_prog_CC"
3290 if test -z "$CC"; then
3291 if test -n "$ac_tool_prefix"; then
3292 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3293 set dummy ${ac_tool_prefix}cc; ac_word=$2
3294 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3295 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3296 if test "${ac_cv_prog_CC+set}" = set; then
3297 echo $ECHO_N "(cached) $ECHO_C" >&6
3298 else
3299 if test -n "$CC"; then
3300 ac_cv_prog_CC="$CC" # Let the user override the test.
3301 else
3302 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3303 for as_dir in $PATH
3305 IFS=$as_save_IFS
3306 test -z "$as_dir" && as_dir=.
3307 for ac_exec_ext in '' $ac_executable_extensions; do
3308 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3309 ac_cv_prog_CC="${ac_tool_prefix}cc"
3310 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3311 break 2
3313 done
3314 done
3315 IFS=$as_save_IFS
3319 CC=$ac_cv_prog_CC
3320 if test -n "$CC"; then
3321 { echo "$as_me:$LINENO: result: $CC" >&5
3322 echo "${ECHO_T}$CC" >&6; }
3323 else
3324 { echo "$as_me:$LINENO: result: no" >&5
3325 echo "${ECHO_T}no" >&6; }
3331 if test -z "$CC"; then
3332 # Extract the first word of "cc", so it can be a program name with args.
3333 set dummy cc; ac_word=$2
3334 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3335 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3336 if test "${ac_cv_prog_CC+set}" = set; then
3337 echo $ECHO_N "(cached) $ECHO_C" >&6
3338 else
3339 if test -n "$CC"; then
3340 ac_cv_prog_CC="$CC" # Let the user override the test.
3341 else
3342 ac_prog_rejected=no
3343 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3344 for as_dir in $PATH
3346 IFS=$as_save_IFS
3347 test -z "$as_dir" && as_dir=.
3348 for ac_exec_ext in '' $ac_executable_extensions; do
3349 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3350 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3351 ac_prog_rejected=yes
3352 continue
3354 ac_cv_prog_CC="cc"
3355 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3356 break 2
3358 done
3359 done
3360 IFS=$as_save_IFS
3362 if test $ac_prog_rejected = yes; then
3363 # We found a bogon in the path, so make sure we never use it.
3364 set dummy $ac_cv_prog_CC
3365 shift
3366 if test $# != 0; then
3367 # We chose a different compiler from the bogus one.
3368 # However, it has the same basename, so the bogon will be chosen
3369 # first if we set CC to just the basename; use the full file name.
3370 shift
3371 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3376 CC=$ac_cv_prog_CC
3377 if test -n "$CC"; then
3378 { echo "$as_me:$LINENO: result: $CC" >&5
3379 echo "${ECHO_T}$CC" >&6; }
3380 else
3381 { echo "$as_me:$LINENO: result: no" >&5
3382 echo "${ECHO_T}no" >&6; }
3387 if test -z "$CC"; then
3388 if test -n "$ac_tool_prefix"; then
3389 for ac_prog in cl.exe
3391 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3392 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3393 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3394 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3395 if test "${ac_cv_prog_CC+set}" = set; then
3396 echo $ECHO_N "(cached) $ECHO_C" >&6
3397 else
3398 if test -n "$CC"; then
3399 ac_cv_prog_CC="$CC" # Let the user override the test.
3400 else
3401 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3402 for as_dir in $PATH
3404 IFS=$as_save_IFS
3405 test -z "$as_dir" && as_dir=.
3406 for ac_exec_ext in '' $ac_executable_extensions; do
3407 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3408 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3409 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3410 break 2
3412 done
3413 done
3414 IFS=$as_save_IFS
3418 CC=$ac_cv_prog_CC
3419 if test -n "$CC"; then
3420 { echo "$as_me:$LINENO: result: $CC" >&5
3421 echo "${ECHO_T}$CC" >&6; }
3422 else
3423 { echo "$as_me:$LINENO: result: no" >&5
3424 echo "${ECHO_T}no" >&6; }
3428 test -n "$CC" && break
3429 done
3431 if test -z "$CC"; then
3432 ac_ct_CC=$CC
3433 for ac_prog in cl.exe
3435 # Extract the first word of "$ac_prog", so it can be a program name with args.
3436 set dummy $ac_prog; ac_word=$2
3437 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3438 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3439 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3440 echo $ECHO_N "(cached) $ECHO_C" >&6
3441 else
3442 if test -n "$ac_ct_CC"; then
3443 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3444 else
3445 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3446 for as_dir in $PATH
3448 IFS=$as_save_IFS
3449 test -z "$as_dir" && as_dir=.
3450 for ac_exec_ext in '' $ac_executable_extensions; do
3451 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3452 ac_cv_prog_ac_ct_CC="$ac_prog"
3453 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3454 break 2
3456 done
3457 done
3458 IFS=$as_save_IFS
3462 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3463 if test -n "$ac_ct_CC"; then
3464 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3465 echo "${ECHO_T}$ac_ct_CC" >&6; }
3466 else
3467 { echo "$as_me:$LINENO: result: no" >&5
3468 echo "${ECHO_T}no" >&6; }
3472 test -n "$ac_ct_CC" && break
3473 done
3475 if test "x$ac_ct_CC" = x; then
3476 CC=""
3477 else
3478 case $cross_compiling:$ac_tool_warned in
3479 yes:)
3480 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3481 whose name does not start with the host triplet. If you think this
3482 configuration is useful to you, please write to autoconf@gnu.org." >&5
3483 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3484 whose name does not start with the host triplet. If you think this
3485 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3486 ac_tool_warned=yes ;;
3487 esac
3488 CC=$ac_ct_CC
3495 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3496 See \`config.log' for more details." >&5
3497 echo "$as_me: error: no acceptable C compiler found in \$PATH
3498 See \`config.log' for more details." >&2;}
3499 { (exit 1); exit 1; }; }
3501 # Provide some information about the compiler.
3502 echo "$as_me:$LINENO: checking for C compiler version" >&5
3503 ac_compiler=`set X $ac_compile; echo $2`
3504 { (ac_try="$ac_compiler --version >&5"
3505 case "(($ac_try" in
3506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3507 *) ac_try_echo=$ac_try;;
3508 esac
3509 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3510 (eval "$ac_compiler --version >&5") 2>&5
3511 ac_status=$?
3512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3513 (exit $ac_status); }
3514 { (ac_try="$ac_compiler -v >&5"
3515 case "(($ac_try" in
3516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3517 *) ac_try_echo=$ac_try;;
3518 esac
3519 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3520 (eval "$ac_compiler -v >&5") 2>&5
3521 ac_status=$?
3522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3523 (exit $ac_status); }
3524 { (ac_try="$ac_compiler -V >&5"
3525 case "(($ac_try" in
3526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3527 *) ac_try_echo=$ac_try;;
3528 esac
3529 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3530 (eval "$ac_compiler -V >&5") 2>&5
3531 ac_status=$?
3532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3533 (exit $ac_status); }
3535 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3536 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3537 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3538 echo $ECHO_N "(cached) $ECHO_C" >&6
3539 else
3540 cat >conftest.$ac_ext <<_ACEOF
3541 /* confdefs.h. */
3542 _ACEOF
3543 cat confdefs.h >>conftest.$ac_ext
3544 cat >>conftest.$ac_ext <<_ACEOF
3545 /* end confdefs.h. */
3548 main ()
3550 #ifndef __GNUC__
3551 choke me
3552 #endif
3555 return 0;
3557 _ACEOF
3558 rm -f conftest.$ac_objext
3559 if { (ac_try="$ac_compile"
3560 case "(($ac_try" in
3561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3562 *) ac_try_echo=$ac_try;;
3563 esac
3564 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3565 (eval "$ac_compile") 2>conftest.er1
3566 ac_status=$?
3567 grep -v '^ *+' conftest.er1 >conftest.err
3568 rm -f conftest.er1
3569 cat conftest.err >&5
3570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3571 (exit $ac_status); } && {
3572 test -z "$ac_c_werror_flag" ||
3573 test ! -s conftest.err
3574 } && test -s conftest.$ac_objext; then
3575 ac_compiler_gnu=yes
3576 else
3577 echo "$as_me: failed program was:" >&5
3578 sed 's/^/| /' conftest.$ac_ext >&5
3580 ac_compiler_gnu=no
3583 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3584 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3587 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3588 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3589 GCC=`test $ac_compiler_gnu = yes && echo yes`
3590 ac_test_CFLAGS=${CFLAGS+set}
3591 ac_save_CFLAGS=$CFLAGS
3592 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3593 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3594 if test "${ac_cv_prog_cc_g+set}" = set; then
3595 echo $ECHO_N "(cached) $ECHO_C" >&6
3596 else
3597 ac_save_c_werror_flag=$ac_c_werror_flag
3598 ac_c_werror_flag=yes
3599 ac_cv_prog_cc_g=no
3600 CFLAGS="-g"
3601 cat >conftest.$ac_ext <<_ACEOF
3602 /* confdefs.h. */
3603 _ACEOF
3604 cat confdefs.h >>conftest.$ac_ext
3605 cat >>conftest.$ac_ext <<_ACEOF
3606 /* end confdefs.h. */
3609 main ()
3613 return 0;
3615 _ACEOF
3616 rm -f conftest.$ac_objext
3617 if { (ac_try="$ac_compile"
3618 case "(($ac_try" in
3619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3620 *) ac_try_echo=$ac_try;;
3621 esac
3622 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3623 (eval "$ac_compile") 2>conftest.er1
3624 ac_status=$?
3625 grep -v '^ *+' conftest.er1 >conftest.err
3626 rm -f conftest.er1
3627 cat conftest.err >&5
3628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3629 (exit $ac_status); } && {
3630 test -z "$ac_c_werror_flag" ||
3631 test ! -s conftest.err
3632 } && test -s conftest.$ac_objext; then
3633 ac_cv_prog_cc_g=yes
3634 else
3635 echo "$as_me: failed program was:" >&5
3636 sed 's/^/| /' conftest.$ac_ext >&5
3638 CFLAGS=""
3639 cat >conftest.$ac_ext <<_ACEOF
3640 /* confdefs.h. */
3641 _ACEOF
3642 cat confdefs.h >>conftest.$ac_ext
3643 cat >>conftest.$ac_ext <<_ACEOF
3644 /* end confdefs.h. */
3647 main ()
3651 return 0;
3653 _ACEOF
3654 rm -f conftest.$ac_objext
3655 if { (ac_try="$ac_compile"
3656 case "(($ac_try" in
3657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3658 *) ac_try_echo=$ac_try;;
3659 esac
3660 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3661 (eval "$ac_compile") 2>conftest.er1
3662 ac_status=$?
3663 grep -v '^ *+' conftest.er1 >conftest.err
3664 rm -f conftest.er1
3665 cat conftest.err >&5
3666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3667 (exit $ac_status); } && {
3668 test -z "$ac_c_werror_flag" ||
3669 test ! -s conftest.err
3670 } && test -s conftest.$ac_objext; then
3672 else
3673 echo "$as_me: failed program was:" >&5
3674 sed 's/^/| /' conftest.$ac_ext >&5
3676 ac_c_werror_flag=$ac_save_c_werror_flag
3677 CFLAGS="-g"
3678 cat >conftest.$ac_ext <<_ACEOF
3679 /* confdefs.h. */
3680 _ACEOF
3681 cat confdefs.h >>conftest.$ac_ext
3682 cat >>conftest.$ac_ext <<_ACEOF
3683 /* end confdefs.h. */
3686 main ()
3690 return 0;
3692 _ACEOF
3693 rm -f conftest.$ac_objext
3694 if { (ac_try="$ac_compile"
3695 case "(($ac_try" in
3696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3697 *) ac_try_echo=$ac_try;;
3698 esac
3699 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3700 (eval "$ac_compile") 2>conftest.er1
3701 ac_status=$?
3702 grep -v '^ *+' conftest.er1 >conftest.err
3703 rm -f conftest.er1
3704 cat conftest.err >&5
3705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3706 (exit $ac_status); } && {
3707 test -z "$ac_c_werror_flag" ||
3708 test ! -s conftest.err
3709 } && test -s conftest.$ac_objext; then
3710 ac_cv_prog_cc_g=yes
3711 else
3712 echo "$as_me: failed program was:" >&5
3713 sed 's/^/| /' conftest.$ac_ext >&5
3718 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3721 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3724 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3725 ac_c_werror_flag=$ac_save_c_werror_flag
3727 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3728 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3729 if test "$ac_test_CFLAGS" = set; then
3730 CFLAGS=$ac_save_CFLAGS
3731 elif test $ac_cv_prog_cc_g = yes; then
3732 if test "$GCC" = yes; then
3733 CFLAGS="-g -O2"
3734 else
3735 CFLAGS="-g"
3737 else
3738 if test "$GCC" = yes; then
3739 CFLAGS="-O2"
3740 else
3741 CFLAGS=
3744 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3745 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3746 if test "${ac_cv_prog_cc_c89+set}" = set; then
3747 echo $ECHO_N "(cached) $ECHO_C" >&6
3748 else
3749 ac_cv_prog_cc_c89=no
3750 ac_save_CC=$CC
3751 cat >conftest.$ac_ext <<_ACEOF
3752 /* confdefs.h. */
3753 _ACEOF
3754 cat confdefs.h >>conftest.$ac_ext
3755 cat >>conftest.$ac_ext <<_ACEOF
3756 /* end confdefs.h. */
3757 #include <stdarg.h>
3758 #include <stdio.h>
3759 #include <sys/types.h>
3760 #include <sys/stat.h>
3761 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3762 struct buf { int x; };
3763 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3764 static char *e (p, i)
3765 char **p;
3766 int i;
3768 return p[i];
3770 static char *f (char * (*g) (char **, int), char **p, ...)
3772 char *s;
3773 va_list v;
3774 va_start (v,p);
3775 s = g (p, va_arg (v,int));
3776 va_end (v);
3777 return s;
3780 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3781 function prototypes and stuff, but not '\xHH' hex character constants.
3782 These don't provoke an error unfortunately, instead are silently treated
3783 as 'x'. The following induces an error, until -std is added to get
3784 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3785 array size at least. It's necessary to write '\x00'==0 to get something
3786 that's true only with -std. */
3787 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3789 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3790 inside strings and character constants. */
3791 #define FOO(x) 'x'
3792 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3794 int test (int i, double x);
3795 struct s1 {int (*f) (int a);};
3796 struct s2 {int (*f) (double a);};
3797 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3798 int argc;
3799 char **argv;
3801 main ()
3803 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3805 return 0;
3807 _ACEOF
3808 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3809 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3811 CC="$ac_save_CC $ac_arg"
3812 rm -f conftest.$ac_objext
3813 if { (ac_try="$ac_compile"
3814 case "(($ac_try" in
3815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3816 *) ac_try_echo=$ac_try;;
3817 esac
3818 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3819 (eval "$ac_compile") 2>conftest.er1
3820 ac_status=$?
3821 grep -v '^ *+' conftest.er1 >conftest.err
3822 rm -f conftest.er1
3823 cat conftest.err >&5
3824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3825 (exit $ac_status); } && {
3826 test -z "$ac_c_werror_flag" ||
3827 test ! -s conftest.err
3828 } && test -s conftest.$ac_objext; then
3829 ac_cv_prog_cc_c89=$ac_arg
3830 else
3831 echo "$as_me: failed program was:" >&5
3832 sed 's/^/| /' conftest.$ac_ext >&5
3837 rm -f core conftest.err conftest.$ac_objext
3838 test "x$ac_cv_prog_cc_c89" != "xno" && break
3839 done
3840 rm -f conftest.$ac_ext
3841 CC=$ac_save_CC
3844 # AC_CACHE_VAL
3845 case "x$ac_cv_prog_cc_c89" in
3847 { echo "$as_me:$LINENO: result: none needed" >&5
3848 echo "${ECHO_T}none needed" >&6; } ;;
3849 xno)
3850 { echo "$as_me:$LINENO: result: unsupported" >&5
3851 echo "${ECHO_T}unsupported" >&6; } ;;
3853 CC="$CC $ac_cv_prog_cc_c89"
3854 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3855 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3856 esac
3859 ac_ext=c
3860 ac_cpp='$CPP $CPPFLAGS'
3861 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3862 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3863 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3865 depcc="$CC" am_compiler_list=
3867 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3868 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3869 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3870 echo $ECHO_N "(cached) $ECHO_C" >&6
3871 else
3872 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3873 # We make a subdir and do the tests there. Otherwise we can end up
3874 # making bogus files that we don't know about and never remove. For
3875 # instance it was reported that on HP-UX the gcc test will end up
3876 # making a dummy file named `D' -- because `-MD' means `put the output
3877 # in D'.
3878 mkdir conftest.dir
3879 # Copy depcomp to subdir because otherwise we won't find it if we're
3880 # using a relative directory.
3881 cp "$am_depcomp" conftest.dir
3882 cd conftest.dir
3883 # We will build objects and dependencies in a subdirectory because
3884 # it helps to detect inapplicable dependency modes. For instance
3885 # both Tru64's cc and ICC support -MD to output dependencies as a
3886 # side effect of compilation, but ICC will put the dependencies in
3887 # the current directory while Tru64 will put them in the object
3888 # directory.
3889 mkdir sub
3891 am_cv_CC_dependencies_compiler_type=none
3892 if test "$am_compiler_list" = ""; then
3893 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3895 for depmode in $am_compiler_list; do
3896 # Setup a source with many dependencies, because some compilers
3897 # like to wrap large dependency lists on column 80 (with \), and
3898 # we should not choose a depcomp mode which is confused by this.
3900 # We need to recreate these files for each test, as the compiler may
3901 # overwrite some of them when testing with obscure command lines.
3902 # This happens at least with the AIX C compiler.
3903 : > sub/conftest.c
3904 for i in 1 2 3 4 5 6; do
3905 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3906 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3907 # Solaris 8's {/usr,}/bin/sh.
3908 touch sub/conftst$i.h
3909 done
3910 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3912 case $depmode in
3913 nosideeffect)
3914 # after this tag, mechanisms are not by side-effect, so they'll
3915 # only be used when explicitly requested
3916 if test "x$enable_dependency_tracking" = xyes; then
3917 continue
3918 else
3919 break
3922 none) break ;;
3923 esac
3924 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3925 # mode. It turns out that the SunPro C++ compiler does not properly
3926 # handle `-M -o', and we need to detect this.
3927 if depmode=$depmode \
3928 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3929 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3930 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3931 >/dev/null 2>conftest.err &&
3932 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3933 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3934 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3935 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3936 # icc doesn't choke on unknown options, it will just issue warnings
3937 # or remarks (even with -Werror). So we grep stderr for any message
3938 # that says an option was ignored or not supported.
3939 # When given -MP, icc 7.0 and 7.1 complain thusly:
3940 # icc: Command line warning: ignoring option '-M'; no argument required
3941 # The diagnosis changed in icc 8.0:
3942 # icc: Command line remark: option '-MP' not supported
3943 if (grep 'ignoring option' conftest.err ||
3944 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3945 am_cv_CC_dependencies_compiler_type=$depmode
3946 break
3949 done
3951 cd ..
3952 rm -rf conftest.dir
3953 else
3954 am_cv_CC_dependencies_compiler_type=none
3958 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3959 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3960 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3963 test "x$enable_dependency_tracking" != xno \
3964 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3965 am__fastdepCC_TRUE=
3966 am__fastdepCC_FALSE='#'
3967 else
3968 am__fastdepCC_TRUE='#'
3969 am__fastdepCC_FALSE=
3973 # Check whether --enable-shared was given.
3974 if test "${enable_shared+set}" = set; then
3975 enableval=$enable_shared; p=${PACKAGE-default}
3976 case $enableval in
3977 yes) enable_shared=yes ;;
3978 no) enable_shared=no ;;
3980 enable_shared=no
3981 # Look at the argument we got. We use all the common list separators.
3982 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3983 for pkg in $enableval; do
3984 IFS="$lt_save_ifs"
3985 if test "X$pkg" = "X$p"; then
3986 enable_shared=yes
3988 done
3989 IFS="$lt_save_ifs"
3991 esac
3992 else
3993 enable_shared=yes
3997 # Check whether --enable-static was given.
3998 if test "${enable_static+set}" = set; then
3999 enableval=$enable_static; p=${PACKAGE-default}
4000 case $enableval in
4001 yes) enable_static=yes ;;
4002 no) enable_static=no ;;
4004 enable_static=no
4005 # Look at the argument we got. We use all the common list separators.
4006 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4007 for pkg in $enableval; do
4008 IFS="$lt_save_ifs"
4009 if test "X$pkg" = "X$p"; then
4010 enable_static=yes
4012 done
4013 IFS="$lt_save_ifs"
4015 esac
4016 else
4017 enable_static=yes
4021 # Check whether --enable-fast-install was given.
4022 if test "${enable_fast_install+set}" = set; then
4023 enableval=$enable_fast_install; p=${PACKAGE-default}
4024 case $enableval in
4025 yes) enable_fast_install=yes ;;
4026 no) enable_fast_install=no ;;
4028 enable_fast_install=no
4029 # Look at the argument we got. We use all the common list separators.
4030 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4031 for pkg in $enableval; do
4032 IFS="$lt_save_ifs"
4033 if test "X$pkg" = "X$p"; then
4034 enable_fast_install=yes
4036 done
4037 IFS="$lt_save_ifs"
4039 esac
4040 else
4041 enable_fast_install=yes
4045 # Make sure we can run config.sub.
4046 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4047 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
4048 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
4049 { (exit 1); exit 1; }; }
4051 { echo "$as_me:$LINENO: checking build system type" >&5
4052 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
4053 if test "${ac_cv_build+set}" = set; then
4054 echo $ECHO_N "(cached) $ECHO_C" >&6
4055 else
4056 ac_build_alias=$build_alias
4057 test "x$ac_build_alias" = x &&
4058 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4059 test "x$ac_build_alias" = x &&
4060 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
4061 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
4062 { (exit 1); exit 1; }; }
4063 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4064 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
4065 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
4066 { (exit 1); exit 1; }; }
4069 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
4070 echo "${ECHO_T}$ac_cv_build" >&6; }
4071 case $ac_cv_build in
4072 *-*-*) ;;
4073 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
4074 echo "$as_me: error: invalid value of canonical build" >&2;}
4075 { (exit 1); exit 1; }; };;
4076 esac
4077 build=$ac_cv_build
4078 ac_save_IFS=$IFS; IFS='-'
4079 set x $ac_cv_build
4080 shift
4081 build_cpu=$1
4082 build_vendor=$2
4083 shift; shift
4084 # Remember, the first character of IFS is used to create $*,
4085 # except with old shells:
4086 build_os=$*
4087 IFS=$ac_save_IFS
4088 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4091 { echo "$as_me:$LINENO: checking host system type" >&5
4092 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
4093 if test "${ac_cv_host+set}" = set; then
4094 echo $ECHO_N "(cached) $ECHO_C" >&6
4095 else
4096 if test "x$host_alias" = x; then
4097 ac_cv_host=$ac_cv_build
4098 else
4099 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4100 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
4101 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
4102 { (exit 1); exit 1; }; }
4106 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
4107 echo "${ECHO_T}$ac_cv_host" >&6; }
4108 case $ac_cv_host in
4109 *-*-*) ;;
4110 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
4111 echo "$as_me: error: invalid value of canonical host" >&2;}
4112 { (exit 1); exit 1; }; };;
4113 esac
4114 host=$ac_cv_host
4115 ac_save_IFS=$IFS; IFS='-'
4116 set x $ac_cv_host
4117 shift
4118 host_cpu=$1
4119 host_vendor=$2
4120 shift; shift
4121 # Remember, the first character of IFS is used to create $*,
4122 # except with old shells:
4123 host_os=$*
4124 IFS=$ac_save_IFS
4125 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4128 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4129 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
4130 if test "${lt_cv_path_SED+set}" = set; then
4131 echo $ECHO_N "(cached) $ECHO_C" >&6
4132 else
4133 # Loop through the user's path and test for sed and gsed.
4134 # Then use that list of sed's as ones to test for truncation.
4135 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4136 for as_dir in $PATH
4138 IFS=$as_save_IFS
4139 test -z "$as_dir" && as_dir=.
4140 for lt_ac_prog in sed gsed; do
4141 for ac_exec_ext in '' $ac_executable_extensions; do
4142 if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then
4143 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
4145 done
4146 done
4147 done
4148 IFS=$as_save_IFS
4149 lt_ac_max=0
4150 lt_ac_count=0
4151 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
4152 # along with /bin/sed that truncates output.
4153 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
4154 test ! -f $lt_ac_sed && continue
4155 cat /dev/null > conftest.in
4156 lt_ac_count=0
4157 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
4158 # Check for GNU sed and select it if it is found.
4159 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
4160 lt_cv_path_SED=$lt_ac_sed
4161 break
4163 while true; do
4164 cat conftest.in conftest.in >conftest.tmp
4165 mv conftest.tmp conftest.in
4166 cp conftest.in conftest.nl
4167 echo >>conftest.nl
4168 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
4169 cmp -s conftest.out conftest.nl || break
4170 # 10000 chars as input seems more than enough
4171 test $lt_ac_count -gt 10 && break
4172 lt_ac_count=`expr $lt_ac_count + 1`
4173 if test $lt_ac_count -gt $lt_ac_max; then
4174 lt_ac_max=$lt_ac_count
4175 lt_cv_path_SED=$lt_ac_sed
4177 done
4178 done
4182 SED=$lt_cv_path_SED
4184 { echo "$as_me:$LINENO: result: $SED" >&5
4185 echo "${ECHO_T}$SED" >&6; }
4187 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4188 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4189 if test "${ac_cv_path_GREP+set}" = set; then
4190 echo $ECHO_N "(cached) $ECHO_C" >&6
4191 else
4192 # Extract the first word of "grep ggrep" to use in msg output
4193 if test -z "$GREP"; then
4194 set dummy grep ggrep; ac_prog_name=$2
4195 if test "${ac_cv_path_GREP+set}" = set; then
4196 echo $ECHO_N "(cached) $ECHO_C" >&6
4197 else
4198 ac_path_GREP_found=false
4199 # Loop through the user's path and test for each of PROGNAME-LIST
4200 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4201 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4203 IFS=$as_save_IFS
4204 test -z "$as_dir" && as_dir=.
4205 for ac_prog in grep ggrep; do
4206 for ac_exec_ext in '' $ac_executable_extensions; do
4207 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4208 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4209 # Check for GNU ac_path_GREP and select it if it is found.
4210 # Check for GNU $ac_path_GREP
4211 case `"$ac_path_GREP" --version 2>&1` in
4212 *GNU*)
4213 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4215 ac_count=0
4216 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4217 while :
4219 cat "conftest.in" "conftest.in" >"conftest.tmp"
4220 mv "conftest.tmp" "conftest.in"
4221 cp "conftest.in" "conftest.nl"
4222 echo 'GREP' >> "conftest.nl"
4223 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4224 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4225 ac_count=`expr $ac_count + 1`
4226 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4227 # Best one so far, save it but keep looking for a better one
4228 ac_cv_path_GREP="$ac_path_GREP"
4229 ac_path_GREP_max=$ac_count
4231 # 10*(2^10) chars as input seems more than enough
4232 test $ac_count -gt 10 && break
4233 done
4234 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4235 esac
4238 $ac_path_GREP_found && break 3
4239 done
4240 done
4242 done
4243 IFS=$as_save_IFS
4248 GREP="$ac_cv_path_GREP"
4249 if test -z "$GREP"; then
4250 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4251 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4252 { (exit 1); exit 1; }; }
4255 else
4256 ac_cv_path_GREP=$GREP
4261 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4262 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4263 GREP="$ac_cv_path_GREP"
4266 { echo "$as_me:$LINENO: checking for egrep" >&5
4267 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4268 if test "${ac_cv_path_EGREP+set}" = set; then
4269 echo $ECHO_N "(cached) $ECHO_C" >&6
4270 else
4271 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4272 then ac_cv_path_EGREP="$GREP -E"
4273 else
4274 # Extract the first word of "egrep" to use in msg output
4275 if test -z "$EGREP"; then
4276 set dummy egrep; ac_prog_name=$2
4277 if test "${ac_cv_path_EGREP+set}" = set; then
4278 echo $ECHO_N "(cached) $ECHO_C" >&6
4279 else
4280 ac_path_EGREP_found=false
4281 # Loop through the user's path and test for each of PROGNAME-LIST
4282 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4283 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4285 IFS=$as_save_IFS
4286 test -z "$as_dir" && as_dir=.
4287 for ac_prog in egrep; do
4288 for ac_exec_ext in '' $ac_executable_extensions; do
4289 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4290 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4291 # Check for GNU ac_path_EGREP and select it if it is found.
4292 # Check for GNU $ac_path_EGREP
4293 case `"$ac_path_EGREP" --version 2>&1` in
4294 *GNU*)
4295 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4297 ac_count=0
4298 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4299 while :
4301 cat "conftest.in" "conftest.in" >"conftest.tmp"
4302 mv "conftest.tmp" "conftest.in"
4303 cp "conftest.in" "conftest.nl"
4304 echo 'EGREP' >> "conftest.nl"
4305 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4306 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4307 ac_count=`expr $ac_count + 1`
4308 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4309 # Best one so far, save it but keep looking for a better one
4310 ac_cv_path_EGREP="$ac_path_EGREP"
4311 ac_path_EGREP_max=$ac_count
4313 # 10*(2^10) chars as input seems more than enough
4314 test $ac_count -gt 10 && break
4315 done
4316 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4317 esac
4320 $ac_path_EGREP_found && break 3
4321 done
4322 done
4324 done
4325 IFS=$as_save_IFS
4330 EGREP="$ac_cv_path_EGREP"
4331 if test -z "$EGREP"; then
4332 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4333 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4334 { (exit 1); exit 1; }; }
4337 else
4338 ac_cv_path_EGREP=$EGREP
4344 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4345 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4346 EGREP="$ac_cv_path_EGREP"
4350 # Check whether --with-gnu-ld was given.
4351 if test "${with_gnu_ld+set}" = set; then
4352 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4353 else
4354 with_gnu_ld=no
4357 ac_prog=ld
4358 if test "$GCC" = yes; then
4359 # Check if gcc -print-prog-name=ld gives a path.
4360 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4361 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
4362 case $host in
4363 *-*-mingw*)
4364 # gcc leaves a trailing carriage return which upsets mingw
4365 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4367 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4368 esac
4369 case $ac_prog in
4370 # Accept absolute paths.
4371 [\\/]* | ?:[\\/]*)
4372 re_direlt='/[^/][^/]*/\.\./'
4373 # Canonicalize the pathname of ld
4374 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
4375 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4376 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4377 done
4378 test -z "$LD" && LD="$ac_prog"
4381 # If it fails, then pretend we aren't using GCC.
4382 ac_prog=ld
4385 # If it is relative, then search for the first ld in PATH.
4386 with_gnu_ld=unknown
4388 esac
4389 elif test "$with_gnu_ld" = yes; then
4390 { echo "$as_me:$LINENO: checking for GNU ld" >&5
4391 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
4392 else
4393 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4394 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
4396 if test "${lt_cv_path_LD+set}" = set; then
4397 echo $ECHO_N "(cached) $ECHO_C" >&6
4398 else
4399 if test -z "$LD"; then
4400 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4401 for ac_dir in $PATH; do
4402 IFS="$lt_save_ifs"
4403 test -z "$ac_dir" && ac_dir=.
4404 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4405 lt_cv_path_LD="$ac_dir/$ac_prog"
4406 # Check to see if the program is GNU ld. I'd rather use --version,
4407 # but apparently some variants of GNU ld only accept -v.
4408 # Break only if it was the GNU/non-GNU ld that we prefer.
4409 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4410 *GNU* | *'with BFD'*)
4411 test "$with_gnu_ld" != no && break
4414 test "$with_gnu_ld" != yes && break
4416 esac
4418 done
4419 IFS="$lt_save_ifs"
4420 else
4421 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4425 LD="$lt_cv_path_LD"
4426 if test -n "$LD"; then
4427 { echo "$as_me:$LINENO: result: $LD" >&5
4428 echo "${ECHO_T}$LD" >&6; }
4429 else
4430 { echo "$as_me:$LINENO: result: no" >&5
4431 echo "${ECHO_T}no" >&6; }
4433 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4434 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4435 { (exit 1); exit 1; }; }
4436 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4437 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
4438 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4439 echo $ECHO_N "(cached) $ECHO_C" >&6
4440 else
4441 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4442 case `$LD -v 2>&1 </dev/null` in
4443 *GNU* | *'with BFD'*)
4444 lt_cv_prog_gnu_ld=yes
4447 lt_cv_prog_gnu_ld=no
4449 esac
4451 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4452 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
4453 with_gnu_ld=$lt_cv_prog_gnu_ld
4456 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4457 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
4458 if test "${lt_cv_ld_reload_flag+set}" = set; then
4459 echo $ECHO_N "(cached) $ECHO_C" >&6
4460 else
4461 lt_cv_ld_reload_flag='-r'
4463 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4464 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
4465 reload_flag=$lt_cv_ld_reload_flag
4466 case $reload_flag in
4467 "" | " "*) ;;
4468 *) reload_flag=" $reload_flag" ;;
4469 esac
4470 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4471 case $host_os in
4472 darwin*)
4473 if test "$GCC" = yes; then
4474 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4475 else
4476 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4479 esac
4481 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4482 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
4483 if test "${lt_cv_path_NM+set}" = set; then
4484 echo $ECHO_N "(cached) $ECHO_C" >&6
4485 else
4486 if test -n "$NM"; then
4487 # Let the user override the test.
4488 lt_cv_path_NM="$NM"
4489 else
4490 lt_nm_to_check="${ac_tool_prefix}nm"
4491 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4492 lt_nm_to_check="$lt_nm_to_check nm"
4494 for lt_tmp_nm in $lt_nm_to_check; do
4495 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4496 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4497 IFS="$lt_save_ifs"
4498 test -z "$ac_dir" && ac_dir=.
4499 tmp_nm="$ac_dir/$lt_tmp_nm"
4500 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4501 # Check to see if the nm accepts a BSD-compat flag.
4502 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4503 # nm: unknown option "B" ignored
4504 # Tru64's nm complains that /dev/null is an invalid object file
4505 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4506 */dev/null* | *'Invalid file or object type'*)
4507 lt_cv_path_NM="$tmp_nm -B"
4508 break
4511 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4512 */dev/null*)
4513 lt_cv_path_NM="$tmp_nm -p"
4514 break
4517 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4518 continue # so that we can try to find one that supports BSD flags
4520 esac
4522 esac
4524 done
4525 IFS="$lt_save_ifs"
4526 done
4527 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4530 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4531 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
4532 NM="$lt_cv_path_NM"
4534 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
4535 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4536 LN_S=$as_ln_s
4537 if test "$LN_S" = "ln -s"; then
4538 { echo "$as_me:$LINENO: result: yes" >&5
4539 echo "${ECHO_T}yes" >&6; }
4540 else
4541 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4542 echo "${ECHO_T}no, using $LN_S" >&6; }
4545 { echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
4546 echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6; }
4547 if test "${lt_cv_deplibs_check_method+set}" = set; then
4548 echo $ECHO_N "(cached) $ECHO_C" >&6
4549 else
4550 lt_cv_file_magic_cmd='$MAGIC_CMD'
4551 lt_cv_file_magic_test_file=
4552 lt_cv_deplibs_check_method='unknown'
4553 # Need to set the preceding variable on all platforms that support
4554 # interlibrary dependencies.
4555 # 'none' -- dependencies not supported.
4556 # `unknown' -- same as none, but documents that we really don't know.
4557 # 'pass_all' -- all dependencies passed with no checks.
4558 # 'test_compile' -- check by making test program.
4559 # 'file_magic [[regex]]' -- check by looking for files in library path
4560 # which responds to the $file_magic_cmd with a given extended regex.
4561 # If you have `file' or equivalent on your system and you're not sure
4562 # whether `pass_all' will *always* work, you probably want this one.
4564 case $host_os in
4565 aix4* | aix5*)
4566 lt_cv_deplibs_check_method=pass_all
4569 beos*)
4570 lt_cv_deplibs_check_method=pass_all
4573 bsdi[45]*)
4574 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4575 lt_cv_file_magic_cmd='/usr/bin/file -L'
4576 lt_cv_file_magic_test_file=/shlib/libc.so
4579 cygwin*)
4580 # func_win32_libid is a shell function defined in ltmain.sh
4581 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4582 lt_cv_file_magic_cmd='func_win32_libid'
4585 mingw* | pw32*)
4586 # Base MSYS/MinGW do not provide the 'file' command needed by
4587 # func_win32_libid shell function, so use a weaker test based on 'objdump',
4588 # unless we find 'file', for example because we are cross-compiling.
4589 if ( file / ) >/dev/null 2>&1; then
4590 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4591 lt_cv_file_magic_cmd='func_win32_libid'
4592 else
4593 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4594 lt_cv_file_magic_cmd='$OBJDUMP -f'
4598 darwin* | rhapsody*)
4599 lt_cv_deplibs_check_method=pass_all
4602 freebsd* | dragonfly*)
4603 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4604 case $host_cpu in
4605 i*86 )
4606 # Not sure whether the presence of OpenBSD here was a mistake.
4607 # Let's accept both of them until this is cleared up.
4608 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4609 lt_cv_file_magic_cmd=/usr/bin/file
4610 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4612 esac
4613 else
4614 lt_cv_deplibs_check_method=pass_all
4618 gnu*)
4619 lt_cv_deplibs_check_method=pass_all
4622 hpux10.20* | hpux11*)
4623 lt_cv_file_magic_cmd=/usr/bin/file
4624 case $host_cpu in
4625 ia64*)
4626 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4627 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4629 hppa*64*)
4630 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]'
4631 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4634 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4635 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4637 esac
4640 interix[3-9]*)
4641 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4642 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4645 irix5* | irix6* | nonstopux*)
4646 case $LD in
4647 *-32|*"-32 ") libmagic=32-bit;;
4648 *-n32|*"-n32 ") libmagic=N32;;
4649 *-64|*"-64 ") libmagic=64-bit;;
4650 *) libmagic=never-match;;
4651 esac
4652 lt_cv_deplibs_check_method=pass_all
4655 # This must be Linux ELF.
4656 linux* | k*bsd*-gnu)
4657 lt_cv_deplibs_check_method=pass_all
4660 netbsd*)
4661 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4662 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4663 else
4664 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4668 newos6*)
4669 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4670 lt_cv_file_magic_cmd=/usr/bin/file
4671 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4674 nto-qnx*)
4675 lt_cv_deplibs_check_method=unknown
4678 openbsd*)
4679 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4680 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4681 else
4682 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4686 osf3* | osf4* | osf5*)
4687 lt_cv_deplibs_check_method=pass_all
4690 rdos*)
4691 lt_cv_deplibs_check_method=pass_all
4694 solaris*)
4695 lt_cv_deplibs_check_method=pass_all
4698 sysv4 | sysv4.3*)
4699 case $host_vendor in
4700 motorola)
4701 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]'
4702 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4704 ncr)
4705 lt_cv_deplibs_check_method=pass_all
4707 sequent)
4708 lt_cv_file_magic_cmd='/bin/file'
4709 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4711 sni)
4712 lt_cv_file_magic_cmd='/bin/file'
4713 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4714 lt_cv_file_magic_test_file=/lib/libc.so
4716 siemens)
4717 lt_cv_deplibs_check_method=pass_all
4720 lt_cv_deplibs_check_method=pass_all
4722 esac
4725 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4726 lt_cv_deplibs_check_method=pass_all
4728 esac
4731 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4732 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
4733 file_magic_cmd=$lt_cv_file_magic_cmd
4734 deplibs_check_method=$lt_cv_deplibs_check_method
4735 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4740 # If no C compiler was specified, use CC.
4741 LTCC=${LTCC-"$CC"}
4743 # If no C compiler flags were specified, use CFLAGS.
4744 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4746 # Allow CC to be a program name with arguments.
4747 compiler=$CC
4750 # Check whether --enable-libtool-lock was given.
4751 if test "${enable_libtool_lock+set}" = set; then
4752 enableval=$enable_libtool_lock;
4755 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4757 # Some flags need to be propagated to the compiler or linker for good
4758 # libtool support.
4759 case $host in
4760 ia64-*-hpux*)
4761 # Find out which ABI we are using.
4762 echo 'int i;' > conftest.$ac_ext
4763 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4764 (eval $ac_compile) 2>&5
4765 ac_status=$?
4766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4767 (exit $ac_status); }; then
4768 case `/usr/bin/file conftest.$ac_objext` in
4769 *ELF-32*)
4770 HPUX_IA64_MODE="32"
4772 *ELF-64*)
4773 HPUX_IA64_MODE="64"
4775 esac
4777 rm -rf conftest*
4779 *-*-irix6*)
4780 # Find out which ABI we are using.
4781 echo '#line 4781 "configure"' > conftest.$ac_ext
4782 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4783 (eval $ac_compile) 2>&5
4784 ac_status=$?
4785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4786 (exit $ac_status); }; then
4787 if test "$lt_cv_prog_gnu_ld" = yes; then
4788 case `/usr/bin/file conftest.$ac_objext` in
4789 *32-bit*)
4790 LD="${LD-ld} -melf32bsmip"
4792 *N32*)
4793 LD="${LD-ld} -melf32bmipn32"
4795 *64-bit*)
4796 LD="${LD-ld} -melf64bmip"
4798 esac
4799 else
4800 case `/usr/bin/file conftest.$ac_objext` in
4801 *32-bit*)
4802 LD="${LD-ld} -32"
4804 *N32*)
4805 LD="${LD-ld} -n32"
4807 *64-bit*)
4808 LD="${LD-ld} -64"
4810 esac
4813 rm -rf conftest*
4816 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
4817 s390*-*linux*|sparc*-*linux*)
4818 # Find out which ABI we are using.
4819 echo 'int i;' > conftest.$ac_ext
4820 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4821 (eval $ac_compile) 2>&5
4822 ac_status=$?
4823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4824 (exit $ac_status); }; then
4825 case `/usr/bin/file conftest.o` in
4826 *32-bit*)
4827 case $host in
4828 x86_64-*kfreebsd*-gnu)
4829 LD="${LD-ld} -m elf_i386_fbsd"
4831 x86_64-*linux*)
4832 LD="${LD-ld} -m elf_i386"
4834 ppc64-*linux*|powerpc64-*linux*)
4835 LD="${LD-ld} -m elf32ppclinux"
4837 s390x-*linux*)
4838 LD="${LD-ld} -m elf_s390"
4840 sparc64-*linux*)
4841 LD="${LD-ld} -m elf32_sparc"
4843 esac
4845 *64-bit*)
4846 case $host in
4847 x86_64-*kfreebsd*-gnu)
4848 LD="${LD-ld} -m elf_x86_64_fbsd"
4850 x86_64-*linux*)
4851 LD="${LD-ld} -m elf_x86_64"
4853 ppc*-*linux*|powerpc*-*linux*)
4854 LD="${LD-ld} -m elf64ppc"
4856 s390*-*linux*)
4857 LD="${LD-ld} -m elf64_s390"
4859 sparc*-*linux*)
4860 LD="${LD-ld} -m elf64_sparc"
4862 esac
4864 esac
4866 rm -rf conftest*
4869 *-*-sco3.2v5*)
4870 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4871 SAVE_CFLAGS="$CFLAGS"
4872 CFLAGS="$CFLAGS -belf"
4873 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4874 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
4875 if test "${lt_cv_cc_needs_belf+set}" = set; then
4876 echo $ECHO_N "(cached) $ECHO_C" >&6
4877 else
4878 ac_ext=c
4879 ac_cpp='$CPP $CPPFLAGS'
4880 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4881 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4882 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4884 cat >conftest.$ac_ext <<_ACEOF
4885 /* confdefs.h. */
4886 _ACEOF
4887 cat confdefs.h >>conftest.$ac_ext
4888 cat >>conftest.$ac_ext <<_ACEOF
4889 /* end confdefs.h. */
4892 main ()
4896 return 0;
4898 _ACEOF
4899 rm -f conftest.$ac_objext conftest$ac_exeext
4900 if { (ac_try="$ac_link"
4901 case "(($ac_try" in
4902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4903 *) ac_try_echo=$ac_try;;
4904 esac
4905 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4906 (eval "$ac_link") 2>conftest.er1
4907 ac_status=$?
4908 grep -v '^ *+' conftest.er1 >conftest.err
4909 rm -f conftest.er1
4910 cat conftest.err >&5
4911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4912 (exit $ac_status); } && {
4913 test -z "$ac_c_werror_flag" ||
4914 test ! -s conftest.err
4915 } && test -s conftest$ac_exeext &&
4916 $as_test_x conftest$ac_exeext; then
4917 lt_cv_cc_needs_belf=yes
4918 else
4919 echo "$as_me: failed program was:" >&5
4920 sed 's/^/| /' conftest.$ac_ext >&5
4922 lt_cv_cc_needs_belf=no
4925 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4926 conftest$ac_exeext conftest.$ac_ext
4927 ac_ext=c
4928 ac_cpp='$CPP $CPPFLAGS'
4929 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4930 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4931 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4934 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4935 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
4936 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4937 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4938 CFLAGS="$SAVE_CFLAGS"
4941 sparc*-*solaris*)
4942 # Find out which ABI we are using.
4943 echo 'int i;' > conftest.$ac_ext
4944 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4945 (eval $ac_compile) 2>&5
4946 ac_status=$?
4947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4948 (exit $ac_status); }; then
4949 case `/usr/bin/file conftest.o` in
4950 *64-bit*)
4951 case $lt_cv_prog_gnu_ld in
4952 yes*) LD="${LD-ld} -m elf64_sparc" ;;
4953 *) LD="${LD-ld} -64" ;;
4954 esac
4956 esac
4958 rm -rf conftest*
4962 esac
4964 need_locks="$enable_libtool_lock"
4967 ac_ext=c
4968 ac_cpp='$CPP $CPPFLAGS'
4969 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4970 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4971 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4972 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4973 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4974 # On Suns, sometimes $CPP names a directory.
4975 if test -n "$CPP" && test -d "$CPP"; then
4976 CPP=
4978 if test -z "$CPP"; then
4979 if test "${ac_cv_prog_CPP+set}" = set; then
4980 echo $ECHO_N "(cached) $ECHO_C" >&6
4981 else
4982 # Double quotes because CPP needs to be expanded
4983 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4985 ac_preproc_ok=false
4986 for ac_c_preproc_warn_flag in '' yes
4988 # Use a header file that comes with gcc, so configuring glibc
4989 # with a fresh cross-compiler works.
4990 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4991 # <limits.h> exists even on freestanding compilers.
4992 # On the NeXT, cc -E runs the code through the compiler's parser,
4993 # not just through cpp. "Syntax error" is here to catch this case.
4994 cat >conftest.$ac_ext <<_ACEOF
4995 /* confdefs.h. */
4996 _ACEOF
4997 cat confdefs.h >>conftest.$ac_ext
4998 cat >>conftest.$ac_ext <<_ACEOF
4999 /* end confdefs.h. */
5000 #ifdef __STDC__
5001 # include <limits.h>
5002 #else
5003 # include <assert.h>
5004 #endif
5005 Syntax error
5006 _ACEOF
5007 if { (ac_try="$ac_cpp conftest.$ac_ext"
5008 case "(($ac_try" in
5009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5010 *) ac_try_echo=$ac_try;;
5011 esac
5012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5013 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5014 ac_status=$?
5015 grep -v '^ *+' conftest.er1 >conftest.err
5016 rm -f conftest.er1
5017 cat conftest.err >&5
5018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5019 (exit $ac_status); } >/dev/null && {
5020 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5021 test ! -s conftest.err
5022 }; then
5024 else
5025 echo "$as_me: failed program was:" >&5
5026 sed 's/^/| /' conftest.$ac_ext >&5
5028 # Broken: fails on valid input.
5029 continue
5032 rm -f conftest.err conftest.$ac_ext
5034 # OK, works on sane cases. Now check whether nonexistent headers
5035 # can be detected and how.
5036 cat >conftest.$ac_ext <<_ACEOF
5037 /* confdefs.h. */
5038 _ACEOF
5039 cat confdefs.h >>conftest.$ac_ext
5040 cat >>conftest.$ac_ext <<_ACEOF
5041 /* end confdefs.h. */
5042 #include <ac_nonexistent.h>
5043 _ACEOF
5044 if { (ac_try="$ac_cpp conftest.$ac_ext"
5045 case "(($ac_try" in
5046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5047 *) ac_try_echo=$ac_try;;
5048 esac
5049 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5050 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5051 ac_status=$?
5052 grep -v '^ *+' conftest.er1 >conftest.err
5053 rm -f conftest.er1
5054 cat conftest.err >&5
5055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5056 (exit $ac_status); } >/dev/null && {
5057 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5058 test ! -s conftest.err
5059 }; then
5060 # Broken: success on invalid input.
5061 continue
5062 else
5063 echo "$as_me: failed program was:" >&5
5064 sed 's/^/| /' conftest.$ac_ext >&5
5066 # Passes both tests.
5067 ac_preproc_ok=:
5068 break
5071 rm -f conftest.err conftest.$ac_ext
5073 done
5074 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5075 rm -f conftest.err conftest.$ac_ext
5076 if $ac_preproc_ok; then
5077 break
5080 done
5081 ac_cv_prog_CPP=$CPP
5084 CPP=$ac_cv_prog_CPP
5085 else
5086 ac_cv_prog_CPP=$CPP
5088 { echo "$as_me:$LINENO: result: $CPP" >&5
5089 echo "${ECHO_T}$CPP" >&6; }
5090 ac_preproc_ok=false
5091 for ac_c_preproc_warn_flag in '' yes
5093 # Use a header file that comes with gcc, so configuring glibc
5094 # with a fresh cross-compiler works.
5095 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5096 # <limits.h> exists even on freestanding compilers.
5097 # On the NeXT, cc -E runs the code through the compiler's parser,
5098 # not just through cpp. "Syntax error" is here to catch this case.
5099 cat >conftest.$ac_ext <<_ACEOF
5100 /* confdefs.h. */
5101 _ACEOF
5102 cat confdefs.h >>conftest.$ac_ext
5103 cat >>conftest.$ac_ext <<_ACEOF
5104 /* end confdefs.h. */
5105 #ifdef __STDC__
5106 # include <limits.h>
5107 #else
5108 # include <assert.h>
5109 #endif
5110 Syntax error
5111 _ACEOF
5112 if { (ac_try="$ac_cpp conftest.$ac_ext"
5113 case "(($ac_try" in
5114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5115 *) ac_try_echo=$ac_try;;
5116 esac
5117 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5118 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5119 ac_status=$?
5120 grep -v '^ *+' conftest.er1 >conftest.err
5121 rm -f conftest.er1
5122 cat conftest.err >&5
5123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5124 (exit $ac_status); } >/dev/null && {
5125 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5126 test ! -s conftest.err
5127 }; then
5129 else
5130 echo "$as_me: failed program was:" >&5
5131 sed 's/^/| /' conftest.$ac_ext >&5
5133 # Broken: fails on valid input.
5134 continue
5137 rm -f conftest.err conftest.$ac_ext
5139 # OK, works on sane cases. Now check whether nonexistent headers
5140 # can be detected and how.
5141 cat >conftest.$ac_ext <<_ACEOF
5142 /* confdefs.h. */
5143 _ACEOF
5144 cat confdefs.h >>conftest.$ac_ext
5145 cat >>conftest.$ac_ext <<_ACEOF
5146 /* end confdefs.h. */
5147 #include <ac_nonexistent.h>
5148 _ACEOF
5149 if { (ac_try="$ac_cpp conftest.$ac_ext"
5150 case "(($ac_try" in
5151 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5152 *) ac_try_echo=$ac_try;;
5153 esac
5154 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5155 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5156 ac_status=$?
5157 grep -v '^ *+' conftest.er1 >conftest.err
5158 rm -f conftest.er1
5159 cat conftest.err >&5
5160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5161 (exit $ac_status); } >/dev/null && {
5162 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5163 test ! -s conftest.err
5164 }; then
5165 # Broken: success on invalid input.
5166 continue
5167 else
5168 echo "$as_me: failed program was:" >&5
5169 sed 's/^/| /' conftest.$ac_ext >&5
5171 # Passes both tests.
5172 ac_preproc_ok=:
5173 break
5176 rm -f conftest.err conftest.$ac_ext
5178 done
5179 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5180 rm -f conftest.err conftest.$ac_ext
5181 if $ac_preproc_ok; then
5183 else
5184 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5185 See \`config.log' for more details." >&5
5186 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5187 See \`config.log' for more details." >&2;}
5188 { (exit 1); exit 1; }; }
5191 ac_ext=c
5192 ac_cpp='$CPP $CPPFLAGS'
5193 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5194 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5195 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5198 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5199 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
5200 if test "${ac_cv_header_stdc+set}" = set; then
5201 echo $ECHO_N "(cached) $ECHO_C" >&6
5202 else
5203 cat >conftest.$ac_ext <<_ACEOF
5204 /* confdefs.h. */
5205 _ACEOF
5206 cat confdefs.h >>conftest.$ac_ext
5207 cat >>conftest.$ac_ext <<_ACEOF
5208 /* end confdefs.h. */
5209 #include <stdlib.h>
5210 #include <stdarg.h>
5211 #include <string.h>
5212 #include <float.h>
5215 main ()
5219 return 0;
5221 _ACEOF
5222 rm -f conftest.$ac_objext
5223 if { (ac_try="$ac_compile"
5224 case "(($ac_try" in
5225 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5226 *) ac_try_echo=$ac_try;;
5227 esac
5228 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5229 (eval "$ac_compile") 2>conftest.er1
5230 ac_status=$?
5231 grep -v '^ *+' conftest.er1 >conftest.err
5232 rm -f conftest.er1
5233 cat conftest.err >&5
5234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5235 (exit $ac_status); } && {
5236 test -z "$ac_c_werror_flag" ||
5237 test ! -s conftest.err
5238 } && test -s conftest.$ac_objext; then
5239 ac_cv_header_stdc=yes
5240 else
5241 echo "$as_me: failed program was:" >&5
5242 sed 's/^/| /' conftest.$ac_ext >&5
5244 ac_cv_header_stdc=no
5247 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5249 if test $ac_cv_header_stdc = yes; then
5250 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5251 cat >conftest.$ac_ext <<_ACEOF
5252 /* confdefs.h. */
5253 _ACEOF
5254 cat confdefs.h >>conftest.$ac_ext
5255 cat >>conftest.$ac_ext <<_ACEOF
5256 /* end confdefs.h. */
5257 #include <string.h>
5259 _ACEOF
5260 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5261 $EGREP "memchr" >/dev/null 2>&1; then
5263 else
5264 ac_cv_header_stdc=no
5266 rm -f conftest*
5270 if test $ac_cv_header_stdc = yes; then
5271 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5272 cat >conftest.$ac_ext <<_ACEOF
5273 /* confdefs.h. */
5274 _ACEOF
5275 cat confdefs.h >>conftest.$ac_ext
5276 cat >>conftest.$ac_ext <<_ACEOF
5277 /* end confdefs.h. */
5278 #include <stdlib.h>
5280 _ACEOF
5281 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5282 $EGREP "free" >/dev/null 2>&1; then
5284 else
5285 ac_cv_header_stdc=no
5287 rm -f conftest*
5291 if test $ac_cv_header_stdc = yes; then
5292 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5293 if test "$cross_compiling" = yes; then
5295 else
5296 cat >conftest.$ac_ext <<_ACEOF
5297 /* confdefs.h. */
5298 _ACEOF
5299 cat confdefs.h >>conftest.$ac_ext
5300 cat >>conftest.$ac_ext <<_ACEOF
5301 /* end confdefs.h. */
5302 #include <ctype.h>
5303 #include <stdlib.h>
5304 #if ((' ' & 0x0FF) == 0x020)
5305 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5306 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5307 #else
5308 # define ISLOWER(c) \
5309 (('a' <= (c) && (c) <= 'i') \
5310 || ('j' <= (c) && (c) <= 'r') \
5311 || ('s' <= (c) && (c) <= 'z'))
5312 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5313 #endif
5315 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5317 main ()
5319 int i;
5320 for (i = 0; i < 256; i++)
5321 if (XOR (islower (i), ISLOWER (i))
5322 || toupper (i) != TOUPPER (i))
5323 return 2;
5324 return 0;
5326 _ACEOF
5327 rm -f conftest$ac_exeext
5328 if { (ac_try="$ac_link"
5329 case "(($ac_try" in
5330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5331 *) ac_try_echo=$ac_try;;
5332 esac
5333 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5334 (eval "$ac_link") 2>&5
5335 ac_status=$?
5336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5337 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5338 { (case "(($ac_try" in
5339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5340 *) ac_try_echo=$ac_try;;
5341 esac
5342 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5343 (eval "$ac_try") 2>&5
5344 ac_status=$?
5345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5346 (exit $ac_status); }; }; then
5348 else
5349 echo "$as_me: program exited with status $ac_status" >&5
5350 echo "$as_me: failed program was:" >&5
5351 sed 's/^/| /' conftest.$ac_ext >&5
5353 ( exit $ac_status )
5354 ac_cv_header_stdc=no
5356 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5362 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5363 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
5364 if test $ac_cv_header_stdc = yes; then
5366 cat >>confdefs.h <<\_ACEOF
5367 #define STDC_HEADERS 1
5368 _ACEOF
5372 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5382 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5383 inttypes.h stdint.h unistd.h
5385 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5386 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5387 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5388 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5389 echo $ECHO_N "(cached) $ECHO_C" >&6
5390 else
5391 cat >conftest.$ac_ext <<_ACEOF
5392 /* confdefs.h. */
5393 _ACEOF
5394 cat confdefs.h >>conftest.$ac_ext
5395 cat >>conftest.$ac_ext <<_ACEOF
5396 /* end confdefs.h. */
5397 $ac_includes_default
5399 #include <$ac_header>
5400 _ACEOF
5401 rm -f conftest.$ac_objext
5402 if { (ac_try="$ac_compile"
5403 case "(($ac_try" in
5404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5405 *) ac_try_echo=$ac_try;;
5406 esac
5407 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5408 (eval "$ac_compile") 2>conftest.er1
5409 ac_status=$?
5410 grep -v '^ *+' conftest.er1 >conftest.err
5411 rm -f conftest.er1
5412 cat conftest.err >&5
5413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5414 (exit $ac_status); } && {
5415 test -z "$ac_c_werror_flag" ||
5416 test ! -s conftest.err
5417 } && test -s conftest.$ac_objext; then
5418 eval "$as_ac_Header=yes"
5419 else
5420 echo "$as_me: failed program was:" >&5
5421 sed 's/^/| /' conftest.$ac_ext >&5
5423 eval "$as_ac_Header=no"
5426 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5428 ac_res=`eval echo '${'$as_ac_Header'}'`
5429 { echo "$as_me:$LINENO: result: $ac_res" >&5
5430 echo "${ECHO_T}$ac_res" >&6; }
5431 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5432 cat >>confdefs.h <<_ACEOF
5433 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5434 _ACEOF
5438 done
5442 for ac_header in dlfcn.h
5444 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5445 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5446 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5447 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5448 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5449 echo $ECHO_N "(cached) $ECHO_C" >&6
5451 ac_res=`eval echo '${'$as_ac_Header'}'`
5452 { echo "$as_me:$LINENO: result: $ac_res" >&5
5453 echo "${ECHO_T}$ac_res" >&6; }
5454 else
5455 # Is the header compilable?
5456 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5457 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5458 cat >conftest.$ac_ext <<_ACEOF
5459 /* confdefs.h. */
5460 _ACEOF
5461 cat confdefs.h >>conftest.$ac_ext
5462 cat >>conftest.$ac_ext <<_ACEOF
5463 /* end confdefs.h. */
5464 $ac_includes_default
5465 #include <$ac_header>
5466 _ACEOF
5467 rm -f conftest.$ac_objext
5468 if { (ac_try="$ac_compile"
5469 case "(($ac_try" in
5470 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5471 *) ac_try_echo=$ac_try;;
5472 esac
5473 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5474 (eval "$ac_compile") 2>conftest.er1
5475 ac_status=$?
5476 grep -v '^ *+' conftest.er1 >conftest.err
5477 rm -f conftest.er1
5478 cat conftest.err >&5
5479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5480 (exit $ac_status); } && {
5481 test -z "$ac_c_werror_flag" ||
5482 test ! -s conftest.err
5483 } && test -s conftest.$ac_objext; then
5484 ac_header_compiler=yes
5485 else
5486 echo "$as_me: failed program was:" >&5
5487 sed 's/^/| /' conftest.$ac_ext >&5
5489 ac_header_compiler=no
5492 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5493 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5494 echo "${ECHO_T}$ac_header_compiler" >&6; }
5496 # Is the header present?
5497 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5498 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5499 cat >conftest.$ac_ext <<_ACEOF
5500 /* confdefs.h. */
5501 _ACEOF
5502 cat confdefs.h >>conftest.$ac_ext
5503 cat >>conftest.$ac_ext <<_ACEOF
5504 /* end confdefs.h. */
5505 #include <$ac_header>
5506 _ACEOF
5507 if { (ac_try="$ac_cpp conftest.$ac_ext"
5508 case "(($ac_try" in
5509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5510 *) ac_try_echo=$ac_try;;
5511 esac
5512 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5513 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5514 ac_status=$?
5515 grep -v '^ *+' conftest.er1 >conftest.err
5516 rm -f conftest.er1
5517 cat conftest.err >&5
5518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5519 (exit $ac_status); } >/dev/null && {
5520 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5521 test ! -s conftest.err
5522 }; then
5523 ac_header_preproc=yes
5524 else
5525 echo "$as_me: failed program was:" >&5
5526 sed 's/^/| /' conftest.$ac_ext >&5
5528 ac_header_preproc=no
5531 rm -f conftest.err conftest.$ac_ext
5532 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5533 echo "${ECHO_T}$ac_header_preproc" >&6; }
5535 # So? What about this header?
5536 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5537 yes:no: )
5538 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5539 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5540 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5541 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5542 ac_header_preproc=yes
5544 no:yes:* )
5545 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5546 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5547 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5548 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5549 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5550 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5551 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5552 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5553 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5554 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5555 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5556 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5557 ( cat <<\_ASBOX
5558 ## ------------------------------------- ##
5559 ## Report this to ahmed.badran@gmail.com ##
5560 ## ------------------------------------- ##
5561 _ASBOX
5562 ) | sed "s/^/$as_me: WARNING: /" >&2
5564 esac
5565 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5566 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5567 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5568 echo $ECHO_N "(cached) $ECHO_C" >&6
5569 else
5570 eval "$as_ac_Header=\$ac_header_preproc"
5572 ac_res=`eval echo '${'$as_ac_Header'}'`
5573 { echo "$as_me:$LINENO: result: $ac_res" >&5
5574 echo "${ECHO_T}$ac_res" >&6; }
5577 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5578 cat >>confdefs.h <<_ACEOF
5579 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5580 _ACEOF
5584 done
5588 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5589 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5590 (test "X$CXX" != "Xg++"))) ; then
5591 ac_ext=cpp
5592 ac_cpp='$CXXCPP $CPPFLAGS'
5593 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5594 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5595 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5596 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5597 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
5598 if test -z "$CXXCPP"; then
5599 if test "${ac_cv_prog_CXXCPP+set}" = set; then
5600 echo $ECHO_N "(cached) $ECHO_C" >&6
5601 else
5602 # Double quotes because CXXCPP needs to be expanded
5603 for CXXCPP in "$CXX -E" "/lib/cpp"
5605 ac_preproc_ok=false
5606 for ac_cxx_preproc_warn_flag in '' yes
5608 # Use a header file that comes with gcc, so configuring glibc
5609 # with a fresh cross-compiler works.
5610 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5611 # <limits.h> exists even on freestanding compilers.
5612 # On the NeXT, cc -E runs the code through the compiler's parser,
5613 # not just through cpp. "Syntax error" is here to catch this case.
5614 cat >conftest.$ac_ext <<_ACEOF
5615 /* confdefs.h. */
5616 _ACEOF
5617 cat confdefs.h >>conftest.$ac_ext
5618 cat >>conftest.$ac_ext <<_ACEOF
5619 /* end confdefs.h. */
5620 #ifdef __STDC__
5621 # include <limits.h>
5622 #else
5623 # include <assert.h>
5624 #endif
5625 Syntax error
5626 _ACEOF
5627 if { (ac_try="$ac_cpp conftest.$ac_ext"
5628 case "(($ac_try" in
5629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5630 *) ac_try_echo=$ac_try;;
5631 esac
5632 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5633 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5634 ac_status=$?
5635 grep -v '^ *+' conftest.er1 >conftest.err
5636 rm -f conftest.er1
5637 cat conftest.err >&5
5638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5639 (exit $ac_status); } >/dev/null && {
5640 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5641 test ! -s conftest.err
5642 }; then
5644 else
5645 echo "$as_me: failed program was:" >&5
5646 sed 's/^/| /' conftest.$ac_ext >&5
5648 # Broken: fails on valid input.
5649 continue
5652 rm -f conftest.err conftest.$ac_ext
5654 # OK, works on sane cases. Now check whether nonexistent headers
5655 # can be detected and how.
5656 cat >conftest.$ac_ext <<_ACEOF
5657 /* confdefs.h. */
5658 _ACEOF
5659 cat confdefs.h >>conftest.$ac_ext
5660 cat >>conftest.$ac_ext <<_ACEOF
5661 /* end confdefs.h. */
5662 #include <ac_nonexistent.h>
5663 _ACEOF
5664 if { (ac_try="$ac_cpp conftest.$ac_ext"
5665 case "(($ac_try" in
5666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5667 *) ac_try_echo=$ac_try;;
5668 esac
5669 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5670 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5671 ac_status=$?
5672 grep -v '^ *+' conftest.er1 >conftest.err
5673 rm -f conftest.er1
5674 cat conftest.err >&5
5675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5676 (exit $ac_status); } >/dev/null && {
5677 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5678 test ! -s conftest.err
5679 }; then
5680 # Broken: success on invalid input.
5681 continue
5682 else
5683 echo "$as_me: failed program was:" >&5
5684 sed 's/^/| /' conftest.$ac_ext >&5
5686 # Passes both tests.
5687 ac_preproc_ok=:
5688 break
5691 rm -f conftest.err conftest.$ac_ext
5693 done
5694 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5695 rm -f conftest.err conftest.$ac_ext
5696 if $ac_preproc_ok; then
5697 break
5700 done
5701 ac_cv_prog_CXXCPP=$CXXCPP
5704 CXXCPP=$ac_cv_prog_CXXCPP
5705 else
5706 ac_cv_prog_CXXCPP=$CXXCPP
5708 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
5709 echo "${ECHO_T}$CXXCPP" >&6; }
5710 ac_preproc_ok=false
5711 for ac_cxx_preproc_warn_flag in '' yes
5713 # Use a header file that comes with gcc, so configuring glibc
5714 # with a fresh cross-compiler works.
5715 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5716 # <limits.h> exists even on freestanding compilers.
5717 # On the NeXT, cc -E runs the code through the compiler's parser,
5718 # not just through cpp. "Syntax error" is here to catch this case.
5719 cat >conftest.$ac_ext <<_ACEOF
5720 /* confdefs.h. */
5721 _ACEOF
5722 cat confdefs.h >>conftest.$ac_ext
5723 cat >>conftest.$ac_ext <<_ACEOF
5724 /* end confdefs.h. */
5725 #ifdef __STDC__
5726 # include <limits.h>
5727 #else
5728 # include <assert.h>
5729 #endif
5730 Syntax error
5731 _ACEOF
5732 if { (ac_try="$ac_cpp conftest.$ac_ext"
5733 case "(($ac_try" in
5734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5735 *) ac_try_echo=$ac_try;;
5736 esac
5737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5738 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5739 ac_status=$?
5740 grep -v '^ *+' conftest.er1 >conftest.err
5741 rm -f conftest.er1
5742 cat conftest.err >&5
5743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5744 (exit $ac_status); } >/dev/null && {
5745 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5746 test ! -s conftest.err
5747 }; then
5749 else
5750 echo "$as_me: failed program was:" >&5
5751 sed 's/^/| /' conftest.$ac_ext >&5
5753 # Broken: fails on valid input.
5754 continue
5757 rm -f conftest.err conftest.$ac_ext
5759 # OK, works on sane cases. Now check whether nonexistent headers
5760 # can be detected and how.
5761 cat >conftest.$ac_ext <<_ACEOF
5762 /* confdefs.h. */
5763 _ACEOF
5764 cat confdefs.h >>conftest.$ac_ext
5765 cat >>conftest.$ac_ext <<_ACEOF
5766 /* end confdefs.h. */
5767 #include <ac_nonexistent.h>
5768 _ACEOF
5769 if { (ac_try="$ac_cpp conftest.$ac_ext"
5770 case "(($ac_try" in
5771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5772 *) ac_try_echo=$ac_try;;
5773 esac
5774 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5775 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5776 ac_status=$?
5777 grep -v '^ *+' conftest.er1 >conftest.err
5778 rm -f conftest.er1
5779 cat conftest.err >&5
5780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5781 (exit $ac_status); } >/dev/null && {
5782 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5783 test ! -s conftest.err
5784 }; then
5785 # Broken: success on invalid input.
5786 continue
5787 else
5788 echo "$as_me: failed program was:" >&5
5789 sed 's/^/| /' conftest.$ac_ext >&5
5791 # Passes both tests.
5792 ac_preproc_ok=:
5793 break
5796 rm -f conftest.err conftest.$ac_ext
5798 done
5799 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5800 rm -f conftest.err conftest.$ac_ext
5801 if $ac_preproc_ok; then
5803 else
5804 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5805 See \`config.log' for more details." >&5
5806 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5807 See \`config.log' for more details." >&2;}
5808 { (exit 1); exit 1; }; }
5811 ac_ext=cpp
5812 ac_cpp='$CXXCPP $CPPFLAGS'
5813 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5814 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5815 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5820 ac_ext=f
5821 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5822 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5823 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5824 if test -n "$ac_tool_prefix"; then
5825 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
5827 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5828 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5829 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5830 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5831 if test "${ac_cv_prog_F77+set}" = set; then
5832 echo $ECHO_N "(cached) $ECHO_C" >&6
5833 else
5834 if test -n "$F77"; then
5835 ac_cv_prog_F77="$F77" # Let the user override the test.
5836 else
5837 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5838 for as_dir in $PATH
5840 IFS=$as_save_IFS
5841 test -z "$as_dir" && as_dir=.
5842 for ac_exec_ext in '' $ac_executable_extensions; do
5843 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5844 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5845 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5846 break 2
5848 done
5849 done
5850 IFS=$as_save_IFS
5854 F77=$ac_cv_prog_F77
5855 if test -n "$F77"; then
5856 { echo "$as_me:$LINENO: result: $F77" >&5
5857 echo "${ECHO_T}$F77" >&6; }
5858 else
5859 { echo "$as_me:$LINENO: result: no" >&5
5860 echo "${ECHO_T}no" >&6; }
5864 test -n "$F77" && break
5865 done
5867 if test -z "$F77"; then
5868 ac_ct_F77=$F77
5869 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
5871 # Extract the first word of "$ac_prog", so it can be a program name with args.
5872 set dummy $ac_prog; ac_word=$2
5873 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5874 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5875 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5876 echo $ECHO_N "(cached) $ECHO_C" >&6
5877 else
5878 if test -n "$ac_ct_F77"; then
5879 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5880 else
5881 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5882 for as_dir in $PATH
5884 IFS=$as_save_IFS
5885 test -z "$as_dir" && as_dir=.
5886 for ac_exec_ext in '' $ac_executable_extensions; do
5887 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5888 ac_cv_prog_ac_ct_F77="$ac_prog"
5889 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5890 break 2
5892 done
5893 done
5894 IFS=$as_save_IFS
5898 ac_ct_F77=$ac_cv_prog_ac_ct_F77
5899 if test -n "$ac_ct_F77"; then
5900 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5901 echo "${ECHO_T}$ac_ct_F77" >&6; }
5902 else
5903 { echo "$as_me:$LINENO: result: no" >&5
5904 echo "${ECHO_T}no" >&6; }
5908 test -n "$ac_ct_F77" && break
5909 done
5911 if test "x$ac_ct_F77" = x; then
5912 F77=""
5913 else
5914 case $cross_compiling:$ac_tool_warned in
5915 yes:)
5916 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5917 whose name does not start with the host triplet. If you think this
5918 configuration is useful to you, please write to autoconf@gnu.org." >&5
5919 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5920 whose name does not start with the host triplet. If you think this
5921 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5922 ac_tool_warned=yes ;;
5923 esac
5924 F77=$ac_ct_F77
5929 # Provide some information about the compiler.
5930 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
5931 ac_compiler=`set X $ac_compile; echo $2`
5932 { (ac_try="$ac_compiler --version >&5"
5933 case "(($ac_try" in
5934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5935 *) ac_try_echo=$ac_try;;
5936 esac
5937 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5938 (eval "$ac_compiler --version >&5") 2>&5
5939 ac_status=$?
5940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5941 (exit $ac_status); }
5942 { (ac_try="$ac_compiler -v >&5"
5943 case "(($ac_try" in
5944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5945 *) ac_try_echo=$ac_try;;
5946 esac
5947 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5948 (eval "$ac_compiler -v >&5") 2>&5
5949 ac_status=$?
5950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5951 (exit $ac_status); }
5952 { (ac_try="$ac_compiler -V >&5"
5953 case "(($ac_try" in
5954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5955 *) ac_try_echo=$ac_try;;
5956 esac
5957 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5958 (eval "$ac_compiler -V >&5") 2>&5
5959 ac_status=$?
5960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5961 (exit $ac_status); }
5962 rm -f a.out
5964 # If we don't use `.F' as extension, the preprocessor is not run on the
5965 # input file. (Note that this only needs to work for GNU compilers.)
5966 ac_save_ext=$ac_ext
5967 ac_ext=F
5968 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5969 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
5970 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5971 echo $ECHO_N "(cached) $ECHO_C" >&6
5972 else
5973 cat >conftest.$ac_ext <<_ACEOF
5974 program main
5975 #ifndef __GNUC__
5976 choke me
5977 #endif
5980 _ACEOF
5981 rm -f conftest.$ac_objext
5982 if { (ac_try="$ac_compile"
5983 case "(($ac_try" in
5984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5985 *) ac_try_echo=$ac_try;;
5986 esac
5987 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5988 (eval "$ac_compile") 2>conftest.er1
5989 ac_status=$?
5990 grep -v '^ *+' conftest.er1 >conftest.err
5991 rm -f conftest.er1
5992 cat conftest.err >&5
5993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5994 (exit $ac_status); } && {
5995 test -z "$ac_f77_werror_flag" ||
5996 test ! -s conftest.err
5997 } && test -s conftest.$ac_objext; then
5998 ac_compiler_gnu=yes
5999 else
6000 echo "$as_me: failed program was:" >&5
6001 sed 's/^/| /' conftest.$ac_ext >&5
6003 ac_compiler_gnu=no
6006 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6007 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6010 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
6011 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
6012 ac_ext=$ac_save_ext
6013 ac_test_FFLAGS=${FFLAGS+set}
6014 ac_save_FFLAGS=$FFLAGS
6015 FFLAGS=
6016 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
6017 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
6018 if test "${ac_cv_prog_f77_g+set}" = set; then
6019 echo $ECHO_N "(cached) $ECHO_C" >&6
6020 else
6021 FFLAGS=-g
6022 cat >conftest.$ac_ext <<_ACEOF
6023 program main
6026 _ACEOF
6027 rm -f conftest.$ac_objext
6028 if { (ac_try="$ac_compile"
6029 case "(($ac_try" in
6030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6031 *) ac_try_echo=$ac_try;;
6032 esac
6033 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6034 (eval "$ac_compile") 2>conftest.er1
6035 ac_status=$?
6036 grep -v '^ *+' conftest.er1 >conftest.err
6037 rm -f conftest.er1
6038 cat conftest.err >&5
6039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6040 (exit $ac_status); } && {
6041 test -z "$ac_f77_werror_flag" ||
6042 test ! -s conftest.err
6043 } && test -s conftest.$ac_objext; then
6044 ac_cv_prog_f77_g=yes
6045 else
6046 echo "$as_me: failed program was:" >&5
6047 sed 's/^/| /' conftest.$ac_ext >&5
6049 ac_cv_prog_f77_g=no
6052 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6055 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6056 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
6057 if test "$ac_test_FFLAGS" = set; then
6058 FFLAGS=$ac_save_FFLAGS
6059 elif test $ac_cv_prog_f77_g = yes; then
6060 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6061 FFLAGS="-g -O2"
6062 else
6063 FFLAGS="-g"
6065 else
6066 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6067 FFLAGS="-O2"
6068 else
6069 FFLAGS=
6073 G77=`test $ac_compiler_gnu = yes && echo yes`
6074 ac_ext=c
6075 ac_cpp='$CPP $CPPFLAGS'
6076 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6077 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6078 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6082 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6084 # find the maximum length of command line arguments
6085 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6086 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
6087 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6088 echo $ECHO_N "(cached) $ECHO_C" >&6
6089 else
6091 teststring="ABCD"
6093 case $build_os in
6094 msdosdjgpp*)
6095 # On DJGPP, this test can blow up pretty badly due to problems in libc
6096 # (any single argument exceeding 2000 bytes causes a buffer overrun
6097 # during glob expansion). Even if it were fixed, the result of this
6098 # check would be larger than it should be.
6099 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6102 gnu*)
6103 # Under GNU Hurd, this test is not required because there is
6104 # no limit to the length of command line arguments.
6105 # Libtool will interpret -1 as no limit whatsoever
6106 lt_cv_sys_max_cmd_len=-1;
6109 cygwin* | mingw*)
6110 # On Win9x/ME, this test blows up -- it succeeds, but takes
6111 # about 5 minutes as the teststring grows exponentially.
6112 # Worse, since 9x/ME are not pre-emptively multitasking,
6113 # you end up with a "frozen" computer, even though with patience
6114 # the test eventually succeeds (with a max line length of 256k).
6115 # Instead, let's just punt: use the minimum linelength reported by
6116 # all of the supported platforms: 8192 (on NT/2K/XP).
6117 lt_cv_sys_max_cmd_len=8192;
6120 amigaos*)
6121 # On AmigaOS with pdksh, this test takes hours, literally.
6122 # So we just punt and use a minimum line length of 8192.
6123 lt_cv_sys_max_cmd_len=8192;
6126 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6127 # This has been around since 386BSD, at least. Likely further.
6128 if test -x /sbin/sysctl; then
6129 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6130 elif test -x /usr/sbin/sysctl; then
6131 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6132 else
6133 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6135 # And add a safety zone
6136 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6137 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6140 interix*)
6141 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6142 lt_cv_sys_max_cmd_len=196608
6145 osf*)
6146 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6147 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6148 # nice to cause kernel panics so lets avoid the loop below.
6149 # First set a reasonable default.
6150 lt_cv_sys_max_cmd_len=16384
6152 if test -x /sbin/sysconfig; then
6153 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6154 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6155 esac
6158 sco3.2v5*)
6159 lt_cv_sys_max_cmd_len=102400
6161 sysv5* | sco5v6* | sysv4.2uw2*)
6162 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6163 if test -n "$kargmax"; then
6164 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6165 else
6166 lt_cv_sys_max_cmd_len=32768
6170 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6171 if test -n "$lt_cv_sys_max_cmd_len"; then
6172 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6173 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6174 else
6175 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6176 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6177 = "XX$teststring") >/dev/null 2>&1 &&
6178 new_result=`expr "X$teststring" : ".*" 2>&1` &&
6179 lt_cv_sys_max_cmd_len=$new_result &&
6180 test $i != 17 # 1/2 MB should be enough
6182 i=`expr $i + 1`
6183 teststring=$teststring$teststring
6184 done
6185 teststring=
6186 # Add a significant safety factor because C++ compilers can tack on massive
6187 # amounts of additional arguments before passing them to the linker.
6188 # It appears as though 1/2 is a usable value.
6189 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6192 esac
6196 if test -n $lt_cv_sys_max_cmd_len ; then
6197 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6198 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
6199 else
6200 { echo "$as_me:$LINENO: result: none" >&5
6201 echo "${ECHO_T}none" >&6; }
6208 # Check for command to grab the raw symbol name followed by C symbol from nm.
6209 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6210 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
6211 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6212 echo $ECHO_N "(cached) $ECHO_C" >&6
6213 else
6215 # These are sane defaults that work on at least a few old systems.
6216 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6218 # Character class describing NM global symbol codes.
6219 symcode='[BCDEGRST]'
6221 # Regexp to match symbols that can be accessed directly from C.
6222 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6224 # Transform an extracted symbol line into a proper C declaration
6225 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6227 # Transform an extracted symbol line into symbol name and symbol address
6228 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'"
6230 # Define system-specific variables.
6231 case $host_os in
6232 aix*)
6233 symcode='[BCDT]'
6235 cygwin* | mingw* | pw32*)
6236 symcode='[ABCDGISTW]'
6238 hpux*) # Its linker distinguishes data from code symbols
6239 if test "$host_cpu" = ia64; then
6240 symcode='[ABCDEGRST]'
6242 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6243 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'"
6245 linux* | k*bsd*-gnu)
6246 if test "$host_cpu" = ia64; then
6247 symcode='[ABCDGIRSTW]'
6248 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6249 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'"
6252 irix* | nonstopux*)
6253 symcode='[BCDEGRST]'
6255 osf*)
6256 symcode='[BCDEGQRST]'
6258 solaris*)
6259 symcode='[BDRT]'
6261 sco3.2v5*)
6262 symcode='[DT]'
6264 sysv4.2uw2*)
6265 symcode='[DT]'
6267 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6268 symcode='[ABDT]'
6270 sysv4)
6271 symcode='[DFNSTU]'
6273 esac
6275 # Handle CRLF in mingw tool chain
6276 opt_cr=
6277 case $build_os in
6278 mingw*)
6279 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6281 esac
6283 # If we're using GNU nm, then use its standard symbol codes.
6284 case `$NM -V 2>&1` in
6285 *GNU* | *'with BFD'*)
6286 symcode='[ABCDGIRSTW]' ;;
6287 esac
6289 # Try without a prefix undercore, then with it.
6290 for ac_symprfx in "" "_"; do
6292 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6293 symxfrm="\\1 $ac_symprfx\\2 \\2"
6295 # Write the raw and C identifiers.
6296 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6298 # Check to see that the pipe works correctly.
6299 pipe_works=no
6301 rm -f conftest*
6302 cat > conftest.$ac_ext <<EOF
6303 #ifdef __cplusplus
6304 extern "C" {
6305 #endif
6306 char nm_test_var;
6307 void nm_test_func(){}
6308 #ifdef __cplusplus
6310 #endif
6311 int main(){nm_test_var='a';nm_test_func();return(0);}
6314 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6315 (eval $ac_compile) 2>&5
6316 ac_status=$?
6317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6318 (exit $ac_status); }; then
6319 # Now try to grab the symbols.
6320 nlist=conftest.nm
6321 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6322 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6323 ac_status=$?
6324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6325 (exit $ac_status); } && test -s "$nlist"; then
6326 # Try sorting and uniquifying the output.
6327 if sort "$nlist" | uniq > "$nlist"T; then
6328 mv -f "$nlist"T "$nlist"
6329 else
6330 rm -f "$nlist"T
6333 # Make sure that we snagged all the symbols we need.
6334 if grep ' nm_test_var$' "$nlist" >/dev/null; then
6335 if grep ' nm_test_func$' "$nlist" >/dev/null; then
6336 cat <<EOF > conftest.$ac_ext
6337 #ifdef __cplusplus
6338 extern "C" {
6339 #endif
6342 # Now generate the symbol file.
6343 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6345 cat <<EOF >> conftest.$ac_ext
6346 #if defined (__STDC__) && __STDC__
6347 # define lt_ptr_t void *
6348 #else
6349 # define lt_ptr_t char *
6350 # define const
6351 #endif
6353 /* The mapping between symbol names and symbols. */
6354 const struct {
6355 const char *name;
6356 lt_ptr_t address;
6358 lt_preloaded_symbols[] =
6361 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6362 cat <<\EOF >> conftest.$ac_ext
6363 {0, (lt_ptr_t) 0}
6366 #ifdef __cplusplus
6368 #endif
6370 # Now try linking the two files.
6371 mv conftest.$ac_objext conftstm.$ac_objext
6372 lt_save_LIBS="$LIBS"
6373 lt_save_CFLAGS="$CFLAGS"
6374 LIBS="conftstm.$ac_objext"
6375 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6376 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6377 (eval $ac_link) 2>&5
6378 ac_status=$?
6379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6380 (exit $ac_status); } && test -s conftest${ac_exeext}; then
6381 pipe_works=yes
6383 LIBS="$lt_save_LIBS"
6384 CFLAGS="$lt_save_CFLAGS"
6385 else
6386 echo "cannot find nm_test_func in $nlist" >&5
6388 else
6389 echo "cannot find nm_test_var in $nlist" >&5
6391 else
6392 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6394 else
6395 echo "$progname: failed program was:" >&5
6396 cat conftest.$ac_ext >&5
6398 rm -f conftest* conftst*
6400 # Do not use the global_symbol_pipe unless it works.
6401 if test "$pipe_works" = yes; then
6402 break
6403 else
6404 lt_cv_sys_global_symbol_pipe=
6406 done
6410 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6411 lt_cv_sys_global_symbol_to_cdecl=
6413 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6414 { echo "$as_me:$LINENO: result: failed" >&5
6415 echo "${ECHO_T}failed" >&6; }
6416 else
6417 { echo "$as_me:$LINENO: result: ok" >&5
6418 echo "${ECHO_T}ok" >&6; }
6421 { echo "$as_me:$LINENO: checking for objdir" >&5
6422 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
6423 if test "${lt_cv_objdir+set}" = set; then
6424 echo $ECHO_N "(cached) $ECHO_C" >&6
6425 else
6426 rm -f .libs 2>/dev/null
6427 mkdir .libs 2>/dev/null
6428 if test -d .libs; then
6429 lt_cv_objdir=.libs
6430 else
6431 # MS-DOS does not allow filenames that begin with a dot.
6432 lt_cv_objdir=_libs
6434 rmdir .libs 2>/dev/null
6436 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6437 echo "${ECHO_T}$lt_cv_objdir" >&6; }
6438 objdir=$lt_cv_objdir
6444 case $host_os in
6445 aix3*)
6446 # AIX sometimes has problems with the GCC collect2 program. For some
6447 # reason, if we set the COLLECT_NAMES environment variable, the problems
6448 # vanish in a puff of smoke.
6449 if test "X${COLLECT_NAMES+set}" != Xset; then
6450 COLLECT_NAMES=
6451 export COLLECT_NAMES
6454 esac
6456 # Sed substitution that helps us do robust quoting. It backslashifies
6457 # metacharacters that are still active within double-quoted strings.
6458 Xsed='sed -e 1s/^X//'
6459 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6461 # Same as above, but do not quote variable references.
6462 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6464 # Sed substitution to delay expansion of an escaped shell variable in a
6465 # double_quote_subst'ed string.
6466 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6468 # Sed substitution to avoid accidental globbing in evaled expressions
6469 no_glob_subst='s/\*/\\\*/g'
6471 # Constants:
6472 rm="rm -f"
6474 # Global variables:
6475 default_ofile=libtool
6476 can_build_shared=yes
6478 # All known linkers require a `.a' archive for static linking (except MSVC,
6479 # which needs '.lib').
6480 libext=a
6481 ltmain="$ac_aux_dir/ltmain.sh"
6482 ofile="$default_ofile"
6483 with_gnu_ld="$lt_cv_prog_gnu_ld"
6485 if test -n "$ac_tool_prefix"; then
6486 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6487 set dummy ${ac_tool_prefix}ar; ac_word=$2
6488 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6489 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6490 if test "${ac_cv_prog_AR+set}" = set; then
6491 echo $ECHO_N "(cached) $ECHO_C" >&6
6492 else
6493 if test -n "$AR"; then
6494 ac_cv_prog_AR="$AR" # Let the user override the test.
6495 else
6496 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6497 for as_dir in $PATH
6499 IFS=$as_save_IFS
6500 test -z "$as_dir" && as_dir=.
6501 for ac_exec_ext in '' $ac_executable_extensions; do
6502 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6503 ac_cv_prog_AR="${ac_tool_prefix}ar"
6504 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6505 break 2
6507 done
6508 done
6509 IFS=$as_save_IFS
6513 AR=$ac_cv_prog_AR
6514 if test -n "$AR"; then
6515 { echo "$as_me:$LINENO: result: $AR" >&5
6516 echo "${ECHO_T}$AR" >&6; }
6517 else
6518 { echo "$as_me:$LINENO: result: no" >&5
6519 echo "${ECHO_T}no" >&6; }
6524 if test -z "$ac_cv_prog_AR"; then
6525 ac_ct_AR=$AR
6526 # Extract the first word of "ar", so it can be a program name with args.
6527 set dummy ar; ac_word=$2
6528 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6529 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6530 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6531 echo $ECHO_N "(cached) $ECHO_C" >&6
6532 else
6533 if test -n "$ac_ct_AR"; then
6534 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6535 else
6536 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6537 for as_dir in $PATH
6539 IFS=$as_save_IFS
6540 test -z "$as_dir" && as_dir=.
6541 for ac_exec_ext in '' $ac_executable_extensions; do
6542 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6543 ac_cv_prog_ac_ct_AR="ar"
6544 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6545 break 2
6547 done
6548 done
6549 IFS=$as_save_IFS
6553 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6554 if test -n "$ac_ct_AR"; then
6555 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6556 echo "${ECHO_T}$ac_ct_AR" >&6; }
6557 else
6558 { echo "$as_me:$LINENO: result: no" >&5
6559 echo "${ECHO_T}no" >&6; }
6562 if test "x$ac_ct_AR" = x; then
6563 AR="false"
6564 else
6565 case $cross_compiling:$ac_tool_warned in
6566 yes:)
6567 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6568 whose name does not start with the host triplet. If you think this
6569 configuration is useful to you, please write to autoconf@gnu.org." >&5
6570 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6571 whose name does not start with the host triplet. If you think this
6572 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6573 ac_tool_warned=yes ;;
6574 esac
6575 AR=$ac_ct_AR
6577 else
6578 AR="$ac_cv_prog_AR"
6581 if test -n "$ac_tool_prefix"; then
6582 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6583 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6584 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6585 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6586 if test "${ac_cv_prog_RANLIB+set}" = set; then
6587 echo $ECHO_N "(cached) $ECHO_C" >&6
6588 else
6589 if test -n "$RANLIB"; then
6590 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6591 else
6592 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6593 for as_dir in $PATH
6595 IFS=$as_save_IFS
6596 test -z "$as_dir" && as_dir=.
6597 for ac_exec_ext in '' $ac_executable_extensions; do
6598 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6599 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6600 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6601 break 2
6603 done
6604 done
6605 IFS=$as_save_IFS
6609 RANLIB=$ac_cv_prog_RANLIB
6610 if test -n "$RANLIB"; then
6611 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6612 echo "${ECHO_T}$RANLIB" >&6; }
6613 else
6614 { echo "$as_me:$LINENO: result: no" >&5
6615 echo "${ECHO_T}no" >&6; }
6620 if test -z "$ac_cv_prog_RANLIB"; then
6621 ac_ct_RANLIB=$RANLIB
6622 # Extract the first word of "ranlib", so it can be a program name with args.
6623 set dummy ranlib; ac_word=$2
6624 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6625 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6626 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6627 echo $ECHO_N "(cached) $ECHO_C" >&6
6628 else
6629 if test -n "$ac_ct_RANLIB"; then
6630 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6631 else
6632 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6633 for as_dir in $PATH
6635 IFS=$as_save_IFS
6636 test -z "$as_dir" && as_dir=.
6637 for ac_exec_ext in '' $ac_executable_extensions; do
6638 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6639 ac_cv_prog_ac_ct_RANLIB="ranlib"
6640 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6641 break 2
6643 done
6644 done
6645 IFS=$as_save_IFS
6649 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6650 if test -n "$ac_ct_RANLIB"; then
6651 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6652 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6653 else
6654 { echo "$as_me:$LINENO: result: no" >&5
6655 echo "${ECHO_T}no" >&6; }
6658 if test "x$ac_ct_RANLIB" = x; then
6659 RANLIB=":"
6660 else
6661 case $cross_compiling:$ac_tool_warned in
6662 yes:)
6663 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6664 whose name does not start with the host triplet. If you think this
6665 configuration is useful to you, please write to autoconf@gnu.org." >&5
6666 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6667 whose name does not start with the host triplet. If you think this
6668 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6669 ac_tool_warned=yes ;;
6670 esac
6671 RANLIB=$ac_ct_RANLIB
6673 else
6674 RANLIB="$ac_cv_prog_RANLIB"
6677 if test -n "$ac_tool_prefix"; then
6678 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6679 set dummy ${ac_tool_prefix}strip; ac_word=$2
6680 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6681 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6682 if test "${ac_cv_prog_STRIP+set}" = set; then
6683 echo $ECHO_N "(cached) $ECHO_C" >&6
6684 else
6685 if test -n "$STRIP"; then
6686 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6687 else
6688 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6689 for as_dir in $PATH
6691 IFS=$as_save_IFS
6692 test -z "$as_dir" && as_dir=.
6693 for ac_exec_ext in '' $ac_executable_extensions; do
6694 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6695 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6696 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6697 break 2
6699 done
6700 done
6701 IFS=$as_save_IFS
6705 STRIP=$ac_cv_prog_STRIP
6706 if test -n "$STRIP"; then
6707 { echo "$as_me:$LINENO: result: $STRIP" >&5
6708 echo "${ECHO_T}$STRIP" >&6; }
6709 else
6710 { echo "$as_me:$LINENO: result: no" >&5
6711 echo "${ECHO_T}no" >&6; }
6716 if test -z "$ac_cv_prog_STRIP"; then
6717 ac_ct_STRIP=$STRIP
6718 # Extract the first word of "strip", so it can be a program name with args.
6719 set dummy strip; ac_word=$2
6720 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6721 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6722 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6723 echo $ECHO_N "(cached) $ECHO_C" >&6
6724 else
6725 if test -n "$ac_ct_STRIP"; then
6726 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6727 else
6728 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6729 for as_dir in $PATH
6731 IFS=$as_save_IFS
6732 test -z "$as_dir" && as_dir=.
6733 for ac_exec_ext in '' $ac_executable_extensions; do
6734 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6735 ac_cv_prog_ac_ct_STRIP="strip"
6736 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6737 break 2
6739 done
6740 done
6741 IFS=$as_save_IFS
6745 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6746 if test -n "$ac_ct_STRIP"; then
6747 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6748 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
6749 else
6750 { echo "$as_me:$LINENO: result: no" >&5
6751 echo "${ECHO_T}no" >&6; }
6754 if test "x$ac_ct_STRIP" = x; then
6755 STRIP=":"
6756 else
6757 case $cross_compiling:$ac_tool_warned in
6758 yes:)
6759 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6760 whose name does not start with the host triplet. If you think this
6761 configuration is useful to you, please write to autoconf@gnu.org." >&5
6762 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6763 whose name does not start with the host triplet. If you think this
6764 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6765 ac_tool_warned=yes ;;
6766 esac
6767 STRIP=$ac_ct_STRIP
6769 else
6770 STRIP="$ac_cv_prog_STRIP"
6774 old_CC="$CC"
6775 old_CFLAGS="$CFLAGS"
6777 # Set sane defaults for various variables
6778 test -z "$AR" && AR=ar
6779 test -z "$AR_FLAGS" && AR_FLAGS=cru
6780 test -z "$AS" && AS=as
6781 test -z "$CC" && CC=cc
6782 test -z "$LTCC" && LTCC=$CC
6783 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6784 test -z "$DLLTOOL" && DLLTOOL=dlltool
6785 test -z "$LD" && LD=ld
6786 test -z "$LN_S" && LN_S="ln -s"
6787 test -z "$MAGIC_CMD" && MAGIC_CMD=file
6788 test -z "$NM" && NM=nm
6789 test -z "$SED" && SED=sed
6790 test -z "$OBJDUMP" && OBJDUMP=objdump
6791 test -z "$RANLIB" && RANLIB=:
6792 test -z "$STRIP" && STRIP=:
6793 test -z "$ac_objext" && ac_objext=o
6795 # Determine commands to create old-style static archives.
6796 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6797 old_postinstall_cmds='chmod 644 $oldlib'
6798 old_postuninstall_cmds=
6800 if test -n "$RANLIB"; then
6801 case $host_os in
6802 openbsd*)
6803 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6806 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6808 esac
6809 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6812 for cc_temp in $compiler""; do
6813 case $cc_temp in
6814 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6815 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6816 \-*) ;;
6817 *) break;;
6818 esac
6819 done
6820 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6823 # Only perform the check for file, if the check method requires it
6824 case $deplibs_check_method in
6825 file_magic*)
6826 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6827 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6828 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
6829 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6830 echo $ECHO_N "(cached) $ECHO_C" >&6
6831 else
6832 case $MAGIC_CMD in
6833 [\\/*] | ?:[\\/]*)
6834 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6837 lt_save_MAGIC_CMD="$MAGIC_CMD"
6838 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6839 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6840 for ac_dir in $ac_dummy; do
6841 IFS="$lt_save_ifs"
6842 test -z "$ac_dir" && ac_dir=.
6843 if test -f $ac_dir/${ac_tool_prefix}file; then
6844 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6845 if test -n "$file_magic_test_file"; then
6846 case $deplibs_check_method in
6847 "file_magic "*)
6848 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6849 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6850 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6851 $EGREP "$file_magic_regex" > /dev/null; then
6853 else
6854 cat <<EOF 1>&2
6856 *** Warning: the command libtool uses to detect shared libraries,
6857 *** $file_magic_cmd, produces output that libtool cannot recognize.
6858 *** The result is that libtool may fail to recognize shared libraries
6859 *** as such. This will affect the creation of libtool libraries that
6860 *** depend on shared libraries, but programs linked with such libtool
6861 *** libraries will work regardless of this problem. Nevertheless, you
6862 *** may want to report the problem to your system manager and/or to
6863 *** bug-libtool@gnu.org
6866 fi ;;
6867 esac
6869 break
6871 done
6872 IFS="$lt_save_ifs"
6873 MAGIC_CMD="$lt_save_MAGIC_CMD"
6875 esac
6878 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6879 if test -n "$MAGIC_CMD"; then
6880 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6881 echo "${ECHO_T}$MAGIC_CMD" >&6; }
6882 else
6883 { echo "$as_me:$LINENO: result: no" >&5
6884 echo "${ECHO_T}no" >&6; }
6887 if test -z "$lt_cv_path_MAGIC_CMD"; then
6888 if test -n "$ac_tool_prefix"; then
6889 { echo "$as_me:$LINENO: checking for file" >&5
6890 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
6891 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6892 echo $ECHO_N "(cached) $ECHO_C" >&6
6893 else
6894 case $MAGIC_CMD in
6895 [\\/*] | ?:[\\/]*)
6896 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6899 lt_save_MAGIC_CMD="$MAGIC_CMD"
6900 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6901 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6902 for ac_dir in $ac_dummy; do
6903 IFS="$lt_save_ifs"
6904 test -z "$ac_dir" && ac_dir=.
6905 if test -f $ac_dir/file; then
6906 lt_cv_path_MAGIC_CMD="$ac_dir/file"
6907 if test -n "$file_magic_test_file"; then
6908 case $deplibs_check_method in
6909 "file_magic "*)
6910 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6911 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6912 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6913 $EGREP "$file_magic_regex" > /dev/null; then
6915 else
6916 cat <<EOF 1>&2
6918 *** Warning: the command libtool uses to detect shared libraries,
6919 *** $file_magic_cmd, produces output that libtool cannot recognize.
6920 *** The result is that libtool may fail to recognize shared libraries
6921 *** as such. This will affect the creation of libtool libraries that
6922 *** depend on shared libraries, but programs linked with such libtool
6923 *** libraries will work regardless of this problem. Nevertheless, you
6924 *** may want to report the problem to your system manager and/or to
6925 *** bug-libtool@gnu.org
6928 fi ;;
6929 esac
6931 break
6933 done
6934 IFS="$lt_save_ifs"
6935 MAGIC_CMD="$lt_save_MAGIC_CMD"
6937 esac
6940 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6941 if test -n "$MAGIC_CMD"; then
6942 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6943 echo "${ECHO_T}$MAGIC_CMD" >&6; }
6944 else
6945 { echo "$as_me:$LINENO: result: no" >&5
6946 echo "${ECHO_T}no" >&6; }
6949 else
6950 MAGIC_CMD=:
6956 esac
6958 enable_dlopen=no
6959 enable_win32_dll=no
6961 # Check whether --enable-libtool-lock was given.
6962 if test "${enable_libtool_lock+set}" = set; then
6963 enableval=$enable_libtool_lock;
6966 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6969 # Check whether --with-pic was given.
6970 if test "${with_pic+set}" = set; then
6971 withval=$with_pic; pic_mode="$withval"
6972 else
6973 pic_mode=default
6976 test -z "$pic_mode" && pic_mode=default
6978 # Use C for the default configuration in the libtool script
6979 tagname=
6980 lt_save_CC="$CC"
6981 ac_ext=c
6982 ac_cpp='$CPP $CPPFLAGS'
6983 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6984 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6985 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6988 # Source file extension for C test sources.
6989 ac_ext=c
6991 # Object file extension for compiled C test sources.
6992 objext=o
6993 objext=$objext
6995 # Code to be used in simple compile tests
6996 lt_simple_compile_test_code="int some_variable = 0;"
6998 # Code to be used in simple link tests
6999 lt_simple_link_test_code='int main(){return(0);}'
7002 # If no C compiler was specified, use CC.
7003 LTCC=${LTCC-"$CC"}
7005 # If no C compiler flags were specified, use CFLAGS.
7006 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7008 # Allow CC to be a program name with arguments.
7009 compiler=$CC
7012 # save warnings/boilerplate of simple test code
7013 ac_outfile=conftest.$ac_objext
7014 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7015 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7016 _lt_compiler_boilerplate=`cat conftest.err`
7017 $rm conftest*
7019 ac_outfile=conftest.$ac_objext
7020 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7021 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7022 _lt_linker_boilerplate=`cat conftest.err`
7023 $rm conftest*
7027 lt_prog_compiler_no_builtin_flag=
7029 if test "$GCC" = yes; then
7030 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7033 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7034 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
7035 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7036 echo $ECHO_N "(cached) $ECHO_C" >&6
7037 else
7038 lt_cv_prog_compiler_rtti_exceptions=no
7039 ac_outfile=conftest.$ac_objext
7040 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7041 lt_compiler_flag="-fno-rtti -fno-exceptions"
7042 # Insert the option either (1) after the last *FLAGS variable, or
7043 # (2) before a word containing "conftest.", or (3) at the end.
7044 # Note that $ac_compile itself does not contain backslashes and begins
7045 # with a dollar sign (not a hyphen), so the echo should work correctly.
7046 # The option is referenced via a variable to avoid confusing sed.
7047 lt_compile=`echo "$ac_compile" | $SED \
7048 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7049 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7050 -e 's:$: $lt_compiler_flag:'`
7051 (eval echo "\"\$as_me:7051: $lt_compile\"" >&5)
7052 (eval "$lt_compile" 2>conftest.err)
7053 ac_status=$?
7054 cat conftest.err >&5
7055 echo "$as_me:7055: \$? = $ac_status" >&5
7056 if (exit $ac_status) && test -s "$ac_outfile"; then
7057 # The compiler can only warn and ignore the option if not recognized
7058 # So say no if there are warnings other than the usual output.
7059 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7060 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7061 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7062 lt_cv_prog_compiler_rtti_exceptions=yes
7065 $rm conftest*
7068 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7069 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7071 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7072 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7073 else
7079 lt_prog_compiler_wl=
7080 lt_prog_compiler_pic=
7081 lt_prog_compiler_static=
7083 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7084 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
7086 if test "$GCC" = yes; then
7087 lt_prog_compiler_wl='-Wl,'
7088 lt_prog_compiler_static='-static'
7090 case $host_os in
7091 aix*)
7092 # All AIX code is PIC.
7093 if test "$host_cpu" = ia64; then
7094 # AIX 5 now supports IA64 processor
7095 lt_prog_compiler_static='-Bstatic'
7099 amigaos*)
7100 # FIXME: we need at least 68020 code to build shared libraries, but
7101 # adding the `-m68020' flag to GCC prevents building anything better,
7102 # like `-m68040'.
7103 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7106 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7107 # PIC is the default for these OSes.
7110 mingw* | cygwin* | pw32* | os2*)
7111 # This hack is so that the source file can tell whether it is being
7112 # built for inclusion in a dll (and should export symbols for example).
7113 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7114 # (--disable-auto-import) libraries
7115 lt_prog_compiler_pic='-DDLL_EXPORT'
7118 darwin* | rhapsody*)
7119 # PIC is the default on this platform
7120 # Common symbols not allowed in MH_DYLIB files
7121 lt_prog_compiler_pic='-fno-common'
7124 interix[3-9]*)
7125 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7126 # Instead, we relocate shared libraries at runtime.
7129 msdosdjgpp*)
7130 # Just because we use GCC doesn't mean we suddenly get shared libraries
7131 # on systems that don't support them.
7132 lt_prog_compiler_can_build_shared=no
7133 enable_shared=no
7136 sysv4*MP*)
7137 if test -d /usr/nec; then
7138 lt_prog_compiler_pic=-Kconform_pic
7142 hpux*)
7143 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7144 # not for PA HP-UX.
7145 case $host_cpu in
7146 hppa*64*|ia64*)
7147 # +Z the default
7150 lt_prog_compiler_pic='-fPIC'
7152 esac
7156 lt_prog_compiler_pic='-fPIC'
7158 esac
7159 else
7160 # PORTME Check for flag to pass linker flags through the system compiler.
7161 case $host_os in
7162 aix*)
7163 lt_prog_compiler_wl='-Wl,'
7164 if test "$host_cpu" = ia64; then
7165 # AIX 5 now supports IA64 processor
7166 lt_prog_compiler_static='-Bstatic'
7167 else
7168 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7171 darwin*)
7172 # PIC is the default on this platform
7173 # Common symbols not allowed in MH_DYLIB files
7174 case $cc_basename in
7175 xlc*)
7176 lt_prog_compiler_pic='-qnocommon'
7177 lt_prog_compiler_wl='-Wl,'
7179 esac
7182 mingw* | cygwin* | pw32* | os2*)
7183 # This hack is so that the source file can tell whether it is being
7184 # built for inclusion in a dll (and should export symbols for example).
7185 lt_prog_compiler_pic='-DDLL_EXPORT'
7188 hpux9* | hpux10* | hpux11*)
7189 lt_prog_compiler_wl='-Wl,'
7190 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7191 # not for PA HP-UX.
7192 case $host_cpu in
7193 hppa*64*|ia64*)
7194 # +Z the default
7197 lt_prog_compiler_pic='+Z'
7199 esac
7200 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7201 lt_prog_compiler_static='${wl}-a ${wl}archive'
7204 irix5* | irix6* | nonstopux*)
7205 lt_prog_compiler_wl='-Wl,'
7206 # PIC (with -KPIC) is the default.
7207 lt_prog_compiler_static='-non_shared'
7210 newsos6)
7211 lt_prog_compiler_pic='-KPIC'
7212 lt_prog_compiler_static='-Bstatic'
7215 linux* | k*bsd*-gnu)
7216 case $cc_basename in
7217 icc* | ecc*)
7218 lt_prog_compiler_wl='-Wl,'
7219 lt_prog_compiler_pic='-KPIC'
7220 lt_prog_compiler_static='-static'
7222 pgcc* | pgf77* | pgf90* | pgf95*)
7223 # Portland Group compilers (*not* the Pentium gcc compiler,
7224 # which looks to be a dead project)
7225 lt_prog_compiler_wl='-Wl,'
7226 lt_prog_compiler_pic='-fpic'
7227 lt_prog_compiler_static='-Bstatic'
7229 ccc*)
7230 lt_prog_compiler_wl='-Wl,'
7231 # All Alpha code is PIC.
7232 lt_prog_compiler_static='-non_shared'
7235 case `$CC -V 2>&1 | sed 5q` in
7236 *Sun\ C*)
7237 # Sun C 5.9
7238 lt_prog_compiler_pic='-KPIC'
7239 lt_prog_compiler_static='-Bstatic'
7240 lt_prog_compiler_wl='-Wl,'
7242 *Sun\ F*)
7243 # Sun Fortran 8.3 passes all unrecognized flags to the linker
7244 lt_prog_compiler_pic='-KPIC'
7245 lt_prog_compiler_static='-Bstatic'
7246 lt_prog_compiler_wl=''
7248 esac
7250 esac
7253 osf3* | osf4* | osf5*)
7254 lt_prog_compiler_wl='-Wl,'
7255 # All OSF/1 code is PIC.
7256 lt_prog_compiler_static='-non_shared'
7259 rdos*)
7260 lt_prog_compiler_static='-non_shared'
7263 solaris*)
7264 lt_prog_compiler_pic='-KPIC'
7265 lt_prog_compiler_static='-Bstatic'
7266 case $cc_basename in
7267 f77* | f90* | f95*)
7268 lt_prog_compiler_wl='-Qoption ld ';;
7270 lt_prog_compiler_wl='-Wl,';;
7271 esac
7274 sunos4*)
7275 lt_prog_compiler_wl='-Qoption ld '
7276 lt_prog_compiler_pic='-PIC'
7277 lt_prog_compiler_static='-Bstatic'
7280 sysv4 | sysv4.2uw2* | sysv4.3*)
7281 lt_prog_compiler_wl='-Wl,'
7282 lt_prog_compiler_pic='-KPIC'
7283 lt_prog_compiler_static='-Bstatic'
7286 sysv4*MP*)
7287 if test -d /usr/nec ;then
7288 lt_prog_compiler_pic='-Kconform_pic'
7289 lt_prog_compiler_static='-Bstatic'
7293 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7294 lt_prog_compiler_wl='-Wl,'
7295 lt_prog_compiler_pic='-KPIC'
7296 lt_prog_compiler_static='-Bstatic'
7299 unicos*)
7300 lt_prog_compiler_wl='-Wl,'
7301 lt_prog_compiler_can_build_shared=no
7304 uts4*)
7305 lt_prog_compiler_pic='-pic'
7306 lt_prog_compiler_static='-Bstatic'
7310 lt_prog_compiler_can_build_shared=no
7312 esac
7315 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7316 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
7319 # Check to make sure the PIC flag actually works.
7321 if test -n "$lt_prog_compiler_pic"; then
7323 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7324 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
7325 if test "${lt_prog_compiler_pic_works+set}" = set; then
7326 echo $ECHO_N "(cached) $ECHO_C" >&6
7327 else
7328 lt_prog_compiler_pic_works=no
7329 ac_outfile=conftest.$ac_objext
7330 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7331 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7332 # Insert the option either (1) after the last *FLAGS variable, or
7333 # (2) before a word containing "conftest.", or (3) at the end.
7334 # Note that $ac_compile itself does not contain backslashes and begins
7335 # with a dollar sign (not a hyphen), so the echo should work correctly.
7336 # The option is referenced via a variable to avoid confusing sed.
7337 lt_compile=`echo "$ac_compile" | $SED \
7338 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7339 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7340 -e 's:$: $lt_compiler_flag:'`
7341 (eval echo "\"\$as_me:7341: $lt_compile\"" >&5)
7342 (eval "$lt_compile" 2>conftest.err)
7343 ac_status=$?
7344 cat conftest.err >&5
7345 echo "$as_me:7345: \$? = $ac_status" >&5
7346 if (exit $ac_status) && test -s "$ac_outfile"; then
7347 # The compiler can only warn and ignore the option if not recognized
7348 # So say no if there are warnings other than the usual output.
7349 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7350 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7351 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7352 lt_prog_compiler_pic_works=yes
7355 $rm conftest*
7358 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7359 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
7361 if test x"$lt_prog_compiler_pic_works" = xyes; then
7362 case $lt_prog_compiler_pic in
7363 "" | " "*) ;;
7364 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7365 esac
7366 else
7367 lt_prog_compiler_pic=
7368 lt_prog_compiler_can_build_shared=no
7372 case $host_os in
7373 # For platforms which do not support PIC, -DPIC is meaningless:
7374 *djgpp*)
7375 lt_prog_compiler_pic=
7378 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7380 esac
7383 # Check to make sure the static flag actually works.
7385 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7386 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7387 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
7388 if test "${lt_prog_compiler_static_works+set}" = set; then
7389 echo $ECHO_N "(cached) $ECHO_C" >&6
7390 else
7391 lt_prog_compiler_static_works=no
7392 save_LDFLAGS="$LDFLAGS"
7393 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7394 echo "$lt_simple_link_test_code" > conftest.$ac_ext
7395 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7396 # The linker can only warn and ignore the option if not recognized
7397 # So say no if there are warnings
7398 if test -s conftest.err; then
7399 # Append any errors to the config.log.
7400 cat conftest.err 1>&5
7401 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7402 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7403 if diff conftest.exp conftest.er2 >/dev/null; then
7404 lt_prog_compiler_static_works=yes
7406 else
7407 lt_prog_compiler_static_works=yes
7410 $rm conftest*
7411 LDFLAGS="$save_LDFLAGS"
7414 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7415 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
7417 if test x"$lt_prog_compiler_static_works" = xyes; then
7419 else
7420 lt_prog_compiler_static=
7424 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7425 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
7426 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7427 echo $ECHO_N "(cached) $ECHO_C" >&6
7428 else
7429 lt_cv_prog_compiler_c_o=no
7430 $rm -r conftest 2>/dev/null
7431 mkdir conftest
7432 cd conftest
7433 mkdir out
7434 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7436 lt_compiler_flag="-o out/conftest2.$ac_objext"
7437 # Insert the option either (1) after the last *FLAGS variable, or
7438 # (2) before a word containing "conftest.", or (3) at the end.
7439 # Note that $ac_compile itself does not contain backslashes and begins
7440 # with a dollar sign (not a hyphen), so the echo should work correctly.
7441 lt_compile=`echo "$ac_compile" | $SED \
7442 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7443 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7444 -e 's:$: $lt_compiler_flag:'`
7445 (eval echo "\"\$as_me:7445: $lt_compile\"" >&5)
7446 (eval "$lt_compile" 2>out/conftest.err)
7447 ac_status=$?
7448 cat out/conftest.err >&5
7449 echo "$as_me:7449: \$? = $ac_status" >&5
7450 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7451 then
7452 # The compiler can only warn and ignore the option if not recognized
7453 # So say no if there are warnings
7454 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7455 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7456 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7457 lt_cv_prog_compiler_c_o=yes
7460 chmod u+w . 2>&5
7461 $rm conftest*
7462 # SGI C++ compiler will create directory out/ii_files/ for
7463 # template instantiation
7464 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7465 $rm out/* && rmdir out
7466 cd ..
7467 rmdir conftest
7468 $rm conftest*
7471 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7472 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
7475 hard_links="nottested"
7476 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7477 # do not overwrite the value of need_locks provided by the user
7478 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7479 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
7480 hard_links=yes
7481 $rm conftest*
7482 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7483 touch conftest.a
7484 ln conftest.a conftest.b 2>&5 || hard_links=no
7485 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7486 { echo "$as_me:$LINENO: result: $hard_links" >&5
7487 echo "${ECHO_T}$hard_links" >&6; }
7488 if test "$hard_links" = no; then
7489 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7490 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7491 need_locks=warn
7493 else
7494 need_locks=no
7497 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7498 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
7500 runpath_var=
7501 allow_undefined_flag=
7502 enable_shared_with_static_runtimes=no
7503 archive_cmds=
7504 archive_expsym_cmds=
7505 old_archive_From_new_cmds=
7506 old_archive_from_expsyms_cmds=
7507 export_dynamic_flag_spec=
7508 whole_archive_flag_spec=
7509 thread_safe_flag_spec=
7510 hardcode_libdir_flag_spec=
7511 hardcode_libdir_flag_spec_ld=
7512 hardcode_libdir_separator=
7513 hardcode_direct=no
7514 hardcode_minus_L=no
7515 hardcode_shlibpath_var=unsupported
7516 link_all_deplibs=unknown
7517 hardcode_automatic=no
7518 module_cmds=
7519 module_expsym_cmds=
7520 always_export_symbols=no
7521 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7522 # include_expsyms should be a list of space-separated symbols to be *always*
7523 # included in the symbol list
7524 include_expsyms=
7525 # exclude_expsyms can be an extended regexp of symbols to exclude
7526 # it will be wrapped by ` (' and `)$', so one must not match beginning or
7527 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7528 # as well as any symbol that contains `d'.
7529 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
7530 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7531 # platforms (ab)use it in PIC code, but their linkers get confused if
7532 # the symbol is explicitly referenced. Since portable code cannot
7533 # rely on this symbol name, it's probably fine to never include it in
7534 # preloaded symbol tables.
7535 extract_expsyms_cmds=
7536 # Just being paranoid about ensuring that cc_basename is set.
7537 for cc_temp in $compiler""; do
7538 case $cc_temp in
7539 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7540 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7541 \-*) ;;
7542 *) break;;
7543 esac
7544 done
7545 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7547 case $host_os in
7548 cygwin* | mingw* | pw32*)
7549 # FIXME: the MSVC++ port hasn't been tested in a loooong time
7550 # When not using gcc, we currently assume that we are using
7551 # Microsoft Visual C++.
7552 if test "$GCC" != yes; then
7553 with_gnu_ld=no
7556 interix*)
7557 # we just hope/assume this is gcc and not c89 (= MSVC++)
7558 with_gnu_ld=yes
7560 openbsd*)
7561 with_gnu_ld=no
7563 esac
7565 ld_shlibs=yes
7566 if test "$with_gnu_ld" = yes; then
7567 # If archive_cmds runs LD, not CC, wlarc should be empty
7568 wlarc='${wl}'
7570 # Set some defaults for GNU ld with shared library support. These
7571 # are reset later if shared libraries are not supported. Putting them
7572 # here allows them to be overridden if necessary.
7573 runpath_var=LD_RUN_PATH
7574 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
7575 export_dynamic_flag_spec='${wl}--export-dynamic'
7576 # ancient GNU ld didn't support --whole-archive et. al.
7577 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
7578 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7579 else
7580 whole_archive_flag_spec=
7582 supports_anon_versioning=no
7583 case `$LD -v 2>/dev/null` in
7584 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7585 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7586 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7587 *\ 2.11.*) ;; # other 2.11 versions
7588 *) supports_anon_versioning=yes ;;
7589 esac
7591 # See if GNU ld supports shared libraries.
7592 case $host_os in
7593 aix3* | aix4* | aix5*)
7594 # On AIX/PPC, the GNU linker is very broken
7595 if test "$host_cpu" != ia64; then
7596 ld_shlibs=no
7597 cat <<EOF 1>&2
7599 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
7600 *** to be unable to reliably create shared libraries on AIX.
7601 *** Therefore, libtool is disabling shared libraries support. If you
7602 *** really care for shared libraries, you may want to modify your PATH
7603 *** so that a non-GNU linker is found, and then restart.
7609 amigaos*)
7610 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)'
7611 hardcode_libdir_flag_spec='-L$libdir'
7612 hardcode_minus_L=yes
7614 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7615 # that the semantics of dynamic libraries on AmigaOS, at least up
7616 # to version 4, is to share data among multiple programs linked
7617 # with the same dynamic library. Since this doesn't match the
7618 # behavior of shared libraries on other platforms, we can't use
7619 # them.
7620 ld_shlibs=no
7623 beos*)
7624 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7625 allow_undefined_flag=unsupported
7626 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7627 # support --undefined. This deserves some investigation. FIXME
7628 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7629 else
7630 ld_shlibs=no
7634 cygwin* | mingw* | pw32*)
7635 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7636 # as there is no search path for DLLs.
7637 hardcode_libdir_flag_spec='-L$libdir'
7638 allow_undefined_flag=unsupported
7639 always_export_symbols=no
7640 enable_shared_with_static_runtimes=yes
7641 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
7643 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
7644 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7645 # If the export-symbols file already is a .def file (1st line
7646 # is EXPORTS), use it as is; otherwise, prepend...
7647 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7648 cp $export_symbols $output_objdir/$soname.def;
7649 else
7650 echo EXPORTS > $output_objdir/$soname.def;
7651 cat $export_symbols >> $output_objdir/$soname.def;
7653 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7654 else
7655 ld_shlibs=no
7659 interix[3-9]*)
7660 hardcode_direct=no
7661 hardcode_shlibpath_var=no
7662 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7663 export_dynamic_flag_spec='${wl}-E'
7664 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7665 # Instead, shared libraries are loaded at an image base (0x10000000 by
7666 # default) and relocated if they conflict, which is a slow very memory
7667 # consuming and fragmenting process. To avoid this, we pick a random,
7668 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7669 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
7670 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7671 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'
7674 gnu* | linux* | k*bsd*-gnu)
7675 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7676 tmp_addflag=
7677 case $cc_basename,$host_cpu in
7678 pgcc*) # Portland Group C compiler
7679 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'
7680 tmp_addflag=' $pic_flag'
7682 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
7683 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'
7684 tmp_addflag=' $pic_flag -Mnomain' ;;
7685 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
7686 tmp_addflag=' -i_dynamic' ;;
7687 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
7688 tmp_addflag=' -i_dynamic -nofor_main' ;;
7689 ifc* | ifort*) # Intel Fortran compiler
7690 tmp_addflag=' -nofor_main' ;;
7691 esac
7692 case `$CC -V 2>&1 | sed 5q` in
7693 *Sun\ C*) # Sun C 5.9
7694 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'
7695 tmp_sharedflag='-G' ;;
7696 *Sun\ F*) # Sun Fortran 8.3
7697 tmp_sharedflag='-G' ;;
7699 tmp_sharedflag='-shared' ;;
7700 esac
7701 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7703 if test $supports_anon_versioning = yes; then
7704 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
7705 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7706 $echo "local: *; };" >> $output_objdir/$libname.ver~
7707 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7709 else
7710 ld_shlibs=no
7714 netbsd*)
7715 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7716 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7717 wlarc=
7718 else
7719 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7720 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7724 solaris*)
7725 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
7726 ld_shlibs=no
7727 cat <<EOF 1>&2
7729 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
7730 *** create shared libraries on Solaris systems. Therefore, libtool
7731 *** is disabling shared libraries support. We urge you to upgrade GNU
7732 *** binutils to release 2.9.1 or newer. Another option is to modify
7733 *** your PATH or compiler configuration so that the native linker is
7734 *** used, and then restart.
7737 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7738 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7739 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7740 else
7741 ld_shlibs=no
7745 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7746 case `$LD -v 2>&1` in
7747 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7748 ld_shlibs=no
7749 cat <<_LT_EOF 1>&2
7751 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7752 *** reliably create shared libraries on SCO systems. Therefore, libtool
7753 *** is disabling shared libraries support. We urge you to upgrade GNU
7754 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
7755 *** your PATH or compiler configuration so that the native linker is
7756 *** used, and then restart.
7758 _LT_EOF
7761 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7762 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
7763 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
7764 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
7765 else
7766 ld_shlibs=no
7769 esac
7772 sunos4*)
7773 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7774 wlarc=
7775 hardcode_direct=yes
7776 hardcode_shlibpath_var=no
7780 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7781 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7782 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7783 else
7784 ld_shlibs=no
7787 esac
7789 if test "$ld_shlibs" = no; then
7790 runpath_var=
7791 hardcode_libdir_flag_spec=
7792 export_dynamic_flag_spec=
7793 whole_archive_flag_spec=
7795 else
7796 # PORTME fill in a description of your system's linker (not GNU ld)
7797 case $host_os in
7798 aix3*)
7799 allow_undefined_flag=unsupported
7800 always_export_symbols=yes
7801 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'
7802 # Note: this linker hardcodes the directories in LIBPATH if there
7803 # are no directories specified by -L.
7804 hardcode_minus_L=yes
7805 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
7806 # Neither direct hardcoding nor static linking is supported with a
7807 # broken collect2.
7808 hardcode_direct=unsupported
7812 aix4* | aix5*)
7813 if test "$host_cpu" = ia64; then
7814 # On IA64, the linker does run time linking by default, so we don't
7815 # have to do anything special.
7816 aix_use_runtimelinking=no
7817 exp_sym_flag='-Bexport'
7818 no_entry_flag=""
7819 else
7820 # If we're using GNU nm, then we don't want the "-C" option.
7821 # -C means demangle to AIX nm, but means don't demangle with GNU nm
7822 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
7823 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'
7824 else
7825 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'
7827 aix_use_runtimelinking=no
7829 # Test if we are trying to use run time linking or normal
7830 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7831 # need to do runtime linking.
7832 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
7833 for ld_flag in $LDFLAGS; do
7834 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7835 aix_use_runtimelinking=yes
7836 break
7838 done
7840 esac
7842 exp_sym_flag='-bexport'
7843 no_entry_flag='-bnoentry'
7846 # When large executables or shared objects are built, AIX ld can
7847 # have problems creating the table of contents. If linking a library
7848 # or program results in "error TOC overflow" add -mminimal-toc to
7849 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
7850 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7852 archive_cmds=''
7853 hardcode_direct=yes
7854 hardcode_libdir_separator=':'
7855 link_all_deplibs=yes
7857 if test "$GCC" = yes; then
7858 case $host_os in aix4.[012]|aix4.[012].*)
7859 # We only want to do this on AIX 4.2 and lower, the check
7860 # below for broken collect2 doesn't work under 4.3+
7861 collect2name=`${CC} -print-prog-name=collect2`
7862 if test -f "$collect2name" && \
7863 strings "$collect2name" | grep resolve_lib_name >/dev/null
7864 then
7865 # We have reworked collect2
7867 else
7868 # We have old collect2
7869 hardcode_direct=unsupported
7870 # It fails to find uninstalled libraries when the uninstalled
7871 # path is not listed in the libpath. Setting hardcode_minus_L
7872 # to unsupported forces relinking
7873 hardcode_minus_L=yes
7874 hardcode_libdir_flag_spec='-L$libdir'
7875 hardcode_libdir_separator=
7878 esac
7879 shared_flag='-shared'
7880 if test "$aix_use_runtimelinking" = yes; then
7881 shared_flag="$shared_flag "'${wl}-G'
7883 else
7884 # not using gcc
7885 if test "$host_cpu" = ia64; then
7886 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7887 # chokes on -Wl,-G. The following line is correct:
7888 shared_flag='-G'
7889 else
7890 if test "$aix_use_runtimelinking" = yes; then
7891 shared_flag='${wl}-G'
7892 else
7893 shared_flag='${wl}-bM:SRE'
7898 # It seems that -bexpall does not export symbols beginning with
7899 # underscore (_), so it is better to generate a list of symbols to export.
7900 always_export_symbols=yes
7901 if test "$aix_use_runtimelinking" = yes; then
7902 # Warning - without using the other runtime loading flags (-brtl),
7903 # -berok will link without error, but may produce a broken library.
7904 allow_undefined_flag='-berok'
7905 # Determine the default libpath from the value encoded in an empty executable.
7906 cat >conftest.$ac_ext <<_ACEOF
7907 /* confdefs.h. */
7908 _ACEOF
7909 cat confdefs.h >>conftest.$ac_ext
7910 cat >>conftest.$ac_ext <<_ACEOF
7911 /* end confdefs.h. */
7914 main ()
7918 return 0;
7920 _ACEOF
7921 rm -f conftest.$ac_objext conftest$ac_exeext
7922 if { (ac_try="$ac_link"
7923 case "(($ac_try" in
7924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7925 *) ac_try_echo=$ac_try;;
7926 esac
7927 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7928 (eval "$ac_link") 2>conftest.er1
7929 ac_status=$?
7930 grep -v '^ *+' conftest.er1 >conftest.err
7931 rm -f conftest.er1
7932 cat conftest.err >&5
7933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7934 (exit $ac_status); } && {
7935 test -z "$ac_c_werror_flag" ||
7936 test ! -s conftest.err
7937 } && test -s conftest$ac_exeext &&
7938 $as_test_x conftest$ac_exeext; then
7940 lt_aix_libpath_sed='
7941 /Import File Strings/,/^$/ {
7942 /^0/ {
7943 s/^0 *\(.*\)$/\1/
7947 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7948 # Check for a 64-bit object if we didn't find anything.
7949 if test -z "$aix_libpath"; then
7950 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7952 else
7953 echo "$as_me: failed program was:" >&5
7954 sed 's/^/| /' conftest.$ac_ext >&5
7959 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7960 conftest$ac_exeext conftest.$ac_ext
7961 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7963 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7964 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"
7965 else
7966 if test "$host_cpu" = ia64; then
7967 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7968 allow_undefined_flag="-z nodefs"
7969 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"
7970 else
7971 # Determine the default libpath from the value encoded in an empty executable.
7972 cat >conftest.$ac_ext <<_ACEOF
7973 /* confdefs.h. */
7974 _ACEOF
7975 cat confdefs.h >>conftest.$ac_ext
7976 cat >>conftest.$ac_ext <<_ACEOF
7977 /* end confdefs.h. */
7980 main ()
7984 return 0;
7986 _ACEOF
7987 rm -f conftest.$ac_objext conftest$ac_exeext
7988 if { (ac_try="$ac_link"
7989 case "(($ac_try" in
7990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7991 *) ac_try_echo=$ac_try;;
7992 esac
7993 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7994 (eval "$ac_link") 2>conftest.er1
7995 ac_status=$?
7996 grep -v '^ *+' conftest.er1 >conftest.err
7997 rm -f conftest.er1
7998 cat conftest.err >&5
7999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8000 (exit $ac_status); } && {
8001 test -z "$ac_c_werror_flag" ||
8002 test ! -s conftest.err
8003 } && test -s conftest$ac_exeext &&
8004 $as_test_x conftest$ac_exeext; then
8006 lt_aix_libpath_sed='
8007 /Import File Strings/,/^$/ {
8008 /^0/ {
8009 s/^0 *\(.*\)$/\1/
8013 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8014 # Check for a 64-bit object if we didn't find anything.
8015 if test -z "$aix_libpath"; then
8016 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8018 else
8019 echo "$as_me: failed program was:" >&5
8020 sed 's/^/| /' conftest.$ac_ext >&5
8025 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8026 conftest$ac_exeext conftest.$ac_ext
8027 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8029 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8030 # Warning - without using the other run time loading flags,
8031 # -berok will link without error, but may produce a broken library.
8032 no_undefined_flag=' ${wl}-bernotok'
8033 allow_undefined_flag=' ${wl}-berok'
8034 # Exported symbols can be pulled into shared objects from archives
8035 whole_archive_flag_spec='$convenience'
8036 archive_cmds_need_lc=yes
8037 # This is similar to how AIX traditionally builds its shared libraries.
8038 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'
8043 amigaos*)
8044 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)'
8045 hardcode_libdir_flag_spec='-L$libdir'
8046 hardcode_minus_L=yes
8047 # see comment about different semantics on the GNU ld section
8048 ld_shlibs=no
8051 bsdi[45]*)
8052 export_dynamic_flag_spec=-rdynamic
8055 cygwin* | mingw* | pw32*)
8056 # When not using gcc, we currently assume that we are using
8057 # Microsoft Visual C++.
8058 # hardcode_libdir_flag_spec is actually meaningless, as there is
8059 # no search path for DLLs.
8060 hardcode_libdir_flag_spec=' '
8061 allow_undefined_flag=unsupported
8062 # Tell ltmain to make .lib files, not .a files.
8063 libext=lib
8064 # Tell ltmain to make .dll files, not .so files.
8065 shrext_cmds=".dll"
8066 # FIXME: Setting linknames here is a bad hack.
8067 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8068 # The linker will automatically build a .lib file if we build a DLL.
8069 old_archive_From_new_cmds='true'
8070 # FIXME: Should let the user specify the lib program.
8071 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8072 fix_srcfile_path='`cygpath -w "$srcfile"`'
8073 enable_shared_with_static_runtimes=yes
8076 darwin* | rhapsody*)
8077 case $host_os in
8078 rhapsody* | darwin1.[012])
8079 allow_undefined_flag='${wl}-undefined ${wl}suppress'
8081 *) # Darwin 1.3 on
8082 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8083 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8084 else
8085 case ${MACOSX_DEPLOYMENT_TARGET} in
8086 10.[012])
8087 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8089 10.*)
8090 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8092 esac
8095 esac
8096 archive_cmds_need_lc=no
8097 hardcode_direct=no
8098 hardcode_automatic=yes
8099 hardcode_shlibpath_var=unsupported
8100 whole_archive_flag_spec=''
8101 link_all_deplibs=yes
8102 if test "$GCC" = yes ; then
8103 output_verbose_link_cmd='echo'
8104 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8105 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8106 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8107 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}'
8108 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}'
8109 else
8110 case $cc_basename in
8111 xlc*)
8112 output_verbose_link_cmd='echo'
8113 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
8114 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8115 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8116 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}'
8117 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}'
8120 ld_shlibs=no
8122 esac
8126 dgux*)
8127 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8128 hardcode_libdir_flag_spec='-L$libdir'
8129 hardcode_shlibpath_var=no
8132 freebsd1*)
8133 ld_shlibs=no
8136 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8137 # support. Future versions do this automatically, but an explicit c++rt0.o
8138 # does not break anything, and helps significantly (at the cost of a little
8139 # extra space).
8140 freebsd2.2*)
8141 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8142 hardcode_libdir_flag_spec='-R$libdir'
8143 hardcode_direct=yes
8144 hardcode_shlibpath_var=no
8147 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8148 freebsd2*)
8149 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8150 hardcode_direct=yes
8151 hardcode_minus_L=yes
8152 hardcode_shlibpath_var=no
8155 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8156 freebsd* | dragonfly*)
8157 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8158 hardcode_libdir_flag_spec='-R$libdir'
8159 hardcode_direct=yes
8160 hardcode_shlibpath_var=no
8163 hpux9*)
8164 if test "$GCC" = yes; then
8165 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'
8166 else
8167 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'
8169 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8170 hardcode_libdir_separator=:
8171 hardcode_direct=yes
8173 # hardcode_minus_L: Not really in the search PATH,
8174 # but as the default location of the library.
8175 hardcode_minus_L=yes
8176 export_dynamic_flag_spec='${wl}-E'
8179 hpux10*)
8180 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8181 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8182 else
8183 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8185 if test "$with_gnu_ld" = no; then
8186 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8187 hardcode_libdir_separator=:
8189 hardcode_direct=yes
8190 export_dynamic_flag_spec='${wl}-E'
8192 # hardcode_minus_L: Not really in the search PATH,
8193 # but as the default location of the library.
8194 hardcode_minus_L=yes
8198 hpux11*)
8199 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8200 case $host_cpu in
8201 hppa*64*)
8202 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8204 ia64*)
8205 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8208 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8210 esac
8211 else
8212 case $host_cpu in
8213 hppa*64*)
8214 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8216 ia64*)
8217 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8220 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8222 esac
8224 if test "$with_gnu_ld" = no; then
8225 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8226 hardcode_libdir_separator=:
8228 case $host_cpu in
8229 hppa*64*|ia64*)
8230 hardcode_libdir_flag_spec_ld='+b $libdir'
8231 hardcode_direct=no
8232 hardcode_shlibpath_var=no
8235 hardcode_direct=yes
8236 export_dynamic_flag_spec='${wl}-E'
8238 # hardcode_minus_L: Not really in the search PATH,
8239 # but as the default location of the library.
8240 hardcode_minus_L=yes
8242 esac
8246 irix5* | irix6* | nonstopux*)
8247 if test "$GCC" = yes; then
8248 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'
8249 else
8250 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'
8251 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8253 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8254 hardcode_libdir_separator=:
8255 link_all_deplibs=yes
8258 netbsd*)
8259 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8260 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8261 else
8262 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8264 hardcode_libdir_flag_spec='-R$libdir'
8265 hardcode_direct=yes
8266 hardcode_shlibpath_var=no
8269 newsos6)
8270 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8271 hardcode_direct=yes
8272 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8273 hardcode_libdir_separator=:
8274 hardcode_shlibpath_var=no
8277 openbsd*)
8278 if test -f /usr/libexec/ld.so; then
8279 hardcode_direct=yes
8280 hardcode_shlibpath_var=no
8281 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8282 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8283 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8284 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8285 export_dynamic_flag_spec='${wl}-E'
8286 else
8287 case $host_os in
8288 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8289 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8290 hardcode_libdir_flag_spec='-R$libdir'
8293 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8294 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8296 esac
8298 else
8299 ld_shlibs=no
8303 os2*)
8304 hardcode_libdir_flag_spec='-L$libdir'
8305 hardcode_minus_L=yes
8306 allow_undefined_flag=unsupported
8307 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'
8308 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8311 osf3*)
8312 if test "$GCC" = yes; then
8313 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8314 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'
8315 else
8316 allow_undefined_flag=' -expect_unresolved \*'
8317 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'
8319 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8320 hardcode_libdir_separator=:
8323 osf4* | osf5*) # as osf3* with the addition of -msym flag
8324 if test "$GCC" = yes; then
8325 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8326 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'
8327 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8328 else
8329 allow_undefined_flag=' -expect_unresolved \*'
8330 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'
8331 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8332 $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'
8334 # Both c and cxx compiler support -rpath directly
8335 hardcode_libdir_flag_spec='-rpath $libdir'
8337 hardcode_libdir_separator=:
8340 solaris*)
8341 no_undefined_flag=' -z text'
8342 if test "$GCC" = yes; then
8343 wlarc='${wl}'
8344 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8345 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8346 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8347 else
8348 wlarc=''
8349 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8350 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8351 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8353 hardcode_libdir_flag_spec='-R$libdir'
8354 hardcode_shlibpath_var=no
8355 case $host_os in
8356 solaris2.[0-5] | solaris2.[0-5].*) ;;
8358 # The compiler driver will combine and reorder linker options,
8359 # but understands `-z linker_flag'. GCC discards it without `$wl',
8360 # but is careful enough not to reorder.
8361 # Supported since Solaris 2.6 (maybe 2.5.1?)
8362 if test "$GCC" = yes; then
8363 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8364 else
8365 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8368 esac
8369 link_all_deplibs=yes
8372 sunos4*)
8373 if test "x$host_vendor" = xsequent; then
8374 # Use $CC to link under sequent, because it throws in some extra .o
8375 # files that make .init and .fini sections work.
8376 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8377 else
8378 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8380 hardcode_libdir_flag_spec='-L$libdir'
8381 hardcode_direct=yes
8382 hardcode_minus_L=yes
8383 hardcode_shlibpath_var=no
8386 sysv4)
8387 case $host_vendor in
8388 sni)
8389 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8390 hardcode_direct=yes # is this really true???
8392 siemens)
8393 ## LD is ld it makes a PLAMLIB
8394 ## CC just makes a GrossModule.
8395 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8396 reload_cmds='$CC -r -o $output$reload_objs'
8397 hardcode_direct=no
8399 motorola)
8400 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8401 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8403 esac
8404 runpath_var='LD_RUN_PATH'
8405 hardcode_shlibpath_var=no
8408 sysv4.3*)
8409 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8410 hardcode_shlibpath_var=no
8411 export_dynamic_flag_spec='-Bexport'
8414 sysv4*MP*)
8415 if test -d /usr/nec; then
8416 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8417 hardcode_shlibpath_var=no
8418 runpath_var=LD_RUN_PATH
8419 hardcode_runpath_var=yes
8420 ld_shlibs=yes
8424 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
8425 no_undefined_flag='${wl}-z,text'
8426 archive_cmds_need_lc=no
8427 hardcode_shlibpath_var=no
8428 runpath_var='LD_RUN_PATH'
8430 if test "$GCC" = yes; then
8431 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8432 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8433 else
8434 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8435 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8439 sysv5* | sco3.2v5* | sco5v6*)
8440 # Note: We can NOT use -z defs as we might desire, because we do not
8441 # link with -lc, and that would cause any symbols used from libc to
8442 # always be unresolved, which means just about no library would
8443 # ever link correctly. If we're not using GNU ld we use -z text
8444 # though, which does catch some bad symbols but isn't as heavy-handed
8445 # as -z defs.
8446 no_undefined_flag='${wl}-z,text'
8447 allow_undefined_flag='${wl}-z,nodefs'
8448 archive_cmds_need_lc=no
8449 hardcode_shlibpath_var=no
8450 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
8451 hardcode_libdir_separator=':'
8452 link_all_deplibs=yes
8453 export_dynamic_flag_spec='${wl}-Bexport'
8454 runpath_var='LD_RUN_PATH'
8456 if test "$GCC" = yes; then
8457 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8458 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8459 else
8460 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8461 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8465 uts4*)
8466 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8467 hardcode_libdir_flag_spec='-L$libdir'
8468 hardcode_shlibpath_var=no
8472 ld_shlibs=no
8474 esac
8477 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8478 echo "${ECHO_T}$ld_shlibs" >&6; }
8479 test "$ld_shlibs" = no && can_build_shared=no
8482 # Do we need to explicitly link libc?
8484 case "x$archive_cmds_need_lc" in
8485 x|xyes)
8486 # Assume -lc should be added
8487 archive_cmds_need_lc=yes
8489 if test "$enable_shared" = yes && test "$GCC" = yes; then
8490 case $archive_cmds in
8491 *'~'*)
8492 # FIXME: we may have to deal with multi-command sequences.
8494 '$CC '*)
8495 # Test whether the compiler implicitly links with -lc since on some
8496 # systems, -lgcc has to come before -lc. If gcc already passes -lc
8497 # to ld, don't add -lc before -lgcc.
8498 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8499 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
8500 $rm conftest*
8501 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8503 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8504 (eval $ac_compile) 2>&5
8505 ac_status=$?
8506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8507 (exit $ac_status); } 2>conftest.err; then
8508 soname=conftest
8509 lib=conftest
8510 libobjs=conftest.$ac_objext
8511 deplibs=
8512 wl=$lt_prog_compiler_wl
8513 pic_flag=$lt_prog_compiler_pic
8514 compiler_flags=-v
8515 linker_flags=-v
8516 verstring=
8517 output_objdir=.
8518 libname=conftest
8519 lt_save_allow_undefined_flag=$allow_undefined_flag
8520 allow_undefined_flag=
8521 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
8522 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8523 ac_status=$?
8524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8525 (exit $ac_status); }
8526 then
8527 archive_cmds_need_lc=no
8528 else
8529 archive_cmds_need_lc=yes
8531 allow_undefined_flag=$lt_save_allow_undefined_flag
8532 else
8533 cat conftest.err 1>&5
8535 $rm conftest*
8536 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8537 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
8539 esac
8542 esac
8544 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8545 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8546 library_names_spec=
8547 libname_spec='lib$name'
8548 soname_spec=
8549 shrext_cmds=".so"
8550 postinstall_cmds=
8551 postuninstall_cmds=
8552 finish_cmds=
8553 finish_eval=
8554 shlibpath_var=
8555 shlibpath_overrides_runpath=unknown
8556 version_type=none
8557 dynamic_linker="$host_os ld.so"
8558 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8560 if test "$GCC" = yes; then
8561 case $host_os in
8562 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
8563 *) lt_awk_arg="/^libraries:/" ;;
8564 esac
8565 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8566 if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
8567 # if the path contains ";" then we assume it to be the separator
8568 # otherwise default to the standard path separator (i.e. ":") - it is
8569 # assumed that no part of a normal pathname contains ";" but that should
8570 # okay in the real world where ";" in dirpaths is itself problematic.
8571 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
8572 else
8573 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8575 # Ok, now we have the path, separated by spaces, we can step through it
8576 # and add multilib dir if necessary.
8577 lt_tmp_lt_search_path_spec=
8578 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
8579 for lt_sys_path in $lt_search_path_spec; do
8580 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
8581 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
8582 else
8583 test -d "$lt_sys_path" && \
8584 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
8586 done
8587 lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
8588 BEGIN {RS=" "; FS="/|\n";} {
8589 lt_foo="";
8590 lt_count=0;
8591 for (lt_i = NF; lt_i > 0; lt_i--) {
8592 if ($lt_i != "" && $lt_i != ".") {
8593 if ($lt_i == "..") {
8594 lt_count++;
8595 } else {
8596 if (lt_count == 0) {
8597 lt_foo="/" $lt_i lt_foo;
8598 } else {
8599 lt_count--;
8604 if (lt_foo != "") { lt_freq[lt_foo]++; }
8605 if (lt_freq[lt_foo] == 1) { print lt_foo; }
8607 sys_lib_search_path_spec=`echo $lt_search_path_spec`
8608 else
8609 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8611 need_lib_prefix=unknown
8612 hardcode_into_libs=no
8614 # when you set need_version to no, make sure it does not cause -set_version
8615 # flags to be left without arguments
8616 need_version=unknown
8618 case $host_os in
8619 aix3*)
8620 version_type=linux
8621 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8622 shlibpath_var=LIBPATH
8624 # AIX 3 has no versioning support, so we append a major version to the name.
8625 soname_spec='${libname}${release}${shared_ext}$major'
8628 aix4* | aix5*)
8629 version_type=linux
8630 need_lib_prefix=no
8631 need_version=no
8632 hardcode_into_libs=yes
8633 if test "$host_cpu" = ia64; then
8634 # AIX 5 supports IA64
8635 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8636 shlibpath_var=LD_LIBRARY_PATH
8637 else
8638 # With GCC up to 2.95.x, collect2 would create an import file
8639 # for dependence libraries. The import file would start with
8640 # the line `#! .'. This would cause the generated library to
8641 # depend on `.', always an invalid library. This was fixed in
8642 # development snapshots of GCC prior to 3.0.
8643 case $host_os in
8644 aix4 | aix4.[01] | aix4.[01].*)
8645 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8646 echo ' yes '
8647 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8649 else
8650 can_build_shared=no
8653 esac
8654 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8655 # soname into executable. Probably we can add versioning support to
8656 # collect2, so additional links can be useful in future.
8657 if test "$aix_use_runtimelinking" = yes; then
8658 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8659 # instead of lib<name>.a to let people know that these are not
8660 # typical AIX shared libraries.
8661 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8662 else
8663 # We preserve .a as extension for shared libraries through AIX4.2
8664 # and later when we are not doing run time linking.
8665 library_names_spec='${libname}${release}.a $libname.a'
8666 soname_spec='${libname}${release}${shared_ext}$major'
8668 shlibpath_var=LIBPATH
8672 amigaos*)
8673 library_names_spec='$libname.ixlibrary $libname.a'
8674 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8675 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'
8678 beos*)
8679 library_names_spec='${libname}${shared_ext}'
8680 dynamic_linker="$host_os ld.so"
8681 shlibpath_var=LIBRARY_PATH
8684 bsdi[45]*)
8685 version_type=linux
8686 need_version=no
8687 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8688 soname_spec='${libname}${release}${shared_ext}$major'
8689 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8690 shlibpath_var=LD_LIBRARY_PATH
8691 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8692 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8693 # the default ld.so.conf also contains /usr/contrib/lib and
8694 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8695 # libtool to hard-code these into programs
8698 cygwin* | mingw* | pw32*)
8699 version_type=windows
8700 shrext_cmds=".dll"
8701 need_version=no
8702 need_lib_prefix=no
8704 case $GCC,$host_os in
8705 yes,cygwin* | yes,mingw* | yes,pw32*)
8706 library_names_spec='$libname.dll.a'
8707 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8708 postinstall_cmds='base_file=`basename \${file}`~
8709 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8710 dldir=$destdir/`dirname \$dlpath`~
8711 test -d \$dldir || mkdir -p \$dldir~
8712 $install_prog $dir/$dlname \$dldir/$dlname~
8713 chmod a+x \$dldir/$dlname'
8714 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8715 dlpath=$dir/\$dldll~
8716 $rm \$dlpath'
8717 shlibpath_overrides_runpath=yes
8719 case $host_os in
8720 cygwin*)
8721 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8722 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8723 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8725 mingw*)
8726 # MinGW DLLs use traditional 'lib' prefix
8727 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8728 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8729 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8730 # It is most probably a Windows format PATH printed by
8731 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8732 # path with ; separators, and with drive letters. We can handle the
8733 # drive letters (cygwin fileutils understands them), so leave them,
8734 # especially as we might pass files found there to a mingw objdump,
8735 # which wouldn't understand a cygwinified path. Ahh.
8736 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8737 else
8738 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8741 pw32*)
8742 # pw32 DLLs use 'pw' prefix rather than 'lib'
8743 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8745 esac
8749 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8751 esac
8752 dynamic_linker='Win32 ld.exe'
8753 # FIXME: first we should search . and the directory the executable is in
8754 shlibpath_var=PATH
8757 darwin* | rhapsody*)
8758 dynamic_linker="$host_os dyld"
8759 version_type=darwin
8760 need_lib_prefix=no
8761 need_version=no
8762 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8763 soname_spec='${libname}${release}${major}$shared_ext'
8764 shlibpath_overrides_runpath=yes
8765 shlibpath_var=DYLD_LIBRARY_PATH
8766 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
8768 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
8769 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8772 dgux*)
8773 version_type=linux
8774 need_lib_prefix=no
8775 need_version=no
8776 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8777 soname_spec='${libname}${release}${shared_ext}$major'
8778 shlibpath_var=LD_LIBRARY_PATH
8781 freebsd1*)
8782 dynamic_linker=no
8785 freebsd* | dragonfly*)
8786 # DragonFly does not have aout. When/if they implement a new
8787 # versioning mechanism, adjust this.
8788 if test -x /usr/bin/objformat; then
8789 objformat=`/usr/bin/objformat`
8790 else
8791 case $host_os in
8792 freebsd[123]*) objformat=aout ;;
8793 *) objformat=elf ;;
8794 esac
8796 version_type=freebsd-$objformat
8797 case $version_type in
8798 freebsd-elf*)
8799 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8800 need_version=no
8801 need_lib_prefix=no
8803 freebsd-*)
8804 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8805 need_version=yes
8807 esac
8808 shlibpath_var=LD_LIBRARY_PATH
8809 case $host_os in
8810 freebsd2*)
8811 shlibpath_overrides_runpath=yes
8813 freebsd3.[01]* | freebsdelf3.[01]*)
8814 shlibpath_overrides_runpath=yes
8815 hardcode_into_libs=yes
8817 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8818 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8819 shlibpath_overrides_runpath=no
8820 hardcode_into_libs=yes
8822 *) # from 4.6 on, and DragonFly
8823 shlibpath_overrides_runpath=yes
8824 hardcode_into_libs=yes
8826 esac
8829 gnu*)
8830 version_type=linux
8831 need_lib_prefix=no
8832 need_version=no
8833 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8834 soname_spec='${libname}${release}${shared_ext}$major'
8835 shlibpath_var=LD_LIBRARY_PATH
8836 hardcode_into_libs=yes
8839 hpux9* | hpux10* | hpux11*)
8840 # Give a soname corresponding to the major version so that dld.sl refuses to
8841 # link against other versions.
8842 version_type=sunos
8843 need_lib_prefix=no
8844 need_version=no
8845 case $host_cpu in
8846 ia64*)
8847 shrext_cmds='.so'
8848 hardcode_into_libs=yes
8849 dynamic_linker="$host_os dld.so"
8850 shlibpath_var=LD_LIBRARY_PATH
8851 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8852 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8853 soname_spec='${libname}${release}${shared_ext}$major'
8854 if test "X$HPUX_IA64_MODE" = X32; then
8855 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8856 else
8857 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8859 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8861 hppa*64*)
8862 shrext_cmds='.sl'
8863 hardcode_into_libs=yes
8864 dynamic_linker="$host_os dld.sl"
8865 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8866 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8867 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8868 soname_spec='${libname}${release}${shared_ext}$major'
8869 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8870 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8873 shrext_cmds='.sl'
8874 dynamic_linker="$host_os dld.sl"
8875 shlibpath_var=SHLIB_PATH
8876 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8877 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8878 soname_spec='${libname}${release}${shared_ext}$major'
8880 esac
8881 # HP-UX runs *really* slowly unless shared libraries are mode 555.
8882 postinstall_cmds='chmod 555 $lib'
8885 interix[3-9]*)
8886 version_type=linux
8887 need_lib_prefix=no
8888 need_version=no
8889 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8890 soname_spec='${libname}${release}${shared_ext}$major'
8891 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8892 shlibpath_var=LD_LIBRARY_PATH
8893 shlibpath_overrides_runpath=no
8894 hardcode_into_libs=yes
8897 irix5* | irix6* | nonstopux*)
8898 case $host_os in
8899 nonstopux*) version_type=nonstopux ;;
8901 if test "$lt_cv_prog_gnu_ld" = yes; then
8902 version_type=linux
8903 else
8904 version_type=irix
8905 fi ;;
8906 esac
8907 need_lib_prefix=no
8908 need_version=no
8909 soname_spec='${libname}${release}${shared_ext}$major'
8910 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8911 case $host_os in
8912 irix5* | nonstopux*)
8913 libsuff= shlibsuff=
8916 case $LD in # libtool.m4 will add one of these switches to LD
8917 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8918 libsuff= shlibsuff= libmagic=32-bit;;
8919 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8920 libsuff=32 shlibsuff=N32 libmagic=N32;;
8921 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8922 libsuff=64 shlibsuff=64 libmagic=64-bit;;
8923 *) libsuff= shlibsuff= libmagic=never-match;;
8924 esac
8926 esac
8927 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8928 shlibpath_overrides_runpath=no
8929 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8930 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8931 hardcode_into_libs=yes
8934 # No shared lib support for Linux oldld, aout, or coff.
8935 linux*oldld* | linux*aout* | linux*coff*)
8936 dynamic_linker=no
8939 # This must be Linux ELF.
8940 linux* | k*bsd*-gnu)
8941 version_type=linux
8942 need_lib_prefix=no
8943 need_version=no
8944 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8945 soname_spec='${libname}${release}${shared_ext}$major'
8946 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8947 shlibpath_var=LD_LIBRARY_PATH
8948 shlibpath_overrides_runpath=no
8949 # This implies no fast_install, which is unacceptable.
8950 # Some rework will be needed to allow for fast_install
8951 # before this can be enabled.
8952 hardcode_into_libs=yes
8954 # Append ld.so.conf contents to the search path
8955 if test -f /etc/ld.so.conf; then
8956 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' ' '`
8957 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
8960 # We used to test for /lib/ld.so.1 and disable shared libraries on
8961 # powerpc, because MkLinux only supported shared libraries with the
8962 # GNU dynamic linker. Since this was broken with cross compilers,
8963 # most powerpc-linux boxes support dynamic linking these days and
8964 # people can always --disable-shared, the test was removed, and we
8965 # assume the GNU/Linux dynamic linker is in use.
8966 dynamic_linker='GNU/Linux ld.so'
8969 netbsd*)
8970 version_type=sunos
8971 need_lib_prefix=no
8972 need_version=no
8973 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8974 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8975 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8976 dynamic_linker='NetBSD (a.out) ld.so'
8977 else
8978 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8979 soname_spec='${libname}${release}${shared_ext}$major'
8980 dynamic_linker='NetBSD ld.elf_so'
8982 shlibpath_var=LD_LIBRARY_PATH
8983 shlibpath_overrides_runpath=yes
8984 hardcode_into_libs=yes
8987 newsos6)
8988 version_type=linux
8989 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8990 shlibpath_var=LD_LIBRARY_PATH
8991 shlibpath_overrides_runpath=yes
8994 nto-qnx*)
8995 version_type=linux
8996 need_lib_prefix=no
8997 need_version=no
8998 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8999 soname_spec='${libname}${release}${shared_ext}$major'
9000 shlibpath_var=LD_LIBRARY_PATH
9001 shlibpath_overrides_runpath=yes
9004 openbsd*)
9005 version_type=sunos
9006 sys_lib_dlsearch_path_spec="/usr/lib"
9007 need_lib_prefix=no
9008 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9009 case $host_os in
9010 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9011 *) need_version=no ;;
9012 esac
9013 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9014 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9015 shlibpath_var=LD_LIBRARY_PATH
9016 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9017 case $host_os in
9018 openbsd2.[89] | openbsd2.[89].*)
9019 shlibpath_overrides_runpath=no
9022 shlibpath_overrides_runpath=yes
9024 esac
9025 else
9026 shlibpath_overrides_runpath=yes
9030 os2*)
9031 libname_spec='$name'
9032 shrext_cmds=".dll"
9033 need_lib_prefix=no
9034 library_names_spec='$libname${shared_ext} $libname.a'
9035 dynamic_linker='OS/2 ld.exe'
9036 shlibpath_var=LIBPATH
9039 osf3* | osf4* | osf5*)
9040 version_type=osf
9041 need_lib_prefix=no
9042 need_version=no
9043 soname_spec='${libname}${release}${shared_ext}$major'
9044 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9045 shlibpath_var=LD_LIBRARY_PATH
9046 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9047 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9050 rdos*)
9051 dynamic_linker=no
9054 solaris*)
9055 version_type=linux
9056 need_lib_prefix=no
9057 need_version=no
9058 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9059 soname_spec='${libname}${release}${shared_ext}$major'
9060 shlibpath_var=LD_LIBRARY_PATH
9061 shlibpath_overrides_runpath=yes
9062 hardcode_into_libs=yes
9063 # ldd complains unless libraries are executable
9064 postinstall_cmds='chmod +x $lib'
9067 sunos4*)
9068 version_type=sunos
9069 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9070 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9071 shlibpath_var=LD_LIBRARY_PATH
9072 shlibpath_overrides_runpath=yes
9073 if test "$with_gnu_ld" = yes; then
9074 need_lib_prefix=no
9076 need_version=yes
9079 sysv4 | sysv4.3*)
9080 version_type=linux
9081 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9082 soname_spec='${libname}${release}${shared_ext}$major'
9083 shlibpath_var=LD_LIBRARY_PATH
9084 case $host_vendor in
9085 sni)
9086 shlibpath_overrides_runpath=no
9087 need_lib_prefix=no
9088 export_dynamic_flag_spec='${wl}-Blargedynsym'
9089 runpath_var=LD_RUN_PATH
9091 siemens)
9092 need_lib_prefix=no
9094 motorola)
9095 need_lib_prefix=no
9096 need_version=no
9097 shlibpath_overrides_runpath=no
9098 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9100 esac
9103 sysv4*MP*)
9104 if test -d /usr/nec ;then
9105 version_type=linux
9106 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9107 soname_spec='$libname${shared_ext}.$major'
9108 shlibpath_var=LD_LIBRARY_PATH
9112 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9113 version_type=freebsd-elf
9114 need_lib_prefix=no
9115 need_version=no
9116 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9117 soname_spec='${libname}${release}${shared_ext}$major'
9118 shlibpath_var=LD_LIBRARY_PATH
9119 hardcode_into_libs=yes
9120 if test "$with_gnu_ld" = yes; then
9121 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9122 shlibpath_overrides_runpath=no
9123 else
9124 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9125 shlibpath_overrides_runpath=yes
9126 case $host_os in
9127 sco3.2v5*)
9128 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9130 esac
9132 sys_lib_dlsearch_path_spec='/usr/lib'
9135 uts4*)
9136 version_type=linux
9137 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9138 soname_spec='${libname}${release}${shared_ext}$major'
9139 shlibpath_var=LD_LIBRARY_PATH
9143 dynamic_linker=no
9145 esac
9146 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9147 echo "${ECHO_T}$dynamic_linker" >&6; }
9148 test "$dynamic_linker" = no && can_build_shared=no
9150 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9151 if test "$GCC" = yes; then
9152 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9155 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9156 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
9157 hardcode_action=
9158 if test -n "$hardcode_libdir_flag_spec" || \
9159 test -n "$runpath_var" || \
9160 test "X$hardcode_automatic" = "Xyes" ; then
9162 # We can hardcode non-existant directories.
9163 if test "$hardcode_direct" != no &&
9164 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9165 # have to relink, otherwise we might link with an installed library
9166 # when we should be linking with a yet-to-be-installed one
9167 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9168 test "$hardcode_minus_L" != no; then
9169 # Linking always hardcodes the temporary library directory.
9170 hardcode_action=relink
9171 else
9172 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9173 hardcode_action=immediate
9175 else
9176 # We cannot hardcode anything, or else we can only hardcode existing
9177 # directories.
9178 hardcode_action=unsupported
9180 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
9181 echo "${ECHO_T}$hardcode_action" >&6; }
9183 if test "$hardcode_action" = relink; then
9184 # Fast installation is not supported
9185 enable_fast_install=no
9186 elif test "$shlibpath_overrides_runpath" = yes ||
9187 test "$enable_shared" = no; then
9188 # Fast installation is not necessary
9189 enable_fast_install=needless
9192 striplib=
9193 old_striplib=
9194 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9195 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
9196 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9197 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9198 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9199 { echo "$as_me:$LINENO: result: yes" >&5
9200 echo "${ECHO_T}yes" >&6; }
9201 else
9202 # FIXME - insert some real tests, host_os isn't really good enough
9203 case $host_os in
9204 darwin*)
9205 if test -n "$STRIP" ; then
9206 striplib="$STRIP -x"
9207 old_striplib="$STRIP -S"
9208 { echo "$as_me:$LINENO: result: yes" >&5
9209 echo "${ECHO_T}yes" >&6; }
9210 else
9211 { echo "$as_me:$LINENO: result: no" >&5
9212 echo "${ECHO_T}no" >&6; }
9216 { echo "$as_me:$LINENO: result: no" >&5
9217 echo "${ECHO_T}no" >&6; }
9219 esac
9222 if test "x$enable_dlopen" != xyes; then
9223 enable_dlopen=unknown
9224 enable_dlopen_self=unknown
9225 enable_dlopen_self_static=unknown
9226 else
9227 lt_cv_dlopen=no
9228 lt_cv_dlopen_libs=
9230 case $host_os in
9231 beos*)
9232 lt_cv_dlopen="load_add_on"
9233 lt_cv_dlopen_libs=
9234 lt_cv_dlopen_self=yes
9237 mingw* | pw32*)
9238 lt_cv_dlopen="LoadLibrary"
9239 lt_cv_dlopen_libs=
9242 cygwin*)
9243 lt_cv_dlopen="dlopen"
9244 lt_cv_dlopen_libs=
9247 darwin*)
9248 # if libdl is installed we need to link against it
9249 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9250 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9251 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9252 echo $ECHO_N "(cached) $ECHO_C" >&6
9253 else
9254 ac_check_lib_save_LIBS=$LIBS
9255 LIBS="-ldl $LIBS"
9256 cat >conftest.$ac_ext <<_ACEOF
9257 /* confdefs.h. */
9258 _ACEOF
9259 cat confdefs.h >>conftest.$ac_ext
9260 cat >>conftest.$ac_ext <<_ACEOF
9261 /* end confdefs.h. */
9263 /* Override any GCC internal prototype to avoid an error.
9264 Use char because int might match the return type of a GCC
9265 builtin and then its argument prototype would still apply. */
9266 #ifdef __cplusplus
9267 extern "C"
9268 #endif
9269 char dlopen ();
9271 main ()
9273 return dlopen ();
9275 return 0;
9277 _ACEOF
9278 rm -f conftest.$ac_objext conftest$ac_exeext
9279 if { (ac_try="$ac_link"
9280 case "(($ac_try" in
9281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9282 *) ac_try_echo=$ac_try;;
9283 esac
9284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9285 (eval "$ac_link") 2>conftest.er1
9286 ac_status=$?
9287 grep -v '^ *+' conftest.er1 >conftest.err
9288 rm -f conftest.er1
9289 cat conftest.err >&5
9290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9291 (exit $ac_status); } && {
9292 test -z "$ac_c_werror_flag" ||
9293 test ! -s conftest.err
9294 } && test -s conftest$ac_exeext &&
9295 $as_test_x conftest$ac_exeext; then
9296 ac_cv_lib_dl_dlopen=yes
9297 else
9298 echo "$as_me: failed program was:" >&5
9299 sed 's/^/| /' conftest.$ac_ext >&5
9301 ac_cv_lib_dl_dlopen=no
9304 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9305 conftest$ac_exeext conftest.$ac_ext
9306 LIBS=$ac_check_lib_save_LIBS
9308 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9309 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9310 if test $ac_cv_lib_dl_dlopen = yes; then
9311 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9312 else
9314 lt_cv_dlopen="dyld"
9315 lt_cv_dlopen_libs=
9316 lt_cv_dlopen_self=yes
9323 { echo "$as_me:$LINENO: checking for shl_load" >&5
9324 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9325 if test "${ac_cv_func_shl_load+set}" = set; then
9326 echo $ECHO_N "(cached) $ECHO_C" >&6
9327 else
9328 cat >conftest.$ac_ext <<_ACEOF
9329 /* confdefs.h. */
9330 _ACEOF
9331 cat confdefs.h >>conftest.$ac_ext
9332 cat >>conftest.$ac_ext <<_ACEOF
9333 /* end confdefs.h. */
9334 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9335 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9336 #define shl_load innocuous_shl_load
9338 /* System header to define __stub macros and hopefully few prototypes,
9339 which can conflict with char shl_load (); below.
9340 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9341 <limits.h> exists even on freestanding compilers. */
9343 #ifdef __STDC__
9344 # include <limits.h>
9345 #else
9346 # include <assert.h>
9347 #endif
9349 #undef shl_load
9351 /* Override any GCC internal prototype to avoid an error.
9352 Use char because int might match the return type of a GCC
9353 builtin and then its argument prototype would still apply. */
9354 #ifdef __cplusplus
9355 extern "C"
9356 #endif
9357 char shl_load ();
9358 /* The GNU C library defines this for functions which it implements
9359 to always fail with ENOSYS. Some functions are actually named
9360 something starting with __ and the normal name is an alias. */
9361 #if defined __stub_shl_load || defined __stub___shl_load
9362 choke me
9363 #endif
9366 main ()
9368 return shl_load ();
9370 return 0;
9372 _ACEOF
9373 rm -f conftest.$ac_objext conftest$ac_exeext
9374 if { (ac_try="$ac_link"
9375 case "(($ac_try" in
9376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9377 *) ac_try_echo=$ac_try;;
9378 esac
9379 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9380 (eval "$ac_link") 2>conftest.er1
9381 ac_status=$?
9382 grep -v '^ *+' conftest.er1 >conftest.err
9383 rm -f conftest.er1
9384 cat conftest.err >&5
9385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9386 (exit $ac_status); } && {
9387 test -z "$ac_c_werror_flag" ||
9388 test ! -s conftest.err
9389 } && test -s conftest$ac_exeext &&
9390 $as_test_x conftest$ac_exeext; then
9391 ac_cv_func_shl_load=yes
9392 else
9393 echo "$as_me: failed program was:" >&5
9394 sed 's/^/| /' conftest.$ac_ext >&5
9396 ac_cv_func_shl_load=no
9399 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9400 conftest$ac_exeext conftest.$ac_ext
9402 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9403 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9404 if test $ac_cv_func_shl_load = yes; then
9405 lt_cv_dlopen="shl_load"
9406 else
9407 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9408 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9409 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9410 echo $ECHO_N "(cached) $ECHO_C" >&6
9411 else
9412 ac_check_lib_save_LIBS=$LIBS
9413 LIBS="-ldld $LIBS"
9414 cat >conftest.$ac_ext <<_ACEOF
9415 /* confdefs.h. */
9416 _ACEOF
9417 cat confdefs.h >>conftest.$ac_ext
9418 cat >>conftest.$ac_ext <<_ACEOF
9419 /* end confdefs.h. */
9421 /* Override any GCC internal prototype to avoid an error.
9422 Use char because int might match the return type of a GCC
9423 builtin and then its argument prototype would still apply. */
9424 #ifdef __cplusplus
9425 extern "C"
9426 #endif
9427 char shl_load ();
9429 main ()
9431 return shl_load ();
9433 return 0;
9435 _ACEOF
9436 rm -f conftest.$ac_objext conftest$ac_exeext
9437 if { (ac_try="$ac_link"
9438 case "(($ac_try" in
9439 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9440 *) ac_try_echo=$ac_try;;
9441 esac
9442 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9443 (eval "$ac_link") 2>conftest.er1
9444 ac_status=$?
9445 grep -v '^ *+' conftest.er1 >conftest.err
9446 rm -f conftest.er1
9447 cat conftest.err >&5
9448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9449 (exit $ac_status); } && {
9450 test -z "$ac_c_werror_flag" ||
9451 test ! -s conftest.err
9452 } && test -s conftest$ac_exeext &&
9453 $as_test_x conftest$ac_exeext; then
9454 ac_cv_lib_dld_shl_load=yes
9455 else
9456 echo "$as_me: failed program was:" >&5
9457 sed 's/^/| /' conftest.$ac_ext >&5
9459 ac_cv_lib_dld_shl_load=no
9462 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9463 conftest$ac_exeext conftest.$ac_ext
9464 LIBS=$ac_check_lib_save_LIBS
9466 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9467 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9468 if test $ac_cv_lib_dld_shl_load = yes; then
9469 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9470 else
9471 { echo "$as_me:$LINENO: checking for dlopen" >&5
9472 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
9473 if test "${ac_cv_func_dlopen+set}" = set; then
9474 echo $ECHO_N "(cached) $ECHO_C" >&6
9475 else
9476 cat >conftest.$ac_ext <<_ACEOF
9477 /* confdefs.h. */
9478 _ACEOF
9479 cat confdefs.h >>conftest.$ac_ext
9480 cat >>conftest.$ac_ext <<_ACEOF
9481 /* end confdefs.h. */
9482 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9483 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9484 #define dlopen innocuous_dlopen
9486 /* System header to define __stub macros and hopefully few prototypes,
9487 which can conflict with char dlopen (); below.
9488 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9489 <limits.h> exists even on freestanding compilers. */
9491 #ifdef __STDC__
9492 # include <limits.h>
9493 #else
9494 # include <assert.h>
9495 #endif
9497 #undef dlopen
9499 /* Override any GCC internal prototype to avoid an error.
9500 Use char because int might match the return type of a GCC
9501 builtin and then its argument prototype would still apply. */
9502 #ifdef __cplusplus
9503 extern "C"
9504 #endif
9505 char dlopen ();
9506 /* The GNU C library defines this for functions which it implements
9507 to always fail with ENOSYS. Some functions are actually named
9508 something starting with __ and the normal name is an alias. */
9509 #if defined __stub_dlopen || defined __stub___dlopen
9510 choke me
9511 #endif
9514 main ()
9516 return dlopen ();
9518 return 0;
9520 _ACEOF
9521 rm -f conftest.$ac_objext conftest$ac_exeext
9522 if { (ac_try="$ac_link"
9523 case "(($ac_try" in
9524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9525 *) ac_try_echo=$ac_try;;
9526 esac
9527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9528 (eval "$ac_link") 2>conftest.er1
9529 ac_status=$?
9530 grep -v '^ *+' conftest.er1 >conftest.err
9531 rm -f conftest.er1
9532 cat conftest.err >&5
9533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9534 (exit $ac_status); } && {
9535 test -z "$ac_c_werror_flag" ||
9536 test ! -s conftest.err
9537 } && test -s conftest$ac_exeext &&
9538 $as_test_x conftest$ac_exeext; then
9539 ac_cv_func_dlopen=yes
9540 else
9541 echo "$as_me: failed program was:" >&5
9542 sed 's/^/| /' conftest.$ac_ext >&5
9544 ac_cv_func_dlopen=no
9547 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9548 conftest$ac_exeext conftest.$ac_ext
9550 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9551 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
9552 if test $ac_cv_func_dlopen = yes; then
9553 lt_cv_dlopen="dlopen"
9554 else
9555 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9556 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9557 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9558 echo $ECHO_N "(cached) $ECHO_C" >&6
9559 else
9560 ac_check_lib_save_LIBS=$LIBS
9561 LIBS="-ldl $LIBS"
9562 cat >conftest.$ac_ext <<_ACEOF
9563 /* confdefs.h. */
9564 _ACEOF
9565 cat confdefs.h >>conftest.$ac_ext
9566 cat >>conftest.$ac_ext <<_ACEOF
9567 /* end confdefs.h. */
9569 /* Override any GCC internal prototype to avoid an error.
9570 Use char because int might match the return type of a GCC
9571 builtin and then its argument prototype would still apply. */
9572 #ifdef __cplusplus
9573 extern "C"
9574 #endif
9575 char dlopen ();
9577 main ()
9579 return dlopen ();
9581 return 0;
9583 _ACEOF
9584 rm -f conftest.$ac_objext conftest$ac_exeext
9585 if { (ac_try="$ac_link"
9586 case "(($ac_try" in
9587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9588 *) ac_try_echo=$ac_try;;
9589 esac
9590 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9591 (eval "$ac_link") 2>conftest.er1
9592 ac_status=$?
9593 grep -v '^ *+' conftest.er1 >conftest.err
9594 rm -f conftest.er1
9595 cat conftest.err >&5
9596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9597 (exit $ac_status); } && {
9598 test -z "$ac_c_werror_flag" ||
9599 test ! -s conftest.err
9600 } && test -s conftest$ac_exeext &&
9601 $as_test_x conftest$ac_exeext; then
9602 ac_cv_lib_dl_dlopen=yes
9603 else
9604 echo "$as_me: failed program was:" >&5
9605 sed 's/^/| /' conftest.$ac_ext >&5
9607 ac_cv_lib_dl_dlopen=no
9610 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9611 conftest$ac_exeext conftest.$ac_ext
9612 LIBS=$ac_check_lib_save_LIBS
9614 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9615 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9616 if test $ac_cv_lib_dl_dlopen = yes; then
9617 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9618 else
9619 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9620 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
9621 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9622 echo $ECHO_N "(cached) $ECHO_C" >&6
9623 else
9624 ac_check_lib_save_LIBS=$LIBS
9625 LIBS="-lsvld $LIBS"
9626 cat >conftest.$ac_ext <<_ACEOF
9627 /* confdefs.h. */
9628 _ACEOF
9629 cat confdefs.h >>conftest.$ac_ext
9630 cat >>conftest.$ac_ext <<_ACEOF
9631 /* end confdefs.h. */
9633 /* Override any GCC internal prototype to avoid an error.
9634 Use char because int might match the return type of a GCC
9635 builtin and then its argument prototype would still apply. */
9636 #ifdef __cplusplus
9637 extern "C"
9638 #endif
9639 char dlopen ();
9641 main ()
9643 return dlopen ();
9645 return 0;
9647 _ACEOF
9648 rm -f conftest.$ac_objext conftest$ac_exeext
9649 if { (ac_try="$ac_link"
9650 case "(($ac_try" in
9651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9652 *) ac_try_echo=$ac_try;;
9653 esac
9654 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9655 (eval "$ac_link") 2>conftest.er1
9656 ac_status=$?
9657 grep -v '^ *+' conftest.er1 >conftest.err
9658 rm -f conftest.er1
9659 cat conftest.err >&5
9660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9661 (exit $ac_status); } && {
9662 test -z "$ac_c_werror_flag" ||
9663 test ! -s conftest.err
9664 } && test -s conftest$ac_exeext &&
9665 $as_test_x conftest$ac_exeext; then
9666 ac_cv_lib_svld_dlopen=yes
9667 else
9668 echo "$as_me: failed program was:" >&5
9669 sed 's/^/| /' conftest.$ac_ext >&5
9671 ac_cv_lib_svld_dlopen=no
9674 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9675 conftest$ac_exeext conftest.$ac_ext
9676 LIBS=$ac_check_lib_save_LIBS
9678 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9679 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
9680 if test $ac_cv_lib_svld_dlopen = yes; then
9681 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9682 else
9683 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9684 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
9685 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9686 echo $ECHO_N "(cached) $ECHO_C" >&6
9687 else
9688 ac_check_lib_save_LIBS=$LIBS
9689 LIBS="-ldld $LIBS"
9690 cat >conftest.$ac_ext <<_ACEOF
9691 /* confdefs.h. */
9692 _ACEOF
9693 cat confdefs.h >>conftest.$ac_ext
9694 cat >>conftest.$ac_ext <<_ACEOF
9695 /* end confdefs.h. */
9697 /* Override any GCC internal prototype to avoid an error.
9698 Use char because int might match the return type of a GCC
9699 builtin and then its argument prototype would still apply. */
9700 #ifdef __cplusplus
9701 extern "C"
9702 #endif
9703 char dld_link ();
9705 main ()
9707 return dld_link ();
9709 return 0;
9711 _ACEOF
9712 rm -f conftest.$ac_objext conftest$ac_exeext
9713 if { (ac_try="$ac_link"
9714 case "(($ac_try" in
9715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9716 *) ac_try_echo=$ac_try;;
9717 esac
9718 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9719 (eval "$ac_link") 2>conftest.er1
9720 ac_status=$?
9721 grep -v '^ *+' conftest.er1 >conftest.err
9722 rm -f conftest.er1
9723 cat conftest.err >&5
9724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9725 (exit $ac_status); } && {
9726 test -z "$ac_c_werror_flag" ||
9727 test ! -s conftest.err
9728 } && test -s conftest$ac_exeext &&
9729 $as_test_x conftest$ac_exeext; then
9730 ac_cv_lib_dld_dld_link=yes
9731 else
9732 echo "$as_me: failed program was:" >&5
9733 sed 's/^/| /' conftest.$ac_ext >&5
9735 ac_cv_lib_dld_dld_link=no
9738 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9739 conftest$ac_exeext conftest.$ac_ext
9740 LIBS=$ac_check_lib_save_LIBS
9742 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9743 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
9744 if test $ac_cv_lib_dld_dld_link = yes; then
9745 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
9764 esac
9766 if test "x$lt_cv_dlopen" != xno; then
9767 enable_dlopen=yes
9768 else
9769 enable_dlopen=no
9772 case $lt_cv_dlopen in
9773 dlopen)
9774 save_CPPFLAGS="$CPPFLAGS"
9775 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9777 save_LDFLAGS="$LDFLAGS"
9778 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9780 save_LIBS="$LIBS"
9781 LIBS="$lt_cv_dlopen_libs $LIBS"
9783 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
9784 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
9785 if test "${lt_cv_dlopen_self+set}" = set; then
9786 echo $ECHO_N "(cached) $ECHO_C" >&6
9787 else
9788 if test "$cross_compiling" = yes; then :
9789 lt_cv_dlopen_self=cross
9790 else
9791 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9792 lt_status=$lt_dlunknown
9793 cat > conftest.$ac_ext <<EOF
9794 #line 9794 "configure"
9795 #include "confdefs.h"
9797 #if HAVE_DLFCN_H
9798 #include <dlfcn.h>
9799 #endif
9801 #include <stdio.h>
9803 #ifdef RTLD_GLOBAL
9804 # define LT_DLGLOBAL RTLD_GLOBAL
9805 #else
9806 # ifdef DL_GLOBAL
9807 # define LT_DLGLOBAL DL_GLOBAL
9808 # else
9809 # define LT_DLGLOBAL 0
9810 # endif
9811 #endif
9813 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9814 find out it does not work in some platform. */
9815 #ifndef LT_DLLAZY_OR_NOW
9816 # ifdef RTLD_LAZY
9817 # define LT_DLLAZY_OR_NOW RTLD_LAZY
9818 # else
9819 # ifdef DL_LAZY
9820 # define LT_DLLAZY_OR_NOW DL_LAZY
9821 # else
9822 # ifdef RTLD_NOW
9823 # define LT_DLLAZY_OR_NOW RTLD_NOW
9824 # else
9825 # ifdef DL_NOW
9826 # define LT_DLLAZY_OR_NOW DL_NOW
9827 # else
9828 # define LT_DLLAZY_OR_NOW 0
9829 # endif
9830 # endif
9831 # endif
9832 # endif
9833 #endif
9835 #ifdef __cplusplus
9836 extern "C" void exit (int);
9837 #endif
9839 void fnord() { int i=42;}
9840 int main ()
9842 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9843 int status = $lt_dlunknown;
9845 if (self)
9847 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9848 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9849 /* dlclose (self); */
9851 else
9852 puts (dlerror ());
9854 exit (status);
9857 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9858 (eval $ac_link) 2>&5
9859 ac_status=$?
9860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9861 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9862 (./conftest; exit; ) >&5 2>/dev/null
9863 lt_status=$?
9864 case x$lt_status in
9865 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9866 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9867 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
9868 esac
9869 else :
9870 # compilation failed
9871 lt_cv_dlopen_self=no
9874 rm -fr conftest*
9878 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
9879 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
9881 if test "x$lt_cv_dlopen_self" = xyes; then
9882 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
9883 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
9884 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
9885 if test "${lt_cv_dlopen_self_static+set}" = set; then
9886 echo $ECHO_N "(cached) $ECHO_C" >&6
9887 else
9888 if test "$cross_compiling" = yes; then :
9889 lt_cv_dlopen_self_static=cross
9890 else
9891 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9892 lt_status=$lt_dlunknown
9893 cat > conftest.$ac_ext <<EOF
9894 #line 9894 "configure"
9895 #include "confdefs.h"
9897 #if HAVE_DLFCN_H
9898 #include <dlfcn.h>
9899 #endif
9901 #include <stdio.h>
9903 #ifdef RTLD_GLOBAL
9904 # define LT_DLGLOBAL RTLD_GLOBAL
9905 #else
9906 # ifdef DL_GLOBAL
9907 # define LT_DLGLOBAL DL_GLOBAL
9908 # else
9909 # define LT_DLGLOBAL 0
9910 # endif
9911 #endif
9913 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9914 find out it does not work in some platform. */
9915 #ifndef LT_DLLAZY_OR_NOW
9916 # ifdef RTLD_LAZY
9917 # define LT_DLLAZY_OR_NOW RTLD_LAZY
9918 # else
9919 # ifdef DL_LAZY
9920 # define LT_DLLAZY_OR_NOW DL_LAZY
9921 # else
9922 # ifdef RTLD_NOW
9923 # define LT_DLLAZY_OR_NOW RTLD_NOW
9924 # else
9925 # ifdef DL_NOW
9926 # define LT_DLLAZY_OR_NOW DL_NOW
9927 # else
9928 # define LT_DLLAZY_OR_NOW 0
9929 # endif
9930 # endif
9931 # endif
9932 # endif
9933 #endif
9935 #ifdef __cplusplus
9936 extern "C" void exit (int);
9937 #endif
9939 void fnord() { int i=42;}
9940 int main ()
9942 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9943 int status = $lt_dlunknown;
9945 if (self)
9947 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9948 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9949 /* dlclose (self); */
9951 else
9952 puts (dlerror ());
9954 exit (status);
9957 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9958 (eval $ac_link) 2>&5
9959 ac_status=$?
9960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9961 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9962 (./conftest; exit; ) >&5 2>/dev/null
9963 lt_status=$?
9964 case x$lt_status in
9965 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
9966 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
9967 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
9968 esac
9969 else :
9970 # compilation failed
9971 lt_cv_dlopen_self_static=no
9974 rm -fr conftest*
9978 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
9979 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
9982 CPPFLAGS="$save_CPPFLAGS"
9983 LDFLAGS="$save_LDFLAGS"
9984 LIBS="$save_LIBS"
9986 esac
9988 case $lt_cv_dlopen_self in
9989 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
9990 *) enable_dlopen_self=unknown ;;
9991 esac
9993 case $lt_cv_dlopen_self_static in
9994 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
9995 *) enable_dlopen_self_static=unknown ;;
9996 esac
10000 # Report which library types will actually be built
10001 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10002 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
10003 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
10004 echo "${ECHO_T}$can_build_shared" >&6; }
10006 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10007 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
10008 test "$can_build_shared" = "no" && enable_shared=no
10010 # On AIX, shared libraries and static libraries use the same namespace, and
10011 # are all built from PIC.
10012 case $host_os in
10013 aix3*)
10014 test "$enable_shared" = yes && enable_static=no
10015 if test -n "$RANLIB"; then
10016 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10017 postinstall_cmds='$RANLIB $lib'
10021 aix4* | aix5*)
10022 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10023 test "$enable_shared" = yes && enable_static=no
10026 esac
10027 { echo "$as_me:$LINENO: result: $enable_shared" >&5
10028 echo "${ECHO_T}$enable_shared" >&6; }
10030 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10031 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
10032 # Make sure either enable_shared or enable_static is yes.
10033 test "$enable_shared" = yes || enable_static=yes
10034 { echo "$as_me:$LINENO: result: $enable_static" >&5
10035 echo "${ECHO_T}$enable_static" >&6; }
10037 # The else clause should only fire when bootstrapping the
10038 # libtool distribution, otherwise you forgot to ship ltmain.sh
10039 # with your package, and you will get complaints that there are
10040 # no rules to generate ltmain.sh.
10041 if test -f "$ltmain"; then
10042 # See if we are running on zsh, and set the options which allow our commands through
10043 # without removal of \ escapes.
10044 if test -n "${ZSH_VERSION+set}" ; then
10045 setopt NO_GLOB_SUBST
10047 # Now quote all the things that may contain metacharacters while being
10048 # careful not to overquote the AC_SUBSTed values. We take copies of the
10049 # variables and quote the copies for generation of the libtool script.
10050 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10051 SED SHELL STRIP \
10052 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10053 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10054 deplibs_check_method reload_flag reload_cmds need_locks \
10055 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10056 lt_cv_sys_global_symbol_to_c_name_address \
10057 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10058 old_postinstall_cmds old_postuninstall_cmds \
10059 compiler \
10060 CC \
10061 LD \
10062 lt_prog_compiler_wl \
10063 lt_prog_compiler_pic \
10064 lt_prog_compiler_static \
10065 lt_prog_compiler_no_builtin_flag \
10066 export_dynamic_flag_spec \
10067 thread_safe_flag_spec \
10068 whole_archive_flag_spec \
10069 enable_shared_with_static_runtimes \
10070 old_archive_cmds \
10071 old_archive_from_new_cmds \
10072 predep_objects \
10073 postdep_objects \
10074 predeps \
10075 postdeps \
10076 compiler_lib_search_path \
10077 archive_cmds \
10078 archive_expsym_cmds \
10079 postinstall_cmds \
10080 postuninstall_cmds \
10081 old_archive_from_expsyms_cmds \
10082 allow_undefined_flag \
10083 no_undefined_flag \
10084 export_symbols_cmds \
10085 hardcode_libdir_flag_spec \
10086 hardcode_libdir_flag_spec_ld \
10087 hardcode_libdir_separator \
10088 hardcode_automatic \
10089 module_cmds \
10090 module_expsym_cmds \
10091 lt_cv_prog_compiler_c_o \
10092 fix_srcfile_path \
10093 exclude_expsyms \
10094 include_expsyms; do
10096 case $var in
10097 old_archive_cmds | \
10098 old_archive_from_new_cmds | \
10099 archive_cmds | \
10100 archive_expsym_cmds | \
10101 module_cmds | \
10102 module_expsym_cmds | \
10103 old_archive_from_expsyms_cmds | \
10104 export_symbols_cmds | \
10105 extract_expsyms_cmds | reload_cmds | finish_cmds | \
10106 postinstall_cmds | postuninstall_cmds | \
10107 old_postinstall_cmds | old_postuninstall_cmds | \
10108 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10109 # Double-quote double-evaled strings.
10110 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10113 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10115 esac
10116 done
10118 case $lt_echo in
10119 *'\$0 --fallback-echo"')
10120 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10122 esac
10124 cfgfile="${ofile}T"
10125 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10126 $rm -f "$cfgfile"
10127 { echo "$as_me:$LINENO: creating $ofile" >&5
10128 echo "$as_me: creating $ofile" >&6;}
10130 cat <<__EOF__ >> "$cfgfile"
10131 #! $SHELL
10133 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10134 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10135 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
10137 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007
10138 # Free Software Foundation, Inc.
10140 # This file is part of GNU Libtool:
10141 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10143 # This program is free software; you can redistribute it and/or modify
10144 # it under the terms of the GNU General Public License as published by
10145 # the Free Software Foundation; either version 2 of the License, or
10146 # (at your option) any later version.
10148 # This program is distributed in the hope that it will be useful, but
10149 # WITHOUT ANY WARRANTY; without even the implied warranty of
10150 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
10151 # General Public License for more details.
10153 # You should have received a copy of the GNU General Public License
10154 # along with this program; if not, write to the Free Software
10155 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10157 # As a special exception to the GNU General Public License, if you
10158 # distribute this file as part of a program that contains a
10159 # configuration script generated by Autoconf, you may include it under
10160 # the same distribution terms that you use for the rest of that program.
10162 # A sed program that does not truncate output.
10163 SED=$lt_SED
10165 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
10166 Xsed="$SED -e 1s/^X//"
10168 # The HP-UX ksh and POSIX shell print the target directory to stdout
10169 # if CDPATH is set.
10170 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10172 # The names of the tagged configurations supported by this script.
10173 available_tags=
10175 # ### BEGIN LIBTOOL CONFIG
10177 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10179 # Shell to use when invoking shell scripts.
10180 SHELL=$lt_SHELL
10182 # Whether or not to build shared libraries.
10183 build_libtool_libs=$enable_shared
10185 # Whether or not to build static libraries.
10186 build_old_libs=$enable_static
10188 # Whether or not to add -lc for building shared libraries.
10189 build_libtool_need_lc=$archive_cmds_need_lc
10191 # Whether or not to disallow shared libs when runtime libs are static
10192 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10194 # Whether or not to optimize for fast installation.
10195 fast_install=$enable_fast_install
10197 # The host system.
10198 host_alias=$host_alias
10199 host=$host
10200 host_os=$host_os
10202 # The build system.
10203 build_alias=$build_alias
10204 build=$build
10205 build_os=$build_os
10207 # An echo program that does not interpret backslashes.
10208 echo=$lt_echo
10210 # The archiver.
10211 AR=$lt_AR
10212 AR_FLAGS=$lt_AR_FLAGS
10214 # A C compiler.
10215 LTCC=$lt_LTCC
10217 # LTCC compiler flags.
10218 LTCFLAGS=$lt_LTCFLAGS
10220 # A language-specific compiler.
10221 CC=$lt_compiler
10223 # Is the compiler the GNU C compiler?
10224 with_gcc=$GCC
10226 # An ERE matcher.
10227 EGREP=$lt_EGREP
10229 # The linker used to build libraries.
10230 LD=$lt_LD
10232 # Whether we need hard or soft links.
10233 LN_S=$lt_LN_S
10235 # A BSD-compatible nm program.
10236 NM=$lt_NM
10238 # A symbol stripping program
10239 STRIP=$lt_STRIP
10241 # Used to examine libraries when file_magic_cmd begins "file"
10242 MAGIC_CMD=$MAGIC_CMD
10244 # Used on cygwin: DLL creation program.
10245 DLLTOOL="$DLLTOOL"
10247 # Used on cygwin: object dumper.
10248 OBJDUMP="$OBJDUMP"
10250 # Used on cygwin: assembler.
10251 AS="$AS"
10253 # The name of the directory that contains temporary libtool files.
10254 objdir=$objdir
10256 # How to create reloadable object files.
10257 reload_flag=$lt_reload_flag
10258 reload_cmds=$lt_reload_cmds
10260 # How to pass a linker flag through the compiler.
10261 wl=$lt_lt_prog_compiler_wl
10263 # Object file suffix (normally "o").
10264 objext="$ac_objext"
10266 # Old archive suffix (normally "a").
10267 libext="$libext"
10269 # Shared library suffix (normally ".so").
10270 shrext_cmds='$shrext_cmds'
10272 # Executable file suffix (normally "").
10273 exeext="$exeext"
10275 # Additional compiler flags for building library objects.
10276 pic_flag=$lt_lt_prog_compiler_pic
10277 pic_mode=$pic_mode
10279 # What is the maximum length of a command?
10280 max_cmd_len=$lt_cv_sys_max_cmd_len
10282 # Does compiler simultaneously support -c and -o options?
10283 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10285 # Must we lock files when doing compilation?
10286 need_locks=$lt_need_locks
10288 # Do we need the lib prefix for modules?
10289 need_lib_prefix=$need_lib_prefix
10291 # Do we need a version for libraries?
10292 need_version=$need_version
10294 # Whether dlopen is supported.
10295 dlopen_support=$enable_dlopen
10297 # Whether dlopen of programs is supported.
10298 dlopen_self=$enable_dlopen_self
10300 # Whether dlopen of statically linked programs is supported.
10301 dlopen_self_static=$enable_dlopen_self_static
10303 # Compiler flag to prevent dynamic linking.
10304 link_static_flag=$lt_lt_prog_compiler_static
10306 # Compiler flag to turn off builtin functions.
10307 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10309 # Compiler flag to allow reflexive dlopens.
10310 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10312 # Compiler flag to generate shared objects directly from archives.
10313 whole_archive_flag_spec=$lt_whole_archive_flag_spec
10315 # Compiler flag to generate thread-safe objects.
10316 thread_safe_flag_spec=$lt_thread_safe_flag_spec
10318 # Library versioning type.
10319 version_type=$version_type
10321 # Format of library name prefix.
10322 libname_spec=$lt_libname_spec
10324 # List of archive names. First name is the real one, the rest are links.
10325 # The last name is the one that the linker finds with -lNAME.
10326 library_names_spec=$lt_library_names_spec
10328 # The coded name of the library, if different from the real name.
10329 soname_spec=$lt_soname_spec
10331 # Commands used to build and install an old-style archive.
10332 RANLIB=$lt_RANLIB
10333 old_archive_cmds=$lt_old_archive_cmds
10334 old_postinstall_cmds=$lt_old_postinstall_cmds
10335 old_postuninstall_cmds=$lt_old_postuninstall_cmds
10337 # Create an old-style archive from a shared archive.
10338 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10340 # Create a temporary old-style archive to link instead of a shared archive.
10341 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10343 # Commands used to build and install a shared archive.
10344 archive_cmds=$lt_archive_cmds
10345 archive_expsym_cmds=$lt_archive_expsym_cmds
10346 postinstall_cmds=$lt_postinstall_cmds
10347 postuninstall_cmds=$lt_postuninstall_cmds
10349 # Commands used to build a loadable module (assumed same as above if empty)
10350 module_cmds=$lt_module_cmds
10351 module_expsym_cmds=$lt_module_expsym_cmds
10353 # Commands to strip libraries.
10354 old_striplib=$lt_old_striplib
10355 striplib=$lt_striplib
10357 # Dependencies to place before the objects being linked to create a
10358 # shared library.
10359 predep_objects=$lt_predep_objects
10361 # Dependencies to place after the objects being linked to create a
10362 # shared library.
10363 postdep_objects=$lt_postdep_objects
10365 # Dependencies to place before the objects being linked to create a
10366 # shared library.
10367 predeps=$lt_predeps
10369 # Dependencies to place after the objects being linked to create a
10370 # shared library.
10371 postdeps=$lt_postdeps
10373 # The library search path used internally by the compiler when linking
10374 # a shared library.
10375 compiler_lib_search_path=$lt_compiler_lib_search_path
10377 # Method to check whether dependent libraries are shared objects.
10378 deplibs_check_method=$lt_deplibs_check_method
10380 # Command to use when deplibs_check_method == file_magic.
10381 file_magic_cmd=$lt_file_magic_cmd
10383 # Flag that allows shared libraries with undefined symbols to be built.
10384 allow_undefined_flag=$lt_allow_undefined_flag
10386 # Flag that forces no undefined symbols.
10387 no_undefined_flag=$lt_no_undefined_flag
10389 # Commands used to finish a libtool library installation in a directory.
10390 finish_cmds=$lt_finish_cmds
10392 # Same as above, but a single script fragment to be evaled but not shown.
10393 finish_eval=$lt_finish_eval
10395 # Take the output of nm and produce a listing of raw symbols and C names.
10396 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10398 # Transform the output of nm in a proper C declaration
10399 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10401 # Transform the output of nm in a C name address pair
10402 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10404 # This is the shared library runtime path variable.
10405 runpath_var=$runpath_var
10407 # This is the shared library path variable.
10408 shlibpath_var=$shlibpath_var
10410 # Is shlibpath searched before the hard-coded library search path?
10411 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10413 # How to hardcode a shared library path into an executable.
10414 hardcode_action=$hardcode_action
10416 # Whether we should hardcode library paths into libraries.
10417 hardcode_into_libs=$hardcode_into_libs
10419 # Flag to hardcode \$libdir into a binary during linking.
10420 # This must work even if \$libdir does not exist.
10421 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10423 # If ld is used when linking, flag to hardcode \$libdir into
10424 # a binary during linking. This must work even if \$libdir does
10425 # not exist.
10426 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10428 # Whether we need a single -rpath flag with a separated argument.
10429 hardcode_libdir_separator=$lt_hardcode_libdir_separator
10431 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10432 # resulting binary.
10433 hardcode_direct=$hardcode_direct
10435 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10436 # resulting binary.
10437 hardcode_minus_L=$hardcode_minus_L
10439 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10440 # the resulting binary.
10441 hardcode_shlibpath_var=$hardcode_shlibpath_var
10443 # Set to yes if building a shared library automatically hardcodes DIR into the library
10444 # and all subsequent libraries and executables linked against it.
10445 hardcode_automatic=$hardcode_automatic
10447 # Variables whose values should be saved in libtool wrapper scripts and
10448 # restored at relink time.
10449 variables_saved_for_relink="$variables_saved_for_relink"
10451 # Whether libtool must link a program against all its dependency libraries.
10452 link_all_deplibs=$link_all_deplibs
10454 # Compile-time system search path for libraries
10455 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10457 # Run-time system search path for libraries
10458 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10460 # Fix the shell variable \$srcfile for the compiler.
10461 fix_srcfile_path=$lt_fix_srcfile_path
10463 # Set to yes if exported symbols are required.
10464 always_export_symbols=$always_export_symbols
10466 # The commands to list exported symbols.
10467 export_symbols_cmds=$lt_export_symbols_cmds
10469 # The commands to extract the exported symbol list from a shared archive.
10470 extract_expsyms_cmds=$lt_extract_expsyms_cmds
10472 # Symbols that should not be listed in the preloaded symbols.
10473 exclude_expsyms=$lt_exclude_expsyms
10475 # Symbols that must always be exported.
10476 include_expsyms=$lt_include_expsyms
10478 # ### END LIBTOOL CONFIG
10480 __EOF__
10483 case $host_os in
10484 aix3*)
10485 cat <<\EOF >> "$cfgfile"
10487 # AIX sometimes has problems with the GCC collect2 program. For some
10488 # reason, if we set the COLLECT_NAMES environment variable, the problems
10489 # vanish in a puff of smoke.
10490 if test "X${COLLECT_NAMES+set}" != Xset; then
10491 COLLECT_NAMES=
10492 export COLLECT_NAMES
10496 esac
10498 # We use sed instead of cat because bash on DJGPP gets confused if
10499 # if finds mixed CR/LF and LF-only lines. Since sed operates in
10500 # text mode, it properly converts lines to CR/LF. This bash problem
10501 # is reportedly fixed, but why not run on old versions too?
10502 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10504 mv -f "$cfgfile" "$ofile" || \
10505 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10506 chmod +x "$ofile"
10508 else
10509 # If there is no Makefile yet, we rely on a make rule to execute
10510 # `config.status --recheck' to rerun these tests and create the
10511 # libtool script then.
10512 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10513 if test -f "$ltmain_in"; then
10514 test -f Makefile && make "$ltmain"
10519 ac_ext=c
10520 ac_cpp='$CPP $CPPFLAGS'
10521 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10522 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10523 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10525 CC="$lt_save_CC"
10528 # Check whether --with-tags was given.
10529 if test "${with_tags+set}" = set; then
10530 withval=$with_tags; tagnames="$withval"
10534 if test -f "$ltmain" && test -n "$tagnames"; then
10535 if test ! -f "${ofile}"; then
10536 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
10537 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
10540 if test -z "$LTCC"; then
10541 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
10542 if test -z "$LTCC"; then
10543 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10544 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
10545 else
10546 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
10547 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
10550 if test -z "$LTCFLAGS"; then
10551 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
10554 # Extract list of available tagged configurations in $ofile.
10555 # Note that this assumes the entire list is on one line.
10556 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10558 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10559 for tagname in $tagnames; do
10560 IFS="$lt_save_ifs"
10561 # Check whether tagname contains only valid characters
10562 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
10563 "") ;;
10564 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
10565 echo "$as_me: error: invalid tag name: $tagname" >&2;}
10566 { (exit 1); exit 1; }; }
10568 esac
10570 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
10571 then
10572 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
10573 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
10574 { (exit 1); exit 1; }; }
10577 # Update the list of available tags.
10578 if test -n "$tagname"; then
10579 echo appending configuration tag \"$tagname\" to $ofile
10581 case $tagname in
10582 CXX)
10583 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10584 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10585 (test "X$CXX" != "Xg++"))) ; then
10586 ac_ext=cpp
10587 ac_cpp='$CXXCPP $CPPFLAGS'
10588 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10589 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10590 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10595 archive_cmds_need_lc_CXX=no
10596 allow_undefined_flag_CXX=
10597 always_export_symbols_CXX=no
10598 archive_expsym_cmds_CXX=
10599 export_dynamic_flag_spec_CXX=
10600 hardcode_direct_CXX=no
10601 hardcode_libdir_flag_spec_CXX=
10602 hardcode_libdir_flag_spec_ld_CXX=
10603 hardcode_libdir_separator_CXX=
10604 hardcode_minus_L_CXX=no
10605 hardcode_shlibpath_var_CXX=unsupported
10606 hardcode_automatic_CXX=no
10607 module_cmds_CXX=
10608 module_expsym_cmds_CXX=
10609 link_all_deplibs_CXX=unknown
10610 old_archive_cmds_CXX=$old_archive_cmds
10611 no_undefined_flag_CXX=
10612 whole_archive_flag_spec_CXX=
10613 enable_shared_with_static_runtimes_CXX=no
10615 # Dependencies to place before and after the object being linked:
10616 predep_objects_CXX=
10617 postdep_objects_CXX=
10618 predeps_CXX=
10619 postdeps_CXX=
10620 compiler_lib_search_path_CXX=
10622 # Source file extension for C++ test sources.
10623 ac_ext=cpp
10625 # Object file extension for compiled C++ test sources.
10626 objext=o
10627 objext_CXX=$objext
10629 # Code to be used in simple compile tests
10630 lt_simple_compile_test_code="int some_variable = 0;"
10632 # Code to be used in simple link tests
10633 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
10635 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
10637 # If no C compiler was specified, use CC.
10638 LTCC=${LTCC-"$CC"}
10640 # If no C compiler flags were specified, use CFLAGS.
10641 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10643 # Allow CC to be a program name with arguments.
10644 compiler=$CC
10647 # save warnings/boilerplate of simple test code
10648 ac_outfile=conftest.$ac_objext
10649 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
10650 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10651 _lt_compiler_boilerplate=`cat conftest.err`
10652 $rm conftest*
10654 ac_outfile=conftest.$ac_objext
10655 echo "$lt_simple_link_test_code" >conftest.$ac_ext
10656 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10657 _lt_linker_boilerplate=`cat conftest.err`
10658 $rm conftest*
10661 # Allow CC to be a program name with arguments.
10662 lt_save_CC=$CC
10663 lt_save_LD=$LD
10664 lt_save_GCC=$GCC
10665 GCC=$GXX
10666 lt_save_with_gnu_ld=$with_gnu_ld
10667 lt_save_path_LD=$lt_cv_path_LD
10668 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
10669 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
10670 else
10671 $as_unset lt_cv_prog_gnu_ld
10673 if test -n "${lt_cv_path_LDCXX+set}"; then
10674 lt_cv_path_LD=$lt_cv_path_LDCXX
10675 else
10676 $as_unset lt_cv_path_LD
10678 test -z "${LDCXX+set}" || LD=$LDCXX
10679 CC=${CXX-"c++"}
10680 compiler=$CC
10681 compiler_CXX=$CC
10682 for cc_temp in $compiler""; do
10683 case $cc_temp in
10684 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10685 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10686 \-*) ;;
10687 *) break;;
10688 esac
10689 done
10690 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
10693 # We don't want -fno-exception wen compiling C++ code, so set the
10694 # no_builtin_flag separately
10695 if test "$GXX" = yes; then
10696 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
10697 else
10698 lt_prog_compiler_no_builtin_flag_CXX=
10701 if test "$GXX" = yes; then
10702 # Set up default GNU C++ configuration
10705 # Check whether --with-gnu-ld was given.
10706 if test "${with_gnu_ld+set}" = set; then
10707 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
10708 else
10709 with_gnu_ld=no
10712 ac_prog=ld
10713 if test "$GCC" = yes; then
10714 # Check if gcc -print-prog-name=ld gives a path.
10715 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
10716 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
10717 case $host in
10718 *-*-mingw*)
10719 # gcc leaves a trailing carriage return which upsets mingw
10720 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10722 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10723 esac
10724 case $ac_prog in
10725 # Accept absolute paths.
10726 [\\/]* | ?:[\\/]*)
10727 re_direlt='/[^/][^/]*/\.\./'
10728 # Canonicalize the pathname of ld
10729 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
10730 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10731 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
10732 done
10733 test -z "$LD" && LD="$ac_prog"
10736 # If it fails, then pretend we aren't using GCC.
10737 ac_prog=ld
10740 # If it is relative, then search for the first ld in PATH.
10741 with_gnu_ld=unknown
10743 esac
10744 elif test "$with_gnu_ld" = yes; then
10745 { echo "$as_me:$LINENO: checking for GNU ld" >&5
10746 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
10747 else
10748 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10749 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
10751 if test "${lt_cv_path_LD+set}" = set; then
10752 echo $ECHO_N "(cached) $ECHO_C" >&6
10753 else
10754 if test -z "$LD"; then
10755 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10756 for ac_dir in $PATH; do
10757 IFS="$lt_save_ifs"
10758 test -z "$ac_dir" && ac_dir=.
10759 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10760 lt_cv_path_LD="$ac_dir/$ac_prog"
10761 # Check to see if the program is GNU ld. I'd rather use --version,
10762 # but apparently some variants of GNU ld only accept -v.
10763 # Break only if it was the GNU/non-GNU ld that we prefer.
10764 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10765 *GNU* | *'with BFD'*)
10766 test "$with_gnu_ld" != no && break
10769 test "$with_gnu_ld" != yes && break
10771 esac
10773 done
10774 IFS="$lt_save_ifs"
10775 else
10776 lt_cv_path_LD="$LD" # Let the user override the test with a path.
10780 LD="$lt_cv_path_LD"
10781 if test -n "$LD"; then
10782 { echo "$as_me:$LINENO: result: $LD" >&5
10783 echo "${ECHO_T}$LD" >&6; }
10784 else
10785 { echo "$as_me:$LINENO: result: no" >&5
10786 echo "${ECHO_T}no" >&6; }
10788 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10789 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10790 { (exit 1); exit 1; }; }
10791 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10792 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
10793 if test "${lt_cv_prog_gnu_ld+set}" = set; then
10794 echo $ECHO_N "(cached) $ECHO_C" >&6
10795 else
10796 # I'd rather use --version here, but apparently some GNU lds only accept -v.
10797 case `$LD -v 2>&1 </dev/null` in
10798 *GNU* | *'with BFD'*)
10799 lt_cv_prog_gnu_ld=yes
10802 lt_cv_prog_gnu_ld=no
10804 esac
10806 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
10807 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
10808 with_gnu_ld=$lt_cv_prog_gnu_ld
10812 # Check if GNU C++ uses GNU ld as the underlying linker, since the
10813 # archiving commands below assume that GNU ld is being used.
10814 if test "$with_gnu_ld" = yes; then
10815 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10816 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'
10818 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10819 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10821 # If archive_cmds runs LD, not CC, wlarc should be empty
10822 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
10823 # investigate it a little bit more. (MM)
10824 wlarc='${wl}'
10826 # ancient GNU ld didn't support --whole-archive et. al.
10827 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
10828 grep 'no-whole-archive' > /dev/null; then
10829 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10830 else
10831 whole_archive_flag_spec_CXX=
10833 else
10834 with_gnu_ld=no
10835 wlarc=
10837 # A generic and very simple default shared library creation
10838 # command for GNU C++ for the case where it uses the native
10839 # linker, instead of GNU ld. If possible, this setting should
10840 # overridden to take advantage of the native linker features on
10841 # the platform it is being used on.
10842 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10845 # Commands to make compiler produce verbose output that lists
10846 # what "hidden" libraries, object files and flags are used when
10847 # linking a shared library.
10848 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10850 else
10851 GXX=no
10852 with_gnu_ld=no
10853 wlarc=
10856 # PORTME: fill in a description of your system's C++ link characteristics
10857 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10858 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
10859 ld_shlibs_CXX=yes
10860 case $host_os in
10861 aix3*)
10862 # FIXME: insert proper C++ library support
10863 ld_shlibs_CXX=no
10865 aix4* | aix5*)
10866 if test "$host_cpu" = ia64; then
10867 # On IA64, the linker does run time linking by default, so we don't
10868 # have to do anything special.
10869 aix_use_runtimelinking=no
10870 exp_sym_flag='-Bexport'
10871 no_entry_flag=""
10872 else
10873 aix_use_runtimelinking=no
10875 # Test if we are trying to use run time linking or normal
10876 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10877 # need to do runtime linking.
10878 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
10879 for ld_flag in $LDFLAGS; do
10880 case $ld_flag in
10881 *-brtl*)
10882 aix_use_runtimelinking=yes
10883 break
10885 esac
10886 done
10888 esac
10890 exp_sym_flag='-bexport'
10891 no_entry_flag='-bnoentry'
10894 # When large executables or shared objects are built, AIX ld can
10895 # have problems creating the table of contents. If linking a library
10896 # or program results in "error TOC overflow" add -mminimal-toc to
10897 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10898 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10900 archive_cmds_CXX=''
10901 hardcode_direct_CXX=yes
10902 hardcode_libdir_separator_CXX=':'
10903 link_all_deplibs_CXX=yes
10905 if test "$GXX" = yes; then
10906 case $host_os in aix4.[012]|aix4.[012].*)
10907 # We only want to do this on AIX 4.2 and lower, the check
10908 # below for broken collect2 doesn't work under 4.3+
10909 collect2name=`${CC} -print-prog-name=collect2`
10910 if test -f "$collect2name" && \
10911 strings "$collect2name" | grep resolve_lib_name >/dev/null
10912 then
10913 # We have reworked collect2
10915 else
10916 # We have old collect2
10917 hardcode_direct_CXX=unsupported
10918 # It fails to find uninstalled libraries when the uninstalled
10919 # path is not listed in the libpath. Setting hardcode_minus_L
10920 # to unsupported forces relinking
10921 hardcode_minus_L_CXX=yes
10922 hardcode_libdir_flag_spec_CXX='-L$libdir'
10923 hardcode_libdir_separator_CXX=
10926 esac
10927 shared_flag='-shared'
10928 if test "$aix_use_runtimelinking" = yes; then
10929 shared_flag="$shared_flag "'${wl}-G'
10931 else
10932 # not using gcc
10933 if test "$host_cpu" = ia64; then
10934 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10935 # chokes on -Wl,-G. The following line is correct:
10936 shared_flag='-G'
10937 else
10938 if test "$aix_use_runtimelinking" = yes; then
10939 shared_flag='${wl}-G'
10940 else
10941 shared_flag='${wl}-bM:SRE'
10946 # It seems that -bexpall does not export symbols beginning with
10947 # underscore (_), so it is better to generate a list of symbols to export.
10948 always_export_symbols_CXX=yes
10949 if test "$aix_use_runtimelinking" = yes; then
10950 # Warning - without using the other runtime loading flags (-brtl),
10951 # -berok will link without error, but may produce a broken library.
10952 allow_undefined_flag_CXX='-berok'
10953 # Determine the default libpath from the value encoded in an empty executable.
10954 cat >conftest.$ac_ext <<_ACEOF
10955 /* confdefs.h. */
10956 _ACEOF
10957 cat confdefs.h >>conftest.$ac_ext
10958 cat >>conftest.$ac_ext <<_ACEOF
10959 /* end confdefs.h. */
10962 main ()
10966 return 0;
10968 _ACEOF
10969 rm -f conftest.$ac_objext conftest$ac_exeext
10970 if { (ac_try="$ac_link"
10971 case "(($ac_try" in
10972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10973 *) ac_try_echo=$ac_try;;
10974 esac
10975 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10976 (eval "$ac_link") 2>conftest.er1
10977 ac_status=$?
10978 grep -v '^ *+' conftest.er1 >conftest.err
10979 rm -f conftest.er1
10980 cat conftest.err >&5
10981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10982 (exit $ac_status); } && {
10983 test -z "$ac_cxx_werror_flag" ||
10984 test ! -s conftest.err
10985 } && test -s conftest$ac_exeext &&
10986 $as_test_x conftest$ac_exeext; then
10988 lt_aix_libpath_sed='
10989 /Import File Strings/,/^$/ {
10990 /^0/ {
10991 s/^0 *\(.*\)$/\1/
10995 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10996 # Check for a 64-bit object if we didn't find anything.
10997 if test -z "$aix_libpath"; then
10998 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11000 else
11001 echo "$as_me: failed program was:" >&5
11002 sed 's/^/| /' conftest.$ac_ext >&5
11007 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11008 conftest$ac_exeext conftest.$ac_ext
11009 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11011 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11013 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"
11014 else
11015 if test "$host_cpu" = ia64; then
11016 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11017 allow_undefined_flag_CXX="-z nodefs"
11018 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"
11019 else
11020 # Determine the default libpath from the value encoded in an empty executable.
11021 cat >conftest.$ac_ext <<_ACEOF
11022 /* confdefs.h. */
11023 _ACEOF
11024 cat confdefs.h >>conftest.$ac_ext
11025 cat >>conftest.$ac_ext <<_ACEOF
11026 /* end confdefs.h. */
11029 main ()
11033 return 0;
11035 _ACEOF
11036 rm -f conftest.$ac_objext conftest$ac_exeext
11037 if { (ac_try="$ac_link"
11038 case "(($ac_try" in
11039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11040 *) ac_try_echo=$ac_try;;
11041 esac
11042 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11043 (eval "$ac_link") 2>conftest.er1
11044 ac_status=$?
11045 grep -v '^ *+' conftest.er1 >conftest.err
11046 rm -f conftest.er1
11047 cat conftest.err >&5
11048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11049 (exit $ac_status); } && {
11050 test -z "$ac_cxx_werror_flag" ||
11051 test ! -s conftest.err
11052 } && test -s conftest$ac_exeext &&
11053 $as_test_x conftest$ac_exeext; then
11055 lt_aix_libpath_sed='
11056 /Import File Strings/,/^$/ {
11057 /^0/ {
11058 s/^0 *\(.*\)$/\1/
11062 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11063 # Check for a 64-bit object if we didn't find anything.
11064 if test -z "$aix_libpath"; then
11065 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11067 else
11068 echo "$as_me: failed program was:" >&5
11069 sed 's/^/| /' conftest.$ac_ext >&5
11074 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11075 conftest$ac_exeext conftest.$ac_ext
11076 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11078 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11079 # Warning - without using the other run time loading flags,
11080 # -berok will link without error, but may produce a broken library.
11081 no_undefined_flag_CXX=' ${wl}-bernotok'
11082 allow_undefined_flag_CXX=' ${wl}-berok'
11083 # Exported symbols can be pulled into shared objects from archives
11084 whole_archive_flag_spec_CXX='$convenience'
11085 archive_cmds_need_lc_CXX=yes
11086 # This is similar to how AIX traditionally builds its shared libraries.
11087 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'
11092 beos*)
11093 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11094 allow_undefined_flag_CXX=unsupported
11095 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11096 # support --undefined. This deserves some investigation. FIXME
11097 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11098 else
11099 ld_shlibs_CXX=no
11103 chorus*)
11104 case $cc_basename in
11106 # FIXME: insert proper C++ library support
11107 ld_shlibs_CXX=no
11109 esac
11112 cygwin* | mingw* | pw32*)
11113 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11114 # as there is no search path for DLLs.
11115 hardcode_libdir_flag_spec_CXX='-L$libdir'
11116 allow_undefined_flag_CXX=unsupported
11117 always_export_symbols_CXX=no
11118 enable_shared_with_static_runtimes_CXX=yes
11120 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11121 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'
11122 # If the export-symbols file already is a .def file (1st line
11123 # is EXPORTS), use it as is; otherwise, prepend...
11124 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11125 cp $export_symbols $output_objdir/$soname.def;
11126 else
11127 echo EXPORTS > $output_objdir/$soname.def;
11128 cat $export_symbols >> $output_objdir/$soname.def;
11130 $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'
11131 else
11132 ld_shlibs_CXX=no
11135 darwin* | rhapsody*)
11136 case $host_os in
11137 rhapsody* | darwin1.[012])
11138 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
11140 *) # Darwin 1.3 on
11141 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
11142 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11143 else
11144 case ${MACOSX_DEPLOYMENT_TARGET} in
11145 10.[012])
11146 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11148 10.*)
11149 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
11151 esac
11154 esac
11155 archive_cmds_need_lc_CXX=no
11156 hardcode_direct_CXX=no
11157 hardcode_automatic_CXX=yes
11158 hardcode_shlibpath_var_CXX=unsupported
11159 whole_archive_flag_spec_CXX=''
11160 link_all_deplibs_CXX=yes
11162 if test "$GXX" = yes ; then
11163 lt_int_apple_cc_single_mod=no
11164 output_verbose_link_cmd='echo'
11165 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
11166 lt_int_apple_cc_single_mod=yes
11168 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11169 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
11170 else
11171 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'
11173 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11174 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11175 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11176 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}'
11177 else
11178 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}'
11180 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}'
11181 else
11182 case $cc_basename in
11183 xlc*)
11184 output_verbose_link_cmd='echo'
11185 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'
11186 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11187 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11188 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}'
11189 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}'
11192 ld_shlibs_CXX=no
11194 esac
11198 dgux*)
11199 case $cc_basename in
11200 ec++*)
11201 # FIXME: insert proper C++ library support
11202 ld_shlibs_CXX=no
11204 ghcx*)
11205 # Green Hills C++ Compiler
11206 # FIXME: insert proper C++ library support
11207 ld_shlibs_CXX=no
11210 # FIXME: insert proper C++ library support
11211 ld_shlibs_CXX=no
11213 esac
11215 freebsd[12]*)
11216 # C++ shared libraries reported to be fairly broken before switch to ELF
11217 ld_shlibs_CXX=no
11219 freebsd-elf*)
11220 archive_cmds_need_lc_CXX=no
11222 freebsd* | dragonfly*)
11223 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11224 # conventions
11225 ld_shlibs_CXX=yes
11227 gnu*)
11229 hpux9*)
11230 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11231 hardcode_libdir_separator_CXX=:
11232 export_dynamic_flag_spec_CXX='${wl}-E'
11233 hardcode_direct_CXX=yes
11234 hardcode_minus_L_CXX=yes # Not in the search PATH,
11235 # but as the default
11236 # location of the library.
11238 case $cc_basename in
11239 CC*)
11240 # FIXME: insert proper C++ library support
11241 ld_shlibs_CXX=no
11243 aCC*)
11244 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'
11245 # Commands to make compiler produce verbose output that lists
11246 # what "hidden" libraries, object files and flags are used when
11247 # linking a shared library.
11249 # There doesn't appear to be a way to prevent this compiler from
11250 # explicitly linking system object files so we need to strip them
11251 # from the output so that they don't get included in the library
11252 # dependencies.
11253 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'
11256 if test "$GXX" = yes; then
11257 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'
11258 else
11259 # FIXME: insert proper C++ library support
11260 ld_shlibs_CXX=no
11263 esac
11265 hpux10*|hpux11*)
11266 if test $with_gnu_ld = no; then
11267 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11268 hardcode_libdir_separator_CXX=:
11270 case $host_cpu in
11271 hppa*64*|ia64*) ;;
11273 export_dynamic_flag_spec_CXX='${wl}-E'
11275 esac
11277 case $host_cpu in
11278 hppa*64*|ia64*)
11279 hardcode_direct_CXX=no
11280 hardcode_shlibpath_var_CXX=no
11283 hardcode_direct_CXX=yes
11284 hardcode_minus_L_CXX=yes # Not in the search PATH,
11285 # but as the default
11286 # location of the library.
11288 esac
11290 case $cc_basename in
11291 CC*)
11292 # FIXME: insert proper C++ library support
11293 ld_shlibs_CXX=no
11295 aCC*)
11296 case $host_cpu in
11297 hppa*64*)
11298 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11300 ia64*)
11301 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11304 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11306 esac
11307 # Commands to make compiler produce verbose output that lists
11308 # what "hidden" libraries, object files and flags are used when
11309 # linking a shared library.
11311 # There doesn't appear to be a way to prevent this compiler from
11312 # explicitly linking system object files so we need to strip them
11313 # from the output so that they don't get included in the library
11314 # dependencies.
11315 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'
11318 if test "$GXX" = yes; then
11319 if test $with_gnu_ld = no; then
11320 case $host_cpu in
11321 hppa*64*)
11322 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11324 ia64*)
11325 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11328 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'
11330 esac
11332 else
11333 # FIXME: insert proper C++ library support
11334 ld_shlibs_CXX=no
11337 esac
11339 interix[3-9]*)
11340 hardcode_direct_CXX=no
11341 hardcode_shlibpath_var_CXX=no
11342 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11343 export_dynamic_flag_spec_CXX='${wl}-E'
11344 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11345 # Instead, shared libraries are loaded at an image base (0x10000000 by
11346 # default) and relocated if they conflict, which is a slow very memory
11347 # consuming and fragmenting process. To avoid this, we pick a random,
11348 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11349 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
11350 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'
11351 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'
11353 irix5* | irix6*)
11354 case $cc_basename in
11355 CC*)
11356 # SGI C++
11357 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'
11359 # Archives containing C++ object files must be created using
11360 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
11361 # necessary to make sure instantiated templates are included
11362 # in the archive.
11363 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11366 if test "$GXX" = yes; then
11367 if test "$with_gnu_ld" = no; then
11368 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'
11369 else
11370 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'
11373 link_all_deplibs_CXX=yes
11375 esac
11376 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11377 hardcode_libdir_separator_CXX=:
11379 linux* | k*bsd*-gnu)
11380 case $cc_basename in
11381 KCC*)
11382 # Kuck and Associates, Inc. (KAI) C++ Compiler
11384 # KCC will only create a shared library if the output file
11385 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11386 # to its proper name (with version) after linking.
11387 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'
11388 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'
11389 # Commands to make compiler produce verbose output that lists
11390 # what "hidden" libraries, object files and flags are used when
11391 # linking a shared library.
11393 # There doesn't appear to be a way to prevent this compiler from
11394 # explicitly linking system object files so we need to strip them
11395 # from the output so that they don't get included in the library
11396 # dependencies.
11397 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'
11399 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
11400 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11402 # Archives containing C++ object files must be created using
11403 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11404 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11406 icpc*)
11407 # Intel C++
11408 with_gnu_ld=yes
11409 # version 8.0 and above of icpc choke on multiply defined symbols
11410 # if we add $predep_objects and $postdep_objects, however 7.1 and
11411 # earlier do not add the objects themselves.
11412 case `$CC -V 2>&1` in
11413 *"Version 7."*)
11414 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11415 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'
11417 *) # Version 8.0 or newer
11418 tmp_idyn=
11419 case $host_cpu in
11420 ia64*) tmp_idyn=' -i_dynamic';;
11421 esac
11422 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11423 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'
11425 esac
11426 archive_cmds_need_lc_CXX=no
11427 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11428 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11429 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11431 pgCC*)
11432 # Portland Group C++ compiler
11433 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
11434 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'
11436 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11437 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11438 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'
11440 cxx*)
11441 # Compaq C++
11442 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11443 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'
11445 runpath_var=LD_RUN_PATH
11446 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11447 hardcode_libdir_separator_CXX=:
11449 # Commands to make compiler produce verbose output that lists
11450 # what "hidden" libraries, object files and flags are used when
11451 # linking a shared library.
11453 # There doesn't appear to be a way to prevent this compiler from
11454 # explicitly linking system object files so we need to strip them
11455 # from the output so that they don't get included in the library
11456 # dependencies.
11457 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'
11460 case `$CC -V 2>&1 | sed 5q` in
11461 *Sun\ C*)
11462 # Sun C++ 5.9
11463 no_undefined_flag_CXX=' -zdefs'
11464 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11465 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'
11466 hardcode_libdir_flag_spec_CXX='-R$libdir'
11467 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'
11469 # Not sure whether something based on
11470 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
11471 # would be better.
11472 output_verbose_link_cmd='echo'
11474 # Archives containing C++ object files must be created using
11475 # "CC -xar", where "CC" is the Sun C++ compiler. This is
11476 # necessary to make sure instantiated templates are included
11477 # in the archive.
11478 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11480 esac
11482 esac
11484 lynxos*)
11485 # FIXME: insert proper C++ library support
11486 ld_shlibs_CXX=no
11488 m88k*)
11489 # FIXME: insert proper C++ library support
11490 ld_shlibs_CXX=no
11492 mvs*)
11493 case $cc_basename in
11494 cxx*)
11495 # FIXME: insert proper C++ library support
11496 ld_shlibs_CXX=no
11499 # FIXME: insert proper C++ library support
11500 ld_shlibs_CXX=no
11502 esac
11504 netbsd*)
11505 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11506 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
11507 wlarc=
11508 hardcode_libdir_flag_spec_CXX='-R$libdir'
11509 hardcode_direct_CXX=yes
11510 hardcode_shlibpath_var_CXX=no
11512 # Workaround some broken pre-1.5 toolchains
11513 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
11515 openbsd2*)
11516 # C++ shared libraries are fairly broken
11517 ld_shlibs_CXX=no
11519 openbsd*)
11520 if test -f /usr/libexec/ld.so; then
11521 hardcode_direct_CXX=yes
11522 hardcode_shlibpath_var_CXX=no
11523 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11524 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11525 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11526 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
11527 export_dynamic_flag_spec_CXX='${wl}-E'
11528 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11530 output_verbose_link_cmd='echo'
11531 else
11532 ld_shlibs_CXX=no
11535 osf3*)
11536 case $cc_basename in
11537 KCC*)
11538 # Kuck and Associates, Inc. (KAI) C++ Compiler
11540 # KCC will only create a shared library if the output file
11541 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11542 # to its proper name (with version) after linking.
11543 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'
11545 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11546 hardcode_libdir_separator_CXX=:
11548 # Archives containing C++ object files must be created using
11549 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11550 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11553 RCC*)
11554 # Rational C++ 2.4.1
11555 # FIXME: insert proper C++ library support
11556 ld_shlibs_CXX=no
11558 cxx*)
11559 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11560 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'
11562 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11563 hardcode_libdir_separator_CXX=:
11565 # Commands to make compiler produce verbose output that lists
11566 # what "hidden" libraries, object files and flags are used when
11567 # linking a shared library.
11569 # There doesn't appear to be a way to prevent this compiler from
11570 # explicitly linking system object files so we need to strip them
11571 # from the output so that they don't get included in the library
11572 # dependencies.
11573 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'
11576 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11577 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11578 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'
11580 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11581 hardcode_libdir_separator_CXX=:
11583 # Commands to make compiler produce verbose output that lists
11584 # what "hidden" libraries, object files and flags are used when
11585 # linking a shared library.
11586 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11588 else
11589 # FIXME: insert proper C++ library support
11590 ld_shlibs_CXX=no
11593 esac
11595 osf4* | osf5*)
11596 case $cc_basename in
11597 KCC*)
11598 # Kuck and Associates, Inc. (KAI) C++ Compiler
11600 # KCC will only create a shared library if the output file
11601 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11602 # to its proper name (with version) after linking.
11603 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'
11605 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11606 hardcode_libdir_separator_CXX=:
11608 # Archives containing C++ object files must be created using
11609 # the KAI C++ compiler.
11610 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
11612 RCC*)
11613 # Rational C++ 2.4.1
11614 # FIXME: insert proper C++ library support
11615 ld_shlibs_CXX=no
11617 cxx*)
11618 allow_undefined_flag_CXX=' -expect_unresolved \*'
11619 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'
11620 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
11621 echo "-hidden">> $lib.exp~
11622 $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~
11623 $rm $lib.exp'
11625 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11626 hardcode_libdir_separator_CXX=:
11628 # Commands to make compiler produce verbose output that lists
11629 # what "hidden" libraries, object files and flags are used when
11630 # linking a shared library.
11632 # There doesn't appear to be a way to prevent this compiler from
11633 # explicitly linking system object files so we need to strip them
11634 # from the output so that they don't get included in the library
11635 # dependencies.
11636 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'
11639 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11640 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11641 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'
11643 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11644 hardcode_libdir_separator_CXX=:
11646 # Commands to make compiler produce verbose output that lists
11647 # what "hidden" libraries, object files and flags are used when
11648 # linking a shared library.
11649 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11651 else
11652 # FIXME: insert proper C++ library support
11653 ld_shlibs_CXX=no
11656 esac
11658 psos*)
11659 # FIXME: insert proper C++ library support
11660 ld_shlibs_CXX=no
11662 sunos4*)
11663 case $cc_basename in
11664 CC*)
11665 # Sun C++ 4.x
11666 # FIXME: insert proper C++ library support
11667 ld_shlibs_CXX=no
11669 lcc*)
11670 # Lucid
11671 # FIXME: insert proper C++ library support
11672 ld_shlibs_CXX=no
11675 # FIXME: insert proper C++ library support
11676 ld_shlibs_CXX=no
11678 esac
11680 solaris*)
11681 case $cc_basename in
11682 CC*)
11683 # Sun C++ 4.2, 5.x and Centerline C++
11684 archive_cmds_need_lc_CXX=yes
11685 no_undefined_flag_CXX=' -zdefs'
11686 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11687 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11688 $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'
11690 hardcode_libdir_flag_spec_CXX='-R$libdir'
11691 hardcode_shlibpath_var_CXX=no
11692 case $host_os in
11693 solaris2.[0-5] | solaris2.[0-5].*) ;;
11695 # The compiler driver will combine and reorder linker options,
11696 # but understands `-z linker_flag'.
11697 # Supported since Solaris 2.6 (maybe 2.5.1?)
11698 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
11700 esac
11701 link_all_deplibs_CXX=yes
11703 output_verbose_link_cmd='echo'
11705 # Archives containing C++ object files must be created using
11706 # "CC -xar", where "CC" is the Sun C++ compiler. This is
11707 # necessary to make sure instantiated templates are included
11708 # in the archive.
11709 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11711 gcx*)
11712 # Green Hills C++ Compiler
11713 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11715 # The C++ compiler must be used to create the archive.
11716 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
11719 # GNU C++ compiler with Solaris linker
11720 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11721 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
11722 if $CC --version | grep -v '^2\.7' > /dev/null; then
11723 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11724 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11725 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11727 # Commands to make compiler produce verbose output that lists
11728 # what "hidden" libraries, object files and flags are used when
11729 # linking a shared library.
11730 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11731 else
11732 # g++ 2.7 appears to require `-G' NOT `-shared' on this
11733 # platform.
11734 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11735 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11736 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11738 # Commands to make compiler produce verbose output that lists
11739 # what "hidden" libraries, object files and flags are used when
11740 # linking a shared library.
11741 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11744 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
11745 case $host_os in
11746 solaris2.[0-5] | solaris2.[0-5].*) ;;
11748 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
11750 esac
11753 esac
11755 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11756 no_undefined_flag_CXX='${wl}-z,text'
11757 archive_cmds_need_lc_CXX=no
11758 hardcode_shlibpath_var_CXX=no
11759 runpath_var='LD_RUN_PATH'
11761 case $cc_basename in
11762 CC*)
11763 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11764 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11767 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11768 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11770 esac
11772 sysv5* | sco3.2v5* | sco5v6*)
11773 # Note: We can NOT use -z defs as we might desire, because we do not
11774 # link with -lc, and that would cause any symbols used from libc to
11775 # always be unresolved, which means just about no library would
11776 # ever link correctly. If we're not using GNU ld we use -z text
11777 # though, which does catch some bad symbols but isn't as heavy-handed
11778 # as -z defs.
11779 # For security reasons, it is highly recommended that you always
11780 # use absolute paths for naming shared libraries, and exclude the
11781 # DT_RUNPATH tag from executables and libraries. But doing so
11782 # requires that you compile everything twice, which is a pain.
11783 # So that behaviour is only enabled if SCOABSPATH is set to a
11784 # non-empty value in the environment. Most likely only useful for
11785 # creating official distributions of packages.
11786 # This is a hack until libtool officially supports absolute path
11787 # names for shared libraries.
11788 no_undefined_flag_CXX='${wl}-z,text'
11789 allow_undefined_flag_CXX='${wl}-z,nodefs'
11790 archive_cmds_need_lc_CXX=no
11791 hardcode_shlibpath_var_CXX=no
11792 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
11793 hardcode_libdir_separator_CXX=':'
11794 link_all_deplibs_CXX=yes
11795 export_dynamic_flag_spec_CXX='${wl}-Bexport'
11796 runpath_var='LD_RUN_PATH'
11798 case $cc_basename in
11799 CC*)
11800 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11801 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11804 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11805 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11807 esac
11809 tandem*)
11810 case $cc_basename in
11811 NCC*)
11812 # NonStop-UX NCC 3.20
11813 # FIXME: insert proper C++ library support
11814 ld_shlibs_CXX=no
11817 # FIXME: insert proper C++ library support
11818 ld_shlibs_CXX=no
11820 esac
11822 vxworks*)
11823 # FIXME: insert proper C++ library support
11824 ld_shlibs_CXX=no
11827 # FIXME: insert proper C++ library support
11828 ld_shlibs_CXX=no
11830 esac
11831 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11832 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
11833 test "$ld_shlibs_CXX" = no && can_build_shared=no
11835 GCC_CXX="$GXX"
11836 LD_CXX="$LD"
11839 cat > conftest.$ac_ext <<EOF
11840 class Foo
11842 public:
11843 Foo (void) { a = 0; }
11844 private:
11845 int a;
11849 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11850 (eval $ac_compile) 2>&5
11851 ac_status=$?
11852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11853 (exit $ac_status); }; then
11854 # Parse the compiler output and extract the necessary
11855 # objects, libraries and library flags.
11857 # Sentinel used to keep track of whether or not we are before
11858 # the conftest object file.
11859 pre_test_object_deps_done=no
11861 # The `*' in the case matches for architectures that use `case' in
11862 # $output_verbose_cmd can trigger glob expansion during the loop
11863 # eval without this substitution.
11864 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
11866 for p in `eval $output_verbose_link_cmd`; do
11867 case $p in
11869 -L* | -R* | -l*)
11870 # Some compilers place space between "-{L,R}" and the path.
11871 # Remove the space.
11872 if test $p = "-L" \
11873 || test $p = "-R"; then
11874 prev=$p
11875 continue
11876 else
11877 prev=
11880 if test "$pre_test_object_deps_done" = no; then
11881 case $p in
11882 -L* | -R*)
11883 # Internal compiler library paths should come after those
11884 # provided the user. The postdeps already come after the
11885 # user supplied libs so there is no need to process them.
11886 if test -z "$compiler_lib_search_path_CXX"; then
11887 compiler_lib_search_path_CXX="${prev}${p}"
11888 else
11889 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
11892 # The "-l" case would never come before the object being
11893 # linked, so don't bother handling this case.
11894 esac
11895 else
11896 if test -z "$postdeps_CXX"; then
11897 postdeps_CXX="${prev}${p}"
11898 else
11899 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
11904 *.$objext)
11905 # This assumes that the test object file only shows up
11906 # once in the compiler output.
11907 if test "$p" = "conftest.$objext"; then
11908 pre_test_object_deps_done=yes
11909 continue
11912 if test "$pre_test_object_deps_done" = no; then
11913 if test -z "$predep_objects_CXX"; then
11914 predep_objects_CXX="$p"
11915 else
11916 predep_objects_CXX="$predep_objects_CXX $p"
11918 else
11919 if test -z "$postdep_objects_CXX"; then
11920 postdep_objects_CXX="$p"
11921 else
11922 postdep_objects_CXX="$postdep_objects_CXX $p"
11927 *) ;; # Ignore the rest.
11929 esac
11930 done
11932 # Clean up.
11933 rm -f a.out a.exe
11934 else
11935 echo "libtool.m4: error: problem compiling CXX test program"
11938 $rm -f confest.$objext
11940 # PORTME: override above test on systems where it is broken
11941 case $host_os in
11942 interix[3-9]*)
11943 # Interix 3.5 installs completely hosed .la files for C++, so rather than
11944 # hack all around it, let's just trust "g++" to DTRT.
11945 predep_objects_CXX=
11946 postdep_objects_CXX=
11947 postdeps_CXX=
11950 linux*)
11951 case `$CC -V 2>&1 | sed 5q` in
11952 *Sun\ C*)
11953 # Sun C++ 5.9
11955 # The more standards-conforming stlport4 library is
11956 # incompatible with the Cstd library. Avoid specifying
11957 # it if it's in CXXFLAGS. Ignore libCrun as
11958 # -library=stlport4 depends on it.
11959 case " $CXX $CXXFLAGS " in
11960 *" -library=stlport4 "*)
11961 solaris_use_stlport4=yes
11963 esac
11964 if test "$solaris_use_stlport4" != yes; then
11965 postdeps_CXX='-library=Cstd -library=Crun'
11968 esac
11971 solaris*)
11972 case $cc_basename in
11973 CC*)
11974 # The more standards-conforming stlport4 library is
11975 # incompatible with the Cstd library. Avoid specifying
11976 # it if it's in CXXFLAGS. Ignore libCrun as
11977 # -library=stlport4 depends on it.
11978 case " $CXX $CXXFLAGS " in
11979 *" -library=stlport4 "*)
11980 solaris_use_stlport4=yes
11982 esac
11984 # Adding this requires a known-good setup of shared libraries for
11985 # Sun compiler versions before 5.6, else PIC objects from an old
11986 # archive will be linked into the output, leading to subtle bugs.
11987 if test "$solaris_use_stlport4" != yes; then
11988 postdeps_CXX='-library=Cstd -library=Crun'
11991 esac
11993 esac
11996 case " $postdeps_CXX " in
11997 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
11998 esac
12000 lt_prog_compiler_wl_CXX=
12001 lt_prog_compiler_pic_CXX=
12002 lt_prog_compiler_static_CXX=
12004 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12005 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
12007 # C++ specific cases for pic, static, wl, etc.
12008 if test "$GXX" = yes; then
12009 lt_prog_compiler_wl_CXX='-Wl,'
12010 lt_prog_compiler_static_CXX='-static'
12012 case $host_os in
12013 aix*)
12014 # All AIX code is PIC.
12015 if test "$host_cpu" = ia64; then
12016 # AIX 5 now supports IA64 processor
12017 lt_prog_compiler_static_CXX='-Bstatic'
12020 amigaos*)
12021 # FIXME: we need at least 68020 code to build shared libraries, but
12022 # adding the `-m68020' flag to GCC prevents building anything better,
12023 # like `-m68040'.
12024 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12026 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12027 # PIC is the default for these OSes.
12029 mingw* | cygwin* | os2* | pw32*)
12030 # This hack is so that the source file can tell whether it is being
12031 # built for inclusion in a dll (and should export symbols for example).
12032 # Although the cygwin gcc ignores -fPIC, still need this for old-style
12033 # (--disable-auto-import) libraries
12034 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12036 darwin* | rhapsody*)
12037 # PIC is the default on this platform
12038 # Common symbols not allowed in MH_DYLIB files
12039 lt_prog_compiler_pic_CXX='-fno-common'
12041 *djgpp*)
12042 # DJGPP does not support shared libraries at all
12043 lt_prog_compiler_pic_CXX=
12045 interix[3-9]*)
12046 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12047 # Instead, we relocate shared libraries at runtime.
12049 sysv4*MP*)
12050 if test -d /usr/nec; then
12051 lt_prog_compiler_pic_CXX=-Kconform_pic
12054 hpux*)
12055 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12056 # not for PA HP-UX.
12057 case $host_cpu in
12058 hppa*64*|ia64*)
12061 lt_prog_compiler_pic_CXX='-fPIC'
12063 esac
12066 lt_prog_compiler_pic_CXX='-fPIC'
12068 esac
12069 else
12070 case $host_os in
12071 aix4* | aix5*)
12072 # All AIX code is PIC.
12073 if test "$host_cpu" = ia64; then
12074 # AIX 5 now supports IA64 processor
12075 lt_prog_compiler_static_CXX='-Bstatic'
12076 else
12077 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12080 chorus*)
12081 case $cc_basename in
12082 cxch68*)
12083 # Green Hills C++ Compiler
12084 # _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"
12086 esac
12088 darwin*)
12089 # PIC is the default on this platform
12090 # Common symbols not allowed in MH_DYLIB files
12091 case $cc_basename in
12092 xlc*)
12093 lt_prog_compiler_pic_CXX='-qnocommon'
12094 lt_prog_compiler_wl_CXX='-Wl,'
12096 esac
12098 dgux*)
12099 case $cc_basename in
12100 ec++*)
12101 lt_prog_compiler_pic_CXX='-KPIC'
12103 ghcx*)
12104 # Green Hills C++ Compiler
12105 lt_prog_compiler_pic_CXX='-pic'
12109 esac
12111 freebsd* | dragonfly*)
12112 # FreeBSD uses GNU C++
12114 hpux9* | hpux10* | hpux11*)
12115 case $cc_basename in
12116 CC*)
12117 lt_prog_compiler_wl_CXX='-Wl,'
12118 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12119 if test "$host_cpu" != ia64; then
12120 lt_prog_compiler_pic_CXX='+Z'
12123 aCC*)
12124 lt_prog_compiler_wl_CXX='-Wl,'
12125 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12126 case $host_cpu in
12127 hppa*64*|ia64*)
12128 # +Z the default
12131 lt_prog_compiler_pic_CXX='+Z'
12133 esac
12137 esac
12139 interix*)
12140 # This is c89, which is MS Visual C++ (no shared libs)
12141 # Anyone wants to do a port?
12143 irix5* | irix6* | nonstopux*)
12144 case $cc_basename in
12145 CC*)
12146 lt_prog_compiler_wl_CXX='-Wl,'
12147 lt_prog_compiler_static_CXX='-non_shared'
12148 # CC pic flag -KPIC is the default.
12152 esac
12154 linux* | k*bsd*-gnu)
12155 case $cc_basename in
12156 KCC*)
12157 # KAI C++ Compiler
12158 lt_prog_compiler_wl_CXX='--backend -Wl,'
12159 lt_prog_compiler_pic_CXX='-fPIC'
12161 icpc* | ecpc*)
12162 # Intel C++
12163 lt_prog_compiler_wl_CXX='-Wl,'
12164 lt_prog_compiler_pic_CXX='-KPIC'
12165 lt_prog_compiler_static_CXX='-static'
12167 pgCC*)
12168 # Portland Group C++ compiler.
12169 lt_prog_compiler_wl_CXX='-Wl,'
12170 lt_prog_compiler_pic_CXX='-fpic'
12171 lt_prog_compiler_static_CXX='-Bstatic'
12173 cxx*)
12174 # Compaq C++
12175 # Make sure the PIC flag is empty. It appears that all Alpha
12176 # Linux and Compaq Tru64 Unix objects are PIC.
12177 lt_prog_compiler_pic_CXX=
12178 lt_prog_compiler_static_CXX='-non_shared'
12181 case `$CC -V 2>&1 | sed 5q` in
12182 *Sun\ C*)
12183 # Sun C++ 5.9
12184 lt_prog_compiler_pic_CXX='-KPIC'
12185 lt_prog_compiler_static_CXX='-Bstatic'
12186 lt_prog_compiler_wl_CXX='-Qoption ld '
12188 esac
12190 esac
12192 lynxos*)
12194 m88k*)
12196 mvs*)
12197 case $cc_basename in
12198 cxx*)
12199 lt_prog_compiler_pic_CXX='-W c,exportall'
12203 esac
12205 netbsd*)
12207 osf3* | osf4* | osf5*)
12208 case $cc_basename in
12209 KCC*)
12210 lt_prog_compiler_wl_CXX='--backend -Wl,'
12212 RCC*)
12213 # Rational C++ 2.4.1
12214 lt_prog_compiler_pic_CXX='-pic'
12216 cxx*)
12217 # Digital/Compaq C++
12218 lt_prog_compiler_wl_CXX='-Wl,'
12219 # Make sure the PIC flag is empty. It appears that all Alpha
12220 # Linux and Compaq Tru64 Unix objects are PIC.
12221 lt_prog_compiler_pic_CXX=
12222 lt_prog_compiler_static_CXX='-non_shared'
12226 esac
12228 psos*)
12230 solaris*)
12231 case $cc_basename in
12232 CC*)
12233 # Sun C++ 4.2, 5.x and Centerline C++
12234 lt_prog_compiler_pic_CXX='-KPIC'
12235 lt_prog_compiler_static_CXX='-Bstatic'
12236 lt_prog_compiler_wl_CXX='-Qoption ld '
12238 gcx*)
12239 # Green Hills C++ Compiler
12240 lt_prog_compiler_pic_CXX='-PIC'
12244 esac
12246 sunos4*)
12247 case $cc_basename in
12248 CC*)
12249 # Sun C++ 4.x
12250 lt_prog_compiler_pic_CXX='-pic'
12251 lt_prog_compiler_static_CXX='-Bstatic'
12253 lcc*)
12254 # Lucid
12255 lt_prog_compiler_pic_CXX='-pic'
12259 esac
12261 tandem*)
12262 case $cc_basename in
12263 NCC*)
12264 # NonStop-UX NCC 3.20
12265 lt_prog_compiler_pic_CXX='-KPIC'
12269 esac
12271 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12272 case $cc_basename in
12273 CC*)
12274 lt_prog_compiler_wl_CXX='-Wl,'
12275 lt_prog_compiler_pic_CXX='-KPIC'
12276 lt_prog_compiler_static_CXX='-Bstatic'
12278 esac
12280 vxworks*)
12283 lt_prog_compiler_can_build_shared_CXX=no
12285 esac
12288 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
12289 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
12292 # Check to make sure the PIC flag actually works.
12294 if test -n "$lt_prog_compiler_pic_CXX"; then
12296 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12297 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
12298 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
12299 echo $ECHO_N "(cached) $ECHO_C" >&6
12300 else
12301 lt_prog_compiler_pic_works_CXX=no
12302 ac_outfile=conftest.$ac_objext
12303 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12304 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12305 # Insert the option either (1) after the last *FLAGS variable, or
12306 # (2) before a word containing "conftest.", or (3) at the end.
12307 # Note that $ac_compile itself does not contain backslashes and begins
12308 # with a dollar sign (not a hyphen), so the echo should work correctly.
12309 # The option is referenced via a variable to avoid confusing sed.
12310 lt_compile=`echo "$ac_compile" | $SED \
12311 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12312 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12313 -e 's:$: $lt_compiler_flag:'`
12314 (eval echo "\"\$as_me:12314: $lt_compile\"" >&5)
12315 (eval "$lt_compile" 2>conftest.err)
12316 ac_status=$?
12317 cat conftest.err >&5
12318 echo "$as_me:12318: \$? = $ac_status" >&5
12319 if (exit $ac_status) && test -s "$ac_outfile"; then
12320 # The compiler can only warn and ignore the option if not recognized
12321 # So say no if there are warnings other than the usual output.
12322 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12323 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12324 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12325 lt_prog_compiler_pic_works_CXX=yes
12328 $rm conftest*
12331 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
12332 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
12334 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
12335 case $lt_prog_compiler_pic_CXX in
12336 "" | " "*) ;;
12337 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12338 esac
12339 else
12340 lt_prog_compiler_pic_CXX=
12341 lt_prog_compiler_can_build_shared_CXX=no
12345 case $host_os in
12346 # For platforms which do not support PIC, -DPIC is meaningless:
12347 *djgpp*)
12348 lt_prog_compiler_pic_CXX=
12351 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
12353 esac
12356 # Check to make sure the static flag actually works.
12358 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
12359 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12360 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
12361 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
12362 echo $ECHO_N "(cached) $ECHO_C" >&6
12363 else
12364 lt_prog_compiler_static_works_CXX=no
12365 save_LDFLAGS="$LDFLAGS"
12366 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12367 echo "$lt_simple_link_test_code" > conftest.$ac_ext
12368 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12369 # The linker can only warn and ignore the option if not recognized
12370 # So say no if there are warnings
12371 if test -s conftest.err; then
12372 # Append any errors to the config.log.
12373 cat conftest.err 1>&5
12374 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
12375 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12376 if diff conftest.exp conftest.er2 >/dev/null; then
12377 lt_prog_compiler_static_works_CXX=yes
12379 else
12380 lt_prog_compiler_static_works_CXX=yes
12383 $rm conftest*
12384 LDFLAGS="$save_LDFLAGS"
12387 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
12388 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
12390 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
12392 else
12393 lt_prog_compiler_static_CXX=
12397 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12398 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
12399 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
12400 echo $ECHO_N "(cached) $ECHO_C" >&6
12401 else
12402 lt_cv_prog_compiler_c_o_CXX=no
12403 $rm -r conftest 2>/dev/null
12404 mkdir conftest
12405 cd conftest
12406 mkdir out
12407 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12409 lt_compiler_flag="-o out/conftest2.$ac_objext"
12410 # Insert the option either (1) after the last *FLAGS variable, or
12411 # (2) before a word containing "conftest.", or (3) at the end.
12412 # Note that $ac_compile itself does not contain backslashes and begins
12413 # with a dollar sign (not a hyphen), so the echo should work correctly.
12414 lt_compile=`echo "$ac_compile" | $SED \
12415 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12416 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12417 -e 's:$: $lt_compiler_flag:'`
12418 (eval echo "\"\$as_me:12418: $lt_compile\"" >&5)
12419 (eval "$lt_compile" 2>out/conftest.err)
12420 ac_status=$?
12421 cat out/conftest.err >&5
12422 echo "$as_me:12422: \$? = $ac_status" >&5
12423 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12424 then
12425 # The compiler can only warn and ignore the option if not recognized
12426 # So say no if there are warnings
12427 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
12428 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12429 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12430 lt_cv_prog_compiler_c_o_CXX=yes
12433 chmod u+w . 2>&5
12434 $rm conftest*
12435 # SGI C++ compiler will create directory out/ii_files/ for
12436 # template instantiation
12437 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12438 $rm out/* && rmdir out
12439 cd ..
12440 rmdir conftest
12441 $rm conftest*
12444 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
12445 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
12448 hard_links="nottested"
12449 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
12450 # do not overwrite the value of need_locks provided by the user
12451 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12452 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
12453 hard_links=yes
12454 $rm conftest*
12455 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12456 touch conftest.a
12457 ln conftest.a conftest.b 2>&5 || hard_links=no
12458 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12459 { echo "$as_me:$LINENO: result: $hard_links" >&5
12460 echo "${ECHO_T}$hard_links" >&6; }
12461 if test "$hard_links" = no; then
12462 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12463 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12464 need_locks=warn
12466 else
12467 need_locks=no
12470 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12471 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
12473 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12474 case $host_os in
12475 aix4* | aix5*)
12476 # If we're using GNU nm, then we don't want the "-C" option.
12477 # -C means demangle to AIX nm, but means don't demangle with GNU nm
12478 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12479 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'
12480 else
12481 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'
12484 pw32*)
12485 export_symbols_cmds_CXX="$ltdll_cmds"
12487 cygwin* | mingw*)
12488 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'
12491 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12493 esac
12495 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12496 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12497 test "$ld_shlibs_CXX" = no && can_build_shared=no
12500 # Do we need to explicitly link libc?
12502 case "x$archive_cmds_need_lc_CXX" in
12503 x|xyes)
12504 # Assume -lc should be added
12505 archive_cmds_need_lc_CXX=yes
12507 if test "$enable_shared" = yes && test "$GCC" = yes; then
12508 case $archive_cmds_CXX in
12509 *'~'*)
12510 # FIXME: we may have to deal with multi-command sequences.
12512 '$CC '*)
12513 # Test whether the compiler implicitly links with -lc since on some
12514 # systems, -lgcc has to come before -lc. If gcc already passes -lc
12515 # to ld, don't add -lc before -lgcc.
12516 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
12517 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
12518 $rm conftest*
12519 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12521 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12522 (eval $ac_compile) 2>&5
12523 ac_status=$?
12524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12525 (exit $ac_status); } 2>conftest.err; then
12526 soname=conftest
12527 lib=conftest
12528 libobjs=conftest.$ac_objext
12529 deplibs=
12530 wl=$lt_prog_compiler_wl_CXX
12531 pic_flag=$lt_prog_compiler_pic_CXX
12532 compiler_flags=-v
12533 linker_flags=-v
12534 verstring=
12535 output_objdir=.
12536 libname=conftest
12537 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
12538 allow_undefined_flag_CXX=
12539 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
12540 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
12541 ac_status=$?
12542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12543 (exit $ac_status); }
12544 then
12545 archive_cmds_need_lc_CXX=no
12546 else
12547 archive_cmds_need_lc_CXX=yes
12549 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
12550 else
12551 cat conftest.err 1>&5
12553 $rm conftest*
12554 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
12555 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
12557 esac
12560 esac
12562 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
12563 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
12564 library_names_spec=
12565 libname_spec='lib$name'
12566 soname_spec=
12567 shrext_cmds=".so"
12568 postinstall_cmds=
12569 postuninstall_cmds=
12570 finish_cmds=
12571 finish_eval=
12572 shlibpath_var=
12573 shlibpath_overrides_runpath=unknown
12574 version_type=none
12575 dynamic_linker="$host_os ld.so"
12576 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12578 need_lib_prefix=unknown
12579 hardcode_into_libs=no
12581 # when you set need_version to no, make sure it does not cause -set_version
12582 # flags to be left without arguments
12583 need_version=unknown
12585 case $host_os in
12586 aix3*)
12587 version_type=linux
12588 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12589 shlibpath_var=LIBPATH
12591 # AIX 3 has no versioning support, so we append a major version to the name.
12592 soname_spec='${libname}${release}${shared_ext}$major'
12595 aix4* | aix5*)
12596 version_type=linux
12597 need_lib_prefix=no
12598 need_version=no
12599 hardcode_into_libs=yes
12600 if test "$host_cpu" = ia64; then
12601 # AIX 5 supports IA64
12602 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12603 shlibpath_var=LD_LIBRARY_PATH
12604 else
12605 # With GCC up to 2.95.x, collect2 would create an import file
12606 # for dependence libraries. The import file would start with
12607 # the line `#! .'. This would cause the generated library to
12608 # depend on `.', always an invalid library. This was fixed in
12609 # development snapshots of GCC prior to 3.0.
12610 case $host_os in
12611 aix4 | aix4.[01] | aix4.[01].*)
12612 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12613 echo ' yes '
12614 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
12616 else
12617 can_build_shared=no
12620 esac
12621 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12622 # soname into executable. Probably we can add versioning support to
12623 # collect2, so additional links can be useful in future.
12624 if test "$aix_use_runtimelinking" = yes; then
12625 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12626 # instead of lib<name>.a to let people know that these are not
12627 # typical AIX shared libraries.
12628 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12629 else
12630 # We preserve .a as extension for shared libraries through AIX4.2
12631 # and later when we are not doing run time linking.
12632 library_names_spec='${libname}${release}.a $libname.a'
12633 soname_spec='${libname}${release}${shared_ext}$major'
12635 shlibpath_var=LIBPATH
12639 amigaos*)
12640 library_names_spec='$libname.ixlibrary $libname.a'
12641 # Create ${libname}_ixlibrary.a entries in /sys/libs.
12642 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'
12645 beos*)
12646 library_names_spec='${libname}${shared_ext}'
12647 dynamic_linker="$host_os ld.so"
12648 shlibpath_var=LIBRARY_PATH
12651 bsdi[45]*)
12652 version_type=linux
12653 need_version=no
12654 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12655 soname_spec='${libname}${release}${shared_ext}$major'
12656 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12657 shlibpath_var=LD_LIBRARY_PATH
12658 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12659 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12660 # the default ld.so.conf also contains /usr/contrib/lib and
12661 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12662 # libtool to hard-code these into programs
12665 cygwin* | mingw* | pw32*)
12666 version_type=windows
12667 shrext_cmds=".dll"
12668 need_version=no
12669 need_lib_prefix=no
12671 case $GCC,$host_os in
12672 yes,cygwin* | yes,mingw* | yes,pw32*)
12673 library_names_spec='$libname.dll.a'
12674 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12675 postinstall_cmds='base_file=`basename \${file}`~
12676 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
12677 dldir=$destdir/`dirname \$dlpath`~
12678 test -d \$dldir || mkdir -p \$dldir~
12679 $install_prog $dir/$dlname \$dldir/$dlname~
12680 chmod a+x \$dldir/$dlname'
12681 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12682 dlpath=$dir/\$dldll~
12683 $rm \$dlpath'
12684 shlibpath_overrides_runpath=yes
12686 case $host_os in
12687 cygwin*)
12688 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12689 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12690 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
12692 mingw*)
12693 # MinGW DLLs use traditional 'lib' prefix
12694 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12695 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12696 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
12697 # It is most probably a Windows format PATH printed by
12698 # mingw gcc, but we are running on Cygwin. Gcc prints its search
12699 # path with ; separators, and with drive letters. We can handle the
12700 # drive letters (cygwin fileutils understands them), so leave them,
12701 # especially as we might pass files found there to a mingw objdump,
12702 # which wouldn't understand a cygwinified path. Ahh.
12703 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12704 else
12705 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12708 pw32*)
12709 # pw32 DLLs use 'pw' prefix rather than 'lib'
12710 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12712 esac
12716 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12718 esac
12719 dynamic_linker='Win32 ld.exe'
12720 # FIXME: first we should search . and the directory the executable is in
12721 shlibpath_var=PATH
12724 darwin* | rhapsody*)
12725 dynamic_linker="$host_os dyld"
12726 version_type=darwin
12727 need_lib_prefix=no
12728 need_version=no
12729 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12730 soname_spec='${libname}${release}${major}$shared_ext'
12731 shlibpath_overrides_runpath=yes
12732 shlibpath_var=DYLD_LIBRARY_PATH
12733 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12735 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12738 dgux*)
12739 version_type=linux
12740 need_lib_prefix=no
12741 need_version=no
12742 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12743 soname_spec='${libname}${release}${shared_ext}$major'
12744 shlibpath_var=LD_LIBRARY_PATH
12747 freebsd1*)
12748 dynamic_linker=no
12751 freebsd* | dragonfly*)
12752 # DragonFly does not have aout. When/if they implement a new
12753 # versioning mechanism, adjust this.
12754 if test -x /usr/bin/objformat; then
12755 objformat=`/usr/bin/objformat`
12756 else
12757 case $host_os in
12758 freebsd[123]*) objformat=aout ;;
12759 *) objformat=elf ;;
12760 esac
12762 version_type=freebsd-$objformat
12763 case $version_type in
12764 freebsd-elf*)
12765 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12766 need_version=no
12767 need_lib_prefix=no
12769 freebsd-*)
12770 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12771 need_version=yes
12773 esac
12774 shlibpath_var=LD_LIBRARY_PATH
12775 case $host_os in
12776 freebsd2*)
12777 shlibpath_overrides_runpath=yes
12779 freebsd3.[01]* | freebsdelf3.[01]*)
12780 shlibpath_overrides_runpath=yes
12781 hardcode_into_libs=yes
12783 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12784 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12785 shlibpath_overrides_runpath=no
12786 hardcode_into_libs=yes
12788 *) # from 4.6 on, and DragonFly
12789 shlibpath_overrides_runpath=yes
12790 hardcode_into_libs=yes
12792 esac
12795 gnu*)
12796 version_type=linux
12797 need_lib_prefix=no
12798 need_version=no
12799 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12800 soname_spec='${libname}${release}${shared_ext}$major'
12801 shlibpath_var=LD_LIBRARY_PATH
12802 hardcode_into_libs=yes
12805 hpux9* | hpux10* | hpux11*)
12806 # Give a soname corresponding to the major version so that dld.sl refuses to
12807 # link against other versions.
12808 version_type=sunos
12809 need_lib_prefix=no
12810 need_version=no
12811 case $host_cpu in
12812 ia64*)
12813 shrext_cmds='.so'
12814 hardcode_into_libs=yes
12815 dynamic_linker="$host_os dld.so"
12816 shlibpath_var=LD_LIBRARY_PATH
12817 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12818 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12819 soname_spec='${libname}${release}${shared_ext}$major'
12820 if test "X$HPUX_IA64_MODE" = X32; then
12821 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12822 else
12823 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12825 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12827 hppa*64*)
12828 shrext_cmds='.sl'
12829 hardcode_into_libs=yes
12830 dynamic_linker="$host_os dld.sl"
12831 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12832 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12833 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12834 soname_spec='${libname}${release}${shared_ext}$major'
12835 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12836 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12839 shrext_cmds='.sl'
12840 dynamic_linker="$host_os dld.sl"
12841 shlibpath_var=SHLIB_PATH
12842 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12843 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12844 soname_spec='${libname}${release}${shared_ext}$major'
12846 esac
12847 # HP-UX runs *really* slowly unless shared libraries are mode 555.
12848 postinstall_cmds='chmod 555 $lib'
12851 interix[3-9]*)
12852 version_type=linux
12853 need_lib_prefix=no
12854 need_version=no
12855 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12856 soname_spec='${libname}${release}${shared_ext}$major'
12857 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12858 shlibpath_var=LD_LIBRARY_PATH
12859 shlibpath_overrides_runpath=no
12860 hardcode_into_libs=yes
12863 irix5* | irix6* | nonstopux*)
12864 case $host_os in
12865 nonstopux*) version_type=nonstopux ;;
12867 if test "$lt_cv_prog_gnu_ld" = yes; then
12868 version_type=linux
12869 else
12870 version_type=irix
12871 fi ;;
12872 esac
12873 need_lib_prefix=no
12874 need_version=no
12875 soname_spec='${libname}${release}${shared_ext}$major'
12876 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12877 case $host_os in
12878 irix5* | nonstopux*)
12879 libsuff= shlibsuff=
12882 case $LD in # libtool.m4 will add one of these switches to LD
12883 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12884 libsuff= shlibsuff= libmagic=32-bit;;
12885 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12886 libsuff=32 shlibsuff=N32 libmagic=N32;;
12887 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12888 libsuff=64 shlibsuff=64 libmagic=64-bit;;
12889 *) libsuff= shlibsuff= libmagic=never-match;;
12890 esac
12892 esac
12893 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12894 shlibpath_overrides_runpath=no
12895 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12896 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12897 hardcode_into_libs=yes
12900 # No shared lib support for Linux oldld, aout, or coff.
12901 linux*oldld* | linux*aout* | linux*coff*)
12902 dynamic_linker=no
12905 # This must be Linux ELF.
12906 linux* | k*bsd*-gnu)
12907 version_type=linux
12908 need_lib_prefix=no
12909 need_version=no
12910 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12911 soname_spec='${libname}${release}${shared_ext}$major'
12912 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12913 shlibpath_var=LD_LIBRARY_PATH
12914 shlibpath_overrides_runpath=no
12915 # This implies no fast_install, which is unacceptable.
12916 # Some rework will be needed to allow for fast_install
12917 # before this can be enabled.
12918 hardcode_into_libs=yes
12920 # Append ld.so.conf contents to the search path
12921 if test -f /etc/ld.so.conf; then
12922 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' ' '`
12923 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12926 # We used to test for /lib/ld.so.1 and disable shared libraries on
12927 # powerpc, because MkLinux only supported shared libraries with the
12928 # GNU dynamic linker. Since this was broken with cross compilers,
12929 # most powerpc-linux boxes support dynamic linking these days and
12930 # people can always --disable-shared, the test was removed, and we
12931 # assume the GNU/Linux dynamic linker is in use.
12932 dynamic_linker='GNU/Linux ld.so'
12935 netbsd*)
12936 version_type=sunos
12937 need_lib_prefix=no
12938 need_version=no
12939 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12940 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12941 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12942 dynamic_linker='NetBSD (a.out) ld.so'
12943 else
12944 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12945 soname_spec='${libname}${release}${shared_ext}$major'
12946 dynamic_linker='NetBSD ld.elf_so'
12948 shlibpath_var=LD_LIBRARY_PATH
12949 shlibpath_overrides_runpath=yes
12950 hardcode_into_libs=yes
12953 newsos6)
12954 version_type=linux
12955 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12956 shlibpath_var=LD_LIBRARY_PATH
12957 shlibpath_overrides_runpath=yes
12960 nto-qnx*)
12961 version_type=linux
12962 need_lib_prefix=no
12963 need_version=no
12964 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12965 soname_spec='${libname}${release}${shared_ext}$major'
12966 shlibpath_var=LD_LIBRARY_PATH
12967 shlibpath_overrides_runpath=yes
12970 openbsd*)
12971 version_type=sunos
12972 sys_lib_dlsearch_path_spec="/usr/lib"
12973 need_lib_prefix=no
12974 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12975 case $host_os in
12976 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
12977 *) need_version=no ;;
12978 esac
12979 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12980 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12981 shlibpath_var=LD_LIBRARY_PATH
12982 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12983 case $host_os in
12984 openbsd2.[89] | openbsd2.[89].*)
12985 shlibpath_overrides_runpath=no
12988 shlibpath_overrides_runpath=yes
12990 esac
12991 else
12992 shlibpath_overrides_runpath=yes
12996 os2*)
12997 libname_spec='$name'
12998 shrext_cmds=".dll"
12999 need_lib_prefix=no
13000 library_names_spec='$libname${shared_ext} $libname.a'
13001 dynamic_linker='OS/2 ld.exe'
13002 shlibpath_var=LIBPATH
13005 osf3* | osf4* | osf5*)
13006 version_type=osf
13007 need_lib_prefix=no
13008 need_version=no
13009 soname_spec='${libname}${release}${shared_ext}$major'
13010 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13011 shlibpath_var=LD_LIBRARY_PATH
13012 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13013 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13016 rdos*)
13017 dynamic_linker=no
13020 solaris*)
13021 version_type=linux
13022 need_lib_prefix=no
13023 need_version=no
13024 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13025 soname_spec='${libname}${release}${shared_ext}$major'
13026 shlibpath_var=LD_LIBRARY_PATH
13027 shlibpath_overrides_runpath=yes
13028 hardcode_into_libs=yes
13029 # ldd complains unless libraries are executable
13030 postinstall_cmds='chmod +x $lib'
13033 sunos4*)
13034 version_type=sunos
13035 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13036 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13037 shlibpath_var=LD_LIBRARY_PATH
13038 shlibpath_overrides_runpath=yes
13039 if test "$with_gnu_ld" = yes; then
13040 need_lib_prefix=no
13042 need_version=yes
13045 sysv4 | sysv4.3*)
13046 version_type=linux
13047 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13048 soname_spec='${libname}${release}${shared_ext}$major'
13049 shlibpath_var=LD_LIBRARY_PATH
13050 case $host_vendor in
13051 sni)
13052 shlibpath_overrides_runpath=no
13053 need_lib_prefix=no
13054 export_dynamic_flag_spec='${wl}-Blargedynsym'
13055 runpath_var=LD_RUN_PATH
13057 siemens)
13058 need_lib_prefix=no
13060 motorola)
13061 need_lib_prefix=no
13062 need_version=no
13063 shlibpath_overrides_runpath=no
13064 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13066 esac
13069 sysv4*MP*)
13070 if test -d /usr/nec ;then
13071 version_type=linux
13072 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13073 soname_spec='$libname${shared_ext}.$major'
13074 shlibpath_var=LD_LIBRARY_PATH
13078 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13079 version_type=freebsd-elf
13080 need_lib_prefix=no
13081 need_version=no
13082 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13083 soname_spec='${libname}${release}${shared_ext}$major'
13084 shlibpath_var=LD_LIBRARY_PATH
13085 hardcode_into_libs=yes
13086 if test "$with_gnu_ld" = yes; then
13087 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13088 shlibpath_overrides_runpath=no
13089 else
13090 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13091 shlibpath_overrides_runpath=yes
13092 case $host_os in
13093 sco3.2v5*)
13094 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13096 esac
13098 sys_lib_dlsearch_path_spec='/usr/lib'
13101 uts4*)
13102 version_type=linux
13103 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13104 soname_spec='${libname}${release}${shared_ext}$major'
13105 shlibpath_var=LD_LIBRARY_PATH
13109 dynamic_linker=no
13111 esac
13112 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13113 echo "${ECHO_T}$dynamic_linker" >&6; }
13114 test "$dynamic_linker" = no && can_build_shared=no
13116 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13117 if test "$GCC" = yes; then
13118 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13121 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13122 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
13123 hardcode_action_CXX=
13124 if test -n "$hardcode_libdir_flag_spec_CXX" || \
13125 test -n "$runpath_var_CXX" || \
13126 test "X$hardcode_automatic_CXX" = "Xyes" ; then
13128 # We can hardcode non-existant directories.
13129 if test "$hardcode_direct_CXX" != no &&
13130 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13131 # have to relink, otherwise we might link with an installed library
13132 # when we should be linking with a yet-to-be-installed one
13133 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13134 test "$hardcode_minus_L_CXX" != no; then
13135 # Linking always hardcodes the temporary library directory.
13136 hardcode_action_CXX=relink
13137 else
13138 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13139 hardcode_action_CXX=immediate
13141 else
13142 # We cannot hardcode anything, or else we can only hardcode existing
13143 # directories.
13144 hardcode_action_CXX=unsupported
13146 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
13147 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
13149 if test "$hardcode_action_CXX" = relink; then
13150 # Fast installation is not supported
13151 enable_fast_install=no
13152 elif test "$shlibpath_overrides_runpath" = yes ||
13153 test "$enable_shared" = no; then
13154 # Fast installation is not necessary
13155 enable_fast_install=needless
13159 # The else clause should only fire when bootstrapping the
13160 # libtool distribution, otherwise you forgot to ship ltmain.sh
13161 # with your package, and you will get complaints that there are
13162 # no rules to generate ltmain.sh.
13163 if test -f "$ltmain"; then
13164 # See if we are running on zsh, and set the options which allow our commands through
13165 # without removal of \ escapes.
13166 if test -n "${ZSH_VERSION+set}" ; then
13167 setopt NO_GLOB_SUBST
13169 # Now quote all the things that may contain metacharacters while being
13170 # careful not to overquote the AC_SUBSTed values. We take copies of the
13171 # variables and quote the copies for generation of the libtool script.
13172 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
13173 SED SHELL STRIP \
13174 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13175 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13176 deplibs_check_method reload_flag reload_cmds need_locks \
13177 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13178 lt_cv_sys_global_symbol_to_c_name_address \
13179 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13180 old_postinstall_cmds old_postuninstall_cmds \
13181 compiler_CXX \
13182 CC_CXX \
13183 LD_CXX \
13184 lt_prog_compiler_wl_CXX \
13185 lt_prog_compiler_pic_CXX \
13186 lt_prog_compiler_static_CXX \
13187 lt_prog_compiler_no_builtin_flag_CXX \
13188 export_dynamic_flag_spec_CXX \
13189 thread_safe_flag_spec_CXX \
13190 whole_archive_flag_spec_CXX \
13191 enable_shared_with_static_runtimes_CXX \
13192 old_archive_cmds_CXX \
13193 old_archive_from_new_cmds_CXX \
13194 predep_objects_CXX \
13195 postdep_objects_CXX \
13196 predeps_CXX \
13197 postdeps_CXX \
13198 compiler_lib_search_path_CXX \
13199 archive_cmds_CXX \
13200 archive_expsym_cmds_CXX \
13201 postinstall_cmds_CXX \
13202 postuninstall_cmds_CXX \
13203 old_archive_from_expsyms_cmds_CXX \
13204 allow_undefined_flag_CXX \
13205 no_undefined_flag_CXX \
13206 export_symbols_cmds_CXX \
13207 hardcode_libdir_flag_spec_CXX \
13208 hardcode_libdir_flag_spec_ld_CXX \
13209 hardcode_libdir_separator_CXX \
13210 hardcode_automatic_CXX \
13211 module_cmds_CXX \
13212 module_expsym_cmds_CXX \
13213 lt_cv_prog_compiler_c_o_CXX \
13214 fix_srcfile_path_CXX \
13215 exclude_expsyms_CXX \
13216 include_expsyms_CXX; do
13218 case $var in
13219 old_archive_cmds_CXX | \
13220 old_archive_from_new_cmds_CXX | \
13221 archive_cmds_CXX | \
13222 archive_expsym_cmds_CXX | \
13223 module_cmds_CXX | \
13224 module_expsym_cmds_CXX | \
13225 old_archive_from_expsyms_cmds_CXX | \
13226 export_symbols_cmds_CXX | \
13227 extract_expsyms_cmds | reload_cmds | finish_cmds | \
13228 postinstall_cmds | postuninstall_cmds | \
13229 old_postinstall_cmds | old_postuninstall_cmds | \
13230 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13231 # Double-quote double-evaled strings.
13232 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13235 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13237 esac
13238 done
13240 case $lt_echo in
13241 *'\$0 --fallback-echo"')
13242 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13244 esac
13246 cfgfile="$ofile"
13248 cat <<__EOF__ >> "$cfgfile"
13249 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
13251 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13253 # Shell to use when invoking shell scripts.
13254 SHELL=$lt_SHELL
13256 # Whether or not to build shared libraries.
13257 build_libtool_libs=$enable_shared
13259 # Whether or not to build static libraries.
13260 build_old_libs=$enable_static
13262 # Whether or not to add -lc for building shared libraries.
13263 build_libtool_need_lc=$archive_cmds_need_lc_CXX
13265 # Whether or not to disallow shared libs when runtime libs are static
13266 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13268 # Whether or not to optimize for fast installation.
13269 fast_install=$enable_fast_install
13271 # The host system.
13272 host_alias=$host_alias
13273 host=$host
13274 host_os=$host_os
13276 # The build system.
13277 build_alias=$build_alias
13278 build=$build
13279 build_os=$build_os
13281 # An echo program that does not interpret backslashes.
13282 echo=$lt_echo
13284 # The archiver.
13285 AR=$lt_AR
13286 AR_FLAGS=$lt_AR_FLAGS
13288 # A C compiler.
13289 LTCC=$lt_LTCC
13291 # LTCC compiler flags.
13292 LTCFLAGS=$lt_LTCFLAGS
13294 # A language-specific compiler.
13295 CC=$lt_compiler_CXX
13297 # Is the compiler the GNU C compiler?
13298 with_gcc=$GCC_CXX
13300 # An ERE matcher.
13301 EGREP=$lt_EGREP
13303 # The linker used to build libraries.
13304 LD=$lt_LD_CXX
13306 # Whether we need hard or soft links.
13307 LN_S=$lt_LN_S
13309 # A BSD-compatible nm program.
13310 NM=$lt_NM
13312 # A symbol stripping program
13313 STRIP=$lt_STRIP
13315 # Used to examine libraries when file_magic_cmd begins "file"
13316 MAGIC_CMD=$MAGIC_CMD
13318 # Used on cygwin: DLL creation program.
13319 DLLTOOL="$DLLTOOL"
13321 # Used on cygwin: object dumper.
13322 OBJDUMP="$OBJDUMP"
13324 # Used on cygwin: assembler.
13325 AS="$AS"
13327 # The name of the directory that contains temporary libtool files.
13328 objdir=$objdir
13330 # How to create reloadable object files.
13331 reload_flag=$lt_reload_flag
13332 reload_cmds=$lt_reload_cmds
13334 # How to pass a linker flag through the compiler.
13335 wl=$lt_lt_prog_compiler_wl_CXX
13337 # Object file suffix (normally "o").
13338 objext="$ac_objext"
13340 # Old archive suffix (normally "a").
13341 libext="$libext"
13343 # Shared library suffix (normally ".so").
13344 shrext_cmds='$shrext_cmds'
13346 # Executable file suffix (normally "").
13347 exeext="$exeext"
13349 # Additional compiler flags for building library objects.
13350 pic_flag=$lt_lt_prog_compiler_pic_CXX
13351 pic_mode=$pic_mode
13353 # What is the maximum length of a command?
13354 max_cmd_len=$lt_cv_sys_max_cmd_len
13356 # Does compiler simultaneously support -c and -o options?
13357 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13359 # Must we lock files when doing compilation?
13360 need_locks=$lt_need_locks
13362 # Do we need the lib prefix for modules?
13363 need_lib_prefix=$need_lib_prefix
13365 # Do we need a version for libraries?
13366 need_version=$need_version
13368 # Whether dlopen is supported.
13369 dlopen_support=$enable_dlopen
13371 # Whether dlopen of programs is supported.
13372 dlopen_self=$enable_dlopen_self
13374 # Whether dlopen of statically linked programs is supported.
13375 dlopen_self_static=$enable_dlopen_self_static
13377 # Compiler flag to prevent dynamic linking.
13378 link_static_flag=$lt_lt_prog_compiler_static_CXX
13380 # Compiler flag to turn off builtin functions.
13381 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13383 # Compiler flag to allow reflexive dlopens.
13384 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13386 # Compiler flag to generate shared objects directly from archives.
13387 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13389 # Compiler flag to generate thread-safe objects.
13390 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13392 # Library versioning type.
13393 version_type=$version_type
13395 # Format of library name prefix.
13396 libname_spec=$lt_libname_spec
13398 # List of archive names. First name is the real one, the rest are links.
13399 # The last name is the one that the linker finds with -lNAME.
13400 library_names_spec=$lt_library_names_spec
13402 # The coded name of the library, if different from the real name.
13403 soname_spec=$lt_soname_spec
13405 # Commands used to build and install an old-style archive.
13406 RANLIB=$lt_RANLIB
13407 old_archive_cmds=$lt_old_archive_cmds_CXX
13408 old_postinstall_cmds=$lt_old_postinstall_cmds
13409 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13411 # Create an old-style archive from a shared archive.
13412 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13414 # Create a temporary old-style archive to link instead of a shared archive.
13415 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13417 # Commands used to build and install a shared archive.
13418 archive_cmds=$lt_archive_cmds_CXX
13419 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13420 postinstall_cmds=$lt_postinstall_cmds
13421 postuninstall_cmds=$lt_postuninstall_cmds
13423 # Commands used to build a loadable module (assumed same as above if empty)
13424 module_cmds=$lt_module_cmds_CXX
13425 module_expsym_cmds=$lt_module_expsym_cmds_CXX
13427 # Commands to strip libraries.
13428 old_striplib=$lt_old_striplib
13429 striplib=$lt_striplib
13431 # Dependencies to place before the objects being linked to create a
13432 # shared library.
13433 predep_objects=$lt_predep_objects_CXX
13435 # Dependencies to place after the objects being linked to create a
13436 # shared library.
13437 postdep_objects=$lt_postdep_objects_CXX
13439 # Dependencies to place before the objects being linked to create a
13440 # shared library.
13441 predeps=$lt_predeps_CXX
13443 # Dependencies to place after the objects being linked to create a
13444 # shared library.
13445 postdeps=$lt_postdeps_CXX
13447 # The library search path used internally by the compiler when linking
13448 # a shared library.
13449 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13451 # Method to check whether dependent libraries are shared objects.
13452 deplibs_check_method=$lt_deplibs_check_method
13454 # Command to use when deplibs_check_method == file_magic.
13455 file_magic_cmd=$lt_file_magic_cmd
13457 # Flag that allows shared libraries with undefined symbols to be built.
13458 allow_undefined_flag=$lt_allow_undefined_flag_CXX
13460 # Flag that forces no undefined symbols.
13461 no_undefined_flag=$lt_no_undefined_flag_CXX
13463 # Commands used to finish a libtool library installation in a directory.
13464 finish_cmds=$lt_finish_cmds
13466 # Same as above, but a single script fragment to be evaled but not shown.
13467 finish_eval=$lt_finish_eval
13469 # Take the output of nm and produce a listing of raw symbols and C names.
13470 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13472 # Transform the output of nm in a proper C declaration
13473 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13475 # Transform the output of nm in a C name address pair
13476 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13478 # This is the shared library runtime path variable.
13479 runpath_var=$runpath_var
13481 # This is the shared library path variable.
13482 shlibpath_var=$shlibpath_var
13484 # Is shlibpath searched before the hard-coded library search path?
13485 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13487 # How to hardcode a shared library path into an executable.
13488 hardcode_action=$hardcode_action_CXX
13490 # Whether we should hardcode library paths into libraries.
13491 hardcode_into_libs=$hardcode_into_libs
13493 # Flag to hardcode \$libdir into a binary during linking.
13494 # This must work even if \$libdir does not exist.
13495 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13497 # If ld is used when linking, flag to hardcode \$libdir into
13498 # a binary during linking. This must work even if \$libdir does
13499 # not exist.
13500 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13502 # Whether we need a single -rpath flag with a separated argument.
13503 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13505 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13506 # resulting binary.
13507 hardcode_direct=$hardcode_direct_CXX
13509 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13510 # resulting binary.
13511 hardcode_minus_L=$hardcode_minus_L_CXX
13513 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13514 # the resulting binary.
13515 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13517 # Set to yes if building a shared library automatically hardcodes DIR into the library
13518 # and all subsequent libraries and executables linked against it.
13519 hardcode_automatic=$hardcode_automatic_CXX
13521 # Variables whose values should be saved in libtool wrapper scripts and
13522 # restored at relink time.
13523 variables_saved_for_relink="$variables_saved_for_relink"
13525 # Whether libtool must link a program against all its dependency libraries.
13526 link_all_deplibs=$link_all_deplibs_CXX
13528 # Compile-time system search path for libraries
13529 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13531 # Run-time system search path for libraries
13532 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13534 # Fix the shell variable \$srcfile for the compiler.
13535 fix_srcfile_path=$lt_fix_srcfile_path
13537 # Set to yes if exported symbols are required.
13538 always_export_symbols=$always_export_symbols_CXX
13540 # The commands to list exported symbols.
13541 export_symbols_cmds=$lt_export_symbols_cmds_CXX
13543 # The commands to extract the exported symbol list from a shared archive.
13544 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13546 # Symbols that should not be listed in the preloaded symbols.
13547 exclude_expsyms=$lt_exclude_expsyms_CXX
13549 # Symbols that must always be exported.
13550 include_expsyms=$lt_include_expsyms_CXX
13552 # ### END LIBTOOL TAG CONFIG: $tagname
13554 __EOF__
13557 else
13558 # If there is no Makefile yet, we rely on a make rule to execute
13559 # `config.status --recheck' to rerun these tests and create the
13560 # libtool script then.
13561 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13562 if test -f "$ltmain_in"; then
13563 test -f Makefile && make "$ltmain"
13568 ac_ext=c
13569 ac_cpp='$CPP $CPPFLAGS'
13570 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13571 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13572 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13574 CC=$lt_save_CC
13575 LDCXX=$LD
13576 LD=$lt_save_LD
13577 GCC=$lt_save_GCC
13578 with_gnu_ldcxx=$with_gnu_ld
13579 with_gnu_ld=$lt_save_with_gnu_ld
13580 lt_cv_path_LDCXX=$lt_cv_path_LD
13581 lt_cv_path_LD=$lt_save_path_LD
13582 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13583 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13585 else
13586 tagname=""
13590 F77)
13591 if test -n "$F77" && test "X$F77" != "Xno"; then
13593 ac_ext=f
13594 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13595 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13596 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13599 archive_cmds_need_lc_F77=no
13600 allow_undefined_flag_F77=
13601 always_export_symbols_F77=no
13602 archive_expsym_cmds_F77=
13603 export_dynamic_flag_spec_F77=
13604 hardcode_direct_F77=no
13605 hardcode_libdir_flag_spec_F77=
13606 hardcode_libdir_flag_spec_ld_F77=
13607 hardcode_libdir_separator_F77=
13608 hardcode_minus_L_F77=no
13609 hardcode_automatic_F77=no
13610 module_cmds_F77=
13611 module_expsym_cmds_F77=
13612 link_all_deplibs_F77=unknown
13613 old_archive_cmds_F77=$old_archive_cmds
13614 no_undefined_flag_F77=
13615 whole_archive_flag_spec_F77=
13616 enable_shared_with_static_runtimes_F77=no
13618 # Source file extension for f77 test sources.
13619 ac_ext=f
13621 # Object file extension for compiled f77 test sources.
13622 objext=o
13623 objext_F77=$objext
13625 # Code to be used in simple compile tests
13626 lt_simple_compile_test_code="\
13627 subroutine t
13628 return
13632 # Code to be used in simple link tests
13633 lt_simple_link_test_code="\
13634 program t
13638 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13640 # If no C compiler was specified, use CC.
13641 LTCC=${LTCC-"$CC"}
13643 # If no C compiler flags were specified, use CFLAGS.
13644 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13646 # Allow CC to be a program name with arguments.
13647 compiler=$CC
13650 # save warnings/boilerplate of simple test code
13651 ac_outfile=conftest.$ac_objext
13652 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13653 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13654 _lt_compiler_boilerplate=`cat conftest.err`
13655 $rm conftest*
13657 ac_outfile=conftest.$ac_objext
13658 echo "$lt_simple_link_test_code" >conftest.$ac_ext
13659 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13660 _lt_linker_boilerplate=`cat conftest.err`
13661 $rm conftest*
13664 # Allow CC to be a program name with arguments.
13665 lt_save_CC="$CC"
13666 CC=${F77-"f77"}
13667 compiler=$CC
13668 compiler_F77=$CC
13669 for cc_temp in $compiler""; do
13670 case $cc_temp in
13671 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13672 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13673 \-*) ;;
13674 *) break;;
13675 esac
13676 done
13677 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13680 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13681 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
13682 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
13683 echo "${ECHO_T}$can_build_shared" >&6; }
13685 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13686 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
13687 test "$can_build_shared" = "no" && enable_shared=no
13689 # On AIX, shared libraries and static libraries use the same namespace, and
13690 # are all built from PIC.
13691 case $host_os in
13692 aix3*)
13693 test "$enable_shared" = yes && enable_static=no
13694 if test -n "$RANLIB"; then
13695 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13696 postinstall_cmds='$RANLIB $lib'
13699 aix4* | aix5*)
13700 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13701 test "$enable_shared" = yes && enable_static=no
13704 esac
13705 { echo "$as_me:$LINENO: result: $enable_shared" >&5
13706 echo "${ECHO_T}$enable_shared" >&6; }
13708 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13709 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
13710 # Make sure either enable_shared or enable_static is yes.
13711 test "$enable_shared" = yes || enable_static=yes
13712 { echo "$as_me:$LINENO: result: $enable_static" >&5
13713 echo "${ECHO_T}$enable_static" >&6; }
13715 GCC_F77="$G77"
13716 LD_F77="$LD"
13718 lt_prog_compiler_wl_F77=
13719 lt_prog_compiler_pic_F77=
13720 lt_prog_compiler_static_F77=
13722 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13723 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
13725 if test "$GCC" = yes; then
13726 lt_prog_compiler_wl_F77='-Wl,'
13727 lt_prog_compiler_static_F77='-static'
13729 case $host_os in
13730 aix*)
13731 # All AIX code is PIC.
13732 if test "$host_cpu" = ia64; then
13733 # AIX 5 now supports IA64 processor
13734 lt_prog_compiler_static_F77='-Bstatic'
13738 amigaos*)
13739 # FIXME: we need at least 68020 code to build shared libraries, but
13740 # adding the `-m68020' flag to GCC prevents building anything better,
13741 # like `-m68040'.
13742 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13745 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13746 # PIC is the default for these OSes.
13749 mingw* | cygwin* | pw32* | os2*)
13750 # This hack is so that the source file can tell whether it is being
13751 # built for inclusion in a dll (and should export symbols for example).
13752 # Although the cygwin gcc ignores -fPIC, still need this for old-style
13753 # (--disable-auto-import) libraries
13754 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13757 darwin* | rhapsody*)
13758 # PIC is the default on this platform
13759 # Common symbols not allowed in MH_DYLIB files
13760 lt_prog_compiler_pic_F77='-fno-common'
13763 interix[3-9]*)
13764 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13765 # Instead, we relocate shared libraries at runtime.
13768 msdosdjgpp*)
13769 # Just because we use GCC doesn't mean we suddenly get shared libraries
13770 # on systems that don't support them.
13771 lt_prog_compiler_can_build_shared_F77=no
13772 enable_shared=no
13775 sysv4*MP*)
13776 if test -d /usr/nec; then
13777 lt_prog_compiler_pic_F77=-Kconform_pic
13781 hpux*)
13782 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13783 # not for PA HP-UX.
13784 case $host_cpu in
13785 hppa*64*|ia64*)
13786 # +Z the default
13789 lt_prog_compiler_pic_F77='-fPIC'
13791 esac
13795 lt_prog_compiler_pic_F77='-fPIC'
13797 esac
13798 else
13799 # PORTME Check for flag to pass linker flags through the system compiler.
13800 case $host_os in
13801 aix*)
13802 lt_prog_compiler_wl_F77='-Wl,'
13803 if test "$host_cpu" = ia64; then
13804 # AIX 5 now supports IA64 processor
13805 lt_prog_compiler_static_F77='-Bstatic'
13806 else
13807 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13810 darwin*)
13811 # PIC is the default on this platform
13812 # Common symbols not allowed in MH_DYLIB files
13813 case $cc_basename in
13814 xlc*)
13815 lt_prog_compiler_pic_F77='-qnocommon'
13816 lt_prog_compiler_wl_F77='-Wl,'
13818 esac
13821 mingw* | cygwin* | pw32* | os2*)
13822 # This hack is so that the source file can tell whether it is being
13823 # built for inclusion in a dll (and should export symbols for example).
13824 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13827 hpux9* | hpux10* | hpux11*)
13828 lt_prog_compiler_wl_F77='-Wl,'
13829 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13830 # not for PA HP-UX.
13831 case $host_cpu in
13832 hppa*64*|ia64*)
13833 # +Z the default
13836 lt_prog_compiler_pic_F77='+Z'
13838 esac
13839 # Is there a better lt_prog_compiler_static that works with the bundled CC?
13840 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13843 irix5* | irix6* | nonstopux*)
13844 lt_prog_compiler_wl_F77='-Wl,'
13845 # PIC (with -KPIC) is the default.
13846 lt_prog_compiler_static_F77='-non_shared'
13849 newsos6)
13850 lt_prog_compiler_pic_F77='-KPIC'
13851 lt_prog_compiler_static_F77='-Bstatic'
13854 linux* | k*bsd*-gnu)
13855 case $cc_basename in
13856 icc* | ecc*)
13857 lt_prog_compiler_wl_F77='-Wl,'
13858 lt_prog_compiler_pic_F77='-KPIC'
13859 lt_prog_compiler_static_F77='-static'
13861 pgcc* | pgf77* | pgf90* | pgf95*)
13862 # Portland Group compilers (*not* the Pentium gcc compiler,
13863 # which looks to be a dead project)
13864 lt_prog_compiler_wl_F77='-Wl,'
13865 lt_prog_compiler_pic_F77='-fpic'
13866 lt_prog_compiler_static_F77='-Bstatic'
13868 ccc*)
13869 lt_prog_compiler_wl_F77='-Wl,'
13870 # All Alpha code is PIC.
13871 lt_prog_compiler_static_F77='-non_shared'
13874 case `$CC -V 2>&1 | sed 5q` in
13875 *Sun\ C*)
13876 # Sun C 5.9
13877 lt_prog_compiler_pic_F77='-KPIC'
13878 lt_prog_compiler_static_F77='-Bstatic'
13879 lt_prog_compiler_wl_F77='-Wl,'
13881 *Sun\ F*)
13882 # Sun Fortran 8.3 passes all unrecognized flags to the linker
13883 lt_prog_compiler_pic_F77='-KPIC'
13884 lt_prog_compiler_static_F77='-Bstatic'
13885 lt_prog_compiler_wl_F77=''
13887 esac
13889 esac
13892 osf3* | osf4* | osf5*)
13893 lt_prog_compiler_wl_F77='-Wl,'
13894 # All OSF/1 code is PIC.
13895 lt_prog_compiler_static_F77='-non_shared'
13898 rdos*)
13899 lt_prog_compiler_static_F77='-non_shared'
13902 solaris*)
13903 lt_prog_compiler_pic_F77='-KPIC'
13904 lt_prog_compiler_static_F77='-Bstatic'
13905 case $cc_basename in
13906 f77* | f90* | f95*)
13907 lt_prog_compiler_wl_F77='-Qoption ld ';;
13909 lt_prog_compiler_wl_F77='-Wl,';;
13910 esac
13913 sunos4*)
13914 lt_prog_compiler_wl_F77='-Qoption ld '
13915 lt_prog_compiler_pic_F77='-PIC'
13916 lt_prog_compiler_static_F77='-Bstatic'
13919 sysv4 | sysv4.2uw2* | sysv4.3*)
13920 lt_prog_compiler_wl_F77='-Wl,'
13921 lt_prog_compiler_pic_F77='-KPIC'
13922 lt_prog_compiler_static_F77='-Bstatic'
13925 sysv4*MP*)
13926 if test -d /usr/nec ;then
13927 lt_prog_compiler_pic_F77='-Kconform_pic'
13928 lt_prog_compiler_static_F77='-Bstatic'
13932 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13933 lt_prog_compiler_wl_F77='-Wl,'
13934 lt_prog_compiler_pic_F77='-KPIC'
13935 lt_prog_compiler_static_F77='-Bstatic'
13938 unicos*)
13939 lt_prog_compiler_wl_F77='-Wl,'
13940 lt_prog_compiler_can_build_shared_F77=no
13943 uts4*)
13944 lt_prog_compiler_pic_F77='-pic'
13945 lt_prog_compiler_static_F77='-Bstatic'
13949 lt_prog_compiler_can_build_shared_F77=no
13951 esac
13954 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13955 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
13958 # Check to make sure the PIC flag actually works.
13960 if test -n "$lt_prog_compiler_pic_F77"; then
13962 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13963 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
13964 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13965 echo $ECHO_N "(cached) $ECHO_C" >&6
13966 else
13967 lt_prog_compiler_pic_works_F77=no
13968 ac_outfile=conftest.$ac_objext
13969 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13970 lt_compiler_flag="$lt_prog_compiler_pic_F77"
13971 # Insert the option either (1) after the last *FLAGS variable, or
13972 # (2) before a word containing "conftest.", or (3) at the end.
13973 # Note that $ac_compile itself does not contain backslashes and begins
13974 # with a dollar sign (not a hyphen), so the echo should work correctly.
13975 # The option is referenced via a variable to avoid confusing sed.
13976 lt_compile=`echo "$ac_compile" | $SED \
13977 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13978 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13979 -e 's:$: $lt_compiler_flag:'`
13980 (eval echo "\"\$as_me:13980: $lt_compile\"" >&5)
13981 (eval "$lt_compile" 2>conftest.err)
13982 ac_status=$?
13983 cat conftest.err >&5
13984 echo "$as_me:13984: \$? = $ac_status" >&5
13985 if (exit $ac_status) && test -s "$ac_outfile"; then
13986 # The compiler can only warn and ignore the option if not recognized
13987 # So say no if there are warnings other than the usual output.
13988 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13989 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13990 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13991 lt_prog_compiler_pic_works_F77=yes
13994 $rm conftest*
13997 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
13998 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
14000 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
14001 case $lt_prog_compiler_pic_F77 in
14002 "" | " "*) ;;
14003 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
14004 esac
14005 else
14006 lt_prog_compiler_pic_F77=
14007 lt_prog_compiler_can_build_shared_F77=no
14011 case $host_os in
14012 # For platforms which do not support PIC, -DPIC is meaningless:
14013 *djgpp*)
14014 lt_prog_compiler_pic_F77=
14017 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14019 esac
14022 # Check to make sure the static flag actually works.
14024 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
14025 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14026 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14027 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
14028 echo $ECHO_N "(cached) $ECHO_C" >&6
14029 else
14030 lt_prog_compiler_static_works_F77=no
14031 save_LDFLAGS="$LDFLAGS"
14032 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14033 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14034 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14035 # The linker can only warn and ignore the option if not recognized
14036 # So say no if there are warnings
14037 if test -s conftest.err; then
14038 # Append any errors to the config.log.
14039 cat conftest.err 1>&5
14040 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14041 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14042 if diff conftest.exp conftest.er2 >/dev/null; then
14043 lt_prog_compiler_static_works_F77=yes
14045 else
14046 lt_prog_compiler_static_works_F77=yes
14049 $rm conftest*
14050 LDFLAGS="$save_LDFLAGS"
14053 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
14054 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
14056 if test x"$lt_prog_compiler_static_works_F77" = xyes; then
14058 else
14059 lt_prog_compiler_static_F77=
14063 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14064 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14065 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14066 echo $ECHO_N "(cached) $ECHO_C" >&6
14067 else
14068 lt_cv_prog_compiler_c_o_F77=no
14069 $rm -r conftest 2>/dev/null
14070 mkdir conftest
14071 cd conftest
14072 mkdir out
14073 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14075 lt_compiler_flag="-o out/conftest2.$ac_objext"
14076 # Insert the option either (1) after the last *FLAGS variable, or
14077 # (2) before a word containing "conftest.", or (3) at the end.
14078 # Note that $ac_compile itself does not contain backslashes and begins
14079 # with a dollar sign (not a hyphen), so the echo should work correctly.
14080 lt_compile=`echo "$ac_compile" | $SED \
14081 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14082 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14083 -e 's:$: $lt_compiler_flag:'`
14084 (eval echo "\"\$as_me:14084: $lt_compile\"" >&5)
14085 (eval "$lt_compile" 2>out/conftest.err)
14086 ac_status=$?
14087 cat out/conftest.err >&5
14088 echo "$as_me:14088: \$? = $ac_status" >&5
14089 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14090 then
14091 # The compiler can only warn and ignore the option if not recognized
14092 # So say no if there are warnings
14093 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14094 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14095 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14096 lt_cv_prog_compiler_c_o_F77=yes
14099 chmod u+w . 2>&5
14100 $rm conftest*
14101 # SGI C++ compiler will create directory out/ii_files/ for
14102 # template instantiation
14103 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14104 $rm out/* && rmdir out
14105 cd ..
14106 rmdir conftest
14107 $rm conftest*
14110 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14111 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
14114 hard_links="nottested"
14115 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14116 # do not overwrite the value of need_locks provided by the user
14117 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14118 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14119 hard_links=yes
14120 $rm conftest*
14121 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14122 touch conftest.a
14123 ln conftest.a conftest.b 2>&5 || hard_links=no
14124 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14125 { echo "$as_me:$LINENO: result: $hard_links" >&5
14126 echo "${ECHO_T}$hard_links" >&6; }
14127 if test "$hard_links" = no; then
14128 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14129 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14130 need_locks=warn
14132 else
14133 need_locks=no
14136 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14137 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14139 runpath_var=
14140 allow_undefined_flag_F77=
14141 enable_shared_with_static_runtimes_F77=no
14142 archive_cmds_F77=
14143 archive_expsym_cmds_F77=
14144 old_archive_From_new_cmds_F77=
14145 old_archive_from_expsyms_cmds_F77=
14146 export_dynamic_flag_spec_F77=
14147 whole_archive_flag_spec_F77=
14148 thread_safe_flag_spec_F77=
14149 hardcode_libdir_flag_spec_F77=
14150 hardcode_libdir_flag_spec_ld_F77=
14151 hardcode_libdir_separator_F77=
14152 hardcode_direct_F77=no
14153 hardcode_minus_L_F77=no
14154 hardcode_shlibpath_var_F77=unsupported
14155 link_all_deplibs_F77=unknown
14156 hardcode_automatic_F77=no
14157 module_cmds_F77=
14158 module_expsym_cmds_F77=
14159 always_export_symbols_F77=no
14160 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14161 # include_expsyms should be a list of space-separated symbols to be *always*
14162 # included in the symbol list
14163 include_expsyms_F77=
14164 # exclude_expsyms can be an extended regexp of symbols to exclude
14165 # it will be wrapped by ` (' and `)$', so one must not match beginning or
14166 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14167 # as well as any symbol that contains `d'.
14168 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
14169 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14170 # platforms (ab)use it in PIC code, but their linkers get confused if
14171 # the symbol is explicitly referenced. Since portable code cannot
14172 # rely on this symbol name, it's probably fine to never include it in
14173 # preloaded symbol tables.
14174 extract_expsyms_cmds=
14175 # Just being paranoid about ensuring that cc_basename is set.
14176 for cc_temp in $compiler""; do
14177 case $cc_temp in
14178 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14179 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14180 \-*) ;;
14181 *) break;;
14182 esac
14183 done
14184 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14186 case $host_os in
14187 cygwin* | mingw* | pw32*)
14188 # FIXME: the MSVC++ port hasn't been tested in a loooong time
14189 # When not using gcc, we currently assume that we are using
14190 # Microsoft Visual C++.
14191 if test "$GCC" != yes; then
14192 with_gnu_ld=no
14195 interix*)
14196 # we just hope/assume this is gcc and not c89 (= MSVC++)
14197 with_gnu_ld=yes
14199 openbsd*)
14200 with_gnu_ld=no
14202 esac
14204 ld_shlibs_F77=yes
14205 if test "$with_gnu_ld" = yes; then
14206 # If archive_cmds runs LD, not CC, wlarc should be empty
14207 wlarc='${wl}'
14209 # Set some defaults for GNU ld with shared library support. These
14210 # are reset later if shared libraries are not supported. Putting them
14211 # here allows them to be overridden if necessary.
14212 runpath_var=LD_RUN_PATH
14213 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14214 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14215 # ancient GNU ld didn't support --whole-archive et. al.
14216 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14217 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14218 else
14219 whole_archive_flag_spec_F77=
14221 supports_anon_versioning=no
14222 case `$LD -v 2>/dev/null` in
14223 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14224 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14225 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14226 *\ 2.11.*) ;; # other 2.11 versions
14227 *) supports_anon_versioning=yes ;;
14228 esac
14230 # See if GNU ld supports shared libraries.
14231 case $host_os in
14232 aix3* | aix4* | aix5*)
14233 # On AIX/PPC, the GNU linker is very broken
14234 if test "$host_cpu" != ia64; then
14235 ld_shlibs_F77=no
14236 cat <<EOF 1>&2
14238 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
14239 *** to be unable to reliably create shared libraries on AIX.
14240 *** Therefore, libtool is disabling shared libraries support. If you
14241 *** really care for shared libraries, you may want to modify your PATH
14242 *** so that a non-GNU linker is found, and then restart.
14248 amigaos*)
14249 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)'
14250 hardcode_libdir_flag_spec_F77='-L$libdir'
14251 hardcode_minus_L_F77=yes
14253 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14254 # that the semantics of dynamic libraries on AmigaOS, at least up
14255 # to version 4, is to share data among multiple programs linked
14256 # with the same dynamic library. Since this doesn't match the
14257 # behavior of shared libraries on other platforms, we can't use
14258 # them.
14259 ld_shlibs_F77=no
14262 beos*)
14263 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14264 allow_undefined_flag_F77=unsupported
14265 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14266 # support --undefined. This deserves some investigation. FIXME
14267 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14268 else
14269 ld_shlibs_F77=no
14273 cygwin* | mingw* | pw32*)
14274 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14275 # as there is no search path for DLLs.
14276 hardcode_libdir_flag_spec_F77='-L$libdir'
14277 allow_undefined_flag_F77=unsupported
14278 always_export_symbols_F77=no
14279 enable_shared_with_static_runtimes_F77=yes
14280 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
14282 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14283 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14284 # If the export-symbols file already is a .def file (1st line
14285 # is EXPORTS), use it as is; otherwise, prepend...
14286 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14287 cp $export_symbols $output_objdir/$soname.def;
14288 else
14289 echo EXPORTS > $output_objdir/$soname.def;
14290 cat $export_symbols >> $output_objdir/$soname.def;
14292 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14293 else
14294 ld_shlibs_F77=no
14298 interix[3-9]*)
14299 hardcode_direct_F77=no
14300 hardcode_shlibpath_var_F77=no
14301 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14302 export_dynamic_flag_spec_F77='${wl}-E'
14303 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14304 # Instead, shared libraries are loaded at an image base (0x10000000 by
14305 # default) and relocated if they conflict, which is a slow very memory
14306 # consuming and fragmenting process. To avoid this, we pick a random,
14307 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14308 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14309 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'
14310 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'
14313 gnu* | linux* | k*bsd*-gnu)
14314 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14315 tmp_addflag=
14316 case $cc_basename,$host_cpu in
14317 pgcc*) # Portland Group C compiler
14318 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'
14319 tmp_addflag=' $pic_flag'
14321 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
14322 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'
14323 tmp_addflag=' $pic_flag -Mnomain' ;;
14324 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
14325 tmp_addflag=' -i_dynamic' ;;
14326 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
14327 tmp_addflag=' -i_dynamic -nofor_main' ;;
14328 ifc* | ifort*) # Intel Fortran compiler
14329 tmp_addflag=' -nofor_main' ;;
14330 esac
14331 case `$CC -V 2>&1 | sed 5q` in
14332 *Sun\ C*) # Sun C 5.9
14333 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'
14334 tmp_sharedflag='-G' ;;
14335 *Sun\ F*) # Sun Fortran 8.3
14336 tmp_sharedflag='-G' ;;
14338 tmp_sharedflag='-shared' ;;
14339 esac
14340 archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14342 if test $supports_anon_versioning = yes; then
14343 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14344 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14345 $echo "local: *; };" >> $output_objdir/$libname.ver~
14346 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14348 else
14349 ld_shlibs_F77=no
14353 netbsd*)
14354 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14355 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14356 wlarc=
14357 else
14358 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14359 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14363 solaris*)
14364 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14365 ld_shlibs_F77=no
14366 cat <<EOF 1>&2
14368 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
14369 *** create shared libraries on Solaris systems. Therefore, libtool
14370 *** is disabling shared libraries support. We urge you to upgrade GNU
14371 *** binutils to release 2.9.1 or newer. Another option is to modify
14372 *** your PATH or compiler configuration so that the native linker is
14373 *** used, and then restart.
14376 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14377 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14378 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14379 else
14380 ld_shlibs_F77=no
14384 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14385 case `$LD -v 2>&1` in
14386 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14387 ld_shlibs_F77=no
14388 cat <<_LT_EOF 1>&2
14390 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14391 *** reliably create shared libraries on SCO systems. Therefore, libtool
14392 *** is disabling shared libraries support. We urge you to upgrade GNU
14393 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
14394 *** your PATH or compiler configuration so that the native linker is
14395 *** used, and then restart.
14397 _LT_EOF
14400 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14401 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
14402 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
14403 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
14404 else
14405 ld_shlibs_F77=no
14408 esac
14411 sunos4*)
14412 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14413 wlarc=
14414 hardcode_direct_F77=yes
14415 hardcode_shlibpath_var_F77=no
14419 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14420 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14421 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14422 else
14423 ld_shlibs_F77=no
14426 esac
14428 if test "$ld_shlibs_F77" = no; then
14429 runpath_var=
14430 hardcode_libdir_flag_spec_F77=
14431 export_dynamic_flag_spec_F77=
14432 whole_archive_flag_spec_F77=
14434 else
14435 # PORTME fill in a description of your system's linker (not GNU ld)
14436 case $host_os in
14437 aix3*)
14438 allow_undefined_flag_F77=unsupported
14439 always_export_symbols_F77=yes
14440 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'
14441 # Note: this linker hardcodes the directories in LIBPATH if there
14442 # are no directories specified by -L.
14443 hardcode_minus_L_F77=yes
14444 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14445 # Neither direct hardcoding nor static linking is supported with a
14446 # broken collect2.
14447 hardcode_direct_F77=unsupported
14451 aix4* | aix5*)
14452 if test "$host_cpu" = ia64; then
14453 # On IA64, the linker does run time linking by default, so we don't
14454 # have to do anything special.
14455 aix_use_runtimelinking=no
14456 exp_sym_flag='-Bexport'
14457 no_entry_flag=""
14458 else
14459 # If we're using GNU nm, then we don't want the "-C" option.
14460 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14461 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14462 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'
14463 else
14464 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'
14466 aix_use_runtimelinking=no
14468 # Test if we are trying to use run time linking or normal
14469 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14470 # need to do runtime linking.
14471 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
14472 for ld_flag in $LDFLAGS; do
14473 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14474 aix_use_runtimelinking=yes
14475 break
14477 done
14479 esac
14481 exp_sym_flag='-bexport'
14482 no_entry_flag='-bnoentry'
14485 # When large executables or shared objects are built, AIX ld can
14486 # have problems creating the table of contents. If linking a library
14487 # or program results in "error TOC overflow" add -mminimal-toc to
14488 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14489 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14491 archive_cmds_F77=''
14492 hardcode_direct_F77=yes
14493 hardcode_libdir_separator_F77=':'
14494 link_all_deplibs_F77=yes
14496 if test "$GCC" = yes; then
14497 case $host_os in aix4.[012]|aix4.[012].*)
14498 # We only want to do this on AIX 4.2 and lower, the check
14499 # below for broken collect2 doesn't work under 4.3+
14500 collect2name=`${CC} -print-prog-name=collect2`
14501 if test -f "$collect2name" && \
14502 strings "$collect2name" | grep resolve_lib_name >/dev/null
14503 then
14504 # We have reworked collect2
14506 else
14507 # We have old collect2
14508 hardcode_direct_F77=unsupported
14509 # It fails to find uninstalled libraries when the uninstalled
14510 # path is not listed in the libpath. Setting hardcode_minus_L
14511 # to unsupported forces relinking
14512 hardcode_minus_L_F77=yes
14513 hardcode_libdir_flag_spec_F77='-L$libdir'
14514 hardcode_libdir_separator_F77=
14517 esac
14518 shared_flag='-shared'
14519 if test "$aix_use_runtimelinking" = yes; then
14520 shared_flag="$shared_flag "'${wl}-G'
14522 else
14523 # not using gcc
14524 if test "$host_cpu" = ia64; then
14525 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14526 # chokes on -Wl,-G. The following line is correct:
14527 shared_flag='-G'
14528 else
14529 if test "$aix_use_runtimelinking" = yes; then
14530 shared_flag='${wl}-G'
14531 else
14532 shared_flag='${wl}-bM:SRE'
14537 # It seems that -bexpall does not export symbols beginning with
14538 # underscore (_), so it is better to generate a list of symbols to export.
14539 always_export_symbols_F77=yes
14540 if test "$aix_use_runtimelinking" = yes; then
14541 # Warning - without using the other runtime loading flags (-brtl),
14542 # -berok will link without error, but may produce a broken library.
14543 allow_undefined_flag_F77='-berok'
14544 # Determine the default libpath from the value encoded in an empty executable.
14545 cat >conftest.$ac_ext <<_ACEOF
14546 program main
14549 _ACEOF
14550 rm -f conftest.$ac_objext conftest$ac_exeext
14551 if { (ac_try="$ac_link"
14552 case "(($ac_try" in
14553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14554 *) ac_try_echo=$ac_try;;
14555 esac
14556 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14557 (eval "$ac_link") 2>conftest.er1
14558 ac_status=$?
14559 grep -v '^ *+' conftest.er1 >conftest.err
14560 rm -f conftest.er1
14561 cat conftest.err >&5
14562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14563 (exit $ac_status); } && {
14564 test -z "$ac_f77_werror_flag" ||
14565 test ! -s conftest.err
14566 } && test -s conftest$ac_exeext &&
14567 $as_test_x conftest$ac_exeext; then
14569 lt_aix_libpath_sed='
14570 /Import File Strings/,/^$/ {
14571 /^0/ {
14572 s/^0 *\(.*\)$/\1/
14576 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14577 # Check for a 64-bit object if we didn't find anything.
14578 if test -z "$aix_libpath"; then
14579 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14581 else
14582 echo "$as_me: failed program was:" >&5
14583 sed 's/^/| /' conftest.$ac_ext >&5
14588 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14589 conftest$ac_exeext conftest.$ac_ext
14590 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14592 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14593 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"
14594 else
14595 if test "$host_cpu" = ia64; then
14596 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
14597 allow_undefined_flag_F77="-z nodefs"
14598 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"
14599 else
14600 # Determine the default libpath from the value encoded in an empty executable.
14601 cat >conftest.$ac_ext <<_ACEOF
14602 program main
14605 _ACEOF
14606 rm -f conftest.$ac_objext conftest$ac_exeext
14607 if { (ac_try="$ac_link"
14608 case "(($ac_try" in
14609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14610 *) ac_try_echo=$ac_try;;
14611 esac
14612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14613 (eval "$ac_link") 2>conftest.er1
14614 ac_status=$?
14615 grep -v '^ *+' conftest.er1 >conftest.err
14616 rm -f conftest.er1
14617 cat conftest.err >&5
14618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14619 (exit $ac_status); } && {
14620 test -z "$ac_f77_werror_flag" ||
14621 test ! -s conftest.err
14622 } && test -s conftest$ac_exeext &&
14623 $as_test_x conftest$ac_exeext; then
14625 lt_aix_libpath_sed='
14626 /Import File Strings/,/^$/ {
14627 /^0/ {
14628 s/^0 *\(.*\)$/\1/
14632 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14633 # Check for a 64-bit object if we didn't find anything.
14634 if test -z "$aix_libpath"; then
14635 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14637 else
14638 echo "$as_me: failed program was:" >&5
14639 sed 's/^/| /' conftest.$ac_ext >&5
14644 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14645 conftest$ac_exeext conftest.$ac_ext
14646 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14648 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14649 # Warning - without using the other run time loading flags,
14650 # -berok will link without error, but may produce a broken library.
14651 no_undefined_flag_F77=' ${wl}-bernotok'
14652 allow_undefined_flag_F77=' ${wl}-berok'
14653 # Exported symbols can be pulled into shared objects from archives
14654 whole_archive_flag_spec_F77='$convenience'
14655 archive_cmds_need_lc_F77=yes
14656 # This is similar to how AIX traditionally builds its shared libraries.
14657 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'
14662 amigaos*)
14663 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)'
14664 hardcode_libdir_flag_spec_F77='-L$libdir'
14665 hardcode_minus_L_F77=yes
14666 # see comment about different semantics on the GNU ld section
14667 ld_shlibs_F77=no
14670 bsdi[45]*)
14671 export_dynamic_flag_spec_F77=-rdynamic
14674 cygwin* | mingw* | pw32*)
14675 # When not using gcc, we currently assume that we are using
14676 # Microsoft Visual C++.
14677 # hardcode_libdir_flag_spec is actually meaningless, as there is
14678 # no search path for DLLs.
14679 hardcode_libdir_flag_spec_F77=' '
14680 allow_undefined_flag_F77=unsupported
14681 # Tell ltmain to make .lib files, not .a files.
14682 libext=lib
14683 # Tell ltmain to make .dll files, not .so files.
14684 shrext_cmds=".dll"
14685 # FIXME: Setting linknames here is a bad hack.
14686 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
14687 # The linker will automatically build a .lib file if we build a DLL.
14688 old_archive_From_new_cmds_F77='true'
14689 # FIXME: Should let the user specify the lib program.
14690 old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs'
14691 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
14692 enable_shared_with_static_runtimes_F77=yes
14695 darwin* | rhapsody*)
14696 case $host_os in
14697 rhapsody* | darwin1.[012])
14698 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
14700 *) # Darwin 1.3 on
14701 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14702 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14703 else
14704 case ${MACOSX_DEPLOYMENT_TARGET} in
14705 10.[012])
14706 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14708 10.*)
14709 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
14711 esac
14714 esac
14715 archive_cmds_need_lc_F77=no
14716 hardcode_direct_F77=no
14717 hardcode_automatic_F77=yes
14718 hardcode_shlibpath_var_F77=unsupported
14719 whole_archive_flag_spec_F77=''
14720 link_all_deplibs_F77=yes
14721 if test "$GCC" = yes ; then
14722 output_verbose_link_cmd='echo'
14723 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14724 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14725 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14726 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}'
14727 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}'
14728 else
14729 case $cc_basename in
14730 xlc*)
14731 output_verbose_link_cmd='echo'
14732 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
14733 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14734 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14735 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}'
14736 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}'
14739 ld_shlibs_F77=no
14741 esac
14745 dgux*)
14746 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14747 hardcode_libdir_flag_spec_F77='-L$libdir'
14748 hardcode_shlibpath_var_F77=no
14751 freebsd1*)
14752 ld_shlibs_F77=no
14755 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14756 # support. Future versions do this automatically, but an explicit c++rt0.o
14757 # does not break anything, and helps significantly (at the cost of a little
14758 # extra space).
14759 freebsd2.2*)
14760 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14761 hardcode_libdir_flag_spec_F77='-R$libdir'
14762 hardcode_direct_F77=yes
14763 hardcode_shlibpath_var_F77=no
14766 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14767 freebsd2*)
14768 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14769 hardcode_direct_F77=yes
14770 hardcode_minus_L_F77=yes
14771 hardcode_shlibpath_var_F77=no
14774 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14775 freebsd* | dragonfly*)
14776 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14777 hardcode_libdir_flag_spec_F77='-R$libdir'
14778 hardcode_direct_F77=yes
14779 hardcode_shlibpath_var_F77=no
14782 hpux9*)
14783 if test "$GCC" = yes; then
14784 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'
14785 else
14786 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'
14788 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14789 hardcode_libdir_separator_F77=:
14790 hardcode_direct_F77=yes
14792 # hardcode_minus_L: Not really in the search PATH,
14793 # but as the default location of the library.
14794 hardcode_minus_L_F77=yes
14795 export_dynamic_flag_spec_F77='${wl}-E'
14798 hpux10*)
14799 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14800 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14801 else
14802 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14804 if test "$with_gnu_ld" = no; then
14805 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14806 hardcode_libdir_separator_F77=:
14808 hardcode_direct_F77=yes
14809 export_dynamic_flag_spec_F77='${wl}-E'
14811 # hardcode_minus_L: Not really in the search PATH,
14812 # but as the default location of the library.
14813 hardcode_minus_L_F77=yes
14817 hpux11*)
14818 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14819 case $host_cpu in
14820 hppa*64*)
14821 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14823 ia64*)
14824 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14827 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14829 esac
14830 else
14831 case $host_cpu in
14832 hppa*64*)
14833 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14835 ia64*)
14836 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14839 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14841 esac
14843 if test "$with_gnu_ld" = no; then
14844 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14845 hardcode_libdir_separator_F77=:
14847 case $host_cpu in
14848 hppa*64*|ia64*)
14849 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14850 hardcode_direct_F77=no
14851 hardcode_shlibpath_var_F77=no
14854 hardcode_direct_F77=yes
14855 export_dynamic_flag_spec_F77='${wl}-E'
14857 # hardcode_minus_L: Not really in the search PATH,
14858 # but as the default location of the library.
14859 hardcode_minus_L_F77=yes
14861 esac
14865 irix5* | irix6* | nonstopux*)
14866 if test "$GCC" = yes; then
14867 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'
14868 else
14869 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'
14870 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14872 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14873 hardcode_libdir_separator_F77=:
14874 link_all_deplibs_F77=yes
14877 netbsd*)
14878 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14879 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
14880 else
14881 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
14883 hardcode_libdir_flag_spec_F77='-R$libdir'
14884 hardcode_direct_F77=yes
14885 hardcode_shlibpath_var_F77=no
14888 newsos6)
14889 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14890 hardcode_direct_F77=yes
14891 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14892 hardcode_libdir_separator_F77=:
14893 hardcode_shlibpath_var_F77=no
14896 openbsd*)
14897 if test -f /usr/libexec/ld.so; then
14898 hardcode_direct_F77=yes
14899 hardcode_shlibpath_var_F77=no
14900 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14901 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14902 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
14903 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14904 export_dynamic_flag_spec_F77='${wl}-E'
14905 else
14906 case $host_os in
14907 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14908 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14909 hardcode_libdir_flag_spec_F77='-R$libdir'
14912 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14913 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14915 esac
14917 else
14918 ld_shlibs_F77=no
14922 os2*)
14923 hardcode_libdir_flag_spec_F77='-L$libdir'
14924 hardcode_minus_L_F77=yes
14925 allow_undefined_flag_F77=unsupported
14926 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'
14927 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14930 osf3*)
14931 if test "$GCC" = yes; then
14932 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14933 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'
14934 else
14935 allow_undefined_flag_F77=' -expect_unresolved \*'
14936 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'
14938 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14939 hardcode_libdir_separator_F77=:
14942 osf4* | osf5*) # as osf3* with the addition of -msym flag
14943 if test "$GCC" = yes; then
14944 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14945 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'
14946 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14947 else
14948 allow_undefined_flag_F77=' -expect_unresolved \*'
14949 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'
14950 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~
14951 $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'
14953 # Both c and cxx compiler support -rpath directly
14954 hardcode_libdir_flag_spec_F77='-rpath $libdir'
14956 hardcode_libdir_separator_F77=:
14959 solaris*)
14960 no_undefined_flag_F77=' -z text'
14961 if test "$GCC" = yes; then
14962 wlarc='${wl}'
14963 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14964 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14965 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14966 else
14967 wlarc=''
14968 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14969 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14970 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14972 hardcode_libdir_flag_spec_F77='-R$libdir'
14973 hardcode_shlibpath_var_F77=no
14974 case $host_os in
14975 solaris2.[0-5] | solaris2.[0-5].*) ;;
14977 # The compiler driver will combine and reorder linker options,
14978 # but understands `-z linker_flag'. GCC discards it without `$wl',
14979 # but is careful enough not to reorder.
14980 # Supported since Solaris 2.6 (maybe 2.5.1?)
14981 if test "$GCC" = yes; then
14982 whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
14983 else
14984 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract'
14987 esac
14988 link_all_deplibs_F77=yes
14991 sunos4*)
14992 if test "x$host_vendor" = xsequent; then
14993 # Use $CC to link under sequent, because it throws in some extra .o
14994 # files that make .init and .fini sections work.
14995 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14996 else
14997 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14999 hardcode_libdir_flag_spec_F77='-L$libdir'
15000 hardcode_direct_F77=yes
15001 hardcode_minus_L_F77=yes
15002 hardcode_shlibpath_var_F77=no
15005 sysv4)
15006 case $host_vendor in
15007 sni)
15008 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15009 hardcode_direct_F77=yes # is this really true???
15011 siemens)
15012 ## LD is ld it makes a PLAMLIB
15013 ## CC just makes a GrossModule.
15014 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15015 reload_cmds_F77='$CC -r -o $output$reload_objs'
15016 hardcode_direct_F77=no
15018 motorola)
15019 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15020 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
15022 esac
15023 runpath_var='LD_RUN_PATH'
15024 hardcode_shlibpath_var_F77=no
15027 sysv4.3*)
15028 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15029 hardcode_shlibpath_var_F77=no
15030 export_dynamic_flag_spec_F77='-Bexport'
15033 sysv4*MP*)
15034 if test -d /usr/nec; then
15035 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15036 hardcode_shlibpath_var_F77=no
15037 runpath_var=LD_RUN_PATH
15038 hardcode_runpath_var=yes
15039 ld_shlibs_F77=yes
15043 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15044 no_undefined_flag_F77='${wl}-z,text'
15045 archive_cmds_need_lc_F77=no
15046 hardcode_shlibpath_var_F77=no
15047 runpath_var='LD_RUN_PATH'
15049 if test "$GCC" = yes; then
15050 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15051 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15052 else
15053 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15054 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15058 sysv5* | sco3.2v5* | sco5v6*)
15059 # Note: We can NOT use -z defs as we might desire, because we do not
15060 # link with -lc, and that would cause any symbols used from libc to
15061 # always be unresolved, which means just about no library would
15062 # ever link correctly. If we're not using GNU ld we use -z text
15063 # though, which does catch some bad symbols but isn't as heavy-handed
15064 # as -z defs.
15065 no_undefined_flag_F77='${wl}-z,text'
15066 allow_undefined_flag_F77='${wl}-z,nodefs'
15067 archive_cmds_need_lc_F77=no
15068 hardcode_shlibpath_var_F77=no
15069 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15070 hardcode_libdir_separator_F77=':'
15071 link_all_deplibs_F77=yes
15072 export_dynamic_flag_spec_F77='${wl}-Bexport'
15073 runpath_var='LD_RUN_PATH'
15075 if test "$GCC" = yes; then
15076 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15077 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15078 else
15079 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15080 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15084 uts4*)
15085 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15086 hardcode_libdir_flag_spec_F77='-L$libdir'
15087 hardcode_shlibpath_var_F77=no
15091 ld_shlibs_F77=no
15093 esac
15096 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
15097 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
15098 test "$ld_shlibs_F77" = no && can_build_shared=no
15101 # Do we need to explicitly link libc?
15103 case "x$archive_cmds_need_lc_F77" in
15104 x|xyes)
15105 # Assume -lc should be added
15106 archive_cmds_need_lc_F77=yes
15108 if test "$enable_shared" = yes && test "$GCC" = yes; then
15109 case $archive_cmds_F77 in
15110 *'~'*)
15111 # FIXME: we may have to deal with multi-command sequences.
15113 '$CC '*)
15114 # Test whether the compiler implicitly links with -lc since on some
15115 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15116 # to ld, don't add -lc before -lgcc.
15117 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15118 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
15119 $rm conftest*
15120 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15122 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15123 (eval $ac_compile) 2>&5
15124 ac_status=$?
15125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15126 (exit $ac_status); } 2>conftest.err; then
15127 soname=conftest
15128 lib=conftest
15129 libobjs=conftest.$ac_objext
15130 deplibs=
15131 wl=$lt_prog_compiler_wl_F77
15132 pic_flag=$lt_prog_compiler_pic_F77
15133 compiler_flags=-v
15134 linker_flags=-v
15135 verstring=
15136 output_objdir=.
15137 libname=conftest
15138 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15139 allow_undefined_flag_F77=
15140 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15141 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15142 ac_status=$?
15143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15144 (exit $ac_status); }
15145 then
15146 archive_cmds_need_lc_F77=no
15147 else
15148 archive_cmds_need_lc_F77=yes
15150 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15151 else
15152 cat conftest.err 1>&5
15154 $rm conftest*
15155 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15156 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
15158 esac
15161 esac
15163 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15164 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
15165 library_names_spec=
15166 libname_spec='lib$name'
15167 soname_spec=
15168 shrext_cmds=".so"
15169 postinstall_cmds=
15170 postuninstall_cmds=
15171 finish_cmds=
15172 finish_eval=
15173 shlibpath_var=
15174 shlibpath_overrides_runpath=unknown
15175 version_type=none
15176 dynamic_linker="$host_os ld.so"
15177 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15179 need_lib_prefix=unknown
15180 hardcode_into_libs=no
15182 # when you set need_version to no, make sure it does not cause -set_version
15183 # flags to be left without arguments
15184 need_version=unknown
15186 case $host_os in
15187 aix3*)
15188 version_type=linux
15189 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15190 shlibpath_var=LIBPATH
15192 # AIX 3 has no versioning support, so we append a major version to the name.
15193 soname_spec='${libname}${release}${shared_ext}$major'
15196 aix4* | aix5*)
15197 version_type=linux
15198 need_lib_prefix=no
15199 need_version=no
15200 hardcode_into_libs=yes
15201 if test "$host_cpu" = ia64; then
15202 # AIX 5 supports IA64
15203 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15204 shlibpath_var=LD_LIBRARY_PATH
15205 else
15206 # With GCC up to 2.95.x, collect2 would create an import file
15207 # for dependence libraries. The import file would start with
15208 # the line `#! .'. This would cause the generated library to
15209 # depend on `.', always an invalid library. This was fixed in
15210 # development snapshots of GCC prior to 3.0.
15211 case $host_os in
15212 aix4 | aix4.[01] | aix4.[01].*)
15213 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15214 echo ' yes '
15215 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15217 else
15218 can_build_shared=no
15221 esac
15222 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15223 # soname into executable. Probably we can add versioning support to
15224 # collect2, so additional links can be useful in future.
15225 if test "$aix_use_runtimelinking" = yes; then
15226 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15227 # instead of lib<name>.a to let people know that these are not
15228 # typical AIX shared libraries.
15229 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15230 else
15231 # We preserve .a as extension for shared libraries through AIX4.2
15232 # and later when we are not doing run time linking.
15233 library_names_spec='${libname}${release}.a $libname.a'
15234 soname_spec='${libname}${release}${shared_ext}$major'
15236 shlibpath_var=LIBPATH
15240 amigaos*)
15241 library_names_spec='$libname.ixlibrary $libname.a'
15242 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15243 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'
15246 beos*)
15247 library_names_spec='${libname}${shared_ext}'
15248 dynamic_linker="$host_os ld.so"
15249 shlibpath_var=LIBRARY_PATH
15252 bsdi[45]*)
15253 version_type=linux
15254 need_version=no
15255 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15256 soname_spec='${libname}${release}${shared_ext}$major'
15257 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15258 shlibpath_var=LD_LIBRARY_PATH
15259 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15260 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15261 # the default ld.so.conf also contains /usr/contrib/lib and
15262 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15263 # libtool to hard-code these into programs
15266 cygwin* | mingw* | pw32*)
15267 version_type=windows
15268 shrext_cmds=".dll"
15269 need_version=no
15270 need_lib_prefix=no
15272 case $GCC,$host_os in
15273 yes,cygwin* | yes,mingw* | yes,pw32*)
15274 library_names_spec='$libname.dll.a'
15275 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15276 postinstall_cmds='base_file=`basename \${file}`~
15277 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15278 dldir=$destdir/`dirname \$dlpath`~
15279 test -d \$dldir || mkdir -p \$dldir~
15280 $install_prog $dir/$dlname \$dldir/$dlname~
15281 chmod a+x \$dldir/$dlname'
15282 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15283 dlpath=$dir/\$dldll~
15284 $rm \$dlpath'
15285 shlibpath_overrides_runpath=yes
15287 case $host_os in
15288 cygwin*)
15289 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15290 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15291 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15293 mingw*)
15294 # MinGW DLLs use traditional 'lib' prefix
15295 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15296 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15297 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15298 # It is most probably a Windows format PATH printed by
15299 # mingw gcc, but we are running on Cygwin. Gcc prints its search
15300 # path with ; separators, and with drive letters. We can handle the
15301 # drive letters (cygwin fileutils understands them), so leave them,
15302 # especially as we might pass files found there to a mingw objdump,
15303 # which wouldn't understand a cygwinified path. Ahh.
15304 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15305 else
15306 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15309 pw32*)
15310 # pw32 DLLs use 'pw' prefix rather than 'lib'
15311 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15313 esac
15317 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15319 esac
15320 dynamic_linker='Win32 ld.exe'
15321 # FIXME: first we should search . and the directory the executable is in
15322 shlibpath_var=PATH
15325 darwin* | rhapsody*)
15326 dynamic_linker="$host_os dyld"
15327 version_type=darwin
15328 need_lib_prefix=no
15329 need_version=no
15330 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15331 soname_spec='${libname}${release}${major}$shared_ext'
15332 shlibpath_overrides_runpath=yes
15333 shlibpath_var=DYLD_LIBRARY_PATH
15334 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15336 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15339 dgux*)
15340 version_type=linux
15341 need_lib_prefix=no
15342 need_version=no
15343 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15344 soname_spec='${libname}${release}${shared_ext}$major'
15345 shlibpath_var=LD_LIBRARY_PATH
15348 freebsd1*)
15349 dynamic_linker=no
15352 freebsd* | dragonfly*)
15353 # DragonFly does not have aout. When/if they implement a new
15354 # versioning mechanism, adjust this.
15355 if test -x /usr/bin/objformat; then
15356 objformat=`/usr/bin/objformat`
15357 else
15358 case $host_os in
15359 freebsd[123]*) objformat=aout ;;
15360 *) objformat=elf ;;
15361 esac
15363 version_type=freebsd-$objformat
15364 case $version_type in
15365 freebsd-elf*)
15366 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15367 need_version=no
15368 need_lib_prefix=no
15370 freebsd-*)
15371 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15372 need_version=yes
15374 esac
15375 shlibpath_var=LD_LIBRARY_PATH
15376 case $host_os in
15377 freebsd2*)
15378 shlibpath_overrides_runpath=yes
15380 freebsd3.[01]* | freebsdelf3.[01]*)
15381 shlibpath_overrides_runpath=yes
15382 hardcode_into_libs=yes
15384 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15385 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15386 shlibpath_overrides_runpath=no
15387 hardcode_into_libs=yes
15389 *) # from 4.6 on, and DragonFly
15390 shlibpath_overrides_runpath=yes
15391 hardcode_into_libs=yes
15393 esac
15396 gnu*)
15397 version_type=linux
15398 need_lib_prefix=no
15399 need_version=no
15400 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15401 soname_spec='${libname}${release}${shared_ext}$major'
15402 shlibpath_var=LD_LIBRARY_PATH
15403 hardcode_into_libs=yes
15406 hpux9* | hpux10* | hpux11*)
15407 # Give a soname corresponding to the major version so that dld.sl refuses to
15408 # link against other versions.
15409 version_type=sunos
15410 need_lib_prefix=no
15411 need_version=no
15412 case $host_cpu in
15413 ia64*)
15414 shrext_cmds='.so'
15415 hardcode_into_libs=yes
15416 dynamic_linker="$host_os dld.so"
15417 shlibpath_var=LD_LIBRARY_PATH
15418 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15419 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15420 soname_spec='${libname}${release}${shared_ext}$major'
15421 if test "X$HPUX_IA64_MODE" = X32; then
15422 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15423 else
15424 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15426 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15428 hppa*64*)
15429 shrext_cmds='.sl'
15430 hardcode_into_libs=yes
15431 dynamic_linker="$host_os dld.sl"
15432 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15433 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15434 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15435 soname_spec='${libname}${release}${shared_ext}$major'
15436 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15437 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15440 shrext_cmds='.sl'
15441 dynamic_linker="$host_os dld.sl"
15442 shlibpath_var=SHLIB_PATH
15443 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15444 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15445 soname_spec='${libname}${release}${shared_ext}$major'
15447 esac
15448 # HP-UX runs *really* slowly unless shared libraries are mode 555.
15449 postinstall_cmds='chmod 555 $lib'
15452 interix[3-9]*)
15453 version_type=linux
15454 need_lib_prefix=no
15455 need_version=no
15456 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15457 soname_spec='${libname}${release}${shared_ext}$major'
15458 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15459 shlibpath_var=LD_LIBRARY_PATH
15460 shlibpath_overrides_runpath=no
15461 hardcode_into_libs=yes
15464 irix5* | irix6* | nonstopux*)
15465 case $host_os in
15466 nonstopux*) version_type=nonstopux ;;
15468 if test "$lt_cv_prog_gnu_ld" = yes; then
15469 version_type=linux
15470 else
15471 version_type=irix
15472 fi ;;
15473 esac
15474 need_lib_prefix=no
15475 need_version=no
15476 soname_spec='${libname}${release}${shared_ext}$major'
15477 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15478 case $host_os in
15479 irix5* | nonstopux*)
15480 libsuff= shlibsuff=
15483 case $LD in # libtool.m4 will add one of these switches to LD
15484 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15485 libsuff= shlibsuff= libmagic=32-bit;;
15486 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15487 libsuff=32 shlibsuff=N32 libmagic=N32;;
15488 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15489 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15490 *) libsuff= shlibsuff= libmagic=never-match;;
15491 esac
15493 esac
15494 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15495 shlibpath_overrides_runpath=no
15496 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15497 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15498 hardcode_into_libs=yes
15501 # No shared lib support for Linux oldld, aout, or coff.
15502 linux*oldld* | linux*aout* | linux*coff*)
15503 dynamic_linker=no
15506 # This must be Linux ELF.
15507 linux* | k*bsd*-gnu)
15508 version_type=linux
15509 need_lib_prefix=no
15510 need_version=no
15511 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15512 soname_spec='${libname}${release}${shared_ext}$major'
15513 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15514 shlibpath_var=LD_LIBRARY_PATH
15515 shlibpath_overrides_runpath=no
15516 # This implies no fast_install, which is unacceptable.
15517 # Some rework will be needed to allow for fast_install
15518 # before this can be enabled.
15519 hardcode_into_libs=yes
15521 # Append ld.so.conf contents to the search path
15522 if test -f /etc/ld.so.conf; then
15523 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' ' '`
15524 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15527 # We used to test for /lib/ld.so.1 and disable shared libraries on
15528 # powerpc, because MkLinux only supported shared libraries with the
15529 # GNU dynamic linker. Since this was broken with cross compilers,
15530 # most powerpc-linux boxes support dynamic linking these days and
15531 # people can always --disable-shared, the test was removed, and we
15532 # assume the GNU/Linux dynamic linker is in use.
15533 dynamic_linker='GNU/Linux ld.so'
15536 netbsd*)
15537 version_type=sunos
15538 need_lib_prefix=no
15539 need_version=no
15540 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15541 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15542 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15543 dynamic_linker='NetBSD (a.out) ld.so'
15544 else
15545 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15546 soname_spec='${libname}${release}${shared_ext}$major'
15547 dynamic_linker='NetBSD ld.elf_so'
15549 shlibpath_var=LD_LIBRARY_PATH
15550 shlibpath_overrides_runpath=yes
15551 hardcode_into_libs=yes
15554 newsos6)
15555 version_type=linux
15556 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15557 shlibpath_var=LD_LIBRARY_PATH
15558 shlibpath_overrides_runpath=yes
15561 nto-qnx*)
15562 version_type=linux
15563 need_lib_prefix=no
15564 need_version=no
15565 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15566 soname_spec='${libname}${release}${shared_ext}$major'
15567 shlibpath_var=LD_LIBRARY_PATH
15568 shlibpath_overrides_runpath=yes
15571 openbsd*)
15572 version_type=sunos
15573 sys_lib_dlsearch_path_spec="/usr/lib"
15574 need_lib_prefix=no
15575 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15576 case $host_os in
15577 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15578 *) need_version=no ;;
15579 esac
15580 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15581 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15582 shlibpath_var=LD_LIBRARY_PATH
15583 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15584 case $host_os in
15585 openbsd2.[89] | openbsd2.[89].*)
15586 shlibpath_overrides_runpath=no
15589 shlibpath_overrides_runpath=yes
15591 esac
15592 else
15593 shlibpath_overrides_runpath=yes
15597 os2*)
15598 libname_spec='$name'
15599 shrext_cmds=".dll"
15600 need_lib_prefix=no
15601 library_names_spec='$libname${shared_ext} $libname.a'
15602 dynamic_linker='OS/2 ld.exe'
15603 shlibpath_var=LIBPATH
15606 osf3* | osf4* | osf5*)
15607 version_type=osf
15608 need_lib_prefix=no
15609 need_version=no
15610 soname_spec='${libname}${release}${shared_ext}$major'
15611 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15612 shlibpath_var=LD_LIBRARY_PATH
15613 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15614 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15617 rdos*)
15618 dynamic_linker=no
15621 solaris*)
15622 version_type=linux
15623 need_lib_prefix=no
15624 need_version=no
15625 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15626 soname_spec='${libname}${release}${shared_ext}$major'
15627 shlibpath_var=LD_LIBRARY_PATH
15628 shlibpath_overrides_runpath=yes
15629 hardcode_into_libs=yes
15630 # ldd complains unless libraries are executable
15631 postinstall_cmds='chmod +x $lib'
15634 sunos4*)
15635 version_type=sunos
15636 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15637 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15638 shlibpath_var=LD_LIBRARY_PATH
15639 shlibpath_overrides_runpath=yes
15640 if test "$with_gnu_ld" = yes; then
15641 need_lib_prefix=no
15643 need_version=yes
15646 sysv4 | sysv4.3*)
15647 version_type=linux
15648 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15649 soname_spec='${libname}${release}${shared_ext}$major'
15650 shlibpath_var=LD_LIBRARY_PATH
15651 case $host_vendor in
15652 sni)
15653 shlibpath_overrides_runpath=no
15654 need_lib_prefix=no
15655 export_dynamic_flag_spec='${wl}-Blargedynsym'
15656 runpath_var=LD_RUN_PATH
15658 siemens)
15659 need_lib_prefix=no
15661 motorola)
15662 need_lib_prefix=no
15663 need_version=no
15664 shlibpath_overrides_runpath=no
15665 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15667 esac
15670 sysv4*MP*)
15671 if test -d /usr/nec ;then
15672 version_type=linux
15673 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15674 soname_spec='$libname${shared_ext}.$major'
15675 shlibpath_var=LD_LIBRARY_PATH
15679 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15680 version_type=freebsd-elf
15681 need_lib_prefix=no
15682 need_version=no
15683 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15684 soname_spec='${libname}${release}${shared_ext}$major'
15685 shlibpath_var=LD_LIBRARY_PATH
15686 hardcode_into_libs=yes
15687 if test "$with_gnu_ld" = yes; then
15688 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15689 shlibpath_overrides_runpath=no
15690 else
15691 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15692 shlibpath_overrides_runpath=yes
15693 case $host_os in
15694 sco3.2v5*)
15695 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15697 esac
15699 sys_lib_dlsearch_path_spec='/usr/lib'
15702 uts4*)
15703 version_type=linux
15704 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15705 soname_spec='${libname}${release}${shared_ext}$major'
15706 shlibpath_var=LD_LIBRARY_PATH
15710 dynamic_linker=no
15712 esac
15713 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15714 echo "${ECHO_T}$dynamic_linker" >&6; }
15715 test "$dynamic_linker" = no && can_build_shared=no
15717 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15718 if test "$GCC" = yes; then
15719 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15722 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15723 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
15724 hardcode_action_F77=
15725 if test -n "$hardcode_libdir_flag_spec_F77" || \
15726 test -n "$runpath_var_F77" || \
15727 test "X$hardcode_automatic_F77" = "Xyes" ; then
15729 # We can hardcode non-existant directories.
15730 if test "$hardcode_direct_F77" != no &&
15731 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15732 # have to relink, otherwise we might link with an installed library
15733 # when we should be linking with a yet-to-be-installed one
15734 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
15735 test "$hardcode_minus_L_F77" != no; then
15736 # Linking always hardcodes the temporary library directory.
15737 hardcode_action_F77=relink
15738 else
15739 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15740 hardcode_action_F77=immediate
15742 else
15743 # We cannot hardcode anything, or else we can only hardcode existing
15744 # directories.
15745 hardcode_action_F77=unsupported
15747 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
15748 echo "${ECHO_T}$hardcode_action_F77" >&6; }
15750 if test "$hardcode_action_F77" = relink; then
15751 # Fast installation is not supported
15752 enable_fast_install=no
15753 elif test "$shlibpath_overrides_runpath" = yes ||
15754 test "$enable_shared" = no; then
15755 # Fast installation is not necessary
15756 enable_fast_install=needless
15760 # The else clause should only fire when bootstrapping the
15761 # libtool distribution, otherwise you forgot to ship ltmain.sh
15762 # with your package, and you will get complaints that there are
15763 # no rules to generate ltmain.sh.
15764 if test -f "$ltmain"; then
15765 # See if we are running on zsh, and set the options which allow our commands through
15766 # without removal of \ escapes.
15767 if test -n "${ZSH_VERSION+set}" ; then
15768 setopt NO_GLOB_SUBST
15770 # Now quote all the things that may contain metacharacters while being
15771 # careful not to overquote the AC_SUBSTed values. We take copies of the
15772 # variables and quote the copies for generation of the libtool script.
15773 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
15774 SED SHELL STRIP \
15775 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15776 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15777 deplibs_check_method reload_flag reload_cmds need_locks \
15778 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15779 lt_cv_sys_global_symbol_to_c_name_address \
15780 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15781 old_postinstall_cmds old_postuninstall_cmds \
15782 compiler_F77 \
15783 CC_F77 \
15784 LD_F77 \
15785 lt_prog_compiler_wl_F77 \
15786 lt_prog_compiler_pic_F77 \
15787 lt_prog_compiler_static_F77 \
15788 lt_prog_compiler_no_builtin_flag_F77 \
15789 export_dynamic_flag_spec_F77 \
15790 thread_safe_flag_spec_F77 \
15791 whole_archive_flag_spec_F77 \
15792 enable_shared_with_static_runtimes_F77 \
15793 old_archive_cmds_F77 \
15794 old_archive_from_new_cmds_F77 \
15795 predep_objects_F77 \
15796 postdep_objects_F77 \
15797 predeps_F77 \
15798 postdeps_F77 \
15799 compiler_lib_search_path_F77 \
15800 archive_cmds_F77 \
15801 archive_expsym_cmds_F77 \
15802 postinstall_cmds_F77 \
15803 postuninstall_cmds_F77 \
15804 old_archive_from_expsyms_cmds_F77 \
15805 allow_undefined_flag_F77 \
15806 no_undefined_flag_F77 \
15807 export_symbols_cmds_F77 \
15808 hardcode_libdir_flag_spec_F77 \
15809 hardcode_libdir_flag_spec_ld_F77 \
15810 hardcode_libdir_separator_F77 \
15811 hardcode_automatic_F77 \
15812 module_cmds_F77 \
15813 module_expsym_cmds_F77 \
15814 lt_cv_prog_compiler_c_o_F77 \
15815 fix_srcfile_path_F77 \
15816 exclude_expsyms_F77 \
15817 include_expsyms_F77; do
15819 case $var in
15820 old_archive_cmds_F77 | \
15821 old_archive_from_new_cmds_F77 | \
15822 archive_cmds_F77 | \
15823 archive_expsym_cmds_F77 | \
15824 module_cmds_F77 | \
15825 module_expsym_cmds_F77 | \
15826 old_archive_from_expsyms_cmds_F77 | \
15827 export_symbols_cmds_F77 | \
15828 extract_expsyms_cmds | reload_cmds | finish_cmds | \
15829 postinstall_cmds | postuninstall_cmds | \
15830 old_postinstall_cmds | old_postuninstall_cmds | \
15831 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15832 # Double-quote double-evaled strings.
15833 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15836 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15838 esac
15839 done
15841 case $lt_echo in
15842 *'\$0 --fallback-echo"')
15843 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15845 esac
15847 cfgfile="$ofile"
15849 cat <<__EOF__ >> "$cfgfile"
15850 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
15852 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15854 # Shell to use when invoking shell scripts.
15855 SHELL=$lt_SHELL
15857 # Whether or not to build shared libraries.
15858 build_libtool_libs=$enable_shared
15860 # Whether or not to build static libraries.
15861 build_old_libs=$enable_static
15863 # Whether or not to add -lc for building shared libraries.
15864 build_libtool_need_lc=$archive_cmds_need_lc_F77
15866 # Whether or not to disallow shared libs when runtime libs are static
15867 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
15869 # Whether or not to optimize for fast installation.
15870 fast_install=$enable_fast_install
15872 # The host system.
15873 host_alias=$host_alias
15874 host=$host
15875 host_os=$host_os
15877 # The build system.
15878 build_alias=$build_alias
15879 build=$build
15880 build_os=$build_os
15882 # An echo program that does not interpret backslashes.
15883 echo=$lt_echo
15885 # The archiver.
15886 AR=$lt_AR
15887 AR_FLAGS=$lt_AR_FLAGS
15889 # A C compiler.
15890 LTCC=$lt_LTCC
15892 # LTCC compiler flags.
15893 LTCFLAGS=$lt_LTCFLAGS
15895 # A language-specific compiler.
15896 CC=$lt_compiler_F77
15898 # Is the compiler the GNU C compiler?
15899 with_gcc=$GCC_F77
15901 # An ERE matcher.
15902 EGREP=$lt_EGREP
15904 # The linker used to build libraries.
15905 LD=$lt_LD_F77
15907 # Whether we need hard or soft links.
15908 LN_S=$lt_LN_S
15910 # A BSD-compatible nm program.
15911 NM=$lt_NM
15913 # A symbol stripping program
15914 STRIP=$lt_STRIP
15916 # Used to examine libraries when file_magic_cmd begins "file"
15917 MAGIC_CMD=$MAGIC_CMD
15919 # Used on cygwin: DLL creation program.
15920 DLLTOOL="$DLLTOOL"
15922 # Used on cygwin: object dumper.
15923 OBJDUMP="$OBJDUMP"
15925 # Used on cygwin: assembler.
15926 AS="$AS"
15928 # The name of the directory that contains temporary libtool files.
15929 objdir=$objdir
15931 # How to create reloadable object files.
15932 reload_flag=$lt_reload_flag
15933 reload_cmds=$lt_reload_cmds
15935 # How to pass a linker flag through the compiler.
15936 wl=$lt_lt_prog_compiler_wl_F77
15938 # Object file suffix (normally "o").
15939 objext="$ac_objext"
15941 # Old archive suffix (normally "a").
15942 libext="$libext"
15944 # Shared library suffix (normally ".so").
15945 shrext_cmds='$shrext_cmds'
15947 # Executable file suffix (normally "").
15948 exeext="$exeext"
15950 # Additional compiler flags for building library objects.
15951 pic_flag=$lt_lt_prog_compiler_pic_F77
15952 pic_mode=$pic_mode
15954 # What is the maximum length of a command?
15955 max_cmd_len=$lt_cv_sys_max_cmd_len
15957 # Does compiler simultaneously support -c and -o options?
15958 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
15960 # Must we lock files when doing compilation?
15961 need_locks=$lt_need_locks
15963 # Do we need the lib prefix for modules?
15964 need_lib_prefix=$need_lib_prefix
15966 # Do we need a version for libraries?
15967 need_version=$need_version
15969 # Whether dlopen is supported.
15970 dlopen_support=$enable_dlopen
15972 # Whether dlopen of programs is supported.
15973 dlopen_self=$enable_dlopen_self
15975 # Whether dlopen of statically linked programs is supported.
15976 dlopen_self_static=$enable_dlopen_self_static
15978 # Compiler flag to prevent dynamic linking.
15979 link_static_flag=$lt_lt_prog_compiler_static_F77
15981 # Compiler flag to turn off builtin functions.
15982 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
15984 # Compiler flag to allow reflexive dlopens.
15985 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
15987 # Compiler flag to generate shared objects directly from archives.
15988 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
15990 # Compiler flag to generate thread-safe objects.
15991 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
15993 # Library versioning type.
15994 version_type=$version_type
15996 # Format of library name prefix.
15997 libname_spec=$lt_libname_spec
15999 # List of archive names. First name is the real one, the rest are links.
16000 # The last name is the one that the linker finds with -lNAME.
16001 library_names_spec=$lt_library_names_spec
16003 # The coded name of the library, if different from the real name.
16004 soname_spec=$lt_soname_spec
16006 # Commands used to build and install an old-style archive.
16007 RANLIB=$lt_RANLIB
16008 old_archive_cmds=$lt_old_archive_cmds_F77
16009 old_postinstall_cmds=$lt_old_postinstall_cmds
16010 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16012 # Create an old-style archive from a shared archive.
16013 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16015 # Create a temporary old-style archive to link instead of a shared archive.
16016 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16018 # Commands used to build and install a shared archive.
16019 archive_cmds=$lt_archive_cmds_F77
16020 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16021 postinstall_cmds=$lt_postinstall_cmds
16022 postuninstall_cmds=$lt_postuninstall_cmds
16024 # Commands used to build a loadable module (assumed same as above if empty)
16025 module_cmds=$lt_module_cmds_F77
16026 module_expsym_cmds=$lt_module_expsym_cmds_F77
16028 # Commands to strip libraries.
16029 old_striplib=$lt_old_striplib
16030 striplib=$lt_striplib
16032 # Dependencies to place before the objects being linked to create a
16033 # shared library.
16034 predep_objects=$lt_predep_objects_F77
16036 # Dependencies to place after the objects being linked to create a
16037 # shared library.
16038 postdep_objects=$lt_postdep_objects_F77
16040 # Dependencies to place before the objects being linked to create a
16041 # shared library.
16042 predeps=$lt_predeps_F77
16044 # Dependencies to place after the objects being linked to create a
16045 # shared library.
16046 postdeps=$lt_postdeps_F77
16048 # The library search path used internally by the compiler when linking
16049 # a shared library.
16050 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
16052 # Method to check whether dependent libraries are shared objects.
16053 deplibs_check_method=$lt_deplibs_check_method
16055 # Command to use when deplibs_check_method == file_magic.
16056 file_magic_cmd=$lt_file_magic_cmd
16058 # Flag that allows shared libraries with undefined symbols to be built.
16059 allow_undefined_flag=$lt_allow_undefined_flag_F77
16061 # Flag that forces no undefined symbols.
16062 no_undefined_flag=$lt_no_undefined_flag_F77
16064 # Commands used to finish a libtool library installation in a directory.
16065 finish_cmds=$lt_finish_cmds
16067 # Same as above, but a single script fragment to be evaled but not shown.
16068 finish_eval=$lt_finish_eval
16070 # Take the output of nm and produce a listing of raw symbols and C names.
16071 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16073 # Transform the output of nm in a proper C declaration
16074 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16076 # Transform the output of nm in a C name address pair
16077 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16079 # This is the shared library runtime path variable.
16080 runpath_var=$runpath_var
16082 # This is the shared library path variable.
16083 shlibpath_var=$shlibpath_var
16085 # Is shlibpath searched before the hard-coded library search path?
16086 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16088 # How to hardcode a shared library path into an executable.
16089 hardcode_action=$hardcode_action_F77
16091 # Whether we should hardcode library paths into libraries.
16092 hardcode_into_libs=$hardcode_into_libs
16094 # Flag to hardcode \$libdir into a binary during linking.
16095 # This must work even if \$libdir does not exist.
16096 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16098 # If ld is used when linking, flag to hardcode \$libdir into
16099 # a binary during linking. This must work even if \$libdir does
16100 # not exist.
16101 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16103 # Whether we need a single -rpath flag with a separated argument.
16104 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16106 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16107 # resulting binary.
16108 hardcode_direct=$hardcode_direct_F77
16110 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16111 # resulting binary.
16112 hardcode_minus_L=$hardcode_minus_L_F77
16114 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16115 # the resulting binary.
16116 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16118 # Set to yes if building a shared library automatically hardcodes DIR into the library
16119 # and all subsequent libraries and executables linked against it.
16120 hardcode_automatic=$hardcode_automatic_F77
16122 # Variables whose values should be saved in libtool wrapper scripts and
16123 # restored at relink time.
16124 variables_saved_for_relink="$variables_saved_for_relink"
16126 # Whether libtool must link a program against all its dependency libraries.
16127 link_all_deplibs=$link_all_deplibs_F77
16129 # Compile-time system search path for libraries
16130 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16132 # Run-time system search path for libraries
16133 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16135 # Fix the shell variable \$srcfile for the compiler.
16136 fix_srcfile_path=$lt_fix_srcfile_path
16138 # Set to yes if exported symbols are required.
16139 always_export_symbols=$always_export_symbols_F77
16141 # The commands to list exported symbols.
16142 export_symbols_cmds=$lt_export_symbols_cmds_F77
16144 # The commands to extract the exported symbol list from a shared archive.
16145 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16147 # Symbols that should not be listed in the preloaded symbols.
16148 exclude_expsyms=$lt_exclude_expsyms_F77
16150 # Symbols that must always be exported.
16151 include_expsyms=$lt_include_expsyms_F77
16153 # ### END LIBTOOL TAG CONFIG: $tagname
16155 __EOF__
16158 else
16159 # If there is no Makefile yet, we rely on a make rule to execute
16160 # `config.status --recheck' to rerun these tests and create the
16161 # libtool script then.
16162 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16163 if test -f "$ltmain_in"; then
16164 test -f Makefile && make "$ltmain"
16169 ac_ext=c
16170 ac_cpp='$CPP $CPPFLAGS'
16171 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16172 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16173 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16175 CC="$lt_save_CC"
16177 else
16178 tagname=""
16182 GCJ)
16183 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16186 # Source file extension for Java test sources.
16187 ac_ext=java
16189 # Object file extension for compiled Java test sources.
16190 objext=o
16191 objext_GCJ=$objext
16193 # Code to be used in simple compile tests
16194 lt_simple_compile_test_code="class foo {}"
16196 # Code to be used in simple link tests
16197 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }'
16199 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
16201 # If no C compiler was specified, use CC.
16202 LTCC=${LTCC-"$CC"}
16204 # If no C compiler flags were specified, use CFLAGS.
16205 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16207 # Allow CC to be a program name with arguments.
16208 compiler=$CC
16211 # save warnings/boilerplate of simple test code
16212 ac_outfile=conftest.$ac_objext
16213 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
16214 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16215 _lt_compiler_boilerplate=`cat conftest.err`
16216 $rm conftest*
16218 ac_outfile=conftest.$ac_objext
16219 echo "$lt_simple_link_test_code" >conftest.$ac_ext
16220 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16221 _lt_linker_boilerplate=`cat conftest.err`
16222 $rm conftest*
16225 # Allow CC to be a program name with arguments.
16226 lt_save_CC="$CC"
16227 CC=${GCJ-"gcj"}
16228 compiler=$CC
16229 compiler_GCJ=$CC
16230 for cc_temp in $compiler""; do
16231 case $cc_temp in
16232 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16233 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16234 \-*) ;;
16235 *) break;;
16236 esac
16237 done
16238 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16241 # GCJ did not exist at the time GCC didn't implicitly link libc in.
16242 archive_cmds_need_lc_GCJ=no
16244 old_archive_cmds_GCJ=$old_archive_cmds
16247 lt_prog_compiler_no_builtin_flag_GCJ=
16249 if test "$GCC" = yes; then
16250 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16253 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16254 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
16255 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16256 echo $ECHO_N "(cached) $ECHO_C" >&6
16257 else
16258 lt_cv_prog_compiler_rtti_exceptions=no
16259 ac_outfile=conftest.$ac_objext
16260 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16261 lt_compiler_flag="-fno-rtti -fno-exceptions"
16262 # Insert the option either (1) after the last *FLAGS variable, or
16263 # (2) before a word containing "conftest.", or (3) at the end.
16264 # Note that $ac_compile itself does not contain backslashes and begins
16265 # with a dollar sign (not a hyphen), so the echo should work correctly.
16266 # The option is referenced via a variable to avoid confusing sed.
16267 lt_compile=`echo "$ac_compile" | $SED \
16268 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16269 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16270 -e 's:$: $lt_compiler_flag:'`
16271 (eval echo "\"\$as_me:16271: $lt_compile\"" >&5)
16272 (eval "$lt_compile" 2>conftest.err)
16273 ac_status=$?
16274 cat conftest.err >&5
16275 echo "$as_me:16275: \$? = $ac_status" >&5
16276 if (exit $ac_status) && test -s "$ac_outfile"; then
16277 # The compiler can only warn and ignore the option if not recognized
16278 # So say no if there are warnings other than the usual output.
16279 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16280 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16281 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16282 lt_cv_prog_compiler_rtti_exceptions=yes
16285 $rm conftest*
16288 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16289 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
16291 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16292 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16293 else
16299 lt_prog_compiler_wl_GCJ=
16300 lt_prog_compiler_pic_GCJ=
16301 lt_prog_compiler_static_GCJ=
16303 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16304 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
16306 if test "$GCC" = yes; then
16307 lt_prog_compiler_wl_GCJ='-Wl,'
16308 lt_prog_compiler_static_GCJ='-static'
16310 case $host_os in
16311 aix*)
16312 # All AIX code is PIC.
16313 if test "$host_cpu" = ia64; then
16314 # AIX 5 now supports IA64 processor
16315 lt_prog_compiler_static_GCJ='-Bstatic'
16319 amigaos*)
16320 # FIXME: we need at least 68020 code to build shared libraries, but
16321 # adding the `-m68020' flag to GCC prevents building anything better,
16322 # like `-m68040'.
16323 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16326 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16327 # PIC is the default for these OSes.
16330 mingw* | cygwin* | pw32* | os2*)
16331 # This hack is so that the source file can tell whether it is being
16332 # built for inclusion in a dll (and should export symbols for example).
16333 # Although the cygwin gcc ignores -fPIC, still need this for old-style
16334 # (--disable-auto-import) libraries
16335 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16338 darwin* | rhapsody*)
16339 # PIC is the default on this platform
16340 # Common symbols not allowed in MH_DYLIB files
16341 lt_prog_compiler_pic_GCJ='-fno-common'
16344 interix[3-9]*)
16345 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16346 # Instead, we relocate shared libraries at runtime.
16349 msdosdjgpp*)
16350 # Just because we use GCC doesn't mean we suddenly get shared libraries
16351 # on systems that don't support them.
16352 lt_prog_compiler_can_build_shared_GCJ=no
16353 enable_shared=no
16356 sysv4*MP*)
16357 if test -d /usr/nec; then
16358 lt_prog_compiler_pic_GCJ=-Kconform_pic
16362 hpux*)
16363 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16364 # not for PA HP-UX.
16365 case $host_cpu in
16366 hppa*64*|ia64*)
16367 # +Z the default
16370 lt_prog_compiler_pic_GCJ='-fPIC'
16372 esac
16376 lt_prog_compiler_pic_GCJ='-fPIC'
16378 esac
16379 else
16380 # PORTME Check for flag to pass linker flags through the system compiler.
16381 case $host_os in
16382 aix*)
16383 lt_prog_compiler_wl_GCJ='-Wl,'
16384 if test "$host_cpu" = ia64; then
16385 # AIX 5 now supports IA64 processor
16386 lt_prog_compiler_static_GCJ='-Bstatic'
16387 else
16388 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16391 darwin*)
16392 # PIC is the default on this platform
16393 # Common symbols not allowed in MH_DYLIB files
16394 case $cc_basename in
16395 xlc*)
16396 lt_prog_compiler_pic_GCJ='-qnocommon'
16397 lt_prog_compiler_wl_GCJ='-Wl,'
16399 esac
16402 mingw* | cygwin* | pw32* | os2*)
16403 # This hack is so that the source file can tell whether it is being
16404 # built for inclusion in a dll (and should export symbols for example).
16405 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16408 hpux9* | hpux10* | hpux11*)
16409 lt_prog_compiler_wl_GCJ='-Wl,'
16410 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16411 # not for PA HP-UX.
16412 case $host_cpu in
16413 hppa*64*|ia64*)
16414 # +Z the default
16417 lt_prog_compiler_pic_GCJ='+Z'
16419 esac
16420 # Is there a better lt_prog_compiler_static that works with the bundled CC?
16421 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
16424 irix5* | irix6* | nonstopux*)
16425 lt_prog_compiler_wl_GCJ='-Wl,'
16426 # PIC (with -KPIC) is the default.
16427 lt_prog_compiler_static_GCJ='-non_shared'
16430 newsos6)
16431 lt_prog_compiler_pic_GCJ='-KPIC'
16432 lt_prog_compiler_static_GCJ='-Bstatic'
16435 linux* | k*bsd*-gnu)
16436 case $cc_basename in
16437 icc* | ecc*)
16438 lt_prog_compiler_wl_GCJ='-Wl,'
16439 lt_prog_compiler_pic_GCJ='-KPIC'
16440 lt_prog_compiler_static_GCJ='-static'
16442 pgcc* | pgf77* | pgf90* | pgf95*)
16443 # Portland Group compilers (*not* the Pentium gcc compiler,
16444 # which looks to be a dead project)
16445 lt_prog_compiler_wl_GCJ='-Wl,'
16446 lt_prog_compiler_pic_GCJ='-fpic'
16447 lt_prog_compiler_static_GCJ='-Bstatic'
16449 ccc*)
16450 lt_prog_compiler_wl_GCJ='-Wl,'
16451 # All Alpha code is PIC.
16452 lt_prog_compiler_static_GCJ='-non_shared'
16455 case `$CC -V 2>&1 | sed 5q` in
16456 *Sun\ C*)
16457 # Sun C 5.9
16458 lt_prog_compiler_pic_GCJ='-KPIC'
16459 lt_prog_compiler_static_GCJ='-Bstatic'
16460 lt_prog_compiler_wl_GCJ='-Wl,'
16462 *Sun\ F*)
16463 # Sun Fortran 8.3 passes all unrecognized flags to the linker
16464 lt_prog_compiler_pic_GCJ='-KPIC'
16465 lt_prog_compiler_static_GCJ='-Bstatic'
16466 lt_prog_compiler_wl_GCJ=''
16468 esac
16470 esac
16473 osf3* | osf4* | osf5*)
16474 lt_prog_compiler_wl_GCJ='-Wl,'
16475 # All OSF/1 code is PIC.
16476 lt_prog_compiler_static_GCJ='-non_shared'
16479 rdos*)
16480 lt_prog_compiler_static_GCJ='-non_shared'
16483 solaris*)
16484 lt_prog_compiler_pic_GCJ='-KPIC'
16485 lt_prog_compiler_static_GCJ='-Bstatic'
16486 case $cc_basename in
16487 f77* | f90* | f95*)
16488 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
16490 lt_prog_compiler_wl_GCJ='-Wl,';;
16491 esac
16494 sunos4*)
16495 lt_prog_compiler_wl_GCJ='-Qoption ld '
16496 lt_prog_compiler_pic_GCJ='-PIC'
16497 lt_prog_compiler_static_GCJ='-Bstatic'
16500 sysv4 | sysv4.2uw2* | sysv4.3*)
16501 lt_prog_compiler_wl_GCJ='-Wl,'
16502 lt_prog_compiler_pic_GCJ='-KPIC'
16503 lt_prog_compiler_static_GCJ='-Bstatic'
16506 sysv4*MP*)
16507 if test -d /usr/nec ;then
16508 lt_prog_compiler_pic_GCJ='-Kconform_pic'
16509 lt_prog_compiler_static_GCJ='-Bstatic'
16513 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16514 lt_prog_compiler_wl_GCJ='-Wl,'
16515 lt_prog_compiler_pic_GCJ='-KPIC'
16516 lt_prog_compiler_static_GCJ='-Bstatic'
16519 unicos*)
16520 lt_prog_compiler_wl_GCJ='-Wl,'
16521 lt_prog_compiler_can_build_shared_GCJ=no
16524 uts4*)
16525 lt_prog_compiler_pic_GCJ='-pic'
16526 lt_prog_compiler_static_GCJ='-Bstatic'
16530 lt_prog_compiler_can_build_shared_GCJ=no
16532 esac
16535 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
16536 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
16539 # Check to make sure the PIC flag actually works.
16541 if test -n "$lt_prog_compiler_pic_GCJ"; then
16543 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
16544 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
16545 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
16546 echo $ECHO_N "(cached) $ECHO_C" >&6
16547 else
16548 lt_prog_compiler_pic_works_GCJ=no
16549 ac_outfile=conftest.$ac_objext
16550 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16551 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
16552 # Insert the option either (1) after the last *FLAGS variable, or
16553 # (2) before a word containing "conftest.", or (3) at the end.
16554 # Note that $ac_compile itself does not contain backslashes and begins
16555 # with a dollar sign (not a hyphen), so the echo should work correctly.
16556 # The option is referenced via a variable to avoid confusing sed.
16557 lt_compile=`echo "$ac_compile" | $SED \
16558 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16559 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16560 -e 's:$: $lt_compiler_flag:'`
16561 (eval echo "\"\$as_me:16561: $lt_compile\"" >&5)
16562 (eval "$lt_compile" 2>conftest.err)
16563 ac_status=$?
16564 cat conftest.err >&5
16565 echo "$as_me:16565: \$? = $ac_status" >&5
16566 if (exit $ac_status) && test -s "$ac_outfile"; then
16567 # The compiler can only warn and ignore the option if not recognized
16568 # So say no if there are warnings other than the usual output.
16569 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16570 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16571 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16572 lt_prog_compiler_pic_works_GCJ=yes
16575 $rm conftest*
16578 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
16579 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
16581 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
16582 case $lt_prog_compiler_pic_GCJ in
16583 "" | " "*) ;;
16584 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
16585 esac
16586 else
16587 lt_prog_compiler_pic_GCJ=
16588 lt_prog_compiler_can_build_shared_GCJ=no
16592 case $host_os in
16593 # For platforms which do not support PIC, -DPIC is meaningless:
16594 *djgpp*)
16595 lt_prog_compiler_pic_GCJ=
16598 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
16600 esac
16603 # Check to make sure the static flag actually works.
16605 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
16606 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16607 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
16608 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
16609 echo $ECHO_N "(cached) $ECHO_C" >&6
16610 else
16611 lt_prog_compiler_static_works_GCJ=no
16612 save_LDFLAGS="$LDFLAGS"
16613 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16614 echo "$lt_simple_link_test_code" > conftest.$ac_ext
16615 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16616 # The linker can only warn and ignore the option if not recognized
16617 # So say no if there are warnings
16618 if test -s conftest.err; then
16619 # Append any errors to the config.log.
16620 cat conftest.err 1>&5
16621 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
16622 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16623 if diff conftest.exp conftest.er2 >/dev/null; then
16624 lt_prog_compiler_static_works_GCJ=yes
16626 else
16627 lt_prog_compiler_static_works_GCJ=yes
16630 $rm conftest*
16631 LDFLAGS="$save_LDFLAGS"
16634 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
16635 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
16637 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
16639 else
16640 lt_prog_compiler_static_GCJ=
16644 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16645 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
16646 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
16647 echo $ECHO_N "(cached) $ECHO_C" >&6
16648 else
16649 lt_cv_prog_compiler_c_o_GCJ=no
16650 $rm -r conftest 2>/dev/null
16651 mkdir conftest
16652 cd conftest
16653 mkdir out
16654 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16656 lt_compiler_flag="-o out/conftest2.$ac_objext"
16657 # Insert the option either (1) after the last *FLAGS variable, or
16658 # (2) before a word containing "conftest.", or (3) at the end.
16659 # Note that $ac_compile itself does not contain backslashes and begins
16660 # with a dollar sign (not a hyphen), so the echo should work correctly.
16661 lt_compile=`echo "$ac_compile" | $SED \
16662 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16663 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16664 -e 's:$: $lt_compiler_flag:'`
16665 (eval echo "\"\$as_me:16665: $lt_compile\"" >&5)
16666 (eval "$lt_compile" 2>out/conftest.err)
16667 ac_status=$?
16668 cat out/conftest.err >&5
16669 echo "$as_me:16669: \$? = $ac_status" >&5
16670 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16671 then
16672 # The compiler can only warn and ignore the option if not recognized
16673 # So say no if there are warnings
16674 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
16675 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16676 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16677 lt_cv_prog_compiler_c_o_GCJ=yes
16680 chmod u+w . 2>&5
16681 $rm conftest*
16682 # SGI C++ compiler will create directory out/ii_files/ for
16683 # template instantiation
16684 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16685 $rm out/* && rmdir out
16686 cd ..
16687 rmdir conftest
16688 $rm conftest*
16691 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
16692 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
16695 hard_links="nottested"
16696 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
16697 # do not overwrite the value of need_locks provided by the user
16698 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16699 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
16700 hard_links=yes
16701 $rm conftest*
16702 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16703 touch conftest.a
16704 ln conftest.a conftest.b 2>&5 || hard_links=no
16705 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16706 { echo "$as_me:$LINENO: result: $hard_links" >&5
16707 echo "${ECHO_T}$hard_links" >&6; }
16708 if test "$hard_links" = no; then
16709 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16710 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16711 need_locks=warn
16713 else
16714 need_locks=no
16717 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16718 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
16720 runpath_var=
16721 allow_undefined_flag_GCJ=
16722 enable_shared_with_static_runtimes_GCJ=no
16723 archive_cmds_GCJ=
16724 archive_expsym_cmds_GCJ=
16725 old_archive_From_new_cmds_GCJ=
16726 old_archive_from_expsyms_cmds_GCJ=
16727 export_dynamic_flag_spec_GCJ=
16728 whole_archive_flag_spec_GCJ=
16729 thread_safe_flag_spec_GCJ=
16730 hardcode_libdir_flag_spec_GCJ=
16731 hardcode_libdir_flag_spec_ld_GCJ=
16732 hardcode_libdir_separator_GCJ=
16733 hardcode_direct_GCJ=no
16734 hardcode_minus_L_GCJ=no
16735 hardcode_shlibpath_var_GCJ=unsupported
16736 link_all_deplibs_GCJ=unknown
16737 hardcode_automatic_GCJ=no
16738 module_cmds_GCJ=
16739 module_expsym_cmds_GCJ=
16740 always_export_symbols_GCJ=no
16741 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16742 # include_expsyms should be a list of space-separated symbols to be *always*
16743 # included in the symbol list
16744 include_expsyms_GCJ=
16745 # exclude_expsyms can be an extended regexp of symbols to exclude
16746 # it will be wrapped by ` (' and `)$', so one must not match beginning or
16747 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16748 # as well as any symbol that contains `d'.
16749 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
16750 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16751 # platforms (ab)use it in PIC code, but their linkers get confused if
16752 # the symbol is explicitly referenced. Since portable code cannot
16753 # rely on this symbol name, it's probably fine to never include it in
16754 # preloaded symbol tables.
16755 extract_expsyms_cmds=
16756 # Just being paranoid about ensuring that cc_basename is set.
16757 for cc_temp in $compiler""; do
16758 case $cc_temp in
16759 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16760 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16761 \-*) ;;
16762 *) break;;
16763 esac
16764 done
16765 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16767 case $host_os in
16768 cygwin* | mingw* | pw32*)
16769 # FIXME: the MSVC++ port hasn't been tested in a loooong time
16770 # When not using gcc, we currently assume that we are using
16771 # Microsoft Visual C++.
16772 if test "$GCC" != yes; then
16773 with_gnu_ld=no
16776 interix*)
16777 # we just hope/assume this is gcc and not c89 (= MSVC++)
16778 with_gnu_ld=yes
16780 openbsd*)
16781 with_gnu_ld=no
16783 esac
16785 ld_shlibs_GCJ=yes
16786 if test "$with_gnu_ld" = yes; then
16787 # If archive_cmds runs LD, not CC, wlarc should be empty
16788 wlarc='${wl}'
16790 # Set some defaults for GNU ld with shared library support. These
16791 # are reset later if shared libraries are not supported. Putting them
16792 # here allows them to be overridden if necessary.
16793 runpath_var=LD_RUN_PATH
16794 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16795 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16796 # ancient GNU ld didn't support --whole-archive et. al.
16797 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16798 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16799 else
16800 whole_archive_flag_spec_GCJ=
16802 supports_anon_versioning=no
16803 case `$LD -v 2>/dev/null` in
16804 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16805 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16806 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16807 *\ 2.11.*) ;; # other 2.11 versions
16808 *) supports_anon_versioning=yes ;;
16809 esac
16811 # See if GNU ld supports shared libraries.
16812 case $host_os in
16813 aix3* | aix4* | aix5*)
16814 # On AIX/PPC, the GNU linker is very broken
16815 if test "$host_cpu" != ia64; then
16816 ld_shlibs_GCJ=no
16817 cat <<EOF 1>&2
16819 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
16820 *** to be unable to reliably create shared libraries on AIX.
16821 *** Therefore, libtool is disabling shared libraries support. If you
16822 *** really care for shared libraries, you may want to modify your PATH
16823 *** so that a non-GNU linker is found, and then restart.
16829 amigaos*)
16830 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)'
16831 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16832 hardcode_minus_L_GCJ=yes
16834 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16835 # that the semantics of dynamic libraries on AmigaOS, at least up
16836 # to version 4, is to share data among multiple programs linked
16837 # with the same dynamic library. Since this doesn't match the
16838 # behavior of shared libraries on other platforms, we can't use
16839 # them.
16840 ld_shlibs_GCJ=no
16843 beos*)
16844 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16845 allow_undefined_flag_GCJ=unsupported
16846 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16847 # support --undefined. This deserves some investigation. FIXME
16848 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16849 else
16850 ld_shlibs_GCJ=no
16854 cygwin* | mingw* | pw32*)
16855 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
16856 # as there is no search path for DLLs.
16857 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16858 allow_undefined_flag_GCJ=unsupported
16859 always_export_symbols_GCJ=no
16860 enable_shared_with_static_runtimes_GCJ=yes
16861 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
16863 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16864 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16865 # If the export-symbols file already is a .def file (1st line
16866 # is EXPORTS), use it as is; otherwise, prepend...
16867 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16868 cp $export_symbols $output_objdir/$soname.def;
16869 else
16870 echo EXPORTS > $output_objdir/$soname.def;
16871 cat $export_symbols >> $output_objdir/$soname.def;
16873 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16874 else
16875 ld_shlibs_GCJ=no
16879 interix[3-9]*)
16880 hardcode_direct_GCJ=no
16881 hardcode_shlibpath_var_GCJ=no
16882 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16883 export_dynamic_flag_spec_GCJ='${wl}-E'
16884 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16885 # Instead, shared libraries are loaded at an image base (0x10000000 by
16886 # default) and relocated if they conflict, which is a slow very memory
16887 # consuming and fragmenting process. To avoid this, we pick a random,
16888 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16889 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
16890 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'
16891 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'
16894 gnu* | linux* | k*bsd*-gnu)
16895 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16896 tmp_addflag=
16897 case $cc_basename,$host_cpu in
16898 pgcc*) # Portland Group C compiler
16899 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'
16900 tmp_addflag=' $pic_flag'
16902 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
16903 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'
16904 tmp_addflag=' $pic_flag -Mnomain' ;;
16905 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
16906 tmp_addflag=' -i_dynamic' ;;
16907 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
16908 tmp_addflag=' -i_dynamic -nofor_main' ;;
16909 ifc* | ifort*) # Intel Fortran compiler
16910 tmp_addflag=' -nofor_main' ;;
16911 esac
16912 case `$CC -V 2>&1 | sed 5q` in
16913 *Sun\ C*) # Sun C 5.9
16914 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'
16915 tmp_sharedflag='-G' ;;
16916 *Sun\ F*) # Sun Fortran 8.3
16917 tmp_sharedflag='-G' ;;
16919 tmp_sharedflag='-shared' ;;
16920 esac
16921 archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16923 if test $supports_anon_versioning = yes; then
16924 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
16925 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16926 $echo "local: *; };" >> $output_objdir/$libname.ver~
16927 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16929 else
16930 ld_shlibs_GCJ=no
16934 netbsd*)
16935 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16936 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16937 wlarc=
16938 else
16939 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16940 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16944 solaris*)
16945 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16946 ld_shlibs_GCJ=no
16947 cat <<EOF 1>&2
16949 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
16950 *** create shared libraries on Solaris systems. Therefore, libtool
16951 *** is disabling shared libraries support. We urge you to upgrade GNU
16952 *** binutils to release 2.9.1 or newer. Another option is to modify
16953 *** your PATH or compiler configuration so that the native linker is
16954 *** used, and then restart.
16957 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16958 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16959 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16960 else
16961 ld_shlibs_GCJ=no
16965 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
16966 case `$LD -v 2>&1` in
16967 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
16968 ld_shlibs_GCJ=no
16969 cat <<_LT_EOF 1>&2
16971 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
16972 *** reliably create shared libraries on SCO systems. Therefore, libtool
16973 *** is disabling shared libraries support. We urge you to upgrade GNU
16974 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
16975 *** your PATH or compiler configuration so that the native linker is
16976 *** used, and then restart.
16978 _LT_EOF
16981 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16982 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
16983 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
16984 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
16985 else
16986 ld_shlibs_GCJ=no
16989 esac
16992 sunos4*)
16993 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16994 wlarc=
16995 hardcode_direct_GCJ=yes
16996 hardcode_shlibpath_var_GCJ=no
17000 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17001 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17002 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17003 else
17004 ld_shlibs_GCJ=no
17007 esac
17009 if test "$ld_shlibs_GCJ" = no; then
17010 runpath_var=
17011 hardcode_libdir_flag_spec_GCJ=
17012 export_dynamic_flag_spec_GCJ=
17013 whole_archive_flag_spec_GCJ=
17015 else
17016 # PORTME fill in a description of your system's linker (not GNU ld)
17017 case $host_os in
17018 aix3*)
17019 allow_undefined_flag_GCJ=unsupported
17020 always_export_symbols_GCJ=yes
17021 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'
17022 # Note: this linker hardcodes the directories in LIBPATH if there
17023 # are no directories specified by -L.
17024 hardcode_minus_L_GCJ=yes
17025 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17026 # Neither direct hardcoding nor static linking is supported with a
17027 # broken collect2.
17028 hardcode_direct_GCJ=unsupported
17032 aix4* | aix5*)
17033 if test "$host_cpu" = ia64; then
17034 # On IA64, the linker does run time linking by default, so we don't
17035 # have to do anything special.
17036 aix_use_runtimelinking=no
17037 exp_sym_flag='-Bexport'
17038 no_entry_flag=""
17039 else
17040 # If we're using GNU nm, then we don't want the "-C" option.
17041 # -C means demangle to AIX nm, but means don't demangle with GNU nm
17042 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17043 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'
17044 else
17045 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'
17047 aix_use_runtimelinking=no
17049 # Test if we are trying to use run time linking or normal
17050 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17051 # need to do runtime linking.
17052 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
17053 for ld_flag in $LDFLAGS; do
17054 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17055 aix_use_runtimelinking=yes
17056 break
17058 done
17060 esac
17062 exp_sym_flag='-bexport'
17063 no_entry_flag='-bnoentry'
17066 # When large executables or shared objects are built, AIX ld can
17067 # have problems creating the table of contents. If linking a library
17068 # or program results in "error TOC overflow" add -mminimal-toc to
17069 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
17070 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17072 archive_cmds_GCJ=''
17073 hardcode_direct_GCJ=yes
17074 hardcode_libdir_separator_GCJ=':'
17075 link_all_deplibs_GCJ=yes
17077 if test "$GCC" = yes; then
17078 case $host_os in aix4.[012]|aix4.[012].*)
17079 # We only want to do this on AIX 4.2 and lower, the check
17080 # below for broken collect2 doesn't work under 4.3+
17081 collect2name=`${CC} -print-prog-name=collect2`
17082 if test -f "$collect2name" && \
17083 strings "$collect2name" | grep resolve_lib_name >/dev/null
17084 then
17085 # We have reworked collect2
17087 else
17088 # We have old collect2
17089 hardcode_direct_GCJ=unsupported
17090 # It fails to find uninstalled libraries when the uninstalled
17091 # path is not listed in the libpath. Setting hardcode_minus_L
17092 # to unsupported forces relinking
17093 hardcode_minus_L_GCJ=yes
17094 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17095 hardcode_libdir_separator_GCJ=
17098 esac
17099 shared_flag='-shared'
17100 if test "$aix_use_runtimelinking" = yes; then
17101 shared_flag="$shared_flag "'${wl}-G'
17103 else
17104 # not using gcc
17105 if test "$host_cpu" = ia64; then
17106 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17107 # chokes on -Wl,-G. The following line is correct:
17108 shared_flag='-G'
17109 else
17110 if test "$aix_use_runtimelinking" = yes; then
17111 shared_flag='${wl}-G'
17112 else
17113 shared_flag='${wl}-bM:SRE'
17118 # It seems that -bexpall does not export symbols beginning with
17119 # underscore (_), so it is better to generate a list of symbols to export.
17120 always_export_symbols_GCJ=yes
17121 if test "$aix_use_runtimelinking" = yes; then
17122 # Warning - without using the other runtime loading flags (-brtl),
17123 # -berok will link without error, but may produce a broken library.
17124 allow_undefined_flag_GCJ='-berok'
17125 # Determine the default libpath from the value encoded in an empty executable.
17126 cat >conftest.$ac_ext <<_ACEOF
17127 /* confdefs.h. */
17128 _ACEOF
17129 cat confdefs.h >>conftest.$ac_ext
17130 cat >>conftest.$ac_ext <<_ACEOF
17131 /* end confdefs.h. */
17134 main ()
17138 return 0;
17140 _ACEOF
17141 rm -f conftest.$ac_objext conftest$ac_exeext
17142 if { (ac_try="$ac_link"
17143 case "(($ac_try" in
17144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17145 *) ac_try_echo=$ac_try;;
17146 esac
17147 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17148 (eval "$ac_link") 2>conftest.er1
17149 ac_status=$?
17150 grep -v '^ *+' conftest.er1 >conftest.err
17151 rm -f conftest.er1
17152 cat conftest.err >&5
17153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17154 (exit $ac_status); } && {
17155 test -z "$ac_c_werror_flag" ||
17156 test ! -s conftest.err
17157 } && test -s conftest$ac_exeext &&
17158 $as_test_x conftest$ac_exeext; then
17160 lt_aix_libpath_sed='
17161 /Import File Strings/,/^$/ {
17162 /^0/ {
17163 s/^0 *\(.*\)$/\1/
17167 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17168 # Check for a 64-bit object if we didn't find anything.
17169 if test -z "$aix_libpath"; then
17170 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17172 else
17173 echo "$as_me: failed program was:" >&5
17174 sed 's/^/| /' conftest.$ac_ext >&5
17179 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17180 conftest$ac_exeext conftest.$ac_ext
17181 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17183 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17184 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"
17185 else
17186 if test "$host_cpu" = ia64; then
17187 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17188 allow_undefined_flag_GCJ="-z nodefs"
17189 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"
17190 else
17191 # Determine the default libpath from the value encoded in an empty executable.
17192 cat >conftest.$ac_ext <<_ACEOF
17193 /* confdefs.h. */
17194 _ACEOF
17195 cat confdefs.h >>conftest.$ac_ext
17196 cat >>conftest.$ac_ext <<_ACEOF
17197 /* end confdefs.h. */
17200 main ()
17204 return 0;
17206 _ACEOF
17207 rm -f conftest.$ac_objext conftest$ac_exeext
17208 if { (ac_try="$ac_link"
17209 case "(($ac_try" in
17210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17211 *) ac_try_echo=$ac_try;;
17212 esac
17213 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17214 (eval "$ac_link") 2>conftest.er1
17215 ac_status=$?
17216 grep -v '^ *+' conftest.er1 >conftest.err
17217 rm -f conftest.er1
17218 cat conftest.err >&5
17219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17220 (exit $ac_status); } && {
17221 test -z "$ac_c_werror_flag" ||
17222 test ! -s conftest.err
17223 } && test -s conftest$ac_exeext &&
17224 $as_test_x conftest$ac_exeext; then
17226 lt_aix_libpath_sed='
17227 /Import File Strings/,/^$/ {
17228 /^0/ {
17229 s/^0 *\(.*\)$/\1/
17233 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17234 # Check for a 64-bit object if we didn't find anything.
17235 if test -z "$aix_libpath"; then
17236 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17238 else
17239 echo "$as_me: failed program was:" >&5
17240 sed 's/^/| /' conftest.$ac_ext >&5
17245 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17246 conftest$ac_exeext conftest.$ac_ext
17247 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17249 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17250 # Warning - without using the other run time loading flags,
17251 # -berok will link without error, but may produce a broken library.
17252 no_undefined_flag_GCJ=' ${wl}-bernotok'
17253 allow_undefined_flag_GCJ=' ${wl}-berok'
17254 # Exported symbols can be pulled into shared objects from archives
17255 whole_archive_flag_spec_GCJ='$convenience'
17256 archive_cmds_need_lc_GCJ=yes
17257 # This is similar to how AIX traditionally builds its shared libraries.
17258 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'
17263 amigaos*)
17264 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)'
17265 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17266 hardcode_minus_L_GCJ=yes
17267 # see comment about different semantics on the GNU ld section
17268 ld_shlibs_GCJ=no
17271 bsdi[45]*)
17272 export_dynamic_flag_spec_GCJ=-rdynamic
17275 cygwin* | mingw* | pw32*)
17276 # When not using gcc, we currently assume that we are using
17277 # Microsoft Visual C++.
17278 # hardcode_libdir_flag_spec is actually meaningless, as there is
17279 # no search path for DLLs.
17280 hardcode_libdir_flag_spec_GCJ=' '
17281 allow_undefined_flag_GCJ=unsupported
17282 # Tell ltmain to make .lib files, not .a files.
17283 libext=lib
17284 # Tell ltmain to make .dll files, not .so files.
17285 shrext_cmds=".dll"
17286 # FIXME: Setting linknames here is a bad hack.
17287 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17288 # The linker will automatically build a .lib file if we build a DLL.
17289 old_archive_From_new_cmds_GCJ='true'
17290 # FIXME: Should let the user specify the lib program.
17291 old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs'
17292 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
17293 enable_shared_with_static_runtimes_GCJ=yes
17296 darwin* | rhapsody*)
17297 case $host_os in
17298 rhapsody* | darwin1.[012])
17299 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
17301 *) # Darwin 1.3 on
17302 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17303 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17304 else
17305 case ${MACOSX_DEPLOYMENT_TARGET} in
17306 10.[012])
17307 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17309 10.*)
17310 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
17312 esac
17315 esac
17316 archive_cmds_need_lc_GCJ=no
17317 hardcode_direct_GCJ=no
17318 hardcode_automatic_GCJ=yes
17319 hardcode_shlibpath_var_GCJ=unsupported
17320 whole_archive_flag_spec_GCJ=''
17321 link_all_deplibs_GCJ=yes
17322 if test "$GCC" = yes ; then
17323 output_verbose_link_cmd='echo'
17324 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
17325 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17326 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17327 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}'
17328 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}'
17329 else
17330 case $cc_basename in
17331 xlc*)
17332 output_verbose_link_cmd='echo'
17333 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
17334 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17335 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17336 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}'
17337 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}'
17340 ld_shlibs_GCJ=no
17342 esac
17346 dgux*)
17347 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17348 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17349 hardcode_shlibpath_var_GCJ=no
17352 freebsd1*)
17353 ld_shlibs_GCJ=no
17356 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17357 # support. Future versions do this automatically, but an explicit c++rt0.o
17358 # does not break anything, and helps significantly (at the cost of a little
17359 # extra space).
17360 freebsd2.2*)
17361 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17362 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17363 hardcode_direct_GCJ=yes
17364 hardcode_shlibpath_var_GCJ=no
17367 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17368 freebsd2*)
17369 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17370 hardcode_direct_GCJ=yes
17371 hardcode_minus_L_GCJ=yes
17372 hardcode_shlibpath_var_GCJ=no
17375 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17376 freebsd* | dragonfly*)
17377 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17378 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17379 hardcode_direct_GCJ=yes
17380 hardcode_shlibpath_var_GCJ=no
17383 hpux9*)
17384 if test "$GCC" = yes; then
17385 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'
17386 else
17387 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'
17389 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17390 hardcode_libdir_separator_GCJ=:
17391 hardcode_direct_GCJ=yes
17393 # hardcode_minus_L: Not really in the search PATH,
17394 # but as the default location of the library.
17395 hardcode_minus_L_GCJ=yes
17396 export_dynamic_flag_spec_GCJ='${wl}-E'
17399 hpux10*)
17400 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17401 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17402 else
17403 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17405 if test "$with_gnu_ld" = no; then
17406 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17407 hardcode_libdir_separator_GCJ=:
17409 hardcode_direct_GCJ=yes
17410 export_dynamic_flag_spec_GCJ='${wl}-E'
17412 # hardcode_minus_L: Not really in the search PATH,
17413 # but as the default location of the library.
17414 hardcode_minus_L_GCJ=yes
17418 hpux11*)
17419 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17420 case $host_cpu in
17421 hppa*64*)
17422 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17424 ia64*)
17425 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17428 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17430 esac
17431 else
17432 case $host_cpu in
17433 hppa*64*)
17434 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17436 ia64*)
17437 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17440 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17442 esac
17444 if test "$with_gnu_ld" = no; then
17445 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17446 hardcode_libdir_separator_GCJ=:
17448 case $host_cpu in
17449 hppa*64*|ia64*)
17450 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
17451 hardcode_direct_GCJ=no
17452 hardcode_shlibpath_var_GCJ=no
17455 hardcode_direct_GCJ=yes
17456 export_dynamic_flag_spec_GCJ='${wl}-E'
17458 # hardcode_minus_L: Not really in the search PATH,
17459 # but as the default location of the library.
17460 hardcode_minus_L_GCJ=yes
17462 esac
17466 irix5* | irix6* | nonstopux*)
17467 if test "$GCC" = yes; then
17468 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'
17469 else
17470 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'
17471 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
17473 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17474 hardcode_libdir_separator_GCJ=:
17475 link_all_deplibs_GCJ=yes
17478 netbsd*)
17479 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17480 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
17481 else
17482 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
17484 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17485 hardcode_direct_GCJ=yes
17486 hardcode_shlibpath_var_GCJ=no
17489 newsos6)
17490 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17491 hardcode_direct_GCJ=yes
17492 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17493 hardcode_libdir_separator_GCJ=:
17494 hardcode_shlibpath_var_GCJ=no
17497 openbsd*)
17498 if test -f /usr/libexec/ld.so; then
17499 hardcode_direct_GCJ=yes
17500 hardcode_shlibpath_var_GCJ=no
17501 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17502 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17503 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17504 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17505 export_dynamic_flag_spec_GCJ='${wl}-E'
17506 else
17507 case $host_os in
17508 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17509 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17510 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17513 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17514 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17516 esac
17518 else
17519 ld_shlibs_GCJ=no
17523 os2*)
17524 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17525 hardcode_minus_L_GCJ=yes
17526 allow_undefined_flag_GCJ=unsupported
17527 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'
17528 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17531 osf3*)
17532 if test "$GCC" = yes; then
17533 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17534 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'
17535 else
17536 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17537 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'
17539 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17540 hardcode_libdir_separator_GCJ=:
17543 osf4* | osf5*) # as osf3* with the addition of -msym flag
17544 if test "$GCC" = yes; then
17545 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17546 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'
17547 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17548 else
17549 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17550 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'
17551 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~
17552 $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'
17554 # Both c and cxx compiler support -rpath directly
17555 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
17557 hardcode_libdir_separator_GCJ=:
17560 solaris*)
17561 no_undefined_flag_GCJ=' -z text'
17562 if test "$GCC" = yes; then
17563 wlarc='${wl}'
17564 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17565 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17566 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
17567 else
17568 wlarc=''
17569 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17570 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17571 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17573 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17574 hardcode_shlibpath_var_GCJ=no
17575 case $host_os in
17576 solaris2.[0-5] | solaris2.[0-5].*) ;;
17578 # The compiler driver will combine and reorder linker options,
17579 # but understands `-z linker_flag'. GCC discards it without `$wl',
17580 # but is careful enough not to reorder.
17581 # Supported since Solaris 2.6 (maybe 2.5.1?)
17582 if test "$GCC" = yes; then
17583 whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
17584 else
17585 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract'
17588 esac
17589 link_all_deplibs_GCJ=yes
17592 sunos4*)
17593 if test "x$host_vendor" = xsequent; then
17594 # Use $CC to link under sequent, because it throws in some extra .o
17595 # files that make .init and .fini sections work.
17596 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17597 else
17598 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17600 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17601 hardcode_direct_GCJ=yes
17602 hardcode_minus_L_GCJ=yes
17603 hardcode_shlibpath_var_GCJ=no
17606 sysv4)
17607 case $host_vendor in
17608 sni)
17609 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17610 hardcode_direct_GCJ=yes # is this really true???
17612 siemens)
17613 ## LD is ld it makes a PLAMLIB
17614 ## CC just makes a GrossModule.
17615 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17616 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
17617 hardcode_direct_GCJ=no
17619 motorola)
17620 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17621 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
17623 esac
17624 runpath_var='LD_RUN_PATH'
17625 hardcode_shlibpath_var_GCJ=no
17628 sysv4.3*)
17629 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17630 hardcode_shlibpath_var_GCJ=no
17631 export_dynamic_flag_spec_GCJ='-Bexport'
17634 sysv4*MP*)
17635 if test -d /usr/nec; then
17636 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17637 hardcode_shlibpath_var_GCJ=no
17638 runpath_var=LD_RUN_PATH
17639 hardcode_runpath_var=yes
17640 ld_shlibs_GCJ=yes
17644 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
17645 no_undefined_flag_GCJ='${wl}-z,text'
17646 archive_cmds_need_lc_GCJ=no
17647 hardcode_shlibpath_var_GCJ=no
17648 runpath_var='LD_RUN_PATH'
17650 if test "$GCC" = yes; then
17651 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17652 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17653 else
17654 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17655 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17659 sysv5* | sco3.2v5* | sco5v6*)
17660 # Note: We can NOT use -z defs as we might desire, because we do not
17661 # link with -lc, and that would cause any symbols used from libc to
17662 # always be unresolved, which means just about no library would
17663 # ever link correctly. If we're not using GNU ld we use -z text
17664 # though, which does catch some bad symbols but isn't as heavy-handed
17665 # as -z defs.
17666 no_undefined_flag_GCJ='${wl}-z,text'
17667 allow_undefined_flag_GCJ='${wl}-z,nodefs'
17668 archive_cmds_need_lc_GCJ=no
17669 hardcode_shlibpath_var_GCJ=no
17670 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
17671 hardcode_libdir_separator_GCJ=':'
17672 link_all_deplibs_GCJ=yes
17673 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
17674 runpath_var='LD_RUN_PATH'
17676 if test "$GCC" = yes; then
17677 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17678 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17679 else
17680 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17681 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17685 uts4*)
17686 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17687 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17688 hardcode_shlibpath_var_GCJ=no
17692 ld_shlibs_GCJ=no
17694 esac
17697 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
17698 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
17699 test "$ld_shlibs_GCJ" = no && can_build_shared=no
17702 # Do we need to explicitly link libc?
17704 case "x$archive_cmds_need_lc_GCJ" in
17705 x|xyes)
17706 # Assume -lc should be added
17707 archive_cmds_need_lc_GCJ=yes
17709 if test "$enable_shared" = yes && test "$GCC" = yes; then
17710 case $archive_cmds_GCJ in
17711 *'~'*)
17712 # FIXME: we may have to deal with multi-command sequences.
17714 '$CC '*)
17715 # Test whether the compiler implicitly links with -lc since on some
17716 # systems, -lgcc has to come before -lc. If gcc already passes -lc
17717 # to ld, don't add -lc before -lgcc.
17718 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
17719 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
17720 $rm conftest*
17721 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17723 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17724 (eval $ac_compile) 2>&5
17725 ac_status=$?
17726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17727 (exit $ac_status); } 2>conftest.err; then
17728 soname=conftest
17729 lib=conftest
17730 libobjs=conftest.$ac_objext
17731 deplibs=
17732 wl=$lt_prog_compiler_wl_GCJ
17733 pic_flag=$lt_prog_compiler_pic_GCJ
17734 compiler_flags=-v
17735 linker_flags=-v
17736 verstring=
17737 output_objdir=.
17738 libname=conftest
17739 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
17740 allow_undefined_flag_GCJ=
17741 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
17742 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17743 ac_status=$?
17744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17745 (exit $ac_status); }
17746 then
17747 archive_cmds_need_lc_GCJ=no
17748 else
17749 archive_cmds_need_lc_GCJ=yes
17751 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
17752 else
17753 cat conftest.err 1>&5
17755 $rm conftest*
17756 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
17757 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
17759 esac
17762 esac
17764 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17765 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
17766 library_names_spec=
17767 libname_spec='lib$name'
17768 soname_spec=
17769 shrext_cmds=".so"
17770 postinstall_cmds=
17771 postuninstall_cmds=
17772 finish_cmds=
17773 finish_eval=
17774 shlibpath_var=
17775 shlibpath_overrides_runpath=unknown
17776 version_type=none
17777 dynamic_linker="$host_os ld.so"
17778 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17780 need_lib_prefix=unknown
17781 hardcode_into_libs=no
17783 # when you set need_version to no, make sure it does not cause -set_version
17784 # flags to be left without arguments
17785 need_version=unknown
17787 case $host_os in
17788 aix3*)
17789 version_type=linux
17790 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17791 shlibpath_var=LIBPATH
17793 # AIX 3 has no versioning support, so we append a major version to the name.
17794 soname_spec='${libname}${release}${shared_ext}$major'
17797 aix4* | aix5*)
17798 version_type=linux
17799 need_lib_prefix=no
17800 need_version=no
17801 hardcode_into_libs=yes
17802 if test "$host_cpu" = ia64; then
17803 # AIX 5 supports IA64
17804 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17805 shlibpath_var=LD_LIBRARY_PATH
17806 else
17807 # With GCC up to 2.95.x, collect2 would create an import file
17808 # for dependence libraries. The import file would start with
17809 # the line `#! .'. This would cause the generated library to
17810 # depend on `.', always an invalid library. This was fixed in
17811 # development snapshots of GCC prior to 3.0.
17812 case $host_os in
17813 aix4 | aix4.[01] | aix4.[01].*)
17814 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17815 echo ' yes '
17816 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17818 else
17819 can_build_shared=no
17822 esac
17823 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17824 # soname into executable. Probably we can add versioning support to
17825 # collect2, so additional links can be useful in future.
17826 if test "$aix_use_runtimelinking" = yes; then
17827 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17828 # instead of lib<name>.a to let people know that these are not
17829 # typical AIX shared libraries.
17830 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17831 else
17832 # We preserve .a as extension for shared libraries through AIX4.2
17833 # and later when we are not doing run time linking.
17834 library_names_spec='${libname}${release}.a $libname.a'
17835 soname_spec='${libname}${release}${shared_ext}$major'
17837 shlibpath_var=LIBPATH
17841 amigaos*)
17842 library_names_spec='$libname.ixlibrary $libname.a'
17843 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17844 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'
17847 beos*)
17848 library_names_spec='${libname}${shared_ext}'
17849 dynamic_linker="$host_os ld.so"
17850 shlibpath_var=LIBRARY_PATH
17853 bsdi[45]*)
17854 version_type=linux
17855 need_version=no
17856 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17857 soname_spec='${libname}${release}${shared_ext}$major'
17858 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17859 shlibpath_var=LD_LIBRARY_PATH
17860 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17861 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17862 # the default ld.so.conf also contains /usr/contrib/lib and
17863 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17864 # libtool to hard-code these into programs
17867 cygwin* | mingw* | pw32*)
17868 version_type=windows
17869 shrext_cmds=".dll"
17870 need_version=no
17871 need_lib_prefix=no
17873 case $GCC,$host_os in
17874 yes,cygwin* | yes,mingw* | yes,pw32*)
17875 library_names_spec='$libname.dll.a'
17876 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17877 postinstall_cmds='base_file=`basename \${file}`~
17878 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17879 dldir=$destdir/`dirname \$dlpath`~
17880 test -d \$dldir || mkdir -p \$dldir~
17881 $install_prog $dir/$dlname \$dldir/$dlname~
17882 chmod a+x \$dldir/$dlname'
17883 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17884 dlpath=$dir/\$dldll~
17885 $rm \$dlpath'
17886 shlibpath_overrides_runpath=yes
17888 case $host_os in
17889 cygwin*)
17890 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17891 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17892 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17894 mingw*)
17895 # MinGW DLLs use traditional 'lib' prefix
17896 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17897 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17898 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17899 # It is most probably a Windows format PATH printed by
17900 # mingw gcc, but we are running on Cygwin. Gcc prints its search
17901 # path with ; separators, and with drive letters. We can handle the
17902 # drive letters (cygwin fileutils understands them), so leave them,
17903 # especially as we might pass files found there to a mingw objdump,
17904 # which wouldn't understand a cygwinified path. Ahh.
17905 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17906 else
17907 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17910 pw32*)
17911 # pw32 DLLs use 'pw' prefix rather than 'lib'
17912 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17914 esac
17918 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17920 esac
17921 dynamic_linker='Win32 ld.exe'
17922 # FIXME: first we should search . and the directory the executable is in
17923 shlibpath_var=PATH
17926 darwin* | rhapsody*)
17927 dynamic_linker="$host_os dyld"
17928 version_type=darwin
17929 need_lib_prefix=no
17930 need_version=no
17931 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17932 soname_spec='${libname}${release}${major}$shared_ext'
17933 shlibpath_overrides_runpath=yes
17934 shlibpath_var=DYLD_LIBRARY_PATH
17935 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17937 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17940 dgux*)
17941 version_type=linux
17942 need_lib_prefix=no
17943 need_version=no
17944 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17945 soname_spec='${libname}${release}${shared_ext}$major'
17946 shlibpath_var=LD_LIBRARY_PATH
17949 freebsd1*)
17950 dynamic_linker=no
17953 freebsd* | dragonfly*)
17954 # DragonFly does not have aout. When/if they implement a new
17955 # versioning mechanism, adjust this.
17956 if test -x /usr/bin/objformat; then
17957 objformat=`/usr/bin/objformat`
17958 else
17959 case $host_os in
17960 freebsd[123]*) objformat=aout ;;
17961 *) objformat=elf ;;
17962 esac
17964 version_type=freebsd-$objformat
17965 case $version_type in
17966 freebsd-elf*)
17967 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17968 need_version=no
17969 need_lib_prefix=no
17971 freebsd-*)
17972 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17973 need_version=yes
17975 esac
17976 shlibpath_var=LD_LIBRARY_PATH
17977 case $host_os in
17978 freebsd2*)
17979 shlibpath_overrides_runpath=yes
17981 freebsd3.[01]* | freebsdelf3.[01]*)
17982 shlibpath_overrides_runpath=yes
17983 hardcode_into_libs=yes
17985 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17986 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17987 shlibpath_overrides_runpath=no
17988 hardcode_into_libs=yes
17990 *) # from 4.6 on, and DragonFly
17991 shlibpath_overrides_runpath=yes
17992 hardcode_into_libs=yes
17994 esac
17997 gnu*)
17998 version_type=linux
17999 need_lib_prefix=no
18000 need_version=no
18001 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18002 soname_spec='${libname}${release}${shared_ext}$major'
18003 shlibpath_var=LD_LIBRARY_PATH
18004 hardcode_into_libs=yes
18007 hpux9* | hpux10* | hpux11*)
18008 # Give a soname corresponding to the major version so that dld.sl refuses to
18009 # link against other versions.
18010 version_type=sunos
18011 need_lib_prefix=no
18012 need_version=no
18013 case $host_cpu in
18014 ia64*)
18015 shrext_cmds='.so'
18016 hardcode_into_libs=yes
18017 dynamic_linker="$host_os dld.so"
18018 shlibpath_var=LD_LIBRARY_PATH
18019 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18020 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18021 soname_spec='${libname}${release}${shared_ext}$major'
18022 if test "X$HPUX_IA64_MODE" = X32; then
18023 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18024 else
18025 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18027 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18029 hppa*64*)
18030 shrext_cmds='.sl'
18031 hardcode_into_libs=yes
18032 dynamic_linker="$host_os dld.sl"
18033 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18034 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18035 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18036 soname_spec='${libname}${release}${shared_ext}$major'
18037 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18038 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18041 shrext_cmds='.sl'
18042 dynamic_linker="$host_os dld.sl"
18043 shlibpath_var=SHLIB_PATH
18044 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18045 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18046 soname_spec='${libname}${release}${shared_ext}$major'
18048 esac
18049 # HP-UX runs *really* slowly unless shared libraries are mode 555.
18050 postinstall_cmds='chmod 555 $lib'
18053 interix[3-9]*)
18054 version_type=linux
18055 need_lib_prefix=no
18056 need_version=no
18057 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18058 soname_spec='${libname}${release}${shared_ext}$major'
18059 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18060 shlibpath_var=LD_LIBRARY_PATH
18061 shlibpath_overrides_runpath=no
18062 hardcode_into_libs=yes
18065 irix5* | irix6* | nonstopux*)
18066 case $host_os in
18067 nonstopux*) version_type=nonstopux ;;
18069 if test "$lt_cv_prog_gnu_ld" = yes; then
18070 version_type=linux
18071 else
18072 version_type=irix
18073 fi ;;
18074 esac
18075 need_lib_prefix=no
18076 need_version=no
18077 soname_spec='${libname}${release}${shared_ext}$major'
18078 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18079 case $host_os in
18080 irix5* | nonstopux*)
18081 libsuff= shlibsuff=
18084 case $LD in # libtool.m4 will add one of these switches to LD
18085 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18086 libsuff= shlibsuff= libmagic=32-bit;;
18087 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18088 libsuff=32 shlibsuff=N32 libmagic=N32;;
18089 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18090 libsuff=64 shlibsuff=64 libmagic=64-bit;;
18091 *) libsuff= shlibsuff= libmagic=never-match;;
18092 esac
18094 esac
18095 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18096 shlibpath_overrides_runpath=no
18097 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18098 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18099 hardcode_into_libs=yes
18102 # No shared lib support for Linux oldld, aout, or coff.
18103 linux*oldld* | linux*aout* | linux*coff*)
18104 dynamic_linker=no
18107 # This must be Linux ELF.
18108 linux* | k*bsd*-gnu)
18109 version_type=linux
18110 need_lib_prefix=no
18111 need_version=no
18112 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18113 soname_spec='${libname}${release}${shared_ext}$major'
18114 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18115 shlibpath_var=LD_LIBRARY_PATH
18116 shlibpath_overrides_runpath=no
18117 # This implies no fast_install, which is unacceptable.
18118 # Some rework will be needed to allow for fast_install
18119 # before this can be enabled.
18120 hardcode_into_libs=yes
18122 # Append ld.so.conf contents to the search path
18123 if test -f /etc/ld.so.conf; then
18124 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' ' '`
18125 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18128 # We used to test for /lib/ld.so.1 and disable shared libraries on
18129 # powerpc, because MkLinux only supported shared libraries with the
18130 # GNU dynamic linker. Since this was broken with cross compilers,
18131 # most powerpc-linux boxes support dynamic linking these days and
18132 # people can always --disable-shared, the test was removed, and we
18133 # assume the GNU/Linux dynamic linker is in use.
18134 dynamic_linker='GNU/Linux ld.so'
18137 netbsd*)
18138 version_type=sunos
18139 need_lib_prefix=no
18140 need_version=no
18141 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18142 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18143 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18144 dynamic_linker='NetBSD (a.out) ld.so'
18145 else
18146 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18147 soname_spec='${libname}${release}${shared_ext}$major'
18148 dynamic_linker='NetBSD ld.elf_so'
18150 shlibpath_var=LD_LIBRARY_PATH
18151 shlibpath_overrides_runpath=yes
18152 hardcode_into_libs=yes
18155 newsos6)
18156 version_type=linux
18157 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18158 shlibpath_var=LD_LIBRARY_PATH
18159 shlibpath_overrides_runpath=yes
18162 nto-qnx*)
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 shlibpath_var=LD_LIBRARY_PATH
18169 shlibpath_overrides_runpath=yes
18172 openbsd*)
18173 version_type=sunos
18174 sys_lib_dlsearch_path_spec="/usr/lib"
18175 need_lib_prefix=no
18176 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18177 case $host_os in
18178 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18179 *) need_version=no ;;
18180 esac
18181 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18182 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18183 shlibpath_var=LD_LIBRARY_PATH
18184 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18185 case $host_os in
18186 openbsd2.[89] | openbsd2.[89].*)
18187 shlibpath_overrides_runpath=no
18190 shlibpath_overrides_runpath=yes
18192 esac
18193 else
18194 shlibpath_overrides_runpath=yes
18198 os2*)
18199 libname_spec='$name'
18200 shrext_cmds=".dll"
18201 need_lib_prefix=no
18202 library_names_spec='$libname${shared_ext} $libname.a'
18203 dynamic_linker='OS/2 ld.exe'
18204 shlibpath_var=LIBPATH
18207 osf3* | osf4* | osf5*)
18208 version_type=osf
18209 need_lib_prefix=no
18210 need_version=no
18211 soname_spec='${libname}${release}${shared_ext}$major'
18212 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18213 shlibpath_var=LD_LIBRARY_PATH
18214 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18215 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18218 rdos*)
18219 dynamic_linker=no
18222 solaris*)
18223 version_type=linux
18224 need_lib_prefix=no
18225 need_version=no
18226 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18227 soname_spec='${libname}${release}${shared_ext}$major'
18228 shlibpath_var=LD_LIBRARY_PATH
18229 shlibpath_overrides_runpath=yes
18230 hardcode_into_libs=yes
18231 # ldd complains unless libraries are executable
18232 postinstall_cmds='chmod +x $lib'
18235 sunos4*)
18236 version_type=sunos
18237 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18238 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18239 shlibpath_var=LD_LIBRARY_PATH
18240 shlibpath_overrides_runpath=yes
18241 if test "$with_gnu_ld" = yes; then
18242 need_lib_prefix=no
18244 need_version=yes
18247 sysv4 | sysv4.3*)
18248 version_type=linux
18249 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18250 soname_spec='${libname}${release}${shared_ext}$major'
18251 shlibpath_var=LD_LIBRARY_PATH
18252 case $host_vendor in
18253 sni)
18254 shlibpath_overrides_runpath=no
18255 need_lib_prefix=no
18256 export_dynamic_flag_spec='${wl}-Blargedynsym'
18257 runpath_var=LD_RUN_PATH
18259 siemens)
18260 need_lib_prefix=no
18262 motorola)
18263 need_lib_prefix=no
18264 need_version=no
18265 shlibpath_overrides_runpath=no
18266 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18268 esac
18271 sysv4*MP*)
18272 if test -d /usr/nec ;then
18273 version_type=linux
18274 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18275 soname_spec='$libname${shared_ext}.$major'
18276 shlibpath_var=LD_LIBRARY_PATH
18280 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18281 version_type=freebsd-elf
18282 need_lib_prefix=no
18283 need_version=no
18284 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18285 soname_spec='${libname}${release}${shared_ext}$major'
18286 shlibpath_var=LD_LIBRARY_PATH
18287 hardcode_into_libs=yes
18288 if test "$with_gnu_ld" = yes; then
18289 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18290 shlibpath_overrides_runpath=no
18291 else
18292 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18293 shlibpath_overrides_runpath=yes
18294 case $host_os in
18295 sco3.2v5*)
18296 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18298 esac
18300 sys_lib_dlsearch_path_spec='/usr/lib'
18303 uts4*)
18304 version_type=linux
18305 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18306 soname_spec='${libname}${release}${shared_ext}$major'
18307 shlibpath_var=LD_LIBRARY_PATH
18311 dynamic_linker=no
18313 esac
18314 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18315 echo "${ECHO_T}$dynamic_linker" >&6; }
18316 test "$dynamic_linker" = no && can_build_shared=no
18318 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18319 if test "$GCC" = yes; then
18320 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18323 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18324 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
18325 hardcode_action_GCJ=
18326 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
18327 test -n "$runpath_var_GCJ" || \
18328 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
18330 # We can hardcode non-existant directories.
18331 if test "$hardcode_direct_GCJ" != no &&
18332 # If the only mechanism to avoid hardcoding is shlibpath_var, we
18333 # have to relink, otherwise we might link with an installed library
18334 # when we should be linking with a yet-to-be-installed one
18335 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18336 test "$hardcode_minus_L_GCJ" != no; then
18337 # Linking always hardcodes the temporary library directory.
18338 hardcode_action_GCJ=relink
18339 else
18340 # We can link without hardcoding, and we can hardcode nonexisting dirs.
18341 hardcode_action_GCJ=immediate
18343 else
18344 # We cannot hardcode anything, or else we can only hardcode existing
18345 # directories.
18346 hardcode_action_GCJ=unsupported
18348 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
18349 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
18351 if test "$hardcode_action_GCJ" = relink; then
18352 # Fast installation is not supported
18353 enable_fast_install=no
18354 elif test "$shlibpath_overrides_runpath" = yes ||
18355 test "$enable_shared" = no; then
18356 # Fast installation is not necessary
18357 enable_fast_install=needless
18361 # The else clause should only fire when bootstrapping the
18362 # libtool distribution, otherwise you forgot to ship ltmain.sh
18363 # with your package, and you will get complaints that there are
18364 # no rules to generate ltmain.sh.
18365 if test -f "$ltmain"; then
18366 # See if we are running on zsh, and set the options which allow our commands through
18367 # without removal of \ escapes.
18368 if test -n "${ZSH_VERSION+set}" ; then
18369 setopt NO_GLOB_SUBST
18371 # Now quote all the things that may contain metacharacters while being
18372 # careful not to overquote the AC_SUBSTed values. We take copies of the
18373 # variables and quote the copies for generation of the libtool script.
18374 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18375 SED SHELL STRIP \
18376 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18377 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18378 deplibs_check_method reload_flag reload_cmds need_locks \
18379 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18380 lt_cv_sys_global_symbol_to_c_name_address \
18381 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18382 old_postinstall_cmds old_postuninstall_cmds \
18383 compiler_GCJ \
18384 CC_GCJ \
18385 LD_GCJ \
18386 lt_prog_compiler_wl_GCJ \
18387 lt_prog_compiler_pic_GCJ \
18388 lt_prog_compiler_static_GCJ \
18389 lt_prog_compiler_no_builtin_flag_GCJ \
18390 export_dynamic_flag_spec_GCJ \
18391 thread_safe_flag_spec_GCJ \
18392 whole_archive_flag_spec_GCJ \
18393 enable_shared_with_static_runtimes_GCJ \
18394 old_archive_cmds_GCJ \
18395 old_archive_from_new_cmds_GCJ \
18396 predep_objects_GCJ \
18397 postdep_objects_GCJ \
18398 predeps_GCJ \
18399 postdeps_GCJ \
18400 compiler_lib_search_path_GCJ \
18401 archive_cmds_GCJ \
18402 archive_expsym_cmds_GCJ \
18403 postinstall_cmds_GCJ \
18404 postuninstall_cmds_GCJ \
18405 old_archive_from_expsyms_cmds_GCJ \
18406 allow_undefined_flag_GCJ \
18407 no_undefined_flag_GCJ \
18408 export_symbols_cmds_GCJ \
18409 hardcode_libdir_flag_spec_GCJ \
18410 hardcode_libdir_flag_spec_ld_GCJ \
18411 hardcode_libdir_separator_GCJ \
18412 hardcode_automatic_GCJ \
18413 module_cmds_GCJ \
18414 module_expsym_cmds_GCJ \
18415 lt_cv_prog_compiler_c_o_GCJ \
18416 fix_srcfile_path_GCJ \
18417 exclude_expsyms_GCJ \
18418 include_expsyms_GCJ; do
18420 case $var in
18421 old_archive_cmds_GCJ | \
18422 old_archive_from_new_cmds_GCJ | \
18423 archive_cmds_GCJ | \
18424 archive_expsym_cmds_GCJ | \
18425 module_cmds_GCJ | \
18426 module_expsym_cmds_GCJ | \
18427 old_archive_from_expsyms_cmds_GCJ | \
18428 export_symbols_cmds_GCJ | \
18429 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18430 postinstall_cmds | postuninstall_cmds | \
18431 old_postinstall_cmds | old_postuninstall_cmds | \
18432 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18433 # Double-quote double-evaled strings.
18434 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18437 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18439 esac
18440 done
18442 case $lt_echo in
18443 *'\$0 --fallback-echo"')
18444 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18446 esac
18448 cfgfile="$ofile"
18450 cat <<__EOF__ >> "$cfgfile"
18451 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18453 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18455 # Shell to use when invoking shell scripts.
18456 SHELL=$lt_SHELL
18458 # Whether or not to build shared libraries.
18459 build_libtool_libs=$enable_shared
18461 # Whether or not to build static libraries.
18462 build_old_libs=$enable_static
18464 # Whether or not to add -lc for building shared libraries.
18465 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18467 # Whether or not to disallow shared libs when runtime libs are static
18468 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18470 # Whether or not to optimize for fast installation.
18471 fast_install=$enable_fast_install
18473 # The host system.
18474 host_alias=$host_alias
18475 host=$host
18476 host_os=$host_os
18478 # The build system.
18479 build_alias=$build_alias
18480 build=$build
18481 build_os=$build_os
18483 # An echo program that does not interpret backslashes.
18484 echo=$lt_echo
18486 # The archiver.
18487 AR=$lt_AR
18488 AR_FLAGS=$lt_AR_FLAGS
18490 # A C compiler.
18491 LTCC=$lt_LTCC
18493 # LTCC compiler flags.
18494 LTCFLAGS=$lt_LTCFLAGS
18496 # A language-specific compiler.
18497 CC=$lt_compiler_GCJ
18499 # Is the compiler the GNU C compiler?
18500 with_gcc=$GCC_GCJ
18502 # An ERE matcher.
18503 EGREP=$lt_EGREP
18505 # The linker used to build libraries.
18506 LD=$lt_LD_GCJ
18508 # Whether we need hard or soft links.
18509 LN_S=$lt_LN_S
18511 # A BSD-compatible nm program.
18512 NM=$lt_NM
18514 # A symbol stripping program
18515 STRIP=$lt_STRIP
18517 # Used to examine libraries when file_magic_cmd begins "file"
18518 MAGIC_CMD=$MAGIC_CMD
18520 # Used on cygwin: DLL creation program.
18521 DLLTOOL="$DLLTOOL"
18523 # Used on cygwin: object dumper.
18524 OBJDUMP="$OBJDUMP"
18526 # Used on cygwin: assembler.
18527 AS="$AS"
18529 # The name of the directory that contains temporary libtool files.
18530 objdir=$objdir
18532 # How to create reloadable object files.
18533 reload_flag=$lt_reload_flag
18534 reload_cmds=$lt_reload_cmds
18536 # How to pass a linker flag through the compiler.
18537 wl=$lt_lt_prog_compiler_wl_GCJ
18539 # Object file suffix (normally "o").
18540 objext="$ac_objext"
18542 # Old archive suffix (normally "a").
18543 libext="$libext"
18545 # Shared library suffix (normally ".so").
18546 shrext_cmds='$shrext_cmds'
18548 # Executable file suffix (normally "").
18549 exeext="$exeext"
18551 # Additional compiler flags for building library objects.
18552 pic_flag=$lt_lt_prog_compiler_pic_GCJ
18553 pic_mode=$pic_mode
18555 # What is the maximum length of a command?
18556 max_cmd_len=$lt_cv_sys_max_cmd_len
18558 # Does compiler simultaneously support -c and -o options?
18559 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18561 # Must we lock files when doing compilation?
18562 need_locks=$lt_need_locks
18564 # Do we need the lib prefix for modules?
18565 need_lib_prefix=$need_lib_prefix
18567 # Do we need a version for libraries?
18568 need_version=$need_version
18570 # Whether dlopen is supported.
18571 dlopen_support=$enable_dlopen
18573 # Whether dlopen of programs is supported.
18574 dlopen_self=$enable_dlopen_self
18576 # Whether dlopen of statically linked programs is supported.
18577 dlopen_self_static=$enable_dlopen_self_static
18579 # Compiler flag to prevent dynamic linking.
18580 link_static_flag=$lt_lt_prog_compiler_static_GCJ
18582 # Compiler flag to turn off builtin functions.
18583 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18585 # Compiler flag to allow reflexive dlopens.
18586 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18588 # Compiler flag to generate shared objects directly from archives.
18589 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18591 # Compiler flag to generate thread-safe objects.
18592 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18594 # Library versioning type.
18595 version_type=$version_type
18597 # Format of library name prefix.
18598 libname_spec=$lt_libname_spec
18600 # List of archive names. First name is the real one, the rest are links.
18601 # The last name is the one that the linker finds with -lNAME.
18602 library_names_spec=$lt_library_names_spec
18604 # The coded name of the library, if different from the real name.
18605 soname_spec=$lt_soname_spec
18607 # Commands used to build and install an old-style archive.
18608 RANLIB=$lt_RANLIB
18609 old_archive_cmds=$lt_old_archive_cmds_GCJ
18610 old_postinstall_cmds=$lt_old_postinstall_cmds
18611 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18613 # Create an old-style archive from a shared archive.
18614 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18616 # Create a temporary old-style archive to link instead of a shared archive.
18617 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18619 # Commands used to build and install a shared archive.
18620 archive_cmds=$lt_archive_cmds_GCJ
18621 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18622 postinstall_cmds=$lt_postinstall_cmds
18623 postuninstall_cmds=$lt_postuninstall_cmds
18625 # Commands used to build a loadable module (assumed same as above if empty)
18626 module_cmds=$lt_module_cmds_GCJ
18627 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18629 # Commands to strip libraries.
18630 old_striplib=$lt_old_striplib
18631 striplib=$lt_striplib
18633 # Dependencies to place before the objects being linked to create a
18634 # shared library.
18635 predep_objects=$lt_predep_objects_GCJ
18637 # Dependencies to place after the objects being linked to create a
18638 # shared library.
18639 postdep_objects=$lt_postdep_objects_GCJ
18641 # Dependencies to place before the objects being linked to create a
18642 # shared library.
18643 predeps=$lt_predeps_GCJ
18645 # Dependencies to place after the objects being linked to create a
18646 # shared library.
18647 postdeps=$lt_postdeps_GCJ
18649 # The library search path used internally by the compiler when linking
18650 # a shared library.
18651 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
18653 # Method to check whether dependent libraries are shared objects.
18654 deplibs_check_method=$lt_deplibs_check_method
18656 # Command to use when deplibs_check_method == file_magic.
18657 file_magic_cmd=$lt_file_magic_cmd
18659 # Flag that allows shared libraries with undefined symbols to be built.
18660 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18662 # Flag that forces no undefined symbols.
18663 no_undefined_flag=$lt_no_undefined_flag_GCJ
18665 # Commands used to finish a libtool library installation in a directory.
18666 finish_cmds=$lt_finish_cmds
18668 # Same as above, but a single script fragment to be evaled but not shown.
18669 finish_eval=$lt_finish_eval
18671 # Take the output of nm and produce a listing of raw symbols and C names.
18672 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18674 # Transform the output of nm in a proper C declaration
18675 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18677 # Transform the output of nm in a C name address pair
18678 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18680 # This is the shared library runtime path variable.
18681 runpath_var=$runpath_var
18683 # This is the shared library path variable.
18684 shlibpath_var=$shlibpath_var
18686 # Is shlibpath searched before the hard-coded library search path?
18687 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18689 # How to hardcode a shared library path into an executable.
18690 hardcode_action=$hardcode_action_GCJ
18692 # Whether we should hardcode library paths into libraries.
18693 hardcode_into_libs=$hardcode_into_libs
18695 # Flag to hardcode \$libdir into a binary during linking.
18696 # This must work even if \$libdir does not exist.
18697 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18699 # If ld is used when linking, flag to hardcode \$libdir into
18700 # a binary during linking. This must work even if \$libdir does
18701 # not exist.
18702 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18704 # Whether we need a single -rpath flag with a separated argument.
18705 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18707 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18708 # resulting binary.
18709 hardcode_direct=$hardcode_direct_GCJ
18711 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18712 # resulting binary.
18713 hardcode_minus_L=$hardcode_minus_L_GCJ
18715 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18716 # the resulting binary.
18717 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18719 # Set to yes if building a shared library automatically hardcodes DIR into the library
18720 # and all subsequent libraries and executables linked against it.
18721 hardcode_automatic=$hardcode_automatic_GCJ
18723 # Variables whose values should be saved in libtool wrapper scripts and
18724 # restored at relink time.
18725 variables_saved_for_relink="$variables_saved_for_relink"
18727 # Whether libtool must link a program against all its dependency libraries.
18728 link_all_deplibs=$link_all_deplibs_GCJ
18730 # Compile-time system search path for libraries
18731 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18733 # Run-time system search path for libraries
18734 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18736 # Fix the shell variable \$srcfile for the compiler.
18737 fix_srcfile_path=$lt_fix_srcfile_path
18739 # Set to yes if exported symbols are required.
18740 always_export_symbols=$always_export_symbols_GCJ
18742 # The commands to list exported symbols.
18743 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18745 # The commands to extract the exported symbol list from a shared archive.
18746 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18748 # Symbols that should not be listed in the preloaded symbols.
18749 exclude_expsyms=$lt_exclude_expsyms_GCJ
18751 # Symbols that must always be exported.
18752 include_expsyms=$lt_include_expsyms_GCJ
18754 # ### END LIBTOOL TAG CONFIG: $tagname
18756 __EOF__
18759 else
18760 # If there is no Makefile yet, we rely on a make rule to execute
18761 # `config.status --recheck' to rerun these tests and create the
18762 # libtool script then.
18763 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18764 if test -f "$ltmain_in"; then
18765 test -f Makefile && make "$ltmain"
18770 ac_ext=c
18771 ac_cpp='$CPP $CPPFLAGS'
18772 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18773 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18774 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18776 CC="$lt_save_CC"
18778 else
18779 tagname=""
18786 # Source file extension for RC test sources.
18787 ac_ext=rc
18789 # Object file extension for compiled RC test sources.
18790 objext=o
18791 objext_RC=$objext
18793 # Code to be used in simple compile tests
18794 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
18796 # Code to be used in simple link tests
18797 lt_simple_link_test_code="$lt_simple_compile_test_code"
18799 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18801 # If no C compiler was specified, use CC.
18802 LTCC=${LTCC-"$CC"}
18804 # If no C compiler flags were specified, use CFLAGS.
18805 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18807 # Allow CC to be a program name with arguments.
18808 compiler=$CC
18811 # save warnings/boilerplate of simple test code
18812 ac_outfile=conftest.$ac_objext
18813 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
18814 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18815 _lt_compiler_boilerplate=`cat conftest.err`
18816 $rm conftest*
18818 ac_outfile=conftest.$ac_objext
18819 echo "$lt_simple_link_test_code" >conftest.$ac_ext
18820 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18821 _lt_linker_boilerplate=`cat conftest.err`
18822 $rm conftest*
18825 # Allow CC to be a program name with arguments.
18826 lt_save_CC="$CC"
18827 CC=${RC-"windres"}
18828 compiler=$CC
18829 compiler_RC=$CC
18830 for cc_temp in $compiler""; do
18831 case $cc_temp in
18832 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18833 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18834 \-*) ;;
18835 *) break;;
18836 esac
18837 done
18838 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18840 lt_cv_prog_compiler_c_o_RC=yes
18842 # The else clause should only fire when bootstrapping the
18843 # libtool distribution, otherwise you forgot to ship ltmain.sh
18844 # with your package, and you will get complaints that there are
18845 # no rules to generate ltmain.sh.
18846 if test -f "$ltmain"; then
18847 # See if we are running on zsh, and set the options which allow our commands through
18848 # without removal of \ escapes.
18849 if test -n "${ZSH_VERSION+set}" ; then
18850 setopt NO_GLOB_SUBST
18852 # Now quote all the things that may contain metacharacters while being
18853 # careful not to overquote the AC_SUBSTed values. We take copies of the
18854 # variables and quote the copies for generation of the libtool script.
18855 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18856 SED SHELL STRIP \
18857 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18858 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18859 deplibs_check_method reload_flag reload_cmds need_locks \
18860 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18861 lt_cv_sys_global_symbol_to_c_name_address \
18862 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18863 old_postinstall_cmds old_postuninstall_cmds \
18864 compiler_RC \
18865 CC_RC \
18866 LD_RC \
18867 lt_prog_compiler_wl_RC \
18868 lt_prog_compiler_pic_RC \
18869 lt_prog_compiler_static_RC \
18870 lt_prog_compiler_no_builtin_flag_RC \
18871 export_dynamic_flag_spec_RC \
18872 thread_safe_flag_spec_RC \
18873 whole_archive_flag_spec_RC \
18874 enable_shared_with_static_runtimes_RC \
18875 old_archive_cmds_RC \
18876 old_archive_from_new_cmds_RC \
18877 predep_objects_RC \
18878 postdep_objects_RC \
18879 predeps_RC \
18880 postdeps_RC \
18881 compiler_lib_search_path_RC \
18882 archive_cmds_RC \
18883 archive_expsym_cmds_RC \
18884 postinstall_cmds_RC \
18885 postuninstall_cmds_RC \
18886 old_archive_from_expsyms_cmds_RC \
18887 allow_undefined_flag_RC \
18888 no_undefined_flag_RC \
18889 export_symbols_cmds_RC \
18890 hardcode_libdir_flag_spec_RC \
18891 hardcode_libdir_flag_spec_ld_RC \
18892 hardcode_libdir_separator_RC \
18893 hardcode_automatic_RC \
18894 module_cmds_RC \
18895 module_expsym_cmds_RC \
18896 lt_cv_prog_compiler_c_o_RC \
18897 fix_srcfile_path_RC \
18898 exclude_expsyms_RC \
18899 include_expsyms_RC; do
18901 case $var in
18902 old_archive_cmds_RC | \
18903 old_archive_from_new_cmds_RC | \
18904 archive_cmds_RC | \
18905 archive_expsym_cmds_RC | \
18906 module_cmds_RC | \
18907 module_expsym_cmds_RC | \
18908 old_archive_from_expsyms_cmds_RC | \
18909 export_symbols_cmds_RC | \
18910 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18911 postinstall_cmds | postuninstall_cmds | \
18912 old_postinstall_cmds | old_postuninstall_cmds | \
18913 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18914 # Double-quote double-evaled strings.
18915 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18918 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18920 esac
18921 done
18923 case $lt_echo in
18924 *'\$0 --fallback-echo"')
18925 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18927 esac
18929 cfgfile="$ofile"
18931 cat <<__EOF__ >> "$cfgfile"
18932 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18934 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18936 # Shell to use when invoking shell scripts.
18937 SHELL=$lt_SHELL
18939 # Whether or not to build shared libraries.
18940 build_libtool_libs=$enable_shared
18942 # Whether or not to build static libraries.
18943 build_old_libs=$enable_static
18945 # Whether or not to add -lc for building shared libraries.
18946 build_libtool_need_lc=$archive_cmds_need_lc_RC
18948 # Whether or not to disallow shared libs when runtime libs are static
18949 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18951 # Whether or not to optimize for fast installation.
18952 fast_install=$enable_fast_install
18954 # The host system.
18955 host_alias=$host_alias
18956 host=$host
18957 host_os=$host_os
18959 # The build system.
18960 build_alias=$build_alias
18961 build=$build
18962 build_os=$build_os
18964 # An echo program that does not interpret backslashes.
18965 echo=$lt_echo
18967 # The archiver.
18968 AR=$lt_AR
18969 AR_FLAGS=$lt_AR_FLAGS
18971 # A C compiler.
18972 LTCC=$lt_LTCC
18974 # LTCC compiler flags.
18975 LTCFLAGS=$lt_LTCFLAGS
18977 # A language-specific compiler.
18978 CC=$lt_compiler_RC
18980 # Is the compiler the GNU C compiler?
18981 with_gcc=$GCC_RC
18983 # An ERE matcher.
18984 EGREP=$lt_EGREP
18986 # The linker used to build libraries.
18987 LD=$lt_LD_RC
18989 # Whether we need hard or soft links.
18990 LN_S=$lt_LN_S
18992 # A BSD-compatible nm program.
18993 NM=$lt_NM
18995 # A symbol stripping program
18996 STRIP=$lt_STRIP
18998 # Used to examine libraries when file_magic_cmd begins "file"
18999 MAGIC_CMD=$MAGIC_CMD
19001 # Used on cygwin: DLL creation program.
19002 DLLTOOL="$DLLTOOL"
19004 # Used on cygwin: object dumper.
19005 OBJDUMP="$OBJDUMP"
19007 # Used on cygwin: assembler.
19008 AS="$AS"
19010 # The name of the directory that contains temporary libtool files.
19011 objdir=$objdir
19013 # How to create reloadable object files.
19014 reload_flag=$lt_reload_flag
19015 reload_cmds=$lt_reload_cmds
19017 # How to pass a linker flag through the compiler.
19018 wl=$lt_lt_prog_compiler_wl_RC
19020 # Object file suffix (normally "o").
19021 objext="$ac_objext"
19023 # Old archive suffix (normally "a").
19024 libext="$libext"
19026 # Shared library suffix (normally ".so").
19027 shrext_cmds='$shrext_cmds'
19029 # Executable file suffix (normally "").
19030 exeext="$exeext"
19032 # Additional compiler flags for building library objects.
19033 pic_flag=$lt_lt_prog_compiler_pic_RC
19034 pic_mode=$pic_mode
19036 # What is the maximum length of a command?
19037 max_cmd_len=$lt_cv_sys_max_cmd_len
19039 # Does compiler simultaneously support -c and -o options?
19040 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19042 # Must we lock files when doing compilation?
19043 need_locks=$lt_need_locks
19045 # Do we need the lib prefix for modules?
19046 need_lib_prefix=$need_lib_prefix
19048 # Do we need a version for libraries?
19049 need_version=$need_version
19051 # Whether dlopen is supported.
19052 dlopen_support=$enable_dlopen
19054 # Whether dlopen of programs is supported.
19055 dlopen_self=$enable_dlopen_self
19057 # Whether dlopen of statically linked programs is supported.
19058 dlopen_self_static=$enable_dlopen_self_static
19060 # Compiler flag to prevent dynamic linking.
19061 link_static_flag=$lt_lt_prog_compiler_static_RC
19063 # Compiler flag to turn off builtin functions.
19064 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19066 # Compiler flag to allow reflexive dlopens.
19067 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19069 # Compiler flag to generate shared objects directly from archives.
19070 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19072 # Compiler flag to generate thread-safe objects.
19073 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19075 # Library versioning type.
19076 version_type=$version_type
19078 # Format of library name prefix.
19079 libname_spec=$lt_libname_spec
19081 # List of archive names. First name is the real one, the rest are links.
19082 # The last name is the one that the linker finds with -lNAME.
19083 library_names_spec=$lt_library_names_spec
19085 # The coded name of the library, if different from the real name.
19086 soname_spec=$lt_soname_spec
19088 # Commands used to build and install an old-style archive.
19089 RANLIB=$lt_RANLIB
19090 old_archive_cmds=$lt_old_archive_cmds_RC
19091 old_postinstall_cmds=$lt_old_postinstall_cmds
19092 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19094 # Create an old-style archive from a shared archive.
19095 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19097 # Create a temporary old-style archive to link instead of a shared archive.
19098 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19100 # Commands used to build and install a shared archive.
19101 archive_cmds=$lt_archive_cmds_RC
19102 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19103 postinstall_cmds=$lt_postinstall_cmds
19104 postuninstall_cmds=$lt_postuninstall_cmds
19106 # Commands used to build a loadable module (assumed same as above if empty)
19107 module_cmds=$lt_module_cmds_RC
19108 module_expsym_cmds=$lt_module_expsym_cmds_RC
19110 # Commands to strip libraries.
19111 old_striplib=$lt_old_striplib
19112 striplib=$lt_striplib
19114 # Dependencies to place before the objects being linked to create a
19115 # shared library.
19116 predep_objects=$lt_predep_objects_RC
19118 # Dependencies to place after the objects being linked to create a
19119 # shared library.
19120 postdep_objects=$lt_postdep_objects_RC
19122 # Dependencies to place before the objects being linked to create a
19123 # shared library.
19124 predeps=$lt_predeps_RC
19126 # Dependencies to place after the objects being linked to create a
19127 # shared library.
19128 postdeps=$lt_postdeps_RC
19130 # The library search path used internally by the compiler when linking
19131 # a shared library.
19132 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19134 # Method to check whether dependent libraries are shared objects.
19135 deplibs_check_method=$lt_deplibs_check_method
19137 # Command to use when deplibs_check_method == file_magic.
19138 file_magic_cmd=$lt_file_magic_cmd
19140 # Flag that allows shared libraries with undefined symbols to be built.
19141 allow_undefined_flag=$lt_allow_undefined_flag_RC
19143 # Flag that forces no undefined symbols.
19144 no_undefined_flag=$lt_no_undefined_flag_RC
19146 # Commands used to finish a libtool library installation in a directory.
19147 finish_cmds=$lt_finish_cmds
19149 # Same as above, but a single script fragment to be evaled but not shown.
19150 finish_eval=$lt_finish_eval
19152 # Take the output of nm and produce a listing of raw symbols and C names.
19153 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19155 # Transform the output of nm in a proper C declaration
19156 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19158 # Transform the output of nm in a C name address pair
19159 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19161 # This is the shared library runtime path variable.
19162 runpath_var=$runpath_var
19164 # This is the shared library path variable.
19165 shlibpath_var=$shlibpath_var
19167 # Is shlibpath searched before the hard-coded library search path?
19168 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19170 # How to hardcode a shared library path into an executable.
19171 hardcode_action=$hardcode_action_RC
19173 # Whether we should hardcode library paths into libraries.
19174 hardcode_into_libs=$hardcode_into_libs
19176 # Flag to hardcode \$libdir into a binary during linking.
19177 # This must work even if \$libdir does not exist.
19178 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19180 # If ld is used when linking, flag to hardcode \$libdir into
19181 # a binary during linking. This must work even if \$libdir does
19182 # not exist.
19183 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19185 # Whether we need a single -rpath flag with a separated argument.
19186 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19188 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19189 # resulting binary.
19190 hardcode_direct=$hardcode_direct_RC
19192 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19193 # resulting binary.
19194 hardcode_minus_L=$hardcode_minus_L_RC
19196 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19197 # the resulting binary.
19198 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19200 # Set to yes if building a shared library automatically hardcodes DIR into the library
19201 # and all subsequent libraries and executables linked against it.
19202 hardcode_automatic=$hardcode_automatic_RC
19204 # Variables whose values should be saved in libtool wrapper scripts and
19205 # restored at relink time.
19206 variables_saved_for_relink="$variables_saved_for_relink"
19208 # Whether libtool must link a program against all its dependency libraries.
19209 link_all_deplibs=$link_all_deplibs_RC
19211 # Compile-time system search path for libraries
19212 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19214 # Run-time system search path for libraries
19215 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19217 # Fix the shell variable \$srcfile for the compiler.
19218 fix_srcfile_path=$lt_fix_srcfile_path
19220 # Set to yes if exported symbols are required.
19221 always_export_symbols=$always_export_symbols_RC
19223 # The commands to list exported symbols.
19224 export_symbols_cmds=$lt_export_symbols_cmds_RC
19226 # The commands to extract the exported symbol list from a shared archive.
19227 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19229 # Symbols that should not be listed in the preloaded symbols.
19230 exclude_expsyms=$lt_exclude_expsyms_RC
19232 # Symbols that must always be exported.
19233 include_expsyms=$lt_include_expsyms_RC
19235 # ### END LIBTOOL TAG CONFIG: $tagname
19237 __EOF__
19240 else
19241 # If there is no Makefile yet, we rely on a make rule to execute
19242 # `config.status --recheck' to rerun these tests and create the
19243 # libtool script then.
19244 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19245 if test -f "$ltmain_in"; then
19246 test -f Makefile && make "$ltmain"
19251 ac_ext=c
19252 ac_cpp='$CPP $CPPFLAGS'
19253 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19254 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19255 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19257 CC="$lt_save_CC"
19262 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19263 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19264 { (exit 1); exit 1; }; }
19266 esac
19268 # Append the new tag name to the list of available tags.
19269 if test -n "$tagname" ; then
19270 available_tags="$available_tags $tagname"
19273 done
19274 IFS="$lt_save_ifs"
19276 # Now substitute the updated list of available tags.
19277 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19278 mv "${ofile}T" "$ofile"
19279 chmod +x "$ofile"
19280 else
19281 rm -f "${ofile}T"
19282 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19283 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19284 { (exit 1); exit 1; }; }
19290 # This can be used to rebuild libtool when needed
19291 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19293 # Always use our own libtool.
19294 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19296 # Prevent multiple expansion
19318 # Checks for libraries.
19320 # Checks for header files.
19322 # Checks for typedefs, structures, and compiler characteristics.
19323 { echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5
19324 echo $ECHO_N "checking for stdbool.h that conforms to C99... $ECHO_C" >&6; }
19325 if test "${ac_cv_header_stdbool_h+set}" = set; then
19326 echo $ECHO_N "(cached) $ECHO_C" >&6
19327 else
19328 cat >conftest.$ac_ext <<_ACEOF
19329 /* confdefs.h. */
19330 _ACEOF
19331 cat confdefs.h >>conftest.$ac_ext
19332 cat >>conftest.$ac_ext <<_ACEOF
19333 /* end confdefs.h. */
19335 #include <stdbool.h>
19336 #ifndef bool
19337 "error: bool is not defined"
19338 #endif
19339 #ifndef false
19340 "error: false is not defined"
19341 #endif
19342 #if false
19343 "error: false is not 0"
19344 #endif
19345 #ifndef true
19346 "error: true is not defined"
19347 #endif
19348 #if true != 1
19349 "error: true is not 1"
19350 #endif
19351 #ifndef __bool_true_false_are_defined
19352 "error: __bool_true_false_are_defined is not defined"
19353 #endif
19355 struct s { _Bool s: 1; _Bool t; } s;
19357 char a[true == 1 ? 1 : -1];
19358 char b[false == 0 ? 1 : -1];
19359 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
19360 char d[(bool) 0.5 == true ? 1 : -1];
19361 bool e = &s;
19362 char f[(_Bool) 0.0 == false ? 1 : -1];
19363 char g[true];
19364 char h[sizeof (_Bool)];
19365 char i[sizeof s.t];
19366 enum { j = false, k = true, l = false * true, m = true * 256 };
19367 _Bool n[m];
19368 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
19369 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
19370 # if defined __xlc__ || defined __GNUC__
19371 /* Catch a bug in IBM AIX xlc compiler version 6.0.0.0
19372 reported by James Lemley on 2005-10-05; see
19373 http://lists.gnu.org/archive/html/bug-coreutils/2005-10/msg00086.html
19374 This test is not quite right, since xlc is allowed to
19375 reject this program, as the initializer for xlcbug is
19376 not one of the forms that C requires support for.
19377 However, doing the test right would require a runtime
19378 test, and that would make cross-compilation harder.
19379 Let us hope that IBM fixes the xlc bug, and also adds
19380 support for this kind of constant expression. In the
19381 meantime, this test will reject xlc, which is OK, since
19382 our stdbool.h substitute should suffice. We also test
19383 this with GCC, where it should work, to detect more
19384 quickly whether someone messes up the test in the
19385 future. */
19386 char digs[] = "0123456789";
19387 int xlcbug = 1 / (&(digs + 5)[-2 + (bool) 1] == &digs[4] ? 1 : -1);
19388 # endif
19389 /* Catch a bug in an HP-UX C compiler. See
19390 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
19391 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
19393 _Bool q = true;
19394 _Bool *pq = &q;
19397 main ()
19400 *pq |= q;
19401 *pq |= ! q;
19402 /* Refer to every declared value, to avoid compiler optimizations. */
19403 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
19404 + !m + !n + !o + !p + !q + !pq);
19407 return 0;
19409 _ACEOF
19410 rm -f conftest.$ac_objext
19411 if { (ac_try="$ac_compile"
19412 case "(($ac_try" in
19413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19414 *) ac_try_echo=$ac_try;;
19415 esac
19416 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19417 (eval "$ac_compile") 2>conftest.er1
19418 ac_status=$?
19419 grep -v '^ *+' conftest.er1 >conftest.err
19420 rm -f conftest.er1
19421 cat conftest.err >&5
19422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19423 (exit $ac_status); } && {
19424 test -z "$ac_c_werror_flag" ||
19425 test ! -s conftest.err
19426 } && test -s conftest.$ac_objext; then
19427 ac_cv_header_stdbool_h=yes
19428 else
19429 echo "$as_me: failed program was:" >&5
19430 sed 's/^/| /' conftest.$ac_ext >&5
19432 ac_cv_header_stdbool_h=no
19435 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19437 { echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5
19438 echo "${ECHO_T}$ac_cv_header_stdbool_h" >&6; }
19439 { echo "$as_me:$LINENO: checking for _Bool" >&5
19440 echo $ECHO_N "checking for _Bool... $ECHO_C" >&6; }
19441 if test "${ac_cv_type__Bool+set}" = set; then
19442 echo $ECHO_N "(cached) $ECHO_C" >&6
19443 else
19444 cat >conftest.$ac_ext <<_ACEOF
19445 /* confdefs.h. */
19446 _ACEOF
19447 cat confdefs.h >>conftest.$ac_ext
19448 cat >>conftest.$ac_ext <<_ACEOF
19449 /* end confdefs.h. */
19450 $ac_includes_default
19451 typedef _Bool ac__type_new_;
19453 main ()
19455 if ((ac__type_new_ *) 0)
19456 return 0;
19457 if (sizeof (ac__type_new_))
19458 return 0;
19460 return 0;
19462 _ACEOF
19463 rm -f conftest.$ac_objext
19464 if { (ac_try="$ac_compile"
19465 case "(($ac_try" in
19466 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19467 *) ac_try_echo=$ac_try;;
19468 esac
19469 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19470 (eval "$ac_compile") 2>conftest.er1
19471 ac_status=$?
19472 grep -v '^ *+' conftest.er1 >conftest.err
19473 rm -f conftest.er1
19474 cat conftest.err >&5
19475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19476 (exit $ac_status); } && {
19477 test -z "$ac_c_werror_flag" ||
19478 test ! -s conftest.err
19479 } && test -s conftest.$ac_objext; then
19480 ac_cv_type__Bool=yes
19481 else
19482 echo "$as_me: failed program was:" >&5
19483 sed 's/^/| /' conftest.$ac_ext >&5
19485 ac_cv_type__Bool=no
19488 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19490 { echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5
19491 echo "${ECHO_T}$ac_cv_type__Bool" >&6; }
19492 if test $ac_cv_type__Bool = yes; then
19494 cat >>confdefs.h <<_ACEOF
19495 #define HAVE__BOOL 1
19496 _ACEOF
19501 if test $ac_cv_header_stdbool_h = yes; then
19503 cat >>confdefs.h <<\_ACEOF
19504 #define HAVE_STDBOOL_H 1
19505 _ACEOF
19509 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
19510 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
19511 if test "${ac_cv_c_const+set}" = set; then
19512 echo $ECHO_N "(cached) $ECHO_C" >&6
19513 else
19514 cat >conftest.$ac_ext <<_ACEOF
19515 /* confdefs.h. */
19516 _ACEOF
19517 cat confdefs.h >>conftest.$ac_ext
19518 cat >>conftest.$ac_ext <<_ACEOF
19519 /* end confdefs.h. */
19522 main ()
19524 /* FIXME: Include the comments suggested by Paul. */
19525 #ifndef __cplusplus
19526 /* Ultrix mips cc rejects this. */
19527 typedef int charset[2];
19528 const charset cs;
19529 /* SunOS 4.1.1 cc rejects this. */
19530 char const *const *pcpcc;
19531 char **ppc;
19532 /* NEC SVR4.0.2 mips cc rejects this. */
19533 struct point {int x, y;};
19534 static struct point const zero = {0,0};
19535 /* AIX XL C 1.02.0.0 rejects this.
19536 It does not let you subtract one const X* pointer from another in
19537 an arm of an if-expression whose if-part is not a constant
19538 expression */
19539 const char *g = "string";
19540 pcpcc = &g + (g ? g-g : 0);
19541 /* HPUX 7.0 cc rejects these. */
19542 ++pcpcc;
19543 ppc = (char**) pcpcc;
19544 pcpcc = (char const *const *) ppc;
19545 { /* SCO 3.2v4 cc rejects this. */
19546 char *t;
19547 char const *s = 0 ? (char *) 0 : (char const *) 0;
19549 *t++ = 0;
19550 if (s) return 0;
19552 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
19553 int x[] = {25, 17};
19554 const int *foo = &x[0];
19555 ++foo;
19557 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
19558 typedef const int *iptr;
19559 iptr p = 0;
19560 ++p;
19562 { /* AIX XL C 1.02.0.0 rejects this saying
19563 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
19564 struct s { int j; const int *ap[3]; };
19565 struct s *b; b->j = 5;
19567 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
19568 const int foo = 10;
19569 if (!foo) return 0;
19571 return !cs[0] && !zero.x;
19572 #endif
19575 return 0;
19577 _ACEOF
19578 rm -f conftest.$ac_objext
19579 if { (ac_try="$ac_compile"
19580 case "(($ac_try" in
19581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19582 *) ac_try_echo=$ac_try;;
19583 esac
19584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19585 (eval "$ac_compile") 2>conftest.er1
19586 ac_status=$?
19587 grep -v '^ *+' conftest.er1 >conftest.err
19588 rm -f conftest.er1
19589 cat conftest.err >&5
19590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19591 (exit $ac_status); } && {
19592 test -z "$ac_c_werror_flag" ||
19593 test ! -s conftest.err
19594 } && test -s conftest.$ac_objext; then
19595 ac_cv_c_const=yes
19596 else
19597 echo "$as_me: failed program was:" >&5
19598 sed 's/^/| /' conftest.$ac_ext >&5
19600 ac_cv_c_const=no
19603 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19605 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
19606 echo "${ECHO_T}$ac_cv_c_const" >&6; }
19607 if test $ac_cv_c_const = no; then
19609 cat >>confdefs.h <<\_ACEOF
19610 #define const
19611 _ACEOF
19616 # Checks for library functions.
19617 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
19618 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
19619 if test "${ac_cv_header_stdc+set}" = set; then
19620 echo $ECHO_N "(cached) $ECHO_C" >&6
19621 else
19622 cat >conftest.$ac_ext <<_ACEOF
19623 /* confdefs.h. */
19624 _ACEOF
19625 cat confdefs.h >>conftest.$ac_ext
19626 cat >>conftest.$ac_ext <<_ACEOF
19627 /* end confdefs.h. */
19628 #include <stdlib.h>
19629 #include <stdarg.h>
19630 #include <string.h>
19631 #include <float.h>
19634 main ()
19638 return 0;
19640 _ACEOF
19641 rm -f conftest.$ac_objext
19642 if { (ac_try="$ac_compile"
19643 case "(($ac_try" in
19644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19645 *) ac_try_echo=$ac_try;;
19646 esac
19647 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19648 (eval "$ac_compile") 2>conftest.er1
19649 ac_status=$?
19650 grep -v '^ *+' conftest.er1 >conftest.err
19651 rm -f conftest.er1
19652 cat conftest.err >&5
19653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19654 (exit $ac_status); } && {
19655 test -z "$ac_c_werror_flag" ||
19656 test ! -s conftest.err
19657 } && test -s conftest.$ac_objext; then
19658 ac_cv_header_stdc=yes
19659 else
19660 echo "$as_me: failed program was:" >&5
19661 sed 's/^/| /' conftest.$ac_ext >&5
19663 ac_cv_header_stdc=no
19666 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19668 if test $ac_cv_header_stdc = yes; then
19669 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
19670 cat >conftest.$ac_ext <<_ACEOF
19671 /* confdefs.h. */
19672 _ACEOF
19673 cat confdefs.h >>conftest.$ac_ext
19674 cat >>conftest.$ac_ext <<_ACEOF
19675 /* end confdefs.h. */
19676 #include <string.h>
19678 _ACEOF
19679 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19680 $EGREP "memchr" >/dev/null 2>&1; then
19682 else
19683 ac_cv_header_stdc=no
19685 rm -f conftest*
19689 if test $ac_cv_header_stdc = yes; then
19690 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
19691 cat >conftest.$ac_ext <<_ACEOF
19692 /* confdefs.h. */
19693 _ACEOF
19694 cat confdefs.h >>conftest.$ac_ext
19695 cat >>conftest.$ac_ext <<_ACEOF
19696 /* end confdefs.h. */
19697 #include <stdlib.h>
19699 _ACEOF
19700 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19701 $EGREP "free" >/dev/null 2>&1; then
19703 else
19704 ac_cv_header_stdc=no
19706 rm -f conftest*
19710 if test $ac_cv_header_stdc = yes; then
19711 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
19712 if test "$cross_compiling" = yes; then
19714 else
19715 cat >conftest.$ac_ext <<_ACEOF
19716 /* confdefs.h. */
19717 _ACEOF
19718 cat confdefs.h >>conftest.$ac_ext
19719 cat >>conftest.$ac_ext <<_ACEOF
19720 /* end confdefs.h. */
19721 #include <ctype.h>
19722 #include <stdlib.h>
19723 #if ((' ' & 0x0FF) == 0x020)
19724 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
19725 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
19726 #else
19727 # define ISLOWER(c) \
19728 (('a' <= (c) && (c) <= 'i') \
19729 || ('j' <= (c) && (c) <= 'r') \
19730 || ('s' <= (c) && (c) <= 'z'))
19731 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
19732 #endif
19734 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
19736 main ()
19738 int i;
19739 for (i = 0; i < 256; i++)
19740 if (XOR (islower (i), ISLOWER (i))
19741 || toupper (i) != TOUPPER (i))
19742 return 2;
19743 return 0;
19745 _ACEOF
19746 rm -f conftest$ac_exeext
19747 if { (ac_try="$ac_link"
19748 case "(($ac_try" in
19749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19750 *) ac_try_echo=$ac_try;;
19751 esac
19752 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19753 (eval "$ac_link") 2>&5
19754 ac_status=$?
19755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19756 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19757 { (case "(($ac_try" in
19758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19759 *) ac_try_echo=$ac_try;;
19760 esac
19761 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19762 (eval "$ac_try") 2>&5
19763 ac_status=$?
19764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19765 (exit $ac_status); }; }; then
19767 else
19768 echo "$as_me: program exited with status $ac_status" >&5
19769 echo "$as_me: failed program was:" >&5
19770 sed 's/^/| /' conftest.$ac_ext >&5
19772 ( exit $ac_status )
19773 ac_cv_header_stdc=no
19775 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19781 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
19782 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
19783 if test $ac_cv_header_stdc = yes; then
19785 cat >>confdefs.h <<\_ACEOF
19786 #define STDC_HEADERS 1
19787 _ACEOF
19793 for ac_func in memset regcomp
19795 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19796 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19797 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19798 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19799 echo $ECHO_N "(cached) $ECHO_C" >&6
19800 else
19801 cat >conftest.$ac_ext <<_ACEOF
19802 /* confdefs.h. */
19803 _ACEOF
19804 cat confdefs.h >>conftest.$ac_ext
19805 cat >>conftest.$ac_ext <<_ACEOF
19806 /* end confdefs.h. */
19807 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19808 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19809 #define $ac_func innocuous_$ac_func
19811 /* System header to define __stub macros and hopefully few prototypes,
19812 which can conflict with char $ac_func (); below.
19813 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19814 <limits.h> exists even on freestanding compilers. */
19816 #ifdef __STDC__
19817 # include <limits.h>
19818 #else
19819 # include <assert.h>
19820 #endif
19822 #undef $ac_func
19824 /* Override any GCC internal prototype to avoid an error.
19825 Use char because int might match the return type of a GCC
19826 builtin and then its argument prototype would still apply. */
19827 #ifdef __cplusplus
19828 extern "C"
19829 #endif
19830 char $ac_func ();
19831 /* The GNU C library defines this for functions which it implements
19832 to always fail with ENOSYS. Some functions are actually named
19833 something starting with __ and the normal name is an alias. */
19834 #if defined __stub_$ac_func || defined __stub___$ac_func
19835 choke me
19836 #endif
19839 main ()
19841 return $ac_func ();
19843 return 0;
19845 _ACEOF
19846 rm -f conftest.$ac_objext conftest$ac_exeext
19847 if { (ac_try="$ac_link"
19848 case "(($ac_try" in
19849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19850 *) ac_try_echo=$ac_try;;
19851 esac
19852 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19853 (eval "$ac_link") 2>conftest.er1
19854 ac_status=$?
19855 grep -v '^ *+' conftest.er1 >conftest.err
19856 rm -f conftest.er1
19857 cat conftest.err >&5
19858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19859 (exit $ac_status); } && {
19860 test -z "$ac_c_werror_flag" ||
19861 test ! -s conftest.err
19862 } && test -s conftest$ac_exeext &&
19863 $as_test_x conftest$ac_exeext; then
19864 eval "$as_ac_var=yes"
19865 else
19866 echo "$as_me: failed program was:" >&5
19867 sed 's/^/| /' conftest.$ac_ext >&5
19869 eval "$as_ac_var=no"
19872 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19873 conftest$ac_exeext conftest.$ac_ext
19875 ac_res=`eval echo '${'$as_ac_var'}'`
19876 { echo "$as_me:$LINENO: result: $ac_res" >&5
19877 echo "${ECHO_T}$ac_res" >&6; }
19878 if test `eval echo '${'$as_ac_var'}'` = yes; then
19879 cat >>confdefs.h <<_ACEOF
19880 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19881 _ACEOF
19884 done
19887 ac_config_files="$ac_config_files libconfigfile.pc Makefile src/Makefile"
19889 cat >confcache <<\_ACEOF
19890 # This file is a shell script that caches the results of configure
19891 # tests run on this system so they can be shared between configure
19892 # scripts and configure runs, see configure's option --config-cache.
19893 # It is not useful on other systems. If it contains results you don't
19894 # want to keep, you may remove or edit it.
19896 # config.status only pays attention to the cache file if you give it
19897 # the --recheck option to rerun configure.
19899 # `ac_cv_env_foo' variables (set or unset) will be overridden when
19900 # loading this file, other *unset* `ac_cv_foo' will be assigned the
19901 # following values.
19903 _ACEOF
19905 # The following way of writing the cache mishandles newlines in values,
19906 # but we know of no workaround that is simple, portable, and efficient.
19907 # So, we kill variables containing newlines.
19908 # Ultrix sh set writes to stderr and can't be redirected directly,
19909 # and sets the high bit in the cache file unless we assign to the vars.
19911 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
19912 eval ac_val=\$$ac_var
19913 case $ac_val in #(
19914 *${as_nl}*)
19915 case $ac_var in #(
19916 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
19917 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
19918 esac
19919 case $ac_var in #(
19920 _ | IFS | as_nl) ;; #(
19921 *) $as_unset $ac_var ;;
19922 esac ;;
19923 esac
19924 done
19926 (set) 2>&1 |
19927 case $as_nl`(ac_space=' '; set) 2>&1` in #(
19928 *${as_nl}ac_space=\ *)
19929 # `set' does not quote correctly, so add quotes (double-quote
19930 # substitution turns \\\\ into \\, and sed turns \\ into \).
19931 sed -n \
19932 "s/'/'\\\\''/g;
19933 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19934 ;; #(
19936 # `set' quotes correctly as required by POSIX, so do not add quotes.
19937 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
19939 esac |
19940 sort
19942 sed '
19943 /^ac_cv_env_/b end
19944 t clear
19945 :clear
19946 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
19947 t end
19948 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19949 :end' >>confcache
19950 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
19951 if test -w "$cache_file"; then
19952 test "x$cache_file" != "x/dev/null" &&
19953 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
19954 echo "$as_me: updating cache $cache_file" >&6;}
19955 cat confcache >$cache_file
19956 else
19957 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
19958 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
19961 rm -f confcache
19963 test "x$prefix" = xNONE && prefix=$ac_default_prefix
19964 # Let make expand exec_prefix.
19965 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19967 DEFS=-DHAVE_CONFIG_H
19969 ac_libobjs=
19970 ac_ltlibobjs=
19971 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
19972 # 1. Remove the extension, and $U if already installed.
19973 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
19974 ac_i=`echo "$ac_i" | sed "$ac_script"`
19975 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
19976 # will be set to the directory where LIBOBJS objects are built.
19977 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
19978 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
19979 done
19980 LIBOBJS=$ac_libobjs
19982 LTLIBOBJS=$ac_ltlibobjs
19985 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
19986 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
19987 Usually this means the macro was only invoked conditionally." >&5
19988 echo "$as_me: error: conditional \"AMDEP\" was never defined.
19989 Usually this means the macro was only invoked conditionally." >&2;}
19990 { (exit 1); exit 1; }; }
19992 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
19993 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
19994 Usually this means the macro was only invoked conditionally." >&5
19995 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
19996 Usually this means the macro was only invoked conditionally." >&2;}
19997 { (exit 1); exit 1; }; }
19999 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
20000 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
20001 Usually this means the macro was only invoked conditionally." >&5
20002 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
20003 Usually this means the macro was only invoked conditionally." >&2;}
20004 { (exit 1); exit 1; }; }
20007 : ${CONFIG_STATUS=./config.status}
20008 ac_clean_files_save=$ac_clean_files
20009 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
20010 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
20011 echo "$as_me: creating $CONFIG_STATUS" >&6;}
20012 cat >$CONFIG_STATUS <<_ACEOF
20013 #! $SHELL
20014 # Generated by $as_me.
20015 # Run this file to recreate the current configuration.
20016 # Compiler output produced by configure, useful for debugging
20017 # configure, is in config.log if it exists.
20019 debug=false
20020 ac_cs_recheck=false
20021 ac_cs_silent=false
20022 SHELL=\${CONFIG_SHELL-$SHELL}
20023 _ACEOF
20025 cat >>$CONFIG_STATUS <<\_ACEOF
20026 ## --------------------- ##
20027 ## M4sh Initialization. ##
20028 ## --------------------- ##
20030 # Be more Bourne compatible
20031 DUALCASE=1; export DUALCASE # for MKS sh
20032 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
20033 emulate sh
20034 NULLCMD=:
20035 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20036 # is contrary to our usage. Disable this feature.
20037 alias -g '${1+"$@"}'='"$@"'
20038 setopt NO_GLOB_SUBST
20039 else
20040 case `(set -o) 2>/dev/null` in
20041 *posix*) set -o posix ;;
20042 esac
20049 # PATH needs CR
20050 # Avoid depending upon Character Ranges.
20051 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20052 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20053 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20054 as_cr_digits='0123456789'
20055 as_cr_alnum=$as_cr_Letters$as_cr_digits
20057 # The user is always right.
20058 if test "${PATH_SEPARATOR+set}" != set; then
20059 echo "#! /bin/sh" >conf$$.sh
20060 echo "exit 0" >>conf$$.sh
20061 chmod +x conf$$.sh
20062 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
20063 PATH_SEPARATOR=';'
20064 else
20065 PATH_SEPARATOR=:
20067 rm -f conf$$.sh
20070 # Support unset when possible.
20071 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
20072 as_unset=unset
20073 else
20074 as_unset=false
20078 # IFS
20079 # We need space, tab and new line, in precisely that order. Quoting is
20080 # there to prevent editors from complaining about space-tab.
20081 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
20082 # splitting by setting IFS to empty value.)
20083 as_nl='
20085 IFS=" "" $as_nl"
20087 # Find who we are. Look in the path if we contain no directory separator.
20088 case $0 in
20089 *[\\/]* ) as_myself=$0 ;;
20090 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20091 for as_dir in $PATH
20093 IFS=$as_save_IFS
20094 test -z "$as_dir" && as_dir=.
20095 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20096 done
20097 IFS=$as_save_IFS
20100 esac
20101 # We did not find ourselves, most probably we were run as `sh COMMAND'
20102 # in which case we are not to be found in the path.
20103 if test "x$as_myself" = x; then
20104 as_myself=$0
20106 if test ! -f "$as_myself"; then
20107 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
20108 { (exit 1); exit 1; }
20111 # Work around bugs in pre-3.0 UWIN ksh.
20112 for as_var in ENV MAIL MAILPATH
20113 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
20114 done
20115 PS1='$ '
20116 PS2='> '
20117 PS4='+ '
20119 # NLS nuisances.
20120 for as_var in \
20121 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
20122 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
20123 LC_TELEPHONE LC_TIME
20125 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
20126 eval $as_var=C; export $as_var
20127 else
20128 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
20130 done
20132 # Required to use basename.
20133 if expr a : '\(a\)' >/dev/null 2>&1 &&
20134 test "X`expr 00001 : '.*\(...\)'`" = X001; then
20135 as_expr=expr
20136 else
20137 as_expr=false
20140 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
20141 as_basename=basename
20142 else
20143 as_basename=false
20147 # Name of the executable.
20148 as_me=`$as_basename -- "$0" ||
20149 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20150 X"$0" : 'X\(//\)$' \| \
20151 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
20152 echo X/"$0" |
20153 sed '/^.*\/\([^/][^/]*\)\/*$/{
20154 s//\1/
20157 /^X\/\(\/\/\)$/{
20158 s//\1/
20161 /^X\/\(\/\).*/{
20162 s//\1/
20165 s/.*/./; q'`
20167 # CDPATH.
20168 $as_unset CDPATH
20172 as_lineno_1=$LINENO
20173 as_lineno_2=$LINENO
20174 test "x$as_lineno_1" != "x$as_lineno_2" &&
20175 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
20177 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
20178 # uniformly replaced by the line number. The first 'sed' inserts a
20179 # line-number line after each line using $LINENO; the second 'sed'
20180 # does the real work. The second script uses 'N' to pair each
20181 # line-number line with the line containing $LINENO, and appends
20182 # trailing '-' during substitution so that $LINENO is not a special
20183 # case at line end.
20184 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
20185 # scripts with optimization help from Paolo Bonzini. Blame Lee
20186 # E. McMahon (1931-1989) for sed's syntax. :-)
20187 sed -n '
20189 /[$]LINENO/=
20190 ' <$as_myself |
20191 sed '
20192 s/[$]LINENO.*/&-/
20193 t lineno
20195 :lineno
20197 :loop
20198 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
20199 t loop
20200 s/-\n.*//
20201 ' >$as_me.lineno &&
20202 chmod +x "$as_me.lineno" ||
20203 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
20204 { (exit 1); exit 1; }; }
20206 # Don't try to exec as it changes $[0], causing all sort of problems
20207 # (the dirname of $[0] is not the place where we might find the
20208 # original and so on. Autoconf is especially sensitive to this).
20209 . "./$as_me.lineno"
20210 # Exit status is that of the last command.
20211 exit
20215 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
20216 as_dirname=dirname
20217 else
20218 as_dirname=false
20221 ECHO_C= ECHO_N= ECHO_T=
20222 case `echo -n x` in
20223 -n*)
20224 case `echo 'x\c'` in
20225 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
20226 *) ECHO_C='\c';;
20227 esac;;
20229 ECHO_N='-n';;
20230 esac
20232 if expr a : '\(a\)' >/dev/null 2>&1 &&
20233 test "X`expr 00001 : '.*\(...\)'`" = X001; then
20234 as_expr=expr
20235 else
20236 as_expr=false
20239 rm -f conf$$ conf$$.exe conf$$.file
20240 if test -d conf$$.dir; then
20241 rm -f conf$$.dir/conf$$.file
20242 else
20243 rm -f conf$$.dir
20244 mkdir conf$$.dir
20246 echo >conf$$.file
20247 if ln -s conf$$.file conf$$ 2>/dev/null; then
20248 as_ln_s='ln -s'
20249 # ... but there are two gotchas:
20250 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
20251 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
20252 # In both cases, we have to default to `cp -p'.
20253 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
20254 as_ln_s='cp -p'
20255 elif ln conf$$.file conf$$ 2>/dev/null; then
20256 as_ln_s=ln
20257 else
20258 as_ln_s='cp -p'
20260 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
20261 rmdir conf$$.dir 2>/dev/null
20263 if mkdir -p . 2>/dev/null; then
20264 as_mkdir_p=:
20265 else
20266 test -d ./-p && rmdir ./-p
20267 as_mkdir_p=false
20270 if test -x / >/dev/null 2>&1; then
20271 as_test_x='test -x'
20272 else
20273 if ls -dL / >/dev/null 2>&1; then
20274 as_ls_L_option=L
20275 else
20276 as_ls_L_option=
20278 as_test_x='
20279 eval sh -c '\''
20280 if test -d "$1"; then
20281 test -d "$1/.";
20282 else
20283 case $1 in
20284 -*)set "./$1";;
20285 esac;
20286 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
20287 ???[sx]*):;;*)false;;esac;fi
20288 '\'' sh
20291 as_executable_p=$as_test_x
20293 # Sed expression to map a string onto a valid CPP name.
20294 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20296 # Sed expression to map a string onto a valid variable name.
20297 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20300 exec 6>&1
20302 # Save the log message, to keep $[0] and so on meaningful, and to
20303 # report actual input values of CONFIG_FILES etc. instead of their
20304 # values after options handling.
20305 ac_log="
20306 This file was extended by libconfigfile $as_me 1.0, which was
20307 generated by GNU Autoconf 2.61. Invocation command line was
20309 CONFIG_FILES = $CONFIG_FILES
20310 CONFIG_HEADERS = $CONFIG_HEADERS
20311 CONFIG_LINKS = $CONFIG_LINKS
20312 CONFIG_COMMANDS = $CONFIG_COMMANDS
20313 $ $0 $@
20315 on `(hostname || uname -n) 2>/dev/null | sed 1q`
20318 _ACEOF
20320 cat >>$CONFIG_STATUS <<_ACEOF
20321 # Files that config.status was made for.
20322 config_files="$ac_config_files"
20323 config_headers="$ac_config_headers"
20324 config_commands="$ac_config_commands"
20326 _ACEOF
20328 cat >>$CONFIG_STATUS <<\_ACEOF
20329 ac_cs_usage="\
20330 \`$as_me' instantiates files from templates according to the
20331 current configuration.
20333 Usage: $0 [OPTIONS] [FILE]...
20335 -h, --help print this help, then exit
20336 -V, --version print version number and configuration settings, then exit
20337 -q, --quiet do not print progress messages
20338 -d, --debug don't remove temporary files
20339 --recheck update $as_me by reconfiguring in the same conditions
20340 --file=FILE[:TEMPLATE]
20341 instantiate the configuration file FILE
20342 --header=FILE[:TEMPLATE]
20343 instantiate the configuration header FILE
20345 Configuration files:
20346 $config_files
20348 Configuration headers:
20349 $config_headers
20351 Configuration commands:
20352 $config_commands
20354 Report bugs to <bug-autoconf@gnu.org>."
20356 _ACEOF
20357 cat >>$CONFIG_STATUS <<_ACEOF
20358 ac_cs_version="\\
20359 libconfigfile config.status 1.0
20360 configured by $0, generated by GNU Autoconf 2.61,
20361 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
20363 Copyright (C) 2006 Free Software Foundation, Inc.
20364 This config.status script is free software; the Free Software Foundation
20365 gives unlimited permission to copy, distribute and modify it."
20367 ac_pwd='$ac_pwd'
20368 srcdir='$srcdir'
20369 INSTALL='$INSTALL'
20370 MKDIR_P='$MKDIR_P'
20371 _ACEOF
20373 cat >>$CONFIG_STATUS <<\_ACEOF
20374 # If no file are specified by the user, then we need to provide default
20375 # value. By we need to know if files were specified by the user.
20376 ac_need_defaults=:
20377 while test $# != 0
20379 case $1 in
20380 --*=*)
20381 ac_option=`expr "X$1" : 'X\([^=]*\)='`
20382 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
20383 ac_shift=:
20386 ac_option=$1
20387 ac_optarg=$2
20388 ac_shift=shift
20390 esac
20392 case $ac_option in
20393 # Handling of the options.
20394 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20395 ac_cs_recheck=: ;;
20396 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
20397 echo "$ac_cs_version"; exit ;;
20398 --debug | --debu | --deb | --de | --d | -d )
20399 debug=: ;;
20400 --file | --fil | --fi | --f )
20401 $ac_shift
20402 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
20403 ac_need_defaults=false;;
20404 --header | --heade | --head | --hea )
20405 $ac_shift
20406 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
20407 ac_need_defaults=false;;
20408 --he | --h)
20409 # Conflict between --help and --header
20410 { echo "$as_me: error: ambiguous option: $1
20411 Try \`$0 --help' for more information." >&2
20412 { (exit 1); exit 1; }; };;
20413 --help | --hel | -h )
20414 echo "$ac_cs_usage"; exit ;;
20415 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20416 | -silent | --silent | --silen | --sile | --sil | --si | --s)
20417 ac_cs_silent=: ;;
20419 # This is an error.
20420 -*) { echo "$as_me: error: unrecognized option: $1
20421 Try \`$0 --help' for more information." >&2
20422 { (exit 1); exit 1; }; } ;;
20424 *) ac_config_targets="$ac_config_targets $1"
20425 ac_need_defaults=false ;;
20427 esac
20428 shift
20429 done
20431 ac_configure_extra_args=
20433 if $ac_cs_silent; then
20434 exec 6>/dev/null
20435 ac_configure_extra_args="$ac_configure_extra_args --silent"
20438 _ACEOF
20439 cat >>$CONFIG_STATUS <<_ACEOF
20440 if \$ac_cs_recheck; then
20441 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
20442 CONFIG_SHELL=$SHELL
20443 export CONFIG_SHELL
20444 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20447 _ACEOF
20448 cat >>$CONFIG_STATUS <<\_ACEOF
20449 exec 5>>config.log
20451 echo
20452 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20453 ## Running $as_me. ##
20454 _ASBOX
20455 echo "$ac_log"
20456 } >&5
20458 _ACEOF
20459 cat >>$CONFIG_STATUS <<_ACEOF
20461 # INIT-COMMANDS
20463 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
20465 _ACEOF
20467 cat >>$CONFIG_STATUS <<\_ACEOF
20469 # Handling of arguments.
20470 for ac_config_target in $ac_config_targets
20472 case $ac_config_target in
20473 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
20474 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
20475 "libconfigfile.pc") CONFIG_FILES="$CONFIG_FILES libconfigfile.pc" ;;
20476 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
20477 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
20479 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
20480 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
20481 { (exit 1); exit 1; }; };;
20482 esac
20483 done
20486 # If the user did not use the arguments to specify the items to instantiate,
20487 # then the envvar interface is used. Set only those that are not.
20488 # We use the long form for the default assignment because of an extremely
20489 # bizarre bug on SunOS 4.1.3.
20490 if $ac_need_defaults; then
20491 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
20492 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
20493 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
20496 # Have a temporary directory for convenience. Make it in the build tree
20497 # simply because there is no reason against having it here, and in addition,
20498 # creating and moving files from /tmp can sometimes cause problems.
20499 # Hook for its removal unless debugging.
20500 # Note that there is a small window in which the directory will not be cleaned:
20501 # after its creation but before its name has been assigned to `$tmp'.
20502 $debug ||
20504 tmp=
20505 trap 'exit_status=$?
20506 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
20508 trap '{ (exit 1); exit 1; }' 1 2 13 15
20510 # Create a (secure) tmp directory for tmp files.
20513 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
20514 test -n "$tmp" && test -d "$tmp"
20515 } ||
20517 tmp=./conf$$-$RANDOM
20518 (umask 077 && mkdir "$tmp")
20519 } ||
20521 echo "$me: cannot create a temporary directory in ." >&2
20522 { (exit 1); exit 1; }
20526 # Set up the sed scripts for CONFIG_FILES section.
20529 # No need to generate the scripts if there are no CONFIG_FILES.
20530 # This happens for instance when ./config.status config.h
20531 if test -n "$CONFIG_FILES"; then
20533 _ACEOF
20537 ac_delim='%!_!# '
20538 for ac_last_try in false false false false false :; do
20539 cat >conf$$subs.sed <<_ACEOF
20540 SHELL!$SHELL$ac_delim
20541 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
20542 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
20543 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
20544 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
20545 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
20546 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
20547 exec_prefix!$exec_prefix$ac_delim
20548 prefix!$prefix$ac_delim
20549 program_transform_name!$program_transform_name$ac_delim
20550 bindir!$bindir$ac_delim
20551 sbindir!$sbindir$ac_delim
20552 libexecdir!$libexecdir$ac_delim
20553 datarootdir!$datarootdir$ac_delim
20554 datadir!$datadir$ac_delim
20555 sysconfdir!$sysconfdir$ac_delim
20556 sharedstatedir!$sharedstatedir$ac_delim
20557 localstatedir!$localstatedir$ac_delim
20558 includedir!$includedir$ac_delim
20559 oldincludedir!$oldincludedir$ac_delim
20560 docdir!$docdir$ac_delim
20561 infodir!$infodir$ac_delim
20562 htmldir!$htmldir$ac_delim
20563 dvidir!$dvidir$ac_delim
20564 pdfdir!$pdfdir$ac_delim
20565 psdir!$psdir$ac_delim
20566 libdir!$libdir$ac_delim
20567 localedir!$localedir$ac_delim
20568 mandir!$mandir$ac_delim
20569 DEFS!$DEFS$ac_delim
20570 ECHO_C!$ECHO_C$ac_delim
20571 ECHO_N!$ECHO_N$ac_delim
20572 ECHO_T!$ECHO_T$ac_delim
20573 LIBS!$LIBS$ac_delim
20574 build_alias!$build_alias$ac_delim
20575 host_alias!$host_alias$ac_delim
20576 target_alias!$target_alias$ac_delim
20577 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
20578 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
20579 INSTALL_DATA!$INSTALL_DATA$ac_delim
20580 am__isrc!$am__isrc$ac_delim
20581 CYGPATH_W!$CYGPATH_W$ac_delim
20582 PACKAGE!$PACKAGE$ac_delim
20583 VERSION!$VERSION$ac_delim
20584 ACLOCAL!$ACLOCAL$ac_delim
20585 AUTOCONF!$AUTOCONF$ac_delim
20586 AUTOMAKE!$AUTOMAKE$ac_delim
20587 AUTOHEADER!$AUTOHEADER$ac_delim
20588 MAKEINFO!$MAKEINFO$ac_delim
20589 install_sh!$install_sh$ac_delim
20590 STRIP!$STRIP$ac_delim
20591 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
20592 mkdir_p!$mkdir_p$ac_delim
20593 AWK!$AWK$ac_delim
20594 SET_MAKE!$SET_MAKE$ac_delim
20595 am__leading_dot!$am__leading_dot$ac_delim
20596 AMTAR!$AMTAR$ac_delim
20597 am__tar!$am__tar$ac_delim
20598 am__untar!$am__untar$ac_delim
20599 CXX!$CXX$ac_delim
20600 CXXFLAGS!$CXXFLAGS$ac_delim
20601 LDFLAGS!$LDFLAGS$ac_delim
20602 CPPFLAGS!$CPPFLAGS$ac_delim
20603 ac_ct_CXX!$ac_ct_CXX$ac_delim
20604 EXEEXT!$EXEEXT$ac_delim
20605 OBJEXT!$OBJEXT$ac_delim
20606 DEPDIR!$DEPDIR$ac_delim
20607 am__include!$am__include$ac_delim
20608 am__quote!$am__quote$ac_delim
20609 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
20610 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
20611 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
20612 CXXDEPMODE!$CXXDEPMODE$ac_delim
20613 am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
20614 am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
20615 CC!$CC$ac_delim
20616 CFLAGS!$CFLAGS$ac_delim
20617 ac_ct_CC!$ac_ct_CC$ac_delim
20618 CCDEPMODE!$CCDEPMODE$ac_delim
20619 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
20620 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
20621 build!$build$ac_delim
20622 build_cpu!$build_cpu$ac_delim
20623 build_vendor!$build_vendor$ac_delim
20624 build_os!$build_os$ac_delim
20625 host!$host$ac_delim
20626 host_cpu!$host_cpu$ac_delim
20627 host_vendor!$host_vendor$ac_delim
20628 host_os!$host_os$ac_delim
20629 SED!$SED$ac_delim
20630 GREP!$GREP$ac_delim
20631 EGREP!$EGREP$ac_delim
20632 LN_S!$LN_S$ac_delim
20633 ECHO!$ECHO$ac_delim
20634 AR!$AR$ac_delim
20635 RANLIB!$RANLIB$ac_delim
20636 CPP!$CPP$ac_delim
20637 _ACEOF
20639 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
20640 break
20641 elif $ac_last_try; then
20642 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
20643 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
20644 { (exit 1); exit 1; }; }
20645 else
20646 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20648 done
20650 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
20651 if test -n "$ac_eof"; then
20652 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
20653 ac_eof=`expr $ac_eof + 1`
20656 cat >>$CONFIG_STATUS <<_ACEOF
20657 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
20658 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20659 _ACEOF
20660 sed '
20661 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
20662 s/^/s,@/; s/!/@,|#_!!_#|/
20665 s/'"$ac_delim"'$/,g/; t
20666 s/$/\\/; p
20667 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
20668 ' >>$CONFIG_STATUS <conf$$subs.sed
20669 rm -f conf$$subs.sed
20670 cat >>$CONFIG_STATUS <<_ACEOF
20671 CEOF$ac_eof
20672 _ACEOF
20675 ac_delim='%!_!# '
20676 for ac_last_try in false false false false false :; do
20677 cat >conf$$subs.sed <<_ACEOF
20678 CXXCPP!$CXXCPP$ac_delim
20679 F77!$F77$ac_delim
20680 FFLAGS!$FFLAGS$ac_delim
20681 ac_ct_F77!$ac_ct_F77$ac_delim
20682 LIBTOOL!$LIBTOOL$ac_delim
20683 LIBOBJS!$LIBOBJS$ac_delim
20684 LTLIBOBJS!$LTLIBOBJS$ac_delim
20685 _ACEOF
20687 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 7; then
20688 break
20689 elif $ac_last_try; then
20690 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
20691 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
20692 { (exit 1); exit 1; }; }
20693 else
20694 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20696 done
20698 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
20699 if test -n "$ac_eof"; then
20700 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
20701 ac_eof=`expr $ac_eof + 1`
20704 cat >>$CONFIG_STATUS <<_ACEOF
20705 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
20706 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
20707 _ACEOF
20708 sed '
20709 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
20710 s/^/s,@/; s/!/@,|#_!!_#|/
20713 s/'"$ac_delim"'$/,g/; t
20714 s/$/\\/; p
20715 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
20716 ' >>$CONFIG_STATUS <conf$$subs.sed
20717 rm -f conf$$subs.sed
20718 cat >>$CONFIG_STATUS <<_ACEOF
20719 :end
20720 s/|#_!!_#|//g
20721 CEOF$ac_eof
20722 _ACEOF
20725 # VPATH may cause trouble with some makes, so we remove $(srcdir),
20726 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
20727 # trailing colons and then remove the whole line if VPATH becomes empty
20728 # (actually we leave an empty line to preserve line numbers).
20729 if test "x$srcdir" = x.; then
20730 ac_vpsub='/^[ ]*VPATH[ ]*=/{
20731 s/:*\$(srcdir):*/:/
20732 s/:*\${srcdir}:*/:/
20733 s/:*@srcdir@:*/:/
20734 s/^\([^=]*=[ ]*\):*/\1/
20735 s/:*$//
20736 s/^[^=]*=[ ]*$//
20740 cat >>$CONFIG_STATUS <<\_ACEOF
20741 fi # test -n "$CONFIG_FILES"
20744 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
20746 case $ac_tag in
20747 :[FHLC]) ac_mode=$ac_tag; continue;;
20748 esac
20749 case $ac_mode$ac_tag in
20750 :[FHL]*:*);;
20751 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
20752 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
20753 { (exit 1); exit 1; }; };;
20754 :[FH]-) ac_tag=-:-;;
20755 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
20756 esac
20757 ac_save_IFS=$IFS
20758 IFS=:
20759 set x $ac_tag
20760 IFS=$ac_save_IFS
20761 shift
20762 ac_file=$1
20763 shift
20765 case $ac_mode in
20766 :L) ac_source=$1;;
20767 :[FH])
20768 ac_file_inputs=
20769 for ac_f
20771 case $ac_f in
20772 -) ac_f="$tmp/stdin";;
20773 *) # Look for the file first in the build tree, then in the source tree
20774 # (if the path is not absolute). The absolute path cannot be DOS-style,
20775 # because $ac_f cannot contain `:'.
20776 test -f "$ac_f" ||
20777 case $ac_f in
20778 [\\/$]*) false;;
20779 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
20780 esac ||
20781 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
20782 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
20783 { (exit 1); exit 1; }; };;
20784 esac
20785 ac_file_inputs="$ac_file_inputs $ac_f"
20786 done
20788 # Let's still pretend it is `configure' which instantiates (i.e., don't
20789 # use $as_me), people would be surprised to read:
20790 # /* config.h. Generated by config.status. */
20791 configure_input="Generated from "`IFS=:
20792 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
20793 if test x"$ac_file" != x-; then
20794 configure_input="$ac_file. $configure_input"
20795 { echo "$as_me:$LINENO: creating $ac_file" >&5
20796 echo "$as_me: creating $ac_file" >&6;}
20799 case $ac_tag in
20800 *:-:* | *:-) cat >"$tmp/stdin";;
20801 esac
20803 esac
20805 ac_dir=`$as_dirname -- "$ac_file" ||
20806 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20807 X"$ac_file" : 'X\(//\)[^/]' \| \
20808 X"$ac_file" : 'X\(//\)$' \| \
20809 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
20810 echo X"$ac_file" |
20811 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20812 s//\1/
20815 /^X\(\/\/\)[^/].*/{
20816 s//\1/
20819 /^X\(\/\/\)$/{
20820 s//\1/
20823 /^X\(\/\).*/{
20824 s//\1/
20827 s/.*/./; q'`
20828 { as_dir="$ac_dir"
20829 case $as_dir in #(
20830 -*) as_dir=./$as_dir;;
20831 esac
20832 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
20833 as_dirs=
20834 while :; do
20835 case $as_dir in #(
20836 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
20837 *) as_qdir=$as_dir;;
20838 esac
20839 as_dirs="'$as_qdir' $as_dirs"
20840 as_dir=`$as_dirname -- "$as_dir" ||
20841 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20842 X"$as_dir" : 'X\(//\)[^/]' \| \
20843 X"$as_dir" : 'X\(//\)$' \| \
20844 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
20845 echo X"$as_dir" |
20846 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20847 s//\1/
20850 /^X\(\/\/\)[^/].*/{
20851 s//\1/
20854 /^X\(\/\/\)$/{
20855 s//\1/
20858 /^X\(\/\).*/{
20859 s//\1/
20862 s/.*/./; q'`
20863 test -d "$as_dir" && break
20864 done
20865 test -z "$as_dirs" || eval "mkdir $as_dirs"
20866 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
20867 echo "$as_me: error: cannot create directory $as_dir" >&2;}
20868 { (exit 1); exit 1; }; }; }
20869 ac_builddir=.
20871 case "$ac_dir" in
20872 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
20874 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
20875 # A ".." for each directory in $ac_dir_suffix.
20876 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
20877 case $ac_top_builddir_sub in
20878 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
20879 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
20880 esac ;;
20881 esac
20882 ac_abs_top_builddir=$ac_pwd
20883 ac_abs_builddir=$ac_pwd$ac_dir_suffix
20884 # for backward compatibility:
20885 ac_top_builddir=$ac_top_build_prefix
20887 case $srcdir in
20888 .) # We are building in place.
20889 ac_srcdir=.
20890 ac_top_srcdir=$ac_top_builddir_sub
20891 ac_abs_top_srcdir=$ac_pwd ;;
20892 [\\/]* | ?:[\\/]* ) # Absolute name.
20893 ac_srcdir=$srcdir$ac_dir_suffix;
20894 ac_top_srcdir=$srcdir
20895 ac_abs_top_srcdir=$srcdir ;;
20896 *) # Relative name.
20897 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
20898 ac_top_srcdir=$ac_top_build_prefix$srcdir
20899 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
20900 esac
20901 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
20904 case $ac_mode in
20907 # CONFIG_FILE
20910 case $INSTALL in
20911 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
20912 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
20913 esac
20914 ac_MKDIR_P=$MKDIR_P
20915 case $MKDIR_P in
20916 [\\/$]* | ?:[\\/]* ) ;;
20917 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
20918 esac
20919 _ACEOF
20921 cat >>$CONFIG_STATUS <<\_ACEOF
20922 # If the template does not know about datarootdir, expand it.
20923 # FIXME: This hack should be removed a few years after 2.60.
20924 ac_datarootdir_hack=; ac_datarootdir_seen=
20926 case `sed -n '/datarootdir/ {
20930 /@datadir@/p
20931 /@docdir@/p
20932 /@infodir@/p
20933 /@localedir@/p
20934 /@mandir@/p
20935 ' $ac_file_inputs` in
20936 *datarootdir*) ac_datarootdir_seen=yes;;
20937 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
20938 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
20939 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
20940 _ACEOF
20941 cat >>$CONFIG_STATUS <<_ACEOF
20942 ac_datarootdir_hack='
20943 s&@datadir@&$datadir&g
20944 s&@docdir@&$docdir&g
20945 s&@infodir@&$infodir&g
20946 s&@localedir@&$localedir&g
20947 s&@mandir@&$mandir&g
20948 s&\\\${datarootdir}&$datarootdir&g' ;;
20949 esac
20950 _ACEOF
20952 # Neutralize VPATH when `$srcdir' = `.'.
20953 # Shell code in configure.ac might set extrasub.
20954 # FIXME: do we really want to maintain this feature?
20955 cat >>$CONFIG_STATUS <<_ACEOF
20956 sed "$ac_vpsub
20957 $extrasub
20958 _ACEOF
20959 cat >>$CONFIG_STATUS <<\_ACEOF
20961 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20962 s&@configure_input@&$configure_input&;t t
20963 s&@top_builddir@&$ac_top_builddir_sub&;t t
20964 s&@srcdir@&$ac_srcdir&;t t
20965 s&@abs_srcdir@&$ac_abs_srcdir&;t t
20966 s&@top_srcdir@&$ac_top_srcdir&;t t
20967 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
20968 s&@builddir@&$ac_builddir&;t t
20969 s&@abs_builddir@&$ac_abs_builddir&;t t
20970 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
20971 s&@INSTALL@&$ac_INSTALL&;t t
20972 s&@MKDIR_P@&$ac_MKDIR_P&;t t
20973 $ac_datarootdir_hack
20974 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
20976 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
20977 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
20978 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
20979 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20980 which seems to be undefined. Please make sure it is defined." >&5
20981 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20982 which seems to be undefined. Please make sure it is defined." >&2;}
20984 rm -f "$tmp/stdin"
20985 case $ac_file in
20986 -) cat "$tmp/out"; rm -f "$tmp/out";;
20987 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
20988 esac
20992 # CONFIG_HEADER
20994 _ACEOF
20996 # Transform confdefs.h into a sed script `conftest.defines', that
20997 # substitutes the proper values into config.h.in to produce config.h.
20998 rm -f conftest.defines conftest.tail
20999 # First, append a space to every undef/define line, to ease matching.
21000 echo 's/$/ /' >conftest.defines
21001 # Then, protect against being on the right side of a sed subst, or in
21002 # an unquoted here document, in config.status. If some macros were
21003 # called several times there might be several #defines for the same
21004 # symbol, which is useless. But do not sort them, since the last
21005 # AC_DEFINE must be honored.
21006 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
21007 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
21008 # NAME is the cpp macro being defined, VALUE is the value it is being given.
21009 # PARAMS is the parameter list in the macro definition--in most cases, it's
21010 # just an empty string.
21011 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
21012 ac_dB='\\)[ (].*,\\1define\\2'
21013 ac_dC=' '
21014 ac_dD=' ,'
21016 uniq confdefs.h |
21017 sed -n '
21018 t rset
21019 :rset
21020 s/^[ ]*#[ ]*define[ ][ ]*//
21021 t ok
21024 s/[\\&,]/\\&/g
21025 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
21026 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
21027 ' >>conftest.defines
21029 # Remove the space that was appended to ease matching.
21030 # Then replace #undef with comments. This is necessary, for
21031 # example, in the case of _POSIX_SOURCE, which is predefined and required
21032 # on some systems where configure will not decide to define it.
21033 # (The regexp can be short, since the line contains either #define or #undef.)
21034 echo 's/ $//
21035 s,^[ #]*u.*,/* & */,' >>conftest.defines
21037 # Break up conftest.defines:
21038 ac_max_sed_lines=50
21040 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
21041 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
21042 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
21043 # et cetera.
21044 ac_in='$ac_file_inputs'
21045 ac_out='"$tmp/out1"'
21046 ac_nxt='"$tmp/out2"'
21048 while :
21050 # Write a here document:
21051 cat >>$CONFIG_STATUS <<_ACEOF
21052 # First, check the format of the line:
21053 cat >"\$tmp/defines.sed" <<\\CEOF
21054 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
21055 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
21057 :def
21058 _ACEOF
21059 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
21060 echo 'CEOF
21061 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
21062 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
21063 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
21064 grep . conftest.tail >/dev/null || break
21065 rm -f conftest.defines
21066 mv conftest.tail conftest.defines
21067 done
21068 rm -f conftest.defines conftest.tail
21070 echo "ac_result=$ac_in" >>$CONFIG_STATUS
21071 cat >>$CONFIG_STATUS <<\_ACEOF
21072 if test x"$ac_file" != x-; then
21073 echo "/* $configure_input */" >"$tmp/config.h"
21074 cat "$ac_result" >>"$tmp/config.h"
21075 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
21076 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
21077 echo "$as_me: $ac_file is unchanged" >&6;}
21078 else
21079 rm -f $ac_file
21080 mv "$tmp/config.h" $ac_file
21082 else
21083 echo "/* $configure_input */"
21084 cat "$ac_result"
21086 rm -f "$tmp/out12"
21087 # Compute $ac_file's index in $config_headers.
21088 _am_stamp_count=1
21089 for _am_header in $config_headers :; do
21090 case $_am_header in
21091 $ac_file | $ac_file:* )
21092 break ;;
21094 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
21095 esac
21096 done
21097 echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
21098 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21099 X$ac_file : 'X\(//\)[^/]' \| \
21100 X$ac_file : 'X\(//\)$' \| \
21101 X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
21102 echo X$ac_file |
21103 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21104 s//\1/
21107 /^X\(\/\/\)[^/].*/{
21108 s//\1/
21111 /^X\(\/\/\)$/{
21112 s//\1/
21115 /^X\(\/\).*/{
21116 s//\1/
21119 s/.*/./; q'`/stamp-h$_am_stamp_count
21122 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
21123 echo "$as_me: executing $ac_file commands" >&6;}
21125 esac
21128 case $ac_file$ac_mode in
21129 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
21130 # Strip MF so we end up with the name of the file.
21131 mf=`echo "$mf" | sed -e 's/:.*$//'`
21132 # Check whether this is an Automake generated Makefile or not.
21133 # We used to match only the files named `Makefile.in', but
21134 # some people rename them; so instead we look at the file content.
21135 # Grep'ing the first line is not enough: some people post-process
21136 # each Makefile.in and add a new line on top of each file to say so.
21137 # Grep'ing the whole file is not good either: AIX grep has a line
21138 # limit of 2048, but all sed's we know have understand at least 4000.
21139 if sed 10q "$mf" | grep '^#.*generated by automake' > /dev/null 2>&1; then
21140 dirpart=`$as_dirname -- "$mf" ||
21141 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21142 X"$mf" : 'X\(//\)[^/]' \| \
21143 X"$mf" : 'X\(//\)$' \| \
21144 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
21145 echo X"$mf" |
21146 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21147 s//\1/
21150 /^X\(\/\/\)[^/].*/{
21151 s//\1/
21154 /^X\(\/\/\)$/{
21155 s//\1/
21158 /^X\(\/\).*/{
21159 s//\1/
21162 s/.*/./; q'`
21163 else
21164 continue
21166 # Extract the definition of DEPDIR, am__include, and am__quote
21167 # from the Makefile without running `make'.
21168 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
21169 test -z "$DEPDIR" && continue
21170 am__include=`sed -n 's/^am__include = //p' < "$mf"`
21171 test -z "am__include" && continue
21172 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
21173 # When using ansi2knr, U may be empty or an underscore; expand it
21174 U=`sed -n 's/^U = //p' < "$mf"`
21175 # Find all dependency output files, they are included files with
21176 # $(DEPDIR) in their names. We invoke sed twice because it is the
21177 # simplest approach to changing $(DEPDIR) to its actual value in the
21178 # expansion.
21179 for file in `sed -n "
21180 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
21181 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
21182 # Make sure the directory exists.
21183 test -f "$dirpart/$file" && continue
21184 fdir=`$as_dirname -- "$file" ||
21185 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21186 X"$file" : 'X\(//\)[^/]' \| \
21187 X"$file" : 'X\(//\)$' \| \
21188 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
21189 echo X"$file" |
21190 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21191 s//\1/
21194 /^X\(\/\/\)[^/].*/{
21195 s//\1/
21198 /^X\(\/\/\)$/{
21199 s//\1/
21202 /^X\(\/\).*/{
21203 s//\1/
21206 s/.*/./; q'`
21207 { as_dir=$dirpart/$fdir
21208 case $as_dir in #(
21209 -*) as_dir=./$as_dir;;
21210 esac
21211 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
21212 as_dirs=
21213 while :; do
21214 case $as_dir in #(
21215 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
21216 *) as_qdir=$as_dir;;
21217 esac
21218 as_dirs="'$as_qdir' $as_dirs"
21219 as_dir=`$as_dirname -- "$as_dir" ||
21220 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21221 X"$as_dir" : 'X\(//\)[^/]' \| \
21222 X"$as_dir" : 'X\(//\)$' \| \
21223 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
21224 echo X"$as_dir" |
21225 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21226 s//\1/
21229 /^X\(\/\/\)[^/].*/{
21230 s//\1/
21233 /^X\(\/\/\)$/{
21234 s//\1/
21237 /^X\(\/\).*/{
21238 s//\1/
21241 s/.*/./; q'`
21242 test -d "$as_dir" && break
21243 done
21244 test -z "$as_dirs" || eval "mkdir $as_dirs"
21245 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
21246 echo "$as_me: error: cannot create directory $as_dir" >&2;}
21247 { (exit 1); exit 1; }; }; }
21248 # echo "creating $dirpart/$file"
21249 echo '# dummy' > "$dirpart/$file"
21250 done
21251 done
21254 esac
21255 done # for ac_tag
21258 { (exit 0); exit 0; }
21259 _ACEOF
21260 chmod +x $CONFIG_STATUS
21261 ac_clean_files=$ac_clean_files_save
21264 # configure is writing to config.log, and then calls config.status.
21265 # config.status does its own redirection, appending to config.log.
21266 # Unfortunately, on DOS this fails, as config.log is still kept open
21267 # by configure, so config.status won't be able to write to it; its
21268 # output is simply discarded. So we exec the FD to /dev/null,
21269 # effectively closing config.log, so it can be properly (re)opened and
21270 # appended to by config.status. When coming back to configure, we
21271 # need to make the FD available again.
21272 if test "$no_create" != yes; then
21273 ac_cs_success=:
21274 ac_config_status_args=
21275 test "$silent" = yes &&
21276 ac_config_status_args="$ac_config_status_args --quiet"
21277 exec 5>/dev/null
21278 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21279 exec 5>>config.log
21280 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21281 # would make configure fail if this is the last instruction.
21282 $ac_cs_success || { (exit 1); exit 1; }