Completed the cmd_add implementation
[vimicxx.git] / configure
blob9137091a83265a4eb353e53ae99fa7aa252971e9
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61 for vimicxx 0.1.
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='vimicxx'
730 PACKAGE_TARNAME='vimicxx'
731 PACKAGE_VERSION='0.1'
732 PACKAGE_STRING='vimicxx 0.1'
733 PACKAGE_BUGREPORT='ahmed.badran@gmail.com'
735 ac_unique_file="src/generic_exception.h"
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
868 DSYMUTIL
869 NMEDIT
871 CXXCPP
873 FFLAGS
874 ac_ct_F77
875 LIBTOOL
876 PKG_CONFIG
877 libconfigfile_CFLAGS
878 libconfigfile_LIBS
879 LIBOBJS
880 LTLIBOBJS'
881 ac_subst_files=''
882 ac_precious_vars='build_alias
883 host_alias
884 target_alias
886 CXXFLAGS
887 LDFLAGS
888 LIBS
889 CPPFLAGS
892 CFLAGS
894 CXXCPP
896 FFLAGS
897 PKG_CONFIG
898 libconfigfile_CFLAGS
899 libconfigfile_LIBS'
902 # Initialize some variables set by options.
903 ac_init_help=
904 ac_init_version=false
905 # The variables have the same names as the options, with
906 # dashes changed to underlines.
907 cache_file=/dev/null
908 exec_prefix=NONE
909 no_create=
910 no_recursion=
911 prefix=NONE
912 program_prefix=NONE
913 program_suffix=NONE
914 program_transform_name=s,x,x,
915 silent=
916 site=
917 srcdir=
918 verbose=
919 x_includes=NONE
920 x_libraries=NONE
922 # Installation directory options.
923 # These are left unexpanded so users can "make install exec_prefix=/foo"
924 # and all the variables that are supposed to be based on exec_prefix
925 # by default will actually change.
926 # Use braces instead of parens because sh, perl, etc. also accept them.
927 # (The list follows the same order as the GNU Coding Standards.)
928 bindir='${exec_prefix}/bin'
929 sbindir='${exec_prefix}/sbin'
930 libexecdir='${exec_prefix}/libexec'
931 datarootdir='${prefix}/share'
932 datadir='${datarootdir}'
933 sysconfdir='${prefix}/etc'
934 sharedstatedir='${prefix}/com'
935 localstatedir='${prefix}/var'
936 includedir='${prefix}/include'
937 oldincludedir='/usr/include'
938 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
939 infodir='${datarootdir}/info'
940 htmldir='${docdir}'
941 dvidir='${docdir}'
942 pdfdir='${docdir}'
943 psdir='${docdir}'
944 libdir='${exec_prefix}/lib'
945 localedir='${datarootdir}/locale'
946 mandir='${datarootdir}/man'
948 ac_prev=
949 ac_dashdash=
950 for ac_option
952 # If the previous option needs an argument, assign it.
953 if test -n "$ac_prev"; then
954 eval $ac_prev=\$ac_option
955 ac_prev=
956 continue
959 case $ac_option in
960 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
961 *) ac_optarg=yes ;;
962 esac
964 # Accept the important Cygnus configure options, so we can diagnose typos.
966 case $ac_dashdash$ac_option in
968 ac_dashdash=yes ;;
970 -bindir | --bindir | --bindi | --bind | --bin | --bi)
971 ac_prev=bindir ;;
972 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
973 bindir=$ac_optarg ;;
975 -build | --build | --buil | --bui | --bu)
976 ac_prev=build_alias ;;
977 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
978 build_alias=$ac_optarg ;;
980 -cache-file | --cache-file | --cache-fil | --cache-fi \
981 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
982 ac_prev=cache_file ;;
983 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
984 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
985 cache_file=$ac_optarg ;;
987 --config-cache | -C)
988 cache_file=config.cache ;;
990 -datadir | --datadir | --datadi | --datad)
991 ac_prev=datadir ;;
992 -datadir=* | --datadir=* | --datadi=* | --datad=*)
993 datadir=$ac_optarg ;;
995 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
996 | --dataroo | --dataro | --datar)
997 ac_prev=datarootdir ;;
998 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
999 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1000 datarootdir=$ac_optarg ;;
1002 -disable-* | --disable-*)
1003 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1004 # Reject names that are not valid shell variable names.
1005 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1006 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1007 { (exit 1); exit 1; }; }
1008 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1009 eval enable_$ac_feature=no ;;
1011 -docdir | --docdir | --docdi | --doc | --do)
1012 ac_prev=docdir ;;
1013 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1014 docdir=$ac_optarg ;;
1016 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1017 ac_prev=dvidir ;;
1018 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1019 dvidir=$ac_optarg ;;
1021 -enable-* | --enable-*)
1022 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1023 # Reject names that are not valid shell variable names.
1024 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1025 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1026 { (exit 1); exit 1; }; }
1027 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1028 eval enable_$ac_feature=\$ac_optarg ;;
1030 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1031 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1032 | --exec | --exe | --ex)
1033 ac_prev=exec_prefix ;;
1034 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1035 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1036 | --exec=* | --exe=* | --ex=*)
1037 exec_prefix=$ac_optarg ;;
1039 -gas | --gas | --ga | --g)
1040 # Obsolete; use --with-gas.
1041 with_gas=yes ;;
1043 -help | --help | --hel | --he | -h)
1044 ac_init_help=long ;;
1045 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1046 ac_init_help=recursive ;;
1047 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1048 ac_init_help=short ;;
1050 -host | --host | --hos | --ho)
1051 ac_prev=host_alias ;;
1052 -host=* | --host=* | --hos=* | --ho=*)
1053 host_alias=$ac_optarg ;;
1055 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1056 ac_prev=htmldir ;;
1057 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1058 | --ht=*)
1059 htmldir=$ac_optarg ;;
1061 -includedir | --includedir | --includedi | --included | --include \
1062 | --includ | --inclu | --incl | --inc)
1063 ac_prev=includedir ;;
1064 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1065 | --includ=* | --inclu=* | --incl=* | --inc=*)
1066 includedir=$ac_optarg ;;
1068 -infodir | --infodir | --infodi | --infod | --info | --inf)
1069 ac_prev=infodir ;;
1070 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1071 infodir=$ac_optarg ;;
1073 -libdir | --libdir | --libdi | --libd)
1074 ac_prev=libdir ;;
1075 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1076 libdir=$ac_optarg ;;
1078 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1079 | --libexe | --libex | --libe)
1080 ac_prev=libexecdir ;;
1081 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1082 | --libexe=* | --libex=* | --libe=*)
1083 libexecdir=$ac_optarg ;;
1085 -localedir | --localedir | --localedi | --localed | --locale)
1086 ac_prev=localedir ;;
1087 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1088 localedir=$ac_optarg ;;
1090 -localstatedir | --localstatedir | --localstatedi | --localstated \
1091 | --localstate | --localstat | --localsta | --localst | --locals)
1092 ac_prev=localstatedir ;;
1093 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1094 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1095 localstatedir=$ac_optarg ;;
1097 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1098 ac_prev=mandir ;;
1099 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1100 mandir=$ac_optarg ;;
1102 -nfp | --nfp | --nf)
1103 # Obsolete; use --without-fp.
1104 with_fp=no ;;
1106 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1107 | --no-cr | --no-c | -n)
1108 no_create=yes ;;
1110 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1111 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1112 no_recursion=yes ;;
1114 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1115 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1116 | --oldin | --oldi | --old | --ol | --o)
1117 ac_prev=oldincludedir ;;
1118 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1119 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1120 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1121 oldincludedir=$ac_optarg ;;
1123 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1124 ac_prev=prefix ;;
1125 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1126 prefix=$ac_optarg ;;
1128 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1129 | --program-pre | --program-pr | --program-p)
1130 ac_prev=program_prefix ;;
1131 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1132 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1133 program_prefix=$ac_optarg ;;
1135 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1136 | --program-suf | --program-su | --program-s)
1137 ac_prev=program_suffix ;;
1138 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1139 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1140 program_suffix=$ac_optarg ;;
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 ac_prev=program_transform_name ;;
1150 -program-transform-name=* | --program-transform-name=* \
1151 | --program-transform-nam=* | --program-transform-na=* \
1152 | --program-transform-n=* | --program-transform-=* \
1153 | --program-transform=* | --program-transfor=* \
1154 | --program-transfo=* | --program-transf=* \
1155 | --program-trans=* | --program-tran=* \
1156 | --progr-tra=* | --program-tr=* | --program-t=*)
1157 program_transform_name=$ac_optarg ;;
1159 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1160 ac_prev=pdfdir ;;
1161 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1162 pdfdir=$ac_optarg ;;
1164 -psdir | --psdir | --psdi | --psd | --ps)
1165 ac_prev=psdir ;;
1166 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1167 psdir=$ac_optarg ;;
1169 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1170 | -silent | --silent | --silen | --sile | --sil)
1171 silent=yes ;;
1173 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1174 ac_prev=sbindir ;;
1175 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1176 | --sbi=* | --sb=*)
1177 sbindir=$ac_optarg ;;
1179 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1180 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1181 | --sharedst | --shareds | --shared | --share | --shar \
1182 | --sha | --sh)
1183 ac_prev=sharedstatedir ;;
1184 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1185 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1186 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1187 | --sha=* | --sh=*)
1188 sharedstatedir=$ac_optarg ;;
1190 -site | --site | --sit)
1191 ac_prev=site ;;
1192 -site=* | --site=* | --sit=*)
1193 site=$ac_optarg ;;
1195 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1196 ac_prev=srcdir ;;
1197 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1198 srcdir=$ac_optarg ;;
1200 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1201 | --syscon | --sysco | --sysc | --sys | --sy)
1202 ac_prev=sysconfdir ;;
1203 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1204 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1205 sysconfdir=$ac_optarg ;;
1207 -target | --target | --targe | --targ | --tar | --ta | --t)
1208 ac_prev=target_alias ;;
1209 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1210 target_alias=$ac_optarg ;;
1212 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1213 verbose=yes ;;
1215 -version | --version | --versio | --versi | --vers | -V)
1216 ac_init_version=: ;;
1218 -with-* | --with-*)
1219 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1220 # Reject names that are not valid shell variable names.
1221 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1222 { echo "$as_me: error: invalid package name: $ac_package" >&2
1223 { (exit 1); exit 1; }; }
1224 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1225 eval with_$ac_package=\$ac_optarg ;;
1227 -without-* | --without-*)
1228 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1229 # Reject names that are not valid shell variable names.
1230 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1231 { echo "$as_me: error: invalid package name: $ac_package" >&2
1232 { (exit 1); exit 1; }; }
1233 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1234 eval with_$ac_package=no ;;
1236 --x)
1237 # Obsolete; use --with-x.
1238 with_x=yes ;;
1240 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1241 | --x-incl | --x-inc | --x-in | --x-i)
1242 ac_prev=x_includes ;;
1243 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1244 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1245 x_includes=$ac_optarg ;;
1247 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1248 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1249 ac_prev=x_libraries ;;
1250 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1251 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1252 x_libraries=$ac_optarg ;;
1254 -*) { echo "$as_me: error: unrecognized option: $ac_option
1255 Try \`$0 --help' for more information." >&2
1256 { (exit 1); exit 1; }; }
1259 *=*)
1260 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1261 # Reject names that are not valid shell variable names.
1262 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1263 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1264 { (exit 1); exit 1; }; }
1265 eval $ac_envvar=\$ac_optarg
1266 export $ac_envvar ;;
1269 # FIXME: should be removed in autoconf 3.0.
1270 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1271 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1272 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1273 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1276 esac
1277 done
1279 if test -n "$ac_prev"; then
1280 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1281 { echo "$as_me: error: missing argument to $ac_option" >&2
1282 { (exit 1); exit 1; }; }
1285 # Be sure to have absolute directory names.
1286 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1287 datadir sysconfdir sharedstatedir localstatedir includedir \
1288 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1289 libdir localedir mandir
1291 eval ac_val=\$$ac_var
1292 case $ac_val in
1293 [\\/$]* | ?:[\\/]* ) continue;;
1294 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1295 esac
1296 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1297 { (exit 1); exit 1; }; }
1298 done
1300 # There might be people who depend on the old broken behavior: `$host'
1301 # used to hold the argument of --host etc.
1302 # FIXME: To remove some day.
1303 build=$build_alias
1304 host=$host_alias
1305 target=$target_alias
1307 # FIXME: To remove some day.
1308 if test "x$host_alias" != x; then
1309 if test "x$build_alias" = x; then
1310 cross_compiling=maybe
1311 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1312 If a cross compiler is detected then cross compile mode will be used." >&2
1313 elif test "x$build_alias" != "x$host_alias"; then
1314 cross_compiling=yes
1318 ac_tool_prefix=
1319 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1321 test "$silent" = yes && exec 6>/dev/null
1324 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1325 ac_ls_di=`ls -di .` &&
1326 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1327 { echo "$as_me: error: Working directory cannot be determined" >&2
1328 { (exit 1); exit 1; }; }
1329 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1330 { echo "$as_me: error: pwd does not report name of working directory" >&2
1331 { (exit 1); exit 1; }; }
1334 # Find the source files, if location was not specified.
1335 if test -z "$srcdir"; then
1336 ac_srcdir_defaulted=yes
1337 # Try the directory containing this script, then the parent directory.
1338 ac_confdir=`$as_dirname -- "$0" ||
1339 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1340 X"$0" : 'X\(//\)[^/]' \| \
1341 X"$0" : 'X\(//\)$' \| \
1342 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1343 echo X"$0" |
1344 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1345 s//\1/
1348 /^X\(\/\/\)[^/].*/{
1349 s//\1/
1352 /^X\(\/\/\)$/{
1353 s//\1/
1356 /^X\(\/\).*/{
1357 s//\1/
1360 s/.*/./; q'`
1361 srcdir=$ac_confdir
1362 if test ! -r "$srcdir/$ac_unique_file"; then
1363 srcdir=..
1365 else
1366 ac_srcdir_defaulted=no
1368 if test ! -r "$srcdir/$ac_unique_file"; then
1369 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1370 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1371 { (exit 1); exit 1; }; }
1373 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1374 ac_abs_confdir=`(
1375 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1376 { (exit 1); exit 1; }; }
1377 pwd)`
1378 # When building in place, set srcdir=.
1379 if test "$ac_abs_confdir" = "$ac_pwd"; then
1380 srcdir=.
1382 # Remove unnecessary trailing slashes from srcdir.
1383 # Double slashes in file names in object file debugging info
1384 # mess up M-x gdb in Emacs.
1385 case $srcdir in
1386 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1387 esac
1388 for ac_var in $ac_precious_vars; do
1389 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1390 eval ac_env_${ac_var}_value=\$${ac_var}
1391 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1392 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1393 done
1396 # Report the --help message.
1398 if test "$ac_init_help" = "long"; then
1399 # Omit some internal or obsolete options to make the list less imposing.
1400 # This message is too long to be a string in the A/UX 3.1 sh.
1401 cat <<_ACEOF
1402 \`configure' configures vimicxx 0.1 to adapt to many kinds of systems.
1404 Usage: $0 [OPTION]... [VAR=VALUE]...
1406 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1407 VAR=VALUE. See below for descriptions of some of the useful variables.
1409 Defaults for the options are specified in brackets.
1411 Configuration:
1412 -h, --help display this help and exit
1413 --help=short display options specific to this package
1414 --help=recursive display the short help of all the included packages
1415 -V, --version display version information and exit
1416 -q, --quiet, --silent do not print \`checking...' messages
1417 --cache-file=FILE cache test results in FILE [disabled]
1418 -C, --config-cache alias for \`--cache-file=config.cache'
1419 -n, --no-create do not create output files
1420 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1422 Installation directories:
1423 --prefix=PREFIX install architecture-independent files in PREFIX
1424 [$ac_default_prefix]
1425 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1426 [PREFIX]
1428 By default, \`make install' will install all the files in
1429 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1430 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1431 for instance \`--prefix=\$HOME'.
1433 For better control, use the options below.
1435 Fine tuning of the installation directories:
1436 --bindir=DIR user executables [EPREFIX/bin]
1437 --sbindir=DIR system admin executables [EPREFIX/sbin]
1438 --libexecdir=DIR program executables [EPREFIX/libexec]
1439 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1440 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1441 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1442 --libdir=DIR object code libraries [EPREFIX/lib]
1443 --includedir=DIR C header files [PREFIX/include]
1444 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1445 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1446 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1447 --infodir=DIR info documentation [DATAROOTDIR/info]
1448 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1449 --mandir=DIR man documentation [DATAROOTDIR/man]
1450 --docdir=DIR documentation root [DATAROOTDIR/doc/vimicxx]
1451 --htmldir=DIR html documentation [DOCDIR]
1452 --dvidir=DIR dvi documentation [DOCDIR]
1453 --pdfdir=DIR pdf documentation [DOCDIR]
1454 --psdir=DIR ps documentation [DOCDIR]
1455 _ACEOF
1457 cat <<\_ACEOF
1459 Program names:
1460 --program-prefix=PREFIX prepend PREFIX to installed program names
1461 --program-suffix=SUFFIX append SUFFIX to installed program names
1462 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1464 System types:
1465 --build=BUILD configure for building on BUILD [guessed]
1466 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1467 _ACEOF
1470 if test -n "$ac_init_help"; then
1471 case $ac_init_help in
1472 short | recursive ) echo "Configuration of vimicxx 0.1:";;
1473 esac
1474 cat <<\_ACEOF
1476 Optional Features:
1477 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1478 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1479 --disable-dependency-tracking speeds up one-time build
1480 --enable-dependency-tracking do not reject slow dependency extractors
1481 --enable-shared[=PKGS] build shared libraries [default=yes]
1482 --enable-static[=PKGS] build static libraries [default=yes]
1483 --enable-fast-install[=PKGS]
1484 optimize for fast installation [default=yes]
1485 --disable-libtool-lock avoid locking (might break parallel builds)
1487 Optional Packages:
1488 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1489 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1490 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1491 --with-pic try to use only PIC/non-PIC objects [default=use
1492 both]
1493 --with-tags[=TAGS] include additional configurations [automatic]
1495 Some influential environment variables:
1496 CXX C++ compiler command
1497 CXXFLAGS C++ compiler flags
1498 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1499 nonstandard directory <lib dir>
1500 LIBS libraries to pass to the linker, e.g. -l<library>
1501 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1502 you have headers in a nonstandard directory <include dir>
1503 CC C compiler command
1504 CFLAGS C compiler flags
1505 CPP C preprocessor
1506 CXXCPP C++ preprocessor
1507 F77 Fortran 77 compiler command
1508 FFLAGS Fortran 77 compiler flags
1509 PKG_CONFIG path to pkg-config utility
1510 libconfigfile_CFLAGS
1511 C compiler flags for libconfigfile, overriding pkg-config
1512 libconfigfile_LIBS
1513 linker flags for libconfigfile, overriding pkg-config
1515 Use these variables to override the choices made by `configure' or to help
1516 it to find libraries and programs with nonstandard names/locations.
1518 Report bugs to <ahmed.badran@gmail.com>.
1519 _ACEOF
1520 ac_status=$?
1523 if test "$ac_init_help" = "recursive"; then
1524 # If there are subdirs, report their specific --help.
1525 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1526 test -d "$ac_dir" || continue
1527 ac_builddir=.
1529 case "$ac_dir" in
1530 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1532 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1533 # A ".." for each directory in $ac_dir_suffix.
1534 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1535 case $ac_top_builddir_sub in
1536 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1537 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1538 esac ;;
1539 esac
1540 ac_abs_top_builddir=$ac_pwd
1541 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1542 # for backward compatibility:
1543 ac_top_builddir=$ac_top_build_prefix
1545 case $srcdir in
1546 .) # We are building in place.
1547 ac_srcdir=.
1548 ac_top_srcdir=$ac_top_builddir_sub
1549 ac_abs_top_srcdir=$ac_pwd ;;
1550 [\\/]* | ?:[\\/]* ) # Absolute name.
1551 ac_srcdir=$srcdir$ac_dir_suffix;
1552 ac_top_srcdir=$srcdir
1553 ac_abs_top_srcdir=$srcdir ;;
1554 *) # Relative name.
1555 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1556 ac_top_srcdir=$ac_top_build_prefix$srcdir
1557 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1558 esac
1559 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1561 cd "$ac_dir" || { ac_status=$?; continue; }
1562 # Check for guested configure.
1563 if test -f "$ac_srcdir/configure.gnu"; then
1564 echo &&
1565 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1566 elif test -f "$ac_srcdir/configure"; then
1567 echo &&
1568 $SHELL "$ac_srcdir/configure" --help=recursive
1569 else
1570 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1571 fi || ac_status=$?
1572 cd "$ac_pwd" || { ac_status=$?; break; }
1573 done
1576 test -n "$ac_init_help" && exit $ac_status
1577 if $ac_init_version; then
1578 cat <<\_ACEOF
1579 vimicxx configure 0.1
1580 generated by GNU Autoconf 2.61
1582 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1583 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1584 This configure script is free software; the Free Software Foundation
1585 gives unlimited permission to copy, distribute and modify it.
1586 _ACEOF
1587 exit
1589 cat >config.log <<_ACEOF
1590 This file contains any messages produced by compilers while
1591 running configure, to aid debugging if configure makes a mistake.
1593 It was created by vimicxx $as_me 0.1, which was
1594 generated by GNU Autoconf 2.61. Invocation command line was
1596 $ $0 $@
1598 _ACEOF
1599 exec 5>>config.log
1601 cat <<_ASUNAME
1602 ## --------- ##
1603 ## Platform. ##
1604 ## --------- ##
1606 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1607 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1608 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1609 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1610 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1612 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1613 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1615 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1616 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1617 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1618 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1619 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1620 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1621 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1623 _ASUNAME
1625 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1626 for as_dir in $PATH
1628 IFS=$as_save_IFS
1629 test -z "$as_dir" && as_dir=.
1630 echo "PATH: $as_dir"
1631 done
1632 IFS=$as_save_IFS
1634 } >&5
1636 cat >&5 <<_ACEOF
1639 ## ----------- ##
1640 ## Core tests. ##
1641 ## ----------- ##
1643 _ACEOF
1646 # Keep a trace of the command line.
1647 # Strip out --no-create and --no-recursion so they do not pile up.
1648 # Strip out --silent because we don't want to record it for future runs.
1649 # Also quote any args containing shell meta-characters.
1650 # Make two passes to allow for proper duplicate-argument suppression.
1651 ac_configure_args=
1652 ac_configure_args0=
1653 ac_configure_args1=
1654 ac_must_keep_next=false
1655 for ac_pass in 1 2
1657 for ac_arg
1659 case $ac_arg in
1660 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1661 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1662 | -silent | --silent | --silen | --sile | --sil)
1663 continue ;;
1664 *\'*)
1665 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1666 esac
1667 case $ac_pass in
1668 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1670 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1671 if test $ac_must_keep_next = true; then
1672 ac_must_keep_next=false # Got value, back to normal.
1673 else
1674 case $ac_arg in
1675 *=* | --config-cache | -C | -disable-* | --disable-* \
1676 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1677 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1678 | -with-* | --with-* | -without-* | --without-* | --x)
1679 case "$ac_configure_args0 " in
1680 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1681 esac
1683 -* ) ac_must_keep_next=true ;;
1684 esac
1686 ac_configure_args="$ac_configure_args '$ac_arg'"
1688 esac
1689 done
1690 done
1691 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1692 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1694 # When interrupted or exit'd, cleanup temporary files, and complete
1695 # config.log. We remove comments because anyway the quotes in there
1696 # would cause problems or look ugly.
1697 # WARNING: Use '\'' to represent an apostrophe within the trap.
1698 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1699 trap 'exit_status=$?
1700 # Save into config.log some information that might help in debugging.
1702 echo
1704 cat <<\_ASBOX
1705 ## ---------------- ##
1706 ## Cache variables. ##
1707 ## ---------------- ##
1708 _ASBOX
1709 echo
1710 # The following way of writing the cache mishandles newlines in values,
1712 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1713 eval ac_val=\$$ac_var
1714 case $ac_val in #(
1715 *${as_nl}*)
1716 case $ac_var in #(
1717 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1718 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1719 esac
1720 case $ac_var in #(
1721 _ | IFS | as_nl) ;; #(
1722 *) $as_unset $ac_var ;;
1723 esac ;;
1724 esac
1725 done
1726 (set) 2>&1 |
1727 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1728 *${as_nl}ac_space=\ *)
1729 sed -n \
1730 "s/'\''/'\''\\\\'\'''\''/g;
1731 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1732 ;; #(
1734 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1736 esac |
1737 sort
1739 echo
1741 cat <<\_ASBOX
1742 ## ----------------- ##
1743 ## Output variables. ##
1744 ## ----------------- ##
1745 _ASBOX
1746 echo
1747 for ac_var in $ac_subst_vars
1749 eval ac_val=\$$ac_var
1750 case $ac_val in
1751 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1752 esac
1753 echo "$ac_var='\''$ac_val'\''"
1754 done | sort
1755 echo
1757 if test -n "$ac_subst_files"; then
1758 cat <<\_ASBOX
1759 ## ------------------- ##
1760 ## File substitutions. ##
1761 ## ------------------- ##
1762 _ASBOX
1763 echo
1764 for ac_var in $ac_subst_files
1766 eval ac_val=\$$ac_var
1767 case $ac_val in
1768 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1769 esac
1770 echo "$ac_var='\''$ac_val'\''"
1771 done | sort
1772 echo
1775 if test -s confdefs.h; then
1776 cat <<\_ASBOX
1777 ## ----------- ##
1778 ## confdefs.h. ##
1779 ## ----------- ##
1780 _ASBOX
1781 echo
1782 cat confdefs.h
1783 echo
1785 test "$ac_signal" != 0 &&
1786 echo "$as_me: caught signal $ac_signal"
1787 echo "$as_me: exit $exit_status"
1788 } >&5
1789 rm -f core *.core core.conftest.* &&
1790 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1791 exit $exit_status
1793 for ac_signal in 1 2 13 15; do
1794 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1795 done
1796 ac_signal=0
1798 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1799 rm -f -r conftest* confdefs.h
1801 # Predefined preprocessor variables.
1803 cat >>confdefs.h <<_ACEOF
1804 #define PACKAGE_NAME "$PACKAGE_NAME"
1805 _ACEOF
1808 cat >>confdefs.h <<_ACEOF
1809 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1810 _ACEOF
1813 cat >>confdefs.h <<_ACEOF
1814 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1815 _ACEOF
1818 cat >>confdefs.h <<_ACEOF
1819 #define PACKAGE_STRING "$PACKAGE_STRING"
1820 _ACEOF
1823 cat >>confdefs.h <<_ACEOF
1824 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1825 _ACEOF
1828 # Let the site file select an alternate cache file if it wants to.
1829 # Prefer explicitly selected file to automatically selected ones.
1830 if test -n "$CONFIG_SITE"; then
1831 set x "$CONFIG_SITE"
1832 elif test "x$prefix" != xNONE; then
1833 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1834 else
1835 set x "$ac_default_prefix/share/config.site" \
1836 "$ac_default_prefix/etc/config.site"
1838 shift
1839 for ac_site_file
1841 if test -r "$ac_site_file"; then
1842 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1843 echo "$as_me: loading site script $ac_site_file" >&6;}
1844 sed 's/^/| /' "$ac_site_file" >&5
1845 . "$ac_site_file"
1847 done
1849 if test -r "$cache_file"; then
1850 # Some versions of bash will fail to source /dev/null (special
1851 # files actually), so we avoid doing that.
1852 if test -f "$cache_file"; then
1853 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1854 echo "$as_me: loading cache $cache_file" >&6;}
1855 case $cache_file in
1856 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1857 *) . "./$cache_file";;
1858 esac
1860 else
1861 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1862 echo "$as_me: creating cache $cache_file" >&6;}
1863 >$cache_file
1866 # Check that the precious variables saved in the cache have kept the same
1867 # value.
1868 ac_cache_corrupted=false
1869 for ac_var in $ac_precious_vars; do
1870 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1871 eval ac_new_set=\$ac_env_${ac_var}_set
1872 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1873 eval ac_new_val=\$ac_env_${ac_var}_value
1874 case $ac_old_set,$ac_new_set in
1875 set,)
1876 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1877 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1878 ac_cache_corrupted=: ;;
1879 ,set)
1880 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1881 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1882 ac_cache_corrupted=: ;;
1883 ,);;
1885 if test "x$ac_old_val" != "x$ac_new_val"; then
1886 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1887 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1888 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1889 echo "$as_me: former value: $ac_old_val" >&2;}
1890 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1891 echo "$as_me: current value: $ac_new_val" >&2;}
1892 ac_cache_corrupted=:
1893 fi;;
1894 esac
1895 # Pass precious variables to config.status.
1896 if test "$ac_new_set" = set; then
1897 case $ac_new_val in
1898 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1899 *) ac_arg=$ac_var=$ac_new_val ;;
1900 esac
1901 case " $ac_configure_args " in
1902 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1903 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1904 esac
1906 done
1907 if $ac_cache_corrupted; then
1908 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1909 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1910 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1911 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1912 { (exit 1); exit 1; }; }
1939 ac_ext=c
1940 ac_cpp='$CPP $CPPFLAGS'
1941 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1942 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1943 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1946 am__api_version='1.10'
1948 ac_aux_dir=
1949 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1950 if test -f "$ac_dir/install-sh"; then
1951 ac_aux_dir=$ac_dir
1952 ac_install_sh="$ac_aux_dir/install-sh -c"
1953 break
1954 elif test -f "$ac_dir/install.sh"; then
1955 ac_aux_dir=$ac_dir
1956 ac_install_sh="$ac_aux_dir/install.sh -c"
1957 break
1958 elif test -f "$ac_dir/shtool"; then
1959 ac_aux_dir=$ac_dir
1960 ac_install_sh="$ac_aux_dir/shtool install -c"
1961 break
1963 done
1964 if test -z "$ac_aux_dir"; then
1965 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1966 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1967 { (exit 1); exit 1; }; }
1970 # These three variables are undocumented and unsupported,
1971 # and are intended to be withdrawn in a future Autoconf release.
1972 # They can cause serious problems if a builder's source tree is in a directory
1973 # whose full name contains unusual characters.
1974 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1975 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1976 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1979 # Find a good install program. We prefer a C program (faster),
1980 # so one script is as good as another. But avoid the broken or
1981 # incompatible versions:
1982 # SysV /etc/install, /usr/sbin/install
1983 # SunOS /usr/etc/install
1984 # IRIX /sbin/install
1985 # AIX /bin/install
1986 # AmigaOS /C/install, which installs bootblocks on floppy discs
1987 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1988 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1989 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1990 # OS/2's system install, which has a completely different semantic
1991 # ./install, which can be erroneously created by make from ./install.sh.
1992 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1993 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
1994 if test -z "$INSTALL"; then
1995 if test "${ac_cv_path_install+set}" = set; then
1996 echo $ECHO_N "(cached) $ECHO_C" >&6
1997 else
1998 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1999 for as_dir in $PATH
2001 IFS=$as_save_IFS
2002 test -z "$as_dir" && as_dir=.
2003 # Account for people who put trailing slashes in PATH elements.
2004 case $as_dir/ in
2005 ./ | .// | /cC/* | \
2006 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2007 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2008 /usr/ucb/* ) ;;
2010 # OSF1 and SCO ODT 3.0 have their own names for install.
2011 # Don't use installbsd from OSF since it installs stuff as root
2012 # by default.
2013 for ac_prog in ginstall scoinst install; do
2014 for ac_exec_ext in '' $ac_executable_extensions; do
2015 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2016 if test $ac_prog = install &&
2017 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2018 # AIX install. It has an incompatible calling convention.
2020 elif test $ac_prog = install &&
2021 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2022 # program-specific install script used by HP pwplus--don't use.
2024 else
2025 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2026 break 3
2029 done
2030 done
2032 esac
2033 done
2034 IFS=$as_save_IFS
2038 if test "${ac_cv_path_install+set}" = set; then
2039 INSTALL=$ac_cv_path_install
2040 else
2041 # As a last resort, use the slow shell script. Don't cache a
2042 # value for INSTALL within a source directory, because that will
2043 # break other packages using the cache if that directory is
2044 # removed, or if the value is a relative name.
2045 INSTALL=$ac_install_sh
2048 { echo "$as_me:$LINENO: result: $INSTALL" >&5
2049 echo "${ECHO_T}$INSTALL" >&6; }
2051 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2052 # It thinks the first close brace ends the variable substitution.
2053 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2055 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2057 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2059 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2060 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2061 # Just in case
2062 sleep 1
2063 echo timestamp > conftest.file
2064 # Do `set' in a subshell so we don't clobber the current shell's
2065 # arguments. Must try -L first in case configure is actually a
2066 # symlink; some systems play weird games with the mod time of symlinks
2067 # (eg FreeBSD returns the mod time of the symlink's containing
2068 # directory).
2069 if (
2070 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2071 if test "$*" = "X"; then
2072 # -L didn't work.
2073 set X `ls -t $srcdir/configure conftest.file`
2075 rm -f conftest.file
2076 if test "$*" != "X $srcdir/configure conftest.file" \
2077 && test "$*" != "X conftest.file $srcdir/configure"; then
2079 # If neither matched, then we have a broken ls. This can happen
2080 # if, for instance, CONFIG_SHELL is bash and it inherits a
2081 # broken ls alias from the environment. This has actually
2082 # happened. Such a system could not be considered "sane".
2083 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2084 alias in your environment" >&5
2085 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2086 alias in your environment" >&2;}
2087 { (exit 1); exit 1; }; }
2090 test "$2" = conftest.file
2092 then
2093 # Ok.
2095 else
2096 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2097 Check your system clock" >&5
2098 echo "$as_me: error: newly created file is older than distributed files!
2099 Check your system clock" >&2;}
2100 { (exit 1); exit 1; }; }
2102 { echo "$as_me:$LINENO: result: yes" >&5
2103 echo "${ECHO_T}yes" >&6; }
2104 test "$program_prefix" != NONE &&
2105 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2106 # Use a double $ so make ignores it.
2107 test "$program_suffix" != NONE &&
2108 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2109 # Double any \ or $. echo might interpret backslashes.
2110 # By default was `s,x,x', remove it if useless.
2111 cat <<\_ACEOF >conftest.sed
2112 s/[\\$]/&&/g;s/;s,x,x,$//
2113 _ACEOF
2114 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2115 rm -f conftest.sed
2117 # expand $ac_aux_dir to an absolute path
2118 am_aux_dir=`cd $ac_aux_dir && pwd`
2120 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2121 # Use eval to expand $SHELL
2122 if eval "$MISSING --run true"; then
2123 am_missing_run="$MISSING --run "
2124 else
2125 am_missing_run=
2126 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2127 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2130 { echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2131 echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
2132 if test -z "$MKDIR_P"; then
2133 if test "${ac_cv_path_mkdir+set}" = set; then
2134 echo $ECHO_N "(cached) $ECHO_C" >&6
2135 else
2136 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2137 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2139 IFS=$as_save_IFS
2140 test -z "$as_dir" && as_dir=.
2141 for ac_prog in mkdir gmkdir; do
2142 for ac_exec_ext in '' $ac_executable_extensions; do
2143 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2144 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2145 'mkdir (GNU coreutils) '* | \
2146 'mkdir (coreutils) '* | \
2147 'mkdir (fileutils) '4.1*)
2148 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2149 break 3;;
2150 esac
2151 done
2152 done
2153 done
2154 IFS=$as_save_IFS
2158 if test "${ac_cv_path_mkdir+set}" = set; then
2159 MKDIR_P="$ac_cv_path_mkdir -p"
2160 else
2161 # As a last resort, use the slow shell script. Don't cache a
2162 # value for MKDIR_P within a source directory, because that will
2163 # break other packages using the cache if that directory is
2164 # removed, or if the value is a relative name.
2165 test -d ./--version && rmdir ./--version
2166 MKDIR_P="$ac_install_sh -d"
2169 { echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2170 echo "${ECHO_T}$MKDIR_P" >&6; }
2172 mkdir_p="$MKDIR_P"
2173 case $mkdir_p in
2174 [\\/$]* | ?:[\\/]*) ;;
2175 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2176 esac
2178 for ac_prog in gawk mawk nawk awk
2180 # Extract the first word of "$ac_prog", so it can be a program name with args.
2181 set dummy $ac_prog; ac_word=$2
2182 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2183 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2184 if test "${ac_cv_prog_AWK+set}" = set; then
2185 echo $ECHO_N "(cached) $ECHO_C" >&6
2186 else
2187 if test -n "$AWK"; then
2188 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2189 else
2190 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2191 for as_dir in $PATH
2193 IFS=$as_save_IFS
2194 test -z "$as_dir" && as_dir=.
2195 for ac_exec_ext in '' $ac_executable_extensions; do
2196 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2197 ac_cv_prog_AWK="$ac_prog"
2198 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2199 break 2
2201 done
2202 done
2203 IFS=$as_save_IFS
2207 AWK=$ac_cv_prog_AWK
2208 if test -n "$AWK"; then
2209 { echo "$as_me:$LINENO: result: $AWK" >&5
2210 echo "${ECHO_T}$AWK" >&6; }
2211 else
2212 { echo "$as_me:$LINENO: result: no" >&5
2213 echo "${ECHO_T}no" >&6; }
2217 test -n "$AWK" && break
2218 done
2220 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2221 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2222 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2223 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2224 echo $ECHO_N "(cached) $ECHO_C" >&6
2225 else
2226 cat >conftest.make <<\_ACEOF
2227 SHELL = /bin/sh
2228 all:
2229 @echo '@@@%%%=$(MAKE)=@@@%%%'
2230 _ACEOF
2231 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2232 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2233 *@@@%%%=?*=@@@%%%*)
2234 eval ac_cv_prog_make_${ac_make}_set=yes;;
2236 eval ac_cv_prog_make_${ac_make}_set=no;;
2237 esac
2238 rm -f conftest.make
2240 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2241 { echo "$as_me:$LINENO: result: yes" >&5
2242 echo "${ECHO_T}yes" >&6; }
2243 SET_MAKE=
2244 else
2245 { echo "$as_me:$LINENO: result: no" >&5
2246 echo "${ECHO_T}no" >&6; }
2247 SET_MAKE="MAKE=${MAKE-make}"
2250 rm -rf .tst 2>/dev/null
2251 mkdir .tst 2>/dev/null
2252 if test -d .tst; then
2253 am__leading_dot=.
2254 else
2255 am__leading_dot=_
2257 rmdir .tst 2>/dev/null
2259 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2260 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2261 # is not polluted with repeated "-I."
2262 am__isrc=' -I$(srcdir)'
2263 # test to see if srcdir already configured
2264 if test -f $srcdir/config.status; then
2265 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2266 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2267 { (exit 1); exit 1; }; }
2271 # test whether we have cygpath
2272 if test -z "$CYGPATH_W"; then
2273 if (cygpath --version) >/dev/null 2>/dev/null; then
2274 CYGPATH_W='cygpath -w'
2275 else
2276 CYGPATH_W=echo
2281 # Define the identity of the package.
2282 PACKAGE=vimicxx
2283 VERSION=0.1
2286 # Some tools Automake needs.
2288 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2291 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2294 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2297 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2300 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2302 install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
2304 # Installed binaries are usually stripped using `strip' when the user
2305 # run `make install-strip'. However `strip' might not be the right
2306 # tool to use in cross-compilation environments, therefore Automake
2307 # will honor the `STRIP' environment variable to overrule this program.
2308 if test "$cross_compiling" != no; then
2309 if test -n "$ac_tool_prefix"; then
2310 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2311 set dummy ${ac_tool_prefix}strip; ac_word=$2
2312 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2313 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2314 if test "${ac_cv_prog_STRIP+set}" = set; then
2315 echo $ECHO_N "(cached) $ECHO_C" >&6
2316 else
2317 if test -n "$STRIP"; then
2318 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2319 else
2320 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2321 for as_dir in $PATH
2323 IFS=$as_save_IFS
2324 test -z "$as_dir" && as_dir=.
2325 for ac_exec_ext in '' $ac_executable_extensions; do
2326 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2327 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2328 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2329 break 2
2331 done
2332 done
2333 IFS=$as_save_IFS
2337 STRIP=$ac_cv_prog_STRIP
2338 if test -n "$STRIP"; then
2339 { echo "$as_me:$LINENO: result: $STRIP" >&5
2340 echo "${ECHO_T}$STRIP" >&6; }
2341 else
2342 { echo "$as_me:$LINENO: result: no" >&5
2343 echo "${ECHO_T}no" >&6; }
2348 if test -z "$ac_cv_prog_STRIP"; then
2349 ac_ct_STRIP=$STRIP
2350 # Extract the first word of "strip", so it can be a program name with args.
2351 set dummy strip; ac_word=$2
2352 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2353 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2354 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2355 echo $ECHO_N "(cached) $ECHO_C" >&6
2356 else
2357 if test -n "$ac_ct_STRIP"; then
2358 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2359 else
2360 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2361 for as_dir in $PATH
2363 IFS=$as_save_IFS
2364 test -z "$as_dir" && as_dir=.
2365 for ac_exec_ext in '' $ac_executable_extensions; do
2366 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2367 ac_cv_prog_ac_ct_STRIP="strip"
2368 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2369 break 2
2371 done
2372 done
2373 IFS=$as_save_IFS
2377 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2378 if test -n "$ac_ct_STRIP"; then
2379 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2380 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2381 else
2382 { echo "$as_me:$LINENO: result: no" >&5
2383 echo "${ECHO_T}no" >&6; }
2386 if test "x$ac_ct_STRIP" = x; then
2387 STRIP=":"
2388 else
2389 case $cross_compiling:$ac_tool_warned in
2390 yes:)
2391 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2392 whose name does not start with the host triplet. If you think this
2393 configuration is useful to you, please write to autoconf@gnu.org." >&5
2394 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2395 whose name does not start with the host triplet. If you think this
2396 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2397 ac_tool_warned=yes ;;
2398 esac
2399 STRIP=$ac_ct_STRIP
2401 else
2402 STRIP="$ac_cv_prog_STRIP"
2406 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2408 # We need awk for the "check" target. The system "awk" is bad on
2409 # some platforms.
2410 # Always define AMTAR for backward compatibility.
2412 AMTAR=${AMTAR-"${am_missing_run}tar"}
2414 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2421 ac_config_headers="$ac_config_headers config.h"
2424 # Checks for programs.
2425 ac_ext=cpp
2426 ac_cpp='$CXXCPP $CPPFLAGS'
2427 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2428 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2429 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2430 if test -z "$CXX"; then
2431 if test -n "$CCC"; then
2432 CXX=$CCC
2433 else
2434 if test -n "$ac_tool_prefix"; then
2435 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2437 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2438 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2439 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2440 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2441 if test "${ac_cv_prog_CXX+set}" = set; then
2442 echo $ECHO_N "(cached) $ECHO_C" >&6
2443 else
2444 if test -n "$CXX"; then
2445 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2446 else
2447 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2448 for as_dir in $PATH
2450 IFS=$as_save_IFS
2451 test -z "$as_dir" && as_dir=.
2452 for ac_exec_ext in '' $ac_executable_extensions; do
2453 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2454 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2455 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2456 break 2
2458 done
2459 done
2460 IFS=$as_save_IFS
2464 CXX=$ac_cv_prog_CXX
2465 if test -n "$CXX"; then
2466 { echo "$as_me:$LINENO: result: $CXX" >&5
2467 echo "${ECHO_T}$CXX" >&6; }
2468 else
2469 { echo "$as_me:$LINENO: result: no" >&5
2470 echo "${ECHO_T}no" >&6; }
2474 test -n "$CXX" && break
2475 done
2477 if test -z "$CXX"; then
2478 ac_ct_CXX=$CXX
2479 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2481 # Extract the first word of "$ac_prog", so it can be a program name with args.
2482 set dummy $ac_prog; ac_word=$2
2483 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2484 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2485 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2486 echo $ECHO_N "(cached) $ECHO_C" >&6
2487 else
2488 if test -n "$ac_ct_CXX"; then
2489 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2490 else
2491 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2492 for as_dir in $PATH
2494 IFS=$as_save_IFS
2495 test -z "$as_dir" && as_dir=.
2496 for ac_exec_ext in '' $ac_executable_extensions; do
2497 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2498 ac_cv_prog_ac_ct_CXX="$ac_prog"
2499 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2500 break 2
2502 done
2503 done
2504 IFS=$as_save_IFS
2508 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2509 if test -n "$ac_ct_CXX"; then
2510 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2511 echo "${ECHO_T}$ac_ct_CXX" >&6; }
2512 else
2513 { echo "$as_me:$LINENO: result: no" >&5
2514 echo "${ECHO_T}no" >&6; }
2518 test -n "$ac_ct_CXX" && break
2519 done
2521 if test "x$ac_ct_CXX" = x; then
2522 CXX="g++"
2523 else
2524 case $cross_compiling:$ac_tool_warned in
2525 yes:)
2526 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2527 whose name does not start with the host triplet. If you think this
2528 configuration is useful to you, please write to autoconf@gnu.org." >&5
2529 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2530 whose name does not start with the host triplet. If you think this
2531 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2532 ac_tool_warned=yes ;;
2533 esac
2534 CXX=$ac_ct_CXX
2540 # Provide some information about the compiler.
2541 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
2542 ac_compiler=`set X $ac_compile; echo $2`
2543 { (ac_try="$ac_compiler --version >&5"
2544 case "(($ac_try" in
2545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2546 *) ac_try_echo=$ac_try;;
2547 esac
2548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2549 (eval "$ac_compiler --version >&5") 2>&5
2550 ac_status=$?
2551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2552 (exit $ac_status); }
2553 { (ac_try="$ac_compiler -v >&5"
2554 case "(($ac_try" in
2555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2556 *) ac_try_echo=$ac_try;;
2557 esac
2558 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2559 (eval "$ac_compiler -v >&5") 2>&5
2560 ac_status=$?
2561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2562 (exit $ac_status); }
2563 { (ac_try="$ac_compiler -V >&5"
2564 case "(($ac_try" in
2565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2566 *) ac_try_echo=$ac_try;;
2567 esac
2568 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2569 (eval "$ac_compiler -V >&5") 2>&5
2570 ac_status=$?
2571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2572 (exit $ac_status); }
2574 cat >conftest.$ac_ext <<_ACEOF
2575 /* confdefs.h. */
2576 _ACEOF
2577 cat confdefs.h >>conftest.$ac_ext
2578 cat >>conftest.$ac_ext <<_ACEOF
2579 /* end confdefs.h. */
2582 main ()
2586 return 0;
2588 _ACEOF
2589 ac_clean_files_save=$ac_clean_files
2590 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2591 # Try to create an executable without -o first, disregard a.out.
2592 # It will help us diagnose broken compilers, and finding out an intuition
2593 # of exeext.
2594 { echo "$as_me:$LINENO: checking for C++ compiler default output file name" >&5
2595 echo $ECHO_N "checking for C++ compiler default output file name... $ECHO_C" >&6; }
2596 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2598 # List of possible output files, starting from the most likely.
2599 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2600 # only as a last resort. b.out is created by i960 compilers.
2601 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2603 # The IRIX 6 linker writes into existing files which may not be
2604 # executable, retaining their permissions. Remove them first so a
2605 # subsequent execution test works.
2606 ac_rmfiles=
2607 for ac_file in $ac_files
2609 case $ac_file in
2610 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2611 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2612 esac
2613 done
2614 rm -f $ac_rmfiles
2616 if { (ac_try="$ac_link_default"
2617 case "(($ac_try" in
2618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2619 *) ac_try_echo=$ac_try;;
2620 esac
2621 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2622 (eval "$ac_link_default") 2>&5
2623 ac_status=$?
2624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2625 (exit $ac_status); }; then
2626 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2627 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2628 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2629 # so that the user can short-circuit this test for compilers unknown to
2630 # Autoconf.
2631 for ac_file in $ac_files ''
2633 test -f "$ac_file" || continue
2634 case $ac_file in
2635 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2637 [ab].out )
2638 # We found the default executable, but exeext='' is most
2639 # certainly right.
2640 break;;
2641 *.* )
2642 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2643 then :; else
2644 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2646 # We set ac_cv_exeext here because the later test for it is not
2647 # safe: cross compilers may not add the suffix if given an `-o'
2648 # argument, so we may need to know it at that point already.
2649 # Even if this section looks crufty: it has the advantage of
2650 # actually working.
2651 break;;
2653 break;;
2654 esac
2655 done
2656 test "$ac_cv_exeext" = no && ac_cv_exeext=
2658 else
2659 ac_file=''
2662 { echo "$as_me:$LINENO: result: $ac_file" >&5
2663 echo "${ECHO_T}$ac_file" >&6; }
2664 if test -z "$ac_file"; then
2665 echo "$as_me: failed program was:" >&5
2666 sed 's/^/| /' conftest.$ac_ext >&5
2668 { { echo "$as_me:$LINENO: error: C++ compiler cannot create executables
2669 See \`config.log' for more details." >&5
2670 echo "$as_me: error: C++ compiler cannot create executables
2671 See \`config.log' for more details." >&2;}
2672 { (exit 77); exit 77; }; }
2675 ac_exeext=$ac_cv_exeext
2677 # Check that the compiler produces executables we can run. If not, either
2678 # the compiler is broken, or we cross compile.
2679 { echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
2680 echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6; }
2681 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2682 # If not cross compiling, check that we can run a simple program.
2683 if test "$cross_compiling" != yes; then
2684 if { ac_try='./$ac_file'
2685 { (case "(($ac_try" in
2686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2687 *) ac_try_echo=$ac_try;;
2688 esac
2689 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2690 (eval "$ac_try") 2>&5
2691 ac_status=$?
2692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2693 (exit $ac_status); }; }; then
2694 cross_compiling=no
2695 else
2696 if test "$cross_compiling" = maybe; then
2697 cross_compiling=yes
2698 else
2699 { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
2700 If you meant to cross compile, use \`--host'.
2701 See \`config.log' for more details." >&5
2702 echo "$as_me: error: cannot run C++ compiled programs.
2703 If you meant to cross compile, use \`--host'.
2704 See \`config.log' for more details." >&2;}
2705 { (exit 1); exit 1; }; }
2709 { echo "$as_me:$LINENO: result: yes" >&5
2710 echo "${ECHO_T}yes" >&6; }
2712 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2713 ac_clean_files=$ac_clean_files_save
2714 # Check that the compiler produces executables we can run. If not, either
2715 # the compiler is broken, or we cross compile.
2716 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2717 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2718 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2719 echo "${ECHO_T}$cross_compiling" >&6; }
2721 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2722 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2723 if { (ac_try="$ac_link"
2724 case "(($ac_try" in
2725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2726 *) ac_try_echo=$ac_try;;
2727 esac
2728 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2729 (eval "$ac_link") 2>&5
2730 ac_status=$?
2731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2732 (exit $ac_status); }; then
2733 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2734 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2735 # work properly (i.e., refer to `conftest.exe'), while it won't with
2736 # `rm'.
2737 for ac_file in conftest.exe conftest conftest.*; do
2738 test -f "$ac_file" || continue
2739 case $ac_file in
2740 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2741 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2742 break;;
2743 * ) break;;
2744 esac
2745 done
2746 else
2747 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2748 See \`config.log' for more details." >&5
2749 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2750 See \`config.log' for more details." >&2;}
2751 { (exit 1); exit 1; }; }
2754 rm -f conftest$ac_cv_exeext
2755 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2756 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2758 rm -f conftest.$ac_ext
2759 EXEEXT=$ac_cv_exeext
2760 ac_exeext=$EXEEXT
2761 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2762 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2763 if test "${ac_cv_objext+set}" = set; then
2764 echo $ECHO_N "(cached) $ECHO_C" >&6
2765 else
2766 cat >conftest.$ac_ext <<_ACEOF
2767 /* confdefs.h. */
2768 _ACEOF
2769 cat confdefs.h >>conftest.$ac_ext
2770 cat >>conftest.$ac_ext <<_ACEOF
2771 /* end confdefs.h. */
2774 main ()
2778 return 0;
2780 _ACEOF
2781 rm -f conftest.o conftest.obj
2782 if { (ac_try="$ac_compile"
2783 case "(($ac_try" in
2784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2785 *) ac_try_echo=$ac_try;;
2786 esac
2787 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2788 (eval "$ac_compile") 2>&5
2789 ac_status=$?
2790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2791 (exit $ac_status); }; then
2792 for ac_file in conftest.o conftest.obj conftest.*; do
2793 test -f "$ac_file" || continue;
2794 case $ac_file in
2795 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2796 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2797 break;;
2798 esac
2799 done
2800 else
2801 echo "$as_me: failed program was:" >&5
2802 sed 's/^/| /' conftest.$ac_ext >&5
2804 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2805 See \`config.log' for more details." >&5
2806 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2807 See \`config.log' for more details." >&2;}
2808 { (exit 1); exit 1; }; }
2811 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2813 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2814 echo "${ECHO_T}$ac_cv_objext" >&6; }
2815 OBJEXT=$ac_cv_objext
2816 ac_objext=$OBJEXT
2817 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2818 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
2819 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2820 echo $ECHO_N "(cached) $ECHO_C" >&6
2821 else
2822 cat >conftest.$ac_ext <<_ACEOF
2823 /* confdefs.h. */
2824 _ACEOF
2825 cat confdefs.h >>conftest.$ac_ext
2826 cat >>conftest.$ac_ext <<_ACEOF
2827 /* end confdefs.h. */
2830 main ()
2832 #ifndef __GNUC__
2833 choke me
2834 #endif
2837 return 0;
2839 _ACEOF
2840 rm -f conftest.$ac_objext
2841 if { (ac_try="$ac_compile"
2842 case "(($ac_try" in
2843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2844 *) ac_try_echo=$ac_try;;
2845 esac
2846 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2847 (eval "$ac_compile") 2>conftest.er1
2848 ac_status=$?
2849 grep -v '^ *+' conftest.er1 >conftest.err
2850 rm -f conftest.er1
2851 cat conftest.err >&5
2852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2853 (exit $ac_status); } && {
2854 test -z "$ac_cxx_werror_flag" ||
2855 test ! -s conftest.err
2856 } && test -s conftest.$ac_objext; then
2857 ac_compiler_gnu=yes
2858 else
2859 echo "$as_me: failed program was:" >&5
2860 sed 's/^/| /' conftest.$ac_ext >&5
2862 ac_compiler_gnu=no
2865 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2866 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2869 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2870 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
2871 GXX=`test $ac_compiler_gnu = yes && echo yes`
2872 ac_test_CXXFLAGS=${CXXFLAGS+set}
2873 ac_save_CXXFLAGS=$CXXFLAGS
2874 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2875 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
2876 if test "${ac_cv_prog_cxx_g+set}" = set; then
2877 echo $ECHO_N "(cached) $ECHO_C" >&6
2878 else
2879 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
2880 ac_cxx_werror_flag=yes
2881 ac_cv_prog_cxx_g=no
2882 CXXFLAGS="-g"
2883 cat >conftest.$ac_ext <<_ACEOF
2884 /* confdefs.h. */
2885 _ACEOF
2886 cat confdefs.h >>conftest.$ac_ext
2887 cat >>conftest.$ac_ext <<_ACEOF
2888 /* end confdefs.h. */
2891 main ()
2895 return 0;
2897 _ACEOF
2898 rm -f conftest.$ac_objext
2899 if { (ac_try="$ac_compile"
2900 case "(($ac_try" in
2901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2902 *) ac_try_echo=$ac_try;;
2903 esac
2904 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2905 (eval "$ac_compile") 2>conftest.er1
2906 ac_status=$?
2907 grep -v '^ *+' conftest.er1 >conftest.err
2908 rm -f conftest.er1
2909 cat conftest.err >&5
2910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2911 (exit $ac_status); } && {
2912 test -z "$ac_cxx_werror_flag" ||
2913 test ! -s conftest.err
2914 } && test -s conftest.$ac_objext; then
2915 ac_cv_prog_cxx_g=yes
2916 else
2917 echo "$as_me: failed program was:" >&5
2918 sed 's/^/| /' conftest.$ac_ext >&5
2920 CXXFLAGS=""
2921 cat >conftest.$ac_ext <<_ACEOF
2922 /* confdefs.h. */
2923 _ACEOF
2924 cat confdefs.h >>conftest.$ac_ext
2925 cat >>conftest.$ac_ext <<_ACEOF
2926 /* end confdefs.h. */
2929 main ()
2933 return 0;
2935 _ACEOF
2936 rm -f conftest.$ac_objext
2937 if { (ac_try="$ac_compile"
2938 case "(($ac_try" in
2939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2940 *) ac_try_echo=$ac_try;;
2941 esac
2942 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2943 (eval "$ac_compile") 2>conftest.er1
2944 ac_status=$?
2945 grep -v '^ *+' conftest.er1 >conftest.err
2946 rm -f conftest.er1
2947 cat conftest.err >&5
2948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2949 (exit $ac_status); } && {
2950 test -z "$ac_cxx_werror_flag" ||
2951 test ! -s conftest.err
2952 } && test -s conftest.$ac_objext; then
2954 else
2955 echo "$as_me: failed program was:" >&5
2956 sed 's/^/| /' conftest.$ac_ext >&5
2958 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
2959 CXXFLAGS="-g"
2960 cat >conftest.$ac_ext <<_ACEOF
2961 /* confdefs.h. */
2962 _ACEOF
2963 cat confdefs.h >>conftest.$ac_ext
2964 cat >>conftest.$ac_ext <<_ACEOF
2965 /* end confdefs.h. */
2968 main ()
2972 return 0;
2974 _ACEOF
2975 rm -f conftest.$ac_objext
2976 if { (ac_try="$ac_compile"
2977 case "(($ac_try" in
2978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2979 *) ac_try_echo=$ac_try;;
2980 esac
2981 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2982 (eval "$ac_compile") 2>conftest.er1
2983 ac_status=$?
2984 grep -v '^ *+' conftest.er1 >conftest.err
2985 rm -f conftest.er1
2986 cat conftest.err >&5
2987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2988 (exit $ac_status); } && {
2989 test -z "$ac_cxx_werror_flag" ||
2990 test ! -s conftest.err
2991 } && test -s conftest.$ac_objext; then
2992 ac_cv_prog_cxx_g=yes
2993 else
2994 echo "$as_me: failed program was:" >&5
2995 sed 's/^/| /' conftest.$ac_ext >&5
3000 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3003 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3006 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3007 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3009 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3010 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3011 if test "$ac_test_CXXFLAGS" = set; then
3012 CXXFLAGS=$ac_save_CXXFLAGS
3013 elif test $ac_cv_prog_cxx_g = yes; then
3014 if test "$GXX" = yes; then
3015 CXXFLAGS="-g -O2"
3016 else
3017 CXXFLAGS="-g"
3019 else
3020 if test "$GXX" = yes; then
3021 CXXFLAGS="-O2"
3022 else
3023 CXXFLAGS=
3026 ac_ext=c
3027 ac_cpp='$CPP $CPPFLAGS'
3028 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3029 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3030 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3031 DEPDIR="${am__leading_dot}deps"
3033 ac_config_commands="$ac_config_commands depfiles"
3036 am_make=${MAKE-make}
3037 cat > confinc << 'END'
3038 am__doit:
3039 @echo done
3040 .PHONY: am__doit
3042 # If we don't find an include directive, just comment out the code.
3043 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3044 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
3045 am__include="#"
3046 am__quote=
3047 _am_result=none
3048 # First try GNU make style include.
3049 echo "include confinc" > confmf
3050 # We grep out `Entering directory' and `Leaving directory'
3051 # messages which can occur if `w' ends up in MAKEFLAGS.
3052 # In particular we don't look at `^make:' because GNU make might
3053 # be invoked under some other name (usually "gmake"), in which
3054 # case it prints its new name instead of `make'.
3055 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3056 am__include=include
3057 am__quote=
3058 _am_result=GNU
3060 # Now try BSD make style include.
3061 if test "$am__include" = "#"; then
3062 echo '.include "confinc"' > confmf
3063 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3064 am__include=.include
3065 am__quote="\""
3066 _am_result=BSD
3071 { echo "$as_me:$LINENO: result: $_am_result" >&5
3072 echo "${ECHO_T}$_am_result" >&6; }
3073 rm -f confinc confmf
3075 # Check whether --enable-dependency-tracking was given.
3076 if test "${enable_dependency_tracking+set}" = set; then
3077 enableval=$enable_dependency_tracking;
3080 if test "x$enable_dependency_tracking" != xno; then
3081 am_depcomp="$ac_aux_dir/depcomp"
3082 AMDEPBACKSLASH='\'
3084 if test "x$enable_dependency_tracking" != xno; then
3085 AMDEP_TRUE=
3086 AMDEP_FALSE='#'
3087 else
3088 AMDEP_TRUE='#'
3089 AMDEP_FALSE=
3094 depcc="$CXX" am_compiler_list=
3096 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3097 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3098 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
3099 echo $ECHO_N "(cached) $ECHO_C" >&6
3100 else
3101 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3102 # We make a subdir and do the tests there. Otherwise we can end up
3103 # making bogus files that we don't know about and never remove. For
3104 # instance it was reported that on HP-UX the gcc test will end up
3105 # making a dummy file named `D' -- because `-MD' means `put the output
3106 # in D'.
3107 mkdir conftest.dir
3108 # Copy depcomp to subdir because otherwise we won't find it if we're
3109 # using a relative directory.
3110 cp "$am_depcomp" conftest.dir
3111 cd conftest.dir
3112 # We will build objects and dependencies in a subdirectory because
3113 # it helps to detect inapplicable dependency modes. For instance
3114 # both Tru64's cc and ICC support -MD to output dependencies as a
3115 # side effect of compilation, but ICC will put the dependencies in
3116 # the current directory while Tru64 will put them in the object
3117 # directory.
3118 mkdir sub
3120 am_cv_CXX_dependencies_compiler_type=none
3121 if test "$am_compiler_list" = ""; then
3122 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3124 for depmode in $am_compiler_list; do
3125 # Setup a source with many dependencies, because some compilers
3126 # like to wrap large dependency lists on column 80 (with \), and
3127 # we should not choose a depcomp mode which is confused by this.
3129 # We need to recreate these files for each test, as the compiler may
3130 # overwrite some of them when testing with obscure command lines.
3131 # This happens at least with the AIX C compiler.
3132 : > sub/conftest.c
3133 for i in 1 2 3 4 5 6; do
3134 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3135 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3136 # Solaris 8's {/usr,}/bin/sh.
3137 touch sub/conftst$i.h
3138 done
3139 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3141 case $depmode in
3142 nosideeffect)
3143 # after this tag, mechanisms are not by side-effect, so they'll
3144 # only be used when explicitly requested
3145 if test "x$enable_dependency_tracking" = xyes; then
3146 continue
3147 else
3148 break
3151 none) break ;;
3152 esac
3153 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3154 # mode. It turns out that the SunPro C++ compiler does not properly
3155 # handle `-M -o', and we need to detect this.
3156 if depmode=$depmode \
3157 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3158 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3159 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3160 >/dev/null 2>conftest.err &&
3161 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3162 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3163 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3164 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3165 # icc doesn't choke on unknown options, it will just issue warnings
3166 # or remarks (even with -Werror). So we grep stderr for any message
3167 # that says an option was ignored or not supported.
3168 # When given -MP, icc 7.0 and 7.1 complain thusly:
3169 # icc: Command line warning: ignoring option '-M'; no argument required
3170 # The diagnosis changed in icc 8.0:
3171 # icc: Command line remark: option '-MP' not supported
3172 if (grep 'ignoring option' conftest.err ||
3173 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3174 am_cv_CXX_dependencies_compiler_type=$depmode
3175 break
3178 done
3180 cd ..
3181 rm -rf conftest.dir
3182 else
3183 am_cv_CXX_dependencies_compiler_type=none
3187 { echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
3188 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
3189 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
3192 test "x$enable_dependency_tracking" != xno \
3193 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
3194 am__fastdepCXX_TRUE=
3195 am__fastdepCXX_FALSE='#'
3196 else
3197 am__fastdepCXX_TRUE='#'
3198 am__fastdepCXX_FALSE=
3202 ac_ext=c
3203 ac_cpp='$CPP $CPPFLAGS'
3204 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3205 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3206 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3207 if test -n "$ac_tool_prefix"; then
3208 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3209 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3210 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3211 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3212 if test "${ac_cv_prog_CC+set}" = set; then
3213 echo $ECHO_N "(cached) $ECHO_C" >&6
3214 else
3215 if test -n "$CC"; then
3216 ac_cv_prog_CC="$CC" # Let the user override the test.
3217 else
3218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3219 for as_dir in $PATH
3221 IFS=$as_save_IFS
3222 test -z "$as_dir" && as_dir=.
3223 for ac_exec_ext in '' $ac_executable_extensions; do
3224 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3225 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3226 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3227 break 2
3229 done
3230 done
3231 IFS=$as_save_IFS
3235 CC=$ac_cv_prog_CC
3236 if test -n "$CC"; then
3237 { echo "$as_me:$LINENO: result: $CC" >&5
3238 echo "${ECHO_T}$CC" >&6; }
3239 else
3240 { echo "$as_me:$LINENO: result: no" >&5
3241 echo "${ECHO_T}no" >&6; }
3246 if test -z "$ac_cv_prog_CC"; then
3247 ac_ct_CC=$CC
3248 # Extract the first word of "gcc", so it can be a program name with args.
3249 set dummy gcc; ac_word=$2
3250 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3251 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3252 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3253 echo $ECHO_N "(cached) $ECHO_C" >&6
3254 else
3255 if test -n "$ac_ct_CC"; then
3256 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3257 else
3258 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3259 for as_dir in $PATH
3261 IFS=$as_save_IFS
3262 test -z "$as_dir" && as_dir=.
3263 for ac_exec_ext in '' $ac_executable_extensions; do
3264 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3265 ac_cv_prog_ac_ct_CC="gcc"
3266 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3267 break 2
3269 done
3270 done
3271 IFS=$as_save_IFS
3275 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3276 if test -n "$ac_ct_CC"; then
3277 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3278 echo "${ECHO_T}$ac_ct_CC" >&6; }
3279 else
3280 { echo "$as_me:$LINENO: result: no" >&5
3281 echo "${ECHO_T}no" >&6; }
3284 if test "x$ac_ct_CC" = x; then
3285 CC=""
3286 else
3287 case $cross_compiling:$ac_tool_warned in
3288 yes:)
3289 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3290 whose name does not start with the host triplet. If you think this
3291 configuration is useful to you, please write to autoconf@gnu.org." >&5
3292 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3293 whose name does not start with the host triplet. If you think this
3294 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3295 ac_tool_warned=yes ;;
3296 esac
3297 CC=$ac_ct_CC
3299 else
3300 CC="$ac_cv_prog_CC"
3303 if test -z "$CC"; then
3304 if test -n "$ac_tool_prefix"; then
3305 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3306 set dummy ${ac_tool_prefix}cc; ac_word=$2
3307 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3308 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3309 if test "${ac_cv_prog_CC+set}" = set; then
3310 echo $ECHO_N "(cached) $ECHO_C" >&6
3311 else
3312 if test -n "$CC"; then
3313 ac_cv_prog_CC="$CC" # Let the user override the test.
3314 else
3315 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3316 for as_dir in $PATH
3318 IFS=$as_save_IFS
3319 test -z "$as_dir" && as_dir=.
3320 for ac_exec_ext in '' $ac_executable_extensions; do
3321 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3322 ac_cv_prog_CC="${ac_tool_prefix}cc"
3323 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3324 break 2
3326 done
3327 done
3328 IFS=$as_save_IFS
3332 CC=$ac_cv_prog_CC
3333 if test -n "$CC"; then
3334 { echo "$as_me:$LINENO: result: $CC" >&5
3335 echo "${ECHO_T}$CC" >&6; }
3336 else
3337 { echo "$as_me:$LINENO: result: no" >&5
3338 echo "${ECHO_T}no" >&6; }
3344 if test -z "$CC"; then
3345 # Extract the first word of "cc", so it can be a program name with args.
3346 set dummy cc; ac_word=$2
3347 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3348 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3349 if test "${ac_cv_prog_CC+set}" = set; then
3350 echo $ECHO_N "(cached) $ECHO_C" >&6
3351 else
3352 if test -n "$CC"; then
3353 ac_cv_prog_CC="$CC" # Let the user override the test.
3354 else
3355 ac_prog_rejected=no
3356 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3357 for as_dir in $PATH
3359 IFS=$as_save_IFS
3360 test -z "$as_dir" && as_dir=.
3361 for ac_exec_ext in '' $ac_executable_extensions; do
3362 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3363 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3364 ac_prog_rejected=yes
3365 continue
3367 ac_cv_prog_CC="cc"
3368 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3369 break 2
3371 done
3372 done
3373 IFS=$as_save_IFS
3375 if test $ac_prog_rejected = yes; then
3376 # We found a bogon in the path, so make sure we never use it.
3377 set dummy $ac_cv_prog_CC
3378 shift
3379 if test $# != 0; then
3380 # We chose a different compiler from the bogus one.
3381 # However, it has the same basename, so the bogon will be chosen
3382 # first if we set CC to just the basename; use the full file name.
3383 shift
3384 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3389 CC=$ac_cv_prog_CC
3390 if test -n "$CC"; then
3391 { echo "$as_me:$LINENO: result: $CC" >&5
3392 echo "${ECHO_T}$CC" >&6; }
3393 else
3394 { echo "$as_me:$LINENO: result: no" >&5
3395 echo "${ECHO_T}no" >&6; }
3400 if test -z "$CC"; then
3401 if test -n "$ac_tool_prefix"; then
3402 for ac_prog in cl.exe
3404 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3405 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3406 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3407 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3408 if test "${ac_cv_prog_CC+set}" = set; then
3409 echo $ECHO_N "(cached) $ECHO_C" >&6
3410 else
3411 if test -n "$CC"; then
3412 ac_cv_prog_CC="$CC" # Let the user override the test.
3413 else
3414 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3415 for as_dir in $PATH
3417 IFS=$as_save_IFS
3418 test -z "$as_dir" && as_dir=.
3419 for ac_exec_ext in '' $ac_executable_extensions; do
3420 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3421 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3422 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3423 break 2
3425 done
3426 done
3427 IFS=$as_save_IFS
3431 CC=$ac_cv_prog_CC
3432 if test -n "$CC"; then
3433 { echo "$as_me:$LINENO: result: $CC" >&5
3434 echo "${ECHO_T}$CC" >&6; }
3435 else
3436 { echo "$as_me:$LINENO: result: no" >&5
3437 echo "${ECHO_T}no" >&6; }
3441 test -n "$CC" && break
3442 done
3444 if test -z "$CC"; then
3445 ac_ct_CC=$CC
3446 for ac_prog in cl.exe
3448 # Extract the first word of "$ac_prog", so it can be a program name with args.
3449 set dummy $ac_prog; ac_word=$2
3450 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3451 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3452 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3453 echo $ECHO_N "(cached) $ECHO_C" >&6
3454 else
3455 if test -n "$ac_ct_CC"; then
3456 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3457 else
3458 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3459 for as_dir in $PATH
3461 IFS=$as_save_IFS
3462 test -z "$as_dir" && as_dir=.
3463 for ac_exec_ext in '' $ac_executable_extensions; do
3464 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3465 ac_cv_prog_ac_ct_CC="$ac_prog"
3466 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3467 break 2
3469 done
3470 done
3471 IFS=$as_save_IFS
3475 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3476 if test -n "$ac_ct_CC"; then
3477 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3478 echo "${ECHO_T}$ac_ct_CC" >&6; }
3479 else
3480 { echo "$as_me:$LINENO: result: no" >&5
3481 echo "${ECHO_T}no" >&6; }
3485 test -n "$ac_ct_CC" && break
3486 done
3488 if test "x$ac_ct_CC" = x; then
3489 CC=""
3490 else
3491 case $cross_compiling:$ac_tool_warned in
3492 yes:)
3493 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3494 whose name does not start with the host triplet. If you think this
3495 configuration is useful to you, please write to autoconf@gnu.org." >&5
3496 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3497 whose name does not start with the host triplet. If you think this
3498 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3499 ac_tool_warned=yes ;;
3500 esac
3501 CC=$ac_ct_CC
3508 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3509 See \`config.log' for more details." >&5
3510 echo "$as_me: error: no acceptable C compiler found in \$PATH
3511 See \`config.log' for more details." >&2;}
3512 { (exit 1); exit 1; }; }
3514 # Provide some information about the compiler.
3515 echo "$as_me:$LINENO: checking for C compiler version" >&5
3516 ac_compiler=`set X $ac_compile; echo $2`
3517 { (ac_try="$ac_compiler --version >&5"
3518 case "(($ac_try" in
3519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3520 *) ac_try_echo=$ac_try;;
3521 esac
3522 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3523 (eval "$ac_compiler --version >&5") 2>&5
3524 ac_status=$?
3525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3526 (exit $ac_status); }
3527 { (ac_try="$ac_compiler -v >&5"
3528 case "(($ac_try" in
3529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3530 *) ac_try_echo=$ac_try;;
3531 esac
3532 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3533 (eval "$ac_compiler -v >&5") 2>&5
3534 ac_status=$?
3535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3536 (exit $ac_status); }
3537 { (ac_try="$ac_compiler -V >&5"
3538 case "(($ac_try" in
3539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3540 *) ac_try_echo=$ac_try;;
3541 esac
3542 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3543 (eval "$ac_compiler -V >&5") 2>&5
3544 ac_status=$?
3545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3546 (exit $ac_status); }
3548 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3549 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3550 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3551 echo $ECHO_N "(cached) $ECHO_C" >&6
3552 else
3553 cat >conftest.$ac_ext <<_ACEOF
3554 /* confdefs.h. */
3555 _ACEOF
3556 cat confdefs.h >>conftest.$ac_ext
3557 cat >>conftest.$ac_ext <<_ACEOF
3558 /* end confdefs.h. */
3561 main ()
3563 #ifndef __GNUC__
3564 choke me
3565 #endif
3568 return 0;
3570 _ACEOF
3571 rm -f conftest.$ac_objext
3572 if { (ac_try="$ac_compile"
3573 case "(($ac_try" in
3574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3575 *) ac_try_echo=$ac_try;;
3576 esac
3577 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3578 (eval "$ac_compile") 2>conftest.er1
3579 ac_status=$?
3580 grep -v '^ *+' conftest.er1 >conftest.err
3581 rm -f conftest.er1
3582 cat conftest.err >&5
3583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3584 (exit $ac_status); } && {
3585 test -z "$ac_c_werror_flag" ||
3586 test ! -s conftest.err
3587 } && test -s conftest.$ac_objext; then
3588 ac_compiler_gnu=yes
3589 else
3590 echo "$as_me: failed program was:" >&5
3591 sed 's/^/| /' conftest.$ac_ext >&5
3593 ac_compiler_gnu=no
3596 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3597 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3600 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3601 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3602 GCC=`test $ac_compiler_gnu = yes && echo yes`
3603 ac_test_CFLAGS=${CFLAGS+set}
3604 ac_save_CFLAGS=$CFLAGS
3605 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3606 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3607 if test "${ac_cv_prog_cc_g+set}" = set; then
3608 echo $ECHO_N "(cached) $ECHO_C" >&6
3609 else
3610 ac_save_c_werror_flag=$ac_c_werror_flag
3611 ac_c_werror_flag=yes
3612 ac_cv_prog_cc_g=no
3613 CFLAGS="-g"
3614 cat >conftest.$ac_ext <<_ACEOF
3615 /* confdefs.h. */
3616 _ACEOF
3617 cat confdefs.h >>conftest.$ac_ext
3618 cat >>conftest.$ac_ext <<_ACEOF
3619 /* end confdefs.h. */
3622 main ()
3626 return 0;
3628 _ACEOF
3629 rm -f conftest.$ac_objext
3630 if { (ac_try="$ac_compile"
3631 case "(($ac_try" in
3632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3633 *) ac_try_echo=$ac_try;;
3634 esac
3635 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3636 (eval "$ac_compile") 2>conftest.er1
3637 ac_status=$?
3638 grep -v '^ *+' conftest.er1 >conftest.err
3639 rm -f conftest.er1
3640 cat conftest.err >&5
3641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3642 (exit $ac_status); } && {
3643 test -z "$ac_c_werror_flag" ||
3644 test ! -s conftest.err
3645 } && test -s conftest.$ac_objext; then
3646 ac_cv_prog_cc_g=yes
3647 else
3648 echo "$as_me: failed program was:" >&5
3649 sed 's/^/| /' conftest.$ac_ext >&5
3651 CFLAGS=""
3652 cat >conftest.$ac_ext <<_ACEOF
3653 /* confdefs.h. */
3654 _ACEOF
3655 cat confdefs.h >>conftest.$ac_ext
3656 cat >>conftest.$ac_ext <<_ACEOF
3657 /* end confdefs.h. */
3660 main ()
3664 return 0;
3666 _ACEOF
3667 rm -f conftest.$ac_objext
3668 if { (ac_try="$ac_compile"
3669 case "(($ac_try" in
3670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3671 *) ac_try_echo=$ac_try;;
3672 esac
3673 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3674 (eval "$ac_compile") 2>conftest.er1
3675 ac_status=$?
3676 grep -v '^ *+' conftest.er1 >conftest.err
3677 rm -f conftest.er1
3678 cat conftest.err >&5
3679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3680 (exit $ac_status); } && {
3681 test -z "$ac_c_werror_flag" ||
3682 test ! -s conftest.err
3683 } && test -s conftest.$ac_objext; then
3685 else
3686 echo "$as_me: failed program was:" >&5
3687 sed 's/^/| /' conftest.$ac_ext >&5
3689 ac_c_werror_flag=$ac_save_c_werror_flag
3690 CFLAGS="-g"
3691 cat >conftest.$ac_ext <<_ACEOF
3692 /* confdefs.h. */
3693 _ACEOF
3694 cat confdefs.h >>conftest.$ac_ext
3695 cat >>conftest.$ac_ext <<_ACEOF
3696 /* end confdefs.h. */
3699 main ()
3703 return 0;
3705 _ACEOF
3706 rm -f conftest.$ac_objext
3707 if { (ac_try="$ac_compile"
3708 case "(($ac_try" in
3709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3710 *) ac_try_echo=$ac_try;;
3711 esac
3712 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3713 (eval "$ac_compile") 2>conftest.er1
3714 ac_status=$?
3715 grep -v '^ *+' conftest.er1 >conftest.err
3716 rm -f conftest.er1
3717 cat conftest.err >&5
3718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3719 (exit $ac_status); } && {
3720 test -z "$ac_c_werror_flag" ||
3721 test ! -s conftest.err
3722 } && test -s conftest.$ac_objext; then
3723 ac_cv_prog_cc_g=yes
3724 else
3725 echo "$as_me: failed program was:" >&5
3726 sed 's/^/| /' conftest.$ac_ext >&5
3731 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3734 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3737 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3738 ac_c_werror_flag=$ac_save_c_werror_flag
3740 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3741 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3742 if test "$ac_test_CFLAGS" = set; then
3743 CFLAGS=$ac_save_CFLAGS
3744 elif test $ac_cv_prog_cc_g = yes; then
3745 if test "$GCC" = yes; then
3746 CFLAGS="-g -O2"
3747 else
3748 CFLAGS="-g"
3750 else
3751 if test "$GCC" = yes; then
3752 CFLAGS="-O2"
3753 else
3754 CFLAGS=
3757 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3758 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3759 if test "${ac_cv_prog_cc_c89+set}" = set; then
3760 echo $ECHO_N "(cached) $ECHO_C" >&6
3761 else
3762 ac_cv_prog_cc_c89=no
3763 ac_save_CC=$CC
3764 cat >conftest.$ac_ext <<_ACEOF
3765 /* confdefs.h. */
3766 _ACEOF
3767 cat confdefs.h >>conftest.$ac_ext
3768 cat >>conftest.$ac_ext <<_ACEOF
3769 /* end confdefs.h. */
3770 #include <stdarg.h>
3771 #include <stdio.h>
3772 #include <sys/types.h>
3773 #include <sys/stat.h>
3774 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3775 struct buf { int x; };
3776 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3777 static char *e (p, i)
3778 char **p;
3779 int i;
3781 return p[i];
3783 static char *f (char * (*g) (char **, int), char **p, ...)
3785 char *s;
3786 va_list v;
3787 va_start (v,p);
3788 s = g (p, va_arg (v,int));
3789 va_end (v);
3790 return s;
3793 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3794 function prototypes and stuff, but not '\xHH' hex character constants.
3795 These don't provoke an error unfortunately, instead are silently treated
3796 as 'x'. The following induces an error, until -std is added to get
3797 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3798 array size at least. It's necessary to write '\x00'==0 to get something
3799 that's true only with -std. */
3800 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3802 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3803 inside strings and character constants. */
3804 #define FOO(x) 'x'
3805 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3807 int test (int i, double x);
3808 struct s1 {int (*f) (int a);};
3809 struct s2 {int (*f) (double a);};
3810 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3811 int argc;
3812 char **argv;
3814 main ()
3816 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3818 return 0;
3820 _ACEOF
3821 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3822 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3824 CC="$ac_save_CC $ac_arg"
3825 rm -f conftest.$ac_objext
3826 if { (ac_try="$ac_compile"
3827 case "(($ac_try" in
3828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3829 *) ac_try_echo=$ac_try;;
3830 esac
3831 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3832 (eval "$ac_compile") 2>conftest.er1
3833 ac_status=$?
3834 grep -v '^ *+' conftest.er1 >conftest.err
3835 rm -f conftest.er1
3836 cat conftest.err >&5
3837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3838 (exit $ac_status); } && {
3839 test -z "$ac_c_werror_flag" ||
3840 test ! -s conftest.err
3841 } && test -s conftest.$ac_objext; then
3842 ac_cv_prog_cc_c89=$ac_arg
3843 else
3844 echo "$as_me: failed program was:" >&5
3845 sed 's/^/| /' conftest.$ac_ext >&5
3850 rm -f core conftest.err conftest.$ac_objext
3851 test "x$ac_cv_prog_cc_c89" != "xno" && break
3852 done
3853 rm -f conftest.$ac_ext
3854 CC=$ac_save_CC
3857 # AC_CACHE_VAL
3858 case "x$ac_cv_prog_cc_c89" in
3860 { echo "$as_me:$LINENO: result: none needed" >&5
3861 echo "${ECHO_T}none needed" >&6; } ;;
3862 xno)
3863 { echo "$as_me:$LINENO: result: unsupported" >&5
3864 echo "${ECHO_T}unsupported" >&6; } ;;
3866 CC="$CC $ac_cv_prog_cc_c89"
3867 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3868 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3869 esac
3872 ac_ext=c
3873 ac_cpp='$CPP $CPPFLAGS'
3874 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3875 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3876 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3878 depcc="$CC" am_compiler_list=
3880 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3881 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3882 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3883 echo $ECHO_N "(cached) $ECHO_C" >&6
3884 else
3885 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3886 # We make a subdir and do the tests there. Otherwise we can end up
3887 # making bogus files that we don't know about and never remove. For
3888 # instance it was reported that on HP-UX the gcc test will end up
3889 # making a dummy file named `D' -- because `-MD' means `put the output
3890 # in D'.
3891 mkdir conftest.dir
3892 # Copy depcomp to subdir because otherwise we won't find it if we're
3893 # using a relative directory.
3894 cp "$am_depcomp" conftest.dir
3895 cd conftest.dir
3896 # We will build objects and dependencies in a subdirectory because
3897 # it helps to detect inapplicable dependency modes. For instance
3898 # both Tru64's cc and ICC support -MD to output dependencies as a
3899 # side effect of compilation, but ICC will put the dependencies in
3900 # the current directory while Tru64 will put them in the object
3901 # directory.
3902 mkdir sub
3904 am_cv_CC_dependencies_compiler_type=none
3905 if test "$am_compiler_list" = ""; then
3906 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3908 for depmode in $am_compiler_list; do
3909 # Setup a source with many dependencies, because some compilers
3910 # like to wrap large dependency lists on column 80 (with \), and
3911 # we should not choose a depcomp mode which is confused by this.
3913 # We need to recreate these files for each test, as the compiler may
3914 # overwrite some of them when testing with obscure command lines.
3915 # This happens at least with the AIX C compiler.
3916 : > sub/conftest.c
3917 for i in 1 2 3 4 5 6; do
3918 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3919 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3920 # Solaris 8's {/usr,}/bin/sh.
3921 touch sub/conftst$i.h
3922 done
3923 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3925 case $depmode in
3926 nosideeffect)
3927 # after this tag, mechanisms are not by side-effect, so they'll
3928 # only be used when explicitly requested
3929 if test "x$enable_dependency_tracking" = xyes; then
3930 continue
3931 else
3932 break
3935 none) break ;;
3936 esac
3937 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3938 # mode. It turns out that the SunPro C++ compiler does not properly
3939 # handle `-M -o', and we need to detect this.
3940 if depmode=$depmode \
3941 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3942 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3943 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3944 >/dev/null 2>conftest.err &&
3945 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3946 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3947 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3948 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3949 # icc doesn't choke on unknown options, it will just issue warnings
3950 # or remarks (even with -Werror). So we grep stderr for any message
3951 # that says an option was ignored or not supported.
3952 # When given -MP, icc 7.0 and 7.1 complain thusly:
3953 # icc: Command line warning: ignoring option '-M'; no argument required
3954 # The diagnosis changed in icc 8.0:
3955 # icc: Command line remark: option '-MP' not supported
3956 if (grep 'ignoring option' conftest.err ||
3957 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3958 am_cv_CC_dependencies_compiler_type=$depmode
3959 break
3962 done
3964 cd ..
3965 rm -rf conftest.dir
3966 else
3967 am_cv_CC_dependencies_compiler_type=none
3971 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3972 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3973 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3976 test "x$enable_dependency_tracking" != xno \
3977 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3978 am__fastdepCC_TRUE=
3979 am__fastdepCC_FALSE='#'
3980 else
3981 am__fastdepCC_TRUE='#'
3982 am__fastdepCC_FALSE=
3986 # Check whether --enable-shared was given.
3987 if test "${enable_shared+set}" = set; then
3988 enableval=$enable_shared; p=${PACKAGE-default}
3989 case $enableval in
3990 yes) enable_shared=yes ;;
3991 no) enable_shared=no ;;
3993 enable_shared=no
3994 # Look at the argument we got. We use all the common list separators.
3995 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3996 for pkg in $enableval; do
3997 IFS="$lt_save_ifs"
3998 if test "X$pkg" = "X$p"; then
3999 enable_shared=yes
4001 done
4002 IFS="$lt_save_ifs"
4004 esac
4005 else
4006 enable_shared=yes
4010 # Check whether --enable-static was given.
4011 if test "${enable_static+set}" = set; then
4012 enableval=$enable_static; p=${PACKAGE-default}
4013 case $enableval in
4014 yes) enable_static=yes ;;
4015 no) enable_static=no ;;
4017 enable_static=no
4018 # Look at the argument we got. We use all the common list separators.
4019 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4020 for pkg in $enableval; do
4021 IFS="$lt_save_ifs"
4022 if test "X$pkg" = "X$p"; then
4023 enable_static=yes
4025 done
4026 IFS="$lt_save_ifs"
4028 esac
4029 else
4030 enable_static=yes
4034 # Check whether --enable-fast-install was given.
4035 if test "${enable_fast_install+set}" = set; then
4036 enableval=$enable_fast_install; p=${PACKAGE-default}
4037 case $enableval in
4038 yes) enable_fast_install=yes ;;
4039 no) enable_fast_install=no ;;
4041 enable_fast_install=no
4042 # Look at the argument we got. We use all the common list separators.
4043 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4044 for pkg in $enableval; do
4045 IFS="$lt_save_ifs"
4046 if test "X$pkg" = "X$p"; then
4047 enable_fast_install=yes
4049 done
4050 IFS="$lt_save_ifs"
4052 esac
4053 else
4054 enable_fast_install=yes
4058 # Make sure we can run config.sub.
4059 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4060 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
4061 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
4062 { (exit 1); exit 1; }; }
4064 { echo "$as_me:$LINENO: checking build system type" >&5
4065 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
4066 if test "${ac_cv_build+set}" = set; then
4067 echo $ECHO_N "(cached) $ECHO_C" >&6
4068 else
4069 ac_build_alias=$build_alias
4070 test "x$ac_build_alias" = x &&
4071 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4072 test "x$ac_build_alias" = x &&
4073 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
4074 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
4075 { (exit 1); exit 1; }; }
4076 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4077 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
4078 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
4079 { (exit 1); exit 1; }; }
4082 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
4083 echo "${ECHO_T}$ac_cv_build" >&6; }
4084 case $ac_cv_build in
4085 *-*-*) ;;
4086 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
4087 echo "$as_me: error: invalid value of canonical build" >&2;}
4088 { (exit 1); exit 1; }; };;
4089 esac
4090 build=$ac_cv_build
4091 ac_save_IFS=$IFS; IFS='-'
4092 set x $ac_cv_build
4093 shift
4094 build_cpu=$1
4095 build_vendor=$2
4096 shift; shift
4097 # Remember, the first character of IFS is used to create $*,
4098 # except with old shells:
4099 build_os=$*
4100 IFS=$ac_save_IFS
4101 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4104 { echo "$as_me:$LINENO: checking host system type" >&5
4105 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
4106 if test "${ac_cv_host+set}" = set; then
4107 echo $ECHO_N "(cached) $ECHO_C" >&6
4108 else
4109 if test "x$host_alias" = x; then
4110 ac_cv_host=$ac_cv_build
4111 else
4112 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4113 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
4114 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
4115 { (exit 1); exit 1; }; }
4119 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
4120 echo "${ECHO_T}$ac_cv_host" >&6; }
4121 case $ac_cv_host in
4122 *-*-*) ;;
4123 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
4124 echo "$as_me: error: invalid value of canonical host" >&2;}
4125 { (exit 1); exit 1; }; };;
4126 esac
4127 host=$ac_cv_host
4128 ac_save_IFS=$IFS; IFS='-'
4129 set x $ac_cv_host
4130 shift
4131 host_cpu=$1
4132 host_vendor=$2
4133 shift; shift
4134 # Remember, the first character of IFS is used to create $*,
4135 # except with old shells:
4136 host_os=$*
4137 IFS=$ac_save_IFS
4138 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4141 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4142 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
4143 if test "${lt_cv_path_SED+set}" = set; then
4144 echo $ECHO_N "(cached) $ECHO_C" >&6
4145 else
4146 # Loop through the user's path and test for sed and gsed.
4147 # Then use that list of sed's as ones to test for truncation.
4148 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4149 for as_dir in $PATH
4151 IFS=$as_save_IFS
4152 test -z "$as_dir" && as_dir=.
4153 for lt_ac_prog in sed gsed; do
4154 for ac_exec_ext in '' $ac_executable_extensions; do
4155 if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then
4156 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
4158 done
4159 done
4160 done
4161 IFS=$as_save_IFS
4162 lt_ac_max=0
4163 lt_ac_count=0
4164 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
4165 # along with /bin/sed that truncates output.
4166 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
4167 test ! -f $lt_ac_sed && continue
4168 cat /dev/null > conftest.in
4169 lt_ac_count=0
4170 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
4171 # Check for GNU sed and select it if it is found.
4172 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
4173 lt_cv_path_SED=$lt_ac_sed
4174 break
4176 while true; do
4177 cat conftest.in conftest.in >conftest.tmp
4178 mv conftest.tmp conftest.in
4179 cp conftest.in conftest.nl
4180 echo >>conftest.nl
4181 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
4182 cmp -s conftest.out conftest.nl || break
4183 # 10000 chars as input seems more than enough
4184 test $lt_ac_count -gt 10 && break
4185 lt_ac_count=`expr $lt_ac_count + 1`
4186 if test $lt_ac_count -gt $lt_ac_max; then
4187 lt_ac_max=$lt_ac_count
4188 lt_cv_path_SED=$lt_ac_sed
4190 done
4191 done
4195 SED=$lt_cv_path_SED
4197 { echo "$as_me:$LINENO: result: $SED" >&5
4198 echo "${ECHO_T}$SED" >&6; }
4200 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4201 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4202 if test "${ac_cv_path_GREP+set}" = set; then
4203 echo $ECHO_N "(cached) $ECHO_C" >&6
4204 else
4205 # Extract the first word of "grep ggrep" to use in msg output
4206 if test -z "$GREP"; then
4207 set dummy grep ggrep; ac_prog_name=$2
4208 if test "${ac_cv_path_GREP+set}" = set; then
4209 echo $ECHO_N "(cached) $ECHO_C" >&6
4210 else
4211 ac_path_GREP_found=false
4212 # Loop through the user's path and test for each of PROGNAME-LIST
4213 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4214 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4216 IFS=$as_save_IFS
4217 test -z "$as_dir" && as_dir=.
4218 for ac_prog in grep ggrep; do
4219 for ac_exec_ext in '' $ac_executable_extensions; do
4220 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4221 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4222 # Check for GNU ac_path_GREP and select it if it is found.
4223 # Check for GNU $ac_path_GREP
4224 case `"$ac_path_GREP" --version 2>&1` in
4225 *GNU*)
4226 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4228 ac_count=0
4229 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4230 while :
4232 cat "conftest.in" "conftest.in" >"conftest.tmp"
4233 mv "conftest.tmp" "conftest.in"
4234 cp "conftest.in" "conftest.nl"
4235 echo 'GREP' >> "conftest.nl"
4236 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4237 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4238 ac_count=`expr $ac_count + 1`
4239 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4240 # Best one so far, save it but keep looking for a better one
4241 ac_cv_path_GREP="$ac_path_GREP"
4242 ac_path_GREP_max=$ac_count
4244 # 10*(2^10) chars as input seems more than enough
4245 test $ac_count -gt 10 && break
4246 done
4247 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4248 esac
4251 $ac_path_GREP_found && break 3
4252 done
4253 done
4255 done
4256 IFS=$as_save_IFS
4261 GREP="$ac_cv_path_GREP"
4262 if test -z "$GREP"; then
4263 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4264 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4265 { (exit 1); exit 1; }; }
4268 else
4269 ac_cv_path_GREP=$GREP
4274 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4275 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4276 GREP="$ac_cv_path_GREP"
4279 { echo "$as_me:$LINENO: checking for egrep" >&5
4280 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4281 if test "${ac_cv_path_EGREP+set}" = set; then
4282 echo $ECHO_N "(cached) $ECHO_C" >&6
4283 else
4284 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4285 then ac_cv_path_EGREP="$GREP -E"
4286 else
4287 # Extract the first word of "egrep" to use in msg output
4288 if test -z "$EGREP"; then
4289 set dummy egrep; ac_prog_name=$2
4290 if test "${ac_cv_path_EGREP+set}" = set; then
4291 echo $ECHO_N "(cached) $ECHO_C" >&6
4292 else
4293 ac_path_EGREP_found=false
4294 # Loop through the user's path and test for each of PROGNAME-LIST
4295 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4296 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4298 IFS=$as_save_IFS
4299 test -z "$as_dir" && as_dir=.
4300 for ac_prog in egrep; do
4301 for ac_exec_ext in '' $ac_executable_extensions; do
4302 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4303 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4304 # Check for GNU ac_path_EGREP and select it if it is found.
4305 # Check for GNU $ac_path_EGREP
4306 case `"$ac_path_EGREP" --version 2>&1` in
4307 *GNU*)
4308 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4310 ac_count=0
4311 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4312 while :
4314 cat "conftest.in" "conftest.in" >"conftest.tmp"
4315 mv "conftest.tmp" "conftest.in"
4316 cp "conftest.in" "conftest.nl"
4317 echo 'EGREP' >> "conftest.nl"
4318 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4319 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4320 ac_count=`expr $ac_count + 1`
4321 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4322 # Best one so far, save it but keep looking for a better one
4323 ac_cv_path_EGREP="$ac_path_EGREP"
4324 ac_path_EGREP_max=$ac_count
4326 # 10*(2^10) chars as input seems more than enough
4327 test $ac_count -gt 10 && break
4328 done
4329 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4330 esac
4333 $ac_path_EGREP_found && break 3
4334 done
4335 done
4337 done
4338 IFS=$as_save_IFS
4343 EGREP="$ac_cv_path_EGREP"
4344 if test -z "$EGREP"; then
4345 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4346 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4347 { (exit 1); exit 1; }; }
4350 else
4351 ac_cv_path_EGREP=$EGREP
4357 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4358 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4359 EGREP="$ac_cv_path_EGREP"
4363 # Check whether --with-gnu-ld was given.
4364 if test "${with_gnu_ld+set}" = set; then
4365 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4366 else
4367 with_gnu_ld=no
4370 ac_prog=ld
4371 if test "$GCC" = yes; then
4372 # Check if gcc -print-prog-name=ld gives a path.
4373 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4374 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
4375 case $host in
4376 *-*-mingw*)
4377 # gcc leaves a trailing carriage return which upsets mingw
4378 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4380 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4381 esac
4382 case $ac_prog in
4383 # Accept absolute paths.
4384 [\\/]* | ?:[\\/]*)
4385 re_direlt='/[^/][^/]*/\.\./'
4386 # Canonicalize the pathname of ld
4387 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
4388 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4389 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4390 done
4391 test -z "$LD" && LD="$ac_prog"
4394 # If it fails, then pretend we aren't using GCC.
4395 ac_prog=ld
4398 # If it is relative, then search for the first ld in PATH.
4399 with_gnu_ld=unknown
4401 esac
4402 elif test "$with_gnu_ld" = yes; then
4403 { echo "$as_me:$LINENO: checking for GNU ld" >&5
4404 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
4405 else
4406 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4407 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
4409 if test "${lt_cv_path_LD+set}" = set; then
4410 echo $ECHO_N "(cached) $ECHO_C" >&6
4411 else
4412 if test -z "$LD"; then
4413 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4414 for ac_dir in $PATH; do
4415 IFS="$lt_save_ifs"
4416 test -z "$ac_dir" && ac_dir=.
4417 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4418 lt_cv_path_LD="$ac_dir/$ac_prog"
4419 # Check to see if the program is GNU ld. I'd rather use --version,
4420 # but apparently some variants of GNU ld only accept -v.
4421 # Break only if it was the GNU/non-GNU ld that we prefer.
4422 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4423 *GNU* | *'with BFD'*)
4424 test "$with_gnu_ld" != no && break
4427 test "$with_gnu_ld" != yes && break
4429 esac
4431 done
4432 IFS="$lt_save_ifs"
4433 else
4434 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4438 LD="$lt_cv_path_LD"
4439 if test -n "$LD"; then
4440 { echo "$as_me:$LINENO: result: $LD" >&5
4441 echo "${ECHO_T}$LD" >&6; }
4442 else
4443 { echo "$as_me:$LINENO: result: no" >&5
4444 echo "${ECHO_T}no" >&6; }
4446 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4447 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4448 { (exit 1); exit 1; }; }
4449 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4450 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
4451 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4452 echo $ECHO_N "(cached) $ECHO_C" >&6
4453 else
4454 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4455 case `$LD -v 2>&1 </dev/null` in
4456 *GNU* | *'with BFD'*)
4457 lt_cv_prog_gnu_ld=yes
4460 lt_cv_prog_gnu_ld=no
4462 esac
4464 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4465 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
4466 with_gnu_ld=$lt_cv_prog_gnu_ld
4469 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4470 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
4471 if test "${lt_cv_ld_reload_flag+set}" = set; then
4472 echo $ECHO_N "(cached) $ECHO_C" >&6
4473 else
4474 lt_cv_ld_reload_flag='-r'
4476 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4477 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
4478 reload_flag=$lt_cv_ld_reload_flag
4479 case $reload_flag in
4480 "" | " "*) ;;
4481 *) reload_flag=" $reload_flag" ;;
4482 esac
4483 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4484 case $host_os in
4485 darwin*)
4486 if test "$GCC" = yes; then
4487 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4488 else
4489 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4492 esac
4494 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4495 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
4496 if test "${lt_cv_path_NM+set}" = set; then
4497 echo $ECHO_N "(cached) $ECHO_C" >&6
4498 else
4499 if test -n "$NM"; then
4500 # Let the user override the test.
4501 lt_cv_path_NM="$NM"
4502 else
4503 lt_nm_to_check="${ac_tool_prefix}nm"
4504 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4505 lt_nm_to_check="$lt_nm_to_check nm"
4507 for lt_tmp_nm in $lt_nm_to_check; do
4508 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4509 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4510 IFS="$lt_save_ifs"
4511 test -z "$ac_dir" && ac_dir=.
4512 tmp_nm="$ac_dir/$lt_tmp_nm"
4513 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4514 # Check to see if the nm accepts a BSD-compat flag.
4515 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4516 # nm: unknown option "B" ignored
4517 # Tru64's nm complains that /dev/null is an invalid object file
4518 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4519 */dev/null* | *'Invalid file or object type'*)
4520 lt_cv_path_NM="$tmp_nm -B"
4521 break
4524 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4525 */dev/null*)
4526 lt_cv_path_NM="$tmp_nm -p"
4527 break
4530 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4531 continue # so that we can try to find one that supports BSD flags
4533 esac
4535 esac
4537 done
4538 IFS="$lt_save_ifs"
4539 done
4540 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4543 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4544 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
4545 NM="$lt_cv_path_NM"
4547 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
4548 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4549 LN_S=$as_ln_s
4550 if test "$LN_S" = "ln -s"; then
4551 { echo "$as_me:$LINENO: result: yes" >&5
4552 echo "${ECHO_T}yes" >&6; }
4553 else
4554 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4555 echo "${ECHO_T}no, using $LN_S" >&6; }
4558 { echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
4559 echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6; }
4560 if test "${lt_cv_deplibs_check_method+set}" = set; then
4561 echo $ECHO_N "(cached) $ECHO_C" >&6
4562 else
4563 lt_cv_file_magic_cmd='$MAGIC_CMD'
4564 lt_cv_file_magic_test_file=
4565 lt_cv_deplibs_check_method='unknown'
4566 # Need to set the preceding variable on all platforms that support
4567 # interlibrary dependencies.
4568 # 'none' -- dependencies not supported.
4569 # `unknown' -- same as none, but documents that we really don't know.
4570 # 'pass_all' -- all dependencies passed with no checks.
4571 # 'test_compile' -- check by making test program.
4572 # 'file_magic [[regex]]' -- check by looking for files in library path
4573 # which responds to the $file_magic_cmd with a given extended regex.
4574 # If you have `file' or equivalent on your system and you're not sure
4575 # whether `pass_all' will *always* work, you probably want this one.
4577 case $host_os in
4578 aix[4-9]*)
4579 lt_cv_deplibs_check_method=pass_all
4582 beos*)
4583 lt_cv_deplibs_check_method=pass_all
4586 bsdi[45]*)
4587 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4588 lt_cv_file_magic_cmd='/usr/bin/file -L'
4589 lt_cv_file_magic_test_file=/shlib/libc.so
4592 cygwin*)
4593 # func_win32_libid is a shell function defined in ltmain.sh
4594 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4595 lt_cv_file_magic_cmd='func_win32_libid'
4598 mingw* | pw32*)
4599 # Base MSYS/MinGW do not provide the 'file' command needed by
4600 # func_win32_libid shell function, so use a weaker test based on 'objdump',
4601 # unless we find 'file', for example because we are cross-compiling.
4602 if ( file / ) >/dev/null 2>&1; then
4603 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4604 lt_cv_file_magic_cmd='func_win32_libid'
4605 else
4606 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4607 lt_cv_file_magic_cmd='$OBJDUMP -f'
4611 darwin* | rhapsody*)
4612 lt_cv_deplibs_check_method=pass_all
4615 freebsd* | dragonfly*)
4616 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4617 case $host_cpu in
4618 i*86 )
4619 # Not sure whether the presence of OpenBSD here was a mistake.
4620 # Let's accept both of them until this is cleared up.
4621 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4622 lt_cv_file_magic_cmd=/usr/bin/file
4623 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4625 esac
4626 else
4627 lt_cv_deplibs_check_method=pass_all
4631 gnu*)
4632 lt_cv_deplibs_check_method=pass_all
4635 hpux10.20* | hpux11*)
4636 lt_cv_file_magic_cmd=/usr/bin/file
4637 case $host_cpu in
4638 ia64*)
4639 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4640 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4642 hppa*64*)
4643 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]'
4644 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4647 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4648 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4650 esac
4653 interix[3-9]*)
4654 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4655 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4658 irix5* | irix6* | nonstopux*)
4659 case $LD in
4660 *-32|*"-32 ") libmagic=32-bit;;
4661 *-n32|*"-n32 ") libmagic=N32;;
4662 *-64|*"-64 ") libmagic=64-bit;;
4663 *) libmagic=never-match;;
4664 esac
4665 lt_cv_deplibs_check_method=pass_all
4668 # This must be Linux ELF.
4669 linux* | k*bsd*-gnu)
4670 lt_cv_deplibs_check_method=pass_all
4673 netbsd*)
4674 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4675 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4676 else
4677 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4681 newos6*)
4682 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4683 lt_cv_file_magic_cmd=/usr/bin/file
4684 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4687 nto-qnx*)
4688 lt_cv_deplibs_check_method=unknown
4691 openbsd*)
4692 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4693 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4694 else
4695 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4699 osf3* | osf4* | osf5*)
4700 lt_cv_deplibs_check_method=pass_all
4703 rdos*)
4704 lt_cv_deplibs_check_method=pass_all
4707 solaris*)
4708 lt_cv_deplibs_check_method=pass_all
4711 sysv4 | sysv4.3*)
4712 case $host_vendor in
4713 motorola)
4714 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]'
4715 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4717 ncr)
4718 lt_cv_deplibs_check_method=pass_all
4720 sequent)
4721 lt_cv_file_magic_cmd='/bin/file'
4722 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4724 sni)
4725 lt_cv_file_magic_cmd='/bin/file'
4726 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4727 lt_cv_file_magic_test_file=/lib/libc.so
4729 siemens)
4730 lt_cv_deplibs_check_method=pass_all
4733 lt_cv_deplibs_check_method=pass_all
4735 esac
4738 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4739 lt_cv_deplibs_check_method=pass_all
4741 esac
4744 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4745 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
4746 file_magic_cmd=$lt_cv_file_magic_cmd
4747 deplibs_check_method=$lt_cv_deplibs_check_method
4748 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4753 # If no C compiler was specified, use CC.
4754 LTCC=${LTCC-"$CC"}
4756 # If no C compiler flags were specified, use CFLAGS.
4757 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4759 # Allow CC to be a program name with arguments.
4760 compiler=$CC
4763 # Check whether --enable-libtool-lock was given.
4764 if test "${enable_libtool_lock+set}" = set; then
4765 enableval=$enable_libtool_lock;
4768 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4770 # Some flags need to be propagated to the compiler or linker for good
4771 # libtool support.
4772 case $host in
4773 ia64-*-hpux*)
4774 # Find out which ABI we are using.
4775 echo 'int i;' > conftest.$ac_ext
4776 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4777 (eval $ac_compile) 2>&5
4778 ac_status=$?
4779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4780 (exit $ac_status); }; then
4781 case `/usr/bin/file conftest.$ac_objext` in
4782 *ELF-32*)
4783 HPUX_IA64_MODE="32"
4785 *ELF-64*)
4786 HPUX_IA64_MODE="64"
4788 esac
4790 rm -rf conftest*
4792 *-*-irix6*)
4793 # Find out which ABI we are using.
4794 echo '#line 4794 "configure"' > conftest.$ac_ext
4795 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4796 (eval $ac_compile) 2>&5
4797 ac_status=$?
4798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4799 (exit $ac_status); }; then
4800 if test "$lt_cv_prog_gnu_ld" = yes; then
4801 case `/usr/bin/file conftest.$ac_objext` in
4802 *32-bit*)
4803 LD="${LD-ld} -melf32bsmip"
4805 *N32*)
4806 LD="${LD-ld} -melf32bmipn32"
4808 *64-bit*)
4809 LD="${LD-ld} -melf64bmip"
4811 esac
4812 else
4813 case `/usr/bin/file conftest.$ac_objext` in
4814 *32-bit*)
4815 LD="${LD-ld} -32"
4817 *N32*)
4818 LD="${LD-ld} -n32"
4820 *64-bit*)
4821 LD="${LD-ld} -64"
4823 esac
4826 rm -rf conftest*
4829 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
4830 s390*-*linux*|sparc*-*linux*)
4831 # Find out which ABI we are using.
4832 echo 'int i;' > conftest.$ac_ext
4833 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4834 (eval $ac_compile) 2>&5
4835 ac_status=$?
4836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4837 (exit $ac_status); }; then
4838 case `/usr/bin/file conftest.o` in
4839 *32-bit*)
4840 case $host in
4841 x86_64-*kfreebsd*-gnu)
4842 LD="${LD-ld} -m elf_i386_fbsd"
4844 x86_64-*linux*)
4845 LD="${LD-ld} -m elf_i386"
4847 ppc64-*linux*|powerpc64-*linux*)
4848 LD="${LD-ld} -m elf32ppclinux"
4850 s390x-*linux*)
4851 LD="${LD-ld} -m elf_s390"
4853 sparc64-*linux*)
4854 LD="${LD-ld} -m elf32_sparc"
4856 esac
4858 *64-bit*)
4859 case $host in
4860 x86_64-*kfreebsd*-gnu)
4861 LD="${LD-ld} -m elf_x86_64_fbsd"
4863 x86_64-*linux*)
4864 LD="${LD-ld} -m elf_x86_64"
4866 ppc*-*linux*|powerpc*-*linux*)
4867 LD="${LD-ld} -m elf64ppc"
4869 s390*-*linux*)
4870 LD="${LD-ld} -m elf64_s390"
4872 sparc*-*linux*)
4873 LD="${LD-ld} -m elf64_sparc"
4875 esac
4877 esac
4879 rm -rf conftest*
4882 *-*-sco3.2v5*)
4883 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4884 SAVE_CFLAGS="$CFLAGS"
4885 CFLAGS="$CFLAGS -belf"
4886 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4887 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
4888 if test "${lt_cv_cc_needs_belf+set}" = set; then
4889 echo $ECHO_N "(cached) $ECHO_C" >&6
4890 else
4891 ac_ext=c
4892 ac_cpp='$CPP $CPPFLAGS'
4893 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4894 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4895 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4897 cat >conftest.$ac_ext <<_ACEOF
4898 /* confdefs.h. */
4899 _ACEOF
4900 cat confdefs.h >>conftest.$ac_ext
4901 cat >>conftest.$ac_ext <<_ACEOF
4902 /* end confdefs.h. */
4905 main ()
4909 return 0;
4911 _ACEOF
4912 rm -f conftest.$ac_objext conftest$ac_exeext
4913 if { (ac_try="$ac_link"
4914 case "(($ac_try" in
4915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4916 *) ac_try_echo=$ac_try;;
4917 esac
4918 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4919 (eval "$ac_link") 2>conftest.er1
4920 ac_status=$?
4921 grep -v '^ *+' conftest.er1 >conftest.err
4922 rm -f conftest.er1
4923 cat conftest.err >&5
4924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4925 (exit $ac_status); } && {
4926 test -z "$ac_c_werror_flag" ||
4927 test ! -s conftest.err
4928 } && test -s conftest$ac_exeext &&
4929 $as_test_x conftest$ac_exeext; then
4930 lt_cv_cc_needs_belf=yes
4931 else
4932 echo "$as_me: failed program was:" >&5
4933 sed 's/^/| /' conftest.$ac_ext >&5
4935 lt_cv_cc_needs_belf=no
4938 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4939 conftest$ac_exeext conftest.$ac_ext
4940 ac_ext=c
4941 ac_cpp='$CPP $CPPFLAGS'
4942 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4943 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4944 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4947 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4948 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
4949 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4950 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4951 CFLAGS="$SAVE_CFLAGS"
4954 sparc*-*solaris*)
4955 # Find out which ABI we are using.
4956 echo 'int i;' > conftest.$ac_ext
4957 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4958 (eval $ac_compile) 2>&5
4959 ac_status=$?
4960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4961 (exit $ac_status); }; then
4962 case `/usr/bin/file conftest.o` in
4963 *64-bit*)
4964 case $lt_cv_prog_gnu_ld in
4965 yes*) LD="${LD-ld} -m elf64_sparc" ;;
4967 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
4968 LD="${LD-ld} -64"
4971 esac
4973 esac
4975 rm -rf conftest*
4979 esac
4981 need_locks="$enable_libtool_lock"
4984 ac_ext=c
4985 ac_cpp='$CPP $CPPFLAGS'
4986 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4987 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4988 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4989 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4990 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4991 # On Suns, sometimes $CPP names a directory.
4992 if test -n "$CPP" && test -d "$CPP"; then
4993 CPP=
4995 if test -z "$CPP"; then
4996 if test "${ac_cv_prog_CPP+set}" = set; then
4997 echo $ECHO_N "(cached) $ECHO_C" >&6
4998 else
4999 # Double quotes because CPP needs to be expanded
5000 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5002 ac_preproc_ok=false
5003 for ac_c_preproc_warn_flag in '' yes
5005 # Use a header file that comes with gcc, so configuring glibc
5006 # with a fresh cross-compiler works.
5007 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5008 # <limits.h> exists even on freestanding compilers.
5009 # On the NeXT, cc -E runs the code through the compiler's parser,
5010 # not just through cpp. "Syntax error" is here to catch this case.
5011 cat >conftest.$ac_ext <<_ACEOF
5012 /* confdefs.h. */
5013 _ACEOF
5014 cat confdefs.h >>conftest.$ac_ext
5015 cat >>conftest.$ac_ext <<_ACEOF
5016 /* end confdefs.h. */
5017 #ifdef __STDC__
5018 # include <limits.h>
5019 #else
5020 # include <assert.h>
5021 #endif
5022 Syntax error
5023 _ACEOF
5024 if { (ac_try="$ac_cpp conftest.$ac_ext"
5025 case "(($ac_try" in
5026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5027 *) ac_try_echo=$ac_try;;
5028 esac
5029 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5030 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5031 ac_status=$?
5032 grep -v '^ *+' conftest.er1 >conftest.err
5033 rm -f conftest.er1
5034 cat conftest.err >&5
5035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5036 (exit $ac_status); } >/dev/null && {
5037 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5038 test ! -s conftest.err
5039 }; then
5041 else
5042 echo "$as_me: failed program was:" >&5
5043 sed 's/^/| /' conftest.$ac_ext >&5
5045 # Broken: fails on valid input.
5046 continue
5049 rm -f conftest.err conftest.$ac_ext
5051 # OK, works on sane cases. Now check whether nonexistent headers
5052 # can be detected and how.
5053 cat >conftest.$ac_ext <<_ACEOF
5054 /* confdefs.h. */
5055 _ACEOF
5056 cat confdefs.h >>conftest.$ac_ext
5057 cat >>conftest.$ac_ext <<_ACEOF
5058 /* end confdefs.h. */
5059 #include <ac_nonexistent.h>
5060 _ACEOF
5061 if { (ac_try="$ac_cpp conftest.$ac_ext"
5062 case "(($ac_try" in
5063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5064 *) ac_try_echo=$ac_try;;
5065 esac
5066 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5067 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5068 ac_status=$?
5069 grep -v '^ *+' conftest.er1 >conftest.err
5070 rm -f conftest.er1
5071 cat conftest.err >&5
5072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5073 (exit $ac_status); } >/dev/null && {
5074 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5075 test ! -s conftest.err
5076 }; then
5077 # Broken: success on invalid input.
5078 continue
5079 else
5080 echo "$as_me: failed program was:" >&5
5081 sed 's/^/| /' conftest.$ac_ext >&5
5083 # Passes both tests.
5084 ac_preproc_ok=:
5085 break
5088 rm -f conftest.err conftest.$ac_ext
5090 done
5091 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5092 rm -f conftest.err conftest.$ac_ext
5093 if $ac_preproc_ok; then
5094 break
5097 done
5098 ac_cv_prog_CPP=$CPP
5101 CPP=$ac_cv_prog_CPP
5102 else
5103 ac_cv_prog_CPP=$CPP
5105 { echo "$as_me:$LINENO: result: $CPP" >&5
5106 echo "${ECHO_T}$CPP" >&6; }
5107 ac_preproc_ok=false
5108 for ac_c_preproc_warn_flag in '' yes
5110 # Use a header file that comes with gcc, so configuring glibc
5111 # with a fresh cross-compiler works.
5112 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5113 # <limits.h> exists even on freestanding compilers.
5114 # On the NeXT, cc -E runs the code through the compiler's parser,
5115 # not just through cpp. "Syntax error" is here to catch this case.
5116 cat >conftest.$ac_ext <<_ACEOF
5117 /* confdefs.h. */
5118 _ACEOF
5119 cat confdefs.h >>conftest.$ac_ext
5120 cat >>conftest.$ac_ext <<_ACEOF
5121 /* end confdefs.h. */
5122 #ifdef __STDC__
5123 # include <limits.h>
5124 #else
5125 # include <assert.h>
5126 #endif
5127 Syntax error
5128 _ACEOF
5129 if { (ac_try="$ac_cpp conftest.$ac_ext"
5130 case "(($ac_try" in
5131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5132 *) ac_try_echo=$ac_try;;
5133 esac
5134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5135 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5136 ac_status=$?
5137 grep -v '^ *+' conftest.er1 >conftest.err
5138 rm -f conftest.er1
5139 cat conftest.err >&5
5140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5141 (exit $ac_status); } >/dev/null && {
5142 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5143 test ! -s conftest.err
5144 }; then
5146 else
5147 echo "$as_me: failed program was:" >&5
5148 sed 's/^/| /' conftest.$ac_ext >&5
5150 # Broken: fails on valid input.
5151 continue
5154 rm -f conftest.err conftest.$ac_ext
5156 # OK, works on sane cases. Now check whether nonexistent headers
5157 # can be detected and how.
5158 cat >conftest.$ac_ext <<_ACEOF
5159 /* confdefs.h. */
5160 _ACEOF
5161 cat confdefs.h >>conftest.$ac_ext
5162 cat >>conftest.$ac_ext <<_ACEOF
5163 /* end confdefs.h. */
5164 #include <ac_nonexistent.h>
5165 _ACEOF
5166 if { (ac_try="$ac_cpp conftest.$ac_ext"
5167 case "(($ac_try" in
5168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5169 *) ac_try_echo=$ac_try;;
5170 esac
5171 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5172 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5173 ac_status=$?
5174 grep -v '^ *+' conftest.er1 >conftest.err
5175 rm -f conftest.er1
5176 cat conftest.err >&5
5177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5178 (exit $ac_status); } >/dev/null && {
5179 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5180 test ! -s conftest.err
5181 }; then
5182 # Broken: success on invalid input.
5183 continue
5184 else
5185 echo "$as_me: failed program was:" >&5
5186 sed 's/^/| /' conftest.$ac_ext >&5
5188 # Passes both tests.
5189 ac_preproc_ok=:
5190 break
5193 rm -f conftest.err conftest.$ac_ext
5195 done
5196 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5197 rm -f conftest.err conftest.$ac_ext
5198 if $ac_preproc_ok; then
5200 else
5201 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5202 See \`config.log' for more details." >&5
5203 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5204 See \`config.log' for more details." >&2;}
5205 { (exit 1); exit 1; }; }
5208 ac_ext=c
5209 ac_cpp='$CPP $CPPFLAGS'
5210 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5211 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5212 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5215 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5216 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
5217 if test "${ac_cv_header_stdc+set}" = set; then
5218 echo $ECHO_N "(cached) $ECHO_C" >&6
5219 else
5220 cat >conftest.$ac_ext <<_ACEOF
5221 /* confdefs.h. */
5222 _ACEOF
5223 cat confdefs.h >>conftest.$ac_ext
5224 cat >>conftest.$ac_ext <<_ACEOF
5225 /* end confdefs.h. */
5226 #include <stdlib.h>
5227 #include <stdarg.h>
5228 #include <string.h>
5229 #include <float.h>
5232 main ()
5236 return 0;
5238 _ACEOF
5239 rm -f conftest.$ac_objext
5240 if { (ac_try="$ac_compile"
5241 case "(($ac_try" in
5242 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5243 *) ac_try_echo=$ac_try;;
5244 esac
5245 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5246 (eval "$ac_compile") 2>conftest.er1
5247 ac_status=$?
5248 grep -v '^ *+' conftest.er1 >conftest.err
5249 rm -f conftest.er1
5250 cat conftest.err >&5
5251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5252 (exit $ac_status); } && {
5253 test -z "$ac_c_werror_flag" ||
5254 test ! -s conftest.err
5255 } && test -s conftest.$ac_objext; then
5256 ac_cv_header_stdc=yes
5257 else
5258 echo "$as_me: failed program was:" >&5
5259 sed 's/^/| /' conftest.$ac_ext >&5
5261 ac_cv_header_stdc=no
5264 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5266 if test $ac_cv_header_stdc = yes; then
5267 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5268 cat >conftest.$ac_ext <<_ACEOF
5269 /* confdefs.h. */
5270 _ACEOF
5271 cat confdefs.h >>conftest.$ac_ext
5272 cat >>conftest.$ac_ext <<_ACEOF
5273 /* end confdefs.h. */
5274 #include <string.h>
5276 _ACEOF
5277 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5278 $EGREP "memchr" >/dev/null 2>&1; then
5280 else
5281 ac_cv_header_stdc=no
5283 rm -f conftest*
5287 if test $ac_cv_header_stdc = yes; then
5288 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5289 cat >conftest.$ac_ext <<_ACEOF
5290 /* confdefs.h. */
5291 _ACEOF
5292 cat confdefs.h >>conftest.$ac_ext
5293 cat >>conftest.$ac_ext <<_ACEOF
5294 /* end confdefs.h. */
5295 #include <stdlib.h>
5297 _ACEOF
5298 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5299 $EGREP "free" >/dev/null 2>&1; then
5301 else
5302 ac_cv_header_stdc=no
5304 rm -f conftest*
5308 if test $ac_cv_header_stdc = yes; then
5309 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5310 if test "$cross_compiling" = yes; then
5312 else
5313 cat >conftest.$ac_ext <<_ACEOF
5314 /* confdefs.h. */
5315 _ACEOF
5316 cat confdefs.h >>conftest.$ac_ext
5317 cat >>conftest.$ac_ext <<_ACEOF
5318 /* end confdefs.h. */
5319 #include <ctype.h>
5320 #include <stdlib.h>
5321 #if ((' ' & 0x0FF) == 0x020)
5322 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5323 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5324 #else
5325 # define ISLOWER(c) \
5326 (('a' <= (c) && (c) <= 'i') \
5327 || ('j' <= (c) && (c) <= 'r') \
5328 || ('s' <= (c) && (c) <= 'z'))
5329 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5330 #endif
5332 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5334 main ()
5336 int i;
5337 for (i = 0; i < 256; i++)
5338 if (XOR (islower (i), ISLOWER (i))
5339 || toupper (i) != TOUPPER (i))
5340 return 2;
5341 return 0;
5343 _ACEOF
5344 rm -f conftest$ac_exeext
5345 if { (ac_try="$ac_link"
5346 case "(($ac_try" in
5347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5348 *) ac_try_echo=$ac_try;;
5349 esac
5350 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5351 (eval "$ac_link") 2>&5
5352 ac_status=$?
5353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5354 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5355 { (case "(($ac_try" in
5356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5357 *) ac_try_echo=$ac_try;;
5358 esac
5359 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5360 (eval "$ac_try") 2>&5
5361 ac_status=$?
5362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5363 (exit $ac_status); }; }; then
5365 else
5366 echo "$as_me: program exited with status $ac_status" >&5
5367 echo "$as_me: failed program was:" >&5
5368 sed 's/^/| /' conftest.$ac_ext >&5
5370 ( exit $ac_status )
5371 ac_cv_header_stdc=no
5373 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5379 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5380 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
5381 if test $ac_cv_header_stdc = yes; then
5383 cat >>confdefs.h <<\_ACEOF
5384 #define STDC_HEADERS 1
5385 _ACEOF
5389 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5399 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5400 inttypes.h stdint.h unistd.h
5402 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5403 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5404 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5405 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5406 echo $ECHO_N "(cached) $ECHO_C" >&6
5407 else
5408 cat >conftest.$ac_ext <<_ACEOF
5409 /* confdefs.h. */
5410 _ACEOF
5411 cat confdefs.h >>conftest.$ac_ext
5412 cat >>conftest.$ac_ext <<_ACEOF
5413 /* end confdefs.h. */
5414 $ac_includes_default
5416 #include <$ac_header>
5417 _ACEOF
5418 rm -f conftest.$ac_objext
5419 if { (ac_try="$ac_compile"
5420 case "(($ac_try" in
5421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5422 *) ac_try_echo=$ac_try;;
5423 esac
5424 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5425 (eval "$ac_compile") 2>conftest.er1
5426 ac_status=$?
5427 grep -v '^ *+' conftest.er1 >conftest.err
5428 rm -f conftest.er1
5429 cat conftest.err >&5
5430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5431 (exit $ac_status); } && {
5432 test -z "$ac_c_werror_flag" ||
5433 test ! -s conftest.err
5434 } && test -s conftest.$ac_objext; then
5435 eval "$as_ac_Header=yes"
5436 else
5437 echo "$as_me: failed program was:" >&5
5438 sed 's/^/| /' conftest.$ac_ext >&5
5440 eval "$as_ac_Header=no"
5443 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5445 ac_res=`eval echo '${'$as_ac_Header'}'`
5446 { echo "$as_me:$LINENO: result: $ac_res" >&5
5447 echo "${ECHO_T}$ac_res" >&6; }
5448 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5449 cat >>confdefs.h <<_ACEOF
5450 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5451 _ACEOF
5455 done
5459 for ac_header in dlfcn.h
5461 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5462 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5463 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5464 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5465 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5466 echo $ECHO_N "(cached) $ECHO_C" >&6
5468 ac_res=`eval echo '${'$as_ac_Header'}'`
5469 { echo "$as_me:$LINENO: result: $ac_res" >&5
5470 echo "${ECHO_T}$ac_res" >&6; }
5471 else
5472 # Is the header compilable?
5473 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5474 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5475 cat >conftest.$ac_ext <<_ACEOF
5476 /* confdefs.h. */
5477 _ACEOF
5478 cat confdefs.h >>conftest.$ac_ext
5479 cat >>conftest.$ac_ext <<_ACEOF
5480 /* end confdefs.h. */
5481 $ac_includes_default
5482 #include <$ac_header>
5483 _ACEOF
5484 rm -f conftest.$ac_objext
5485 if { (ac_try="$ac_compile"
5486 case "(($ac_try" in
5487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5488 *) ac_try_echo=$ac_try;;
5489 esac
5490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5491 (eval "$ac_compile") 2>conftest.er1
5492 ac_status=$?
5493 grep -v '^ *+' conftest.er1 >conftest.err
5494 rm -f conftest.er1
5495 cat conftest.err >&5
5496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5497 (exit $ac_status); } && {
5498 test -z "$ac_c_werror_flag" ||
5499 test ! -s conftest.err
5500 } && test -s conftest.$ac_objext; then
5501 ac_header_compiler=yes
5502 else
5503 echo "$as_me: failed program was:" >&5
5504 sed 's/^/| /' conftest.$ac_ext >&5
5506 ac_header_compiler=no
5509 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5510 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5511 echo "${ECHO_T}$ac_header_compiler" >&6; }
5513 # Is the header present?
5514 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5515 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5516 cat >conftest.$ac_ext <<_ACEOF
5517 /* confdefs.h. */
5518 _ACEOF
5519 cat confdefs.h >>conftest.$ac_ext
5520 cat >>conftest.$ac_ext <<_ACEOF
5521 /* end confdefs.h. */
5522 #include <$ac_header>
5523 _ACEOF
5524 if { (ac_try="$ac_cpp conftest.$ac_ext"
5525 case "(($ac_try" in
5526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5527 *) ac_try_echo=$ac_try;;
5528 esac
5529 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5530 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5531 ac_status=$?
5532 grep -v '^ *+' conftest.er1 >conftest.err
5533 rm -f conftest.er1
5534 cat conftest.err >&5
5535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5536 (exit $ac_status); } >/dev/null && {
5537 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5538 test ! -s conftest.err
5539 }; then
5540 ac_header_preproc=yes
5541 else
5542 echo "$as_me: failed program was:" >&5
5543 sed 's/^/| /' conftest.$ac_ext >&5
5545 ac_header_preproc=no
5548 rm -f conftest.err conftest.$ac_ext
5549 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5550 echo "${ECHO_T}$ac_header_preproc" >&6; }
5552 # So? What about this header?
5553 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5554 yes:no: )
5555 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5556 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5557 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5558 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5559 ac_header_preproc=yes
5561 no:yes:* )
5562 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5563 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5564 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5565 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5566 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5567 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5568 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5569 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5570 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5571 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5572 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5573 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5574 ( cat <<\_ASBOX
5575 ## ------------------------------------- ##
5576 ## Report this to ahmed.badran@gmail.com ##
5577 ## ------------------------------------- ##
5578 _ASBOX
5579 ) | sed "s/^/$as_me: WARNING: /" >&2
5581 esac
5582 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5583 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5584 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5585 echo $ECHO_N "(cached) $ECHO_C" >&6
5586 else
5587 eval "$as_ac_Header=\$ac_header_preproc"
5589 ac_res=`eval echo '${'$as_ac_Header'}'`
5590 { echo "$as_me:$LINENO: result: $ac_res" >&5
5591 echo "${ECHO_T}$ac_res" >&6; }
5594 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5595 cat >>confdefs.h <<_ACEOF
5596 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5597 _ACEOF
5601 done
5605 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5606 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5607 (test "X$CXX" != "Xg++"))) ; then
5608 ac_ext=cpp
5609 ac_cpp='$CXXCPP $CPPFLAGS'
5610 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5611 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5612 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5613 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5614 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
5615 if test -z "$CXXCPP"; then
5616 if test "${ac_cv_prog_CXXCPP+set}" = set; then
5617 echo $ECHO_N "(cached) $ECHO_C" >&6
5618 else
5619 # Double quotes because CXXCPP needs to be expanded
5620 for CXXCPP in "$CXX -E" "/lib/cpp"
5622 ac_preproc_ok=false
5623 for ac_cxx_preproc_warn_flag in '' yes
5625 # Use a header file that comes with gcc, so configuring glibc
5626 # with a fresh cross-compiler works.
5627 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5628 # <limits.h> exists even on freestanding compilers.
5629 # On the NeXT, cc -E runs the code through the compiler's parser,
5630 # not just through cpp. "Syntax error" is here to catch this case.
5631 cat >conftest.$ac_ext <<_ACEOF
5632 /* confdefs.h. */
5633 _ACEOF
5634 cat confdefs.h >>conftest.$ac_ext
5635 cat >>conftest.$ac_ext <<_ACEOF
5636 /* end confdefs.h. */
5637 #ifdef __STDC__
5638 # include <limits.h>
5639 #else
5640 # include <assert.h>
5641 #endif
5642 Syntax error
5643 _ACEOF
5644 if { (ac_try="$ac_cpp conftest.$ac_ext"
5645 case "(($ac_try" in
5646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5647 *) ac_try_echo=$ac_try;;
5648 esac
5649 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5650 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5651 ac_status=$?
5652 grep -v '^ *+' conftest.er1 >conftest.err
5653 rm -f conftest.er1
5654 cat conftest.err >&5
5655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5656 (exit $ac_status); } >/dev/null && {
5657 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5658 test ! -s conftest.err
5659 }; then
5661 else
5662 echo "$as_me: failed program was:" >&5
5663 sed 's/^/| /' conftest.$ac_ext >&5
5665 # Broken: fails on valid input.
5666 continue
5669 rm -f conftest.err conftest.$ac_ext
5671 # OK, works on sane cases. Now check whether nonexistent headers
5672 # can be detected and how.
5673 cat >conftest.$ac_ext <<_ACEOF
5674 /* confdefs.h. */
5675 _ACEOF
5676 cat confdefs.h >>conftest.$ac_ext
5677 cat >>conftest.$ac_ext <<_ACEOF
5678 /* end confdefs.h. */
5679 #include <ac_nonexistent.h>
5680 _ACEOF
5681 if { (ac_try="$ac_cpp conftest.$ac_ext"
5682 case "(($ac_try" in
5683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5684 *) ac_try_echo=$ac_try;;
5685 esac
5686 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5687 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5688 ac_status=$?
5689 grep -v '^ *+' conftest.er1 >conftest.err
5690 rm -f conftest.er1
5691 cat conftest.err >&5
5692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5693 (exit $ac_status); } >/dev/null && {
5694 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5695 test ! -s conftest.err
5696 }; then
5697 # Broken: success on invalid input.
5698 continue
5699 else
5700 echo "$as_me: failed program was:" >&5
5701 sed 's/^/| /' conftest.$ac_ext >&5
5703 # Passes both tests.
5704 ac_preproc_ok=:
5705 break
5708 rm -f conftest.err conftest.$ac_ext
5710 done
5711 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5712 rm -f conftest.err conftest.$ac_ext
5713 if $ac_preproc_ok; then
5714 break
5717 done
5718 ac_cv_prog_CXXCPP=$CXXCPP
5721 CXXCPP=$ac_cv_prog_CXXCPP
5722 else
5723 ac_cv_prog_CXXCPP=$CXXCPP
5725 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
5726 echo "${ECHO_T}$CXXCPP" >&6; }
5727 ac_preproc_ok=false
5728 for ac_cxx_preproc_warn_flag in '' yes
5730 # Use a header file that comes with gcc, so configuring glibc
5731 # with a fresh cross-compiler works.
5732 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5733 # <limits.h> exists even on freestanding compilers.
5734 # On the NeXT, cc -E runs the code through the compiler's parser,
5735 # not just through cpp. "Syntax error" is here to catch this case.
5736 cat >conftest.$ac_ext <<_ACEOF
5737 /* confdefs.h. */
5738 _ACEOF
5739 cat confdefs.h >>conftest.$ac_ext
5740 cat >>conftest.$ac_ext <<_ACEOF
5741 /* end confdefs.h. */
5742 #ifdef __STDC__
5743 # include <limits.h>
5744 #else
5745 # include <assert.h>
5746 #endif
5747 Syntax error
5748 _ACEOF
5749 if { (ac_try="$ac_cpp conftest.$ac_ext"
5750 case "(($ac_try" in
5751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5752 *) ac_try_echo=$ac_try;;
5753 esac
5754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5755 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5756 ac_status=$?
5757 grep -v '^ *+' conftest.er1 >conftest.err
5758 rm -f conftest.er1
5759 cat conftest.err >&5
5760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5761 (exit $ac_status); } >/dev/null && {
5762 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5763 test ! -s conftest.err
5764 }; then
5766 else
5767 echo "$as_me: failed program was:" >&5
5768 sed 's/^/| /' conftest.$ac_ext >&5
5770 # Broken: fails on valid input.
5771 continue
5774 rm -f conftest.err conftest.$ac_ext
5776 # OK, works on sane cases. Now check whether nonexistent headers
5777 # can be detected and how.
5778 cat >conftest.$ac_ext <<_ACEOF
5779 /* confdefs.h. */
5780 _ACEOF
5781 cat confdefs.h >>conftest.$ac_ext
5782 cat >>conftest.$ac_ext <<_ACEOF
5783 /* end confdefs.h. */
5784 #include <ac_nonexistent.h>
5785 _ACEOF
5786 if { (ac_try="$ac_cpp conftest.$ac_ext"
5787 case "(($ac_try" in
5788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5789 *) ac_try_echo=$ac_try;;
5790 esac
5791 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5792 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5793 ac_status=$?
5794 grep -v '^ *+' conftest.er1 >conftest.err
5795 rm -f conftest.er1
5796 cat conftest.err >&5
5797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5798 (exit $ac_status); } >/dev/null && {
5799 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5800 test ! -s conftest.err
5801 }; then
5802 # Broken: success on invalid input.
5803 continue
5804 else
5805 echo "$as_me: failed program was:" >&5
5806 sed 's/^/| /' conftest.$ac_ext >&5
5808 # Passes both tests.
5809 ac_preproc_ok=:
5810 break
5813 rm -f conftest.err conftest.$ac_ext
5815 done
5816 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5817 rm -f conftest.err conftest.$ac_ext
5818 if $ac_preproc_ok; then
5820 else
5821 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5822 See \`config.log' for more details." >&5
5823 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5824 See \`config.log' for more details." >&2;}
5825 { (exit 1); exit 1; }; }
5828 ac_ext=cpp
5829 ac_cpp='$CXXCPP $CPPFLAGS'
5830 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5831 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5832 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5837 ac_ext=f
5838 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5839 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5840 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5841 if test -n "$ac_tool_prefix"; then
5842 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
5844 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5845 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5846 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5847 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5848 if test "${ac_cv_prog_F77+set}" = set; then
5849 echo $ECHO_N "(cached) $ECHO_C" >&6
5850 else
5851 if test -n "$F77"; then
5852 ac_cv_prog_F77="$F77" # Let the user override the test.
5853 else
5854 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5855 for as_dir in $PATH
5857 IFS=$as_save_IFS
5858 test -z "$as_dir" && as_dir=.
5859 for ac_exec_ext in '' $ac_executable_extensions; do
5860 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5861 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5862 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5863 break 2
5865 done
5866 done
5867 IFS=$as_save_IFS
5871 F77=$ac_cv_prog_F77
5872 if test -n "$F77"; then
5873 { echo "$as_me:$LINENO: result: $F77" >&5
5874 echo "${ECHO_T}$F77" >&6; }
5875 else
5876 { echo "$as_me:$LINENO: result: no" >&5
5877 echo "${ECHO_T}no" >&6; }
5881 test -n "$F77" && break
5882 done
5884 if test -z "$F77"; then
5885 ac_ct_F77=$F77
5886 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
5888 # Extract the first word of "$ac_prog", so it can be a program name with args.
5889 set dummy $ac_prog; ac_word=$2
5890 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5891 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5892 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5893 echo $ECHO_N "(cached) $ECHO_C" >&6
5894 else
5895 if test -n "$ac_ct_F77"; then
5896 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5897 else
5898 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5899 for as_dir in $PATH
5901 IFS=$as_save_IFS
5902 test -z "$as_dir" && as_dir=.
5903 for ac_exec_ext in '' $ac_executable_extensions; do
5904 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5905 ac_cv_prog_ac_ct_F77="$ac_prog"
5906 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5907 break 2
5909 done
5910 done
5911 IFS=$as_save_IFS
5915 ac_ct_F77=$ac_cv_prog_ac_ct_F77
5916 if test -n "$ac_ct_F77"; then
5917 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5918 echo "${ECHO_T}$ac_ct_F77" >&6; }
5919 else
5920 { echo "$as_me:$LINENO: result: no" >&5
5921 echo "${ECHO_T}no" >&6; }
5925 test -n "$ac_ct_F77" && break
5926 done
5928 if test "x$ac_ct_F77" = x; then
5929 F77=""
5930 else
5931 case $cross_compiling:$ac_tool_warned in
5932 yes:)
5933 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5934 whose name does not start with the host triplet. If you think this
5935 configuration is useful to you, please write to autoconf@gnu.org." >&5
5936 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5937 whose name does not start with the host triplet. If you think this
5938 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5939 ac_tool_warned=yes ;;
5940 esac
5941 F77=$ac_ct_F77
5946 # Provide some information about the compiler.
5947 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
5948 ac_compiler=`set X $ac_compile; echo $2`
5949 { (ac_try="$ac_compiler --version >&5"
5950 case "(($ac_try" in
5951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5952 *) ac_try_echo=$ac_try;;
5953 esac
5954 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5955 (eval "$ac_compiler --version >&5") 2>&5
5956 ac_status=$?
5957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5958 (exit $ac_status); }
5959 { (ac_try="$ac_compiler -v >&5"
5960 case "(($ac_try" in
5961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5962 *) ac_try_echo=$ac_try;;
5963 esac
5964 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5965 (eval "$ac_compiler -v >&5") 2>&5
5966 ac_status=$?
5967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5968 (exit $ac_status); }
5969 { (ac_try="$ac_compiler -V >&5"
5970 case "(($ac_try" in
5971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5972 *) ac_try_echo=$ac_try;;
5973 esac
5974 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5975 (eval "$ac_compiler -V >&5") 2>&5
5976 ac_status=$?
5977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5978 (exit $ac_status); }
5979 rm -f a.out
5981 # If we don't use `.F' as extension, the preprocessor is not run on the
5982 # input file. (Note that this only needs to work for GNU compilers.)
5983 ac_save_ext=$ac_ext
5984 ac_ext=F
5985 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5986 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
5987 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5988 echo $ECHO_N "(cached) $ECHO_C" >&6
5989 else
5990 cat >conftest.$ac_ext <<_ACEOF
5991 program main
5992 #ifndef __GNUC__
5993 choke me
5994 #endif
5997 _ACEOF
5998 rm -f conftest.$ac_objext
5999 if { (ac_try="$ac_compile"
6000 case "(($ac_try" in
6001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6002 *) ac_try_echo=$ac_try;;
6003 esac
6004 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6005 (eval "$ac_compile") 2>conftest.er1
6006 ac_status=$?
6007 grep -v '^ *+' conftest.er1 >conftest.err
6008 rm -f conftest.er1
6009 cat conftest.err >&5
6010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6011 (exit $ac_status); } && {
6012 test -z "$ac_f77_werror_flag" ||
6013 test ! -s conftest.err
6014 } && test -s conftest.$ac_objext; then
6015 ac_compiler_gnu=yes
6016 else
6017 echo "$as_me: failed program was:" >&5
6018 sed 's/^/| /' conftest.$ac_ext >&5
6020 ac_compiler_gnu=no
6023 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6024 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6027 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
6028 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
6029 ac_ext=$ac_save_ext
6030 ac_test_FFLAGS=${FFLAGS+set}
6031 ac_save_FFLAGS=$FFLAGS
6032 FFLAGS=
6033 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
6034 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
6035 if test "${ac_cv_prog_f77_g+set}" = set; then
6036 echo $ECHO_N "(cached) $ECHO_C" >&6
6037 else
6038 FFLAGS=-g
6039 cat >conftest.$ac_ext <<_ACEOF
6040 program main
6043 _ACEOF
6044 rm -f conftest.$ac_objext
6045 if { (ac_try="$ac_compile"
6046 case "(($ac_try" in
6047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6048 *) ac_try_echo=$ac_try;;
6049 esac
6050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6051 (eval "$ac_compile") 2>conftest.er1
6052 ac_status=$?
6053 grep -v '^ *+' conftest.er1 >conftest.err
6054 rm -f conftest.er1
6055 cat conftest.err >&5
6056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6057 (exit $ac_status); } && {
6058 test -z "$ac_f77_werror_flag" ||
6059 test ! -s conftest.err
6060 } && test -s conftest.$ac_objext; then
6061 ac_cv_prog_f77_g=yes
6062 else
6063 echo "$as_me: failed program was:" >&5
6064 sed 's/^/| /' conftest.$ac_ext >&5
6066 ac_cv_prog_f77_g=no
6069 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6072 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6073 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
6074 if test "$ac_test_FFLAGS" = set; then
6075 FFLAGS=$ac_save_FFLAGS
6076 elif test $ac_cv_prog_f77_g = yes; then
6077 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6078 FFLAGS="-g -O2"
6079 else
6080 FFLAGS="-g"
6082 else
6083 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6084 FFLAGS="-O2"
6085 else
6086 FFLAGS=
6090 G77=`test $ac_compiler_gnu = yes && echo yes`
6091 ac_ext=c
6092 ac_cpp='$CPP $CPPFLAGS'
6093 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6094 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6095 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6099 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6100 # find the maximum length of command line arguments
6101 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6102 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
6103 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6104 echo $ECHO_N "(cached) $ECHO_C" >&6
6105 else
6107 teststring="ABCD"
6109 case $build_os in
6110 msdosdjgpp*)
6111 # On DJGPP, this test can blow up pretty badly due to problems in libc
6112 # (any single argument exceeding 2000 bytes causes a buffer overrun
6113 # during glob expansion). Even if it were fixed, the result of this
6114 # check would be larger than it should be.
6115 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6118 gnu*)
6119 # Under GNU Hurd, this test is not required because there is
6120 # no limit to the length of command line arguments.
6121 # Libtool will interpret -1 as no limit whatsoever
6122 lt_cv_sys_max_cmd_len=-1;
6125 cygwin* | mingw*)
6126 # On Win9x/ME, this test blows up -- it succeeds, but takes
6127 # about 5 minutes as the teststring grows exponentially.
6128 # Worse, since 9x/ME are not pre-emptively multitasking,
6129 # you end up with a "frozen" computer, even though with patience
6130 # the test eventually succeeds (with a max line length of 256k).
6131 # Instead, let's just punt: use the minimum linelength reported by
6132 # all of the supported platforms: 8192 (on NT/2K/XP).
6133 lt_cv_sys_max_cmd_len=8192;
6136 amigaos*)
6137 # On AmigaOS with pdksh, this test takes hours, literally.
6138 # So we just punt and use a minimum line length of 8192.
6139 lt_cv_sys_max_cmd_len=8192;
6142 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6143 # This has been around since 386BSD, at least. Likely further.
6144 if test -x /sbin/sysctl; then
6145 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6146 elif test -x /usr/sbin/sysctl; then
6147 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6148 else
6149 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6151 # And add a safety zone
6152 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6153 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6156 interix*)
6157 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6158 lt_cv_sys_max_cmd_len=196608
6161 osf*)
6162 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6163 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6164 # nice to cause kernel panics so lets avoid the loop below.
6165 # First set a reasonable default.
6166 lt_cv_sys_max_cmd_len=16384
6168 if test -x /sbin/sysconfig; then
6169 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6170 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6171 esac
6174 sco3.2v5*)
6175 lt_cv_sys_max_cmd_len=102400
6177 sysv5* | sco5v6* | sysv4.2uw2*)
6178 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6179 if test -n "$kargmax"; then
6180 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6181 else
6182 lt_cv_sys_max_cmd_len=32768
6186 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6187 if test -n "$lt_cv_sys_max_cmd_len"; then
6188 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6189 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6190 else
6191 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6192 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6193 = "XX$teststring") >/dev/null 2>&1 &&
6194 new_result=`expr "X$teststring" : ".*" 2>&1` &&
6195 lt_cv_sys_max_cmd_len=$new_result &&
6196 test $i != 17 # 1/2 MB should be enough
6198 i=`expr $i + 1`
6199 teststring=$teststring$teststring
6200 done
6201 teststring=
6202 # Add a significant safety factor because C++ compilers can tack on massive
6203 # amounts of additional arguments before passing them to the linker.
6204 # It appears as though 1/2 is a usable value.
6205 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6208 esac
6212 if test -n $lt_cv_sys_max_cmd_len ; then
6213 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6214 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
6215 else
6216 { echo "$as_me:$LINENO: result: none" >&5
6217 echo "${ECHO_T}none" >&6; }
6224 # Check for command to grab the raw symbol name followed by C symbol from nm.
6225 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6226 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
6227 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6228 echo $ECHO_N "(cached) $ECHO_C" >&6
6229 else
6231 # These are sane defaults that work on at least a few old systems.
6232 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6234 # Character class describing NM global symbol codes.
6235 symcode='[BCDEGRST]'
6237 # Regexp to match symbols that can be accessed directly from C.
6238 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6240 # Transform an extracted symbol line into a proper C declaration
6241 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6243 # Transform an extracted symbol line into symbol name and symbol address
6244 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'"
6246 # Define system-specific variables.
6247 case $host_os in
6248 aix*)
6249 symcode='[BCDT]'
6251 cygwin* | mingw* | pw32*)
6252 symcode='[ABCDGISTW]'
6254 hpux*) # Its linker distinguishes data from code symbols
6255 if test "$host_cpu" = ia64; then
6256 symcode='[ABCDEGRST]'
6258 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6259 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
6261 linux* | k*bsd*-gnu)
6262 if test "$host_cpu" = ia64; then
6263 symcode='[ABCDGIRSTW]'
6264 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6265 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'"
6268 irix* | nonstopux*)
6269 symcode='[BCDEGRST]'
6271 osf*)
6272 symcode='[BCDEGQRST]'
6274 solaris*)
6275 symcode='[BDRT]'
6277 sco3.2v5*)
6278 symcode='[DT]'
6280 sysv4.2uw2*)
6281 symcode='[DT]'
6283 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6284 symcode='[ABDT]'
6286 sysv4)
6287 symcode='[DFNSTU]'
6289 esac
6291 # Handle CRLF in mingw tool chain
6292 opt_cr=
6293 case $build_os in
6294 mingw*)
6295 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6297 esac
6299 # If we're using GNU nm, then use its standard symbol codes.
6300 case `$NM -V 2>&1` in
6301 *GNU* | *'with BFD'*)
6302 symcode='[ABCDGIRSTW]' ;;
6303 esac
6305 # Try without a prefix undercore, then with it.
6306 for ac_symprfx in "" "_"; do
6308 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6309 symxfrm="\\1 $ac_symprfx\\2 \\2"
6311 # Write the raw and C identifiers.
6312 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6314 # Check to see that the pipe works correctly.
6315 pipe_works=no
6317 rm -f conftest*
6318 cat > conftest.$ac_ext <<EOF
6319 #ifdef __cplusplus
6320 extern "C" {
6321 #endif
6322 char nm_test_var;
6323 void nm_test_func(){}
6324 #ifdef __cplusplus
6326 #endif
6327 int main(){nm_test_var='a';nm_test_func();return(0);}
6330 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6331 (eval $ac_compile) 2>&5
6332 ac_status=$?
6333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6334 (exit $ac_status); }; then
6335 # Now try to grab the symbols.
6336 nlist=conftest.nm
6337 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6338 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6339 ac_status=$?
6340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6341 (exit $ac_status); } && test -s "$nlist"; then
6342 # Try sorting and uniquifying the output.
6343 if sort "$nlist" | uniq > "$nlist"T; then
6344 mv -f "$nlist"T "$nlist"
6345 else
6346 rm -f "$nlist"T
6349 # Make sure that we snagged all the symbols we need.
6350 if grep ' nm_test_var$' "$nlist" >/dev/null; then
6351 if grep ' nm_test_func$' "$nlist" >/dev/null; then
6352 cat <<EOF > conftest.$ac_ext
6353 #ifdef __cplusplus
6354 extern "C" {
6355 #endif
6358 # Now generate the symbol file.
6359 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6361 cat <<EOF >> conftest.$ac_ext
6362 #if defined (__STDC__) && __STDC__
6363 # define lt_ptr_t void *
6364 #else
6365 # define lt_ptr_t char *
6366 # define const
6367 #endif
6369 /* The mapping between symbol names and symbols. */
6370 const struct {
6371 const char *name;
6372 lt_ptr_t address;
6374 lt_preloaded_symbols[] =
6377 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6378 cat <<\EOF >> conftest.$ac_ext
6379 {0, (lt_ptr_t) 0}
6382 #ifdef __cplusplus
6384 #endif
6386 # Now try linking the two files.
6387 mv conftest.$ac_objext conftstm.$ac_objext
6388 lt_save_LIBS="$LIBS"
6389 lt_save_CFLAGS="$CFLAGS"
6390 LIBS="conftstm.$ac_objext"
6391 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6392 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6393 (eval $ac_link) 2>&5
6394 ac_status=$?
6395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6396 (exit $ac_status); } && test -s conftest${ac_exeext}; then
6397 pipe_works=yes
6399 LIBS="$lt_save_LIBS"
6400 CFLAGS="$lt_save_CFLAGS"
6401 else
6402 echo "cannot find nm_test_func in $nlist" >&5
6404 else
6405 echo "cannot find nm_test_var in $nlist" >&5
6407 else
6408 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6410 else
6411 echo "$progname: failed program was:" >&5
6412 cat conftest.$ac_ext >&5
6414 rm -rf conftest* conftst*
6416 # Do not use the global_symbol_pipe unless it works.
6417 if test "$pipe_works" = yes; then
6418 break
6419 else
6420 lt_cv_sys_global_symbol_pipe=
6422 done
6426 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6427 lt_cv_sys_global_symbol_to_cdecl=
6429 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6430 { echo "$as_me:$LINENO: result: failed" >&5
6431 echo "${ECHO_T}failed" >&6; }
6432 else
6433 { echo "$as_me:$LINENO: result: ok" >&5
6434 echo "${ECHO_T}ok" >&6; }
6437 { echo "$as_me:$LINENO: checking for objdir" >&5
6438 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
6439 if test "${lt_cv_objdir+set}" = set; then
6440 echo $ECHO_N "(cached) $ECHO_C" >&6
6441 else
6442 rm -f .libs 2>/dev/null
6443 mkdir .libs 2>/dev/null
6444 if test -d .libs; then
6445 lt_cv_objdir=.libs
6446 else
6447 # MS-DOS does not allow filenames that begin with a dot.
6448 lt_cv_objdir=_libs
6450 rmdir .libs 2>/dev/null
6452 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6453 echo "${ECHO_T}$lt_cv_objdir" >&6; }
6454 objdir=$lt_cv_objdir
6460 case $host_os in
6461 aix3*)
6462 # AIX sometimes has problems with the GCC collect2 program. For some
6463 # reason, if we set the COLLECT_NAMES environment variable, the problems
6464 # vanish in a puff of smoke.
6465 if test "X${COLLECT_NAMES+set}" != Xset; then
6466 COLLECT_NAMES=
6467 export COLLECT_NAMES
6470 esac
6472 # Sed substitution that helps us do robust quoting. It backslashifies
6473 # metacharacters that are still active within double-quoted strings.
6474 Xsed='sed -e 1s/^X//'
6475 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6477 # Same as above, but do not quote variable references.
6478 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6480 # Sed substitution to delay expansion of an escaped shell variable in a
6481 # double_quote_subst'ed string.
6482 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6484 # Sed substitution to avoid accidental globbing in evaled expressions
6485 no_glob_subst='s/\*/\\\*/g'
6487 # Constants:
6488 rm="rm -f"
6490 # Global variables:
6491 default_ofile=libtool
6492 can_build_shared=yes
6494 # All known linkers require a `.a' archive for static linking (except MSVC,
6495 # which needs '.lib').
6496 libext=a
6497 ltmain="$ac_aux_dir/ltmain.sh"
6498 ofile="$default_ofile"
6499 with_gnu_ld="$lt_cv_prog_gnu_ld"
6501 if test -n "$ac_tool_prefix"; then
6502 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6503 set dummy ${ac_tool_prefix}ar; ac_word=$2
6504 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6505 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6506 if test "${ac_cv_prog_AR+set}" = set; then
6507 echo $ECHO_N "(cached) $ECHO_C" >&6
6508 else
6509 if test -n "$AR"; then
6510 ac_cv_prog_AR="$AR" # Let the user override the test.
6511 else
6512 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6513 for as_dir in $PATH
6515 IFS=$as_save_IFS
6516 test -z "$as_dir" && as_dir=.
6517 for ac_exec_ext in '' $ac_executable_extensions; do
6518 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6519 ac_cv_prog_AR="${ac_tool_prefix}ar"
6520 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6521 break 2
6523 done
6524 done
6525 IFS=$as_save_IFS
6529 AR=$ac_cv_prog_AR
6530 if test -n "$AR"; then
6531 { echo "$as_me:$LINENO: result: $AR" >&5
6532 echo "${ECHO_T}$AR" >&6; }
6533 else
6534 { echo "$as_me:$LINENO: result: no" >&5
6535 echo "${ECHO_T}no" >&6; }
6540 if test -z "$ac_cv_prog_AR"; then
6541 ac_ct_AR=$AR
6542 # Extract the first word of "ar", so it can be a program name with args.
6543 set dummy ar; ac_word=$2
6544 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6545 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6546 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6547 echo $ECHO_N "(cached) $ECHO_C" >&6
6548 else
6549 if test -n "$ac_ct_AR"; then
6550 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6551 else
6552 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6553 for as_dir in $PATH
6555 IFS=$as_save_IFS
6556 test -z "$as_dir" && as_dir=.
6557 for ac_exec_ext in '' $ac_executable_extensions; do
6558 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6559 ac_cv_prog_ac_ct_AR="ar"
6560 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6561 break 2
6563 done
6564 done
6565 IFS=$as_save_IFS
6569 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6570 if test -n "$ac_ct_AR"; then
6571 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6572 echo "${ECHO_T}$ac_ct_AR" >&6; }
6573 else
6574 { echo "$as_me:$LINENO: result: no" >&5
6575 echo "${ECHO_T}no" >&6; }
6578 if test "x$ac_ct_AR" = x; then
6579 AR="false"
6580 else
6581 case $cross_compiling:$ac_tool_warned in
6582 yes:)
6583 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6584 whose name does not start with the host triplet. If you think this
6585 configuration is useful to you, please write to autoconf@gnu.org." >&5
6586 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6587 whose name does not start with the host triplet. If you think this
6588 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6589 ac_tool_warned=yes ;;
6590 esac
6591 AR=$ac_ct_AR
6593 else
6594 AR="$ac_cv_prog_AR"
6597 if test -n "$ac_tool_prefix"; then
6598 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6599 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6600 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6601 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6602 if test "${ac_cv_prog_RANLIB+set}" = set; then
6603 echo $ECHO_N "(cached) $ECHO_C" >&6
6604 else
6605 if test -n "$RANLIB"; then
6606 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6607 else
6608 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6609 for as_dir in $PATH
6611 IFS=$as_save_IFS
6612 test -z "$as_dir" && as_dir=.
6613 for ac_exec_ext in '' $ac_executable_extensions; do
6614 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6615 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6616 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6617 break 2
6619 done
6620 done
6621 IFS=$as_save_IFS
6625 RANLIB=$ac_cv_prog_RANLIB
6626 if test -n "$RANLIB"; then
6627 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6628 echo "${ECHO_T}$RANLIB" >&6; }
6629 else
6630 { echo "$as_me:$LINENO: result: no" >&5
6631 echo "${ECHO_T}no" >&6; }
6636 if test -z "$ac_cv_prog_RANLIB"; then
6637 ac_ct_RANLIB=$RANLIB
6638 # Extract the first word of "ranlib", so it can be a program name with args.
6639 set dummy ranlib; ac_word=$2
6640 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6641 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6642 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6643 echo $ECHO_N "(cached) $ECHO_C" >&6
6644 else
6645 if test -n "$ac_ct_RANLIB"; then
6646 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6647 else
6648 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6649 for as_dir in $PATH
6651 IFS=$as_save_IFS
6652 test -z "$as_dir" && as_dir=.
6653 for ac_exec_ext in '' $ac_executable_extensions; do
6654 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6655 ac_cv_prog_ac_ct_RANLIB="ranlib"
6656 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6657 break 2
6659 done
6660 done
6661 IFS=$as_save_IFS
6665 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6666 if test -n "$ac_ct_RANLIB"; then
6667 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6668 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6669 else
6670 { echo "$as_me:$LINENO: result: no" >&5
6671 echo "${ECHO_T}no" >&6; }
6674 if test "x$ac_ct_RANLIB" = x; then
6675 RANLIB=":"
6676 else
6677 case $cross_compiling:$ac_tool_warned in
6678 yes:)
6679 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6680 whose name does not start with the host triplet. If you think this
6681 configuration is useful to you, please write to autoconf@gnu.org." >&5
6682 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6683 whose name does not start with the host triplet. If you think this
6684 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6685 ac_tool_warned=yes ;;
6686 esac
6687 RANLIB=$ac_ct_RANLIB
6689 else
6690 RANLIB="$ac_cv_prog_RANLIB"
6693 if test -n "$ac_tool_prefix"; then
6694 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6695 set dummy ${ac_tool_prefix}strip; ac_word=$2
6696 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6697 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6698 if test "${ac_cv_prog_STRIP+set}" = set; then
6699 echo $ECHO_N "(cached) $ECHO_C" >&6
6700 else
6701 if test -n "$STRIP"; then
6702 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6703 else
6704 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6705 for as_dir in $PATH
6707 IFS=$as_save_IFS
6708 test -z "$as_dir" && as_dir=.
6709 for ac_exec_ext in '' $ac_executable_extensions; do
6710 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6711 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6712 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6713 break 2
6715 done
6716 done
6717 IFS=$as_save_IFS
6721 STRIP=$ac_cv_prog_STRIP
6722 if test -n "$STRIP"; then
6723 { echo "$as_me:$LINENO: result: $STRIP" >&5
6724 echo "${ECHO_T}$STRIP" >&6; }
6725 else
6726 { echo "$as_me:$LINENO: result: no" >&5
6727 echo "${ECHO_T}no" >&6; }
6732 if test -z "$ac_cv_prog_STRIP"; then
6733 ac_ct_STRIP=$STRIP
6734 # Extract the first word of "strip", so it can be a program name with args.
6735 set dummy strip; ac_word=$2
6736 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6737 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6738 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6739 echo $ECHO_N "(cached) $ECHO_C" >&6
6740 else
6741 if test -n "$ac_ct_STRIP"; then
6742 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6743 else
6744 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6745 for as_dir in $PATH
6747 IFS=$as_save_IFS
6748 test -z "$as_dir" && as_dir=.
6749 for ac_exec_ext in '' $ac_executable_extensions; do
6750 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6751 ac_cv_prog_ac_ct_STRIP="strip"
6752 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6753 break 2
6755 done
6756 done
6757 IFS=$as_save_IFS
6761 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6762 if test -n "$ac_ct_STRIP"; then
6763 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6764 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
6765 else
6766 { echo "$as_me:$LINENO: result: no" >&5
6767 echo "${ECHO_T}no" >&6; }
6770 if test "x$ac_ct_STRIP" = x; then
6771 STRIP=":"
6772 else
6773 case $cross_compiling:$ac_tool_warned in
6774 yes:)
6775 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6776 whose name does not start with the host triplet. If you think this
6777 configuration is useful to you, please write to autoconf@gnu.org." >&5
6778 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6779 whose name does not start with the host triplet. If you think this
6780 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6781 ac_tool_warned=yes ;;
6782 esac
6783 STRIP=$ac_ct_STRIP
6785 else
6786 STRIP="$ac_cv_prog_STRIP"
6790 old_CC="$CC"
6791 old_CFLAGS="$CFLAGS"
6793 # Set sane defaults for various variables
6794 test -z "$AR" && AR=ar
6795 test -z "$AR_FLAGS" && AR_FLAGS=cru
6796 test -z "$AS" && AS=as
6797 test -z "$CC" && CC=cc
6798 test -z "$LTCC" && LTCC=$CC
6799 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6800 test -z "$DLLTOOL" && DLLTOOL=dlltool
6801 test -z "$LD" && LD=ld
6802 test -z "$LN_S" && LN_S="ln -s"
6803 test -z "$MAGIC_CMD" && MAGIC_CMD=file
6804 test -z "$NM" && NM=nm
6805 test -z "$SED" && SED=sed
6806 test -z "$OBJDUMP" && OBJDUMP=objdump
6807 test -z "$RANLIB" && RANLIB=:
6808 test -z "$STRIP" && STRIP=:
6809 test -z "$ac_objext" && ac_objext=o
6811 # Determine commands to create old-style static archives.
6812 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6813 old_postinstall_cmds='chmod 644 $oldlib'
6814 old_postuninstall_cmds=
6816 if test -n "$RANLIB"; then
6817 case $host_os in
6818 openbsd*)
6819 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6822 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6824 esac
6825 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6828 for cc_temp in $compiler""; do
6829 case $cc_temp in
6830 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6831 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6832 \-*) ;;
6833 *) break;;
6834 esac
6835 done
6836 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6839 # Only perform the check for file, if the check method requires it
6840 case $deplibs_check_method in
6841 file_magic*)
6842 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6843 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6844 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
6845 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6846 echo $ECHO_N "(cached) $ECHO_C" >&6
6847 else
6848 case $MAGIC_CMD in
6849 [\\/*] | ?:[\\/]*)
6850 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6853 lt_save_MAGIC_CMD="$MAGIC_CMD"
6854 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6855 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6856 for ac_dir in $ac_dummy; do
6857 IFS="$lt_save_ifs"
6858 test -z "$ac_dir" && ac_dir=.
6859 if test -f $ac_dir/${ac_tool_prefix}file; then
6860 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6861 if test -n "$file_magic_test_file"; then
6862 case $deplibs_check_method in
6863 "file_magic "*)
6864 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6865 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6866 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6867 $EGREP "$file_magic_regex" > /dev/null; then
6869 else
6870 cat <<EOF 1>&2
6872 *** Warning: the command libtool uses to detect shared libraries,
6873 *** $file_magic_cmd, produces output that libtool cannot recognize.
6874 *** The result is that libtool may fail to recognize shared libraries
6875 *** as such. This will affect the creation of libtool libraries that
6876 *** depend on shared libraries, but programs linked with such libtool
6877 *** libraries will work regardless of this problem. Nevertheless, you
6878 *** may want to report the problem to your system manager and/or to
6879 *** bug-libtool@gnu.org
6882 fi ;;
6883 esac
6885 break
6887 done
6888 IFS="$lt_save_ifs"
6889 MAGIC_CMD="$lt_save_MAGIC_CMD"
6891 esac
6894 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6895 if test -n "$MAGIC_CMD"; then
6896 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6897 echo "${ECHO_T}$MAGIC_CMD" >&6; }
6898 else
6899 { echo "$as_me:$LINENO: result: no" >&5
6900 echo "${ECHO_T}no" >&6; }
6903 if test -z "$lt_cv_path_MAGIC_CMD"; then
6904 if test -n "$ac_tool_prefix"; then
6905 { echo "$as_me:$LINENO: checking for file" >&5
6906 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
6907 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6908 echo $ECHO_N "(cached) $ECHO_C" >&6
6909 else
6910 case $MAGIC_CMD in
6911 [\\/*] | ?:[\\/]*)
6912 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6915 lt_save_MAGIC_CMD="$MAGIC_CMD"
6916 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6917 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6918 for ac_dir in $ac_dummy; do
6919 IFS="$lt_save_ifs"
6920 test -z "$ac_dir" && ac_dir=.
6921 if test -f $ac_dir/file; then
6922 lt_cv_path_MAGIC_CMD="$ac_dir/file"
6923 if test -n "$file_magic_test_file"; then
6924 case $deplibs_check_method in
6925 "file_magic "*)
6926 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6927 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6928 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6929 $EGREP "$file_magic_regex" > /dev/null; then
6931 else
6932 cat <<EOF 1>&2
6934 *** Warning: the command libtool uses to detect shared libraries,
6935 *** $file_magic_cmd, produces output that libtool cannot recognize.
6936 *** The result is that libtool may fail to recognize shared libraries
6937 *** as such. This will affect the creation of libtool libraries that
6938 *** depend on shared libraries, but programs linked with such libtool
6939 *** libraries will work regardless of this problem. Nevertheless, you
6940 *** may want to report the problem to your system manager and/or to
6941 *** bug-libtool@gnu.org
6944 fi ;;
6945 esac
6947 break
6949 done
6950 IFS="$lt_save_ifs"
6951 MAGIC_CMD="$lt_save_MAGIC_CMD"
6953 esac
6956 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6957 if test -n "$MAGIC_CMD"; then
6958 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6959 echo "${ECHO_T}$MAGIC_CMD" >&6; }
6960 else
6961 { echo "$as_me:$LINENO: result: no" >&5
6962 echo "${ECHO_T}no" >&6; }
6965 else
6966 MAGIC_CMD=:
6972 esac
6975 case $host_os in
6976 rhapsody* | darwin*)
6977 if test -n "$ac_tool_prefix"; then
6978 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6979 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6980 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6981 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6982 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
6983 echo $ECHO_N "(cached) $ECHO_C" >&6
6984 else
6985 if test -n "$DSYMUTIL"; then
6986 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6987 else
6988 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6989 for as_dir in $PATH
6991 IFS=$as_save_IFS
6992 test -z "$as_dir" && as_dir=.
6993 for ac_exec_ext in '' $ac_executable_extensions; do
6994 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6995 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6996 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6997 break 2
6999 done
7000 done
7001 IFS=$as_save_IFS
7005 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7006 if test -n "$DSYMUTIL"; then
7007 { echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
7008 echo "${ECHO_T}$DSYMUTIL" >&6; }
7009 else
7010 { echo "$as_me:$LINENO: result: no" >&5
7011 echo "${ECHO_T}no" >&6; }
7016 if test -z "$ac_cv_prog_DSYMUTIL"; then
7017 ac_ct_DSYMUTIL=$DSYMUTIL
7018 # Extract the first word of "dsymutil", so it can be a program name with args.
7019 set dummy dsymutil; ac_word=$2
7020 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7021 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7022 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
7023 echo $ECHO_N "(cached) $ECHO_C" >&6
7024 else
7025 if test -n "$ac_ct_DSYMUTIL"; then
7026 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7027 else
7028 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7029 for as_dir in $PATH
7031 IFS=$as_save_IFS
7032 test -z "$as_dir" && as_dir=.
7033 for ac_exec_ext in '' $ac_executable_extensions; do
7034 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7035 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7036 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7037 break 2
7039 done
7040 done
7041 IFS=$as_save_IFS
7045 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7046 if test -n "$ac_ct_DSYMUTIL"; then
7047 { echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
7048 echo "${ECHO_T}$ac_ct_DSYMUTIL" >&6; }
7049 else
7050 { echo "$as_me:$LINENO: result: no" >&5
7051 echo "${ECHO_T}no" >&6; }
7054 if test "x$ac_ct_DSYMUTIL" = x; then
7055 DSYMUTIL=":"
7056 else
7057 case $cross_compiling:$ac_tool_warned in
7058 yes:)
7059 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7060 whose name does not start with the host triplet. If you think this
7061 configuration is useful to you, please write to autoconf@gnu.org." >&5
7062 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7063 whose name does not start with the host triplet. If you think this
7064 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7065 ac_tool_warned=yes ;;
7066 esac
7067 DSYMUTIL=$ac_ct_DSYMUTIL
7069 else
7070 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7073 if test -n "$ac_tool_prefix"; then
7074 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7075 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7076 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7077 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7078 if test "${ac_cv_prog_NMEDIT+set}" = set; then
7079 echo $ECHO_N "(cached) $ECHO_C" >&6
7080 else
7081 if test -n "$NMEDIT"; then
7082 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7083 else
7084 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7085 for as_dir in $PATH
7087 IFS=$as_save_IFS
7088 test -z "$as_dir" && as_dir=.
7089 for ac_exec_ext in '' $ac_executable_extensions; do
7090 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7091 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7092 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7093 break 2
7095 done
7096 done
7097 IFS=$as_save_IFS
7101 NMEDIT=$ac_cv_prog_NMEDIT
7102 if test -n "$NMEDIT"; then
7103 { echo "$as_me:$LINENO: result: $NMEDIT" >&5
7104 echo "${ECHO_T}$NMEDIT" >&6; }
7105 else
7106 { echo "$as_me:$LINENO: result: no" >&5
7107 echo "${ECHO_T}no" >&6; }
7112 if test -z "$ac_cv_prog_NMEDIT"; then
7113 ac_ct_NMEDIT=$NMEDIT
7114 # Extract the first word of "nmedit", so it can be a program name with args.
7115 set dummy nmedit; ac_word=$2
7116 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7117 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7118 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
7119 echo $ECHO_N "(cached) $ECHO_C" >&6
7120 else
7121 if test -n "$ac_ct_NMEDIT"; then
7122 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7123 else
7124 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7125 for as_dir in $PATH
7127 IFS=$as_save_IFS
7128 test -z "$as_dir" && as_dir=.
7129 for ac_exec_ext in '' $ac_executable_extensions; do
7130 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7131 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7132 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7133 break 2
7135 done
7136 done
7137 IFS=$as_save_IFS
7141 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7142 if test -n "$ac_ct_NMEDIT"; then
7143 { echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
7144 echo "${ECHO_T}$ac_ct_NMEDIT" >&6; }
7145 else
7146 { echo "$as_me:$LINENO: result: no" >&5
7147 echo "${ECHO_T}no" >&6; }
7150 if test "x$ac_ct_NMEDIT" = x; then
7151 NMEDIT=":"
7152 else
7153 case $cross_compiling:$ac_tool_warned in
7154 yes:)
7155 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7156 whose name does not start with the host triplet. If you think this
7157 configuration is useful to you, please write to autoconf@gnu.org." >&5
7158 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7159 whose name does not start with the host triplet. If you think this
7160 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7161 ac_tool_warned=yes ;;
7162 esac
7163 NMEDIT=$ac_ct_NMEDIT
7165 else
7166 NMEDIT="$ac_cv_prog_NMEDIT"
7170 { echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
7171 echo $ECHO_N "checking for -single_module linker flag... $ECHO_C" >&6; }
7172 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
7173 echo $ECHO_N "(cached) $ECHO_C" >&6
7174 else
7175 lt_cv_apple_cc_single_mod=no
7176 if test -z "${LT_MULTI_MODULE}"; then
7177 # By default we will add the -single_module flag. You can override
7178 # by either setting the environment variable LT_MULTI_MODULE
7179 # non-empty at configure time, or by adding -multi_module to the
7180 # link flags.
7181 echo "int foo(void){return 1;}" > conftest.c
7182 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7183 -dynamiclib ${wl}-single_module conftest.c
7184 if test -f libconftest.dylib; then
7185 lt_cv_apple_cc_single_mod=yes
7186 rm -rf libconftest.dylib*
7188 rm conftest.c
7191 { echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
7192 echo "${ECHO_T}$lt_cv_apple_cc_single_mod" >&6; }
7193 { echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
7194 echo $ECHO_N "checking for -exported_symbols_list linker flag... $ECHO_C" >&6; }
7195 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
7196 echo $ECHO_N "(cached) $ECHO_C" >&6
7197 else
7198 lt_cv_ld_exported_symbols_list=no
7199 save_LDFLAGS=$LDFLAGS
7200 echo "_main" > conftest.sym
7201 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7202 cat >conftest.$ac_ext <<_ACEOF
7203 /* confdefs.h. */
7204 _ACEOF
7205 cat confdefs.h >>conftest.$ac_ext
7206 cat >>conftest.$ac_ext <<_ACEOF
7207 /* end confdefs.h. */
7210 main ()
7214 return 0;
7216 _ACEOF
7217 rm -f conftest.$ac_objext conftest$ac_exeext
7218 if { (ac_try="$ac_link"
7219 case "(($ac_try" in
7220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7221 *) ac_try_echo=$ac_try;;
7222 esac
7223 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7224 (eval "$ac_link") 2>conftest.er1
7225 ac_status=$?
7226 grep -v '^ *+' conftest.er1 >conftest.err
7227 rm -f conftest.er1
7228 cat conftest.err >&5
7229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7230 (exit $ac_status); } && {
7231 test -z "$ac_c_werror_flag" ||
7232 test ! -s conftest.err
7233 } && test -s conftest$ac_exeext &&
7234 $as_test_x conftest$ac_exeext; then
7235 lt_cv_ld_exported_symbols_list=yes
7236 else
7237 echo "$as_me: failed program was:" >&5
7238 sed 's/^/| /' conftest.$ac_ext >&5
7240 lt_cv_ld_exported_symbols_list=no
7243 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7244 conftest$ac_exeext conftest.$ac_ext
7245 LDFLAGS="$save_LDFLAGS"
7248 { echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
7249 echo "${ECHO_T}$lt_cv_ld_exported_symbols_list" >&6; }
7250 case $host_os in
7251 rhapsody* | darwin1.[0123])
7252 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7253 darwin1.*)
7254 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7255 darwin*)
7256 # if running on 10.5 or later, the deployment target defaults
7257 # to the OS version, if on x86, and 10.4, the deployment
7258 # target defaults to 10.4. Don't you love it?
7259 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7260 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7261 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7262 10.[012]*)
7263 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7264 10.*)
7265 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7266 esac
7268 esac
7269 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7270 _lt_dar_single_mod='$single_module'
7272 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7273 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7274 else
7275 _lt_dar_export_syms="~$NMEDIT -s \$output_objdir/\${libname}-symbols.expsym \${lib}"
7277 if test "$DSYMUTIL" != ":"; then
7278 _lt_dsymutil="~$DSYMUTIL \$lib || :"
7279 else
7280 _lt_dsymutil=
7283 esac
7286 enable_dlopen=no
7287 enable_win32_dll=no
7289 # Check whether --enable-libtool-lock was given.
7290 if test "${enable_libtool_lock+set}" = set; then
7291 enableval=$enable_libtool_lock;
7294 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7297 # Check whether --with-pic was given.
7298 if test "${with_pic+set}" = set; then
7299 withval=$with_pic; pic_mode="$withval"
7300 else
7301 pic_mode=default
7304 test -z "$pic_mode" && pic_mode=default
7306 # Use C for the default configuration in the libtool script
7307 tagname=
7308 lt_save_CC="$CC"
7309 ac_ext=c
7310 ac_cpp='$CPP $CPPFLAGS'
7311 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7312 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7313 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7316 # Source file extension for C test sources.
7317 ac_ext=c
7319 # Object file extension for compiled C test sources.
7320 objext=o
7321 objext=$objext
7323 # Code to be used in simple compile tests
7324 lt_simple_compile_test_code="int some_variable = 0;"
7326 # Code to be used in simple link tests
7327 lt_simple_link_test_code='int main(){return(0);}'
7330 # If no C compiler was specified, use CC.
7331 LTCC=${LTCC-"$CC"}
7333 # If no C compiler flags were specified, use CFLAGS.
7334 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7336 # Allow CC to be a program name with arguments.
7337 compiler=$CC
7340 # save warnings/boilerplate of simple test code
7341 ac_outfile=conftest.$ac_objext
7342 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7343 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7344 _lt_compiler_boilerplate=`cat conftest.err`
7345 $rm conftest*
7347 ac_outfile=conftest.$ac_objext
7348 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7349 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7350 _lt_linker_boilerplate=`cat conftest.err`
7351 $rm -r conftest*
7355 lt_prog_compiler_no_builtin_flag=
7357 if test "$GCC" = yes; then
7358 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7361 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7362 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
7363 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7364 echo $ECHO_N "(cached) $ECHO_C" >&6
7365 else
7366 lt_cv_prog_compiler_rtti_exceptions=no
7367 ac_outfile=conftest.$ac_objext
7368 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7369 lt_compiler_flag="-fno-rtti -fno-exceptions"
7370 # Insert the option either (1) after the last *FLAGS variable, or
7371 # (2) before a word containing "conftest.", or (3) at the end.
7372 # Note that $ac_compile itself does not contain backslashes and begins
7373 # with a dollar sign (not a hyphen), so the echo should work correctly.
7374 # The option is referenced via a variable to avoid confusing sed.
7375 lt_compile=`echo "$ac_compile" | $SED \
7376 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7377 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7378 -e 's:$: $lt_compiler_flag:'`
7379 (eval echo "\"\$as_me:7379: $lt_compile\"" >&5)
7380 (eval "$lt_compile" 2>conftest.err)
7381 ac_status=$?
7382 cat conftest.err >&5
7383 echo "$as_me:7383: \$? = $ac_status" >&5
7384 if (exit $ac_status) && test -s "$ac_outfile"; then
7385 # The compiler can only warn and ignore the option if not recognized
7386 # So say no if there are warnings other than the usual output.
7387 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7388 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7389 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7390 lt_cv_prog_compiler_rtti_exceptions=yes
7393 $rm conftest*
7396 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7397 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7399 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7400 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7401 else
7407 lt_prog_compiler_wl=
7408 lt_prog_compiler_pic=
7409 lt_prog_compiler_static=
7411 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7412 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
7414 if test "$GCC" = yes; then
7415 lt_prog_compiler_wl='-Wl,'
7416 lt_prog_compiler_static='-static'
7418 case $host_os in
7419 aix*)
7420 # All AIX code is PIC.
7421 if test "$host_cpu" = ia64; then
7422 # AIX 5 now supports IA64 processor
7423 lt_prog_compiler_static='-Bstatic'
7427 amigaos*)
7428 # FIXME: we need at least 68020 code to build shared libraries, but
7429 # adding the `-m68020' flag to GCC prevents building anything better,
7430 # like `-m68040'.
7431 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7434 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7435 # PIC is the default for these OSes.
7438 mingw* | cygwin* | pw32* | os2*)
7439 # This hack is so that the source file can tell whether it is being
7440 # built for inclusion in a dll (and should export symbols for example).
7441 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7442 # (--disable-auto-import) libraries
7443 lt_prog_compiler_pic='-DDLL_EXPORT'
7446 darwin* | rhapsody*)
7447 # PIC is the default on this platform
7448 # Common symbols not allowed in MH_DYLIB files
7449 lt_prog_compiler_pic='-fno-common'
7452 interix[3-9]*)
7453 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7454 # Instead, we relocate shared libraries at runtime.
7457 msdosdjgpp*)
7458 # Just because we use GCC doesn't mean we suddenly get shared libraries
7459 # on systems that don't support them.
7460 lt_prog_compiler_can_build_shared=no
7461 enable_shared=no
7464 sysv4*MP*)
7465 if test -d /usr/nec; then
7466 lt_prog_compiler_pic=-Kconform_pic
7470 hpux*)
7471 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7472 # not for PA HP-UX.
7473 case $host_cpu in
7474 hppa*64*|ia64*)
7475 # +Z the default
7478 lt_prog_compiler_pic='-fPIC'
7480 esac
7484 lt_prog_compiler_pic='-fPIC'
7486 esac
7487 else
7488 # PORTME Check for flag to pass linker flags through the system compiler.
7489 case $host_os in
7490 aix*)
7491 lt_prog_compiler_wl='-Wl,'
7492 if test "$host_cpu" = ia64; then
7493 # AIX 5 now supports IA64 processor
7494 lt_prog_compiler_static='-Bstatic'
7495 else
7496 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7499 darwin*)
7500 # PIC is the default on this platform
7501 # Common symbols not allowed in MH_DYLIB files
7502 case $cc_basename in
7503 xlc*)
7504 lt_prog_compiler_pic='-qnocommon'
7505 lt_prog_compiler_wl='-Wl,'
7507 esac
7510 mingw* | cygwin* | pw32* | os2*)
7511 # This hack is so that the source file can tell whether it is being
7512 # built for inclusion in a dll (and should export symbols for example).
7513 lt_prog_compiler_pic='-DDLL_EXPORT'
7516 hpux9* | hpux10* | hpux11*)
7517 lt_prog_compiler_wl='-Wl,'
7518 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7519 # not for PA HP-UX.
7520 case $host_cpu in
7521 hppa*64*|ia64*)
7522 # +Z the default
7525 lt_prog_compiler_pic='+Z'
7527 esac
7528 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7529 lt_prog_compiler_static='${wl}-a ${wl}archive'
7532 irix5* | irix6* | nonstopux*)
7533 lt_prog_compiler_wl='-Wl,'
7534 # PIC (with -KPIC) is the default.
7535 lt_prog_compiler_static='-non_shared'
7538 newsos6)
7539 lt_prog_compiler_pic='-KPIC'
7540 lt_prog_compiler_static='-Bstatic'
7543 linux* | k*bsd*-gnu)
7544 case $cc_basename in
7545 icc* | ecc*)
7546 lt_prog_compiler_wl='-Wl,'
7547 lt_prog_compiler_pic='-KPIC'
7548 lt_prog_compiler_static='-static'
7550 pgcc* | pgf77* | pgf90* | pgf95*)
7551 # Portland Group compilers (*not* the Pentium gcc compiler,
7552 # which looks to be a dead project)
7553 lt_prog_compiler_wl='-Wl,'
7554 lt_prog_compiler_pic='-fpic'
7555 lt_prog_compiler_static='-Bstatic'
7557 ccc*)
7558 lt_prog_compiler_wl='-Wl,'
7559 # All Alpha code is PIC.
7560 lt_prog_compiler_static='-non_shared'
7563 case `$CC -V 2>&1 | sed 5q` in
7564 *Sun\ C*)
7565 # Sun C 5.9
7566 lt_prog_compiler_pic='-KPIC'
7567 lt_prog_compiler_static='-Bstatic'
7568 lt_prog_compiler_wl='-Wl,'
7570 *Sun\ F*)
7571 # Sun Fortran 8.3 passes all unrecognized flags to the linker
7572 lt_prog_compiler_pic='-KPIC'
7573 lt_prog_compiler_static='-Bstatic'
7574 lt_prog_compiler_wl=''
7576 esac
7578 esac
7581 osf3* | osf4* | osf5*)
7582 lt_prog_compiler_wl='-Wl,'
7583 # All OSF/1 code is PIC.
7584 lt_prog_compiler_static='-non_shared'
7587 rdos*)
7588 lt_prog_compiler_static='-non_shared'
7591 solaris*)
7592 lt_prog_compiler_pic='-KPIC'
7593 lt_prog_compiler_static='-Bstatic'
7594 case $cc_basename in
7595 f77* | f90* | f95*)
7596 lt_prog_compiler_wl='-Qoption ld ';;
7598 lt_prog_compiler_wl='-Wl,';;
7599 esac
7602 sunos4*)
7603 lt_prog_compiler_wl='-Qoption ld '
7604 lt_prog_compiler_pic='-PIC'
7605 lt_prog_compiler_static='-Bstatic'
7608 sysv4 | sysv4.2uw2* | sysv4.3*)
7609 lt_prog_compiler_wl='-Wl,'
7610 lt_prog_compiler_pic='-KPIC'
7611 lt_prog_compiler_static='-Bstatic'
7614 sysv4*MP*)
7615 if test -d /usr/nec ;then
7616 lt_prog_compiler_pic='-Kconform_pic'
7617 lt_prog_compiler_static='-Bstatic'
7621 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7622 lt_prog_compiler_wl='-Wl,'
7623 lt_prog_compiler_pic='-KPIC'
7624 lt_prog_compiler_static='-Bstatic'
7627 unicos*)
7628 lt_prog_compiler_wl='-Wl,'
7629 lt_prog_compiler_can_build_shared=no
7632 uts4*)
7633 lt_prog_compiler_pic='-pic'
7634 lt_prog_compiler_static='-Bstatic'
7638 lt_prog_compiler_can_build_shared=no
7640 esac
7643 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7644 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
7647 # Check to make sure the PIC flag actually works.
7649 if test -n "$lt_prog_compiler_pic"; then
7651 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7652 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
7653 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
7654 echo $ECHO_N "(cached) $ECHO_C" >&6
7655 else
7656 lt_cv_prog_compiler_pic_works=no
7657 ac_outfile=conftest.$ac_objext
7658 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7659 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7660 # Insert the option either (1) after the last *FLAGS variable, or
7661 # (2) before a word containing "conftest.", or (3) at the end.
7662 # Note that $ac_compile itself does not contain backslashes and begins
7663 # with a dollar sign (not a hyphen), so the echo should work correctly.
7664 # The option is referenced via a variable to avoid confusing sed.
7665 lt_compile=`echo "$ac_compile" | $SED \
7666 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7667 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7668 -e 's:$: $lt_compiler_flag:'`
7669 (eval echo "\"\$as_me:7669: $lt_compile\"" >&5)
7670 (eval "$lt_compile" 2>conftest.err)
7671 ac_status=$?
7672 cat conftest.err >&5
7673 echo "$as_me:7673: \$? = $ac_status" >&5
7674 if (exit $ac_status) && test -s "$ac_outfile"; then
7675 # The compiler can only warn and ignore the option if not recognized
7676 # So say no if there are warnings other than the usual output.
7677 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7678 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7679 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7680 lt_cv_prog_compiler_pic_works=yes
7683 $rm conftest*
7686 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
7687 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works" >&6; }
7689 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
7690 case $lt_prog_compiler_pic in
7691 "" | " "*) ;;
7692 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7693 esac
7694 else
7695 lt_prog_compiler_pic=
7696 lt_prog_compiler_can_build_shared=no
7700 case $host_os in
7701 # For platforms which do not support PIC, -DPIC is meaningless:
7702 *djgpp*)
7703 lt_prog_compiler_pic=
7706 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7708 esac
7711 # Check to make sure the static flag actually works.
7713 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7714 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7715 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
7716 if test "${lt_cv_prog_compiler_static_works+set}" = set; then
7717 echo $ECHO_N "(cached) $ECHO_C" >&6
7718 else
7719 lt_cv_prog_compiler_static_works=no
7720 save_LDFLAGS="$LDFLAGS"
7721 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7722 echo "$lt_simple_link_test_code" > conftest.$ac_ext
7723 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7724 # The linker can only warn and ignore the option if not recognized
7725 # So say no if there are warnings
7726 if test -s conftest.err; then
7727 # Append any errors to the config.log.
7728 cat conftest.err 1>&5
7729 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7730 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7731 if diff conftest.exp conftest.er2 >/dev/null; then
7732 lt_cv_prog_compiler_static_works=yes
7734 else
7735 lt_cv_prog_compiler_static_works=yes
7738 $rm -r conftest*
7739 LDFLAGS="$save_LDFLAGS"
7742 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
7743 echo "${ECHO_T}$lt_cv_prog_compiler_static_works" >&6; }
7745 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
7747 else
7748 lt_prog_compiler_static=
7752 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7753 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
7754 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7755 echo $ECHO_N "(cached) $ECHO_C" >&6
7756 else
7757 lt_cv_prog_compiler_c_o=no
7758 $rm -r conftest 2>/dev/null
7759 mkdir conftest
7760 cd conftest
7761 mkdir out
7762 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7764 lt_compiler_flag="-o out/conftest2.$ac_objext"
7765 # Insert the option either (1) after the last *FLAGS variable, or
7766 # (2) before a word containing "conftest.", or (3) at the end.
7767 # Note that $ac_compile itself does not contain backslashes and begins
7768 # with a dollar sign (not a hyphen), so the echo should work correctly.
7769 lt_compile=`echo "$ac_compile" | $SED \
7770 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7771 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7772 -e 's:$: $lt_compiler_flag:'`
7773 (eval echo "\"\$as_me:7773: $lt_compile\"" >&5)
7774 (eval "$lt_compile" 2>out/conftest.err)
7775 ac_status=$?
7776 cat out/conftest.err >&5
7777 echo "$as_me:7777: \$? = $ac_status" >&5
7778 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7779 then
7780 # The compiler can only warn and ignore the option if not recognized
7781 # So say no if there are warnings
7782 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7783 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7784 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7785 lt_cv_prog_compiler_c_o=yes
7788 chmod u+w . 2>&5
7789 $rm conftest*
7790 # SGI C++ compiler will create directory out/ii_files/ for
7791 # template instantiation
7792 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7793 $rm out/* && rmdir out
7794 cd ..
7795 rmdir conftest
7796 $rm conftest*
7799 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7800 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
7803 hard_links="nottested"
7804 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7805 # do not overwrite the value of need_locks provided by the user
7806 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7807 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
7808 hard_links=yes
7809 $rm conftest*
7810 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7811 touch conftest.a
7812 ln conftest.a conftest.b 2>&5 || hard_links=no
7813 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7814 { echo "$as_me:$LINENO: result: $hard_links" >&5
7815 echo "${ECHO_T}$hard_links" >&6; }
7816 if test "$hard_links" = no; then
7817 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7818 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7819 need_locks=warn
7821 else
7822 need_locks=no
7825 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7826 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
7828 runpath_var=
7829 allow_undefined_flag=
7830 enable_shared_with_static_runtimes=no
7831 archive_cmds=
7832 archive_expsym_cmds=
7833 old_archive_From_new_cmds=
7834 old_archive_from_expsyms_cmds=
7835 export_dynamic_flag_spec=
7836 whole_archive_flag_spec=
7837 thread_safe_flag_spec=
7838 hardcode_libdir_flag_spec=
7839 hardcode_libdir_flag_spec_ld=
7840 hardcode_libdir_separator=
7841 hardcode_direct=no
7842 hardcode_minus_L=no
7843 hardcode_shlibpath_var=unsupported
7844 link_all_deplibs=unknown
7845 hardcode_automatic=no
7846 module_cmds=
7847 module_expsym_cmds=
7848 always_export_symbols=no
7849 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7850 # include_expsyms should be a list of space-separated symbols to be *always*
7851 # included in the symbol list
7852 include_expsyms=
7853 # exclude_expsyms can be an extended regexp of symbols to exclude
7854 # it will be wrapped by ` (' and `)$', so one must not match beginning or
7855 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7856 # as well as any symbol that contains `d'.
7857 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
7858 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7859 # platforms (ab)use it in PIC code, but their linkers get confused if
7860 # the symbol is explicitly referenced. Since portable code cannot
7861 # rely on this symbol name, it's probably fine to never include it in
7862 # preloaded symbol tables.
7863 # Exclude shared library initialization/finalization symbols.
7864 extract_expsyms_cmds=
7865 # Just being paranoid about ensuring that cc_basename is set.
7866 for cc_temp in $compiler""; do
7867 case $cc_temp in
7868 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7869 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7870 \-*) ;;
7871 *) break;;
7872 esac
7873 done
7874 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7876 case $host_os in
7877 cygwin* | mingw* | pw32*)
7878 # FIXME: the MSVC++ port hasn't been tested in a loooong time
7879 # When not using gcc, we currently assume that we are using
7880 # Microsoft Visual C++.
7881 if test "$GCC" != yes; then
7882 with_gnu_ld=no
7885 interix*)
7886 # we just hope/assume this is gcc and not c89 (= MSVC++)
7887 with_gnu_ld=yes
7889 openbsd*)
7890 with_gnu_ld=no
7892 esac
7894 ld_shlibs=yes
7895 if test "$with_gnu_ld" = yes; then
7896 # If archive_cmds runs LD, not CC, wlarc should be empty
7897 wlarc='${wl}'
7899 # Set some defaults for GNU ld with shared library support. These
7900 # are reset later if shared libraries are not supported. Putting them
7901 # here allows them to be overridden if necessary.
7902 runpath_var=LD_RUN_PATH
7903 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
7904 export_dynamic_flag_spec='${wl}--export-dynamic'
7905 # ancient GNU ld didn't support --whole-archive et. al.
7906 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
7907 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7908 else
7909 whole_archive_flag_spec=
7911 supports_anon_versioning=no
7912 case `$LD -v 2>/dev/null` in
7913 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7914 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7915 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7916 *\ 2.11.*) ;; # other 2.11 versions
7917 *) supports_anon_versioning=yes ;;
7918 esac
7920 # See if GNU ld supports shared libraries.
7921 case $host_os in
7922 aix[3-9]*)
7923 # On AIX/PPC, the GNU linker is very broken
7924 if test "$host_cpu" != ia64; then
7925 ld_shlibs=no
7926 cat <<EOF 1>&2
7928 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
7929 *** to be unable to reliably create shared libraries on AIX.
7930 *** Therefore, libtool is disabling shared libraries support. If you
7931 *** really care for shared libraries, you may want to modify your PATH
7932 *** so that a non-GNU linker is found, and then restart.
7938 amigaos*)
7939 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)'
7940 hardcode_libdir_flag_spec='-L$libdir'
7941 hardcode_minus_L=yes
7943 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7944 # that the semantics of dynamic libraries on AmigaOS, at least up
7945 # to version 4, is to share data among multiple programs linked
7946 # with the same dynamic library. Since this doesn't match the
7947 # behavior of shared libraries on other platforms, we can't use
7948 # them.
7949 ld_shlibs=no
7952 beos*)
7953 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7954 allow_undefined_flag=unsupported
7955 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7956 # support --undefined. This deserves some investigation. FIXME
7957 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7958 else
7959 ld_shlibs=no
7963 cygwin* | mingw* | pw32*)
7964 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7965 # as there is no search path for DLLs.
7966 hardcode_libdir_flag_spec='-L$libdir'
7967 allow_undefined_flag=unsupported
7968 always_export_symbols=no
7969 enable_shared_with_static_runtimes=yes
7970 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
7972 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
7973 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7974 # If the export-symbols file already is a .def file (1st line
7975 # is EXPORTS), use it as is; otherwise, prepend...
7976 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7977 cp $export_symbols $output_objdir/$soname.def;
7978 else
7979 echo EXPORTS > $output_objdir/$soname.def;
7980 cat $export_symbols >> $output_objdir/$soname.def;
7982 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7983 else
7984 ld_shlibs=no
7988 interix[3-9]*)
7989 hardcode_direct=no
7990 hardcode_shlibpath_var=no
7991 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7992 export_dynamic_flag_spec='${wl}-E'
7993 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7994 # Instead, shared libraries are loaded at an image base (0x10000000 by
7995 # default) and relocated if they conflict, which is a slow very memory
7996 # consuming and fragmenting process. To avoid this, we pick a random,
7997 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7998 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
7999 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8000 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'
8003 gnu* | linux* | k*bsd*-gnu)
8004 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8005 tmp_addflag=
8006 case $cc_basename,$host_cpu in
8007 pgcc*) # Portland Group C compiler
8008 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'
8009 tmp_addflag=' $pic_flag'
8011 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
8012 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'
8013 tmp_addflag=' $pic_flag -Mnomain' ;;
8014 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8015 tmp_addflag=' -i_dynamic' ;;
8016 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8017 tmp_addflag=' -i_dynamic -nofor_main' ;;
8018 ifc* | ifort*) # Intel Fortran compiler
8019 tmp_addflag=' -nofor_main' ;;
8020 esac
8021 case `$CC -V 2>&1 | sed 5q` in
8022 *Sun\ C*) # Sun C 5.9
8023 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'
8024 tmp_sharedflag='-G' ;;
8025 *Sun\ F*) # Sun Fortran 8.3
8026 tmp_sharedflag='-G' ;;
8028 tmp_sharedflag='-shared' ;;
8029 esac
8030 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8032 if test $supports_anon_versioning = yes; then
8033 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8034 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8035 $echo "local: *; };" >> $output_objdir/$libname.ver~
8036 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8038 else
8039 ld_shlibs=no
8043 netbsd*)
8044 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8045 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8046 wlarc=
8047 else
8048 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8049 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8053 solaris*)
8054 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8055 ld_shlibs=no
8056 cat <<EOF 1>&2
8058 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8059 *** create shared libraries on Solaris systems. Therefore, libtool
8060 *** is disabling shared libraries support. We urge you to upgrade GNU
8061 *** binutils to release 2.9.1 or newer. Another option is to modify
8062 *** your PATH or compiler configuration so that the native linker is
8063 *** used, and then restart.
8066 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8067 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8068 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8069 else
8070 ld_shlibs=no
8074 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8075 case `$LD -v 2>&1` in
8076 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8077 ld_shlibs=no
8078 cat <<_LT_EOF 1>&2
8080 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8081 *** reliably create shared libraries on SCO systems. Therefore, libtool
8082 *** is disabling shared libraries support. We urge you to upgrade GNU
8083 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8084 *** your PATH or compiler configuration so that the native linker is
8085 *** used, and then restart.
8087 _LT_EOF
8090 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8091 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
8092 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
8093 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
8094 else
8095 ld_shlibs=no
8098 esac
8101 sunos4*)
8102 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8103 wlarc=
8104 hardcode_direct=yes
8105 hardcode_shlibpath_var=no
8109 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8110 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8111 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8112 else
8113 ld_shlibs=no
8116 esac
8118 if test "$ld_shlibs" = no; then
8119 runpath_var=
8120 hardcode_libdir_flag_spec=
8121 export_dynamic_flag_spec=
8122 whole_archive_flag_spec=
8124 else
8125 # PORTME fill in a description of your system's linker (not GNU ld)
8126 case $host_os in
8127 aix3*)
8128 allow_undefined_flag=unsupported
8129 always_export_symbols=yes
8130 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'
8131 # Note: this linker hardcodes the directories in LIBPATH if there
8132 # are no directories specified by -L.
8133 hardcode_minus_L=yes
8134 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8135 # Neither direct hardcoding nor static linking is supported with a
8136 # broken collect2.
8137 hardcode_direct=unsupported
8141 aix[4-9]*)
8142 if test "$host_cpu" = ia64; then
8143 # On IA64, the linker does run time linking by default, so we don't
8144 # have to do anything special.
8145 aix_use_runtimelinking=no
8146 exp_sym_flag='-Bexport'
8147 no_entry_flag=""
8148 else
8149 # If we're using GNU nm, then we don't want the "-C" option.
8150 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8151 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8152 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'
8153 else
8154 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'
8156 aix_use_runtimelinking=no
8158 # Test if we are trying to use run time linking or normal
8159 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8160 # need to do runtime linking.
8161 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8162 for ld_flag in $LDFLAGS; do
8163 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8164 aix_use_runtimelinking=yes
8165 break
8167 done
8169 esac
8171 exp_sym_flag='-bexport'
8172 no_entry_flag='-bnoentry'
8175 # When large executables or shared objects are built, AIX ld can
8176 # have problems creating the table of contents. If linking a library
8177 # or program results in "error TOC overflow" add -mminimal-toc to
8178 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8179 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8181 archive_cmds=''
8182 hardcode_direct=yes
8183 hardcode_libdir_separator=':'
8184 link_all_deplibs=yes
8186 if test "$GCC" = yes; then
8187 case $host_os in aix4.[012]|aix4.[012].*)
8188 # We only want to do this on AIX 4.2 and lower, the check
8189 # below for broken collect2 doesn't work under 4.3+
8190 collect2name=`${CC} -print-prog-name=collect2`
8191 if test -f "$collect2name" && \
8192 strings "$collect2name" | grep resolve_lib_name >/dev/null
8193 then
8194 # We have reworked collect2
8196 else
8197 # We have old collect2
8198 hardcode_direct=unsupported
8199 # It fails to find uninstalled libraries when the uninstalled
8200 # path is not listed in the libpath. Setting hardcode_minus_L
8201 # to unsupported forces relinking
8202 hardcode_minus_L=yes
8203 hardcode_libdir_flag_spec='-L$libdir'
8204 hardcode_libdir_separator=
8207 esac
8208 shared_flag='-shared'
8209 if test "$aix_use_runtimelinking" = yes; then
8210 shared_flag="$shared_flag "'${wl}-G'
8212 else
8213 # not using gcc
8214 if test "$host_cpu" = ia64; then
8215 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8216 # chokes on -Wl,-G. The following line is correct:
8217 shared_flag='-G'
8218 else
8219 if test "$aix_use_runtimelinking" = yes; then
8220 shared_flag='${wl}-G'
8221 else
8222 shared_flag='${wl}-bM:SRE'
8227 # It seems that -bexpall does not export symbols beginning with
8228 # underscore (_), so it is better to generate a list of symbols to export.
8229 always_export_symbols=yes
8230 if test "$aix_use_runtimelinking" = yes; then
8231 # Warning - without using the other runtime loading flags (-brtl),
8232 # -berok will link without error, but may produce a broken library.
8233 allow_undefined_flag='-berok'
8234 # Determine the default libpath from the value encoded in an empty executable.
8235 cat >conftest.$ac_ext <<_ACEOF
8236 /* confdefs.h. */
8237 _ACEOF
8238 cat confdefs.h >>conftest.$ac_ext
8239 cat >>conftest.$ac_ext <<_ACEOF
8240 /* end confdefs.h. */
8243 main ()
8247 return 0;
8249 _ACEOF
8250 rm -f conftest.$ac_objext conftest$ac_exeext
8251 if { (ac_try="$ac_link"
8252 case "(($ac_try" in
8253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8254 *) ac_try_echo=$ac_try;;
8255 esac
8256 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8257 (eval "$ac_link") 2>conftest.er1
8258 ac_status=$?
8259 grep -v '^ *+' conftest.er1 >conftest.err
8260 rm -f conftest.er1
8261 cat conftest.err >&5
8262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8263 (exit $ac_status); } && {
8264 test -z "$ac_c_werror_flag" ||
8265 test ! -s conftest.err
8266 } && test -s conftest$ac_exeext &&
8267 $as_test_x conftest$ac_exeext; then
8269 lt_aix_libpath_sed='
8270 /Import File Strings/,/^$/ {
8271 /^0/ {
8272 s/^0 *\(.*\)$/\1/
8276 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8277 # Check for a 64-bit object if we didn't find anything.
8278 if test -z "$aix_libpath"; then
8279 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8281 else
8282 echo "$as_me: failed program was:" >&5
8283 sed 's/^/| /' conftest.$ac_ext >&5
8288 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8289 conftest$ac_exeext conftest.$ac_ext
8290 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8292 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8293 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"
8294 else
8295 if test "$host_cpu" = ia64; then
8296 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8297 allow_undefined_flag="-z nodefs"
8298 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"
8299 else
8300 # Determine the default libpath from the value encoded in an empty executable.
8301 cat >conftest.$ac_ext <<_ACEOF
8302 /* confdefs.h. */
8303 _ACEOF
8304 cat confdefs.h >>conftest.$ac_ext
8305 cat >>conftest.$ac_ext <<_ACEOF
8306 /* end confdefs.h. */
8309 main ()
8313 return 0;
8315 _ACEOF
8316 rm -f conftest.$ac_objext conftest$ac_exeext
8317 if { (ac_try="$ac_link"
8318 case "(($ac_try" in
8319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8320 *) ac_try_echo=$ac_try;;
8321 esac
8322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8323 (eval "$ac_link") 2>conftest.er1
8324 ac_status=$?
8325 grep -v '^ *+' conftest.er1 >conftest.err
8326 rm -f conftest.er1
8327 cat conftest.err >&5
8328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8329 (exit $ac_status); } && {
8330 test -z "$ac_c_werror_flag" ||
8331 test ! -s conftest.err
8332 } && test -s conftest$ac_exeext &&
8333 $as_test_x conftest$ac_exeext; then
8335 lt_aix_libpath_sed='
8336 /Import File Strings/,/^$/ {
8337 /^0/ {
8338 s/^0 *\(.*\)$/\1/
8342 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8343 # Check for a 64-bit object if we didn't find anything.
8344 if test -z "$aix_libpath"; then
8345 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8347 else
8348 echo "$as_me: failed program was:" >&5
8349 sed 's/^/| /' conftest.$ac_ext >&5
8354 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8355 conftest$ac_exeext conftest.$ac_ext
8356 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8358 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8359 # Warning - without using the other run time loading flags,
8360 # -berok will link without error, but may produce a broken library.
8361 no_undefined_flag=' ${wl}-bernotok'
8362 allow_undefined_flag=' ${wl}-berok'
8363 # Exported symbols can be pulled into shared objects from archives
8364 whole_archive_flag_spec='$convenience'
8365 archive_cmds_need_lc=yes
8366 # This is similar to how AIX traditionally builds its shared libraries.
8367 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'
8372 amigaos*)
8373 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)'
8374 hardcode_libdir_flag_spec='-L$libdir'
8375 hardcode_minus_L=yes
8376 # see comment about different semantics on the GNU ld section
8377 ld_shlibs=no
8380 bsdi[45]*)
8381 export_dynamic_flag_spec=-rdynamic
8384 cygwin* | mingw* | pw32*)
8385 # When not using gcc, we currently assume that we are using
8386 # Microsoft Visual C++.
8387 # hardcode_libdir_flag_spec is actually meaningless, as there is
8388 # no search path for DLLs.
8389 hardcode_libdir_flag_spec=' '
8390 allow_undefined_flag=unsupported
8391 # Tell ltmain to make .lib files, not .a files.
8392 libext=lib
8393 # Tell ltmain to make .dll files, not .so files.
8394 shrext_cmds=".dll"
8395 # FIXME: Setting linknames here is a bad hack.
8396 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8397 # The linker will automatically build a .lib file if we build a DLL.
8398 old_archive_From_new_cmds='true'
8399 # FIXME: Should let the user specify the lib program.
8400 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8401 fix_srcfile_path='`cygpath -w "$srcfile"`'
8402 enable_shared_with_static_runtimes=yes
8405 darwin* | rhapsody*)
8406 case $host_os in
8407 rhapsody* | darwin1.[012])
8408 allow_undefined_flag='${wl}-undefined ${wl}suppress'
8410 *) # Darwin 1.3 on
8411 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8412 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8413 else
8414 case ${MACOSX_DEPLOYMENT_TARGET} in
8415 10.[012])
8416 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8418 10.*)
8419 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8421 esac
8424 esac
8425 archive_cmds_need_lc=no
8426 hardcode_direct=no
8427 hardcode_automatic=yes
8428 hardcode_shlibpath_var=unsupported
8429 whole_archive_flag_spec=''
8430 link_all_deplibs=yes
8431 if test "$GCC" = yes ; then
8432 output_verbose_link_cmd='echo'
8433 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8434 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8435 archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
8436 module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
8437 else
8438 case $cc_basename in
8439 xlc*)
8440 output_verbose_link_cmd='echo'
8441 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
8442 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8443 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8444 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}'
8445 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}'
8448 ld_shlibs=no
8450 esac
8454 dgux*)
8455 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8456 hardcode_libdir_flag_spec='-L$libdir'
8457 hardcode_shlibpath_var=no
8460 freebsd1*)
8461 ld_shlibs=no
8464 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8465 # support. Future versions do this automatically, but an explicit c++rt0.o
8466 # does not break anything, and helps significantly (at the cost of a little
8467 # extra space).
8468 freebsd2.2*)
8469 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8470 hardcode_libdir_flag_spec='-R$libdir'
8471 hardcode_direct=yes
8472 hardcode_shlibpath_var=no
8475 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8476 freebsd2*)
8477 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8478 hardcode_direct=yes
8479 hardcode_minus_L=yes
8480 hardcode_shlibpath_var=no
8483 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8484 freebsd* | dragonfly*)
8485 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8486 hardcode_libdir_flag_spec='-R$libdir'
8487 hardcode_direct=yes
8488 hardcode_shlibpath_var=no
8491 hpux9*)
8492 if test "$GCC" = yes; then
8493 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'
8494 else
8495 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'
8497 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8498 hardcode_libdir_separator=:
8499 hardcode_direct=yes
8501 # hardcode_minus_L: Not really in the search PATH,
8502 # but as the default location of the library.
8503 hardcode_minus_L=yes
8504 export_dynamic_flag_spec='${wl}-E'
8507 hpux10*)
8508 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8509 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8510 else
8511 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8513 if test "$with_gnu_ld" = no; then
8514 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8515 hardcode_libdir_separator=:
8517 hardcode_direct=yes
8518 export_dynamic_flag_spec='${wl}-E'
8520 # hardcode_minus_L: Not really in the search PATH,
8521 # but as the default location of the library.
8522 hardcode_minus_L=yes
8526 hpux11*)
8527 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8528 case $host_cpu in
8529 hppa*64*)
8530 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8532 ia64*)
8533 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8536 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8538 esac
8539 else
8540 case $host_cpu in
8541 hppa*64*)
8542 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8544 ia64*)
8545 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8548 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8550 esac
8552 if test "$with_gnu_ld" = no; then
8553 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8554 hardcode_libdir_separator=:
8556 case $host_cpu in
8557 hppa*64*|ia64*)
8558 hardcode_libdir_flag_spec_ld='+b $libdir'
8559 hardcode_direct=no
8560 hardcode_shlibpath_var=no
8563 hardcode_direct=yes
8564 export_dynamic_flag_spec='${wl}-E'
8566 # hardcode_minus_L: Not really in the search PATH,
8567 # but as the default location of the library.
8568 hardcode_minus_L=yes
8570 esac
8574 irix5* | irix6* | nonstopux*)
8575 if test "$GCC" = yes; then
8576 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'
8577 else
8578 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'
8579 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8581 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8582 hardcode_libdir_separator=:
8583 link_all_deplibs=yes
8586 netbsd*)
8587 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8588 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8589 else
8590 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8592 hardcode_libdir_flag_spec='-R$libdir'
8593 hardcode_direct=yes
8594 hardcode_shlibpath_var=no
8597 newsos6)
8598 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8599 hardcode_direct=yes
8600 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8601 hardcode_libdir_separator=:
8602 hardcode_shlibpath_var=no
8605 openbsd*)
8606 if test -f /usr/libexec/ld.so; then
8607 hardcode_direct=yes
8608 hardcode_shlibpath_var=no
8609 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8610 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8611 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8612 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8613 export_dynamic_flag_spec='${wl}-E'
8614 else
8615 case $host_os in
8616 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8617 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8618 hardcode_libdir_flag_spec='-R$libdir'
8621 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8622 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8624 esac
8626 else
8627 ld_shlibs=no
8631 os2*)
8632 hardcode_libdir_flag_spec='-L$libdir'
8633 hardcode_minus_L=yes
8634 allow_undefined_flag=unsupported
8635 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'
8636 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8639 osf3*)
8640 if test "$GCC" = yes; then
8641 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8642 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'
8643 else
8644 allow_undefined_flag=' -expect_unresolved \*'
8645 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'
8647 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8648 hardcode_libdir_separator=:
8651 osf4* | osf5*) # as osf3* with the addition of -msym flag
8652 if test "$GCC" = yes; then
8653 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8654 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'
8655 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8656 else
8657 allow_undefined_flag=' -expect_unresolved \*'
8658 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'
8659 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8660 $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'
8662 # Both c and cxx compiler support -rpath directly
8663 hardcode_libdir_flag_spec='-rpath $libdir'
8665 hardcode_libdir_separator=:
8668 solaris*)
8669 no_undefined_flag=' -z text'
8670 if test "$GCC" = yes; then
8671 wlarc='${wl}'
8672 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8673 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8674 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8675 else
8676 wlarc=''
8677 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8678 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8679 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8681 hardcode_libdir_flag_spec='-R$libdir'
8682 hardcode_shlibpath_var=no
8683 case $host_os in
8684 solaris2.[0-5] | solaris2.[0-5].*) ;;
8686 # The compiler driver will combine and reorder linker options,
8687 # but understands `-z linker_flag'. GCC discards it without `$wl',
8688 # but is careful enough not to reorder.
8689 # Supported since Solaris 2.6 (maybe 2.5.1?)
8690 if test "$GCC" = yes; then
8691 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8692 else
8693 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8696 esac
8697 link_all_deplibs=yes
8700 sunos4*)
8701 if test "x$host_vendor" = xsequent; then
8702 # Use $CC to link under sequent, because it throws in some extra .o
8703 # files that make .init and .fini sections work.
8704 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8705 else
8706 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8708 hardcode_libdir_flag_spec='-L$libdir'
8709 hardcode_direct=yes
8710 hardcode_minus_L=yes
8711 hardcode_shlibpath_var=no
8714 sysv4)
8715 case $host_vendor in
8716 sni)
8717 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8718 hardcode_direct=yes # is this really true???
8720 siemens)
8721 ## LD is ld it makes a PLAMLIB
8722 ## CC just makes a GrossModule.
8723 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8724 reload_cmds='$CC -r -o $output$reload_objs'
8725 hardcode_direct=no
8727 motorola)
8728 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8729 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8731 esac
8732 runpath_var='LD_RUN_PATH'
8733 hardcode_shlibpath_var=no
8736 sysv4.3*)
8737 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8738 hardcode_shlibpath_var=no
8739 export_dynamic_flag_spec='-Bexport'
8742 sysv4*MP*)
8743 if test -d /usr/nec; then
8744 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8745 hardcode_shlibpath_var=no
8746 runpath_var=LD_RUN_PATH
8747 hardcode_runpath_var=yes
8748 ld_shlibs=yes
8752 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
8753 no_undefined_flag='${wl}-z,text'
8754 archive_cmds_need_lc=no
8755 hardcode_shlibpath_var=no
8756 runpath_var='LD_RUN_PATH'
8758 if test "$GCC" = yes; then
8759 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8760 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8761 else
8762 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8763 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8767 sysv5* | sco3.2v5* | sco5v6*)
8768 # Note: We can NOT use -z defs as we might desire, because we do not
8769 # link with -lc, and that would cause any symbols used from libc to
8770 # always be unresolved, which means just about no library would
8771 # ever link correctly. If we're not using GNU ld we use -z text
8772 # though, which does catch some bad symbols but isn't as heavy-handed
8773 # as -z defs.
8774 no_undefined_flag='${wl}-z,text'
8775 allow_undefined_flag='${wl}-z,nodefs'
8776 archive_cmds_need_lc=no
8777 hardcode_shlibpath_var=no
8778 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
8779 hardcode_libdir_separator=':'
8780 link_all_deplibs=yes
8781 export_dynamic_flag_spec='${wl}-Bexport'
8782 runpath_var='LD_RUN_PATH'
8784 if test "$GCC" = yes; then
8785 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8786 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8787 else
8788 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8789 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8793 uts4*)
8794 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8795 hardcode_libdir_flag_spec='-L$libdir'
8796 hardcode_shlibpath_var=no
8800 ld_shlibs=no
8802 esac
8805 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8806 echo "${ECHO_T}$ld_shlibs" >&6; }
8807 test "$ld_shlibs" = no && can_build_shared=no
8810 # Do we need to explicitly link libc?
8812 case "x$archive_cmds_need_lc" in
8813 x|xyes)
8814 # Assume -lc should be added
8815 archive_cmds_need_lc=yes
8817 if test "$enable_shared" = yes && test "$GCC" = yes; then
8818 case $archive_cmds in
8819 *'~'*)
8820 # FIXME: we may have to deal with multi-command sequences.
8822 '$CC '*)
8823 # Test whether the compiler implicitly links with -lc since on some
8824 # systems, -lgcc has to come before -lc. If gcc already passes -lc
8825 # to ld, don't add -lc before -lgcc.
8826 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8827 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
8828 $rm conftest*
8829 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8831 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8832 (eval $ac_compile) 2>&5
8833 ac_status=$?
8834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8835 (exit $ac_status); } 2>conftest.err; then
8836 soname=conftest
8837 lib=conftest
8838 libobjs=conftest.$ac_objext
8839 deplibs=
8840 wl=$lt_prog_compiler_wl
8841 pic_flag=$lt_prog_compiler_pic
8842 compiler_flags=-v
8843 linker_flags=-v
8844 verstring=
8845 output_objdir=.
8846 libname=conftest
8847 lt_save_allow_undefined_flag=$allow_undefined_flag
8848 allow_undefined_flag=
8849 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
8850 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8851 ac_status=$?
8852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8853 (exit $ac_status); }
8854 then
8855 archive_cmds_need_lc=no
8856 else
8857 archive_cmds_need_lc=yes
8859 allow_undefined_flag=$lt_save_allow_undefined_flag
8860 else
8861 cat conftest.err 1>&5
8863 $rm conftest*
8864 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8865 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
8867 esac
8870 esac
8872 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8873 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8874 library_names_spec=
8875 libname_spec='lib$name'
8876 soname_spec=
8877 shrext_cmds=".so"
8878 postinstall_cmds=
8879 postuninstall_cmds=
8880 finish_cmds=
8881 finish_eval=
8882 shlibpath_var=
8883 shlibpath_overrides_runpath=unknown
8884 version_type=none
8885 dynamic_linker="$host_os ld.so"
8886 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8888 if test "$GCC" = yes; then
8889 case $host_os in
8890 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
8891 *) lt_awk_arg="/^libraries:/" ;;
8892 esac
8893 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8894 if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
8895 # if the path contains ";" then we assume it to be the separator
8896 # otherwise default to the standard path separator (i.e. ":") - it is
8897 # assumed that no part of a normal pathname contains ";" but that should
8898 # okay in the real world where ";" in dirpaths is itself problematic.
8899 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
8900 else
8901 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8903 # Ok, now we have the path, separated by spaces, we can step through it
8904 # and add multilib dir if necessary.
8905 lt_tmp_lt_search_path_spec=
8906 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
8907 for lt_sys_path in $lt_search_path_spec; do
8908 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
8909 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
8910 else
8911 test -d "$lt_sys_path" && \
8912 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
8914 done
8915 lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
8916 BEGIN {RS=" "; FS="/|\n";} {
8917 lt_foo="";
8918 lt_count=0;
8919 for (lt_i = NF; lt_i > 0; lt_i--) {
8920 if ($lt_i != "" && $lt_i != ".") {
8921 if ($lt_i == "..") {
8922 lt_count++;
8923 } else {
8924 if (lt_count == 0) {
8925 lt_foo="/" $lt_i lt_foo;
8926 } else {
8927 lt_count--;
8932 if (lt_foo != "") { lt_freq[lt_foo]++; }
8933 if (lt_freq[lt_foo] == 1) { print lt_foo; }
8935 sys_lib_search_path_spec=`echo $lt_search_path_spec`
8936 else
8937 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8939 need_lib_prefix=unknown
8940 hardcode_into_libs=no
8942 # when you set need_version to no, make sure it does not cause -set_version
8943 # flags to be left without arguments
8944 need_version=unknown
8946 case $host_os in
8947 aix3*)
8948 version_type=linux
8949 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8950 shlibpath_var=LIBPATH
8952 # AIX 3 has no versioning support, so we append a major version to the name.
8953 soname_spec='${libname}${release}${shared_ext}$major'
8956 aix[4-9]*)
8957 version_type=linux
8958 need_lib_prefix=no
8959 need_version=no
8960 hardcode_into_libs=yes
8961 if test "$host_cpu" = ia64; then
8962 # AIX 5 supports IA64
8963 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8964 shlibpath_var=LD_LIBRARY_PATH
8965 else
8966 # With GCC up to 2.95.x, collect2 would create an import file
8967 # for dependence libraries. The import file would start with
8968 # the line `#! .'. This would cause the generated library to
8969 # depend on `.', always an invalid library. This was fixed in
8970 # development snapshots of GCC prior to 3.0.
8971 case $host_os in
8972 aix4 | aix4.[01] | aix4.[01].*)
8973 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8974 echo ' yes '
8975 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8977 else
8978 can_build_shared=no
8981 esac
8982 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8983 # soname into executable. Probably we can add versioning support to
8984 # collect2, so additional links can be useful in future.
8985 if test "$aix_use_runtimelinking" = yes; then
8986 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8987 # instead of lib<name>.a to let people know that these are not
8988 # typical AIX shared libraries.
8989 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8990 else
8991 # We preserve .a as extension for shared libraries through AIX4.2
8992 # and later when we are not doing run time linking.
8993 library_names_spec='${libname}${release}.a $libname.a'
8994 soname_spec='${libname}${release}${shared_ext}$major'
8996 shlibpath_var=LIBPATH
9000 amigaos*)
9001 library_names_spec='$libname.ixlibrary $libname.a'
9002 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9003 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'
9006 beos*)
9007 library_names_spec='${libname}${shared_ext}'
9008 dynamic_linker="$host_os ld.so"
9009 shlibpath_var=LIBRARY_PATH
9012 bsdi[45]*)
9013 version_type=linux
9014 need_version=no
9015 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9016 soname_spec='${libname}${release}${shared_ext}$major'
9017 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9018 shlibpath_var=LD_LIBRARY_PATH
9019 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9020 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9021 # the default ld.so.conf also contains /usr/contrib/lib and
9022 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9023 # libtool to hard-code these into programs
9026 cygwin* | mingw* | pw32*)
9027 version_type=windows
9028 shrext_cmds=".dll"
9029 need_version=no
9030 need_lib_prefix=no
9032 case $GCC,$host_os in
9033 yes,cygwin* | yes,mingw* | yes,pw32*)
9034 library_names_spec='$libname.dll.a'
9035 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9036 postinstall_cmds='base_file=`basename \${file}`~
9037 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9038 dldir=$destdir/`dirname \$dlpath`~
9039 test -d \$dldir || mkdir -p \$dldir~
9040 $install_prog $dir/$dlname \$dldir/$dlname~
9041 chmod a+x \$dldir/$dlname'
9042 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9043 dlpath=$dir/\$dldll~
9044 $rm \$dlpath'
9045 shlibpath_overrides_runpath=yes
9047 case $host_os in
9048 cygwin*)
9049 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9050 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9051 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9053 mingw*)
9054 # MinGW DLLs use traditional 'lib' prefix
9055 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9056 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9057 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9058 # It is most probably a Windows format PATH printed by
9059 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9060 # path with ; separators, and with drive letters. We can handle the
9061 # drive letters (cygwin fileutils understands them), so leave them,
9062 # especially as we might pass files found there to a mingw objdump,
9063 # which wouldn't understand a cygwinified path. Ahh.
9064 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9065 else
9066 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9069 pw32*)
9070 # pw32 DLLs use 'pw' prefix rather than 'lib'
9071 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9073 esac
9077 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9079 esac
9080 dynamic_linker='Win32 ld.exe'
9081 # FIXME: first we should search . and the directory the executable is in
9082 shlibpath_var=PATH
9085 darwin* | rhapsody*)
9086 dynamic_linker="$host_os dyld"
9087 version_type=darwin
9088 need_lib_prefix=no
9089 need_version=no
9090 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9091 soname_spec='${libname}${release}${major}$shared_ext'
9092 shlibpath_overrides_runpath=yes
9093 shlibpath_var=DYLD_LIBRARY_PATH
9094 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9096 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9097 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9100 dgux*)
9101 version_type=linux
9102 need_lib_prefix=no
9103 need_version=no
9104 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9105 soname_spec='${libname}${release}${shared_ext}$major'
9106 shlibpath_var=LD_LIBRARY_PATH
9109 freebsd1*)
9110 dynamic_linker=no
9113 freebsd* | dragonfly*)
9114 # DragonFly does not have aout. When/if they implement a new
9115 # versioning mechanism, adjust this.
9116 if test -x /usr/bin/objformat; then
9117 objformat=`/usr/bin/objformat`
9118 else
9119 case $host_os in
9120 freebsd[123]*) objformat=aout ;;
9121 *) objformat=elf ;;
9122 esac
9124 version_type=freebsd-$objformat
9125 case $version_type in
9126 freebsd-elf*)
9127 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9128 need_version=no
9129 need_lib_prefix=no
9131 freebsd-*)
9132 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9133 need_version=yes
9135 esac
9136 shlibpath_var=LD_LIBRARY_PATH
9137 case $host_os in
9138 freebsd2*)
9139 shlibpath_overrides_runpath=yes
9141 freebsd3.[01]* | freebsdelf3.[01]*)
9142 shlibpath_overrides_runpath=yes
9143 hardcode_into_libs=yes
9145 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9146 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9147 shlibpath_overrides_runpath=no
9148 hardcode_into_libs=yes
9150 *) # from 4.6 on, and DragonFly
9151 shlibpath_overrides_runpath=yes
9152 hardcode_into_libs=yes
9154 esac
9157 gnu*)
9158 version_type=linux
9159 need_lib_prefix=no
9160 need_version=no
9161 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9162 soname_spec='${libname}${release}${shared_ext}$major'
9163 shlibpath_var=LD_LIBRARY_PATH
9164 hardcode_into_libs=yes
9167 hpux9* | hpux10* | hpux11*)
9168 # Give a soname corresponding to the major version so that dld.sl refuses to
9169 # link against other versions.
9170 version_type=sunos
9171 need_lib_prefix=no
9172 need_version=no
9173 case $host_cpu in
9174 ia64*)
9175 shrext_cmds='.so'
9176 hardcode_into_libs=yes
9177 dynamic_linker="$host_os dld.so"
9178 shlibpath_var=LD_LIBRARY_PATH
9179 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9180 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9181 soname_spec='${libname}${release}${shared_ext}$major'
9182 if test "X$HPUX_IA64_MODE" = X32; then
9183 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9184 else
9185 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9187 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9189 hppa*64*)
9190 shrext_cmds='.sl'
9191 hardcode_into_libs=yes
9192 dynamic_linker="$host_os dld.sl"
9193 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9194 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9195 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9196 soname_spec='${libname}${release}${shared_ext}$major'
9197 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9198 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9201 shrext_cmds='.sl'
9202 dynamic_linker="$host_os dld.sl"
9203 shlibpath_var=SHLIB_PATH
9204 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9205 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9206 soname_spec='${libname}${release}${shared_ext}$major'
9208 esac
9209 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9210 postinstall_cmds='chmod 555 $lib'
9213 interix[3-9]*)
9214 version_type=linux
9215 need_lib_prefix=no
9216 need_version=no
9217 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9218 soname_spec='${libname}${release}${shared_ext}$major'
9219 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9220 shlibpath_var=LD_LIBRARY_PATH
9221 shlibpath_overrides_runpath=no
9222 hardcode_into_libs=yes
9225 irix5* | irix6* | nonstopux*)
9226 case $host_os in
9227 nonstopux*) version_type=nonstopux ;;
9229 if test "$lt_cv_prog_gnu_ld" = yes; then
9230 version_type=linux
9231 else
9232 version_type=irix
9233 fi ;;
9234 esac
9235 need_lib_prefix=no
9236 need_version=no
9237 soname_spec='${libname}${release}${shared_ext}$major'
9238 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9239 case $host_os in
9240 irix5* | nonstopux*)
9241 libsuff= shlibsuff=
9244 case $LD in # libtool.m4 will add one of these switches to LD
9245 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9246 libsuff= shlibsuff= libmagic=32-bit;;
9247 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9248 libsuff=32 shlibsuff=N32 libmagic=N32;;
9249 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9250 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9251 *) libsuff= shlibsuff= libmagic=never-match;;
9252 esac
9254 esac
9255 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9256 shlibpath_overrides_runpath=no
9257 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9258 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9259 hardcode_into_libs=yes
9262 # No shared lib support for Linux oldld, aout, or coff.
9263 linux*oldld* | linux*aout* | linux*coff*)
9264 dynamic_linker=no
9267 # This must be Linux ELF.
9268 linux* | k*bsd*-gnu)
9269 version_type=linux
9270 need_lib_prefix=no
9271 need_version=no
9272 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9273 soname_spec='${libname}${release}${shared_ext}$major'
9274 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9275 shlibpath_var=LD_LIBRARY_PATH
9276 shlibpath_overrides_runpath=no
9277 # This implies no fast_install, which is unacceptable.
9278 # Some rework will be needed to allow for fast_install
9279 # before this can be enabled.
9280 hardcode_into_libs=yes
9282 # Append ld.so.conf contents to the search path
9283 if test -f /etc/ld.so.conf; then
9284 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' ' '`
9285 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9288 # We used to test for /lib/ld.so.1 and disable shared libraries on
9289 # powerpc, because MkLinux only supported shared libraries with the
9290 # GNU dynamic linker. Since this was broken with cross compilers,
9291 # most powerpc-linux boxes support dynamic linking these days and
9292 # people can always --disable-shared, the test was removed, and we
9293 # assume the GNU/Linux dynamic linker is in use.
9294 dynamic_linker='GNU/Linux ld.so'
9297 netbsd*)
9298 version_type=sunos
9299 need_lib_prefix=no
9300 need_version=no
9301 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9302 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9303 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9304 dynamic_linker='NetBSD (a.out) ld.so'
9305 else
9306 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9307 soname_spec='${libname}${release}${shared_ext}$major'
9308 dynamic_linker='NetBSD ld.elf_so'
9310 shlibpath_var=LD_LIBRARY_PATH
9311 shlibpath_overrides_runpath=yes
9312 hardcode_into_libs=yes
9315 newsos6)
9316 version_type=linux
9317 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9318 shlibpath_var=LD_LIBRARY_PATH
9319 shlibpath_overrides_runpath=yes
9322 nto-qnx*)
9323 version_type=linux
9324 need_lib_prefix=no
9325 need_version=no
9326 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9327 soname_spec='${libname}${release}${shared_ext}$major'
9328 shlibpath_var=LD_LIBRARY_PATH
9329 shlibpath_overrides_runpath=yes
9332 openbsd*)
9333 version_type=sunos
9334 sys_lib_dlsearch_path_spec="/usr/lib"
9335 need_lib_prefix=no
9336 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9337 case $host_os in
9338 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9339 *) need_version=no ;;
9340 esac
9341 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9342 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9343 shlibpath_var=LD_LIBRARY_PATH
9344 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9345 case $host_os in
9346 openbsd2.[89] | openbsd2.[89].*)
9347 shlibpath_overrides_runpath=no
9350 shlibpath_overrides_runpath=yes
9352 esac
9353 else
9354 shlibpath_overrides_runpath=yes
9358 os2*)
9359 libname_spec='$name'
9360 shrext_cmds=".dll"
9361 need_lib_prefix=no
9362 library_names_spec='$libname${shared_ext} $libname.a'
9363 dynamic_linker='OS/2 ld.exe'
9364 shlibpath_var=LIBPATH
9367 osf3* | osf4* | osf5*)
9368 version_type=osf
9369 need_lib_prefix=no
9370 need_version=no
9371 soname_spec='${libname}${release}${shared_ext}$major'
9372 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9373 shlibpath_var=LD_LIBRARY_PATH
9374 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9375 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9378 rdos*)
9379 dynamic_linker=no
9382 solaris*)
9383 version_type=linux
9384 need_lib_prefix=no
9385 need_version=no
9386 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9387 soname_spec='${libname}${release}${shared_ext}$major'
9388 shlibpath_var=LD_LIBRARY_PATH
9389 shlibpath_overrides_runpath=yes
9390 hardcode_into_libs=yes
9391 # ldd complains unless libraries are executable
9392 postinstall_cmds='chmod +x $lib'
9395 sunos4*)
9396 version_type=sunos
9397 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9398 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9399 shlibpath_var=LD_LIBRARY_PATH
9400 shlibpath_overrides_runpath=yes
9401 if test "$with_gnu_ld" = yes; then
9402 need_lib_prefix=no
9404 need_version=yes
9407 sysv4 | sysv4.3*)
9408 version_type=linux
9409 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9410 soname_spec='${libname}${release}${shared_ext}$major'
9411 shlibpath_var=LD_LIBRARY_PATH
9412 case $host_vendor in
9413 sni)
9414 shlibpath_overrides_runpath=no
9415 need_lib_prefix=no
9416 export_dynamic_flag_spec='${wl}-Blargedynsym'
9417 runpath_var=LD_RUN_PATH
9419 siemens)
9420 need_lib_prefix=no
9422 motorola)
9423 need_lib_prefix=no
9424 need_version=no
9425 shlibpath_overrides_runpath=no
9426 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9428 esac
9431 sysv4*MP*)
9432 if test -d /usr/nec ;then
9433 version_type=linux
9434 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9435 soname_spec='$libname${shared_ext}.$major'
9436 shlibpath_var=LD_LIBRARY_PATH
9440 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9441 version_type=freebsd-elf
9442 need_lib_prefix=no
9443 need_version=no
9444 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9445 soname_spec='${libname}${release}${shared_ext}$major'
9446 shlibpath_var=LD_LIBRARY_PATH
9447 hardcode_into_libs=yes
9448 if test "$with_gnu_ld" = yes; then
9449 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9450 shlibpath_overrides_runpath=no
9451 else
9452 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9453 shlibpath_overrides_runpath=yes
9454 case $host_os in
9455 sco3.2v5*)
9456 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9458 esac
9460 sys_lib_dlsearch_path_spec='/usr/lib'
9463 uts4*)
9464 version_type=linux
9465 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9466 soname_spec='${libname}${release}${shared_ext}$major'
9467 shlibpath_var=LD_LIBRARY_PATH
9471 dynamic_linker=no
9473 esac
9474 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9475 echo "${ECHO_T}$dynamic_linker" >&6; }
9476 test "$dynamic_linker" = no && can_build_shared=no
9478 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
9479 echo $ECHO_N "(cached) $ECHO_C" >&6
9480 else
9481 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
9484 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
9485 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
9486 echo $ECHO_N "(cached) $ECHO_C" >&6
9487 else
9488 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
9491 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
9493 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9494 if test "$GCC" = yes; then
9495 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9498 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9499 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
9500 hardcode_action=
9501 if test -n "$hardcode_libdir_flag_spec" || \
9502 test -n "$runpath_var" || \
9503 test "X$hardcode_automatic" = "Xyes" ; then
9505 # We can hardcode non-existant directories.
9506 if test "$hardcode_direct" != no &&
9507 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9508 # have to relink, otherwise we might link with an installed library
9509 # when we should be linking with a yet-to-be-installed one
9510 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9511 test "$hardcode_minus_L" != no; then
9512 # Linking always hardcodes the temporary library directory.
9513 hardcode_action=relink
9514 else
9515 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9516 hardcode_action=immediate
9518 else
9519 # We cannot hardcode anything, or else we can only hardcode existing
9520 # directories.
9521 hardcode_action=unsupported
9523 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
9524 echo "${ECHO_T}$hardcode_action" >&6; }
9526 if test "$hardcode_action" = relink; then
9527 # Fast installation is not supported
9528 enable_fast_install=no
9529 elif test "$shlibpath_overrides_runpath" = yes ||
9530 test "$enable_shared" = no; then
9531 # Fast installation is not necessary
9532 enable_fast_install=needless
9535 striplib=
9536 old_striplib=
9537 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9538 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
9539 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9540 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9541 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9542 { echo "$as_me:$LINENO: result: yes" >&5
9543 echo "${ECHO_T}yes" >&6; }
9544 else
9545 # FIXME - insert some real tests, host_os isn't really good enough
9546 case $host_os in
9547 darwin*)
9548 if test -n "$STRIP" ; then
9549 striplib="$STRIP -x"
9550 old_striplib="$STRIP -S"
9551 { echo "$as_me:$LINENO: result: yes" >&5
9552 echo "${ECHO_T}yes" >&6; }
9553 else
9554 { echo "$as_me:$LINENO: result: no" >&5
9555 echo "${ECHO_T}no" >&6; }
9559 { echo "$as_me:$LINENO: result: no" >&5
9560 echo "${ECHO_T}no" >&6; }
9562 esac
9565 if test "x$enable_dlopen" != xyes; then
9566 enable_dlopen=unknown
9567 enable_dlopen_self=unknown
9568 enable_dlopen_self_static=unknown
9569 else
9570 lt_cv_dlopen=no
9571 lt_cv_dlopen_libs=
9573 case $host_os in
9574 beos*)
9575 lt_cv_dlopen="load_add_on"
9576 lt_cv_dlopen_libs=
9577 lt_cv_dlopen_self=yes
9580 mingw* | pw32*)
9581 lt_cv_dlopen="LoadLibrary"
9582 lt_cv_dlopen_libs=
9585 cygwin*)
9586 lt_cv_dlopen="dlopen"
9587 lt_cv_dlopen_libs=
9590 darwin*)
9591 # if libdl is installed we need to link against it
9592 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9593 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9594 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9595 echo $ECHO_N "(cached) $ECHO_C" >&6
9596 else
9597 ac_check_lib_save_LIBS=$LIBS
9598 LIBS="-ldl $LIBS"
9599 cat >conftest.$ac_ext <<_ACEOF
9600 /* confdefs.h. */
9601 _ACEOF
9602 cat confdefs.h >>conftest.$ac_ext
9603 cat >>conftest.$ac_ext <<_ACEOF
9604 /* end confdefs.h. */
9606 /* Override any GCC internal prototype to avoid an error.
9607 Use char because int might match the return type of a GCC
9608 builtin and then its argument prototype would still apply. */
9609 #ifdef __cplusplus
9610 extern "C"
9611 #endif
9612 char dlopen ();
9614 main ()
9616 return dlopen ();
9618 return 0;
9620 _ACEOF
9621 rm -f conftest.$ac_objext conftest$ac_exeext
9622 if { (ac_try="$ac_link"
9623 case "(($ac_try" in
9624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9625 *) ac_try_echo=$ac_try;;
9626 esac
9627 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9628 (eval "$ac_link") 2>conftest.er1
9629 ac_status=$?
9630 grep -v '^ *+' conftest.er1 >conftest.err
9631 rm -f conftest.er1
9632 cat conftest.err >&5
9633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9634 (exit $ac_status); } && {
9635 test -z "$ac_c_werror_flag" ||
9636 test ! -s conftest.err
9637 } && test -s conftest$ac_exeext &&
9638 $as_test_x conftest$ac_exeext; then
9639 ac_cv_lib_dl_dlopen=yes
9640 else
9641 echo "$as_me: failed program was:" >&5
9642 sed 's/^/| /' conftest.$ac_ext >&5
9644 ac_cv_lib_dl_dlopen=no
9647 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9648 conftest$ac_exeext conftest.$ac_ext
9649 LIBS=$ac_check_lib_save_LIBS
9651 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9652 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9653 if test $ac_cv_lib_dl_dlopen = yes; then
9654 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9655 else
9657 lt_cv_dlopen="dyld"
9658 lt_cv_dlopen_libs=
9659 lt_cv_dlopen_self=yes
9666 { echo "$as_me:$LINENO: checking for shl_load" >&5
9667 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9668 if test "${ac_cv_func_shl_load+set}" = set; then
9669 echo $ECHO_N "(cached) $ECHO_C" >&6
9670 else
9671 cat >conftest.$ac_ext <<_ACEOF
9672 /* confdefs.h. */
9673 _ACEOF
9674 cat confdefs.h >>conftest.$ac_ext
9675 cat >>conftest.$ac_ext <<_ACEOF
9676 /* end confdefs.h. */
9677 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9678 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9679 #define shl_load innocuous_shl_load
9681 /* System header to define __stub macros and hopefully few prototypes,
9682 which can conflict with char shl_load (); below.
9683 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9684 <limits.h> exists even on freestanding compilers. */
9686 #ifdef __STDC__
9687 # include <limits.h>
9688 #else
9689 # include <assert.h>
9690 #endif
9692 #undef shl_load
9694 /* Override any GCC internal prototype to avoid an error.
9695 Use char because int might match the return type of a GCC
9696 builtin and then its argument prototype would still apply. */
9697 #ifdef __cplusplus
9698 extern "C"
9699 #endif
9700 char shl_load ();
9701 /* The GNU C library defines this for functions which it implements
9702 to always fail with ENOSYS. Some functions are actually named
9703 something starting with __ and the normal name is an alias. */
9704 #if defined __stub_shl_load || defined __stub___shl_load
9705 choke me
9706 #endif
9709 main ()
9711 return shl_load ();
9713 return 0;
9715 _ACEOF
9716 rm -f conftest.$ac_objext conftest$ac_exeext
9717 if { (ac_try="$ac_link"
9718 case "(($ac_try" in
9719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9720 *) ac_try_echo=$ac_try;;
9721 esac
9722 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9723 (eval "$ac_link") 2>conftest.er1
9724 ac_status=$?
9725 grep -v '^ *+' conftest.er1 >conftest.err
9726 rm -f conftest.er1
9727 cat conftest.err >&5
9728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9729 (exit $ac_status); } && {
9730 test -z "$ac_c_werror_flag" ||
9731 test ! -s conftest.err
9732 } && test -s conftest$ac_exeext &&
9733 $as_test_x conftest$ac_exeext; then
9734 ac_cv_func_shl_load=yes
9735 else
9736 echo "$as_me: failed program was:" >&5
9737 sed 's/^/| /' conftest.$ac_ext >&5
9739 ac_cv_func_shl_load=no
9742 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9743 conftest$ac_exeext conftest.$ac_ext
9745 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9746 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9747 if test $ac_cv_func_shl_load = yes; then
9748 lt_cv_dlopen="shl_load"
9749 else
9750 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9751 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9752 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9753 echo $ECHO_N "(cached) $ECHO_C" >&6
9754 else
9755 ac_check_lib_save_LIBS=$LIBS
9756 LIBS="-ldld $LIBS"
9757 cat >conftest.$ac_ext <<_ACEOF
9758 /* confdefs.h. */
9759 _ACEOF
9760 cat confdefs.h >>conftest.$ac_ext
9761 cat >>conftest.$ac_ext <<_ACEOF
9762 /* end confdefs.h. */
9764 /* Override any GCC internal prototype to avoid an error.
9765 Use char because int might match the return type of a GCC
9766 builtin and then its argument prototype would still apply. */
9767 #ifdef __cplusplus
9768 extern "C"
9769 #endif
9770 char shl_load ();
9772 main ()
9774 return shl_load ();
9776 return 0;
9778 _ACEOF
9779 rm -f conftest.$ac_objext conftest$ac_exeext
9780 if { (ac_try="$ac_link"
9781 case "(($ac_try" in
9782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9783 *) ac_try_echo=$ac_try;;
9784 esac
9785 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9786 (eval "$ac_link") 2>conftest.er1
9787 ac_status=$?
9788 grep -v '^ *+' conftest.er1 >conftest.err
9789 rm -f conftest.er1
9790 cat conftest.err >&5
9791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9792 (exit $ac_status); } && {
9793 test -z "$ac_c_werror_flag" ||
9794 test ! -s conftest.err
9795 } && test -s conftest$ac_exeext &&
9796 $as_test_x conftest$ac_exeext; then
9797 ac_cv_lib_dld_shl_load=yes
9798 else
9799 echo "$as_me: failed program was:" >&5
9800 sed 's/^/| /' conftest.$ac_ext >&5
9802 ac_cv_lib_dld_shl_load=no
9805 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9806 conftest$ac_exeext conftest.$ac_ext
9807 LIBS=$ac_check_lib_save_LIBS
9809 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9810 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9811 if test $ac_cv_lib_dld_shl_load = yes; then
9812 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
9813 else
9814 { echo "$as_me:$LINENO: checking for dlopen" >&5
9815 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
9816 if test "${ac_cv_func_dlopen+set}" = set; then
9817 echo $ECHO_N "(cached) $ECHO_C" >&6
9818 else
9819 cat >conftest.$ac_ext <<_ACEOF
9820 /* confdefs.h. */
9821 _ACEOF
9822 cat confdefs.h >>conftest.$ac_ext
9823 cat >>conftest.$ac_ext <<_ACEOF
9824 /* end confdefs.h. */
9825 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9826 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9827 #define dlopen innocuous_dlopen
9829 /* System header to define __stub macros and hopefully few prototypes,
9830 which can conflict with char dlopen (); below.
9831 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9832 <limits.h> exists even on freestanding compilers. */
9834 #ifdef __STDC__
9835 # include <limits.h>
9836 #else
9837 # include <assert.h>
9838 #endif
9840 #undef dlopen
9842 /* Override any GCC internal prototype to avoid an error.
9843 Use char because int might match the return type of a GCC
9844 builtin and then its argument prototype would still apply. */
9845 #ifdef __cplusplus
9846 extern "C"
9847 #endif
9848 char dlopen ();
9849 /* The GNU C library defines this for functions which it implements
9850 to always fail with ENOSYS. Some functions are actually named
9851 something starting with __ and the normal name is an alias. */
9852 #if defined __stub_dlopen || defined __stub___dlopen
9853 choke me
9854 #endif
9857 main ()
9859 return dlopen ();
9861 return 0;
9863 _ACEOF
9864 rm -f conftest.$ac_objext conftest$ac_exeext
9865 if { (ac_try="$ac_link"
9866 case "(($ac_try" in
9867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9868 *) ac_try_echo=$ac_try;;
9869 esac
9870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9871 (eval "$ac_link") 2>conftest.er1
9872 ac_status=$?
9873 grep -v '^ *+' conftest.er1 >conftest.err
9874 rm -f conftest.er1
9875 cat conftest.err >&5
9876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9877 (exit $ac_status); } && {
9878 test -z "$ac_c_werror_flag" ||
9879 test ! -s conftest.err
9880 } && test -s conftest$ac_exeext &&
9881 $as_test_x conftest$ac_exeext; then
9882 ac_cv_func_dlopen=yes
9883 else
9884 echo "$as_me: failed program was:" >&5
9885 sed 's/^/| /' conftest.$ac_ext >&5
9887 ac_cv_func_dlopen=no
9890 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9891 conftest$ac_exeext conftest.$ac_ext
9893 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9894 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
9895 if test $ac_cv_func_dlopen = yes; then
9896 lt_cv_dlopen="dlopen"
9897 else
9898 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9899 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9900 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9901 echo $ECHO_N "(cached) $ECHO_C" >&6
9902 else
9903 ac_check_lib_save_LIBS=$LIBS
9904 LIBS="-ldl $LIBS"
9905 cat >conftest.$ac_ext <<_ACEOF
9906 /* confdefs.h. */
9907 _ACEOF
9908 cat confdefs.h >>conftest.$ac_ext
9909 cat >>conftest.$ac_ext <<_ACEOF
9910 /* end confdefs.h. */
9912 /* Override any GCC internal prototype to avoid an error.
9913 Use char because int might match the return type of a GCC
9914 builtin and then its argument prototype would still apply. */
9915 #ifdef __cplusplus
9916 extern "C"
9917 #endif
9918 char dlopen ();
9920 main ()
9922 return dlopen ();
9924 return 0;
9926 _ACEOF
9927 rm -f conftest.$ac_objext conftest$ac_exeext
9928 if { (ac_try="$ac_link"
9929 case "(($ac_try" in
9930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9931 *) ac_try_echo=$ac_try;;
9932 esac
9933 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9934 (eval "$ac_link") 2>conftest.er1
9935 ac_status=$?
9936 grep -v '^ *+' conftest.er1 >conftest.err
9937 rm -f conftest.er1
9938 cat conftest.err >&5
9939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9940 (exit $ac_status); } && {
9941 test -z "$ac_c_werror_flag" ||
9942 test ! -s conftest.err
9943 } && test -s conftest$ac_exeext &&
9944 $as_test_x conftest$ac_exeext; then
9945 ac_cv_lib_dl_dlopen=yes
9946 else
9947 echo "$as_me: failed program was:" >&5
9948 sed 's/^/| /' conftest.$ac_ext >&5
9950 ac_cv_lib_dl_dlopen=no
9953 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9954 conftest$ac_exeext conftest.$ac_ext
9955 LIBS=$ac_check_lib_save_LIBS
9957 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9958 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9959 if test $ac_cv_lib_dl_dlopen = yes; then
9960 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9961 else
9962 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9963 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
9964 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9965 echo $ECHO_N "(cached) $ECHO_C" >&6
9966 else
9967 ac_check_lib_save_LIBS=$LIBS
9968 LIBS="-lsvld $LIBS"
9969 cat >conftest.$ac_ext <<_ACEOF
9970 /* confdefs.h. */
9971 _ACEOF
9972 cat confdefs.h >>conftest.$ac_ext
9973 cat >>conftest.$ac_ext <<_ACEOF
9974 /* end confdefs.h. */
9976 /* Override any GCC internal prototype to avoid an error.
9977 Use char because int might match the return type of a GCC
9978 builtin and then its argument prototype would still apply. */
9979 #ifdef __cplusplus
9980 extern "C"
9981 #endif
9982 char dlopen ();
9984 main ()
9986 return dlopen ();
9988 return 0;
9990 _ACEOF
9991 rm -f conftest.$ac_objext conftest$ac_exeext
9992 if { (ac_try="$ac_link"
9993 case "(($ac_try" in
9994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9995 *) ac_try_echo=$ac_try;;
9996 esac
9997 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9998 (eval "$ac_link") 2>conftest.er1
9999 ac_status=$?
10000 grep -v '^ *+' conftest.er1 >conftest.err
10001 rm -f conftest.er1
10002 cat conftest.err >&5
10003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10004 (exit $ac_status); } && {
10005 test -z "$ac_c_werror_flag" ||
10006 test ! -s conftest.err
10007 } && test -s conftest$ac_exeext &&
10008 $as_test_x conftest$ac_exeext; then
10009 ac_cv_lib_svld_dlopen=yes
10010 else
10011 echo "$as_me: failed program was:" >&5
10012 sed 's/^/| /' conftest.$ac_ext >&5
10014 ac_cv_lib_svld_dlopen=no
10017 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10018 conftest$ac_exeext conftest.$ac_ext
10019 LIBS=$ac_check_lib_save_LIBS
10021 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10022 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10023 if test $ac_cv_lib_svld_dlopen = yes; then
10024 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10025 else
10026 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10027 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10028 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10029 echo $ECHO_N "(cached) $ECHO_C" >&6
10030 else
10031 ac_check_lib_save_LIBS=$LIBS
10032 LIBS="-ldld $LIBS"
10033 cat >conftest.$ac_ext <<_ACEOF
10034 /* confdefs.h. */
10035 _ACEOF
10036 cat confdefs.h >>conftest.$ac_ext
10037 cat >>conftest.$ac_ext <<_ACEOF
10038 /* end confdefs.h. */
10040 /* Override any GCC internal prototype to avoid an error.
10041 Use char because int might match the return type of a GCC
10042 builtin and then its argument prototype would still apply. */
10043 #ifdef __cplusplus
10044 extern "C"
10045 #endif
10046 char dld_link ();
10048 main ()
10050 return dld_link ();
10052 return 0;
10054 _ACEOF
10055 rm -f conftest.$ac_objext conftest$ac_exeext
10056 if { (ac_try="$ac_link"
10057 case "(($ac_try" in
10058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10059 *) ac_try_echo=$ac_try;;
10060 esac
10061 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10062 (eval "$ac_link") 2>conftest.er1
10063 ac_status=$?
10064 grep -v '^ *+' conftest.er1 >conftest.err
10065 rm -f conftest.er1
10066 cat conftest.err >&5
10067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10068 (exit $ac_status); } && {
10069 test -z "$ac_c_werror_flag" ||
10070 test ! -s conftest.err
10071 } && test -s conftest$ac_exeext &&
10072 $as_test_x conftest$ac_exeext; then
10073 ac_cv_lib_dld_dld_link=yes
10074 else
10075 echo "$as_me: failed program was:" >&5
10076 sed 's/^/| /' conftest.$ac_ext >&5
10078 ac_cv_lib_dld_dld_link=no
10081 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10082 conftest$ac_exeext conftest.$ac_ext
10083 LIBS=$ac_check_lib_save_LIBS
10085 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10086 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10087 if test $ac_cv_lib_dld_dld_link = yes; then
10088 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10107 esac
10109 if test "x$lt_cv_dlopen" != xno; then
10110 enable_dlopen=yes
10111 else
10112 enable_dlopen=no
10115 case $lt_cv_dlopen in
10116 dlopen)
10117 save_CPPFLAGS="$CPPFLAGS"
10118 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10120 save_LDFLAGS="$LDFLAGS"
10121 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10123 save_LIBS="$LIBS"
10124 LIBS="$lt_cv_dlopen_libs $LIBS"
10126 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10127 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
10128 if test "${lt_cv_dlopen_self+set}" = set; then
10129 echo $ECHO_N "(cached) $ECHO_C" >&6
10130 else
10131 if test "$cross_compiling" = yes; then :
10132 lt_cv_dlopen_self=cross
10133 else
10134 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10135 lt_status=$lt_dlunknown
10136 cat > conftest.$ac_ext <<EOF
10137 #line 10137 "configure"
10138 #include "confdefs.h"
10140 #if HAVE_DLFCN_H
10141 #include <dlfcn.h>
10142 #endif
10144 #include <stdio.h>
10146 #ifdef RTLD_GLOBAL
10147 # define LT_DLGLOBAL RTLD_GLOBAL
10148 #else
10149 # ifdef DL_GLOBAL
10150 # define LT_DLGLOBAL DL_GLOBAL
10151 # else
10152 # define LT_DLGLOBAL 0
10153 # endif
10154 #endif
10156 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10157 find out it does not work in some platform. */
10158 #ifndef LT_DLLAZY_OR_NOW
10159 # ifdef RTLD_LAZY
10160 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10161 # else
10162 # ifdef DL_LAZY
10163 # define LT_DLLAZY_OR_NOW DL_LAZY
10164 # else
10165 # ifdef RTLD_NOW
10166 # define LT_DLLAZY_OR_NOW RTLD_NOW
10167 # else
10168 # ifdef DL_NOW
10169 # define LT_DLLAZY_OR_NOW DL_NOW
10170 # else
10171 # define LT_DLLAZY_OR_NOW 0
10172 # endif
10173 # endif
10174 # endif
10175 # endif
10176 #endif
10178 #ifdef __cplusplus
10179 extern "C" void exit (int);
10180 #endif
10182 void fnord() { int i=42;}
10183 int main ()
10185 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10186 int status = $lt_dlunknown;
10188 if (self)
10190 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10191 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10192 /* dlclose (self); */
10194 else
10195 puts (dlerror ());
10197 exit (status);
10200 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10201 (eval $ac_link) 2>&5
10202 ac_status=$?
10203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10204 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10205 (./conftest; exit; ) >&5 2>/dev/null
10206 lt_status=$?
10207 case x$lt_status in
10208 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10209 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10210 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10211 esac
10212 else :
10213 # compilation failed
10214 lt_cv_dlopen_self=no
10217 rm -fr conftest*
10221 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10222 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
10224 if test "x$lt_cv_dlopen_self" = xyes; then
10225 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10226 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10227 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
10228 if test "${lt_cv_dlopen_self_static+set}" = set; then
10229 echo $ECHO_N "(cached) $ECHO_C" >&6
10230 else
10231 if test "$cross_compiling" = yes; then :
10232 lt_cv_dlopen_self_static=cross
10233 else
10234 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10235 lt_status=$lt_dlunknown
10236 cat > conftest.$ac_ext <<EOF
10237 #line 10237 "configure"
10238 #include "confdefs.h"
10240 #if HAVE_DLFCN_H
10241 #include <dlfcn.h>
10242 #endif
10244 #include <stdio.h>
10246 #ifdef RTLD_GLOBAL
10247 # define LT_DLGLOBAL RTLD_GLOBAL
10248 #else
10249 # ifdef DL_GLOBAL
10250 # define LT_DLGLOBAL DL_GLOBAL
10251 # else
10252 # define LT_DLGLOBAL 0
10253 # endif
10254 #endif
10256 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10257 find out it does not work in some platform. */
10258 #ifndef LT_DLLAZY_OR_NOW
10259 # ifdef RTLD_LAZY
10260 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10261 # else
10262 # ifdef DL_LAZY
10263 # define LT_DLLAZY_OR_NOW DL_LAZY
10264 # else
10265 # ifdef RTLD_NOW
10266 # define LT_DLLAZY_OR_NOW RTLD_NOW
10267 # else
10268 # ifdef DL_NOW
10269 # define LT_DLLAZY_OR_NOW DL_NOW
10270 # else
10271 # define LT_DLLAZY_OR_NOW 0
10272 # endif
10273 # endif
10274 # endif
10275 # endif
10276 #endif
10278 #ifdef __cplusplus
10279 extern "C" void exit (int);
10280 #endif
10282 void fnord() { int i=42;}
10283 int main ()
10285 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10286 int status = $lt_dlunknown;
10288 if (self)
10290 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10291 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10292 /* dlclose (self); */
10294 else
10295 puts (dlerror ());
10297 exit (status);
10300 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10301 (eval $ac_link) 2>&5
10302 ac_status=$?
10303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10304 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10305 (./conftest; exit; ) >&5 2>/dev/null
10306 lt_status=$?
10307 case x$lt_status in
10308 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10309 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10310 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10311 esac
10312 else :
10313 # compilation failed
10314 lt_cv_dlopen_self_static=no
10317 rm -fr conftest*
10321 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10322 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
10325 CPPFLAGS="$save_CPPFLAGS"
10326 LDFLAGS="$save_LDFLAGS"
10327 LIBS="$save_LIBS"
10329 esac
10331 case $lt_cv_dlopen_self in
10332 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10333 *) enable_dlopen_self=unknown ;;
10334 esac
10336 case $lt_cv_dlopen_self_static in
10337 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10338 *) enable_dlopen_self_static=unknown ;;
10339 esac
10343 # Report which library types will actually be built
10344 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10345 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
10346 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
10347 echo "${ECHO_T}$can_build_shared" >&6; }
10349 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10350 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
10351 test "$can_build_shared" = "no" && enable_shared=no
10353 # On AIX, shared libraries and static libraries use the same namespace, and
10354 # are all built from PIC.
10355 case $host_os in
10356 aix3*)
10357 test "$enable_shared" = yes && enable_static=no
10358 if test -n "$RANLIB"; then
10359 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10360 postinstall_cmds='$RANLIB $lib'
10364 aix[4-9]*)
10365 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10366 test "$enable_shared" = yes && enable_static=no
10369 esac
10370 { echo "$as_me:$LINENO: result: $enable_shared" >&5
10371 echo "${ECHO_T}$enable_shared" >&6; }
10373 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10374 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
10375 # Make sure either enable_shared or enable_static is yes.
10376 test "$enable_shared" = yes || enable_static=yes
10377 { echo "$as_me:$LINENO: result: $enable_static" >&5
10378 echo "${ECHO_T}$enable_static" >&6; }
10380 # The else clause should only fire when bootstrapping the
10381 # libtool distribution, otherwise you forgot to ship ltmain.sh
10382 # with your package, and you will get complaints that there are
10383 # no rules to generate ltmain.sh.
10384 if test -f "$ltmain"; then
10385 # See if we are running on zsh, and set the options which allow our commands through
10386 # without removal of \ escapes.
10387 if test -n "${ZSH_VERSION+set}" ; then
10388 setopt NO_GLOB_SUBST
10390 # Now quote all the things that may contain metacharacters while being
10391 # careful not to overquote the AC_SUBSTed values. We take copies of the
10392 # variables and quote the copies for generation of the libtool script.
10393 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10394 SED SHELL STRIP \
10395 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10396 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10397 deplibs_check_method reload_flag reload_cmds need_locks \
10398 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10399 lt_cv_sys_global_symbol_to_c_name_address \
10400 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10401 old_postinstall_cmds old_postuninstall_cmds \
10402 compiler \
10403 CC \
10404 LD \
10405 lt_prog_compiler_wl \
10406 lt_prog_compiler_pic \
10407 lt_prog_compiler_static \
10408 lt_prog_compiler_no_builtin_flag \
10409 export_dynamic_flag_spec \
10410 thread_safe_flag_spec \
10411 whole_archive_flag_spec \
10412 enable_shared_with_static_runtimes \
10413 old_archive_cmds \
10414 old_archive_from_new_cmds \
10415 predep_objects \
10416 postdep_objects \
10417 predeps \
10418 postdeps \
10419 compiler_lib_search_path \
10420 compiler_lib_search_dirs \
10421 archive_cmds \
10422 archive_expsym_cmds \
10423 postinstall_cmds \
10424 postuninstall_cmds \
10425 old_archive_from_expsyms_cmds \
10426 allow_undefined_flag \
10427 no_undefined_flag \
10428 export_symbols_cmds \
10429 hardcode_libdir_flag_spec \
10430 hardcode_libdir_flag_spec_ld \
10431 hardcode_libdir_separator \
10432 hardcode_automatic \
10433 module_cmds \
10434 module_expsym_cmds \
10435 lt_cv_prog_compiler_c_o \
10436 fix_srcfile_path \
10437 exclude_expsyms \
10438 include_expsyms; do
10440 case $var in
10441 old_archive_cmds | \
10442 old_archive_from_new_cmds | \
10443 archive_cmds | \
10444 archive_expsym_cmds | \
10445 module_cmds | \
10446 module_expsym_cmds | \
10447 old_archive_from_expsyms_cmds | \
10448 export_symbols_cmds | \
10449 extract_expsyms_cmds | reload_cmds | finish_cmds | \
10450 postinstall_cmds | postuninstall_cmds | \
10451 old_postinstall_cmds | old_postuninstall_cmds | \
10452 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10453 # Double-quote double-evaled strings.
10454 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10457 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10459 esac
10460 done
10462 case $lt_echo in
10463 *'\$0 --fallback-echo"')
10464 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10466 esac
10468 cfgfile="${ofile}T"
10469 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10470 $rm -f "$cfgfile"
10471 { echo "$as_me:$LINENO: creating $ofile" >&5
10472 echo "$as_me: creating $ofile" >&6;}
10474 cat <<__EOF__ >> "$cfgfile"
10475 #! $SHELL
10477 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10478 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10479 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
10481 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
10482 # Free Software Foundation, Inc.
10484 # This file is part of GNU Libtool:
10485 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10487 # This program is free software; you can redistribute it and/or modify
10488 # it under the terms of the GNU General Public License as published by
10489 # the Free Software Foundation; either version 2 of the License, or
10490 # (at your option) any later version.
10492 # This program is distributed in the hope that it will be useful, but
10493 # WITHOUT ANY WARRANTY; without even the implied warranty of
10494 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
10495 # General Public License for more details.
10497 # You should have received a copy of the GNU General Public License
10498 # along with this program; if not, write to the Free Software
10499 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10501 # As a special exception to the GNU General Public License, if you
10502 # distribute this file as part of a program that contains a
10503 # configuration script generated by Autoconf, you may include it under
10504 # the same distribution terms that you use for the rest of that program.
10506 # A sed program that does not truncate output.
10507 SED=$lt_SED
10509 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
10510 Xsed="$SED -e 1s/^X//"
10512 # The HP-UX ksh and POSIX shell print the target directory to stdout
10513 # if CDPATH is set.
10514 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10516 # The names of the tagged configurations supported by this script.
10517 available_tags=
10519 # ### BEGIN LIBTOOL CONFIG
10521 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10523 # Shell to use when invoking shell scripts.
10524 SHELL=$lt_SHELL
10526 # Whether or not to build shared libraries.
10527 build_libtool_libs=$enable_shared
10529 # Whether or not to build static libraries.
10530 build_old_libs=$enable_static
10532 # Whether or not to add -lc for building shared libraries.
10533 build_libtool_need_lc=$archive_cmds_need_lc
10535 # Whether or not to disallow shared libs when runtime libs are static
10536 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10538 # Whether or not to optimize for fast installation.
10539 fast_install=$enable_fast_install
10541 # The host system.
10542 host_alias=$host_alias
10543 host=$host
10544 host_os=$host_os
10546 # The build system.
10547 build_alias=$build_alias
10548 build=$build
10549 build_os=$build_os
10551 # An echo program that does not interpret backslashes.
10552 echo=$lt_echo
10554 # The archiver.
10555 AR=$lt_AR
10556 AR_FLAGS=$lt_AR_FLAGS
10558 # A C compiler.
10559 LTCC=$lt_LTCC
10561 # LTCC compiler flags.
10562 LTCFLAGS=$lt_LTCFLAGS
10564 # A language-specific compiler.
10565 CC=$lt_compiler
10567 # Is the compiler the GNU C compiler?
10568 with_gcc=$GCC
10570 # An ERE matcher.
10571 EGREP=$lt_EGREP
10573 # The linker used to build libraries.
10574 LD=$lt_LD
10576 # Whether we need hard or soft links.
10577 LN_S=$lt_LN_S
10579 # A BSD-compatible nm program.
10580 NM=$lt_NM
10582 # A symbol stripping program
10583 STRIP=$lt_STRIP
10585 # Used to examine libraries when file_magic_cmd begins "file"
10586 MAGIC_CMD=$MAGIC_CMD
10588 # Used on cygwin: DLL creation program.
10589 DLLTOOL="$DLLTOOL"
10591 # Used on cygwin: object dumper.
10592 OBJDUMP="$OBJDUMP"
10594 # Used on cygwin: assembler.
10595 AS="$AS"
10597 # The name of the directory that contains temporary libtool files.
10598 objdir=$objdir
10600 # How to create reloadable object files.
10601 reload_flag=$lt_reload_flag
10602 reload_cmds=$lt_reload_cmds
10604 # How to pass a linker flag through the compiler.
10605 wl=$lt_lt_prog_compiler_wl
10607 # Object file suffix (normally "o").
10608 objext="$ac_objext"
10610 # Old archive suffix (normally "a").
10611 libext="$libext"
10613 # Shared library suffix (normally ".so").
10614 shrext_cmds='$shrext_cmds'
10616 # Executable file suffix (normally "").
10617 exeext="$exeext"
10619 # Additional compiler flags for building library objects.
10620 pic_flag=$lt_lt_prog_compiler_pic
10621 pic_mode=$pic_mode
10623 # What is the maximum length of a command?
10624 max_cmd_len=$lt_cv_sys_max_cmd_len
10626 # Does compiler simultaneously support -c and -o options?
10627 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10629 # Must we lock files when doing compilation?
10630 need_locks=$lt_need_locks
10632 # Do we need the lib prefix for modules?
10633 need_lib_prefix=$need_lib_prefix
10635 # Do we need a version for libraries?
10636 need_version=$need_version
10638 # Whether dlopen is supported.
10639 dlopen_support=$enable_dlopen
10641 # Whether dlopen of programs is supported.
10642 dlopen_self=$enable_dlopen_self
10644 # Whether dlopen of statically linked programs is supported.
10645 dlopen_self_static=$enable_dlopen_self_static
10647 # Compiler flag to prevent dynamic linking.
10648 link_static_flag=$lt_lt_prog_compiler_static
10650 # Compiler flag to turn off builtin functions.
10651 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10653 # Compiler flag to allow reflexive dlopens.
10654 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10656 # Compiler flag to generate shared objects directly from archives.
10657 whole_archive_flag_spec=$lt_whole_archive_flag_spec
10659 # Compiler flag to generate thread-safe objects.
10660 thread_safe_flag_spec=$lt_thread_safe_flag_spec
10662 # Library versioning type.
10663 version_type=$version_type
10665 # Format of library name prefix.
10666 libname_spec=$lt_libname_spec
10668 # List of archive names. First name is the real one, the rest are links.
10669 # The last name is the one that the linker finds with -lNAME.
10670 library_names_spec=$lt_library_names_spec
10672 # The coded name of the library, if different from the real name.
10673 soname_spec=$lt_soname_spec
10675 # Commands used to build and install an old-style archive.
10676 RANLIB=$lt_RANLIB
10677 old_archive_cmds=$lt_old_archive_cmds
10678 old_postinstall_cmds=$lt_old_postinstall_cmds
10679 old_postuninstall_cmds=$lt_old_postuninstall_cmds
10681 # Create an old-style archive from a shared archive.
10682 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10684 # Create a temporary old-style archive to link instead of a shared archive.
10685 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10687 # Commands used to build and install a shared archive.
10688 archive_cmds=$lt_archive_cmds
10689 archive_expsym_cmds=$lt_archive_expsym_cmds
10690 postinstall_cmds=$lt_postinstall_cmds
10691 postuninstall_cmds=$lt_postuninstall_cmds
10693 # Commands used to build a loadable module (assumed same as above if empty)
10694 module_cmds=$lt_module_cmds
10695 module_expsym_cmds=$lt_module_expsym_cmds
10697 # Commands to strip libraries.
10698 old_striplib=$lt_old_striplib
10699 striplib=$lt_striplib
10701 # Dependencies to place before the objects being linked to create a
10702 # shared library.
10703 predep_objects=$lt_predep_objects
10705 # Dependencies to place after the objects being linked to create a
10706 # shared library.
10707 postdep_objects=$lt_postdep_objects
10709 # Dependencies to place before the objects being linked to create a
10710 # shared library.
10711 predeps=$lt_predeps
10713 # Dependencies to place after the objects being linked to create a
10714 # shared library.
10715 postdeps=$lt_postdeps
10717 # The directories searched by this compiler when creating a shared
10718 # library
10719 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
10721 # The library search path used internally by the compiler when linking
10722 # a shared library.
10723 compiler_lib_search_path=$lt_compiler_lib_search_path
10725 # Method to check whether dependent libraries are shared objects.
10726 deplibs_check_method=$lt_deplibs_check_method
10728 # Command to use when deplibs_check_method == file_magic.
10729 file_magic_cmd=$lt_file_magic_cmd
10731 # Flag that allows shared libraries with undefined symbols to be built.
10732 allow_undefined_flag=$lt_allow_undefined_flag
10734 # Flag that forces no undefined symbols.
10735 no_undefined_flag=$lt_no_undefined_flag
10737 # Commands used to finish a libtool library installation in a directory.
10738 finish_cmds=$lt_finish_cmds
10740 # Same as above, but a single script fragment to be evaled but not shown.
10741 finish_eval=$lt_finish_eval
10743 # Take the output of nm and produce a listing of raw symbols and C names.
10744 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10746 # Transform the output of nm in a proper C declaration
10747 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10749 # Transform the output of nm in a C name address pair
10750 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10752 # This is the shared library runtime path variable.
10753 runpath_var=$runpath_var
10755 # This is the shared library path variable.
10756 shlibpath_var=$shlibpath_var
10758 # Is shlibpath searched before the hard-coded library search path?
10759 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10761 # How to hardcode a shared library path into an executable.
10762 hardcode_action=$hardcode_action
10764 # Whether we should hardcode library paths into libraries.
10765 hardcode_into_libs=$hardcode_into_libs
10767 # Flag to hardcode \$libdir into a binary during linking.
10768 # This must work even if \$libdir does not exist.
10769 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10771 # If ld is used when linking, flag to hardcode \$libdir into
10772 # a binary during linking. This must work even if \$libdir does
10773 # not exist.
10774 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10776 # Whether we need a single -rpath flag with a separated argument.
10777 hardcode_libdir_separator=$lt_hardcode_libdir_separator
10779 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10780 # resulting binary.
10781 hardcode_direct=$hardcode_direct
10783 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10784 # resulting binary.
10785 hardcode_minus_L=$hardcode_minus_L
10787 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10788 # the resulting binary.
10789 hardcode_shlibpath_var=$hardcode_shlibpath_var
10791 # Set to yes if building a shared library automatically hardcodes DIR into the library
10792 # and all subsequent libraries and executables linked against it.
10793 hardcode_automatic=$hardcode_automatic
10795 # Variables whose values should be saved in libtool wrapper scripts and
10796 # restored at relink time.
10797 variables_saved_for_relink="$variables_saved_for_relink"
10799 # Whether libtool must link a program against all its dependency libraries.
10800 link_all_deplibs=$link_all_deplibs
10802 # Compile-time system search path for libraries
10803 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10805 # Run-time system search path for libraries
10806 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10808 # Fix the shell variable \$srcfile for the compiler.
10809 fix_srcfile_path=$lt_fix_srcfile_path
10811 # Set to yes if exported symbols are required.
10812 always_export_symbols=$always_export_symbols
10814 # The commands to list exported symbols.
10815 export_symbols_cmds=$lt_export_symbols_cmds
10817 # The commands to extract the exported symbol list from a shared archive.
10818 extract_expsyms_cmds=$lt_extract_expsyms_cmds
10820 # Symbols that should not be listed in the preloaded symbols.
10821 exclude_expsyms=$lt_exclude_expsyms
10823 # Symbols that must always be exported.
10824 include_expsyms=$lt_include_expsyms
10826 # ### END LIBTOOL CONFIG
10828 __EOF__
10831 case $host_os in
10832 aix3*)
10833 cat <<\EOF >> "$cfgfile"
10835 # AIX sometimes has problems with the GCC collect2 program. For some
10836 # reason, if we set the COLLECT_NAMES environment variable, the problems
10837 # vanish in a puff of smoke.
10838 if test "X${COLLECT_NAMES+set}" != Xset; then
10839 COLLECT_NAMES=
10840 export COLLECT_NAMES
10844 esac
10846 # We use sed instead of cat because bash on DJGPP gets confused if
10847 # if finds mixed CR/LF and LF-only lines. Since sed operates in
10848 # text mode, it properly converts lines to CR/LF. This bash problem
10849 # is reportedly fixed, but why not run on old versions too?
10850 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10852 mv -f "$cfgfile" "$ofile" || \
10853 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10854 chmod +x "$ofile"
10856 else
10857 # If there is no Makefile yet, we rely on a make rule to execute
10858 # `config.status --recheck' to rerun these tests and create the
10859 # libtool script then.
10860 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10861 if test -f "$ltmain_in"; then
10862 test -f Makefile && make "$ltmain"
10867 ac_ext=c
10868 ac_cpp='$CPP $CPPFLAGS'
10869 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10870 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10871 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10873 CC="$lt_save_CC"
10876 # Check whether --with-tags was given.
10877 if test "${with_tags+set}" = set; then
10878 withval=$with_tags; tagnames="$withval"
10882 if test -f "$ltmain" && test -n "$tagnames"; then
10883 if test ! -f "${ofile}"; then
10884 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
10885 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
10888 if test -z "$LTCC"; then
10889 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
10890 if test -z "$LTCC"; then
10891 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10892 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
10893 else
10894 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
10895 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
10898 if test -z "$LTCFLAGS"; then
10899 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
10902 # Extract list of available tagged configurations in $ofile.
10903 # Note that this assumes the entire list is on one line.
10904 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10906 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10907 for tagname in $tagnames; do
10908 IFS="$lt_save_ifs"
10909 # Check whether tagname contains only valid characters
10910 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
10911 "") ;;
10912 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
10913 echo "$as_me: error: invalid tag name: $tagname" >&2;}
10914 { (exit 1); exit 1; }; }
10916 esac
10918 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
10919 then
10920 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
10921 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
10922 { (exit 1); exit 1; }; }
10925 # Update the list of available tags.
10926 if test -n "$tagname"; then
10927 echo appending configuration tag \"$tagname\" to $ofile
10929 case $tagname in
10930 CXX)
10931 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10932 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10933 (test "X$CXX" != "Xg++"))) ; then
10934 ac_ext=cpp
10935 ac_cpp='$CXXCPP $CPPFLAGS'
10936 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10937 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10938 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10943 archive_cmds_need_lc_CXX=no
10944 allow_undefined_flag_CXX=
10945 always_export_symbols_CXX=no
10946 archive_expsym_cmds_CXX=
10947 export_dynamic_flag_spec_CXX=
10948 hardcode_direct_CXX=no
10949 hardcode_libdir_flag_spec_CXX=
10950 hardcode_libdir_flag_spec_ld_CXX=
10951 hardcode_libdir_separator_CXX=
10952 hardcode_minus_L_CXX=no
10953 hardcode_shlibpath_var_CXX=unsupported
10954 hardcode_automatic_CXX=no
10955 module_cmds_CXX=
10956 module_expsym_cmds_CXX=
10957 link_all_deplibs_CXX=unknown
10958 old_archive_cmds_CXX=$old_archive_cmds
10959 no_undefined_flag_CXX=
10960 whole_archive_flag_spec_CXX=
10961 enable_shared_with_static_runtimes_CXX=no
10963 # Dependencies to place before and after the object being linked:
10964 predep_objects_CXX=
10965 postdep_objects_CXX=
10966 predeps_CXX=
10967 postdeps_CXX=
10968 compiler_lib_search_path_CXX=
10969 compiler_lib_search_dirs_CXX=
10971 # Source file extension for C++ test sources.
10972 ac_ext=cpp
10974 # Object file extension for compiled C++ test sources.
10975 objext=o
10976 objext_CXX=$objext
10978 # Code to be used in simple compile tests
10979 lt_simple_compile_test_code="int some_variable = 0;"
10981 # Code to be used in simple link tests
10982 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
10984 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
10986 # If no C compiler was specified, use CC.
10987 LTCC=${LTCC-"$CC"}
10989 # If no C compiler flags were specified, use CFLAGS.
10990 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10992 # Allow CC to be a program name with arguments.
10993 compiler=$CC
10996 # save warnings/boilerplate of simple test code
10997 ac_outfile=conftest.$ac_objext
10998 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
10999 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11000 _lt_compiler_boilerplate=`cat conftest.err`
11001 $rm conftest*
11003 ac_outfile=conftest.$ac_objext
11004 echo "$lt_simple_link_test_code" >conftest.$ac_ext
11005 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11006 _lt_linker_boilerplate=`cat conftest.err`
11007 $rm -r conftest*
11010 # Allow CC to be a program name with arguments.
11011 lt_save_CC=$CC
11012 lt_save_LD=$LD
11013 lt_save_GCC=$GCC
11014 GCC=$GXX
11015 lt_save_with_gnu_ld=$with_gnu_ld
11016 lt_save_path_LD=$lt_cv_path_LD
11017 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11018 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11019 else
11020 $as_unset lt_cv_prog_gnu_ld
11022 if test -n "${lt_cv_path_LDCXX+set}"; then
11023 lt_cv_path_LD=$lt_cv_path_LDCXX
11024 else
11025 $as_unset lt_cv_path_LD
11027 test -z "${LDCXX+set}" || LD=$LDCXX
11028 CC=${CXX-"c++"}
11029 compiler=$CC
11030 compiler_CXX=$CC
11031 for cc_temp in $compiler""; do
11032 case $cc_temp in
11033 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11034 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11035 \-*) ;;
11036 *) break;;
11037 esac
11038 done
11039 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11042 # We don't want -fno-exception wen compiling C++ code, so set the
11043 # no_builtin_flag separately
11044 if test "$GXX" = yes; then
11045 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11046 else
11047 lt_prog_compiler_no_builtin_flag_CXX=
11050 if test "$GXX" = yes; then
11051 # Set up default GNU C++ configuration
11054 # Check whether --with-gnu-ld was given.
11055 if test "${with_gnu_ld+set}" = set; then
11056 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11057 else
11058 with_gnu_ld=no
11061 ac_prog=ld
11062 if test "$GCC" = yes; then
11063 # Check if gcc -print-prog-name=ld gives a path.
11064 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
11065 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
11066 case $host in
11067 *-*-mingw*)
11068 # gcc leaves a trailing carriage return which upsets mingw
11069 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11071 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11072 esac
11073 case $ac_prog in
11074 # Accept absolute paths.
11075 [\\/]* | ?:[\\/]*)
11076 re_direlt='/[^/][^/]*/\.\./'
11077 # Canonicalize the pathname of ld
11078 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
11079 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11080 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
11081 done
11082 test -z "$LD" && LD="$ac_prog"
11085 # If it fails, then pretend we aren't using GCC.
11086 ac_prog=ld
11089 # If it is relative, then search for the first ld in PATH.
11090 with_gnu_ld=unknown
11092 esac
11093 elif test "$with_gnu_ld" = yes; then
11094 { echo "$as_me:$LINENO: checking for GNU ld" >&5
11095 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
11096 else
11097 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
11098 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
11100 if test "${lt_cv_path_LD+set}" = set; then
11101 echo $ECHO_N "(cached) $ECHO_C" >&6
11102 else
11103 if test -z "$LD"; then
11104 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11105 for ac_dir in $PATH; do
11106 IFS="$lt_save_ifs"
11107 test -z "$ac_dir" && ac_dir=.
11108 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11109 lt_cv_path_LD="$ac_dir/$ac_prog"
11110 # Check to see if the program is GNU ld. I'd rather use --version,
11111 # but apparently some variants of GNU ld only accept -v.
11112 # Break only if it was the GNU/non-GNU ld that we prefer.
11113 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11114 *GNU* | *'with BFD'*)
11115 test "$with_gnu_ld" != no && break
11118 test "$with_gnu_ld" != yes && break
11120 esac
11122 done
11123 IFS="$lt_save_ifs"
11124 else
11125 lt_cv_path_LD="$LD" # Let the user override the test with a path.
11129 LD="$lt_cv_path_LD"
11130 if test -n "$LD"; then
11131 { echo "$as_me:$LINENO: result: $LD" >&5
11132 echo "${ECHO_T}$LD" >&6; }
11133 else
11134 { echo "$as_me:$LINENO: result: no" >&5
11135 echo "${ECHO_T}no" >&6; }
11137 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
11138 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
11139 { (exit 1); exit 1; }; }
11140 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
11141 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
11142 if test "${lt_cv_prog_gnu_ld+set}" = set; then
11143 echo $ECHO_N "(cached) $ECHO_C" >&6
11144 else
11145 # I'd rather use --version here, but apparently some GNU lds only accept -v.
11146 case `$LD -v 2>&1 </dev/null` in
11147 *GNU* | *'with BFD'*)
11148 lt_cv_prog_gnu_ld=yes
11151 lt_cv_prog_gnu_ld=no
11153 esac
11155 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
11156 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
11157 with_gnu_ld=$lt_cv_prog_gnu_ld
11161 # Check if GNU C++ uses GNU ld as the underlying linker, since the
11162 # archiving commands below assume that GNU ld is being used.
11163 if test "$with_gnu_ld" = yes; then
11164 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11165 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'
11167 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11168 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11170 # If archive_cmds runs LD, not CC, wlarc should be empty
11171 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11172 # investigate it a little bit more. (MM)
11173 wlarc='${wl}'
11175 # ancient GNU ld didn't support --whole-archive et. al.
11176 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
11177 grep 'no-whole-archive' > /dev/null; then
11178 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11179 else
11180 whole_archive_flag_spec_CXX=
11182 else
11183 with_gnu_ld=no
11184 wlarc=
11186 # A generic and very simple default shared library creation
11187 # command for GNU C++ for the case where it uses the native
11188 # linker, instead of GNU ld. If possible, this setting should
11189 # overridden to take advantage of the native linker features on
11190 # the platform it is being used on.
11191 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11194 # Commands to make compiler produce verbose output that lists
11195 # what "hidden" libraries, object files and flags are used when
11196 # linking a shared library.
11197 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11199 else
11200 GXX=no
11201 with_gnu_ld=no
11202 wlarc=
11205 # PORTME: fill in a description of your system's C++ link characteristics
11206 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11207 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
11208 ld_shlibs_CXX=yes
11209 case $host_os in
11210 aix3*)
11211 # FIXME: insert proper C++ library support
11212 ld_shlibs_CXX=no
11214 aix[4-9]*)
11215 if test "$host_cpu" = ia64; then
11216 # On IA64, the linker does run time linking by default, so we don't
11217 # have to do anything special.
11218 aix_use_runtimelinking=no
11219 exp_sym_flag='-Bexport'
11220 no_entry_flag=""
11221 else
11222 aix_use_runtimelinking=no
11224 # Test if we are trying to use run time linking or normal
11225 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11226 # need to do runtime linking.
11227 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11228 for ld_flag in $LDFLAGS; do
11229 case $ld_flag in
11230 *-brtl*)
11231 aix_use_runtimelinking=yes
11232 break
11234 esac
11235 done
11237 esac
11239 exp_sym_flag='-bexport'
11240 no_entry_flag='-bnoentry'
11243 # When large executables or shared objects are built, AIX ld can
11244 # have problems creating the table of contents. If linking a library
11245 # or program results in "error TOC overflow" add -mminimal-toc to
11246 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11247 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11249 archive_cmds_CXX=''
11250 hardcode_direct_CXX=yes
11251 hardcode_libdir_separator_CXX=':'
11252 link_all_deplibs_CXX=yes
11254 if test "$GXX" = yes; then
11255 case $host_os in aix4.[012]|aix4.[012].*)
11256 # We only want to do this on AIX 4.2 and lower, the check
11257 # below for broken collect2 doesn't work under 4.3+
11258 collect2name=`${CC} -print-prog-name=collect2`
11259 if test -f "$collect2name" && \
11260 strings "$collect2name" | grep resolve_lib_name >/dev/null
11261 then
11262 # We have reworked collect2
11264 else
11265 # We have old collect2
11266 hardcode_direct_CXX=unsupported
11267 # It fails to find uninstalled libraries when the uninstalled
11268 # path is not listed in the libpath. Setting hardcode_minus_L
11269 # to unsupported forces relinking
11270 hardcode_minus_L_CXX=yes
11271 hardcode_libdir_flag_spec_CXX='-L$libdir'
11272 hardcode_libdir_separator_CXX=
11275 esac
11276 shared_flag='-shared'
11277 if test "$aix_use_runtimelinking" = yes; then
11278 shared_flag="$shared_flag "'${wl}-G'
11280 else
11281 # not using gcc
11282 if test "$host_cpu" = ia64; then
11283 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11284 # chokes on -Wl,-G. The following line is correct:
11285 shared_flag='-G'
11286 else
11287 if test "$aix_use_runtimelinking" = yes; then
11288 shared_flag='${wl}-G'
11289 else
11290 shared_flag='${wl}-bM:SRE'
11295 # It seems that -bexpall does not export symbols beginning with
11296 # underscore (_), so it is better to generate a list of symbols to export.
11297 always_export_symbols_CXX=yes
11298 if test "$aix_use_runtimelinking" = yes; then
11299 # Warning - without using the other runtime loading flags (-brtl),
11300 # -berok will link without error, but may produce a broken library.
11301 allow_undefined_flag_CXX='-berok'
11302 # Determine the default libpath from the value encoded in an empty executable.
11303 cat >conftest.$ac_ext <<_ACEOF
11304 /* confdefs.h. */
11305 _ACEOF
11306 cat confdefs.h >>conftest.$ac_ext
11307 cat >>conftest.$ac_ext <<_ACEOF
11308 /* end confdefs.h. */
11311 main ()
11315 return 0;
11317 _ACEOF
11318 rm -f conftest.$ac_objext conftest$ac_exeext
11319 if { (ac_try="$ac_link"
11320 case "(($ac_try" in
11321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11322 *) ac_try_echo=$ac_try;;
11323 esac
11324 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11325 (eval "$ac_link") 2>conftest.er1
11326 ac_status=$?
11327 grep -v '^ *+' conftest.er1 >conftest.err
11328 rm -f conftest.er1
11329 cat conftest.err >&5
11330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11331 (exit $ac_status); } && {
11332 test -z "$ac_cxx_werror_flag" ||
11333 test ! -s conftest.err
11334 } && test -s conftest$ac_exeext &&
11335 $as_test_x conftest$ac_exeext; then
11337 lt_aix_libpath_sed='
11338 /Import File Strings/,/^$/ {
11339 /^0/ {
11340 s/^0 *\(.*\)$/\1/
11344 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11345 # Check for a 64-bit object if we didn't find anything.
11346 if test -z "$aix_libpath"; then
11347 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11349 else
11350 echo "$as_me: failed program was:" >&5
11351 sed 's/^/| /' conftest.$ac_ext >&5
11356 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11357 conftest$ac_exeext conftest.$ac_ext
11358 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11360 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11362 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"
11363 else
11364 if test "$host_cpu" = ia64; then
11365 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11366 allow_undefined_flag_CXX="-z nodefs"
11367 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"
11368 else
11369 # Determine the default libpath from the value encoded in an empty executable.
11370 cat >conftest.$ac_ext <<_ACEOF
11371 /* confdefs.h. */
11372 _ACEOF
11373 cat confdefs.h >>conftest.$ac_ext
11374 cat >>conftest.$ac_ext <<_ACEOF
11375 /* end confdefs.h. */
11378 main ()
11382 return 0;
11384 _ACEOF
11385 rm -f conftest.$ac_objext conftest$ac_exeext
11386 if { (ac_try="$ac_link"
11387 case "(($ac_try" in
11388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11389 *) ac_try_echo=$ac_try;;
11390 esac
11391 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11392 (eval "$ac_link") 2>conftest.er1
11393 ac_status=$?
11394 grep -v '^ *+' conftest.er1 >conftest.err
11395 rm -f conftest.er1
11396 cat conftest.err >&5
11397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11398 (exit $ac_status); } && {
11399 test -z "$ac_cxx_werror_flag" ||
11400 test ! -s conftest.err
11401 } && test -s conftest$ac_exeext &&
11402 $as_test_x conftest$ac_exeext; then
11404 lt_aix_libpath_sed='
11405 /Import File Strings/,/^$/ {
11406 /^0/ {
11407 s/^0 *\(.*\)$/\1/
11411 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11412 # Check for a 64-bit object if we didn't find anything.
11413 if test -z "$aix_libpath"; then
11414 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11416 else
11417 echo "$as_me: failed program was:" >&5
11418 sed 's/^/| /' conftest.$ac_ext >&5
11423 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11424 conftest$ac_exeext conftest.$ac_ext
11425 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11427 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11428 # Warning - without using the other run time loading flags,
11429 # -berok will link without error, but may produce a broken library.
11430 no_undefined_flag_CXX=' ${wl}-bernotok'
11431 allow_undefined_flag_CXX=' ${wl}-berok'
11432 # Exported symbols can be pulled into shared objects from archives
11433 whole_archive_flag_spec_CXX='$convenience'
11434 archive_cmds_need_lc_CXX=yes
11435 # This is similar to how AIX traditionally builds its shared libraries.
11436 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'
11441 beos*)
11442 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11443 allow_undefined_flag_CXX=unsupported
11444 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11445 # support --undefined. This deserves some investigation. FIXME
11446 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11447 else
11448 ld_shlibs_CXX=no
11452 chorus*)
11453 case $cc_basename in
11455 # FIXME: insert proper C++ library support
11456 ld_shlibs_CXX=no
11458 esac
11461 cygwin* | mingw* | pw32*)
11462 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11463 # as there is no search path for DLLs.
11464 hardcode_libdir_flag_spec_CXX='-L$libdir'
11465 allow_undefined_flag_CXX=unsupported
11466 always_export_symbols_CXX=no
11467 enable_shared_with_static_runtimes_CXX=yes
11469 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11470 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'
11471 # If the export-symbols file already is a .def file (1st line
11472 # is EXPORTS), use it as is; otherwise, prepend...
11473 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11474 cp $export_symbols $output_objdir/$soname.def;
11475 else
11476 echo EXPORTS > $output_objdir/$soname.def;
11477 cat $export_symbols >> $output_objdir/$soname.def;
11479 $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'
11480 else
11481 ld_shlibs_CXX=no
11484 darwin* | rhapsody*)
11485 archive_cmds_need_lc_CXX=no
11486 hardcode_direct_CXX=no
11487 hardcode_automatic_CXX=yes
11488 hardcode_shlibpath_var_CXX=unsupported
11489 whole_archive_flag_spec_CXX=''
11490 link_all_deplibs_CXX=yes
11491 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
11492 if test "$GXX" = yes ; then
11493 output_verbose_link_cmd='echo'
11494 archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
11495 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
11496 archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
11497 module_expsym_cmds_CXX="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
11498 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
11499 archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}"
11500 archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}"
11502 else
11503 case $cc_basename in
11504 xlc*)
11505 output_verbose_link_cmd='echo'
11506 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'
11507 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11508 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11509 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}'
11510 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}'
11513 ld_shlibs_CXX=no
11515 esac
11519 dgux*)
11520 case $cc_basename in
11521 ec++*)
11522 # FIXME: insert proper C++ library support
11523 ld_shlibs_CXX=no
11525 ghcx*)
11526 # Green Hills C++ Compiler
11527 # FIXME: insert proper C++ library support
11528 ld_shlibs_CXX=no
11531 # FIXME: insert proper C++ library support
11532 ld_shlibs_CXX=no
11534 esac
11536 freebsd[12]*)
11537 # C++ shared libraries reported to be fairly broken before switch to ELF
11538 ld_shlibs_CXX=no
11540 freebsd-elf*)
11541 archive_cmds_need_lc_CXX=no
11543 freebsd* | dragonfly*)
11544 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11545 # conventions
11546 ld_shlibs_CXX=yes
11548 gnu*)
11550 hpux9*)
11551 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11552 hardcode_libdir_separator_CXX=:
11553 export_dynamic_flag_spec_CXX='${wl}-E'
11554 hardcode_direct_CXX=yes
11555 hardcode_minus_L_CXX=yes # Not in the search PATH,
11556 # but as the default
11557 # location of the library.
11559 case $cc_basename in
11560 CC*)
11561 # FIXME: insert proper C++ library support
11562 ld_shlibs_CXX=no
11564 aCC*)
11565 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'
11566 # Commands to make compiler produce verbose output that lists
11567 # what "hidden" libraries, object files and flags are used when
11568 # linking a shared library.
11570 # There doesn't appear to be a way to prevent this compiler from
11571 # explicitly linking system object files so we need to strip them
11572 # from the output so that they don't get included in the library
11573 # dependencies.
11574 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'
11577 if test "$GXX" = yes; then
11578 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'
11579 else
11580 # FIXME: insert proper C++ library support
11581 ld_shlibs_CXX=no
11584 esac
11586 hpux10*|hpux11*)
11587 if test $with_gnu_ld = no; then
11588 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11589 hardcode_libdir_separator_CXX=:
11591 case $host_cpu in
11592 hppa*64*|ia64*) ;;
11594 export_dynamic_flag_spec_CXX='${wl}-E'
11596 esac
11598 case $host_cpu in
11599 hppa*64*|ia64*)
11600 hardcode_direct_CXX=no
11601 hardcode_shlibpath_var_CXX=no
11604 hardcode_direct_CXX=yes
11605 hardcode_minus_L_CXX=yes # Not in the search PATH,
11606 # but as the default
11607 # location of the library.
11609 esac
11611 case $cc_basename in
11612 CC*)
11613 # FIXME: insert proper C++ library support
11614 ld_shlibs_CXX=no
11616 aCC*)
11617 case $host_cpu in
11618 hppa*64*)
11619 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11621 ia64*)
11622 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11625 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11627 esac
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 -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'
11639 if test "$GXX" = yes; then
11640 if test $with_gnu_ld = no; then
11641 case $host_cpu in
11642 hppa*64*)
11643 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11645 ia64*)
11646 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11649 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'
11651 esac
11653 else
11654 # FIXME: insert proper C++ library support
11655 ld_shlibs_CXX=no
11658 esac
11660 interix[3-9]*)
11661 hardcode_direct_CXX=no
11662 hardcode_shlibpath_var_CXX=no
11663 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11664 export_dynamic_flag_spec_CXX='${wl}-E'
11665 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11666 # Instead, shared libraries are loaded at an image base (0x10000000 by
11667 # default) and relocated if they conflict, which is a slow very memory
11668 # consuming and fragmenting process. To avoid this, we pick a random,
11669 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11670 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
11671 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'
11672 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'
11674 irix5* | irix6*)
11675 case $cc_basename in
11676 CC*)
11677 # SGI C++
11678 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'
11680 # Archives containing C++ object files must be created using
11681 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
11682 # necessary to make sure instantiated templates are included
11683 # in the archive.
11684 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11687 if test "$GXX" = yes; then
11688 if test "$with_gnu_ld" = no; then
11689 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'
11690 else
11691 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'
11694 link_all_deplibs_CXX=yes
11696 esac
11697 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11698 hardcode_libdir_separator_CXX=:
11700 linux* | k*bsd*-gnu)
11701 case $cc_basename in
11702 KCC*)
11703 # Kuck and Associates, Inc. (KAI) C++ Compiler
11705 # KCC will only create a shared library if the output file
11706 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11707 # to its proper name (with version) after linking.
11708 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'
11709 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'
11710 # Commands to make compiler produce verbose output that lists
11711 # what "hidden" libraries, object files and flags are used when
11712 # linking a shared library.
11714 # There doesn't appear to be a way to prevent this compiler from
11715 # explicitly linking system object files so we need to strip them
11716 # from the output so that they don't get included in the library
11717 # dependencies.
11718 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'
11720 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
11721 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11723 # Archives containing C++ object files must be created using
11724 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11725 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11727 icpc*)
11728 # Intel C++
11729 with_gnu_ld=yes
11730 # version 8.0 and above of icpc choke on multiply defined symbols
11731 # if we add $predep_objects and $postdep_objects, however 7.1 and
11732 # earlier do not add the objects themselves.
11733 case `$CC -V 2>&1` in
11734 *"Version 7."*)
11735 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11736 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'
11738 *) # Version 8.0 or newer
11739 tmp_idyn=
11740 case $host_cpu in
11741 ia64*) tmp_idyn=' -i_dynamic';;
11742 esac
11743 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11744 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'
11746 esac
11747 archive_cmds_need_lc_CXX=no
11748 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11749 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11750 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11752 pgCC* | pgcpp*)
11753 # Portland Group C++ compiler
11754 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
11755 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'
11757 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11758 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11759 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'
11761 cxx*)
11762 # Compaq C++
11763 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11764 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'
11766 runpath_var=LD_RUN_PATH
11767 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11768 hardcode_libdir_separator_CXX=:
11770 # Commands to make compiler produce verbose output that lists
11771 # what "hidden" libraries, object files and flags are used when
11772 # linking a shared library.
11774 # There doesn't appear to be a way to prevent this compiler from
11775 # explicitly linking system object files so we need to strip them
11776 # from the output so that they don't get included in the library
11777 # dependencies.
11778 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'
11781 case `$CC -V 2>&1 | sed 5q` in
11782 *Sun\ C*)
11783 # Sun C++ 5.9
11784 no_undefined_flag_CXX=' -zdefs'
11785 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11786 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'
11787 hardcode_libdir_flag_spec_CXX='-R$libdir'
11788 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'
11790 # Not sure whether something based on
11791 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
11792 # would be better.
11793 output_verbose_link_cmd='echo'
11795 # Archives containing C++ object files must be created using
11796 # "CC -xar", where "CC" is the Sun C++ compiler. This is
11797 # necessary to make sure instantiated templates are included
11798 # in the archive.
11799 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11801 esac
11803 esac
11805 lynxos*)
11806 # FIXME: insert proper C++ library support
11807 ld_shlibs_CXX=no
11809 m88k*)
11810 # FIXME: insert proper C++ library support
11811 ld_shlibs_CXX=no
11813 mvs*)
11814 case $cc_basename in
11815 cxx*)
11816 # FIXME: insert proper C++ library support
11817 ld_shlibs_CXX=no
11820 # FIXME: insert proper C++ library support
11821 ld_shlibs_CXX=no
11823 esac
11825 netbsd*)
11826 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11827 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
11828 wlarc=
11829 hardcode_libdir_flag_spec_CXX='-R$libdir'
11830 hardcode_direct_CXX=yes
11831 hardcode_shlibpath_var_CXX=no
11833 # Workaround some broken pre-1.5 toolchains
11834 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
11836 openbsd2*)
11837 # C++ shared libraries are fairly broken
11838 ld_shlibs_CXX=no
11840 openbsd*)
11841 if test -f /usr/libexec/ld.so; then
11842 hardcode_direct_CXX=yes
11843 hardcode_shlibpath_var_CXX=no
11844 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11845 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11846 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11847 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
11848 export_dynamic_flag_spec_CXX='${wl}-E'
11849 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11851 output_verbose_link_cmd='echo'
11852 else
11853 ld_shlibs_CXX=no
11856 osf3*)
11857 case $cc_basename in
11858 KCC*)
11859 # Kuck and Associates, Inc. (KAI) C++ Compiler
11861 # KCC will only create a shared library if the output file
11862 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11863 # to its proper name (with version) after linking.
11864 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'
11866 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11867 hardcode_libdir_separator_CXX=:
11869 # Archives containing C++ object files must be created using
11870 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11871 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11874 RCC*)
11875 # Rational C++ 2.4.1
11876 # FIXME: insert proper C++ library support
11877 ld_shlibs_CXX=no
11879 cxx*)
11880 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11881 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'
11883 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11884 hardcode_libdir_separator_CXX=:
11886 # Commands to make compiler produce verbose output that lists
11887 # what "hidden" libraries, object files and flags are used when
11888 # linking a shared library.
11890 # There doesn't appear to be a way to prevent this compiler from
11891 # explicitly linking system object files so we need to strip them
11892 # from the output so that they don't get included in the library
11893 # dependencies.
11894 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'
11897 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11898 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11899 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'
11901 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11902 hardcode_libdir_separator_CXX=:
11904 # Commands to make compiler produce verbose output that lists
11905 # what "hidden" libraries, object files and flags are used when
11906 # linking a shared library.
11907 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11909 else
11910 # FIXME: insert proper C++ library support
11911 ld_shlibs_CXX=no
11914 esac
11916 osf4* | osf5*)
11917 case $cc_basename in
11918 KCC*)
11919 # Kuck and Associates, Inc. (KAI) C++ Compiler
11921 # KCC will only create a shared library if the output file
11922 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11923 # to its proper name (with version) after linking.
11924 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'
11926 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11927 hardcode_libdir_separator_CXX=:
11929 # Archives containing C++ object files must be created using
11930 # the KAI C++ compiler.
11931 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
11933 RCC*)
11934 # Rational C++ 2.4.1
11935 # FIXME: insert proper C++ library support
11936 ld_shlibs_CXX=no
11938 cxx*)
11939 allow_undefined_flag_CXX=' -expect_unresolved \*'
11940 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'
11941 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
11942 echo "-hidden">> $lib.exp~
11943 $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~
11944 $rm $lib.exp'
11946 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11947 hardcode_libdir_separator_CXX=:
11949 # Commands to make compiler produce verbose output that lists
11950 # what "hidden" libraries, object files and flags are used when
11951 # linking a shared library.
11953 # There doesn't appear to be a way to prevent this compiler from
11954 # explicitly linking system object files so we need to strip them
11955 # from the output so that they don't get included in the library
11956 # dependencies.
11957 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'
11960 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11961 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11962 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'
11964 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11965 hardcode_libdir_separator_CXX=:
11967 # Commands to make compiler produce verbose output that lists
11968 # what "hidden" libraries, object files and flags are used when
11969 # linking a shared library.
11970 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11972 else
11973 # FIXME: insert proper C++ library support
11974 ld_shlibs_CXX=no
11977 esac
11979 psos*)
11980 # FIXME: insert proper C++ library support
11981 ld_shlibs_CXX=no
11983 sunos4*)
11984 case $cc_basename in
11985 CC*)
11986 # Sun C++ 4.x
11987 # FIXME: insert proper C++ library support
11988 ld_shlibs_CXX=no
11990 lcc*)
11991 # Lucid
11992 # FIXME: insert proper C++ library support
11993 ld_shlibs_CXX=no
11996 # FIXME: insert proper C++ library support
11997 ld_shlibs_CXX=no
11999 esac
12001 solaris*)
12002 case $cc_basename in
12003 CC*)
12004 # Sun C++ 4.2, 5.x and Centerline C++
12005 archive_cmds_need_lc_CXX=yes
12006 no_undefined_flag_CXX=' -zdefs'
12007 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12008 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12009 $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'
12011 hardcode_libdir_flag_spec_CXX='-R$libdir'
12012 hardcode_shlibpath_var_CXX=no
12013 case $host_os in
12014 solaris2.[0-5] | solaris2.[0-5].*) ;;
12016 # The compiler driver will combine and reorder linker options,
12017 # but understands `-z linker_flag'.
12018 # Supported since Solaris 2.6 (maybe 2.5.1?)
12019 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
12021 esac
12022 link_all_deplibs_CXX=yes
12024 output_verbose_link_cmd='echo'
12026 # Archives containing C++ object files must be created using
12027 # "CC -xar", where "CC" is the Sun C++ compiler. This is
12028 # necessary to make sure instantiated templates are included
12029 # in the archive.
12030 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12032 gcx*)
12033 # Green Hills C++ Compiler
12034 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12036 # The C++ compiler must be used to create the archive.
12037 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12040 # GNU C++ compiler with Solaris linker
12041 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12042 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12043 if $CC --version | grep -v '^2\.7' > /dev/null; then
12044 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12045 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12046 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12048 # Commands to make compiler produce verbose output that lists
12049 # what "hidden" libraries, object files and flags are used when
12050 # linking a shared library.
12051 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12052 else
12053 # g++ 2.7 appears to require `-G' NOT `-shared' on this
12054 # platform.
12055 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12056 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12057 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12059 # Commands to make compiler produce verbose output that lists
12060 # what "hidden" libraries, object files and flags are used when
12061 # linking a shared library.
12062 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12065 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12066 case $host_os in
12067 solaris2.[0-5] | solaris2.[0-5].*) ;;
12069 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
12071 esac
12074 esac
12076 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12077 no_undefined_flag_CXX='${wl}-z,text'
12078 archive_cmds_need_lc_CXX=no
12079 hardcode_shlibpath_var_CXX=no
12080 runpath_var='LD_RUN_PATH'
12082 case $cc_basename in
12083 CC*)
12084 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12085 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12088 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12089 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12091 esac
12093 sysv5* | sco3.2v5* | sco5v6*)
12094 # Note: We can NOT use -z defs as we might desire, because we do not
12095 # link with -lc, and that would cause any symbols used from libc to
12096 # always be unresolved, which means just about no library would
12097 # ever link correctly. If we're not using GNU ld we use -z text
12098 # though, which does catch some bad symbols but isn't as heavy-handed
12099 # as -z defs.
12100 # For security reasons, it is highly recommended that you always
12101 # use absolute paths for naming shared libraries, and exclude the
12102 # DT_RUNPATH tag from executables and libraries. But doing so
12103 # requires that you compile everything twice, which is a pain.
12104 # So that behaviour is only enabled if SCOABSPATH is set to a
12105 # non-empty value in the environment. Most likely only useful for
12106 # creating official distributions of packages.
12107 # This is a hack until libtool officially supports absolute path
12108 # names for shared libraries.
12109 no_undefined_flag_CXX='${wl}-z,text'
12110 allow_undefined_flag_CXX='${wl}-z,nodefs'
12111 archive_cmds_need_lc_CXX=no
12112 hardcode_shlibpath_var_CXX=no
12113 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
12114 hardcode_libdir_separator_CXX=':'
12115 link_all_deplibs_CXX=yes
12116 export_dynamic_flag_spec_CXX='${wl}-Bexport'
12117 runpath_var='LD_RUN_PATH'
12119 case $cc_basename in
12120 CC*)
12121 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12122 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12125 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12126 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12128 esac
12130 tandem*)
12131 case $cc_basename in
12132 NCC*)
12133 # NonStop-UX NCC 3.20
12134 # FIXME: insert proper C++ library support
12135 ld_shlibs_CXX=no
12138 # FIXME: insert proper C++ library support
12139 ld_shlibs_CXX=no
12141 esac
12143 vxworks*)
12144 # FIXME: insert proper C++ library support
12145 ld_shlibs_CXX=no
12148 # FIXME: insert proper C++ library support
12149 ld_shlibs_CXX=no
12151 esac
12152 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12153 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12154 test "$ld_shlibs_CXX" = no && can_build_shared=no
12156 GCC_CXX="$GXX"
12157 LD_CXX="$LD"
12159 cat > conftest.$ac_ext <<EOF
12160 class Foo
12162 public:
12163 Foo (void) { a = 0; }
12164 private:
12165 int a;
12169 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12170 (eval $ac_compile) 2>&5
12171 ac_status=$?
12172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12173 (exit $ac_status); }; then
12174 # Parse the compiler output and extract the necessary
12175 # objects, libraries and library flags.
12177 # Sentinel used to keep track of whether or not we are before
12178 # the conftest object file.
12179 pre_test_object_deps_done=no
12181 # The `*' in the case matches for architectures that use `case' in
12182 # $output_verbose_cmd can trigger glob expansion during the loop
12183 # eval without this substitution.
12184 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
12186 for p in `eval $output_verbose_link_cmd`; do
12187 case $p in
12189 -L* | -R* | -l*)
12190 # Some compilers place space between "-{L,R}" and the path.
12191 # Remove the space.
12192 if test $p = "-L" \
12193 || test $p = "-R"; then
12194 prev=$p
12195 continue
12196 else
12197 prev=
12200 if test "$pre_test_object_deps_done" = no; then
12201 case $p in
12202 -L* | -R*)
12203 # Internal compiler library paths should come after those
12204 # provided the user. The postdeps already come after the
12205 # user supplied libs so there is no need to process them.
12206 if test -z "$compiler_lib_search_path_CXX"; then
12207 compiler_lib_search_path_CXX="${prev}${p}"
12208 else
12209 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
12212 # The "-l" case would never come before the object being
12213 # linked, so don't bother handling this case.
12214 esac
12215 else
12216 if test -z "$postdeps_CXX"; then
12217 postdeps_CXX="${prev}${p}"
12218 else
12219 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
12224 *.$objext)
12225 # This assumes that the test object file only shows up
12226 # once in the compiler output.
12227 if test "$p" = "conftest.$objext"; then
12228 pre_test_object_deps_done=yes
12229 continue
12232 if test "$pre_test_object_deps_done" = no; then
12233 if test -z "$predep_objects_CXX"; then
12234 predep_objects_CXX="$p"
12235 else
12236 predep_objects_CXX="$predep_objects_CXX $p"
12238 else
12239 if test -z "$postdep_objects_CXX"; then
12240 postdep_objects_CXX="$p"
12241 else
12242 postdep_objects_CXX="$postdep_objects_CXX $p"
12247 *) ;; # Ignore the rest.
12249 esac
12250 done
12252 # Clean up.
12253 rm -f a.out a.exe
12254 else
12255 echo "libtool.m4: error: problem compiling CXX test program"
12258 $rm -f confest.$objext
12260 compiler_lib_search_dirs_CXX=
12261 if test -n "$compiler_lib_search_path_CXX"; then
12262 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
12265 # PORTME: override above test on systems where it is broken
12266 case $host_os in
12267 interix[3-9]*)
12268 # Interix 3.5 installs completely hosed .la files for C++, so rather than
12269 # hack all around it, let's just trust "g++" to DTRT.
12270 predep_objects_CXX=
12271 postdep_objects_CXX=
12272 postdeps_CXX=
12275 linux*)
12276 case `$CC -V 2>&1 | sed 5q` in
12277 *Sun\ C*)
12278 # Sun C++ 5.9
12280 # The more standards-conforming stlport4 library is
12281 # incompatible with the Cstd library. Avoid specifying
12282 # it if it's in CXXFLAGS. Ignore libCrun as
12283 # -library=stlport4 depends on it.
12284 case " $CXX $CXXFLAGS " in
12285 *" -library=stlport4 "*)
12286 solaris_use_stlport4=yes
12288 esac
12289 if test "$solaris_use_stlport4" != yes; then
12290 postdeps_CXX='-library=Cstd -library=Crun'
12293 esac
12296 solaris*)
12297 case $cc_basename in
12298 CC*)
12299 # The more standards-conforming stlport4 library is
12300 # incompatible with the Cstd library. Avoid specifying
12301 # it if it's in CXXFLAGS. Ignore libCrun as
12302 # -library=stlport4 depends on it.
12303 case " $CXX $CXXFLAGS " in
12304 *" -library=stlport4 "*)
12305 solaris_use_stlport4=yes
12307 esac
12309 # Adding this requires a known-good setup of shared libraries for
12310 # Sun compiler versions before 5.6, else PIC objects from an old
12311 # archive will be linked into the output, leading to subtle bugs.
12312 if test "$solaris_use_stlport4" != yes; then
12313 postdeps_CXX='-library=Cstd -library=Crun'
12316 esac
12318 esac
12320 case " $postdeps_CXX " in
12321 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
12322 esac
12324 lt_prog_compiler_wl_CXX=
12325 lt_prog_compiler_pic_CXX=
12326 lt_prog_compiler_static_CXX=
12328 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12329 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
12331 # C++ specific cases for pic, static, wl, etc.
12332 if test "$GXX" = yes; then
12333 lt_prog_compiler_wl_CXX='-Wl,'
12334 lt_prog_compiler_static_CXX='-static'
12336 case $host_os in
12337 aix*)
12338 # All AIX code is PIC.
12339 if test "$host_cpu" = ia64; then
12340 # AIX 5 now supports IA64 processor
12341 lt_prog_compiler_static_CXX='-Bstatic'
12344 amigaos*)
12345 # FIXME: we need at least 68020 code to build shared libraries, but
12346 # adding the `-m68020' flag to GCC prevents building anything better,
12347 # like `-m68040'.
12348 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12350 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12351 # PIC is the default for these OSes.
12353 mingw* | cygwin* | os2* | pw32*)
12354 # This hack is so that the source file can tell whether it is being
12355 # built for inclusion in a dll (and should export symbols for example).
12356 # Although the cygwin gcc ignores -fPIC, still need this for old-style
12357 # (--disable-auto-import) libraries
12358 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12360 darwin* | rhapsody*)
12361 # PIC is the default on this platform
12362 # Common symbols not allowed in MH_DYLIB files
12363 lt_prog_compiler_pic_CXX='-fno-common'
12365 *djgpp*)
12366 # DJGPP does not support shared libraries at all
12367 lt_prog_compiler_pic_CXX=
12369 interix[3-9]*)
12370 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12371 # Instead, we relocate shared libraries at runtime.
12373 sysv4*MP*)
12374 if test -d /usr/nec; then
12375 lt_prog_compiler_pic_CXX=-Kconform_pic
12378 hpux*)
12379 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12380 # not for PA HP-UX.
12381 case $host_cpu in
12382 hppa*64*|ia64*)
12385 lt_prog_compiler_pic_CXX='-fPIC'
12387 esac
12390 lt_prog_compiler_pic_CXX='-fPIC'
12392 esac
12393 else
12394 case $host_os in
12395 aix[4-9]*)
12396 # All AIX code is PIC.
12397 if test "$host_cpu" = ia64; then
12398 # AIX 5 now supports IA64 processor
12399 lt_prog_compiler_static_CXX='-Bstatic'
12400 else
12401 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12404 chorus*)
12405 case $cc_basename in
12406 cxch68*)
12407 # Green Hills C++ Compiler
12408 # _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"
12410 esac
12412 darwin*)
12413 # PIC is the default on this platform
12414 # Common symbols not allowed in MH_DYLIB files
12415 case $cc_basename in
12416 xlc*)
12417 lt_prog_compiler_pic_CXX='-qnocommon'
12418 lt_prog_compiler_wl_CXX='-Wl,'
12420 esac
12422 dgux*)
12423 case $cc_basename in
12424 ec++*)
12425 lt_prog_compiler_pic_CXX='-KPIC'
12427 ghcx*)
12428 # Green Hills C++ Compiler
12429 lt_prog_compiler_pic_CXX='-pic'
12433 esac
12435 freebsd* | dragonfly*)
12436 # FreeBSD uses GNU C++
12438 hpux9* | hpux10* | hpux11*)
12439 case $cc_basename in
12440 CC*)
12441 lt_prog_compiler_wl_CXX='-Wl,'
12442 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12443 if test "$host_cpu" != ia64; then
12444 lt_prog_compiler_pic_CXX='+Z'
12447 aCC*)
12448 lt_prog_compiler_wl_CXX='-Wl,'
12449 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12450 case $host_cpu in
12451 hppa*64*|ia64*)
12452 # +Z the default
12455 lt_prog_compiler_pic_CXX='+Z'
12457 esac
12461 esac
12463 interix*)
12464 # This is c89, which is MS Visual C++ (no shared libs)
12465 # Anyone wants to do a port?
12467 irix5* | irix6* | nonstopux*)
12468 case $cc_basename in
12469 CC*)
12470 lt_prog_compiler_wl_CXX='-Wl,'
12471 lt_prog_compiler_static_CXX='-non_shared'
12472 # CC pic flag -KPIC is the default.
12476 esac
12478 linux* | k*bsd*-gnu)
12479 case $cc_basename in
12480 KCC*)
12481 # KAI C++ Compiler
12482 lt_prog_compiler_wl_CXX='--backend -Wl,'
12483 lt_prog_compiler_pic_CXX='-fPIC'
12485 icpc* | ecpc*)
12486 # Intel C++
12487 lt_prog_compiler_wl_CXX='-Wl,'
12488 lt_prog_compiler_pic_CXX='-KPIC'
12489 lt_prog_compiler_static_CXX='-static'
12491 pgCC* | pgcpp*)
12492 # Portland Group C++ compiler.
12493 lt_prog_compiler_wl_CXX='-Wl,'
12494 lt_prog_compiler_pic_CXX='-fpic'
12495 lt_prog_compiler_static_CXX='-Bstatic'
12497 cxx*)
12498 # Compaq C++
12499 # Make sure the PIC flag is empty. It appears that all Alpha
12500 # Linux and Compaq Tru64 Unix objects are PIC.
12501 lt_prog_compiler_pic_CXX=
12502 lt_prog_compiler_static_CXX='-non_shared'
12505 case `$CC -V 2>&1 | sed 5q` in
12506 *Sun\ C*)
12507 # Sun C++ 5.9
12508 lt_prog_compiler_pic_CXX='-KPIC'
12509 lt_prog_compiler_static_CXX='-Bstatic'
12510 lt_prog_compiler_wl_CXX='-Qoption ld '
12512 esac
12514 esac
12516 lynxos*)
12518 m88k*)
12520 mvs*)
12521 case $cc_basename in
12522 cxx*)
12523 lt_prog_compiler_pic_CXX='-W c,exportall'
12527 esac
12529 netbsd*)
12531 osf3* | osf4* | osf5*)
12532 case $cc_basename in
12533 KCC*)
12534 lt_prog_compiler_wl_CXX='--backend -Wl,'
12536 RCC*)
12537 # Rational C++ 2.4.1
12538 lt_prog_compiler_pic_CXX='-pic'
12540 cxx*)
12541 # Digital/Compaq C++
12542 lt_prog_compiler_wl_CXX='-Wl,'
12543 # Make sure the PIC flag is empty. It appears that all Alpha
12544 # Linux and Compaq Tru64 Unix objects are PIC.
12545 lt_prog_compiler_pic_CXX=
12546 lt_prog_compiler_static_CXX='-non_shared'
12550 esac
12552 psos*)
12554 solaris*)
12555 case $cc_basename in
12556 CC*)
12557 # Sun C++ 4.2, 5.x and Centerline C++
12558 lt_prog_compiler_pic_CXX='-KPIC'
12559 lt_prog_compiler_static_CXX='-Bstatic'
12560 lt_prog_compiler_wl_CXX='-Qoption ld '
12562 gcx*)
12563 # Green Hills C++ Compiler
12564 lt_prog_compiler_pic_CXX='-PIC'
12568 esac
12570 sunos4*)
12571 case $cc_basename in
12572 CC*)
12573 # Sun C++ 4.x
12574 lt_prog_compiler_pic_CXX='-pic'
12575 lt_prog_compiler_static_CXX='-Bstatic'
12577 lcc*)
12578 # Lucid
12579 lt_prog_compiler_pic_CXX='-pic'
12583 esac
12585 tandem*)
12586 case $cc_basename in
12587 NCC*)
12588 # NonStop-UX NCC 3.20
12589 lt_prog_compiler_pic_CXX='-KPIC'
12593 esac
12595 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12596 case $cc_basename in
12597 CC*)
12598 lt_prog_compiler_wl_CXX='-Wl,'
12599 lt_prog_compiler_pic_CXX='-KPIC'
12600 lt_prog_compiler_static_CXX='-Bstatic'
12602 esac
12604 vxworks*)
12607 lt_prog_compiler_can_build_shared_CXX=no
12609 esac
12612 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
12613 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
12616 # Check to make sure the PIC flag actually works.
12618 if test -n "$lt_prog_compiler_pic_CXX"; then
12620 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12621 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
12622 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then
12623 echo $ECHO_N "(cached) $ECHO_C" >&6
12624 else
12625 lt_cv_prog_compiler_pic_works_CXX=no
12626 ac_outfile=conftest.$ac_objext
12627 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12628 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12629 # Insert the option either (1) after the last *FLAGS variable, or
12630 # (2) before a word containing "conftest.", or (3) at the end.
12631 # Note that $ac_compile itself does not contain backslashes and begins
12632 # with a dollar sign (not a hyphen), so the echo should work correctly.
12633 # The option is referenced via a variable to avoid confusing sed.
12634 lt_compile=`echo "$ac_compile" | $SED \
12635 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12636 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12637 -e 's:$: $lt_compiler_flag:'`
12638 (eval echo "\"\$as_me:12638: $lt_compile\"" >&5)
12639 (eval "$lt_compile" 2>conftest.err)
12640 ac_status=$?
12641 cat conftest.err >&5
12642 echo "$as_me:12642: \$? = $ac_status" >&5
12643 if (exit $ac_status) && test -s "$ac_outfile"; then
12644 # The compiler can only warn and ignore the option if not recognized
12645 # So say no if there are warnings other than the usual output.
12646 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12647 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12648 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12649 lt_cv_prog_compiler_pic_works_CXX=yes
12652 $rm conftest*
12655 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
12656 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_CXX" >&6; }
12658 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
12659 case $lt_prog_compiler_pic_CXX in
12660 "" | " "*) ;;
12661 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12662 esac
12663 else
12664 lt_prog_compiler_pic_CXX=
12665 lt_prog_compiler_can_build_shared_CXX=no
12669 case $host_os in
12670 # For platforms which do not support PIC, -DPIC is meaningless:
12671 *djgpp*)
12672 lt_prog_compiler_pic_CXX=
12675 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
12677 esac
12680 # Check to make sure the static flag actually works.
12682 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
12683 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12684 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
12685 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then
12686 echo $ECHO_N "(cached) $ECHO_C" >&6
12687 else
12688 lt_cv_prog_compiler_static_works_CXX=no
12689 save_LDFLAGS="$LDFLAGS"
12690 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12691 echo "$lt_simple_link_test_code" > conftest.$ac_ext
12692 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12693 # The linker can only warn and ignore the option if not recognized
12694 # So say no if there are warnings
12695 if test -s conftest.err; then
12696 # Append any errors to the config.log.
12697 cat conftest.err 1>&5
12698 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
12699 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12700 if diff conftest.exp conftest.er2 >/dev/null; then
12701 lt_cv_prog_compiler_static_works_CXX=yes
12703 else
12704 lt_cv_prog_compiler_static_works_CXX=yes
12707 $rm -r conftest*
12708 LDFLAGS="$save_LDFLAGS"
12711 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_CXX" >&5
12712 echo "${ECHO_T}$lt_cv_prog_compiler_static_works_CXX" >&6; }
12714 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
12716 else
12717 lt_prog_compiler_static_CXX=
12721 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12722 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
12723 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
12724 echo $ECHO_N "(cached) $ECHO_C" >&6
12725 else
12726 lt_cv_prog_compiler_c_o_CXX=no
12727 $rm -r conftest 2>/dev/null
12728 mkdir conftest
12729 cd conftest
12730 mkdir out
12731 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12733 lt_compiler_flag="-o out/conftest2.$ac_objext"
12734 # Insert the option either (1) after the last *FLAGS variable, or
12735 # (2) before a word containing "conftest.", or (3) at the end.
12736 # Note that $ac_compile itself does not contain backslashes and begins
12737 # with a dollar sign (not a hyphen), so the echo should work correctly.
12738 lt_compile=`echo "$ac_compile" | $SED \
12739 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12740 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12741 -e 's:$: $lt_compiler_flag:'`
12742 (eval echo "\"\$as_me:12742: $lt_compile\"" >&5)
12743 (eval "$lt_compile" 2>out/conftest.err)
12744 ac_status=$?
12745 cat out/conftest.err >&5
12746 echo "$as_me:12746: \$? = $ac_status" >&5
12747 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12748 then
12749 # The compiler can only warn and ignore the option if not recognized
12750 # So say no if there are warnings
12751 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
12752 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12753 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12754 lt_cv_prog_compiler_c_o_CXX=yes
12757 chmod u+w . 2>&5
12758 $rm conftest*
12759 # SGI C++ compiler will create directory out/ii_files/ for
12760 # template instantiation
12761 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12762 $rm out/* && rmdir out
12763 cd ..
12764 rmdir conftest
12765 $rm conftest*
12768 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
12769 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
12772 hard_links="nottested"
12773 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
12774 # do not overwrite the value of need_locks provided by the user
12775 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12776 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
12777 hard_links=yes
12778 $rm conftest*
12779 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12780 touch conftest.a
12781 ln conftest.a conftest.b 2>&5 || hard_links=no
12782 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12783 { echo "$as_me:$LINENO: result: $hard_links" >&5
12784 echo "${ECHO_T}$hard_links" >&6; }
12785 if test "$hard_links" = no; then
12786 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12787 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12788 need_locks=warn
12790 else
12791 need_locks=no
12794 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12795 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
12797 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12798 case $host_os in
12799 aix[4-9]*)
12800 # If we're using GNU nm, then we don't want the "-C" option.
12801 # -C means demangle to AIX nm, but means don't demangle with GNU nm
12802 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12803 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'
12804 else
12805 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'
12808 pw32*)
12809 export_symbols_cmds_CXX="$ltdll_cmds"
12811 cygwin* | mingw*)
12812 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'
12815 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12817 esac
12818 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
12820 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12821 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12822 test "$ld_shlibs_CXX" = no && can_build_shared=no
12825 # Do we need to explicitly link libc?
12827 case "x$archive_cmds_need_lc_CXX" in
12828 x|xyes)
12829 # Assume -lc should be added
12830 archive_cmds_need_lc_CXX=yes
12832 if test "$enable_shared" = yes && test "$GCC" = yes; then
12833 case $archive_cmds_CXX in
12834 *'~'*)
12835 # FIXME: we may have to deal with multi-command sequences.
12837 '$CC '*)
12838 # Test whether the compiler implicitly links with -lc since on some
12839 # systems, -lgcc has to come before -lc. If gcc already passes -lc
12840 # to ld, don't add -lc before -lgcc.
12841 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
12842 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
12843 $rm conftest*
12844 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12846 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12847 (eval $ac_compile) 2>&5
12848 ac_status=$?
12849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12850 (exit $ac_status); } 2>conftest.err; then
12851 soname=conftest
12852 lib=conftest
12853 libobjs=conftest.$ac_objext
12854 deplibs=
12855 wl=$lt_prog_compiler_wl_CXX
12856 pic_flag=$lt_prog_compiler_pic_CXX
12857 compiler_flags=-v
12858 linker_flags=-v
12859 verstring=
12860 output_objdir=.
12861 libname=conftest
12862 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
12863 allow_undefined_flag_CXX=
12864 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
12865 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
12866 ac_status=$?
12867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12868 (exit $ac_status); }
12869 then
12870 archive_cmds_need_lc_CXX=no
12871 else
12872 archive_cmds_need_lc_CXX=yes
12874 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
12875 else
12876 cat conftest.err 1>&5
12878 $rm conftest*
12879 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
12880 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
12882 esac
12885 esac
12887 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
12888 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
12889 library_names_spec=
12890 libname_spec='lib$name'
12891 soname_spec=
12892 shrext_cmds=".so"
12893 postinstall_cmds=
12894 postuninstall_cmds=
12895 finish_cmds=
12896 finish_eval=
12897 shlibpath_var=
12898 shlibpath_overrides_runpath=unknown
12899 version_type=none
12900 dynamic_linker="$host_os ld.so"
12901 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12903 need_lib_prefix=unknown
12904 hardcode_into_libs=no
12906 # when you set need_version to no, make sure it does not cause -set_version
12907 # flags to be left without arguments
12908 need_version=unknown
12910 case $host_os in
12911 aix3*)
12912 version_type=linux
12913 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12914 shlibpath_var=LIBPATH
12916 # AIX 3 has no versioning support, so we append a major version to the name.
12917 soname_spec='${libname}${release}${shared_ext}$major'
12920 aix[4-9]*)
12921 version_type=linux
12922 need_lib_prefix=no
12923 need_version=no
12924 hardcode_into_libs=yes
12925 if test "$host_cpu" = ia64; then
12926 # AIX 5 supports IA64
12927 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12928 shlibpath_var=LD_LIBRARY_PATH
12929 else
12930 # With GCC up to 2.95.x, collect2 would create an import file
12931 # for dependence libraries. The import file would start with
12932 # the line `#! .'. This would cause the generated library to
12933 # depend on `.', always an invalid library. This was fixed in
12934 # development snapshots of GCC prior to 3.0.
12935 case $host_os in
12936 aix4 | aix4.[01] | aix4.[01].*)
12937 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12938 echo ' yes '
12939 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
12941 else
12942 can_build_shared=no
12945 esac
12946 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12947 # soname into executable. Probably we can add versioning support to
12948 # collect2, so additional links can be useful in future.
12949 if test "$aix_use_runtimelinking" = yes; then
12950 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12951 # instead of lib<name>.a to let people know that these are not
12952 # typical AIX shared libraries.
12953 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12954 else
12955 # We preserve .a as extension for shared libraries through AIX4.2
12956 # and later when we are not doing run time linking.
12957 library_names_spec='${libname}${release}.a $libname.a'
12958 soname_spec='${libname}${release}${shared_ext}$major'
12960 shlibpath_var=LIBPATH
12964 amigaos*)
12965 library_names_spec='$libname.ixlibrary $libname.a'
12966 # Create ${libname}_ixlibrary.a entries in /sys/libs.
12967 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'
12970 beos*)
12971 library_names_spec='${libname}${shared_ext}'
12972 dynamic_linker="$host_os ld.so"
12973 shlibpath_var=LIBRARY_PATH
12976 bsdi[45]*)
12977 version_type=linux
12978 need_version=no
12979 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12980 soname_spec='${libname}${release}${shared_ext}$major'
12981 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12982 shlibpath_var=LD_LIBRARY_PATH
12983 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12984 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12985 # the default ld.so.conf also contains /usr/contrib/lib and
12986 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12987 # libtool to hard-code these into programs
12990 cygwin* | mingw* | pw32*)
12991 version_type=windows
12992 shrext_cmds=".dll"
12993 need_version=no
12994 need_lib_prefix=no
12996 case $GCC,$host_os in
12997 yes,cygwin* | yes,mingw* | yes,pw32*)
12998 library_names_spec='$libname.dll.a'
12999 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13000 postinstall_cmds='base_file=`basename \${file}`~
13001 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13002 dldir=$destdir/`dirname \$dlpath`~
13003 test -d \$dldir || mkdir -p \$dldir~
13004 $install_prog $dir/$dlname \$dldir/$dlname~
13005 chmod a+x \$dldir/$dlname'
13006 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13007 dlpath=$dir/\$dldll~
13008 $rm \$dlpath'
13009 shlibpath_overrides_runpath=yes
13011 case $host_os in
13012 cygwin*)
13013 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13014 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13015 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13017 mingw*)
13018 # MinGW DLLs use traditional 'lib' prefix
13019 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13020 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13021 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13022 # It is most probably a Windows format PATH printed by
13023 # mingw gcc, but we are running on Cygwin. Gcc prints its search
13024 # path with ; separators, and with drive letters. We can handle the
13025 # drive letters (cygwin fileutils understands them), so leave them,
13026 # especially as we might pass files found there to a mingw objdump,
13027 # which wouldn't understand a cygwinified path. Ahh.
13028 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13029 else
13030 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13033 pw32*)
13034 # pw32 DLLs use 'pw' prefix rather than 'lib'
13035 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13037 esac
13041 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13043 esac
13044 dynamic_linker='Win32 ld.exe'
13045 # FIXME: first we should search . and the directory the executable is in
13046 shlibpath_var=PATH
13049 darwin* | rhapsody*)
13050 dynamic_linker="$host_os dyld"
13051 version_type=darwin
13052 need_lib_prefix=no
13053 need_version=no
13054 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13055 soname_spec='${libname}${release}${major}$shared_ext'
13056 shlibpath_overrides_runpath=yes
13057 shlibpath_var=DYLD_LIBRARY_PATH
13058 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13060 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13063 dgux*)
13064 version_type=linux
13065 need_lib_prefix=no
13066 need_version=no
13067 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13068 soname_spec='${libname}${release}${shared_ext}$major'
13069 shlibpath_var=LD_LIBRARY_PATH
13072 freebsd1*)
13073 dynamic_linker=no
13076 freebsd* | dragonfly*)
13077 # DragonFly does not have aout. When/if they implement a new
13078 # versioning mechanism, adjust this.
13079 if test -x /usr/bin/objformat; then
13080 objformat=`/usr/bin/objformat`
13081 else
13082 case $host_os in
13083 freebsd[123]*) objformat=aout ;;
13084 *) objformat=elf ;;
13085 esac
13087 version_type=freebsd-$objformat
13088 case $version_type in
13089 freebsd-elf*)
13090 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13091 need_version=no
13092 need_lib_prefix=no
13094 freebsd-*)
13095 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13096 need_version=yes
13098 esac
13099 shlibpath_var=LD_LIBRARY_PATH
13100 case $host_os in
13101 freebsd2*)
13102 shlibpath_overrides_runpath=yes
13104 freebsd3.[01]* | freebsdelf3.[01]*)
13105 shlibpath_overrides_runpath=yes
13106 hardcode_into_libs=yes
13108 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13109 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13110 shlibpath_overrides_runpath=no
13111 hardcode_into_libs=yes
13113 *) # from 4.6 on, and DragonFly
13114 shlibpath_overrides_runpath=yes
13115 hardcode_into_libs=yes
13117 esac
13120 gnu*)
13121 version_type=linux
13122 need_lib_prefix=no
13123 need_version=no
13124 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13125 soname_spec='${libname}${release}${shared_ext}$major'
13126 shlibpath_var=LD_LIBRARY_PATH
13127 hardcode_into_libs=yes
13130 hpux9* | hpux10* | hpux11*)
13131 # Give a soname corresponding to the major version so that dld.sl refuses to
13132 # link against other versions.
13133 version_type=sunos
13134 need_lib_prefix=no
13135 need_version=no
13136 case $host_cpu in
13137 ia64*)
13138 shrext_cmds='.so'
13139 hardcode_into_libs=yes
13140 dynamic_linker="$host_os dld.so"
13141 shlibpath_var=LD_LIBRARY_PATH
13142 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13143 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13144 soname_spec='${libname}${release}${shared_ext}$major'
13145 if test "X$HPUX_IA64_MODE" = X32; then
13146 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13147 else
13148 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13150 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13152 hppa*64*)
13153 shrext_cmds='.sl'
13154 hardcode_into_libs=yes
13155 dynamic_linker="$host_os dld.sl"
13156 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13157 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13158 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13159 soname_spec='${libname}${release}${shared_ext}$major'
13160 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13161 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13164 shrext_cmds='.sl'
13165 dynamic_linker="$host_os dld.sl"
13166 shlibpath_var=SHLIB_PATH
13167 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13168 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13169 soname_spec='${libname}${release}${shared_ext}$major'
13171 esac
13172 # HP-UX runs *really* slowly unless shared libraries are mode 555.
13173 postinstall_cmds='chmod 555 $lib'
13176 interix[3-9]*)
13177 version_type=linux
13178 need_lib_prefix=no
13179 need_version=no
13180 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13181 soname_spec='${libname}${release}${shared_ext}$major'
13182 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13183 shlibpath_var=LD_LIBRARY_PATH
13184 shlibpath_overrides_runpath=no
13185 hardcode_into_libs=yes
13188 irix5* | irix6* | nonstopux*)
13189 case $host_os in
13190 nonstopux*) version_type=nonstopux ;;
13192 if test "$lt_cv_prog_gnu_ld" = yes; then
13193 version_type=linux
13194 else
13195 version_type=irix
13196 fi ;;
13197 esac
13198 need_lib_prefix=no
13199 need_version=no
13200 soname_spec='${libname}${release}${shared_ext}$major'
13201 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13202 case $host_os in
13203 irix5* | nonstopux*)
13204 libsuff= shlibsuff=
13207 case $LD in # libtool.m4 will add one of these switches to LD
13208 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13209 libsuff= shlibsuff= libmagic=32-bit;;
13210 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13211 libsuff=32 shlibsuff=N32 libmagic=N32;;
13212 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13213 libsuff=64 shlibsuff=64 libmagic=64-bit;;
13214 *) libsuff= shlibsuff= libmagic=never-match;;
13215 esac
13217 esac
13218 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13219 shlibpath_overrides_runpath=no
13220 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13221 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13222 hardcode_into_libs=yes
13225 # No shared lib support for Linux oldld, aout, or coff.
13226 linux*oldld* | linux*aout* | linux*coff*)
13227 dynamic_linker=no
13230 # This must be Linux ELF.
13231 linux* | k*bsd*-gnu)
13232 version_type=linux
13233 need_lib_prefix=no
13234 need_version=no
13235 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13236 soname_spec='${libname}${release}${shared_ext}$major'
13237 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13238 shlibpath_var=LD_LIBRARY_PATH
13239 shlibpath_overrides_runpath=no
13240 # This implies no fast_install, which is unacceptable.
13241 # Some rework will be needed to allow for fast_install
13242 # before this can be enabled.
13243 hardcode_into_libs=yes
13245 # Append ld.so.conf contents to the search path
13246 if test -f /etc/ld.so.conf; then
13247 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' ' '`
13248 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13251 # We used to test for /lib/ld.so.1 and disable shared libraries on
13252 # powerpc, because MkLinux only supported shared libraries with the
13253 # GNU dynamic linker. Since this was broken with cross compilers,
13254 # most powerpc-linux boxes support dynamic linking these days and
13255 # people can always --disable-shared, the test was removed, and we
13256 # assume the GNU/Linux dynamic linker is in use.
13257 dynamic_linker='GNU/Linux ld.so'
13260 netbsd*)
13261 version_type=sunos
13262 need_lib_prefix=no
13263 need_version=no
13264 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13265 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13266 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13267 dynamic_linker='NetBSD (a.out) ld.so'
13268 else
13269 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13270 soname_spec='${libname}${release}${shared_ext}$major'
13271 dynamic_linker='NetBSD ld.elf_so'
13273 shlibpath_var=LD_LIBRARY_PATH
13274 shlibpath_overrides_runpath=yes
13275 hardcode_into_libs=yes
13278 newsos6)
13279 version_type=linux
13280 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13281 shlibpath_var=LD_LIBRARY_PATH
13282 shlibpath_overrides_runpath=yes
13285 nto-qnx*)
13286 version_type=linux
13287 need_lib_prefix=no
13288 need_version=no
13289 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13290 soname_spec='${libname}${release}${shared_ext}$major'
13291 shlibpath_var=LD_LIBRARY_PATH
13292 shlibpath_overrides_runpath=yes
13295 openbsd*)
13296 version_type=sunos
13297 sys_lib_dlsearch_path_spec="/usr/lib"
13298 need_lib_prefix=no
13299 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13300 case $host_os in
13301 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
13302 *) need_version=no ;;
13303 esac
13304 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13305 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13306 shlibpath_var=LD_LIBRARY_PATH
13307 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13308 case $host_os in
13309 openbsd2.[89] | openbsd2.[89].*)
13310 shlibpath_overrides_runpath=no
13313 shlibpath_overrides_runpath=yes
13315 esac
13316 else
13317 shlibpath_overrides_runpath=yes
13321 os2*)
13322 libname_spec='$name'
13323 shrext_cmds=".dll"
13324 need_lib_prefix=no
13325 library_names_spec='$libname${shared_ext} $libname.a'
13326 dynamic_linker='OS/2 ld.exe'
13327 shlibpath_var=LIBPATH
13330 osf3* | osf4* | osf5*)
13331 version_type=osf
13332 need_lib_prefix=no
13333 need_version=no
13334 soname_spec='${libname}${release}${shared_ext}$major'
13335 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13336 shlibpath_var=LD_LIBRARY_PATH
13337 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13338 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13341 rdos*)
13342 dynamic_linker=no
13345 solaris*)
13346 version_type=linux
13347 need_lib_prefix=no
13348 need_version=no
13349 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13350 soname_spec='${libname}${release}${shared_ext}$major'
13351 shlibpath_var=LD_LIBRARY_PATH
13352 shlibpath_overrides_runpath=yes
13353 hardcode_into_libs=yes
13354 # ldd complains unless libraries are executable
13355 postinstall_cmds='chmod +x $lib'
13358 sunos4*)
13359 version_type=sunos
13360 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13361 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13362 shlibpath_var=LD_LIBRARY_PATH
13363 shlibpath_overrides_runpath=yes
13364 if test "$with_gnu_ld" = yes; then
13365 need_lib_prefix=no
13367 need_version=yes
13370 sysv4 | sysv4.3*)
13371 version_type=linux
13372 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13373 soname_spec='${libname}${release}${shared_ext}$major'
13374 shlibpath_var=LD_LIBRARY_PATH
13375 case $host_vendor in
13376 sni)
13377 shlibpath_overrides_runpath=no
13378 need_lib_prefix=no
13379 export_dynamic_flag_spec='${wl}-Blargedynsym'
13380 runpath_var=LD_RUN_PATH
13382 siemens)
13383 need_lib_prefix=no
13385 motorola)
13386 need_lib_prefix=no
13387 need_version=no
13388 shlibpath_overrides_runpath=no
13389 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13391 esac
13394 sysv4*MP*)
13395 if test -d /usr/nec ;then
13396 version_type=linux
13397 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13398 soname_spec='$libname${shared_ext}.$major'
13399 shlibpath_var=LD_LIBRARY_PATH
13403 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13404 version_type=freebsd-elf
13405 need_lib_prefix=no
13406 need_version=no
13407 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13408 soname_spec='${libname}${release}${shared_ext}$major'
13409 shlibpath_var=LD_LIBRARY_PATH
13410 hardcode_into_libs=yes
13411 if test "$with_gnu_ld" = yes; then
13412 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13413 shlibpath_overrides_runpath=no
13414 else
13415 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13416 shlibpath_overrides_runpath=yes
13417 case $host_os in
13418 sco3.2v5*)
13419 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13421 esac
13423 sys_lib_dlsearch_path_spec='/usr/lib'
13426 uts4*)
13427 version_type=linux
13428 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13429 soname_spec='${libname}${release}${shared_ext}$major'
13430 shlibpath_var=LD_LIBRARY_PATH
13434 dynamic_linker=no
13436 esac
13437 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13438 echo "${ECHO_T}$dynamic_linker" >&6; }
13439 test "$dynamic_linker" = no && can_build_shared=no
13441 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
13442 echo $ECHO_N "(cached) $ECHO_C" >&6
13443 else
13444 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
13447 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
13448 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
13449 echo $ECHO_N "(cached) $ECHO_C" >&6
13450 else
13451 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
13454 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
13456 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13457 if test "$GCC" = yes; then
13458 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13461 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13462 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
13463 hardcode_action_CXX=
13464 if test -n "$hardcode_libdir_flag_spec_CXX" || \
13465 test -n "$runpath_var_CXX" || \
13466 test "X$hardcode_automatic_CXX" = "Xyes" ; then
13468 # We can hardcode non-existant directories.
13469 if test "$hardcode_direct_CXX" != no &&
13470 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13471 # have to relink, otherwise we might link with an installed library
13472 # when we should be linking with a yet-to-be-installed one
13473 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13474 test "$hardcode_minus_L_CXX" != no; then
13475 # Linking always hardcodes the temporary library directory.
13476 hardcode_action_CXX=relink
13477 else
13478 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13479 hardcode_action_CXX=immediate
13481 else
13482 # We cannot hardcode anything, or else we can only hardcode existing
13483 # directories.
13484 hardcode_action_CXX=unsupported
13486 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
13487 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
13489 if test "$hardcode_action_CXX" = relink; then
13490 # Fast installation is not supported
13491 enable_fast_install=no
13492 elif test "$shlibpath_overrides_runpath" = yes ||
13493 test "$enable_shared" = no; then
13494 # Fast installation is not necessary
13495 enable_fast_install=needless
13499 # The else clause should only fire when bootstrapping the
13500 # libtool distribution, otherwise you forgot to ship ltmain.sh
13501 # with your package, and you will get complaints that there are
13502 # no rules to generate ltmain.sh.
13503 if test -f "$ltmain"; then
13504 # See if we are running on zsh, and set the options which allow our commands through
13505 # without removal of \ escapes.
13506 if test -n "${ZSH_VERSION+set}" ; then
13507 setopt NO_GLOB_SUBST
13509 # Now quote all the things that may contain metacharacters while being
13510 # careful not to overquote the AC_SUBSTed values. We take copies of the
13511 # variables and quote the copies for generation of the libtool script.
13512 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
13513 SED SHELL STRIP \
13514 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13515 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13516 deplibs_check_method reload_flag reload_cmds need_locks \
13517 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13518 lt_cv_sys_global_symbol_to_c_name_address \
13519 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13520 old_postinstall_cmds old_postuninstall_cmds \
13521 compiler_CXX \
13522 CC_CXX \
13523 LD_CXX \
13524 lt_prog_compiler_wl_CXX \
13525 lt_prog_compiler_pic_CXX \
13526 lt_prog_compiler_static_CXX \
13527 lt_prog_compiler_no_builtin_flag_CXX \
13528 export_dynamic_flag_spec_CXX \
13529 thread_safe_flag_spec_CXX \
13530 whole_archive_flag_spec_CXX \
13531 enable_shared_with_static_runtimes_CXX \
13532 old_archive_cmds_CXX \
13533 old_archive_from_new_cmds_CXX \
13534 predep_objects_CXX \
13535 postdep_objects_CXX \
13536 predeps_CXX \
13537 postdeps_CXX \
13538 compiler_lib_search_path_CXX \
13539 compiler_lib_search_dirs_CXX \
13540 archive_cmds_CXX \
13541 archive_expsym_cmds_CXX \
13542 postinstall_cmds_CXX \
13543 postuninstall_cmds_CXX \
13544 old_archive_from_expsyms_cmds_CXX \
13545 allow_undefined_flag_CXX \
13546 no_undefined_flag_CXX \
13547 export_symbols_cmds_CXX \
13548 hardcode_libdir_flag_spec_CXX \
13549 hardcode_libdir_flag_spec_ld_CXX \
13550 hardcode_libdir_separator_CXX \
13551 hardcode_automatic_CXX \
13552 module_cmds_CXX \
13553 module_expsym_cmds_CXX \
13554 lt_cv_prog_compiler_c_o_CXX \
13555 fix_srcfile_path_CXX \
13556 exclude_expsyms_CXX \
13557 include_expsyms_CXX; do
13559 case $var in
13560 old_archive_cmds_CXX | \
13561 old_archive_from_new_cmds_CXX | \
13562 archive_cmds_CXX | \
13563 archive_expsym_cmds_CXX | \
13564 module_cmds_CXX | \
13565 module_expsym_cmds_CXX | \
13566 old_archive_from_expsyms_cmds_CXX | \
13567 export_symbols_cmds_CXX | \
13568 extract_expsyms_cmds | reload_cmds | finish_cmds | \
13569 postinstall_cmds | postuninstall_cmds | \
13570 old_postinstall_cmds | old_postuninstall_cmds | \
13571 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13572 # Double-quote double-evaled strings.
13573 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13576 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13578 esac
13579 done
13581 case $lt_echo in
13582 *'\$0 --fallback-echo"')
13583 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13585 esac
13587 cfgfile="$ofile"
13589 cat <<__EOF__ >> "$cfgfile"
13590 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
13592 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13594 # Shell to use when invoking shell scripts.
13595 SHELL=$lt_SHELL
13597 # Whether or not to build shared libraries.
13598 build_libtool_libs=$enable_shared
13600 # Whether or not to build static libraries.
13601 build_old_libs=$enable_static
13603 # Whether or not to add -lc for building shared libraries.
13604 build_libtool_need_lc=$archive_cmds_need_lc_CXX
13606 # Whether or not to disallow shared libs when runtime libs are static
13607 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13609 # Whether or not to optimize for fast installation.
13610 fast_install=$enable_fast_install
13612 # The host system.
13613 host_alias=$host_alias
13614 host=$host
13615 host_os=$host_os
13617 # The build system.
13618 build_alias=$build_alias
13619 build=$build
13620 build_os=$build_os
13622 # An echo program that does not interpret backslashes.
13623 echo=$lt_echo
13625 # The archiver.
13626 AR=$lt_AR
13627 AR_FLAGS=$lt_AR_FLAGS
13629 # A C compiler.
13630 LTCC=$lt_LTCC
13632 # LTCC compiler flags.
13633 LTCFLAGS=$lt_LTCFLAGS
13635 # A language-specific compiler.
13636 CC=$lt_compiler_CXX
13638 # Is the compiler the GNU C compiler?
13639 with_gcc=$GCC_CXX
13641 # An ERE matcher.
13642 EGREP=$lt_EGREP
13644 # The linker used to build libraries.
13645 LD=$lt_LD_CXX
13647 # Whether we need hard or soft links.
13648 LN_S=$lt_LN_S
13650 # A BSD-compatible nm program.
13651 NM=$lt_NM
13653 # A symbol stripping program
13654 STRIP=$lt_STRIP
13656 # Used to examine libraries when file_magic_cmd begins "file"
13657 MAGIC_CMD=$MAGIC_CMD
13659 # Used on cygwin: DLL creation program.
13660 DLLTOOL="$DLLTOOL"
13662 # Used on cygwin: object dumper.
13663 OBJDUMP="$OBJDUMP"
13665 # Used on cygwin: assembler.
13666 AS="$AS"
13668 # The name of the directory that contains temporary libtool files.
13669 objdir=$objdir
13671 # How to create reloadable object files.
13672 reload_flag=$lt_reload_flag
13673 reload_cmds=$lt_reload_cmds
13675 # How to pass a linker flag through the compiler.
13676 wl=$lt_lt_prog_compiler_wl_CXX
13678 # Object file suffix (normally "o").
13679 objext="$ac_objext"
13681 # Old archive suffix (normally "a").
13682 libext="$libext"
13684 # Shared library suffix (normally ".so").
13685 shrext_cmds='$shrext_cmds'
13687 # Executable file suffix (normally "").
13688 exeext="$exeext"
13690 # Additional compiler flags for building library objects.
13691 pic_flag=$lt_lt_prog_compiler_pic_CXX
13692 pic_mode=$pic_mode
13694 # What is the maximum length of a command?
13695 max_cmd_len=$lt_cv_sys_max_cmd_len
13697 # Does compiler simultaneously support -c and -o options?
13698 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13700 # Must we lock files when doing compilation?
13701 need_locks=$lt_need_locks
13703 # Do we need the lib prefix for modules?
13704 need_lib_prefix=$need_lib_prefix
13706 # Do we need a version for libraries?
13707 need_version=$need_version
13709 # Whether dlopen is supported.
13710 dlopen_support=$enable_dlopen
13712 # Whether dlopen of programs is supported.
13713 dlopen_self=$enable_dlopen_self
13715 # Whether dlopen of statically linked programs is supported.
13716 dlopen_self_static=$enable_dlopen_self_static
13718 # Compiler flag to prevent dynamic linking.
13719 link_static_flag=$lt_lt_prog_compiler_static_CXX
13721 # Compiler flag to turn off builtin functions.
13722 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13724 # Compiler flag to allow reflexive dlopens.
13725 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13727 # Compiler flag to generate shared objects directly from archives.
13728 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13730 # Compiler flag to generate thread-safe objects.
13731 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13733 # Library versioning type.
13734 version_type=$version_type
13736 # Format of library name prefix.
13737 libname_spec=$lt_libname_spec
13739 # List of archive names. First name is the real one, the rest are links.
13740 # The last name is the one that the linker finds with -lNAME.
13741 library_names_spec=$lt_library_names_spec
13743 # The coded name of the library, if different from the real name.
13744 soname_spec=$lt_soname_spec
13746 # Commands used to build and install an old-style archive.
13747 RANLIB=$lt_RANLIB
13748 old_archive_cmds=$lt_old_archive_cmds_CXX
13749 old_postinstall_cmds=$lt_old_postinstall_cmds
13750 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13752 # Create an old-style archive from a shared archive.
13753 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13755 # Create a temporary old-style archive to link instead of a shared archive.
13756 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13758 # Commands used to build and install a shared archive.
13759 archive_cmds=$lt_archive_cmds_CXX
13760 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13761 postinstall_cmds=$lt_postinstall_cmds
13762 postuninstall_cmds=$lt_postuninstall_cmds
13764 # Commands used to build a loadable module (assumed same as above if empty)
13765 module_cmds=$lt_module_cmds_CXX
13766 module_expsym_cmds=$lt_module_expsym_cmds_CXX
13768 # Commands to strip libraries.
13769 old_striplib=$lt_old_striplib
13770 striplib=$lt_striplib
13772 # Dependencies to place before the objects being linked to create a
13773 # shared library.
13774 predep_objects=$lt_predep_objects_CXX
13776 # Dependencies to place after the objects being linked to create a
13777 # shared library.
13778 postdep_objects=$lt_postdep_objects_CXX
13780 # Dependencies to place before the objects being linked to create a
13781 # shared library.
13782 predeps=$lt_predeps_CXX
13784 # Dependencies to place after the objects being linked to create a
13785 # shared library.
13786 postdeps=$lt_postdeps_CXX
13788 # The directories searched by this compiler when creating a shared
13789 # library
13790 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
13792 # The library search path used internally by the compiler when linking
13793 # a shared library.
13794 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13796 # Method to check whether dependent libraries are shared objects.
13797 deplibs_check_method=$lt_deplibs_check_method
13799 # Command to use when deplibs_check_method == file_magic.
13800 file_magic_cmd=$lt_file_magic_cmd
13802 # Flag that allows shared libraries with undefined symbols to be built.
13803 allow_undefined_flag=$lt_allow_undefined_flag_CXX
13805 # Flag that forces no undefined symbols.
13806 no_undefined_flag=$lt_no_undefined_flag_CXX
13808 # Commands used to finish a libtool library installation in a directory.
13809 finish_cmds=$lt_finish_cmds
13811 # Same as above, but a single script fragment to be evaled but not shown.
13812 finish_eval=$lt_finish_eval
13814 # Take the output of nm and produce a listing of raw symbols and C names.
13815 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13817 # Transform the output of nm in a proper C declaration
13818 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13820 # Transform the output of nm in a C name address pair
13821 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13823 # This is the shared library runtime path variable.
13824 runpath_var=$runpath_var
13826 # This is the shared library path variable.
13827 shlibpath_var=$shlibpath_var
13829 # Is shlibpath searched before the hard-coded library search path?
13830 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13832 # How to hardcode a shared library path into an executable.
13833 hardcode_action=$hardcode_action_CXX
13835 # Whether we should hardcode library paths into libraries.
13836 hardcode_into_libs=$hardcode_into_libs
13838 # Flag to hardcode \$libdir into a binary during linking.
13839 # This must work even if \$libdir does not exist.
13840 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13842 # If ld is used when linking, flag to hardcode \$libdir into
13843 # a binary during linking. This must work even if \$libdir does
13844 # not exist.
13845 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13847 # Whether we need a single -rpath flag with a separated argument.
13848 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13850 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13851 # resulting binary.
13852 hardcode_direct=$hardcode_direct_CXX
13854 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13855 # resulting binary.
13856 hardcode_minus_L=$hardcode_minus_L_CXX
13858 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13859 # the resulting binary.
13860 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13862 # Set to yes if building a shared library automatically hardcodes DIR into the library
13863 # and all subsequent libraries and executables linked against it.
13864 hardcode_automatic=$hardcode_automatic_CXX
13866 # Variables whose values should be saved in libtool wrapper scripts and
13867 # restored at relink time.
13868 variables_saved_for_relink="$variables_saved_for_relink"
13870 # Whether libtool must link a program against all its dependency libraries.
13871 link_all_deplibs=$link_all_deplibs_CXX
13873 # Compile-time system search path for libraries
13874 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13876 # Run-time system search path for libraries
13877 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13879 # Fix the shell variable \$srcfile for the compiler.
13880 fix_srcfile_path=$lt_fix_srcfile_path
13882 # Set to yes if exported symbols are required.
13883 always_export_symbols=$always_export_symbols_CXX
13885 # The commands to list exported symbols.
13886 export_symbols_cmds=$lt_export_symbols_cmds_CXX
13888 # The commands to extract the exported symbol list from a shared archive.
13889 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13891 # Symbols that should not be listed in the preloaded symbols.
13892 exclude_expsyms=$lt_exclude_expsyms_CXX
13894 # Symbols that must always be exported.
13895 include_expsyms=$lt_include_expsyms_CXX
13897 # ### END LIBTOOL TAG CONFIG: $tagname
13899 __EOF__
13902 else
13903 # If there is no Makefile yet, we rely on a make rule to execute
13904 # `config.status --recheck' to rerun these tests and create the
13905 # libtool script then.
13906 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13907 if test -f "$ltmain_in"; then
13908 test -f Makefile && make "$ltmain"
13913 ac_ext=c
13914 ac_cpp='$CPP $CPPFLAGS'
13915 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13916 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13917 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13919 CC=$lt_save_CC
13920 LDCXX=$LD
13921 LD=$lt_save_LD
13922 GCC=$lt_save_GCC
13923 with_gnu_ldcxx=$with_gnu_ld
13924 with_gnu_ld=$lt_save_with_gnu_ld
13925 lt_cv_path_LDCXX=$lt_cv_path_LD
13926 lt_cv_path_LD=$lt_save_path_LD
13927 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13928 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13930 else
13931 tagname=""
13935 F77)
13936 if test -n "$F77" && test "X$F77" != "Xno"; then
13938 ac_ext=f
13939 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13940 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13941 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13944 archive_cmds_need_lc_F77=no
13945 allow_undefined_flag_F77=
13946 always_export_symbols_F77=no
13947 archive_expsym_cmds_F77=
13948 export_dynamic_flag_spec_F77=
13949 hardcode_direct_F77=no
13950 hardcode_libdir_flag_spec_F77=
13951 hardcode_libdir_flag_spec_ld_F77=
13952 hardcode_libdir_separator_F77=
13953 hardcode_minus_L_F77=no
13954 hardcode_automatic_F77=no
13955 module_cmds_F77=
13956 module_expsym_cmds_F77=
13957 link_all_deplibs_F77=unknown
13958 old_archive_cmds_F77=$old_archive_cmds
13959 no_undefined_flag_F77=
13960 whole_archive_flag_spec_F77=
13961 enable_shared_with_static_runtimes_F77=no
13963 # Source file extension for f77 test sources.
13964 ac_ext=f
13966 # Object file extension for compiled f77 test sources.
13967 objext=o
13968 objext_F77=$objext
13970 # Code to be used in simple compile tests
13971 lt_simple_compile_test_code="\
13972 subroutine t
13973 return
13977 # Code to be used in simple link tests
13978 lt_simple_link_test_code="\
13979 program t
13983 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13985 # If no C compiler was specified, use CC.
13986 LTCC=${LTCC-"$CC"}
13988 # If no C compiler flags were specified, use CFLAGS.
13989 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13991 # Allow CC to be a program name with arguments.
13992 compiler=$CC
13995 # save warnings/boilerplate of simple test code
13996 ac_outfile=conftest.$ac_objext
13997 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13998 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13999 _lt_compiler_boilerplate=`cat conftest.err`
14000 $rm conftest*
14002 ac_outfile=conftest.$ac_objext
14003 echo "$lt_simple_link_test_code" >conftest.$ac_ext
14004 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14005 _lt_linker_boilerplate=`cat conftest.err`
14006 $rm -r conftest*
14009 # Allow CC to be a program name with arguments.
14010 lt_save_CC="$CC"
14011 CC=${F77-"f77"}
14012 compiler=$CC
14013 compiler_F77=$CC
14014 for cc_temp in $compiler""; do
14015 case $cc_temp in
14016 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14017 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14018 \-*) ;;
14019 *) break;;
14020 esac
14021 done
14022 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14025 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14026 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
14027 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
14028 echo "${ECHO_T}$can_build_shared" >&6; }
14030 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14031 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
14032 test "$can_build_shared" = "no" && enable_shared=no
14034 # On AIX, shared libraries and static libraries use the same namespace, and
14035 # are all built from PIC.
14036 case $host_os in
14037 aix3*)
14038 test "$enable_shared" = yes && enable_static=no
14039 if test -n "$RANLIB"; then
14040 archive_cmds="$archive_cmds~\$RANLIB \$lib"
14041 postinstall_cmds='$RANLIB $lib'
14044 aix[4-9]*)
14045 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14046 test "$enable_shared" = yes && enable_static=no
14049 esac
14050 { echo "$as_me:$LINENO: result: $enable_shared" >&5
14051 echo "${ECHO_T}$enable_shared" >&6; }
14053 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14054 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
14055 # Make sure either enable_shared or enable_static is yes.
14056 test "$enable_shared" = yes || enable_static=yes
14057 { echo "$as_me:$LINENO: result: $enable_static" >&5
14058 echo "${ECHO_T}$enable_static" >&6; }
14060 GCC_F77="$G77"
14061 LD_F77="$LD"
14063 lt_prog_compiler_wl_F77=
14064 lt_prog_compiler_pic_F77=
14065 lt_prog_compiler_static_F77=
14067 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14068 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
14070 if test "$GCC" = yes; then
14071 lt_prog_compiler_wl_F77='-Wl,'
14072 lt_prog_compiler_static_F77='-static'
14074 case $host_os in
14075 aix*)
14076 # All AIX code is PIC.
14077 if test "$host_cpu" = ia64; then
14078 # AIX 5 now supports IA64 processor
14079 lt_prog_compiler_static_F77='-Bstatic'
14083 amigaos*)
14084 # FIXME: we need at least 68020 code to build shared libraries, but
14085 # adding the `-m68020' flag to GCC prevents building anything better,
14086 # like `-m68040'.
14087 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
14090 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14091 # PIC is the default for these OSes.
14094 mingw* | cygwin* | pw32* | os2*)
14095 # This hack is so that the source file can tell whether it is being
14096 # built for inclusion in a dll (and should export symbols for example).
14097 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14098 # (--disable-auto-import) libraries
14099 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14102 darwin* | rhapsody*)
14103 # PIC is the default on this platform
14104 # Common symbols not allowed in MH_DYLIB files
14105 lt_prog_compiler_pic_F77='-fno-common'
14108 interix[3-9]*)
14109 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14110 # Instead, we relocate shared libraries at runtime.
14113 msdosdjgpp*)
14114 # Just because we use GCC doesn't mean we suddenly get shared libraries
14115 # on systems that don't support them.
14116 lt_prog_compiler_can_build_shared_F77=no
14117 enable_shared=no
14120 sysv4*MP*)
14121 if test -d /usr/nec; then
14122 lt_prog_compiler_pic_F77=-Kconform_pic
14126 hpux*)
14127 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14128 # not for PA HP-UX.
14129 case $host_cpu in
14130 hppa*64*|ia64*)
14131 # +Z the default
14134 lt_prog_compiler_pic_F77='-fPIC'
14136 esac
14140 lt_prog_compiler_pic_F77='-fPIC'
14142 esac
14143 else
14144 # PORTME Check for flag to pass linker flags through the system compiler.
14145 case $host_os in
14146 aix*)
14147 lt_prog_compiler_wl_F77='-Wl,'
14148 if test "$host_cpu" = ia64; then
14149 # AIX 5 now supports IA64 processor
14150 lt_prog_compiler_static_F77='-Bstatic'
14151 else
14152 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
14155 darwin*)
14156 # PIC is the default on this platform
14157 # Common symbols not allowed in MH_DYLIB files
14158 case $cc_basename in
14159 xlc*)
14160 lt_prog_compiler_pic_F77='-qnocommon'
14161 lt_prog_compiler_wl_F77='-Wl,'
14163 esac
14166 mingw* | cygwin* | pw32* | os2*)
14167 # This hack is so that the source file can tell whether it is being
14168 # built for inclusion in a dll (and should export symbols for example).
14169 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14172 hpux9* | hpux10* | hpux11*)
14173 lt_prog_compiler_wl_F77='-Wl,'
14174 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14175 # not for PA HP-UX.
14176 case $host_cpu in
14177 hppa*64*|ia64*)
14178 # +Z the default
14181 lt_prog_compiler_pic_F77='+Z'
14183 esac
14184 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14185 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
14188 irix5* | irix6* | nonstopux*)
14189 lt_prog_compiler_wl_F77='-Wl,'
14190 # PIC (with -KPIC) is the default.
14191 lt_prog_compiler_static_F77='-non_shared'
14194 newsos6)
14195 lt_prog_compiler_pic_F77='-KPIC'
14196 lt_prog_compiler_static_F77='-Bstatic'
14199 linux* | k*bsd*-gnu)
14200 case $cc_basename in
14201 icc* | ecc*)
14202 lt_prog_compiler_wl_F77='-Wl,'
14203 lt_prog_compiler_pic_F77='-KPIC'
14204 lt_prog_compiler_static_F77='-static'
14206 pgcc* | pgf77* | pgf90* | pgf95*)
14207 # Portland Group compilers (*not* the Pentium gcc compiler,
14208 # which looks to be a dead project)
14209 lt_prog_compiler_wl_F77='-Wl,'
14210 lt_prog_compiler_pic_F77='-fpic'
14211 lt_prog_compiler_static_F77='-Bstatic'
14213 ccc*)
14214 lt_prog_compiler_wl_F77='-Wl,'
14215 # All Alpha code is PIC.
14216 lt_prog_compiler_static_F77='-non_shared'
14219 case `$CC -V 2>&1 | sed 5q` in
14220 *Sun\ C*)
14221 # Sun C 5.9
14222 lt_prog_compiler_pic_F77='-KPIC'
14223 lt_prog_compiler_static_F77='-Bstatic'
14224 lt_prog_compiler_wl_F77='-Wl,'
14226 *Sun\ F*)
14227 # Sun Fortran 8.3 passes all unrecognized flags to the linker
14228 lt_prog_compiler_pic_F77='-KPIC'
14229 lt_prog_compiler_static_F77='-Bstatic'
14230 lt_prog_compiler_wl_F77=''
14232 esac
14234 esac
14237 osf3* | osf4* | osf5*)
14238 lt_prog_compiler_wl_F77='-Wl,'
14239 # All OSF/1 code is PIC.
14240 lt_prog_compiler_static_F77='-non_shared'
14243 rdos*)
14244 lt_prog_compiler_static_F77='-non_shared'
14247 solaris*)
14248 lt_prog_compiler_pic_F77='-KPIC'
14249 lt_prog_compiler_static_F77='-Bstatic'
14250 case $cc_basename in
14251 f77* | f90* | f95*)
14252 lt_prog_compiler_wl_F77='-Qoption ld ';;
14254 lt_prog_compiler_wl_F77='-Wl,';;
14255 esac
14258 sunos4*)
14259 lt_prog_compiler_wl_F77='-Qoption ld '
14260 lt_prog_compiler_pic_F77='-PIC'
14261 lt_prog_compiler_static_F77='-Bstatic'
14264 sysv4 | sysv4.2uw2* | sysv4.3*)
14265 lt_prog_compiler_wl_F77='-Wl,'
14266 lt_prog_compiler_pic_F77='-KPIC'
14267 lt_prog_compiler_static_F77='-Bstatic'
14270 sysv4*MP*)
14271 if test -d /usr/nec ;then
14272 lt_prog_compiler_pic_F77='-Kconform_pic'
14273 lt_prog_compiler_static_F77='-Bstatic'
14277 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14278 lt_prog_compiler_wl_F77='-Wl,'
14279 lt_prog_compiler_pic_F77='-KPIC'
14280 lt_prog_compiler_static_F77='-Bstatic'
14283 unicos*)
14284 lt_prog_compiler_wl_F77='-Wl,'
14285 lt_prog_compiler_can_build_shared_F77=no
14288 uts4*)
14289 lt_prog_compiler_pic_F77='-pic'
14290 lt_prog_compiler_static_F77='-Bstatic'
14294 lt_prog_compiler_can_build_shared_F77=no
14296 esac
14299 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
14300 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
14303 # Check to make sure the PIC flag actually works.
14305 if test -n "$lt_prog_compiler_pic_F77"; then
14307 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
14308 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
14309 if test "${lt_cv_prog_compiler_pic_works_F77+set}" = set; then
14310 echo $ECHO_N "(cached) $ECHO_C" >&6
14311 else
14312 lt_cv_prog_compiler_pic_works_F77=no
14313 ac_outfile=conftest.$ac_objext
14314 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14315 lt_compiler_flag="$lt_prog_compiler_pic_F77"
14316 # Insert the option either (1) after the last *FLAGS variable, or
14317 # (2) before a word containing "conftest.", or (3) at the end.
14318 # Note that $ac_compile itself does not contain backslashes and begins
14319 # with a dollar sign (not a hyphen), so the echo should work correctly.
14320 # The option is referenced via a variable to avoid confusing sed.
14321 lt_compile=`echo "$ac_compile" | $SED \
14322 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14323 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14324 -e 's:$: $lt_compiler_flag:'`
14325 (eval echo "\"\$as_me:14325: $lt_compile\"" >&5)
14326 (eval "$lt_compile" 2>conftest.err)
14327 ac_status=$?
14328 cat conftest.err >&5
14329 echo "$as_me:14329: \$? = $ac_status" >&5
14330 if (exit $ac_status) && test -s "$ac_outfile"; then
14331 # The compiler can only warn and ignore the option if not recognized
14332 # So say no if there are warnings other than the usual output.
14333 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14334 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14335 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14336 lt_cv_prog_compiler_pic_works_F77=yes
14339 $rm conftest*
14342 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_F77" >&5
14343 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_F77" >&6; }
14345 if test x"$lt_cv_prog_compiler_pic_works_F77" = xyes; then
14346 case $lt_prog_compiler_pic_F77 in
14347 "" | " "*) ;;
14348 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
14349 esac
14350 else
14351 lt_prog_compiler_pic_F77=
14352 lt_prog_compiler_can_build_shared_F77=no
14356 case $host_os in
14357 # For platforms which do not support PIC, -DPIC is meaningless:
14358 *djgpp*)
14359 lt_prog_compiler_pic_F77=
14362 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14364 esac
14367 # Check to make sure the static flag actually works.
14369 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
14370 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14371 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14372 if test "${lt_cv_prog_compiler_static_works_F77+set}" = set; then
14373 echo $ECHO_N "(cached) $ECHO_C" >&6
14374 else
14375 lt_cv_prog_compiler_static_works_F77=no
14376 save_LDFLAGS="$LDFLAGS"
14377 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14378 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14379 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14380 # The linker can only warn and ignore the option if not recognized
14381 # So say no if there are warnings
14382 if test -s conftest.err; then
14383 # Append any errors to the config.log.
14384 cat conftest.err 1>&5
14385 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14386 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14387 if diff conftest.exp conftest.er2 >/dev/null; then
14388 lt_cv_prog_compiler_static_works_F77=yes
14390 else
14391 lt_cv_prog_compiler_static_works_F77=yes
14394 $rm -r conftest*
14395 LDFLAGS="$save_LDFLAGS"
14398 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_F77" >&5
14399 echo "${ECHO_T}$lt_cv_prog_compiler_static_works_F77" >&6; }
14401 if test x"$lt_cv_prog_compiler_static_works_F77" = xyes; then
14403 else
14404 lt_prog_compiler_static_F77=
14408 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14409 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14410 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14411 echo $ECHO_N "(cached) $ECHO_C" >&6
14412 else
14413 lt_cv_prog_compiler_c_o_F77=no
14414 $rm -r conftest 2>/dev/null
14415 mkdir conftest
14416 cd conftest
14417 mkdir out
14418 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14420 lt_compiler_flag="-o out/conftest2.$ac_objext"
14421 # Insert the option either (1) after the last *FLAGS variable, or
14422 # (2) before a word containing "conftest.", or (3) at the end.
14423 # Note that $ac_compile itself does not contain backslashes and begins
14424 # with a dollar sign (not a hyphen), so the echo should work correctly.
14425 lt_compile=`echo "$ac_compile" | $SED \
14426 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14427 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14428 -e 's:$: $lt_compiler_flag:'`
14429 (eval echo "\"\$as_me:14429: $lt_compile\"" >&5)
14430 (eval "$lt_compile" 2>out/conftest.err)
14431 ac_status=$?
14432 cat out/conftest.err >&5
14433 echo "$as_me:14433: \$? = $ac_status" >&5
14434 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14435 then
14436 # The compiler can only warn and ignore the option if not recognized
14437 # So say no if there are warnings
14438 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14439 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14440 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14441 lt_cv_prog_compiler_c_o_F77=yes
14444 chmod u+w . 2>&5
14445 $rm conftest*
14446 # SGI C++ compiler will create directory out/ii_files/ for
14447 # template instantiation
14448 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14449 $rm out/* && rmdir out
14450 cd ..
14451 rmdir conftest
14452 $rm conftest*
14455 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14456 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
14459 hard_links="nottested"
14460 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14461 # do not overwrite the value of need_locks provided by the user
14462 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14463 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14464 hard_links=yes
14465 $rm conftest*
14466 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14467 touch conftest.a
14468 ln conftest.a conftest.b 2>&5 || hard_links=no
14469 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14470 { echo "$as_me:$LINENO: result: $hard_links" >&5
14471 echo "${ECHO_T}$hard_links" >&6; }
14472 if test "$hard_links" = no; then
14473 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14474 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14475 need_locks=warn
14477 else
14478 need_locks=no
14481 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14482 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14484 runpath_var=
14485 allow_undefined_flag_F77=
14486 enable_shared_with_static_runtimes_F77=no
14487 archive_cmds_F77=
14488 archive_expsym_cmds_F77=
14489 old_archive_From_new_cmds_F77=
14490 old_archive_from_expsyms_cmds_F77=
14491 export_dynamic_flag_spec_F77=
14492 whole_archive_flag_spec_F77=
14493 thread_safe_flag_spec_F77=
14494 hardcode_libdir_flag_spec_F77=
14495 hardcode_libdir_flag_spec_ld_F77=
14496 hardcode_libdir_separator_F77=
14497 hardcode_direct_F77=no
14498 hardcode_minus_L_F77=no
14499 hardcode_shlibpath_var_F77=unsupported
14500 link_all_deplibs_F77=unknown
14501 hardcode_automatic_F77=no
14502 module_cmds_F77=
14503 module_expsym_cmds_F77=
14504 always_export_symbols_F77=no
14505 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14506 # include_expsyms should be a list of space-separated symbols to be *always*
14507 # included in the symbol list
14508 include_expsyms_F77=
14509 # exclude_expsyms can be an extended regexp of symbols to exclude
14510 # it will be wrapped by ` (' and `)$', so one must not match beginning or
14511 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14512 # as well as any symbol that contains `d'.
14513 exclude_expsyms_F77='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14514 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14515 # platforms (ab)use it in PIC code, but their linkers get confused if
14516 # the symbol is explicitly referenced. Since portable code cannot
14517 # rely on this symbol name, it's probably fine to never include it in
14518 # preloaded symbol tables.
14519 # Exclude shared library initialization/finalization symbols.
14520 extract_expsyms_cmds=
14521 # Just being paranoid about ensuring that cc_basename is set.
14522 for cc_temp in $compiler""; do
14523 case $cc_temp in
14524 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14525 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14526 \-*) ;;
14527 *) break;;
14528 esac
14529 done
14530 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14532 case $host_os in
14533 cygwin* | mingw* | pw32*)
14534 # FIXME: the MSVC++ port hasn't been tested in a loooong time
14535 # When not using gcc, we currently assume that we are using
14536 # Microsoft Visual C++.
14537 if test "$GCC" != yes; then
14538 with_gnu_ld=no
14541 interix*)
14542 # we just hope/assume this is gcc and not c89 (= MSVC++)
14543 with_gnu_ld=yes
14545 openbsd*)
14546 with_gnu_ld=no
14548 esac
14550 ld_shlibs_F77=yes
14551 if test "$with_gnu_ld" = yes; then
14552 # If archive_cmds runs LD, not CC, wlarc should be empty
14553 wlarc='${wl}'
14555 # Set some defaults for GNU ld with shared library support. These
14556 # are reset later if shared libraries are not supported. Putting them
14557 # here allows them to be overridden if necessary.
14558 runpath_var=LD_RUN_PATH
14559 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14560 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14561 # ancient GNU ld didn't support --whole-archive et. al.
14562 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14563 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14564 else
14565 whole_archive_flag_spec_F77=
14567 supports_anon_versioning=no
14568 case `$LD -v 2>/dev/null` in
14569 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14570 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14571 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14572 *\ 2.11.*) ;; # other 2.11 versions
14573 *) supports_anon_versioning=yes ;;
14574 esac
14576 # See if GNU ld supports shared libraries.
14577 case $host_os in
14578 aix[3-9]*)
14579 # On AIX/PPC, the GNU linker is very broken
14580 if test "$host_cpu" != ia64; then
14581 ld_shlibs_F77=no
14582 cat <<EOF 1>&2
14584 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
14585 *** to be unable to reliably create shared libraries on AIX.
14586 *** Therefore, libtool is disabling shared libraries support. If you
14587 *** really care for shared libraries, you may want to modify your PATH
14588 *** so that a non-GNU linker is found, and then restart.
14594 amigaos*)
14595 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)'
14596 hardcode_libdir_flag_spec_F77='-L$libdir'
14597 hardcode_minus_L_F77=yes
14599 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14600 # that the semantics of dynamic libraries on AmigaOS, at least up
14601 # to version 4, is to share data among multiple programs linked
14602 # with the same dynamic library. Since this doesn't match the
14603 # behavior of shared libraries on other platforms, we can't use
14604 # them.
14605 ld_shlibs_F77=no
14608 beos*)
14609 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14610 allow_undefined_flag_F77=unsupported
14611 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14612 # support --undefined. This deserves some investigation. FIXME
14613 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14614 else
14615 ld_shlibs_F77=no
14619 cygwin* | mingw* | pw32*)
14620 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14621 # as there is no search path for DLLs.
14622 hardcode_libdir_flag_spec_F77='-L$libdir'
14623 allow_undefined_flag_F77=unsupported
14624 always_export_symbols_F77=no
14625 enable_shared_with_static_runtimes_F77=yes
14626 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
14628 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14629 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14630 # If the export-symbols file already is a .def file (1st line
14631 # is EXPORTS), use it as is; otherwise, prepend...
14632 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14633 cp $export_symbols $output_objdir/$soname.def;
14634 else
14635 echo EXPORTS > $output_objdir/$soname.def;
14636 cat $export_symbols >> $output_objdir/$soname.def;
14638 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14639 else
14640 ld_shlibs_F77=no
14644 interix[3-9]*)
14645 hardcode_direct_F77=no
14646 hardcode_shlibpath_var_F77=no
14647 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14648 export_dynamic_flag_spec_F77='${wl}-E'
14649 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14650 # Instead, shared libraries are loaded at an image base (0x10000000 by
14651 # default) and relocated if they conflict, which is a slow very memory
14652 # consuming and fragmenting process. To avoid this, we pick a random,
14653 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14654 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14655 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'
14656 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'
14659 gnu* | linux* | k*bsd*-gnu)
14660 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14661 tmp_addflag=
14662 case $cc_basename,$host_cpu in
14663 pgcc*) # Portland Group C compiler
14664 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'
14665 tmp_addflag=' $pic_flag'
14667 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
14668 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'
14669 tmp_addflag=' $pic_flag -Mnomain' ;;
14670 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
14671 tmp_addflag=' -i_dynamic' ;;
14672 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
14673 tmp_addflag=' -i_dynamic -nofor_main' ;;
14674 ifc* | ifort*) # Intel Fortran compiler
14675 tmp_addflag=' -nofor_main' ;;
14676 esac
14677 case `$CC -V 2>&1 | sed 5q` in
14678 *Sun\ C*) # Sun C 5.9
14679 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'
14680 tmp_sharedflag='-G' ;;
14681 *Sun\ F*) # Sun Fortran 8.3
14682 tmp_sharedflag='-G' ;;
14684 tmp_sharedflag='-shared' ;;
14685 esac
14686 archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14688 if test $supports_anon_versioning = yes; then
14689 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14690 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14691 $echo "local: *; };" >> $output_objdir/$libname.ver~
14692 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14694 else
14695 ld_shlibs_F77=no
14699 netbsd*)
14700 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14701 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14702 wlarc=
14703 else
14704 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14705 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14709 solaris*)
14710 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14711 ld_shlibs_F77=no
14712 cat <<EOF 1>&2
14714 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
14715 *** create shared libraries on Solaris systems. Therefore, libtool
14716 *** is disabling shared libraries support. We urge you to upgrade GNU
14717 *** binutils to release 2.9.1 or newer. Another option is to modify
14718 *** your PATH or compiler configuration so that the native linker is
14719 *** used, and then restart.
14722 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14723 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14724 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14725 else
14726 ld_shlibs_F77=no
14730 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14731 case `$LD -v 2>&1` in
14732 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14733 ld_shlibs_F77=no
14734 cat <<_LT_EOF 1>&2
14736 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14737 *** reliably create shared libraries on SCO systems. Therefore, libtool
14738 *** is disabling shared libraries support. We urge you to upgrade GNU
14739 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
14740 *** your PATH or compiler configuration so that the native linker is
14741 *** used, and then restart.
14743 _LT_EOF
14746 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14747 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
14748 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
14749 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
14750 else
14751 ld_shlibs_F77=no
14754 esac
14757 sunos4*)
14758 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14759 wlarc=
14760 hardcode_direct_F77=yes
14761 hardcode_shlibpath_var_F77=no
14765 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14766 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14767 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14768 else
14769 ld_shlibs_F77=no
14772 esac
14774 if test "$ld_shlibs_F77" = no; then
14775 runpath_var=
14776 hardcode_libdir_flag_spec_F77=
14777 export_dynamic_flag_spec_F77=
14778 whole_archive_flag_spec_F77=
14780 else
14781 # PORTME fill in a description of your system's linker (not GNU ld)
14782 case $host_os in
14783 aix3*)
14784 allow_undefined_flag_F77=unsupported
14785 always_export_symbols_F77=yes
14786 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'
14787 # Note: this linker hardcodes the directories in LIBPATH if there
14788 # are no directories specified by -L.
14789 hardcode_minus_L_F77=yes
14790 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14791 # Neither direct hardcoding nor static linking is supported with a
14792 # broken collect2.
14793 hardcode_direct_F77=unsupported
14797 aix[4-9]*)
14798 if test "$host_cpu" = ia64; then
14799 # On IA64, the linker does run time linking by default, so we don't
14800 # have to do anything special.
14801 aix_use_runtimelinking=no
14802 exp_sym_flag='-Bexport'
14803 no_entry_flag=""
14804 else
14805 # If we're using GNU nm, then we don't want the "-C" option.
14806 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14807 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14808 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'
14809 else
14810 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'
14812 aix_use_runtimelinking=no
14814 # Test if we are trying to use run time linking or normal
14815 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14816 # need to do runtime linking.
14817 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
14818 for ld_flag in $LDFLAGS; do
14819 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14820 aix_use_runtimelinking=yes
14821 break
14823 done
14825 esac
14827 exp_sym_flag='-bexport'
14828 no_entry_flag='-bnoentry'
14831 # When large executables or shared objects are built, AIX ld can
14832 # have problems creating the table of contents. If linking a library
14833 # or program results in "error TOC overflow" add -mminimal-toc to
14834 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14835 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14837 archive_cmds_F77=''
14838 hardcode_direct_F77=yes
14839 hardcode_libdir_separator_F77=':'
14840 link_all_deplibs_F77=yes
14842 if test "$GCC" = yes; then
14843 case $host_os in aix4.[012]|aix4.[012].*)
14844 # We only want to do this on AIX 4.2 and lower, the check
14845 # below for broken collect2 doesn't work under 4.3+
14846 collect2name=`${CC} -print-prog-name=collect2`
14847 if test -f "$collect2name" && \
14848 strings "$collect2name" | grep resolve_lib_name >/dev/null
14849 then
14850 # We have reworked collect2
14852 else
14853 # We have old collect2
14854 hardcode_direct_F77=unsupported
14855 # It fails to find uninstalled libraries when the uninstalled
14856 # path is not listed in the libpath. Setting hardcode_minus_L
14857 # to unsupported forces relinking
14858 hardcode_minus_L_F77=yes
14859 hardcode_libdir_flag_spec_F77='-L$libdir'
14860 hardcode_libdir_separator_F77=
14863 esac
14864 shared_flag='-shared'
14865 if test "$aix_use_runtimelinking" = yes; then
14866 shared_flag="$shared_flag "'${wl}-G'
14868 else
14869 # not using gcc
14870 if test "$host_cpu" = ia64; then
14871 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14872 # chokes on -Wl,-G. The following line is correct:
14873 shared_flag='-G'
14874 else
14875 if test "$aix_use_runtimelinking" = yes; then
14876 shared_flag='${wl}-G'
14877 else
14878 shared_flag='${wl}-bM:SRE'
14883 # It seems that -bexpall does not export symbols beginning with
14884 # underscore (_), so it is better to generate a list of symbols to export.
14885 always_export_symbols_F77=yes
14886 if test "$aix_use_runtimelinking" = yes; then
14887 # Warning - without using the other runtime loading flags (-brtl),
14888 # -berok will link without error, but may produce a broken library.
14889 allow_undefined_flag_F77='-berok'
14890 # Determine the default libpath from the value encoded in an empty executable.
14891 cat >conftest.$ac_ext <<_ACEOF
14892 program main
14895 _ACEOF
14896 rm -f conftest.$ac_objext conftest$ac_exeext
14897 if { (ac_try="$ac_link"
14898 case "(($ac_try" in
14899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14900 *) ac_try_echo=$ac_try;;
14901 esac
14902 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14903 (eval "$ac_link") 2>conftest.er1
14904 ac_status=$?
14905 grep -v '^ *+' conftest.er1 >conftest.err
14906 rm -f conftest.er1
14907 cat conftest.err >&5
14908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14909 (exit $ac_status); } && {
14910 test -z "$ac_f77_werror_flag" ||
14911 test ! -s conftest.err
14912 } && test -s conftest$ac_exeext &&
14913 $as_test_x conftest$ac_exeext; then
14915 lt_aix_libpath_sed='
14916 /Import File Strings/,/^$/ {
14917 /^0/ {
14918 s/^0 *\(.*\)$/\1/
14922 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14923 # Check for a 64-bit object if we didn't find anything.
14924 if test -z "$aix_libpath"; then
14925 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14927 else
14928 echo "$as_me: failed program was:" >&5
14929 sed 's/^/| /' conftest.$ac_ext >&5
14934 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14935 conftest$ac_exeext conftest.$ac_ext
14936 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14938 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14939 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"
14940 else
14941 if test "$host_cpu" = ia64; then
14942 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
14943 allow_undefined_flag_F77="-z nodefs"
14944 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"
14945 else
14946 # Determine the default libpath from the value encoded in an empty executable.
14947 cat >conftest.$ac_ext <<_ACEOF
14948 program main
14951 _ACEOF
14952 rm -f conftest.$ac_objext conftest$ac_exeext
14953 if { (ac_try="$ac_link"
14954 case "(($ac_try" in
14955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14956 *) ac_try_echo=$ac_try;;
14957 esac
14958 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14959 (eval "$ac_link") 2>conftest.er1
14960 ac_status=$?
14961 grep -v '^ *+' conftest.er1 >conftest.err
14962 rm -f conftest.er1
14963 cat conftest.err >&5
14964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14965 (exit $ac_status); } && {
14966 test -z "$ac_f77_werror_flag" ||
14967 test ! -s conftest.err
14968 } && test -s conftest$ac_exeext &&
14969 $as_test_x conftest$ac_exeext; then
14971 lt_aix_libpath_sed='
14972 /Import File Strings/,/^$/ {
14973 /^0/ {
14974 s/^0 *\(.*\)$/\1/
14978 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14979 # Check for a 64-bit object if we didn't find anything.
14980 if test -z "$aix_libpath"; then
14981 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14983 else
14984 echo "$as_me: failed program was:" >&5
14985 sed 's/^/| /' conftest.$ac_ext >&5
14990 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14991 conftest$ac_exeext conftest.$ac_ext
14992 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14994 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14995 # Warning - without using the other run time loading flags,
14996 # -berok will link without error, but may produce a broken library.
14997 no_undefined_flag_F77=' ${wl}-bernotok'
14998 allow_undefined_flag_F77=' ${wl}-berok'
14999 # Exported symbols can be pulled into shared objects from archives
15000 whole_archive_flag_spec_F77='$convenience'
15001 archive_cmds_need_lc_F77=yes
15002 # This is similar to how AIX traditionally builds its shared libraries.
15003 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'
15008 amigaos*)
15009 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)'
15010 hardcode_libdir_flag_spec_F77='-L$libdir'
15011 hardcode_minus_L_F77=yes
15012 # see comment about different semantics on the GNU ld section
15013 ld_shlibs_F77=no
15016 bsdi[45]*)
15017 export_dynamic_flag_spec_F77=-rdynamic
15020 cygwin* | mingw* | pw32*)
15021 # When not using gcc, we currently assume that we are using
15022 # Microsoft Visual C++.
15023 # hardcode_libdir_flag_spec is actually meaningless, as there is
15024 # no search path for DLLs.
15025 hardcode_libdir_flag_spec_F77=' '
15026 allow_undefined_flag_F77=unsupported
15027 # Tell ltmain to make .lib files, not .a files.
15028 libext=lib
15029 # Tell ltmain to make .dll files, not .so files.
15030 shrext_cmds=".dll"
15031 # FIXME: Setting linknames here is a bad hack.
15032 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15033 # The linker will automatically build a .lib file if we build a DLL.
15034 old_archive_From_new_cmds_F77='true'
15035 # FIXME: Should let the user specify the lib program.
15036 old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs'
15037 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
15038 enable_shared_with_static_runtimes_F77=yes
15041 darwin* | rhapsody*)
15042 case $host_os in
15043 rhapsody* | darwin1.[012])
15044 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
15046 *) # Darwin 1.3 on
15047 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15048 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15049 else
15050 case ${MACOSX_DEPLOYMENT_TARGET} in
15051 10.[012])
15052 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15054 10.*)
15055 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
15057 esac
15060 esac
15061 archive_cmds_need_lc_F77=no
15062 hardcode_direct_F77=no
15063 hardcode_automatic_F77=yes
15064 hardcode_shlibpath_var_F77=unsupported
15065 whole_archive_flag_spec_F77=''
15066 link_all_deplibs_F77=yes
15067 if test "$GCC" = yes ; then
15068 output_verbose_link_cmd='echo'
15069 archive_cmds_F77="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
15070 module_cmds_F77="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
15071 archive_expsym_cmds_F77="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
15072 module_expsym_cmds_F77="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
15073 else
15074 case $cc_basename in
15075 xlc*)
15076 output_verbose_link_cmd='echo'
15077 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
15078 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15079 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15080 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}'
15081 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}'
15084 ld_shlibs_F77=no
15086 esac
15090 dgux*)
15091 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15092 hardcode_libdir_flag_spec_F77='-L$libdir'
15093 hardcode_shlibpath_var_F77=no
15096 freebsd1*)
15097 ld_shlibs_F77=no
15100 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15101 # support. Future versions do this automatically, but an explicit c++rt0.o
15102 # does not break anything, and helps significantly (at the cost of a little
15103 # extra space).
15104 freebsd2.2*)
15105 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15106 hardcode_libdir_flag_spec_F77='-R$libdir'
15107 hardcode_direct_F77=yes
15108 hardcode_shlibpath_var_F77=no
15111 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15112 freebsd2*)
15113 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15114 hardcode_direct_F77=yes
15115 hardcode_minus_L_F77=yes
15116 hardcode_shlibpath_var_F77=no
15119 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15120 freebsd* | dragonfly*)
15121 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15122 hardcode_libdir_flag_spec_F77='-R$libdir'
15123 hardcode_direct_F77=yes
15124 hardcode_shlibpath_var_F77=no
15127 hpux9*)
15128 if test "$GCC" = yes; then
15129 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'
15130 else
15131 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'
15133 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15134 hardcode_libdir_separator_F77=:
15135 hardcode_direct_F77=yes
15137 # hardcode_minus_L: Not really in the search PATH,
15138 # but as the default location of the library.
15139 hardcode_minus_L_F77=yes
15140 export_dynamic_flag_spec_F77='${wl}-E'
15143 hpux10*)
15144 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15145 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15146 else
15147 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15149 if test "$with_gnu_ld" = no; then
15150 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15151 hardcode_libdir_separator_F77=:
15153 hardcode_direct_F77=yes
15154 export_dynamic_flag_spec_F77='${wl}-E'
15156 # hardcode_minus_L: Not really in the search PATH,
15157 # but as the default location of the library.
15158 hardcode_minus_L_F77=yes
15162 hpux11*)
15163 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15164 case $host_cpu in
15165 hppa*64*)
15166 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15168 ia64*)
15169 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15172 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15174 esac
15175 else
15176 case $host_cpu in
15177 hppa*64*)
15178 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15180 ia64*)
15181 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15184 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15186 esac
15188 if test "$with_gnu_ld" = no; then
15189 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15190 hardcode_libdir_separator_F77=:
15192 case $host_cpu in
15193 hppa*64*|ia64*)
15194 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
15195 hardcode_direct_F77=no
15196 hardcode_shlibpath_var_F77=no
15199 hardcode_direct_F77=yes
15200 export_dynamic_flag_spec_F77='${wl}-E'
15202 # hardcode_minus_L: Not really in the search PATH,
15203 # but as the default location of the library.
15204 hardcode_minus_L_F77=yes
15206 esac
15210 irix5* | irix6* | nonstopux*)
15211 if test "$GCC" = yes; then
15212 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'
15213 else
15214 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'
15215 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
15217 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15218 hardcode_libdir_separator_F77=:
15219 link_all_deplibs_F77=yes
15222 netbsd*)
15223 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15224 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15225 else
15226 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15228 hardcode_libdir_flag_spec_F77='-R$libdir'
15229 hardcode_direct_F77=yes
15230 hardcode_shlibpath_var_F77=no
15233 newsos6)
15234 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15235 hardcode_direct_F77=yes
15236 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15237 hardcode_libdir_separator_F77=:
15238 hardcode_shlibpath_var_F77=no
15241 openbsd*)
15242 if test -f /usr/libexec/ld.so; then
15243 hardcode_direct_F77=yes
15244 hardcode_shlibpath_var_F77=no
15245 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15246 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15247 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15248 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15249 export_dynamic_flag_spec_F77='${wl}-E'
15250 else
15251 case $host_os in
15252 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15253 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15254 hardcode_libdir_flag_spec_F77='-R$libdir'
15257 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15258 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15260 esac
15262 else
15263 ld_shlibs_F77=no
15267 os2*)
15268 hardcode_libdir_flag_spec_F77='-L$libdir'
15269 hardcode_minus_L_F77=yes
15270 allow_undefined_flag_F77=unsupported
15271 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'
15272 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15275 osf3*)
15276 if test "$GCC" = yes; then
15277 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15278 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'
15279 else
15280 allow_undefined_flag_F77=' -expect_unresolved \*'
15281 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'
15283 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15284 hardcode_libdir_separator_F77=:
15287 osf4* | osf5*) # as osf3* with the addition of -msym flag
15288 if test "$GCC" = yes; then
15289 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15290 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'
15291 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15292 else
15293 allow_undefined_flag_F77=' -expect_unresolved \*'
15294 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'
15295 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~
15296 $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'
15298 # Both c and cxx compiler support -rpath directly
15299 hardcode_libdir_flag_spec_F77='-rpath $libdir'
15301 hardcode_libdir_separator_F77=:
15304 solaris*)
15305 no_undefined_flag_F77=' -z text'
15306 if test "$GCC" = yes; then
15307 wlarc='${wl}'
15308 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15309 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15310 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15311 else
15312 wlarc=''
15313 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15314 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15315 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15317 hardcode_libdir_flag_spec_F77='-R$libdir'
15318 hardcode_shlibpath_var_F77=no
15319 case $host_os in
15320 solaris2.[0-5] | solaris2.[0-5].*) ;;
15322 # The compiler driver will combine and reorder linker options,
15323 # but understands `-z linker_flag'. GCC discards it without `$wl',
15324 # but is careful enough not to reorder.
15325 # Supported since Solaris 2.6 (maybe 2.5.1?)
15326 if test "$GCC" = yes; then
15327 whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
15328 else
15329 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract'
15332 esac
15333 link_all_deplibs_F77=yes
15336 sunos4*)
15337 if test "x$host_vendor" = xsequent; then
15338 # Use $CC to link under sequent, because it throws in some extra .o
15339 # files that make .init and .fini sections work.
15340 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15341 else
15342 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15344 hardcode_libdir_flag_spec_F77='-L$libdir'
15345 hardcode_direct_F77=yes
15346 hardcode_minus_L_F77=yes
15347 hardcode_shlibpath_var_F77=no
15350 sysv4)
15351 case $host_vendor in
15352 sni)
15353 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15354 hardcode_direct_F77=yes # is this really true???
15356 siemens)
15357 ## LD is ld it makes a PLAMLIB
15358 ## CC just makes a GrossModule.
15359 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15360 reload_cmds_F77='$CC -r -o $output$reload_objs'
15361 hardcode_direct_F77=no
15363 motorola)
15364 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15365 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
15367 esac
15368 runpath_var='LD_RUN_PATH'
15369 hardcode_shlibpath_var_F77=no
15372 sysv4.3*)
15373 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15374 hardcode_shlibpath_var_F77=no
15375 export_dynamic_flag_spec_F77='-Bexport'
15378 sysv4*MP*)
15379 if test -d /usr/nec; then
15380 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15381 hardcode_shlibpath_var_F77=no
15382 runpath_var=LD_RUN_PATH
15383 hardcode_runpath_var=yes
15384 ld_shlibs_F77=yes
15388 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15389 no_undefined_flag_F77='${wl}-z,text'
15390 archive_cmds_need_lc_F77=no
15391 hardcode_shlibpath_var_F77=no
15392 runpath_var='LD_RUN_PATH'
15394 if test "$GCC" = yes; then
15395 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15396 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15397 else
15398 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15399 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15403 sysv5* | sco3.2v5* | sco5v6*)
15404 # Note: We can NOT use -z defs as we might desire, because we do not
15405 # link with -lc, and that would cause any symbols used from libc to
15406 # always be unresolved, which means just about no library would
15407 # ever link correctly. If we're not using GNU ld we use -z text
15408 # though, which does catch some bad symbols but isn't as heavy-handed
15409 # as -z defs.
15410 no_undefined_flag_F77='${wl}-z,text'
15411 allow_undefined_flag_F77='${wl}-z,nodefs'
15412 archive_cmds_need_lc_F77=no
15413 hardcode_shlibpath_var_F77=no
15414 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15415 hardcode_libdir_separator_F77=':'
15416 link_all_deplibs_F77=yes
15417 export_dynamic_flag_spec_F77='${wl}-Bexport'
15418 runpath_var='LD_RUN_PATH'
15420 if test "$GCC" = yes; then
15421 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15422 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15423 else
15424 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15425 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15429 uts4*)
15430 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15431 hardcode_libdir_flag_spec_F77='-L$libdir'
15432 hardcode_shlibpath_var_F77=no
15436 ld_shlibs_F77=no
15438 esac
15441 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
15442 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
15443 test "$ld_shlibs_F77" = no && can_build_shared=no
15446 # Do we need to explicitly link libc?
15448 case "x$archive_cmds_need_lc_F77" in
15449 x|xyes)
15450 # Assume -lc should be added
15451 archive_cmds_need_lc_F77=yes
15453 if test "$enable_shared" = yes && test "$GCC" = yes; then
15454 case $archive_cmds_F77 in
15455 *'~'*)
15456 # FIXME: we may have to deal with multi-command sequences.
15458 '$CC '*)
15459 # Test whether the compiler implicitly links with -lc since on some
15460 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15461 # to ld, don't add -lc before -lgcc.
15462 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15463 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
15464 $rm conftest*
15465 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15467 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15468 (eval $ac_compile) 2>&5
15469 ac_status=$?
15470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15471 (exit $ac_status); } 2>conftest.err; then
15472 soname=conftest
15473 lib=conftest
15474 libobjs=conftest.$ac_objext
15475 deplibs=
15476 wl=$lt_prog_compiler_wl_F77
15477 pic_flag=$lt_prog_compiler_pic_F77
15478 compiler_flags=-v
15479 linker_flags=-v
15480 verstring=
15481 output_objdir=.
15482 libname=conftest
15483 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15484 allow_undefined_flag_F77=
15485 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15486 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15487 ac_status=$?
15488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15489 (exit $ac_status); }
15490 then
15491 archive_cmds_need_lc_F77=no
15492 else
15493 archive_cmds_need_lc_F77=yes
15495 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15496 else
15497 cat conftest.err 1>&5
15499 $rm conftest*
15500 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15501 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
15503 esac
15506 esac
15508 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15509 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
15510 library_names_spec=
15511 libname_spec='lib$name'
15512 soname_spec=
15513 shrext_cmds=".so"
15514 postinstall_cmds=
15515 postuninstall_cmds=
15516 finish_cmds=
15517 finish_eval=
15518 shlibpath_var=
15519 shlibpath_overrides_runpath=unknown
15520 version_type=none
15521 dynamic_linker="$host_os ld.so"
15522 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15524 need_lib_prefix=unknown
15525 hardcode_into_libs=no
15527 # when you set need_version to no, make sure it does not cause -set_version
15528 # flags to be left without arguments
15529 need_version=unknown
15531 case $host_os in
15532 aix3*)
15533 version_type=linux
15534 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15535 shlibpath_var=LIBPATH
15537 # AIX 3 has no versioning support, so we append a major version to the name.
15538 soname_spec='${libname}${release}${shared_ext}$major'
15541 aix[4-9]*)
15542 version_type=linux
15543 need_lib_prefix=no
15544 need_version=no
15545 hardcode_into_libs=yes
15546 if test "$host_cpu" = ia64; then
15547 # AIX 5 supports IA64
15548 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15549 shlibpath_var=LD_LIBRARY_PATH
15550 else
15551 # With GCC up to 2.95.x, collect2 would create an import file
15552 # for dependence libraries. The import file would start with
15553 # the line `#! .'. This would cause the generated library to
15554 # depend on `.', always an invalid library. This was fixed in
15555 # development snapshots of GCC prior to 3.0.
15556 case $host_os in
15557 aix4 | aix4.[01] | aix4.[01].*)
15558 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15559 echo ' yes '
15560 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15562 else
15563 can_build_shared=no
15566 esac
15567 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15568 # soname into executable. Probably we can add versioning support to
15569 # collect2, so additional links can be useful in future.
15570 if test "$aix_use_runtimelinking" = yes; then
15571 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15572 # instead of lib<name>.a to let people know that these are not
15573 # typical AIX shared libraries.
15574 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15575 else
15576 # We preserve .a as extension for shared libraries through AIX4.2
15577 # and later when we are not doing run time linking.
15578 library_names_spec='${libname}${release}.a $libname.a'
15579 soname_spec='${libname}${release}${shared_ext}$major'
15581 shlibpath_var=LIBPATH
15585 amigaos*)
15586 library_names_spec='$libname.ixlibrary $libname.a'
15587 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15588 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'
15591 beos*)
15592 library_names_spec='${libname}${shared_ext}'
15593 dynamic_linker="$host_os ld.so"
15594 shlibpath_var=LIBRARY_PATH
15597 bsdi[45]*)
15598 version_type=linux
15599 need_version=no
15600 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15601 soname_spec='${libname}${release}${shared_ext}$major'
15602 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15603 shlibpath_var=LD_LIBRARY_PATH
15604 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15605 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15606 # the default ld.so.conf also contains /usr/contrib/lib and
15607 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15608 # libtool to hard-code these into programs
15611 cygwin* | mingw* | pw32*)
15612 version_type=windows
15613 shrext_cmds=".dll"
15614 need_version=no
15615 need_lib_prefix=no
15617 case $GCC,$host_os in
15618 yes,cygwin* | yes,mingw* | yes,pw32*)
15619 library_names_spec='$libname.dll.a'
15620 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15621 postinstall_cmds='base_file=`basename \${file}`~
15622 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15623 dldir=$destdir/`dirname \$dlpath`~
15624 test -d \$dldir || mkdir -p \$dldir~
15625 $install_prog $dir/$dlname \$dldir/$dlname~
15626 chmod a+x \$dldir/$dlname'
15627 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15628 dlpath=$dir/\$dldll~
15629 $rm \$dlpath'
15630 shlibpath_overrides_runpath=yes
15632 case $host_os in
15633 cygwin*)
15634 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15635 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15636 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15638 mingw*)
15639 # MinGW DLLs use traditional 'lib' prefix
15640 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15641 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15642 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15643 # It is most probably a Windows format PATH printed by
15644 # mingw gcc, but we are running on Cygwin. Gcc prints its search
15645 # path with ; separators, and with drive letters. We can handle the
15646 # drive letters (cygwin fileutils understands them), so leave them,
15647 # especially as we might pass files found there to a mingw objdump,
15648 # which wouldn't understand a cygwinified path. Ahh.
15649 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15650 else
15651 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15654 pw32*)
15655 # pw32 DLLs use 'pw' prefix rather than 'lib'
15656 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15658 esac
15662 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15664 esac
15665 dynamic_linker='Win32 ld.exe'
15666 # FIXME: first we should search . and the directory the executable is in
15667 shlibpath_var=PATH
15670 darwin* | rhapsody*)
15671 dynamic_linker="$host_os dyld"
15672 version_type=darwin
15673 need_lib_prefix=no
15674 need_version=no
15675 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15676 soname_spec='${libname}${release}${major}$shared_ext'
15677 shlibpath_overrides_runpath=yes
15678 shlibpath_var=DYLD_LIBRARY_PATH
15679 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15681 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15684 dgux*)
15685 version_type=linux
15686 need_lib_prefix=no
15687 need_version=no
15688 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15689 soname_spec='${libname}${release}${shared_ext}$major'
15690 shlibpath_var=LD_LIBRARY_PATH
15693 freebsd1*)
15694 dynamic_linker=no
15697 freebsd* | dragonfly*)
15698 # DragonFly does not have aout. When/if they implement a new
15699 # versioning mechanism, adjust this.
15700 if test -x /usr/bin/objformat; then
15701 objformat=`/usr/bin/objformat`
15702 else
15703 case $host_os in
15704 freebsd[123]*) objformat=aout ;;
15705 *) objformat=elf ;;
15706 esac
15708 version_type=freebsd-$objformat
15709 case $version_type in
15710 freebsd-elf*)
15711 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15712 need_version=no
15713 need_lib_prefix=no
15715 freebsd-*)
15716 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15717 need_version=yes
15719 esac
15720 shlibpath_var=LD_LIBRARY_PATH
15721 case $host_os in
15722 freebsd2*)
15723 shlibpath_overrides_runpath=yes
15725 freebsd3.[01]* | freebsdelf3.[01]*)
15726 shlibpath_overrides_runpath=yes
15727 hardcode_into_libs=yes
15729 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15730 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15731 shlibpath_overrides_runpath=no
15732 hardcode_into_libs=yes
15734 *) # from 4.6 on, and DragonFly
15735 shlibpath_overrides_runpath=yes
15736 hardcode_into_libs=yes
15738 esac
15741 gnu*)
15742 version_type=linux
15743 need_lib_prefix=no
15744 need_version=no
15745 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15746 soname_spec='${libname}${release}${shared_ext}$major'
15747 shlibpath_var=LD_LIBRARY_PATH
15748 hardcode_into_libs=yes
15751 hpux9* | hpux10* | hpux11*)
15752 # Give a soname corresponding to the major version so that dld.sl refuses to
15753 # link against other versions.
15754 version_type=sunos
15755 need_lib_prefix=no
15756 need_version=no
15757 case $host_cpu in
15758 ia64*)
15759 shrext_cmds='.so'
15760 hardcode_into_libs=yes
15761 dynamic_linker="$host_os dld.so"
15762 shlibpath_var=LD_LIBRARY_PATH
15763 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15764 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15765 soname_spec='${libname}${release}${shared_ext}$major'
15766 if test "X$HPUX_IA64_MODE" = X32; then
15767 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15768 else
15769 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15771 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15773 hppa*64*)
15774 shrext_cmds='.sl'
15775 hardcode_into_libs=yes
15776 dynamic_linker="$host_os dld.sl"
15777 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15778 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15779 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15780 soname_spec='${libname}${release}${shared_ext}$major'
15781 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15782 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15785 shrext_cmds='.sl'
15786 dynamic_linker="$host_os dld.sl"
15787 shlibpath_var=SHLIB_PATH
15788 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15789 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15790 soname_spec='${libname}${release}${shared_ext}$major'
15792 esac
15793 # HP-UX runs *really* slowly unless shared libraries are mode 555.
15794 postinstall_cmds='chmod 555 $lib'
15797 interix[3-9]*)
15798 version_type=linux
15799 need_lib_prefix=no
15800 need_version=no
15801 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15802 soname_spec='${libname}${release}${shared_ext}$major'
15803 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15804 shlibpath_var=LD_LIBRARY_PATH
15805 shlibpath_overrides_runpath=no
15806 hardcode_into_libs=yes
15809 irix5* | irix6* | nonstopux*)
15810 case $host_os in
15811 nonstopux*) version_type=nonstopux ;;
15813 if test "$lt_cv_prog_gnu_ld" = yes; then
15814 version_type=linux
15815 else
15816 version_type=irix
15817 fi ;;
15818 esac
15819 need_lib_prefix=no
15820 need_version=no
15821 soname_spec='${libname}${release}${shared_ext}$major'
15822 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15823 case $host_os in
15824 irix5* | nonstopux*)
15825 libsuff= shlibsuff=
15828 case $LD in # libtool.m4 will add one of these switches to LD
15829 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15830 libsuff= shlibsuff= libmagic=32-bit;;
15831 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15832 libsuff=32 shlibsuff=N32 libmagic=N32;;
15833 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15834 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15835 *) libsuff= shlibsuff= libmagic=never-match;;
15836 esac
15838 esac
15839 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15840 shlibpath_overrides_runpath=no
15841 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15842 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15843 hardcode_into_libs=yes
15846 # No shared lib support for Linux oldld, aout, or coff.
15847 linux*oldld* | linux*aout* | linux*coff*)
15848 dynamic_linker=no
15851 # This must be Linux ELF.
15852 linux* | k*bsd*-gnu)
15853 version_type=linux
15854 need_lib_prefix=no
15855 need_version=no
15856 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15857 soname_spec='${libname}${release}${shared_ext}$major'
15858 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15859 shlibpath_var=LD_LIBRARY_PATH
15860 shlibpath_overrides_runpath=no
15861 # This implies no fast_install, which is unacceptable.
15862 # Some rework will be needed to allow for fast_install
15863 # before this can be enabled.
15864 hardcode_into_libs=yes
15866 # Append ld.so.conf contents to the search path
15867 if test -f /etc/ld.so.conf; then
15868 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' ' '`
15869 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15872 # We used to test for /lib/ld.so.1 and disable shared libraries on
15873 # powerpc, because MkLinux only supported shared libraries with the
15874 # GNU dynamic linker. Since this was broken with cross compilers,
15875 # most powerpc-linux boxes support dynamic linking these days and
15876 # people can always --disable-shared, the test was removed, and we
15877 # assume the GNU/Linux dynamic linker is in use.
15878 dynamic_linker='GNU/Linux ld.so'
15881 netbsd*)
15882 version_type=sunos
15883 need_lib_prefix=no
15884 need_version=no
15885 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15886 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15887 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15888 dynamic_linker='NetBSD (a.out) ld.so'
15889 else
15890 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15891 soname_spec='${libname}${release}${shared_ext}$major'
15892 dynamic_linker='NetBSD ld.elf_so'
15894 shlibpath_var=LD_LIBRARY_PATH
15895 shlibpath_overrides_runpath=yes
15896 hardcode_into_libs=yes
15899 newsos6)
15900 version_type=linux
15901 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15902 shlibpath_var=LD_LIBRARY_PATH
15903 shlibpath_overrides_runpath=yes
15906 nto-qnx*)
15907 version_type=linux
15908 need_lib_prefix=no
15909 need_version=no
15910 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15911 soname_spec='${libname}${release}${shared_ext}$major'
15912 shlibpath_var=LD_LIBRARY_PATH
15913 shlibpath_overrides_runpath=yes
15916 openbsd*)
15917 version_type=sunos
15918 sys_lib_dlsearch_path_spec="/usr/lib"
15919 need_lib_prefix=no
15920 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15921 case $host_os in
15922 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15923 *) need_version=no ;;
15924 esac
15925 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15926 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15927 shlibpath_var=LD_LIBRARY_PATH
15928 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15929 case $host_os in
15930 openbsd2.[89] | openbsd2.[89].*)
15931 shlibpath_overrides_runpath=no
15934 shlibpath_overrides_runpath=yes
15936 esac
15937 else
15938 shlibpath_overrides_runpath=yes
15942 os2*)
15943 libname_spec='$name'
15944 shrext_cmds=".dll"
15945 need_lib_prefix=no
15946 library_names_spec='$libname${shared_ext} $libname.a'
15947 dynamic_linker='OS/2 ld.exe'
15948 shlibpath_var=LIBPATH
15951 osf3* | osf4* | osf5*)
15952 version_type=osf
15953 need_lib_prefix=no
15954 need_version=no
15955 soname_spec='${libname}${release}${shared_ext}$major'
15956 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15957 shlibpath_var=LD_LIBRARY_PATH
15958 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15959 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15962 rdos*)
15963 dynamic_linker=no
15966 solaris*)
15967 version_type=linux
15968 need_lib_prefix=no
15969 need_version=no
15970 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15971 soname_spec='${libname}${release}${shared_ext}$major'
15972 shlibpath_var=LD_LIBRARY_PATH
15973 shlibpath_overrides_runpath=yes
15974 hardcode_into_libs=yes
15975 # ldd complains unless libraries are executable
15976 postinstall_cmds='chmod +x $lib'
15979 sunos4*)
15980 version_type=sunos
15981 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15982 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15983 shlibpath_var=LD_LIBRARY_PATH
15984 shlibpath_overrides_runpath=yes
15985 if test "$with_gnu_ld" = yes; then
15986 need_lib_prefix=no
15988 need_version=yes
15991 sysv4 | sysv4.3*)
15992 version_type=linux
15993 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15994 soname_spec='${libname}${release}${shared_ext}$major'
15995 shlibpath_var=LD_LIBRARY_PATH
15996 case $host_vendor in
15997 sni)
15998 shlibpath_overrides_runpath=no
15999 need_lib_prefix=no
16000 export_dynamic_flag_spec='${wl}-Blargedynsym'
16001 runpath_var=LD_RUN_PATH
16003 siemens)
16004 need_lib_prefix=no
16006 motorola)
16007 need_lib_prefix=no
16008 need_version=no
16009 shlibpath_overrides_runpath=no
16010 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16012 esac
16015 sysv4*MP*)
16016 if test -d /usr/nec ;then
16017 version_type=linux
16018 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16019 soname_spec='$libname${shared_ext}.$major'
16020 shlibpath_var=LD_LIBRARY_PATH
16024 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16025 version_type=freebsd-elf
16026 need_lib_prefix=no
16027 need_version=no
16028 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16029 soname_spec='${libname}${release}${shared_ext}$major'
16030 shlibpath_var=LD_LIBRARY_PATH
16031 hardcode_into_libs=yes
16032 if test "$with_gnu_ld" = yes; then
16033 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16034 shlibpath_overrides_runpath=no
16035 else
16036 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16037 shlibpath_overrides_runpath=yes
16038 case $host_os in
16039 sco3.2v5*)
16040 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16042 esac
16044 sys_lib_dlsearch_path_spec='/usr/lib'
16047 uts4*)
16048 version_type=linux
16049 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16050 soname_spec='${libname}${release}${shared_ext}$major'
16051 shlibpath_var=LD_LIBRARY_PATH
16055 dynamic_linker=no
16057 esac
16058 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16059 echo "${ECHO_T}$dynamic_linker" >&6; }
16060 test "$dynamic_linker" = no && can_build_shared=no
16062 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
16063 echo $ECHO_N "(cached) $ECHO_C" >&6
16064 else
16065 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
16068 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
16069 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16070 echo $ECHO_N "(cached) $ECHO_C" >&6
16071 else
16072 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
16075 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
16077 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16078 if test "$GCC" = yes; then
16079 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16082 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16083 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
16084 hardcode_action_F77=
16085 if test -n "$hardcode_libdir_flag_spec_F77" || \
16086 test -n "$runpath_var_F77" || \
16087 test "X$hardcode_automatic_F77" = "Xyes" ; then
16089 # We can hardcode non-existant directories.
16090 if test "$hardcode_direct_F77" != no &&
16091 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16092 # have to relink, otherwise we might link with an installed library
16093 # when we should be linking with a yet-to-be-installed one
16094 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
16095 test "$hardcode_minus_L_F77" != no; then
16096 # Linking always hardcodes the temporary library directory.
16097 hardcode_action_F77=relink
16098 else
16099 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16100 hardcode_action_F77=immediate
16102 else
16103 # We cannot hardcode anything, or else we can only hardcode existing
16104 # directories.
16105 hardcode_action_F77=unsupported
16107 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
16108 echo "${ECHO_T}$hardcode_action_F77" >&6; }
16110 if test "$hardcode_action_F77" = relink; then
16111 # Fast installation is not supported
16112 enable_fast_install=no
16113 elif test "$shlibpath_overrides_runpath" = yes ||
16114 test "$enable_shared" = no; then
16115 # Fast installation is not necessary
16116 enable_fast_install=needless
16120 # The else clause should only fire when bootstrapping the
16121 # libtool distribution, otherwise you forgot to ship ltmain.sh
16122 # with your package, and you will get complaints that there are
16123 # no rules to generate ltmain.sh.
16124 if test -f "$ltmain"; then
16125 # See if we are running on zsh, and set the options which allow our commands through
16126 # without removal of \ escapes.
16127 if test -n "${ZSH_VERSION+set}" ; then
16128 setopt NO_GLOB_SUBST
16130 # Now quote all the things that may contain metacharacters while being
16131 # careful not to overquote the AC_SUBSTed values. We take copies of the
16132 # variables and quote the copies for generation of the libtool script.
16133 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
16134 SED SHELL STRIP \
16135 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
16136 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
16137 deplibs_check_method reload_flag reload_cmds need_locks \
16138 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
16139 lt_cv_sys_global_symbol_to_c_name_address \
16140 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
16141 old_postinstall_cmds old_postuninstall_cmds \
16142 compiler_F77 \
16143 CC_F77 \
16144 LD_F77 \
16145 lt_prog_compiler_wl_F77 \
16146 lt_prog_compiler_pic_F77 \
16147 lt_prog_compiler_static_F77 \
16148 lt_prog_compiler_no_builtin_flag_F77 \
16149 export_dynamic_flag_spec_F77 \
16150 thread_safe_flag_spec_F77 \
16151 whole_archive_flag_spec_F77 \
16152 enable_shared_with_static_runtimes_F77 \
16153 old_archive_cmds_F77 \
16154 old_archive_from_new_cmds_F77 \
16155 predep_objects_F77 \
16156 postdep_objects_F77 \
16157 predeps_F77 \
16158 postdeps_F77 \
16159 compiler_lib_search_path_F77 \
16160 compiler_lib_search_dirs_F77 \
16161 archive_cmds_F77 \
16162 archive_expsym_cmds_F77 \
16163 postinstall_cmds_F77 \
16164 postuninstall_cmds_F77 \
16165 old_archive_from_expsyms_cmds_F77 \
16166 allow_undefined_flag_F77 \
16167 no_undefined_flag_F77 \
16168 export_symbols_cmds_F77 \
16169 hardcode_libdir_flag_spec_F77 \
16170 hardcode_libdir_flag_spec_ld_F77 \
16171 hardcode_libdir_separator_F77 \
16172 hardcode_automatic_F77 \
16173 module_cmds_F77 \
16174 module_expsym_cmds_F77 \
16175 lt_cv_prog_compiler_c_o_F77 \
16176 fix_srcfile_path_F77 \
16177 exclude_expsyms_F77 \
16178 include_expsyms_F77; do
16180 case $var in
16181 old_archive_cmds_F77 | \
16182 old_archive_from_new_cmds_F77 | \
16183 archive_cmds_F77 | \
16184 archive_expsym_cmds_F77 | \
16185 module_cmds_F77 | \
16186 module_expsym_cmds_F77 | \
16187 old_archive_from_expsyms_cmds_F77 | \
16188 export_symbols_cmds_F77 | \
16189 extract_expsyms_cmds | reload_cmds | finish_cmds | \
16190 postinstall_cmds | postuninstall_cmds | \
16191 old_postinstall_cmds | old_postuninstall_cmds | \
16192 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
16193 # Double-quote double-evaled strings.
16194 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
16197 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
16199 esac
16200 done
16202 case $lt_echo in
16203 *'\$0 --fallback-echo"')
16204 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
16206 esac
16208 cfgfile="$ofile"
16210 cat <<__EOF__ >> "$cfgfile"
16211 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
16213 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16215 # Shell to use when invoking shell scripts.
16216 SHELL=$lt_SHELL
16218 # Whether or not to build shared libraries.
16219 build_libtool_libs=$enable_shared
16221 # Whether or not to build static libraries.
16222 build_old_libs=$enable_static
16224 # Whether or not to add -lc for building shared libraries.
16225 build_libtool_need_lc=$archive_cmds_need_lc_F77
16227 # Whether or not to disallow shared libs when runtime libs are static
16228 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
16230 # Whether or not to optimize for fast installation.
16231 fast_install=$enable_fast_install
16233 # The host system.
16234 host_alias=$host_alias
16235 host=$host
16236 host_os=$host_os
16238 # The build system.
16239 build_alias=$build_alias
16240 build=$build
16241 build_os=$build_os
16243 # An echo program that does not interpret backslashes.
16244 echo=$lt_echo
16246 # The archiver.
16247 AR=$lt_AR
16248 AR_FLAGS=$lt_AR_FLAGS
16250 # A C compiler.
16251 LTCC=$lt_LTCC
16253 # LTCC compiler flags.
16254 LTCFLAGS=$lt_LTCFLAGS
16256 # A language-specific compiler.
16257 CC=$lt_compiler_F77
16259 # Is the compiler the GNU C compiler?
16260 with_gcc=$GCC_F77
16262 # An ERE matcher.
16263 EGREP=$lt_EGREP
16265 # The linker used to build libraries.
16266 LD=$lt_LD_F77
16268 # Whether we need hard or soft links.
16269 LN_S=$lt_LN_S
16271 # A BSD-compatible nm program.
16272 NM=$lt_NM
16274 # A symbol stripping program
16275 STRIP=$lt_STRIP
16277 # Used to examine libraries when file_magic_cmd begins "file"
16278 MAGIC_CMD=$MAGIC_CMD
16280 # Used on cygwin: DLL creation program.
16281 DLLTOOL="$DLLTOOL"
16283 # Used on cygwin: object dumper.
16284 OBJDUMP="$OBJDUMP"
16286 # Used on cygwin: assembler.
16287 AS="$AS"
16289 # The name of the directory that contains temporary libtool files.
16290 objdir=$objdir
16292 # How to create reloadable object files.
16293 reload_flag=$lt_reload_flag
16294 reload_cmds=$lt_reload_cmds
16296 # How to pass a linker flag through the compiler.
16297 wl=$lt_lt_prog_compiler_wl_F77
16299 # Object file suffix (normally "o").
16300 objext="$ac_objext"
16302 # Old archive suffix (normally "a").
16303 libext="$libext"
16305 # Shared library suffix (normally ".so").
16306 shrext_cmds='$shrext_cmds'
16308 # Executable file suffix (normally "").
16309 exeext="$exeext"
16311 # Additional compiler flags for building library objects.
16312 pic_flag=$lt_lt_prog_compiler_pic_F77
16313 pic_mode=$pic_mode
16315 # What is the maximum length of a command?
16316 max_cmd_len=$lt_cv_sys_max_cmd_len
16318 # Does compiler simultaneously support -c and -o options?
16319 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
16321 # Must we lock files when doing compilation?
16322 need_locks=$lt_need_locks
16324 # Do we need the lib prefix for modules?
16325 need_lib_prefix=$need_lib_prefix
16327 # Do we need a version for libraries?
16328 need_version=$need_version
16330 # Whether dlopen is supported.
16331 dlopen_support=$enable_dlopen
16333 # Whether dlopen of programs is supported.
16334 dlopen_self=$enable_dlopen_self
16336 # Whether dlopen of statically linked programs is supported.
16337 dlopen_self_static=$enable_dlopen_self_static
16339 # Compiler flag to prevent dynamic linking.
16340 link_static_flag=$lt_lt_prog_compiler_static_F77
16342 # Compiler flag to turn off builtin functions.
16343 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
16345 # Compiler flag to allow reflexive dlopens.
16346 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
16348 # Compiler flag to generate shared objects directly from archives.
16349 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
16351 # Compiler flag to generate thread-safe objects.
16352 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
16354 # Library versioning type.
16355 version_type=$version_type
16357 # Format of library name prefix.
16358 libname_spec=$lt_libname_spec
16360 # List of archive names. First name is the real one, the rest are links.
16361 # The last name is the one that the linker finds with -lNAME.
16362 library_names_spec=$lt_library_names_spec
16364 # The coded name of the library, if different from the real name.
16365 soname_spec=$lt_soname_spec
16367 # Commands used to build and install an old-style archive.
16368 RANLIB=$lt_RANLIB
16369 old_archive_cmds=$lt_old_archive_cmds_F77
16370 old_postinstall_cmds=$lt_old_postinstall_cmds
16371 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16373 # Create an old-style archive from a shared archive.
16374 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16376 # Create a temporary old-style archive to link instead of a shared archive.
16377 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16379 # Commands used to build and install a shared archive.
16380 archive_cmds=$lt_archive_cmds_F77
16381 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16382 postinstall_cmds=$lt_postinstall_cmds
16383 postuninstall_cmds=$lt_postuninstall_cmds
16385 # Commands used to build a loadable module (assumed same as above if empty)
16386 module_cmds=$lt_module_cmds_F77
16387 module_expsym_cmds=$lt_module_expsym_cmds_F77
16389 # Commands to strip libraries.
16390 old_striplib=$lt_old_striplib
16391 striplib=$lt_striplib
16393 # Dependencies to place before the objects being linked to create a
16394 # shared library.
16395 predep_objects=$lt_predep_objects_F77
16397 # Dependencies to place after the objects being linked to create a
16398 # shared library.
16399 postdep_objects=$lt_postdep_objects_F77
16401 # Dependencies to place before the objects being linked to create a
16402 # shared library.
16403 predeps=$lt_predeps_F77
16405 # Dependencies to place after the objects being linked to create a
16406 # shared library.
16407 postdeps=$lt_postdeps_F77
16409 # The directories searched by this compiler when creating a shared
16410 # library
16411 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_F77
16413 # The library search path used internally by the compiler when linking
16414 # a shared library.
16415 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
16417 # Method to check whether dependent libraries are shared objects.
16418 deplibs_check_method=$lt_deplibs_check_method
16420 # Command to use when deplibs_check_method == file_magic.
16421 file_magic_cmd=$lt_file_magic_cmd
16423 # Flag that allows shared libraries with undefined symbols to be built.
16424 allow_undefined_flag=$lt_allow_undefined_flag_F77
16426 # Flag that forces no undefined symbols.
16427 no_undefined_flag=$lt_no_undefined_flag_F77
16429 # Commands used to finish a libtool library installation in a directory.
16430 finish_cmds=$lt_finish_cmds
16432 # Same as above, but a single script fragment to be evaled but not shown.
16433 finish_eval=$lt_finish_eval
16435 # Take the output of nm and produce a listing of raw symbols and C names.
16436 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16438 # Transform the output of nm in a proper C declaration
16439 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16441 # Transform the output of nm in a C name address pair
16442 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16444 # This is the shared library runtime path variable.
16445 runpath_var=$runpath_var
16447 # This is the shared library path variable.
16448 shlibpath_var=$shlibpath_var
16450 # Is shlibpath searched before the hard-coded library search path?
16451 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16453 # How to hardcode a shared library path into an executable.
16454 hardcode_action=$hardcode_action_F77
16456 # Whether we should hardcode library paths into libraries.
16457 hardcode_into_libs=$hardcode_into_libs
16459 # Flag to hardcode \$libdir into a binary during linking.
16460 # This must work even if \$libdir does not exist.
16461 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16463 # If ld is used when linking, flag to hardcode \$libdir into
16464 # a binary during linking. This must work even if \$libdir does
16465 # not exist.
16466 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16468 # Whether we need a single -rpath flag with a separated argument.
16469 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16471 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16472 # resulting binary.
16473 hardcode_direct=$hardcode_direct_F77
16475 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16476 # resulting binary.
16477 hardcode_minus_L=$hardcode_minus_L_F77
16479 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16480 # the resulting binary.
16481 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16483 # Set to yes if building a shared library automatically hardcodes DIR into the library
16484 # and all subsequent libraries and executables linked against it.
16485 hardcode_automatic=$hardcode_automatic_F77
16487 # Variables whose values should be saved in libtool wrapper scripts and
16488 # restored at relink time.
16489 variables_saved_for_relink="$variables_saved_for_relink"
16491 # Whether libtool must link a program against all its dependency libraries.
16492 link_all_deplibs=$link_all_deplibs_F77
16494 # Compile-time system search path for libraries
16495 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16497 # Run-time system search path for libraries
16498 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16500 # Fix the shell variable \$srcfile for the compiler.
16501 fix_srcfile_path=$lt_fix_srcfile_path
16503 # Set to yes if exported symbols are required.
16504 always_export_symbols=$always_export_symbols_F77
16506 # The commands to list exported symbols.
16507 export_symbols_cmds=$lt_export_symbols_cmds_F77
16509 # The commands to extract the exported symbol list from a shared archive.
16510 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16512 # Symbols that should not be listed in the preloaded symbols.
16513 exclude_expsyms=$lt_exclude_expsyms_F77
16515 # Symbols that must always be exported.
16516 include_expsyms=$lt_include_expsyms_F77
16518 # ### END LIBTOOL TAG CONFIG: $tagname
16520 __EOF__
16523 else
16524 # If there is no Makefile yet, we rely on a make rule to execute
16525 # `config.status --recheck' to rerun these tests and create the
16526 # libtool script then.
16527 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16528 if test -f "$ltmain_in"; then
16529 test -f Makefile && make "$ltmain"
16534 ac_ext=c
16535 ac_cpp='$CPP $CPPFLAGS'
16536 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16537 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16538 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16540 CC="$lt_save_CC"
16542 else
16543 tagname=""
16547 GCJ)
16548 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16551 # Source file extension for Java test sources.
16552 ac_ext=java
16554 # Object file extension for compiled Java test sources.
16555 objext=o
16556 objext_GCJ=$objext
16558 # Code to be used in simple compile tests
16559 lt_simple_compile_test_code="class foo {}"
16561 # Code to be used in simple link tests
16562 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }'
16564 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
16566 # If no C compiler was specified, use CC.
16567 LTCC=${LTCC-"$CC"}
16569 # If no C compiler flags were specified, use CFLAGS.
16570 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16572 # Allow CC to be a program name with arguments.
16573 compiler=$CC
16576 # save warnings/boilerplate of simple test code
16577 ac_outfile=conftest.$ac_objext
16578 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
16579 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16580 _lt_compiler_boilerplate=`cat conftest.err`
16581 $rm conftest*
16583 ac_outfile=conftest.$ac_objext
16584 echo "$lt_simple_link_test_code" >conftest.$ac_ext
16585 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16586 _lt_linker_boilerplate=`cat conftest.err`
16587 $rm -r conftest*
16590 # Allow CC to be a program name with arguments.
16591 lt_save_CC="$CC"
16592 CC=${GCJ-"gcj"}
16593 compiler=$CC
16594 compiler_GCJ=$CC
16595 for cc_temp in $compiler""; do
16596 case $cc_temp in
16597 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16598 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16599 \-*) ;;
16600 *) break;;
16601 esac
16602 done
16603 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16606 # GCJ did not exist at the time GCC didn't implicitly link libc in.
16607 archive_cmds_need_lc_GCJ=no
16609 old_archive_cmds_GCJ=$old_archive_cmds
16612 lt_prog_compiler_no_builtin_flag_GCJ=
16614 if test "$GCC" = yes; then
16615 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16618 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16619 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
16620 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16621 echo $ECHO_N "(cached) $ECHO_C" >&6
16622 else
16623 lt_cv_prog_compiler_rtti_exceptions=no
16624 ac_outfile=conftest.$ac_objext
16625 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16626 lt_compiler_flag="-fno-rtti -fno-exceptions"
16627 # Insert the option either (1) after the last *FLAGS variable, or
16628 # (2) before a word containing "conftest.", or (3) at the end.
16629 # Note that $ac_compile itself does not contain backslashes and begins
16630 # with a dollar sign (not a hyphen), so the echo should work correctly.
16631 # The option is referenced via a variable to avoid confusing sed.
16632 lt_compile=`echo "$ac_compile" | $SED \
16633 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16634 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16635 -e 's:$: $lt_compiler_flag:'`
16636 (eval echo "\"\$as_me:16636: $lt_compile\"" >&5)
16637 (eval "$lt_compile" 2>conftest.err)
16638 ac_status=$?
16639 cat conftest.err >&5
16640 echo "$as_me:16640: \$? = $ac_status" >&5
16641 if (exit $ac_status) && test -s "$ac_outfile"; then
16642 # The compiler can only warn and ignore the option if not recognized
16643 # So say no if there are warnings other than the usual output.
16644 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16645 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16646 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16647 lt_cv_prog_compiler_rtti_exceptions=yes
16650 $rm conftest*
16653 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16654 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
16656 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16657 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16658 else
16664 lt_prog_compiler_wl_GCJ=
16665 lt_prog_compiler_pic_GCJ=
16666 lt_prog_compiler_static_GCJ=
16668 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16669 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
16671 if test "$GCC" = yes; then
16672 lt_prog_compiler_wl_GCJ='-Wl,'
16673 lt_prog_compiler_static_GCJ='-static'
16675 case $host_os in
16676 aix*)
16677 # All AIX code is PIC.
16678 if test "$host_cpu" = ia64; then
16679 # AIX 5 now supports IA64 processor
16680 lt_prog_compiler_static_GCJ='-Bstatic'
16684 amigaos*)
16685 # FIXME: we need at least 68020 code to build shared libraries, but
16686 # adding the `-m68020' flag to GCC prevents building anything better,
16687 # like `-m68040'.
16688 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16691 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16692 # PIC is the default for these OSes.
16695 mingw* | cygwin* | pw32* | os2*)
16696 # This hack is so that the source file can tell whether it is being
16697 # built for inclusion in a dll (and should export symbols for example).
16698 # Although the cygwin gcc ignores -fPIC, still need this for old-style
16699 # (--disable-auto-import) libraries
16703 darwin* | rhapsody*)
16704 # PIC is the default on this platform
16705 # Common symbols not allowed in MH_DYLIB files
16706 lt_prog_compiler_pic_GCJ='-fno-common'
16709 interix[3-9]*)
16710 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16711 # Instead, we relocate shared libraries at runtime.
16714 msdosdjgpp*)
16715 # Just because we use GCC doesn't mean we suddenly get shared libraries
16716 # on systems that don't support them.
16717 lt_prog_compiler_can_build_shared_GCJ=no
16718 enable_shared=no
16721 sysv4*MP*)
16722 if test -d /usr/nec; then
16723 lt_prog_compiler_pic_GCJ=-Kconform_pic
16727 hpux*)
16728 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16729 # not for PA HP-UX.
16730 case $host_cpu in
16731 hppa*64*|ia64*)
16732 # +Z the default
16735 lt_prog_compiler_pic_GCJ='-fPIC'
16737 esac
16741 lt_prog_compiler_pic_GCJ='-fPIC'
16743 esac
16744 else
16745 # PORTME Check for flag to pass linker flags through the system compiler.
16746 case $host_os in
16747 aix*)
16748 lt_prog_compiler_wl_GCJ='-Wl,'
16749 if test "$host_cpu" = ia64; then
16750 # AIX 5 now supports IA64 processor
16751 lt_prog_compiler_static_GCJ='-Bstatic'
16752 else
16753 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16756 darwin*)
16757 # PIC is the default on this platform
16758 # Common symbols not allowed in MH_DYLIB files
16759 case $cc_basename in
16760 xlc*)
16761 lt_prog_compiler_pic_GCJ='-qnocommon'
16762 lt_prog_compiler_wl_GCJ='-Wl,'
16764 esac
16767 mingw* | cygwin* | pw32* | os2*)
16768 # This hack is so that the source file can tell whether it is being
16769 # built for inclusion in a dll (and should export symbols for example).
16773 hpux9* | hpux10* | hpux11*)
16774 lt_prog_compiler_wl_GCJ='-Wl,'
16775 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16776 # not for PA HP-UX.
16777 case $host_cpu in
16778 hppa*64*|ia64*)
16779 # +Z the default
16782 lt_prog_compiler_pic_GCJ='+Z'
16784 esac
16785 # Is there a better lt_prog_compiler_static that works with the bundled CC?
16786 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
16789 irix5* | irix6* | nonstopux*)
16790 lt_prog_compiler_wl_GCJ='-Wl,'
16791 # PIC (with -KPIC) is the default.
16792 lt_prog_compiler_static_GCJ='-non_shared'
16795 newsos6)
16796 lt_prog_compiler_pic_GCJ='-KPIC'
16797 lt_prog_compiler_static_GCJ='-Bstatic'
16800 linux* | k*bsd*-gnu)
16801 case $cc_basename in
16802 icc* | ecc*)
16803 lt_prog_compiler_wl_GCJ='-Wl,'
16804 lt_prog_compiler_pic_GCJ='-KPIC'
16805 lt_prog_compiler_static_GCJ='-static'
16807 pgcc* | pgf77* | pgf90* | pgf95*)
16808 # Portland Group compilers (*not* the Pentium gcc compiler,
16809 # which looks to be a dead project)
16810 lt_prog_compiler_wl_GCJ='-Wl,'
16811 lt_prog_compiler_pic_GCJ='-fpic'
16812 lt_prog_compiler_static_GCJ='-Bstatic'
16814 ccc*)
16815 lt_prog_compiler_wl_GCJ='-Wl,'
16816 # All Alpha code is PIC.
16817 lt_prog_compiler_static_GCJ='-non_shared'
16820 case `$CC -V 2>&1 | sed 5q` in
16821 *Sun\ C*)
16822 # Sun C 5.9
16823 lt_prog_compiler_pic_GCJ='-KPIC'
16824 lt_prog_compiler_static_GCJ='-Bstatic'
16825 lt_prog_compiler_wl_GCJ='-Wl,'
16827 *Sun\ F*)
16828 # Sun Fortran 8.3 passes all unrecognized flags to the linker
16829 lt_prog_compiler_pic_GCJ='-KPIC'
16830 lt_prog_compiler_static_GCJ='-Bstatic'
16831 lt_prog_compiler_wl_GCJ=''
16833 esac
16835 esac
16838 osf3* | osf4* | osf5*)
16839 lt_prog_compiler_wl_GCJ='-Wl,'
16840 # All OSF/1 code is PIC.
16841 lt_prog_compiler_static_GCJ='-non_shared'
16844 rdos*)
16845 lt_prog_compiler_static_GCJ='-non_shared'
16848 solaris*)
16849 lt_prog_compiler_pic_GCJ='-KPIC'
16850 lt_prog_compiler_static_GCJ='-Bstatic'
16851 case $cc_basename in
16852 f77* | f90* | f95*)
16853 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
16855 lt_prog_compiler_wl_GCJ='-Wl,';;
16856 esac
16859 sunos4*)
16860 lt_prog_compiler_wl_GCJ='-Qoption ld '
16861 lt_prog_compiler_pic_GCJ='-PIC'
16862 lt_prog_compiler_static_GCJ='-Bstatic'
16865 sysv4 | sysv4.2uw2* | sysv4.3*)
16866 lt_prog_compiler_wl_GCJ='-Wl,'
16867 lt_prog_compiler_pic_GCJ='-KPIC'
16868 lt_prog_compiler_static_GCJ='-Bstatic'
16871 sysv4*MP*)
16872 if test -d /usr/nec ;then
16873 lt_prog_compiler_pic_GCJ='-Kconform_pic'
16874 lt_prog_compiler_static_GCJ='-Bstatic'
16878 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16879 lt_prog_compiler_wl_GCJ='-Wl,'
16880 lt_prog_compiler_pic_GCJ='-KPIC'
16881 lt_prog_compiler_static_GCJ='-Bstatic'
16884 unicos*)
16885 lt_prog_compiler_wl_GCJ='-Wl,'
16886 lt_prog_compiler_can_build_shared_GCJ=no
16889 uts4*)
16890 lt_prog_compiler_pic_GCJ='-pic'
16891 lt_prog_compiler_static_GCJ='-Bstatic'
16895 lt_prog_compiler_can_build_shared_GCJ=no
16897 esac
16900 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
16901 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
16904 # Check to make sure the PIC flag actually works.
16906 if test -n "$lt_prog_compiler_pic_GCJ"; then
16908 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
16909 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
16910 if test "${lt_cv_prog_compiler_pic_works_GCJ+set}" = set; then
16911 echo $ECHO_N "(cached) $ECHO_C" >&6
16912 else
16913 lt_cv_prog_compiler_pic_works_GCJ=no
16914 ac_outfile=conftest.$ac_objext
16915 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16916 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
16917 # Insert the option either (1) after the last *FLAGS variable, or
16918 # (2) before a word containing "conftest.", or (3) at the end.
16919 # Note that $ac_compile itself does not contain backslashes and begins
16920 # with a dollar sign (not a hyphen), so the echo should work correctly.
16921 # The option is referenced via a variable to avoid confusing sed.
16922 lt_compile=`echo "$ac_compile" | $SED \
16923 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16924 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16925 -e 's:$: $lt_compiler_flag:'`
16926 (eval echo "\"\$as_me:16926: $lt_compile\"" >&5)
16927 (eval "$lt_compile" 2>conftest.err)
16928 ac_status=$?
16929 cat conftest.err >&5
16930 echo "$as_me:16930: \$? = $ac_status" >&5
16931 if (exit $ac_status) && test -s "$ac_outfile"; then
16932 # The compiler can only warn and ignore the option if not recognized
16933 # So say no if there are warnings other than the usual output.
16934 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16935 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16936 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16937 lt_cv_prog_compiler_pic_works_GCJ=yes
16940 $rm conftest*
16943 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_GCJ" >&5
16944 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_GCJ" >&6; }
16946 if test x"$lt_cv_prog_compiler_pic_works_GCJ" = xyes; then
16947 case $lt_prog_compiler_pic_GCJ in
16948 "" | " "*) ;;
16949 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
16950 esac
16951 else
16952 lt_prog_compiler_pic_GCJ=
16953 lt_prog_compiler_can_build_shared_GCJ=no
16957 case $host_os in
16958 # For platforms which do not support PIC, -DPIC is meaningless:
16959 *djgpp*)
16960 lt_prog_compiler_pic_GCJ=
16963 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
16965 esac
16968 # Check to make sure the static flag actually works.
16970 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
16971 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16972 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
16973 if test "${lt_cv_prog_compiler_static_works_GCJ+set}" = set; then
16974 echo $ECHO_N "(cached) $ECHO_C" >&6
16975 else
16976 lt_cv_prog_compiler_static_works_GCJ=no
16977 save_LDFLAGS="$LDFLAGS"
16978 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16979 echo "$lt_simple_link_test_code" > conftest.$ac_ext
16980 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16981 # The linker can only warn and ignore the option if not recognized
16982 # So say no if there are warnings
16983 if test -s conftest.err; then
16984 # Append any errors to the config.log.
16985 cat conftest.err 1>&5
16986 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
16987 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16988 if diff conftest.exp conftest.er2 >/dev/null; then
16989 lt_cv_prog_compiler_static_works_GCJ=yes
16991 else
16992 lt_cv_prog_compiler_static_works_GCJ=yes
16995 $rm -r conftest*
16996 LDFLAGS="$save_LDFLAGS"
16999 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_GCJ" >&5
17000 echo "${ECHO_T}$lt_cv_prog_compiler_static_works_GCJ" >&6; }
17002 if test x"$lt_cv_prog_compiler_static_works_GCJ" = xyes; then
17004 else
17005 lt_prog_compiler_static_GCJ=
17009 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
17010 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
17011 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
17012 echo $ECHO_N "(cached) $ECHO_C" >&6
17013 else
17014 lt_cv_prog_compiler_c_o_GCJ=no
17015 $rm -r conftest 2>/dev/null
17016 mkdir conftest
17017 cd conftest
17018 mkdir out
17019 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17021 lt_compiler_flag="-o out/conftest2.$ac_objext"
17022 # Insert the option either (1) after the last *FLAGS variable, or
17023 # (2) before a word containing "conftest.", or (3) at the end.
17024 # Note that $ac_compile itself does not contain backslashes and begins
17025 # with a dollar sign (not a hyphen), so the echo should work correctly.
17026 lt_compile=`echo "$ac_compile" | $SED \
17027 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17028 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17029 -e 's:$: $lt_compiler_flag:'`
17030 (eval echo "\"\$as_me:17030: $lt_compile\"" >&5)
17031 (eval "$lt_compile" 2>out/conftest.err)
17032 ac_status=$?
17033 cat out/conftest.err >&5
17034 echo "$as_me:17034: \$? = $ac_status" >&5
17035 if (exit $ac_status) && test -s out/conftest2.$ac_objext
17036 then
17037 # The compiler can only warn and ignore the option if not recognized
17038 # So say no if there are warnings
17039 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
17040 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17041 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17042 lt_cv_prog_compiler_c_o_GCJ=yes
17045 chmod u+w . 2>&5
17046 $rm conftest*
17047 # SGI C++ compiler will create directory out/ii_files/ for
17048 # template instantiation
17049 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
17050 $rm out/* && rmdir out
17051 cd ..
17052 rmdir conftest
17053 $rm conftest*
17056 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
17057 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
17060 hard_links="nottested"
17061 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
17062 # do not overwrite the value of need_locks provided by the user
17063 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
17064 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
17065 hard_links=yes
17066 $rm conftest*
17067 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17068 touch conftest.a
17069 ln conftest.a conftest.b 2>&5 || hard_links=no
17070 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17071 { echo "$as_me:$LINENO: result: $hard_links" >&5
17072 echo "${ECHO_T}$hard_links" >&6; }
17073 if test "$hard_links" = no; then
17074 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17075 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17076 need_locks=warn
17078 else
17079 need_locks=no
17082 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17083 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
17085 runpath_var=
17086 allow_undefined_flag_GCJ=
17087 enable_shared_with_static_runtimes_GCJ=no
17088 archive_cmds_GCJ=
17089 archive_expsym_cmds_GCJ=
17090 old_archive_From_new_cmds_GCJ=
17091 old_archive_from_expsyms_cmds_GCJ=
17092 export_dynamic_flag_spec_GCJ=
17093 whole_archive_flag_spec_GCJ=
17094 thread_safe_flag_spec_GCJ=
17095 hardcode_libdir_flag_spec_GCJ=
17096 hardcode_libdir_flag_spec_ld_GCJ=
17097 hardcode_libdir_separator_GCJ=
17098 hardcode_direct_GCJ=no
17099 hardcode_minus_L_GCJ=no
17100 hardcode_shlibpath_var_GCJ=unsupported
17101 link_all_deplibs_GCJ=unknown
17102 hardcode_automatic_GCJ=no
17103 module_cmds_GCJ=
17104 module_expsym_cmds_GCJ=
17105 always_export_symbols_GCJ=no
17106 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17107 # include_expsyms should be a list of space-separated symbols to be *always*
17108 # included in the symbol list
17109 include_expsyms_GCJ=
17110 # exclude_expsyms can be an extended regexp of symbols to exclude
17111 # it will be wrapped by ` (' and `)$', so one must not match beginning or
17112 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
17113 # as well as any symbol that contains `d'.
17114 exclude_expsyms_GCJ='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
17115 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17116 # platforms (ab)use it in PIC code, but their linkers get confused if
17117 # the symbol is explicitly referenced. Since portable code cannot
17118 # rely on this symbol name, it's probably fine to never include it in
17119 # preloaded symbol tables.
17120 # Exclude shared library initialization/finalization symbols.
17121 extract_expsyms_cmds=
17122 # Just being paranoid about ensuring that cc_basename is set.
17123 for cc_temp in $compiler""; do
17124 case $cc_temp in
17125 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17126 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17127 \-*) ;;
17128 *) break;;
17129 esac
17130 done
17131 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17133 case $host_os in
17134 cygwin* | mingw* | pw32*)
17135 # FIXME: the MSVC++ port hasn't been tested in a loooong time
17136 # When not using gcc, we currently assume that we are using
17137 # Microsoft Visual C++.
17138 if test "$GCC" != yes; then
17139 with_gnu_ld=no
17142 interix*)
17143 # we just hope/assume this is gcc and not c89 (= MSVC++)
17144 with_gnu_ld=yes
17146 openbsd*)
17147 with_gnu_ld=no
17149 esac
17151 ld_shlibs_GCJ=yes
17152 if test "$with_gnu_ld" = yes; then
17153 # If archive_cmds runs LD, not CC, wlarc should be empty
17154 wlarc='${wl}'
17156 # Set some defaults for GNU ld with shared library support. These
17157 # are reset later if shared libraries are not supported. Putting them
17158 # here allows them to be overridden if necessary.
17159 runpath_var=LD_RUN_PATH
17160 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
17161 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
17162 # ancient GNU ld didn't support --whole-archive et. al.
17163 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
17164 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17165 else
17166 whole_archive_flag_spec_GCJ=
17168 supports_anon_versioning=no
17169 case `$LD -v 2>/dev/null` in
17170 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17171 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17172 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17173 *\ 2.11.*) ;; # other 2.11 versions
17174 *) supports_anon_versioning=yes ;;
17175 esac
17177 # See if GNU ld supports shared libraries.
17178 case $host_os in
17179 aix[3-9]*)
17180 # On AIX/PPC, the GNU linker is very broken
17181 if test "$host_cpu" != ia64; then
17182 ld_shlibs_GCJ=no
17183 cat <<EOF 1>&2
17185 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
17186 *** to be unable to reliably create shared libraries on AIX.
17187 *** Therefore, libtool is disabling shared libraries support. If you
17188 *** really care for shared libraries, you may want to modify your PATH
17189 *** so that a non-GNU linker is found, and then restart.
17195 amigaos*)
17196 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)'
17197 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17198 hardcode_minus_L_GCJ=yes
17200 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
17201 # that the semantics of dynamic libraries on AmigaOS, at least up
17202 # to version 4, is to share data among multiple programs linked
17203 # with the same dynamic library. Since this doesn't match the
17204 # behavior of shared libraries on other platforms, we can't use
17205 # them.
17206 ld_shlibs_GCJ=no
17209 beos*)
17210 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17211 allow_undefined_flag_GCJ=unsupported
17212 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17213 # support --undefined. This deserves some investigation. FIXME
17214 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17215 else
17216 ld_shlibs_GCJ=no
17220 cygwin* | mingw* | pw32*)
17221 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
17222 # as there is no search path for DLLs.
17223 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17224 allow_undefined_flag_GCJ=unsupported
17225 always_export_symbols_GCJ=no
17226 enable_shared_with_static_runtimes_GCJ=yes
17227 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
17229 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
17230 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17231 # If the export-symbols file already is a .def file (1st line
17232 # is EXPORTS), use it as is; otherwise, prepend...
17233 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17234 cp $export_symbols $output_objdir/$soname.def;
17235 else
17236 echo EXPORTS > $output_objdir/$soname.def;
17237 cat $export_symbols >> $output_objdir/$soname.def;
17239 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17240 else
17241 ld_shlibs_GCJ=no
17245 interix[3-9]*)
17246 hardcode_direct_GCJ=no
17247 hardcode_shlibpath_var_GCJ=no
17248 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17249 export_dynamic_flag_spec_GCJ='${wl}-E'
17250 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17251 # Instead, shared libraries are loaded at an image base (0x10000000 by
17252 # default) and relocated if they conflict, which is a slow very memory
17253 # consuming and fragmenting process. To avoid this, we pick a random,
17254 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17255 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
17256 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'
17257 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'
17260 gnu* | linux* | k*bsd*-gnu)
17261 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17262 tmp_addflag=
17263 case $cc_basename,$host_cpu in
17264 pgcc*) # Portland Group C compiler
17265 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'
17266 tmp_addflag=' $pic_flag'
17268 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
17269 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'
17270 tmp_addflag=' $pic_flag -Mnomain' ;;
17271 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
17272 tmp_addflag=' -i_dynamic' ;;
17273 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
17274 tmp_addflag=' -i_dynamic -nofor_main' ;;
17275 ifc* | ifort*) # Intel Fortran compiler
17276 tmp_addflag=' -nofor_main' ;;
17277 esac
17278 case `$CC -V 2>&1 | sed 5q` in
17279 *Sun\ C*) # Sun C 5.9
17280 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'
17281 tmp_sharedflag='-G' ;;
17282 *Sun\ F*) # Sun Fortran 8.3
17283 tmp_sharedflag='-G' ;;
17285 tmp_sharedflag='-shared' ;;
17286 esac
17287 archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17289 if test $supports_anon_versioning = yes; then
17290 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
17291 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17292 $echo "local: *; };" >> $output_objdir/$libname.ver~
17293 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17295 else
17296 ld_shlibs_GCJ=no
17300 netbsd*)
17301 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17302 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17303 wlarc=
17304 else
17305 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17306 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17310 solaris*)
17311 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
17312 ld_shlibs_GCJ=no
17313 cat <<EOF 1>&2
17315 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
17316 *** create shared libraries on Solaris systems. Therefore, libtool
17317 *** is disabling shared libraries support. We urge you to upgrade GNU
17318 *** binutils to release 2.9.1 or newer. Another option is to modify
17319 *** your PATH or compiler configuration so that the native linker is
17320 *** used, and then restart.
17323 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17324 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17325 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17326 else
17327 ld_shlibs_GCJ=no
17331 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
17332 case `$LD -v 2>&1` in
17333 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
17334 ld_shlibs_GCJ=no
17335 cat <<_LT_EOF 1>&2
17337 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
17338 *** reliably create shared libraries on SCO systems. Therefore, libtool
17339 *** is disabling shared libraries support. We urge you to upgrade GNU
17340 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
17341 *** your PATH or compiler configuration so that the native linker is
17342 *** used, and then restart.
17344 _LT_EOF
17347 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17348 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
17349 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
17350 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
17351 else
17352 ld_shlibs_GCJ=no
17355 esac
17358 sunos4*)
17359 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17360 wlarc=
17361 hardcode_direct_GCJ=yes
17362 hardcode_shlibpath_var_GCJ=no
17366 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17367 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17368 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17369 else
17370 ld_shlibs_GCJ=no
17373 esac
17375 if test "$ld_shlibs_GCJ" = no; then
17376 runpath_var=
17377 hardcode_libdir_flag_spec_GCJ=
17378 export_dynamic_flag_spec_GCJ=
17379 whole_archive_flag_spec_GCJ=
17381 else
17382 # PORTME fill in a description of your system's linker (not GNU ld)
17383 case $host_os in
17384 aix3*)
17385 allow_undefined_flag_GCJ=unsupported
17386 always_export_symbols_GCJ=yes
17387 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'
17388 # Note: this linker hardcodes the directories in LIBPATH if there
17389 # are no directories specified by -L.
17390 hardcode_minus_L_GCJ=yes
17391 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17392 # Neither direct hardcoding nor static linking is supported with a
17393 # broken collect2.
17394 hardcode_direct_GCJ=unsupported
17398 aix[4-9]*)
17399 if test "$host_cpu" = ia64; then
17400 # On IA64, the linker does run time linking by default, so we don't
17401 # have to do anything special.
17402 aix_use_runtimelinking=no
17403 exp_sym_flag='-Bexport'
17404 no_entry_flag=""
17405 else
17406 # If we're using GNU nm, then we don't want the "-C" option.
17407 # -C means demangle to AIX nm, but means don't demangle with GNU nm
17408 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17409 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'
17410 else
17411 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'
17413 aix_use_runtimelinking=no
17415 # Test if we are trying to use run time linking or normal
17416 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17417 # need to do runtime linking.
17418 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
17419 for ld_flag in $LDFLAGS; do
17420 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17421 aix_use_runtimelinking=yes
17422 break
17424 done
17426 esac
17428 exp_sym_flag='-bexport'
17429 no_entry_flag='-bnoentry'
17432 # When large executables or shared objects are built, AIX ld can
17433 # have problems creating the table of contents. If linking a library
17434 # or program results in "error TOC overflow" add -mminimal-toc to
17435 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
17436 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17438 archive_cmds_GCJ=''
17439 hardcode_direct_GCJ=yes
17440 hardcode_libdir_separator_GCJ=':'
17441 link_all_deplibs_GCJ=yes
17443 if test "$GCC" = yes; then
17444 case $host_os in aix4.[012]|aix4.[012].*)
17445 # We only want to do this on AIX 4.2 and lower, the check
17446 # below for broken collect2 doesn't work under 4.3+
17447 collect2name=`${CC} -print-prog-name=collect2`
17448 if test -f "$collect2name" && \
17449 strings "$collect2name" | grep resolve_lib_name >/dev/null
17450 then
17451 # We have reworked collect2
17453 else
17454 # We have old collect2
17455 hardcode_direct_GCJ=unsupported
17456 # It fails to find uninstalled libraries when the uninstalled
17457 # path is not listed in the libpath. Setting hardcode_minus_L
17458 # to unsupported forces relinking
17459 hardcode_minus_L_GCJ=yes
17460 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17461 hardcode_libdir_separator_GCJ=
17464 esac
17465 shared_flag='-shared'
17466 if test "$aix_use_runtimelinking" = yes; then
17467 shared_flag="$shared_flag "'${wl}-G'
17469 else
17470 # not using gcc
17471 if test "$host_cpu" = ia64; then
17472 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17473 # chokes on -Wl,-G. The following line is correct:
17474 shared_flag='-G'
17475 else
17476 if test "$aix_use_runtimelinking" = yes; then
17477 shared_flag='${wl}-G'
17478 else
17479 shared_flag='${wl}-bM:SRE'
17484 # It seems that -bexpall does not export symbols beginning with
17485 # underscore (_), so it is better to generate a list of symbols to export.
17486 always_export_symbols_GCJ=yes
17487 if test "$aix_use_runtimelinking" = yes; then
17488 # Warning - without using the other runtime loading flags (-brtl),
17489 # -berok will link without error, but may produce a broken library.
17490 allow_undefined_flag_GCJ='-berok'
17491 # Determine the default libpath from the value encoded in an empty executable.
17492 cat >conftest.$ac_ext <<_ACEOF
17493 /* confdefs.h. */
17494 _ACEOF
17495 cat confdefs.h >>conftest.$ac_ext
17496 cat >>conftest.$ac_ext <<_ACEOF
17497 /* end confdefs.h. */
17500 main ()
17504 return 0;
17506 _ACEOF
17507 rm -f conftest.$ac_objext conftest$ac_exeext
17508 if { (ac_try="$ac_link"
17509 case "(($ac_try" in
17510 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17511 *) ac_try_echo=$ac_try;;
17512 esac
17513 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17514 (eval "$ac_link") 2>conftest.er1
17515 ac_status=$?
17516 grep -v '^ *+' conftest.er1 >conftest.err
17517 rm -f conftest.er1
17518 cat conftest.err >&5
17519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17520 (exit $ac_status); } && {
17521 test -z "$ac_c_werror_flag" ||
17522 test ! -s conftest.err
17523 } && test -s conftest$ac_exeext &&
17524 $as_test_x conftest$ac_exeext; then
17526 lt_aix_libpath_sed='
17527 /Import File Strings/,/^$/ {
17528 /^0/ {
17529 s/^0 *\(.*\)$/\1/
17533 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17534 # Check for a 64-bit object if we didn't find anything.
17535 if test -z "$aix_libpath"; then
17536 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17538 else
17539 echo "$as_me: failed program was:" >&5
17540 sed 's/^/| /' conftest.$ac_ext >&5
17545 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17546 conftest$ac_exeext conftest.$ac_ext
17547 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17549 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17550 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"
17551 else
17552 if test "$host_cpu" = ia64; then
17553 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17554 allow_undefined_flag_GCJ="-z nodefs"
17555 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"
17556 else
17557 # Determine the default libpath from the value encoded in an empty executable.
17558 cat >conftest.$ac_ext <<_ACEOF
17559 /* confdefs.h. */
17560 _ACEOF
17561 cat confdefs.h >>conftest.$ac_ext
17562 cat >>conftest.$ac_ext <<_ACEOF
17563 /* end confdefs.h. */
17566 main ()
17570 return 0;
17572 _ACEOF
17573 rm -f conftest.$ac_objext conftest$ac_exeext
17574 if { (ac_try="$ac_link"
17575 case "(($ac_try" in
17576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17577 *) ac_try_echo=$ac_try;;
17578 esac
17579 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17580 (eval "$ac_link") 2>conftest.er1
17581 ac_status=$?
17582 grep -v '^ *+' conftest.er1 >conftest.err
17583 rm -f conftest.er1
17584 cat conftest.err >&5
17585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17586 (exit $ac_status); } && {
17587 test -z "$ac_c_werror_flag" ||
17588 test ! -s conftest.err
17589 } && test -s conftest$ac_exeext &&
17590 $as_test_x conftest$ac_exeext; then
17592 lt_aix_libpath_sed='
17593 /Import File Strings/,/^$/ {
17594 /^0/ {
17595 s/^0 *\(.*\)$/\1/
17599 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17600 # Check for a 64-bit object if we didn't find anything.
17601 if test -z "$aix_libpath"; then
17602 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17604 else
17605 echo "$as_me: failed program was:" >&5
17606 sed 's/^/| /' conftest.$ac_ext >&5
17611 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17612 conftest$ac_exeext conftest.$ac_ext
17613 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17615 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17616 # Warning - without using the other run time loading flags,
17617 # -berok will link without error, but may produce a broken library.
17618 no_undefined_flag_GCJ=' ${wl}-bernotok'
17619 allow_undefined_flag_GCJ=' ${wl}-berok'
17620 # Exported symbols can be pulled into shared objects from archives
17621 whole_archive_flag_spec_GCJ='$convenience'
17622 archive_cmds_need_lc_GCJ=yes
17623 # This is similar to how AIX traditionally builds its shared libraries.
17624 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'
17629 amigaos*)
17630 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)'
17631 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17632 hardcode_minus_L_GCJ=yes
17633 # see comment about different semantics on the GNU ld section
17634 ld_shlibs_GCJ=no
17637 bsdi[45]*)
17638 export_dynamic_flag_spec_GCJ=-rdynamic
17641 cygwin* | mingw* | pw32*)
17642 # When not using gcc, we currently assume that we are using
17643 # Microsoft Visual C++.
17644 # hardcode_libdir_flag_spec is actually meaningless, as there is
17645 # no search path for DLLs.
17646 hardcode_libdir_flag_spec_GCJ=' '
17647 allow_undefined_flag_GCJ=unsupported
17648 # Tell ltmain to make .lib files, not .a files.
17649 libext=lib
17650 # Tell ltmain to make .dll files, not .so files.
17651 shrext_cmds=".dll"
17652 # FIXME: Setting linknames here is a bad hack.
17653 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17654 # The linker will automatically build a .lib file if we build a DLL.
17655 old_archive_From_new_cmds_GCJ='true'
17656 # FIXME: Should let the user specify the lib program.
17657 old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs'
17658 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
17659 enable_shared_with_static_runtimes_GCJ=yes
17662 darwin* | rhapsody*)
17663 case $host_os in
17664 rhapsody* | darwin1.[012])
17665 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
17667 *) # Darwin 1.3 on
17668 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17669 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17670 else
17671 case ${MACOSX_DEPLOYMENT_TARGET} in
17672 10.[012])
17673 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17675 10.*)
17676 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
17678 esac
17681 esac
17682 archive_cmds_need_lc_GCJ=no
17683 hardcode_direct_GCJ=no
17684 hardcode_automatic_GCJ=yes
17685 hardcode_shlibpath_var_GCJ=unsupported
17686 whole_archive_flag_spec_GCJ=''
17687 link_all_deplibs_GCJ=yes
17688 if test "$GCC" = yes ; then
17689 output_verbose_link_cmd='echo'
17690 archive_cmds_GCJ="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
17691 module_cmds_GCJ="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
17692 archive_expsym_cmds_GCJ="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
17693 module_expsym_cmds_GCJ="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
17694 else
17695 case $cc_basename in
17696 xlc*)
17697 output_verbose_link_cmd='echo'
17698 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
17699 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17700 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17701 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}'
17702 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}'
17705 ld_shlibs_GCJ=no
17707 esac
17711 dgux*)
17712 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17713 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17714 hardcode_shlibpath_var_GCJ=no
17717 freebsd1*)
17718 ld_shlibs_GCJ=no
17721 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17722 # support. Future versions do this automatically, but an explicit c++rt0.o
17723 # does not break anything, and helps significantly (at the cost of a little
17724 # extra space).
17725 freebsd2.2*)
17726 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17727 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17728 hardcode_direct_GCJ=yes
17729 hardcode_shlibpath_var_GCJ=no
17732 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17733 freebsd2*)
17734 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17735 hardcode_direct_GCJ=yes
17736 hardcode_minus_L_GCJ=yes
17737 hardcode_shlibpath_var_GCJ=no
17740 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17741 freebsd* | dragonfly*)
17742 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17743 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17744 hardcode_direct_GCJ=yes
17745 hardcode_shlibpath_var_GCJ=no
17748 hpux9*)
17749 if test "$GCC" = yes; then
17750 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'
17751 else
17752 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'
17754 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17755 hardcode_libdir_separator_GCJ=:
17756 hardcode_direct_GCJ=yes
17758 # hardcode_minus_L: Not really in the search PATH,
17759 # but as the default location of the library.
17760 hardcode_minus_L_GCJ=yes
17761 export_dynamic_flag_spec_GCJ='${wl}-E'
17764 hpux10*)
17765 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17766 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17767 else
17768 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17770 if test "$with_gnu_ld" = no; then
17771 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17772 hardcode_libdir_separator_GCJ=:
17774 hardcode_direct_GCJ=yes
17775 export_dynamic_flag_spec_GCJ='${wl}-E'
17777 # hardcode_minus_L: Not really in the search PATH,
17778 # but as the default location of the library.
17779 hardcode_minus_L_GCJ=yes
17783 hpux11*)
17784 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17785 case $host_cpu in
17786 hppa*64*)
17787 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17789 ia64*)
17790 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17793 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17795 esac
17796 else
17797 case $host_cpu in
17798 hppa*64*)
17799 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17801 ia64*)
17802 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17805 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17807 esac
17809 if test "$with_gnu_ld" = no; then
17810 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17811 hardcode_libdir_separator_GCJ=:
17813 case $host_cpu in
17814 hppa*64*|ia64*)
17815 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
17816 hardcode_direct_GCJ=no
17817 hardcode_shlibpath_var_GCJ=no
17820 hardcode_direct_GCJ=yes
17821 export_dynamic_flag_spec_GCJ='${wl}-E'
17823 # hardcode_minus_L: Not really in the search PATH,
17824 # but as the default location of the library.
17825 hardcode_minus_L_GCJ=yes
17827 esac
17831 irix5* | irix6* | nonstopux*)
17832 if test "$GCC" = yes; then
17833 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'
17834 else
17835 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'
17836 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
17838 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17839 hardcode_libdir_separator_GCJ=:
17840 link_all_deplibs_GCJ=yes
17843 netbsd*)
17844 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17845 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
17846 else
17847 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
17849 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17850 hardcode_direct_GCJ=yes
17851 hardcode_shlibpath_var_GCJ=no
17854 newsos6)
17855 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17856 hardcode_direct_GCJ=yes
17857 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17858 hardcode_libdir_separator_GCJ=:
17859 hardcode_shlibpath_var_GCJ=no
17862 openbsd*)
17863 if test -f /usr/libexec/ld.so; then
17864 hardcode_direct_GCJ=yes
17865 hardcode_shlibpath_var_GCJ=no
17866 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17867 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17868 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17869 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17870 export_dynamic_flag_spec_GCJ='${wl}-E'
17871 else
17872 case $host_os in
17873 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17874 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17875 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17878 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17879 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17881 esac
17883 else
17884 ld_shlibs_GCJ=no
17888 os2*)
17889 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17890 hardcode_minus_L_GCJ=yes
17891 allow_undefined_flag_GCJ=unsupported
17892 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'
17893 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17896 osf3*)
17897 if test "$GCC" = yes; then
17898 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17899 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'
17900 else
17901 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17902 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'
17904 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17905 hardcode_libdir_separator_GCJ=:
17908 osf4* | osf5*) # as osf3* with the addition of -msym flag
17909 if test "$GCC" = yes; then
17910 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17911 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'
17912 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17913 else
17914 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17915 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'
17916 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~
17917 $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'
17919 # Both c and cxx compiler support -rpath directly
17920 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
17922 hardcode_libdir_separator_GCJ=:
17925 solaris*)
17926 no_undefined_flag_GCJ=' -z text'
17927 if test "$GCC" = yes; then
17928 wlarc='${wl}'
17929 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17930 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17931 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
17932 else
17933 wlarc=''
17934 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17935 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17936 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17938 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17939 hardcode_shlibpath_var_GCJ=no
17940 case $host_os in
17941 solaris2.[0-5] | solaris2.[0-5].*) ;;
17943 # The compiler driver will combine and reorder linker options,
17944 # but understands `-z linker_flag'. GCC discards it without `$wl',
17945 # but is careful enough not to reorder.
17946 # Supported since Solaris 2.6 (maybe 2.5.1?)
17947 if test "$GCC" = yes; then
17948 whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
17949 else
17950 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract'
17953 esac
17954 link_all_deplibs_GCJ=yes
17957 sunos4*)
17958 if test "x$host_vendor" = xsequent; then
17959 # Use $CC to link under sequent, because it throws in some extra .o
17960 # files that make .init and .fini sections work.
17961 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17962 else
17963 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17965 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17966 hardcode_direct_GCJ=yes
17967 hardcode_minus_L_GCJ=yes
17968 hardcode_shlibpath_var_GCJ=no
17971 sysv4)
17972 case $host_vendor in
17973 sni)
17974 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17975 hardcode_direct_GCJ=yes # is this really true???
17977 siemens)
17978 ## LD is ld it makes a PLAMLIB
17979 ## CC just makes a GrossModule.
17980 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17981 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
17982 hardcode_direct_GCJ=no
17984 motorola)
17985 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17986 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
17988 esac
17989 runpath_var='LD_RUN_PATH'
17990 hardcode_shlibpath_var_GCJ=no
17993 sysv4.3*)
17994 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17995 hardcode_shlibpath_var_GCJ=no
17996 export_dynamic_flag_spec_GCJ='-Bexport'
17999 sysv4*MP*)
18000 if test -d /usr/nec; then
18001 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18002 hardcode_shlibpath_var_GCJ=no
18003 runpath_var=LD_RUN_PATH
18004 hardcode_runpath_var=yes
18005 ld_shlibs_GCJ=yes
18009 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
18010 no_undefined_flag_GCJ='${wl}-z,text'
18011 archive_cmds_need_lc_GCJ=no
18012 hardcode_shlibpath_var_GCJ=no
18013 runpath_var='LD_RUN_PATH'
18015 if test "$GCC" = yes; then
18016 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18017 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18018 else
18019 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18020 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18024 sysv5* | sco3.2v5* | sco5v6*)
18025 # Note: We can NOT use -z defs as we might desire, because we do not
18026 # link with -lc, and that would cause any symbols used from libc to
18027 # always be unresolved, which means just about no library would
18028 # ever link correctly. If we're not using GNU ld we use -z text
18029 # though, which does catch some bad symbols but isn't as heavy-handed
18030 # as -z defs.
18031 no_undefined_flag_GCJ='${wl}-z,text'
18032 allow_undefined_flag_GCJ='${wl}-z,nodefs'
18033 archive_cmds_need_lc_GCJ=no
18034 hardcode_shlibpath_var_GCJ=no
18035 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
18036 hardcode_libdir_separator_GCJ=':'
18037 link_all_deplibs_GCJ=yes
18038 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
18039 runpath_var='LD_RUN_PATH'
18041 if test "$GCC" = yes; then
18042 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18043 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18044 else
18045 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18046 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18050 uts4*)
18051 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18052 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18053 hardcode_shlibpath_var_GCJ=no
18057 ld_shlibs_GCJ=no
18059 esac
18062 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
18063 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
18064 test "$ld_shlibs_GCJ" = no && can_build_shared=no
18067 # Do we need to explicitly link libc?
18069 case "x$archive_cmds_need_lc_GCJ" in
18070 x|xyes)
18071 # Assume -lc should be added
18072 archive_cmds_need_lc_GCJ=yes
18074 if test "$enable_shared" = yes && test "$GCC" = yes; then
18075 case $archive_cmds_GCJ in
18076 *'~'*)
18077 # FIXME: we may have to deal with multi-command sequences.
18079 '$CC '*)
18080 # Test whether the compiler implicitly links with -lc since on some
18081 # systems, -lgcc has to come before -lc. If gcc already passes -lc
18082 # to ld, don't add -lc before -lgcc.
18083 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
18084 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
18085 $rm conftest*
18086 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18088 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18089 (eval $ac_compile) 2>&5
18090 ac_status=$?
18091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18092 (exit $ac_status); } 2>conftest.err; then
18093 soname=conftest
18094 lib=conftest
18095 libobjs=conftest.$ac_objext
18096 deplibs=
18097 wl=$lt_prog_compiler_wl_GCJ
18098 pic_flag=$lt_prog_compiler_pic_GCJ
18099 compiler_flags=-v
18100 linker_flags=-v
18101 verstring=
18102 output_objdir=.
18103 libname=conftest
18104 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
18105 allow_undefined_flag_GCJ=
18106 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
18107 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
18108 ac_status=$?
18109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18110 (exit $ac_status); }
18111 then
18112 archive_cmds_need_lc_GCJ=no
18113 else
18114 archive_cmds_need_lc_GCJ=yes
18116 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
18117 else
18118 cat conftest.err 1>&5
18120 $rm conftest*
18121 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
18122 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
18124 esac
18127 esac
18129 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
18130 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
18131 library_names_spec=
18132 libname_spec='lib$name'
18133 soname_spec=
18134 shrext_cmds=".so"
18135 postinstall_cmds=
18136 postuninstall_cmds=
18137 finish_cmds=
18138 finish_eval=
18139 shlibpath_var=
18140 shlibpath_overrides_runpath=unknown
18141 version_type=none
18142 dynamic_linker="$host_os ld.so"
18143 sys_lib_dlsearch_path_spec="/lib /usr/lib"
18145 need_lib_prefix=unknown
18146 hardcode_into_libs=no
18148 # when you set need_version to no, make sure it does not cause -set_version
18149 # flags to be left without arguments
18150 need_version=unknown
18152 case $host_os in
18153 aix3*)
18154 version_type=linux
18155 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18156 shlibpath_var=LIBPATH
18158 # AIX 3 has no versioning support, so we append a major version to the name.
18159 soname_spec='${libname}${release}${shared_ext}$major'
18162 aix[4-9]*)
18163 version_type=linux
18164 need_lib_prefix=no
18165 need_version=no
18166 hardcode_into_libs=yes
18167 if test "$host_cpu" = ia64; then
18168 # AIX 5 supports IA64
18169 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18170 shlibpath_var=LD_LIBRARY_PATH
18171 else
18172 # With GCC up to 2.95.x, collect2 would create an import file
18173 # for dependence libraries. The import file would start with
18174 # the line `#! .'. This would cause the generated library to
18175 # depend on `.', always an invalid library. This was fixed in
18176 # development snapshots of GCC prior to 3.0.
18177 case $host_os in
18178 aix4 | aix4.[01] | aix4.[01].*)
18179 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18180 echo ' yes '
18181 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
18183 else
18184 can_build_shared=no
18187 esac
18188 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18189 # soname into executable. Probably we can add versioning support to
18190 # collect2, so additional links can be useful in future.
18191 if test "$aix_use_runtimelinking" = yes; then
18192 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18193 # instead of lib<name>.a to let people know that these are not
18194 # typical AIX shared libraries.
18195 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18196 else
18197 # We preserve .a as extension for shared libraries through AIX4.2
18198 # and later when we are not doing run time linking.
18199 library_names_spec='${libname}${release}.a $libname.a'
18200 soname_spec='${libname}${release}${shared_ext}$major'
18202 shlibpath_var=LIBPATH
18206 amigaos*)
18207 library_names_spec='$libname.ixlibrary $libname.a'
18208 # Create ${libname}_ixlibrary.a entries in /sys/libs.
18209 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'
18212 beos*)
18213 library_names_spec='${libname}${shared_ext}'
18214 dynamic_linker="$host_os ld.so"
18215 shlibpath_var=LIBRARY_PATH
18218 bsdi[45]*)
18219 version_type=linux
18220 need_version=no
18221 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18222 soname_spec='${libname}${release}${shared_ext}$major'
18223 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18224 shlibpath_var=LD_LIBRARY_PATH
18225 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18226 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18227 # the default ld.so.conf also contains /usr/contrib/lib and
18228 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18229 # libtool to hard-code these into programs
18232 cygwin* | mingw* | pw32*)
18233 version_type=windows
18234 shrext_cmds=".dll"
18235 need_version=no
18236 need_lib_prefix=no
18238 case $GCC,$host_os in
18239 yes,cygwin* | yes,mingw* | yes,pw32*)
18240 library_names_spec='$libname.dll.a'
18241 # DLL is installed to $(libdir)/../bin by postinstall_cmds
18242 postinstall_cmds='base_file=`basename \${file}`~
18243 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
18244 dldir=$destdir/`dirname \$dlpath`~
18245 test -d \$dldir || mkdir -p \$dldir~
18246 $install_prog $dir/$dlname \$dldir/$dlname~
18247 chmod a+x \$dldir/$dlname'
18248 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18249 dlpath=$dir/\$dldll~
18250 $rm \$dlpath'
18251 shlibpath_overrides_runpath=yes
18253 case $host_os in
18254 cygwin*)
18255 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18256 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18257 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
18259 mingw*)
18260 # MinGW DLLs use traditional 'lib' prefix
18261 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18262 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18263 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
18264 # It is most probably a Windows format PATH printed by
18265 # mingw gcc, but we are running on Cygwin. Gcc prints its search
18266 # path with ; separators, and with drive letters. We can handle the
18267 # drive letters (cygwin fileutils understands them), so leave them,
18268 # especially as we might pass files found there to a mingw objdump,
18269 # which wouldn't understand a cygwinified path. Ahh.
18270 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18271 else
18272 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18275 pw32*)
18276 # pw32 DLLs use 'pw' prefix rather than 'lib'
18277 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18279 esac
18283 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18285 esac
18286 dynamic_linker='Win32 ld.exe'
18287 # FIXME: first we should search . and the directory the executable is in
18288 shlibpath_var=PATH
18291 darwin* | rhapsody*)
18292 dynamic_linker="$host_os dyld"
18293 version_type=darwin
18294 need_lib_prefix=no
18295 need_version=no
18296 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18297 soname_spec='${libname}${release}${major}$shared_ext'
18298 shlibpath_overrides_runpath=yes
18299 shlibpath_var=DYLD_LIBRARY_PATH
18300 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18302 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18305 dgux*)
18306 version_type=linux
18307 need_lib_prefix=no
18308 need_version=no
18309 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18310 soname_spec='${libname}${release}${shared_ext}$major'
18311 shlibpath_var=LD_LIBRARY_PATH
18314 freebsd1*)
18315 dynamic_linker=no
18318 freebsd* | dragonfly*)
18319 # DragonFly does not have aout. When/if they implement a new
18320 # versioning mechanism, adjust this.
18321 if test -x /usr/bin/objformat; then
18322 objformat=`/usr/bin/objformat`
18323 else
18324 case $host_os in
18325 freebsd[123]*) objformat=aout ;;
18326 *) objformat=elf ;;
18327 esac
18329 version_type=freebsd-$objformat
18330 case $version_type in
18331 freebsd-elf*)
18332 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18333 need_version=no
18334 need_lib_prefix=no
18336 freebsd-*)
18337 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18338 need_version=yes
18340 esac
18341 shlibpath_var=LD_LIBRARY_PATH
18342 case $host_os in
18343 freebsd2*)
18344 shlibpath_overrides_runpath=yes
18346 freebsd3.[01]* | freebsdelf3.[01]*)
18347 shlibpath_overrides_runpath=yes
18348 hardcode_into_libs=yes
18350 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18351 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18352 shlibpath_overrides_runpath=no
18353 hardcode_into_libs=yes
18355 *) # from 4.6 on, and DragonFly
18356 shlibpath_overrides_runpath=yes
18357 hardcode_into_libs=yes
18359 esac
18362 gnu*)
18363 version_type=linux
18364 need_lib_prefix=no
18365 need_version=no
18366 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18367 soname_spec='${libname}${release}${shared_ext}$major'
18368 shlibpath_var=LD_LIBRARY_PATH
18369 hardcode_into_libs=yes
18372 hpux9* | hpux10* | hpux11*)
18373 # Give a soname corresponding to the major version so that dld.sl refuses to
18374 # link against other versions.
18375 version_type=sunos
18376 need_lib_prefix=no
18377 need_version=no
18378 case $host_cpu in
18379 ia64*)
18380 shrext_cmds='.so'
18381 hardcode_into_libs=yes
18382 dynamic_linker="$host_os dld.so"
18383 shlibpath_var=LD_LIBRARY_PATH
18384 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18385 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18386 soname_spec='${libname}${release}${shared_ext}$major'
18387 if test "X$HPUX_IA64_MODE" = X32; then
18388 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18389 else
18390 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18392 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18394 hppa*64*)
18395 shrext_cmds='.sl'
18396 hardcode_into_libs=yes
18397 dynamic_linker="$host_os dld.sl"
18398 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18399 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18400 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18401 soname_spec='${libname}${release}${shared_ext}$major'
18402 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18403 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18406 shrext_cmds='.sl'
18407 dynamic_linker="$host_os dld.sl"
18408 shlibpath_var=SHLIB_PATH
18409 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18410 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18411 soname_spec='${libname}${release}${shared_ext}$major'
18413 esac
18414 # HP-UX runs *really* slowly unless shared libraries are mode 555.
18415 postinstall_cmds='chmod 555 $lib'
18418 interix[3-9]*)
18419 version_type=linux
18420 need_lib_prefix=no
18421 need_version=no
18422 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18423 soname_spec='${libname}${release}${shared_ext}$major'
18424 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18425 shlibpath_var=LD_LIBRARY_PATH
18426 shlibpath_overrides_runpath=no
18427 hardcode_into_libs=yes
18430 irix5* | irix6* | nonstopux*)
18431 case $host_os in
18432 nonstopux*) version_type=nonstopux ;;
18434 if test "$lt_cv_prog_gnu_ld" = yes; then
18435 version_type=linux
18436 else
18437 version_type=irix
18438 fi ;;
18439 esac
18440 need_lib_prefix=no
18441 need_version=no
18442 soname_spec='${libname}${release}${shared_ext}$major'
18443 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18444 case $host_os in
18445 irix5* | nonstopux*)
18446 libsuff= shlibsuff=
18449 case $LD in # libtool.m4 will add one of these switches to LD
18450 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18451 libsuff= shlibsuff= libmagic=32-bit;;
18452 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18453 libsuff=32 shlibsuff=N32 libmagic=N32;;
18454 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18455 libsuff=64 shlibsuff=64 libmagic=64-bit;;
18456 *) libsuff= shlibsuff= libmagic=never-match;;
18457 esac
18459 esac
18460 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18461 shlibpath_overrides_runpath=no
18462 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18463 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18464 hardcode_into_libs=yes
18467 # No shared lib support for Linux oldld, aout, or coff.
18468 linux*oldld* | linux*aout* | linux*coff*)
18469 dynamic_linker=no
18472 # This must be Linux ELF.
18473 linux* | k*bsd*-gnu)
18474 version_type=linux
18475 need_lib_prefix=no
18476 need_version=no
18477 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18478 soname_spec='${libname}${release}${shared_ext}$major'
18479 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18480 shlibpath_var=LD_LIBRARY_PATH
18481 shlibpath_overrides_runpath=no
18482 # This implies no fast_install, which is unacceptable.
18483 # Some rework will be needed to allow for fast_install
18484 # before this can be enabled.
18485 hardcode_into_libs=yes
18487 # Append ld.so.conf contents to the search path
18488 if test -f /etc/ld.so.conf; then
18489 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' ' '`
18490 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18493 # We used to test for /lib/ld.so.1 and disable shared libraries on
18494 # powerpc, because MkLinux only supported shared libraries with the
18495 # GNU dynamic linker. Since this was broken with cross compilers,
18496 # most powerpc-linux boxes support dynamic linking these days and
18497 # people can always --disable-shared, the test was removed, and we
18498 # assume the GNU/Linux dynamic linker is in use.
18499 dynamic_linker='GNU/Linux ld.so'
18502 netbsd*)
18503 version_type=sunos
18504 need_lib_prefix=no
18505 need_version=no
18506 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18507 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18508 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18509 dynamic_linker='NetBSD (a.out) ld.so'
18510 else
18511 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18512 soname_spec='${libname}${release}${shared_ext}$major'
18513 dynamic_linker='NetBSD ld.elf_so'
18515 shlibpath_var=LD_LIBRARY_PATH
18516 shlibpath_overrides_runpath=yes
18517 hardcode_into_libs=yes
18520 newsos6)
18521 version_type=linux
18522 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18523 shlibpath_var=LD_LIBRARY_PATH
18524 shlibpath_overrides_runpath=yes
18527 nto-qnx*)
18528 version_type=linux
18529 need_lib_prefix=no
18530 need_version=no
18531 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18532 soname_spec='${libname}${release}${shared_ext}$major'
18533 shlibpath_var=LD_LIBRARY_PATH
18534 shlibpath_overrides_runpath=yes
18537 openbsd*)
18538 version_type=sunos
18539 sys_lib_dlsearch_path_spec="/usr/lib"
18540 need_lib_prefix=no
18541 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18542 case $host_os in
18543 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18544 *) need_version=no ;;
18545 esac
18546 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18547 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18548 shlibpath_var=LD_LIBRARY_PATH
18549 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18550 case $host_os in
18551 openbsd2.[89] | openbsd2.[89].*)
18552 shlibpath_overrides_runpath=no
18555 shlibpath_overrides_runpath=yes
18557 esac
18558 else
18559 shlibpath_overrides_runpath=yes
18563 os2*)
18564 libname_spec='$name'
18565 shrext_cmds=".dll"
18566 need_lib_prefix=no
18567 library_names_spec='$libname${shared_ext} $libname.a'
18568 dynamic_linker='OS/2 ld.exe'
18569 shlibpath_var=LIBPATH
18572 osf3* | osf4* | osf5*)
18573 version_type=osf
18574 need_lib_prefix=no
18575 need_version=no
18576 soname_spec='${libname}${release}${shared_ext}$major'
18577 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18578 shlibpath_var=LD_LIBRARY_PATH
18579 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18580 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18583 rdos*)
18584 dynamic_linker=no
18587 solaris*)
18588 version_type=linux
18589 need_lib_prefix=no
18590 need_version=no
18591 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18592 soname_spec='${libname}${release}${shared_ext}$major'
18593 shlibpath_var=LD_LIBRARY_PATH
18594 shlibpath_overrides_runpath=yes
18595 hardcode_into_libs=yes
18596 # ldd complains unless libraries are executable
18597 postinstall_cmds='chmod +x $lib'
18600 sunos4*)
18601 version_type=sunos
18602 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18603 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18604 shlibpath_var=LD_LIBRARY_PATH
18605 shlibpath_overrides_runpath=yes
18606 if test "$with_gnu_ld" = yes; then
18607 need_lib_prefix=no
18609 need_version=yes
18612 sysv4 | sysv4.3*)
18613 version_type=linux
18614 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18615 soname_spec='${libname}${release}${shared_ext}$major'
18616 shlibpath_var=LD_LIBRARY_PATH
18617 case $host_vendor in
18618 sni)
18619 shlibpath_overrides_runpath=no
18620 need_lib_prefix=no
18621 export_dynamic_flag_spec='${wl}-Blargedynsym'
18622 runpath_var=LD_RUN_PATH
18624 siemens)
18625 need_lib_prefix=no
18627 motorola)
18628 need_lib_prefix=no
18629 need_version=no
18630 shlibpath_overrides_runpath=no
18631 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18633 esac
18636 sysv4*MP*)
18637 if test -d /usr/nec ;then
18638 version_type=linux
18639 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18640 soname_spec='$libname${shared_ext}.$major'
18641 shlibpath_var=LD_LIBRARY_PATH
18645 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18646 version_type=freebsd-elf
18647 need_lib_prefix=no
18648 need_version=no
18649 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18650 soname_spec='${libname}${release}${shared_ext}$major'
18651 shlibpath_var=LD_LIBRARY_PATH
18652 hardcode_into_libs=yes
18653 if test "$with_gnu_ld" = yes; then
18654 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18655 shlibpath_overrides_runpath=no
18656 else
18657 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18658 shlibpath_overrides_runpath=yes
18659 case $host_os in
18660 sco3.2v5*)
18661 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18663 esac
18665 sys_lib_dlsearch_path_spec='/usr/lib'
18668 uts4*)
18669 version_type=linux
18670 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18671 soname_spec='${libname}${release}${shared_ext}$major'
18672 shlibpath_var=LD_LIBRARY_PATH
18676 dynamic_linker=no
18678 esac
18679 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18680 echo "${ECHO_T}$dynamic_linker" >&6; }
18681 test "$dynamic_linker" = no && can_build_shared=no
18683 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
18684 echo $ECHO_N "(cached) $ECHO_C" >&6
18685 else
18686 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
18689 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
18690 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
18691 echo $ECHO_N "(cached) $ECHO_C" >&6
18692 else
18693 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
18696 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
18698 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18699 if test "$GCC" = yes; then
18700 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18703 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18704 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
18705 hardcode_action_GCJ=
18706 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
18707 test -n "$runpath_var_GCJ" || \
18708 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
18710 # We can hardcode non-existant directories.
18711 if test "$hardcode_direct_GCJ" != no &&
18712 # If the only mechanism to avoid hardcoding is shlibpath_var, we
18713 # have to relink, otherwise we might link with an installed library
18714 # when we should be linking with a yet-to-be-installed one
18715 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18716 test "$hardcode_minus_L_GCJ" != no; then
18717 # Linking always hardcodes the temporary library directory.
18718 hardcode_action_GCJ=relink
18719 else
18720 # We can link without hardcoding, and we can hardcode nonexisting dirs.
18721 hardcode_action_GCJ=immediate
18723 else
18724 # We cannot hardcode anything, or else we can only hardcode existing
18725 # directories.
18726 hardcode_action_GCJ=unsupported
18728 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
18729 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
18731 if test "$hardcode_action_GCJ" = relink; then
18732 # Fast installation is not supported
18733 enable_fast_install=no
18734 elif test "$shlibpath_overrides_runpath" = yes ||
18735 test "$enable_shared" = no; then
18736 # Fast installation is not necessary
18737 enable_fast_install=needless
18741 # The else clause should only fire when bootstrapping the
18742 # libtool distribution, otherwise you forgot to ship ltmain.sh
18743 # with your package, and you will get complaints that there are
18744 # no rules to generate ltmain.sh.
18745 if test -f "$ltmain"; then
18746 # See if we are running on zsh, and set the options which allow our commands through
18747 # without removal of \ escapes.
18748 if test -n "${ZSH_VERSION+set}" ; then
18749 setopt NO_GLOB_SUBST
18751 # Now quote all the things that may contain metacharacters while being
18752 # careful not to overquote the AC_SUBSTed values. We take copies of the
18753 # variables and quote the copies for generation of the libtool script.
18754 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18755 SED SHELL STRIP \
18756 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18757 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18758 deplibs_check_method reload_flag reload_cmds need_locks \
18759 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18760 lt_cv_sys_global_symbol_to_c_name_address \
18761 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18762 old_postinstall_cmds old_postuninstall_cmds \
18763 compiler_GCJ \
18764 CC_GCJ \
18765 LD_GCJ \
18766 lt_prog_compiler_wl_GCJ \
18767 lt_prog_compiler_pic_GCJ \
18768 lt_prog_compiler_static_GCJ \
18769 lt_prog_compiler_no_builtin_flag_GCJ \
18770 export_dynamic_flag_spec_GCJ \
18771 thread_safe_flag_spec_GCJ \
18772 whole_archive_flag_spec_GCJ \
18773 enable_shared_with_static_runtimes_GCJ \
18774 old_archive_cmds_GCJ \
18775 old_archive_from_new_cmds_GCJ \
18776 predep_objects_GCJ \
18777 postdep_objects_GCJ \
18778 predeps_GCJ \
18779 postdeps_GCJ \
18780 compiler_lib_search_path_GCJ \
18781 compiler_lib_search_dirs_GCJ \
18782 archive_cmds_GCJ \
18783 archive_expsym_cmds_GCJ \
18784 postinstall_cmds_GCJ \
18785 postuninstall_cmds_GCJ \
18786 old_archive_from_expsyms_cmds_GCJ \
18787 allow_undefined_flag_GCJ \
18788 no_undefined_flag_GCJ \
18789 export_symbols_cmds_GCJ \
18790 hardcode_libdir_flag_spec_GCJ \
18791 hardcode_libdir_flag_spec_ld_GCJ \
18792 hardcode_libdir_separator_GCJ \
18793 hardcode_automatic_GCJ \
18794 module_cmds_GCJ \
18795 module_expsym_cmds_GCJ \
18796 lt_cv_prog_compiler_c_o_GCJ \
18797 fix_srcfile_path_GCJ \
18798 exclude_expsyms_GCJ \
18799 include_expsyms_GCJ; do
18801 case $var in
18802 old_archive_cmds_GCJ | \
18803 old_archive_from_new_cmds_GCJ | \
18804 archive_cmds_GCJ | \
18805 archive_expsym_cmds_GCJ | \
18806 module_cmds_GCJ | \
18807 module_expsym_cmds_GCJ | \
18808 old_archive_from_expsyms_cmds_GCJ | \
18809 export_symbols_cmds_GCJ | \
18810 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18811 postinstall_cmds | postuninstall_cmds | \
18812 old_postinstall_cmds | old_postuninstall_cmds | \
18813 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18814 # Double-quote double-evaled strings.
18815 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18818 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18820 esac
18821 done
18823 case $lt_echo in
18824 *'\$0 --fallback-echo"')
18825 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18827 esac
18829 cfgfile="$ofile"
18831 cat <<__EOF__ >> "$cfgfile"
18832 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18834 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18836 # Shell to use when invoking shell scripts.
18837 SHELL=$lt_SHELL
18839 # Whether or not to build shared libraries.
18840 build_libtool_libs=$enable_shared
18842 # Whether or not to build static libraries.
18843 build_old_libs=$enable_static
18845 # Whether or not to add -lc for building shared libraries.
18846 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18848 # Whether or not to disallow shared libs when runtime libs are static
18849 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18851 # Whether or not to optimize for fast installation.
18852 fast_install=$enable_fast_install
18854 # The host system.
18855 host_alias=$host_alias
18856 host=$host
18857 host_os=$host_os
18859 # The build system.
18860 build_alias=$build_alias
18861 build=$build
18862 build_os=$build_os
18864 # An echo program that does not interpret backslashes.
18865 echo=$lt_echo
18867 # The archiver.
18868 AR=$lt_AR
18869 AR_FLAGS=$lt_AR_FLAGS
18871 # A C compiler.
18872 LTCC=$lt_LTCC
18874 # LTCC compiler flags.
18875 LTCFLAGS=$lt_LTCFLAGS
18877 # A language-specific compiler.
18878 CC=$lt_compiler_GCJ
18880 # Is the compiler the GNU C compiler?
18881 with_gcc=$GCC_GCJ
18883 # An ERE matcher.
18884 EGREP=$lt_EGREP
18886 # The linker used to build libraries.
18887 LD=$lt_LD_GCJ
18889 # Whether we need hard or soft links.
18890 LN_S=$lt_LN_S
18892 # A BSD-compatible nm program.
18893 NM=$lt_NM
18895 # A symbol stripping program
18896 STRIP=$lt_STRIP
18898 # Used to examine libraries when file_magic_cmd begins "file"
18899 MAGIC_CMD=$MAGIC_CMD
18901 # Used on cygwin: DLL creation program.
18902 DLLTOOL="$DLLTOOL"
18904 # Used on cygwin: object dumper.
18905 OBJDUMP="$OBJDUMP"
18907 # Used on cygwin: assembler.
18908 AS="$AS"
18910 # The name of the directory that contains temporary libtool files.
18911 objdir=$objdir
18913 # How to create reloadable object files.
18914 reload_flag=$lt_reload_flag
18915 reload_cmds=$lt_reload_cmds
18917 # How to pass a linker flag through the compiler.
18918 wl=$lt_lt_prog_compiler_wl_GCJ
18920 # Object file suffix (normally "o").
18921 objext="$ac_objext"
18923 # Old archive suffix (normally "a").
18924 libext="$libext"
18926 # Shared library suffix (normally ".so").
18927 shrext_cmds='$shrext_cmds'
18929 # Executable file suffix (normally "").
18930 exeext="$exeext"
18932 # Additional compiler flags for building library objects.
18933 pic_flag=$lt_lt_prog_compiler_pic_GCJ
18934 pic_mode=$pic_mode
18936 # What is the maximum length of a command?
18937 max_cmd_len=$lt_cv_sys_max_cmd_len
18939 # Does compiler simultaneously support -c and -o options?
18940 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18942 # Must we lock files when doing compilation?
18943 need_locks=$lt_need_locks
18945 # Do we need the lib prefix for modules?
18946 need_lib_prefix=$need_lib_prefix
18948 # Do we need a version for libraries?
18949 need_version=$need_version
18951 # Whether dlopen is supported.
18952 dlopen_support=$enable_dlopen
18954 # Whether dlopen of programs is supported.
18955 dlopen_self=$enable_dlopen_self
18957 # Whether dlopen of statically linked programs is supported.
18958 dlopen_self_static=$enable_dlopen_self_static
18960 # Compiler flag to prevent dynamic linking.
18961 link_static_flag=$lt_lt_prog_compiler_static_GCJ
18963 # Compiler flag to turn off builtin functions.
18964 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18966 # Compiler flag to allow reflexive dlopens.
18967 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18969 # Compiler flag to generate shared objects directly from archives.
18970 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18972 # Compiler flag to generate thread-safe objects.
18973 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18975 # Library versioning type.
18976 version_type=$version_type
18978 # Format of library name prefix.
18979 libname_spec=$lt_libname_spec
18981 # List of archive names. First name is the real one, the rest are links.
18982 # The last name is the one that the linker finds with -lNAME.
18983 library_names_spec=$lt_library_names_spec
18985 # The coded name of the library, if different from the real name.
18986 soname_spec=$lt_soname_spec
18988 # Commands used to build and install an old-style archive.
18989 RANLIB=$lt_RANLIB
18990 old_archive_cmds=$lt_old_archive_cmds_GCJ
18991 old_postinstall_cmds=$lt_old_postinstall_cmds
18992 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18994 # Create an old-style archive from a shared archive.
18995 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18997 # Create a temporary old-style archive to link instead of a shared archive.
18998 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
19000 # Commands used to build and install a shared archive.
19001 archive_cmds=$lt_archive_cmds_GCJ
19002 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
19003 postinstall_cmds=$lt_postinstall_cmds
19004 postuninstall_cmds=$lt_postuninstall_cmds
19006 # Commands used to build a loadable module (assumed same as above if empty)
19007 module_cmds=$lt_module_cmds_GCJ
19008 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
19010 # Commands to strip libraries.
19011 old_striplib=$lt_old_striplib
19012 striplib=$lt_striplib
19014 # Dependencies to place before the objects being linked to create a
19015 # shared library.
19016 predep_objects=$lt_predep_objects_GCJ
19018 # Dependencies to place after the objects being linked to create a
19019 # shared library.
19020 postdep_objects=$lt_postdep_objects_GCJ
19022 # Dependencies to place before the objects being linked to create a
19023 # shared library.
19024 predeps=$lt_predeps_GCJ
19026 # Dependencies to place after the objects being linked to create a
19027 # shared library.
19028 postdeps=$lt_postdeps_GCJ
19030 # The directories searched by this compiler when creating a shared
19031 # library
19032 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_GCJ
19034 # The library search path used internally by the compiler when linking
19035 # a shared library.
19036 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
19038 # Method to check whether dependent libraries are shared objects.
19039 deplibs_check_method=$lt_deplibs_check_method
19041 # Command to use when deplibs_check_method == file_magic.
19042 file_magic_cmd=$lt_file_magic_cmd
19044 # Flag that allows shared libraries with undefined symbols to be built.
19045 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
19047 # Flag that forces no undefined symbols.
19048 no_undefined_flag=$lt_no_undefined_flag_GCJ
19050 # Commands used to finish a libtool library installation in a directory.
19051 finish_cmds=$lt_finish_cmds
19053 # Same as above, but a single script fragment to be evaled but not shown.
19054 finish_eval=$lt_finish_eval
19056 # Take the output of nm and produce a listing of raw symbols and C names.
19057 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19059 # Transform the output of nm in a proper C declaration
19060 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19062 # Transform the output of nm in a C name address pair
19063 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19065 # This is the shared library runtime path variable.
19066 runpath_var=$runpath_var
19068 # This is the shared library path variable.
19069 shlibpath_var=$shlibpath_var
19071 # Is shlibpath searched before the hard-coded library search path?
19072 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19074 # How to hardcode a shared library path into an executable.
19075 hardcode_action=$hardcode_action_GCJ
19077 # Whether we should hardcode library paths into libraries.
19078 hardcode_into_libs=$hardcode_into_libs
19080 # Flag to hardcode \$libdir into a binary during linking.
19081 # This must work even if \$libdir does not exist.
19082 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
19084 # If ld is used when linking, flag to hardcode \$libdir into
19085 # a binary during linking. This must work even if \$libdir does
19086 # not exist.
19087 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
19089 # Whether we need a single -rpath flag with a separated argument.
19090 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
19092 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19093 # resulting binary.
19094 hardcode_direct=$hardcode_direct_GCJ
19096 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19097 # resulting binary.
19098 hardcode_minus_L=$hardcode_minus_L_GCJ
19100 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19101 # the resulting binary.
19102 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
19104 # Set to yes if building a shared library automatically hardcodes DIR into the library
19105 # and all subsequent libraries and executables linked against it.
19106 hardcode_automatic=$hardcode_automatic_GCJ
19108 # Variables whose values should be saved in libtool wrapper scripts and
19109 # restored at relink time.
19110 variables_saved_for_relink="$variables_saved_for_relink"
19112 # Whether libtool must link a program against all its dependency libraries.
19113 link_all_deplibs=$link_all_deplibs_GCJ
19115 # Compile-time system search path for libraries
19116 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19118 # Run-time system search path for libraries
19119 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19121 # Fix the shell variable \$srcfile for the compiler.
19122 fix_srcfile_path=$lt_fix_srcfile_path
19124 # Set to yes if exported symbols are required.
19125 always_export_symbols=$always_export_symbols_GCJ
19127 # The commands to list exported symbols.
19128 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
19130 # The commands to extract the exported symbol list from a shared archive.
19131 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19133 # Symbols that should not be listed in the preloaded symbols.
19134 exclude_expsyms=$lt_exclude_expsyms_GCJ
19136 # Symbols that must always be exported.
19137 include_expsyms=$lt_include_expsyms_GCJ
19139 # ### END LIBTOOL TAG CONFIG: $tagname
19141 __EOF__
19144 else
19145 # If there is no Makefile yet, we rely on a make rule to execute
19146 # `config.status --recheck' to rerun these tests and create the
19147 # libtool script then.
19148 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19149 if test -f "$ltmain_in"; then
19150 test -f Makefile && make "$ltmain"
19155 ac_ext=c
19156 ac_cpp='$CPP $CPPFLAGS'
19157 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19158 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19159 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19161 CC="$lt_save_CC"
19163 else
19164 tagname=""
19171 # Source file extension for RC test sources.
19172 ac_ext=rc
19174 # Object file extension for compiled RC test sources.
19175 objext=o
19176 objext_RC=$objext
19178 # Code to be used in simple compile tests
19179 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
19181 # Code to be used in simple link tests
19182 lt_simple_link_test_code="$lt_simple_compile_test_code"
19184 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
19186 # If no C compiler was specified, use CC.
19187 LTCC=${LTCC-"$CC"}
19189 # If no C compiler flags were specified, use CFLAGS.
19190 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
19192 # Allow CC to be a program name with arguments.
19193 compiler=$CC
19196 # save warnings/boilerplate of simple test code
19197 ac_outfile=conftest.$ac_objext
19198 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
19199 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19200 _lt_compiler_boilerplate=`cat conftest.err`
19201 $rm conftest*
19203 ac_outfile=conftest.$ac_objext
19204 echo "$lt_simple_link_test_code" >conftest.$ac_ext
19205 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19206 _lt_linker_boilerplate=`cat conftest.err`
19207 $rm -r conftest*
19210 # Allow CC to be a program name with arguments.
19211 lt_save_CC="$CC"
19212 CC=${RC-"windres"}
19213 compiler=$CC
19214 compiler_RC=$CC
19215 for cc_temp in $compiler""; do
19216 case $cc_temp in
19217 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19218 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19219 \-*) ;;
19220 *) break;;
19221 esac
19222 done
19223 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
19225 lt_cv_prog_compiler_c_o_RC=yes
19227 # The else clause should only fire when bootstrapping the
19228 # libtool distribution, otherwise you forgot to ship ltmain.sh
19229 # with your package, and you will get complaints that there are
19230 # no rules to generate ltmain.sh.
19231 if test -f "$ltmain"; then
19232 # See if we are running on zsh, and set the options which allow our commands through
19233 # without removal of \ escapes.
19234 if test -n "${ZSH_VERSION+set}" ; then
19235 setopt NO_GLOB_SUBST
19237 # Now quote all the things that may contain metacharacters while being
19238 # careful not to overquote the AC_SUBSTed values. We take copies of the
19239 # variables and quote the copies for generation of the libtool script.
19240 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19241 SED SHELL STRIP \
19242 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19243 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19244 deplibs_check_method reload_flag reload_cmds need_locks \
19245 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19246 lt_cv_sys_global_symbol_to_c_name_address \
19247 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19248 old_postinstall_cmds old_postuninstall_cmds \
19249 compiler_RC \
19250 CC_RC \
19251 LD_RC \
19252 lt_prog_compiler_wl_RC \
19253 lt_prog_compiler_pic_RC \
19254 lt_prog_compiler_static_RC \
19255 lt_prog_compiler_no_builtin_flag_RC \
19256 export_dynamic_flag_spec_RC \
19257 thread_safe_flag_spec_RC \
19258 whole_archive_flag_spec_RC \
19259 enable_shared_with_static_runtimes_RC \
19260 old_archive_cmds_RC \
19261 old_archive_from_new_cmds_RC \
19262 predep_objects_RC \
19263 postdep_objects_RC \
19264 predeps_RC \
19265 postdeps_RC \
19266 compiler_lib_search_path_RC \
19267 compiler_lib_search_dirs_RC \
19268 archive_cmds_RC \
19269 archive_expsym_cmds_RC \
19270 postinstall_cmds_RC \
19271 postuninstall_cmds_RC \
19272 old_archive_from_expsyms_cmds_RC \
19273 allow_undefined_flag_RC \
19274 no_undefined_flag_RC \
19275 export_symbols_cmds_RC \
19276 hardcode_libdir_flag_spec_RC \
19277 hardcode_libdir_flag_spec_ld_RC \
19278 hardcode_libdir_separator_RC \
19279 hardcode_automatic_RC \
19280 module_cmds_RC \
19281 module_expsym_cmds_RC \
19282 lt_cv_prog_compiler_c_o_RC \
19283 fix_srcfile_path_RC \
19284 exclude_expsyms_RC \
19285 include_expsyms_RC; do
19287 case $var in
19288 old_archive_cmds_RC | \
19289 old_archive_from_new_cmds_RC | \
19290 archive_cmds_RC | \
19291 archive_expsym_cmds_RC | \
19292 module_cmds_RC | \
19293 module_expsym_cmds_RC | \
19294 old_archive_from_expsyms_cmds_RC | \
19295 export_symbols_cmds_RC | \
19296 extract_expsyms_cmds | reload_cmds | finish_cmds | \
19297 postinstall_cmds | postuninstall_cmds | \
19298 old_postinstall_cmds | old_postuninstall_cmds | \
19299 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19300 # Double-quote double-evaled strings.
19301 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19304 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19306 esac
19307 done
19309 case $lt_echo in
19310 *'\$0 --fallback-echo"')
19311 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19313 esac
19315 cfgfile="$ofile"
19317 cat <<__EOF__ >> "$cfgfile"
19318 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19320 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19322 # Shell to use when invoking shell scripts.
19323 SHELL=$lt_SHELL
19325 # Whether or not to build shared libraries.
19326 build_libtool_libs=$enable_shared
19328 # Whether or not to build static libraries.
19329 build_old_libs=$enable_static
19331 # Whether or not to add -lc for building shared libraries.
19332 build_libtool_need_lc=$archive_cmds_need_lc_RC
19334 # Whether or not to disallow shared libs when runtime libs are static
19335 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19337 # Whether or not to optimize for fast installation.
19338 fast_install=$enable_fast_install
19340 # The host system.
19341 host_alias=$host_alias
19342 host=$host
19343 host_os=$host_os
19345 # The build system.
19346 build_alias=$build_alias
19347 build=$build
19348 build_os=$build_os
19350 # An echo program that does not interpret backslashes.
19351 echo=$lt_echo
19353 # The archiver.
19354 AR=$lt_AR
19355 AR_FLAGS=$lt_AR_FLAGS
19357 # A C compiler.
19358 LTCC=$lt_LTCC
19360 # LTCC compiler flags.
19361 LTCFLAGS=$lt_LTCFLAGS
19363 # A language-specific compiler.
19364 CC=$lt_compiler_RC
19366 # Is the compiler the GNU C compiler?
19367 with_gcc=$GCC_RC
19369 # An ERE matcher.
19370 EGREP=$lt_EGREP
19372 # The linker used to build libraries.
19373 LD=$lt_LD_RC
19375 # Whether we need hard or soft links.
19376 LN_S=$lt_LN_S
19378 # A BSD-compatible nm program.
19379 NM=$lt_NM
19381 # A symbol stripping program
19382 STRIP=$lt_STRIP
19384 # Used to examine libraries when file_magic_cmd begins "file"
19385 MAGIC_CMD=$MAGIC_CMD
19387 # Used on cygwin: DLL creation program.
19388 DLLTOOL="$DLLTOOL"
19390 # Used on cygwin: object dumper.
19391 OBJDUMP="$OBJDUMP"
19393 # Used on cygwin: assembler.
19394 AS="$AS"
19396 # The name of the directory that contains temporary libtool files.
19397 objdir=$objdir
19399 # How to create reloadable object files.
19400 reload_flag=$lt_reload_flag
19401 reload_cmds=$lt_reload_cmds
19403 # How to pass a linker flag through the compiler.
19404 wl=$lt_lt_prog_compiler_wl_RC
19406 # Object file suffix (normally "o").
19407 objext="$ac_objext"
19409 # Old archive suffix (normally "a").
19410 libext="$libext"
19412 # Shared library suffix (normally ".so").
19413 shrext_cmds='$shrext_cmds'
19415 # Executable file suffix (normally "").
19416 exeext="$exeext"
19418 # Additional compiler flags for building library objects.
19419 pic_flag=$lt_lt_prog_compiler_pic_RC
19420 pic_mode=$pic_mode
19422 # What is the maximum length of a command?
19423 max_cmd_len=$lt_cv_sys_max_cmd_len
19425 # Does compiler simultaneously support -c and -o options?
19426 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19428 # Must we lock files when doing compilation?
19429 need_locks=$lt_need_locks
19431 # Do we need the lib prefix for modules?
19432 need_lib_prefix=$need_lib_prefix
19434 # Do we need a version for libraries?
19435 need_version=$need_version
19437 # Whether dlopen is supported.
19438 dlopen_support=$enable_dlopen
19440 # Whether dlopen of programs is supported.
19441 dlopen_self=$enable_dlopen_self
19443 # Whether dlopen of statically linked programs is supported.
19444 dlopen_self_static=$enable_dlopen_self_static
19446 # Compiler flag to prevent dynamic linking.
19447 link_static_flag=$lt_lt_prog_compiler_static_RC
19449 # Compiler flag to turn off builtin functions.
19450 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19452 # Compiler flag to allow reflexive dlopens.
19453 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19455 # Compiler flag to generate shared objects directly from archives.
19456 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19458 # Compiler flag to generate thread-safe objects.
19459 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19461 # Library versioning type.
19462 version_type=$version_type
19464 # Format of library name prefix.
19465 libname_spec=$lt_libname_spec
19467 # List of archive names. First name is the real one, the rest are links.
19468 # The last name is the one that the linker finds with -lNAME.
19469 library_names_spec=$lt_library_names_spec
19471 # The coded name of the library, if different from the real name.
19472 soname_spec=$lt_soname_spec
19474 # Commands used to build and install an old-style archive.
19475 RANLIB=$lt_RANLIB
19476 old_archive_cmds=$lt_old_archive_cmds_RC
19477 old_postinstall_cmds=$lt_old_postinstall_cmds
19478 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19480 # Create an old-style archive from a shared archive.
19481 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19483 # Create a temporary old-style archive to link instead of a shared archive.
19484 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19486 # Commands used to build and install a shared archive.
19487 archive_cmds=$lt_archive_cmds_RC
19488 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19489 postinstall_cmds=$lt_postinstall_cmds
19490 postuninstall_cmds=$lt_postuninstall_cmds
19492 # Commands used to build a loadable module (assumed same as above if empty)
19493 module_cmds=$lt_module_cmds_RC
19494 module_expsym_cmds=$lt_module_expsym_cmds_RC
19496 # Commands to strip libraries.
19497 old_striplib=$lt_old_striplib
19498 striplib=$lt_striplib
19500 # Dependencies to place before the objects being linked to create a
19501 # shared library.
19502 predep_objects=$lt_predep_objects_RC
19504 # Dependencies to place after the objects being linked to create a
19505 # shared library.
19506 postdep_objects=$lt_postdep_objects_RC
19508 # Dependencies to place before the objects being linked to create a
19509 # shared library.
19510 predeps=$lt_predeps_RC
19512 # Dependencies to place after the objects being linked to create a
19513 # shared library.
19514 postdeps=$lt_postdeps_RC
19516 # The directories searched by this compiler when creating a shared
19517 # library
19518 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_RC
19520 # The library search path used internally by the compiler when linking
19521 # a shared library.
19522 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19524 # Method to check whether dependent libraries are shared objects.
19525 deplibs_check_method=$lt_deplibs_check_method
19527 # Command to use when deplibs_check_method == file_magic.
19528 file_magic_cmd=$lt_file_magic_cmd
19530 # Flag that allows shared libraries with undefined symbols to be built.
19531 allow_undefined_flag=$lt_allow_undefined_flag_RC
19533 # Flag that forces no undefined symbols.
19534 no_undefined_flag=$lt_no_undefined_flag_RC
19536 # Commands used to finish a libtool library installation in a directory.
19537 finish_cmds=$lt_finish_cmds
19539 # Same as above, but a single script fragment to be evaled but not shown.
19540 finish_eval=$lt_finish_eval
19542 # Take the output of nm and produce a listing of raw symbols and C names.
19543 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19545 # Transform the output of nm in a proper C declaration
19546 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19548 # Transform the output of nm in a C name address pair
19549 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19551 # This is the shared library runtime path variable.
19552 runpath_var=$runpath_var
19554 # This is the shared library path variable.
19555 shlibpath_var=$shlibpath_var
19557 # Is shlibpath searched before the hard-coded library search path?
19558 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19560 # How to hardcode a shared library path into an executable.
19561 hardcode_action=$hardcode_action_RC
19563 # Whether we should hardcode library paths into libraries.
19564 hardcode_into_libs=$hardcode_into_libs
19566 # Flag to hardcode \$libdir into a binary during linking.
19567 # This must work even if \$libdir does not exist.
19568 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19570 # If ld is used when linking, flag to hardcode \$libdir into
19571 # a binary during linking. This must work even if \$libdir does
19572 # not exist.
19573 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19575 # Whether we need a single -rpath flag with a separated argument.
19576 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19578 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19579 # resulting binary.
19580 hardcode_direct=$hardcode_direct_RC
19582 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19583 # resulting binary.
19584 hardcode_minus_L=$hardcode_minus_L_RC
19586 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19587 # the resulting binary.
19588 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19590 # Set to yes if building a shared library automatically hardcodes DIR into the library
19591 # and all subsequent libraries and executables linked against it.
19592 hardcode_automatic=$hardcode_automatic_RC
19594 # Variables whose values should be saved in libtool wrapper scripts and
19595 # restored at relink time.
19596 variables_saved_for_relink="$variables_saved_for_relink"
19598 # Whether libtool must link a program against all its dependency libraries.
19599 link_all_deplibs=$link_all_deplibs_RC
19601 # Compile-time system search path for libraries
19602 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19604 # Run-time system search path for libraries
19605 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19607 # Fix the shell variable \$srcfile for the compiler.
19608 fix_srcfile_path=$lt_fix_srcfile_path
19610 # Set to yes if exported symbols are required.
19611 always_export_symbols=$always_export_symbols_RC
19613 # The commands to list exported symbols.
19614 export_symbols_cmds=$lt_export_symbols_cmds_RC
19616 # The commands to extract the exported symbol list from a shared archive.
19617 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19619 # Symbols that should not be listed in the preloaded symbols.
19620 exclude_expsyms=$lt_exclude_expsyms_RC
19622 # Symbols that must always be exported.
19623 include_expsyms=$lt_include_expsyms_RC
19625 # ### END LIBTOOL TAG CONFIG: $tagname
19627 __EOF__
19630 else
19631 # If there is no Makefile yet, we rely on a make rule to execute
19632 # `config.status --recheck' to rerun these tests and create the
19633 # libtool script then.
19634 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19635 if test -f "$ltmain_in"; then
19636 test -f Makefile && make "$ltmain"
19641 ac_ext=c
19642 ac_cpp='$CPP $CPPFLAGS'
19643 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19644 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19645 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19647 CC="$lt_save_CC"
19652 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19653 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19654 { (exit 1); exit 1; }; }
19656 esac
19658 # Append the new tag name to the list of available tags.
19659 if test -n "$tagname" ; then
19660 available_tags="$available_tags $tagname"
19663 done
19664 IFS="$lt_save_ifs"
19666 # Now substitute the updated list of available tags.
19667 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19668 mv "${ofile}T" "$ofile"
19669 chmod +x "$ofile"
19670 else
19671 rm -f "${ofile}T"
19672 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19673 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19674 { (exit 1); exit 1; }; }
19680 # This can be used to rebuild libtool when needed
19681 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19683 # Always use our own libtool.
19684 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19686 # Prevent multiple expansion
19708 # Checks for libraries.
19711 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
19712 if test -n "$ac_tool_prefix"; then
19713 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
19714 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
19715 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19716 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19717 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
19718 echo $ECHO_N "(cached) $ECHO_C" >&6
19719 else
19720 case $PKG_CONFIG in
19721 [\\/]* | ?:[\\/]*)
19722 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
19725 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19726 for as_dir in $PATH
19728 IFS=$as_save_IFS
19729 test -z "$as_dir" && as_dir=.
19730 for ac_exec_ext in '' $ac_executable_extensions; do
19731 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19732 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
19733 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19734 break 2
19736 done
19737 done
19738 IFS=$as_save_IFS
19741 esac
19743 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
19744 if test -n "$PKG_CONFIG"; then
19745 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
19746 echo "${ECHO_T}$PKG_CONFIG" >&6; }
19747 else
19748 { echo "$as_me:$LINENO: result: no" >&5
19749 echo "${ECHO_T}no" >&6; }
19754 if test -z "$ac_cv_path_PKG_CONFIG"; then
19755 ac_pt_PKG_CONFIG=$PKG_CONFIG
19756 # Extract the first word of "pkg-config", so it can be a program name with args.
19757 set dummy pkg-config; ac_word=$2
19758 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19759 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19760 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
19761 echo $ECHO_N "(cached) $ECHO_C" >&6
19762 else
19763 case $ac_pt_PKG_CONFIG in
19764 [\\/]* | ?:[\\/]*)
19765 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
19768 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19769 for as_dir in $PATH
19771 IFS=$as_save_IFS
19772 test -z "$as_dir" && as_dir=.
19773 for ac_exec_ext in '' $ac_executable_extensions; do
19774 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19775 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
19776 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19777 break 2
19779 done
19780 done
19781 IFS=$as_save_IFS
19784 esac
19786 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
19787 if test -n "$ac_pt_PKG_CONFIG"; then
19788 { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
19789 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
19790 else
19791 { echo "$as_me:$LINENO: result: no" >&5
19792 echo "${ECHO_T}no" >&6; }
19795 if test "x$ac_pt_PKG_CONFIG" = x; then
19796 PKG_CONFIG=""
19797 else
19798 case $cross_compiling:$ac_tool_warned in
19799 yes:)
19800 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
19801 whose name does not start with the host triplet. If you think this
19802 configuration is useful to you, please write to autoconf@gnu.org." >&5
19803 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
19804 whose name does not start with the host triplet. If you think this
19805 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
19806 ac_tool_warned=yes ;;
19807 esac
19808 PKG_CONFIG=$ac_pt_PKG_CONFIG
19810 else
19811 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
19815 if test -n "$PKG_CONFIG"; then
19816 _pkg_min_version=0.9.0
19817 { echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
19818 echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; }
19819 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
19820 { echo "$as_me:$LINENO: result: yes" >&5
19821 echo "${ECHO_T}yes" >&6; }
19822 else
19823 { echo "$as_me:$LINENO: result: no" >&5
19824 echo "${ECHO_T}no" >&6; }
19825 PKG_CONFIG=""
19830 pkg_failed=no
19831 { echo "$as_me:$LINENO: checking for libconfigfile" >&5
19832 echo $ECHO_N "checking for libconfigfile... $ECHO_C" >&6; }
19834 if test -n "$libconfigfile_CFLAGS"; then
19835 pkg_cv_libconfigfile_CFLAGS="$libconfigfile_CFLAGS"
19836 elif test -n "$PKG_CONFIG"; then
19837 if test -n "$PKG_CONFIG" && \
19838 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libconfigfile >= 1.0\"") >&5
19839 ($PKG_CONFIG --exists --print-errors "libconfigfile >= 1.0") 2>&5
19840 ac_status=$?
19841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19842 (exit $ac_status); }; then
19843 pkg_cv_libconfigfile_CFLAGS=`$PKG_CONFIG --cflags "libconfigfile >= 1.0" 2>/dev/null`
19844 else
19845 pkg_failed=yes
19847 else
19848 pkg_failed=untried
19850 if test -n "$libconfigfile_LIBS"; then
19851 pkg_cv_libconfigfile_LIBS="$libconfigfile_LIBS"
19852 elif test -n "$PKG_CONFIG"; then
19853 if test -n "$PKG_CONFIG" && \
19854 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libconfigfile >= 1.0\"") >&5
19855 ($PKG_CONFIG --exists --print-errors "libconfigfile >= 1.0") 2>&5
19856 ac_status=$?
19857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19858 (exit $ac_status); }; then
19859 pkg_cv_libconfigfile_LIBS=`$PKG_CONFIG --libs "libconfigfile >= 1.0" 2>/dev/null`
19860 else
19861 pkg_failed=yes
19863 else
19864 pkg_failed=untried
19869 if test $pkg_failed = yes; then
19871 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19872 _pkg_short_errors_supported=yes
19873 else
19874 _pkg_short_errors_supported=no
19876 if test $_pkg_short_errors_supported = yes; then
19877 libconfigfile_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libconfigfile >= 1.0" 2>&1`
19878 else
19879 libconfigfile_PKG_ERRORS=`$PKG_CONFIG --print-errors "libconfigfile >= 1.0" 2>&1`
19881 # Put the nasty error message in config.log where it belongs
19882 echo "$libconfigfile_PKG_ERRORS" >&5
19884 { { echo "$as_me:$LINENO: error: Package requirements (libconfigfile >= 1.0) were not met:
19886 $libconfigfile_PKG_ERRORS
19888 Consider adjusting the PKG_CONFIG_PATH environment variable if you
19889 installed software in a non-standard prefix.
19891 Alternatively, you may set the environment variables libconfigfile_CFLAGS
19892 and libconfigfile_LIBS to avoid the need to call pkg-config.
19893 See the pkg-config man page for more details.
19894 " >&5
19895 echo "$as_me: error: Package requirements (libconfigfile >= 1.0) were not met:
19897 $libconfigfile_PKG_ERRORS
19899 Consider adjusting the PKG_CONFIG_PATH environment variable if you
19900 installed software in a non-standard prefix.
19902 Alternatively, you may set the environment variables libconfigfile_CFLAGS
19903 and libconfigfile_LIBS to avoid the need to call pkg-config.
19904 See the pkg-config man page for more details.
19905 " >&2;}
19906 { (exit 1); exit 1; }; }
19907 elif test $pkg_failed = untried; then
19908 { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
19909 is in your PATH or set the PKG_CONFIG environment variable to the full
19910 path to pkg-config.
19912 Alternatively, you may set the environment variables libconfigfile_CFLAGS
19913 and libconfigfile_LIBS to avoid the need to call pkg-config.
19914 See the pkg-config man page for more details.
19916 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
19917 See \`config.log' for more details." >&5
19918 echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
19919 is in your PATH or set the PKG_CONFIG environment variable to the full
19920 path to pkg-config.
19922 Alternatively, you may set the environment variables libconfigfile_CFLAGS
19923 and libconfigfile_LIBS to avoid the need to call pkg-config.
19924 See the pkg-config man page for more details.
19926 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
19927 See \`config.log' for more details." >&2;}
19928 { (exit 1); exit 1; }; }
19929 else
19930 libconfigfile_CFLAGS=$pkg_cv_libconfigfile_CFLAGS
19931 libconfigfile_LIBS=$pkg_cv_libconfigfile_LIBS
19932 { echo "$as_me:$LINENO: result: yes" >&5
19933 echo "${ECHO_T}yes" >&6; }
19937 # Checks for header files.
19939 # Checks for typedefs, structures, and compiler characteristics.
19940 { echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5
19941 echo $ECHO_N "checking for stdbool.h that conforms to C99... $ECHO_C" >&6; }
19942 if test "${ac_cv_header_stdbool_h+set}" = set; then
19943 echo $ECHO_N "(cached) $ECHO_C" >&6
19944 else
19945 cat >conftest.$ac_ext <<_ACEOF
19946 /* confdefs.h. */
19947 _ACEOF
19948 cat confdefs.h >>conftest.$ac_ext
19949 cat >>conftest.$ac_ext <<_ACEOF
19950 /* end confdefs.h. */
19952 #include <stdbool.h>
19953 #ifndef bool
19954 "error: bool is not defined"
19955 #endif
19956 #ifndef false
19957 "error: false is not defined"
19958 #endif
19959 #if false
19960 "error: false is not 0"
19961 #endif
19962 #ifndef true
19963 "error: true is not defined"
19964 #endif
19965 #if true != 1
19966 "error: true is not 1"
19967 #endif
19968 #ifndef __bool_true_false_are_defined
19969 "error: __bool_true_false_are_defined is not defined"
19970 #endif
19972 struct s { _Bool s: 1; _Bool t; } s;
19974 char a[true == 1 ? 1 : -1];
19975 char b[false == 0 ? 1 : -1];
19976 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
19977 char d[(bool) 0.5 == true ? 1 : -1];
19978 bool e = &s;
19979 char f[(_Bool) 0.0 == false ? 1 : -1];
19980 char g[true];
19981 char h[sizeof (_Bool)];
19982 char i[sizeof s.t];
19983 enum { j = false, k = true, l = false * true, m = true * 256 };
19984 _Bool n[m];
19985 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
19986 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
19987 # if defined __xlc__ || defined __GNUC__
19988 /* Catch a bug in IBM AIX xlc compiler version 6.0.0.0
19989 reported by James Lemley on 2005-10-05; see
19990 http://lists.gnu.org/archive/html/bug-coreutils/2005-10/msg00086.html
19991 This test is not quite right, since xlc is allowed to
19992 reject this program, as the initializer for xlcbug is
19993 not one of the forms that C requires support for.
19994 However, doing the test right would require a runtime
19995 test, and that would make cross-compilation harder.
19996 Let us hope that IBM fixes the xlc bug, and also adds
19997 support for this kind of constant expression. In the
19998 meantime, this test will reject xlc, which is OK, since
19999 our stdbool.h substitute should suffice. We also test
20000 this with GCC, where it should work, to detect more
20001 quickly whether someone messes up the test in the
20002 future. */
20003 char digs[] = "0123456789";
20004 int xlcbug = 1 / (&(digs + 5)[-2 + (bool) 1] == &digs[4] ? 1 : -1);
20005 # endif
20006 /* Catch a bug in an HP-UX C compiler. See
20007 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
20008 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
20010 _Bool q = true;
20011 _Bool *pq = &q;
20014 main ()
20017 *pq |= q;
20018 *pq |= ! q;
20019 /* Refer to every declared value, to avoid compiler optimizations. */
20020 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
20021 + !m + !n + !o + !p + !q + !pq);
20024 return 0;
20026 _ACEOF
20027 rm -f conftest.$ac_objext
20028 if { (ac_try="$ac_compile"
20029 case "(($ac_try" in
20030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20031 *) ac_try_echo=$ac_try;;
20032 esac
20033 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20034 (eval "$ac_compile") 2>conftest.er1
20035 ac_status=$?
20036 grep -v '^ *+' conftest.er1 >conftest.err
20037 rm -f conftest.er1
20038 cat conftest.err >&5
20039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20040 (exit $ac_status); } && {
20041 test -z "$ac_c_werror_flag" ||
20042 test ! -s conftest.err
20043 } && test -s conftest.$ac_objext; then
20044 ac_cv_header_stdbool_h=yes
20045 else
20046 echo "$as_me: failed program was:" >&5
20047 sed 's/^/| /' conftest.$ac_ext >&5
20049 ac_cv_header_stdbool_h=no
20052 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20054 { echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5
20055 echo "${ECHO_T}$ac_cv_header_stdbool_h" >&6; }
20056 { echo "$as_me:$LINENO: checking for _Bool" >&5
20057 echo $ECHO_N "checking for _Bool... $ECHO_C" >&6; }
20058 if test "${ac_cv_type__Bool+set}" = set; then
20059 echo $ECHO_N "(cached) $ECHO_C" >&6
20060 else
20061 cat >conftest.$ac_ext <<_ACEOF
20062 /* confdefs.h. */
20063 _ACEOF
20064 cat confdefs.h >>conftest.$ac_ext
20065 cat >>conftest.$ac_ext <<_ACEOF
20066 /* end confdefs.h. */
20067 $ac_includes_default
20068 typedef _Bool ac__type_new_;
20070 main ()
20072 if ((ac__type_new_ *) 0)
20073 return 0;
20074 if (sizeof (ac__type_new_))
20075 return 0;
20077 return 0;
20079 _ACEOF
20080 rm -f conftest.$ac_objext
20081 if { (ac_try="$ac_compile"
20082 case "(($ac_try" in
20083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20084 *) ac_try_echo=$ac_try;;
20085 esac
20086 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20087 (eval "$ac_compile") 2>conftest.er1
20088 ac_status=$?
20089 grep -v '^ *+' conftest.er1 >conftest.err
20090 rm -f conftest.er1
20091 cat conftest.err >&5
20092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20093 (exit $ac_status); } && {
20094 test -z "$ac_c_werror_flag" ||
20095 test ! -s conftest.err
20096 } && test -s conftest.$ac_objext; then
20097 ac_cv_type__Bool=yes
20098 else
20099 echo "$as_me: failed program was:" >&5
20100 sed 's/^/| /' conftest.$ac_ext >&5
20102 ac_cv_type__Bool=no
20105 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20107 { echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5
20108 echo "${ECHO_T}$ac_cv_type__Bool" >&6; }
20109 if test $ac_cv_type__Bool = yes; then
20111 cat >>confdefs.h <<_ACEOF
20112 #define HAVE__BOOL 1
20113 _ACEOF
20118 if test $ac_cv_header_stdbool_h = yes; then
20120 cat >>confdefs.h <<\_ACEOF
20121 #define HAVE_STDBOOL_H 1
20122 _ACEOF
20126 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
20127 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
20128 if test "${ac_cv_c_const+set}" = set; then
20129 echo $ECHO_N "(cached) $ECHO_C" >&6
20130 else
20131 cat >conftest.$ac_ext <<_ACEOF
20132 /* confdefs.h. */
20133 _ACEOF
20134 cat confdefs.h >>conftest.$ac_ext
20135 cat >>conftest.$ac_ext <<_ACEOF
20136 /* end confdefs.h. */
20139 main ()
20141 /* FIXME: Include the comments suggested by Paul. */
20142 #ifndef __cplusplus
20143 /* Ultrix mips cc rejects this. */
20144 typedef int charset[2];
20145 const charset cs;
20146 /* SunOS 4.1.1 cc rejects this. */
20147 char const *const *pcpcc;
20148 char **ppc;
20149 /* NEC SVR4.0.2 mips cc rejects this. */
20150 struct point {int x, y;};
20151 static struct point const zero = {0,0};
20152 /* AIX XL C 1.02.0.0 rejects this.
20153 It does not let you subtract one const X* pointer from another in
20154 an arm of an if-expression whose if-part is not a constant
20155 expression */
20156 const char *g = "string";
20157 pcpcc = &g + (g ? g-g : 0);
20158 /* HPUX 7.0 cc rejects these. */
20159 ++pcpcc;
20160 ppc = (char**) pcpcc;
20161 pcpcc = (char const *const *) ppc;
20162 { /* SCO 3.2v4 cc rejects this. */
20163 char *t;
20164 char const *s = 0 ? (char *) 0 : (char const *) 0;
20166 *t++ = 0;
20167 if (s) return 0;
20169 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
20170 int x[] = {25, 17};
20171 const int *foo = &x[0];
20172 ++foo;
20174 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
20175 typedef const int *iptr;
20176 iptr p = 0;
20177 ++p;
20179 { /* AIX XL C 1.02.0.0 rejects this saying
20180 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
20181 struct s { int j; const int *ap[3]; };
20182 struct s *b; b->j = 5;
20184 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
20185 const int foo = 10;
20186 if (!foo) return 0;
20188 return !cs[0] && !zero.x;
20189 #endif
20192 return 0;
20194 _ACEOF
20195 rm -f conftest.$ac_objext
20196 if { (ac_try="$ac_compile"
20197 case "(($ac_try" in
20198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20199 *) ac_try_echo=$ac_try;;
20200 esac
20201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20202 (eval "$ac_compile") 2>conftest.er1
20203 ac_status=$?
20204 grep -v '^ *+' conftest.er1 >conftest.err
20205 rm -f conftest.er1
20206 cat conftest.err >&5
20207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20208 (exit $ac_status); } && {
20209 test -z "$ac_c_werror_flag" ||
20210 test ! -s conftest.err
20211 } && test -s conftest.$ac_objext; then
20212 ac_cv_c_const=yes
20213 else
20214 echo "$as_me: failed program was:" >&5
20215 sed 's/^/| /' conftest.$ac_ext >&5
20217 ac_cv_c_const=no
20220 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20222 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
20223 echo "${ECHO_T}$ac_cv_c_const" >&6; }
20224 if test $ac_cv_c_const = no; then
20226 cat >>confdefs.h <<\_ACEOF
20227 #define const
20228 _ACEOF
20232 { echo "$as_me:$LINENO: checking for long *" >&5
20233 echo $ECHO_N "checking for long *... $ECHO_C" >&6; }
20234 if test "${ac_cv_type_long_p+set}" = set; then
20235 echo $ECHO_N "(cached) $ECHO_C" >&6
20236 else
20237 cat >conftest.$ac_ext <<_ACEOF
20238 /* confdefs.h. */
20239 _ACEOF
20240 cat confdefs.h >>conftest.$ac_ext
20241 cat >>conftest.$ac_ext <<_ACEOF
20242 /* end confdefs.h. */
20243 $ac_includes_default
20244 typedef long * ac__type_new_;
20246 main ()
20248 if ((ac__type_new_ *) 0)
20249 return 0;
20250 if (sizeof (ac__type_new_))
20251 return 0;
20253 return 0;
20255 _ACEOF
20256 rm -f conftest.$ac_objext
20257 if { (ac_try="$ac_compile"
20258 case "(($ac_try" in
20259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20260 *) ac_try_echo=$ac_try;;
20261 esac
20262 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20263 (eval "$ac_compile") 2>conftest.er1
20264 ac_status=$?
20265 grep -v '^ *+' conftest.er1 >conftest.err
20266 rm -f conftest.er1
20267 cat conftest.err >&5
20268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20269 (exit $ac_status); } && {
20270 test -z "$ac_c_werror_flag" ||
20271 test ! -s conftest.err
20272 } && test -s conftest.$ac_objext; then
20273 ac_cv_type_long_p=yes
20274 else
20275 echo "$as_me: failed program was:" >&5
20276 sed 's/^/| /' conftest.$ac_ext >&5
20278 ac_cv_type_long_p=no
20281 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20283 { echo "$as_me:$LINENO: result: $ac_cv_type_long_p" >&5
20284 echo "${ECHO_T}$ac_cv_type_long_p" >&6; }
20286 # The cast to long int works around a bug in the HP C Compiler
20287 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20288 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20289 # This bug is HP SR number 8606223364.
20290 { echo "$as_me:$LINENO: checking size of long *" >&5
20291 echo $ECHO_N "checking size of long *... $ECHO_C" >&6; }
20292 if test "${ac_cv_sizeof_long_p+set}" = set; then
20293 echo $ECHO_N "(cached) $ECHO_C" >&6
20294 else
20295 if test "$cross_compiling" = yes; then
20296 # Depending upon the size, compute the lo and hi bounds.
20297 cat >conftest.$ac_ext <<_ACEOF
20298 /* confdefs.h. */
20299 _ACEOF
20300 cat confdefs.h >>conftest.$ac_ext
20301 cat >>conftest.$ac_ext <<_ACEOF
20302 /* end confdefs.h. */
20303 $ac_includes_default
20304 typedef long * ac__type_sizeof_;
20306 main ()
20308 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
20309 test_array [0] = 0
20312 return 0;
20314 _ACEOF
20315 rm -f conftest.$ac_objext
20316 if { (ac_try="$ac_compile"
20317 case "(($ac_try" in
20318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20319 *) ac_try_echo=$ac_try;;
20320 esac
20321 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20322 (eval "$ac_compile") 2>conftest.er1
20323 ac_status=$?
20324 grep -v '^ *+' conftest.er1 >conftest.err
20325 rm -f conftest.er1
20326 cat conftest.err >&5
20327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20328 (exit $ac_status); } && {
20329 test -z "$ac_c_werror_flag" ||
20330 test ! -s conftest.err
20331 } && test -s conftest.$ac_objext; then
20332 ac_lo=0 ac_mid=0
20333 while :; do
20334 cat >conftest.$ac_ext <<_ACEOF
20335 /* confdefs.h. */
20336 _ACEOF
20337 cat confdefs.h >>conftest.$ac_ext
20338 cat >>conftest.$ac_ext <<_ACEOF
20339 /* end confdefs.h. */
20340 $ac_includes_default
20341 typedef long * ac__type_sizeof_;
20343 main ()
20345 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
20346 test_array [0] = 0
20349 return 0;
20351 _ACEOF
20352 rm -f conftest.$ac_objext
20353 if { (ac_try="$ac_compile"
20354 case "(($ac_try" in
20355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20356 *) ac_try_echo=$ac_try;;
20357 esac
20358 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20359 (eval "$ac_compile") 2>conftest.er1
20360 ac_status=$?
20361 grep -v '^ *+' conftest.er1 >conftest.err
20362 rm -f conftest.er1
20363 cat conftest.err >&5
20364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20365 (exit $ac_status); } && {
20366 test -z "$ac_c_werror_flag" ||
20367 test ! -s conftest.err
20368 } && test -s conftest.$ac_objext; then
20369 ac_hi=$ac_mid; break
20370 else
20371 echo "$as_me: failed program was:" >&5
20372 sed 's/^/| /' conftest.$ac_ext >&5
20374 ac_lo=`expr $ac_mid + 1`
20375 if test $ac_lo -le $ac_mid; then
20376 ac_lo= ac_hi=
20377 break
20379 ac_mid=`expr 2 '*' $ac_mid + 1`
20382 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20383 done
20384 else
20385 echo "$as_me: failed program was:" >&5
20386 sed 's/^/| /' conftest.$ac_ext >&5
20388 cat >conftest.$ac_ext <<_ACEOF
20389 /* confdefs.h. */
20390 _ACEOF
20391 cat confdefs.h >>conftest.$ac_ext
20392 cat >>conftest.$ac_ext <<_ACEOF
20393 /* end confdefs.h. */
20394 $ac_includes_default
20395 typedef long * ac__type_sizeof_;
20397 main ()
20399 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
20400 test_array [0] = 0
20403 return 0;
20405 _ACEOF
20406 rm -f conftest.$ac_objext
20407 if { (ac_try="$ac_compile"
20408 case "(($ac_try" in
20409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20410 *) ac_try_echo=$ac_try;;
20411 esac
20412 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20413 (eval "$ac_compile") 2>conftest.er1
20414 ac_status=$?
20415 grep -v '^ *+' conftest.er1 >conftest.err
20416 rm -f conftest.er1
20417 cat conftest.err >&5
20418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20419 (exit $ac_status); } && {
20420 test -z "$ac_c_werror_flag" ||
20421 test ! -s conftest.err
20422 } && test -s conftest.$ac_objext; then
20423 ac_hi=-1 ac_mid=-1
20424 while :; do
20425 cat >conftest.$ac_ext <<_ACEOF
20426 /* confdefs.h. */
20427 _ACEOF
20428 cat confdefs.h >>conftest.$ac_ext
20429 cat >>conftest.$ac_ext <<_ACEOF
20430 /* end confdefs.h. */
20431 $ac_includes_default
20432 typedef long * ac__type_sizeof_;
20434 main ()
20436 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
20437 test_array [0] = 0
20440 return 0;
20442 _ACEOF
20443 rm -f conftest.$ac_objext
20444 if { (ac_try="$ac_compile"
20445 case "(($ac_try" in
20446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20447 *) ac_try_echo=$ac_try;;
20448 esac
20449 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20450 (eval "$ac_compile") 2>conftest.er1
20451 ac_status=$?
20452 grep -v '^ *+' conftest.er1 >conftest.err
20453 rm -f conftest.er1
20454 cat conftest.err >&5
20455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20456 (exit $ac_status); } && {
20457 test -z "$ac_c_werror_flag" ||
20458 test ! -s conftest.err
20459 } && test -s conftest.$ac_objext; then
20460 ac_lo=$ac_mid; break
20461 else
20462 echo "$as_me: failed program was:" >&5
20463 sed 's/^/| /' conftest.$ac_ext >&5
20465 ac_hi=`expr '(' $ac_mid ')' - 1`
20466 if test $ac_mid -le $ac_hi; then
20467 ac_lo= ac_hi=
20468 break
20470 ac_mid=`expr 2 '*' $ac_mid`
20473 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20474 done
20475 else
20476 echo "$as_me: failed program was:" >&5
20477 sed 's/^/| /' conftest.$ac_ext >&5
20479 ac_lo= ac_hi=
20482 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20485 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20486 # Binary search between lo and hi bounds.
20487 while test "x$ac_lo" != "x$ac_hi"; do
20488 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
20489 cat >conftest.$ac_ext <<_ACEOF
20490 /* confdefs.h. */
20491 _ACEOF
20492 cat confdefs.h >>conftest.$ac_ext
20493 cat >>conftest.$ac_ext <<_ACEOF
20494 /* end confdefs.h. */
20495 $ac_includes_default
20496 typedef long * ac__type_sizeof_;
20498 main ()
20500 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
20501 test_array [0] = 0
20504 return 0;
20506 _ACEOF
20507 rm -f conftest.$ac_objext
20508 if { (ac_try="$ac_compile"
20509 case "(($ac_try" in
20510 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20511 *) ac_try_echo=$ac_try;;
20512 esac
20513 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20514 (eval "$ac_compile") 2>conftest.er1
20515 ac_status=$?
20516 grep -v '^ *+' conftest.er1 >conftest.err
20517 rm -f conftest.er1
20518 cat conftest.err >&5
20519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20520 (exit $ac_status); } && {
20521 test -z "$ac_c_werror_flag" ||
20522 test ! -s conftest.err
20523 } && test -s conftest.$ac_objext; then
20524 ac_hi=$ac_mid
20525 else
20526 echo "$as_me: failed program was:" >&5
20527 sed 's/^/| /' conftest.$ac_ext >&5
20529 ac_lo=`expr '(' $ac_mid ')' + 1`
20532 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20533 done
20534 case $ac_lo in
20535 ?*) ac_cv_sizeof_long_p=$ac_lo;;
20536 '') if test "$ac_cv_type_long_p" = yes; then
20537 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long *)
20538 See \`config.log' for more details." >&5
20539 echo "$as_me: error: cannot compute sizeof (long *)
20540 See \`config.log' for more details." >&2;}
20541 { (exit 77); exit 77; }; }
20542 else
20543 ac_cv_sizeof_long_p=0
20544 fi ;;
20545 esac
20546 else
20547 cat >conftest.$ac_ext <<_ACEOF
20548 /* confdefs.h. */
20549 _ACEOF
20550 cat confdefs.h >>conftest.$ac_ext
20551 cat >>conftest.$ac_ext <<_ACEOF
20552 /* end confdefs.h. */
20553 $ac_includes_default
20554 typedef long * ac__type_sizeof_;
20555 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
20556 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
20557 #include <stdio.h>
20558 #include <stdlib.h>
20560 main ()
20563 FILE *f = fopen ("conftest.val", "w");
20564 if (! f)
20565 return 1;
20566 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
20568 long int i = longval ();
20569 if (i != ((long int) (sizeof (ac__type_sizeof_))))
20570 return 1;
20571 fprintf (f, "%ld\n", i);
20573 else
20575 unsigned long int i = ulongval ();
20576 if (i != ((long int) (sizeof (ac__type_sizeof_))))
20577 return 1;
20578 fprintf (f, "%lu\n", i);
20580 return ferror (f) || fclose (f) != 0;
20583 return 0;
20585 _ACEOF
20586 rm -f conftest$ac_exeext
20587 if { (ac_try="$ac_link"
20588 case "(($ac_try" in
20589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20590 *) ac_try_echo=$ac_try;;
20591 esac
20592 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20593 (eval "$ac_link") 2>&5
20594 ac_status=$?
20595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20596 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20597 { (case "(($ac_try" in
20598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20599 *) ac_try_echo=$ac_try;;
20600 esac
20601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20602 (eval "$ac_try") 2>&5
20603 ac_status=$?
20604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20605 (exit $ac_status); }; }; then
20606 ac_cv_sizeof_long_p=`cat conftest.val`
20607 else
20608 echo "$as_me: program exited with status $ac_status" >&5
20609 echo "$as_me: failed program was:" >&5
20610 sed 's/^/| /' conftest.$ac_ext >&5
20612 ( exit $ac_status )
20613 if test "$ac_cv_type_long_p" = yes; then
20614 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long *)
20615 See \`config.log' for more details." >&5
20616 echo "$as_me: error: cannot compute sizeof (long *)
20617 See \`config.log' for more details." >&2;}
20618 { (exit 77); exit 77; }; }
20619 else
20620 ac_cv_sizeof_long_p=0
20623 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20625 rm -f conftest.val
20627 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_p" >&5
20628 echo "${ECHO_T}$ac_cv_sizeof_long_p" >&6; }
20632 cat >>confdefs.h <<_ACEOF
20633 #define SIZEOF_LONG_P $ac_cv_sizeof_long_p
20634 _ACEOF
20638 # Checks for library functions.
20639 { echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
20640 echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6; }
20641 if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
20642 echo $ECHO_N "(cached) $ECHO_C" >&6
20643 else
20644 rm -f conftest.sym conftest.file
20645 echo >conftest.file
20646 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
20647 if test "$cross_compiling" = yes; then
20648 ac_cv_func_lstat_dereferences_slashed_symlink=no
20649 else
20650 cat >conftest.$ac_ext <<_ACEOF
20651 /* confdefs.h. */
20652 _ACEOF
20653 cat confdefs.h >>conftest.$ac_ext
20654 cat >>conftest.$ac_ext <<_ACEOF
20655 /* end confdefs.h. */
20656 $ac_includes_default
20658 main ()
20660 struct stat sbuf;
20661 /* Linux will dereference the symlink and fail.
20662 That is better in the sense that it means we will not
20663 have to compile and use the lstat wrapper. */
20664 return lstat ("conftest.sym/", &sbuf) == 0;
20666 return 0;
20668 _ACEOF
20669 rm -f conftest$ac_exeext
20670 if { (ac_try="$ac_link"
20671 case "(($ac_try" in
20672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20673 *) ac_try_echo=$ac_try;;
20674 esac
20675 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20676 (eval "$ac_link") 2>&5
20677 ac_status=$?
20678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20679 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20680 { (case "(($ac_try" in
20681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20682 *) ac_try_echo=$ac_try;;
20683 esac
20684 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20685 (eval "$ac_try") 2>&5
20686 ac_status=$?
20687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20688 (exit $ac_status); }; }; then
20689 ac_cv_func_lstat_dereferences_slashed_symlink=yes
20690 else
20691 echo "$as_me: program exited with status $ac_status" >&5
20692 echo "$as_me: failed program was:" >&5
20693 sed 's/^/| /' conftest.$ac_ext >&5
20695 ( exit $ac_status )
20696 ac_cv_func_lstat_dereferences_slashed_symlink=no
20698 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20702 else
20703 # If the `ln -s' command failed, then we probably don't even
20704 # have an lstat function.
20705 ac_cv_func_lstat_dereferences_slashed_symlink=no
20707 rm -f conftest.sym conftest.file
20710 { echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
20711 echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
20713 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
20715 cat >>confdefs.h <<_ACEOF
20716 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
20717 _ACEOF
20720 if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
20721 case " $LIBOBJS " in
20722 *" lstat.$ac_objext "* ) ;;
20723 *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
20725 esac
20729 { echo "$as_me:$LINENO: checking whether stat accepts an empty string" >&5
20730 echo $ECHO_N "checking whether stat accepts an empty string... $ECHO_C" >&6; }
20731 if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then
20732 echo $ECHO_N "(cached) $ECHO_C" >&6
20733 else
20734 if test "$cross_compiling" = yes; then
20735 ac_cv_func_stat_empty_string_bug=yes
20736 else
20737 cat >conftest.$ac_ext <<_ACEOF
20738 /* confdefs.h. */
20739 _ACEOF
20740 cat confdefs.h >>conftest.$ac_ext
20741 cat >>conftest.$ac_ext <<_ACEOF
20742 /* end confdefs.h. */
20743 $ac_includes_default
20745 main ()
20747 struct stat sbuf;
20748 return stat ("", &sbuf) == 0;
20750 return 0;
20752 _ACEOF
20753 rm -f conftest$ac_exeext
20754 if { (ac_try="$ac_link"
20755 case "(($ac_try" in
20756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20757 *) ac_try_echo=$ac_try;;
20758 esac
20759 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20760 (eval "$ac_link") 2>&5
20761 ac_status=$?
20762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20763 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20764 { (case "(($ac_try" in
20765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20766 *) ac_try_echo=$ac_try;;
20767 esac
20768 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20769 (eval "$ac_try") 2>&5
20770 ac_status=$?
20771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20772 (exit $ac_status); }; }; then
20773 ac_cv_func_stat_empty_string_bug=no
20774 else
20775 echo "$as_me: program exited with status $ac_status" >&5
20776 echo "$as_me: failed program was:" >&5
20777 sed 's/^/| /' conftest.$ac_ext >&5
20779 ( exit $ac_status )
20780 ac_cv_func_stat_empty_string_bug=yes
20782 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20787 { echo "$as_me:$LINENO: result: $ac_cv_func_stat_empty_string_bug" >&5
20788 echo "${ECHO_T}$ac_cv_func_stat_empty_string_bug" >&6; }
20789 if test $ac_cv_func_stat_empty_string_bug = yes; then
20790 case " $LIBOBJS " in
20791 *" stat.$ac_objext "* ) ;;
20792 *) LIBOBJS="$LIBOBJS stat.$ac_objext"
20794 esac
20797 cat >>confdefs.h <<_ACEOF
20798 #define HAVE_STAT_EMPTY_STRING_BUG 1
20799 _ACEOF
20804 ac_config_files="$ac_config_files Makefile src/Makefile src/fs/Makefile src/tests/Makefile"
20806 cat >confcache <<\_ACEOF
20807 # This file is a shell script that caches the results of configure
20808 # tests run on this system so they can be shared between configure
20809 # scripts and configure runs, see configure's option --config-cache.
20810 # It is not useful on other systems. If it contains results you don't
20811 # want to keep, you may remove or edit it.
20813 # config.status only pays attention to the cache file if you give it
20814 # the --recheck option to rerun configure.
20816 # `ac_cv_env_foo' variables (set or unset) will be overridden when
20817 # loading this file, other *unset* `ac_cv_foo' will be assigned the
20818 # following values.
20820 _ACEOF
20822 # The following way of writing the cache mishandles newlines in values,
20823 # but we know of no workaround that is simple, portable, and efficient.
20824 # So, we kill variables containing newlines.
20825 # Ultrix sh set writes to stderr and can't be redirected directly,
20826 # and sets the high bit in the cache file unless we assign to the vars.
20828 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
20829 eval ac_val=\$$ac_var
20830 case $ac_val in #(
20831 *${as_nl}*)
20832 case $ac_var in #(
20833 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
20834 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
20835 esac
20836 case $ac_var in #(
20837 _ | IFS | as_nl) ;; #(
20838 *) $as_unset $ac_var ;;
20839 esac ;;
20840 esac
20841 done
20843 (set) 2>&1 |
20844 case $as_nl`(ac_space=' '; set) 2>&1` in #(
20845 *${as_nl}ac_space=\ *)
20846 # `set' does not quote correctly, so add quotes (double-quote
20847 # substitution turns \\\\ into \\, and sed turns \\ into \).
20848 sed -n \
20849 "s/'/'\\\\''/g;
20850 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
20851 ;; #(
20853 # `set' quotes correctly as required by POSIX, so do not add quotes.
20854 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
20856 esac |
20857 sort
20859 sed '
20860 /^ac_cv_env_/b end
20861 t clear
20862 :clear
20863 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20864 t end
20865 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20866 :end' >>confcache
20867 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
20868 if test -w "$cache_file"; then
20869 test "x$cache_file" != "x/dev/null" &&
20870 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
20871 echo "$as_me: updating cache $cache_file" >&6;}
20872 cat confcache >$cache_file
20873 else
20874 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
20875 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
20878 rm -f confcache
20880 test "x$prefix" = xNONE && prefix=$ac_default_prefix
20881 # Let make expand exec_prefix.
20882 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20884 DEFS=-DHAVE_CONFIG_H
20886 ac_libobjs=
20887 ac_ltlibobjs=
20888 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20889 # 1. Remove the extension, and $U if already installed.
20890 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
20891 ac_i=`echo "$ac_i" | sed "$ac_script"`
20892 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
20893 # will be set to the directory where LIBOBJS objects are built.
20894 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
20895 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
20896 done
20897 LIBOBJS=$ac_libobjs
20899 LTLIBOBJS=$ac_ltlibobjs
20902 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
20903 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
20904 Usually this means the macro was only invoked conditionally." >&5
20905 echo "$as_me: error: conditional \"AMDEP\" was never defined.
20906 Usually this means the macro was only invoked conditionally." >&2;}
20907 { (exit 1); exit 1; }; }
20909 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
20910 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
20911 Usually this means the macro was only invoked conditionally." >&5
20912 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
20913 Usually this means the macro was only invoked conditionally." >&2;}
20914 { (exit 1); exit 1; }; }
20916 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
20917 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
20918 Usually this means the macro was only invoked conditionally." >&5
20919 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
20920 Usually this means the macro was only invoked conditionally." >&2;}
20921 { (exit 1); exit 1; }; }
20924 : ${CONFIG_STATUS=./config.status}
20925 ac_clean_files_save=$ac_clean_files
20926 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
20927 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
20928 echo "$as_me: creating $CONFIG_STATUS" >&6;}
20929 cat >$CONFIG_STATUS <<_ACEOF
20930 #! $SHELL
20931 # Generated by $as_me.
20932 # Run this file to recreate the current configuration.
20933 # Compiler output produced by configure, useful for debugging
20934 # configure, is in config.log if it exists.
20936 debug=false
20937 ac_cs_recheck=false
20938 ac_cs_silent=false
20939 SHELL=\${CONFIG_SHELL-$SHELL}
20940 _ACEOF
20942 cat >>$CONFIG_STATUS <<\_ACEOF
20943 ## --------------------- ##
20944 ## M4sh Initialization. ##
20945 ## --------------------- ##
20947 # Be more Bourne compatible
20948 DUALCASE=1; export DUALCASE # for MKS sh
20949 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
20950 emulate sh
20951 NULLCMD=:
20952 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20953 # is contrary to our usage. Disable this feature.
20954 alias -g '${1+"$@"}'='"$@"'
20955 setopt NO_GLOB_SUBST
20956 else
20957 case `(set -o) 2>/dev/null` in
20958 *posix*) set -o posix ;;
20959 esac
20966 # PATH needs CR
20967 # Avoid depending upon Character Ranges.
20968 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20969 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20970 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20971 as_cr_digits='0123456789'
20972 as_cr_alnum=$as_cr_Letters$as_cr_digits
20974 # The user is always right.
20975 if test "${PATH_SEPARATOR+set}" != set; then
20976 echo "#! /bin/sh" >conf$$.sh
20977 echo "exit 0" >>conf$$.sh
20978 chmod +x conf$$.sh
20979 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
20980 PATH_SEPARATOR=';'
20981 else
20982 PATH_SEPARATOR=:
20984 rm -f conf$$.sh
20987 # Support unset when possible.
20988 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
20989 as_unset=unset
20990 else
20991 as_unset=false
20995 # IFS
20996 # We need space, tab and new line, in precisely that order. Quoting is
20997 # there to prevent editors from complaining about space-tab.
20998 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
20999 # splitting by setting IFS to empty value.)
21000 as_nl='
21002 IFS=" "" $as_nl"
21004 # Find who we are. Look in the path if we contain no directory separator.
21005 case $0 in
21006 *[\\/]* ) as_myself=$0 ;;
21007 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21008 for as_dir in $PATH
21010 IFS=$as_save_IFS
21011 test -z "$as_dir" && as_dir=.
21012 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21013 done
21014 IFS=$as_save_IFS
21017 esac
21018 # We did not find ourselves, most probably we were run as `sh COMMAND'
21019 # in which case we are not to be found in the path.
21020 if test "x$as_myself" = x; then
21021 as_myself=$0
21023 if test ! -f "$as_myself"; then
21024 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
21025 { (exit 1); exit 1; }
21028 # Work around bugs in pre-3.0 UWIN ksh.
21029 for as_var in ENV MAIL MAILPATH
21030 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21031 done
21032 PS1='$ '
21033 PS2='> '
21034 PS4='+ '
21036 # NLS nuisances.
21037 for as_var in \
21038 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
21039 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
21040 LC_TELEPHONE LC_TIME
21042 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
21043 eval $as_var=C; export $as_var
21044 else
21045 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21047 done
21049 # Required to use basename.
21050 if expr a : '\(a\)' >/dev/null 2>&1 &&
21051 test "X`expr 00001 : '.*\(...\)'`" = X001; then
21052 as_expr=expr
21053 else
21054 as_expr=false
21057 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
21058 as_basename=basename
21059 else
21060 as_basename=false
21064 # Name of the executable.
21065 as_me=`$as_basename -- "$0" ||
21066 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21067 X"$0" : 'X\(//\)$' \| \
21068 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
21069 echo X/"$0" |
21070 sed '/^.*\/\([^/][^/]*\)\/*$/{
21071 s//\1/
21074 /^X\/\(\/\/\)$/{
21075 s//\1/
21078 /^X\/\(\/\).*/{
21079 s//\1/
21082 s/.*/./; q'`
21084 # CDPATH.
21085 $as_unset CDPATH
21089 as_lineno_1=$LINENO
21090 as_lineno_2=$LINENO
21091 test "x$as_lineno_1" != "x$as_lineno_2" &&
21092 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
21094 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21095 # uniformly replaced by the line number. The first 'sed' inserts a
21096 # line-number line after each line using $LINENO; the second 'sed'
21097 # does the real work. The second script uses 'N' to pair each
21098 # line-number line with the line containing $LINENO, and appends
21099 # trailing '-' during substitution so that $LINENO is not a special
21100 # case at line end.
21101 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
21102 # scripts with optimization help from Paolo Bonzini. Blame Lee
21103 # E. McMahon (1931-1989) for sed's syntax. :-)
21104 sed -n '
21106 /[$]LINENO/=
21107 ' <$as_myself |
21108 sed '
21109 s/[$]LINENO.*/&-/
21110 t lineno
21112 :lineno
21114 :loop
21115 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
21116 t loop
21117 s/-\n.*//
21118 ' >$as_me.lineno &&
21119 chmod +x "$as_me.lineno" ||
21120 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
21121 { (exit 1); exit 1; }; }
21123 # Don't try to exec as it changes $[0], causing all sort of problems
21124 # (the dirname of $[0] is not the place where we might find the
21125 # original and so on. Autoconf is especially sensitive to this).
21126 . "./$as_me.lineno"
21127 # Exit status is that of the last command.
21128 exit
21132 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
21133 as_dirname=dirname
21134 else
21135 as_dirname=false
21138 ECHO_C= ECHO_N= ECHO_T=
21139 case `echo -n x` in
21140 -n*)
21141 case `echo 'x\c'` in
21142 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
21143 *) ECHO_C='\c';;
21144 esac;;
21146 ECHO_N='-n';;
21147 esac
21149 if expr a : '\(a\)' >/dev/null 2>&1 &&
21150 test "X`expr 00001 : '.*\(...\)'`" = X001; then
21151 as_expr=expr
21152 else
21153 as_expr=false
21156 rm -f conf$$ conf$$.exe conf$$.file
21157 if test -d conf$$.dir; then
21158 rm -f conf$$.dir/conf$$.file
21159 else
21160 rm -f conf$$.dir
21161 mkdir conf$$.dir
21163 echo >conf$$.file
21164 if ln -s conf$$.file conf$$ 2>/dev/null; then
21165 as_ln_s='ln -s'
21166 # ... but there are two gotchas:
21167 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
21168 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
21169 # In both cases, we have to default to `cp -p'.
21170 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
21171 as_ln_s='cp -p'
21172 elif ln conf$$.file conf$$ 2>/dev/null; then
21173 as_ln_s=ln
21174 else
21175 as_ln_s='cp -p'
21177 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
21178 rmdir conf$$.dir 2>/dev/null
21180 if mkdir -p . 2>/dev/null; then
21181 as_mkdir_p=:
21182 else
21183 test -d ./-p && rmdir ./-p
21184 as_mkdir_p=false
21187 if test -x / >/dev/null 2>&1; then
21188 as_test_x='test -x'
21189 else
21190 if ls -dL / >/dev/null 2>&1; then
21191 as_ls_L_option=L
21192 else
21193 as_ls_L_option=
21195 as_test_x='
21196 eval sh -c '\''
21197 if test -d "$1"; then
21198 test -d "$1/.";
21199 else
21200 case $1 in
21201 -*)set "./$1";;
21202 esac;
21203 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
21204 ???[sx]*):;;*)false;;esac;fi
21205 '\'' sh
21208 as_executable_p=$as_test_x
21210 # Sed expression to map a string onto a valid CPP name.
21211 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21213 # Sed expression to map a string onto a valid variable name.
21214 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21217 exec 6>&1
21219 # Save the log message, to keep $[0] and so on meaningful, and to
21220 # report actual input values of CONFIG_FILES etc. instead of their
21221 # values after options handling.
21222 ac_log="
21223 This file was extended by vimicxx $as_me 0.1, which was
21224 generated by GNU Autoconf 2.61. Invocation command line was
21226 CONFIG_FILES = $CONFIG_FILES
21227 CONFIG_HEADERS = $CONFIG_HEADERS
21228 CONFIG_LINKS = $CONFIG_LINKS
21229 CONFIG_COMMANDS = $CONFIG_COMMANDS
21230 $ $0 $@
21232 on `(hostname || uname -n) 2>/dev/null | sed 1q`
21235 _ACEOF
21237 cat >>$CONFIG_STATUS <<_ACEOF
21238 # Files that config.status was made for.
21239 config_files="$ac_config_files"
21240 config_headers="$ac_config_headers"
21241 config_commands="$ac_config_commands"
21243 _ACEOF
21245 cat >>$CONFIG_STATUS <<\_ACEOF
21246 ac_cs_usage="\
21247 \`$as_me' instantiates files from templates according to the
21248 current configuration.
21250 Usage: $0 [OPTIONS] [FILE]...
21252 -h, --help print this help, then exit
21253 -V, --version print version number and configuration settings, then exit
21254 -q, --quiet do not print progress messages
21255 -d, --debug don't remove temporary files
21256 --recheck update $as_me by reconfiguring in the same conditions
21257 --file=FILE[:TEMPLATE]
21258 instantiate the configuration file FILE
21259 --header=FILE[:TEMPLATE]
21260 instantiate the configuration header FILE
21262 Configuration files:
21263 $config_files
21265 Configuration headers:
21266 $config_headers
21268 Configuration commands:
21269 $config_commands
21271 Report bugs to <bug-autoconf@gnu.org>."
21273 _ACEOF
21274 cat >>$CONFIG_STATUS <<_ACEOF
21275 ac_cs_version="\\
21276 vimicxx config.status 0.1
21277 configured by $0, generated by GNU Autoconf 2.61,
21278 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
21280 Copyright (C) 2006 Free Software Foundation, Inc.
21281 This config.status script is free software; the Free Software Foundation
21282 gives unlimited permission to copy, distribute and modify it."
21284 ac_pwd='$ac_pwd'
21285 srcdir='$srcdir'
21286 INSTALL='$INSTALL'
21287 MKDIR_P='$MKDIR_P'
21288 _ACEOF
21290 cat >>$CONFIG_STATUS <<\_ACEOF
21291 # If no file are specified by the user, then we need to provide default
21292 # value. By we need to know if files were specified by the user.
21293 ac_need_defaults=:
21294 while test $# != 0
21296 case $1 in
21297 --*=*)
21298 ac_option=`expr "X$1" : 'X\([^=]*\)='`
21299 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
21300 ac_shift=:
21303 ac_option=$1
21304 ac_optarg=$2
21305 ac_shift=shift
21307 esac
21309 case $ac_option in
21310 # Handling of the options.
21311 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21312 ac_cs_recheck=: ;;
21313 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
21314 echo "$ac_cs_version"; exit ;;
21315 --debug | --debu | --deb | --de | --d | -d )
21316 debug=: ;;
21317 --file | --fil | --fi | --f )
21318 $ac_shift
21319 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
21320 ac_need_defaults=false;;
21321 --header | --heade | --head | --hea )
21322 $ac_shift
21323 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
21324 ac_need_defaults=false;;
21325 --he | --h)
21326 # Conflict between --help and --header
21327 { echo "$as_me: error: ambiguous option: $1
21328 Try \`$0 --help' for more information." >&2
21329 { (exit 1); exit 1; }; };;
21330 --help | --hel | -h )
21331 echo "$ac_cs_usage"; exit ;;
21332 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21333 | -silent | --silent | --silen | --sile | --sil | --si | --s)
21334 ac_cs_silent=: ;;
21336 # This is an error.
21337 -*) { echo "$as_me: error: unrecognized option: $1
21338 Try \`$0 --help' for more information." >&2
21339 { (exit 1); exit 1; }; } ;;
21341 *) ac_config_targets="$ac_config_targets $1"
21342 ac_need_defaults=false ;;
21344 esac
21345 shift
21346 done
21348 ac_configure_extra_args=
21350 if $ac_cs_silent; then
21351 exec 6>/dev/null
21352 ac_configure_extra_args="$ac_configure_extra_args --silent"
21355 _ACEOF
21356 cat >>$CONFIG_STATUS <<_ACEOF
21357 if \$ac_cs_recheck; then
21358 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
21359 CONFIG_SHELL=$SHELL
21360 export CONFIG_SHELL
21361 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21364 _ACEOF
21365 cat >>$CONFIG_STATUS <<\_ACEOF
21366 exec 5>>config.log
21368 echo
21369 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21370 ## Running $as_me. ##
21371 _ASBOX
21372 echo "$ac_log"
21373 } >&5
21375 _ACEOF
21376 cat >>$CONFIG_STATUS <<_ACEOF
21378 # INIT-COMMANDS
21380 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
21382 _ACEOF
21384 cat >>$CONFIG_STATUS <<\_ACEOF
21386 # Handling of arguments.
21387 for ac_config_target in $ac_config_targets
21389 case $ac_config_target in
21390 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
21391 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
21392 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
21393 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
21394 "src/fs/Makefile") CONFIG_FILES="$CONFIG_FILES src/fs/Makefile" ;;
21395 "src/tests/Makefile") CONFIG_FILES="$CONFIG_FILES src/tests/Makefile" ;;
21397 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
21398 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21399 { (exit 1); exit 1; }; };;
21400 esac
21401 done
21404 # If the user did not use the arguments to specify the items to instantiate,
21405 # then the envvar interface is used. Set only those that are not.
21406 # We use the long form for the default assignment because of an extremely
21407 # bizarre bug on SunOS 4.1.3.
21408 if $ac_need_defaults; then
21409 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21410 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
21411 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21414 # Have a temporary directory for convenience. Make it in the build tree
21415 # simply because there is no reason against having it here, and in addition,
21416 # creating and moving files from /tmp can sometimes cause problems.
21417 # Hook for its removal unless debugging.
21418 # Note that there is a small window in which the directory will not be cleaned:
21419 # after its creation but before its name has been assigned to `$tmp'.
21420 $debug ||
21422 tmp=
21423 trap 'exit_status=$?
21424 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
21426 trap '{ (exit 1); exit 1; }' 1 2 13 15
21428 # Create a (secure) tmp directory for tmp files.
21431 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
21432 test -n "$tmp" && test -d "$tmp"
21433 } ||
21435 tmp=./conf$$-$RANDOM
21436 (umask 077 && mkdir "$tmp")
21437 } ||
21439 echo "$me: cannot create a temporary directory in ." >&2
21440 { (exit 1); exit 1; }
21444 # Set up the sed scripts for CONFIG_FILES section.
21447 # No need to generate the scripts if there are no CONFIG_FILES.
21448 # This happens for instance when ./config.status config.h
21449 if test -n "$CONFIG_FILES"; then
21451 _ACEOF
21455 ac_delim='%!_!# '
21456 for ac_last_try in false false false false false :; do
21457 cat >conf$$subs.sed <<_ACEOF
21458 SHELL!$SHELL$ac_delim
21459 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
21460 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
21461 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
21462 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
21463 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
21464 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
21465 exec_prefix!$exec_prefix$ac_delim
21466 prefix!$prefix$ac_delim
21467 program_transform_name!$program_transform_name$ac_delim
21468 bindir!$bindir$ac_delim
21469 sbindir!$sbindir$ac_delim
21470 libexecdir!$libexecdir$ac_delim
21471 datarootdir!$datarootdir$ac_delim
21472 datadir!$datadir$ac_delim
21473 sysconfdir!$sysconfdir$ac_delim
21474 sharedstatedir!$sharedstatedir$ac_delim
21475 localstatedir!$localstatedir$ac_delim
21476 includedir!$includedir$ac_delim
21477 oldincludedir!$oldincludedir$ac_delim
21478 docdir!$docdir$ac_delim
21479 infodir!$infodir$ac_delim
21480 htmldir!$htmldir$ac_delim
21481 dvidir!$dvidir$ac_delim
21482 pdfdir!$pdfdir$ac_delim
21483 psdir!$psdir$ac_delim
21484 libdir!$libdir$ac_delim
21485 localedir!$localedir$ac_delim
21486 mandir!$mandir$ac_delim
21487 DEFS!$DEFS$ac_delim
21488 ECHO_C!$ECHO_C$ac_delim
21489 ECHO_N!$ECHO_N$ac_delim
21490 ECHO_T!$ECHO_T$ac_delim
21491 LIBS!$LIBS$ac_delim
21492 build_alias!$build_alias$ac_delim
21493 host_alias!$host_alias$ac_delim
21494 target_alias!$target_alias$ac_delim
21495 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
21496 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
21497 INSTALL_DATA!$INSTALL_DATA$ac_delim
21498 am__isrc!$am__isrc$ac_delim
21499 CYGPATH_W!$CYGPATH_W$ac_delim
21500 PACKAGE!$PACKAGE$ac_delim
21501 VERSION!$VERSION$ac_delim
21502 ACLOCAL!$ACLOCAL$ac_delim
21503 AUTOCONF!$AUTOCONF$ac_delim
21504 AUTOMAKE!$AUTOMAKE$ac_delim
21505 AUTOHEADER!$AUTOHEADER$ac_delim
21506 MAKEINFO!$MAKEINFO$ac_delim
21507 install_sh!$install_sh$ac_delim
21508 STRIP!$STRIP$ac_delim
21509 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
21510 mkdir_p!$mkdir_p$ac_delim
21511 AWK!$AWK$ac_delim
21512 SET_MAKE!$SET_MAKE$ac_delim
21513 am__leading_dot!$am__leading_dot$ac_delim
21514 AMTAR!$AMTAR$ac_delim
21515 am__tar!$am__tar$ac_delim
21516 am__untar!$am__untar$ac_delim
21517 CXX!$CXX$ac_delim
21518 CXXFLAGS!$CXXFLAGS$ac_delim
21519 LDFLAGS!$LDFLAGS$ac_delim
21520 CPPFLAGS!$CPPFLAGS$ac_delim
21521 ac_ct_CXX!$ac_ct_CXX$ac_delim
21522 EXEEXT!$EXEEXT$ac_delim
21523 OBJEXT!$OBJEXT$ac_delim
21524 DEPDIR!$DEPDIR$ac_delim
21525 am__include!$am__include$ac_delim
21526 am__quote!$am__quote$ac_delim
21527 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
21528 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
21529 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
21530 CXXDEPMODE!$CXXDEPMODE$ac_delim
21531 am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
21532 am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
21533 CC!$CC$ac_delim
21534 CFLAGS!$CFLAGS$ac_delim
21535 ac_ct_CC!$ac_ct_CC$ac_delim
21536 CCDEPMODE!$CCDEPMODE$ac_delim
21537 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
21538 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
21539 build!$build$ac_delim
21540 build_cpu!$build_cpu$ac_delim
21541 build_vendor!$build_vendor$ac_delim
21542 build_os!$build_os$ac_delim
21543 host!$host$ac_delim
21544 host_cpu!$host_cpu$ac_delim
21545 host_vendor!$host_vendor$ac_delim
21546 host_os!$host_os$ac_delim
21547 SED!$SED$ac_delim
21548 GREP!$GREP$ac_delim
21549 EGREP!$EGREP$ac_delim
21550 LN_S!$LN_S$ac_delim
21551 ECHO!$ECHO$ac_delim
21552 AR!$AR$ac_delim
21553 RANLIB!$RANLIB$ac_delim
21554 DSYMUTIL!$DSYMUTIL$ac_delim
21555 _ACEOF
21557 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
21558 break
21559 elif $ac_last_try; then
21560 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21561 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21562 { (exit 1); exit 1; }; }
21563 else
21564 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21566 done
21568 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21569 if test -n "$ac_eof"; then
21570 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21571 ac_eof=`expr $ac_eof + 1`
21574 cat >>$CONFIG_STATUS <<_ACEOF
21575 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
21576 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21577 _ACEOF
21578 sed '
21579 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21580 s/^/s,@/; s/!/@,|#_!!_#|/
21583 s/'"$ac_delim"'$/,g/; t
21584 s/$/\\/; p
21585 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21586 ' >>$CONFIG_STATUS <conf$$subs.sed
21587 rm -f conf$$subs.sed
21588 cat >>$CONFIG_STATUS <<_ACEOF
21589 CEOF$ac_eof
21590 _ACEOF
21593 ac_delim='%!_!# '
21594 for ac_last_try in false false false false false :; do
21595 cat >conf$$subs.sed <<_ACEOF
21596 NMEDIT!$NMEDIT$ac_delim
21597 CPP!$CPP$ac_delim
21598 CXXCPP!$CXXCPP$ac_delim
21599 F77!$F77$ac_delim
21600 FFLAGS!$FFLAGS$ac_delim
21601 ac_ct_F77!$ac_ct_F77$ac_delim
21602 LIBTOOL!$LIBTOOL$ac_delim
21603 PKG_CONFIG!$PKG_CONFIG$ac_delim
21604 libconfigfile_CFLAGS!$libconfigfile_CFLAGS$ac_delim
21605 libconfigfile_LIBS!$libconfigfile_LIBS$ac_delim
21606 LIBOBJS!$LIBOBJS$ac_delim
21607 LTLIBOBJS!$LTLIBOBJS$ac_delim
21608 _ACEOF
21610 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 12; then
21611 break
21612 elif $ac_last_try; then
21613 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21614 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21615 { (exit 1); exit 1; }; }
21616 else
21617 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21619 done
21621 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21622 if test -n "$ac_eof"; then
21623 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21624 ac_eof=`expr $ac_eof + 1`
21627 cat >>$CONFIG_STATUS <<_ACEOF
21628 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
21629 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
21630 _ACEOF
21631 sed '
21632 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21633 s/^/s,@/; s/!/@,|#_!!_#|/
21636 s/'"$ac_delim"'$/,g/; t
21637 s/$/\\/; p
21638 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21639 ' >>$CONFIG_STATUS <conf$$subs.sed
21640 rm -f conf$$subs.sed
21641 cat >>$CONFIG_STATUS <<_ACEOF
21642 :end
21643 s/|#_!!_#|//g
21644 CEOF$ac_eof
21645 _ACEOF
21648 # VPATH may cause trouble with some makes, so we remove $(srcdir),
21649 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
21650 # trailing colons and then remove the whole line if VPATH becomes empty
21651 # (actually we leave an empty line to preserve line numbers).
21652 if test "x$srcdir" = x.; then
21653 ac_vpsub='/^[ ]*VPATH[ ]*=/{
21654 s/:*\$(srcdir):*/:/
21655 s/:*\${srcdir}:*/:/
21656 s/:*@srcdir@:*/:/
21657 s/^\([^=]*=[ ]*\):*/\1/
21658 s/:*$//
21659 s/^[^=]*=[ ]*$//
21663 cat >>$CONFIG_STATUS <<\_ACEOF
21664 fi # test -n "$CONFIG_FILES"
21667 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
21669 case $ac_tag in
21670 :[FHLC]) ac_mode=$ac_tag; continue;;
21671 esac
21672 case $ac_mode$ac_tag in
21673 :[FHL]*:*);;
21674 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
21675 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
21676 { (exit 1); exit 1; }; };;
21677 :[FH]-) ac_tag=-:-;;
21678 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
21679 esac
21680 ac_save_IFS=$IFS
21681 IFS=:
21682 set x $ac_tag
21683 IFS=$ac_save_IFS
21684 shift
21685 ac_file=$1
21686 shift
21688 case $ac_mode in
21689 :L) ac_source=$1;;
21690 :[FH])
21691 ac_file_inputs=
21692 for ac_f
21694 case $ac_f in
21695 -) ac_f="$tmp/stdin";;
21696 *) # Look for the file first in the build tree, then in the source tree
21697 # (if the path is not absolute). The absolute path cannot be DOS-style,
21698 # because $ac_f cannot contain `:'.
21699 test -f "$ac_f" ||
21700 case $ac_f in
21701 [\\/$]*) false;;
21702 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
21703 esac ||
21704 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
21705 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
21706 { (exit 1); exit 1; }; };;
21707 esac
21708 ac_file_inputs="$ac_file_inputs $ac_f"
21709 done
21711 # Let's still pretend it is `configure' which instantiates (i.e., don't
21712 # use $as_me), people would be surprised to read:
21713 # /* config.h. Generated by config.status. */
21714 configure_input="Generated from "`IFS=:
21715 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
21716 if test x"$ac_file" != x-; then
21717 configure_input="$ac_file. $configure_input"
21718 { echo "$as_me:$LINENO: creating $ac_file" >&5
21719 echo "$as_me: creating $ac_file" >&6;}
21722 case $ac_tag in
21723 *:-:* | *:-) cat >"$tmp/stdin";;
21724 esac
21726 esac
21728 ac_dir=`$as_dirname -- "$ac_file" ||
21729 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21730 X"$ac_file" : 'X\(//\)[^/]' \| \
21731 X"$ac_file" : 'X\(//\)$' \| \
21732 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
21733 echo X"$ac_file" |
21734 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21735 s//\1/
21738 /^X\(\/\/\)[^/].*/{
21739 s//\1/
21742 /^X\(\/\/\)$/{
21743 s//\1/
21746 /^X\(\/\).*/{
21747 s//\1/
21750 s/.*/./; q'`
21751 { as_dir="$ac_dir"
21752 case $as_dir in #(
21753 -*) as_dir=./$as_dir;;
21754 esac
21755 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
21756 as_dirs=
21757 while :; do
21758 case $as_dir in #(
21759 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
21760 *) as_qdir=$as_dir;;
21761 esac
21762 as_dirs="'$as_qdir' $as_dirs"
21763 as_dir=`$as_dirname -- "$as_dir" ||
21764 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21765 X"$as_dir" : 'X\(//\)[^/]' \| \
21766 X"$as_dir" : 'X\(//\)$' \| \
21767 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
21768 echo X"$as_dir" |
21769 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21770 s//\1/
21773 /^X\(\/\/\)[^/].*/{
21774 s//\1/
21777 /^X\(\/\/\)$/{
21778 s//\1/
21781 /^X\(\/\).*/{
21782 s//\1/
21785 s/.*/./; q'`
21786 test -d "$as_dir" && break
21787 done
21788 test -z "$as_dirs" || eval "mkdir $as_dirs"
21789 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
21790 echo "$as_me: error: cannot create directory $as_dir" >&2;}
21791 { (exit 1); exit 1; }; }; }
21792 ac_builddir=.
21794 case "$ac_dir" in
21795 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21797 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
21798 # A ".." for each directory in $ac_dir_suffix.
21799 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
21800 case $ac_top_builddir_sub in
21801 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21802 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21803 esac ;;
21804 esac
21805 ac_abs_top_builddir=$ac_pwd
21806 ac_abs_builddir=$ac_pwd$ac_dir_suffix
21807 # for backward compatibility:
21808 ac_top_builddir=$ac_top_build_prefix
21810 case $srcdir in
21811 .) # We are building in place.
21812 ac_srcdir=.
21813 ac_top_srcdir=$ac_top_builddir_sub
21814 ac_abs_top_srcdir=$ac_pwd ;;
21815 [\\/]* | ?:[\\/]* ) # Absolute name.
21816 ac_srcdir=$srcdir$ac_dir_suffix;
21817 ac_top_srcdir=$srcdir
21818 ac_abs_top_srcdir=$srcdir ;;
21819 *) # Relative name.
21820 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21821 ac_top_srcdir=$ac_top_build_prefix$srcdir
21822 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
21823 esac
21824 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
21827 case $ac_mode in
21830 # CONFIG_FILE
21833 case $INSTALL in
21834 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21835 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
21836 esac
21837 ac_MKDIR_P=$MKDIR_P
21838 case $MKDIR_P in
21839 [\\/$]* | ?:[\\/]* ) ;;
21840 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
21841 esac
21842 _ACEOF
21844 cat >>$CONFIG_STATUS <<\_ACEOF
21845 # If the template does not know about datarootdir, expand it.
21846 # FIXME: This hack should be removed a few years after 2.60.
21847 ac_datarootdir_hack=; ac_datarootdir_seen=
21849 case `sed -n '/datarootdir/ {
21853 /@datadir@/p
21854 /@docdir@/p
21855 /@infodir@/p
21856 /@localedir@/p
21857 /@mandir@/p
21858 ' $ac_file_inputs` in
21859 *datarootdir*) ac_datarootdir_seen=yes;;
21860 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
21861 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
21862 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
21863 _ACEOF
21864 cat >>$CONFIG_STATUS <<_ACEOF
21865 ac_datarootdir_hack='
21866 s&@datadir@&$datadir&g
21867 s&@docdir@&$docdir&g
21868 s&@infodir@&$infodir&g
21869 s&@localedir@&$localedir&g
21870 s&@mandir@&$mandir&g
21871 s&\\\${datarootdir}&$datarootdir&g' ;;
21872 esac
21873 _ACEOF
21875 # Neutralize VPATH when `$srcdir' = `.'.
21876 # Shell code in configure.ac might set extrasub.
21877 # FIXME: do we really want to maintain this feature?
21878 cat >>$CONFIG_STATUS <<_ACEOF
21879 sed "$ac_vpsub
21880 $extrasub
21881 _ACEOF
21882 cat >>$CONFIG_STATUS <<\_ACEOF
21884 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21885 s&@configure_input@&$configure_input&;t t
21886 s&@top_builddir@&$ac_top_builddir_sub&;t t
21887 s&@srcdir@&$ac_srcdir&;t t
21888 s&@abs_srcdir@&$ac_abs_srcdir&;t t
21889 s&@top_srcdir@&$ac_top_srcdir&;t t
21890 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
21891 s&@builddir@&$ac_builddir&;t t
21892 s&@abs_builddir@&$ac_abs_builddir&;t t
21893 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
21894 s&@INSTALL@&$ac_INSTALL&;t t
21895 s&@MKDIR_P@&$ac_MKDIR_P&;t t
21896 $ac_datarootdir_hack
21897 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
21899 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
21900 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
21901 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
21902 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21903 which seems to be undefined. Please make sure it is defined." >&5
21904 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21905 which seems to be undefined. Please make sure it is defined." >&2;}
21907 rm -f "$tmp/stdin"
21908 case $ac_file in
21909 -) cat "$tmp/out"; rm -f "$tmp/out";;
21910 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
21911 esac
21915 # CONFIG_HEADER
21917 _ACEOF
21919 # Transform confdefs.h into a sed script `conftest.defines', that
21920 # substitutes the proper values into config.h.in to produce config.h.
21921 rm -f conftest.defines conftest.tail
21922 # First, append a space to every undef/define line, to ease matching.
21923 echo 's/$/ /' >conftest.defines
21924 # Then, protect against being on the right side of a sed subst, or in
21925 # an unquoted here document, in config.status. If some macros were
21926 # called several times there might be several #defines for the same
21927 # symbol, which is useless. But do not sort them, since the last
21928 # AC_DEFINE must be honored.
21929 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
21930 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
21931 # NAME is the cpp macro being defined, VALUE is the value it is being given.
21932 # PARAMS is the parameter list in the macro definition--in most cases, it's
21933 # just an empty string.
21934 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
21935 ac_dB='\\)[ (].*,\\1define\\2'
21936 ac_dC=' '
21937 ac_dD=' ,'
21939 uniq confdefs.h |
21940 sed -n '
21941 t rset
21942 :rset
21943 s/^[ ]*#[ ]*define[ ][ ]*//
21944 t ok
21947 s/[\\&,]/\\&/g
21948 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
21949 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
21950 ' >>conftest.defines
21952 # Remove the space that was appended to ease matching.
21953 # Then replace #undef with comments. This is necessary, for
21954 # example, in the case of _POSIX_SOURCE, which is predefined and required
21955 # on some systems where configure will not decide to define it.
21956 # (The regexp can be short, since the line contains either #define or #undef.)
21957 echo 's/ $//
21958 s,^[ #]*u.*,/* & */,' >>conftest.defines
21960 # Break up conftest.defines:
21961 ac_max_sed_lines=50
21963 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
21964 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
21965 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
21966 # et cetera.
21967 ac_in='$ac_file_inputs'
21968 ac_out='"$tmp/out1"'
21969 ac_nxt='"$tmp/out2"'
21971 while :
21973 # Write a here document:
21974 cat >>$CONFIG_STATUS <<_ACEOF
21975 # First, check the format of the line:
21976 cat >"\$tmp/defines.sed" <<\\CEOF
21977 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
21978 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
21980 :def
21981 _ACEOF
21982 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
21983 echo 'CEOF
21984 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
21985 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
21986 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
21987 grep . conftest.tail >/dev/null || break
21988 rm -f conftest.defines
21989 mv conftest.tail conftest.defines
21990 done
21991 rm -f conftest.defines conftest.tail
21993 echo "ac_result=$ac_in" >>$CONFIG_STATUS
21994 cat >>$CONFIG_STATUS <<\_ACEOF
21995 if test x"$ac_file" != x-; then
21996 echo "/* $configure_input */" >"$tmp/config.h"
21997 cat "$ac_result" >>"$tmp/config.h"
21998 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
21999 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
22000 echo "$as_me: $ac_file is unchanged" >&6;}
22001 else
22002 rm -f $ac_file
22003 mv "$tmp/config.h" $ac_file
22005 else
22006 echo "/* $configure_input */"
22007 cat "$ac_result"
22009 rm -f "$tmp/out12"
22010 # Compute $ac_file's index in $config_headers.
22011 _am_arg=$ac_file
22012 _am_stamp_count=1
22013 for _am_header in $config_headers :; do
22014 case $_am_header in
22015 $_am_arg | $_am_arg:* )
22016 break ;;
22018 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
22019 esac
22020 done
22021 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
22022 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22023 X"$_am_arg" : 'X\(//\)[^/]' \| \
22024 X"$_am_arg" : 'X\(//\)$' \| \
22025 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
22026 echo X"$_am_arg" |
22027 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22028 s//\1/
22031 /^X\(\/\/\)[^/].*/{
22032 s//\1/
22035 /^X\(\/\/\)$/{
22036 s//\1/
22039 /^X\(\/\).*/{
22040 s//\1/
22043 s/.*/./; q'`/stamp-h$_am_stamp_count
22046 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
22047 echo "$as_me: executing $ac_file commands" >&6;}
22049 esac
22052 case $ac_file$ac_mode in
22053 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
22054 # Strip MF so we end up with the name of the file.
22055 mf=`echo "$mf" | sed -e 's/:.*$//'`
22056 # Check whether this is an Automake generated Makefile or not.
22057 # We used to match only the files named `Makefile.in', but
22058 # some people rename them; so instead we look at the file content.
22059 # Grep'ing the first line is not enough: some people post-process
22060 # each Makefile.in and add a new line on top of each file to say so.
22061 # Grep'ing the whole file is not good either: AIX grep has a line
22062 # limit of 2048, but all sed's we know have understand at least 4000.
22063 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
22064 dirpart=`$as_dirname -- "$mf" ||
22065 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22066 X"$mf" : 'X\(//\)[^/]' \| \
22067 X"$mf" : 'X\(//\)$' \| \
22068 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
22069 echo X"$mf" |
22070 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22071 s//\1/
22074 /^X\(\/\/\)[^/].*/{
22075 s//\1/
22078 /^X\(\/\/\)$/{
22079 s//\1/
22082 /^X\(\/\).*/{
22083 s//\1/
22086 s/.*/./; q'`
22087 else
22088 continue
22090 # Extract the definition of DEPDIR, am__include, and am__quote
22091 # from the Makefile without running `make'.
22092 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
22093 test -z "$DEPDIR" && continue
22094 am__include=`sed -n 's/^am__include = //p' < "$mf"`
22095 test -z "am__include" && continue
22096 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
22097 # When using ansi2knr, U may be empty or an underscore; expand it
22098 U=`sed -n 's/^U = //p' < "$mf"`
22099 # Find all dependency output files, they are included files with
22100 # $(DEPDIR) in their names. We invoke sed twice because it is the
22101 # simplest approach to changing $(DEPDIR) to its actual value in the
22102 # expansion.
22103 for file in `sed -n "
22104 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
22105 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
22106 # Make sure the directory exists.
22107 test -f "$dirpart/$file" && continue
22108 fdir=`$as_dirname -- "$file" ||
22109 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22110 X"$file" : 'X\(//\)[^/]' \| \
22111 X"$file" : 'X\(//\)$' \| \
22112 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
22113 echo X"$file" |
22114 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22115 s//\1/
22118 /^X\(\/\/\)[^/].*/{
22119 s//\1/
22122 /^X\(\/\/\)$/{
22123 s//\1/
22126 /^X\(\/\).*/{
22127 s//\1/
22130 s/.*/./; q'`
22131 { as_dir=$dirpart/$fdir
22132 case $as_dir in #(
22133 -*) as_dir=./$as_dir;;
22134 esac
22135 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22136 as_dirs=
22137 while :; do
22138 case $as_dir in #(
22139 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22140 *) as_qdir=$as_dir;;
22141 esac
22142 as_dirs="'$as_qdir' $as_dirs"
22143 as_dir=`$as_dirname -- "$as_dir" ||
22144 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22145 X"$as_dir" : 'X\(//\)[^/]' \| \
22146 X"$as_dir" : 'X\(//\)$' \| \
22147 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22148 echo X"$as_dir" |
22149 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22150 s//\1/
22153 /^X\(\/\/\)[^/].*/{
22154 s//\1/
22157 /^X\(\/\/\)$/{
22158 s//\1/
22161 /^X\(\/\).*/{
22162 s//\1/
22165 s/.*/./; q'`
22166 test -d "$as_dir" && break
22167 done
22168 test -z "$as_dirs" || eval "mkdir $as_dirs"
22169 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22170 echo "$as_me: error: cannot create directory $as_dir" >&2;}
22171 { (exit 1); exit 1; }; }; }
22172 # echo "creating $dirpart/$file"
22173 echo '# dummy' > "$dirpart/$file"
22174 done
22175 done
22178 esac
22179 done # for ac_tag
22182 { (exit 0); exit 0; }
22183 _ACEOF
22184 chmod +x $CONFIG_STATUS
22185 ac_clean_files=$ac_clean_files_save
22188 # configure is writing to config.log, and then calls config.status.
22189 # config.status does its own redirection, appending to config.log.
22190 # Unfortunately, on DOS this fails, as config.log is still kept open
22191 # by configure, so config.status won't be able to write to it; its
22192 # output is simply discarded. So we exec the FD to /dev/null,
22193 # effectively closing config.log, so it can be properly (re)opened and
22194 # appended to by config.status. When coming back to configure, we
22195 # need to make the FD available again.
22196 if test "$no_create" != yes; then
22197 ac_cs_success=:
22198 ac_config_status_args=
22199 test "$silent" = yes &&
22200 ac_config_status_args="$ac_config_status_args --quiet"
22201 exec 5>/dev/null
22202 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22203 exec 5>>config.log
22204 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22205 # would make configure fail if this is the last instruction.
22206 $ac_cs_success || { (exit 1); exit 1; }