Release tarball for barry-0.8
[barry.git] / opensync-plugin / configure
blob8558ad9da2fe9ca431d2ac0e246c1e01e5e31242
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61 for Barry OpenSync Plugin 0.2.
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization. ##
11 ## --------------------- ##
13 # Be more Bourne compatible
14 DUALCASE=1; export DUALCASE # for MKS sh
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16 emulate sh
17 NULLCMD=:
18 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
21 setopt NO_GLOB_SUBST
22 else
23 case `(set -o) 2>/dev/null` in
24 *posix*) set -o posix ;;
25 esac
32 # PATH needs CR
33 # Avoid depending upon Character Ranges.
34 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits='0123456789'
38 as_cr_alnum=$as_cr_Letters$as_cr_digits
40 # The user is always right.
41 if test "${PATH_SEPARATOR+set}" != set; then
42 echo "#! /bin/sh" >conf$$.sh
43 echo "exit 0" >>conf$$.sh
44 chmod +x conf$$.sh
45 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
46 PATH_SEPARATOR=';'
47 else
48 PATH_SEPARATOR=:
50 rm -f conf$$.sh
53 # Support unset when possible.
54 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
55 as_unset=unset
56 else
57 as_unset=false
61 # IFS
62 # We need space, tab and new line, in precisely that order. Quoting is
63 # there to prevent editors from complaining about space-tab.
64 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
65 # splitting by setting IFS to empty value.)
66 as_nl='
68 IFS=" "" $as_nl"
70 # Find who we are. Look in the path if we contain no directory separator.
71 case $0 in
72 *[\\/]* ) as_myself=$0 ;;
73 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
74 for as_dir in $PATH
76 IFS=$as_save_IFS
77 test -z "$as_dir" && as_dir=.
78 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
79 done
80 IFS=$as_save_IFS
83 esac
84 # We did not find ourselves, most probably we were run as `sh COMMAND'
85 # in which case we are not to be found in the path.
86 if test "x$as_myself" = x; then
87 as_myself=$0
89 if test ! -f "$as_myself"; then
90 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
91 { (exit 1); exit 1; }
94 # Work around bugs in pre-3.0 UWIN ksh.
95 for as_var in ENV MAIL MAILPATH
96 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
97 done
98 PS1='$ '
99 PS2='> '
100 PS4='+ '
102 # NLS nuisances.
103 for as_var in \
104 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
106 LC_TELEPHONE LC_TIME
108 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109 eval $as_var=C; export $as_var
110 else
111 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
113 done
115 # Required to use basename.
116 if expr a : '\(a\)' >/dev/null 2>&1 &&
117 test "X`expr 00001 : '.*\(...\)'`" = X001; then
118 as_expr=expr
119 else
120 as_expr=false
123 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
124 as_basename=basename
125 else
126 as_basename=false
130 # Name of the executable.
131 as_me=`$as_basename -- "$0" ||
132 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133 X"$0" : 'X\(//\)$' \| \
134 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
135 echo X/"$0" |
136 sed '/^.*\/\([^/][^/]*\)\/*$/{
137 s//\1/
140 /^X\/\(\/\/\)$/{
141 s//\1/
144 /^X\/\(\/\).*/{
145 s//\1/
148 s/.*/./; q'`
150 # CDPATH.
151 $as_unset CDPATH
154 if test "x$CONFIG_SHELL" = x; then
155 if (eval ":") 2>/dev/null; then
156 as_have_required=yes
157 else
158 as_have_required=no
161 if test $as_have_required = yes && (eval ":
162 (as_func_return () {
163 (exit \$1)
165 as_func_success () {
166 as_func_return 0
168 as_func_failure () {
169 as_func_return 1
171 as_func_ret_success () {
172 return 0
174 as_func_ret_failure () {
175 return 1
178 exitcode=0
179 if as_func_success; then
181 else
182 exitcode=1
183 echo as_func_success failed.
186 if as_func_failure; then
187 exitcode=1
188 echo as_func_failure succeeded.
191 if as_func_ret_success; then
193 else
194 exitcode=1
195 echo as_func_ret_success failed.
198 if as_func_ret_failure; then
199 exitcode=1
200 echo as_func_ret_failure succeeded.
203 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
205 else
206 exitcode=1
207 echo positional parameters were not saved.
210 test \$exitcode = 0) || { (exit 1); exit 1; }
213 as_lineno_1=\$LINENO
214 as_lineno_2=\$LINENO
215 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217 ") 2> /dev/null; then
219 else
220 as_candidate_shells=
221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
224 IFS=$as_save_IFS
225 test -z "$as_dir" && as_dir=.
226 case $as_dir in
228 for as_base in sh bash ksh sh5; do
229 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
230 done;;
231 esac
232 done
233 IFS=$as_save_IFS
236 for as_shell in $as_candidate_shells $SHELL; do
237 # Try only shells that exist, to save several forks.
238 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239 { ("$as_shell") 2> /dev/null <<\_ASEOF
240 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
241 emulate sh
242 NULLCMD=:
243 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
244 # is contrary to our usage. Disable this feature.
245 alias -g '${1+"$@"}'='"$@"'
246 setopt NO_GLOB_SUBST
247 else
248 case `(set -o) 2>/dev/null` in
249 *posix*) set -o posix ;;
250 esac
256 _ASEOF
257 }; then
258 CONFIG_SHELL=$as_shell
259 as_have_required=yes
260 if { "$as_shell" 2> /dev/null <<\_ASEOF
261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262 emulate sh
263 NULLCMD=:
264 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265 # is contrary to our usage. Disable this feature.
266 alias -g '${1+"$@"}'='"$@"'
267 setopt NO_GLOB_SUBST
268 else
269 case `(set -o) 2>/dev/null` in
270 *posix*) set -o posix ;;
271 esac
277 (as_func_return () {
278 (exit $1)
280 as_func_success () {
281 as_func_return 0
283 as_func_failure () {
284 as_func_return 1
286 as_func_ret_success () {
287 return 0
289 as_func_ret_failure () {
290 return 1
293 exitcode=0
294 if as_func_success; then
296 else
297 exitcode=1
298 echo as_func_success failed.
301 if as_func_failure; then
302 exitcode=1
303 echo as_func_failure succeeded.
306 if as_func_ret_success; then
308 else
309 exitcode=1
310 echo as_func_ret_success failed.
313 if as_func_ret_failure; then
314 exitcode=1
315 echo as_func_ret_failure succeeded.
318 if ( set x; as_func_ret_success y && test x = "$1" ); then
320 else
321 exitcode=1
322 echo positional parameters were not saved.
325 test $exitcode = 0) || { (exit 1); exit 1; }
328 as_lineno_1=$LINENO
329 as_lineno_2=$LINENO
330 test "x$as_lineno_1" != "x$as_lineno_2" &&
331 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
333 _ASEOF
334 }; then
335 break
340 done
342 if test "x$CONFIG_SHELL" != x; then
343 for as_var in BASH_ENV ENV
344 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
345 done
346 export CONFIG_SHELL
347 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
351 if test $as_have_required = no; then
352 echo This script requires a shell more modern than all the
353 echo shells that I found on your system. Please install a
354 echo modern shell, or manually run the script under such a
355 echo shell if you do have one.
356 { (exit 1); exit 1; }
366 (eval "as_func_return () {
367 (exit \$1)
369 as_func_success () {
370 as_func_return 0
372 as_func_failure () {
373 as_func_return 1
375 as_func_ret_success () {
376 return 0
378 as_func_ret_failure () {
379 return 1
382 exitcode=0
383 if as_func_success; then
385 else
386 exitcode=1
387 echo as_func_success failed.
390 if as_func_failure; then
391 exitcode=1
392 echo as_func_failure succeeded.
395 if as_func_ret_success; then
397 else
398 exitcode=1
399 echo as_func_ret_success failed.
402 if as_func_ret_failure; then
403 exitcode=1
404 echo as_func_ret_failure succeeded.
407 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
409 else
410 exitcode=1
411 echo positional parameters were not saved.
414 test \$exitcode = 0") || {
415 echo No shell found that supports shell functions.
416 echo Please tell autoconf@gnu.org about your system,
417 echo including any error possibly output before this
418 echo message
423 as_lineno_1=$LINENO
424 as_lineno_2=$LINENO
425 test "x$as_lineno_1" != "x$as_lineno_2" &&
426 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
428 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
429 # uniformly replaced by the line number. The first 'sed' inserts a
430 # line-number line after each line using $LINENO; the second 'sed'
431 # does the real work. The second script uses 'N' to pair each
432 # line-number line with the line containing $LINENO, and appends
433 # trailing '-' during substitution so that $LINENO is not a special
434 # case at line end.
435 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
436 # scripts with optimization help from Paolo Bonzini. Blame Lee
437 # E. McMahon (1931-1989) for sed's syntax. :-)
438 sed -n '
440 /[$]LINENO/=
441 ' <$as_myself |
442 sed '
443 s/[$]LINENO.*/&-/
444 t lineno
446 :lineno
448 :loop
449 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
450 t loop
451 s/-\n.*//
452 ' >$as_me.lineno &&
453 chmod +x "$as_me.lineno" ||
454 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
455 { (exit 1); exit 1; }; }
457 # Don't try to exec as it changes $[0], causing all sort of problems
458 # (the dirname of $[0] is not the place where we might find the
459 # original and so on. Autoconf is especially sensitive to this).
460 . "./$as_me.lineno"
461 # Exit status is that of the last command.
462 exit
466 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
467 as_dirname=dirname
468 else
469 as_dirname=false
472 ECHO_C= ECHO_N= ECHO_T=
473 case `echo -n x` in
474 -n*)
475 case `echo 'x\c'` in
476 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
477 *) ECHO_C='\c';;
478 esac;;
480 ECHO_N='-n';;
481 esac
483 if expr a : '\(a\)' >/dev/null 2>&1 &&
484 test "X`expr 00001 : '.*\(...\)'`" = X001; then
485 as_expr=expr
486 else
487 as_expr=false
490 rm -f conf$$ conf$$.exe conf$$.file
491 if test -d conf$$.dir; then
492 rm -f conf$$.dir/conf$$.file
493 else
494 rm -f conf$$.dir
495 mkdir conf$$.dir
497 echo >conf$$.file
498 if ln -s conf$$.file conf$$ 2>/dev/null; then
499 as_ln_s='ln -s'
500 # ... but there are two gotchas:
501 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
502 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
503 # In both cases, we have to default to `cp -p'.
504 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
505 as_ln_s='cp -p'
506 elif ln conf$$.file conf$$ 2>/dev/null; then
507 as_ln_s=ln
508 else
509 as_ln_s='cp -p'
511 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
512 rmdir conf$$.dir 2>/dev/null
514 if mkdir -p . 2>/dev/null; then
515 as_mkdir_p=:
516 else
517 test -d ./-p && rmdir ./-p
518 as_mkdir_p=false
521 if test -x / >/dev/null 2>&1; then
522 as_test_x='test -x'
523 else
524 if ls -dL / >/dev/null 2>&1; then
525 as_ls_L_option=L
526 else
527 as_ls_L_option=
529 as_test_x='
530 eval sh -c '\''
531 if test -d "$1"; then
532 test -d "$1/.";
533 else
534 case $1 in
535 -*)set "./$1";;
536 esac;
537 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
538 ???[sx]*):;;*)false;;esac;fi
539 '\'' sh
542 as_executable_p=$as_test_x
544 # Sed expression to map a string onto a valid CPP name.
545 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
547 # Sed expression to map a string onto a valid variable name.
548 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
553 # Check that we are running under the correct shell.
554 SHELL=${CONFIG_SHELL-/bin/sh}
556 case X$ECHO in
557 X*--fallback-echo)
558 # Remove one level of quotation (which was required for Make).
559 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
561 esac
563 echo=${ECHO-echo}
564 if test "X$1" = X--no-reexec; then
565 # Discard the --no-reexec flag, and continue.
566 shift
567 elif test "X$1" = X--fallback-echo; then
568 # Avoid inline document here, it may be left over
570 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
571 # Yippee, $echo works!
573 else
574 # Restart under the correct shell.
575 exec $SHELL "$0" --no-reexec ${1+"$@"}
578 if test "X$1" = X--fallback-echo; then
579 # used as fallback echo
580 shift
581 cat <<EOF
584 exit 0
587 # The HP-UX ksh and POSIX shell print the target directory to stdout
588 # if CDPATH is set.
589 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
591 if test -z "$ECHO"; then
592 if test "X${echo_test_string+set}" != Xset; then
593 # find a string as large as possible, as long as the shell can cope with it
594 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
595 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
596 if (echo_test_string=`eval $cmd`) 2>/dev/null &&
597 echo_test_string=`eval $cmd` &&
598 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
599 then
600 break
602 done
605 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
606 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
607 test "X$echo_testing_string" = "X$echo_test_string"; then
609 else
610 # The Solaris, AIX, and Digital Unix default echo programs unquote
611 # backslashes. This makes it impossible to quote backslashes using
612 # echo "$something" | sed 's/\\/\\\\/g'
614 # So, first we look for a working echo in the user's PATH.
616 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
617 for dir in $PATH /usr/ucb; do
618 IFS="$lt_save_ifs"
619 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
620 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
621 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
622 test "X$echo_testing_string" = "X$echo_test_string"; then
623 echo="$dir/echo"
624 break
626 done
627 IFS="$lt_save_ifs"
629 if test "X$echo" = Xecho; then
630 # We didn't find a better echo, so look for alternatives.
631 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
632 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
633 test "X$echo_testing_string" = "X$echo_test_string"; then
634 # This shell has a builtin print -r that does the trick.
635 echo='print -r'
636 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
637 test "X$CONFIG_SHELL" != X/bin/ksh; then
638 # If we have ksh, try running configure again with it.
639 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
640 export ORIGINAL_CONFIG_SHELL
641 CONFIG_SHELL=/bin/ksh
642 export CONFIG_SHELL
643 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
644 else
645 # Try using printf.
646 echo='printf %s\n'
647 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
648 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
649 test "X$echo_testing_string" = "X$echo_test_string"; then
650 # Cool, printf works
652 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
653 test "X$echo_testing_string" = 'X\t' &&
654 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
655 test "X$echo_testing_string" = "X$echo_test_string"; then
656 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
657 export CONFIG_SHELL
658 SHELL="$CONFIG_SHELL"
659 export SHELL
660 echo="$CONFIG_SHELL $0 --fallback-echo"
661 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
662 test "X$echo_testing_string" = 'X\t' &&
663 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
664 test "X$echo_testing_string" = "X$echo_test_string"; then
665 echo="$CONFIG_SHELL $0 --fallback-echo"
666 else
667 # maybe with a smaller string...
668 prev=:
670 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
671 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
672 then
673 break
675 prev="$cmd"
676 done
678 if test "$prev" != 'sed 50q "$0"'; then
679 echo_test_string=`eval $prev`
680 export echo_test_string
681 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
682 else
683 # Oops. We lost completely, so just stick with echo.
684 echo=echo
692 # Copy echo and quote the copy suitably for passing to libtool from
693 # the Makefile, instead of quoting the original, which is used later.
694 ECHO=$echo
695 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
696 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
702 tagnames=${tagnames+${tagnames},}CXX
704 tagnames=${tagnames+${tagnames},}F77
706 exec 7<&0 </dev/null 6>&1
708 # Name of the host.
709 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
710 # so uname gets run too.
711 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
714 # Initializations.
716 ac_default_prefix=/usr/local
717 ac_clean_files=
718 ac_config_libobj_dir=.
719 LIBOBJS=
720 cross_compiling=no
721 subdirs=
722 MFLAGS=
723 MAKEFLAGS=
724 SHELL=${CONFIG_SHELL-/bin/sh}
726 # Identity of this package.
727 PACKAGE_NAME='Barry OpenSync Plugin'
728 PACKAGE_TARNAME='barryplugin'
729 PACKAGE_VERSION='0.2'
730 PACKAGE_STRING='Barry OpenSync Plugin 0.2'
731 PACKAGE_BUGREPORT=''
733 ac_unique_file="src/barry_sync.cc"
734 # Factoring default headers for most tests.
735 ac_includes_default="\
736 #include <stdio.h>
737 #ifdef HAVE_SYS_TYPES_H
738 # include <sys/types.h>
739 #endif
740 #ifdef HAVE_SYS_STAT_H
741 # include <sys/stat.h>
742 #endif
743 #ifdef STDC_HEADERS
744 # include <stdlib.h>
745 # include <stddef.h>
746 #else
747 # ifdef HAVE_STDLIB_H
748 # include <stdlib.h>
749 # endif
750 #endif
751 #ifdef HAVE_STRING_H
752 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
753 # include <memory.h>
754 # endif
755 # include <string.h>
756 #endif
757 #ifdef HAVE_STRINGS_H
758 # include <strings.h>
759 #endif
760 #ifdef HAVE_INTTYPES_H
761 # include <inttypes.h>
762 #endif
763 #ifdef HAVE_STDINT_H
764 # include <stdint.h>
765 #endif
766 #ifdef HAVE_UNISTD_H
767 # include <unistd.h>
768 #endif"
770 ac_subst_vars='SHELL
771 PATH_SEPARATOR
772 PACKAGE_NAME
773 PACKAGE_TARNAME
774 PACKAGE_VERSION
775 PACKAGE_STRING
776 PACKAGE_BUGREPORT
777 exec_prefix
778 prefix
779 program_transform_name
780 bindir
781 sbindir
782 libexecdir
783 datarootdir
784 datadir
785 sysconfdir
786 sharedstatedir
787 localstatedir
788 includedir
789 oldincludedir
790 docdir
791 infodir
792 htmldir
793 dvidir
794 pdfdir
795 psdir
796 libdir
797 localedir
798 mandir
799 DEFS
800 ECHO_C
801 ECHO_N
802 ECHO_T
803 LIBS
804 build_alias
805 host_alias
806 target_alias
807 INSTALL_PROGRAM
808 INSTALL_SCRIPT
809 INSTALL_DATA
810 CYGPATH_W
811 PACKAGE
812 VERSION
813 ACLOCAL
814 AUTOCONF
815 AUTOMAKE
816 AUTOHEADER
817 MAKEINFO
818 install_sh
819 STRIP
820 INSTALL_STRIP_PROGRAM
821 mkdir_p
823 SET_MAKE
824 am__leading_dot
825 AMTAR
826 am__tar
827 am__untar
828 PKG_CONFIG
829 PACKAGE_CFLAGS
830 PACKAGE_LIBS
832 CFLAGS
833 LDFLAGS
834 CPPFLAGS
835 ac_ct_CC
836 EXEEXT
837 OBJEXT
838 DEPDIR
839 am__include
840 am__quote
841 AMDEP_TRUE
842 AMDEP_FALSE
843 AMDEPBACKSLASH
844 CCDEPMODE
845 am__fastdepCC_TRUE
846 am__fastdepCC_FALSE
848 GREP
849 EGREP
851 CXXFLAGS
852 ac_ct_CXX
853 CXXDEPMODE
854 am__fastdepCXX_TRUE
855 am__fastdepCXX_FALSE
856 build
857 build_cpu
858 build_vendor
859 build_os
860 host
861 host_cpu
862 host_vendor
863 host_os
864 LN_S
865 ECHO
867 RANLIB
868 CXXCPP
870 FFLAGS
871 ac_ct_F77
872 LIBTOOL
873 BARRY_CFLAGS
874 BARRY_LIBS
875 OPENSYNC_CONFIGDIR
876 OPENSYNC_PLUGINDIR
877 OPENSYNC_FORMATSDIR
878 OPENSYNC_HEADERDIR
879 LIBOBJS
880 LTLIBOBJS'
881 ac_subst_files=''
882 ac_precious_vars='build_alias
883 host_alias
884 target_alias
885 PKG_CONFIG
886 PACKAGE_CFLAGS
887 PACKAGE_LIBS
889 CFLAGS
890 LDFLAGS
891 LIBS
892 CPPFLAGS
895 CXXFLAGS
897 CXXCPP
899 FFLAGS
900 BARRY_CFLAGS
901 BARRY_LIBS'
904 # Initialize some variables set by options.
905 ac_init_help=
906 ac_init_version=false
907 # The variables have the same names as the options, with
908 # dashes changed to underlines.
909 cache_file=/dev/null
910 exec_prefix=NONE
911 no_create=
912 no_recursion=
913 prefix=NONE
914 program_prefix=NONE
915 program_suffix=NONE
916 program_transform_name=s,x,x,
917 silent=
918 site=
919 srcdir=
920 verbose=
921 x_includes=NONE
922 x_libraries=NONE
924 # Installation directory options.
925 # These are left unexpanded so users can "make install exec_prefix=/foo"
926 # and all the variables that are supposed to be based on exec_prefix
927 # by default will actually change.
928 # Use braces instead of parens because sh, perl, etc. also accept them.
929 # (The list follows the same order as the GNU Coding Standards.)
930 bindir='${exec_prefix}/bin'
931 sbindir='${exec_prefix}/sbin'
932 libexecdir='${exec_prefix}/libexec'
933 datarootdir='${prefix}/share'
934 datadir='${datarootdir}'
935 sysconfdir='${prefix}/etc'
936 sharedstatedir='${prefix}/com'
937 localstatedir='${prefix}/var'
938 includedir='${prefix}/include'
939 oldincludedir='/usr/include'
940 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
941 infodir='${datarootdir}/info'
942 htmldir='${docdir}'
943 dvidir='${docdir}'
944 pdfdir='${docdir}'
945 psdir='${docdir}'
946 libdir='${exec_prefix}/lib'
947 localedir='${datarootdir}/locale'
948 mandir='${datarootdir}/man'
950 ac_prev=
951 ac_dashdash=
952 for ac_option
954 # If the previous option needs an argument, assign it.
955 if test -n "$ac_prev"; then
956 eval $ac_prev=\$ac_option
957 ac_prev=
958 continue
961 case $ac_option in
962 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
963 *) ac_optarg=yes ;;
964 esac
966 # Accept the important Cygnus configure options, so we can diagnose typos.
968 case $ac_dashdash$ac_option in
970 ac_dashdash=yes ;;
972 -bindir | --bindir | --bindi | --bind | --bin | --bi)
973 ac_prev=bindir ;;
974 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
975 bindir=$ac_optarg ;;
977 -build | --build | --buil | --bui | --bu)
978 ac_prev=build_alias ;;
979 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
980 build_alias=$ac_optarg ;;
982 -cache-file | --cache-file | --cache-fil | --cache-fi \
983 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
984 ac_prev=cache_file ;;
985 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
986 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
987 cache_file=$ac_optarg ;;
989 --config-cache | -C)
990 cache_file=config.cache ;;
992 -datadir | --datadir | --datadi | --datad)
993 ac_prev=datadir ;;
994 -datadir=* | --datadir=* | --datadi=* | --datad=*)
995 datadir=$ac_optarg ;;
997 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
998 | --dataroo | --dataro | --datar)
999 ac_prev=datarootdir ;;
1000 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1001 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1002 datarootdir=$ac_optarg ;;
1004 -disable-* | --disable-*)
1005 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1006 # Reject names that are not valid shell variable names.
1007 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1008 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1009 { (exit 1); exit 1; }; }
1010 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1011 eval enable_$ac_feature=no ;;
1013 -docdir | --docdir | --docdi | --doc | --do)
1014 ac_prev=docdir ;;
1015 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1016 docdir=$ac_optarg ;;
1018 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1019 ac_prev=dvidir ;;
1020 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1021 dvidir=$ac_optarg ;;
1023 -enable-* | --enable-*)
1024 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1025 # Reject names that are not valid shell variable names.
1026 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1027 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1028 { (exit 1); exit 1; }; }
1029 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1030 eval enable_$ac_feature=\$ac_optarg ;;
1032 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1033 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1034 | --exec | --exe | --ex)
1035 ac_prev=exec_prefix ;;
1036 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1037 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1038 | --exec=* | --exe=* | --ex=*)
1039 exec_prefix=$ac_optarg ;;
1041 -gas | --gas | --ga | --g)
1042 # Obsolete; use --with-gas.
1043 with_gas=yes ;;
1045 -help | --help | --hel | --he | -h)
1046 ac_init_help=long ;;
1047 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1048 ac_init_help=recursive ;;
1049 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1050 ac_init_help=short ;;
1052 -host | --host | --hos | --ho)
1053 ac_prev=host_alias ;;
1054 -host=* | --host=* | --hos=* | --ho=*)
1055 host_alias=$ac_optarg ;;
1057 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1058 ac_prev=htmldir ;;
1059 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1060 | --ht=*)
1061 htmldir=$ac_optarg ;;
1063 -includedir | --includedir | --includedi | --included | --include \
1064 | --includ | --inclu | --incl | --inc)
1065 ac_prev=includedir ;;
1066 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1067 | --includ=* | --inclu=* | --incl=* | --inc=*)
1068 includedir=$ac_optarg ;;
1070 -infodir | --infodir | --infodi | --infod | --info | --inf)
1071 ac_prev=infodir ;;
1072 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1073 infodir=$ac_optarg ;;
1075 -libdir | --libdir | --libdi | --libd)
1076 ac_prev=libdir ;;
1077 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1078 libdir=$ac_optarg ;;
1080 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1081 | --libexe | --libex | --libe)
1082 ac_prev=libexecdir ;;
1083 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1084 | --libexe=* | --libex=* | --libe=*)
1085 libexecdir=$ac_optarg ;;
1087 -localedir | --localedir | --localedi | --localed | --locale)
1088 ac_prev=localedir ;;
1089 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1090 localedir=$ac_optarg ;;
1092 -localstatedir | --localstatedir | --localstatedi | --localstated \
1093 | --localstate | --localstat | --localsta | --localst | --locals)
1094 ac_prev=localstatedir ;;
1095 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1096 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1097 localstatedir=$ac_optarg ;;
1099 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1100 ac_prev=mandir ;;
1101 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1102 mandir=$ac_optarg ;;
1104 -nfp | --nfp | --nf)
1105 # Obsolete; use --without-fp.
1106 with_fp=no ;;
1108 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1109 | --no-cr | --no-c | -n)
1110 no_create=yes ;;
1112 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1113 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1114 no_recursion=yes ;;
1116 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1117 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1118 | --oldin | --oldi | --old | --ol | --o)
1119 ac_prev=oldincludedir ;;
1120 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1121 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1122 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1123 oldincludedir=$ac_optarg ;;
1125 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1126 ac_prev=prefix ;;
1127 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1128 prefix=$ac_optarg ;;
1130 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1131 | --program-pre | --program-pr | --program-p)
1132 ac_prev=program_prefix ;;
1133 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1134 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1135 program_prefix=$ac_optarg ;;
1137 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1138 | --program-suf | --program-su | --program-s)
1139 ac_prev=program_suffix ;;
1140 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1141 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1142 program_suffix=$ac_optarg ;;
1144 -program-transform-name | --program-transform-name \
1145 | --program-transform-nam | --program-transform-na \
1146 | --program-transform-n | --program-transform- \
1147 | --program-transform | --program-transfor \
1148 | --program-transfo | --program-transf \
1149 | --program-trans | --program-tran \
1150 | --progr-tra | --program-tr | --program-t)
1151 ac_prev=program_transform_name ;;
1152 -program-transform-name=* | --program-transform-name=* \
1153 | --program-transform-nam=* | --program-transform-na=* \
1154 | --program-transform-n=* | --program-transform-=* \
1155 | --program-transform=* | --program-transfor=* \
1156 | --program-transfo=* | --program-transf=* \
1157 | --program-trans=* | --program-tran=* \
1158 | --progr-tra=* | --program-tr=* | --program-t=*)
1159 program_transform_name=$ac_optarg ;;
1161 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1162 ac_prev=pdfdir ;;
1163 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1164 pdfdir=$ac_optarg ;;
1166 -psdir | --psdir | --psdi | --psd | --ps)
1167 ac_prev=psdir ;;
1168 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1169 psdir=$ac_optarg ;;
1171 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1172 | -silent | --silent | --silen | --sile | --sil)
1173 silent=yes ;;
1175 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1176 ac_prev=sbindir ;;
1177 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1178 | --sbi=* | --sb=*)
1179 sbindir=$ac_optarg ;;
1181 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1182 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1183 | --sharedst | --shareds | --shared | --share | --shar \
1184 | --sha | --sh)
1185 ac_prev=sharedstatedir ;;
1186 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1187 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1188 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1189 | --sha=* | --sh=*)
1190 sharedstatedir=$ac_optarg ;;
1192 -site | --site | --sit)
1193 ac_prev=site ;;
1194 -site=* | --site=* | --sit=*)
1195 site=$ac_optarg ;;
1197 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1198 ac_prev=srcdir ;;
1199 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1200 srcdir=$ac_optarg ;;
1202 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1203 | --syscon | --sysco | --sysc | --sys | --sy)
1204 ac_prev=sysconfdir ;;
1205 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1206 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1207 sysconfdir=$ac_optarg ;;
1209 -target | --target | --targe | --targ | --tar | --ta | --t)
1210 ac_prev=target_alias ;;
1211 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1212 target_alias=$ac_optarg ;;
1214 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1215 verbose=yes ;;
1217 -version | --version | --versio | --versi | --vers | -V)
1218 ac_init_version=: ;;
1220 -with-* | --with-*)
1221 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1222 # Reject names that are not valid shell variable names.
1223 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1224 { echo "$as_me: error: invalid package name: $ac_package" >&2
1225 { (exit 1); exit 1; }; }
1226 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1227 eval with_$ac_package=\$ac_optarg ;;
1229 -without-* | --without-*)
1230 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1231 # Reject names that are not valid shell variable names.
1232 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1233 { echo "$as_me: error: invalid package name: $ac_package" >&2
1234 { (exit 1); exit 1; }; }
1235 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1236 eval with_$ac_package=no ;;
1238 --x)
1239 # Obsolete; use --with-x.
1240 with_x=yes ;;
1242 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1243 | --x-incl | --x-inc | --x-in | --x-i)
1244 ac_prev=x_includes ;;
1245 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1246 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1247 x_includes=$ac_optarg ;;
1249 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1250 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1251 ac_prev=x_libraries ;;
1252 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1253 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1254 x_libraries=$ac_optarg ;;
1256 -*) { echo "$as_me: error: unrecognized option: $ac_option
1257 Try \`$0 --help' for more information." >&2
1258 { (exit 1); exit 1; }; }
1261 *=*)
1262 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1263 # Reject names that are not valid shell variable names.
1264 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1265 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1266 { (exit 1); exit 1; }; }
1267 eval $ac_envvar=\$ac_optarg
1268 export $ac_envvar ;;
1271 # FIXME: should be removed in autoconf 3.0.
1272 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1273 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1274 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1275 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1278 esac
1279 done
1281 if test -n "$ac_prev"; then
1282 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1283 { echo "$as_me: error: missing argument to $ac_option" >&2
1284 { (exit 1); exit 1; }; }
1287 # Be sure to have absolute directory names.
1288 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1289 datadir sysconfdir sharedstatedir localstatedir includedir \
1290 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1291 libdir localedir mandir
1293 eval ac_val=\$$ac_var
1294 case $ac_val in
1295 [\\/$]* | ?:[\\/]* ) continue;;
1296 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1297 esac
1298 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1299 { (exit 1); exit 1; }; }
1300 done
1302 # There might be people who depend on the old broken behavior: `$host'
1303 # used to hold the argument of --host etc.
1304 # FIXME: To remove some day.
1305 build=$build_alias
1306 host=$host_alias
1307 target=$target_alias
1309 # FIXME: To remove some day.
1310 if test "x$host_alias" != x; then
1311 if test "x$build_alias" = x; then
1312 cross_compiling=maybe
1313 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1314 If a cross compiler is detected then cross compile mode will be used." >&2
1315 elif test "x$build_alias" != "x$host_alias"; then
1316 cross_compiling=yes
1320 ac_tool_prefix=
1321 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1323 test "$silent" = yes && exec 6>/dev/null
1326 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1327 ac_ls_di=`ls -di .` &&
1328 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1329 { echo "$as_me: error: Working directory cannot be determined" >&2
1330 { (exit 1); exit 1; }; }
1331 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1332 { echo "$as_me: error: pwd does not report name of working directory" >&2
1333 { (exit 1); exit 1; }; }
1336 # Find the source files, if location was not specified.
1337 if test -z "$srcdir"; then
1338 ac_srcdir_defaulted=yes
1339 # Try the directory containing this script, then the parent directory.
1340 ac_confdir=`$as_dirname -- "$0" ||
1341 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1342 X"$0" : 'X\(//\)[^/]' \| \
1343 X"$0" : 'X\(//\)$' \| \
1344 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1345 echo X"$0" |
1346 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1347 s//\1/
1350 /^X\(\/\/\)[^/].*/{
1351 s//\1/
1354 /^X\(\/\/\)$/{
1355 s//\1/
1358 /^X\(\/\).*/{
1359 s//\1/
1362 s/.*/./; q'`
1363 srcdir=$ac_confdir
1364 if test ! -r "$srcdir/$ac_unique_file"; then
1365 srcdir=..
1367 else
1368 ac_srcdir_defaulted=no
1370 if test ! -r "$srcdir/$ac_unique_file"; then
1371 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1372 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1373 { (exit 1); exit 1; }; }
1375 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1376 ac_abs_confdir=`(
1377 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1378 { (exit 1); exit 1; }; }
1379 pwd)`
1380 # When building in place, set srcdir=.
1381 if test "$ac_abs_confdir" = "$ac_pwd"; then
1382 srcdir=.
1384 # Remove unnecessary trailing slashes from srcdir.
1385 # Double slashes in file names in object file debugging info
1386 # mess up M-x gdb in Emacs.
1387 case $srcdir in
1388 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1389 esac
1390 for ac_var in $ac_precious_vars; do
1391 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1392 eval ac_env_${ac_var}_value=\$${ac_var}
1393 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1394 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1395 done
1398 # Report the --help message.
1400 if test "$ac_init_help" = "long"; then
1401 # Omit some internal or obsolete options to make the list less imposing.
1402 # This message is too long to be a string in the A/UX 3.1 sh.
1403 cat <<_ACEOF
1404 \`configure' configures Barry OpenSync Plugin 0.2 to adapt to many kinds of systems.
1406 Usage: $0 [OPTION]... [VAR=VALUE]...
1408 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1409 VAR=VALUE. See below for descriptions of some of the useful variables.
1411 Defaults for the options are specified in brackets.
1413 Configuration:
1414 -h, --help display this help and exit
1415 --help=short display options specific to this package
1416 --help=recursive display the short help of all the included packages
1417 -V, --version display version information and exit
1418 -q, --quiet, --silent do not print \`checking...' messages
1419 --cache-file=FILE cache test results in FILE [disabled]
1420 -C, --config-cache alias for \`--cache-file=config.cache'
1421 -n, --no-create do not create output files
1422 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1424 Installation directories:
1425 --prefix=PREFIX install architecture-independent files in PREFIX
1426 [$ac_default_prefix]
1427 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1428 [PREFIX]
1430 By default, \`make install' will install all the files in
1431 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1432 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1433 for instance \`--prefix=\$HOME'.
1435 For better control, use the options below.
1437 Fine tuning of the installation directories:
1438 --bindir=DIR user executables [EPREFIX/bin]
1439 --sbindir=DIR system admin executables [EPREFIX/sbin]
1440 --libexecdir=DIR program executables [EPREFIX/libexec]
1441 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1442 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1443 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1444 --libdir=DIR object code libraries [EPREFIX/lib]
1445 --includedir=DIR C header files [PREFIX/include]
1446 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1447 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1448 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1449 --infodir=DIR info documentation [DATAROOTDIR/info]
1450 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1451 --mandir=DIR man documentation [DATAROOTDIR/man]
1452 --docdir=DIR documentation root [DATAROOTDIR/doc/barryplugin]
1453 --htmldir=DIR html documentation [DOCDIR]
1454 --dvidir=DIR dvi documentation [DOCDIR]
1455 --pdfdir=DIR pdf documentation [DOCDIR]
1456 --psdir=DIR ps documentation [DOCDIR]
1457 _ACEOF
1459 cat <<\_ACEOF
1461 Program names:
1462 --program-prefix=PREFIX prepend PREFIX to installed program names
1463 --program-suffix=SUFFIX append SUFFIX to installed program names
1464 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1466 System types:
1467 --build=BUILD configure for building on BUILD [guessed]
1468 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1469 _ACEOF
1472 if test -n "$ac_init_help"; then
1473 case $ac_init_help in
1474 short | recursive ) echo "Configuration of Barry OpenSync Plugin 0.2:";;
1475 esac
1476 cat <<\_ACEOF
1478 Optional Features:
1479 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1480 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1481 --disable-dependency-tracking speeds up one-time build
1482 --enable-dependency-tracking do not reject slow dependency extractors
1483 --enable-static[=PKGS] build static libraries [default=no]
1484 --enable-shared[=PKGS] build shared libraries [default=yes]
1485 --enable-fast-install[=PKGS]
1486 optimize for fast installation [default=yes]
1487 --disable-libtool-lock avoid locking (might break parallel builds)
1489 Optional Packages:
1490 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1491 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1492 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1493 --with-pic try to use only PIC/non-PIC objects [default=use
1494 both]
1495 --with-tags[=TAGS] include additional configurations [automatic]
1497 Some influential environment variables:
1498 PKG_CONFIG path to pkg-config utility
1499 PACKAGE_CFLAGS
1500 C compiler flags for PACKAGE, overriding pkg-config
1501 PACKAGE_LIBS
1502 linker flags for PACKAGE, overriding pkg-config
1503 CC C compiler command
1504 CFLAGS C compiler flags
1505 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1506 nonstandard directory <lib dir>
1507 LIBS libraries to pass to the linker, e.g. -l<library>
1508 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1509 you have headers in a nonstandard directory <include dir>
1510 CPP C preprocessor
1511 CXX C++ compiler command
1512 CXXFLAGS C++ compiler flags
1513 CXXCPP C++ preprocessor
1514 F77 Fortran 77 compiler command
1515 FFLAGS Fortran 77 compiler flags
1516 BARRY_CFLAGS
1517 C compiler flags for BARRY, overriding pkg-config
1518 BARRY_LIBS linker flags for BARRY, overriding pkg-config
1520 Use these variables to override the choices made by `configure' or to help
1521 it to find libraries and programs with nonstandard names/locations.
1523 _ACEOF
1524 ac_status=$?
1527 if test "$ac_init_help" = "recursive"; then
1528 # If there are subdirs, report their specific --help.
1529 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1530 test -d "$ac_dir" || continue
1531 ac_builddir=.
1533 case "$ac_dir" in
1534 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1536 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1537 # A ".." for each directory in $ac_dir_suffix.
1538 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1539 case $ac_top_builddir_sub in
1540 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1541 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1542 esac ;;
1543 esac
1544 ac_abs_top_builddir=$ac_pwd
1545 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1546 # for backward compatibility:
1547 ac_top_builddir=$ac_top_build_prefix
1549 case $srcdir in
1550 .) # We are building in place.
1551 ac_srcdir=.
1552 ac_top_srcdir=$ac_top_builddir_sub
1553 ac_abs_top_srcdir=$ac_pwd ;;
1554 [\\/]* | ?:[\\/]* ) # Absolute name.
1555 ac_srcdir=$srcdir$ac_dir_suffix;
1556 ac_top_srcdir=$srcdir
1557 ac_abs_top_srcdir=$srcdir ;;
1558 *) # Relative name.
1559 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1560 ac_top_srcdir=$ac_top_build_prefix$srcdir
1561 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1562 esac
1563 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1565 cd "$ac_dir" || { ac_status=$?; continue; }
1566 # Check for guested configure.
1567 if test -f "$ac_srcdir/configure.gnu"; then
1568 echo &&
1569 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1570 elif test -f "$ac_srcdir/configure"; then
1571 echo &&
1572 $SHELL "$ac_srcdir/configure" --help=recursive
1573 else
1574 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1575 fi || ac_status=$?
1576 cd "$ac_pwd" || { ac_status=$?; break; }
1577 done
1580 test -n "$ac_init_help" && exit $ac_status
1581 if $ac_init_version; then
1582 cat <<\_ACEOF
1583 Barry OpenSync Plugin configure 0.2
1584 generated by GNU Autoconf 2.61
1586 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1587 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1588 This configure script is free software; the Free Software Foundation
1589 gives unlimited permission to copy, distribute and modify it.
1590 _ACEOF
1591 exit
1593 cat >config.log <<_ACEOF
1594 This file contains any messages produced by compilers while
1595 running configure, to aid debugging if configure makes a mistake.
1597 It was created by Barry OpenSync Plugin $as_me 0.2, which was
1598 generated by GNU Autoconf 2.61. Invocation command line was
1600 $ $0 $@
1602 _ACEOF
1603 exec 5>>config.log
1605 cat <<_ASUNAME
1606 ## --------- ##
1607 ## Platform. ##
1608 ## --------- ##
1610 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1611 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1612 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1613 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1614 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1616 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1617 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1619 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1620 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1621 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1622 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1623 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1624 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1625 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1627 _ASUNAME
1629 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1630 for as_dir in $PATH
1632 IFS=$as_save_IFS
1633 test -z "$as_dir" && as_dir=.
1634 echo "PATH: $as_dir"
1635 done
1636 IFS=$as_save_IFS
1638 } >&5
1640 cat >&5 <<_ACEOF
1643 ## ----------- ##
1644 ## Core tests. ##
1645 ## ----------- ##
1647 _ACEOF
1650 # Keep a trace of the command line.
1651 # Strip out --no-create and --no-recursion so they do not pile up.
1652 # Strip out --silent because we don't want to record it for future runs.
1653 # Also quote any args containing shell meta-characters.
1654 # Make two passes to allow for proper duplicate-argument suppression.
1655 ac_configure_args=
1656 ac_configure_args0=
1657 ac_configure_args1=
1658 ac_must_keep_next=false
1659 for ac_pass in 1 2
1661 for ac_arg
1663 case $ac_arg in
1664 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1665 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1666 | -silent | --silent | --silen | --sile | --sil)
1667 continue ;;
1668 *\'*)
1669 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1670 esac
1671 case $ac_pass in
1672 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1674 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1675 if test $ac_must_keep_next = true; then
1676 ac_must_keep_next=false # Got value, back to normal.
1677 else
1678 case $ac_arg in
1679 *=* | --config-cache | -C | -disable-* | --disable-* \
1680 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1681 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1682 | -with-* | --with-* | -without-* | --without-* | --x)
1683 case "$ac_configure_args0 " in
1684 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1685 esac
1687 -* ) ac_must_keep_next=true ;;
1688 esac
1690 ac_configure_args="$ac_configure_args '$ac_arg'"
1692 esac
1693 done
1694 done
1695 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1696 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1698 # When interrupted or exit'd, cleanup temporary files, and complete
1699 # config.log. We remove comments because anyway the quotes in there
1700 # would cause problems or look ugly.
1701 # WARNING: Use '\'' to represent an apostrophe within the trap.
1702 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1703 trap 'exit_status=$?
1704 # Save into config.log some information that might help in debugging.
1706 echo
1708 cat <<\_ASBOX
1709 ## ---------------- ##
1710 ## Cache variables. ##
1711 ## ---------------- ##
1712 _ASBOX
1713 echo
1714 # The following way of writing the cache mishandles newlines in values,
1716 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1717 eval ac_val=\$$ac_var
1718 case $ac_val in #(
1719 *${as_nl}*)
1720 case $ac_var in #(
1721 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1722 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1723 esac
1724 case $ac_var in #(
1725 _ | IFS | as_nl) ;; #(
1726 *) $as_unset $ac_var ;;
1727 esac ;;
1728 esac
1729 done
1730 (set) 2>&1 |
1731 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1732 *${as_nl}ac_space=\ *)
1733 sed -n \
1734 "s/'\''/'\''\\\\'\'''\''/g;
1735 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1736 ;; #(
1738 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1740 esac |
1741 sort
1743 echo
1745 cat <<\_ASBOX
1746 ## ----------------- ##
1747 ## Output variables. ##
1748 ## ----------------- ##
1749 _ASBOX
1750 echo
1751 for ac_var in $ac_subst_vars
1753 eval ac_val=\$$ac_var
1754 case $ac_val in
1755 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1756 esac
1757 echo "$ac_var='\''$ac_val'\''"
1758 done | sort
1759 echo
1761 if test -n "$ac_subst_files"; then
1762 cat <<\_ASBOX
1763 ## ------------------- ##
1764 ## File substitutions. ##
1765 ## ------------------- ##
1766 _ASBOX
1767 echo
1768 for ac_var in $ac_subst_files
1770 eval ac_val=\$$ac_var
1771 case $ac_val in
1772 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1773 esac
1774 echo "$ac_var='\''$ac_val'\''"
1775 done | sort
1776 echo
1779 if test -s confdefs.h; then
1780 cat <<\_ASBOX
1781 ## ----------- ##
1782 ## confdefs.h. ##
1783 ## ----------- ##
1784 _ASBOX
1785 echo
1786 cat confdefs.h
1787 echo
1789 test "$ac_signal" != 0 &&
1790 echo "$as_me: caught signal $ac_signal"
1791 echo "$as_me: exit $exit_status"
1792 } >&5
1793 rm -f core *.core core.conftest.* &&
1794 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1795 exit $exit_status
1797 for ac_signal in 1 2 13 15; do
1798 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1799 done
1800 ac_signal=0
1802 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1803 rm -f -r conftest* confdefs.h
1805 # Predefined preprocessor variables.
1807 cat >>confdefs.h <<_ACEOF
1808 #define PACKAGE_NAME "$PACKAGE_NAME"
1809 _ACEOF
1812 cat >>confdefs.h <<_ACEOF
1813 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1814 _ACEOF
1817 cat >>confdefs.h <<_ACEOF
1818 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1819 _ACEOF
1822 cat >>confdefs.h <<_ACEOF
1823 #define PACKAGE_STRING "$PACKAGE_STRING"
1824 _ACEOF
1827 cat >>confdefs.h <<_ACEOF
1828 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1829 _ACEOF
1832 # Let the site file select an alternate cache file if it wants to.
1833 # Prefer explicitly selected file to automatically selected ones.
1834 if test -n "$CONFIG_SITE"; then
1835 set x "$CONFIG_SITE"
1836 elif test "x$prefix" != xNONE; then
1837 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1838 else
1839 set x "$ac_default_prefix/share/config.site" \
1840 "$ac_default_prefix/etc/config.site"
1842 shift
1843 for ac_site_file
1845 if test -r "$ac_site_file"; then
1846 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1847 echo "$as_me: loading site script $ac_site_file" >&6;}
1848 sed 's/^/| /' "$ac_site_file" >&5
1849 . "$ac_site_file"
1851 done
1853 if test -r "$cache_file"; then
1854 # Some versions of bash will fail to source /dev/null (special
1855 # files actually), so we avoid doing that.
1856 if test -f "$cache_file"; then
1857 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1858 echo "$as_me: loading cache $cache_file" >&6;}
1859 case $cache_file in
1860 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1861 *) . "./$cache_file";;
1862 esac
1864 else
1865 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1866 echo "$as_me: creating cache $cache_file" >&6;}
1867 >$cache_file
1870 # Check that the precious variables saved in the cache have kept the same
1871 # value.
1872 ac_cache_corrupted=false
1873 for ac_var in $ac_precious_vars; do
1874 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1875 eval ac_new_set=\$ac_env_${ac_var}_set
1876 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1877 eval ac_new_val=\$ac_env_${ac_var}_value
1878 case $ac_old_set,$ac_new_set in
1879 set,)
1880 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1881 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1882 ac_cache_corrupted=: ;;
1883 ,set)
1884 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1885 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1886 ac_cache_corrupted=: ;;
1887 ,);;
1889 if test "x$ac_old_val" != "x$ac_new_val"; then
1890 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1891 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1892 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1893 echo "$as_me: former value: $ac_old_val" >&2;}
1894 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1895 echo "$as_me: current value: $ac_new_val" >&2;}
1896 ac_cache_corrupted=:
1897 fi;;
1898 esac
1899 # Pass precious variables to config.status.
1900 if test "$ac_new_set" = set; then
1901 case $ac_new_val in
1902 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1903 *) ac_arg=$ac_var=$ac_new_val ;;
1904 esac
1905 case " $ac_configure_args " in
1906 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1907 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1908 esac
1910 done
1911 if $ac_cache_corrupted; then
1912 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1913 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1914 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1915 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1916 { (exit 1); exit 1; }; }
1943 ac_ext=c
1944 ac_cpp='$CPP $CPPFLAGS'
1945 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1946 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1947 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1950 am__api_version="1.9"
1951 ac_aux_dir=
1952 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1953 if test -f "$ac_dir/install-sh"; then
1954 ac_aux_dir=$ac_dir
1955 ac_install_sh="$ac_aux_dir/install-sh -c"
1956 break
1957 elif test -f "$ac_dir/install.sh"; then
1958 ac_aux_dir=$ac_dir
1959 ac_install_sh="$ac_aux_dir/install.sh -c"
1960 break
1961 elif test -f "$ac_dir/shtool"; then
1962 ac_aux_dir=$ac_dir
1963 ac_install_sh="$ac_aux_dir/shtool install -c"
1964 break
1966 done
1967 if test -z "$ac_aux_dir"; then
1968 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1969 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1970 { (exit 1); exit 1; }; }
1973 # These three variables are undocumented and unsupported,
1974 # and are intended to be withdrawn in a future Autoconf release.
1975 # They can cause serious problems if a builder's source tree is in a directory
1976 # whose full name contains unusual characters.
1977 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1978 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1979 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1982 # Find a good install program. We prefer a C program (faster),
1983 # so one script is as good as another. But avoid the broken or
1984 # incompatible versions:
1985 # SysV /etc/install, /usr/sbin/install
1986 # SunOS /usr/etc/install
1987 # IRIX /sbin/install
1988 # AIX /bin/install
1989 # AmigaOS /C/install, which installs bootblocks on floppy discs
1990 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1991 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1992 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1993 # OS/2's system install, which has a completely different semantic
1994 # ./install, which can be erroneously created by make from ./install.sh.
1995 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1996 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
1997 if test -z "$INSTALL"; then
1998 if test "${ac_cv_path_install+set}" = set; then
1999 echo $ECHO_N "(cached) $ECHO_C" >&6
2000 else
2001 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2002 for as_dir in $PATH
2004 IFS=$as_save_IFS
2005 test -z "$as_dir" && as_dir=.
2006 # Account for people who put trailing slashes in PATH elements.
2007 case $as_dir/ in
2008 ./ | .// | /cC/* | \
2009 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2010 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2011 /usr/ucb/* ) ;;
2013 # OSF1 and SCO ODT 3.0 have their own names for install.
2014 # Don't use installbsd from OSF since it installs stuff as root
2015 # by default.
2016 for ac_prog in ginstall scoinst install; do
2017 for ac_exec_ext in '' $ac_executable_extensions; do
2018 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2019 if test $ac_prog = install &&
2020 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2021 # AIX install. It has an incompatible calling convention.
2023 elif test $ac_prog = install &&
2024 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2025 # program-specific install script used by HP pwplus--don't use.
2027 else
2028 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2029 break 3
2032 done
2033 done
2035 esac
2036 done
2037 IFS=$as_save_IFS
2041 if test "${ac_cv_path_install+set}" = set; then
2042 INSTALL=$ac_cv_path_install
2043 else
2044 # As a last resort, use the slow shell script. Don't cache a
2045 # value for INSTALL within a source directory, because that will
2046 # break other packages using the cache if that directory is
2047 # removed, or if the value is a relative name.
2048 INSTALL=$ac_install_sh
2051 { echo "$as_me:$LINENO: result: $INSTALL" >&5
2052 echo "${ECHO_T}$INSTALL" >&6; }
2054 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2055 # It thinks the first close brace ends the variable substitution.
2056 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2058 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2060 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2062 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2063 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2064 # Just in case
2065 sleep 1
2066 echo timestamp > conftest.file
2067 # Do `set' in a subshell so we don't clobber the current shell's
2068 # arguments. Must try -L first in case configure is actually a
2069 # symlink; some systems play weird games with the mod time of symlinks
2070 # (eg FreeBSD returns the mod time of the symlink's containing
2071 # directory).
2072 if (
2073 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2074 if test "$*" = "X"; then
2075 # -L didn't work.
2076 set X `ls -t $srcdir/configure conftest.file`
2078 rm -f conftest.file
2079 if test "$*" != "X $srcdir/configure conftest.file" \
2080 && test "$*" != "X conftest.file $srcdir/configure"; then
2082 # If neither matched, then we have a broken ls. This can happen
2083 # if, for instance, CONFIG_SHELL is bash and it inherits a
2084 # broken ls alias from the environment. This has actually
2085 # happened. Such a system could not be considered "sane".
2086 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2087 alias in your environment" >&5
2088 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2089 alias in your environment" >&2;}
2090 { (exit 1); exit 1; }; }
2093 test "$2" = conftest.file
2095 then
2096 # Ok.
2098 else
2099 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2100 Check your system clock" >&5
2101 echo "$as_me: error: newly created file is older than distributed files!
2102 Check your system clock" >&2;}
2103 { (exit 1); exit 1; }; }
2105 { echo "$as_me:$LINENO: result: yes" >&5
2106 echo "${ECHO_T}yes" >&6; }
2107 test "$program_prefix" != NONE &&
2108 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2109 # Use a double $ so make ignores it.
2110 test "$program_suffix" != NONE &&
2111 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2112 # Double any \ or $. echo might interpret backslashes.
2113 # By default was `s,x,x', remove it if useless.
2114 cat <<\_ACEOF >conftest.sed
2115 s/[\\$]/&&/g;s/;s,x,x,$//
2116 _ACEOF
2117 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2118 rm -f conftest.sed
2120 # expand $ac_aux_dir to an absolute path
2121 am_aux_dir=`cd $ac_aux_dir && pwd`
2123 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2124 # Use eval to expand $SHELL
2125 if eval "$MISSING --run true"; then
2126 am_missing_run="$MISSING --run "
2127 else
2128 am_missing_run=
2129 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2130 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2133 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
2134 # We used to keeping the `.' as first argument, in order to
2135 # allow $(mkdir_p) to be used without argument. As in
2136 # $(mkdir_p) $(somedir)
2137 # where $(somedir) is conditionally defined. However this is wrong
2138 # for two reasons:
2139 # 1. if the package is installed by a user who cannot write `.'
2140 # make install will fail,
2141 # 2. the above comment should most certainly read
2142 # $(mkdir_p) $(DESTDIR)$(somedir)
2143 # so it does not work when $(somedir) is undefined and
2144 # $(DESTDIR) is not.
2145 # To support the latter case, we have to write
2146 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
2147 # so the `.' trick is pointless.
2148 mkdir_p='mkdir -p --'
2149 else
2150 # On NextStep and OpenStep, the `mkdir' command does not
2151 # recognize any option. It will interpret all options as
2152 # directories to create, and then abort because `.' already
2153 # exists.
2154 for d in ./-p ./--version;
2156 test -d $d && rmdir $d
2157 done
2158 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2159 if test -f "$ac_aux_dir/mkinstalldirs"; then
2160 mkdir_p='$(mkinstalldirs)'
2161 else
2162 mkdir_p='$(install_sh) -d'
2166 for ac_prog in gawk mawk nawk awk
2168 # Extract the first word of "$ac_prog", so it can be a program name with args.
2169 set dummy $ac_prog; ac_word=$2
2170 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2171 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2172 if test "${ac_cv_prog_AWK+set}" = set; then
2173 echo $ECHO_N "(cached) $ECHO_C" >&6
2174 else
2175 if test -n "$AWK"; then
2176 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2177 else
2178 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2179 for as_dir in $PATH
2181 IFS=$as_save_IFS
2182 test -z "$as_dir" && as_dir=.
2183 for ac_exec_ext in '' $ac_executable_extensions; do
2184 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2185 ac_cv_prog_AWK="$ac_prog"
2186 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2187 break 2
2189 done
2190 done
2191 IFS=$as_save_IFS
2195 AWK=$ac_cv_prog_AWK
2196 if test -n "$AWK"; then
2197 { echo "$as_me:$LINENO: result: $AWK" >&5
2198 echo "${ECHO_T}$AWK" >&6; }
2199 else
2200 { echo "$as_me:$LINENO: result: no" >&5
2201 echo "${ECHO_T}no" >&6; }
2205 test -n "$AWK" && break
2206 done
2208 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2209 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2210 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2211 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2212 echo $ECHO_N "(cached) $ECHO_C" >&6
2213 else
2214 cat >conftest.make <<\_ACEOF
2215 SHELL = /bin/sh
2216 all:
2217 @echo '@@@%%%=$(MAKE)=@@@%%%'
2218 _ACEOF
2219 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2220 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2221 *@@@%%%=?*=@@@%%%*)
2222 eval ac_cv_prog_make_${ac_make}_set=yes;;
2224 eval ac_cv_prog_make_${ac_make}_set=no;;
2225 esac
2226 rm -f conftest.make
2228 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2229 { echo "$as_me:$LINENO: result: yes" >&5
2230 echo "${ECHO_T}yes" >&6; }
2231 SET_MAKE=
2232 else
2233 { echo "$as_me:$LINENO: result: no" >&5
2234 echo "${ECHO_T}no" >&6; }
2235 SET_MAKE="MAKE=${MAKE-make}"
2238 rm -rf .tst 2>/dev/null
2239 mkdir .tst 2>/dev/null
2240 if test -d .tst; then
2241 am__leading_dot=.
2242 else
2243 am__leading_dot=_
2245 rmdir .tst 2>/dev/null
2247 # test to see if srcdir already configured
2248 if test "`cd $srcdir && pwd`" != "`pwd`" &&
2249 test -f $srcdir/config.status; then
2250 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2251 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2252 { (exit 1); exit 1; }; }
2255 # test whether we have cygpath
2256 if test -z "$CYGPATH_W"; then
2257 if (cygpath --version) >/dev/null 2>/dev/null; then
2258 CYGPATH_W='cygpath -w'
2259 else
2260 CYGPATH_W=echo
2265 # Define the identity of the package.
2266 PACKAGE='barryplugin'
2267 VERSION='0.2'
2270 cat >>confdefs.h <<_ACEOF
2271 #define PACKAGE "$PACKAGE"
2272 _ACEOF
2275 cat >>confdefs.h <<_ACEOF
2276 #define VERSION "$VERSION"
2277 _ACEOF
2279 # Some tools Automake needs.
2281 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2284 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2287 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2290 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2293 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2295 install_sh=${install_sh-"$am_aux_dir/install-sh"}
2297 # Installed binaries are usually stripped using `strip' when the user
2298 # run `make install-strip'. However `strip' might not be the right
2299 # tool to use in cross-compilation environments, therefore Automake
2300 # will honor the `STRIP' environment variable to overrule this program.
2301 if test "$cross_compiling" != no; then
2302 if test -n "$ac_tool_prefix"; then
2303 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2304 set dummy ${ac_tool_prefix}strip; ac_word=$2
2305 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2306 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2307 if test "${ac_cv_prog_STRIP+set}" = set; then
2308 echo $ECHO_N "(cached) $ECHO_C" >&6
2309 else
2310 if test -n "$STRIP"; then
2311 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2312 else
2313 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2314 for as_dir in $PATH
2316 IFS=$as_save_IFS
2317 test -z "$as_dir" && as_dir=.
2318 for ac_exec_ext in '' $ac_executable_extensions; do
2319 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2320 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2321 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2322 break 2
2324 done
2325 done
2326 IFS=$as_save_IFS
2330 STRIP=$ac_cv_prog_STRIP
2331 if test -n "$STRIP"; then
2332 { echo "$as_me:$LINENO: result: $STRIP" >&5
2333 echo "${ECHO_T}$STRIP" >&6; }
2334 else
2335 { echo "$as_me:$LINENO: result: no" >&5
2336 echo "${ECHO_T}no" >&6; }
2341 if test -z "$ac_cv_prog_STRIP"; then
2342 ac_ct_STRIP=$STRIP
2343 # Extract the first word of "strip", so it can be a program name with args.
2344 set dummy strip; ac_word=$2
2345 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2346 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2347 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2348 echo $ECHO_N "(cached) $ECHO_C" >&6
2349 else
2350 if test -n "$ac_ct_STRIP"; then
2351 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2352 else
2353 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2354 for as_dir in $PATH
2356 IFS=$as_save_IFS
2357 test -z "$as_dir" && as_dir=.
2358 for ac_exec_ext in '' $ac_executable_extensions; do
2359 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2360 ac_cv_prog_ac_ct_STRIP="strip"
2361 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2362 break 2
2364 done
2365 done
2366 IFS=$as_save_IFS
2370 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2371 if test -n "$ac_ct_STRIP"; then
2372 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2373 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2374 else
2375 { echo "$as_me:$LINENO: result: no" >&5
2376 echo "${ECHO_T}no" >&6; }
2379 if test "x$ac_ct_STRIP" = x; then
2380 STRIP=":"
2381 else
2382 case $cross_compiling:$ac_tool_warned in
2383 yes:)
2384 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2385 whose name does not start with the host triplet. If you think this
2386 configuration is useful to you, please write to autoconf@gnu.org." >&5
2387 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2388 whose name does not start with the host triplet. If you think this
2389 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2390 ac_tool_warned=yes ;;
2391 esac
2392 STRIP=$ac_ct_STRIP
2394 else
2395 STRIP="$ac_cv_prog_STRIP"
2399 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2401 # We need awk for the "check" target. The system "awk" is bad on
2402 # some platforms.
2403 # Always define AMTAR for backward compatibility.
2405 AMTAR=${AMTAR-"${am_missing_run}tar"}
2407 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2414 ac_config_headers="$ac_config_headers config.h"
2417 export PKG_CONFIG_PATH=${PKG_CONFIG_PATH}:/usr/lib/pkgconfig:$prefix/lib/pkgconfig:/usr/local/lib/pkgconfig
2418 pkg_modules="opensync-1.0 glib-2.0"
2421 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
2422 if test -n "$ac_tool_prefix"; then
2423 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
2424 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
2425 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2426 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2427 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
2428 echo $ECHO_N "(cached) $ECHO_C" >&6
2429 else
2430 case $PKG_CONFIG in
2431 [\\/]* | ?:[\\/]*)
2432 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
2435 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2436 for as_dir in $PATH
2438 IFS=$as_save_IFS
2439 test -z "$as_dir" && as_dir=.
2440 for ac_exec_ext in '' $ac_executable_extensions; do
2441 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2442 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
2443 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2444 break 2
2446 done
2447 done
2448 IFS=$as_save_IFS
2451 esac
2453 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
2454 if test -n "$PKG_CONFIG"; then
2455 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
2456 echo "${ECHO_T}$PKG_CONFIG" >&6; }
2457 else
2458 { echo "$as_me:$LINENO: result: no" >&5
2459 echo "${ECHO_T}no" >&6; }
2464 if test -z "$ac_cv_path_PKG_CONFIG"; then
2465 ac_pt_PKG_CONFIG=$PKG_CONFIG
2466 # Extract the first word of "pkg-config", so it can be a program name with args.
2467 set dummy pkg-config; ac_word=$2
2468 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2469 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2470 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
2471 echo $ECHO_N "(cached) $ECHO_C" >&6
2472 else
2473 case $ac_pt_PKG_CONFIG in
2474 [\\/]* | ?:[\\/]*)
2475 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
2478 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2479 for as_dir in $PATH
2481 IFS=$as_save_IFS
2482 test -z "$as_dir" && as_dir=.
2483 for ac_exec_ext in '' $ac_executable_extensions; do
2484 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2485 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
2486 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2487 break 2
2489 done
2490 done
2491 IFS=$as_save_IFS
2494 esac
2496 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
2497 if test -n "$ac_pt_PKG_CONFIG"; then
2498 { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
2499 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
2500 else
2501 { echo "$as_me:$LINENO: result: no" >&5
2502 echo "${ECHO_T}no" >&6; }
2505 if test "x$ac_pt_PKG_CONFIG" = x; then
2506 PKG_CONFIG=""
2507 else
2508 case $cross_compiling:$ac_tool_warned in
2509 yes:)
2510 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2511 whose name does not start with the host triplet. If you think this
2512 configuration is useful to you, please write to autoconf@gnu.org." >&5
2513 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2514 whose name does not start with the host triplet. If you think this
2515 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2516 ac_tool_warned=yes ;;
2517 esac
2518 PKG_CONFIG=$ac_pt_PKG_CONFIG
2520 else
2521 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
2525 if test -n "$PKG_CONFIG"; then
2526 _pkg_min_version=0.9.0
2527 { echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
2528 echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; }
2529 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
2530 { echo "$as_me:$LINENO: result: yes" >&5
2531 echo "${ECHO_T}yes" >&6; }
2532 else
2533 { echo "$as_me:$LINENO: result: no" >&5
2534 echo "${ECHO_T}no" >&6; }
2535 PKG_CONFIG=""
2540 pkg_failed=no
2541 { echo "$as_me:$LINENO: checking for PACKAGE" >&5
2542 echo $ECHO_N "checking for PACKAGE... $ECHO_C" >&6; }
2544 if test -n "$PKG_CONFIG"; then
2545 if test -n "$PACKAGE_CFLAGS"; then
2546 pkg_cv_PACKAGE_CFLAGS="$PACKAGE_CFLAGS"
2547 else
2548 if test -n "$PKG_CONFIG" && \
2549 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\$pkg_modules\"") >&5
2550 ($PKG_CONFIG --exists --print-errors "$pkg_modules") 2>&5
2551 ac_status=$?
2552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2553 (exit $ac_status); }; then
2554 pkg_cv_PACKAGE_CFLAGS=`$PKG_CONFIG --cflags "$pkg_modules" 2>/dev/null`
2555 else
2556 pkg_failed=yes
2559 else
2560 pkg_failed=untried
2562 if test -n "$PKG_CONFIG"; then
2563 if test -n "$PACKAGE_LIBS"; then
2564 pkg_cv_PACKAGE_LIBS="$PACKAGE_LIBS"
2565 else
2566 if test -n "$PKG_CONFIG" && \
2567 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\$pkg_modules\"") >&5
2568 ($PKG_CONFIG --exists --print-errors "$pkg_modules") 2>&5
2569 ac_status=$?
2570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2571 (exit $ac_status); }; then
2572 pkg_cv_PACKAGE_LIBS=`$PKG_CONFIG --libs "$pkg_modules" 2>/dev/null`
2573 else
2574 pkg_failed=yes
2577 else
2578 pkg_failed=untried
2583 if test $pkg_failed = yes; then
2585 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
2586 _pkg_short_errors_supported=yes
2587 else
2588 _pkg_short_errors_supported=no
2590 if test $_pkg_short_errors_supported = yes; then
2591 PACKAGE_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "$pkg_modules"`
2592 else
2593 PACKAGE_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$pkg_modules"`
2595 # Put the nasty error message in config.log where it belongs
2596 echo "$PACKAGE_PKG_ERRORS" >&5
2598 { { echo "$as_me:$LINENO: error: Package requirements ($pkg_modules) were not met:
2600 $PACKAGE_PKG_ERRORS
2602 Consider adjusting the PKG_CONFIG_PATH environment variable if you
2603 installed software in a non-standard prefix.
2605 Alternatively, you may set the environment variables PACKAGE_CFLAGS
2606 and PACKAGE_LIBS to avoid the need to call pkg-config.
2607 See the pkg-config man page for more details.
2608 " >&5
2609 echo "$as_me: error: Package requirements ($pkg_modules) were not met:
2611 $PACKAGE_PKG_ERRORS
2613 Consider adjusting the PKG_CONFIG_PATH environment variable if you
2614 installed software in a non-standard prefix.
2616 Alternatively, you may set the environment variables PACKAGE_CFLAGS
2617 and PACKAGE_LIBS to avoid the need to call pkg-config.
2618 See the pkg-config man page for more details.
2619 " >&2;}
2620 { (exit 1); exit 1; }; }
2621 elif test $pkg_failed = untried; then
2622 { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
2623 is in your PATH or set the PKG_CONFIG environment variable to the full
2624 path to pkg-config.
2626 Alternatively, you may set the environment variables PACKAGE_CFLAGS
2627 and PACKAGE_LIBS to avoid the need to call pkg-config.
2628 See the pkg-config man page for more details.
2630 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
2631 See \`config.log' for more details." >&5
2632 echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
2633 is in your PATH or set the PKG_CONFIG environment variable to the full
2634 path to pkg-config.
2636 Alternatively, you may set the environment variables PACKAGE_CFLAGS
2637 and PACKAGE_LIBS to avoid the need to call pkg-config.
2638 See the pkg-config man page for more details.
2640 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
2641 See \`config.log' for more details." >&2;}
2642 { (exit 1); exit 1; }; }
2643 else
2644 PACKAGE_CFLAGS=$pkg_cv_PACKAGE_CFLAGS
2645 PACKAGE_LIBS=$pkg_cv_PACKAGE_LIBS
2646 { echo "$as_me:$LINENO: result: yes" >&5
2647 echo "${ECHO_T}yes" >&6; }
2653 DEPDIR="${am__leading_dot}deps"
2655 ac_config_commands="$ac_config_commands depfiles"
2658 am_make=${MAKE-make}
2659 cat > confinc << 'END'
2660 am__doit:
2661 @echo done
2662 .PHONY: am__doit
2664 # If we don't find an include directive, just comment out the code.
2665 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2666 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
2667 am__include="#"
2668 am__quote=
2669 _am_result=none
2670 # First try GNU make style include.
2671 echo "include confinc" > confmf
2672 # We grep out `Entering directory' and `Leaving directory'
2673 # messages which can occur if `w' ends up in MAKEFLAGS.
2674 # In particular we don't look at `^make:' because GNU make might
2675 # be invoked under some other name (usually "gmake"), in which
2676 # case it prints its new name instead of `make'.
2677 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2678 am__include=include
2679 am__quote=
2680 _am_result=GNU
2682 # Now try BSD make style include.
2683 if test "$am__include" = "#"; then
2684 echo '.include "confinc"' > confmf
2685 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2686 am__include=.include
2687 am__quote="\""
2688 _am_result=BSD
2693 { echo "$as_me:$LINENO: result: $_am_result" >&5
2694 echo "${ECHO_T}$_am_result" >&6; }
2695 rm -f confinc confmf
2697 # Check whether --enable-dependency-tracking was given.
2698 if test "${enable_dependency_tracking+set}" = set; then
2699 enableval=$enable_dependency_tracking;
2702 if test "x$enable_dependency_tracking" != xno; then
2703 am_depcomp="$ac_aux_dir/depcomp"
2704 AMDEPBACKSLASH='\'
2708 if test "x$enable_dependency_tracking" != xno; then
2709 AMDEP_TRUE=
2710 AMDEP_FALSE='#'
2711 else
2712 AMDEP_TRUE='#'
2713 AMDEP_FALSE=
2718 ac_ext=c
2719 ac_cpp='$CPP $CPPFLAGS'
2720 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2721 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2722 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2723 if test -n "$ac_tool_prefix"; then
2724 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2725 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2726 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2727 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2728 if test "${ac_cv_prog_CC+set}" = set; then
2729 echo $ECHO_N "(cached) $ECHO_C" >&6
2730 else
2731 if test -n "$CC"; then
2732 ac_cv_prog_CC="$CC" # Let the user override the test.
2733 else
2734 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2735 for as_dir in $PATH
2737 IFS=$as_save_IFS
2738 test -z "$as_dir" && as_dir=.
2739 for ac_exec_ext in '' $ac_executable_extensions; do
2740 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2741 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2742 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2743 break 2
2745 done
2746 done
2747 IFS=$as_save_IFS
2751 CC=$ac_cv_prog_CC
2752 if test -n "$CC"; then
2753 { echo "$as_me:$LINENO: result: $CC" >&5
2754 echo "${ECHO_T}$CC" >&6; }
2755 else
2756 { echo "$as_me:$LINENO: result: no" >&5
2757 echo "${ECHO_T}no" >&6; }
2762 if test -z "$ac_cv_prog_CC"; then
2763 ac_ct_CC=$CC
2764 # Extract the first word of "gcc", so it can be a program name with args.
2765 set dummy gcc; ac_word=$2
2766 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2767 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2768 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2769 echo $ECHO_N "(cached) $ECHO_C" >&6
2770 else
2771 if test -n "$ac_ct_CC"; then
2772 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2773 else
2774 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2775 for as_dir in $PATH
2777 IFS=$as_save_IFS
2778 test -z "$as_dir" && as_dir=.
2779 for ac_exec_ext in '' $ac_executable_extensions; do
2780 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2781 ac_cv_prog_ac_ct_CC="gcc"
2782 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2783 break 2
2785 done
2786 done
2787 IFS=$as_save_IFS
2791 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2792 if test -n "$ac_ct_CC"; then
2793 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2794 echo "${ECHO_T}$ac_ct_CC" >&6; }
2795 else
2796 { echo "$as_me:$LINENO: result: no" >&5
2797 echo "${ECHO_T}no" >&6; }
2800 if test "x$ac_ct_CC" = x; then
2801 CC=""
2802 else
2803 case $cross_compiling:$ac_tool_warned in
2804 yes:)
2805 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2806 whose name does not start with the host triplet. If you think this
2807 configuration is useful to you, please write to autoconf@gnu.org." >&5
2808 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2809 whose name does not start with the host triplet. If you think this
2810 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2811 ac_tool_warned=yes ;;
2812 esac
2813 CC=$ac_ct_CC
2815 else
2816 CC="$ac_cv_prog_CC"
2819 if test -z "$CC"; then
2820 if test -n "$ac_tool_prefix"; then
2821 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2822 set dummy ${ac_tool_prefix}cc; ac_word=$2
2823 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2824 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2825 if test "${ac_cv_prog_CC+set}" = set; then
2826 echo $ECHO_N "(cached) $ECHO_C" >&6
2827 else
2828 if test -n "$CC"; then
2829 ac_cv_prog_CC="$CC" # Let the user override the test.
2830 else
2831 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2832 for as_dir in $PATH
2834 IFS=$as_save_IFS
2835 test -z "$as_dir" && as_dir=.
2836 for ac_exec_ext in '' $ac_executable_extensions; do
2837 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2838 ac_cv_prog_CC="${ac_tool_prefix}cc"
2839 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2840 break 2
2842 done
2843 done
2844 IFS=$as_save_IFS
2848 CC=$ac_cv_prog_CC
2849 if test -n "$CC"; then
2850 { echo "$as_me:$LINENO: result: $CC" >&5
2851 echo "${ECHO_T}$CC" >&6; }
2852 else
2853 { echo "$as_me:$LINENO: result: no" >&5
2854 echo "${ECHO_T}no" >&6; }
2860 if test -z "$CC"; then
2861 # Extract the first word of "cc", so it can be a program name with args.
2862 set dummy cc; ac_word=$2
2863 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2864 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2865 if test "${ac_cv_prog_CC+set}" = set; then
2866 echo $ECHO_N "(cached) $ECHO_C" >&6
2867 else
2868 if test -n "$CC"; then
2869 ac_cv_prog_CC="$CC" # Let the user override the test.
2870 else
2871 ac_prog_rejected=no
2872 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2873 for as_dir in $PATH
2875 IFS=$as_save_IFS
2876 test -z "$as_dir" && as_dir=.
2877 for ac_exec_ext in '' $ac_executable_extensions; do
2878 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2879 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2880 ac_prog_rejected=yes
2881 continue
2883 ac_cv_prog_CC="cc"
2884 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2885 break 2
2887 done
2888 done
2889 IFS=$as_save_IFS
2891 if test $ac_prog_rejected = yes; then
2892 # We found a bogon in the path, so make sure we never use it.
2893 set dummy $ac_cv_prog_CC
2894 shift
2895 if test $# != 0; then
2896 # We chose a different compiler from the bogus one.
2897 # However, it has the same basename, so the bogon will be chosen
2898 # first if we set CC to just the basename; use the full file name.
2899 shift
2900 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2905 CC=$ac_cv_prog_CC
2906 if test -n "$CC"; then
2907 { echo "$as_me:$LINENO: result: $CC" >&5
2908 echo "${ECHO_T}$CC" >&6; }
2909 else
2910 { echo "$as_me:$LINENO: result: no" >&5
2911 echo "${ECHO_T}no" >&6; }
2916 if test -z "$CC"; then
2917 if test -n "$ac_tool_prefix"; then
2918 for ac_prog in cl.exe
2920 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2921 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2922 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2923 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2924 if test "${ac_cv_prog_CC+set}" = set; then
2925 echo $ECHO_N "(cached) $ECHO_C" >&6
2926 else
2927 if test -n "$CC"; then
2928 ac_cv_prog_CC="$CC" # Let the user override the test.
2929 else
2930 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2931 for as_dir in $PATH
2933 IFS=$as_save_IFS
2934 test -z "$as_dir" && as_dir=.
2935 for ac_exec_ext in '' $ac_executable_extensions; do
2936 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2937 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2938 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2939 break 2
2941 done
2942 done
2943 IFS=$as_save_IFS
2947 CC=$ac_cv_prog_CC
2948 if test -n "$CC"; then
2949 { echo "$as_me:$LINENO: result: $CC" >&5
2950 echo "${ECHO_T}$CC" >&6; }
2951 else
2952 { echo "$as_me:$LINENO: result: no" >&5
2953 echo "${ECHO_T}no" >&6; }
2957 test -n "$CC" && break
2958 done
2960 if test -z "$CC"; then
2961 ac_ct_CC=$CC
2962 for ac_prog in cl.exe
2964 # Extract the first word of "$ac_prog", so it can be a program name with args.
2965 set dummy $ac_prog; ac_word=$2
2966 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2967 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2968 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2969 echo $ECHO_N "(cached) $ECHO_C" >&6
2970 else
2971 if test -n "$ac_ct_CC"; then
2972 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2973 else
2974 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2975 for as_dir in $PATH
2977 IFS=$as_save_IFS
2978 test -z "$as_dir" && as_dir=.
2979 for ac_exec_ext in '' $ac_executable_extensions; do
2980 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2981 ac_cv_prog_ac_ct_CC="$ac_prog"
2982 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2983 break 2
2985 done
2986 done
2987 IFS=$as_save_IFS
2991 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2992 if test -n "$ac_ct_CC"; then
2993 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2994 echo "${ECHO_T}$ac_ct_CC" >&6; }
2995 else
2996 { echo "$as_me:$LINENO: result: no" >&5
2997 echo "${ECHO_T}no" >&6; }
3001 test -n "$ac_ct_CC" && break
3002 done
3004 if test "x$ac_ct_CC" = x; then
3005 CC=""
3006 else
3007 case $cross_compiling:$ac_tool_warned in
3008 yes:)
3009 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3010 whose name does not start with the host triplet. If you think this
3011 configuration is useful to you, please write to autoconf@gnu.org." >&5
3012 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3013 whose name does not start with the host triplet. If you think this
3014 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3015 ac_tool_warned=yes ;;
3016 esac
3017 CC=$ac_ct_CC
3024 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3025 See \`config.log' for more details." >&5
3026 echo "$as_me: error: no acceptable C compiler found in \$PATH
3027 See \`config.log' for more details." >&2;}
3028 { (exit 1); exit 1; }; }
3030 # Provide some information about the compiler.
3031 echo "$as_me:$LINENO: checking for C compiler version" >&5
3032 ac_compiler=`set X $ac_compile; echo $2`
3033 { (ac_try="$ac_compiler --version >&5"
3034 case "(($ac_try" in
3035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3036 *) ac_try_echo=$ac_try;;
3037 esac
3038 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3039 (eval "$ac_compiler --version >&5") 2>&5
3040 ac_status=$?
3041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3042 (exit $ac_status); }
3043 { (ac_try="$ac_compiler -v >&5"
3044 case "(($ac_try" in
3045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3046 *) ac_try_echo=$ac_try;;
3047 esac
3048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3049 (eval "$ac_compiler -v >&5") 2>&5
3050 ac_status=$?
3051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3052 (exit $ac_status); }
3053 { (ac_try="$ac_compiler -V >&5"
3054 case "(($ac_try" in
3055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3056 *) ac_try_echo=$ac_try;;
3057 esac
3058 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3059 (eval "$ac_compiler -V >&5") 2>&5
3060 ac_status=$?
3061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3062 (exit $ac_status); }
3064 cat >conftest.$ac_ext <<_ACEOF
3065 /* confdefs.h. */
3066 _ACEOF
3067 cat confdefs.h >>conftest.$ac_ext
3068 cat >>conftest.$ac_ext <<_ACEOF
3069 /* end confdefs.h. */
3072 main ()
3076 return 0;
3078 _ACEOF
3079 ac_clean_files_save=$ac_clean_files
3080 ac_clean_files="$ac_clean_files a.out a.exe b.out"
3081 # Try to create an executable without -o first, disregard a.out.
3082 # It will help us diagnose broken compilers, and finding out an intuition
3083 # of exeext.
3084 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3085 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
3086 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3088 # List of possible output files, starting from the most likely.
3089 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
3090 # only as a last resort. b.out is created by i960 compilers.
3091 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
3093 # The IRIX 6 linker writes into existing files which may not be
3094 # executable, retaining their permissions. Remove them first so a
3095 # subsequent execution test works.
3096 ac_rmfiles=
3097 for ac_file in $ac_files
3099 case $ac_file in
3100 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3101 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3102 esac
3103 done
3104 rm -f $ac_rmfiles
3106 if { (ac_try="$ac_link_default"
3107 case "(($ac_try" in
3108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3109 *) ac_try_echo=$ac_try;;
3110 esac
3111 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3112 (eval "$ac_link_default") 2>&5
3113 ac_status=$?
3114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3115 (exit $ac_status); }; then
3116 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3117 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3118 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3119 # so that the user can short-circuit this test for compilers unknown to
3120 # Autoconf.
3121 for ac_file in $ac_files ''
3123 test -f "$ac_file" || continue
3124 case $ac_file in
3125 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
3127 [ab].out )
3128 # We found the default executable, but exeext='' is most
3129 # certainly right.
3130 break;;
3131 *.* )
3132 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3133 then :; else
3134 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3136 # We set ac_cv_exeext here because the later test for it is not
3137 # safe: cross compilers may not add the suffix if given an `-o'
3138 # argument, so we may need to know it at that point already.
3139 # Even if this section looks crufty: it has the advantage of
3140 # actually working.
3141 break;;
3143 break;;
3144 esac
3145 done
3146 test "$ac_cv_exeext" = no && ac_cv_exeext=
3148 else
3149 ac_file=''
3152 { echo "$as_me:$LINENO: result: $ac_file" >&5
3153 echo "${ECHO_T}$ac_file" >&6; }
3154 if test -z "$ac_file"; then
3155 echo "$as_me: failed program was:" >&5
3156 sed 's/^/| /' conftest.$ac_ext >&5
3158 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3159 See \`config.log' for more details." >&5
3160 echo "$as_me: error: C compiler cannot create executables
3161 See \`config.log' for more details." >&2;}
3162 { (exit 77); exit 77; }; }
3165 ac_exeext=$ac_cv_exeext
3167 # Check that the compiler produces executables we can run. If not, either
3168 # the compiler is broken, or we cross compile.
3169 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3170 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3171 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3172 # If not cross compiling, check that we can run a simple program.
3173 if test "$cross_compiling" != yes; then
3174 if { ac_try='./$ac_file'
3175 { (case "(($ac_try" in
3176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3177 *) ac_try_echo=$ac_try;;
3178 esac
3179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3180 (eval "$ac_try") 2>&5
3181 ac_status=$?
3182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3183 (exit $ac_status); }; }; then
3184 cross_compiling=no
3185 else
3186 if test "$cross_compiling" = maybe; then
3187 cross_compiling=yes
3188 else
3189 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3190 If you meant to cross compile, use \`--host'.
3191 See \`config.log' for more details." >&5
3192 echo "$as_me: error: cannot run C compiled programs.
3193 If you meant to cross compile, use \`--host'.
3194 See \`config.log' for more details." >&2;}
3195 { (exit 1); exit 1; }; }
3199 { echo "$as_me:$LINENO: result: yes" >&5
3200 echo "${ECHO_T}yes" >&6; }
3202 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3203 ac_clean_files=$ac_clean_files_save
3204 # Check that the compiler produces executables we can run. If not, either
3205 # the compiler is broken, or we cross compile.
3206 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3207 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3208 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
3209 echo "${ECHO_T}$cross_compiling" >&6; }
3211 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
3212 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3213 if { (ac_try="$ac_link"
3214 case "(($ac_try" in
3215 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3216 *) ac_try_echo=$ac_try;;
3217 esac
3218 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3219 (eval "$ac_link") 2>&5
3220 ac_status=$?
3221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3222 (exit $ac_status); }; then
3223 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3224 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3225 # work properly (i.e., refer to `conftest.exe'), while it won't with
3226 # `rm'.
3227 for ac_file in conftest.exe conftest conftest.*; do
3228 test -f "$ac_file" || continue
3229 case $ac_file in
3230 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3231 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3232 break;;
3233 * ) break;;
3234 esac
3235 done
3236 else
3237 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3238 See \`config.log' for more details." >&5
3239 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3240 See \`config.log' for more details." >&2;}
3241 { (exit 1); exit 1; }; }
3244 rm -f conftest$ac_cv_exeext
3245 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3246 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3248 rm -f conftest.$ac_ext
3249 EXEEXT=$ac_cv_exeext
3250 ac_exeext=$EXEEXT
3251 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3252 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3253 if test "${ac_cv_objext+set}" = set; then
3254 echo $ECHO_N "(cached) $ECHO_C" >&6
3255 else
3256 cat >conftest.$ac_ext <<_ACEOF
3257 /* confdefs.h. */
3258 _ACEOF
3259 cat confdefs.h >>conftest.$ac_ext
3260 cat >>conftest.$ac_ext <<_ACEOF
3261 /* end confdefs.h. */
3264 main ()
3268 return 0;
3270 _ACEOF
3271 rm -f conftest.o conftest.obj
3272 if { (ac_try="$ac_compile"
3273 case "(($ac_try" in
3274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3275 *) ac_try_echo=$ac_try;;
3276 esac
3277 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3278 (eval "$ac_compile") 2>&5
3279 ac_status=$?
3280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3281 (exit $ac_status); }; then
3282 for ac_file in conftest.o conftest.obj conftest.*; do
3283 test -f "$ac_file" || continue;
3284 case $ac_file in
3285 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3286 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3287 break;;
3288 esac
3289 done
3290 else
3291 echo "$as_me: failed program was:" >&5
3292 sed 's/^/| /' conftest.$ac_ext >&5
3294 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3295 See \`config.log' for more details." >&5
3296 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3297 See \`config.log' for more details." >&2;}
3298 { (exit 1); exit 1; }; }
3301 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3303 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3304 echo "${ECHO_T}$ac_cv_objext" >&6; }
3305 OBJEXT=$ac_cv_objext
3306 ac_objext=$OBJEXT
3307 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3308 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3309 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3310 echo $ECHO_N "(cached) $ECHO_C" >&6
3311 else
3312 cat >conftest.$ac_ext <<_ACEOF
3313 /* confdefs.h. */
3314 _ACEOF
3315 cat confdefs.h >>conftest.$ac_ext
3316 cat >>conftest.$ac_ext <<_ACEOF
3317 /* end confdefs.h. */
3320 main ()
3322 #ifndef __GNUC__
3323 choke me
3324 #endif
3327 return 0;
3329 _ACEOF
3330 rm -f conftest.$ac_objext
3331 if { (ac_try="$ac_compile"
3332 case "(($ac_try" in
3333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3334 *) ac_try_echo=$ac_try;;
3335 esac
3336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3337 (eval "$ac_compile") 2>conftest.er1
3338 ac_status=$?
3339 grep -v '^ *+' conftest.er1 >conftest.err
3340 rm -f conftest.er1
3341 cat conftest.err >&5
3342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3343 (exit $ac_status); } && {
3344 test -z "$ac_c_werror_flag" ||
3345 test ! -s conftest.err
3346 } && test -s conftest.$ac_objext; then
3347 ac_compiler_gnu=yes
3348 else
3349 echo "$as_me: failed program was:" >&5
3350 sed 's/^/| /' conftest.$ac_ext >&5
3352 ac_compiler_gnu=no
3355 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3356 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3359 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3360 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3361 GCC=`test $ac_compiler_gnu = yes && echo yes`
3362 ac_test_CFLAGS=${CFLAGS+set}
3363 ac_save_CFLAGS=$CFLAGS
3364 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3365 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3366 if test "${ac_cv_prog_cc_g+set}" = set; then
3367 echo $ECHO_N "(cached) $ECHO_C" >&6
3368 else
3369 ac_save_c_werror_flag=$ac_c_werror_flag
3370 ac_c_werror_flag=yes
3371 ac_cv_prog_cc_g=no
3372 CFLAGS="-g"
3373 cat >conftest.$ac_ext <<_ACEOF
3374 /* confdefs.h. */
3375 _ACEOF
3376 cat confdefs.h >>conftest.$ac_ext
3377 cat >>conftest.$ac_ext <<_ACEOF
3378 /* end confdefs.h. */
3381 main ()
3385 return 0;
3387 _ACEOF
3388 rm -f conftest.$ac_objext
3389 if { (ac_try="$ac_compile"
3390 case "(($ac_try" in
3391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3392 *) ac_try_echo=$ac_try;;
3393 esac
3394 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3395 (eval "$ac_compile") 2>conftest.er1
3396 ac_status=$?
3397 grep -v '^ *+' conftest.er1 >conftest.err
3398 rm -f conftest.er1
3399 cat conftest.err >&5
3400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3401 (exit $ac_status); } && {
3402 test -z "$ac_c_werror_flag" ||
3403 test ! -s conftest.err
3404 } && test -s conftest.$ac_objext; then
3405 ac_cv_prog_cc_g=yes
3406 else
3407 echo "$as_me: failed program was:" >&5
3408 sed 's/^/| /' conftest.$ac_ext >&5
3410 CFLAGS=""
3411 cat >conftest.$ac_ext <<_ACEOF
3412 /* confdefs.h. */
3413 _ACEOF
3414 cat confdefs.h >>conftest.$ac_ext
3415 cat >>conftest.$ac_ext <<_ACEOF
3416 /* end confdefs.h. */
3419 main ()
3423 return 0;
3425 _ACEOF
3426 rm -f conftest.$ac_objext
3427 if { (ac_try="$ac_compile"
3428 case "(($ac_try" in
3429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3430 *) ac_try_echo=$ac_try;;
3431 esac
3432 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3433 (eval "$ac_compile") 2>conftest.er1
3434 ac_status=$?
3435 grep -v '^ *+' conftest.er1 >conftest.err
3436 rm -f conftest.er1
3437 cat conftest.err >&5
3438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3439 (exit $ac_status); } && {
3440 test -z "$ac_c_werror_flag" ||
3441 test ! -s conftest.err
3442 } && test -s conftest.$ac_objext; then
3444 else
3445 echo "$as_me: failed program was:" >&5
3446 sed 's/^/| /' conftest.$ac_ext >&5
3448 ac_c_werror_flag=$ac_save_c_werror_flag
3449 CFLAGS="-g"
3450 cat >conftest.$ac_ext <<_ACEOF
3451 /* confdefs.h. */
3452 _ACEOF
3453 cat confdefs.h >>conftest.$ac_ext
3454 cat >>conftest.$ac_ext <<_ACEOF
3455 /* end confdefs.h. */
3458 main ()
3462 return 0;
3464 _ACEOF
3465 rm -f conftest.$ac_objext
3466 if { (ac_try="$ac_compile"
3467 case "(($ac_try" in
3468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3469 *) ac_try_echo=$ac_try;;
3470 esac
3471 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3472 (eval "$ac_compile") 2>conftest.er1
3473 ac_status=$?
3474 grep -v '^ *+' conftest.er1 >conftest.err
3475 rm -f conftest.er1
3476 cat conftest.err >&5
3477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3478 (exit $ac_status); } && {
3479 test -z "$ac_c_werror_flag" ||
3480 test ! -s conftest.err
3481 } && test -s conftest.$ac_objext; then
3482 ac_cv_prog_cc_g=yes
3483 else
3484 echo "$as_me: failed program was:" >&5
3485 sed 's/^/| /' conftest.$ac_ext >&5
3490 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3493 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3496 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3497 ac_c_werror_flag=$ac_save_c_werror_flag
3499 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3500 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3501 if test "$ac_test_CFLAGS" = set; then
3502 CFLAGS=$ac_save_CFLAGS
3503 elif test $ac_cv_prog_cc_g = yes; then
3504 if test "$GCC" = yes; then
3505 CFLAGS="-g -O2"
3506 else
3507 CFLAGS="-g"
3509 else
3510 if test "$GCC" = yes; then
3511 CFLAGS="-O2"
3512 else
3513 CFLAGS=
3516 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3517 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3518 if test "${ac_cv_prog_cc_c89+set}" = set; then
3519 echo $ECHO_N "(cached) $ECHO_C" >&6
3520 else
3521 ac_cv_prog_cc_c89=no
3522 ac_save_CC=$CC
3523 cat >conftest.$ac_ext <<_ACEOF
3524 /* confdefs.h. */
3525 _ACEOF
3526 cat confdefs.h >>conftest.$ac_ext
3527 cat >>conftest.$ac_ext <<_ACEOF
3528 /* end confdefs.h. */
3529 #include <stdarg.h>
3530 #include <stdio.h>
3531 #include <sys/types.h>
3532 #include <sys/stat.h>
3533 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3534 struct buf { int x; };
3535 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3536 static char *e (p, i)
3537 char **p;
3538 int i;
3540 return p[i];
3542 static char *f (char * (*g) (char **, int), char **p, ...)
3544 char *s;
3545 va_list v;
3546 va_start (v,p);
3547 s = g (p, va_arg (v,int));
3548 va_end (v);
3549 return s;
3552 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3553 function prototypes and stuff, but not '\xHH' hex character constants.
3554 These don't provoke an error unfortunately, instead are silently treated
3555 as 'x'. The following induces an error, until -std is added to get
3556 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3557 array size at least. It's necessary to write '\x00'==0 to get something
3558 that's true only with -std. */
3559 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3561 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3562 inside strings and character constants. */
3563 #define FOO(x) 'x'
3564 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3566 int test (int i, double x);
3567 struct s1 {int (*f) (int a);};
3568 struct s2 {int (*f) (double a);};
3569 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3570 int argc;
3571 char **argv;
3573 main ()
3575 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3577 return 0;
3579 _ACEOF
3580 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3581 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3583 CC="$ac_save_CC $ac_arg"
3584 rm -f conftest.$ac_objext
3585 if { (ac_try="$ac_compile"
3586 case "(($ac_try" in
3587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3588 *) ac_try_echo=$ac_try;;
3589 esac
3590 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3591 (eval "$ac_compile") 2>conftest.er1
3592 ac_status=$?
3593 grep -v '^ *+' conftest.er1 >conftest.err
3594 rm -f conftest.er1
3595 cat conftest.err >&5
3596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3597 (exit $ac_status); } && {
3598 test -z "$ac_c_werror_flag" ||
3599 test ! -s conftest.err
3600 } && test -s conftest.$ac_objext; then
3601 ac_cv_prog_cc_c89=$ac_arg
3602 else
3603 echo "$as_me: failed program was:" >&5
3604 sed 's/^/| /' conftest.$ac_ext >&5
3609 rm -f core conftest.err conftest.$ac_objext
3610 test "x$ac_cv_prog_cc_c89" != "xno" && break
3611 done
3612 rm -f conftest.$ac_ext
3613 CC=$ac_save_CC
3616 # AC_CACHE_VAL
3617 case "x$ac_cv_prog_cc_c89" in
3619 { echo "$as_me:$LINENO: result: none needed" >&5
3620 echo "${ECHO_T}none needed" >&6; } ;;
3621 xno)
3622 { echo "$as_me:$LINENO: result: unsupported" >&5
3623 echo "${ECHO_T}unsupported" >&6; } ;;
3625 CC="$CC $ac_cv_prog_cc_c89"
3626 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3627 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3628 esac
3631 ac_ext=c
3632 ac_cpp='$CPP $CPPFLAGS'
3633 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3634 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3635 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3637 depcc="$CC" am_compiler_list=
3639 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3640 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3641 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3642 echo $ECHO_N "(cached) $ECHO_C" >&6
3643 else
3644 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3645 # We make a subdir and do the tests there. Otherwise we can end up
3646 # making bogus files that we don't know about and never remove. For
3647 # instance it was reported that on HP-UX the gcc test will end up
3648 # making a dummy file named `D' -- because `-MD' means `put the output
3649 # in D'.
3650 mkdir conftest.dir
3651 # Copy depcomp to subdir because otherwise we won't find it if we're
3652 # using a relative directory.
3653 cp "$am_depcomp" conftest.dir
3654 cd conftest.dir
3655 # We will build objects and dependencies in a subdirectory because
3656 # it helps to detect inapplicable dependency modes. For instance
3657 # both Tru64's cc and ICC support -MD to output dependencies as a
3658 # side effect of compilation, but ICC will put the dependencies in
3659 # the current directory while Tru64 will put them in the object
3660 # directory.
3661 mkdir sub
3663 am_cv_CC_dependencies_compiler_type=none
3664 if test "$am_compiler_list" = ""; then
3665 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3667 for depmode in $am_compiler_list; do
3668 # Setup a source with many dependencies, because some compilers
3669 # like to wrap large dependency lists on column 80 (with \), and
3670 # we should not choose a depcomp mode which is confused by this.
3672 # We need to recreate these files for each test, as the compiler may
3673 # overwrite some of them when testing with obscure command lines.
3674 # This happens at least with the AIX C compiler.
3675 : > sub/conftest.c
3676 for i in 1 2 3 4 5 6; do
3677 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3678 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3679 # Solaris 8's {/usr,}/bin/sh.
3680 touch sub/conftst$i.h
3681 done
3682 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3684 case $depmode in
3685 nosideeffect)
3686 # after this tag, mechanisms are not by side-effect, so they'll
3687 # only be used when explicitly requested
3688 if test "x$enable_dependency_tracking" = xyes; then
3689 continue
3690 else
3691 break
3694 none) break ;;
3695 esac
3696 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3697 # mode. It turns out that the SunPro C++ compiler does not properly
3698 # handle `-M -o', and we need to detect this.
3699 if depmode=$depmode \
3700 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3701 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3702 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3703 >/dev/null 2>conftest.err &&
3704 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3705 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3706 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3707 # icc doesn't choke on unknown options, it will just issue warnings
3708 # or remarks (even with -Werror). So we grep stderr for any message
3709 # that says an option was ignored or not supported.
3710 # When given -MP, icc 7.0 and 7.1 complain thusly:
3711 # icc: Command line warning: ignoring option '-M'; no argument required
3712 # The diagnosis changed in icc 8.0:
3713 # icc: Command line remark: option '-MP' not supported
3714 if (grep 'ignoring option' conftest.err ||
3715 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3716 am_cv_CC_dependencies_compiler_type=$depmode
3717 break
3720 done
3722 cd ..
3723 rm -rf conftest.dir
3724 else
3725 am_cv_CC_dependencies_compiler_type=none
3729 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3730 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3731 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3736 test "x$enable_dependency_tracking" != xno \
3737 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3738 am__fastdepCC_TRUE=
3739 am__fastdepCC_FALSE='#'
3740 else
3741 am__fastdepCC_TRUE='#'
3742 am__fastdepCC_FALSE=
3747 { echo "$as_me:$LINENO: checking for library containing strerror" >&5
3748 echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6; }
3749 if test "${ac_cv_search_strerror+set}" = set; then
3750 echo $ECHO_N "(cached) $ECHO_C" >&6
3751 else
3752 ac_func_search_save_LIBS=$LIBS
3753 cat >conftest.$ac_ext <<_ACEOF
3754 /* confdefs.h. */
3755 _ACEOF
3756 cat confdefs.h >>conftest.$ac_ext
3757 cat >>conftest.$ac_ext <<_ACEOF
3758 /* end confdefs.h. */
3760 /* Override any GCC internal prototype to avoid an error.
3761 Use char because int might match the return type of a GCC
3762 builtin and then its argument prototype would still apply. */
3763 #ifdef __cplusplus
3764 extern "C"
3765 #endif
3766 char strerror ();
3768 main ()
3770 return strerror ();
3772 return 0;
3774 _ACEOF
3775 for ac_lib in '' cposix; do
3776 if test -z "$ac_lib"; then
3777 ac_res="none required"
3778 else
3779 ac_res=-l$ac_lib
3780 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
3782 rm -f conftest.$ac_objext conftest$ac_exeext
3783 if { (ac_try="$ac_link"
3784 case "(($ac_try" in
3785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3786 *) ac_try_echo=$ac_try;;
3787 esac
3788 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3789 (eval "$ac_link") 2>conftest.er1
3790 ac_status=$?
3791 grep -v '^ *+' conftest.er1 >conftest.err
3792 rm -f conftest.er1
3793 cat conftest.err >&5
3794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3795 (exit $ac_status); } && {
3796 test -z "$ac_c_werror_flag" ||
3797 test ! -s conftest.err
3798 } && test -s conftest$ac_exeext &&
3799 $as_test_x conftest$ac_exeext; then
3800 ac_cv_search_strerror=$ac_res
3801 else
3802 echo "$as_me: failed program was:" >&5
3803 sed 's/^/| /' conftest.$ac_ext >&5
3808 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3809 conftest$ac_exeext
3810 if test "${ac_cv_search_strerror+set}" = set; then
3811 break
3813 done
3814 if test "${ac_cv_search_strerror+set}" = set; then
3816 else
3817 ac_cv_search_strerror=no
3819 rm conftest.$ac_ext
3820 LIBS=$ac_func_search_save_LIBS
3822 { echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
3823 echo "${ECHO_T}$ac_cv_search_strerror" >&6; }
3824 ac_res=$ac_cv_search_strerror
3825 if test "$ac_res" != no; then
3826 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
3830 ac_ext=c
3831 ac_cpp='$CPP $CPPFLAGS'
3832 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3833 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3834 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3835 if test -n "$ac_tool_prefix"; then
3836 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3837 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3838 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3839 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3840 if test "${ac_cv_prog_CC+set}" = set; then
3841 echo $ECHO_N "(cached) $ECHO_C" >&6
3842 else
3843 if test -n "$CC"; then
3844 ac_cv_prog_CC="$CC" # Let the user override the test.
3845 else
3846 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3847 for as_dir in $PATH
3849 IFS=$as_save_IFS
3850 test -z "$as_dir" && as_dir=.
3851 for ac_exec_ext in '' $ac_executable_extensions; do
3852 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3853 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3854 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3855 break 2
3857 done
3858 done
3859 IFS=$as_save_IFS
3863 CC=$ac_cv_prog_CC
3864 if test -n "$CC"; then
3865 { echo "$as_me:$LINENO: result: $CC" >&5
3866 echo "${ECHO_T}$CC" >&6; }
3867 else
3868 { echo "$as_me:$LINENO: result: no" >&5
3869 echo "${ECHO_T}no" >&6; }
3874 if test -z "$ac_cv_prog_CC"; then
3875 ac_ct_CC=$CC
3876 # Extract the first word of "gcc", so it can be a program name with args.
3877 set dummy gcc; ac_word=$2
3878 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3879 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3880 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3881 echo $ECHO_N "(cached) $ECHO_C" >&6
3882 else
3883 if test -n "$ac_ct_CC"; then
3884 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3885 else
3886 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3887 for as_dir in $PATH
3889 IFS=$as_save_IFS
3890 test -z "$as_dir" && as_dir=.
3891 for ac_exec_ext in '' $ac_executable_extensions; do
3892 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3893 ac_cv_prog_ac_ct_CC="gcc"
3894 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3895 break 2
3897 done
3898 done
3899 IFS=$as_save_IFS
3903 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3904 if test -n "$ac_ct_CC"; then
3905 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3906 echo "${ECHO_T}$ac_ct_CC" >&6; }
3907 else
3908 { echo "$as_me:$LINENO: result: no" >&5
3909 echo "${ECHO_T}no" >&6; }
3912 if test "x$ac_ct_CC" = x; then
3913 CC=""
3914 else
3915 case $cross_compiling:$ac_tool_warned in
3916 yes:)
3917 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3918 whose name does not start with the host triplet. If you think this
3919 configuration is useful to you, please write to autoconf@gnu.org." >&5
3920 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3921 whose name does not start with the host triplet. If you think this
3922 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3923 ac_tool_warned=yes ;;
3924 esac
3925 CC=$ac_ct_CC
3927 else
3928 CC="$ac_cv_prog_CC"
3931 if test -z "$CC"; then
3932 if test -n "$ac_tool_prefix"; then
3933 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3934 set dummy ${ac_tool_prefix}cc; ac_word=$2
3935 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3936 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3937 if test "${ac_cv_prog_CC+set}" = set; then
3938 echo $ECHO_N "(cached) $ECHO_C" >&6
3939 else
3940 if test -n "$CC"; then
3941 ac_cv_prog_CC="$CC" # Let the user override the test.
3942 else
3943 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3944 for as_dir in $PATH
3946 IFS=$as_save_IFS
3947 test -z "$as_dir" && as_dir=.
3948 for ac_exec_ext in '' $ac_executable_extensions; do
3949 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3950 ac_cv_prog_CC="${ac_tool_prefix}cc"
3951 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3952 break 2
3954 done
3955 done
3956 IFS=$as_save_IFS
3960 CC=$ac_cv_prog_CC
3961 if test -n "$CC"; then
3962 { echo "$as_me:$LINENO: result: $CC" >&5
3963 echo "${ECHO_T}$CC" >&6; }
3964 else
3965 { echo "$as_me:$LINENO: result: no" >&5
3966 echo "${ECHO_T}no" >&6; }
3972 if test -z "$CC"; then
3973 # Extract the first word of "cc", so it can be a program name with args.
3974 set dummy cc; ac_word=$2
3975 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3976 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3977 if test "${ac_cv_prog_CC+set}" = set; then
3978 echo $ECHO_N "(cached) $ECHO_C" >&6
3979 else
3980 if test -n "$CC"; then
3981 ac_cv_prog_CC="$CC" # Let the user override the test.
3982 else
3983 ac_prog_rejected=no
3984 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3985 for as_dir in $PATH
3987 IFS=$as_save_IFS
3988 test -z "$as_dir" && as_dir=.
3989 for ac_exec_ext in '' $ac_executable_extensions; do
3990 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3991 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3992 ac_prog_rejected=yes
3993 continue
3995 ac_cv_prog_CC="cc"
3996 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3997 break 2
3999 done
4000 done
4001 IFS=$as_save_IFS
4003 if test $ac_prog_rejected = yes; then
4004 # We found a bogon in the path, so make sure we never use it.
4005 set dummy $ac_cv_prog_CC
4006 shift
4007 if test $# != 0; then
4008 # We chose a different compiler from the bogus one.
4009 # However, it has the same basename, so the bogon will be chosen
4010 # first if we set CC to just the basename; use the full file name.
4011 shift
4012 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4017 CC=$ac_cv_prog_CC
4018 if test -n "$CC"; then
4019 { echo "$as_me:$LINENO: result: $CC" >&5
4020 echo "${ECHO_T}$CC" >&6; }
4021 else
4022 { echo "$as_me:$LINENO: result: no" >&5
4023 echo "${ECHO_T}no" >&6; }
4028 if test -z "$CC"; then
4029 if test -n "$ac_tool_prefix"; then
4030 for ac_prog in cl.exe
4032 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4033 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4034 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4035 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4036 if test "${ac_cv_prog_CC+set}" = set; then
4037 echo $ECHO_N "(cached) $ECHO_C" >&6
4038 else
4039 if test -n "$CC"; then
4040 ac_cv_prog_CC="$CC" # Let the user override the test.
4041 else
4042 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4043 for as_dir in $PATH
4045 IFS=$as_save_IFS
4046 test -z "$as_dir" && as_dir=.
4047 for ac_exec_ext in '' $ac_executable_extensions; do
4048 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4049 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4050 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4051 break 2
4053 done
4054 done
4055 IFS=$as_save_IFS
4059 CC=$ac_cv_prog_CC
4060 if test -n "$CC"; then
4061 { echo "$as_me:$LINENO: result: $CC" >&5
4062 echo "${ECHO_T}$CC" >&6; }
4063 else
4064 { echo "$as_me:$LINENO: result: no" >&5
4065 echo "${ECHO_T}no" >&6; }
4069 test -n "$CC" && break
4070 done
4072 if test -z "$CC"; then
4073 ac_ct_CC=$CC
4074 for ac_prog in cl.exe
4076 # Extract the first word of "$ac_prog", so it can be a program name with args.
4077 set dummy $ac_prog; ac_word=$2
4078 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4079 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4080 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4081 echo $ECHO_N "(cached) $ECHO_C" >&6
4082 else
4083 if test -n "$ac_ct_CC"; then
4084 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4085 else
4086 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4087 for as_dir in $PATH
4089 IFS=$as_save_IFS
4090 test -z "$as_dir" && as_dir=.
4091 for ac_exec_ext in '' $ac_executable_extensions; do
4092 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4093 ac_cv_prog_ac_ct_CC="$ac_prog"
4094 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4095 break 2
4097 done
4098 done
4099 IFS=$as_save_IFS
4103 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4104 if test -n "$ac_ct_CC"; then
4105 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4106 echo "${ECHO_T}$ac_ct_CC" >&6; }
4107 else
4108 { echo "$as_me:$LINENO: result: no" >&5
4109 echo "${ECHO_T}no" >&6; }
4113 test -n "$ac_ct_CC" && break
4114 done
4116 if test "x$ac_ct_CC" = x; then
4117 CC=""
4118 else
4119 case $cross_compiling:$ac_tool_warned in
4120 yes:)
4121 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4122 whose name does not start with the host triplet. If you think this
4123 configuration is useful to you, please write to autoconf@gnu.org." >&5
4124 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4125 whose name does not start with the host triplet. If you think this
4126 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4127 ac_tool_warned=yes ;;
4128 esac
4129 CC=$ac_ct_CC
4136 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
4137 See \`config.log' for more details." >&5
4138 echo "$as_me: error: no acceptable C compiler found in \$PATH
4139 See \`config.log' for more details." >&2;}
4140 { (exit 1); exit 1; }; }
4142 # Provide some information about the compiler.
4143 echo "$as_me:$LINENO: checking for C compiler version" >&5
4144 ac_compiler=`set X $ac_compile; echo $2`
4145 { (ac_try="$ac_compiler --version >&5"
4146 case "(($ac_try" in
4147 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4148 *) ac_try_echo=$ac_try;;
4149 esac
4150 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4151 (eval "$ac_compiler --version >&5") 2>&5
4152 ac_status=$?
4153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4154 (exit $ac_status); }
4155 { (ac_try="$ac_compiler -v >&5"
4156 case "(($ac_try" in
4157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4158 *) ac_try_echo=$ac_try;;
4159 esac
4160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4161 (eval "$ac_compiler -v >&5") 2>&5
4162 ac_status=$?
4163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4164 (exit $ac_status); }
4165 { (ac_try="$ac_compiler -V >&5"
4166 case "(($ac_try" in
4167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4168 *) ac_try_echo=$ac_try;;
4169 esac
4170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4171 (eval "$ac_compiler -V >&5") 2>&5
4172 ac_status=$?
4173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4174 (exit $ac_status); }
4176 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
4177 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
4178 if test "${ac_cv_c_compiler_gnu+set}" = set; then
4179 echo $ECHO_N "(cached) $ECHO_C" >&6
4180 else
4181 cat >conftest.$ac_ext <<_ACEOF
4182 /* confdefs.h. */
4183 _ACEOF
4184 cat confdefs.h >>conftest.$ac_ext
4185 cat >>conftest.$ac_ext <<_ACEOF
4186 /* end confdefs.h. */
4189 main ()
4191 #ifndef __GNUC__
4192 choke me
4193 #endif
4196 return 0;
4198 _ACEOF
4199 rm -f conftest.$ac_objext
4200 if { (ac_try="$ac_compile"
4201 case "(($ac_try" in
4202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4203 *) ac_try_echo=$ac_try;;
4204 esac
4205 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4206 (eval "$ac_compile") 2>conftest.er1
4207 ac_status=$?
4208 grep -v '^ *+' conftest.er1 >conftest.err
4209 rm -f conftest.er1
4210 cat conftest.err >&5
4211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4212 (exit $ac_status); } && {
4213 test -z "$ac_c_werror_flag" ||
4214 test ! -s conftest.err
4215 } && test -s conftest.$ac_objext; then
4216 ac_compiler_gnu=yes
4217 else
4218 echo "$as_me: failed program was:" >&5
4219 sed 's/^/| /' conftest.$ac_ext >&5
4221 ac_compiler_gnu=no
4224 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4225 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4228 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4229 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
4230 GCC=`test $ac_compiler_gnu = yes && echo yes`
4231 ac_test_CFLAGS=${CFLAGS+set}
4232 ac_save_CFLAGS=$CFLAGS
4233 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
4234 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
4235 if test "${ac_cv_prog_cc_g+set}" = set; then
4236 echo $ECHO_N "(cached) $ECHO_C" >&6
4237 else
4238 ac_save_c_werror_flag=$ac_c_werror_flag
4239 ac_c_werror_flag=yes
4240 ac_cv_prog_cc_g=no
4241 CFLAGS="-g"
4242 cat >conftest.$ac_ext <<_ACEOF
4243 /* confdefs.h. */
4244 _ACEOF
4245 cat confdefs.h >>conftest.$ac_ext
4246 cat >>conftest.$ac_ext <<_ACEOF
4247 /* end confdefs.h. */
4250 main ()
4254 return 0;
4256 _ACEOF
4257 rm -f conftest.$ac_objext
4258 if { (ac_try="$ac_compile"
4259 case "(($ac_try" in
4260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4261 *) ac_try_echo=$ac_try;;
4262 esac
4263 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4264 (eval "$ac_compile") 2>conftest.er1
4265 ac_status=$?
4266 grep -v '^ *+' conftest.er1 >conftest.err
4267 rm -f conftest.er1
4268 cat conftest.err >&5
4269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4270 (exit $ac_status); } && {
4271 test -z "$ac_c_werror_flag" ||
4272 test ! -s conftest.err
4273 } && test -s conftest.$ac_objext; then
4274 ac_cv_prog_cc_g=yes
4275 else
4276 echo "$as_me: failed program was:" >&5
4277 sed 's/^/| /' conftest.$ac_ext >&5
4279 CFLAGS=""
4280 cat >conftest.$ac_ext <<_ACEOF
4281 /* confdefs.h. */
4282 _ACEOF
4283 cat confdefs.h >>conftest.$ac_ext
4284 cat >>conftest.$ac_ext <<_ACEOF
4285 /* end confdefs.h. */
4288 main ()
4292 return 0;
4294 _ACEOF
4295 rm -f conftest.$ac_objext
4296 if { (ac_try="$ac_compile"
4297 case "(($ac_try" in
4298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4299 *) ac_try_echo=$ac_try;;
4300 esac
4301 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4302 (eval "$ac_compile") 2>conftest.er1
4303 ac_status=$?
4304 grep -v '^ *+' conftest.er1 >conftest.err
4305 rm -f conftest.er1
4306 cat conftest.err >&5
4307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4308 (exit $ac_status); } && {
4309 test -z "$ac_c_werror_flag" ||
4310 test ! -s conftest.err
4311 } && test -s conftest.$ac_objext; then
4313 else
4314 echo "$as_me: failed program was:" >&5
4315 sed 's/^/| /' conftest.$ac_ext >&5
4317 ac_c_werror_flag=$ac_save_c_werror_flag
4318 CFLAGS="-g"
4319 cat >conftest.$ac_ext <<_ACEOF
4320 /* confdefs.h. */
4321 _ACEOF
4322 cat confdefs.h >>conftest.$ac_ext
4323 cat >>conftest.$ac_ext <<_ACEOF
4324 /* end confdefs.h. */
4327 main ()
4331 return 0;
4333 _ACEOF
4334 rm -f conftest.$ac_objext
4335 if { (ac_try="$ac_compile"
4336 case "(($ac_try" in
4337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4338 *) ac_try_echo=$ac_try;;
4339 esac
4340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4341 (eval "$ac_compile") 2>conftest.er1
4342 ac_status=$?
4343 grep -v '^ *+' conftest.er1 >conftest.err
4344 rm -f conftest.er1
4345 cat conftest.err >&5
4346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4347 (exit $ac_status); } && {
4348 test -z "$ac_c_werror_flag" ||
4349 test ! -s conftest.err
4350 } && test -s conftest.$ac_objext; then
4351 ac_cv_prog_cc_g=yes
4352 else
4353 echo "$as_me: failed program was:" >&5
4354 sed 's/^/| /' conftest.$ac_ext >&5
4359 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4362 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4365 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4366 ac_c_werror_flag=$ac_save_c_werror_flag
4368 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4369 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
4370 if test "$ac_test_CFLAGS" = set; then
4371 CFLAGS=$ac_save_CFLAGS
4372 elif test $ac_cv_prog_cc_g = yes; then
4373 if test "$GCC" = yes; then
4374 CFLAGS="-g -O2"
4375 else
4376 CFLAGS="-g"
4378 else
4379 if test "$GCC" = yes; then
4380 CFLAGS="-O2"
4381 else
4382 CFLAGS=
4385 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
4386 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
4387 if test "${ac_cv_prog_cc_c89+set}" = set; then
4388 echo $ECHO_N "(cached) $ECHO_C" >&6
4389 else
4390 ac_cv_prog_cc_c89=no
4391 ac_save_CC=$CC
4392 cat >conftest.$ac_ext <<_ACEOF
4393 /* confdefs.h. */
4394 _ACEOF
4395 cat confdefs.h >>conftest.$ac_ext
4396 cat >>conftest.$ac_ext <<_ACEOF
4397 /* end confdefs.h. */
4398 #include <stdarg.h>
4399 #include <stdio.h>
4400 #include <sys/types.h>
4401 #include <sys/stat.h>
4402 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4403 struct buf { int x; };
4404 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4405 static char *e (p, i)
4406 char **p;
4407 int i;
4409 return p[i];
4411 static char *f (char * (*g) (char **, int), char **p, ...)
4413 char *s;
4414 va_list v;
4415 va_start (v,p);
4416 s = g (p, va_arg (v,int));
4417 va_end (v);
4418 return s;
4421 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4422 function prototypes and stuff, but not '\xHH' hex character constants.
4423 These don't provoke an error unfortunately, instead are silently treated
4424 as 'x'. The following induces an error, until -std is added to get
4425 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4426 array size at least. It's necessary to write '\x00'==0 to get something
4427 that's true only with -std. */
4428 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4430 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4431 inside strings and character constants. */
4432 #define FOO(x) 'x'
4433 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4435 int test (int i, double x);
4436 struct s1 {int (*f) (int a);};
4437 struct s2 {int (*f) (double a);};
4438 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4439 int argc;
4440 char **argv;
4442 main ()
4444 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4446 return 0;
4448 _ACEOF
4449 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4450 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4452 CC="$ac_save_CC $ac_arg"
4453 rm -f conftest.$ac_objext
4454 if { (ac_try="$ac_compile"
4455 case "(($ac_try" in
4456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4457 *) ac_try_echo=$ac_try;;
4458 esac
4459 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4460 (eval "$ac_compile") 2>conftest.er1
4461 ac_status=$?
4462 grep -v '^ *+' conftest.er1 >conftest.err
4463 rm -f conftest.er1
4464 cat conftest.err >&5
4465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4466 (exit $ac_status); } && {
4467 test -z "$ac_c_werror_flag" ||
4468 test ! -s conftest.err
4469 } && test -s conftest.$ac_objext; then
4470 ac_cv_prog_cc_c89=$ac_arg
4471 else
4472 echo "$as_me: failed program was:" >&5
4473 sed 's/^/| /' conftest.$ac_ext >&5
4478 rm -f core conftest.err conftest.$ac_objext
4479 test "x$ac_cv_prog_cc_c89" != "xno" && break
4480 done
4481 rm -f conftest.$ac_ext
4482 CC=$ac_save_CC
4485 # AC_CACHE_VAL
4486 case "x$ac_cv_prog_cc_c89" in
4488 { echo "$as_me:$LINENO: result: none needed" >&5
4489 echo "${ECHO_T}none needed" >&6; } ;;
4490 xno)
4491 { echo "$as_me:$LINENO: result: unsupported" >&5
4492 echo "${ECHO_T}unsupported" >&6; } ;;
4494 CC="$CC $ac_cv_prog_cc_c89"
4495 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
4496 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
4497 esac
4500 ac_ext=c
4501 ac_cpp='$CPP $CPPFLAGS'
4502 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4503 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4504 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4506 depcc="$CC" am_compiler_list=
4508 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4509 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
4510 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
4511 echo $ECHO_N "(cached) $ECHO_C" >&6
4512 else
4513 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4514 # We make a subdir and do the tests there. Otherwise we can end up
4515 # making bogus files that we don't know about and never remove. For
4516 # instance it was reported that on HP-UX the gcc test will end up
4517 # making a dummy file named `D' -- because `-MD' means `put the output
4518 # in D'.
4519 mkdir conftest.dir
4520 # Copy depcomp to subdir because otherwise we won't find it if we're
4521 # using a relative directory.
4522 cp "$am_depcomp" conftest.dir
4523 cd conftest.dir
4524 # We will build objects and dependencies in a subdirectory because
4525 # it helps to detect inapplicable dependency modes. For instance
4526 # both Tru64's cc and ICC support -MD to output dependencies as a
4527 # side effect of compilation, but ICC will put the dependencies in
4528 # the current directory while Tru64 will put them in the object
4529 # directory.
4530 mkdir sub
4532 am_cv_CC_dependencies_compiler_type=none
4533 if test "$am_compiler_list" = ""; then
4534 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4536 for depmode in $am_compiler_list; do
4537 # Setup a source with many dependencies, because some compilers
4538 # like to wrap large dependency lists on column 80 (with \), and
4539 # we should not choose a depcomp mode which is confused by this.
4541 # We need to recreate these files for each test, as the compiler may
4542 # overwrite some of them when testing with obscure command lines.
4543 # This happens at least with the AIX C compiler.
4544 : > sub/conftest.c
4545 for i in 1 2 3 4 5 6; do
4546 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4547 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4548 # Solaris 8's {/usr,}/bin/sh.
4549 touch sub/conftst$i.h
4550 done
4551 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4553 case $depmode in
4554 nosideeffect)
4555 # after this tag, mechanisms are not by side-effect, so they'll
4556 # only be used when explicitly requested
4557 if test "x$enable_dependency_tracking" = xyes; then
4558 continue
4559 else
4560 break
4563 none) break ;;
4564 esac
4565 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4566 # mode. It turns out that the SunPro C++ compiler does not properly
4567 # handle `-M -o', and we need to detect this.
4568 if depmode=$depmode \
4569 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4570 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4571 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4572 >/dev/null 2>conftest.err &&
4573 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4574 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4575 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4576 # icc doesn't choke on unknown options, it will just issue warnings
4577 # or remarks (even with -Werror). So we grep stderr for any message
4578 # that says an option was ignored or not supported.
4579 # When given -MP, icc 7.0 and 7.1 complain thusly:
4580 # icc: Command line warning: ignoring option '-M'; no argument required
4581 # The diagnosis changed in icc 8.0:
4582 # icc: Command line remark: option '-MP' not supported
4583 if (grep 'ignoring option' conftest.err ||
4584 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4585 am_cv_CC_dependencies_compiler_type=$depmode
4586 break
4589 done
4591 cd ..
4592 rm -rf conftest.dir
4593 else
4594 am_cv_CC_dependencies_compiler_type=none
4598 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
4599 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
4600 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4605 test "x$enable_dependency_tracking" != xno \
4606 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4607 am__fastdepCC_TRUE=
4608 am__fastdepCC_FALSE='#'
4609 else
4610 am__fastdepCC_TRUE='#'
4611 am__fastdepCC_FALSE=
4615 ac_ext=c
4616 ac_cpp='$CPP $CPPFLAGS'
4617 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4618 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4619 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4620 if test -n "$ac_tool_prefix"; then
4621 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4622 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4623 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4624 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4625 if test "${ac_cv_prog_CC+set}" = set; then
4626 echo $ECHO_N "(cached) $ECHO_C" >&6
4627 else
4628 if test -n "$CC"; then
4629 ac_cv_prog_CC="$CC" # Let the user override the test.
4630 else
4631 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4632 for as_dir in $PATH
4634 IFS=$as_save_IFS
4635 test -z "$as_dir" && as_dir=.
4636 for ac_exec_ext in '' $ac_executable_extensions; do
4637 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4638 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4639 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4640 break 2
4642 done
4643 done
4644 IFS=$as_save_IFS
4648 CC=$ac_cv_prog_CC
4649 if test -n "$CC"; then
4650 { echo "$as_me:$LINENO: result: $CC" >&5
4651 echo "${ECHO_T}$CC" >&6; }
4652 else
4653 { echo "$as_me:$LINENO: result: no" >&5
4654 echo "${ECHO_T}no" >&6; }
4659 if test -z "$ac_cv_prog_CC"; then
4660 ac_ct_CC=$CC
4661 # Extract the first word of "gcc", so it can be a program name with args.
4662 set dummy gcc; ac_word=$2
4663 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4664 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4665 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4666 echo $ECHO_N "(cached) $ECHO_C" >&6
4667 else
4668 if test -n "$ac_ct_CC"; then
4669 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4670 else
4671 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4672 for as_dir in $PATH
4674 IFS=$as_save_IFS
4675 test -z "$as_dir" && as_dir=.
4676 for ac_exec_ext in '' $ac_executable_extensions; do
4677 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4678 ac_cv_prog_ac_ct_CC="gcc"
4679 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4680 break 2
4682 done
4683 done
4684 IFS=$as_save_IFS
4688 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4689 if test -n "$ac_ct_CC"; then
4690 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4691 echo "${ECHO_T}$ac_ct_CC" >&6; }
4692 else
4693 { echo "$as_me:$LINENO: result: no" >&5
4694 echo "${ECHO_T}no" >&6; }
4697 if test "x$ac_ct_CC" = x; then
4698 CC=""
4699 else
4700 case $cross_compiling:$ac_tool_warned in
4701 yes:)
4702 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4703 whose name does not start with the host triplet. If you think this
4704 configuration is useful to you, please write to autoconf@gnu.org." >&5
4705 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4706 whose name does not start with the host triplet. If you think this
4707 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4708 ac_tool_warned=yes ;;
4709 esac
4710 CC=$ac_ct_CC
4712 else
4713 CC="$ac_cv_prog_CC"
4716 if test -z "$CC"; then
4717 if test -n "$ac_tool_prefix"; then
4718 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4719 set dummy ${ac_tool_prefix}cc; ac_word=$2
4720 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4721 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4722 if test "${ac_cv_prog_CC+set}" = set; then
4723 echo $ECHO_N "(cached) $ECHO_C" >&6
4724 else
4725 if test -n "$CC"; then
4726 ac_cv_prog_CC="$CC" # Let the user override the test.
4727 else
4728 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4729 for as_dir in $PATH
4731 IFS=$as_save_IFS
4732 test -z "$as_dir" && as_dir=.
4733 for ac_exec_ext in '' $ac_executable_extensions; do
4734 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4735 ac_cv_prog_CC="${ac_tool_prefix}cc"
4736 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4737 break 2
4739 done
4740 done
4741 IFS=$as_save_IFS
4745 CC=$ac_cv_prog_CC
4746 if test -n "$CC"; then
4747 { echo "$as_me:$LINENO: result: $CC" >&5
4748 echo "${ECHO_T}$CC" >&6; }
4749 else
4750 { echo "$as_me:$LINENO: result: no" >&5
4751 echo "${ECHO_T}no" >&6; }
4757 if test -z "$CC"; then
4758 # Extract the first word of "cc", so it can be a program name with args.
4759 set dummy cc; ac_word=$2
4760 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4761 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4762 if test "${ac_cv_prog_CC+set}" = set; then
4763 echo $ECHO_N "(cached) $ECHO_C" >&6
4764 else
4765 if test -n "$CC"; then
4766 ac_cv_prog_CC="$CC" # Let the user override the test.
4767 else
4768 ac_prog_rejected=no
4769 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4770 for as_dir in $PATH
4772 IFS=$as_save_IFS
4773 test -z "$as_dir" && as_dir=.
4774 for ac_exec_ext in '' $ac_executable_extensions; do
4775 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4776 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4777 ac_prog_rejected=yes
4778 continue
4780 ac_cv_prog_CC="cc"
4781 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4782 break 2
4784 done
4785 done
4786 IFS=$as_save_IFS
4788 if test $ac_prog_rejected = yes; then
4789 # We found a bogon in the path, so make sure we never use it.
4790 set dummy $ac_cv_prog_CC
4791 shift
4792 if test $# != 0; then
4793 # We chose a different compiler from the bogus one.
4794 # However, it has the same basename, so the bogon will be chosen
4795 # first if we set CC to just the basename; use the full file name.
4796 shift
4797 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4802 CC=$ac_cv_prog_CC
4803 if test -n "$CC"; then
4804 { echo "$as_me:$LINENO: result: $CC" >&5
4805 echo "${ECHO_T}$CC" >&6; }
4806 else
4807 { echo "$as_me:$LINENO: result: no" >&5
4808 echo "${ECHO_T}no" >&6; }
4813 if test -z "$CC"; then
4814 if test -n "$ac_tool_prefix"; then
4815 for ac_prog in cl.exe
4817 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4818 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4819 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4820 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4821 if test "${ac_cv_prog_CC+set}" = set; then
4822 echo $ECHO_N "(cached) $ECHO_C" >&6
4823 else
4824 if test -n "$CC"; then
4825 ac_cv_prog_CC="$CC" # Let the user override the test.
4826 else
4827 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4828 for as_dir in $PATH
4830 IFS=$as_save_IFS
4831 test -z "$as_dir" && as_dir=.
4832 for ac_exec_ext in '' $ac_executable_extensions; do
4833 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4834 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4835 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4836 break 2
4838 done
4839 done
4840 IFS=$as_save_IFS
4844 CC=$ac_cv_prog_CC
4845 if test -n "$CC"; then
4846 { echo "$as_me:$LINENO: result: $CC" >&5
4847 echo "${ECHO_T}$CC" >&6; }
4848 else
4849 { echo "$as_me:$LINENO: result: no" >&5
4850 echo "${ECHO_T}no" >&6; }
4854 test -n "$CC" && break
4855 done
4857 if test -z "$CC"; then
4858 ac_ct_CC=$CC
4859 for ac_prog in cl.exe
4861 # Extract the first word of "$ac_prog", so it can be a program name with args.
4862 set dummy $ac_prog; ac_word=$2
4863 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4864 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4865 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4866 echo $ECHO_N "(cached) $ECHO_C" >&6
4867 else
4868 if test -n "$ac_ct_CC"; then
4869 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4870 else
4871 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4872 for as_dir in $PATH
4874 IFS=$as_save_IFS
4875 test -z "$as_dir" && as_dir=.
4876 for ac_exec_ext in '' $ac_executable_extensions; do
4877 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4878 ac_cv_prog_ac_ct_CC="$ac_prog"
4879 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4880 break 2
4882 done
4883 done
4884 IFS=$as_save_IFS
4888 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4889 if test -n "$ac_ct_CC"; then
4890 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4891 echo "${ECHO_T}$ac_ct_CC" >&6; }
4892 else
4893 { echo "$as_me:$LINENO: result: no" >&5
4894 echo "${ECHO_T}no" >&6; }
4898 test -n "$ac_ct_CC" && break
4899 done
4901 if test "x$ac_ct_CC" = x; then
4902 CC=""
4903 else
4904 case $cross_compiling:$ac_tool_warned in
4905 yes:)
4906 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4907 whose name does not start with the host triplet. If you think this
4908 configuration is useful to you, please write to autoconf@gnu.org." >&5
4909 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4910 whose name does not start with the host triplet. If you think this
4911 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4912 ac_tool_warned=yes ;;
4913 esac
4914 CC=$ac_ct_CC
4921 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
4922 See \`config.log' for more details." >&5
4923 echo "$as_me: error: no acceptable C compiler found in \$PATH
4924 See \`config.log' for more details." >&2;}
4925 { (exit 1); exit 1; }; }
4927 # Provide some information about the compiler.
4928 echo "$as_me:$LINENO: checking for C compiler version" >&5
4929 ac_compiler=`set X $ac_compile; echo $2`
4930 { (ac_try="$ac_compiler --version >&5"
4931 case "(($ac_try" in
4932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4933 *) ac_try_echo=$ac_try;;
4934 esac
4935 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4936 (eval "$ac_compiler --version >&5") 2>&5
4937 ac_status=$?
4938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4939 (exit $ac_status); }
4940 { (ac_try="$ac_compiler -v >&5"
4941 case "(($ac_try" in
4942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4943 *) ac_try_echo=$ac_try;;
4944 esac
4945 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4946 (eval "$ac_compiler -v >&5") 2>&5
4947 ac_status=$?
4948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4949 (exit $ac_status); }
4950 { (ac_try="$ac_compiler -V >&5"
4951 case "(($ac_try" in
4952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4953 *) ac_try_echo=$ac_try;;
4954 esac
4955 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4956 (eval "$ac_compiler -V >&5") 2>&5
4957 ac_status=$?
4958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4959 (exit $ac_status); }
4961 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
4962 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
4963 if test "${ac_cv_c_compiler_gnu+set}" = set; then
4964 echo $ECHO_N "(cached) $ECHO_C" >&6
4965 else
4966 cat >conftest.$ac_ext <<_ACEOF
4967 /* confdefs.h. */
4968 _ACEOF
4969 cat confdefs.h >>conftest.$ac_ext
4970 cat >>conftest.$ac_ext <<_ACEOF
4971 /* end confdefs.h. */
4974 main ()
4976 #ifndef __GNUC__
4977 choke me
4978 #endif
4981 return 0;
4983 _ACEOF
4984 rm -f conftest.$ac_objext
4985 if { (ac_try="$ac_compile"
4986 case "(($ac_try" in
4987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4988 *) ac_try_echo=$ac_try;;
4989 esac
4990 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4991 (eval "$ac_compile") 2>conftest.er1
4992 ac_status=$?
4993 grep -v '^ *+' conftest.er1 >conftest.err
4994 rm -f conftest.er1
4995 cat conftest.err >&5
4996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4997 (exit $ac_status); } && {
4998 test -z "$ac_c_werror_flag" ||
4999 test ! -s conftest.err
5000 } && test -s conftest.$ac_objext; then
5001 ac_compiler_gnu=yes
5002 else
5003 echo "$as_me: failed program was:" >&5
5004 sed 's/^/| /' conftest.$ac_ext >&5
5006 ac_compiler_gnu=no
5009 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5010 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5013 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
5014 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
5015 GCC=`test $ac_compiler_gnu = yes && echo yes`
5016 ac_test_CFLAGS=${CFLAGS+set}
5017 ac_save_CFLAGS=$CFLAGS
5018 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
5019 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
5020 if test "${ac_cv_prog_cc_g+set}" = set; then
5021 echo $ECHO_N "(cached) $ECHO_C" >&6
5022 else
5023 ac_save_c_werror_flag=$ac_c_werror_flag
5024 ac_c_werror_flag=yes
5025 ac_cv_prog_cc_g=no
5026 CFLAGS="-g"
5027 cat >conftest.$ac_ext <<_ACEOF
5028 /* confdefs.h. */
5029 _ACEOF
5030 cat confdefs.h >>conftest.$ac_ext
5031 cat >>conftest.$ac_ext <<_ACEOF
5032 /* end confdefs.h. */
5035 main ()
5039 return 0;
5041 _ACEOF
5042 rm -f conftest.$ac_objext
5043 if { (ac_try="$ac_compile"
5044 case "(($ac_try" in
5045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5046 *) ac_try_echo=$ac_try;;
5047 esac
5048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5049 (eval "$ac_compile") 2>conftest.er1
5050 ac_status=$?
5051 grep -v '^ *+' conftest.er1 >conftest.err
5052 rm -f conftest.er1
5053 cat conftest.err >&5
5054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5055 (exit $ac_status); } && {
5056 test -z "$ac_c_werror_flag" ||
5057 test ! -s conftest.err
5058 } && test -s conftest.$ac_objext; then
5059 ac_cv_prog_cc_g=yes
5060 else
5061 echo "$as_me: failed program was:" >&5
5062 sed 's/^/| /' conftest.$ac_ext >&5
5064 CFLAGS=""
5065 cat >conftest.$ac_ext <<_ACEOF
5066 /* confdefs.h. */
5067 _ACEOF
5068 cat confdefs.h >>conftest.$ac_ext
5069 cat >>conftest.$ac_ext <<_ACEOF
5070 /* end confdefs.h. */
5073 main ()
5077 return 0;
5079 _ACEOF
5080 rm -f conftest.$ac_objext
5081 if { (ac_try="$ac_compile"
5082 case "(($ac_try" in
5083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5084 *) ac_try_echo=$ac_try;;
5085 esac
5086 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5087 (eval "$ac_compile") 2>conftest.er1
5088 ac_status=$?
5089 grep -v '^ *+' conftest.er1 >conftest.err
5090 rm -f conftest.er1
5091 cat conftest.err >&5
5092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5093 (exit $ac_status); } && {
5094 test -z "$ac_c_werror_flag" ||
5095 test ! -s conftest.err
5096 } && test -s conftest.$ac_objext; then
5098 else
5099 echo "$as_me: failed program was:" >&5
5100 sed 's/^/| /' conftest.$ac_ext >&5
5102 ac_c_werror_flag=$ac_save_c_werror_flag
5103 CFLAGS="-g"
5104 cat >conftest.$ac_ext <<_ACEOF
5105 /* confdefs.h. */
5106 _ACEOF
5107 cat confdefs.h >>conftest.$ac_ext
5108 cat >>conftest.$ac_ext <<_ACEOF
5109 /* end confdefs.h. */
5112 main ()
5116 return 0;
5118 _ACEOF
5119 rm -f conftest.$ac_objext
5120 if { (ac_try="$ac_compile"
5121 case "(($ac_try" in
5122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5123 *) ac_try_echo=$ac_try;;
5124 esac
5125 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5126 (eval "$ac_compile") 2>conftest.er1
5127 ac_status=$?
5128 grep -v '^ *+' conftest.er1 >conftest.err
5129 rm -f conftest.er1
5130 cat conftest.err >&5
5131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5132 (exit $ac_status); } && {
5133 test -z "$ac_c_werror_flag" ||
5134 test ! -s conftest.err
5135 } && test -s conftest.$ac_objext; then
5136 ac_cv_prog_cc_g=yes
5137 else
5138 echo "$as_me: failed program was:" >&5
5139 sed 's/^/| /' conftest.$ac_ext >&5
5144 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5147 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5150 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5151 ac_c_werror_flag=$ac_save_c_werror_flag
5153 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
5154 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
5155 if test "$ac_test_CFLAGS" = set; then
5156 CFLAGS=$ac_save_CFLAGS
5157 elif test $ac_cv_prog_cc_g = yes; then
5158 if test "$GCC" = yes; then
5159 CFLAGS="-g -O2"
5160 else
5161 CFLAGS="-g"
5163 else
5164 if test "$GCC" = yes; then
5165 CFLAGS="-O2"
5166 else
5167 CFLAGS=
5170 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
5171 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
5172 if test "${ac_cv_prog_cc_c89+set}" = set; then
5173 echo $ECHO_N "(cached) $ECHO_C" >&6
5174 else
5175 ac_cv_prog_cc_c89=no
5176 ac_save_CC=$CC
5177 cat >conftest.$ac_ext <<_ACEOF
5178 /* confdefs.h. */
5179 _ACEOF
5180 cat confdefs.h >>conftest.$ac_ext
5181 cat >>conftest.$ac_ext <<_ACEOF
5182 /* end confdefs.h. */
5183 #include <stdarg.h>
5184 #include <stdio.h>
5185 #include <sys/types.h>
5186 #include <sys/stat.h>
5187 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5188 struct buf { int x; };
5189 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5190 static char *e (p, i)
5191 char **p;
5192 int i;
5194 return p[i];
5196 static char *f (char * (*g) (char **, int), char **p, ...)
5198 char *s;
5199 va_list v;
5200 va_start (v,p);
5201 s = g (p, va_arg (v,int));
5202 va_end (v);
5203 return s;
5206 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5207 function prototypes and stuff, but not '\xHH' hex character constants.
5208 These don't provoke an error unfortunately, instead are silently treated
5209 as 'x'. The following induces an error, until -std is added to get
5210 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5211 array size at least. It's necessary to write '\x00'==0 to get something
5212 that's true only with -std. */
5213 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5215 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5216 inside strings and character constants. */
5217 #define FOO(x) 'x'
5218 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5220 int test (int i, double x);
5221 struct s1 {int (*f) (int a);};
5222 struct s2 {int (*f) (double a);};
5223 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5224 int argc;
5225 char **argv;
5227 main ()
5229 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5231 return 0;
5233 _ACEOF
5234 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5235 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5237 CC="$ac_save_CC $ac_arg"
5238 rm -f conftest.$ac_objext
5239 if { (ac_try="$ac_compile"
5240 case "(($ac_try" in
5241 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5242 *) ac_try_echo=$ac_try;;
5243 esac
5244 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5245 (eval "$ac_compile") 2>conftest.er1
5246 ac_status=$?
5247 grep -v '^ *+' conftest.er1 >conftest.err
5248 rm -f conftest.er1
5249 cat conftest.err >&5
5250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5251 (exit $ac_status); } && {
5252 test -z "$ac_c_werror_flag" ||
5253 test ! -s conftest.err
5254 } && test -s conftest.$ac_objext; then
5255 ac_cv_prog_cc_c89=$ac_arg
5256 else
5257 echo "$as_me: failed program was:" >&5
5258 sed 's/^/| /' conftest.$ac_ext >&5
5263 rm -f core conftest.err conftest.$ac_objext
5264 test "x$ac_cv_prog_cc_c89" != "xno" && break
5265 done
5266 rm -f conftest.$ac_ext
5267 CC=$ac_save_CC
5270 # AC_CACHE_VAL
5271 case "x$ac_cv_prog_cc_c89" in
5273 { echo "$as_me:$LINENO: result: none needed" >&5
5274 echo "${ECHO_T}none needed" >&6; } ;;
5275 xno)
5276 { echo "$as_me:$LINENO: result: unsupported" >&5
5277 echo "${ECHO_T}unsupported" >&6; } ;;
5279 CC="$CC $ac_cv_prog_cc_c89"
5280 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
5281 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
5282 esac
5285 ac_ext=c
5286 ac_cpp='$CPP $CPPFLAGS'
5287 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5288 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5289 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5291 depcc="$CC" am_compiler_list=
5293 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5294 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
5295 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
5296 echo $ECHO_N "(cached) $ECHO_C" >&6
5297 else
5298 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5299 # We make a subdir and do the tests there. Otherwise we can end up
5300 # making bogus files that we don't know about and never remove. For
5301 # instance it was reported that on HP-UX the gcc test will end up
5302 # making a dummy file named `D' -- because `-MD' means `put the output
5303 # in D'.
5304 mkdir conftest.dir
5305 # Copy depcomp to subdir because otherwise we won't find it if we're
5306 # using a relative directory.
5307 cp "$am_depcomp" conftest.dir
5308 cd conftest.dir
5309 # We will build objects and dependencies in a subdirectory because
5310 # it helps to detect inapplicable dependency modes. For instance
5311 # both Tru64's cc and ICC support -MD to output dependencies as a
5312 # side effect of compilation, but ICC will put the dependencies in
5313 # the current directory while Tru64 will put them in the object
5314 # directory.
5315 mkdir sub
5317 am_cv_CC_dependencies_compiler_type=none
5318 if test "$am_compiler_list" = ""; then
5319 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5321 for depmode in $am_compiler_list; do
5322 # Setup a source with many dependencies, because some compilers
5323 # like to wrap large dependency lists on column 80 (with \), and
5324 # we should not choose a depcomp mode which is confused by this.
5326 # We need to recreate these files for each test, as the compiler may
5327 # overwrite some of them when testing with obscure command lines.
5328 # This happens at least with the AIX C compiler.
5329 : > sub/conftest.c
5330 for i in 1 2 3 4 5 6; do
5331 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5332 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5333 # Solaris 8's {/usr,}/bin/sh.
5334 touch sub/conftst$i.h
5335 done
5336 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5338 case $depmode in
5339 nosideeffect)
5340 # after this tag, mechanisms are not by side-effect, so they'll
5341 # only be used when explicitly requested
5342 if test "x$enable_dependency_tracking" = xyes; then
5343 continue
5344 else
5345 break
5348 none) break ;;
5349 esac
5350 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5351 # mode. It turns out that the SunPro C++ compiler does not properly
5352 # handle `-M -o', and we need to detect this.
5353 if depmode=$depmode \
5354 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5355 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5356 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5357 >/dev/null 2>conftest.err &&
5358 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5359 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5360 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5361 # icc doesn't choke on unknown options, it will just issue warnings
5362 # or remarks (even with -Werror). So we grep stderr for any message
5363 # that says an option was ignored or not supported.
5364 # When given -MP, icc 7.0 and 7.1 complain thusly:
5365 # icc: Command line warning: ignoring option '-M'; no argument required
5366 # The diagnosis changed in icc 8.0:
5367 # icc: Command line remark: option '-MP' not supported
5368 if (grep 'ignoring option' conftest.err ||
5369 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5370 am_cv_CC_dependencies_compiler_type=$depmode
5371 break
5374 done
5376 cd ..
5377 rm -rf conftest.dir
5378 else
5379 am_cv_CC_dependencies_compiler_type=none
5383 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
5384 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
5385 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5390 test "x$enable_dependency_tracking" != xno \
5391 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5392 am__fastdepCC_TRUE=
5393 am__fastdepCC_FALSE='#'
5394 else
5395 am__fastdepCC_TRUE='#'
5396 am__fastdepCC_FALSE=
5401 am_cv_prog_cc_stdc=$ac_cv_prog_cc_stdc
5403 ac_ext=c
5404 ac_cpp='$CPP $CPPFLAGS'
5405 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5406 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5407 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5408 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5409 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
5410 # On Suns, sometimes $CPP names a directory.
5411 if test -n "$CPP" && test -d "$CPP"; then
5412 CPP=
5414 if test -z "$CPP"; then
5415 if test "${ac_cv_prog_CPP+set}" = set; then
5416 echo $ECHO_N "(cached) $ECHO_C" >&6
5417 else
5418 # Double quotes because CPP needs to be expanded
5419 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5421 ac_preproc_ok=false
5422 for ac_c_preproc_warn_flag in '' yes
5424 # Use a header file that comes with gcc, so configuring glibc
5425 # with a fresh cross-compiler works.
5426 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5427 # <limits.h> exists even on freestanding compilers.
5428 # On the NeXT, cc -E runs the code through the compiler's parser,
5429 # not just through cpp. "Syntax error" is here to catch this case.
5430 cat >conftest.$ac_ext <<_ACEOF
5431 /* confdefs.h. */
5432 _ACEOF
5433 cat confdefs.h >>conftest.$ac_ext
5434 cat >>conftest.$ac_ext <<_ACEOF
5435 /* end confdefs.h. */
5436 #ifdef __STDC__
5437 # include <limits.h>
5438 #else
5439 # include <assert.h>
5440 #endif
5441 Syntax error
5442 _ACEOF
5443 if { (ac_try="$ac_cpp conftest.$ac_ext"
5444 case "(($ac_try" in
5445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5446 *) ac_try_echo=$ac_try;;
5447 esac
5448 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5449 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5450 ac_status=$?
5451 grep -v '^ *+' conftest.er1 >conftest.err
5452 rm -f conftest.er1
5453 cat conftest.err >&5
5454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5455 (exit $ac_status); } >/dev/null && {
5456 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5457 test ! -s conftest.err
5458 }; then
5460 else
5461 echo "$as_me: failed program was:" >&5
5462 sed 's/^/| /' conftest.$ac_ext >&5
5464 # Broken: fails on valid input.
5465 continue
5468 rm -f conftest.err conftest.$ac_ext
5470 # OK, works on sane cases. Now check whether nonexistent headers
5471 # can be detected and how.
5472 cat >conftest.$ac_ext <<_ACEOF
5473 /* confdefs.h. */
5474 _ACEOF
5475 cat confdefs.h >>conftest.$ac_ext
5476 cat >>conftest.$ac_ext <<_ACEOF
5477 /* end confdefs.h. */
5478 #include <ac_nonexistent.h>
5479 _ACEOF
5480 if { (ac_try="$ac_cpp conftest.$ac_ext"
5481 case "(($ac_try" in
5482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5483 *) ac_try_echo=$ac_try;;
5484 esac
5485 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5486 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5487 ac_status=$?
5488 grep -v '^ *+' conftest.er1 >conftest.err
5489 rm -f conftest.er1
5490 cat conftest.err >&5
5491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5492 (exit $ac_status); } >/dev/null && {
5493 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5494 test ! -s conftest.err
5495 }; then
5496 # Broken: success on invalid input.
5497 continue
5498 else
5499 echo "$as_me: failed program was:" >&5
5500 sed 's/^/| /' conftest.$ac_ext >&5
5502 # Passes both tests.
5503 ac_preproc_ok=:
5504 break
5507 rm -f conftest.err conftest.$ac_ext
5509 done
5510 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5511 rm -f conftest.err conftest.$ac_ext
5512 if $ac_preproc_ok; then
5513 break
5516 done
5517 ac_cv_prog_CPP=$CPP
5520 CPP=$ac_cv_prog_CPP
5521 else
5522 ac_cv_prog_CPP=$CPP
5524 { echo "$as_me:$LINENO: result: $CPP" >&5
5525 echo "${ECHO_T}$CPP" >&6; }
5526 ac_preproc_ok=false
5527 for ac_c_preproc_warn_flag in '' yes
5529 # Use a header file that comes with gcc, so configuring glibc
5530 # with a fresh cross-compiler works.
5531 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5532 # <limits.h> exists even on freestanding compilers.
5533 # On the NeXT, cc -E runs the code through the compiler's parser,
5534 # not just through cpp. "Syntax error" is here to catch this case.
5535 cat >conftest.$ac_ext <<_ACEOF
5536 /* confdefs.h. */
5537 _ACEOF
5538 cat confdefs.h >>conftest.$ac_ext
5539 cat >>conftest.$ac_ext <<_ACEOF
5540 /* end confdefs.h. */
5541 #ifdef __STDC__
5542 # include <limits.h>
5543 #else
5544 # include <assert.h>
5545 #endif
5546 Syntax error
5547 _ACEOF
5548 if { (ac_try="$ac_cpp conftest.$ac_ext"
5549 case "(($ac_try" in
5550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5551 *) ac_try_echo=$ac_try;;
5552 esac
5553 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5554 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5555 ac_status=$?
5556 grep -v '^ *+' conftest.er1 >conftest.err
5557 rm -f conftest.er1
5558 cat conftest.err >&5
5559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5560 (exit $ac_status); } >/dev/null && {
5561 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5562 test ! -s conftest.err
5563 }; then
5565 else
5566 echo "$as_me: failed program was:" >&5
5567 sed 's/^/| /' conftest.$ac_ext >&5
5569 # Broken: fails on valid input.
5570 continue
5573 rm -f conftest.err conftest.$ac_ext
5575 # OK, works on sane cases. Now check whether nonexistent headers
5576 # can be detected and how.
5577 cat >conftest.$ac_ext <<_ACEOF
5578 /* confdefs.h. */
5579 _ACEOF
5580 cat confdefs.h >>conftest.$ac_ext
5581 cat >>conftest.$ac_ext <<_ACEOF
5582 /* end confdefs.h. */
5583 #include <ac_nonexistent.h>
5584 _ACEOF
5585 if { (ac_try="$ac_cpp conftest.$ac_ext"
5586 case "(($ac_try" in
5587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5588 *) ac_try_echo=$ac_try;;
5589 esac
5590 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5591 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5592 ac_status=$?
5593 grep -v '^ *+' conftest.er1 >conftest.err
5594 rm -f conftest.er1
5595 cat conftest.err >&5
5596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5597 (exit $ac_status); } >/dev/null && {
5598 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5599 test ! -s conftest.err
5600 }; then
5601 # Broken: success on invalid input.
5602 continue
5603 else
5604 echo "$as_me: failed program was:" >&5
5605 sed 's/^/| /' conftest.$ac_ext >&5
5607 # Passes both tests.
5608 ac_preproc_ok=:
5609 break
5612 rm -f conftest.err conftest.$ac_ext
5614 done
5615 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5616 rm -f conftest.err conftest.$ac_ext
5617 if $ac_preproc_ok; then
5619 else
5620 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5621 See \`config.log' for more details." >&5
5622 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5623 See \`config.log' for more details." >&2;}
5624 { (exit 1); exit 1; }; }
5627 ac_ext=c
5628 ac_cpp='$CPP $CPPFLAGS'
5629 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5630 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5631 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5634 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
5635 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
5636 if test "${ac_cv_path_GREP+set}" = set; then
5637 echo $ECHO_N "(cached) $ECHO_C" >&6
5638 else
5639 # Extract the first word of "grep ggrep" to use in msg output
5640 if test -z "$GREP"; then
5641 set dummy grep ggrep; ac_prog_name=$2
5642 if test "${ac_cv_path_GREP+set}" = set; then
5643 echo $ECHO_N "(cached) $ECHO_C" >&6
5644 else
5645 ac_path_GREP_found=false
5646 # Loop through the user's path and test for each of PROGNAME-LIST
5647 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5648 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5650 IFS=$as_save_IFS
5651 test -z "$as_dir" && as_dir=.
5652 for ac_prog in grep ggrep; do
5653 for ac_exec_ext in '' $ac_executable_extensions; do
5654 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5655 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5656 # Check for GNU ac_path_GREP and select it if it is found.
5657 # Check for GNU $ac_path_GREP
5658 case `"$ac_path_GREP" --version 2>&1` in
5659 *GNU*)
5660 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5662 ac_count=0
5663 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5664 while :
5666 cat "conftest.in" "conftest.in" >"conftest.tmp"
5667 mv "conftest.tmp" "conftest.in"
5668 cp "conftest.in" "conftest.nl"
5669 echo 'GREP' >> "conftest.nl"
5670 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5671 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5672 ac_count=`expr $ac_count + 1`
5673 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5674 # Best one so far, save it but keep looking for a better one
5675 ac_cv_path_GREP="$ac_path_GREP"
5676 ac_path_GREP_max=$ac_count
5678 # 10*(2^10) chars as input seems more than enough
5679 test $ac_count -gt 10 && break
5680 done
5681 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5682 esac
5685 $ac_path_GREP_found && break 3
5686 done
5687 done
5689 done
5690 IFS=$as_save_IFS
5695 GREP="$ac_cv_path_GREP"
5696 if test -z "$GREP"; then
5697 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5698 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5699 { (exit 1); exit 1; }; }
5702 else
5703 ac_cv_path_GREP=$GREP
5708 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
5709 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
5710 GREP="$ac_cv_path_GREP"
5713 { echo "$as_me:$LINENO: checking for egrep" >&5
5714 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
5715 if test "${ac_cv_path_EGREP+set}" = set; then
5716 echo $ECHO_N "(cached) $ECHO_C" >&6
5717 else
5718 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5719 then ac_cv_path_EGREP="$GREP -E"
5720 else
5721 # Extract the first word of "egrep" to use in msg output
5722 if test -z "$EGREP"; then
5723 set dummy egrep; ac_prog_name=$2
5724 if test "${ac_cv_path_EGREP+set}" = set; then
5725 echo $ECHO_N "(cached) $ECHO_C" >&6
5726 else
5727 ac_path_EGREP_found=false
5728 # Loop through the user's path and test for each of PROGNAME-LIST
5729 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5730 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5732 IFS=$as_save_IFS
5733 test -z "$as_dir" && as_dir=.
5734 for ac_prog in egrep; do
5735 for ac_exec_ext in '' $ac_executable_extensions; do
5736 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5737 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5738 # Check for GNU ac_path_EGREP and select it if it is found.
5739 # Check for GNU $ac_path_EGREP
5740 case `"$ac_path_EGREP" --version 2>&1` in
5741 *GNU*)
5742 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5744 ac_count=0
5745 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5746 while :
5748 cat "conftest.in" "conftest.in" >"conftest.tmp"
5749 mv "conftest.tmp" "conftest.in"
5750 cp "conftest.in" "conftest.nl"
5751 echo 'EGREP' >> "conftest.nl"
5752 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5753 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5754 ac_count=`expr $ac_count + 1`
5755 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5756 # Best one so far, save it but keep looking for a better one
5757 ac_cv_path_EGREP="$ac_path_EGREP"
5758 ac_path_EGREP_max=$ac_count
5760 # 10*(2^10) chars as input seems more than enough
5761 test $ac_count -gt 10 && break
5762 done
5763 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5764 esac
5767 $ac_path_EGREP_found && break 3
5768 done
5769 done
5771 done
5772 IFS=$as_save_IFS
5777 EGREP="$ac_cv_path_EGREP"
5778 if test -z "$EGREP"; then
5779 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5780 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5781 { (exit 1); exit 1; }; }
5784 else
5785 ac_cv_path_EGREP=$EGREP
5791 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
5792 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
5793 EGREP="$ac_cv_path_EGREP"
5796 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5797 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
5798 if test "${ac_cv_header_stdc+set}" = set; then
5799 echo $ECHO_N "(cached) $ECHO_C" >&6
5800 else
5801 cat >conftest.$ac_ext <<_ACEOF
5802 /* confdefs.h. */
5803 _ACEOF
5804 cat confdefs.h >>conftest.$ac_ext
5805 cat >>conftest.$ac_ext <<_ACEOF
5806 /* end confdefs.h. */
5807 #include <stdlib.h>
5808 #include <stdarg.h>
5809 #include <string.h>
5810 #include <float.h>
5813 main ()
5817 return 0;
5819 _ACEOF
5820 rm -f conftest.$ac_objext
5821 if { (ac_try="$ac_compile"
5822 case "(($ac_try" in
5823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5824 *) ac_try_echo=$ac_try;;
5825 esac
5826 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5827 (eval "$ac_compile") 2>conftest.er1
5828 ac_status=$?
5829 grep -v '^ *+' conftest.er1 >conftest.err
5830 rm -f conftest.er1
5831 cat conftest.err >&5
5832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5833 (exit $ac_status); } && {
5834 test -z "$ac_c_werror_flag" ||
5835 test ! -s conftest.err
5836 } && test -s conftest.$ac_objext; then
5837 ac_cv_header_stdc=yes
5838 else
5839 echo "$as_me: failed program was:" >&5
5840 sed 's/^/| /' conftest.$ac_ext >&5
5842 ac_cv_header_stdc=no
5845 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5847 if test $ac_cv_header_stdc = yes; then
5848 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5849 cat >conftest.$ac_ext <<_ACEOF
5850 /* confdefs.h. */
5851 _ACEOF
5852 cat confdefs.h >>conftest.$ac_ext
5853 cat >>conftest.$ac_ext <<_ACEOF
5854 /* end confdefs.h. */
5855 #include <string.h>
5857 _ACEOF
5858 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5859 $EGREP "memchr" >/dev/null 2>&1; then
5861 else
5862 ac_cv_header_stdc=no
5864 rm -f conftest*
5868 if test $ac_cv_header_stdc = yes; then
5869 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5870 cat >conftest.$ac_ext <<_ACEOF
5871 /* confdefs.h. */
5872 _ACEOF
5873 cat confdefs.h >>conftest.$ac_ext
5874 cat >>conftest.$ac_ext <<_ACEOF
5875 /* end confdefs.h. */
5876 #include <stdlib.h>
5878 _ACEOF
5879 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5880 $EGREP "free" >/dev/null 2>&1; then
5882 else
5883 ac_cv_header_stdc=no
5885 rm -f conftest*
5889 if test $ac_cv_header_stdc = yes; then
5890 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5891 if test "$cross_compiling" = yes; then
5893 else
5894 cat >conftest.$ac_ext <<_ACEOF
5895 /* confdefs.h. */
5896 _ACEOF
5897 cat confdefs.h >>conftest.$ac_ext
5898 cat >>conftest.$ac_ext <<_ACEOF
5899 /* end confdefs.h. */
5900 #include <ctype.h>
5901 #include <stdlib.h>
5902 #if ((' ' & 0x0FF) == 0x020)
5903 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5904 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5905 #else
5906 # define ISLOWER(c) \
5907 (('a' <= (c) && (c) <= 'i') \
5908 || ('j' <= (c) && (c) <= 'r') \
5909 || ('s' <= (c) && (c) <= 'z'))
5910 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5911 #endif
5913 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5915 main ()
5917 int i;
5918 for (i = 0; i < 256; i++)
5919 if (XOR (islower (i), ISLOWER (i))
5920 || toupper (i) != TOUPPER (i))
5921 return 2;
5922 return 0;
5924 _ACEOF
5925 rm -f conftest$ac_exeext
5926 if { (ac_try="$ac_link"
5927 case "(($ac_try" in
5928 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5929 *) ac_try_echo=$ac_try;;
5930 esac
5931 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5932 (eval "$ac_link") 2>&5
5933 ac_status=$?
5934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5935 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5936 { (case "(($ac_try" in
5937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5938 *) ac_try_echo=$ac_try;;
5939 esac
5940 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5941 (eval "$ac_try") 2>&5
5942 ac_status=$?
5943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5944 (exit $ac_status); }; }; then
5946 else
5947 echo "$as_me: program exited with status $ac_status" >&5
5948 echo "$as_me: failed program was:" >&5
5949 sed 's/^/| /' conftest.$ac_ext >&5
5951 ( exit $ac_status )
5952 ac_cv_header_stdc=no
5954 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5960 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5961 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
5962 if test $ac_cv_header_stdc = yes; then
5964 cat >>confdefs.h <<\_ACEOF
5965 #define STDC_HEADERS 1
5966 _ACEOF
5970 ac_ext=cpp
5971 ac_cpp='$CXXCPP $CPPFLAGS'
5972 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5973 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5974 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5975 if test -z "$CXX"; then
5976 if test -n "$CCC"; then
5977 CXX=$CCC
5978 else
5979 if test -n "$ac_tool_prefix"; then
5980 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5982 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5983 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5984 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5985 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5986 if test "${ac_cv_prog_CXX+set}" = set; then
5987 echo $ECHO_N "(cached) $ECHO_C" >&6
5988 else
5989 if test -n "$CXX"; then
5990 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5991 else
5992 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5993 for as_dir in $PATH
5995 IFS=$as_save_IFS
5996 test -z "$as_dir" && as_dir=.
5997 for ac_exec_ext in '' $ac_executable_extensions; do
5998 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5999 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
6000 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6001 break 2
6003 done
6004 done
6005 IFS=$as_save_IFS
6009 CXX=$ac_cv_prog_CXX
6010 if test -n "$CXX"; then
6011 { echo "$as_me:$LINENO: result: $CXX" >&5
6012 echo "${ECHO_T}$CXX" >&6; }
6013 else
6014 { echo "$as_me:$LINENO: result: no" >&5
6015 echo "${ECHO_T}no" >&6; }
6019 test -n "$CXX" && break
6020 done
6022 if test -z "$CXX"; then
6023 ac_ct_CXX=$CXX
6024 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
6026 # Extract the first word of "$ac_prog", so it can be a program name with args.
6027 set dummy $ac_prog; ac_word=$2
6028 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6029 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6030 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
6031 echo $ECHO_N "(cached) $ECHO_C" >&6
6032 else
6033 if test -n "$ac_ct_CXX"; then
6034 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6035 else
6036 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6037 for as_dir in $PATH
6039 IFS=$as_save_IFS
6040 test -z "$as_dir" && as_dir=.
6041 for ac_exec_ext in '' $ac_executable_extensions; do
6042 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6043 ac_cv_prog_ac_ct_CXX="$ac_prog"
6044 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6045 break 2
6047 done
6048 done
6049 IFS=$as_save_IFS
6053 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6054 if test -n "$ac_ct_CXX"; then
6055 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
6056 echo "${ECHO_T}$ac_ct_CXX" >&6; }
6057 else
6058 { echo "$as_me:$LINENO: result: no" >&5
6059 echo "${ECHO_T}no" >&6; }
6063 test -n "$ac_ct_CXX" && break
6064 done
6066 if test "x$ac_ct_CXX" = x; then
6067 CXX="g++"
6068 else
6069 case $cross_compiling:$ac_tool_warned in
6070 yes:)
6071 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6072 whose name does not start with the host triplet. If you think this
6073 configuration is useful to you, please write to autoconf@gnu.org." >&5
6074 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6075 whose name does not start with the host triplet. If you think this
6076 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6077 ac_tool_warned=yes ;;
6078 esac
6079 CXX=$ac_ct_CXX
6085 # Provide some information about the compiler.
6086 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
6087 ac_compiler=`set X $ac_compile; echo $2`
6088 { (ac_try="$ac_compiler --version >&5"
6089 case "(($ac_try" in
6090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6091 *) ac_try_echo=$ac_try;;
6092 esac
6093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6094 (eval "$ac_compiler --version >&5") 2>&5
6095 ac_status=$?
6096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6097 (exit $ac_status); }
6098 { (ac_try="$ac_compiler -v >&5"
6099 case "(($ac_try" in
6100 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6101 *) ac_try_echo=$ac_try;;
6102 esac
6103 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6104 (eval "$ac_compiler -v >&5") 2>&5
6105 ac_status=$?
6106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6107 (exit $ac_status); }
6108 { (ac_try="$ac_compiler -V >&5"
6109 case "(($ac_try" in
6110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6111 *) ac_try_echo=$ac_try;;
6112 esac
6113 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6114 (eval "$ac_compiler -V >&5") 2>&5
6115 ac_status=$?
6116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6117 (exit $ac_status); }
6119 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
6120 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
6121 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
6122 echo $ECHO_N "(cached) $ECHO_C" >&6
6123 else
6124 cat >conftest.$ac_ext <<_ACEOF
6125 /* confdefs.h. */
6126 _ACEOF
6127 cat confdefs.h >>conftest.$ac_ext
6128 cat >>conftest.$ac_ext <<_ACEOF
6129 /* end confdefs.h. */
6132 main ()
6134 #ifndef __GNUC__
6135 choke me
6136 #endif
6139 return 0;
6141 _ACEOF
6142 rm -f conftest.$ac_objext
6143 if { (ac_try="$ac_compile"
6144 case "(($ac_try" in
6145 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6146 *) ac_try_echo=$ac_try;;
6147 esac
6148 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6149 (eval "$ac_compile") 2>conftest.er1
6150 ac_status=$?
6151 grep -v '^ *+' conftest.er1 >conftest.err
6152 rm -f conftest.er1
6153 cat conftest.err >&5
6154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6155 (exit $ac_status); } && {
6156 test -z "$ac_cxx_werror_flag" ||
6157 test ! -s conftest.err
6158 } && test -s conftest.$ac_objext; then
6159 ac_compiler_gnu=yes
6160 else
6161 echo "$as_me: failed program was:" >&5
6162 sed 's/^/| /' conftest.$ac_ext >&5
6164 ac_compiler_gnu=no
6167 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6168 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6171 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
6172 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
6173 GXX=`test $ac_compiler_gnu = yes && echo yes`
6174 ac_test_CXXFLAGS=${CXXFLAGS+set}
6175 ac_save_CXXFLAGS=$CXXFLAGS
6176 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
6177 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
6178 if test "${ac_cv_prog_cxx_g+set}" = set; then
6179 echo $ECHO_N "(cached) $ECHO_C" >&6
6180 else
6181 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6182 ac_cxx_werror_flag=yes
6183 ac_cv_prog_cxx_g=no
6184 CXXFLAGS="-g"
6185 cat >conftest.$ac_ext <<_ACEOF
6186 /* confdefs.h. */
6187 _ACEOF
6188 cat confdefs.h >>conftest.$ac_ext
6189 cat >>conftest.$ac_ext <<_ACEOF
6190 /* end confdefs.h. */
6193 main ()
6197 return 0;
6199 _ACEOF
6200 rm -f conftest.$ac_objext
6201 if { (ac_try="$ac_compile"
6202 case "(($ac_try" in
6203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6204 *) ac_try_echo=$ac_try;;
6205 esac
6206 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6207 (eval "$ac_compile") 2>conftest.er1
6208 ac_status=$?
6209 grep -v '^ *+' conftest.er1 >conftest.err
6210 rm -f conftest.er1
6211 cat conftest.err >&5
6212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6213 (exit $ac_status); } && {
6214 test -z "$ac_cxx_werror_flag" ||
6215 test ! -s conftest.err
6216 } && test -s conftest.$ac_objext; then
6217 ac_cv_prog_cxx_g=yes
6218 else
6219 echo "$as_me: failed program was:" >&5
6220 sed 's/^/| /' conftest.$ac_ext >&5
6222 CXXFLAGS=""
6223 cat >conftest.$ac_ext <<_ACEOF
6224 /* confdefs.h. */
6225 _ACEOF
6226 cat confdefs.h >>conftest.$ac_ext
6227 cat >>conftest.$ac_ext <<_ACEOF
6228 /* end confdefs.h. */
6231 main ()
6235 return 0;
6237 _ACEOF
6238 rm -f conftest.$ac_objext
6239 if { (ac_try="$ac_compile"
6240 case "(($ac_try" in
6241 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6242 *) ac_try_echo=$ac_try;;
6243 esac
6244 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6245 (eval "$ac_compile") 2>conftest.er1
6246 ac_status=$?
6247 grep -v '^ *+' conftest.er1 >conftest.err
6248 rm -f conftest.er1
6249 cat conftest.err >&5
6250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6251 (exit $ac_status); } && {
6252 test -z "$ac_cxx_werror_flag" ||
6253 test ! -s conftest.err
6254 } && test -s conftest.$ac_objext; then
6256 else
6257 echo "$as_me: failed program was:" >&5
6258 sed 's/^/| /' conftest.$ac_ext >&5
6260 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6261 CXXFLAGS="-g"
6262 cat >conftest.$ac_ext <<_ACEOF
6263 /* confdefs.h. */
6264 _ACEOF
6265 cat confdefs.h >>conftest.$ac_ext
6266 cat >>conftest.$ac_ext <<_ACEOF
6267 /* end confdefs.h. */
6270 main ()
6274 return 0;
6276 _ACEOF
6277 rm -f conftest.$ac_objext
6278 if { (ac_try="$ac_compile"
6279 case "(($ac_try" in
6280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6281 *) ac_try_echo=$ac_try;;
6282 esac
6283 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6284 (eval "$ac_compile") 2>conftest.er1
6285 ac_status=$?
6286 grep -v '^ *+' conftest.er1 >conftest.err
6287 rm -f conftest.er1
6288 cat conftest.err >&5
6289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6290 (exit $ac_status); } && {
6291 test -z "$ac_cxx_werror_flag" ||
6292 test ! -s conftest.err
6293 } && test -s conftest.$ac_objext; then
6294 ac_cv_prog_cxx_g=yes
6295 else
6296 echo "$as_me: failed program was:" >&5
6297 sed 's/^/| /' conftest.$ac_ext >&5
6302 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6305 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6308 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6309 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6311 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
6312 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
6313 if test "$ac_test_CXXFLAGS" = set; then
6314 CXXFLAGS=$ac_save_CXXFLAGS
6315 elif test $ac_cv_prog_cxx_g = yes; then
6316 if test "$GXX" = yes; then
6317 CXXFLAGS="-g -O2"
6318 else
6319 CXXFLAGS="-g"
6321 else
6322 if test "$GXX" = yes; then
6323 CXXFLAGS="-O2"
6324 else
6325 CXXFLAGS=
6328 ac_ext=c
6329 ac_cpp='$CPP $CPPFLAGS'
6330 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6331 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6332 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6334 depcc="$CXX" am_compiler_list=
6336 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
6337 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
6338 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
6339 echo $ECHO_N "(cached) $ECHO_C" >&6
6340 else
6341 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6342 # We make a subdir and do the tests there. Otherwise we can end up
6343 # making bogus files that we don't know about and never remove. For
6344 # instance it was reported that on HP-UX the gcc test will end up
6345 # making a dummy file named `D' -- because `-MD' means `put the output
6346 # in D'.
6347 mkdir conftest.dir
6348 # Copy depcomp to subdir because otherwise we won't find it if we're
6349 # using a relative directory.
6350 cp "$am_depcomp" conftest.dir
6351 cd conftest.dir
6352 # We will build objects and dependencies in a subdirectory because
6353 # it helps to detect inapplicable dependency modes. For instance
6354 # both Tru64's cc and ICC support -MD to output dependencies as a
6355 # side effect of compilation, but ICC will put the dependencies in
6356 # the current directory while Tru64 will put them in the object
6357 # directory.
6358 mkdir sub
6360 am_cv_CXX_dependencies_compiler_type=none
6361 if test "$am_compiler_list" = ""; then
6362 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6364 for depmode in $am_compiler_list; do
6365 # Setup a source with many dependencies, because some compilers
6366 # like to wrap large dependency lists on column 80 (with \), and
6367 # we should not choose a depcomp mode which is confused by this.
6369 # We need to recreate these files for each test, as the compiler may
6370 # overwrite some of them when testing with obscure command lines.
6371 # This happens at least with the AIX C compiler.
6372 : > sub/conftest.c
6373 for i in 1 2 3 4 5 6; do
6374 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6375 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6376 # Solaris 8's {/usr,}/bin/sh.
6377 touch sub/conftst$i.h
6378 done
6379 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6381 case $depmode in
6382 nosideeffect)
6383 # after this tag, mechanisms are not by side-effect, so they'll
6384 # only be used when explicitly requested
6385 if test "x$enable_dependency_tracking" = xyes; then
6386 continue
6387 else
6388 break
6391 none) break ;;
6392 esac
6393 # We check with `-c' and `-o' for the sake of the "dashmstdout"
6394 # mode. It turns out that the SunPro C++ compiler does not properly
6395 # handle `-M -o', and we need to detect this.
6396 if depmode=$depmode \
6397 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
6398 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6399 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
6400 >/dev/null 2>conftest.err &&
6401 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6402 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
6403 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6404 # icc doesn't choke on unknown options, it will just issue warnings
6405 # or remarks (even with -Werror). So we grep stderr for any message
6406 # that says an option was ignored or not supported.
6407 # When given -MP, icc 7.0 and 7.1 complain thusly:
6408 # icc: Command line warning: ignoring option '-M'; no argument required
6409 # The diagnosis changed in icc 8.0:
6410 # icc: Command line remark: option '-MP' not supported
6411 if (grep 'ignoring option' conftest.err ||
6412 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6413 am_cv_CXX_dependencies_compiler_type=$depmode
6414 break
6417 done
6419 cd ..
6420 rm -rf conftest.dir
6421 else
6422 am_cv_CXX_dependencies_compiler_type=none
6426 { echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
6427 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
6428 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
6433 test "x$enable_dependency_tracking" != xno \
6434 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
6435 am__fastdepCXX_TRUE=
6436 am__fastdepCXX_FALSE='#'
6437 else
6438 am__fastdepCXX_TRUE='#'
6439 am__fastdepCXX_FALSE=
6443 # Check whether --enable-static was given.
6444 if test "${enable_static+set}" = set; then
6445 enableval=$enable_static; p=${PACKAGE-default}
6446 case $enableval in
6447 yes) enable_static=yes ;;
6448 no) enable_static=no ;;
6450 enable_static=no
6451 # Look at the argument we got. We use all the common list separators.
6452 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6453 for pkg in $enableval; do
6454 IFS="$lt_save_ifs"
6455 if test "X$pkg" = "X$p"; then
6456 enable_static=yes
6458 done
6459 IFS="$lt_save_ifs"
6461 esac
6462 else
6463 enable_static=no
6468 # Check whether --enable-shared was given.
6469 if test "${enable_shared+set}" = set; then
6470 enableval=$enable_shared; p=${PACKAGE-default}
6471 case $enableval in
6472 yes) enable_shared=yes ;;
6473 no) enable_shared=no ;;
6475 enable_shared=no
6476 # Look at the argument we got. We use all the common list separators.
6477 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6478 for pkg in $enableval; do
6479 IFS="$lt_save_ifs"
6480 if test "X$pkg" = "X$p"; then
6481 enable_shared=yes
6483 done
6484 IFS="$lt_save_ifs"
6486 esac
6487 else
6488 enable_shared=yes
6492 # Check whether --enable-fast-install was given.
6493 if test "${enable_fast_install+set}" = set; then
6494 enableval=$enable_fast_install; p=${PACKAGE-default}
6495 case $enableval in
6496 yes) enable_fast_install=yes ;;
6497 no) enable_fast_install=no ;;
6499 enable_fast_install=no
6500 # Look at the argument we got. We use all the common list separators.
6501 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6502 for pkg in $enableval; do
6503 IFS="$lt_save_ifs"
6504 if test "X$pkg" = "X$p"; then
6505 enable_fast_install=yes
6507 done
6508 IFS="$lt_save_ifs"
6510 esac
6511 else
6512 enable_fast_install=yes
6516 # Make sure we can run config.sub.
6517 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
6518 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
6519 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
6520 { (exit 1); exit 1; }; }
6522 { echo "$as_me:$LINENO: checking build system type" >&5
6523 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
6524 if test "${ac_cv_build+set}" = set; then
6525 echo $ECHO_N "(cached) $ECHO_C" >&6
6526 else
6527 ac_build_alias=$build_alias
6528 test "x$ac_build_alias" = x &&
6529 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
6530 test "x$ac_build_alias" = x &&
6531 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
6532 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
6533 { (exit 1); exit 1; }; }
6534 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
6535 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
6536 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
6537 { (exit 1); exit 1; }; }
6540 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
6541 echo "${ECHO_T}$ac_cv_build" >&6; }
6542 case $ac_cv_build in
6543 *-*-*) ;;
6544 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
6545 echo "$as_me: error: invalid value of canonical build" >&2;}
6546 { (exit 1); exit 1; }; };;
6547 esac
6548 build=$ac_cv_build
6549 ac_save_IFS=$IFS; IFS='-'
6550 set x $ac_cv_build
6551 shift
6552 build_cpu=$1
6553 build_vendor=$2
6554 shift; shift
6555 # Remember, the first character of IFS is used to create $*,
6556 # except with old shells:
6557 build_os=$*
6558 IFS=$ac_save_IFS
6559 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
6562 { echo "$as_me:$LINENO: checking host system type" >&5
6563 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
6564 if test "${ac_cv_host+set}" = set; then
6565 echo $ECHO_N "(cached) $ECHO_C" >&6
6566 else
6567 if test "x$host_alias" = x; then
6568 ac_cv_host=$ac_cv_build
6569 else
6570 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
6571 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
6572 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
6573 { (exit 1); exit 1; }; }
6577 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
6578 echo "${ECHO_T}$ac_cv_host" >&6; }
6579 case $ac_cv_host in
6580 *-*-*) ;;
6581 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
6582 echo "$as_me: error: invalid value of canonical host" >&2;}
6583 { (exit 1); exit 1; }; };;
6584 esac
6585 host=$ac_cv_host
6586 ac_save_IFS=$IFS; IFS='-'
6587 set x $ac_cv_host
6588 shift
6589 host_cpu=$1
6590 host_vendor=$2
6591 shift; shift
6592 # Remember, the first character of IFS is used to create $*,
6593 # except with old shells:
6594 host_os=$*
6595 IFS=$ac_save_IFS
6596 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
6599 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
6600 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
6601 if test "${lt_cv_path_SED+set}" = set; then
6602 echo $ECHO_N "(cached) $ECHO_C" >&6
6603 else
6604 # Loop through the user's path and test for sed and gsed.
6605 # Then use that list of sed's as ones to test for truncation.
6606 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6607 for as_dir in $PATH
6609 IFS=$as_save_IFS
6610 test -z "$as_dir" && as_dir=.
6611 for lt_ac_prog in sed gsed; do
6612 for ac_exec_ext in '' $ac_executable_extensions; do
6613 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
6614 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
6616 done
6617 done
6618 done
6619 lt_ac_max=0
6620 lt_ac_count=0
6621 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
6622 # along with /bin/sed that truncates output.
6623 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
6624 test ! -f $lt_ac_sed && continue
6625 cat /dev/null > conftest.in
6626 lt_ac_count=0
6627 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
6628 # Check for GNU sed and select it if it is found.
6629 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
6630 lt_cv_path_SED=$lt_ac_sed
6631 break
6633 while true; do
6634 cat conftest.in conftest.in >conftest.tmp
6635 mv conftest.tmp conftest.in
6636 cp conftest.in conftest.nl
6637 echo >>conftest.nl
6638 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
6639 cmp -s conftest.out conftest.nl || break
6640 # 10000 chars as input seems more than enough
6641 test $lt_ac_count -gt 10 && break
6642 lt_ac_count=`expr $lt_ac_count + 1`
6643 if test $lt_ac_count -gt $lt_ac_max; then
6644 lt_ac_max=$lt_ac_count
6645 lt_cv_path_SED=$lt_ac_sed
6647 done
6648 done
6652 SED=$lt_cv_path_SED
6653 { echo "$as_me:$LINENO: result: $SED" >&5
6654 echo "${ECHO_T}$SED" >&6; }
6657 # Check whether --with-gnu-ld was given.
6658 if test "${with_gnu_ld+set}" = set; then
6659 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6660 else
6661 with_gnu_ld=no
6664 ac_prog=ld
6665 if test "$GCC" = yes; then
6666 # Check if gcc -print-prog-name=ld gives a path.
6667 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
6668 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
6669 case $host in
6670 *-*-mingw*)
6671 # gcc leaves a trailing carriage return which upsets mingw
6672 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6674 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6675 esac
6676 case $ac_prog in
6677 # Accept absolute paths.
6678 [\\/]* | ?:[\\/]*)
6679 re_direlt='/[^/][^/]*/\.\./'
6680 # Canonicalize the pathname of ld
6681 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
6682 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
6683 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
6684 done
6685 test -z "$LD" && LD="$ac_prog"
6688 # If it fails, then pretend we aren't using GCC.
6689 ac_prog=ld
6692 # If it is relative, then search for the first ld in PATH.
6693 with_gnu_ld=unknown
6695 esac
6696 elif test "$with_gnu_ld" = yes; then
6697 { echo "$as_me:$LINENO: checking for GNU ld" >&5
6698 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
6699 else
6700 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
6701 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
6703 if test "${lt_cv_path_LD+set}" = set; then
6704 echo $ECHO_N "(cached) $ECHO_C" >&6
6705 else
6706 if test -z "$LD"; then
6707 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6708 for ac_dir in $PATH; do
6709 IFS="$lt_save_ifs"
6710 test -z "$ac_dir" && ac_dir=.
6711 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6712 lt_cv_path_LD="$ac_dir/$ac_prog"
6713 # Check to see if the program is GNU ld. I'd rather use --version,
6714 # but apparently some variants of GNU ld only accept -v.
6715 # Break only if it was the GNU/non-GNU ld that we prefer.
6716 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6717 *GNU* | *'with BFD'*)
6718 test "$with_gnu_ld" != no && break
6721 test "$with_gnu_ld" != yes && break
6723 esac
6725 done
6726 IFS="$lt_save_ifs"
6727 else
6728 lt_cv_path_LD="$LD" # Let the user override the test with a path.
6732 LD="$lt_cv_path_LD"
6733 if test -n "$LD"; then
6734 { echo "$as_me:$LINENO: result: $LD" >&5
6735 echo "${ECHO_T}$LD" >&6; }
6736 else
6737 { echo "$as_me:$LINENO: result: no" >&5
6738 echo "${ECHO_T}no" >&6; }
6740 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
6741 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
6742 { (exit 1); exit 1; }; }
6743 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
6744 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
6745 if test "${lt_cv_prog_gnu_ld+set}" = set; then
6746 echo $ECHO_N "(cached) $ECHO_C" >&6
6747 else
6748 # I'd rather use --version here, but apparently some GNU lds only accept -v.
6749 case `$LD -v 2>&1 </dev/null` in
6750 *GNU* | *'with BFD'*)
6751 lt_cv_prog_gnu_ld=yes
6754 lt_cv_prog_gnu_ld=no
6756 esac
6758 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
6759 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
6760 with_gnu_ld=$lt_cv_prog_gnu_ld
6763 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
6764 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
6765 if test "${lt_cv_ld_reload_flag+set}" = set; then
6766 echo $ECHO_N "(cached) $ECHO_C" >&6
6767 else
6768 lt_cv_ld_reload_flag='-r'
6770 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
6771 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
6772 reload_flag=$lt_cv_ld_reload_flag
6773 case $reload_flag in
6774 "" | " "*) ;;
6775 *) reload_flag=" $reload_flag" ;;
6776 esac
6777 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6778 case $host_os in
6779 darwin*)
6780 if test "$GCC" = yes; then
6781 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6782 else
6783 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6786 esac
6788 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6789 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
6790 if test "${lt_cv_path_NM+set}" = set; then
6791 echo $ECHO_N "(cached) $ECHO_C" >&6
6792 else
6793 if test -n "$NM"; then
6794 # Let the user override the test.
6795 lt_cv_path_NM="$NM"
6796 else
6797 lt_nm_to_check="${ac_tool_prefix}nm"
6798 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6799 lt_nm_to_check="$lt_nm_to_check nm"
6801 for lt_tmp_nm in $lt_nm_to_check; do
6802 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6803 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6804 IFS="$lt_save_ifs"
6805 test -z "$ac_dir" && ac_dir=.
6806 tmp_nm="$ac_dir/$lt_tmp_nm"
6807 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6808 # Check to see if the nm accepts a BSD-compat flag.
6809 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6810 # nm: unknown option "B" ignored
6811 # Tru64's nm complains that /dev/null is an invalid object file
6812 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6813 */dev/null* | *'Invalid file or object type'*)
6814 lt_cv_path_NM="$tmp_nm -B"
6815 break
6818 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6819 */dev/null*)
6820 lt_cv_path_NM="$tmp_nm -p"
6821 break
6824 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6825 continue # so that we can try to find one that supports BSD flags
6827 esac
6829 esac
6831 done
6832 IFS="$lt_save_ifs"
6833 done
6834 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6837 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6838 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
6839 NM="$lt_cv_path_NM"
6841 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
6842 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6843 LN_S=$as_ln_s
6844 if test "$LN_S" = "ln -s"; then
6845 { echo "$as_me:$LINENO: result: yes" >&5
6846 echo "${ECHO_T}yes" >&6; }
6847 else
6848 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6849 echo "${ECHO_T}no, using $LN_S" >&6; }
6852 { echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
6853 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
6854 if test "${lt_cv_deplibs_check_method+set}" = set; then
6855 echo $ECHO_N "(cached) $ECHO_C" >&6
6856 else
6857 lt_cv_file_magic_cmd='$MAGIC_CMD'
6858 lt_cv_file_magic_test_file=
6859 lt_cv_deplibs_check_method='unknown'
6860 # Need to set the preceding variable on all platforms that support
6861 # interlibrary dependencies.
6862 # 'none' -- dependencies not supported.
6863 # `unknown' -- same as none, but documents that we really don't know.
6864 # 'pass_all' -- all dependencies passed with no checks.
6865 # 'test_compile' -- check by making test program.
6866 # 'file_magic [[regex]]' -- check by looking for files in library path
6867 # which responds to the $file_magic_cmd with a given extended regex.
6868 # If you have `file' or equivalent on your system and you're not sure
6869 # whether `pass_all' will *always* work, you probably want this one.
6871 case $host_os in
6872 aix4* | aix5*)
6873 lt_cv_deplibs_check_method=pass_all
6876 beos*)
6877 lt_cv_deplibs_check_method=pass_all
6880 bsdi[45]*)
6881 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6882 lt_cv_file_magic_cmd='/usr/bin/file -L'
6883 lt_cv_file_magic_test_file=/shlib/libc.so
6886 cygwin*)
6887 # func_win32_libid is a shell function defined in ltmain.sh
6888 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6889 lt_cv_file_magic_cmd='func_win32_libid'
6892 mingw* | pw32*)
6893 # Base MSYS/MinGW do not provide the 'file' command needed by
6894 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
6895 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6896 lt_cv_file_magic_cmd='$OBJDUMP -f'
6899 darwin* | rhapsody*)
6900 lt_cv_deplibs_check_method=pass_all
6903 freebsd* | dragonfly*)
6904 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
6905 case $host_cpu in
6906 i*86 )
6907 # Not sure whether the presence of OpenBSD here was a mistake.
6908 # Let's accept both of them until this is cleared up.
6909 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6910 lt_cv_file_magic_cmd=/usr/bin/file
6911 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6913 esac
6914 else
6915 lt_cv_deplibs_check_method=pass_all
6919 gnu*)
6920 lt_cv_deplibs_check_method=pass_all
6923 hpux10.20* | hpux11*)
6924 lt_cv_file_magic_cmd=/usr/bin/file
6925 case $host_cpu in
6926 ia64*)
6927 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6928 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6930 hppa*64*)
6931 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]'
6932 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6935 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
6936 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6938 esac
6941 interix3*)
6942 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6943 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6946 irix5* | irix6* | nonstopux*)
6947 case $LD in
6948 *-32|*"-32 ") libmagic=32-bit;;
6949 *-n32|*"-n32 ") libmagic=N32;;
6950 *-64|*"-64 ") libmagic=64-bit;;
6951 *) libmagic=never-match;;
6952 esac
6953 lt_cv_deplibs_check_method=pass_all
6956 # This must be Linux ELF.
6957 linux* | k*bsd*-gnu)
6958 lt_cv_deplibs_check_method=pass_all
6961 netbsd* | netbsdelf*-gnu)
6962 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
6963 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6964 else
6965 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6969 newos6*)
6970 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6971 lt_cv_file_magic_cmd=/usr/bin/file
6972 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6975 nto-qnx*)
6976 lt_cv_deplibs_check_method=unknown
6979 openbsd*)
6980 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6981 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6982 else
6983 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6987 osf3* | osf4* | osf5*)
6988 lt_cv_deplibs_check_method=pass_all
6991 solaris*)
6992 lt_cv_deplibs_check_method=pass_all
6995 sysv4 | sysv4.3*)
6996 case $host_vendor in
6997 motorola)
6998 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]'
6999 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
7001 ncr)
7002 lt_cv_deplibs_check_method=pass_all
7004 sequent)
7005 lt_cv_file_magic_cmd='/bin/file'
7006 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
7008 sni)
7009 lt_cv_file_magic_cmd='/bin/file'
7010 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
7011 lt_cv_file_magic_test_file=/lib/libc.so
7013 siemens)
7014 lt_cv_deplibs_check_method=pass_all
7017 lt_cv_deplibs_check_method=pass_all
7019 esac
7022 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
7023 lt_cv_deplibs_check_method=pass_all
7025 esac
7028 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
7029 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
7030 file_magic_cmd=$lt_cv_file_magic_cmd
7031 deplibs_check_method=$lt_cv_deplibs_check_method
7032 test -z "$deplibs_check_method" && deplibs_check_method=unknown
7037 # If no C compiler was specified, use CC.
7038 LTCC=${LTCC-"$CC"}
7040 # If no C compiler flags were specified, use CFLAGS.
7041 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7043 # Allow CC to be a program name with arguments.
7044 compiler=$CC
7046 # Check whether --enable-libtool-lock was given.
7047 if test "${enable_libtool_lock+set}" = set; then
7048 enableval=$enable_libtool_lock;
7051 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7053 # Some flags need to be propagated to the compiler or linker for good
7054 # libtool support.
7055 case $host in
7056 ia64-*-hpux*)
7057 # Find out which ABI we are using.
7058 echo 'int i;' > conftest.$ac_ext
7059 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7060 (eval $ac_compile) 2>&5
7061 ac_status=$?
7062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7063 (exit $ac_status); }; then
7064 case `/usr/bin/file conftest.$ac_objext` in
7065 *ELF-32*)
7066 HPUX_IA64_MODE="32"
7068 *ELF-64*)
7069 HPUX_IA64_MODE="64"
7071 esac
7073 rm -rf conftest*
7075 *-*-irix6*)
7076 # Find out which ABI we are using.
7077 echo '#line 7077 "configure"' > conftest.$ac_ext
7078 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7079 (eval $ac_compile) 2>&5
7080 ac_status=$?
7081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7082 (exit $ac_status); }; then
7083 if test "$lt_cv_prog_gnu_ld" = yes; then
7084 case `/usr/bin/file conftest.$ac_objext` in
7085 *32-bit*)
7086 LD="${LD-ld} -melf32bsmip"
7088 *N32*)
7089 LD="${LD-ld} -melf32bmipn32"
7091 *64-bit*)
7092 LD="${LD-ld} -melf64bmip"
7094 esac
7095 else
7096 case `/usr/bin/file conftest.$ac_objext` in
7097 *32-bit*)
7098 LD="${LD-ld} -32"
7100 *N32*)
7101 LD="${LD-ld} -n32"
7103 *64-bit*)
7104 LD="${LD-ld} -64"
7106 esac
7109 rm -rf conftest*
7112 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
7113 # Find out which ABI we are using.
7114 echo 'int i;' > conftest.$ac_ext
7115 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7116 (eval $ac_compile) 2>&5
7117 ac_status=$?
7118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7119 (exit $ac_status); }; then
7120 case `/usr/bin/file conftest.o` in
7121 *32-bit*)
7122 case $host in
7123 x86_64-*linux*)
7124 LD="${LD-ld} -m elf_i386"
7126 ppc64-*linux*|powerpc64-*linux*)
7127 LD="${LD-ld} -m elf32ppclinux"
7129 s390x-*linux*)
7130 LD="${LD-ld} -m elf_s390"
7132 sparc64-*linux*)
7133 LD="${LD-ld} -m elf32_sparc"
7135 esac
7137 *64-bit*)
7138 case $host in
7139 x86_64-*linux*)
7140 LD="${LD-ld} -m elf_x86_64"
7142 ppc*-*linux*|powerpc*-*linux*)
7143 LD="${LD-ld} -m elf64ppc"
7145 s390*-*linux*)
7146 LD="${LD-ld} -m elf64_s390"
7148 sparc*-*linux*)
7149 LD="${LD-ld} -m elf64_sparc"
7151 esac
7153 esac
7155 rm -rf conftest*
7158 *-*-sco3.2v5*)
7159 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7160 SAVE_CFLAGS="$CFLAGS"
7161 CFLAGS="$CFLAGS -belf"
7162 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
7163 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
7164 if test "${lt_cv_cc_needs_belf+set}" = set; then
7165 echo $ECHO_N "(cached) $ECHO_C" >&6
7166 else
7167 ac_ext=c
7168 ac_cpp='$CPP $CPPFLAGS'
7169 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7170 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7171 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7173 cat >conftest.$ac_ext <<_ACEOF
7174 /* confdefs.h. */
7175 _ACEOF
7176 cat confdefs.h >>conftest.$ac_ext
7177 cat >>conftest.$ac_ext <<_ACEOF
7178 /* end confdefs.h. */
7181 main ()
7185 return 0;
7187 _ACEOF
7188 rm -f conftest.$ac_objext conftest$ac_exeext
7189 if { (ac_try="$ac_link"
7190 case "(($ac_try" in
7191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7192 *) ac_try_echo=$ac_try;;
7193 esac
7194 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7195 (eval "$ac_link") 2>conftest.er1
7196 ac_status=$?
7197 grep -v '^ *+' conftest.er1 >conftest.err
7198 rm -f conftest.er1
7199 cat conftest.err >&5
7200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7201 (exit $ac_status); } && {
7202 test -z "$ac_c_werror_flag" ||
7203 test ! -s conftest.err
7204 } && test -s conftest$ac_exeext &&
7205 $as_test_x conftest$ac_exeext; then
7206 lt_cv_cc_needs_belf=yes
7207 else
7208 echo "$as_me: failed program was:" >&5
7209 sed 's/^/| /' conftest.$ac_ext >&5
7211 lt_cv_cc_needs_belf=no
7214 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7215 conftest$ac_exeext conftest.$ac_ext
7216 ac_ext=c
7217 ac_cpp='$CPP $CPPFLAGS'
7218 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7219 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7220 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7223 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
7224 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
7225 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7226 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7227 CFLAGS="$SAVE_CFLAGS"
7230 sparc*-*solaris*)
7231 # Find out which ABI we are using.
7232 echo 'int i;' > conftest.$ac_ext
7233 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7234 (eval $ac_compile) 2>&5
7235 ac_status=$?
7236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7237 (exit $ac_status); }; then
7238 case `/usr/bin/file conftest.o` in
7239 *64-bit*)
7240 case $lt_cv_prog_gnu_ld in
7241 yes*) LD="${LD-ld} -m elf64_sparc" ;;
7242 *) LD="${LD-ld} -64" ;;
7243 esac
7245 esac
7247 rm -rf conftest*
7251 esac
7253 need_locks="$enable_libtool_lock"
7256 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7266 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7267 inttypes.h stdint.h unistd.h
7269 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7270 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7271 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7272 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7273 echo $ECHO_N "(cached) $ECHO_C" >&6
7274 else
7275 cat >conftest.$ac_ext <<_ACEOF
7276 /* confdefs.h. */
7277 _ACEOF
7278 cat confdefs.h >>conftest.$ac_ext
7279 cat >>conftest.$ac_ext <<_ACEOF
7280 /* end confdefs.h. */
7281 $ac_includes_default
7283 #include <$ac_header>
7284 _ACEOF
7285 rm -f conftest.$ac_objext
7286 if { (ac_try="$ac_compile"
7287 case "(($ac_try" in
7288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7289 *) ac_try_echo=$ac_try;;
7290 esac
7291 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7292 (eval "$ac_compile") 2>conftest.er1
7293 ac_status=$?
7294 grep -v '^ *+' conftest.er1 >conftest.err
7295 rm -f conftest.er1
7296 cat conftest.err >&5
7297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7298 (exit $ac_status); } && {
7299 test -z "$ac_c_werror_flag" ||
7300 test ! -s conftest.err
7301 } && test -s conftest.$ac_objext; then
7302 eval "$as_ac_Header=yes"
7303 else
7304 echo "$as_me: failed program was:" >&5
7305 sed 's/^/| /' conftest.$ac_ext >&5
7307 eval "$as_ac_Header=no"
7310 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7312 ac_res=`eval echo '${'$as_ac_Header'}'`
7313 { echo "$as_me:$LINENO: result: $ac_res" >&5
7314 echo "${ECHO_T}$ac_res" >&6; }
7315 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7316 cat >>confdefs.h <<_ACEOF
7317 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7318 _ACEOF
7322 done
7326 for ac_header in dlfcn.h
7328 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7329 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7330 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7331 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7332 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7333 echo $ECHO_N "(cached) $ECHO_C" >&6
7335 ac_res=`eval echo '${'$as_ac_Header'}'`
7336 { echo "$as_me:$LINENO: result: $ac_res" >&5
7337 echo "${ECHO_T}$ac_res" >&6; }
7338 else
7339 # Is the header compilable?
7340 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
7341 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
7342 cat >conftest.$ac_ext <<_ACEOF
7343 /* confdefs.h. */
7344 _ACEOF
7345 cat confdefs.h >>conftest.$ac_ext
7346 cat >>conftest.$ac_ext <<_ACEOF
7347 /* end confdefs.h. */
7348 $ac_includes_default
7349 #include <$ac_header>
7350 _ACEOF
7351 rm -f conftest.$ac_objext
7352 if { (ac_try="$ac_compile"
7353 case "(($ac_try" in
7354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7355 *) ac_try_echo=$ac_try;;
7356 esac
7357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7358 (eval "$ac_compile") 2>conftest.er1
7359 ac_status=$?
7360 grep -v '^ *+' conftest.er1 >conftest.err
7361 rm -f conftest.er1
7362 cat conftest.err >&5
7363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7364 (exit $ac_status); } && {
7365 test -z "$ac_c_werror_flag" ||
7366 test ! -s conftest.err
7367 } && test -s conftest.$ac_objext; then
7368 ac_header_compiler=yes
7369 else
7370 echo "$as_me: failed program was:" >&5
7371 sed 's/^/| /' conftest.$ac_ext >&5
7373 ac_header_compiler=no
7376 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7377 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7378 echo "${ECHO_T}$ac_header_compiler" >&6; }
7380 # Is the header present?
7381 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
7382 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
7383 cat >conftest.$ac_ext <<_ACEOF
7384 /* confdefs.h. */
7385 _ACEOF
7386 cat confdefs.h >>conftest.$ac_ext
7387 cat >>conftest.$ac_ext <<_ACEOF
7388 /* end confdefs.h. */
7389 #include <$ac_header>
7390 _ACEOF
7391 if { (ac_try="$ac_cpp conftest.$ac_ext"
7392 case "(($ac_try" in
7393 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7394 *) ac_try_echo=$ac_try;;
7395 esac
7396 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7397 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7398 ac_status=$?
7399 grep -v '^ *+' conftest.er1 >conftest.err
7400 rm -f conftest.er1
7401 cat conftest.err >&5
7402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7403 (exit $ac_status); } >/dev/null && {
7404 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7405 test ! -s conftest.err
7406 }; then
7407 ac_header_preproc=yes
7408 else
7409 echo "$as_me: failed program was:" >&5
7410 sed 's/^/| /' conftest.$ac_ext >&5
7412 ac_header_preproc=no
7415 rm -f conftest.err conftest.$ac_ext
7416 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7417 echo "${ECHO_T}$ac_header_preproc" >&6; }
7419 # So? What about this header?
7420 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7421 yes:no: )
7422 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7423 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7424 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7425 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7426 ac_header_preproc=yes
7428 no:yes:* )
7429 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7430 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7431 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7432 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7433 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7434 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7435 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7436 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7437 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7438 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7439 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7440 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7443 esac
7444 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7445 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7446 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7447 echo $ECHO_N "(cached) $ECHO_C" >&6
7448 else
7449 eval "$as_ac_Header=\$ac_header_preproc"
7451 ac_res=`eval echo '${'$as_ac_Header'}'`
7452 { echo "$as_me:$LINENO: result: $ac_res" >&5
7453 echo "${ECHO_T}$ac_res" >&6; }
7456 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7457 cat >>confdefs.h <<_ACEOF
7458 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7459 _ACEOF
7463 done
7467 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
7468 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
7469 (test "X$CXX" != "Xg++"))) ; then
7470 ac_ext=cpp
7471 ac_cpp='$CXXCPP $CPPFLAGS'
7472 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7473 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7474 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7475 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
7476 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
7477 if test -z "$CXXCPP"; then
7478 if test "${ac_cv_prog_CXXCPP+set}" = set; then
7479 echo $ECHO_N "(cached) $ECHO_C" >&6
7480 else
7481 # Double quotes because CXXCPP needs to be expanded
7482 for CXXCPP in "$CXX -E" "/lib/cpp"
7484 ac_preproc_ok=false
7485 for ac_cxx_preproc_warn_flag in '' yes
7487 # Use a header file that comes with gcc, so configuring glibc
7488 # with a fresh cross-compiler works.
7489 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7490 # <limits.h> exists even on freestanding compilers.
7491 # On the NeXT, cc -E runs the code through the compiler's parser,
7492 # not just through cpp. "Syntax error" is here to catch this case.
7493 cat >conftest.$ac_ext <<_ACEOF
7494 /* confdefs.h. */
7495 _ACEOF
7496 cat confdefs.h >>conftest.$ac_ext
7497 cat >>conftest.$ac_ext <<_ACEOF
7498 /* end confdefs.h. */
7499 #ifdef __STDC__
7500 # include <limits.h>
7501 #else
7502 # include <assert.h>
7503 #endif
7504 Syntax error
7505 _ACEOF
7506 if { (ac_try="$ac_cpp conftest.$ac_ext"
7507 case "(($ac_try" in
7508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7509 *) ac_try_echo=$ac_try;;
7510 esac
7511 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7512 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7513 ac_status=$?
7514 grep -v '^ *+' conftest.er1 >conftest.err
7515 rm -f conftest.er1
7516 cat conftest.err >&5
7517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7518 (exit $ac_status); } >/dev/null && {
7519 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
7520 test ! -s conftest.err
7521 }; then
7523 else
7524 echo "$as_me: failed program was:" >&5
7525 sed 's/^/| /' conftest.$ac_ext >&5
7527 # Broken: fails on valid input.
7528 continue
7531 rm -f conftest.err conftest.$ac_ext
7533 # OK, works on sane cases. Now check whether nonexistent headers
7534 # can be detected and how.
7535 cat >conftest.$ac_ext <<_ACEOF
7536 /* confdefs.h. */
7537 _ACEOF
7538 cat confdefs.h >>conftest.$ac_ext
7539 cat >>conftest.$ac_ext <<_ACEOF
7540 /* end confdefs.h. */
7541 #include <ac_nonexistent.h>
7542 _ACEOF
7543 if { (ac_try="$ac_cpp conftest.$ac_ext"
7544 case "(($ac_try" in
7545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7546 *) ac_try_echo=$ac_try;;
7547 esac
7548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7549 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7550 ac_status=$?
7551 grep -v '^ *+' conftest.er1 >conftest.err
7552 rm -f conftest.er1
7553 cat conftest.err >&5
7554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7555 (exit $ac_status); } >/dev/null && {
7556 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
7557 test ! -s conftest.err
7558 }; then
7559 # Broken: success on invalid input.
7560 continue
7561 else
7562 echo "$as_me: failed program was:" >&5
7563 sed 's/^/| /' conftest.$ac_ext >&5
7565 # Passes both tests.
7566 ac_preproc_ok=:
7567 break
7570 rm -f conftest.err conftest.$ac_ext
7572 done
7573 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7574 rm -f conftest.err conftest.$ac_ext
7575 if $ac_preproc_ok; then
7576 break
7579 done
7580 ac_cv_prog_CXXCPP=$CXXCPP
7583 CXXCPP=$ac_cv_prog_CXXCPP
7584 else
7585 ac_cv_prog_CXXCPP=$CXXCPP
7587 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
7588 echo "${ECHO_T}$CXXCPP" >&6; }
7589 ac_preproc_ok=false
7590 for ac_cxx_preproc_warn_flag in '' yes
7592 # Use a header file that comes with gcc, so configuring glibc
7593 # with a fresh cross-compiler works.
7594 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7595 # <limits.h> exists even on freestanding compilers.
7596 # On the NeXT, cc -E runs the code through the compiler's parser,
7597 # not just through cpp. "Syntax error" is here to catch this case.
7598 cat >conftest.$ac_ext <<_ACEOF
7599 /* confdefs.h. */
7600 _ACEOF
7601 cat confdefs.h >>conftest.$ac_ext
7602 cat >>conftest.$ac_ext <<_ACEOF
7603 /* end confdefs.h. */
7604 #ifdef __STDC__
7605 # include <limits.h>
7606 #else
7607 # include <assert.h>
7608 #endif
7609 Syntax error
7610 _ACEOF
7611 if { (ac_try="$ac_cpp conftest.$ac_ext"
7612 case "(($ac_try" in
7613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7614 *) ac_try_echo=$ac_try;;
7615 esac
7616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7617 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7618 ac_status=$?
7619 grep -v '^ *+' conftest.er1 >conftest.err
7620 rm -f conftest.er1
7621 cat conftest.err >&5
7622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7623 (exit $ac_status); } >/dev/null && {
7624 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
7625 test ! -s conftest.err
7626 }; then
7628 else
7629 echo "$as_me: failed program was:" >&5
7630 sed 's/^/| /' conftest.$ac_ext >&5
7632 # Broken: fails on valid input.
7633 continue
7636 rm -f conftest.err conftest.$ac_ext
7638 # OK, works on sane cases. Now check whether nonexistent headers
7639 # can be detected and how.
7640 cat >conftest.$ac_ext <<_ACEOF
7641 /* confdefs.h. */
7642 _ACEOF
7643 cat confdefs.h >>conftest.$ac_ext
7644 cat >>conftest.$ac_ext <<_ACEOF
7645 /* end confdefs.h. */
7646 #include <ac_nonexistent.h>
7647 _ACEOF
7648 if { (ac_try="$ac_cpp conftest.$ac_ext"
7649 case "(($ac_try" in
7650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7651 *) ac_try_echo=$ac_try;;
7652 esac
7653 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7654 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7655 ac_status=$?
7656 grep -v '^ *+' conftest.er1 >conftest.err
7657 rm -f conftest.er1
7658 cat conftest.err >&5
7659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7660 (exit $ac_status); } >/dev/null && {
7661 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
7662 test ! -s conftest.err
7663 }; then
7664 # Broken: success on invalid input.
7665 continue
7666 else
7667 echo "$as_me: failed program was:" >&5
7668 sed 's/^/| /' conftest.$ac_ext >&5
7670 # Passes both tests.
7671 ac_preproc_ok=:
7672 break
7675 rm -f conftest.err conftest.$ac_ext
7677 done
7678 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7679 rm -f conftest.err conftest.$ac_ext
7680 if $ac_preproc_ok; then
7682 else
7683 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
7684 See \`config.log' for more details." >&5
7685 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
7686 See \`config.log' for more details." >&2;}
7687 { (exit 1); exit 1; }; }
7690 ac_ext=cpp
7691 ac_cpp='$CXXCPP $CPPFLAGS'
7692 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7693 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7694 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7699 ac_ext=f
7700 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
7701 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7702 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
7703 if test -n "$ac_tool_prefix"; then
7704 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
7706 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7707 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7708 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7709 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7710 if test "${ac_cv_prog_F77+set}" = set; then
7711 echo $ECHO_N "(cached) $ECHO_C" >&6
7712 else
7713 if test -n "$F77"; then
7714 ac_cv_prog_F77="$F77" # Let the user override the test.
7715 else
7716 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7717 for as_dir in $PATH
7719 IFS=$as_save_IFS
7720 test -z "$as_dir" && as_dir=.
7721 for ac_exec_ext in '' $ac_executable_extensions; do
7722 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7723 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
7724 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7725 break 2
7727 done
7728 done
7729 IFS=$as_save_IFS
7733 F77=$ac_cv_prog_F77
7734 if test -n "$F77"; then
7735 { echo "$as_me:$LINENO: result: $F77" >&5
7736 echo "${ECHO_T}$F77" >&6; }
7737 else
7738 { echo "$as_me:$LINENO: result: no" >&5
7739 echo "${ECHO_T}no" >&6; }
7743 test -n "$F77" && break
7744 done
7746 if test -z "$F77"; then
7747 ac_ct_F77=$F77
7748 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
7750 # Extract the first word of "$ac_prog", so it can be a program name with args.
7751 set dummy $ac_prog; ac_word=$2
7752 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7753 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7754 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
7755 echo $ECHO_N "(cached) $ECHO_C" >&6
7756 else
7757 if test -n "$ac_ct_F77"; then
7758 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
7759 else
7760 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7761 for as_dir in $PATH
7763 IFS=$as_save_IFS
7764 test -z "$as_dir" && as_dir=.
7765 for ac_exec_ext in '' $ac_executable_extensions; do
7766 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7767 ac_cv_prog_ac_ct_F77="$ac_prog"
7768 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7769 break 2
7771 done
7772 done
7773 IFS=$as_save_IFS
7777 ac_ct_F77=$ac_cv_prog_ac_ct_F77
7778 if test -n "$ac_ct_F77"; then
7779 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
7780 echo "${ECHO_T}$ac_ct_F77" >&6; }
7781 else
7782 { echo "$as_me:$LINENO: result: no" >&5
7783 echo "${ECHO_T}no" >&6; }
7787 test -n "$ac_ct_F77" && break
7788 done
7790 if test "x$ac_ct_F77" = x; then
7791 F77=""
7792 else
7793 case $cross_compiling:$ac_tool_warned in
7794 yes:)
7795 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7796 whose name does not start with the host triplet. If you think this
7797 configuration is useful to you, please write to autoconf@gnu.org." >&5
7798 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7799 whose name does not start with the host triplet. If you think this
7800 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7801 ac_tool_warned=yes ;;
7802 esac
7803 F77=$ac_ct_F77
7808 # Provide some information about the compiler.
7809 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
7810 ac_compiler=`set X $ac_compile; echo $2`
7811 { (ac_try="$ac_compiler --version >&5"
7812 case "(($ac_try" in
7813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7814 *) ac_try_echo=$ac_try;;
7815 esac
7816 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7817 (eval "$ac_compiler --version >&5") 2>&5
7818 ac_status=$?
7819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7820 (exit $ac_status); }
7821 { (ac_try="$ac_compiler -v >&5"
7822 case "(($ac_try" in
7823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7824 *) ac_try_echo=$ac_try;;
7825 esac
7826 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7827 (eval "$ac_compiler -v >&5") 2>&5
7828 ac_status=$?
7829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7830 (exit $ac_status); }
7831 { (ac_try="$ac_compiler -V >&5"
7832 case "(($ac_try" in
7833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7834 *) ac_try_echo=$ac_try;;
7835 esac
7836 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7837 (eval "$ac_compiler -V >&5") 2>&5
7838 ac_status=$?
7839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7840 (exit $ac_status); }
7841 rm -f a.out
7843 # If we don't use `.F' as extension, the preprocessor is not run on the
7844 # input file. (Note that this only needs to work for GNU compilers.)
7845 ac_save_ext=$ac_ext
7846 ac_ext=F
7847 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
7848 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
7849 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
7850 echo $ECHO_N "(cached) $ECHO_C" >&6
7851 else
7852 cat >conftest.$ac_ext <<_ACEOF
7853 program main
7854 #ifndef __GNUC__
7855 choke me
7856 #endif
7859 _ACEOF
7860 rm -f conftest.$ac_objext
7861 if { (ac_try="$ac_compile"
7862 case "(($ac_try" in
7863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7864 *) ac_try_echo=$ac_try;;
7865 esac
7866 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7867 (eval "$ac_compile") 2>conftest.er1
7868 ac_status=$?
7869 grep -v '^ *+' conftest.er1 >conftest.err
7870 rm -f conftest.er1
7871 cat conftest.err >&5
7872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7873 (exit $ac_status); } && {
7874 test -z "$ac_f77_werror_flag" ||
7875 test ! -s conftest.err
7876 } && test -s conftest.$ac_objext; then
7877 ac_compiler_gnu=yes
7878 else
7879 echo "$as_me: failed program was:" >&5
7880 sed 's/^/| /' conftest.$ac_ext >&5
7882 ac_compiler_gnu=no
7885 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7886 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
7889 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
7890 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
7891 ac_ext=$ac_save_ext
7892 ac_test_FFLAGS=${FFLAGS+set}
7893 ac_save_FFLAGS=$FFLAGS
7894 FFLAGS=
7895 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
7896 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
7897 if test "${ac_cv_prog_f77_g+set}" = set; then
7898 echo $ECHO_N "(cached) $ECHO_C" >&6
7899 else
7900 FFLAGS=-g
7901 cat >conftest.$ac_ext <<_ACEOF
7902 program main
7905 _ACEOF
7906 rm -f conftest.$ac_objext
7907 if { (ac_try="$ac_compile"
7908 case "(($ac_try" in
7909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7910 *) ac_try_echo=$ac_try;;
7911 esac
7912 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7913 (eval "$ac_compile") 2>conftest.er1
7914 ac_status=$?
7915 grep -v '^ *+' conftest.er1 >conftest.err
7916 rm -f conftest.er1
7917 cat conftest.err >&5
7918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7919 (exit $ac_status); } && {
7920 test -z "$ac_f77_werror_flag" ||
7921 test ! -s conftest.err
7922 } && test -s conftest.$ac_objext; then
7923 ac_cv_prog_f77_g=yes
7924 else
7925 echo "$as_me: failed program was:" >&5
7926 sed 's/^/| /' conftest.$ac_ext >&5
7928 ac_cv_prog_f77_g=no
7931 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7934 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
7935 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
7936 if test "$ac_test_FFLAGS" = set; then
7937 FFLAGS=$ac_save_FFLAGS
7938 elif test $ac_cv_prog_f77_g = yes; then
7939 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
7940 FFLAGS="-g -O2"
7941 else
7942 FFLAGS="-g"
7944 else
7945 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
7946 FFLAGS="-O2"
7947 else
7948 FFLAGS=
7952 G77=`test $ac_compiler_gnu = yes && echo yes`
7953 ac_ext=c
7954 ac_cpp='$CPP $CPPFLAGS'
7955 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7956 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7957 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7961 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
7963 # find the maximum length of command line arguments
7964 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
7965 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
7966 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
7967 echo $ECHO_N "(cached) $ECHO_C" >&6
7968 else
7970 teststring="ABCD"
7972 case $build_os in
7973 msdosdjgpp*)
7974 # On DJGPP, this test can blow up pretty badly due to problems in libc
7975 # (any single argument exceeding 2000 bytes causes a buffer overrun
7976 # during glob expansion). Even if it were fixed, the result of this
7977 # check would be larger than it should be.
7978 lt_cv_sys_max_cmd_len=12288; # 12K is about right
7981 gnu*)
7982 # Under GNU Hurd, this test is not required because there is
7983 # no limit to the length of command line arguments.
7984 # Libtool will interpret -1 as no limit whatsoever
7985 lt_cv_sys_max_cmd_len=-1;
7988 cygwin* | mingw*)
7989 # On Win9x/ME, this test blows up -- it succeeds, but takes
7990 # about 5 minutes as the teststring grows exponentially.
7991 # Worse, since 9x/ME are not pre-emptively multitasking,
7992 # you end up with a "frozen" computer, even though with patience
7993 # the test eventually succeeds (with a max line length of 256k).
7994 # Instead, let's just punt: use the minimum linelength reported by
7995 # all of the supported platforms: 8192 (on NT/2K/XP).
7996 lt_cv_sys_max_cmd_len=8192;
7999 amigaos*)
8000 # On AmigaOS with pdksh, this test takes hours, literally.
8001 # So we just punt and use a minimum line length of 8192.
8002 lt_cv_sys_max_cmd_len=8192;
8005 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
8006 # This has been around since 386BSD, at least. Likely further.
8007 if test -x /sbin/sysctl; then
8008 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
8009 elif test -x /usr/sbin/sysctl; then
8010 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
8011 else
8012 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
8014 # And add a safety zone
8015 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
8016 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
8019 interix*)
8020 # We know the value 262144 and hardcode it with a safety zone (like BSD)
8021 lt_cv_sys_max_cmd_len=196608
8024 osf*)
8025 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
8026 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
8027 # nice to cause kernel panics so lets avoid the loop below.
8028 # First set a reasonable default.
8029 lt_cv_sys_max_cmd_len=16384
8031 if test -x /sbin/sysconfig; then
8032 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
8033 *1*) lt_cv_sys_max_cmd_len=-1 ;;
8034 esac
8037 sco3.2v5*)
8038 lt_cv_sys_max_cmd_len=102400
8040 sysv5* | sco5v6* | sysv4.2uw2*)
8041 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
8042 if test -n "$kargmax"; then
8043 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
8044 else
8045 lt_cv_sys_max_cmd_len=32768
8049 # If test is not a shell built-in, we'll probably end up computing a
8050 # maximum length that is only half of the actual maximum length, but
8051 # we can't tell.
8052 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
8053 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
8054 = "XX$teststring") >/dev/null 2>&1 &&
8055 new_result=`expr "X$teststring" : ".*" 2>&1` &&
8056 lt_cv_sys_max_cmd_len=$new_result &&
8057 test $i != 17 # 1/2 MB should be enough
8059 i=`expr $i + 1`
8060 teststring=$teststring$teststring
8061 done
8062 teststring=
8063 # Add a significant safety factor because C++ compilers can tack on massive
8064 # amounts of additional arguments before passing them to the linker.
8065 # It appears as though 1/2 is a usable value.
8066 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
8068 esac
8072 if test -n $lt_cv_sys_max_cmd_len ; then
8073 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
8074 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
8075 else
8076 { echo "$as_me:$LINENO: result: none" >&5
8077 echo "${ECHO_T}none" >&6; }
8083 # Check for command to grab the raw symbol name followed by C symbol from nm.
8084 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
8085 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
8086 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
8087 echo $ECHO_N "(cached) $ECHO_C" >&6
8088 else
8090 # These are sane defaults that work on at least a few old systems.
8091 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
8093 # Character class describing NM global symbol codes.
8094 symcode='[BCDEGRST]'
8096 # Regexp to match symbols that can be accessed directly from C.
8097 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
8099 # Transform an extracted symbol line into a proper C declaration
8100 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
8102 # Transform an extracted symbol line into symbol name and symbol address
8103 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'"
8105 # Define system-specific variables.
8106 case $host_os in
8107 aix*)
8108 symcode='[BCDT]'
8110 cygwin* | mingw* | pw32*)
8111 symcode='[ABCDGISTW]'
8113 hpux*) # Its linker distinguishes data from code symbols
8114 if test "$host_cpu" = ia64; then
8115 symcode='[ABCDEGRST]'
8117 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
8118 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'"
8120 linux* | k*bsd*-gnu)
8121 if test "$host_cpu" = ia64; then
8122 symcode='[ABCDGIRSTW]'
8123 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
8124 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'"
8127 irix* | nonstopux*)
8128 symcode='[BCDEGRST]'
8130 osf*)
8131 symcode='[BCDEGQRST]'
8133 solaris*)
8134 symcode='[BDRT]'
8136 sco3.2v5*)
8137 symcode='[DT]'
8139 sysv4.2uw2*)
8140 symcode='[DT]'
8142 sysv5* | sco5v6* | unixware* | OpenUNIX*)
8143 symcode='[ABDT]'
8145 sysv4)
8146 symcode='[DFNSTU]'
8148 esac
8150 # Handle CRLF in mingw tool chain
8151 opt_cr=
8152 case $build_os in
8153 mingw*)
8154 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
8156 esac
8158 # If we're using GNU nm, then use its standard symbol codes.
8159 case `$NM -V 2>&1` in
8160 *GNU* | *'with BFD'*)
8161 symcode='[ABCDGIRSTW]' ;;
8162 esac
8164 # Try without a prefix undercore, then with it.
8165 for ac_symprfx in "" "_"; do
8167 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
8168 symxfrm="\\1 $ac_symprfx\\2 \\2"
8170 # Write the raw and C identifiers.
8171 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
8173 # Check to see that the pipe works correctly.
8174 pipe_works=no
8176 rm -f conftest*
8177 cat > conftest.$ac_ext <<EOF
8178 #ifdef __cplusplus
8179 extern "C" {
8180 #endif
8181 char nm_test_var;
8182 void nm_test_func(){}
8183 #ifdef __cplusplus
8185 #endif
8186 int main(){nm_test_var='a';nm_test_func();return(0);}
8189 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8190 (eval $ac_compile) 2>&5
8191 ac_status=$?
8192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8193 (exit $ac_status); }; then
8194 # Now try to grab the symbols.
8195 nlist=conftest.nm
8196 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
8197 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
8198 ac_status=$?
8199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8200 (exit $ac_status); } && test -s "$nlist"; then
8201 # Try sorting and uniquifying the output.
8202 if sort "$nlist" | uniq > "$nlist"T; then
8203 mv -f "$nlist"T "$nlist"
8204 else
8205 rm -f "$nlist"T
8208 # Make sure that we snagged all the symbols we need.
8209 if grep ' nm_test_var$' "$nlist" >/dev/null; then
8210 if grep ' nm_test_func$' "$nlist" >/dev/null; then
8211 cat <<EOF > conftest.$ac_ext
8212 #ifdef __cplusplus
8213 extern "C" {
8214 #endif
8217 # Now generate the symbol file.
8218 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
8220 cat <<EOF >> conftest.$ac_ext
8221 #if defined (__STDC__) && __STDC__
8222 # define lt_ptr_t void *
8223 #else
8224 # define lt_ptr_t char *
8225 # define const
8226 #endif
8228 /* The mapping between symbol names and symbols. */
8229 const struct {
8230 const char *name;
8231 lt_ptr_t address;
8233 lt_preloaded_symbols[] =
8236 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
8237 cat <<\EOF >> conftest.$ac_ext
8238 {0, (lt_ptr_t) 0}
8241 #ifdef __cplusplus
8243 #endif
8245 # Now try linking the two files.
8246 mv conftest.$ac_objext conftstm.$ac_objext
8247 lt_save_LIBS="$LIBS"
8248 lt_save_CFLAGS="$CFLAGS"
8249 LIBS="conftstm.$ac_objext"
8250 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
8251 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8252 (eval $ac_link) 2>&5
8253 ac_status=$?
8254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8255 (exit $ac_status); } && test -s conftest${ac_exeext}; then
8256 pipe_works=yes
8258 LIBS="$lt_save_LIBS"
8259 CFLAGS="$lt_save_CFLAGS"
8260 else
8261 echo "cannot find nm_test_func in $nlist" >&5
8263 else
8264 echo "cannot find nm_test_var in $nlist" >&5
8266 else
8267 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
8269 else
8270 echo "$progname: failed program was:" >&5
8271 cat conftest.$ac_ext >&5
8273 rm -f conftest* conftst*
8275 # Do not use the global_symbol_pipe unless it works.
8276 if test "$pipe_works" = yes; then
8277 break
8278 else
8279 lt_cv_sys_global_symbol_pipe=
8281 done
8285 if test -z "$lt_cv_sys_global_symbol_pipe"; then
8286 lt_cv_sys_global_symbol_to_cdecl=
8288 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
8289 { echo "$as_me:$LINENO: result: failed" >&5
8290 echo "${ECHO_T}failed" >&6; }
8291 else
8292 { echo "$as_me:$LINENO: result: ok" >&5
8293 echo "${ECHO_T}ok" >&6; }
8296 { echo "$as_me:$LINENO: checking for objdir" >&5
8297 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
8298 if test "${lt_cv_objdir+set}" = set; then
8299 echo $ECHO_N "(cached) $ECHO_C" >&6
8300 else
8301 rm -f .libs 2>/dev/null
8302 mkdir .libs 2>/dev/null
8303 if test -d .libs; then
8304 lt_cv_objdir=.libs
8305 else
8306 # MS-DOS does not allow filenames that begin with a dot.
8307 lt_cv_objdir=_libs
8309 rmdir .libs 2>/dev/null
8311 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
8312 echo "${ECHO_T}$lt_cv_objdir" >&6; }
8313 objdir=$lt_cv_objdir
8319 case $host_os in
8320 aix3*)
8321 # AIX sometimes has problems with the GCC collect2 program. For some
8322 # reason, if we set the COLLECT_NAMES environment variable, the problems
8323 # vanish in a puff of smoke.
8324 if test "X${COLLECT_NAMES+set}" != Xset; then
8325 COLLECT_NAMES=
8326 export COLLECT_NAMES
8329 esac
8331 # Sed substitution that helps us do robust quoting. It backslashifies
8332 # metacharacters that are still active within double-quoted strings.
8333 Xsed='sed -e 1s/^X//'
8334 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
8336 # Same as above, but do not quote variable references.
8337 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
8339 # Sed substitution to delay expansion of an escaped shell variable in a
8340 # double_quote_subst'ed string.
8341 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
8343 # Sed substitution to avoid accidental globbing in evaled expressions
8344 no_glob_subst='s/\*/\\\*/g'
8346 # Constants:
8347 rm="rm -f"
8349 # Global variables:
8350 default_ofile=libtool
8351 can_build_shared=yes
8353 # All known linkers require a `.a' archive for static linking (except MSVC,
8354 # which needs '.lib').
8355 libext=a
8356 ltmain="$ac_aux_dir/ltmain.sh"
8357 ofile="$default_ofile"
8358 with_gnu_ld="$lt_cv_prog_gnu_ld"
8360 if test -n "$ac_tool_prefix"; then
8361 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
8362 set dummy ${ac_tool_prefix}ar; ac_word=$2
8363 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8364 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8365 if test "${ac_cv_prog_AR+set}" = set; then
8366 echo $ECHO_N "(cached) $ECHO_C" >&6
8367 else
8368 if test -n "$AR"; then
8369 ac_cv_prog_AR="$AR" # Let the user override the test.
8370 else
8371 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8372 for as_dir in $PATH
8374 IFS=$as_save_IFS
8375 test -z "$as_dir" && as_dir=.
8376 for ac_exec_ext in '' $ac_executable_extensions; do
8377 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8378 ac_cv_prog_AR="${ac_tool_prefix}ar"
8379 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8380 break 2
8382 done
8383 done
8384 IFS=$as_save_IFS
8388 AR=$ac_cv_prog_AR
8389 if test -n "$AR"; then
8390 { echo "$as_me:$LINENO: result: $AR" >&5
8391 echo "${ECHO_T}$AR" >&6; }
8392 else
8393 { echo "$as_me:$LINENO: result: no" >&5
8394 echo "${ECHO_T}no" >&6; }
8399 if test -z "$ac_cv_prog_AR"; then
8400 ac_ct_AR=$AR
8401 # Extract the first word of "ar", so it can be a program name with args.
8402 set dummy ar; ac_word=$2
8403 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8404 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8405 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
8406 echo $ECHO_N "(cached) $ECHO_C" >&6
8407 else
8408 if test -n "$ac_ct_AR"; then
8409 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
8410 else
8411 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8412 for as_dir in $PATH
8414 IFS=$as_save_IFS
8415 test -z "$as_dir" && as_dir=.
8416 for ac_exec_ext in '' $ac_executable_extensions; do
8417 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8418 ac_cv_prog_ac_ct_AR="ar"
8419 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8420 break 2
8422 done
8423 done
8424 IFS=$as_save_IFS
8428 ac_ct_AR=$ac_cv_prog_ac_ct_AR
8429 if test -n "$ac_ct_AR"; then
8430 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
8431 echo "${ECHO_T}$ac_ct_AR" >&6; }
8432 else
8433 { echo "$as_me:$LINENO: result: no" >&5
8434 echo "${ECHO_T}no" >&6; }
8437 if test "x$ac_ct_AR" = x; then
8438 AR="false"
8439 else
8440 case $cross_compiling:$ac_tool_warned in
8441 yes:)
8442 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
8443 whose name does not start with the host triplet. If you think this
8444 configuration is useful to you, please write to autoconf@gnu.org." >&5
8445 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
8446 whose name does not start with the host triplet. If you think this
8447 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
8448 ac_tool_warned=yes ;;
8449 esac
8450 AR=$ac_ct_AR
8452 else
8453 AR="$ac_cv_prog_AR"
8456 if test -n "$ac_tool_prefix"; then
8457 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8458 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8459 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8460 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8461 if test "${ac_cv_prog_RANLIB+set}" = set; then
8462 echo $ECHO_N "(cached) $ECHO_C" >&6
8463 else
8464 if test -n "$RANLIB"; then
8465 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8466 else
8467 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8468 for as_dir in $PATH
8470 IFS=$as_save_IFS
8471 test -z "$as_dir" && as_dir=.
8472 for ac_exec_ext in '' $ac_executable_extensions; do
8473 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8474 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8475 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8476 break 2
8478 done
8479 done
8480 IFS=$as_save_IFS
8484 RANLIB=$ac_cv_prog_RANLIB
8485 if test -n "$RANLIB"; then
8486 { echo "$as_me:$LINENO: result: $RANLIB" >&5
8487 echo "${ECHO_T}$RANLIB" >&6; }
8488 else
8489 { echo "$as_me:$LINENO: result: no" >&5
8490 echo "${ECHO_T}no" >&6; }
8495 if test -z "$ac_cv_prog_RANLIB"; then
8496 ac_ct_RANLIB=$RANLIB
8497 # Extract the first word of "ranlib", so it can be a program name with args.
8498 set dummy ranlib; ac_word=$2
8499 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8500 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8501 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
8502 echo $ECHO_N "(cached) $ECHO_C" >&6
8503 else
8504 if test -n "$ac_ct_RANLIB"; then
8505 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8506 else
8507 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8508 for as_dir in $PATH
8510 IFS=$as_save_IFS
8511 test -z "$as_dir" && as_dir=.
8512 for ac_exec_ext in '' $ac_executable_extensions; do
8513 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8514 ac_cv_prog_ac_ct_RANLIB="ranlib"
8515 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8516 break 2
8518 done
8519 done
8520 IFS=$as_save_IFS
8524 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8525 if test -n "$ac_ct_RANLIB"; then
8526 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
8527 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
8528 else
8529 { echo "$as_me:$LINENO: result: no" >&5
8530 echo "${ECHO_T}no" >&6; }
8533 if test "x$ac_ct_RANLIB" = x; then
8534 RANLIB=":"
8535 else
8536 case $cross_compiling:$ac_tool_warned in
8537 yes:)
8538 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
8539 whose name does not start with the host triplet. If you think this
8540 configuration is useful to you, please write to autoconf@gnu.org." >&5
8541 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
8542 whose name does not start with the host triplet. If you think this
8543 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
8544 ac_tool_warned=yes ;;
8545 esac
8546 RANLIB=$ac_ct_RANLIB
8548 else
8549 RANLIB="$ac_cv_prog_RANLIB"
8552 if test -n "$ac_tool_prefix"; then
8553 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
8554 set dummy ${ac_tool_prefix}strip; ac_word=$2
8555 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8556 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8557 if test "${ac_cv_prog_STRIP+set}" = set; then
8558 echo $ECHO_N "(cached) $ECHO_C" >&6
8559 else
8560 if test -n "$STRIP"; then
8561 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8562 else
8563 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8564 for as_dir in $PATH
8566 IFS=$as_save_IFS
8567 test -z "$as_dir" && as_dir=.
8568 for ac_exec_ext in '' $ac_executable_extensions; do
8569 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8570 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
8571 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8572 break 2
8574 done
8575 done
8576 IFS=$as_save_IFS
8580 STRIP=$ac_cv_prog_STRIP
8581 if test -n "$STRIP"; then
8582 { echo "$as_me:$LINENO: result: $STRIP" >&5
8583 echo "${ECHO_T}$STRIP" >&6; }
8584 else
8585 { echo "$as_me:$LINENO: result: no" >&5
8586 echo "${ECHO_T}no" >&6; }
8591 if test -z "$ac_cv_prog_STRIP"; then
8592 ac_ct_STRIP=$STRIP
8593 # Extract the first word of "strip", so it can be a program name with args.
8594 set dummy strip; ac_word=$2
8595 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8596 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8597 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
8598 echo $ECHO_N "(cached) $ECHO_C" >&6
8599 else
8600 if test -n "$ac_ct_STRIP"; then
8601 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
8602 else
8603 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8604 for as_dir in $PATH
8606 IFS=$as_save_IFS
8607 test -z "$as_dir" && as_dir=.
8608 for ac_exec_ext in '' $ac_executable_extensions; do
8609 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8610 ac_cv_prog_ac_ct_STRIP="strip"
8611 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8612 break 2
8614 done
8615 done
8616 IFS=$as_save_IFS
8620 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
8621 if test -n "$ac_ct_STRIP"; then
8622 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
8623 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
8624 else
8625 { echo "$as_me:$LINENO: result: no" >&5
8626 echo "${ECHO_T}no" >&6; }
8629 if test "x$ac_ct_STRIP" = x; then
8630 STRIP=":"
8631 else
8632 case $cross_compiling:$ac_tool_warned in
8633 yes:)
8634 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
8635 whose name does not start with the host triplet. If you think this
8636 configuration is useful to you, please write to autoconf@gnu.org." >&5
8637 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
8638 whose name does not start with the host triplet. If you think this
8639 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
8640 ac_tool_warned=yes ;;
8641 esac
8642 STRIP=$ac_ct_STRIP
8644 else
8645 STRIP="$ac_cv_prog_STRIP"
8649 old_CC="$CC"
8650 old_CFLAGS="$CFLAGS"
8652 # Set sane defaults for various variables
8653 test -z "$AR" && AR=ar
8654 test -z "$AR_FLAGS" && AR_FLAGS=cru
8655 test -z "$AS" && AS=as
8656 test -z "$CC" && CC=cc
8657 test -z "$LTCC" && LTCC=$CC
8658 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8659 test -z "$DLLTOOL" && DLLTOOL=dlltool
8660 test -z "$LD" && LD=ld
8661 test -z "$LN_S" && LN_S="ln -s"
8662 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8663 test -z "$NM" && NM=nm
8664 test -z "$SED" && SED=sed
8665 test -z "$OBJDUMP" && OBJDUMP=objdump
8666 test -z "$RANLIB" && RANLIB=:
8667 test -z "$STRIP" && STRIP=:
8668 test -z "$ac_objext" && ac_objext=o
8670 # Determine commands to create old-style static archives.
8671 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
8672 old_postinstall_cmds='chmod 644 $oldlib'
8673 old_postuninstall_cmds=
8675 if test -n "$RANLIB"; then
8676 case $host_os in
8677 openbsd*)
8678 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
8681 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
8683 esac
8684 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
8687 for cc_temp in $compiler""; do
8688 case $cc_temp in
8689 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8690 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8691 \-*) ;;
8692 *) break;;
8693 esac
8694 done
8695 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8698 # Only perform the check for file, if the check method requires it
8699 case $deplibs_check_method in
8700 file_magic*)
8701 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8702 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
8703 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
8704 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8705 echo $ECHO_N "(cached) $ECHO_C" >&6
8706 else
8707 case $MAGIC_CMD in
8708 [\\/*] | ?:[\\/]*)
8709 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8712 lt_save_MAGIC_CMD="$MAGIC_CMD"
8713 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8714 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8715 for ac_dir in $ac_dummy; do
8716 IFS="$lt_save_ifs"
8717 test -z "$ac_dir" && ac_dir=.
8718 if test -f $ac_dir/${ac_tool_prefix}file; then
8719 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8720 if test -n "$file_magic_test_file"; then
8721 case $deplibs_check_method in
8722 "file_magic "*)
8723 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8724 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8725 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8726 $EGREP "$file_magic_regex" > /dev/null; then
8728 else
8729 cat <<EOF 1>&2
8731 *** Warning: the command libtool uses to detect shared libraries,
8732 *** $file_magic_cmd, produces output that libtool cannot recognize.
8733 *** The result is that libtool may fail to recognize shared libraries
8734 *** as such. This will affect the creation of libtool libraries that
8735 *** depend on shared libraries, but programs linked with such libtool
8736 *** libraries will work regardless of this problem. Nevertheless, you
8737 *** may want to report the problem to your system manager and/or to
8738 *** bug-libtool@gnu.org
8741 fi ;;
8742 esac
8744 break
8746 done
8747 IFS="$lt_save_ifs"
8748 MAGIC_CMD="$lt_save_MAGIC_CMD"
8750 esac
8753 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8754 if test -n "$MAGIC_CMD"; then
8755 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8756 echo "${ECHO_T}$MAGIC_CMD" >&6; }
8757 else
8758 { echo "$as_me:$LINENO: result: no" >&5
8759 echo "${ECHO_T}no" >&6; }
8762 if test -z "$lt_cv_path_MAGIC_CMD"; then
8763 if test -n "$ac_tool_prefix"; then
8764 { echo "$as_me:$LINENO: checking for file" >&5
8765 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
8766 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8767 echo $ECHO_N "(cached) $ECHO_C" >&6
8768 else
8769 case $MAGIC_CMD in
8770 [\\/*] | ?:[\\/]*)
8771 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8774 lt_save_MAGIC_CMD="$MAGIC_CMD"
8775 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8776 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8777 for ac_dir in $ac_dummy; do
8778 IFS="$lt_save_ifs"
8779 test -z "$ac_dir" && ac_dir=.
8780 if test -f $ac_dir/file; then
8781 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8782 if test -n "$file_magic_test_file"; then
8783 case $deplibs_check_method in
8784 "file_magic "*)
8785 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8786 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8787 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8788 $EGREP "$file_magic_regex" > /dev/null; then
8790 else
8791 cat <<EOF 1>&2
8793 *** Warning: the command libtool uses to detect shared libraries,
8794 *** $file_magic_cmd, produces output that libtool cannot recognize.
8795 *** The result is that libtool may fail to recognize shared libraries
8796 *** as such. This will affect the creation of libtool libraries that
8797 *** depend on shared libraries, but programs linked with such libtool
8798 *** libraries will work regardless of this problem. Nevertheless, you
8799 *** may want to report the problem to your system manager and/or to
8800 *** bug-libtool@gnu.org
8803 fi ;;
8804 esac
8806 break
8808 done
8809 IFS="$lt_save_ifs"
8810 MAGIC_CMD="$lt_save_MAGIC_CMD"
8812 esac
8815 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8816 if test -n "$MAGIC_CMD"; then
8817 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8818 echo "${ECHO_T}$MAGIC_CMD" >&6; }
8819 else
8820 { echo "$as_me:$LINENO: result: no" >&5
8821 echo "${ECHO_T}no" >&6; }
8824 else
8825 MAGIC_CMD=:
8831 esac
8833 enable_dlopen=no
8834 enable_win32_dll=no
8836 # Check whether --enable-libtool-lock was given.
8837 if test "${enable_libtool_lock+set}" = set; then
8838 enableval=$enable_libtool_lock;
8841 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8844 # Check whether --with-pic was given.
8845 if test "${with_pic+set}" = set; then
8846 withval=$with_pic; pic_mode="$withval"
8847 else
8848 pic_mode=default
8851 test -z "$pic_mode" && pic_mode=default
8853 # Use C for the default configuration in the libtool script
8854 tagname=
8855 lt_save_CC="$CC"
8856 ac_ext=c
8857 ac_cpp='$CPP $CPPFLAGS'
8858 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8859 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8860 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8863 # Source file extension for C test sources.
8864 ac_ext=c
8866 # Object file extension for compiled C test sources.
8867 objext=o
8868 objext=$objext
8870 # Code to be used in simple compile tests
8871 lt_simple_compile_test_code="int some_variable = 0;\n"
8873 # Code to be used in simple link tests
8874 lt_simple_link_test_code='int main(){return(0);}\n'
8877 # If no C compiler was specified, use CC.
8878 LTCC=${LTCC-"$CC"}
8880 # If no C compiler flags were specified, use CFLAGS.
8881 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8883 # Allow CC to be a program name with arguments.
8884 compiler=$CC
8887 # save warnings/boilerplate of simple test code
8888 ac_outfile=conftest.$ac_objext
8889 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
8890 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8891 _lt_compiler_boilerplate=`cat conftest.err`
8892 $rm conftest*
8894 ac_outfile=conftest.$ac_objext
8895 printf "$lt_simple_link_test_code" >conftest.$ac_ext
8896 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8897 _lt_linker_boilerplate=`cat conftest.err`
8898 $rm conftest*
8902 lt_prog_compiler_no_builtin_flag=
8904 if test "$GCC" = yes; then
8905 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
8908 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8909 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
8910 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
8911 echo $ECHO_N "(cached) $ECHO_C" >&6
8912 else
8913 lt_cv_prog_compiler_rtti_exceptions=no
8914 ac_outfile=conftest.$ac_objext
8915 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8916 lt_compiler_flag="-fno-rtti -fno-exceptions"
8917 # Insert the option either (1) after the last *FLAGS variable, or
8918 # (2) before a word containing "conftest.", or (3) at the end.
8919 # Note that $ac_compile itself does not contain backslashes and begins
8920 # with a dollar sign (not a hyphen), so the echo should work correctly.
8921 # The option is referenced via a variable to avoid confusing sed.
8922 lt_compile=`echo "$ac_compile" | $SED \
8923 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8924 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8925 -e 's:$: $lt_compiler_flag:'`
8926 (eval echo "\"\$as_me:8926: $lt_compile\"" >&5)
8927 (eval "$lt_compile" 2>conftest.err)
8928 ac_status=$?
8929 cat conftest.err >&5
8930 echo "$as_me:8930: \$? = $ac_status" >&5
8931 if (exit $ac_status) && test -s "$ac_outfile"; then
8932 # The compiler can only warn and ignore the option if not recognized
8933 # So say no if there are warnings other than the usual output.
8934 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8935 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8936 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8937 lt_cv_prog_compiler_rtti_exceptions=yes
8940 $rm conftest*
8943 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8944 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8946 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8947 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8948 else
8954 lt_prog_compiler_wl=
8955 lt_prog_compiler_pic=
8956 lt_prog_compiler_static=
8958 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
8959 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
8961 if test "$GCC" = yes; then
8962 lt_prog_compiler_wl='-Wl,'
8963 lt_prog_compiler_static='-static'
8965 case $host_os in
8966 aix*)
8967 # All AIX code is PIC.
8968 if test "$host_cpu" = ia64; then
8969 # AIX 5 now supports IA64 processor
8970 lt_prog_compiler_static='-Bstatic'
8974 amigaos*)
8975 # FIXME: we need at least 68020 code to build shared libraries, but
8976 # adding the `-m68020' flag to GCC prevents building anything better,
8977 # like `-m68040'.
8978 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8981 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8982 # PIC is the default for these OSes.
8985 mingw* | pw32* | os2*)
8986 # This hack is so that the source file can tell whether it is being
8987 # built for inclusion in a dll (and should export symbols for example).
8988 lt_prog_compiler_pic='-DDLL_EXPORT'
8991 darwin* | rhapsody*)
8992 # PIC is the default on this platform
8993 # Common symbols not allowed in MH_DYLIB files
8994 lt_prog_compiler_pic='-fno-common'
8997 interix3*)
8998 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8999 # Instead, we relocate shared libraries at runtime.
9002 msdosdjgpp*)
9003 # Just because we use GCC doesn't mean we suddenly get shared libraries
9004 # on systems that don't support them.
9005 lt_prog_compiler_can_build_shared=no
9006 enable_shared=no
9009 sysv4*MP*)
9010 if test -d /usr/nec; then
9011 lt_prog_compiler_pic=-Kconform_pic
9015 hpux*)
9016 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9017 # not for PA HP-UX.
9018 case $host_cpu in
9019 hppa*64*|ia64*)
9020 # +Z the default
9023 lt_prog_compiler_pic='-fPIC'
9025 esac
9029 lt_prog_compiler_pic='-fPIC'
9031 esac
9032 else
9033 # PORTME Check for flag to pass linker flags through the system compiler.
9034 case $host_os in
9035 aix*)
9036 lt_prog_compiler_wl='-Wl,'
9037 if test "$host_cpu" = ia64; then
9038 # AIX 5 now supports IA64 processor
9039 lt_prog_compiler_static='-Bstatic'
9040 else
9041 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9044 darwin*)
9045 # PIC is the default on this platform
9046 # Common symbols not allowed in MH_DYLIB files
9047 case $cc_basename in
9048 xlc*)
9049 lt_prog_compiler_pic='-qnocommon'
9050 lt_prog_compiler_wl='-Wl,'
9052 esac
9055 mingw* | pw32* | os2*)
9056 # This hack is so that the source file can tell whether it is being
9057 # built for inclusion in a dll (and should export symbols for example).
9058 lt_prog_compiler_pic='-DDLL_EXPORT'
9061 hpux9* | hpux10* | hpux11*)
9062 lt_prog_compiler_wl='-Wl,'
9063 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9064 # not for PA HP-UX.
9065 case $host_cpu in
9066 hppa*64*|ia64*)
9067 # +Z the default
9070 lt_prog_compiler_pic='+Z'
9072 esac
9073 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9074 lt_prog_compiler_static='${wl}-a ${wl}archive'
9077 irix5* | irix6* | nonstopux*)
9078 lt_prog_compiler_wl='-Wl,'
9079 # PIC (with -KPIC) is the default.
9080 lt_prog_compiler_static='-non_shared'
9083 newsos6)
9084 lt_prog_compiler_pic='-KPIC'
9085 lt_prog_compiler_static='-Bstatic'
9088 linux* | k*bsd*-gnu)
9089 case $cc_basename in
9090 icc* | ecc*)
9091 lt_prog_compiler_wl='-Wl,'
9092 lt_prog_compiler_pic='-KPIC'
9093 lt_prog_compiler_static='-static'
9095 pgcc* | pgf77* | pgf90* | pgf95*)
9096 # Portland Group compilers (*not* the Pentium gcc compiler,
9097 # which looks to be a dead project)
9098 lt_prog_compiler_wl='-Wl,'
9099 lt_prog_compiler_pic='-fpic'
9100 lt_prog_compiler_static='-Bstatic'
9102 ccc*)
9103 lt_prog_compiler_wl='-Wl,'
9104 # All Alpha code is PIC.
9105 lt_prog_compiler_static='-non_shared'
9107 esac
9110 osf3* | osf4* | osf5*)
9111 lt_prog_compiler_wl='-Wl,'
9112 # All OSF/1 code is PIC.
9113 lt_prog_compiler_static='-non_shared'
9116 solaris*)
9117 lt_prog_compiler_pic='-KPIC'
9118 lt_prog_compiler_static='-Bstatic'
9119 case $cc_basename in
9120 f77* | f90* | f95*)
9121 lt_prog_compiler_wl='-Qoption ld ';;
9123 lt_prog_compiler_wl='-Wl,';;
9124 esac
9127 sunos4*)
9128 lt_prog_compiler_wl='-Qoption ld '
9129 lt_prog_compiler_pic='-PIC'
9130 lt_prog_compiler_static='-Bstatic'
9133 sysv4 | sysv4.2uw2* | sysv4.3*)
9134 lt_prog_compiler_wl='-Wl,'
9135 lt_prog_compiler_pic='-KPIC'
9136 lt_prog_compiler_static='-Bstatic'
9139 sysv4*MP*)
9140 if test -d /usr/nec ;then
9141 lt_prog_compiler_pic='-Kconform_pic'
9142 lt_prog_compiler_static='-Bstatic'
9146 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9147 lt_prog_compiler_wl='-Wl,'
9148 lt_prog_compiler_pic='-KPIC'
9149 lt_prog_compiler_static='-Bstatic'
9152 unicos*)
9153 lt_prog_compiler_wl='-Wl,'
9154 lt_prog_compiler_can_build_shared=no
9157 uts4*)
9158 lt_prog_compiler_pic='-pic'
9159 lt_prog_compiler_static='-Bstatic'
9163 lt_prog_compiler_can_build_shared=no
9165 esac
9168 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
9169 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
9172 # Check to make sure the PIC flag actually works.
9174 if test -n "$lt_prog_compiler_pic"; then
9176 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9177 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
9178 if test "${lt_prog_compiler_pic_works+set}" = set; then
9179 echo $ECHO_N "(cached) $ECHO_C" >&6
9180 else
9181 lt_prog_compiler_pic_works=no
9182 ac_outfile=conftest.$ac_objext
9183 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9184 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9185 # Insert the option either (1) after the last *FLAGS variable, or
9186 # (2) before a word containing "conftest.", or (3) at the end.
9187 # Note that $ac_compile itself does not contain backslashes and begins
9188 # with a dollar sign (not a hyphen), so the echo should work correctly.
9189 # The option is referenced via a variable to avoid confusing sed.
9190 lt_compile=`echo "$ac_compile" | $SED \
9191 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9192 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9193 -e 's:$: $lt_compiler_flag:'`
9194 (eval echo "\"\$as_me:9194: $lt_compile\"" >&5)
9195 (eval "$lt_compile" 2>conftest.err)
9196 ac_status=$?
9197 cat conftest.err >&5
9198 echo "$as_me:9198: \$? = $ac_status" >&5
9199 if (exit $ac_status) && test -s "$ac_outfile"; then
9200 # The compiler can only warn and ignore the option if not recognized
9201 # So say no if there are warnings other than the usual output.
9202 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9203 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9204 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9205 lt_prog_compiler_pic_works=yes
9208 $rm conftest*
9211 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
9212 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
9214 if test x"$lt_prog_compiler_pic_works" = xyes; then
9215 case $lt_prog_compiler_pic in
9216 "" | " "*) ;;
9217 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9218 esac
9219 else
9220 lt_prog_compiler_pic=
9221 lt_prog_compiler_can_build_shared=no
9225 case $host_os in
9226 # For platforms which do not support PIC, -DPIC is meaningless:
9227 *djgpp*)
9228 lt_prog_compiler_pic=
9231 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9233 esac
9236 # Check to make sure the static flag actually works.
9238 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9239 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9240 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
9241 if test "${lt_prog_compiler_static_works+set}" = set; then
9242 echo $ECHO_N "(cached) $ECHO_C" >&6
9243 else
9244 lt_prog_compiler_static_works=no
9245 save_LDFLAGS="$LDFLAGS"
9246 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9247 printf "$lt_simple_link_test_code" > conftest.$ac_ext
9248 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9249 # The linker can only warn and ignore the option if not recognized
9250 # So say no if there are warnings
9251 if test -s conftest.err; then
9252 # Append any errors to the config.log.
9253 cat conftest.err 1>&5
9254 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
9255 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9256 if diff conftest.exp conftest.er2 >/dev/null; then
9257 lt_prog_compiler_static_works=yes
9259 else
9260 lt_prog_compiler_static_works=yes
9263 $rm conftest*
9264 LDFLAGS="$save_LDFLAGS"
9267 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
9268 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
9270 if test x"$lt_prog_compiler_static_works" = xyes; then
9272 else
9273 lt_prog_compiler_static=
9277 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
9278 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
9279 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
9280 echo $ECHO_N "(cached) $ECHO_C" >&6
9281 else
9282 lt_cv_prog_compiler_c_o=no
9283 $rm -r conftest 2>/dev/null
9284 mkdir conftest
9285 cd conftest
9286 mkdir out
9287 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9289 lt_compiler_flag="-o out/conftest2.$ac_objext"
9290 # Insert the option either (1) after the last *FLAGS variable, or
9291 # (2) before a word containing "conftest.", or (3) at the end.
9292 # Note that $ac_compile itself does not contain backslashes and begins
9293 # with a dollar sign (not a hyphen), so the echo should work correctly.
9294 lt_compile=`echo "$ac_compile" | $SED \
9295 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9296 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9297 -e 's:$: $lt_compiler_flag:'`
9298 (eval echo "\"\$as_me:9298: $lt_compile\"" >&5)
9299 (eval "$lt_compile" 2>out/conftest.err)
9300 ac_status=$?
9301 cat out/conftest.err >&5
9302 echo "$as_me:9302: \$? = $ac_status" >&5
9303 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9304 then
9305 # The compiler can only warn and ignore the option if not recognized
9306 # So say no if there are warnings
9307 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9308 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9309 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9310 lt_cv_prog_compiler_c_o=yes
9313 chmod u+w . 2>&5
9314 $rm conftest*
9315 # SGI C++ compiler will create directory out/ii_files/ for
9316 # template instantiation
9317 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
9318 $rm out/* && rmdir out
9319 cd ..
9320 rmdir conftest
9321 $rm conftest*
9324 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
9325 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
9328 hard_links="nottested"
9329 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9330 # do not overwrite the value of need_locks provided by the user
9331 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
9332 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
9333 hard_links=yes
9334 $rm conftest*
9335 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9336 touch conftest.a
9337 ln conftest.a conftest.b 2>&5 || hard_links=no
9338 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9339 { echo "$as_me:$LINENO: result: $hard_links" >&5
9340 echo "${ECHO_T}$hard_links" >&6; }
9341 if test "$hard_links" = no; then
9342 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9343 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9344 need_locks=warn
9346 else
9347 need_locks=no
9350 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9351 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
9353 runpath_var=
9354 allow_undefined_flag=
9355 enable_shared_with_static_runtimes=no
9356 archive_cmds=
9357 archive_expsym_cmds=
9358 old_archive_From_new_cmds=
9359 old_archive_from_expsyms_cmds=
9360 export_dynamic_flag_spec=
9361 whole_archive_flag_spec=
9362 thread_safe_flag_spec=
9363 hardcode_libdir_flag_spec=
9364 hardcode_libdir_flag_spec_ld=
9365 hardcode_libdir_separator=
9366 hardcode_direct=no
9367 hardcode_minus_L=no
9368 hardcode_shlibpath_var=unsupported
9369 link_all_deplibs=unknown
9370 hardcode_automatic=no
9371 module_cmds=
9372 module_expsym_cmds=
9373 always_export_symbols=no
9374 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9375 # include_expsyms should be a list of space-separated symbols to be *always*
9376 # included in the symbol list
9377 include_expsyms=
9378 # exclude_expsyms can be an extended regexp of symbols to exclude
9379 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9380 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9381 # as well as any symbol that contains `d'.
9382 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
9383 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9384 # platforms (ab)use it in PIC code, but their linkers get confused if
9385 # the symbol is explicitly referenced. Since portable code cannot
9386 # rely on this symbol name, it's probably fine to never include it in
9387 # preloaded symbol tables.
9388 extract_expsyms_cmds=
9389 # Just being paranoid about ensuring that cc_basename is set.
9390 for cc_temp in $compiler""; do
9391 case $cc_temp in
9392 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9393 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9394 \-*) ;;
9395 *) break;;
9396 esac
9397 done
9398 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
9400 case $host_os in
9401 cygwin* | mingw* | pw32*)
9402 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9403 # When not using gcc, we currently assume that we are using
9404 # Microsoft Visual C++.
9405 if test "$GCC" != yes; then
9406 with_gnu_ld=no
9409 interix*)
9410 # we just hope/assume this is gcc and not c89 (= MSVC++)
9411 with_gnu_ld=yes
9413 openbsd*)
9414 with_gnu_ld=no
9416 esac
9418 ld_shlibs=yes
9419 if test "$with_gnu_ld" = yes; then
9420 # If archive_cmds runs LD, not CC, wlarc should be empty
9421 wlarc='${wl}'
9423 # Set some defaults for GNU ld with shared library support. These
9424 # are reset later if shared libraries are not supported. Putting them
9425 # here allows them to be overridden if necessary.
9426 runpath_var=LD_RUN_PATH
9427 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
9428 export_dynamic_flag_spec='${wl}--export-dynamic'
9429 # ancient GNU ld didn't support --whole-archive et. al.
9430 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
9431 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9432 else
9433 whole_archive_flag_spec=
9435 supports_anon_versioning=no
9436 case `$LD -v 2>/dev/null` in
9437 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9438 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9439 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9440 *\ 2.11.*) ;; # other 2.11 versions
9441 *) supports_anon_versioning=yes ;;
9442 esac
9444 # See if GNU ld supports shared libraries.
9445 case $host_os in
9446 aix3* | aix4* | aix5*)
9447 # On AIX/PPC, the GNU linker is very broken
9448 if test "$host_cpu" != ia64; then
9449 ld_shlibs=no
9450 cat <<EOF 1>&2
9452 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
9453 *** to be unable to reliably create shared libraries on AIX.
9454 *** Therefore, libtool is disabling shared libraries support. If you
9455 *** really care for shared libraries, you may want to modify your PATH
9456 *** so that a non-GNU linker is found, and then restart.
9462 amigaos*)
9463 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)'
9464 hardcode_libdir_flag_spec='-L$libdir'
9465 hardcode_minus_L=yes
9467 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
9468 # that the semantics of dynamic libraries on AmigaOS, at least up
9469 # to version 4, is to share data among multiple programs linked
9470 # with the same dynamic library. Since this doesn't match the
9471 # behavior of shared libraries on other platforms, we can't use
9472 # them.
9473 ld_shlibs=no
9476 beos*)
9477 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9478 allow_undefined_flag=unsupported
9479 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9480 # support --undefined. This deserves some investigation. FIXME
9481 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9482 else
9483 ld_shlibs=no
9487 cygwin* | mingw* | pw32*)
9488 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9489 # as there is no search path for DLLs.
9490 hardcode_libdir_flag_spec='-L$libdir'
9491 allow_undefined_flag=unsupported
9492 always_export_symbols=no
9493 enable_shared_with_static_runtimes=yes
9494 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
9496 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
9497 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9498 # If the export-symbols file already is a .def file (1st line
9499 # is EXPORTS), use it as is; otherwise, prepend...
9500 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9501 cp $export_symbols $output_objdir/$soname.def;
9502 else
9503 echo EXPORTS > $output_objdir/$soname.def;
9504 cat $export_symbols >> $output_objdir/$soname.def;
9506 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9507 else
9508 ld_shlibs=no
9512 interix3*)
9513 hardcode_direct=no
9514 hardcode_shlibpath_var=no
9515 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9516 export_dynamic_flag_spec='${wl}-E'
9517 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9518 # Instead, shared libraries are loaded at an image base (0x10000000 by
9519 # default) and relocated if they conflict, which is a slow very memory
9520 # consuming and fragmenting process. To avoid this, we pick a random,
9521 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9522 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9523 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9524 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'
9527 linux* | k*bsd*-gnu)
9528 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9529 tmp_addflag=
9530 case $cc_basename,$host_cpu in
9531 pgcc*) # Portland Group C compiler
9532 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'
9533 tmp_addflag=' $pic_flag'
9535 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
9536 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'
9537 tmp_addflag=' $pic_flag -Mnomain' ;;
9538 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9539 tmp_addflag=' -i_dynamic' ;;
9540 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9541 tmp_addflag=' -i_dynamic -nofor_main' ;;
9542 ifc* | ifort*) # Intel Fortran compiler
9543 tmp_addflag=' -nofor_main' ;;
9544 esac
9545 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9547 if test $supports_anon_versioning = yes; then
9548 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
9549 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9550 $echo "local: *; };" >> $output_objdir/$libname.ver~
9551 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9553 link_all_deplibs=no
9554 else
9555 ld_shlibs=no
9559 netbsd* | netbsdelf*-gnu)
9560 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9561 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9562 wlarc=
9563 else
9564 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9565 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9569 solaris*)
9570 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
9571 ld_shlibs=no
9572 cat <<EOF 1>&2
9574 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9575 *** create shared libraries on Solaris systems. Therefore, libtool
9576 *** is disabling shared libraries support. We urge you to upgrade GNU
9577 *** binutils to release 2.9.1 or newer. Another option is to modify
9578 *** your PATH or compiler configuration so that the native linker is
9579 *** used, and then restart.
9582 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9583 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9584 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9585 else
9586 ld_shlibs=no
9590 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9591 case `$LD -v 2>&1` in
9592 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9593 ld_shlibs=no
9594 cat <<_LT_EOF 1>&2
9596 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9597 *** reliably create shared libraries on SCO systems. Therefore, libtool
9598 *** is disabling shared libraries support. We urge you to upgrade GNU
9599 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9600 *** your PATH or compiler configuration so that the native linker is
9601 *** used, and then restart.
9603 _LT_EOF
9606 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9607 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
9608 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
9609 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
9610 else
9611 ld_shlibs=no
9614 esac
9617 sunos4*)
9618 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9619 wlarc=
9620 hardcode_direct=yes
9621 hardcode_shlibpath_var=no
9625 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9626 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9627 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9628 else
9629 ld_shlibs=no
9632 esac
9634 if test "$ld_shlibs" = no; then
9635 runpath_var=
9636 hardcode_libdir_flag_spec=
9637 export_dynamic_flag_spec=
9638 whole_archive_flag_spec=
9640 else
9641 # PORTME fill in a description of your system's linker (not GNU ld)
9642 case $host_os in
9643 aix3*)
9644 allow_undefined_flag=unsupported
9645 always_export_symbols=yes
9646 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'
9647 # Note: this linker hardcodes the directories in LIBPATH if there
9648 # are no directories specified by -L.
9649 hardcode_minus_L=yes
9650 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9651 # Neither direct hardcoding nor static linking is supported with a
9652 # broken collect2.
9653 hardcode_direct=unsupported
9657 aix4* | aix5*)
9658 if test "$host_cpu" = ia64; then
9659 # On IA64, the linker does run time linking by default, so we don't
9660 # have to do anything special.
9661 aix_use_runtimelinking=no
9662 exp_sym_flag='-Bexport'
9663 no_entry_flag=""
9664 else
9665 # If we're using GNU nm, then we don't want the "-C" option.
9666 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9667 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
9668 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'
9669 else
9670 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'
9672 aix_use_runtimelinking=no
9674 # Test if we are trying to use run time linking or normal
9675 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9676 # need to do runtime linking.
9677 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9678 for ld_flag in $LDFLAGS; do
9679 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9680 aix_use_runtimelinking=yes
9681 break
9683 done
9685 esac
9687 exp_sym_flag='-bexport'
9688 no_entry_flag='-bnoentry'
9691 # When large executables or shared objects are built, AIX ld can
9692 # have problems creating the table of contents. If linking a library
9693 # or program results in "error TOC overflow" add -mminimal-toc to
9694 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9695 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9697 archive_cmds=''
9698 hardcode_direct=yes
9699 hardcode_libdir_separator=':'
9700 link_all_deplibs=yes
9702 if test "$GCC" = yes; then
9703 case $host_os in aix4.[012]|aix4.[012].*)
9704 # We only want to do this on AIX 4.2 and lower, the check
9705 # below for broken collect2 doesn't work under 4.3+
9706 collect2name=`${CC} -print-prog-name=collect2`
9707 if test -f "$collect2name" && \
9708 strings "$collect2name" | grep resolve_lib_name >/dev/null
9709 then
9710 # We have reworked collect2
9711 hardcode_direct=yes
9712 else
9713 # We have old collect2
9714 hardcode_direct=unsupported
9715 # It fails to find uninstalled libraries when the uninstalled
9716 # path is not listed in the libpath. Setting hardcode_minus_L
9717 # to unsupported forces relinking
9718 hardcode_minus_L=yes
9719 hardcode_libdir_flag_spec='-L$libdir'
9720 hardcode_libdir_separator=
9723 esac
9724 shared_flag='-shared'
9725 if test "$aix_use_runtimelinking" = yes; then
9726 shared_flag="$shared_flag "'${wl}-G'
9728 else
9729 # not using gcc
9730 if test "$host_cpu" = ia64; then
9731 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9732 # chokes on -Wl,-G. The following line is correct:
9733 shared_flag='-G'
9734 else
9735 if test "$aix_use_runtimelinking" = yes; then
9736 shared_flag='${wl}-G'
9737 else
9738 shared_flag='${wl}-bM:SRE'
9743 # It seems that -bexpall does not export symbols beginning with
9744 # underscore (_), so it is better to generate a list of symbols to export.
9745 always_export_symbols=yes
9746 if test "$aix_use_runtimelinking" = yes; then
9747 # Warning - without using the other runtime loading flags (-brtl),
9748 # -berok will link without error, but may produce a broken library.
9749 allow_undefined_flag='-berok'
9750 # Determine the default libpath from the value encoded in an empty executable.
9751 cat >conftest.$ac_ext <<_ACEOF
9752 /* confdefs.h. */
9753 _ACEOF
9754 cat confdefs.h >>conftest.$ac_ext
9755 cat >>conftest.$ac_ext <<_ACEOF
9756 /* end confdefs.h. */
9759 main ()
9763 return 0;
9765 _ACEOF
9766 rm -f conftest.$ac_objext conftest$ac_exeext
9767 if { (ac_try="$ac_link"
9768 case "(($ac_try" in
9769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9770 *) ac_try_echo=$ac_try;;
9771 esac
9772 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9773 (eval "$ac_link") 2>conftest.er1
9774 ac_status=$?
9775 grep -v '^ *+' conftest.er1 >conftest.err
9776 rm -f conftest.er1
9777 cat conftest.err >&5
9778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9779 (exit $ac_status); } && {
9780 test -z "$ac_c_werror_flag" ||
9781 test ! -s conftest.err
9782 } && test -s conftest$ac_exeext &&
9783 $as_test_x conftest$ac_exeext; then
9785 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9787 # Check for a 64-bit object if we didn't find anything.
9788 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9789 }'`; fi
9790 else
9791 echo "$as_me: failed program was:" >&5
9792 sed 's/^/| /' conftest.$ac_ext >&5
9797 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9798 conftest$ac_exeext conftest.$ac_ext
9799 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9801 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9802 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"
9803 else
9804 if test "$host_cpu" = ia64; then
9805 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9806 allow_undefined_flag="-z nodefs"
9807 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"
9808 else
9809 # Determine the default libpath from the value encoded in an empty executable.
9810 cat >conftest.$ac_ext <<_ACEOF
9811 /* confdefs.h. */
9812 _ACEOF
9813 cat confdefs.h >>conftest.$ac_ext
9814 cat >>conftest.$ac_ext <<_ACEOF
9815 /* end confdefs.h. */
9818 main ()
9822 return 0;
9824 _ACEOF
9825 rm -f conftest.$ac_objext conftest$ac_exeext
9826 if { (ac_try="$ac_link"
9827 case "(($ac_try" in
9828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9829 *) ac_try_echo=$ac_try;;
9830 esac
9831 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9832 (eval "$ac_link") 2>conftest.er1
9833 ac_status=$?
9834 grep -v '^ *+' conftest.er1 >conftest.err
9835 rm -f conftest.er1
9836 cat conftest.err >&5
9837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9838 (exit $ac_status); } && {
9839 test -z "$ac_c_werror_flag" ||
9840 test ! -s conftest.err
9841 } && test -s conftest$ac_exeext &&
9842 $as_test_x conftest$ac_exeext; then
9844 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9846 # Check for a 64-bit object if we didn't find anything.
9847 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9848 }'`; fi
9849 else
9850 echo "$as_me: failed program was:" >&5
9851 sed 's/^/| /' conftest.$ac_ext >&5
9856 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9857 conftest$ac_exeext conftest.$ac_ext
9858 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9860 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9861 # Warning - without using the other run time loading flags,
9862 # -berok will link without error, but may produce a broken library.
9863 no_undefined_flag=' ${wl}-bernotok'
9864 allow_undefined_flag=' ${wl}-berok'
9865 # Exported symbols can be pulled into shared objects from archives
9866 whole_archive_flag_spec='$convenience'
9867 archive_cmds_need_lc=yes
9868 # This is similar to how AIX traditionally builds its shared libraries.
9869 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'
9874 amigaos*)
9875 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)'
9876 hardcode_libdir_flag_spec='-L$libdir'
9877 hardcode_minus_L=yes
9878 # see comment about different semantics on the GNU ld section
9879 ld_shlibs=no
9882 bsdi[45]*)
9883 export_dynamic_flag_spec=-rdynamic
9886 cygwin* | mingw* | pw32*)
9887 # When not using gcc, we currently assume that we are using
9888 # Microsoft Visual C++.
9889 # hardcode_libdir_flag_spec is actually meaningless, as there is
9890 # no search path for DLLs.
9891 hardcode_libdir_flag_spec=' '
9892 allow_undefined_flag=unsupported
9893 # Tell ltmain to make .lib files, not .a files.
9894 libext=lib
9895 # Tell ltmain to make .dll files, not .so files.
9896 shrext_cmds=".dll"
9897 # FIXME: Setting linknames here is a bad hack.
9898 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
9899 # The linker will automatically build a .lib file if we build a DLL.
9900 old_archive_From_new_cmds='true'
9901 # FIXME: Should let the user specify the lib program.
9902 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
9903 fix_srcfile_path='`cygpath -w "$srcfile"`'
9904 enable_shared_with_static_runtimes=yes
9907 darwin* | rhapsody*)
9908 case $host_os in
9909 rhapsody* | darwin1.[012])
9910 allow_undefined_flag='${wl}-undefined ${wl}suppress'
9912 *) # Darwin 1.3 on
9913 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
9914 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9915 else
9916 case ${MACOSX_DEPLOYMENT_TARGET} in
9917 10.[012])
9918 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9920 10.*)
9921 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
9923 esac
9926 esac
9927 archive_cmds_need_lc=no
9928 hardcode_direct=no
9929 hardcode_automatic=yes
9930 hardcode_shlibpath_var=unsupported
9931 whole_archive_flag_spec=''
9932 link_all_deplibs=yes
9933 if test "$GCC" = yes ; then
9934 output_verbose_link_cmd='echo'
9935 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9936 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9937 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
9938 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
9939 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}'
9940 else
9941 case $cc_basename in
9942 xlc*)
9943 output_verbose_link_cmd='echo'
9944 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
9945 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9946 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
9947 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
9948 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}'
9951 ld_shlibs=no
9953 esac
9957 dgux*)
9958 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9959 hardcode_libdir_flag_spec='-L$libdir'
9960 hardcode_shlibpath_var=no
9963 freebsd1*)
9964 ld_shlibs=no
9967 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9968 # support. Future versions do this automatically, but an explicit c++rt0.o
9969 # does not break anything, and helps significantly (at the cost of a little
9970 # extra space).
9971 freebsd2.2*)
9972 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9973 hardcode_libdir_flag_spec='-R$libdir'
9974 hardcode_direct=yes
9975 hardcode_shlibpath_var=no
9978 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9979 freebsd2*)
9980 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9981 hardcode_direct=yes
9982 hardcode_minus_L=yes
9983 hardcode_shlibpath_var=no
9986 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9987 freebsd* | dragonfly*)
9988 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9989 hardcode_libdir_flag_spec='-R$libdir'
9990 hardcode_direct=yes
9991 hardcode_shlibpath_var=no
9994 hpux9*)
9995 if test "$GCC" = yes; then
9996 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'
9997 else
9998 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'
10000 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10001 hardcode_libdir_separator=:
10002 hardcode_direct=yes
10004 # hardcode_minus_L: Not really in the search PATH,
10005 # but as the default location of the library.
10006 hardcode_minus_L=yes
10007 export_dynamic_flag_spec='${wl}-E'
10010 hpux10*)
10011 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10012 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10013 else
10014 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10016 if test "$with_gnu_ld" = no; then
10017 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10018 hardcode_libdir_separator=:
10020 hardcode_direct=yes
10021 export_dynamic_flag_spec='${wl}-E'
10023 # hardcode_minus_L: Not really in the search PATH,
10024 # but as the default location of the library.
10025 hardcode_minus_L=yes
10029 hpux11*)
10030 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10031 case $host_cpu in
10032 hppa*64*)
10033 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10035 ia64*)
10036 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10039 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10041 esac
10042 else
10043 case $host_cpu in
10044 hppa*64*)
10045 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10047 ia64*)
10048 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10051 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10053 esac
10055 if test "$with_gnu_ld" = no; then
10056 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10057 hardcode_libdir_separator=:
10059 case $host_cpu in
10060 hppa*64*|ia64*)
10061 hardcode_libdir_flag_spec_ld='+b $libdir'
10062 hardcode_direct=no
10063 hardcode_shlibpath_var=no
10066 hardcode_direct=yes
10067 export_dynamic_flag_spec='${wl}-E'
10069 # hardcode_minus_L: Not really in the search PATH,
10070 # but as the default location of the library.
10071 hardcode_minus_L=yes
10073 esac
10077 irix5* | irix6* | nonstopux*)
10078 if test "$GCC" = yes; then
10079 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'
10080 else
10081 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'
10082 hardcode_libdir_flag_spec_ld='-rpath $libdir'
10084 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10085 hardcode_libdir_separator=:
10086 link_all_deplibs=yes
10089 netbsd* | netbsdelf*-gnu)
10090 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10091 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10092 else
10093 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10095 hardcode_libdir_flag_spec='-R$libdir'
10096 hardcode_direct=yes
10097 hardcode_shlibpath_var=no
10100 newsos6)
10101 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10102 hardcode_direct=yes
10103 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10104 hardcode_libdir_separator=:
10105 hardcode_shlibpath_var=no
10108 openbsd*)
10109 hardcode_direct=yes
10110 hardcode_shlibpath_var=no
10111 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10112 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10113 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10114 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10115 export_dynamic_flag_spec='${wl}-E'
10116 else
10117 case $host_os in
10118 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10119 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10120 hardcode_libdir_flag_spec='-R$libdir'
10123 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10124 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10126 esac
10130 os2*)
10131 hardcode_libdir_flag_spec='-L$libdir'
10132 hardcode_minus_L=yes
10133 allow_undefined_flag=unsupported
10134 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'
10135 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10138 osf3*)
10139 if test "$GCC" = yes; then
10140 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10141 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'
10142 else
10143 allow_undefined_flag=' -expect_unresolved \*'
10144 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'
10146 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10147 hardcode_libdir_separator=:
10150 osf4* | osf5*) # as osf3* with the addition of -msym flag
10151 if test "$GCC" = yes; then
10152 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10153 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'
10154 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10155 else
10156 allow_undefined_flag=' -expect_unresolved \*'
10157 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'
10158 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
10159 $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'
10161 # Both c and cxx compiler support -rpath directly
10162 hardcode_libdir_flag_spec='-rpath $libdir'
10164 hardcode_libdir_separator=:
10167 solaris*)
10168 no_undefined_flag=' -z text'
10169 if test "$GCC" = yes; then
10170 wlarc='${wl}'
10171 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10172 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10173 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
10174 else
10175 wlarc=''
10176 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10177 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10178 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
10180 hardcode_libdir_flag_spec='-R$libdir'
10181 hardcode_shlibpath_var=no
10182 case $host_os in
10183 solaris2.[0-5] | solaris2.[0-5].*) ;;
10185 # The compiler driver will combine linker options so we
10186 # cannot just pass the convience library names through
10187 # without $wl, iff we do not link with $LD.
10188 # Luckily, gcc supports the same syntax we need for Sun Studio.
10189 # Supported since Solaris 2.6 (maybe 2.5.1?)
10190 case $wlarc in
10192 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
10194 whole_archive_flag_spec='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
10195 esac ;;
10196 esac
10197 link_all_deplibs=yes
10200 sunos4*)
10201 if test "x$host_vendor" = xsequent; then
10202 # Use $CC to link under sequent, because it throws in some extra .o
10203 # files that make .init and .fini sections work.
10204 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10205 else
10206 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10208 hardcode_libdir_flag_spec='-L$libdir'
10209 hardcode_direct=yes
10210 hardcode_minus_L=yes
10211 hardcode_shlibpath_var=no
10214 sysv4)
10215 case $host_vendor in
10216 sni)
10217 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10218 hardcode_direct=yes # is this really true???
10220 siemens)
10221 ## LD is ld it makes a PLAMLIB
10222 ## CC just makes a GrossModule.
10223 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10224 reload_cmds='$CC -r -o $output$reload_objs'
10225 hardcode_direct=no
10227 motorola)
10228 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10229 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10231 esac
10232 runpath_var='LD_RUN_PATH'
10233 hardcode_shlibpath_var=no
10236 sysv4.3*)
10237 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10238 hardcode_shlibpath_var=no
10239 export_dynamic_flag_spec='-Bexport'
10242 sysv4*MP*)
10243 if test -d /usr/nec; then
10244 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10245 hardcode_shlibpath_var=no
10246 runpath_var=LD_RUN_PATH
10247 hardcode_runpath_var=yes
10248 ld_shlibs=yes
10252 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
10253 no_undefined_flag='${wl}-z,text'
10254 archive_cmds_need_lc=no
10255 hardcode_shlibpath_var=no
10256 runpath_var='LD_RUN_PATH'
10258 if test "$GCC" = yes; then
10259 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10260 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10261 else
10262 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10263 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10267 sysv5* | sco3.2v5* | sco5v6*)
10268 # Note: We can NOT use -z defs as we might desire, because we do not
10269 # link with -lc, and that would cause any symbols used from libc to
10270 # always be unresolved, which means just about no library would
10271 # ever link correctly. If we're not using GNU ld we use -z text
10272 # though, which does catch some bad symbols but isn't as heavy-handed
10273 # as -z defs.
10274 no_undefined_flag='${wl}-z,text'
10275 allow_undefined_flag='${wl}-z,nodefs'
10276 archive_cmds_need_lc=no
10277 hardcode_shlibpath_var=no
10278 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
10279 hardcode_libdir_separator=':'
10280 link_all_deplibs=yes
10281 export_dynamic_flag_spec='${wl}-Bexport'
10282 runpath_var='LD_RUN_PATH'
10284 if test "$GCC" = yes; then
10285 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
10286 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
10287 else
10288 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
10289 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
10293 uts4*)
10294 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10295 hardcode_libdir_flag_spec='-L$libdir'
10296 hardcode_shlibpath_var=no
10300 ld_shlibs=no
10302 esac
10305 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
10306 echo "${ECHO_T}$ld_shlibs" >&6; }
10307 test "$ld_shlibs" = no && can_build_shared=no
10310 # Do we need to explicitly link libc?
10312 case "x$archive_cmds_need_lc" in
10313 x|xyes)
10314 # Assume -lc should be added
10315 archive_cmds_need_lc=yes
10317 if test "$enable_shared" = yes && test "$GCC" = yes; then
10318 case $archive_cmds in
10319 *'~'*)
10320 # FIXME: we may have to deal with multi-command sequences.
10322 '$CC '*)
10323 # Test whether the compiler implicitly links with -lc since on some
10324 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10325 # to ld, don't add -lc before -lgcc.
10326 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
10327 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
10328 $rm conftest*
10329 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10331 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10332 (eval $ac_compile) 2>&5
10333 ac_status=$?
10334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10335 (exit $ac_status); } 2>conftest.err; then
10336 soname=conftest
10337 lib=conftest
10338 libobjs=conftest.$ac_objext
10339 deplibs=
10340 wl=$lt_prog_compiler_wl
10341 pic_flag=$lt_prog_compiler_pic
10342 compiler_flags=-v
10343 linker_flags=-v
10344 verstring=
10345 output_objdir=.
10346 libname=conftest
10347 lt_save_allow_undefined_flag=$allow_undefined_flag
10348 allow_undefined_flag=
10349 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
10350 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
10351 ac_status=$?
10352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10353 (exit $ac_status); }
10354 then
10355 archive_cmds_need_lc=no
10356 else
10357 archive_cmds_need_lc=yes
10359 allow_undefined_flag=$lt_save_allow_undefined_flag
10360 else
10361 cat conftest.err 1>&5
10363 $rm conftest*
10364 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
10365 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
10367 esac
10370 esac
10372 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
10373 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
10374 library_names_spec=
10375 libname_spec='lib$name'
10376 soname_spec=
10377 shrext_cmds=".so"
10378 postinstall_cmds=
10379 postuninstall_cmds=
10380 finish_cmds=
10381 finish_eval=
10382 shlibpath_var=
10383 shlibpath_overrides_runpath=unknown
10384 version_type=none
10385 dynamic_linker="$host_os ld.so"
10386 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10387 if test "$GCC" = yes; then
10388 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10389 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
10390 # if the path contains ";" then we assume it to be the separator
10391 # otherwise default to the standard path separator (i.e. ":") - it is
10392 # assumed that no part of a normal pathname contains ";" but that should
10393 # okay in the real world where ";" in dirpaths is itself problematic.
10394 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10395 else
10396 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10398 else
10399 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10401 need_lib_prefix=unknown
10402 hardcode_into_libs=no
10404 # when you set need_version to no, make sure it does not cause -set_version
10405 # flags to be left without arguments
10406 need_version=unknown
10408 case $host_os in
10409 aix3*)
10410 version_type=linux
10411 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10412 shlibpath_var=LIBPATH
10414 # AIX 3 has no versioning support, so we append a major version to the name.
10415 soname_spec='${libname}${release}${shared_ext}$major'
10418 aix4* | aix5*)
10419 version_type=linux
10420 need_lib_prefix=no
10421 need_version=no
10422 hardcode_into_libs=yes
10423 if test "$host_cpu" = ia64; then
10424 # AIX 5 supports IA64
10425 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10426 shlibpath_var=LD_LIBRARY_PATH
10427 else
10428 # With GCC up to 2.95.x, collect2 would create an import file
10429 # for dependence libraries. The import file would start with
10430 # the line `#! .'. This would cause the generated library to
10431 # depend on `.', always an invalid library. This was fixed in
10432 # development snapshots of GCC prior to 3.0.
10433 case $host_os in
10434 aix4 | aix4.[01] | aix4.[01].*)
10435 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10436 echo ' yes '
10437 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
10439 else
10440 can_build_shared=no
10443 esac
10444 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10445 # soname into executable. Probably we can add versioning support to
10446 # collect2, so additional links can be useful in future.
10447 if test "$aix_use_runtimelinking" = yes; then
10448 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10449 # instead of lib<name>.a to let people know that these are not
10450 # typical AIX shared libraries.
10451 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10452 else
10453 # We preserve .a as extension for shared libraries through AIX4.2
10454 # and later when we are not doing run time linking.
10455 library_names_spec='${libname}${release}.a $libname.a'
10456 soname_spec='${libname}${release}${shared_ext}$major'
10458 shlibpath_var=LIBPATH
10462 amigaos*)
10463 library_names_spec='$libname.ixlibrary $libname.a'
10464 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10465 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'
10468 beos*)
10469 library_names_spec='${libname}${shared_ext}'
10470 dynamic_linker="$host_os ld.so"
10471 shlibpath_var=LIBRARY_PATH
10474 bsdi[45]*)
10475 version_type=linux
10476 need_version=no
10477 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10478 soname_spec='${libname}${release}${shared_ext}$major'
10479 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10480 shlibpath_var=LD_LIBRARY_PATH
10481 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10482 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10483 # the default ld.so.conf also contains /usr/contrib/lib and
10484 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10485 # libtool to hard-code these into programs
10488 cygwin* | mingw* | pw32*)
10489 version_type=windows
10490 shrext_cmds=".dll"
10491 need_version=no
10492 need_lib_prefix=no
10494 case $GCC,$host_os in
10495 yes,cygwin* | yes,mingw* | yes,pw32*)
10496 library_names_spec='$libname.dll.a'
10497 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10498 postinstall_cmds='base_file=`basename \${file}`~
10499 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
10500 dldir=$destdir/`dirname \$dlpath`~
10501 test -d \$dldir || mkdir -p \$dldir~
10502 $install_prog $dir/$dlname \$dldir/$dlname~
10503 chmod a+x \$dldir/$dlname'
10504 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10505 dlpath=$dir/\$dldll~
10506 $rm \$dlpath'
10507 shlibpath_overrides_runpath=yes
10509 case $host_os in
10510 cygwin*)
10511 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10512 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10513 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
10515 mingw*)
10516 # MinGW DLLs use traditional 'lib' prefix
10517 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10518 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10519 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
10520 # It is most probably a Windows format PATH printed by
10521 # mingw gcc, but we are running on Cygwin. Gcc prints its search
10522 # path with ; separators, and with drive letters. We can handle the
10523 # drive letters (cygwin fileutils understands them), so leave them,
10524 # especially as we might pass files found there to a mingw objdump,
10525 # which wouldn't understand a cygwinified path. Ahh.
10526 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10527 else
10528 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10531 pw32*)
10532 # pw32 DLLs use 'pw' prefix rather than 'lib'
10533 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10535 esac
10539 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10541 esac
10542 dynamic_linker='Win32 ld.exe'
10543 # FIXME: first we should search . and the directory the executable is in
10544 shlibpath_var=PATH
10547 darwin* | rhapsody*)
10548 dynamic_linker="$host_os dyld"
10549 version_type=darwin
10550 need_lib_prefix=no
10551 need_version=no
10552 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10553 soname_spec='${libname}${release}${major}$shared_ext'
10554 shlibpath_overrides_runpath=yes
10555 shlibpath_var=DYLD_LIBRARY_PATH
10556 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10557 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
10558 if test "$GCC" = yes; then
10559 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
10560 else
10561 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
10563 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10566 dgux*)
10567 version_type=linux
10568 need_lib_prefix=no
10569 need_version=no
10570 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10571 soname_spec='${libname}${release}${shared_ext}$major'
10572 shlibpath_var=LD_LIBRARY_PATH
10575 freebsd1*)
10576 dynamic_linker=no
10579 freebsd* | dragonfly*)
10580 # DragonFly does not have aout. When/if they implement a new
10581 # versioning mechanism, adjust this.
10582 if test -x /usr/bin/objformat; then
10583 objformat=`/usr/bin/objformat`
10584 else
10585 case $host_os in
10586 freebsd[123]*) objformat=aout ;;
10587 *) objformat=elf ;;
10588 esac
10590 version_type=freebsd-$objformat
10591 case $version_type in
10592 freebsd-elf*)
10593 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10594 need_version=no
10595 need_lib_prefix=no
10597 freebsd-*)
10598 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10599 need_version=yes
10601 esac
10602 shlibpath_var=LD_LIBRARY_PATH
10603 case $host_os in
10604 freebsd2*)
10605 shlibpath_overrides_runpath=yes
10607 freebsd3.[01]* | freebsdelf3.[01]*)
10608 shlibpath_overrides_runpath=yes
10609 hardcode_into_libs=yes
10611 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10612 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10613 shlibpath_overrides_runpath=no
10614 hardcode_into_libs=yes
10616 freebsd*) # from 4.6 on
10617 shlibpath_overrides_runpath=yes
10618 hardcode_into_libs=yes
10620 esac
10623 gnu*)
10624 version_type=linux
10625 need_lib_prefix=no
10626 need_version=no
10627 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10628 soname_spec='${libname}${release}${shared_ext}$major'
10629 shlibpath_var=LD_LIBRARY_PATH
10630 hardcode_into_libs=yes
10633 hpux9* | hpux10* | hpux11*)
10634 # Give a soname corresponding to the major version so that dld.sl refuses to
10635 # link against other versions.
10636 version_type=sunos
10637 need_lib_prefix=no
10638 need_version=no
10639 case $host_cpu in
10640 ia64*)
10641 shrext_cmds='.so'
10642 hardcode_into_libs=yes
10643 dynamic_linker="$host_os dld.so"
10644 shlibpath_var=LD_LIBRARY_PATH
10645 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10646 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10647 soname_spec='${libname}${release}${shared_ext}$major'
10648 if test "X$HPUX_IA64_MODE" = X32; then
10649 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10650 else
10651 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10653 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10655 hppa*64*)
10656 shrext_cmds='.sl'
10657 hardcode_into_libs=yes
10658 dynamic_linker="$host_os dld.sl"
10659 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10660 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10661 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10662 soname_spec='${libname}${release}${shared_ext}$major'
10663 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10664 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10667 shrext_cmds='.sl'
10668 dynamic_linker="$host_os dld.sl"
10669 shlibpath_var=SHLIB_PATH
10670 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10671 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10672 soname_spec='${libname}${release}${shared_ext}$major'
10674 esac
10675 # HP-UX runs *really* slowly unless shared libraries are mode 555.
10676 postinstall_cmds='chmod 555 $lib'
10679 interix3*)
10680 version_type=linux
10681 need_lib_prefix=no
10682 need_version=no
10683 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10684 soname_spec='${libname}${release}${shared_ext}$major'
10685 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10686 shlibpath_var=LD_LIBRARY_PATH
10687 shlibpath_overrides_runpath=no
10688 hardcode_into_libs=yes
10691 irix5* | irix6* | nonstopux*)
10692 case $host_os in
10693 nonstopux*) version_type=nonstopux ;;
10695 if test "$lt_cv_prog_gnu_ld" = yes; then
10696 version_type=linux
10697 else
10698 version_type=irix
10699 fi ;;
10700 esac
10701 need_lib_prefix=no
10702 need_version=no
10703 soname_spec='${libname}${release}${shared_ext}$major'
10704 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10705 case $host_os in
10706 irix5* | nonstopux*)
10707 libsuff= shlibsuff=
10710 case $LD in # libtool.m4 will add one of these switches to LD
10711 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10712 libsuff= shlibsuff= libmagic=32-bit;;
10713 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10714 libsuff=32 shlibsuff=N32 libmagic=N32;;
10715 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10716 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10717 *) libsuff= shlibsuff= libmagic=never-match;;
10718 esac
10720 esac
10721 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10722 shlibpath_overrides_runpath=no
10723 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10724 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10725 hardcode_into_libs=yes
10728 # No shared lib support for Linux oldld, aout, or coff.
10729 linux*oldld* | linux*aout* | linux*coff*)
10730 dynamic_linker=no
10733 # This must be Linux ELF.
10734 linux* | k*bsd*-gnu)
10735 version_type=linux
10736 need_lib_prefix=no
10737 need_version=no
10738 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10739 soname_spec='${libname}${release}${shared_ext}$major'
10740 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10741 shlibpath_var=LD_LIBRARY_PATH
10742 shlibpath_overrides_runpath=no
10743 # This implies no fast_install, which is unacceptable.
10744 # Some rework will be needed to allow for fast_install
10745 # before this can be enabled.
10746 hardcode_into_libs=yes
10748 # Append ld.so.conf contents to the search path
10749 if test -f /etc/ld.so.conf; then
10750 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
10751 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10754 # We used to test for /lib/ld.so.1 and disable shared libraries on
10755 # powerpc, because MkLinux only supported shared libraries with the
10756 # GNU dynamic linker. Since this was broken with cross compilers,
10757 # most powerpc-linux boxes support dynamic linking these days and
10758 # people can always --disable-shared, the test was removed, and we
10759 # assume the GNU/Linux dynamic linker is in use.
10760 dynamic_linker='GNU/Linux ld.so'
10763 netbsdelf*-gnu)
10764 version_type=linux
10765 need_lib_prefix=no
10766 need_version=no
10767 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10768 soname_spec='${libname}${release}${shared_ext}$major'
10769 shlibpath_var=LD_LIBRARY_PATH
10770 shlibpath_overrides_runpath=no
10771 hardcode_into_libs=yes
10772 dynamic_linker='NetBSD ld.elf_so'
10775 netbsd*)
10776 version_type=sunos
10777 need_lib_prefix=no
10778 need_version=no
10779 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10780 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10781 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10782 dynamic_linker='NetBSD (a.out) ld.so'
10783 else
10784 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10785 soname_spec='${libname}${release}${shared_ext}$major'
10786 dynamic_linker='NetBSD ld.elf_so'
10788 shlibpath_var=LD_LIBRARY_PATH
10789 shlibpath_overrides_runpath=yes
10790 hardcode_into_libs=yes
10793 newsos6)
10794 version_type=linux
10795 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10796 shlibpath_var=LD_LIBRARY_PATH
10797 shlibpath_overrides_runpath=yes
10800 nto-qnx*)
10801 version_type=linux
10802 need_lib_prefix=no
10803 need_version=no
10804 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10805 soname_spec='${libname}${release}${shared_ext}$major'
10806 shlibpath_var=LD_LIBRARY_PATH
10807 shlibpath_overrides_runpath=yes
10810 openbsd*)
10811 version_type=sunos
10812 sys_lib_dlsearch_path_spec="/usr/lib"
10813 need_lib_prefix=no
10814 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10815 case $host_os in
10816 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10817 *) need_version=no ;;
10818 esac
10819 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10820 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10821 shlibpath_var=LD_LIBRARY_PATH
10822 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10823 case $host_os in
10824 openbsd2.[89] | openbsd2.[89].*)
10825 shlibpath_overrides_runpath=no
10828 shlibpath_overrides_runpath=yes
10830 esac
10831 else
10832 shlibpath_overrides_runpath=yes
10836 os2*)
10837 libname_spec='$name'
10838 shrext_cmds=".dll"
10839 need_lib_prefix=no
10840 library_names_spec='$libname${shared_ext} $libname.a'
10841 dynamic_linker='OS/2 ld.exe'
10842 shlibpath_var=LIBPATH
10845 osf3* | osf4* | osf5*)
10846 version_type=osf
10847 need_lib_prefix=no
10848 need_version=no
10849 soname_spec='${libname}${release}${shared_ext}$major'
10850 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10851 shlibpath_var=LD_LIBRARY_PATH
10852 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10853 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10856 solaris*)
10857 version_type=linux
10858 need_lib_prefix=no
10859 need_version=no
10860 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10861 soname_spec='${libname}${release}${shared_ext}$major'
10862 shlibpath_var=LD_LIBRARY_PATH
10863 shlibpath_overrides_runpath=yes
10864 hardcode_into_libs=yes
10865 # ldd complains unless libraries are executable
10866 postinstall_cmds='chmod +x $lib'
10869 sunos4*)
10870 version_type=sunos
10871 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10872 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10873 shlibpath_var=LD_LIBRARY_PATH
10874 shlibpath_overrides_runpath=yes
10875 if test "$with_gnu_ld" = yes; then
10876 need_lib_prefix=no
10878 need_version=yes
10881 sysv4 | sysv4.3*)
10882 version_type=linux
10883 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10884 soname_spec='${libname}${release}${shared_ext}$major'
10885 shlibpath_var=LD_LIBRARY_PATH
10886 case $host_vendor in
10887 sni)
10888 shlibpath_overrides_runpath=no
10889 need_lib_prefix=no
10890 export_dynamic_flag_spec='${wl}-Blargedynsym'
10891 runpath_var=LD_RUN_PATH
10893 siemens)
10894 need_lib_prefix=no
10896 motorola)
10897 need_lib_prefix=no
10898 need_version=no
10899 shlibpath_overrides_runpath=no
10900 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10902 esac
10905 sysv4*MP*)
10906 if test -d /usr/nec ;then
10907 version_type=linux
10908 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10909 soname_spec='$libname${shared_ext}.$major'
10910 shlibpath_var=LD_LIBRARY_PATH
10914 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10915 version_type=freebsd-elf
10916 need_lib_prefix=no
10917 need_version=no
10918 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10919 soname_spec='${libname}${release}${shared_ext}$major'
10920 shlibpath_var=LD_LIBRARY_PATH
10921 hardcode_into_libs=yes
10922 if test "$with_gnu_ld" = yes; then
10923 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10924 shlibpath_overrides_runpath=no
10925 else
10926 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10927 shlibpath_overrides_runpath=yes
10928 case $host_os in
10929 sco3.2v5*)
10930 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10932 esac
10934 sys_lib_dlsearch_path_spec='/usr/lib'
10937 uts4*)
10938 version_type=linux
10939 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10940 soname_spec='${libname}${release}${shared_ext}$major'
10941 shlibpath_var=LD_LIBRARY_PATH
10945 dynamic_linker=no
10947 esac
10948 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10949 echo "${ECHO_T}$dynamic_linker" >&6; }
10950 test "$dynamic_linker" = no && can_build_shared=no
10952 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10953 if test "$GCC" = yes; then
10954 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10957 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10958 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
10959 hardcode_action=
10960 if test -n "$hardcode_libdir_flag_spec" || \
10961 test -n "$runpath_var" || \
10962 test "X$hardcode_automatic" = "Xyes" ; then
10964 # We can hardcode non-existant directories.
10965 if test "$hardcode_direct" != no &&
10966 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10967 # have to relink, otherwise we might link with an installed library
10968 # when we should be linking with a yet-to-be-installed one
10969 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
10970 test "$hardcode_minus_L" != no; then
10971 # Linking always hardcodes the temporary library directory.
10972 hardcode_action=relink
10973 else
10974 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10975 hardcode_action=immediate
10977 else
10978 # We cannot hardcode anything, or else we can only hardcode existing
10979 # directories.
10980 hardcode_action=unsupported
10982 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
10983 echo "${ECHO_T}$hardcode_action" >&6; }
10985 if test "$hardcode_action" = relink; then
10986 # Fast installation is not supported
10987 enable_fast_install=no
10988 elif test "$shlibpath_overrides_runpath" = yes ||
10989 test "$enable_shared" = no; then
10990 # Fast installation is not necessary
10991 enable_fast_install=needless
10994 striplib=
10995 old_striplib=
10996 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10997 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
10998 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
10999 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11000 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11001 { echo "$as_me:$LINENO: result: yes" >&5
11002 echo "${ECHO_T}yes" >&6; }
11003 else
11004 # FIXME - insert some real tests, host_os isn't really good enough
11005 case $host_os in
11006 darwin*)
11007 if test -n "$STRIP" ; then
11008 striplib="$STRIP -x"
11009 { echo "$as_me:$LINENO: result: yes" >&5
11010 echo "${ECHO_T}yes" >&6; }
11011 else
11012 { echo "$as_me:$LINENO: result: no" >&5
11013 echo "${ECHO_T}no" >&6; }
11017 { echo "$as_me:$LINENO: result: no" >&5
11018 echo "${ECHO_T}no" >&6; }
11020 esac
11023 if test "x$enable_dlopen" != xyes; then
11024 enable_dlopen=unknown
11025 enable_dlopen_self=unknown
11026 enable_dlopen_self_static=unknown
11027 else
11028 lt_cv_dlopen=no
11029 lt_cv_dlopen_libs=
11031 case $host_os in
11032 beos*)
11033 lt_cv_dlopen="load_add_on"
11034 lt_cv_dlopen_libs=
11035 lt_cv_dlopen_self=yes
11038 mingw* | pw32*)
11039 lt_cv_dlopen="LoadLibrary"
11040 lt_cv_dlopen_libs=
11043 cygwin*)
11044 lt_cv_dlopen="dlopen"
11045 lt_cv_dlopen_libs=
11048 darwin*)
11049 # if libdl is installed we need to link against it
11050 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11051 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
11052 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11053 echo $ECHO_N "(cached) $ECHO_C" >&6
11054 else
11055 ac_check_lib_save_LIBS=$LIBS
11056 LIBS="-ldl $LIBS"
11057 cat >conftest.$ac_ext <<_ACEOF
11058 /* confdefs.h. */
11059 _ACEOF
11060 cat confdefs.h >>conftest.$ac_ext
11061 cat >>conftest.$ac_ext <<_ACEOF
11062 /* end confdefs.h. */
11064 /* Override any GCC internal prototype to avoid an error.
11065 Use char because int might match the return type of a GCC
11066 builtin and then its argument prototype would still apply. */
11067 #ifdef __cplusplus
11068 extern "C"
11069 #endif
11070 char dlopen ();
11072 main ()
11074 return dlopen ();
11076 return 0;
11078 _ACEOF
11079 rm -f conftest.$ac_objext conftest$ac_exeext
11080 if { (ac_try="$ac_link"
11081 case "(($ac_try" in
11082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11083 *) ac_try_echo=$ac_try;;
11084 esac
11085 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11086 (eval "$ac_link") 2>conftest.er1
11087 ac_status=$?
11088 grep -v '^ *+' conftest.er1 >conftest.err
11089 rm -f conftest.er1
11090 cat conftest.err >&5
11091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11092 (exit $ac_status); } && {
11093 test -z "$ac_c_werror_flag" ||
11094 test ! -s conftest.err
11095 } && test -s conftest$ac_exeext &&
11096 $as_test_x conftest$ac_exeext; then
11097 ac_cv_lib_dl_dlopen=yes
11098 else
11099 echo "$as_me: failed program was:" >&5
11100 sed 's/^/| /' conftest.$ac_ext >&5
11102 ac_cv_lib_dl_dlopen=no
11105 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11106 conftest$ac_exeext conftest.$ac_ext
11107 LIBS=$ac_check_lib_save_LIBS
11109 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11110 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
11111 if test $ac_cv_lib_dl_dlopen = yes; then
11112 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11113 else
11115 lt_cv_dlopen="dyld"
11116 lt_cv_dlopen_libs=
11117 lt_cv_dlopen_self=yes
11124 { echo "$as_me:$LINENO: checking for shl_load" >&5
11125 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
11126 if test "${ac_cv_func_shl_load+set}" = set; then
11127 echo $ECHO_N "(cached) $ECHO_C" >&6
11128 else
11129 cat >conftest.$ac_ext <<_ACEOF
11130 /* confdefs.h. */
11131 _ACEOF
11132 cat confdefs.h >>conftest.$ac_ext
11133 cat >>conftest.$ac_ext <<_ACEOF
11134 /* end confdefs.h. */
11135 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
11136 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11137 #define shl_load innocuous_shl_load
11139 /* System header to define __stub macros and hopefully few prototypes,
11140 which can conflict with char shl_load (); below.
11141 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11142 <limits.h> exists even on freestanding compilers. */
11144 #ifdef __STDC__
11145 # include <limits.h>
11146 #else
11147 # include <assert.h>
11148 #endif
11150 #undef shl_load
11152 /* Override any GCC internal prototype to avoid an error.
11153 Use char because int might match the return type of a GCC
11154 builtin and then its argument prototype would still apply. */
11155 #ifdef __cplusplus
11156 extern "C"
11157 #endif
11158 char shl_load ();
11159 /* The GNU C library defines this for functions which it implements
11160 to always fail with ENOSYS. Some functions are actually named
11161 something starting with __ and the normal name is an alias. */
11162 #if defined __stub_shl_load || defined __stub___shl_load
11163 choke me
11164 #endif
11167 main ()
11169 return shl_load ();
11171 return 0;
11173 _ACEOF
11174 rm -f conftest.$ac_objext conftest$ac_exeext
11175 if { (ac_try="$ac_link"
11176 case "(($ac_try" in
11177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11178 *) ac_try_echo=$ac_try;;
11179 esac
11180 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11181 (eval "$ac_link") 2>conftest.er1
11182 ac_status=$?
11183 grep -v '^ *+' conftest.er1 >conftest.err
11184 rm -f conftest.er1
11185 cat conftest.err >&5
11186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11187 (exit $ac_status); } && {
11188 test -z "$ac_c_werror_flag" ||
11189 test ! -s conftest.err
11190 } && test -s conftest$ac_exeext &&
11191 $as_test_x conftest$ac_exeext; then
11192 ac_cv_func_shl_load=yes
11193 else
11194 echo "$as_me: failed program was:" >&5
11195 sed 's/^/| /' conftest.$ac_ext >&5
11197 ac_cv_func_shl_load=no
11200 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11201 conftest$ac_exeext conftest.$ac_ext
11203 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
11204 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
11205 if test $ac_cv_func_shl_load = yes; then
11206 lt_cv_dlopen="shl_load"
11207 else
11208 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
11209 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
11210 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
11211 echo $ECHO_N "(cached) $ECHO_C" >&6
11212 else
11213 ac_check_lib_save_LIBS=$LIBS
11214 LIBS="-ldld $LIBS"
11215 cat >conftest.$ac_ext <<_ACEOF
11216 /* confdefs.h. */
11217 _ACEOF
11218 cat confdefs.h >>conftest.$ac_ext
11219 cat >>conftest.$ac_ext <<_ACEOF
11220 /* end confdefs.h. */
11222 /* Override any GCC internal prototype to avoid an error.
11223 Use char because int might match the return type of a GCC
11224 builtin and then its argument prototype would still apply. */
11225 #ifdef __cplusplus
11226 extern "C"
11227 #endif
11228 char shl_load ();
11230 main ()
11232 return shl_load ();
11234 return 0;
11236 _ACEOF
11237 rm -f conftest.$ac_objext conftest$ac_exeext
11238 if { (ac_try="$ac_link"
11239 case "(($ac_try" in
11240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11241 *) ac_try_echo=$ac_try;;
11242 esac
11243 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11244 (eval "$ac_link") 2>conftest.er1
11245 ac_status=$?
11246 grep -v '^ *+' conftest.er1 >conftest.err
11247 rm -f conftest.er1
11248 cat conftest.err >&5
11249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11250 (exit $ac_status); } && {
11251 test -z "$ac_c_werror_flag" ||
11252 test ! -s conftest.err
11253 } && test -s conftest$ac_exeext &&
11254 $as_test_x conftest$ac_exeext; then
11255 ac_cv_lib_dld_shl_load=yes
11256 else
11257 echo "$as_me: failed program was:" >&5
11258 sed 's/^/| /' conftest.$ac_ext >&5
11260 ac_cv_lib_dld_shl_load=no
11263 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11264 conftest$ac_exeext conftest.$ac_ext
11265 LIBS=$ac_check_lib_save_LIBS
11267 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
11268 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
11269 if test $ac_cv_lib_dld_shl_load = yes; then
11270 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
11271 else
11272 { echo "$as_me:$LINENO: checking for dlopen" >&5
11273 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
11274 if test "${ac_cv_func_dlopen+set}" = set; then
11275 echo $ECHO_N "(cached) $ECHO_C" >&6
11276 else
11277 cat >conftest.$ac_ext <<_ACEOF
11278 /* confdefs.h. */
11279 _ACEOF
11280 cat confdefs.h >>conftest.$ac_ext
11281 cat >>conftest.$ac_ext <<_ACEOF
11282 /* end confdefs.h. */
11283 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
11284 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11285 #define dlopen innocuous_dlopen
11287 /* System header to define __stub macros and hopefully few prototypes,
11288 which can conflict with char dlopen (); below.
11289 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11290 <limits.h> exists even on freestanding compilers. */
11292 #ifdef __STDC__
11293 # include <limits.h>
11294 #else
11295 # include <assert.h>
11296 #endif
11298 #undef dlopen
11300 /* Override any GCC internal prototype to avoid an error.
11301 Use char because int might match the return type of a GCC
11302 builtin and then its argument prototype would still apply. */
11303 #ifdef __cplusplus
11304 extern "C"
11305 #endif
11306 char dlopen ();
11307 /* The GNU C library defines this for functions which it implements
11308 to always fail with ENOSYS. Some functions are actually named
11309 something starting with __ and the normal name is an alias. */
11310 #if defined __stub_dlopen || defined __stub___dlopen
11311 choke me
11312 #endif
11315 main ()
11317 return dlopen ();
11319 return 0;
11321 _ACEOF
11322 rm -f conftest.$ac_objext conftest$ac_exeext
11323 if { (ac_try="$ac_link"
11324 case "(($ac_try" in
11325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11326 *) ac_try_echo=$ac_try;;
11327 esac
11328 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11329 (eval "$ac_link") 2>conftest.er1
11330 ac_status=$?
11331 grep -v '^ *+' conftest.er1 >conftest.err
11332 rm -f conftest.er1
11333 cat conftest.err >&5
11334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11335 (exit $ac_status); } && {
11336 test -z "$ac_c_werror_flag" ||
11337 test ! -s conftest.err
11338 } && test -s conftest$ac_exeext &&
11339 $as_test_x conftest$ac_exeext; then
11340 ac_cv_func_dlopen=yes
11341 else
11342 echo "$as_me: failed program was:" >&5
11343 sed 's/^/| /' conftest.$ac_ext >&5
11345 ac_cv_func_dlopen=no
11348 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11349 conftest$ac_exeext conftest.$ac_ext
11351 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
11352 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
11353 if test $ac_cv_func_dlopen = yes; then
11354 lt_cv_dlopen="dlopen"
11355 else
11356 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11357 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
11358 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11359 echo $ECHO_N "(cached) $ECHO_C" >&6
11360 else
11361 ac_check_lib_save_LIBS=$LIBS
11362 LIBS="-ldl $LIBS"
11363 cat >conftest.$ac_ext <<_ACEOF
11364 /* confdefs.h. */
11365 _ACEOF
11366 cat confdefs.h >>conftest.$ac_ext
11367 cat >>conftest.$ac_ext <<_ACEOF
11368 /* end confdefs.h. */
11370 /* Override any GCC internal prototype to avoid an error.
11371 Use char because int might match the return type of a GCC
11372 builtin and then its argument prototype would still apply. */
11373 #ifdef __cplusplus
11374 extern "C"
11375 #endif
11376 char dlopen ();
11378 main ()
11380 return dlopen ();
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_c_werror_flag" ||
11400 test ! -s conftest.err
11401 } && test -s conftest$ac_exeext &&
11402 $as_test_x conftest$ac_exeext; then
11403 ac_cv_lib_dl_dlopen=yes
11404 else
11405 echo "$as_me: failed program was:" >&5
11406 sed 's/^/| /' conftest.$ac_ext >&5
11408 ac_cv_lib_dl_dlopen=no
11411 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11412 conftest$ac_exeext conftest.$ac_ext
11413 LIBS=$ac_check_lib_save_LIBS
11415 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11416 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
11417 if test $ac_cv_lib_dl_dlopen = yes; then
11418 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11419 else
11420 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
11421 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
11422 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
11423 echo $ECHO_N "(cached) $ECHO_C" >&6
11424 else
11425 ac_check_lib_save_LIBS=$LIBS
11426 LIBS="-lsvld $LIBS"
11427 cat >conftest.$ac_ext <<_ACEOF
11428 /* confdefs.h. */
11429 _ACEOF
11430 cat confdefs.h >>conftest.$ac_ext
11431 cat >>conftest.$ac_ext <<_ACEOF
11432 /* end confdefs.h. */
11434 /* Override any GCC internal prototype to avoid an error.
11435 Use char because int might match the return type of a GCC
11436 builtin and then its argument prototype would still apply. */
11437 #ifdef __cplusplus
11438 extern "C"
11439 #endif
11440 char dlopen ();
11442 main ()
11444 return dlopen ();
11446 return 0;
11448 _ACEOF
11449 rm -f conftest.$ac_objext conftest$ac_exeext
11450 if { (ac_try="$ac_link"
11451 case "(($ac_try" in
11452 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11453 *) ac_try_echo=$ac_try;;
11454 esac
11455 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11456 (eval "$ac_link") 2>conftest.er1
11457 ac_status=$?
11458 grep -v '^ *+' conftest.er1 >conftest.err
11459 rm -f conftest.er1
11460 cat conftest.err >&5
11461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11462 (exit $ac_status); } && {
11463 test -z "$ac_c_werror_flag" ||
11464 test ! -s conftest.err
11465 } && test -s conftest$ac_exeext &&
11466 $as_test_x conftest$ac_exeext; then
11467 ac_cv_lib_svld_dlopen=yes
11468 else
11469 echo "$as_me: failed program was:" >&5
11470 sed 's/^/| /' conftest.$ac_ext >&5
11472 ac_cv_lib_svld_dlopen=no
11475 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11476 conftest$ac_exeext conftest.$ac_ext
11477 LIBS=$ac_check_lib_save_LIBS
11479 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
11480 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
11481 if test $ac_cv_lib_svld_dlopen = yes; then
11482 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11483 else
11484 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
11485 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
11486 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
11487 echo $ECHO_N "(cached) $ECHO_C" >&6
11488 else
11489 ac_check_lib_save_LIBS=$LIBS
11490 LIBS="-ldld $LIBS"
11491 cat >conftest.$ac_ext <<_ACEOF
11492 /* confdefs.h. */
11493 _ACEOF
11494 cat confdefs.h >>conftest.$ac_ext
11495 cat >>conftest.$ac_ext <<_ACEOF
11496 /* end confdefs.h. */
11498 /* Override any GCC internal prototype to avoid an error.
11499 Use char because int might match the return type of a GCC
11500 builtin and then its argument prototype would still apply. */
11501 #ifdef __cplusplus
11502 extern "C"
11503 #endif
11504 char dld_link ();
11506 main ()
11508 return dld_link ();
11510 return 0;
11512 _ACEOF
11513 rm -f conftest.$ac_objext conftest$ac_exeext
11514 if { (ac_try="$ac_link"
11515 case "(($ac_try" in
11516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11517 *) ac_try_echo=$ac_try;;
11518 esac
11519 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11520 (eval "$ac_link") 2>conftest.er1
11521 ac_status=$?
11522 grep -v '^ *+' conftest.er1 >conftest.err
11523 rm -f conftest.er1
11524 cat conftest.err >&5
11525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11526 (exit $ac_status); } && {
11527 test -z "$ac_c_werror_flag" ||
11528 test ! -s conftest.err
11529 } && test -s conftest$ac_exeext &&
11530 $as_test_x conftest$ac_exeext; then
11531 ac_cv_lib_dld_dld_link=yes
11532 else
11533 echo "$as_me: failed program was:" >&5
11534 sed 's/^/| /' conftest.$ac_ext >&5
11536 ac_cv_lib_dld_dld_link=no
11539 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11540 conftest$ac_exeext conftest.$ac_ext
11541 LIBS=$ac_check_lib_save_LIBS
11543 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
11544 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
11545 if test $ac_cv_lib_dld_dld_link = yes; then
11546 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
11565 esac
11567 if test "x$lt_cv_dlopen" != xno; then
11568 enable_dlopen=yes
11569 else
11570 enable_dlopen=no
11573 case $lt_cv_dlopen in
11574 dlopen)
11575 save_CPPFLAGS="$CPPFLAGS"
11576 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11578 save_LDFLAGS="$LDFLAGS"
11579 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11581 save_LIBS="$LIBS"
11582 LIBS="$lt_cv_dlopen_libs $LIBS"
11584 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
11585 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
11586 if test "${lt_cv_dlopen_self+set}" = set; then
11587 echo $ECHO_N "(cached) $ECHO_C" >&6
11588 else
11589 if test "$cross_compiling" = yes; then :
11590 lt_cv_dlopen_self=cross
11591 else
11592 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11593 lt_status=$lt_dlunknown
11594 cat > conftest.$ac_ext <<EOF
11595 #line 11595 "configure"
11596 #include "confdefs.h"
11598 #if HAVE_DLFCN_H
11599 #include <dlfcn.h>
11600 #endif
11602 #include <stdio.h>
11604 #ifdef RTLD_GLOBAL
11605 # define LT_DLGLOBAL RTLD_GLOBAL
11606 #else
11607 # ifdef DL_GLOBAL
11608 # define LT_DLGLOBAL DL_GLOBAL
11609 # else
11610 # define LT_DLGLOBAL 0
11611 # endif
11612 #endif
11614 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11615 find out it does not work in some platform. */
11616 #ifndef LT_DLLAZY_OR_NOW
11617 # ifdef RTLD_LAZY
11618 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11619 # else
11620 # ifdef DL_LAZY
11621 # define LT_DLLAZY_OR_NOW DL_LAZY
11622 # else
11623 # ifdef RTLD_NOW
11624 # define LT_DLLAZY_OR_NOW RTLD_NOW
11625 # else
11626 # ifdef DL_NOW
11627 # define LT_DLLAZY_OR_NOW DL_NOW
11628 # else
11629 # define LT_DLLAZY_OR_NOW 0
11630 # endif
11631 # endif
11632 # endif
11633 # endif
11634 #endif
11636 #ifdef __cplusplus
11637 extern "C" void exit (int);
11638 #endif
11640 void fnord() { int i=42;}
11641 int main ()
11643 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11644 int status = $lt_dlunknown;
11646 if (self)
11648 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11649 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11650 /* dlclose (self); */
11652 else
11653 puts (dlerror ());
11655 exit (status);
11658 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11659 (eval $ac_link) 2>&5
11660 ac_status=$?
11661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11662 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11663 (./conftest; exit; ) >&5 2>/dev/null
11664 lt_status=$?
11665 case x$lt_status in
11666 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11667 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11668 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11669 esac
11670 else :
11671 # compilation failed
11672 lt_cv_dlopen_self=no
11675 rm -fr conftest*
11679 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
11680 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
11682 if test "x$lt_cv_dlopen_self" = xyes; then
11683 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11684 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
11685 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
11686 if test "${lt_cv_dlopen_self_static+set}" = set; then
11687 echo $ECHO_N "(cached) $ECHO_C" >&6
11688 else
11689 if test "$cross_compiling" = yes; then :
11690 lt_cv_dlopen_self_static=cross
11691 else
11692 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11693 lt_status=$lt_dlunknown
11694 cat > conftest.$ac_ext <<EOF
11695 #line 11695 "configure"
11696 #include "confdefs.h"
11698 #if HAVE_DLFCN_H
11699 #include <dlfcn.h>
11700 #endif
11702 #include <stdio.h>
11704 #ifdef RTLD_GLOBAL
11705 # define LT_DLGLOBAL RTLD_GLOBAL
11706 #else
11707 # ifdef DL_GLOBAL
11708 # define LT_DLGLOBAL DL_GLOBAL
11709 # else
11710 # define LT_DLGLOBAL 0
11711 # endif
11712 #endif
11714 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11715 find out it does not work in some platform. */
11716 #ifndef LT_DLLAZY_OR_NOW
11717 # ifdef RTLD_LAZY
11718 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11719 # else
11720 # ifdef DL_LAZY
11721 # define LT_DLLAZY_OR_NOW DL_LAZY
11722 # else
11723 # ifdef RTLD_NOW
11724 # define LT_DLLAZY_OR_NOW RTLD_NOW
11725 # else
11726 # ifdef DL_NOW
11727 # define LT_DLLAZY_OR_NOW DL_NOW
11728 # else
11729 # define LT_DLLAZY_OR_NOW 0
11730 # endif
11731 # endif
11732 # endif
11733 # endif
11734 #endif
11736 #ifdef __cplusplus
11737 extern "C" void exit (int);
11738 #endif
11740 void fnord() { int i=42;}
11741 int main ()
11743 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11744 int status = $lt_dlunknown;
11746 if (self)
11748 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11749 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11750 /* dlclose (self); */
11752 else
11753 puts (dlerror ());
11755 exit (status);
11758 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11759 (eval $ac_link) 2>&5
11760 ac_status=$?
11761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11762 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11763 (./conftest; exit; ) >&5 2>/dev/null
11764 lt_status=$?
11765 case x$lt_status in
11766 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11767 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11768 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11769 esac
11770 else :
11771 # compilation failed
11772 lt_cv_dlopen_self_static=no
11775 rm -fr conftest*
11779 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
11780 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
11783 CPPFLAGS="$save_CPPFLAGS"
11784 LDFLAGS="$save_LDFLAGS"
11785 LIBS="$save_LIBS"
11787 esac
11789 case $lt_cv_dlopen_self in
11790 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11791 *) enable_dlopen_self=unknown ;;
11792 esac
11794 case $lt_cv_dlopen_self_static in
11795 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11796 *) enable_dlopen_self_static=unknown ;;
11797 esac
11801 # Report which library types will actually be built
11802 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
11803 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
11804 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
11805 echo "${ECHO_T}$can_build_shared" >&6; }
11807 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
11808 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
11809 test "$can_build_shared" = "no" && enable_shared=no
11811 # On AIX, shared libraries and static libraries use the same namespace, and
11812 # are all built from PIC.
11813 case $host_os in
11814 aix3*)
11815 test "$enable_shared" = yes && enable_static=no
11816 if test -n "$RANLIB"; then
11817 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11818 postinstall_cmds='$RANLIB $lib'
11822 aix4* | aix5*)
11823 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11824 test "$enable_shared" = yes && enable_static=no
11827 esac
11828 { echo "$as_me:$LINENO: result: $enable_shared" >&5
11829 echo "${ECHO_T}$enable_shared" >&6; }
11831 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
11832 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
11833 # Make sure either enable_shared or enable_static is yes.
11834 test "$enable_shared" = yes || enable_static=yes
11835 { echo "$as_me:$LINENO: result: $enable_static" >&5
11836 echo "${ECHO_T}$enable_static" >&6; }
11838 # The else clause should only fire when bootstrapping the
11839 # libtool distribution, otherwise you forgot to ship ltmain.sh
11840 # with your package, and you will get complaints that there are
11841 # no rules to generate ltmain.sh.
11842 if test -f "$ltmain"; then
11843 # See if we are running on zsh, and set the options which allow our commands through
11844 # without removal of \ escapes.
11845 if test -n "${ZSH_VERSION+set}" ; then
11846 setopt NO_GLOB_SUBST
11848 # Now quote all the things that may contain metacharacters while being
11849 # careful not to overquote the AC_SUBSTed values. We take copies of the
11850 # variables and quote the copies for generation of the libtool script.
11851 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
11852 SED SHELL STRIP \
11853 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
11854 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
11855 deplibs_check_method reload_flag reload_cmds need_locks \
11856 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
11857 lt_cv_sys_global_symbol_to_c_name_address \
11858 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
11859 old_postinstall_cmds old_postuninstall_cmds \
11860 compiler \
11861 CC \
11862 LD \
11863 lt_prog_compiler_wl \
11864 lt_prog_compiler_pic \
11865 lt_prog_compiler_static \
11866 lt_prog_compiler_no_builtin_flag \
11867 export_dynamic_flag_spec \
11868 thread_safe_flag_spec \
11869 whole_archive_flag_spec \
11870 enable_shared_with_static_runtimes \
11871 old_archive_cmds \
11872 old_archive_from_new_cmds \
11873 predep_objects \
11874 postdep_objects \
11875 predeps \
11876 postdeps \
11877 compiler_lib_search_path \
11878 archive_cmds \
11879 archive_expsym_cmds \
11880 postinstall_cmds \
11881 postuninstall_cmds \
11882 old_archive_from_expsyms_cmds \
11883 allow_undefined_flag \
11884 no_undefined_flag \
11885 export_symbols_cmds \
11886 hardcode_libdir_flag_spec \
11887 hardcode_libdir_flag_spec_ld \
11888 hardcode_libdir_separator \
11889 hardcode_automatic \
11890 module_cmds \
11891 module_expsym_cmds \
11892 lt_cv_prog_compiler_c_o \
11893 exclude_expsyms \
11894 include_expsyms; do
11896 case $var in
11897 old_archive_cmds | \
11898 old_archive_from_new_cmds | \
11899 archive_cmds | \
11900 archive_expsym_cmds | \
11901 module_cmds | \
11902 module_expsym_cmds | \
11903 old_archive_from_expsyms_cmds | \
11904 export_symbols_cmds | \
11905 extract_expsyms_cmds | reload_cmds | finish_cmds | \
11906 postinstall_cmds | postuninstall_cmds | \
11907 old_postinstall_cmds | old_postuninstall_cmds | \
11908 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
11909 # Double-quote double-evaled strings.
11910 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
11913 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
11915 esac
11916 done
11918 case $lt_echo in
11919 *'\$0 --fallback-echo"')
11920 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
11922 esac
11924 cfgfile="${ofile}T"
11925 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
11926 $rm -f "$cfgfile"
11927 { echo "$as_me:$LINENO: creating $ofile" >&5
11928 echo "$as_me: creating $ofile" >&6;}
11930 cat <<__EOF__ >> "$cfgfile"
11931 #! $SHELL
11933 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
11934 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
11935 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
11937 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
11938 # Free Software Foundation, Inc.
11940 # This file is part of GNU Libtool:
11941 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
11943 # This program is free software; you can redistribute it and/or modify
11944 # it under the terms of the GNU General Public License as published by
11945 # the Free Software Foundation; either version 2 of the License, or
11946 # (at your option) any later version.
11948 # This program is distributed in the hope that it will be useful, but
11949 # WITHOUT ANY WARRANTY; without even the implied warranty of
11950 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11951 # General Public License for more details.
11953 # You should have received a copy of the GNU General Public License
11954 # along with this program; if not, write to the Free Software
11955 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
11957 # As a special exception to the GNU General Public License, if you
11958 # distribute this file as part of a program that contains a
11959 # configuration script generated by Autoconf, you may include it under
11960 # the same distribution terms that you use for the rest of that program.
11962 # A sed program that does not truncate output.
11963 SED=$lt_SED
11965 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
11966 Xsed="$SED -e 1s/^X//"
11968 # The HP-UX ksh and POSIX shell print the target directory to stdout
11969 # if CDPATH is set.
11970 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11972 # The names of the tagged configurations supported by this script.
11973 available_tags=
11975 # ### BEGIN LIBTOOL CONFIG
11977 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
11979 # Shell to use when invoking shell scripts.
11980 SHELL=$lt_SHELL
11982 # Whether or not to build shared libraries.
11983 build_libtool_libs=$enable_shared
11985 # Whether or not to build static libraries.
11986 build_old_libs=$enable_static
11988 # Whether or not to add -lc for building shared libraries.
11989 build_libtool_need_lc=$archive_cmds_need_lc
11991 # Whether or not to disallow shared libs when runtime libs are static
11992 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
11994 # Whether or not to optimize for fast installation.
11995 fast_install=$enable_fast_install
11997 # The host system.
11998 host_alias=$host_alias
11999 host=$host
12000 host_os=$host_os
12002 # The build system.
12003 build_alias=$build_alias
12004 build=$build
12005 build_os=$build_os
12007 # An echo program that does not interpret backslashes.
12008 echo=$lt_echo
12010 # The archiver.
12011 AR=$lt_AR
12012 AR_FLAGS=$lt_AR_FLAGS
12014 # A C compiler.
12015 LTCC=$lt_LTCC
12017 # LTCC compiler flags.
12018 LTCFLAGS=$lt_LTCFLAGS
12020 # A language-specific compiler.
12021 CC=$lt_compiler
12023 # Is the compiler the GNU C compiler?
12024 with_gcc=$GCC
12026 # An ERE matcher.
12027 EGREP=$lt_EGREP
12029 # The linker used to build libraries.
12030 LD=$lt_LD
12032 # Whether we need hard or soft links.
12033 LN_S=$lt_LN_S
12035 # A BSD-compatible nm program.
12036 NM=$lt_NM
12038 # A symbol stripping program
12039 STRIP=$lt_STRIP
12041 # Used to examine libraries when file_magic_cmd begins "file"
12042 MAGIC_CMD=$MAGIC_CMD
12044 # Used on cygwin: DLL creation program.
12045 DLLTOOL="$DLLTOOL"
12047 # Used on cygwin: object dumper.
12048 OBJDUMP="$OBJDUMP"
12050 # Used on cygwin: assembler.
12051 AS="$AS"
12053 # The name of the directory that contains temporary libtool files.
12054 objdir=$objdir
12056 # How to create reloadable object files.
12057 reload_flag=$lt_reload_flag
12058 reload_cmds=$lt_reload_cmds
12060 # How to pass a linker flag through the compiler.
12061 wl=$lt_lt_prog_compiler_wl
12063 # Object file suffix (normally "o").
12064 objext="$ac_objext"
12066 # Old archive suffix (normally "a").
12067 libext="$libext"
12069 # Shared library suffix (normally ".so").
12070 shrext_cmds='$shrext_cmds'
12072 # Executable file suffix (normally "").
12073 exeext="$exeext"
12075 # Additional compiler flags for building library objects.
12076 pic_flag=$lt_lt_prog_compiler_pic
12077 pic_mode=$pic_mode
12079 # What is the maximum length of a command?
12080 max_cmd_len=$lt_cv_sys_max_cmd_len
12082 # Does compiler simultaneously support -c and -o options?
12083 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
12085 # Must we lock files when doing compilation?
12086 need_locks=$lt_need_locks
12088 # Do we need the lib prefix for modules?
12089 need_lib_prefix=$need_lib_prefix
12091 # Do we need a version for libraries?
12092 need_version=$need_version
12094 # Whether dlopen is supported.
12095 dlopen_support=$enable_dlopen
12097 # Whether dlopen of programs is supported.
12098 dlopen_self=$enable_dlopen_self
12100 # Whether dlopen of statically linked programs is supported.
12101 dlopen_self_static=$enable_dlopen_self_static
12103 # Compiler flag to prevent dynamic linking.
12104 link_static_flag=$lt_lt_prog_compiler_static
12106 # Compiler flag to turn off builtin functions.
12107 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
12109 # Compiler flag to allow reflexive dlopens.
12110 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
12112 # Compiler flag to generate shared objects directly from archives.
12113 whole_archive_flag_spec=$lt_whole_archive_flag_spec
12115 # Compiler flag to generate thread-safe objects.
12116 thread_safe_flag_spec=$lt_thread_safe_flag_spec
12118 # Library versioning type.
12119 version_type=$version_type
12121 # Format of library name prefix.
12122 libname_spec=$lt_libname_spec
12124 # List of archive names. First name is the real one, the rest are links.
12125 # The last name is the one that the linker finds with -lNAME.
12126 library_names_spec=$lt_library_names_spec
12128 # The coded name of the library, if different from the real name.
12129 soname_spec=$lt_soname_spec
12131 # Commands used to build and install an old-style archive.
12132 RANLIB=$lt_RANLIB
12133 old_archive_cmds=$lt_old_archive_cmds
12134 old_postinstall_cmds=$lt_old_postinstall_cmds
12135 old_postuninstall_cmds=$lt_old_postuninstall_cmds
12137 # Create an old-style archive from a shared archive.
12138 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
12140 # Create a temporary old-style archive to link instead of a shared archive.
12141 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
12143 # Commands used to build and install a shared archive.
12144 archive_cmds=$lt_archive_cmds
12145 archive_expsym_cmds=$lt_archive_expsym_cmds
12146 postinstall_cmds=$lt_postinstall_cmds
12147 postuninstall_cmds=$lt_postuninstall_cmds
12149 # Commands used to build a loadable module (assumed same as above if empty)
12150 module_cmds=$lt_module_cmds
12151 module_expsym_cmds=$lt_module_expsym_cmds
12153 # Commands to strip libraries.
12154 old_striplib=$lt_old_striplib
12155 striplib=$lt_striplib
12157 # Dependencies to place before the objects being linked to create a
12158 # shared library.
12159 predep_objects=$lt_predep_objects
12161 # Dependencies to place after the objects being linked to create a
12162 # shared library.
12163 postdep_objects=$lt_postdep_objects
12165 # Dependencies to place before the objects being linked to create a
12166 # shared library.
12167 predeps=$lt_predeps
12169 # Dependencies to place after the objects being linked to create a
12170 # shared library.
12171 postdeps=$lt_postdeps
12173 # The library search path used internally by the compiler when linking
12174 # a shared library.
12175 compiler_lib_search_path=$lt_compiler_lib_search_path
12177 # Method to check whether dependent libraries are shared objects.
12178 deplibs_check_method=$lt_deplibs_check_method
12180 # Command to use when deplibs_check_method == file_magic.
12181 file_magic_cmd=$lt_file_magic_cmd
12183 # Flag that allows shared libraries with undefined symbols to be built.
12184 allow_undefined_flag=$lt_allow_undefined_flag
12186 # Flag that forces no undefined symbols.
12187 no_undefined_flag=$lt_no_undefined_flag
12189 # Commands used to finish a libtool library installation in a directory.
12190 finish_cmds=$lt_finish_cmds
12192 # Same as above, but a single script fragment to be evaled but not shown.
12193 finish_eval=$lt_finish_eval
12195 # Take the output of nm and produce a listing of raw symbols and C names.
12196 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12198 # Transform the output of nm in a proper C declaration
12199 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12201 # Transform the output of nm in a C name address pair
12202 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12204 # This is the shared library runtime path variable.
12205 runpath_var=$runpath_var
12207 # This is the shared library path variable.
12208 shlibpath_var=$shlibpath_var
12210 # Is shlibpath searched before the hard-coded library search path?
12211 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12213 # How to hardcode a shared library path into an executable.
12214 hardcode_action=$hardcode_action
12216 # Whether we should hardcode library paths into libraries.
12217 hardcode_into_libs=$hardcode_into_libs
12219 # Flag to hardcode \$libdir into a binary during linking.
12220 # This must work even if \$libdir does not exist.
12221 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
12223 # If ld is used when linking, flag to hardcode \$libdir into
12224 # a binary during linking. This must work even if \$libdir does
12225 # not exist.
12226 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
12228 # Whether we need a single -rpath flag with a separated argument.
12229 hardcode_libdir_separator=$lt_hardcode_libdir_separator
12231 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
12232 # resulting binary.
12233 hardcode_direct=$hardcode_direct
12235 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
12236 # resulting binary.
12237 hardcode_minus_L=$hardcode_minus_L
12239 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
12240 # the resulting binary.
12241 hardcode_shlibpath_var=$hardcode_shlibpath_var
12243 # Set to yes if building a shared library automatically hardcodes DIR into the library
12244 # and all subsequent libraries and executables linked against it.
12245 hardcode_automatic=$hardcode_automatic
12247 # Variables whose values should be saved in libtool wrapper scripts and
12248 # restored at relink time.
12249 variables_saved_for_relink="$variables_saved_for_relink"
12251 # Whether libtool must link a program against all its dependency libraries.
12252 link_all_deplibs=$link_all_deplibs
12254 # Compile-time system search path for libraries
12255 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12257 # Run-time system search path for libraries
12258 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12260 # Fix the shell variable \$srcfile for the compiler.
12261 fix_srcfile_path="$fix_srcfile_path"
12263 # Set to yes if exported symbols are required.
12264 always_export_symbols=$always_export_symbols
12266 # The commands to list exported symbols.
12267 export_symbols_cmds=$lt_export_symbols_cmds
12269 # The commands to extract the exported symbol list from a shared archive.
12270 extract_expsyms_cmds=$lt_extract_expsyms_cmds
12272 # Symbols that should not be listed in the preloaded symbols.
12273 exclude_expsyms=$lt_exclude_expsyms
12275 # Symbols that must always be exported.
12276 include_expsyms=$lt_include_expsyms
12278 # ### END LIBTOOL CONFIG
12280 __EOF__
12283 case $host_os in
12284 aix3*)
12285 cat <<\EOF >> "$cfgfile"
12287 # AIX sometimes has problems with the GCC collect2 program. For some
12288 # reason, if we set the COLLECT_NAMES environment variable, the problems
12289 # vanish in a puff of smoke.
12290 if test "X${COLLECT_NAMES+set}" != Xset; then
12291 COLLECT_NAMES=
12292 export COLLECT_NAMES
12296 esac
12298 # We use sed instead of cat because bash on DJGPP gets confused if
12299 # if finds mixed CR/LF and LF-only lines. Since sed operates in
12300 # text mode, it properly converts lines to CR/LF. This bash problem
12301 # is reportedly fixed, but why not run on old versions too?
12302 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
12304 mv -f "$cfgfile" "$ofile" || \
12305 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
12306 chmod +x "$ofile"
12308 else
12309 # If there is no Makefile yet, we rely on a make rule to execute
12310 # `config.status --recheck' to rerun these tests and create the
12311 # libtool script then.
12312 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
12313 if test -f "$ltmain_in"; then
12314 test -f Makefile && make "$ltmain"
12319 ac_ext=c
12320 ac_cpp='$CPP $CPPFLAGS'
12321 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12322 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12323 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12325 CC="$lt_save_CC"
12328 # Check whether --with-tags was given.
12329 if test "${with_tags+set}" = set; then
12330 withval=$with_tags; tagnames="$withval"
12334 if test -f "$ltmain" && test -n "$tagnames"; then
12335 if test ! -f "${ofile}"; then
12336 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
12337 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
12340 if test -z "$LTCC"; then
12341 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
12342 if test -z "$LTCC"; then
12343 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
12344 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
12345 else
12346 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
12347 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
12350 if test -z "$LTCFLAGS"; then
12351 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
12354 # Extract list of available tagged configurations in $ofile.
12355 # Note that this assumes the entire list is on one line.
12356 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
12358 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12359 for tagname in $tagnames; do
12360 IFS="$lt_save_ifs"
12361 # Check whether tagname contains only valid characters
12362 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
12363 "") ;;
12364 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
12365 echo "$as_me: error: invalid tag name: $tagname" >&2;}
12366 { (exit 1); exit 1; }; }
12368 esac
12370 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
12371 then
12372 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
12373 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
12374 { (exit 1); exit 1; }; }
12377 # Update the list of available tags.
12378 if test -n "$tagname"; then
12379 echo appending configuration tag \"$tagname\" to $ofile
12381 case $tagname in
12382 CXX)
12383 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12384 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12385 (test "X$CXX" != "Xg++"))) ; then
12386 ac_ext=cpp
12387 ac_cpp='$CXXCPP $CPPFLAGS'
12388 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12389 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12390 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12395 archive_cmds_need_lc_CXX=no
12396 allow_undefined_flag_CXX=
12397 always_export_symbols_CXX=no
12398 archive_expsym_cmds_CXX=
12399 export_dynamic_flag_spec_CXX=
12400 hardcode_direct_CXX=no
12401 hardcode_libdir_flag_spec_CXX=
12402 hardcode_libdir_flag_spec_ld_CXX=
12403 hardcode_libdir_separator_CXX=
12404 hardcode_minus_L_CXX=no
12405 hardcode_shlibpath_var_CXX=unsupported
12406 hardcode_automatic_CXX=no
12407 module_cmds_CXX=
12408 module_expsym_cmds_CXX=
12409 link_all_deplibs_CXX=unknown
12410 old_archive_cmds_CXX=$old_archive_cmds
12411 no_undefined_flag_CXX=
12412 whole_archive_flag_spec_CXX=
12413 enable_shared_with_static_runtimes_CXX=no
12415 # Dependencies to place before and after the object being linked:
12416 predep_objects_CXX=
12417 postdep_objects_CXX=
12418 predeps_CXX=
12419 postdeps_CXX=
12420 compiler_lib_search_path_CXX=
12422 # Source file extension for C++ test sources.
12423 ac_ext=cpp
12425 # Object file extension for compiled C++ test sources.
12426 objext=o
12427 objext_CXX=$objext
12429 # Code to be used in simple compile tests
12430 lt_simple_compile_test_code="int some_variable = 0;\n"
12432 # Code to be used in simple link tests
12433 lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
12435 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12437 # If no C compiler was specified, use CC.
12438 LTCC=${LTCC-"$CC"}
12440 # If no C compiler flags were specified, use CFLAGS.
12441 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12443 # Allow CC to be a program name with arguments.
12444 compiler=$CC
12447 # save warnings/boilerplate of simple test code
12448 ac_outfile=conftest.$ac_objext
12449 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
12450 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12451 _lt_compiler_boilerplate=`cat conftest.err`
12452 $rm conftest*
12454 ac_outfile=conftest.$ac_objext
12455 printf "$lt_simple_link_test_code" >conftest.$ac_ext
12456 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12457 _lt_linker_boilerplate=`cat conftest.err`
12458 $rm conftest*
12461 # Allow CC to be a program name with arguments.
12462 lt_save_CC=$CC
12463 lt_save_LD=$LD
12464 lt_save_GCC=$GCC
12465 GCC=$GXX
12466 lt_save_with_gnu_ld=$with_gnu_ld
12467 lt_save_path_LD=$lt_cv_path_LD
12468 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12469 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12470 else
12471 $as_unset lt_cv_prog_gnu_ld
12473 if test -n "${lt_cv_path_LDCXX+set}"; then
12474 lt_cv_path_LD=$lt_cv_path_LDCXX
12475 else
12476 $as_unset lt_cv_path_LD
12478 test -z "${LDCXX+set}" || LD=$LDCXX
12479 CC=${CXX-"c++"}
12480 compiler=$CC
12481 compiler_CXX=$CC
12482 for cc_temp in $compiler""; do
12483 case $cc_temp in
12484 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12485 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12486 \-*) ;;
12487 *) break;;
12488 esac
12489 done
12490 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
12493 # We don't want -fno-exception wen compiling C++ code, so set the
12494 # no_builtin_flag separately
12495 if test "$GXX" = yes; then
12496 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12497 else
12498 lt_prog_compiler_no_builtin_flag_CXX=
12501 if test "$GXX" = yes; then
12502 # Set up default GNU C++ configuration
12505 # Check whether --with-gnu-ld was given.
12506 if test "${with_gnu_ld+set}" = set; then
12507 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12508 else
12509 with_gnu_ld=no
12512 ac_prog=ld
12513 if test "$GCC" = yes; then
12514 # Check if gcc -print-prog-name=ld gives a path.
12515 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
12516 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
12517 case $host in
12518 *-*-mingw*)
12519 # gcc leaves a trailing carriage return which upsets mingw
12520 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12522 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12523 esac
12524 case $ac_prog in
12525 # Accept absolute paths.
12526 [\\/]* | ?:[\\/]*)
12527 re_direlt='/[^/][^/]*/\.\./'
12528 # Canonicalize the pathname of ld
12529 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
12530 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
12531 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
12532 done
12533 test -z "$LD" && LD="$ac_prog"
12536 # If it fails, then pretend we aren't using GCC.
12537 ac_prog=ld
12540 # If it is relative, then search for the first ld in PATH.
12541 with_gnu_ld=unknown
12543 esac
12544 elif test "$with_gnu_ld" = yes; then
12545 { echo "$as_me:$LINENO: checking for GNU ld" >&5
12546 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
12547 else
12548 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
12549 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
12551 if test "${lt_cv_path_LD+set}" = set; then
12552 echo $ECHO_N "(cached) $ECHO_C" >&6
12553 else
12554 if test -z "$LD"; then
12555 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12556 for ac_dir in $PATH; do
12557 IFS="$lt_save_ifs"
12558 test -z "$ac_dir" && ac_dir=.
12559 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12560 lt_cv_path_LD="$ac_dir/$ac_prog"
12561 # Check to see if the program is GNU ld. I'd rather use --version,
12562 # but apparently some variants of GNU ld only accept -v.
12563 # Break only if it was the GNU/non-GNU ld that we prefer.
12564 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12565 *GNU* | *'with BFD'*)
12566 test "$with_gnu_ld" != no && break
12569 test "$with_gnu_ld" != yes && break
12571 esac
12573 done
12574 IFS="$lt_save_ifs"
12575 else
12576 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12580 LD="$lt_cv_path_LD"
12581 if test -n "$LD"; then
12582 { echo "$as_me:$LINENO: result: $LD" >&5
12583 echo "${ECHO_T}$LD" >&6; }
12584 else
12585 { echo "$as_me:$LINENO: result: no" >&5
12586 echo "${ECHO_T}no" >&6; }
12588 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
12589 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
12590 { (exit 1); exit 1; }; }
12591 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
12592 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
12593 if test "${lt_cv_prog_gnu_ld+set}" = set; then
12594 echo $ECHO_N "(cached) $ECHO_C" >&6
12595 else
12596 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12597 case `$LD -v 2>&1 </dev/null` in
12598 *GNU* | *'with BFD'*)
12599 lt_cv_prog_gnu_ld=yes
12602 lt_cv_prog_gnu_ld=no
12604 esac
12606 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
12607 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
12608 with_gnu_ld=$lt_cv_prog_gnu_ld
12612 # Check if GNU C++ uses GNU ld as the underlying linker, since the
12613 # archiving commands below assume that GNU ld is being used.
12614 if test "$with_gnu_ld" = yes; then
12615 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12616 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'
12618 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12619 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12621 # If archive_cmds runs LD, not CC, wlarc should be empty
12622 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12623 # investigate it a little bit more. (MM)
12624 wlarc='${wl}'
12626 # ancient GNU ld didn't support --whole-archive et. al.
12627 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
12628 grep 'no-whole-archive' > /dev/null; then
12629 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12630 else
12631 whole_archive_flag_spec_CXX=
12633 else
12634 with_gnu_ld=no
12635 wlarc=
12637 # A generic and very simple default shared library creation
12638 # command for GNU C++ for the case where it uses the native
12639 # linker, instead of GNU ld. If possible, this setting should
12640 # overridden to take advantage of the native linker features on
12641 # the platform it is being used on.
12642 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12645 # Commands to make compiler produce verbose output that lists
12646 # what "hidden" libraries, object files and flags are used when
12647 # linking a shared library.
12648 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12650 else
12651 GXX=no
12652 with_gnu_ld=no
12653 wlarc=
12656 # PORTME: fill in a description of your system's C++ link characteristics
12657 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12658 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
12659 ld_shlibs_CXX=yes
12660 case $host_os in
12661 aix3*)
12662 # FIXME: insert proper C++ library support
12663 ld_shlibs_CXX=no
12665 aix4* | aix5*)
12666 if test "$host_cpu" = ia64; then
12667 # On IA64, the linker does run time linking by default, so we don't
12668 # have to do anything special.
12669 aix_use_runtimelinking=no
12670 exp_sym_flag='-Bexport'
12671 no_entry_flag=""
12672 else
12673 aix_use_runtimelinking=no
12675 # Test if we are trying to use run time linking or normal
12676 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12677 # need to do runtime linking.
12678 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
12679 for ld_flag in $LDFLAGS; do
12680 case $ld_flag in
12681 *-brtl*)
12682 aix_use_runtimelinking=yes
12683 break
12685 esac
12686 done
12688 esac
12690 exp_sym_flag='-bexport'
12691 no_entry_flag='-bnoentry'
12694 # When large executables or shared objects are built, AIX ld can
12695 # have problems creating the table of contents. If linking a library
12696 # or program results in "error TOC overflow" add -mminimal-toc to
12697 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12698 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12700 archive_cmds_CXX=''
12701 hardcode_direct_CXX=yes
12702 hardcode_libdir_separator_CXX=':'
12703 link_all_deplibs_CXX=yes
12705 if test "$GXX" = yes; then
12706 case $host_os in aix4.[012]|aix4.[012].*)
12707 # We only want to do this on AIX 4.2 and lower, the check
12708 # below for broken collect2 doesn't work under 4.3+
12709 collect2name=`${CC} -print-prog-name=collect2`
12710 if test -f "$collect2name" && \
12711 strings "$collect2name" | grep resolve_lib_name >/dev/null
12712 then
12713 # We have reworked collect2
12714 hardcode_direct_CXX=yes
12715 else
12716 # We have old collect2
12717 hardcode_direct_CXX=unsupported
12718 # It fails to find uninstalled libraries when the uninstalled
12719 # path is not listed in the libpath. Setting hardcode_minus_L
12720 # to unsupported forces relinking
12721 hardcode_minus_L_CXX=yes
12722 hardcode_libdir_flag_spec_CXX='-L$libdir'
12723 hardcode_libdir_separator_CXX=
12726 esac
12727 shared_flag='-shared'
12728 if test "$aix_use_runtimelinking" = yes; then
12729 shared_flag="$shared_flag "'${wl}-G'
12731 else
12732 # not using gcc
12733 if test "$host_cpu" = ia64; then
12734 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12735 # chokes on -Wl,-G. The following line is correct:
12736 shared_flag='-G'
12737 else
12738 if test "$aix_use_runtimelinking" = yes; then
12739 shared_flag='${wl}-G'
12740 else
12741 shared_flag='${wl}-bM:SRE'
12746 # It seems that -bexpall does not export symbols beginning with
12747 # underscore (_), so it is better to generate a list of symbols to export.
12748 always_export_symbols_CXX=yes
12749 if test "$aix_use_runtimelinking" = yes; then
12750 # Warning - without using the other runtime loading flags (-brtl),
12751 # -berok will link without error, but may produce a broken library.
12752 allow_undefined_flag_CXX='-berok'
12753 # Determine the default libpath from the value encoded in an empty executable.
12754 cat >conftest.$ac_ext <<_ACEOF
12755 /* confdefs.h. */
12756 _ACEOF
12757 cat confdefs.h >>conftest.$ac_ext
12758 cat >>conftest.$ac_ext <<_ACEOF
12759 /* end confdefs.h. */
12762 main ()
12766 return 0;
12768 _ACEOF
12769 rm -f conftest.$ac_objext conftest$ac_exeext
12770 if { (ac_try="$ac_link"
12771 case "(($ac_try" in
12772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12773 *) ac_try_echo=$ac_try;;
12774 esac
12775 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12776 (eval "$ac_link") 2>conftest.er1
12777 ac_status=$?
12778 grep -v '^ *+' conftest.er1 >conftest.err
12779 rm -f conftest.er1
12780 cat conftest.err >&5
12781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12782 (exit $ac_status); } && {
12783 test -z "$ac_cxx_werror_flag" ||
12784 test ! -s conftest.err
12785 } && test -s conftest$ac_exeext &&
12786 $as_test_x conftest$ac_exeext; then
12788 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
12790 # Check for a 64-bit object if we didn't find anything.
12791 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
12792 }'`; fi
12793 else
12794 echo "$as_me: failed program was:" >&5
12795 sed 's/^/| /' conftest.$ac_ext >&5
12800 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12801 conftest$ac_exeext conftest.$ac_ext
12802 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12804 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12806 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"
12807 else
12808 if test "$host_cpu" = ia64; then
12809 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
12810 allow_undefined_flag_CXX="-z nodefs"
12811 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"
12812 else
12813 # Determine the default libpath from the value encoded in an empty executable.
12814 cat >conftest.$ac_ext <<_ACEOF
12815 /* confdefs.h. */
12816 _ACEOF
12817 cat confdefs.h >>conftest.$ac_ext
12818 cat >>conftest.$ac_ext <<_ACEOF
12819 /* end confdefs.h. */
12822 main ()
12826 return 0;
12828 _ACEOF
12829 rm -f conftest.$ac_objext conftest$ac_exeext
12830 if { (ac_try="$ac_link"
12831 case "(($ac_try" in
12832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12833 *) ac_try_echo=$ac_try;;
12834 esac
12835 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12836 (eval "$ac_link") 2>conftest.er1
12837 ac_status=$?
12838 grep -v '^ *+' conftest.er1 >conftest.err
12839 rm -f conftest.er1
12840 cat conftest.err >&5
12841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12842 (exit $ac_status); } && {
12843 test -z "$ac_cxx_werror_flag" ||
12844 test ! -s conftest.err
12845 } && test -s conftest$ac_exeext &&
12846 $as_test_x conftest$ac_exeext; then
12848 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
12850 # Check for a 64-bit object if we didn't find anything.
12851 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
12852 }'`; fi
12853 else
12854 echo "$as_me: failed program was:" >&5
12855 sed 's/^/| /' conftest.$ac_ext >&5
12860 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12861 conftest$ac_exeext conftest.$ac_ext
12862 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12864 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12865 # Warning - without using the other run time loading flags,
12866 # -berok will link without error, but may produce a broken library.
12867 no_undefined_flag_CXX=' ${wl}-bernotok'
12868 allow_undefined_flag_CXX=' ${wl}-berok'
12869 # Exported symbols can be pulled into shared objects from archives
12870 whole_archive_flag_spec_CXX='$convenience'
12871 archive_cmds_need_lc_CXX=yes
12872 # This is similar to how AIX traditionally builds its shared libraries.
12873 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'
12878 beos*)
12879 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12880 allow_undefined_flag_CXX=unsupported
12881 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12882 # support --undefined. This deserves some investigation. FIXME
12883 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12884 else
12885 ld_shlibs_CXX=no
12889 chorus*)
12890 case $cc_basename in
12892 # FIXME: insert proper C++ library support
12893 ld_shlibs_CXX=no
12895 esac
12898 cygwin* | mingw* | pw32*)
12899 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12900 # as there is no search path for DLLs.
12901 hardcode_libdir_flag_spec_CXX='-L$libdir'
12902 allow_undefined_flag_CXX=unsupported
12903 always_export_symbols_CXX=no
12904 enable_shared_with_static_runtimes_CXX=yes
12906 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
12907 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'
12908 # If the export-symbols file already is a .def file (1st line
12909 # is EXPORTS), use it as is; otherwise, prepend...
12910 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12911 cp $export_symbols $output_objdir/$soname.def;
12912 else
12913 echo EXPORTS > $output_objdir/$soname.def;
12914 cat $export_symbols >> $output_objdir/$soname.def;
12916 $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'
12917 else
12918 ld_shlibs_CXX=no
12921 darwin* | rhapsody*)
12922 case $host_os in
12923 rhapsody* | darwin1.[012])
12924 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
12926 *) # Darwin 1.3 on
12927 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
12928 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
12929 else
12930 case ${MACOSX_DEPLOYMENT_TARGET} in
12931 10.[012])
12932 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
12934 10.*)
12935 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
12937 esac
12940 esac
12941 archive_cmds_need_lc_CXX=no
12942 hardcode_direct_CXX=no
12943 hardcode_automatic_CXX=yes
12944 hardcode_shlibpath_var_CXX=unsupported
12945 whole_archive_flag_spec_CXX=''
12946 link_all_deplibs_CXX=yes
12948 if test "$GXX" = yes ; then
12949 lt_int_apple_cc_single_mod=no
12950 output_verbose_link_cmd='echo'
12951 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
12952 lt_int_apple_cc_single_mod=yes
12954 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
12955 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
12956 else
12957 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'
12959 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12960 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
12961 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
12962 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
12963 else
12964 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
12966 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}'
12967 else
12968 case $cc_basename in
12969 xlc*)
12970 output_verbose_link_cmd='echo'
12971 archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
12972 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12973 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
12974 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
12975 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}'
12978 ld_shlibs_CXX=no
12980 esac
12984 dgux*)
12985 case $cc_basename in
12986 ec++*)
12987 # FIXME: insert proper C++ library support
12988 ld_shlibs_CXX=no
12990 ghcx*)
12991 # Green Hills C++ Compiler
12992 # FIXME: insert proper C++ library support
12993 ld_shlibs_CXX=no
12996 # FIXME: insert proper C++ library support
12997 ld_shlibs_CXX=no
12999 esac
13001 freebsd[12]*)
13002 # C++ shared libraries reported to be fairly broken before switch to ELF
13003 ld_shlibs_CXX=no
13005 freebsd-elf*)
13006 archive_cmds_need_lc_CXX=no
13008 freebsd* | dragonfly*)
13009 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13010 # conventions
13011 ld_shlibs_CXX=yes
13013 gnu*)
13015 hpux9*)
13016 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13017 hardcode_libdir_separator_CXX=:
13018 export_dynamic_flag_spec_CXX='${wl}-E'
13019 hardcode_direct_CXX=yes
13020 hardcode_minus_L_CXX=yes # Not in the search PATH,
13021 # but as the default
13022 # location of the library.
13024 case $cc_basename in
13025 CC*)
13026 # FIXME: insert proper C++ library support
13027 ld_shlibs_CXX=no
13029 aCC*)
13030 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'
13031 # Commands to make compiler produce verbose output that lists
13032 # what "hidden" libraries, object files and flags are used when
13033 # linking a shared library.
13035 # There doesn't appear to be a way to prevent this compiler from
13036 # explicitly linking system object files so we need to strip them
13037 # from the output so that they don't get included in the library
13038 # dependencies.
13039 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'
13042 if test "$GXX" = yes; then
13043 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'
13044 else
13045 # FIXME: insert proper C++ library support
13046 ld_shlibs_CXX=no
13049 esac
13051 hpux10*|hpux11*)
13052 if test $with_gnu_ld = no; then
13053 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13054 hardcode_libdir_separator_CXX=:
13056 case $host_cpu in
13057 hppa*64*|ia64*)
13058 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
13061 export_dynamic_flag_spec_CXX='${wl}-E'
13063 esac
13065 case $host_cpu in
13066 hppa*64*|ia64*)
13067 hardcode_direct_CXX=no
13068 hardcode_shlibpath_var_CXX=no
13071 hardcode_direct_CXX=yes
13072 hardcode_minus_L_CXX=yes # Not in the search PATH,
13073 # but as the default
13074 # location of the library.
13076 esac
13078 case $cc_basename in
13079 CC*)
13080 # FIXME: insert proper C++ library support
13081 ld_shlibs_CXX=no
13083 aCC*)
13084 case $host_cpu in
13085 hppa*64*)
13086 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13088 ia64*)
13089 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13092 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13094 esac
13095 # Commands to make compiler produce verbose output that lists
13096 # what "hidden" libraries, object files and flags are used when
13097 # linking a shared library.
13099 # There doesn't appear to be a way to prevent this compiler from
13100 # explicitly linking system object files so we need to strip them
13101 # from the output so that they don't get included in the library
13102 # dependencies.
13103 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'
13106 if test "$GXX" = yes; then
13107 if test $with_gnu_ld = no; then
13108 case $host_cpu in
13109 hppa*64*)
13110 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13112 ia64*)
13113 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13116 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'
13118 esac
13120 else
13121 # FIXME: insert proper C++ library support
13122 ld_shlibs_CXX=no
13125 esac
13127 interix3*)
13128 hardcode_direct_CXX=no
13129 hardcode_shlibpath_var_CXX=no
13130 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13131 export_dynamic_flag_spec_CXX='${wl}-E'
13132 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13133 # Instead, shared libraries are loaded at an image base (0x10000000 by
13134 # default) and relocated if they conflict, which is a slow very memory
13135 # consuming and fragmenting process. To avoid this, we pick a random,
13136 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13137 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13138 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'
13139 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'
13141 irix5* | irix6*)
13142 case $cc_basename in
13143 CC*)
13144 # SGI C++
13145 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'
13147 # Archives containing C++ object files must be created using
13148 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
13149 # necessary to make sure instantiated templates are included
13150 # in the archive.
13151 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
13154 if test "$GXX" = yes; then
13155 if test "$with_gnu_ld" = no; then
13156 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'
13157 else
13158 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'
13161 link_all_deplibs_CXX=yes
13163 esac
13164 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13165 hardcode_libdir_separator_CXX=:
13167 linux* | k*bsd*-gnu)
13168 case $cc_basename in
13169 KCC*)
13170 # Kuck and Associates, Inc. (KAI) C++ Compiler
13172 # KCC will only create a shared library if the output file
13173 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13174 # to its proper name (with version) after linking.
13175 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'
13176 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'
13177 # Commands to make compiler produce verbose output that lists
13178 # what "hidden" libraries, object files and flags are used when
13179 # linking a shared library.
13181 # There doesn't appear to be a way to prevent this compiler from
13182 # explicitly linking system object files so we need to strip them
13183 # from the output so that they don't get included in the library
13184 # dependencies.
13185 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'
13187 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
13188 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13190 # Archives containing C++ object files must be created using
13191 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13192 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13194 icpc*)
13195 # Intel C++
13196 with_gnu_ld=yes
13197 # version 8.0 and above of icpc choke on multiply defined symbols
13198 # if we add $predep_objects and $postdep_objects, however 7.1 and
13199 # earlier do not add the objects themselves.
13200 case `$CC -V 2>&1` in
13201 *"Version 7."*)
13202 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13203 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'
13205 *) # Version 8.0 or newer
13206 tmp_idyn=
13207 case $host_cpu in
13208 ia64*) tmp_idyn=' -i_dynamic';;
13209 esac
13210 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13211 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'
13213 esac
13214 archive_cmds_need_lc_CXX=no
13215 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13216 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13217 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13219 pgCC*)
13220 # Portland Group C++ compiler
13221 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13222 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'
13224 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13225 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13226 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'
13228 cxx*)
13229 # Compaq C++
13230 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13231 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'
13233 runpath_var=LD_RUN_PATH
13234 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13235 hardcode_libdir_separator_CXX=:
13237 # Commands to make compiler produce verbose output that lists
13238 # what "hidden" libraries, object files and flags are used when
13239 # linking a shared library.
13241 # There doesn't appear to be a way to prevent this compiler from
13242 # explicitly linking system object files so we need to strip them
13243 # from the output so that they don't get included in the library
13244 # dependencies.
13245 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'
13247 esac
13249 lynxos*)
13250 # FIXME: insert proper C++ library support
13251 ld_shlibs_CXX=no
13253 m88k*)
13254 # FIXME: insert proper C++ library support
13255 ld_shlibs_CXX=no
13257 mvs*)
13258 case $cc_basename in
13259 cxx*)
13260 # FIXME: insert proper C++ library support
13261 ld_shlibs_CXX=no
13264 # FIXME: insert proper C++ library support
13265 ld_shlibs_CXX=no
13267 esac
13269 netbsd* | netbsdelf*-gnu)
13270 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13271 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13272 wlarc=
13273 hardcode_libdir_flag_spec_CXX='-R$libdir'
13274 hardcode_direct_CXX=yes
13275 hardcode_shlibpath_var_CXX=no
13277 # Workaround some broken pre-1.5 toolchains
13278 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13280 openbsd2*)
13281 # C++ shared libraries are fairly broken
13282 ld_shlibs_CXX=no
13284 openbsd*)
13285 hardcode_direct_CXX=yes
13286 hardcode_shlibpath_var_CXX=no
13287 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13288 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13289 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13290 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13291 export_dynamic_flag_spec_CXX='${wl}-E'
13292 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13294 output_verbose_link_cmd='echo'
13296 osf3*)
13297 case $cc_basename in
13298 KCC*)
13299 # Kuck and Associates, Inc. (KAI) C++ Compiler
13301 # KCC will only create a shared library if the output file
13302 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13303 # to its proper name (with version) after linking.
13304 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'
13306 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13307 hardcode_libdir_separator_CXX=:
13309 # Archives containing C++ object files must be created using
13310 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13311 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13314 RCC*)
13315 # Rational C++ 2.4.1
13316 # FIXME: insert proper C++ library support
13317 ld_shlibs_CXX=no
13319 cxx*)
13320 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13321 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'
13323 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13324 hardcode_libdir_separator_CXX=:
13326 # Commands to make compiler produce verbose output that lists
13327 # what "hidden" libraries, object files and flags are used when
13328 # linking a shared library.
13330 # There doesn't appear to be a way to prevent this compiler from
13331 # explicitly linking system object files so we need to strip them
13332 # from the output so that they don't get included in the library
13333 # dependencies.
13334 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'
13337 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13338 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13339 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'
13341 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13342 hardcode_libdir_separator_CXX=:
13344 # Commands to make compiler produce verbose output that lists
13345 # what "hidden" libraries, object files and flags are used when
13346 # linking a shared library.
13347 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
13349 else
13350 # FIXME: insert proper C++ library support
13351 ld_shlibs_CXX=no
13354 esac
13356 osf4* | osf5*)
13357 case $cc_basename in
13358 KCC*)
13359 # Kuck and Associates, Inc. (KAI) C++ Compiler
13361 # KCC will only create a shared library if the output file
13362 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13363 # to its proper name (with version) after linking.
13364 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'
13366 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13367 hardcode_libdir_separator_CXX=:
13369 # Archives containing C++ object files must be created using
13370 # the KAI C++ compiler.
13371 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
13373 RCC*)
13374 # Rational C++ 2.4.1
13375 # FIXME: insert proper C++ library support
13376 ld_shlibs_CXX=no
13378 cxx*)
13379 allow_undefined_flag_CXX=' -expect_unresolved \*'
13380 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'
13381 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13382 echo "-hidden">> $lib.exp~
13383 $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~
13384 $rm $lib.exp'
13386 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13387 hardcode_libdir_separator_CXX=:
13389 # Commands to make compiler produce verbose output that lists
13390 # what "hidden" libraries, object files and flags are used when
13391 # linking a shared library.
13393 # There doesn't appear to be a way to prevent this compiler from
13394 # explicitly linking system object files so we need to strip them
13395 # from the output so that they don't get included in the library
13396 # dependencies.
13397 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'
13400 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13401 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13402 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'
13404 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13405 hardcode_libdir_separator_CXX=:
13407 # Commands to make compiler produce verbose output that lists
13408 # what "hidden" libraries, object files and flags are used when
13409 # linking a shared library.
13410 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
13412 else
13413 # FIXME: insert proper C++ library support
13414 ld_shlibs_CXX=no
13417 esac
13419 psos*)
13420 # FIXME: insert proper C++ library support
13421 ld_shlibs_CXX=no
13423 sunos4*)
13424 case $cc_basename in
13425 CC*)
13426 # Sun C++ 4.x
13427 # FIXME: insert proper C++ library support
13428 ld_shlibs_CXX=no
13430 lcc*)
13431 # Lucid
13432 # FIXME: insert proper C++ library support
13433 ld_shlibs_CXX=no
13436 # FIXME: insert proper C++ library support
13437 ld_shlibs_CXX=no
13439 esac
13441 solaris*)
13442 case $cc_basename in
13443 CC*)
13444 # Sun C++ 4.2, 5.x and Centerline C++
13445 archive_cmds_need_lc_CXX=yes
13446 no_undefined_flag_CXX=' -zdefs'
13447 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13448 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13449 $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'
13451 hardcode_libdir_flag_spec_CXX='-R$libdir'
13452 hardcode_shlibpath_var_CXX=no
13453 case $host_os in
13454 solaris2.[0-5] | solaris2.[0-5].*) ;;
13456 # The C++ compiler is used as linker so we must use $wl
13457 # flag to pass the commands to the underlying system
13458 # linker. We must also pass each convience library through
13459 # to the system linker between allextract/defaultextract.
13460 # The C++ compiler will combine linker options so we
13461 # cannot just pass the convience library names through
13462 # without $wl.
13463 # Supported since Solaris 2.6 (maybe 2.5.1?)
13464 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract'
13466 esac
13467 link_all_deplibs_CXX=yes
13469 output_verbose_link_cmd='echo'
13471 # Archives containing C++ object files must be created using
13472 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13473 # necessary to make sure instantiated templates are included
13474 # in the archive.
13475 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13477 gcx*)
13478 # Green Hills C++ Compiler
13479 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13481 # The C++ compiler must be used to create the archive.
13482 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13485 # GNU C++ compiler with Solaris linker
13486 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13487 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13488 if $CC --version | grep -v '^2\.7' > /dev/null; then
13489 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13490 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13491 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
13493 # Commands to make compiler produce verbose output that lists
13494 # what "hidden" libraries, object files and flags are used when
13495 # linking a shared library.
13496 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
13497 else
13498 # g++ 2.7 appears to require `-G' NOT `-shared' on this
13499 # platform.
13500 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13501 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13502 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
13504 # Commands to make compiler produce verbose output that lists
13505 # what "hidden" libraries, object files and flags are used when
13506 # linking a shared library.
13507 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
13510 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13513 esac
13515 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13516 no_undefined_flag_CXX='${wl}-z,text'
13517 archive_cmds_need_lc_CXX=no
13518 hardcode_shlibpath_var_CXX=no
13519 runpath_var='LD_RUN_PATH'
13521 case $cc_basename in
13522 CC*)
13523 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13524 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13527 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13528 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13530 esac
13532 sysv5* | sco3.2v5* | sco5v6*)
13533 # Note: We can NOT use -z defs as we might desire, because we do not
13534 # link with -lc, and that would cause any symbols used from libc to
13535 # always be unresolved, which means just about no library would
13536 # ever link correctly. If we're not using GNU ld we use -z text
13537 # though, which does catch some bad symbols but isn't as heavy-handed
13538 # as -z defs.
13539 # For security reasons, it is highly recommended that you always
13540 # use absolute paths for naming shared libraries, and exclude the
13541 # DT_RUNPATH tag from executables and libraries. But doing so
13542 # requires that you compile everything twice, which is a pain.
13543 # So that behaviour is only enabled if SCOABSPATH is set to a
13544 # non-empty value in the environment. Most likely only useful for
13545 # creating official distributions of packages.
13546 # This is a hack until libtool officially supports absolute path
13547 # names for shared libraries.
13548 no_undefined_flag_CXX='${wl}-z,text'
13549 allow_undefined_flag_CXX='${wl}-z,nodefs'
13550 archive_cmds_need_lc_CXX=no
13551 hardcode_shlibpath_var_CXX=no
13552 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
13553 hardcode_libdir_separator_CXX=':'
13554 link_all_deplibs_CXX=yes
13555 export_dynamic_flag_spec_CXX='${wl}-Bexport'
13556 runpath_var='LD_RUN_PATH'
13558 case $cc_basename in
13559 CC*)
13560 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
13561 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
13564 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
13565 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
13567 esac
13569 tandem*)
13570 case $cc_basename in
13571 NCC*)
13572 # NonStop-UX NCC 3.20
13573 # FIXME: insert proper C++ library support
13574 ld_shlibs_CXX=no
13577 # FIXME: insert proper C++ library support
13578 ld_shlibs_CXX=no
13580 esac
13582 vxworks*)
13583 # FIXME: insert proper C++ library support
13584 ld_shlibs_CXX=no
13587 # FIXME: insert proper C++ library support
13588 ld_shlibs_CXX=no
13590 esac
13591 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
13592 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
13593 test "$ld_shlibs_CXX" = no && can_build_shared=no
13595 GCC_CXX="$GXX"
13596 LD_CXX="$LD"
13599 cat > conftest.$ac_ext <<EOF
13600 class Foo
13602 public:
13603 Foo (void) { a = 0; }
13604 private:
13605 int a;
13609 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13610 (eval $ac_compile) 2>&5
13611 ac_status=$?
13612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13613 (exit $ac_status); }; then
13614 # Parse the compiler output and extract the necessary
13615 # objects, libraries and library flags.
13617 # Sentinel used to keep track of whether or not we are before
13618 # the conftest object file.
13619 pre_test_object_deps_done=no
13621 # The `*' in the case matches for architectures that use `case' in
13622 # $output_verbose_cmd can trigger glob expansion during the loop
13623 # eval without this substitution.
13624 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
13626 for p in `eval $output_verbose_link_cmd`; do
13627 case $p in
13629 -L* | -R* | -l*)
13630 # Some compilers place space between "-{L,R}" and the path.
13631 # Remove the space.
13632 if test $p = "-L" \
13633 || test $p = "-R"; then
13634 prev=$p
13635 continue
13636 else
13637 prev=
13640 if test "$pre_test_object_deps_done" = no; then
13641 case $p in
13642 -L* | -R*)
13643 # Internal compiler library paths should come after those
13644 # provided the user. The postdeps already come after the
13645 # user supplied libs so there is no need to process them.
13646 if test -z "$compiler_lib_search_path_CXX"; then
13647 compiler_lib_search_path_CXX="${prev}${p}"
13648 else
13649 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13652 # The "-l" case would never come before the object being
13653 # linked, so don't bother handling this case.
13654 esac
13655 else
13656 if test -z "$postdeps_CXX"; then
13657 postdeps_CXX="${prev}${p}"
13658 else
13659 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13664 *.$objext)
13665 # This assumes that the test object file only shows up
13666 # once in the compiler output.
13667 if test "$p" = "conftest.$objext"; then
13668 pre_test_object_deps_done=yes
13669 continue
13672 if test "$pre_test_object_deps_done" = no; then
13673 if test -z "$predep_objects_CXX"; then
13674 predep_objects_CXX="$p"
13675 else
13676 predep_objects_CXX="$predep_objects_CXX $p"
13678 else
13679 if test -z "$postdep_objects_CXX"; then
13680 postdep_objects_CXX="$p"
13681 else
13682 postdep_objects_CXX="$postdep_objects_CXX $p"
13687 *) ;; # Ignore the rest.
13689 esac
13690 done
13692 # Clean up.
13693 rm -f a.out a.exe
13694 else
13695 echo "libtool.m4: error: problem compiling CXX test program"
13698 $rm -f confest.$objext
13700 # PORTME: override above test on systems where it is broken
13701 case $host_os in
13702 interix3*)
13703 # Interix 3.5 installs completely hosed .la files for C++, so rather than
13704 # hack all around it, let's just trust "g++" to DTRT.
13705 predep_objects_CXX=
13706 postdep_objects_CXX=
13707 postdeps_CXX=
13710 solaris*)
13711 case $cc_basename in
13712 CC*)
13713 # Adding this requires a known-good setup of shared libraries for
13714 # Sun compiler versions before 5.6, else PIC objects from an old
13715 # archive will be linked into the output, leading to subtle bugs.
13716 postdeps_CXX='-lCstd -lCrun'
13718 esac
13720 esac
13723 case " $postdeps_CXX " in
13724 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
13725 esac
13727 lt_prog_compiler_wl_CXX=
13728 lt_prog_compiler_pic_CXX=
13729 lt_prog_compiler_static_CXX=
13731 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13732 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
13734 # C++ specific cases for pic, static, wl, etc.
13735 if test "$GXX" = yes; then
13736 lt_prog_compiler_wl_CXX='-Wl,'
13737 lt_prog_compiler_static_CXX='-static'
13739 case $host_os in
13740 aix*)
13741 # All AIX code is PIC.
13742 if test "$host_cpu" = ia64; then
13743 # AIX 5 now supports IA64 processor
13744 lt_prog_compiler_static_CXX='-Bstatic'
13747 amigaos*)
13748 # FIXME: we need at least 68020 code to build shared libraries, but
13749 # adding the `-m68020' flag to GCC prevents building anything better,
13750 # like `-m68040'.
13751 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
13753 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13754 # PIC is the default for these OSes.
13756 mingw* | os2* | pw32*)
13757 # This hack is so that the source file can tell whether it is being
13758 # built for inclusion in a dll (and should export symbols for example).
13759 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13761 darwin* | rhapsody*)
13762 # PIC is the default on this platform
13763 # Common symbols not allowed in MH_DYLIB files
13764 lt_prog_compiler_pic_CXX='-fno-common'
13766 *djgpp*)
13767 # DJGPP does not support shared libraries at all
13768 lt_prog_compiler_pic_CXX=
13770 interix3*)
13771 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13772 # Instead, we relocate shared libraries at runtime.
13774 sysv4*MP*)
13775 if test -d /usr/nec; then
13776 lt_prog_compiler_pic_CXX=-Kconform_pic
13779 hpux*)
13780 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13781 # not for PA HP-UX.
13782 case $host_cpu in
13783 hppa*64*|ia64*)
13786 lt_prog_compiler_pic_CXX='-fPIC'
13788 esac
13791 lt_prog_compiler_pic_CXX='-fPIC'
13793 esac
13794 else
13795 case $host_os in
13796 aix4* | aix5*)
13797 # All AIX code is PIC.
13798 if test "$host_cpu" = ia64; then
13799 # AIX 5 now supports IA64 processor
13800 lt_prog_compiler_static_CXX='-Bstatic'
13801 else
13802 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
13805 chorus*)
13806 case $cc_basename in
13807 cxch68*)
13808 # Green Hills C++ Compiler
13809 # _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"
13811 esac
13813 darwin*)
13814 # PIC is the default on this platform
13815 # Common symbols not allowed in MH_DYLIB files
13816 case $cc_basename in
13817 xlc*)
13818 lt_prog_compiler_pic_CXX='-qnocommon'
13819 lt_prog_compiler_wl_CXX='-Wl,'
13821 esac
13823 dgux*)
13824 case $cc_basename in
13825 ec++*)
13826 lt_prog_compiler_pic_CXX='-KPIC'
13828 ghcx*)
13829 # Green Hills C++ Compiler
13830 lt_prog_compiler_pic_CXX='-pic'
13834 esac
13836 freebsd* | dragonfly*)
13837 # FreeBSD uses GNU C++
13839 hpux9* | hpux10* | hpux11*)
13840 case $cc_basename in
13841 CC*)
13842 lt_prog_compiler_wl_CXX='-Wl,'
13843 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13844 if test "$host_cpu" != ia64; then
13845 lt_prog_compiler_pic_CXX='+Z'
13848 aCC*)
13849 lt_prog_compiler_wl_CXX='-Wl,'
13850 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13851 case $host_cpu in
13852 hppa*64*|ia64*)
13853 # +Z the default
13856 lt_prog_compiler_pic_CXX='+Z'
13858 esac
13862 esac
13864 interix*)
13865 # This is c89, which is MS Visual C++ (no shared libs)
13866 # Anyone wants to do a port?
13868 irix5* | irix6* | nonstopux*)
13869 case $cc_basename in
13870 CC*)
13871 lt_prog_compiler_wl_CXX='-Wl,'
13872 lt_prog_compiler_static_CXX='-non_shared'
13873 # CC pic flag -KPIC is the default.
13877 esac
13879 linux* | k*bsd*-gnu)
13880 case $cc_basename in
13881 KCC*)
13882 # KAI C++ Compiler
13883 lt_prog_compiler_wl_CXX='--backend -Wl,'
13884 lt_prog_compiler_pic_CXX='-fPIC'
13886 icpc* | ecpc*)
13887 # Intel C++
13888 lt_prog_compiler_wl_CXX='-Wl,'
13889 lt_prog_compiler_pic_CXX='-KPIC'
13890 lt_prog_compiler_static_CXX='-static'
13892 pgCC*)
13893 # Portland Group C++ compiler.
13894 lt_prog_compiler_wl_CXX='-Wl,'
13895 lt_prog_compiler_pic_CXX='-fpic'
13896 lt_prog_compiler_static_CXX='-Bstatic'
13898 cxx*)
13899 # Compaq C++
13900 # Make sure the PIC flag is empty. It appears that all Alpha
13901 # Linux and Compaq Tru64 Unix objects are PIC.
13902 lt_prog_compiler_pic_CXX=
13903 lt_prog_compiler_static_CXX='-non_shared'
13907 esac
13909 lynxos*)
13911 m88k*)
13913 mvs*)
13914 case $cc_basename in
13915 cxx*)
13916 lt_prog_compiler_pic_CXX='-W c,exportall'
13920 esac
13922 netbsd* | netbsdelf*-gnu)
13924 osf3* | osf4* | osf5*)
13925 case $cc_basename in
13926 KCC*)
13927 lt_prog_compiler_wl_CXX='--backend -Wl,'
13929 RCC*)
13930 # Rational C++ 2.4.1
13931 lt_prog_compiler_pic_CXX='-pic'
13933 cxx*)
13934 # Digital/Compaq C++
13935 lt_prog_compiler_wl_CXX='-Wl,'
13936 # Make sure the PIC flag is empty. It appears that all Alpha
13937 # Linux and Compaq Tru64 Unix objects are PIC.
13938 lt_prog_compiler_pic_CXX=
13939 lt_prog_compiler_static_CXX='-non_shared'
13943 esac
13945 psos*)
13947 solaris*)
13948 case $cc_basename in
13949 CC*)
13950 # Sun C++ 4.2, 5.x and Centerline C++
13951 lt_prog_compiler_pic_CXX='-KPIC'
13952 lt_prog_compiler_static_CXX='-Bstatic'
13953 lt_prog_compiler_wl_CXX='-Qoption ld '
13955 gcx*)
13956 # Green Hills C++ Compiler
13957 lt_prog_compiler_pic_CXX='-PIC'
13961 esac
13963 sunos4*)
13964 case $cc_basename in
13965 CC*)
13966 # Sun C++ 4.x
13967 lt_prog_compiler_pic_CXX='-pic'
13968 lt_prog_compiler_static_CXX='-Bstatic'
13970 lcc*)
13971 # Lucid
13972 lt_prog_compiler_pic_CXX='-pic'
13976 esac
13978 tandem*)
13979 case $cc_basename in
13980 NCC*)
13981 # NonStop-UX NCC 3.20
13982 lt_prog_compiler_pic_CXX='-KPIC'
13986 esac
13988 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13989 case $cc_basename in
13990 CC*)
13991 lt_prog_compiler_wl_CXX='-Wl,'
13992 lt_prog_compiler_pic_CXX='-KPIC'
13993 lt_prog_compiler_static_CXX='-Bstatic'
13995 esac
13997 vxworks*)
14000 lt_prog_compiler_can_build_shared_CXX=no
14002 esac
14005 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
14006 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
14009 # Check to make sure the PIC flag actually works.
14011 if test -n "$lt_prog_compiler_pic_CXX"; then
14013 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
14014 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
14015 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
14016 echo $ECHO_N "(cached) $ECHO_C" >&6
14017 else
14018 lt_prog_compiler_pic_works_CXX=no
14019 ac_outfile=conftest.$ac_objext
14020 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14021 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
14022 # Insert the option either (1) after the last *FLAGS variable, or
14023 # (2) before a word containing "conftest.", or (3) at the end.
14024 # Note that $ac_compile itself does not contain backslashes and begins
14025 # with a dollar sign (not a hyphen), so the echo should work correctly.
14026 # The option is referenced via a variable to avoid confusing sed.
14027 lt_compile=`echo "$ac_compile" | $SED \
14028 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14029 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14030 -e 's:$: $lt_compiler_flag:'`
14031 (eval echo "\"\$as_me:14031: $lt_compile\"" >&5)
14032 (eval "$lt_compile" 2>conftest.err)
14033 ac_status=$?
14034 cat conftest.err >&5
14035 echo "$as_me:14035: \$? = $ac_status" >&5
14036 if (exit $ac_status) && test -s "$ac_outfile"; then
14037 # The compiler can only warn and ignore the option if not recognized
14038 # So say no if there are warnings other than the usual output.
14039 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14040 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14041 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14042 lt_prog_compiler_pic_works_CXX=yes
14045 $rm conftest*
14048 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
14049 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
14051 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
14052 case $lt_prog_compiler_pic_CXX in
14053 "" | " "*) ;;
14054 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14055 esac
14056 else
14057 lt_prog_compiler_pic_CXX=
14058 lt_prog_compiler_can_build_shared_CXX=no
14062 case $host_os in
14063 # For platforms which do not support PIC, -DPIC is meaningless:
14064 *djgpp*)
14065 lt_prog_compiler_pic_CXX=
14068 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
14070 esac
14073 # Check to make sure the static flag actually works.
14075 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
14076 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14077 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14078 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
14079 echo $ECHO_N "(cached) $ECHO_C" >&6
14080 else
14081 lt_prog_compiler_static_works_CXX=no
14082 save_LDFLAGS="$LDFLAGS"
14083 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14084 printf "$lt_simple_link_test_code" > conftest.$ac_ext
14085 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14086 # The linker can only warn and ignore the option if not recognized
14087 # So say no if there are warnings
14088 if test -s conftest.err; then
14089 # Append any errors to the config.log.
14090 cat conftest.err 1>&5
14091 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14092 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14093 if diff conftest.exp conftest.er2 >/dev/null; then
14094 lt_prog_compiler_static_works_CXX=yes
14096 else
14097 lt_prog_compiler_static_works_CXX=yes
14100 $rm conftest*
14101 LDFLAGS="$save_LDFLAGS"
14104 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
14105 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
14107 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
14109 else
14110 lt_prog_compiler_static_CXX=
14114 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14115 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14116 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
14117 echo $ECHO_N "(cached) $ECHO_C" >&6
14118 else
14119 lt_cv_prog_compiler_c_o_CXX=no
14120 $rm -r conftest 2>/dev/null
14121 mkdir conftest
14122 cd conftest
14123 mkdir out
14124 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14126 lt_compiler_flag="-o out/conftest2.$ac_objext"
14127 # Insert the option either (1) after the last *FLAGS variable, or
14128 # (2) before a word containing "conftest.", or (3) at the end.
14129 # Note that $ac_compile itself does not contain backslashes and begins
14130 # with a dollar sign (not a hyphen), so the echo should work correctly.
14131 lt_compile=`echo "$ac_compile" | $SED \
14132 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14133 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14134 -e 's:$: $lt_compiler_flag:'`
14135 (eval echo "\"\$as_me:14135: $lt_compile\"" >&5)
14136 (eval "$lt_compile" 2>out/conftest.err)
14137 ac_status=$?
14138 cat out/conftest.err >&5
14139 echo "$as_me:14139: \$? = $ac_status" >&5
14140 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14141 then
14142 # The compiler can only warn and ignore the option if not recognized
14143 # So say no if there are warnings
14144 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14145 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14146 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14147 lt_cv_prog_compiler_c_o_CXX=yes
14150 chmod u+w . 2>&5
14151 $rm conftest*
14152 # SGI C++ compiler will create directory out/ii_files/ for
14153 # template instantiation
14154 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14155 $rm out/* && rmdir out
14156 cd ..
14157 rmdir conftest
14158 $rm conftest*
14161 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14162 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
14165 hard_links="nottested"
14166 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14167 # do not overwrite the value of need_locks provided by the user
14168 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14169 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14170 hard_links=yes
14171 $rm conftest*
14172 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14173 touch conftest.a
14174 ln conftest.a conftest.b 2>&5 || hard_links=no
14175 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14176 { echo "$as_me:$LINENO: result: $hard_links" >&5
14177 echo "${ECHO_T}$hard_links" >&6; }
14178 if test "$hard_links" = no; then
14179 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14180 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14181 need_locks=warn
14183 else
14184 need_locks=no
14187 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14188 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14190 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14191 case $host_os in
14192 aix4* | aix5*)
14193 # If we're using GNU nm, then we don't want the "-C" option.
14194 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14195 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14196 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'
14197 else
14198 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'
14201 pw32*)
14202 export_symbols_cmds_CXX="$ltdll_cmds"
14204 cygwin* | mingw*)
14205 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'
14207 linux* | k*bsd*-gnu)
14208 link_all_deplibs_CXX=no
14211 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14213 esac
14215 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
14216 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
14217 test "$ld_shlibs_CXX" = no && can_build_shared=no
14220 # Do we need to explicitly link libc?
14222 case "x$archive_cmds_need_lc_CXX" in
14223 x|xyes)
14224 # Assume -lc should be added
14225 archive_cmds_need_lc_CXX=yes
14227 if test "$enable_shared" = yes && test "$GCC" = yes; then
14228 case $archive_cmds_CXX in
14229 *'~'*)
14230 # FIXME: we may have to deal with multi-command sequences.
14232 '$CC '*)
14233 # Test whether the compiler implicitly links with -lc since on some
14234 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14235 # to ld, don't add -lc before -lgcc.
14236 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14237 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
14238 $rm conftest*
14239 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14241 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14242 (eval $ac_compile) 2>&5
14243 ac_status=$?
14244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14245 (exit $ac_status); } 2>conftest.err; then
14246 soname=conftest
14247 lib=conftest
14248 libobjs=conftest.$ac_objext
14249 deplibs=
14250 wl=$lt_prog_compiler_wl_CXX
14251 pic_flag=$lt_prog_compiler_pic_CXX
14252 compiler_flags=-v
14253 linker_flags=-v
14254 verstring=
14255 output_objdir=.
14256 libname=conftest
14257 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14258 allow_undefined_flag_CXX=
14259 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14260 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14261 ac_status=$?
14262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14263 (exit $ac_status); }
14264 then
14265 archive_cmds_need_lc_CXX=no
14266 else
14267 archive_cmds_need_lc_CXX=yes
14269 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14270 else
14271 cat conftest.err 1>&5
14273 $rm conftest*
14274 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
14275 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
14277 esac
14280 esac
14282 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14283 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
14284 library_names_spec=
14285 libname_spec='lib$name'
14286 soname_spec=
14287 shrext_cmds=".so"
14288 postinstall_cmds=
14289 postuninstall_cmds=
14290 finish_cmds=
14291 finish_eval=
14292 shlibpath_var=
14293 shlibpath_overrides_runpath=unknown
14294 version_type=none
14295 dynamic_linker="$host_os ld.so"
14296 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14297 if test "$GCC" = yes; then
14298 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14299 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14300 # if the path contains ";" then we assume it to be the separator
14301 # otherwise default to the standard path separator (i.e. ":") - it is
14302 # assumed that no part of a normal pathname contains ";" but that should
14303 # okay in the real world where ";" in dirpaths is itself problematic.
14304 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14305 else
14306 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14308 else
14309 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14311 need_lib_prefix=unknown
14312 hardcode_into_libs=no
14314 # when you set need_version to no, make sure it does not cause -set_version
14315 # flags to be left without arguments
14316 need_version=unknown
14318 case $host_os in
14319 aix3*)
14320 version_type=linux
14321 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14322 shlibpath_var=LIBPATH
14324 # AIX 3 has no versioning support, so we append a major version to the name.
14325 soname_spec='${libname}${release}${shared_ext}$major'
14328 aix4* | aix5*)
14329 version_type=linux
14330 need_lib_prefix=no
14331 need_version=no
14332 hardcode_into_libs=yes
14333 if test "$host_cpu" = ia64; then
14334 # AIX 5 supports IA64
14335 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14336 shlibpath_var=LD_LIBRARY_PATH
14337 else
14338 # With GCC up to 2.95.x, collect2 would create an import file
14339 # for dependence libraries. The import file would start with
14340 # the line `#! .'. This would cause the generated library to
14341 # depend on `.', always an invalid library. This was fixed in
14342 # development snapshots of GCC prior to 3.0.
14343 case $host_os in
14344 aix4 | aix4.[01] | aix4.[01].*)
14345 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14346 echo ' yes '
14347 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14349 else
14350 can_build_shared=no
14353 esac
14354 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14355 # soname into executable. Probably we can add versioning support to
14356 # collect2, so additional links can be useful in future.
14357 if test "$aix_use_runtimelinking" = yes; then
14358 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14359 # instead of lib<name>.a to let people know that these are not
14360 # typical AIX shared libraries.
14361 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14362 else
14363 # We preserve .a as extension for shared libraries through AIX4.2
14364 # and later when we are not doing run time linking.
14365 library_names_spec='${libname}${release}.a $libname.a'
14366 soname_spec='${libname}${release}${shared_ext}$major'
14368 shlibpath_var=LIBPATH
14372 amigaos*)
14373 library_names_spec='$libname.ixlibrary $libname.a'
14374 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14375 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'
14378 beos*)
14379 library_names_spec='${libname}${shared_ext}'
14380 dynamic_linker="$host_os ld.so"
14381 shlibpath_var=LIBRARY_PATH
14384 bsdi[45]*)
14385 version_type=linux
14386 need_version=no
14387 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14388 soname_spec='${libname}${release}${shared_ext}$major'
14389 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14390 shlibpath_var=LD_LIBRARY_PATH
14391 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14392 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14393 # the default ld.so.conf also contains /usr/contrib/lib and
14394 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14395 # libtool to hard-code these into programs
14398 cygwin* | mingw* | pw32*)
14399 version_type=windows
14400 shrext_cmds=".dll"
14401 need_version=no
14402 need_lib_prefix=no
14404 case $GCC,$host_os in
14405 yes,cygwin* | yes,mingw* | yes,pw32*)
14406 library_names_spec='$libname.dll.a'
14407 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14408 postinstall_cmds='base_file=`basename \${file}`~
14409 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14410 dldir=$destdir/`dirname \$dlpath`~
14411 test -d \$dldir || mkdir -p \$dldir~
14412 $install_prog $dir/$dlname \$dldir/$dlname~
14413 chmod a+x \$dldir/$dlname'
14414 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14415 dlpath=$dir/\$dldll~
14416 $rm \$dlpath'
14417 shlibpath_overrides_runpath=yes
14419 case $host_os in
14420 cygwin*)
14421 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14422 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14423 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14425 mingw*)
14426 # MinGW DLLs use traditional 'lib' prefix
14427 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14428 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14429 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14430 # It is most probably a Windows format PATH printed by
14431 # mingw gcc, but we are running on Cygwin. Gcc prints its search
14432 # path with ; separators, and with drive letters. We can handle the
14433 # drive letters (cygwin fileutils understands them), so leave them,
14434 # especially as we might pass files found there to a mingw objdump,
14435 # which wouldn't understand a cygwinified path. Ahh.
14436 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14437 else
14438 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14441 pw32*)
14442 # pw32 DLLs use 'pw' prefix rather than 'lib'
14443 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14445 esac
14449 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14451 esac
14452 dynamic_linker='Win32 ld.exe'
14453 # FIXME: first we should search . and the directory the executable is in
14454 shlibpath_var=PATH
14457 darwin* | rhapsody*)
14458 dynamic_linker="$host_os dyld"
14459 version_type=darwin
14460 need_lib_prefix=no
14461 need_version=no
14462 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14463 soname_spec='${libname}${release}${major}$shared_ext'
14464 shlibpath_overrides_runpath=yes
14465 shlibpath_var=DYLD_LIBRARY_PATH
14466 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14467 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
14468 if test "$GCC" = yes; then
14469 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
14470 else
14471 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
14473 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14476 dgux*)
14477 version_type=linux
14478 need_lib_prefix=no
14479 need_version=no
14480 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14481 soname_spec='${libname}${release}${shared_ext}$major'
14482 shlibpath_var=LD_LIBRARY_PATH
14485 freebsd1*)
14486 dynamic_linker=no
14489 freebsd* | dragonfly*)
14490 # DragonFly does not have aout. When/if they implement a new
14491 # versioning mechanism, adjust this.
14492 if test -x /usr/bin/objformat; then
14493 objformat=`/usr/bin/objformat`
14494 else
14495 case $host_os in
14496 freebsd[123]*) objformat=aout ;;
14497 *) objformat=elf ;;
14498 esac
14500 version_type=freebsd-$objformat
14501 case $version_type in
14502 freebsd-elf*)
14503 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14504 need_version=no
14505 need_lib_prefix=no
14507 freebsd-*)
14508 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14509 need_version=yes
14511 esac
14512 shlibpath_var=LD_LIBRARY_PATH
14513 case $host_os in
14514 freebsd2*)
14515 shlibpath_overrides_runpath=yes
14517 freebsd3.[01]* | freebsdelf3.[01]*)
14518 shlibpath_overrides_runpath=yes
14519 hardcode_into_libs=yes
14521 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14522 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14523 shlibpath_overrides_runpath=no
14524 hardcode_into_libs=yes
14526 freebsd*) # from 4.6 on
14527 shlibpath_overrides_runpath=yes
14528 hardcode_into_libs=yes
14530 esac
14533 gnu*)
14534 version_type=linux
14535 need_lib_prefix=no
14536 need_version=no
14537 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14538 soname_spec='${libname}${release}${shared_ext}$major'
14539 shlibpath_var=LD_LIBRARY_PATH
14540 hardcode_into_libs=yes
14543 hpux9* | hpux10* | hpux11*)
14544 # Give a soname corresponding to the major version so that dld.sl refuses to
14545 # link against other versions.
14546 version_type=sunos
14547 need_lib_prefix=no
14548 need_version=no
14549 case $host_cpu in
14550 ia64*)
14551 shrext_cmds='.so'
14552 hardcode_into_libs=yes
14553 dynamic_linker="$host_os dld.so"
14554 shlibpath_var=LD_LIBRARY_PATH
14555 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14556 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14557 soname_spec='${libname}${release}${shared_ext}$major'
14558 if test "X$HPUX_IA64_MODE" = X32; then
14559 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14560 else
14561 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14563 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14565 hppa*64*)
14566 shrext_cmds='.sl'
14567 hardcode_into_libs=yes
14568 dynamic_linker="$host_os dld.sl"
14569 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14570 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14571 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14572 soname_spec='${libname}${release}${shared_ext}$major'
14573 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14574 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14577 shrext_cmds='.sl'
14578 dynamic_linker="$host_os dld.sl"
14579 shlibpath_var=SHLIB_PATH
14580 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14581 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14582 soname_spec='${libname}${release}${shared_ext}$major'
14584 esac
14585 # HP-UX runs *really* slowly unless shared libraries are mode 555.
14586 postinstall_cmds='chmod 555 $lib'
14589 interix3*)
14590 version_type=linux
14591 need_lib_prefix=no
14592 need_version=no
14593 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14594 soname_spec='${libname}${release}${shared_ext}$major'
14595 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14596 shlibpath_var=LD_LIBRARY_PATH
14597 shlibpath_overrides_runpath=no
14598 hardcode_into_libs=yes
14601 irix5* | irix6* | nonstopux*)
14602 case $host_os in
14603 nonstopux*) version_type=nonstopux ;;
14605 if test "$lt_cv_prog_gnu_ld" = yes; then
14606 version_type=linux
14607 else
14608 version_type=irix
14609 fi ;;
14610 esac
14611 need_lib_prefix=no
14612 need_version=no
14613 soname_spec='${libname}${release}${shared_ext}$major'
14614 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14615 case $host_os in
14616 irix5* | nonstopux*)
14617 libsuff= shlibsuff=
14620 case $LD in # libtool.m4 will add one of these switches to LD
14621 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14622 libsuff= shlibsuff= libmagic=32-bit;;
14623 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14624 libsuff=32 shlibsuff=N32 libmagic=N32;;
14625 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14626 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14627 *) libsuff= shlibsuff= libmagic=never-match;;
14628 esac
14630 esac
14631 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14632 shlibpath_overrides_runpath=no
14633 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14634 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14635 hardcode_into_libs=yes
14638 # No shared lib support for Linux oldld, aout, or coff.
14639 linux*oldld* | linux*aout* | linux*coff*)
14640 dynamic_linker=no
14643 # This must be Linux ELF.
14644 linux* | k*bsd*-gnu)
14645 version_type=linux
14646 need_lib_prefix=no
14647 need_version=no
14648 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14649 soname_spec='${libname}${release}${shared_ext}$major'
14650 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14651 shlibpath_var=LD_LIBRARY_PATH
14652 shlibpath_overrides_runpath=no
14653 # This implies no fast_install, which is unacceptable.
14654 # Some rework will be needed to allow for fast_install
14655 # before this can be enabled.
14656 hardcode_into_libs=yes
14658 # Append ld.so.conf contents to the search path
14659 if test -f /etc/ld.so.conf; then
14660 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
14661 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14664 # We used to test for /lib/ld.so.1 and disable shared libraries on
14665 # powerpc, because MkLinux only supported shared libraries with the
14666 # GNU dynamic linker. Since this was broken with cross compilers,
14667 # most powerpc-linux boxes support dynamic linking these days and
14668 # people can always --disable-shared, the test was removed, and we
14669 # assume the GNU/Linux dynamic linker is in use.
14670 dynamic_linker='GNU/Linux ld.so'
14673 netbsdelf*-gnu)
14674 version_type=linux
14675 need_lib_prefix=no
14676 need_version=no
14677 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14678 soname_spec='${libname}${release}${shared_ext}$major'
14679 shlibpath_var=LD_LIBRARY_PATH
14680 shlibpath_overrides_runpath=no
14681 hardcode_into_libs=yes
14682 dynamic_linker='NetBSD ld.elf_so'
14685 netbsd*)
14686 version_type=sunos
14687 need_lib_prefix=no
14688 need_version=no
14689 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14690 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14691 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14692 dynamic_linker='NetBSD (a.out) ld.so'
14693 else
14694 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14695 soname_spec='${libname}${release}${shared_ext}$major'
14696 dynamic_linker='NetBSD ld.elf_so'
14698 shlibpath_var=LD_LIBRARY_PATH
14699 shlibpath_overrides_runpath=yes
14700 hardcode_into_libs=yes
14703 newsos6)
14704 version_type=linux
14705 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14706 shlibpath_var=LD_LIBRARY_PATH
14707 shlibpath_overrides_runpath=yes
14710 nto-qnx*)
14711 version_type=linux
14712 need_lib_prefix=no
14713 need_version=no
14714 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14715 soname_spec='${libname}${release}${shared_ext}$major'
14716 shlibpath_var=LD_LIBRARY_PATH
14717 shlibpath_overrides_runpath=yes
14720 openbsd*)
14721 version_type=sunos
14722 sys_lib_dlsearch_path_spec="/usr/lib"
14723 need_lib_prefix=no
14724 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14725 case $host_os in
14726 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14727 *) need_version=no ;;
14728 esac
14729 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14730 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14731 shlibpath_var=LD_LIBRARY_PATH
14732 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14733 case $host_os in
14734 openbsd2.[89] | openbsd2.[89].*)
14735 shlibpath_overrides_runpath=no
14738 shlibpath_overrides_runpath=yes
14740 esac
14741 else
14742 shlibpath_overrides_runpath=yes
14746 os2*)
14747 libname_spec='$name'
14748 shrext_cmds=".dll"
14749 need_lib_prefix=no
14750 library_names_spec='$libname${shared_ext} $libname.a'
14751 dynamic_linker='OS/2 ld.exe'
14752 shlibpath_var=LIBPATH
14755 osf3* | osf4* | osf5*)
14756 version_type=osf
14757 need_lib_prefix=no
14758 need_version=no
14759 soname_spec='${libname}${release}${shared_ext}$major'
14760 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14761 shlibpath_var=LD_LIBRARY_PATH
14762 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14763 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14766 solaris*)
14767 version_type=linux
14768 need_lib_prefix=no
14769 need_version=no
14770 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14771 soname_spec='${libname}${release}${shared_ext}$major'
14772 shlibpath_var=LD_LIBRARY_PATH
14773 shlibpath_overrides_runpath=yes
14774 hardcode_into_libs=yes
14775 # ldd complains unless libraries are executable
14776 postinstall_cmds='chmod +x $lib'
14779 sunos4*)
14780 version_type=sunos
14781 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14782 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14783 shlibpath_var=LD_LIBRARY_PATH
14784 shlibpath_overrides_runpath=yes
14785 if test "$with_gnu_ld" = yes; then
14786 need_lib_prefix=no
14788 need_version=yes
14791 sysv4 | sysv4.3*)
14792 version_type=linux
14793 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14794 soname_spec='${libname}${release}${shared_ext}$major'
14795 shlibpath_var=LD_LIBRARY_PATH
14796 case $host_vendor in
14797 sni)
14798 shlibpath_overrides_runpath=no
14799 need_lib_prefix=no
14800 export_dynamic_flag_spec='${wl}-Blargedynsym'
14801 runpath_var=LD_RUN_PATH
14803 siemens)
14804 need_lib_prefix=no
14806 motorola)
14807 need_lib_prefix=no
14808 need_version=no
14809 shlibpath_overrides_runpath=no
14810 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14812 esac
14815 sysv4*MP*)
14816 if test -d /usr/nec ;then
14817 version_type=linux
14818 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14819 soname_spec='$libname${shared_ext}.$major'
14820 shlibpath_var=LD_LIBRARY_PATH
14824 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14825 version_type=freebsd-elf
14826 need_lib_prefix=no
14827 need_version=no
14828 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14829 soname_spec='${libname}${release}${shared_ext}$major'
14830 shlibpath_var=LD_LIBRARY_PATH
14831 hardcode_into_libs=yes
14832 if test "$with_gnu_ld" = yes; then
14833 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14834 shlibpath_overrides_runpath=no
14835 else
14836 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14837 shlibpath_overrides_runpath=yes
14838 case $host_os in
14839 sco3.2v5*)
14840 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14842 esac
14844 sys_lib_dlsearch_path_spec='/usr/lib'
14847 uts4*)
14848 version_type=linux
14849 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14850 soname_spec='${libname}${release}${shared_ext}$major'
14851 shlibpath_var=LD_LIBRARY_PATH
14855 dynamic_linker=no
14857 esac
14858 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14859 echo "${ECHO_T}$dynamic_linker" >&6; }
14860 test "$dynamic_linker" = no && can_build_shared=no
14862 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14863 if test "$GCC" = yes; then
14864 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14867 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
14868 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
14869 hardcode_action_CXX=
14870 if test -n "$hardcode_libdir_flag_spec_CXX" || \
14871 test -n "$runpath_var_CXX" || \
14872 test "X$hardcode_automatic_CXX" = "Xyes" ; then
14874 # We can hardcode non-existant directories.
14875 if test "$hardcode_direct_CXX" != no &&
14876 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14877 # have to relink, otherwise we might link with an installed library
14878 # when we should be linking with a yet-to-be-installed one
14879 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
14880 test "$hardcode_minus_L_CXX" != no; then
14881 # Linking always hardcodes the temporary library directory.
14882 hardcode_action_CXX=relink
14883 else
14884 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14885 hardcode_action_CXX=immediate
14887 else
14888 # We cannot hardcode anything, or else we can only hardcode existing
14889 # directories.
14890 hardcode_action_CXX=unsupported
14892 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
14893 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
14895 if test "$hardcode_action_CXX" = relink; then
14896 # Fast installation is not supported
14897 enable_fast_install=no
14898 elif test "$shlibpath_overrides_runpath" = yes ||
14899 test "$enable_shared" = no; then
14900 # Fast installation is not necessary
14901 enable_fast_install=needless
14905 # The else clause should only fire when bootstrapping the
14906 # libtool distribution, otherwise you forgot to ship ltmain.sh
14907 # with your package, and you will get complaints that there are
14908 # no rules to generate ltmain.sh.
14909 if test -f "$ltmain"; then
14910 # See if we are running on zsh, and set the options which allow our commands through
14911 # without removal of \ escapes.
14912 if test -n "${ZSH_VERSION+set}" ; then
14913 setopt NO_GLOB_SUBST
14915 # Now quote all the things that may contain metacharacters while being
14916 # careful not to overquote the AC_SUBSTed values. We take copies of the
14917 # variables and quote the copies for generation of the libtool script.
14918 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
14919 SED SHELL STRIP \
14920 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14921 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14922 deplibs_check_method reload_flag reload_cmds need_locks \
14923 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14924 lt_cv_sys_global_symbol_to_c_name_address \
14925 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14926 old_postinstall_cmds old_postuninstall_cmds \
14927 compiler_CXX \
14928 CC_CXX \
14929 LD_CXX \
14930 lt_prog_compiler_wl_CXX \
14931 lt_prog_compiler_pic_CXX \
14932 lt_prog_compiler_static_CXX \
14933 lt_prog_compiler_no_builtin_flag_CXX \
14934 export_dynamic_flag_spec_CXX \
14935 thread_safe_flag_spec_CXX \
14936 whole_archive_flag_spec_CXX \
14937 enable_shared_with_static_runtimes_CXX \
14938 old_archive_cmds_CXX \
14939 old_archive_from_new_cmds_CXX \
14940 predep_objects_CXX \
14941 postdep_objects_CXX \
14942 predeps_CXX \
14943 postdeps_CXX \
14944 compiler_lib_search_path_CXX \
14945 archive_cmds_CXX \
14946 archive_expsym_cmds_CXX \
14947 postinstall_cmds_CXX \
14948 postuninstall_cmds_CXX \
14949 old_archive_from_expsyms_cmds_CXX \
14950 allow_undefined_flag_CXX \
14951 no_undefined_flag_CXX \
14952 export_symbols_cmds_CXX \
14953 hardcode_libdir_flag_spec_CXX \
14954 hardcode_libdir_flag_spec_ld_CXX \
14955 hardcode_libdir_separator_CXX \
14956 hardcode_automatic_CXX \
14957 module_cmds_CXX \
14958 module_expsym_cmds_CXX \
14959 lt_cv_prog_compiler_c_o_CXX \
14960 exclude_expsyms_CXX \
14961 include_expsyms_CXX; do
14963 case $var in
14964 old_archive_cmds_CXX | \
14965 old_archive_from_new_cmds_CXX | \
14966 archive_cmds_CXX | \
14967 archive_expsym_cmds_CXX | \
14968 module_cmds_CXX | \
14969 module_expsym_cmds_CXX | \
14970 old_archive_from_expsyms_cmds_CXX | \
14971 export_symbols_cmds_CXX | \
14972 extract_expsyms_cmds | reload_cmds | finish_cmds | \
14973 postinstall_cmds | postuninstall_cmds | \
14974 old_postinstall_cmds | old_postuninstall_cmds | \
14975 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14976 # Double-quote double-evaled strings.
14977 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14980 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14982 esac
14983 done
14985 case $lt_echo in
14986 *'\$0 --fallback-echo"')
14987 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14989 esac
14991 cfgfile="$ofile"
14993 cat <<__EOF__ >> "$cfgfile"
14994 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
14996 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14998 # Shell to use when invoking shell scripts.
14999 SHELL=$lt_SHELL
15001 # Whether or not to build shared libraries.
15002 build_libtool_libs=$enable_shared
15004 # Whether or not to build static libraries.
15005 build_old_libs=$enable_static
15007 # Whether or not to add -lc for building shared libraries.
15008 build_libtool_need_lc=$archive_cmds_need_lc_CXX
15010 # Whether or not to disallow shared libs when runtime libs are static
15011 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
15013 # Whether or not to optimize for fast installation.
15014 fast_install=$enable_fast_install
15016 # The host system.
15017 host_alias=$host_alias
15018 host=$host
15019 host_os=$host_os
15021 # The build system.
15022 build_alias=$build_alias
15023 build=$build
15024 build_os=$build_os
15026 # An echo program that does not interpret backslashes.
15027 echo=$lt_echo
15029 # The archiver.
15030 AR=$lt_AR
15031 AR_FLAGS=$lt_AR_FLAGS
15033 # A C compiler.
15034 LTCC=$lt_LTCC
15036 # LTCC compiler flags.
15037 LTCFLAGS=$lt_LTCFLAGS
15039 # A language-specific compiler.
15040 CC=$lt_compiler_CXX
15042 # Is the compiler the GNU C compiler?
15043 with_gcc=$GCC_CXX
15045 # An ERE matcher.
15046 EGREP=$lt_EGREP
15048 # The linker used to build libraries.
15049 LD=$lt_LD_CXX
15051 # Whether we need hard or soft links.
15052 LN_S=$lt_LN_S
15054 # A BSD-compatible nm program.
15055 NM=$lt_NM
15057 # A symbol stripping program
15058 STRIP=$lt_STRIP
15060 # Used to examine libraries when file_magic_cmd begins "file"
15061 MAGIC_CMD=$MAGIC_CMD
15063 # Used on cygwin: DLL creation program.
15064 DLLTOOL="$DLLTOOL"
15066 # Used on cygwin: object dumper.
15067 OBJDUMP="$OBJDUMP"
15069 # Used on cygwin: assembler.
15070 AS="$AS"
15072 # The name of the directory that contains temporary libtool files.
15073 objdir=$objdir
15075 # How to create reloadable object files.
15076 reload_flag=$lt_reload_flag
15077 reload_cmds=$lt_reload_cmds
15079 # How to pass a linker flag through the compiler.
15080 wl=$lt_lt_prog_compiler_wl_CXX
15082 # Object file suffix (normally "o").
15083 objext="$ac_objext"
15085 # Old archive suffix (normally "a").
15086 libext="$libext"
15088 # Shared library suffix (normally ".so").
15089 shrext_cmds='$shrext_cmds'
15091 # Executable file suffix (normally "").
15092 exeext="$exeext"
15094 # Additional compiler flags for building library objects.
15095 pic_flag=$lt_lt_prog_compiler_pic_CXX
15096 pic_mode=$pic_mode
15098 # What is the maximum length of a command?
15099 max_cmd_len=$lt_cv_sys_max_cmd_len
15101 # Does compiler simultaneously support -c and -o options?
15102 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
15104 # Must we lock files when doing compilation?
15105 need_locks=$lt_need_locks
15107 # Do we need the lib prefix for modules?
15108 need_lib_prefix=$need_lib_prefix
15110 # Do we need a version for libraries?
15111 need_version=$need_version
15113 # Whether dlopen is supported.
15114 dlopen_support=$enable_dlopen
15116 # Whether dlopen of programs is supported.
15117 dlopen_self=$enable_dlopen_self
15119 # Whether dlopen of statically linked programs is supported.
15120 dlopen_self_static=$enable_dlopen_self_static
15122 # Compiler flag to prevent dynamic linking.
15123 link_static_flag=$lt_lt_prog_compiler_static_CXX
15125 # Compiler flag to turn off builtin functions.
15126 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
15128 # Compiler flag to allow reflexive dlopens.
15129 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
15131 # Compiler flag to generate shared objects directly from archives.
15132 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
15134 # Compiler flag to generate thread-safe objects.
15135 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
15137 # Library versioning type.
15138 version_type=$version_type
15140 # Format of library name prefix.
15141 libname_spec=$lt_libname_spec
15143 # List of archive names. First name is the real one, the rest are links.
15144 # The last name is the one that the linker finds with -lNAME.
15145 library_names_spec=$lt_library_names_spec
15147 # The coded name of the library, if different from the real name.
15148 soname_spec=$lt_soname_spec
15150 # Commands used to build and install an old-style archive.
15151 RANLIB=$lt_RANLIB
15152 old_archive_cmds=$lt_old_archive_cmds_CXX
15153 old_postinstall_cmds=$lt_old_postinstall_cmds
15154 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15156 # Create an old-style archive from a shared archive.
15157 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
15159 # Create a temporary old-style archive to link instead of a shared archive.
15160 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
15162 # Commands used to build and install a shared archive.
15163 archive_cmds=$lt_archive_cmds_CXX
15164 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
15165 postinstall_cmds=$lt_postinstall_cmds
15166 postuninstall_cmds=$lt_postuninstall_cmds
15168 # Commands used to build a loadable module (assumed same as above if empty)
15169 module_cmds=$lt_module_cmds_CXX
15170 module_expsym_cmds=$lt_module_expsym_cmds_CXX
15172 # Commands to strip libraries.
15173 old_striplib=$lt_old_striplib
15174 striplib=$lt_striplib
15176 # Dependencies to place before the objects being linked to create a
15177 # shared library.
15178 predep_objects=$lt_predep_objects_CXX
15180 # Dependencies to place after the objects being linked to create a
15181 # shared library.
15182 postdep_objects=$lt_postdep_objects_CXX
15184 # Dependencies to place before the objects being linked to create a
15185 # shared library.
15186 predeps=$lt_predeps_CXX
15188 # Dependencies to place after the objects being linked to create a
15189 # shared library.
15190 postdeps=$lt_postdeps_CXX
15192 # The library search path used internally by the compiler when linking
15193 # a shared library.
15194 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
15196 # Method to check whether dependent libraries are shared objects.
15197 deplibs_check_method=$lt_deplibs_check_method
15199 # Command to use when deplibs_check_method == file_magic.
15200 file_magic_cmd=$lt_file_magic_cmd
15202 # Flag that allows shared libraries with undefined symbols to be built.
15203 allow_undefined_flag=$lt_allow_undefined_flag_CXX
15205 # Flag that forces no undefined symbols.
15206 no_undefined_flag=$lt_no_undefined_flag_CXX
15208 # Commands used to finish a libtool library installation in a directory.
15209 finish_cmds=$lt_finish_cmds
15211 # Same as above, but a single script fragment to be evaled but not shown.
15212 finish_eval=$lt_finish_eval
15214 # Take the output of nm and produce a listing of raw symbols and C names.
15215 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15217 # Transform the output of nm in a proper C declaration
15218 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15220 # Transform the output of nm in a C name address pair
15221 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15223 # This is the shared library runtime path variable.
15224 runpath_var=$runpath_var
15226 # This is the shared library path variable.
15227 shlibpath_var=$shlibpath_var
15229 # Is shlibpath searched before the hard-coded library search path?
15230 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15232 # How to hardcode a shared library path into an executable.
15233 hardcode_action=$hardcode_action_CXX
15235 # Whether we should hardcode library paths into libraries.
15236 hardcode_into_libs=$hardcode_into_libs
15238 # Flag to hardcode \$libdir into a binary during linking.
15239 # This must work even if \$libdir does not exist.
15240 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
15242 # If ld is used when linking, flag to hardcode \$libdir into
15243 # a binary during linking. This must work even if \$libdir does
15244 # not exist.
15245 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
15247 # Whether we need a single -rpath flag with a separated argument.
15248 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
15250 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15251 # resulting binary.
15252 hardcode_direct=$hardcode_direct_CXX
15254 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15255 # resulting binary.
15256 hardcode_minus_L=$hardcode_minus_L_CXX
15258 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15259 # the resulting binary.
15260 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
15262 # Set to yes if building a shared library automatically hardcodes DIR into the library
15263 # and all subsequent libraries and executables linked against it.
15264 hardcode_automatic=$hardcode_automatic_CXX
15266 # Variables whose values should be saved in libtool wrapper scripts and
15267 # restored at relink time.
15268 variables_saved_for_relink="$variables_saved_for_relink"
15270 # Whether libtool must link a program against all its dependency libraries.
15271 link_all_deplibs=$link_all_deplibs_CXX
15273 # Compile-time system search path for libraries
15274 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15276 # Run-time system search path for libraries
15277 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15279 # Fix the shell variable \$srcfile for the compiler.
15280 fix_srcfile_path="$fix_srcfile_path_CXX"
15282 # Set to yes if exported symbols are required.
15283 always_export_symbols=$always_export_symbols_CXX
15285 # The commands to list exported symbols.
15286 export_symbols_cmds=$lt_export_symbols_cmds_CXX
15288 # The commands to extract the exported symbol list from a shared archive.
15289 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15291 # Symbols that should not be listed in the preloaded symbols.
15292 exclude_expsyms=$lt_exclude_expsyms_CXX
15294 # Symbols that must always be exported.
15295 include_expsyms=$lt_include_expsyms_CXX
15297 # ### END LIBTOOL TAG CONFIG: $tagname
15299 __EOF__
15302 else
15303 # If there is no Makefile yet, we rely on a make rule to execute
15304 # `config.status --recheck' to rerun these tests and create the
15305 # libtool script then.
15306 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15307 if test -f "$ltmain_in"; then
15308 test -f Makefile && make "$ltmain"
15313 ac_ext=c
15314 ac_cpp='$CPP $CPPFLAGS'
15315 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15316 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15317 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15319 CC=$lt_save_CC
15320 LDCXX=$LD
15321 LD=$lt_save_LD
15322 GCC=$lt_save_GCC
15323 with_gnu_ldcxx=$with_gnu_ld
15324 with_gnu_ld=$lt_save_with_gnu_ld
15325 lt_cv_path_LDCXX=$lt_cv_path_LD
15326 lt_cv_path_LD=$lt_save_path_LD
15327 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15328 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15330 else
15331 tagname=""
15335 F77)
15336 if test -n "$F77" && test "X$F77" != "Xno"; then
15338 ac_ext=f
15339 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
15340 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15341 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
15344 archive_cmds_need_lc_F77=no
15345 allow_undefined_flag_F77=
15346 always_export_symbols_F77=no
15347 archive_expsym_cmds_F77=
15348 export_dynamic_flag_spec_F77=
15349 hardcode_direct_F77=no
15350 hardcode_libdir_flag_spec_F77=
15351 hardcode_libdir_flag_spec_ld_F77=
15352 hardcode_libdir_separator_F77=
15353 hardcode_minus_L_F77=no
15354 hardcode_automatic_F77=no
15355 module_cmds_F77=
15356 module_expsym_cmds_F77=
15357 link_all_deplibs_F77=unknown
15358 old_archive_cmds_F77=$old_archive_cmds
15359 no_undefined_flag_F77=
15360 whole_archive_flag_spec_F77=
15361 enable_shared_with_static_runtimes_F77=no
15363 # Source file extension for f77 test sources.
15364 ac_ext=f
15366 # Object file extension for compiled f77 test sources.
15367 objext=o
15368 objext_F77=$objext
15370 # Code to be used in simple compile tests
15371 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
15373 # Code to be used in simple link tests
15374 lt_simple_link_test_code=" program t\n end\n"
15376 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15378 # If no C compiler was specified, use CC.
15379 LTCC=${LTCC-"$CC"}
15381 # If no C compiler flags were specified, use CFLAGS.
15382 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15384 # Allow CC to be a program name with arguments.
15385 compiler=$CC
15388 # save warnings/boilerplate of simple test code
15389 ac_outfile=conftest.$ac_objext
15390 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
15391 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15392 _lt_compiler_boilerplate=`cat conftest.err`
15393 $rm conftest*
15395 ac_outfile=conftest.$ac_objext
15396 printf "$lt_simple_link_test_code" >conftest.$ac_ext
15397 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15398 _lt_linker_boilerplate=`cat conftest.err`
15399 $rm conftest*
15402 # Allow CC to be a program name with arguments.
15403 lt_save_CC="$CC"
15404 CC=${F77-"f77"}
15405 compiler=$CC
15406 compiler_F77=$CC
15407 for cc_temp in $compiler""; do
15408 case $cc_temp in
15409 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15410 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15411 \-*) ;;
15412 *) break;;
15413 esac
15414 done
15415 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15418 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
15419 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
15420 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
15421 echo "${ECHO_T}$can_build_shared" >&6; }
15423 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
15424 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
15425 test "$can_build_shared" = "no" && enable_shared=no
15427 # On AIX, shared libraries and static libraries use the same namespace, and
15428 # are all built from PIC.
15429 case $host_os in
15430 aix3*)
15431 test "$enable_shared" = yes && enable_static=no
15432 if test -n "$RANLIB"; then
15433 archive_cmds="$archive_cmds~\$RANLIB \$lib"
15434 postinstall_cmds='$RANLIB $lib'
15437 aix4* | aix5*)
15438 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
15439 test "$enable_shared" = yes && enable_static=no
15442 esac
15443 { echo "$as_me:$LINENO: result: $enable_shared" >&5
15444 echo "${ECHO_T}$enable_shared" >&6; }
15446 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
15447 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
15448 # Make sure either enable_shared or enable_static is yes.
15449 test "$enable_shared" = yes || enable_static=yes
15450 { echo "$as_me:$LINENO: result: $enable_static" >&5
15451 echo "${ECHO_T}$enable_static" >&6; }
15453 GCC_F77="$G77"
15454 LD_F77="$LD"
15456 lt_prog_compiler_wl_F77=
15457 lt_prog_compiler_pic_F77=
15458 lt_prog_compiler_static_F77=
15460 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15461 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
15463 if test "$GCC" = yes; then
15464 lt_prog_compiler_wl_F77='-Wl,'
15465 lt_prog_compiler_static_F77='-static'
15467 case $host_os in
15468 aix*)
15469 # All AIX code is PIC.
15470 if test "$host_cpu" = ia64; then
15471 # AIX 5 now supports IA64 processor
15472 lt_prog_compiler_static_F77='-Bstatic'
15476 amigaos*)
15477 # FIXME: we need at least 68020 code to build shared libraries, but
15478 # adding the `-m68020' flag to GCC prevents building anything better,
15479 # like `-m68040'.
15480 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
15483 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15484 # PIC is the default for these OSes.
15487 mingw* | pw32* | os2*)
15488 # This hack is so that the source file can tell whether it is being
15489 # built for inclusion in a dll (and should export symbols for example).
15490 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
15493 darwin* | rhapsody*)
15494 # PIC is the default on this platform
15495 # Common symbols not allowed in MH_DYLIB files
15496 lt_prog_compiler_pic_F77='-fno-common'
15499 interix3*)
15500 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15501 # Instead, we relocate shared libraries at runtime.
15504 msdosdjgpp*)
15505 # Just because we use GCC doesn't mean we suddenly get shared libraries
15506 # on systems that don't support them.
15507 lt_prog_compiler_can_build_shared_F77=no
15508 enable_shared=no
15511 sysv4*MP*)
15512 if test -d /usr/nec; then
15513 lt_prog_compiler_pic_F77=-Kconform_pic
15517 hpux*)
15518 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15519 # not for PA HP-UX.
15520 case $host_cpu in
15521 hppa*64*|ia64*)
15522 # +Z the default
15525 lt_prog_compiler_pic_F77='-fPIC'
15527 esac
15531 lt_prog_compiler_pic_F77='-fPIC'
15533 esac
15534 else
15535 # PORTME Check for flag to pass linker flags through the system compiler.
15536 case $host_os in
15537 aix*)
15538 lt_prog_compiler_wl_F77='-Wl,'
15539 if test "$host_cpu" = ia64; then
15540 # AIX 5 now supports IA64 processor
15541 lt_prog_compiler_static_F77='-Bstatic'
15542 else
15543 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
15546 darwin*)
15547 # PIC is the default on this platform
15548 # Common symbols not allowed in MH_DYLIB files
15549 case $cc_basename in
15550 xlc*)
15551 lt_prog_compiler_pic_F77='-qnocommon'
15552 lt_prog_compiler_wl_F77='-Wl,'
15554 esac
15557 mingw* | pw32* | os2*)
15558 # This hack is so that the source file can tell whether it is being
15559 # built for inclusion in a dll (and should export symbols for example).
15560 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
15563 hpux9* | hpux10* | hpux11*)
15564 lt_prog_compiler_wl_F77='-Wl,'
15565 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15566 # not for PA HP-UX.
15567 case $host_cpu in
15568 hppa*64*|ia64*)
15569 # +Z the default
15572 lt_prog_compiler_pic_F77='+Z'
15574 esac
15575 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15576 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
15579 irix5* | irix6* | nonstopux*)
15580 lt_prog_compiler_wl_F77='-Wl,'
15581 # PIC (with -KPIC) is the default.
15582 lt_prog_compiler_static_F77='-non_shared'
15585 newsos6)
15586 lt_prog_compiler_pic_F77='-KPIC'
15587 lt_prog_compiler_static_F77='-Bstatic'
15590 linux* | k*bsd*-gnu)
15591 case $cc_basename in
15592 icc* | ecc*)
15593 lt_prog_compiler_wl_F77='-Wl,'
15594 lt_prog_compiler_pic_F77='-KPIC'
15595 lt_prog_compiler_static_F77='-static'
15597 pgcc* | pgf77* | pgf90* | pgf95*)
15598 # Portland Group compilers (*not* the Pentium gcc compiler,
15599 # which looks to be a dead project)
15600 lt_prog_compiler_wl_F77='-Wl,'
15601 lt_prog_compiler_pic_F77='-fpic'
15602 lt_prog_compiler_static_F77='-Bstatic'
15604 ccc*)
15605 lt_prog_compiler_wl_F77='-Wl,'
15606 # All Alpha code is PIC.
15607 lt_prog_compiler_static_F77='-non_shared'
15609 esac
15612 osf3* | osf4* | osf5*)
15613 lt_prog_compiler_wl_F77='-Wl,'
15614 # All OSF/1 code is PIC.
15615 lt_prog_compiler_static_F77='-non_shared'
15618 solaris*)
15619 lt_prog_compiler_pic_F77='-KPIC'
15620 lt_prog_compiler_static_F77='-Bstatic'
15621 case $cc_basename in
15622 f77* | f90* | f95*)
15623 lt_prog_compiler_wl_F77='-Qoption ld ';;
15625 lt_prog_compiler_wl_F77='-Wl,';;
15626 esac
15629 sunos4*)
15630 lt_prog_compiler_wl_F77='-Qoption ld '
15631 lt_prog_compiler_pic_F77='-PIC'
15632 lt_prog_compiler_static_F77='-Bstatic'
15635 sysv4 | sysv4.2uw2* | sysv4.3*)
15636 lt_prog_compiler_wl_F77='-Wl,'
15637 lt_prog_compiler_pic_F77='-KPIC'
15638 lt_prog_compiler_static_F77='-Bstatic'
15641 sysv4*MP*)
15642 if test -d /usr/nec ;then
15643 lt_prog_compiler_pic_F77='-Kconform_pic'
15644 lt_prog_compiler_static_F77='-Bstatic'
15648 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15649 lt_prog_compiler_wl_F77='-Wl,'
15650 lt_prog_compiler_pic_F77='-KPIC'
15651 lt_prog_compiler_static_F77='-Bstatic'
15654 unicos*)
15655 lt_prog_compiler_wl_F77='-Wl,'
15656 lt_prog_compiler_can_build_shared_F77=no
15659 uts4*)
15660 lt_prog_compiler_pic_F77='-pic'
15661 lt_prog_compiler_static_F77='-Bstatic'
15665 lt_prog_compiler_can_build_shared_F77=no
15667 esac
15670 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
15671 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
15674 # Check to make sure the PIC flag actually works.
15676 if test -n "$lt_prog_compiler_pic_F77"; then
15678 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
15679 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
15680 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
15681 echo $ECHO_N "(cached) $ECHO_C" >&6
15682 else
15683 lt_prog_compiler_pic_works_F77=no
15684 ac_outfile=conftest.$ac_objext
15685 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15686 lt_compiler_flag="$lt_prog_compiler_pic_F77"
15687 # Insert the option either (1) after the last *FLAGS variable, or
15688 # (2) before a word containing "conftest.", or (3) at the end.
15689 # Note that $ac_compile itself does not contain backslashes and begins
15690 # with a dollar sign (not a hyphen), so the echo should work correctly.
15691 # The option is referenced via a variable to avoid confusing sed.
15692 lt_compile=`echo "$ac_compile" | $SED \
15693 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15694 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15695 -e 's:$: $lt_compiler_flag:'`
15696 (eval echo "\"\$as_me:15696: $lt_compile\"" >&5)
15697 (eval "$lt_compile" 2>conftest.err)
15698 ac_status=$?
15699 cat conftest.err >&5
15700 echo "$as_me:15700: \$? = $ac_status" >&5
15701 if (exit $ac_status) && test -s "$ac_outfile"; then
15702 # The compiler can only warn and ignore the option if not recognized
15703 # So say no if there are warnings other than the usual output.
15704 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
15705 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15706 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15707 lt_prog_compiler_pic_works_F77=yes
15710 $rm conftest*
15713 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
15714 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
15716 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
15717 case $lt_prog_compiler_pic_F77 in
15718 "" | " "*) ;;
15719 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
15720 esac
15721 else
15722 lt_prog_compiler_pic_F77=
15723 lt_prog_compiler_can_build_shared_F77=no
15727 case $host_os in
15728 # For platforms which do not support PIC, -DPIC is meaningless:
15729 *djgpp*)
15730 lt_prog_compiler_pic_F77=
15733 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
15735 esac
15738 # Check to make sure the static flag actually works.
15740 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
15741 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15742 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
15743 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
15744 echo $ECHO_N "(cached) $ECHO_C" >&6
15745 else
15746 lt_prog_compiler_static_works_F77=no
15747 save_LDFLAGS="$LDFLAGS"
15748 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15749 printf "$lt_simple_link_test_code" > conftest.$ac_ext
15750 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15751 # The linker can only warn and ignore the option if not recognized
15752 # So say no if there are warnings
15753 if test -s conftest.err; then
15754 # Append any errors to the config.log.
15755 cat conftest.err 1>&5
15756 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
15757 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15758 if diff conftest.exp conftest.er2 >/dev/null; then
15759 lt_prog_compiler_static_works_F77=yes
15761 else
15762 lt_prog_compiler_static_works_F77=yes
15765 $rm conftest*
15766 LDFLAGS="$save_LDFLAGS"
15769 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
15770 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
15772 if test x"$lt_prog_compiler_static_works_F77" = xyes; then
15774 else
15775 lt_prog_compiler_static_F77=
15779 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15780 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
15781 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
15782 echo $ECHO_N "(cached) $ECHO_C" >&6
15783 else
15784 lt_cv_prog_compiler_c_o_F77=no
15785 $rm -r conftest 2>/dev/null
15786 mkdir conftest
15787 cd conftest
15788 mkdir out
15789 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15791 lt_compiler_flag="-o out/conftest2.$ac_objext"
15792 # Insert the option either (1) after the last *FLAGS variable, or
15793 # (2) before a word containing "conftest.", or (3) at the end.
15794 # Note that $ac_compile itself does not contain backslashes and begins
15795 # with a dollar sign (not a hyphen), so the echo should work correctly.
15796 lt_compile=`echo "$ac_compile" | $SED \
15797 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15798 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15799 -e 's:$: $lt_compiler_flag:'`
15800 (eval echo "\"\$as_me:15800: $lt_compile\"" >&5)
15801 (eval "$lt_compile" 2>out/conftest.err)
15802 ac_status=$?
15803 cat out/conftest.err >&5
15804 echo "$as_me:15804: \$? = $ac_status" >&5
15805 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15806 then
15807 # The compiler can only warn and ignore the option if not recognized
15808 # So say no if there are warnings
15809 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
15810 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15811 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15812 lt_cv_prog_compiler_c_o_F77=yes
15815 chmod u+w . 2>&5
15816 $rm conftest*
15817 # SGI C++ compiler will create directory out/ii_files/ for
15818 # template instantiation
15819 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15820 $rm out/* && rmdir out
15821 cd ..
15822 rmdir conftest
15823 $rm conftest*
15826 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
15827 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
15830 hard_links="nottested"
15831 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
15832 # do not overwrite the value of need_locks provided by the user
15833 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15834 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
15835 hard_links=yes
15836 $rm conftest*
15837 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15838 touch conftest.a
15839 ln conftest.a conftest.b 2>&5 || hard_links=no
15840 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15841 { echo "$as_me:$LINENO: result: $hard_links" >&5
15842 echo "${ECHO_T}$hard_links" >&6; }
15843 if test "$hard_links" = no; then
15844 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15845 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15846 need_locks=warn
15848 else
15849 need_locks=no
15852 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15853 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
15855 runpath_var=
15856 allow_undefined_flag_F77=
15857 enable_shared_with_static_runtimes_F77=no
15858 archive_cmds_F77=
15859 archive_expsym_cmds_F77=
15860 old_archive_From_new_cmds_F77=
15861 old_archive_from_expsyms_cmds_F77=
15862 export_dynamic_flag_spec_F77=
15863 whole_archive_flag_spec_F77=
15864 thread_safe_flag_spec_F77=
15865 hardcode_libdir_flag_spec_F77=
15866 hardcode_libdir_flag_spec_ld_F77=
15867 hardcode_libdir_separator_F77=
15868 hardcode_direct_F77=no
15869 hardcode_minus_L_F77=no
15870 hardcode_shlibpath_var_F77=unsupported
15871 link_all_deplibs_F77=unknown
15872 hardcode_automatic_F77=no
15873 module_cmds_F77=
15874 module_expsym_cmds_F77=
15875 always_export_symbols_F77=no
15876 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15877 # include_expsyms should be a list of space-separated symbols to be *always*
15878 # included in the symbol list
15879 include_expsyms_F77=
15880 # exclude_expsyms can be an extended regexp of symbols to exclude
15881 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15882 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15883 # as well as any symbol that contains `d'.
15884 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
15885 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15886 # platforms (ab)use it in PIC code, but their linkers get confused if
15887 # the symbol is explicitly referenced. Since portable code cannot
15888 # rely on this symbol name, it's probably fine to never include it in
15889 # preloaded symbol tables.
15890 extract_expsyms_cmds=
15891 # Just being paranoid about ensuring that cc_basename is set.
15892 for cc_temp in $compiler""; do
15893 case $cc_temp in
15894 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15895 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15896 \-*) ;;
15897 *) break;;
15898 esac
15899 done
15900 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15902 case $host_os in
15903 cygwin* | mingw* | pw32*)
15904 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15905 # When not using gcc, we currently assume that we are using
15906 # Microsoft Visual C++.
15907 if test "$GCC" != yes; then
15908 with_gnu_ld=no
15911 interix*)
15912 # we just hope/assume this is gcc and not c89 (= MSVC++)
15913 with_gnu_ld=yes
15915 openbsd*)
15916 with_gnu_ld=no
15918 esac
15920 ld_shlibs_F77=yes
15921 if test "$with_gnu_ld" = yes; then
15922 # If archive_cmds runs LD, not CC, wlarc should be empty
15923 wlarc='${wl}'
15925 # Set some defaults for GNU ld with shared library support. These
15926 # are reset later if shared libraries are not supported. Putting them
15927 # here allows them to be overridden if necessary.
15928 runpath_var=LD_RUN_PATH
15929 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
15930 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
15931 # ancient GNU ld didn't support --whole-archive et. al.
15932 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15933 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15934 else
15935 whole_archive_flag_spec_F77=
15937 supports_anon_versioning=no
15938 case `$LD -v 2>/dev/null` in
15939 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15940 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15941 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15942 *\ 2.11.*) ;; # other 2.11 versions
15943 *) supports_anon_versioning=yes ;;
15944 esac
15946 # See if GNU ld supports shared libraries.
15947 case $host_os in
15948 aix3* | aix4* | aix5*)
15949 # On AIX/PPC, the GNU linker is very broken
15950 if test "$host_cpu" != ia64; then
15951 ld_shlibs_F77=no
15952 cat <<EOF 1>&2
15954 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
15955 *** to be unable to reliably create shared libraries on AIX.
15956 *** Therefore, libtool is disabling shared libraries support. If you
15957 *** really care for shared libraries, you may want to modify your PATH
15958 *** so that a non-GNU linker is found, and then restart.
15964 amigaos*)
15965 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)'
15966 hardcode_libdir_flag_spec_F77='-L$libdir'
15967 hardcode_minus_L_F77=yes
15969 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15970 # that the semantics of dynamic libraries on AmigaOS, at least up
15971 # to version 4, is to share data among multiple programs linked
15972 # with the same dynamic library. Since this doesn't match the
15973 # behavior of shared libraries on other platforms, we can't use
15974 # them.
15975 ld_shlibs_F77=no
15978 beos*)
15979 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15980 allow_undefined_flag_F77=unsupported
15981 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15982 # support --undefined. This deserves some investigation. FIXME
15983 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15984 else
15985 ld_shlibs_F77=no
15989 cygwin* | mingw* | pw32*)
15990 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
15991 # as there is no search path for DLLs.
15992 hardcode_libdir_flag_spec_F77='-L$libdir'
15993 allow_undefined_flag_F77=unsupported
15994 always_export_symbols_F77=no
15995 enable_shared_with_static_runtimes_F77=yes
15996 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15998 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15999 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16000 # If the export-symbols file already is a .def file (1st line
16001 # is EXPORTS), use it as is; otherwise, prepend...
16002 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16003 cp $export_symbols $output_objdir/$soname.def;
16004 else
16005 echo EXPORTS > $output_objdir/$soname.def;
16006 cat $export_symbols >> $output_objdir/$soname.def;
16008 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16009 else
16010 ld_shlibs_F77=no
16014 interix3*)
16015 hardcode_direct_F77=no
16016 hardcode_shlibpath_var_F77=no
16017 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
16018 export_dynamic_flag_spec_F77='${wl}-E'
16019 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16020 # Instead, shared libraries are loaded at an image base (0x10000000 by
16021 # default) and relocated if they conflict, which is a slow very memory
16022 # consuming and fragmenting process. To avoid this, we pick a random,
16023 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16024 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
16025 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'
16026 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'
16029 linux* | k*bsd*-gnu)
16030 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16031 tmp_addflag=
16032 case $cc_basename,$host_cpu in
16033 pgcc*) # Portland Group C compiler
16034 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'
16035 tmp_addflag=' $pic_flag'
16037 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
16038 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'
16039 tmp_addflag=' $pic_flag -Mnomain' ;;
16040 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
16041 tmp_addflag=' -i_dynamic' ;;
16042 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
16043 tmp_addflag=' -i_dynamic -nofor_main' ;;
16044 ifc* | ifort*) # Intel Fortran compiler
16045 tmp_addflag=' -nofor_main' ;;
16046 esac
16047 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16049 if test $supports_anon_versioning = yes; then
16050 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
16051 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16052 $echo "local: *; };" >> $output_objdir/$libname.ver~
16053 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16055 link_all_deplibs_F77=no
16056 else
16057 ld_shlibs_F77=no
16061 netbsd* | netbsdelf*-gnu)
16062 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16063 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16064 wlarc=
16065 else
16066 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16067 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16071 solaris*)
16072 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16073 ld_shlibs_F77=no
16074 cat <<EOF 1>&2
16076 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
16077 *** create shared libraries on Solaris systems. Therefore, libtool
16078 *** is disabling shared libraries support. We urge you to upgrade GNU
16079 *** binutils to release 2.9.1 or newer. Another option is to modify
16080 *** your PATH or compiler configuration so that the native linker is
16081 *** used, and then restart.
16084 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16085 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16086 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16087 else
16088 ld_shlibs_F77=no
16092 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
16093 case `$LD -v 2>&1` in
16094 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
16095 ld_shlibs_F77=no
16096 cat <<_LT_EOF 1>&2
16098 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
16099 *** reliably create shared libraries on SCO systems. Therefore, libtool
16100 *** is disabling shared libraries support. We urge you to upgrade GNU
16101 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
16102 *** your PATH or compiler configuration so that the native linker is
16103 *** used, and then restart.
16105 _LT_EOF
16108 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16109 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
16110 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
16111 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
16112 else
16113 ld_shlibs_F77=no
16116 esac
16119 sunos4*)
16120 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16121 wlarc=
16122 hardcode_direct_F77=yes
16123 hardcode_shlibpath_var_F77=no
16127 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16128 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16129 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16130 else
16131 ld_shlibs_F77=no
16134 esac
16136 if test "$ld_shlibs_F77" = no; then
16137 runpath_var=
16138 hardcode_libdir_flag_spec_F77=
16139 export_dynamic_flag_spec_F77=
16140 whole_archive_flag_spec_F77=
16142 else
16143 # PORTME fill in a description of your system's linker (not GNU ld)
16144 case $host_os in
16145 aix3*)
16146 allow_undefined_flag_F77=unsupported
16147 always_export_symbols_F77=yes
16148 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'
16149 # Note: this linker hardcodes the directories in LIBPATH if there
16150 # are no directories specified by -L.
16151 hardcode_minus_L_F77=yes
16152 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
16153 # Neither direct hardcoding nor static linking is supported with a
16154 # broken collect2.
16155 hardcode_direct_F77=unsupported
16159 aix4* | aix5*)
16160 if test "$host_cpu" = ia64; then
16161 # On IA64, the linker does run time linking by default, so we don't
16162 # have to do anything special.
16163 aix_use_runtimelinking=no
16164 exp_sym_flag='-Bexport'
16165 no_entry_flag=""
16166 else
16167 # If we're using GNU nm, then we don't want the "-C" option.
16168 # -C means demangle to AIX nm, but means don't demangle with GNU nm
16169 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16170 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'
16171 else
16172 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'
16174 aix_use_runtimelinking=no
16176 # Test if we are trying to use run time linking or normal
16177 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16178 # need to do runtime linking.
16179 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
16180 for ld_flag in $LDFLAGS; do
16181 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16182 aix_use_runtimelinking=yes
16183 break
16185 done
16187 esac
16189 exp_sym_flag='-bexport'
16190 no_entry_flag='-bnoentry'
16193 # When large executables or shared objects are built, AIX ld can
16194 # have problems creating the table of contents. If linking a library
16195 # or program results in "error TOC overflow" add -mminimal-toc to
16196 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16197 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16199 archive_cmds_F77=''
16200 hardcode_direct_F77=yes
16201 hardcode_libdir_separator_F77=':'
16202 link_all_deplibs_F77=yes
16204 if test "$GCC" = yes; then
16205 case $host_os in aix4.[012]|aix4.[012].*)
16206 # We only want to do this on AIX 4.2 and lower, the check
16207 # below for broken collect2 doesn't work under 4.3+
16208 collect2name=`${CC} -print-prog-name=collect2`
16209 if test -f "$collect2name" && \
16210 strings "$collect2name" | grep resolve_lib_name >/dev/null
16211 then
16212 # We have reworked collect2
16213 hardcode_direct_F77=yes
16214 else
16215 # We have old collect2
16216 hardcode_direct_F77=unsupported
16217 # It fails to find uninstalled libraries when the uninstalled
16218 # path is not listed in the libpath. Setting hardcode_minus_L
16219 # to unsupported forces relinking
16220 hardcode_minus_L_F77=yes
16221 hardcode_libdir_flag_spec_F77='-L$libdir'
16222 hardcode_libdir_separator_F77=
16225 esac
16226 shared_flag='-shared'
16227 if test "$aix_use_runtimelinking" = yes; then
16228 shared_flag="$shared_flag "'${wl}-G'
16230 else
16231 # not using gcc
16232 if test "$host_cpu" = ia64; then
16233 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16234 # chokes on -Wl,-G. The following line is correct:
16235 shared_flag='-G'
16236 else
16237 if test "$aix_use_runtimelinking" = yes; then
16238 shared_flag='${wl}-G'
16239 else
16240 shared_flag='${wl}-bM:SRE'
16245 # It seems that -bexpall does not export symbols beginning with
16246 # underscore (_), so it is better to generate a list of symbols to export.
16247 always_export_symbols_F77=yes
16248 if test "$aix_use_runtimelinking" = yes; then
16249 # Warning - without using the other runtime loading flags (-brtl),
16250 # -berok will link without error, but may produce a broken library.
16251 allow_undefined_flag_F77='-berok'
16252 # Determine the default libpath from the value encoded in an empty executable.
16253 cat >conftest.$ac_ext <<_ACEOF
16254 program main
16257 _ACEOF
16258 rm -f conftest.$ac_objext conftest$ac_exeext
16259 if { (ac_try="$ac_link"
16260 case "(($ac_try" in
16261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16262 *) ac_try_echo=$ac_try;;
16263 esac
16264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16265 (eval "$ac_link") 2>conftest.er1
16266 ac_status=$?
16267 grep -v '^ *+' conftest.er1 >conftest.err
16268 rm -f conftest.er1
16269 cat conftest.err >&5
16270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16271 (exit $ac_status); } && {
16272 test -z "$ac_f77_werror_flag" ||
16273 test ! -s conftest.err
16274 } && test -s conftest$ac_exeext &&
16275 $as_test_x conftest$ac_exeext; then
16277 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16279 # Check for a 64-bit object if we didn't find anything.
16280 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16281 }'`; fi
16282 else
16283 echo "$as_me: failed program was:" >&5
16284 sed 's/^/| /' conftest.$ac_ext >&5
16289 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16290 conftest$ac_exeext conftest.$ac_ext
16291 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16293 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
16294 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"
16295 else
16296 if test "$host_cpu" = ia64; then
16297 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
16298 allow_undefined_flag_F77="-z nodefs"
16299 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"
16300 else
16301 # Determine the default libpath from the value encoded in an empty executable.
16302 cat >conftest.$ac_ext <<_ACEOF
16303 program main
16306 _ACEOF
16307 rm -f conftest.$ac_objext conftest$ac_exeext
16308 if { (ac_try="$ac_link"
16309 case "(($ac_try" in
16310 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16311 *) ac_try_echo=$ac_try;;
16312 esac
16313 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16314 (eval "$ac_link") 2>conftest.er1
16315 ac_status=$?
16316 grep -v '^ *+' conftest.er1 >conftest.err
16317 rm -f conftest.er1
16318 cat conftest.err >&5
16319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16320 (exit $ac_status); } && {
16321 test -z "$ac_f77_werror_flag" ||
16322 test ! -s conftest.err
16323 } && test -s conftest$ac_exeext &&
16324 $as_test_x conftest$ac_exeext; then
16326 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16328 # Check for a 64-bit object if we didn't find anything.
16329 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16330 }'`; fi
16331 else
16332 echo "$as_me: failed program was:" >&5
16333 sed 's/^/| /' conftest.$ac_ext >&5
16338 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16339 conftest$ac_exeext conftest.$ac_ext
16340 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16342 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
16343 # Warning - without using the other run time loading flags,
16344 # -berok will link without error, but may produce a broken library.
16345 no_undefined_flag_F77=' ${wl}-bernotok'
16346 allow_undefined_flag_F77=' ${wl}-berok'
16347 # Exported symbols can be pulled into shared objects from archives
16348 whole_archive_flag_spec_F77='$convenience'
16349 archive_cmds_need_lc_F77=yes
16350 # This is similar to how AIX traditionally builds its shared libraries.
16351 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'
16356 amigaos*)
16357 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)'
16358 hardcode_libdir_flag_spec_F77='-L$libdir'
16359 hardcode_minus_L_F77=yes
16360 # see comment about different semantics on the GNU ld section
16361 ld_shlibs_F77=no
16364 bsdi[45]*)
16365 export_dynamic_flag_spec_F77=-rdynamic
16368 cygwin* | mingw* | pw32*)
16369 # When not using gcc, we currently assume that we are using
16370 # Microsoft Visual C++.
16371 # hardcode_libdir_flag_spec is actually meaningless, as there is
16372 # no search path for DLLs.
16373 hardcode_libdir_flag_spec_F77=' '
16374 allow_undefined_flag_F77=unsupported
16375 # Tell ltmain to make .lib files, not .a files.
16376 libext=lib
16377 # Tell ltmain to make .dll files, not .so files.
16378 shrext_cmds=".dll"
16379 # FIXME: Setting linknames here is a bad hack.
16380 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
16381 # The linker will automatically build a .lib file if we build a DLL.
16382 old_archive_From_new_cmds_F77='true'
16383 # FIXME: Should let the user specify the lib program.
16384 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
16385 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
16386 enable_shared_with_static_runtimes_F77=yes
16389 darwin* | rhapsody*)
16390 case $host_os in
16391 rhapsody* | darwin1.[012])
16392 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
16394 *) # Darwin 1.3 on
16395 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16396 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16397 else
16398 case ${MACOSX_DEPLOYMENT_TARGET} in
16399 10.[012])
16400 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16402 10.*)
16403 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
16405 esac
16408 esac
16409 archive_cmds_need_lc_F77=no
16410 hardcode_direct_F77=no
16411 hardcode_automatic_F77=yes
16412 hardcode_shlibpath_var_F77=unsupported
16413 whole_archive_flag_spec_F77=''
16414 link_all_deplibs_F77=yes
16415 if test "$GCC" = yes ; then
16416 output_verbose_link_cmd='echo'
16417 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16418 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16419 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16420 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16421 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}'
16422 else
16423 case $cc_basename in
16424 xlc*)
16425 output_verbose_link_cmd='echo'
16426 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
16427 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16428 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16429 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16430 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}'
16433 ld_shlibs_F77=no
16435 esac
16439 dgux*)
16440 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16441 hardcode_libdir_flag_spec_F77='-L$libdir'
16442 hardcode_shlibpath_var_F77=no
16445 freebsd1*)
16446 ld_shlibs_F77=no
16449 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16450 # support. Future versions do this automatically, but an explicit c++rt0.o
16451 # does not break anything, and helps significantly (at the cost of a little
16452 # extra space).
16453 freebsd2.2*)
16454 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16455 hardcode_libdir_flag_spec_F77='-R$libdir'
16456 hardcode_direct_F77=yes
16457 hardcode_shlibpath_var_F77=no
16460 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16461 freebsd2*)
16462 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16463 hardcode_direct_F77=yes
16464 hardcode_minus_L_F77=yes
16465 hardcode_shlibpath_var_F77=no
16468 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16469 freebsd* | dragonfly*)
16470 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16471 hardcode_libdir_flag_spec_F77='-R$libdir'
16472 hardcode_direct_F77=yes
16473 hardcode_shlibpath_var_F77=no
16476 hpux9*)
16477 if test "$GCC" = yes; then
16478 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'
16479 else
16480 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'
16482 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
16483 hardcode_libdir_separator_F77=:
16484 hardcode_direct_F77=yes
16486 # hardcode_minus_L: Not really in the search PATH,
16487 # but as the default location of the library.
16488 hardcode_minus_L_F77=yes
16489 export_dynamic_flag_spec_F77='${wl}-E'
16492 hpux10*)
16493 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16494 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16495 else
16496 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16498 if test "$with_gnu_ld" = no; then
16499 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
16500 hardcode_libdir_separator_F77=:
16502 hardcode_direct_F77=yes
16503 export_dynamic_flag_spec_F77='${wl}-E'
16505 # hardcode_minus_L: Not really in the search PATH,
16506 # but as the default location of the library.
16507 hardcode_minus_L_F77=yes
16511 hpux11*)
16512 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16513 case $host_cpu in
16514 hppa*64*)
16515 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16517 ia64*)
16518 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16521 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16523 esac
16524 else
16525 case $host_cpu in
16526 hppa*64*)
16527 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16529 ia64*)
16530 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16533 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16535 esac
16537 if test "$with_gnu_ld" = no; then
16538 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
16539 hardcode_libdir_separator_F77=:
16541 case $host_cpu in
16542 hppa*64*|ia64*)
16543 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
16544 hardcode_direct_F77=no
16545 hardcode_shlibpath_var_F77=no
16548 hardcode_direct_F77=yes
16549 export_dynamic_flag_spec_F77='${wl}-E'
16551 # hardcode_minus_L: Not really in the search PATH,
16552 # but as the default location of the library.
16553 hardcode_minus_L_F77=yes
16555 esac
16559 irix5* | irix6* | nonstopux*)
16560 if test "$GCC" = yes; then
16561 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'
16562 else
16563 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'
16564 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
16566 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16567 hardcode_libdir_separator_F77=:
16568 link_all_deplibs_F77=yes
16571 netbsd* | netbsdelf*-gnu)
16572 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16573 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16574 else
16575 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16577 hardcode_libdir_flag_spec_F77='-R$libdir'
16578 hardcode_direct_F77=yes
16579 hardcode_shlibpath_var_F77=no
16582 newsos6)
16583 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16584 hardcode_direct_F77=yes
16585 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16586 hardcode_libdir_separator_F77=:
16587 hardcode_shlibpath_var_F77=no
16590 openbsd*)
16591 hardcode_direct_F77=yes
16592 hardcode_shlibpath_var_F77=no
16593 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16594 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16595 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16596 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
16597 export_dynamic_flag_spec_F77='${wl}-E'
16598 else
16599 case $host_os in
16600 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16601 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16602 hardcode_libdir_flag_spec_F77='-R$libdir'
16605 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16606 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
16608 esac
16612 os2*)
16613 hardcode_libdir_flag_spec_F77='-L$libdir'
16614 hardcode_minus_L_F77=yes
16615 allow_undefined_flag_F77=unsupported
16616 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'
16617 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16620 osf3*)
16621 if test "$GCC" = yes; then
16622 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
16623 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'
16624 else
16625 allow_undefined_flag_F77=' -expect_unresolved \*'
16626 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'
16628 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16629 hardcode_libdir_separator_F77=:
16632 osf4* | osf5*) # as osf3* with the addition of -msym flag
16633 if test "$GCC" = yes; then
16634 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
16635 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'
16636 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16637 else
16638 allow_undefined_flag_F77=' -expect_unresolved \*'
16639 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'
16640 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~
16641 $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'
16643 # Both c and cxx compiler support -rpath directly
16644 hardcode_libdir_flag_spec_F77='-rpath $libdir'
16646 hardcode_libdir_separator_F77=:
16649 solaris*)
16650 no_undefined_flag_F77=' -z text'
16651 if test "$GCC" = yes; then
16652 wlarc='${wl}'
16653 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16654 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16655 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16656 else
16657 wlarc=''
16658 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16659 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16660 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16662 hardcode_libdir_flag_spec_F77='-R$libdir'
16663 hardcode_shlibpath_var_F77=no
16664 case $host_os in
16665 solaris2.[0-5] | solaris2.[0-5].*) ;;
16667 # The compiler driver will combine linker options so we
16668 # cannot just pass the convience library names through
16669 # without $wl, iff we do not link with $LD.
16670 # Luckily, gcc supports the same syntax we need for Sun Studio.
16671 # Supported since Solaris 2.6 (maybe 2.5.1?)
16672 case $wlarc in
16674 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
16676 whole_archive_flag_spec_F77='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
16677 esac ;;
16678 esac
16679 link_all_deplibs_F77=yes
16682 sunos4*)
16683 if test "x$host_vendor" = xsequent; then
16684 # Use $CC to link under sequent, because it throws in some extra .o
16685 # files that make .init and .fini sections work.
16686 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16687 else
16688 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16690 hardcode_libdir_flag_spec_F77='-L$libdir'
16691 hardcode_direct_F77=yes
16692 hardcode_minus_L_F77=yes
16693 hardcode_shlibpath_var_F77=no
16696 sysv4)
16697 case $host_vendor in
16698 sni)
16699 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16700 hardcode_direct_F77=yes # is this really true???
16702 siemens)
16703 ## LD is ld it makes a PLAMLIB
16704 ## CC just makes a GrossModule.
16705 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16706 reload_cmds_F77='$CC -r -o $output$reload_objs'
16707 hardcode_direct_F77=no
16709 motorola)
16710 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16711 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
16713 esac
16714 runpath_var='LD_RUN_PATH'
16715 hardcode_shlibpath_var_F77=no
16718 sysv4.3*)
16719 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16720 hardcode_shlibpath_var_F77=no
16721 export_dynamic_flag_spec_F77='-Bexport'
16724 sysv4*MP*)
16725 if test -d /usr/nec; then
16726 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16727 hardcode_shlibpath_var_F77=no
16728 runpath_var=LD_RUN_PATH
16729 hardcode_runpath_var=yes
16730 ld_shlibs_F77=yes
16734 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
16735 no_undefined_flag_F77='${wl}-z,text'
16736 archive_cmds_need_lc_F77=no
16737 hardcode_shlibpath_var_F77=no
16738 runpath_var='LD_RUN_PATH'
16740 if test "$GCC" = yes; then
16741 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16742 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16743 else
16744 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16745 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16749 sysv5* | sco3.2v5* | sco5v6*)
16750 # Note: We can NOT use -z defs as we might desire, because we do not
16751 # link with -lc, and that would cause any symbols used from libc to
16752 # always be unresolved, which means just about no library would
16753 # ever link correctly. If we're not using GNU ld we use -z text
16754 # though, which does catch some bad symbols but isn't as heavy-handed
16755 # as -z defs.
16756 no_undefined_flag_F77='${wl}-z,text'
16757 allow_undefined_flag_F77='${wl}-z,nodefs'
16758 archive_cmds_need_lc_F77=no
16759 hardcode_shlibpath_var_F77=no
16760 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
16761 hardcode_libdir_separator_F77=':'
16762 link_all_deplibs_F77=yes
16763 export_dynamic_flag_spec_F77='${wl}-Bexport'
16764 runpath_var='LD_RUN_PATH'
16766 if test "$GCC" = yes; then
16767 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16768 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16769 else
16770 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16771 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16775 uts4*)
16776 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16777 hardcode_libdir_flag_spec_F77='-L$libdir'
16778 hardcode_shlibpath_var_F77=no
16782 ld_shlibs_F77=no
16784 esac
16787 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
16788 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
16789 test "$ld_shlibs_F77" = no && can_build_shared=no
16792 # Do we need to explicitly link libc?
16794 case "x$archive_cmds_need_lc_F77" in
16795 x|xyes)
16796 # Assume -lc should be added
16797 archive_cmds_need_lc_F77=yes
16799 if test "$enable_shared" = yes && test "$GCC" = yes; then
16800 case $archive_cmds_F77 in
16801 *'~'*)
16802 # FIXME: we may have to deal with multi-command sequences.
16804 '$CC '*)
16805 # Test whether the compiler implicitly links with -lc since on some
16806 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16807 # to ld, don't add -lc before -lgcc.
16808 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16809 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
16810 $rm conftest*
16811 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16813 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16814 (eval $ac_compile) 2>&5
16815 ac_status=$?
16816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16817 (exit $ac_status); } 2>conftest.err; then
16818 soname=conftest
16819 lib=conftest
16820 libobjs=conftest.$ac_objext
16821 deplibs=
16822 wl=$lt_prog_compiler_wl_F77
16823 pic_flag=$lt_prog_compiler_pic_F77
16824 compiler_flags=-v
16825 linker_flags=-v
16826 verstring=
16827 output_objdir=.
16828 libname=conftest
16829 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
16830 allow_undefined_flag_F77=
16831 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16832 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16833 ac_status=$?
16834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16835 (exit $ac_status); }
16836 then
16837 archive_cmds_need_lc_F77=no
16838 else
16839 archive_cmds_need_lc_F77=yes
16841 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
16842 else
16843 cat conftest.err 1>&5
16845 $rm conftest*
16846 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
16847 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
16849 esac
16852 esac
16854 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16855 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
16856 library_names_spec=
16857 libname_spec='lib$name'
16858 soname_spec=
16859 shrext_cmds=".so"
16860 postinstall_cmds=
16861 postuninstall_cmds=
16862 finish_cmds=
16863 finish_eval=
16864 shlibpath_var=
16865 shlibpath_overrides_runpath=unknown
16866 version_type=none
16867 dynamic_linker="$host_os ld.so"
16868 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16869 if test "$GCC" = yes; then
16870 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16871 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16872 # if the path contains ";" then we assume it to be the separator
16873 # otherwise default to the standard path separator (i.e. ":") - it is
16874 # assumed that no part of a normal pathname contains ";" but that should
16875 # okay in the real world where ";" in dirpaths is itself problematic.
16876 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16877 else
16878 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16880 else
16881 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16883 need_lib_prefix=unknown
16884 hardcode_into_libs=no
16886 # when you set need_version to no, make sure it does not cause -set_version
16887 # flags to be left without arguments
16888 need_version=unknown
16890 case $host_os in
16891 aix3*)
16892 version_type=linux
16893 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16894 shlibpath_var=LIBPATH
16896 # AIX 3 has no versioning support, so we append a major version to the name.
16897 soname_spec='${libname}${release}${shared_ext}$major'
16900 aix4* | aix5*)
16901 version_type=linux
16902 need_lib_prefix=no
16903 need_version=no
16904 hardcode_into_libs=yes
16905 if test "$host_cpu" = ia64; then
16906 # AIX 5 supports IA64
16907 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16908 shlibpath_var=LD_LIBRARY_PATH
16909 else
16910 # With GCC up to 2.95.x, collect2 would create an import file
16911 # for dependence libraries. The import file would start with
16912 # the line `#! .'. This would cause the generated library to
16913 # depend on `.', always an invalid library. This was fixed in
16914 # development snapshots of GCC prior to 3.0.
16915 case $host_os in
16916 aix4 | aix4.[01] | aix4.[01].*)
16917 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16918 echo ' yes '
16919 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16921 else
16922 can_build_shared=no
16925 esac
16926 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16927 # soname into executable. Probably we can add versioning support to
16928 # collect2, so additional links can be useful in future.
16929 if test "$aix_use_runtimelinking" = yes; then
16930 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16931 # instead of lib<name>.a to let people know that these are not
16932 # typical AIX shared libraries.
16933 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16934 else
16935 # We preserve .a as extension for shared libraries through AIX4.2
16936 # and later when we are not doing run time linking.
16937 library_names_spec='${libname}${release}.a $libname.a'
16938 soname_spec='${libname}${release}${shared_ext}$major'
16940 shlibpath_var=LIBPATH
16944 amigaos*)
16945 library_names_spec='$libname.ixlibrary $libname.a'
16946 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16947 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'
16950 beos*)
16951 library_names_spec='${libname}${shared_ext}'
16952 dynamic_linker="$host_os ld.so"
16953 shlibpath_var=LIBRARY_PATH
16956 bsdi[45]*)
16957 version_type=linux
16958 need_version=no
16959 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16960 soname_spec='${libname}${release}${shared_ext}$major'
16961 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16962 shlibpath_var=LD_LIBRARY_PATH
16963 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16964 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16965 # the default ld.so.conf also contains /usr/contrib/lib and
16966 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16967 # libtool to hard-code these into programs
16970 cygwin* | mingw* | pw32*)
16971 version_type=windows
16972 shrext_cmds=".dll"
16973 need_version=no
16974 need_lib_prefix=no
16976 case $GCC,$host_os in
16977 yes,cygwin* | yes,mingw* | yes,pw32*)
16978 library_names_spec='$libname.dll.a'
16979 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16980 postinstall_cmds='base_file=`basename \${file}`~
16981 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16982 dldir=$destdir/`dirname \$dlpath`~
16983 test -d \$dldir || mkdir -p \$dldir~
16984 $install_prog $dir/$dlname \$dldir/$dlname~
16985 chmod a+x \$dldir/$dlname'
16986 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16987 dlpath=$dir/\$dldll~
16988 $rm \$dlpath'
16989 shlibpath_overrides_runpath=yes
16991 case $host_os in
16992 cygwin*)
16993 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16994 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16995 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16997 mingw*)
16998 # MinGW DLLs use traditional 'lib' prefix
16999 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17000 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17001 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17002 # It is most probably a Windows format PATH printed by
17003 # mingw gcc, but we are running on Cygwin. Gcc prints its search
17004 # path with ; separators, and with drive letters. We can handle the
17005 # drive letters (cygwin fileutils understands them), so leave them,
17006 # especially as we might pass files found there to a mingw objdump,
17007 # which wouldn't understand a cygwinified path. Ahh.
17008 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17009 else
17010 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17013 pw32*)
17014 # pw32 DLLs use 'pw' prefix rather than 'lib'
17015 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17017 esac
17021 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17023 esac
17024 dynamic_linker='Win32 ld.exe'
17025 # FIXME: first we should search . and the directory the executable is in
17026 shlibpath_var=PATH
17029 darwin* | rhapsody*)
17030 dynamic_linker="$host_os dyld"
17031 version_type=darwin
17032 need_lib_prefix=no
17033 need_version=no
17034 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17035 soname_spec='${libname}${release}${major}$shared_ext'
17036 shlibpath_overrides_runpath=yes
17037 shlibpath_var=DYLD_LIBRARY_PATH
17038 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17039 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
17040 if test "$GCC" = yes; then
17041 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
17042 else
17043 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
17045 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17048 dgux*)
17049 version_type=linux
17050 need_lib_prefix=no
17051 need_version=no
17052 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17053 soname_spec='${libname}${release}${shared_ext}$major'
17054 shlibpath_var=LD_LIBRARY_PATH
17057 freebsd1*)
17058 dynamic_linker=no
17061 freebsd* | dragonfly*)
17062 # DragonFly does not have aout. When/if they implement a new
17063 # versioning mechanism, adjust this.
17064 if test -x /usr/bin/objformat; then
17065 objformat=`/usr/bin/objformat`
17066 else
17067 case $host_os in
17068 freebsd[123]*) objformat=aout ;;
17069 *) objformat=elf ;;
17070 esac
17072 version_type=freebsd-$objformat
17073 case $version_type in
17074 freebsd-elf*)
17075 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17076 need_version=no
17077 need_lib_prefix=no
17079 freebsd-*)
17080 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17081 need_version=yes
17083 esac
17084 shlibpath_var=LD_LIBRARY_PATH
17085 case $host_os in
17086 freebsd2*)
17087 shlibpath_overrides_runpath=yes
17089 freebsd3.[01]* | freebsdelf3.[01]*)
17090 shlibpath_overrides_runpath=yes
17091 hardcode_into_libs=yes
17093 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17094 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17095 shlibpath_overrides_runpath=no
17096 hardcode_into_libs=yes
17098 freebsd*) # from 4.6 on
17099 shlibpath_overrides_runpath=yes
17100 hardcode_into_libs=yes
17102 esac
17105 gnu*)
17106 version_type=linux
17107 need_lib_prefix=no
17108 need_version=no
17109 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17110 soname_spec='${libname}${release}${shared_ext}$major'
17111 shlibpath_var=LD_LIBRARY_PATH
17112 hardcode_into_libs=yes
17115 hpux9* | hpux10* | hpux11*)
17116 # Give a soname corresponding to the major version so that dld.sl refuses to
17117 # link against other versions.
17118 version_type=sunos
17119 need_lib_prefix=no
17120 need_version=no
17121 case $host_cpu in
17122 ia64*)
17123 shrext_cmds='.so'
17124 hardcode_into_libs=yes
17125 dynamic_linker="$host_os dld.so"
17126 shlibpath_var=LD_LIBRARY_PATH
17127 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17128 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17129 soname_spec='${libname}${release}${shared_ext}$major'
17130 if test "X$HPUX_IA64_MODE" = X32; then
17131 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17132 else
17133 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17135 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17137 hppa*64*)
17138 shrext_cmds='.sl'
17139 hardcode_into_libs=yes
17140 dynamic_linker="$host_os dld.sl"
17141 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17142 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17143 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17144 soname_spec='${libname}${release}${shared_ext}$major'
17145 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17146 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17149 shrext_cmds='.sl'
17150 dynamic_linker="$host_os dld.sl"
17151 shlibpath_var=SHLIB_PATH
17152 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17153 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17154 soname_spec='${libname}${release}${shared_ext}$major'
17156 esac
17157 # HP-UX runs *really* slowly unless shared libraries are mode 555.
17158 postinstall_cmds='chmod 555 $lib'
17161 interix3*)
17162 version_type=linux
17163 need_lib_prefix=no
17164 need_version=no
17165 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17166 soname_spec='${libname}${release}${shared_ext}$major'
17167 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17168 shlibpath_var=LD_LIBRARY_PATH
17169 shlibpath_overrides_runpath=no
17170 hardcode_into_libs=yes
17173 irix5* | irix6* | nonstopux*)
17174 case $host_os in
17175 nonstopux*) version_type=nonstopux ;;
17177 if test "$lt_cv_prog_gnu_ld" = yes; then
17178 version_type=linux
17179 else
17180 version_type=irix
17181 fi ;;
17182 esac
17183 need_lib_prefix=no
17184 need_version=no
17185 soname_spec='${libname}${release}${shared_ext}$major'
17186 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17187 case $host_os in
17188 irix5* | nonstopux*)
17189 libsuff= shlibsuff=
17192 case $LD in # libtool.m4 will add one of these switches to LD
17193 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17194 libsuff= shlibsuff= libmagic=32-bit;;
17195 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17196 libsuff=32 shlibsuff=N32 libmagic=N32;;
17197 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17198 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17199 *) libsuff= shlibsuff= libmagic=never-match;;
17200 esac
17202 esac
17203 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17204 shlibpath_overrides_runpath=no
17205 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17206 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17207 hardcode_into_libs=yes
17210 # No shared lib support for Linux oldld, aout, or coff.
17211 linux*oldld* | linux*aout* | linux*coff*)
17212 dynamic_linker=no
17215 # This must be Linux ELF.
17216 linux* | k*bsd*-gnu)
17217 version_type=linux
17218 need_lib_prefix=no
17219 need_version=no
17220 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17221 soname_spec='${libname}${release}${shared_ext}$major'
17222 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17223 shlibpath_var=LD_LIBRARY_PATH
17224 shlibpath_overrides_runpath=no
17225 # This implies no fast_install, which is unacceptable.
17226 # Some rework will be needed to allow for fast_install
17227 # before this can be enabled.
17228 hardcode_into_libs=yes
17230 # Append ld.so.conf contents to the search path
17231 if test -f /etc/ld.so.conf; then
17232 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
17233 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17236 # We used to test for /lib/ld.so.1 and disable shared libraries on
17237 # powerpc, because MkLinux only supported shared libraries with the
17238 # GNU dynamic linker. Since this was broken with cross compilers,
17239 # most powerpc-linux boxes support dynamic linking these days and
17240 # people can always --disable-shared, the test was removed, and we
17241 # assume the GNU/Linux dynamic linker is in use.
17242 dynamic_linker='GNU/Linux ld.so'
17245 netbsdelf*-gnu)
17246 version_type=linux
17247 need_lib_prefix=no
17248 need_version=no
17249 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17250 soname_spec='${libname}${release}${shared_ext}$major'
17251 shlibpath_var=LD_LIBRARY_PATH
17252 shlibpath_overrides_runpath=no
17253 hardcode_into_libs=yes
17254 dynamic_linker='NetBSD ld.elf_so'
17257 netbsd*)
17258 version_type=sunos
17259 need_lib_prefix=no
17260 need_version=no
17261 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17262 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17263 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17264 dynamic_linker='NetBSD (a.out) ld.so'
17265 else
17266 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17267 soname_spec='${libname}${release}${shared_ext}$major'
17268 dynamic_linker='NetBSD ld.elf_so'
17270 shlibpath_var=LD_LIBRARY_PATH
17271 shlibpath_overrides_runpath=yes
17272 hardcode_into_libs=yes
17275 newsos6)
17276 version_type=linux
17277 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17278 shlibpath_var=LD_LIBRARY_PATH
17279 shlibpath_overrides_runpath=yes
17282 nto-qnx*)
17283 version_type=linux
17284 need_lib_prefix=no
17285 need_version=no
17286 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17287 soname_spec='${libname}${release}${shared_ext}$major'
17288 shlibpath_var=LD_LIBRARY_PATH
17289 shlibpath_overrides_runpath=yes
17292 openbsd*)
17293 version_type=sunos
17294 sys_lib_dlsearch_path_spec="/usr/lib"
17295 need_lib_prefix=no
17296 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17297 case $host_os in
17298 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
17299 *) need_version=no ;;
17300 esac
17301 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17302 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17303 shlibpath_var=LD_LIBRARY_PATH
17304 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17305 case $host_os in
17306 openbsd2.[89] | openbsd2.[89].*)
17307 shlibpath_overrides_runpath=no
17310 shlibpath_overrides_runpath=yes
17312 esac
17313 else
17314 shlibpath_overrides_runpath=yes
17318 os2*)
17319 libname_spec='$name'
17320 shrext_cmds=".dll"
17321 need_lib_prefix=no
17322 library_names_spec='$libname${shared_ext} $libname.a'
17323 dynamic_linker='OS/2 ld.exe'
17324 shlibpath_var=LIBPATH
17327 osf3* | osf4* | osf5*)
17328 version_type=osf
17329 need_lib_prefix=no
17330 need_version=no
17331 soname_spec='${libname}${release}${shared_ext}$major'
17332 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17333 shlibpath_var=LD_LIBRARY_PATH
17334 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17335 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17338 solaris*)
17339 version_type=linux
17340 need_lib_prefix=no
17341 need_version=no
17342 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17343 soname_spec='${libname}${release}${shared_ext}$major'
17344 shlibpath_var=LD_LIBRARY_PATH
17345 shlibpath_overrides_runpath=yes
17346 hardcode_into_libs=yes
17347 # ldd complains unless libraries are executable
17348 postinstall_cmds='chmod +x $lib'
17351 sunos4*)
17352 version_type=sunos
17353 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17354 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17355 shlibpath_var=LD_LIBRARY_PATH
17356 shlibpath_overrides_runpath=yes
17357 if test "$with_gnu_ld" = yes; then
17358 need_lib_prefix=no
17360 need_version=yes
17363 sysv4 | sysv4.3*)
17364 version_type=linux
17365 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17366 soname_spec='${libname}${release}${shared_ext}$major'
17367 shlibpath_var=LD_LIBRARY_PATH
17368 case $host_vendor in
17369 sni)
17370 shlibpath_overrides_runpath=no
17371 need_lib_prefix=no
17372 export_dynamic_flag_spec='${wl}-Blargedynsym'
17373 runpath_var=LD_RUN_PATH
17375 siemens)
17376 need_lib_prefix=no
17378 motorola)
17379 need_lib_prefix=no
17380 need_version=no
17381 shlibpath_overrides_runpath=no
17382 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17384 esac
17387 sysv4*MP*)
17388 if test -d /usr/nec ;then
17389 version_type=linux
17390 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17391 soname_spec='$libname${shared_ext}.$major'
17392 shlibpath_var=LD_LIBRARY_PATH
17396 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17397 version_type=freebsd-elf
17398 need_lib_prefix=no
17399 need_version=no
17400 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17401 soname_spec='${libname}${release}${shared_ext}$major'
17402 shlibpath_var=LD_LIBRARY_PATH
17403 hardcode_into_libs=yes
17404 if test "$with_gnu_ld" = yes; then
17405 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17406 shlibpath_overrides_runpath=no
17407 else
17408 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17409 shlibpath_overrides_runpath=yes
17410 case $host_os in
17411 sco3.2v5*)
17412 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17414 esac
17416 sys_lib_dlsearch_path_spec='/usr/lib'
17419 uts4*)
17420 version_type=linux
17421 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17422 soname_spec='${libname}${release}${shared_ext}$major'
17423 shlibpath_var=LD_LIBRARY_PATH
17427 dynamic_linker=no
17429 esac
17430 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17431 echo "${ECHO_T}$dynamic_linker" >&6; }
17432 test "$dynamic_linker" = no && can_build_shared=no
17434 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17435 if test "$GCC" = yes; then
17436 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17439 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17440 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
17441 hardcode_action_F77=
17442 if test -n "$hardcode_libdir_flag_spec_F77" || \
17443 test -n "$runpath_var_F77" || \
17444 test "X$hardcode_automatic_F77" = "Xyes" ; then
17446 # We can hardcode non-existant directories.
17447 if test "$hardcode_direct_F77" != no &&
17448 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17449 # have to relink, otherwise we might link with an installed library
17450 # when we should be linking with a yet-to-be-installed one
17451 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
17452 test "$hardcode_minus_L_F77" != no; then
17453 # Linking always hardcodes the temporary library directory.
17454 hardcode_action_F77=relink
17455 else
17456 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17457 hardcode_action_F77=immediate
17459 else
17460 # We cannot hardcode anything, or else we can only hardcode existing
17461 # directories.
17462 hardcode_action_F77=unsupported
17464 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
17465 echo "${ECHO_T}$hardcode_action_F77" >&6; }
17467 if test "$hardcode_action_F77" = relink; then
17468 # Fast installation is not supported
17469 enable_fast_install=no
17470 elif test "$shlibpath_overrides_runpath" = yes ||
17471 test "$enable_shared" = no; then
17472 # Fast installation is not necessary
17473 enable_fast_install=needless
17477 # The else clause should only fire when bootstrapping the
17478 # libtool distribution, otherwise you forgot to ship ltmain.sh
17479 # with your package, and you will get complaints that there are
17480 # no rules to generate ltmain.sh.
17481 if test -f "$ltmain"; then
17482 # See if we are running on zsh, and set the options which allow our commands through
17483 # without removal of \ escapes.
17484 if test -n "${ZSH_VERSION+set}" ; then
17485 setopt NO_GLOB_SUBST
17487 # Now quote all the things that may contain metacharacters while being
17488 # careful not to overquote the AC_SUBSTed values. We take copies of the
17489 # variables and quote the copies for generation of the libtool script.
17490 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
17491 SED SHELL STRIP \
17492 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17493 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17494 deplibs_check_method reload_flag reload_cmds need_locks \
17495 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17496 lt_cv_sys_global_symbol_to_c_name_address \
17497 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17498 old_postinstall_cmds old_postuninstall_cmds \
17499 compiler_F77 \
17500 CC_F77 \
17501 LD_F77 \
17502 lt_prog_compiler_wl_F77 \
17503 lt_prog_compiler_pic_F77 \
17504 lt_prog_compiler_static_F77 \
17505 lt_prog_compiler_no_builtin_flag_F77 \
17506 export_dynamic_flag_spec_F77 \
17507 thread_safe_flag_spec_F77 \
17508 whole_archive_flag_spec_F77 \
17509 enable_shared_with_static_runtimes_F77 \
17510 old_archive_cmds_F77 \
17511 old_archive_from_new_cmds_F77 \
17512 predep_objects_F77 \
17513 postdep_objects_F77 \
17514 predeps_F77 \
17515 postdeps_F77 \
17516 compiler_lib_search_path_F77 \
17517 archive_cmds_F77 \
17518 archive_expsym_cmds_F77 \
17519 postinstall_cmds_F77 \
17520 postuninstall_cmds_F77 \
17521 old_archive_from_expsyms_cmds_F77 \
17522 allow_undefined_flag_F77 \
17523 no_undefined_flag_F77 \
17524 export_symbols_cmds_F77 \
17525 hardcode_libdir_flag_spec_F77 \
17526 hardcode_libdir_flag_spec_ld_F77 \
17527 hardcode_libdir_separator_F77 \
17528 hardcode_automatic_F77 \
17529 module_cmds_F77 \
17530 module_expsym_cmds_F77 \
17531 lt_cv_prog_compiler_c_o_F77 \
17532 exclude_expsyms_F77 \
17533 include_expsyms_F77; do
17535 case $var in
17536 old_archive_cmds_F77 | \
17537 old_archive_from_new_cmds_F77 | \
17538 archive_cmds_F77 | \
17539 archive_expsym_cmds_F77 | \
17540 module_cmds_F77 | \
17541 module_expsym_cmds_F77 | \
17542 old_archive_from_expsyms_cmds_F77 | \
17543 export_symbols_cmds_F77 | \
17544 extract_expsyms_cmds | reload_cmds | finish_cmds | \
17545 postinstall_cmds | postuninstall_cmds | \
17546 old_postinstall_cmds | old_postuninstall_cmds | \
17547 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17548 # Double-quote double-evaled strings.
17549 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17552 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17554 esac
17555 done
17557 case $lt_echo in
17558 *'\$0 --fallback-echo"')
17559 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17561 esac
17563 cfgfile="$ofile"
17565 cat <<__EOF__ >> "$cfgfile"
17566 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
17568 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17570 # Shell to use when invoking shell scripts.
17571 SHELL=$lt_SHELL
17573 # Whether or not to build shared libraries.
17574 build_libtool_libs=$enable_shared
17576 # Whether or not to build static libraries.
17577 build_old_libs=$enable_static
17579 # Whether or not to add -lc for building shared libraries.
17580 build_libtool_need_lc=$archive_cmds_need_lc_F77
17582 # Whether or not to disallow shared libs when runtime libs are static
17583 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
17585 # Whether or not to optimize for fast installation.
17586 fast_install=$enable_fast_install
17588 # The host system.
17589 host_alias=$host_alias
17590 host=$host
17591 host_os=$host_os
17593 # The build system.
17594 build_alias=$build_alias
17595 build=$build
17596 build_os=$build_os
17598 # An echo program that does not interpret backslashes.
17599 echo=$lt_echo
17601 # The archiver.
17602 AR=$lt_AR
17603 AR_FLAGS=$lt_AR_FLAGS
17605 # A C compiler.
17606 LTCC=$lt_LTCC
17608 # LTCC compiler flags.
17609 LTCFLAGS=$lt_LTCFLAGS
17611 # A language-specific compiler.
17612 CC=$lt_compiler_F77
17614 # Is the compiler the GNU C compiler?
17615 with_gcc=$GCC_F77
17617 # An ERE matcher.
17618 EGREP=$lt_EGREP
17620 # The linker used to build libraries.
17621 LD=$lt_LD_F77
17623 # Whether we need hard or soft links.
17624 LN_S=$lt_LN_S
17626 # A BSD-compatible nm program.
17627 NM=$lt_NM
17629 # A symbol stripping program
17630 STRIP=$lt_STRIP
17632 # Used to examine libraries when file_magic_cmd begins "file"
17633 MAGIC_CMD=$MAGIC_CMD
17635 # Used on cygwin: DLL creation program.
17636 DLLTOOL="$DLLTOOL"
17638 # Used on cygwin: object dumper.
17639 OBJDUMP="$OBJDUMP"
17641 # Used on cygwin: assembler.
17642 AS="$AS"
17644 # The name of the directory that contains temporary libtool files.
17645 objdir=$objdir
17647 # How to create reloadable object files.
17648 reload_flag=$lt_reload_flag
17649 reload_cmds=$lt_reload_cmds
17651 # How to pass a linker flag through the compiler.
17652 wl=$lt_lt_prog_compiler_wl_F77
17654 # Object file suffix (normally "o").
17655 objext="$ac_objext"
17657 # Old archive suffix (normally "a").
17658 libext="$libext"
17660 # Shared library suffix (normally ".so").
17661 shrext_cmds='$shrext_cmds'
17663 # Executable file suffix (normally "").
17664 exeext="$exeext"
17666 # Additional compiler flags for building library objects.
17667 pic_flag=$lt_lt_prog_compiler_pic_F77
17668 pic_mode=$pic_mode
17670 # What is the maximum length of a command?
17671 max_cmd_len=$lt_cv_sys_max_cmd_len
17673 # Does compiler simultaneously support -c and -o options?
17674 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
17676 # Must we lock files when doing compilation?
17677 need_locks=$lt_need_locks
17679 # Do we need the lib prefix for modules?
17680 need_lib_prefix=$need_lib_prefix
17682 # Do we need a version for libraries?
17683 need_version=$need_version
17685 # Whether dlopen is supported.
17686 dlopen_support=$enable_dlopen
17688 # Whether dlopen of programs is supported.
17689 dlopen_self=$enable_dlopen_self
17691 # Whether dlopen of statically linked programs is supported.
17692 dlopen_self_static=$enable_dlopen_self_static
17694 # Compiler flag to prevent dynamic linking.
17695 link_static_flag=$lt_lt_prog_compiler_static_F77
17697 # Compiler flag to turn off builtin functions.
17698 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
17700 # Compiler flag to allow reflexive dlopens.
17701 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
17703 # Compiler flag to generate shared objects directly from archives.
17704 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
17706 # Compiler flag to generate thread-safe objects.
17707 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
17709 # Library versioning type.
17710 version_type=$version_type
17712 # Format of library name prefix.
17713 libname_spec=$lt_libname_spec
17715 # List of archive names. First name is the real one, the rest are links.
17716 # The last name is the one that the linker finds with -lNAME.
17717 library_names_spec=$lt_library_names_spec
17719 # The coded name of the library, if different from the real name.
17720 soname_spec=$lt_soname_spec
17722 # Commands used to build and install an old-style archive.
17723 RANLIB=$lt_RANLIB
17724 old_archive_cmds=$lt_old_archive_cmds_F77
17725 old_postinstall_cmds=$lt_old_postinstall_cmds
17726 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17728 # Create an old-style archive from a shared archive.
17729 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
17731 # Create a temporary old-style archive to link instead of a shared archive.
17732 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
17734 # Commands used to build and install a shared archive.
17735 archive_cmds=$lt_archive_cmds_F77
17736 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
17737 postinstall_cmds=$lt_postinstall_cmds
17738 postuninstall_cmds=$lt_postuninstall_cmds
17740 # Commands used to build a loadable module (assumed same as above if empty)
17741 module_cmds=$lt_module_cmds_F77
17742 module_expsym_cmds=$lt_module_expsym_cmds_F77
17744 # Commands to strip libraries.
17745 old_striplib=$lt_old_striplib
17746 striplib=$lt_striplib
17748 # Dependencies to place before the objects being linked to create a
17749 # shared library.
17750 predep_objects=$lt_predep_objects_F77
17752 # Dependencies to place after the objects being linked to create a
17753 # shared library.
17754 postdep_objects=$lt_postdep_objects_F77
17756 # Dependencies to place before the objects being linked to create a
17757 # shared library.
17758 predeps=$lt_predeps_F77
17760 # Dependencies to place after the objects being linked to create a
17761 # shared library.
17762 postdeps=$lt_postdeps_F77
17764 # The library search path used internally by the compiler when linking
17765 # a shared library.
17766 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
17768 # Method to check whether dependent libraries are shared objects.
17769 deplibs_check_method=$lt_deplibs_check_method
17771 # Command to use when deplibs_check_method == file_magic.
17772 file_magic_cmd=$lt_file_magic_cmd
17774 # Flag that allows shared libraries with undefined symbols to be built.
17775 allow_undefined_flag=$lt_allow_undefined_flag_F77
17777 # Flag that forces no undefined symbols.
17778 no_undefined_flag=$lt_no_undefined_flag_F77
17780 # Commands used to finish a libtool library installation in a directory.
17781 finish_cmds=$lt_finish_cmds
17783 # Same as above, but a single script fragment to be evaled but not shown.
17784 finish_eval=$lt_finish_eval
17786 # Take the output of nm and produce a listing of raw symbols and C names.
17787 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17789 # Transform the output of nm in a proper C declaration
17790 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17792 # Transform the output of nm in a C name address pair
17793 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17795 # This is the shared library runtime path variable.
17796 runpath_var=$runpath_var
17798 # This is the shared library path variable.
17799 shlibpath_var=$shlibpath_var
17801 # Is shlibpath searched before the hard-coded library search path?
17802 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17804 # How to hardcode a shared library path into an executable.
17805 hardcode_action=$hardcode_action_F77
17807 # Whether we should hardcode library paths into libraries.
17808 hardcode_into_libs=$hardcode_into_libs
17810 # Flag to hardcode \$libdir into a binary during linking.
17811 # This must work even if \$libdir does not exist.
17812 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
17814 # If ld is used when linking, flag to hardcode \$libdir into
17815 # a binary during linking. This must work even if \$libdir does
17816 # not exist.
17817 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
17819 # Whether we need a single -rpath flag with a separated argument.
17820 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
17822 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17823 # resulting binary.
17824 hardcode_direct=$hardcode_direct_F77
17826 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17827 # resulting binary.
17828 hardcode_minus_L=$hardcode_minus_L_F77
17830 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17831 # the resulting binary.
17832 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
17834 # Set to yes if building a shared library automatically hardcodes DIR into the library
17835 # and all subsequent libraries and executables linked against it.
17836 hardcode_automatic=$hardcode_automatic_F77
17838 # Variables whose values should be saved in libtool wrapper scripts and
17839 # restored at relink time.
17840 variables_saved_for_relink="$variables_saved_for_relink"
17842 # Whether libtool must link a program against all its dependency libraries.
17843 link_all_deplibs=$link_all_deplibs_F77
17845 # Compile-time system search path for libraries
17846 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17848 # Run-time system search path for libraries
17849 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17851 # Fix the shell variable \$srcfile for the compiler.
17852 fix_srcfile_path="$fix_srcfile_path_F77"
17854 # Set to yes if exported symbols are required.
17855 always_export_symbols=$always_export_symbols_F77
17857 # The commands to list exported symbols.
17858 export_symbols_cmds=$lt_export_symbols_cmds_F77
17860 # The commands to extract the exported symbol list from a shared archive.
17861 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17863 # Symbols that should not be listed in the preloaded symbols.
17864 exclude_expsyms=$lt_exclude_expsyms_F77
17866 # Symbols that must always be exported.
17867 include_expsyms=$lt_include_expsyms_F77
17869 # ### END LIBTOOL TAG CONFIG: $tagname
17871 __EOF__
17874 else
17875 # If there is no Makefile yet, we rely on a make rule to execute
17876 # `config.status --recheck' to rerun these tests and create the
17877 # libtool script then.
17878 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
17879 if test -f "$ltmain_in"; then
17880 test -f Makefile && make "$ltmain"
17885 ac_ext=c
17886 ac_cpp='$CPP $CPPFLAGS'
17887 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17888 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17889 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17891 CC="$lt_save_CC"
17893 else
17894 tagname=""
17898 GCJ)
17899 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
17902 # Source file extension for Java test sources.
17903 ac_ext=java
17905 # Object file extension for compiled Java test sources.
17906 objext=o
17907 objext_GCJ=$objext
17909 # Code to be used in simple compile tests
17910 lt_simple_compile_test_code="class foo {}\n"
17912 # Code to be used in simple link tests
17913 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
17915 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
17917 # If no C compiler was specified, use CC.
17918 LTCC=${LTCC-"$CC"}
17920 # If no C compiler flags were specified, use CFLAGS.
17921 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
17923 # Allow CC to be a program name with arguments.
17924 compiler=$CC
17927 # save warnings/boilerplate of simple test code
17928 ac_outfile=conftest.$ac_objext
17929 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
17930 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17931 _lt_compiler_boilerplate=`cat conftest.err`
17932 $rm conftest*
17934 ac_outfile=conftest.$ac_objext
17935 printf "$lt_simple_link_test_code" >conftest.$ac_ext
17936 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17937 _lt_linker_boilerplate=`cat conftest.err`
17938 $rm conftest*
17941 # Allow CC to be a program name with arguments.
17942 lt_save_CC="$CC"
17943 CC=${GCJ-"gcj"}
17944 compiler=$CC
17945 compiler_GCJ=$CC
17946 for cc_temp in $compiler""; do
17947 case $cc_temp in
17948 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17949 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17950 \-*) ;;
17951 *) break;;
17952 esac
17953 done
17954 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17957 # GCJ did not exist at the time GCC didn't implicitly link libc in.
17958 archive_cmds_need_lc_GCJ=no
17960 old_archive_cmds_GCJ=$old_archive_cmds
17963 lt_prog_compiler_no_builtin_flag_GCJ=
17965 if test "$GCC" = yes; then
17966 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
17969 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
17970 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
17971 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
17972 echo $ECHO_N "(cached) $ECHO_C" >&6
17973 else
17974 lt_cv_prog_compiler_rtti_exceptions=no
17975 ac_outfile=conftest.$ac_objext
17976 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17977 lt_compiler_flag="-fno-rtti -fno-exceptions"
17978 # Insert the option either (1) after the last *FLAGS variable, or
17979 # (2) before a word containing "conftest.", or (3) at the end.
17980 # Note that $ac_compile itself does not contain backslashes and begins
17981 # with a dollar sign (not a hyphen), so the echo should work correctly.
17982 # The option is referenced via a variable to avoid confusing sed.
17983 lt_compile=`echo "$ac_compile" | $SED \
17984 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17985 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17986 -e 's:$: $lt_compiler_flag:'`
17987 (eval echo "\"\$as_me:17987: $lt_compile\"" >&5)
17988 (eval "$lt_compile" 2>conftest.err)
17989 ac_status=$?
17990 cat conftest.err >&5
17991 echo "$as_me:17991: \$? = $ac_status" >&5
17992 if (exit $ac_status) && test -s "$ac_outfile"; then
17993 # The compiler can only warn and ignore the option if not recognized
17994 # So say no if there are warnings other than the usual output.
17995 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
17996 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17997 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17998 lt_cv_prog_compiler_rtti_exceptions=yes
18001 $rm conftest*
18004 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
18005 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
18007 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
18008 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
18009 else
18015 lt_prog_compiler_wl_GCJ=
18016 lt_prog_compiler_pic_GCJ=
18017 lt_prog_compiler_static_GCJ=
18019 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
18020 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
18022 if test "$GCC" = yes; then
18023 lt_prog_compiler_wl_GCJ='-Wl,'
18024 lt_prog_compiler_static_GCJ='-static'
18026 case $host_os in
18027 aix*)
18028 # All AIX code is PIC.
18029 if test "$host_cpu" = ia64; then
18030 # AIX 5 now supports IA64 processor
18031 lt_prog_compiler_static_GCJ='-Bstatic'
18035 amigaos*)
18036 # FIXME: we need at least 68020 code to build shared libraries, but
18037 # adding the `-m68020' flag to GCC prevents building anything better,
18038 # like `-m68040'.
18039 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
18042 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
18043 # PIC is the default for these OSes.
18046 mingw* | pw32* | os2*)
18047 # This hack is so that the source file can tell whether it is being
18048 # built for inclusion in a dll (and should export symbols for example).
18049 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
18052 darwin* | rhapsody*)
18053 # PIC is the default on this platform
18054 # Common symbols not allowed in MH_DYLIB files
18055 lt_prog_compiler_pic_GCJ='-fno-common'
18058 interix3*)
18059 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
18060 # Instead, we relocate shared libraries at runtime.
18063 msdosdjgpp*)
18064 # Just because we use GCC doesn't mean we suddenly get shared libraries
18065 # on systems that don't support them.
18066 lt_prog_compiler_can_build_shared_GCJ=no
18067 enable_shared=no
18070 sysv4*MP*)
18071 if test -d /usr/nec; then
18072 lt_prog_compiler_pic_GCJ=-Kconform_pic
18076 hpux*)
18077 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
18078 # not for PA HP-UX.
18079 case $host_cpu in
18080 hppa*64*|ia64*)
18081 # +Z the default
18084 lt_prog_compiler_pic_GCJ='-fPIC'
18086 esac
18090 lt_prog_compiler_pic_GCJ='-fPIC'
18092 esac
18093 else
18094 # PORTME Check for flag to pass linker flags through the system compiler.
18095 case $host_os in
18096 aix*)
18097 lt_prog_compiler_wl_GCJ='-Wl,'
18098 if test "$host_cpu" = ia64; then
18099 # AIX 5 now supports IA64 processor
18100 lt_prog_compiler_static_GCJ='-Bstatic'
18101 else
18102 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
18105 darwin*)
18106 # PIC is the default on this platform
18107 # Common symbols not allowed in MH_DYLIB files
18108 case $cc_basename in
18109 xlc*)
18110 lt_prog_compiler_pic_GCJ='-qnocommon'
18111 lt_prog_compiler_wl_GCJ='-Wl,'
18113 esac
18116 mingw* | pw32* | os2*)
18117 # This hack is so that the source file can tell whether it is being
18118 # built for inclusion in a dll (and should export symbols for example).
18119 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
18122 hpux9* | hpux10* | hpux11*)
18123 lt_prog_compiler_wl_GCJ='-Wl,'
18124 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
18125 # not for PA HP-UX.
18126 case $host_cpu in
18127 hppa*64*|ia64*)
18128 # +Z the default
18131 lt_prog_compiler_pic_GCJ='+Z'
18133 esac
18134 # Is there a better lt_prog_compiler_static that works with the bundled CC?
18135 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
18138 irix5* | irix6* | nonstopux*)
18139 lt_prog_compiler_wl_GCJ='-Wl,'
18140 # PIC (with -KPIC) is the default.
18141 lt_prog_compiler_static_GCJ='-non_shared'
18144 newsos6)
18145 lt_prog_compiler_pic_GCJ='-KPIC'
18146 lt_prog_compiler_static_GCJ='-Bstatic'
18149 linux* | k*bsd*-gnu)
18150 case $cc_basename in
18151 icc* | ecc*)
18152 lt_prog_compiler_wl_GCJ='-Wl,'
18153 lt_prog_compiler_pic_GCJ='-KPIC'
18154 lt_prog_compiler_static_GCJ='-static'
18156 pgcc* | pgf77* | pgf90* | pgf95*)
18157 # Portland Group compilers (*not* the Pentium gcc compiler,
18158 # which looks to be a dead project)
18159 lt_prog_compiler_wl_GCJ='-Wl,'
18160 lt_prog_compiler_pic_GCJ='-fpic'
18161 lt_prog_compiler_static_GCJ='-Bstatic'
18163 ccc*)
18164 lt_prog_compiler_wl_GCJ='-Wl,'
18165 # All Alpha code is PIC.
18166 lt_prog_compiler_static_GCJ='-non_shared'
18168 esac
18171 osf3* | osf4* | osf5*)
18172 lt_prog_compiler_wl_GCJ='-Wl,'
18173 # All OSF/1 code is PIC.
18174 lt_prog_compiler_static_GCJ='-non_shared'
18177 solaris*)
18178 lt_prog_compiler_pic_GCJ='-KPIC'
18179 lt_prog_compiler_static_GCJ='-Bstatic'
18180 case $cc_basename in
18181 f77* | f90* | f95*)
18182 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
18184 lt_prog_compiler_wl_GCJ='-Wl,';;
18185 esac
18188 sunos4*)
18189 lt_prog_compiler_wl_GCJ='-Qoption ld '
18190 lt_prog_compiler_pic_GCJ='-PIC'
18191 lt_prog_compiler_static_GCJ='-Bstatic'
18194 sysv4 | sysv4.2uw2* | sysv4.3*)
18195 lt_prog_compiler_wl_GCJ='-Wl,'
18196 lt_prog_compiler_pic_GCJ='-KPIC'
18197 lt_prog_compiler_static_GCJ='-Bstatic'
18200 sysv4*MP*)
18201 if test -d /usr/nec ;then
18202 lt_prog_compiler_pic_GCJ='-Kconform_pic'
18203 lt_prog_compiler_static_GCJ='-Bstatic'
18207 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
18208 lt_prog_compiler_wl_GCJ='-Wl,'
18209 lt_prog_compiler_pic_GCJ='-KPIC'
18210 lt_prog_compiler_static_GCJ='-Bstatic'
18213 unicos*)
18214 lt_prog_compiler_wl_GCJ='-Wl,'
18215 lt_prog_compiler_can_build_shared_GCJ=no
18218 uts4*)
18219 lt_prog_compiler_pic_GCJ='-pic'
18220 lt_prog_compiler_static_GCJ='-Bstatic'
18224 lt_prog_compiler_can_build_shared_GCJ=no
18226 esac
18229 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
18230 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
18233 # Check to make sure the PIC flag actually works.
18235 if test -n "$lt_prog_compiler_pic_GCJ"; then
18237 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
18238 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
18239 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
18240 echo $ECHO_N "(cached) $ECHO_C" >&6
18241 else
18242 lt_prog_compiler_pic_works_GCJ=no
18243 ac_outfile=conftest.$ac_objext
18244 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18245 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
18246 # Insert the option either (1) after the last *FLAGS variable, or
18247 # (2) before a word containing "conftest.", or (3) at the end.
18248 # Note that $ac_compile itself does not contain backslashes and begins
18249 # with a dollar sign (not a hyphen), so the echo should work correctly.
18250 # The option is referenced via a variable to avoid confusing sed.
18251 lt_compile=`echo "$ac_compile" | $SED \
18252 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18253 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18254 -e 's:$: $lt_compiler_flag:'`
18255 (eval echo "\"\$as_me:18255: $lt_compile\"" >&5)
18256 (eval "$lt_compile" 2>conftest.err)
18257 ac_status=$?
18258 cat conftest.err >&5
18259 echo "$as_me:18259: \$? = $ac_status" >&5
18260 if (exit $ac_status) && test -s "$ac_outfile"; then
18261 # The compiler can only warn and ignore the option if not recognized
18262 # So say no if there are warnings other than the usual output.
18263 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
18264 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18265 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
18266 lt_prog_compiler_pic_works_GCJ=yes
18269 $rm conftest*
18272 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
18273 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
18275 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
18276 case $lt_prog_compiler_pic_GCJ in
18277 "" | " "*) ;;
18278 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
18279 esac
18280 else
18281 lt_prog_compiler_pic_GCJ=
18282 lt_prog_compiler_can_build_shared_GCJ=no
18286 case $host_os in
18287 # For platforms which do not support PIC, -DPIC is meaningless:
18288 *djgpp*)
18289 lt_prog_compiler_pic_GCJ=
18292 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
18294 esac
18297 # Check to make sure the static flag actually works.
18299 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
18300 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
18301 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
18302 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
18303 echo $ECHO_N "(cached) $ECHO_C" >&6
18304 else
18305 lt_prog_compiler_static_works_GCJ=no
18306 save_LDFLAGS="$LDFLAGS"
18307 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
18308 printf "$lt_simple_link_test_code" > conftest.$ac_ext
18309 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
18310 # The linker can only warn and ignore the option if not recognized
18311 # So say no if there are warnings
18312 if test -s conftest.err; then
18313 # Append any errors to the config.log.
18314 cat conftest.err 1>&5
18315 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
18316 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18317 if diff conftest.exp conftest.er2 >/dev/null; then
18318 lt_prog_compiler_static_works_GCJ=yes
18320 else
18321 lt_prog_compiler_static_works_GCJ=yes
18324 $rm conftest*
18325 LDFLAGS="$save_LDFLAGS"
18328 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
18329 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
18331 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
18333 else
18334 lt_prog_compiler_static_GCJ=
18338 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
18339 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
18340 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
18341 echo $ECHO_N "(cached) $ECHO_C" >&6
18342 else
18343 lt_cv_prog_compiler_c_o_GCJ=no
18344 $rm -r conftest 2>/dev/null
18345 mkdir conftest
18346 cd conftest
18347 mkdir out
18348 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18350 lt_compiler_flag="-o out/conftest2.$ac_objext"
18351 # Insert the option either (1) after the last *FLAGS variable, or
18352 # (2) before a word containing "conftest.", or (3) at the end.
18353 # Note that $ac_compile itself does not contain backslashes and begins
18354 # with a dollar sign (not a hyphen), so the echo should work correctly.
18355 lt_compile=`echo "$ac_compile" | $SED \
18356 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18357 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18358 -e 's:$: $lt_compiler_flag:'`
18359 (eval echo "\"\$as_me:18359: $lt_compile\"" >&5)
18360 (eval "$lt_compile" 2>out/conftest.err)
18361 ac_status=$?
18362 cat out/conftest.err >&5
18363 echo "$as_me:18363: \$? = $ac_status" >&5
18364 if (exit $ac_status) && test -s out/conftest2.$ac_objext
18365 then
18366 # The compiler can only warn and ignore the option if not recognized
18367 # So say no if there are warnings
18368 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
18369 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
18370 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
18371 lt_cv_prog_compiler_c_o_GCJ=yes
18374 chmod u+w . 2>&5
18375 $rm conftest*
18376 # SGI C++ compiler will create directory out/ii_files/ for
18377 # template instantiation
18378 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
18379 $rm out/* && rmdir out
18380 cd ..
18381 rmdir conftest
18382 $rm conftest*
18385 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
18386 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
18389 hard_links="nottested"
18390 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
18391 # do not overwrite the value of need_locks provided by the user
18392 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
18393 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
18394 hard_links=yes
18395 $rm conftest*
18396 ln conftest.a conftest.b 2>/dev/null && hard_links=no
18397 touch conftest.a
18398 ln conftest.a conftest.b 2>&5 || hard_links=no
18399 ln conftest.a conftest.b 2>/dev/null && hard_links=no
18400 { echo "$as_me:$LINENO: result: $hard_links" >&5
18401 echo "${ECHO_T}$hard_links" >&6; }
18402 if test "$hard_links" = no; then
18403 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
18404 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
18405 need_locks=warn
18407 else
18408 need_locks=no
18411 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18412 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
18414 runpath_var=
18415 allow_undefined_flag_GCJ=
18416 enable_shared_with_static_runtimes_GCJ=no
18417 archive_cmds_GCJ=
18418 archive_expsym_cmds_GCJ=
18419 old_archive_From_new_cmds_GCJ=
18420 old_archive_from_expsyms_cmds_GCJ=
18421 export_dynamic_flag_spec_GCJ=
18422 whole_archive_flag_spec_GCJ=
18423 thread_safe_flag_spec_GCJ=
18424 hardcode_libdir_flag_spec_GCJ=
18425 hardcode_libdir_flag_spec_ld_GCJ=
18426 hardcode_libdir_separator_GCJ=
18427 hardcode_direct_GCJ=no
18428 hardcode_minus_L_GCJ=no
18429 hardcode_shlibpath_var_GCJ=unsupported
18430 link_all_deplibs_GCJ=unknown
18431 hardcode_automatic_GCJ=no
18432 module_cmds_GCJ=
18433 module_expsym_cmds_GCJ=
18434 always_export_symbols_GCJ=no
18435 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
18436 # include_expsyms should be a list of space-separated symbols to be *always*
18437 # included in the symbol list
18438 include_expsyms_GCJ=
18439 # exclude_expsyms can be an extended regexp of symbols to exclude
18440 # it will be wrapped by ` (' and `)$', so one must not match beginning or
18441 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
18442 # as well as any symbol that contains `d'.
18443 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
18444 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
18445 # platforms (ab)use it in PIC code, but their linkers get confused if
18446 # the symbol is explicitly referenced. Since portable code cannot
18447 # rely on this symbol name, it's probably fine to never include it in
18448 # preloaded symbol tables.
18449 extract_expsyms_cmds=
18450 # Just being paranoid about ensuring that cc_basename is set.
18451 for cc_temp in $compiler""; do
18452 case $cc_temp in
18453 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18454 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18455 \-*) ;;
18456 *) break;;
18457 esac
18458 done
18459 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18461 case $host_os in
18462 cygwin* | mingw* | pw32*)
18463 # FIXME: the MSVC++ port hasn't been tested in a loooong time
18464 # When not using gcc, we currently assume that we are using
18465 # Microsoft Visual C++.
18466 if test "$GCC" != yes; then
18467 with_gnu_ld=no
18470 interix*)
18471 # we just hope/assume this is gcc and not c89 (= MSVC++)
18472 with_gnu_ld=yes
18474 openbsd*)
18475 with_gnu_ld=no
18477 esac
18479 ld_shlibs_GCJ=yes
18480 if test "$with_gnu_ld" = yes; then
18481 # If archive_cmds runs LD, not CC, wlarc should be empty
18482 wlarc='${wl}'
18484 # Set some defaults for GNU ld with shared library support. These
18485 # are reset later if shared libraries are not supported. Putting them
18486 # here allows them to be overridden if necessary.
18487 runpath_var=LD_RUN_PATH
18488 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
18489 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
18490 # ancient GNU ld didn't support --whole-archive et. al.
18491 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
18492 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18493 else
18494 whole_archive_flag_spec_GCJ=
18496 supports_anon_versioning=no
18497 case `$LD -v 2>/dev/null` in
18498 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
18499 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
18500 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
18501 *\ 2.11.*) ;; # other 2.11 versions
18502 *) supports_anon_versioning=yes ;;
18503 esac
18505 # See if GNU ld supports shared libraries.
18506 case $host_os in
18507 aix3* | aix4* | aix5*)
18508 # On AIX/PPC, the GNU linker is very broken
18509 if test "$host_cpu" != ia64; then
18510 ld_shlibs_GCJ=no
18511 cat <<EOF 1>&2
18513 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
18514 *** to be unable to reliably create shared libraries on AIX.
18515 *** Therefore, libtool is disabling shared libraries support. If you
18516 *** really care for shared libraries, you may want to modify your PATH
18517 *** so that a non-GNU linker is found, and then restart.
18523 amigaos*)
18524 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)'
18525 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18526 hardcode_minus_L_GCJ=yes
18528 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
18529 # that the semantics of dynamic libraries on AmigaOS, at least up
18530 # to version 4, is to share data among multiple programs linked
18531 # with the same dynamic library. Since this doesn't match the
18532 # behavior of shared libraries on other platforms, we can't use
18533 # them.
18534 ld_shlibs_GCJ=no
18537 beos*)
18538 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18539 allow_undefined_flag_GCJ=unsupported
18540 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18541 # support --undefined. This deserves some investigation. FIXME
18542 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18543 else
18544 ld_shlibs_GCJ=no
18548 cygwin* | mingw* | pw32*)
18549 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
18550 # as there is no search path for DLLs.
18551 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18552 allow_undefined_flag_GCJ=unsupported
18553 always_export_symbols_GCJ=no
18554 enable_shared_with_static_runtimes_GCJ=yes
18555 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
18557 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
18558 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
18559 # If the export-symbols file already is a .def file (1st line
18560 # is EXPORTS), use it as is; otherwise, prepend...
18561 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18562 cp $export_symbols $output_objdir/$soname.def;
18563 else
18564 echo EXPORTS > $output_objdir/$soname.def;
18565 cat $export_symbols >> $output_objdir/$soname.def;
18567 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
18568 else
18569 ld_shlibs_GCJ=no
18573 interix3*)
18574 hardcode_direct_GCJ=no
18575 hardcode_shlibpath_var_GCJ=no
18576 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18577 export_dynamic_flag_spec_GCJ='${wl}-E'
18578 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
18579 # Instead, shared libraries are loaded at an image base (0x10000000 by
18580 # default) and relocated if they conflict, which is a slow very memory
18581 # consuming and fragmenting process. To avoid this, we pick a random,
18582 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
18583 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
18584 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'
18585 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'
18588 linux* | k*bsd*-gnu)
18589 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18590 tmp_addflag=
18591 case $cc_basename,$host_cpu in
18592 pgcc*) # Portland Group C compiler
18593 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'
18594 tmp_addflag=' $pic_flag'
18596 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
18597 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'
18598 tmp_addflag=' $pic_flag -Mnomain' ;;
18599 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
18600 tmp_addflag=' -i_dynamic' ;;
18601 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
18602 tmp_addflag=' -i_dynamic -nofor_main' ;;
18603 ifc* | ifort*) # Intel Fortran compiler
18604 tmp_addflag=' -nofor_main' ;;
18605 esac
18606 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18608 if test $supports_anon_versioning = yes; then
18609 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
18610 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
18611 $echo "local: *; };" >> $output_objdir/$libname.ver~
18612 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
18614 link_all_deplibs_GCJ=no
18615 else
18616 ld_shlibs_GCJ=no
18620 netbsd* | netbsdelf*-gnu)
18621 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18622 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
18623 wlarc=
18624 else
18625 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18626 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18630 solaris*)
18631 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
18632 ld_shlibs_GCJ=no
18633 cat <<EOF 1>&2
18635 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
18636 *** create shared libraries on Solaris systems. Therefore, libtool
18637 *** is disabling shared libraries support. We urge you to upgrade GNU
18638 *** binutils to release 2.9.1 or newer. Another option is to modify
18639 *** your PATH or compiler configuration so that the native linker is
18640 *** used, and then restart.
18643 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18644 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18645 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18646 else
18647 ld_shlibs_GCJ=no
18651 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
18652 case `$LD -v 2>&1` in
18653 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
18654 ld_shlibs_GCJ=no
18655 cat <<_LT_EOF 1>&2
18657 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
18658 *** reliably create shared libraries on SCO systems. Therefore, libtool
18659 *** is disabling shared libraries support. We urge you to upgrade GNU
18660 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
18661 *** your PATH or compiler configuration so that the native linker is
18662 *** used, and then restart.
18664 _LT_EOF
18667 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18668 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
18669 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
18670 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
18671 else
18672 ld_shlibs_GCJ=no
18675 esac
18678 sunos4*)
18679 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18680 wlarc=
18681 hardcode_direct_GCJ=yes
18682 hardcode_shlibpath_var_GCJ=no
18686 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18687 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18688 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18689 else
18690 ld_shlibs_GCJ=no
18693 esac
18695 if test "$ld_shlibs_GCJ" = no; then
18696 runpath_var=
18697 hardcode_libdir_flag_spec_GCJ=
18698 export_dynamic_flag_spec_GCJ=
18699 whole_archive_flag_spec_GCJ=
18701 else
18702 # PORTME fill in a description of your system's linker (not GNU ld)
18703 case $host_os in
18704 aix3*)
18705 allow_undefined_flag_GCJ=unsupported
18706 always_export_symbols_GCJ=yes
18707 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'
18708 # Note: this linker hardcodes the directories in LIBPATH if there
18709 # are no directories specified by -L.
18710 hardcode_minus_L_GCJ=yes
18711 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
18712 # Neither direct hardcoding nor static linking is supported with a
18713 # broken collect2.
18714 hardcode_direct_GCJ=unsupported
18718 aix4* | aix5*)
18719 if test "$host_cpu" = ia64; then
18720 # On IA64, the linker does run time linking by default, so we don't
18721 # have to do anything special.
18722 aix_use_runtimelinking=no
18723 exp_sym_flag='-Bexport'
18724 no_entry_flag=""
18725 else
18726 # If we're using GNU nm, then we don't want the "-C" option.
18727 # -C means demangle to AIX nm, but means don't demangle with GNU nm
18728 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
18729 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'
18730 else
18731 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'
18733 aix_use_runtimelinking=no
18735 # Test if we are trying to use run time linking or normal
18736 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18737 # need to do runtime linking.
18738 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
18739 for ld_flag in $LDFLAGS; do
18740 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
18741 aix_use_runtimelinking=yes
18742 break
18744 done
18746 esac
18748 exp_sym_flag='-bexport'
18749 no_entry_flag='-bnoentry'
18752 # When large executables or shared objects are built, AIX ld can
18753 # have problems creating the table of contents. If linking a library
18754 # or program results in "error TOC overflow" add -mminimal-toc to
18755 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
18756 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18758 archive_cmds_GCJ=''
18759 hardcode_direct_GCJ=yes
18760 hardcode_libdir_separator_GCJ=':'
18761 link_all_deplibs_GCJ=yes
18763 if test "$GCC" = yes; then
18764 case $host_os in aix4.[012]|aix4.[012].*)
18765 # We only want to do this on AIX 4.2 and lower, the check
18766 # below for broken collect2 doesn't work under 4.3+
18767 collect2name=`${CC} -print-prog-name=collect2`
18768 if test -f "$collect2name" && \
18769 strings "$collect2name" | grep resolve_lib_name >/dev/null
18770 then
18771 # We have reworked collect2
18772 hardcode_direct_GCJ=yes
18773 else
18774 # We have old collect2
18775 hardcode_direct_GCJ=unsupported
18776 # It fails to find uninstalled libraries when the uninstalled
18777 # path is not listed in the libpath. Setting hardcode_minus_L
18778 # to unsupported forces relinking
18779 hardcode_minus_L_GCJ=yes
18780 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18781 hardcode_libdir_separator_GCJ=
18784 esac
18785 shared_flag='-shared'
18786 if test "$aix_use_runtimelinking" = yes; then
18787 shared_flag="$shared_flag "'${wl}-G'
18789 else
18790 # not using gcc
18791 if test "$host_cpu" = ia64; then
18792 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18793 # chokes on -Wl,-G. The following line is correct:
18794 shared_flag='-G'
18795 else
18796 if test "$aix_use_runtimelinking" = yes; then
18797 shared_flag='${wl}-G'
18798 else
18799 shared_flag='${wl}-bM:SRE'
18804 # It seems that -bexpall does not export symbols beginning with
18805 # underscore (_), so it is better to generate a list of symbols to export.
18806 always_export_symbols_GCJ=yes
18807 if test "$aix_use_runtimelinking" = yes; then
18808 # Warning - without using the other runtime loading flags (-brtl),
18809 # -berok will link without error, but may produce a broken library.
18810 allow_undefined_flag_GCJ='-berok'
18811 # Determine the default libpath from the value encoded in an empty executable.
18812 cat >conftest.$ac_ext <<_ACEOF
18813 /* confdefs.h. */
18814 _ACEOF
18815 cat confdefs.h >>conftest.$ac_ext
18816 cat >>conftest.$ac_ext <<_ACEOF
18817 /* end confdefs.h. */
18820 main ()
18824 return 0;
18826 _ACEOF
18827 rm -f conftest.$ac_objext conftest$ac_exeext
18828 if { (ac_try="$ac_link"
18829 case "(($ac_try" in
18830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18831 *) ac_try_echo=$ac_try;;
18832 esac
18833 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18834 (eval "$ac_link") 2>conftest.er1
18835 ac_status=$?
18836 grep -v '^ *+' conftest.er1 >conftest.err
18837 rm -f conftest.er1
18838 cat conftest.err >&5
18839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18840 (exit $ac_status); } && {
18841 test -z "$ac_c_werror_flag" ||
18842 test ! -s conftest.err
18843 } && test -s conftest$ac_exeext &&
18844 $as_test_x conftest$ac_exeext; then
18846 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
18848 # Check for a 64-bit object if we didn't find anything.
18849 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
18850 }'`; fi
18851 else
18852 echo "$as_me: failed program was:" >&5
18853 sed 's/^/| /' conftest.$ac_ext >&5
18858 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18859 conftest$ac_exeext conftest.$ac_ext
18860 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18862 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
18863 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"
18864 else
18865 if test "$host_cpu" = ia64; then
18866 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
18867 allow_undefined_flag_GCJ="-z nodefs"
18868 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"
18869 else
18870 # Determine the default libpath from the value encoded in an empty executable.
18871 cat >conftest.$ac_ext <<_ACEOF
18872 /* confdefs.h. */
18873 _ACEOF
18874 cat confdefs.h >>conftest.$ac_ext
18875 cat >>conftest.$ac_ext <<_ACEOF
18876 /* end confdefs.h. */
18879 main ()
18883 return 0;
18885 _ACEOF
18886 rm -f conftest.$ac_objext conftest$ac_exeext
18887 if { (ac_try="$ac_link"
18888 case "(($ac_try" in
18889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18890 *) ac_try_echo=$ac_try;;
18891 esac
18892 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18893 (eval "$ac_link") 2>conftest.er1
18894 ac_status=$?
18895 grep -v '^ *+' conftest.er1 >conftest.err
18896 rm -f conftest.er1
18897 cat conftest.err >&5
18898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18899 (exit $ac_status); } && {
18900 test -z "$ac_c_werror_flag" ||
18901 test ! -s conftest.err
18902 } && test -s conftest$ac_exeext &&
18903 $as_test_x conftest$ac_exeext; then
18905 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
18907 # Check for a 64-bit object if we didn't find anything.
18908 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
18909 }'`; fi
18910 else
18911 echo "$as_me: failed program was:" >&5
18912 sed 's/^/| /' conftest.$ac_ext >&5
18917 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18918 conftest$ac_exeext conftest.$ac_ext
18919 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18921 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
18922 # Warning - without using the other run time loading flags,
18923 # -berok will link without error, but may produce a broken library.
18924 no_undefined_flag_GCJ=' ${wl}-bernotok'
18925 allow_undefined_flag_GCJ=' ${wl}-berok'
18926 # Exported symbols can be pulled into shared objects from archives
18927 whole_archive_flag_spec_GCJ='$convenience'
18928 archive_cmds_need_lc_GCJ=yes
18929 # This is similar to how AIX traditionally builds its shared libraries.
18930 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'
18935 amigaos*)
18936 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)'
18937 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18938 hardcode_minus_L_GCJ=yes
18939 # see comment about different semantics on the GNU ld section
18940 ld_shlibs_GCJ=no
18943 bsdi[45]*)
18944 export_dynamic_flag_spec_GCJ=-rdynamic
18947 cygwin* | mingw* | pw32*)
18948 # When not using gcc, we currently assume that we are using
18949 # Microsoft Visual C++.
18950 # hardcode_libdir_flag_spec is actually meaningless, as there is
18951 # no search path for DLLs.
18952 hardcode_libdir_flag_spec_GCJ=' '
18953 allow_undefined_flag_GCJ=unsupported
18954 # Tell ltmain to make .lib files, not .a files.
18955 libext=lib
18956 # Tell ltmain to make .dll files, not .so files.
18957 shrext_cmds=".dll"
18958 # FIXME: Setting linknames here is a bad hack.
18959 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
18960 # The linker will automatically build a .lib file if we build a DLL.
18961 old_archive_From_new_cmds_GCJ='true'
18962 # FIXME: Should let the user specify the lib program.
18963 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
18964 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
18965 enable_shared_with_static_runtimes_GCJ=yes
18968 darwin* | rhapsody*)
18969 case $host_os in
18970 rhapsody* | darwin1.[012])
18971 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
18973 *) # Darwin 1.3 on
18974 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
18975 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18976 else
18977 case ${MACOSX_DEPLOYMENT_TARGET} in
18978 10.[012])
18979 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18981 10.*)
18982 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
18984 esac
18987 esac
18988 archive_cmds_need_lc_GCJ=no
18989 hardcode_direct_GCJ=no
18990 hardcode_automatic_GCJ=yes
18991 hardcode_shlibpath_var_GCJ=unsupported
18992 whole_archive_flag_spec_GCJ=''
18993 link_all_deplibs_GCJ=yes
18994 if test "$GCC" = yes ; then
18995 output_verbose_link_cmd='echo'
18996 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
18997 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18998 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18999 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
19000 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}'
19001 else
19002 case $cc_basename in
19003 xlc*)
19004 output_verbose_link_cmd='echo'
19005 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
19006 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
19007 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
19008 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
19009 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}'
19012 ld_shlibs_GCJ=no
19014 esac
19018 dgux*)
19019 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19020 hardcode_libdir_flag_spec_GCJ='-L$libdir'
19021 hardcode_shlibpath_var_GCJ=no
19024 freebsd1*)
19025 ld_shlibs_GCJ=no
19028 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
19029 # support. Future versions do this automatically, but an explicit c++rt0.o
19030 # does not break anything, and helps significantly (at the cost of a little
19031 # extra space).
19032 freebsd2.2*)
19033 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
19034 hardcode_libdir_flag_spec_GCJ='-R$libdir'
19035 hardcode_direct_GCJ=yes
19036 hardcode_shlibpath_var_GCJ=no
19039 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
19040 freebsd2*)
19041 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19042 hardcode_direct_GCJ=yes
19043 hardcode_minus_L_GCJ=yes
19044 hardcode_shlibpath_var_GCJ=no
19047 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
19048 freebsd* | dragonfly*)
19049 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
19050 hardcode_libdir_flag_spec_GCJ='-R$libdir'
19051 hardcode_direct_GCJ=yes
19052 hardcode_shlibpath_var_GCJ=no
19055 hpux9*)
19056 if test "$GCC" = yes; then
19057 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'
19058 else
19059 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'
19061 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
19062 hardcode_libdir_separator_GCJ=:
19063 hardcode_direct_GCJ=yes
19065 # hardcode_minus_L: Not really in the search PATH,
19066 # but as the default location of the library.
19067 hardcode_minus_L_GCJ=yes
19068 export_dynamic_flag_spec_GCJ='${wl}-E'
19071 hpux10*)
19072 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
19073 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
19074 else
19075 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
19077 if test "$with_gnu_ld" = no; then
19078 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
19079 hardcode_libdir_separator_GCJ=:
19081 hardcode_direct_GCJ=yes
19082 export_dynamic_flag_spec_GCJ='${wl}-E'
19084 # hardcode_minus_L: Not really in the search PATH,
19085 # but as the default location of the library.
19086 hardcode_minus_L_GCJ=yes
19090 hpux11*)
19091 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
19092 case $host_cpu in
19093 hppa*64*)
19094 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19096 ia64*)
19097 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
19100 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
19102 esac
19103 else
19104 case $host_cpu in
19105 hppa*64*)
19106 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19108 ia64*)
19109 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
19112 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
19114 esac
19116 if test "$with_gnu_ld" = no; then
19117 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
19118 hardcode_libdir_separator_GCJ=:
19120 case $host_cpu in
19121 hppa*64*|ia64*)
19122 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
19123 hardcode_direct_GCJ=no
19124 hardcode_shlibpath_var_GCJ=no
19127 hardcode_direct_GCJ=yes
19128 export_dynamic_flag_spec_GCJ='${wl}-E'
19130 # hardcode_minus_L: Not really in the search PATH,
19131 # but as the default location of the library.
19132 hardcode_minus_L_GCJ=yes
19134 esac
19138 irix5* | irix6* | nonstopux*)
19139 if test "$GCC" = yes; then
19140 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'
19141 else
19142 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'
19143 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
19145 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
19146 hardcode_libdir_separator_GCJ=:
19147 link_all_deplibs_GCJ=yes
19150 netbsd* | netbsdelf*-gnu)
19151 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19152 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
19153 else
19154 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
19156 hardcode_libdir_flag_spec_GCJ='-R$libdir'
19157 hardcode_direct_GCJ=yes
19158 hardcode_shlibpath_var_GCJ=no
19161 newsos6)
19162 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19163 hardcode_direct_GCJ=yes
19164 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
19165 hardcode_libdir_separator_GCJ=:
19166 hardcode_shlibpath_var_GCJ=no
19169 openbsd*)
19170 hardcode_direct_GCJ=yes
19171 hardcode_shlibpath_var_GCJ=no
19172 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19173 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
19174 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
19175 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
19176 export_dynamic_flag_spec_GCJ='${wl}-E'
19177 else
19178 case $host_os in
19179 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
19180 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19181 hardcode_libdir_flag_spec_GCJ='-R$libdir'
19184 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
19185 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
19187 esac
19191 os2*)
19192 hardcode_libdir_flag_spec_GCJ='-L$libdir'
19193 hardcode_minus_L_GCJ=yes
19194 allow_undefined_flag_GCJ=unsupported
19195 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'
19196 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
19199 osf3*)
19200 if test "$GCC" = yes; then
19201 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
19202 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'
19203 else
19204 allow_undefined_flag_GCJ=' -expect_unresolved \*'
19205 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'
19207 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
19208 hardcode_libdir_separator_GCJ=:
19211 osf4* | osf5*) # as osf3* with the addition of -msym flag
19212 if test "$GCC" = yes; then
19213 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
19214 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'
19215 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
19216 else
19217 allow_undefined_flag_GCJ=' -expect_unresolved \*'
19218 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'
19219 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~
19220 $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'
19222 # Both c and cxx compiler support -rpath directly
19223 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
19225 hardcode_libdir_separator_GCJ=:
19228 solaris*)
19229 no_undefined_flag_GCJ=' -z text'
19230 if test "$GCC" = yes; then
19231 wlarc='${wl}'
19232 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19233 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19234 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
19235 else
19236 wlarc=''
19237 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
19238 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19239 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
19241 hardcode_libdir_flag_spec_GCJ='-R$libdir'
19242 hardcode_shlibpath_var_GCJ=no
19243 case $host_os in
19244 solaris2.[0-5] | solaris2.[0-5].*) ;;
19246 # The compiler driver will combine linker options so we
19247 # cannot just pass the convience library names through
19248 # without $wl, iff we do not link with $LD.
19249 # Luckily, gcc supports the same syntax we need for Sun Studio.
19250 # Supported since Solaris 2.6 (maybe 2.5.1?)
19251 case $wlarc in
19253 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
19255 whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
19256 esac ;;
19257 esac
19258 link_all_deplibs_GCJ=yes
19261 sunos4*)
19262 if test "x$host_vendor" = xsequent; then
19263 # Use $CC to link under sequent, because it throws in some extra .o
19264 # files that make .init and .fini sections work.
19265 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
19266 else
19267 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
19269 hardcode_libdir_flag_spec_GCJ='-L$libdir'
19270 hardcode_direct_GCJ=yes
19271 hardcode_minus_L_GCJ=yes
19272 hardcode_shlibpath_var_GCJ=no
19275 sysv4)
19276 case $host_vendor in
19277 sni)
19278 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19279 hardcode_direct_GCJ=yes # is this really true???
19281 siemens)
19282 ## LD is ld it makes a PLAMLIB
19283 ## CC just makes a GrossModule.
19284 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
19285 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
19286 hardcode_direct_GCJ=no
19288 motorola)
19289 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19290 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
19292 esac
19293 runpath_var='LD_RUN_PATH'
19294 hardcode_shlibpath_var_GCJ=no
19297 sysv4.3*)
19298 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19299 hardcode_shlibpath_var_GCJ=no
19300 export_dynamic_flag_spec_GCJ='-Bexport'
19303 sysv4*MP*)
19304 if test -d /usr/nec; then
19305 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19306 hardcode_shlibpath_var_GCJ=no
19307 runpath_var=LD_RUN_PATH
19308 hardcode_runpath_var=yes
19309 ld_shlibs_GCJ=yes
19313 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
19314 no_undefined_flag_GCJ='${wl}-z,text'
19315 archive_cmds_need_lc_GCJ=no
19316 hardcode_shlibpath_var_GCJ=no
19317 runpath_var='LD_RUN_PATH'
19319 if test "$GCC" = yes; then
19320 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19321 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19322 else
19323 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19324 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19328 sysv5* | sco3.2v5* | sco5v6*)
19329 # Note: We can NOT use -z defs as we might desire, because we do not
19330 # link with -lc, and that would cause any symbols used from libc to
19331 # always be unresolved, which means just about no library would
19332 # ever link correctly. If we're not using GNU ld we use -z text
19333 # though, which does catch some bad symbols but isn't as heavy-handed
19334 # as -z defs.
19335 no_undefined_flag_GCJ='${wl}-z,text'
19336 allow_undefined_flag_GCJ='${wl}-z,nodefs'
19337 archive_cmds_need_lc_GCJ=no
19338 hardcode_shlibpath_var_GCJ=no
19339 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
19340 hardcode_libdir_separator_GCJ=':'
19341 link_all_deplibs_GCJ=yes
19342 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
19343 runpath_var='LD_RUN_PATH'
19345 if test "$GCC" = yes; then
19346 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19347 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19348 else
19349 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19350 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19354 uts4*)
19355 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19356 hardcode_libdir_flag_spec_GCJ='-L$libdir'
19357 hardcode_shlibpath_var_GCJ=no
19361 ld_shlibs_GCJ=no
19363 esac
19366 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
19367 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
19368 test "$ld_shlibs_GCJ" = no && can_build_shared=no
19371 # Do we need to explicitly link libc?
19373 case "x$archive_cmds_need_lc_GCJ" in
19374 x|xyes)
19375 # Assume -lc should be added
19376 archive_cmds_need_lc_GCJ=yes
19378 if test "$enable_shared" = yes && test "$GCC" = yes; then
19379 case $archive_cmds_GCJ in
19380 *'~'*)
19381 # FIXME: we may have to deal with multi-command sequences.
19383 '$CC '*)
19384 # Test whether the compiler implicitly links with -lc since on some
19385 # systems, -lgcc has to come before -lc. If gcc already passes -lc
19386 # to ld, don't add -lc before -lgcc.
19387 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
19388 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
19389 $rm conftest*
19390 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19392 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19393 (eval $ac_compile) 2>&5
19394 ac_status=$?
19395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19396 (exit $ac_status); } 2>conftest.err; then
19397 soname=conftest
19398 lib=conftest
19399 libobjs=conftest.$ac_objext
19400 deplibs=
19401 wl=$lt_prog_compiler_wl_GCJ
19402 pic_flag=$lt_prog_compiler_pic_GCJ
19403 compiler_flags=-v
19404 linker_flags=-v
19405 verstring=
19406 output_objdir=.
19407 libname=conftest
19408 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
19409 allow_undefined_flag_GCJ=
19410 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
19411 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
19412 ac_status=$?
19413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19414 (exit $ac_status); }
19415 then
19416 archive_cmds_need_lc_GCJ=no
19417 else
19418 archive_cmds_need_lc_GCJ=yes
19420 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
19421 else
19422 cat conftest.err 1>&5
19424 $rm conftest*
19425 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
19426 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
19428 esac
19431 esac
19433 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
19434 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
19435 library_names_spec=
19436 libname_spec='lib$name'
19437 soname_spec=
19438 shrext_cmds=".so"
19439 postinstall_cmds=
19440 postuninstall_cmds=
19441 finish_cmds=
19442 finish_eval=
19443 shlibpath_var=
19444 shlibpath_overrides_runpath=unknown
19445 version_type=none
19446 dynamic_linker="$host_os ld.so"
19447 sys_lib_dlsearch_path_spec="/lib /usr/lib"
19448 if test "$GCC" = yes; then
19449 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
19450 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
19451 # if the path contains ";" then we assume it to be the separator
19452 # otherwise default to the standard path separator (i.e. ":") - it is
19453 # assumed that no part of a normal pathname contains ";" but that should
19454 # okay in the real world where ";" in dirpaths is itself problematic.
19455 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19456 else
19457 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
19459 else
19460 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
19462 need_lib_prefix=unknown
19463 hardcode_into_libs=no
19465 # when you set need_version to no, make sure it does not cause -set_version
19466 # flags to be left without arguments
19467 need_version=unknown
19469 case $host_os in
19470 aix3*)
19471 version_type=linux
19472 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
19473 shlibpath_var=LIBPATH
19475 # AIX 3 has no versioning support, so we append a major version to the name.
19476 soname_spec='${libname}${release}${shared_ext}$major'
19479 aix4* | aix5*)
19480 version_type=linux
19481 need_lib_prefix=no
19482 need_version=no
19483 hardcode_into_libs=yes
19484 if test "$host_cpu" = ia64; then
19485 # AIX 5 supports IA64
19486 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
19487 shlibpath_var=LD_LIBRARY_PATH
19488 else
19489 # With GCC up to 2.95.x, collect2 would create an import file
19490 # for dependence libraries. The import file would start with
19491 # the line `#! .'. This would cause the generated library to
19492 # depend on `.', always an invalid library. This was fixed in
19493 # development snapshots of GCC prior to 3.0.
19494 case $host_os in
19495 aix4 | aix4.[01] | aix4.[01].*)
19496 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
19497 echo ' yes '
19498 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
19500 else
19501 can_build_shared=no
19504 esac
19505 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
19506 # soname into executable. Probably we can add versioning support to
19507 # collect2, so additional links can be useful in future.
19508 if test "$aix_use_runtimelinking" = yes; then
19509 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
19510 # instead of lib<name>.a to let people know that these are not
19511 # typical AIX shared libraries.
19512 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19513 else
19514 # We preserve .a as extension for shared libraries through AIX4.2
19515 # and later when we are not doing run time linking.
19516 library_names_spec='${libname}${release}.a $libname.a'
19517 soname_spec='${libname}${release}${shared_ext}$major'
19519 shlibpath_var=LIBPATH
19523 amigaos*)
19524 library_names_spec='$libname.ixlibrary $libname.a'
19525 # Create ${libname}_ixlibrary.a entries in /sys/libs.
19526 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'
19529 beos*)
19530 library_names_spec='${libname}${shared_ext}'
19531 dynamic_linker="$host_os ld.so"
19532 shlibpath_var=LIBRARY_PATH
19535 bsdi[45]*)
19536 version_type=linux
19537 need_version=no
19538 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19539 soname_spec='${libname}${release}${shared_ext}$major'
19540 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
19541 shlibpath_var=LD_LIBRARY_PATH
19542 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
19543 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
19544 # the default ld.so.conf also contains /usr/contrib/lib and
19545 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
19546 # libtool to hard-code these into programs
19549 cygwin* | mingw* | pw32*)
19550 version_type=windows
19551 shrext_cmds=".dll"
19552 need_version=no
19553 need_lib_prefix=no
19555 case $GCC,$host_os in
19556 yes,cygwin* | yes,mingw* | yes,pw32*)
19557 library_names_spec='$libname.dll.a'
19558 # DLL is installed to $(libdir)/../bin by postinstall_cmds
19559 postinstall_cmds='base_file=`basename \${file}`~
19560 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
19561 dldir=$destdir/`dirname \$dlpath`~
19562 test -d \$dldir || mkdir -p \$dldir~
19563 $install_prog $dir/$dlname \$dldir/$dlname~
19564 chmod a+x \$dldir/$dlname'
19565 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
19566 dlpath=$dir/\$dldll~
19567 $rm \$dlpath'
19568 shlibpath_overrides_runpath=yes
19570 case $host_os in
19571 cygwin*)
19572 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
19573 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19574 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
19576 mingw*)
19577 # MinGW DLLs use traditional 'lib' prefix
19578 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19579 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
19580 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
19581 # It is most probably a Windows format PATH printed by
19582 # mingw gcc, but we are running on Cygwin. Gcc prints its search
19583 # path with ; separators, and with drive letters. We can handle the
19584 # drive letters (cygwin fileutils understands them), so leave them,
19585 # especially as we might pass files found there to a mingw objdump,
19586 # which wouldn't understand a cygwinified path. Ahh.
19587 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19588 else
19589 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
19592 pw32*)
19593 # pw32 DLLs use 'pw' prefix rather than 'lib'
19594 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19596 esac
19600 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
19602 esac
19603 dynamic_linker='Win32 ld.exe'
19604 # FIXME: first we should search . and the directory the executable is in
19605 shlibpath_var=PATH
19608 darwin* | rhapsody*)
19609 dynamic_linker="$host_os dyld"
19610 version_type=darwin
19611 need_lib_prefix=no
19612 need_version=no
19613 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
19614 soname_spec='${libname}${release}${major}$shared_ext'
19615 shlibpath_overrides_runpath=yes
19616 shlibpath_var=DYLD_LIBRARY_PATH
19617 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
19618 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
19619 if test "$GCC" = yes; then
19620 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
19621 else
19622 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
19624 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
19627 dgux*)
19628 version_type=linux
19629 need_lib_prefix=no
19630 need_version=no
19631 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
19632 soname_spec='${libname}${release}${shared_ext}$major'
19633 shlibpath_var=LD_LIBRARY_PATH
19636 freebsd1*)
19637 dynamic_linker=no
19640 freebsd* | dragonfly*)
19641 # DragonFly does not have aout. When/if they implement a new
19642 # versioning mechanism, adjust this.
19643 if test -x /usr/bin/objformat; then
19644 objformat=`/usr/bin/objformat`
19645 else
19646 case $host_os in
19647 freebsd[123]*) objformat=aout ;;
19648 *) objformat=elf ;;
19649 esac
19651 version_type=freebsd-$objformat
19652 case $version_type in
19653 freebsd-elf*)
19654 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19655 need_version=no
19656 need_lib_prefix=no
19658 freebsd-*)
19659 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
19660 need_version=yes
19662 esac
19663 shlibpath_var=LD_LIBRARY_PATH
19664 case $host_os in
19665 freebsd2*)
19666 shlibpath_overrides_runpath=yes
19668 freebsd3.[01]* | freebsdelf3.[01]*)
19669 shlibpath_overrides_runpath=yes
19670 hardcode_into_libs=yes
19672 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
19673 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
19674 shlibpath_overrides_runpath=no
19675 hardcode_into_libs=yes
19677 freebsd*) # from 4.6 on
19678 shlibpath_overrides_runpath=yes
19679 hardcode_into_libs=yes
19681 esac
19684 gnu*)
19685 version_type=linux
19686 need_lib_prefix=no
19687 need_version=no
19688 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
19689 soname_spec='${libname}${release}${shared_ext}$major'
19690 shlibpath_var=LD_LIBRARY_PATH
19691 hardcode_into_libs=yes
19694 hpux9* | hpux10* | hpux11*)
19695 # Give a soname corresponding to the major version so that dld.sl refuses to
19696 # link against other versions.
19697 version_type=sunos
19698 need_lib_prefix=no
19699 need_version=no
19700 case $host_cpu in
19701 ia64*)
19702 shrext_cmds='.so'
19703 hardcode_into_libs=yes
19704 dynamic_linker="$host_os dld.so"
19705 shlibpath_var=LD_LIBRARY_PATH
19706 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19707 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19708 soname_spec='${libname}${release}${shared_ext}$major'
19709 if test "X$HPUX_IA64_MODE" = X32; then
19710 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
19711 else
19712 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
19714 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19716 hppa*64*)
19717 shrext_cmds='.sl'
19718 hardcode_into_libs=yes
19719 dynamic_linker="$host_os dld.sl"
19720 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
19721 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19722 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19723 soname_spec='${libname}${release}${shared_ext}$major'
19724 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
19725 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19728 shrext_cmds='.sl'
19729 dynamic_linker="$host_os dld.sl"
19730 shlibpath_var=SHLIB_PATH
19731 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
19732 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19733 soname_spec='${libname}${release}${shared_ext}$major'
19735 esac
19736 # HP-UX runs *really* slowly unless shared libraries are mode 555.
19737 postinstall_cmds='chmod 555 $lib'
19740 interix3*)
19741 version_type=linux
19742 need_lib_prefix=no
19743 need_version=no
19744 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19745 soname_spec='${libname}${release}${shared_ext}$major'
19746 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
19747 shlibpath_var=LD_LIBRARY_PATH
19748 shlibpath_overrides_runpath=no
19749 hardcode_into_libs=yes
19752 irix5* | irix6* | nonstopux*)
19753 case $host_os in
19754 nonstopux*) version_type=nonstopux ;;
19756 if test "$lt_cv_prog_gnu_ld" = yes; then
19757 version_type=linux
19758 else
19759 version_type=irix
19760 fi ;;
19761 esac
19762 need_lib_prefix=no
19763 need_version=no
19764 soname_spec='${libname}${release}${shared_ext}$major'
19765 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
19766 case $host_os in
19767 irix5* | nonstopux*)
19768 libsuff= shlibsuff=
19771 case $LD in # libtool.m4 will add one of these switches to LD
19772 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
19773 libsuff= shlibsuff= libmagic=32-bit;;
19774 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
19775 libsuff=32 shlibsuff=N32 libmagic=N32;;
19776 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
19777 libsuff=64 shlibsuff=64 libmagic=64-bit;;
19778 *) libsuff= shlibsuff= libmagic=never-match;;
19779 esac
19781 esac
19782 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
19783 shlibpath_overrides_runpath=no
19784 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
19785 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
19786 hardcode_into_libs=yes
19789 # No shared lib support for Linux oldld, aout, or coff.
19790 linux*oldld* | linux*aout* | linux*coff*)
19791 dynamic_linker=no
19794 # This must be Linux ELF.
19795 linux* | k*bsd*-gnu)
19796 version_type=linux
19797 need_lib_prefix=no
19798 need_version=no
19799 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19800 soname_spec='${libname}${release}${shared_ext}$major'
19801 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
19802 shlibpath_var=LD_LIBRARY_PATH
19803 shlibpath_overrides_runpath=no
19804 # This implies no fast_install, which is unacceptable.
19805 # Some rework will be needed to allow for fast_install
19806 # before this can be enabled.
19807 hardcode_into_libs=yes
19809 # Append ld.so.conf contents to the search path
19810 if test -f /etc/ld.so.conf; then
19811 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
19812 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
19815 # We used to test for /lib/ld.so.1 and disable shared libraries on
19816 # powerpc, because MkLinux only supported shared libraries with the
19817 # GNU dynamic linker. Since this was broken with cross compilers,
19818 # most powerpc-linux boxes support dynamic linking these days and
19819 # people can always --disable-shared, the test was removed, and we
19820 # assume the GNU/Linux dynamic linker is in use.
19821 dynamic_linker='GNU/Linux ld.so'
19824 netbsdelf*-gnu)
19825 version_type=linux
19826 need_lib_prefix=no
19827 need_version=no
19828 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19829 soname_spec='${libname}${release}${shared_ext}$major'
19830 shlibpath_var=LD_LIBRARY_PATH
19831 shlibpath_overrides_runpath=no
19832 hardcode_into_libs=yes
19833 dynamic_linker='NetBSD ld.elf_so'
19836 netbsd*)
19837 version_type=sunos
19838 need_lib_prefix=no
19839 need_version=no
19840 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19841 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19842 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19843 dynamic_linker='NetBSD (a.out) ld.so'
19844 else
19845 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19846 soname_spec='${libname}${release}${shared_ext}$major'
19847 dynamic_linker='NetBSD ld.elf_so'
19849 shlibpath_var=LD_LIBRARY_PATH
19850 shlibpath_overrides_runpath=yes
19851 hardcode_into_libs=yes
19854 newsos6)
19855 version_type=linux
19856 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19857 shlibpath_var=LD_LIBRARY_PATH
19858 shlibpath_overrides_runpath=yes
19861 nto-qnx*)
19862 version_type=linux
19863 need_lib_prefix=no
19864 need_version=no
19865 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19866 soname_spec='${libname}${release}${shared_ext}$major'
19867 shlibpath_var=LD_LIBRARY_PATH
19868 shlibpath_overrides_runpath=yes
19871 openbsd*)
19872 version_type=sunos
19873 sys_lib_dlsearch_path_spec="/usr/lib"
19874 need_lib_prefix=no
19875 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
19876 case $host_os in
19877 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
19878 *) need_version=no ;;
19879 esac
19880 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19881 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19882 shlibpath_var=LD_LIBRARY_PATH
19883 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19884 case $host_os in
19885 openbsd2.[89] | openbsd2.[89].*)
19886 shlibpath_overrides_runpath=no
19889 shlibpath_overrides_runpath=yes
19891 esac
19892 else
19893 shlibpath_overrides_runpath=yes
19897 os2*)
19898 libname_spec='$name'
19899 shrext_cmds=".dll"
19900 need_lib_prefix=no
19901 library_names_spec='$libname${shared_ext} $libname.a'
19902 dynamic_linker='OS/2 ld.exe'
19903 shlibpath_var=LIBPATH
19906 osf3* | osf4* | osf5*)
19907 version_type=osf
19908 need_lib_prefix=no
19909 need_version=no
19910 soname_spec='${libname}${release}${shared_ext}$major'
19911 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19912 shlibpath_var=LD_LIBRARY_PATH
19913 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
19914 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
19917 solaris*)
19918 version_type=linux
19919 need_lib_prefix=no
19920 need_version=no
19921 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19922 soname_spec='${libname}${release}${shared_ext}$major'
19923 shlibpath_var=LD_LIBRARY_PATH
19924 shlibpath_overrides_runpath=yes
19925 hardcode_into_libs=yes
19926 # ldd complains unless libraries are executable
19927 postinstall_cmds='chmod +x $lib'
19930 sunos4*)
19931 version_type=sunos
19932 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19933 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
19934 shlibpath_var=LD_LIBRARY_PATH
19935 shlibpath_overrides_runpath=yes
19936 if test "$with_gnu_ld" = yes; then
19937 need_lib_prefix=no
19939 need_version=yes
19942 sysv4 | sysv4.3*)
19943 version_type=linux
19944 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19945 soname_spec='${libname}${release}${shared_ext}$major'
19946 shlibpath_var=LD_LIBRARY_PATH
19947 case $host_vendor in
19948 sni)
19949 shlibpath_overrides_runpath=no
19950 need_lib_prefix=no
19951 export_dynamic_flag_spec='${wl}-Blargedynsym'
19952 runpath_var=LD_RUN_PATH
19954 siemens)
19955 need_lib_prefix=no
19957 motorola)
19958 need_lib_prefix=no
19959 need_version=no
19960 shlibpath_overrides_runpath=no
19961 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
19963 esac
19966 sysv4*MP*)
19967 if test -d /usr/nec ;then
19968 version_type=linux
19969 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
19970 soname_spec='$libname${shared_ext}.$major'
19971 shlibpath_var=LD_LIBRARY_PATH
19975 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
19976 version_type=freebsd-elf
19977 need_lib_prefix=no
19978 need_version=no
19979 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19980 soname_spec='${libname}${release}${shared_ext}$major'
19981 shlibpath_var=LD_LIBRARY_PATH
19982 hardcode_into_libs=yes
19983 if test "$with_gnu_ld" = yes; then
19984 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
19985 shlibpath_overrides_runpath=no
19986 else
19987 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
19988 shlibpath_overrides_runpath=yes
19989 case $host_os in
19990 sco3.2v5*)
19991 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
19993 esac
19995 sys_lib_dlsearch_path_spec='/usr/lib'
19998 uts4*)
19999 version_type=linux
20000 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20001 soname_spec='${libname}${release}${shared_ext}$major'
20002 shlibpath_var=LD_LIBRARY_PATH
20006 dynamic_linker=no
20008 esac
20009 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
20010 echo "${ECHO_T}$dynamic_linker" >&6; }
20011 test "$dynamic_linker" = no && can_build_shared=no
20013 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
20014 if test "$GCC" = yes; then
20015 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
20018 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
20019 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
20020 hardcode_action_GCJ=
20021 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
20022 test -n "$runpath_var_GCJ" || \
20023 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
20025 # We can hardcode non-existant directories.
20026 if test "$hardcode_direct_GCJ" != no &&
20027 # If the only mechanism to avoid hardcoding is shlibpath_var, we
20028 # have to relink, otherwise we might link with an installed library
20029 # when we should be linking with a yet-to-be-installed one
20030 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
20031 test "$hardcode_minus_L_GCJ" != no; then
20032 # Linking always hardcodes the temporary library directory.
20033 hardcode_action_GCJ=relink
20034 else
20035 # We can link without hardcoding, and we can hardcode nonexisting dirs.
20036 hardcode_action_GCJ=immediate
20038 else
20039 # We cannot hardcode anything, or else we can only hardcode existing
20040 # directories.
20041 hardcode_action_GCJ=unsupported
20043 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
20044 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
20046 if test "$hardcode_action_GCJ" = relink; then
20047 # Fast installation is not supported
20048 enable_fast_install=no
20049 elif test "$shlibpath_overrides_runpath" = yes ||
20050 test "$enable_shared" = no; then
20051 # Fast installation is not necessary
20052 enable_fast_install=needless
20056 # The else clause should only fire when bootstrapping the
20057 # libtool distribution, otherwise you forgot to ship ltmain.sh
20058 # with your package, and you will get complaints that there are
20059 # no rules to generate ltmain.sh.
20060 if test -f "$ltmain"; then
20061 # See if we are running on zsh, and set the options which allow our commands through
20062 # without removal of \ escapes.
20063 if test -n "${ZSH_VERSION+set}" ; then
20064 setopt NO_GLOB_SUBST
20066 # Now quote all the things that may contain metacharacters while being
20067 # careful not to overquote the AC_SUBSTed values. We take copies of the
20068 # variables and quote the copies for generation of the libtool script.
20069 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
20070 SED SHELL STRIP \
20071 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20072 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20073 deplibs_check_method reload_flag reload_cmds need_locks \
20074 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20075 lt_cv_sys_global_symbol_to_c_name_address \
20076 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20077 old_postinstall_cmds old_postuninstall_cmds \
20078 compiler_GCJ \
20079 CC_GCJ \
20080 LD_GCJ \
20081 lt_prog_compiler_wl_GCJ \
20082 lt_prog_compiler_pic_GCJ \
20083 lt_prog_compiler_static_GCJ \
20084 lt_prog_compiler_no_builtin_flag_GCJ \
20085 export_dynamic_flag_spec_GCJ \
20086 thread_safe_flag_spec_GCJ \
20087 whole_archive_flag_spec_GCJ \
20088 enable_shared_with_static_runtimes_GCJ \
20089 old_archive_cmds_GCJ \
20090 old_archive_from_new_cmds_GCJ \
20091 predep_objects_GCJ \
20092 postdep_objects_GCJ \
20093 predeps_GCJ \
20094 postdeps_GCJ \
20095 compiler_lib_search_path_GCJ \
20096 archive_cmds_GCJ \
20097 archive_expsym_cmds_GCJ \
20098 postinstall_cmds_GCJ \
20099 postuninstall_cmds_GCJ \
20100 old_archive_from_expsyms_cmds_GCJ \
20101 allow_undefined_flag_GCJ \
20102 no_undefined_flag_GCJ \
20103 export_symbols_cmds_GCJ \
20104 hardcode_libdir_flag_spec_GCJ \
20105 hardcode_libdir_flag_spec_ld_GCJ \
20106 hardcode_libdir_separator_GCJ \
20107 hardcode_automatic_GCJ \
20108 module_cmds_GCJ \
20109 module_expsym_cmds_GCJ \
20110 lt_cv_prog_compiler_c_o_GCJ \
20111 exclude_expsyms_GCJ \
20112 include_expsyms_GCJ; do
20114 case $var in
20115 old_archive_cmds_GCJ | \
20116 old_archive_from_new_cmds_GCJ | \
20117 archive_cmds_GCJ | \
20118 archive_expsym_cmds_GCJ | \
20119 module_cmds_GCJ | \
20120 module_expsym_cmds_GCJ | \
20121 old_archive_from_expsyms_cmds_GCJ | \
20122 export_symbols_cmds_GCJ | \
20123 extract_expsyms_cmds | reload_cmds | finish_cmds | \
20124 postinstall_cmds | postuninstall_cmds | \
20125 old_postinstall_cmds | old_postuninstall_cmds | \
20126 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20127 # Double-quote double-evaled strings.
20128 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
20131 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20133 esac
20134 done
20136 case $lt_echo in
20137 *'\$0 --fallback-echo"')
20138 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20140 esac
20142 cfgfile="$ofile"
20144 cat <<__EOF__ >> "$cfgfile"
20145 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
20147 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20149 # Shell to use when invoking shell scripts.
20150 SHELL=$lt_SHELL
20152 # Whether or not to build shared libraries.
20153 build_libtool_libs=$enable_shared
20155 # Whether or not to build static libraries.
20156 build_old_libs=$enable_static
20158 # Whether or not to add -lc for building shared libraries.
20159 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
20161 # Whether or not to disallow shared libs when runtime libs are static
20162 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
20164 # Whether or not to optimize for fast installation.
20165 fast_install=$enable_fast_install
20167 # The host system.
20168 host_alias=$host_alias
20169 host=$host
20170 host_os=$host_os
20172 # The build system.
20173 build_alias=$build_alias
20174 build=$build
20175 build_os=$build_os
20177 # An echo program that does not interpret backslashes.
20178 echo=$lt_echo
20180 # The archiver.
20181 AR=$lt_AR
20182 AR_FLAGS=$lt_AR_FLAGS
20184 # A C compiler.
20185 LTCC=$lt_LTCC
20187 # LTCC compiler flags.
20188 LTCFLAGS=$lt_LTCFLAGS
20190 # A language-specific compiler.
20191 CC=$lt_compiler_GCJ
20193 # Is the compiler the GNU C compiler?
20194 with_gcc=$GCC_GCJ
20196 # An ERE matcher.
20197 EGREP=$lt_EGREP
20199 # The linker used to build libraries.
20200 LD=$lt_LD_GCJ
20202 # Whether we need hard or soft links.
20203 LN_S=$lt_LN_S
20205 # A BSD-compatible nm program.
20206 NM=$lt_NM
20208 # A symbol stripping program
20209 STRIP=$lt_STRIP
20211 # Used to examine libraries when file_magic_cmd begins "file"
20212 MAGIC_CMD=$MAGIC_CMD
20214 # Used on cygwin: DLL creation program.
20215 DLLTOOL="$DLLTOOL"
20217 # Used on cygwin: object dumper.
20218 OBJDUMP="$OBJDUMP"
20220 # Used on cygwin: assembler.
20221 AS="$AS"
20223 # The name of the directory that contains temporary libtool files.
20224 objdir=$objdir
20226 # How to create reloadable object files.
20227 reload_flag=$lt_reload_flag
20228 reload_cmds=$lt_reload_cmds
20230 # How to pass a linker flag through the compiler.
20231 wl=$lt_lt_prog_compiler_wl_GCJ
20233 # Object file suffix (normally "o").
20234 objext="$ac_objext"
20236 # Old archive suffix (normally "a").
20237 libext="$libext"
20239 # Shared library suffix (normally ".so").
20240 shrext_cmds='$shrext_cmds'
20242 # Executable file suffix (normally "").
20243 exeext="$exeext"
20245 # Additional compiler flags for building library objects.
20246 pic_flag=$lt_lt_prog_compiler_pic_GCJ
20247 pic_mode=$pic_mode
20249 # What is the maximum length of a command?
20250 max_cmd_len=$lt_cv_sys_max_cmd_len
20252 # Does compiler simultaneously support -c and -o options?
20253 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
20255 # Must we lock files when doing compilation?
20256 need_locks=$lt_need_locks
20258 # Do we need the lib prefix for modules?
20259 need_lib_prefix=$need_lib_prefix
20261 # Do we need a version for libraries?
20262 need_version=$need_version
20264 # Whether dlopen is supported.
20265 dlopen_support=$enable_dlopen
20267 # Whether dlopen of programs is supported.
20268 dlopen_self=$enable_dlopen_self
20270 # Whether dlopen of statically linked programs is supported.
20271 dlopen_self_static=$enable_dlopen_self_static
20273 # Compiler flag to prevent dynamic linking.
20274 link_static_flag=$lt_lt_prog_compiler_static_GCJ
20276 # Compiler flag to turn off builtin functions.
20277 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
20279 # Compiler flag to allow reflexive dlopens.
20280 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
20282 # Compiler flag to generate shared objects directly from archives.
20283 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
20285 # Compiler flag to generate thread-safe objects.
20286 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
20288 # Library versioning type.
20289 version_type=$version_type
20291 # Format of library name prefix.
20292 libname_spec=$lt_libname_spec
20294 # List of archive names. First name is the real one, the rest are links.
20295 # The last name is the one that the linker finds with -lNAME.
20296 library_names_spec=$lt_library_names_spec
20298 # The coded name of the library, if different from the real name.
20299 soname_spec=$lt_soname_spec
20301 # Commands used to build and install an old-style archive.
20302 RANLIB=$lt_RANLIB
20303 old_archive_cmds=$lt_old_archive_cmds_GCJ
20304 old_postinstall_cmds=$lt_old_postinstall_cmds
20305 old_postuninstall_cmds=$lt_old_postuninstall_cmds
20307 # Create an old-style archive from a shared archive.
20308 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
20310 # Create a temporary old-style archive to link instead of a shared archive.
20311 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
20313 # Commands used to build and install a shared archive.
20314 archive_cmds=$lt_archive_cmds_GCJ
20315 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
20316 postinstall_cmds=$lt_postinstall_cmds
20317 postuninstall_cmds=$lt_postuninstall_cmds
20319 # Commands used to build a loadable module (assumed same as above if empty)
20320 module_cmds=$lt_module_cmds_GCJ
20321 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
20323 # Commands to strip libraries.
20324 old_striplib=$lt_old_striplib
20325 striplib=$lt_striplib
20327 # Dependencies to place before the objects being linked to create a
20328 # shared library.
20329 predep_objects=$lt_predep_objects_GCJ
20331 # Dependencies to place after the objects being linked to create a
20332 # shared library.
20333 postdep_objects=$lt_postdep_objects_GCJ
20335 # Dependencies to place before the objects being linked to create a
20336 # shared library.
20337 predeps=$lt_predeps_GCJ
20339 # Dependencies to place after the objects being linked to create a
20340 # shared library.
20341 postdeps=$lt_postdeps_GCJ
20343 # The library search path used internally by the compiler when linking
20344 # a shared library.
20345 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
20347 # Method to check whether dependent libraries are shared objects.
20348 deplibs_check_method=$lt_deplibs_check_method
20350 # Command to use when deplibs_check_method == file_magic.
20351 file_magic_cmd=$lt_file_magic_cmd
20353 # Flag that allows shared libraries with undefined symbols to be built.
20354 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
20356 # Flag that forces no undefined symbols.
20357 no_undefined_flag=$lt_no_undefined_flag_GCJ
20359 # Commands used to finish a libtool library installation in a directory.
20360 finish_cmds=$lt_finish_cmds
20362 # Same as above, but a single script fragment to be evaled but not shown.
20363 finish_eval=$lt_finish_eval
20365 # Take the output of nm and produce a listing of raw symbols and C names.
20366 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20368 # Transform the output of nm in a proper C declaration
20369 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20371 # Transform the output of nm in a C name address pair
20372 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20374 # This is the shared library runtime path variable.
20375 runpath_var=$runpath_var
20377 # This is the shared library path variable.
20378 shlibpath_var=$shlibpath_var
20380 # Is shlibpath searched before the hard-coded library search path?
20381 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20383 # How to hardcode a shared library path into an executable.
20384 hardcode_action=$hardcode_action_GCJ
20386 # Whether we should hardcode library paths into libraries.
20387 hardcode_into_libs=$hardcode_into_libs
20389 # Flag to hardcode \$libdir into a binary during linking.
20390 # This must work even if \$libdir does not exist.
20391 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
20393 # If ld is used when linking, flag to hardcode \$libdir into
20394 # a binary during linking. This must work even if \$libdir does
20395 # not exist.
20396 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
20398 # Whether we need a single -rpath flag with a separated argument.
20399 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
20401 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20402 # resulting binary.
20403 hardcode_direct=$hardcode_direct_GCJ
20405 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20406 # resulting binary.
20407 hardcode_minus_L=$hardcode_minus_L_GCJ
20409 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20410 # the resulting binary.
20411 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
20413 # Set to yes if building a shared library automatically hardcodes DIR into the library
20414 # and all subsequent libraries and executables linked against it.
20415 hardcode_automatic=$hardcode_automatic_GCJ
20417 # Variables whose values should be saved in libtool wrapper scripts and
20418 # restored at relink time.
20419 variables_saved_for_relink="$variables_saved_for_relink"
20421 # Whether libtool must link a program against all its dependency libraries.
20422 link_all_deplibs=$link_all_deplibs_GCJ
20424 # Compile-time system search path for libraries
20425 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20427 # Run-time system search path for libraries
20428 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20430 # Fix the shell variable \$srcfile for the compiler.
20431 fix_srcfile_path="$fix_srcfile_path_GCJ"
20433 # Set to yes if exported symbols are required.
20434 always_export_symbols=$always_export_symbols_GCJ
20436 # The commands to list exported symbols.
20437 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
20439 # The commands to extract the exported symbol list from a shared archive.
20440 extract_expsyms_cmds=$lt_extract_expsyms_cmds
20442 # Symbols that should not be listed in the preloaded symbols.
20443 exclude_expsyms=$lt_exclude_expsyms_GCJ
20445 # Symbols that must always be exported.
20446 include_expsyms=$lt_include_expsyms_GCJ
20448 # ### END LIBTOOL TAG CONFIG: $tagname
20450 __EOF__
20453 else
20454 # If there is no Makefile yet, we rely on a make rule to execute
20455 # `config.status --recheck' to rerun these tests and create the
20456 # libtool script then.
20457 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
20458 if test -f "$ltmain_in"; then
20459 test -f Makefile && make "$ltmain"
20464 ac_ext=c
20465 ac_cpp='$CPP $CPPFLAGS'
20466 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20467 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20468 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20470 CC="$lt_save_CC"
20472 else
20473 tagname=""
20480 # Source file extension for RC test sources.
20481 ac_ext=rc
20483 # Object file extension for compiled RC test sources.
20484 objext=o
20485 objext_RC=$objext
20487 # Code to be used in simple compile tests
20488 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
20490 # Code to be used in simple link tests
20491 lt_simple_link_test_code="$lt_simple_compile_test_code"
20493 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
20495 # If no C compiler was specified, use CC.
20496 LTCC=${LTCC-"$CC"}
20498 # If no C compiler flags were specified, use CFLAGS.
20499 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
20501 # Allow CC to be a program name with arguments.
20502 compiler=$CC
20505 # save warnings/boilerplate of simple test code
20506 ac_outfile=conftest.$ac_objext
20507 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
20508 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
20509 _lt_compiler_boilerplate=`cat conftest.err`
20510 $rm conftest*
20512 ac_outfile=conftest.$ac_objext
20513 printf "$lt_simple_link_test_code" >conftest.$ac_ext
20514 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
20515 _lt_linker_boilerplate=`cat conftest.err`
20516 $rm conftest*
20519 # Allow CC to be a program name with arguments.
20520 lt_save_CC="$CC"
20521 CC=${RC-"windres"}
20522 compiler=$CC
20523 compiler_RC=$CC
20524 for cc_temp in $compiler""; do
20525 case $cc_temp in
20526 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
20527 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
20528 \-*) ;;
20529 *) break;;
20530 esac
20531 done
20532 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
20534 lt_cv_prog_compiler_c_o_RC=yes
20536 # The else clause should only fire when bootstrapping the
20537 # libtool distribution, otherwise you forgot to ship ltmain.sh
20538 # with your package, and you will get complaints that there are
20539 # no rules to generate ltmain.sh.
20540 if test -f "$ltmain"; then
20541 # See if we are running on zsh, and set the options which allow our commands through
20542 # without removal of \ escapes.
20543 if test -n "${ZSH_VERSION+set}" ; then
20544 setopt NO_GLOB_SUBST
20546 # Now quote all the things that may contain metacharacters while being
20547 # careful not to overquote the AC_SUBSTed values. We take copies of the
20548 # variables and quote the copies for generation of the libtool script.
20549 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
20550 SED SHELL STRIP \
20551 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20552 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20553 deplibs_check_method reload_flag reload_cmds need_locks \
20554 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20555 lt_cv_sys_global_symbol_to_c_name_address \
20556 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20557 old_postinstall_cmds old_postuninstall_cmds \
20558 compiler_RC \
20559 CC_RC \
20560 LD_RC \
20561 lt_prog_compiler_wl_RC \
20562 lt_prog_compiler_pic_RC \
20563 lt_prog_compiler_static_RC \
20564 lt_prog_compiler_no_builtin_flag_RC \
20565 export_dynamic_flag_spec_RC \
20566 thread_safe_flag_spec_RC \
20567 whole_archive_flag_spec_RC \
20568 enable_shared_with_static_runtimes_RC \
20569 old_archive_cmds_RC \
20570 old_archive_from_new_cmds_RC \
20571 predep_objects_RC \
20572 postdep_objects_RC \
20573 predeps_RC \
20574 postdeps_RC \
20575 compiler_lib_search_path_RC \
20576 archive_cmds_RC \
20577 archive_expsym_cmds_RC \
20578 postinstall_cmds_RC \
20579 postuninstall_cmds_RC \
20580 old_archive_from_expsyms_cmds_RC \
20581 allow_undefined_flag_RC \
20582 no_undefined_flag_RC \
20583 export_symbols_cmds_RC \
20584 hardcode_libdir_flag_spec_RC \
20585 hardcode_libdir_flag_spec_ld_RC \
20586 hardcode_libdir_separator_RC \
20587 hardcode_automatic_RC \
20588 module_cmds_RC \
20589 module_expsym_cmds_RC \
20590 lt_cv_prog_compiler_c_o_RC \
20591 exclude_expsyms_RC \
20592 include_expsyms_RC; do
20594 case $var in
20595 old_archive_cmds_RC | \
20596 old_archive_from_new_cmds_RC | \
20597 archive_cmds_RC | \
20598 archive_expsym_cmds_RC | \
20599 module_cmds_RC | \
20600 module_expsym_cmds_RC | \
20601 old_archive_from_expsyms_cmds_RC | \
20602 export_symbols_cmds_RC | \
20603 extract_expsyms_cmds | reload_cmds | finish_cmds | \
20604 postinstall_cmds | postuninstall_cmds | \
20605 old_postinstall_cmds | old_postuninstall_cmds | \
20606 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20607 # Double-quote double-evaled strings.
20608 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
20611 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20613 esac
20614 done
20616 case $lt_echo in
20617 *'\$0 --fallback-echo"')
20618 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20620 esac
20622 cfgfile="$ofile"
20624 cat <<__EOF__ >> "$cfgfile"
20625 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
20627 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20629 # Shell to use when invoking shell scripts.
20630 SHELL=$lt_SHELL
20632 # Whether or not to build shared libraries.
20633 build_libtool_libs=$enable_shared
20635 # Whether or not to build static libraries.
20636 build_old_libs=$enable_static
20638 # Whether or not to add -lc for building shared libraries.
20639 build_libtool_need_lc=$archive_cmds_need_lc_RC
20641 # Whether or not to disallow shared libs when runtime libs are static
20642 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
20644 # Whether or not to optimize for fast installation.
20645 fast_install=$enable_fast_install
20647 # The host system.
20648 host_alias=$host_alias
20649 host=$host
20650 host_os=$host_os
20652 # The build system.
20653 build_alias=$build_alias
20654 build=$build
20655 build_os=$build_os
20657 # An echo program that does not interpret backslashes.
20658 echo=$lt_echo
20660 # The archiver.
20661 AR=$lt_AR
20662 AR_FLAGS=$lt_AR_FLAGS
20664 # A C compiler.
20665 LTCC=$lt_LTCC
20667 # LTCC compiler flags.
20668 LTCFLAGS=$lt_LTCFLAGS
20670 # A language-specific compiler.
20671 CC=$lt_compiler_RC
20673 # Is the compiler the GNU C compiler?
20674 with_gcc=$GCC_RC
20676 # An ERE matcher.
20677 EGREP=$lt_EGREP
20679 # The linker used to build libraries.
20680 LD=$lt_LD_RC
20682 # Whether we need hard or soft links.
20683 LN_S=$lt_LN_S
20685 # A BSD-compatible nm program.
20686 NM=$lt_NM
20688 # A symbol stripping program
20689 STRIP=$lt_STRIP
20691 # Used to examine libraries when file_magic_cmd begins "file"
20692 MAGIC_CMD=$MAGIC_CMD
20694 # Used on cygwin: DLL creation program.
20695 DLLTOOL="$DLLTOOL"
20697 # Used on cygwin: object dumper.
20698 OBJDUMP="$OBJDUMP"
20700 # Used on cygwin: assembler.
20701 AS="$AS"
20703 # The name of the directory that contains temporary libtool files.
20704 objdir=$objdir
20706 # How to create reloadable object files.
20707 reload_flag=$lt_reload_flag
20708 reload_cmds=$lt_reload_cmds
20710 # How to pass a linker flag through the compiler.
20711 wl=$lt_lt_prog_compiler_wl_RC
20713 # Object file suffix (normally "o").
20714 objext="$ac_objext"
20716 # Old archive suffix (normally "a").
20717 libext="$libext"
20719 # Shared library suffix (normally ".so").
20720 shrext_cmds='$shrext_cmds'
20722 # Executable file suffix (normally "").
20723 exeext="$exeext"
20725 # Additional compiler flags for building library objects.
20726 pic_flag=$lt_lt_prog_compiler_pic_RC
20727 pic_mode=$pic_mode
20729 # What is the maximum length of a command?
20730 max_cmd_len=$lt_cv_sys_max_cmd_len
20732 # Does compiler simultaneously support -c and -o options?
20733 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
20735 # Must we lock files when doing compilation?
20736 need_locks=$lt_need_locks
20738 # Do we need the lib prefix for modules?
20739 need_lib_prefix=$need_lib_prefix
20741 # Do we need a version for libraries?
20742 need_version=$need_version
20744 # Whether dlopen is supported.
20745 dlopen_support=$enable_dlopen
20747 # Whether dlopen of programs is supported.
20748 dlopen_self=$enable_dlopen_self
20750 # Whether dlopen of statically linked programs is supported.
20751 dlopen_self_static=$enable_dlopen_self_static
20753 # Compiler flag to prevent dynamic linking.
20754 link_static_flag=$lt_lt_prog_compiler_static_RC
20756 # Compiler flag to turn off builtin functions.
20757 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
20759 # Compiler flag to allow reflexive dlopens.
20760 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
20762 # Compiler flag to generate shared objects directly from archives.
20763 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
20765 # Compiler flag to generate thread-safe objects.
20766 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
20768 # Library versioning type.
20769 version_type=$version_type
20771 # Format of library name prefix.
20772 libname_spec=$lt_libname_spec
20774 # List of archive names. First name is the real one, the rest are links.
20775 # The last name is the one that the linker finds with -lNAME.
20776 library_names_spec=$lt_library_names_spec
20778 # The coded name of the library, if different from the real name.
20779 soname_spec=$lt_soname_spec
20781 # Commands used to build and install an old-style archive.
20782 RANLIB=$lt_RANLIB
20783 old_archive_cmds=$lt_old_archive_cmds_RC
20784 old_postinstall_cmds=$lt_old_postinstall_cmds
20785 old_postuninstall_cmds=$lt_old_postuninstall_cmds
20787 # Create an old-style archive from a shared archive.
20788 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
20790 # Create a temporary old-style archive to link instead of a shared archive.
20791 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
20793 # Commands used to build and install a shared archive.
20794 archive_cmds=$lt_archive_cmds_RC
20795 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
20796 postinstall_cmds=$lt_postinstall_cmds
20797 postuninstall_cmds=$lt_postuninstall_cmds
20799 # Commands used to build a loadable module (assumed same as above if empty)
20800 module_cmds=$lt_module_cmds_RC
20801 module_expsym_cmds=$lt_module_expsym_cmds_RC
20803 # Commands to strip libraries.
20804 old_striplib=$lt_old_striplib
20805 striplib=$lt_striplib
20807 # Dependencies to place before the objects being linked to create a
20808 # shared library.
20809 predep_objects=$lt_predep_objects_RC
20811 # Dependencies to place after the objects being linked to create a
20812 # shared library.
20813 postdep_objects=$lt_postdep_objects_RC
20815 # Dependencies to place before the objects being linked to create a
20816 # shared library.
20817 predeps=$lt_predeps_RC
20819 # Dependencies to place after the objects being linked to create a
20820 # shared library.
20821 postdeps=$lt_postdeps_RC
20823 # The library search path used internally by the compiler when linking
20824 # a shared library.
20825 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
20827 # Method to check whether dependent libraries are shared objects.
20828 deplibs_check_method=$lt_deplibs_check_method
20830 # Command to use when deplibs_check_method == file_magic.
20831 file_magic_cmd=$lt_file_magic_cmd
20833 # Flag that allows shared libraries with undefined symbols to be built.
20834 allow_undefined_flag=$lt_allow_undefined_flag_RC
20836 # Flag that forces no undefined symbols.
20837 no_undefined_flag=$lt_no_undefined_flag_RC
20839 # Commands used to finish a libtool library installation in a directory.
20840 finish_cmds=$lt_finish_cmds
20842 # Same as above, but a single script fragment to be evaled but not shown.
20843 finish_eval=$lt_finish_eval
20845 # Take the output of nm and produce a listing of raw symbols and C names.
20846 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20848 # Transform the output of nm in a proper C declaration
20849 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20851 # Transform the output of nm in a C name address pair
20852 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20854 # This is the shared library runtime path variable.
20855 runpath_var=$runpath_var
20857 # This is the shared library path variable.
20858 shlibpath_var=$shlibpath_var
20860 # Is shlibpath searched before the hard-coded library search path?
20861 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20863 # How to hardcode a shared library path into an executable.
20864 hardcode_action=$hardcode_action_RC
20866 # Whether we should hardcode library paths into libraries.
20867 hardcode_into_libs=$hardcode_into_libs
20869 # Flag to hardcode \$libdir into a binary during linking.
20870 # This must work even if \$libdir does not exist.
20871 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
20873 # If ld is used when linking, flag to hardcode \$libdir into
20874 # a binary during linking. This must work even if \$libdir does
20875 # not exist.
20876 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
20878 # Whether we need a single -rpath flag with a separated argument.
20879 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
20881 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20882 # resulting binary.
20883 hardcode_direct=$hardcode_direct_RC
20885 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20886 # resulting binary.
20887 hardcode_minus_L=$hardcode_minus_L_RC
20889 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20890 # the resulting binary.
20891 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
20893 # Set to yes if building a shared library automatically hardcodes DIR into the library
20894 # and all subsequent libraries and executables linked against it.
20895 hardcode_automatic=$hardcode_automatic_RC
20897 # Variables whose values should be saved in libtool wrapper scripts and
20898 # restored at relink time.
20899 variables_saved_for_relink="$variables_saved_for_relink"
20901 # Whether libtool must link a program against all its dependency libraries.
20902 link_all_deplibs=$link_all_deplibs_RC
20904 # Compile-time system search path for libraries
20905 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20907 # Run-time system search path for libraries
20908 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20910 # Fix the shell variable \$srcfile for the compiler.
20911 fix_srcfile_path="$fix_srcfile_path_RC"
20913 # Set to yes if exported symbols are required.
20914 always_export_symbols=$always_export_symbols_RC
20916 # The commands to list exported symbols.
20917 export_symbols_cmds=$lt_export_symbols_cmds_RC
20919 # The commands to extract the exported symbol list from a shared archive.
20920 extract_expsyms_cmds=$lt_extract_expsyms_cmds
20922 # Symbols that should not be listed in the preloaded symbols.
20923 exclude_expsyms=$lt_exclude_expsyms_RC
20925 # Symbols that must always be exported.
20926 include_expsyms=$lt_include_expsyms_RC
20928 # ### END LIBTOOL TAG CONFIG: $tagname
20930 __EOF__
20933 else
20934 # If there is no Makefile yet, we rely on a make rule to execute
20935 # `config.status --recheck' to rerun these tests and create the
20936 # libtool script then.
20937 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
20938 if test -f "$ltmain_in"; then
20939 test -f Makefile && make "$ltmain"
20944 ac_ext=c
20945 ac_cpp='$CPP $CPPFLAGS'
20946 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20947 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20948 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20950 CC="$lt_save_CC"
20955 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
20956 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
20957 { (exit 1); exit 1; }; }
20959 esac
20961 # Append the new tag name to the list of available tags.
20962 if test -n "$tagname" ; then
20963 available_tags="$available_tags $tagname"
20966 done
20967 IFS="$lt_save_ifs"
20969 # Now substitute the updated list of available tags.
20970 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
20971 mv "${ofile}T" "$ofile"
20972 chmod +x "$ofile"
20973 else
20974 rm -f "${ofile}T"
20975 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
20976 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
20977 { (exit 1); exit 1; }; }
20983 # This can be used to rebuild libtool when needed
20984 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
20986 # Always use our own libtool.
20987 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
20989 # Prevent multiple expansion
21011 ac_ext=cpp
21012 ac_cpp='$CXXCPP $CPPFLAGS'
21013 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21014 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21015 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21019 pkg_failed=no
21020 { echo "$as_me:$LINENO: checking for BARRY" >&5
21021 echo $ECHO_N "checking for BARRY... $ECHO_C" >&6; }
21023 if test -n "$PKG_CONFIG"; then
21024 if test -n "$BARRY_CFLAGS"; then
21025 pkg_cv_BARRY_CFLAGS="$BARRY_CFLAGS"
21026 else
21027 if test -n "$PKG_CONFIG" && \
21028 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libbarry-0 libusb\"") >&5
21029 ($PKG_CONFIG --exists --print-errors "libbarry-0 libusb") 2>&5
21030 ac_status=$?
21031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21032 (exit $ac_status); }; then
21033 pkg_cv_BARRY_CFLAGS=`$PKG_CONFIG --cflags "libbarry-0 libusb" 2>/dev/null`
21034 else
21035 pkg_failed=yes
21038 else
21039 pkg_failed=untried
21041 if test -n "$PKG_CONFIG"; then
21042 if test -n "$BARRY_LIBS"; then
21043 pkg_cv_BARRY_LIBS="$BARRY_LIBS"
21044 else
21045 if test -n "$PKG_CONFIG" && \
21046 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libbarry-0 libusb\"") >&5
21047 ($PKG_CONFIG --exists --print-errors "libbarry-0 libusb") 2>&5
21048 ac_status=$?
21049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21050 (exit $ac_status); }; then
21051 pkg_cv_BARRY_LIBS=`$PKG_CONFIG --libs "libbarry-0 libusb" 2>/dev/null`
21052 else
21053 pkg_failed=yes
21056 else
21057 pkg_failed=untried
21062 if test $pkg_failed = yes; then
21064 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
21065 _pkg_short_errors_supported=yes
21066 else
21067 _pkg_short_errors_supported=no
21069 if test $_pkg_short_errors_supported = yes; then
21070 BARRY_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libbarry-0 libusb"`
21071 else
21072 BARRY_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libbarry-0 libusb"`
21074 # Put the nasty error message in config.log where it belongs
21075 echo "$BARRY_PKG_ERRORS" >&5
21077 { { echo "$as_me:$LINENO: error: Package requirements (libbarry-0 libusb) were not met:
21079 $BARRY_PKG_ERRORS
21081 Consider adjusting the PKG_CONFIG_PATH environment variable if you
21082 installed software in a non-standard prefix.
21084 Alternatively, you may set the environment variables BARRY_CFLAGS
21085 and BARRY_LIBS to avoid the need to call pkg-config.
21086 See the pkg-config man page for more details.
21087 " >&5
21088 echo "$as_me: error: Package requirements (libbarry-0 libusb) were not met:
21090 $BARRY_PKG_ERRORS
21092 Consider adjusting the PKG_CONFIG_PATH environment variable if you
21093 installed software in a non-standard prefix.
21095 Alternatively, you may set the environment variables BARRY_CFLAGS
21096 and BARRY_LIBS to avoid the need to call pkg-config.
21097 See the pkg-config man page for more details.
21098 " >&2;}
21099 { (exit 1); exit 1; }; }
21100 elif test $pkg_failed = untried; then
21101 { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
21102 is in your PATH or set the PKG_CONFIG environment variable to the full
21103 path to pkg-config.
21105 Alternatively, you may set the environment variables BARRY_CFLAGS
21106 and BARRY_LIBS to avoid the need to call pkg-config.
21107 See the pkg-config man page for more details.
21109 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
21110 See \`config.log' for more details." >&5
21111 echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
21112 is in your PATH or set the PKG_CONFIG environment variable to the full
21113 path to pkg-config.
21115 Alternatively, you may set the environment variables BARRY_CFLAGS
21116 and BARRY_LIBS to avoid the need to call pkg-config.
21117 See the pkg-config man page for more details.
21119 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
21120 See \`config.log' for more details." >&2;}
21121 { (exit 1); exit 1; }; }
21122 else
21123 BARRY_CFLAGS=$pkg_cv_BARRY_CFLAGS
21124 BARRY_LIBS=$pkg_cv_BARRY_LIBS
21125 { echo "$as_me:$LINENO: result: yes" >&5
21126 echo "${ECHO_T}yes" >&6; }
21130 OPENSYNC_CONFIGDIR=$(pkg-config --variable=configdir opensync-1.0)
21131 OPENSYNC_PLUGINDIR=$(pkg-config --variable=plugindir opensync-1.0)
21132 OPENSYNC_FORMATSDIR=$(pkg-config --variable=formatsdir opensync-1.0)
21133 OPENSYNC_HEADERDIR=$(pkg-config --variable=headerdir opensync-1.0)
21135 ## This is the place where you can install the default configuration files of your plugin
21136 ## This is the dir where you plugin will be installed
21137 ## Here are format plugins installed (if any)
21138 ## Here are the headers that a user interface may need (if any)
21140 ac_config_files="$ac_config_files Makefile src/Makefile"
21142 cat >confcache <<\_ACEOF
21143 # This file is a shell script that caches the results of configure
21144 # tests run on this system so they can be shared between configure
21145 # scripts and configure runs, see configure's option --config-cache.
21146 # It is not useful on other systems. If it contains results you don't
21147 # want to keep, you may remove or edit it.
21149 # config.status only pays attention to the cache file if you give it
21150 # the --recheck option to rerun configure.
21152 # `ac_cv_env_foo' variables (set or unset) will be overridden when
21153 # loading this file, other *unset* `ac_cv_foo' will be assigned the
21154 # following values.
21156 _ACEOF
21158 # The following way of writing the cache mishandles newlines in values,
21159 # but we know of no workaround that is simple, portable, and efficient.
21160 # So, we kill variables containing newlines.
21161 # Ultrix sh set writes to stderr and can't be redirected directly,
21162 # and sets the high bit in the cache file unless we assign to the vars.
21164 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
21165 eval ac_val=\$$ac_var
21166 case $ac_val in #(
21167 *${as_nl}*)
21168 case $ac_var in #(
21169 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
21170 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
21171 esac
21172 case $ac_var in #(
21173 _ | IFS | as_nl) ;; #(
21174 *) $as_unset $ac_var ;;
21175 esac ;;
21176 esac
21177 done
21179 (set) 2>&1 |
21180 case $as_nl`(ac_space=' '; set) 2>&1` in #(
21181 *${as_nl}ac_space=\ *)
21182 # `set' does not quote correctly, so add quotes (double-quote
21183 # substitution turns \\\\ into \\, and sed turns \\ into \).
21184 sed -n \
21185 "s/'/'\\\\''/g;
21186 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21187 ;; #(
21189 # `set' quotes correctly as required by POSIX, so do not add quotes.
21190 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
21192 esac |
21193 sort
21195 sed '
21196 /^ac_cv_env_/b end
21197 t clear
21198 :clear
21199 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21200 t end
21201 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21202 :end' >>confcache
21203 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
21204 if test -w "$cache_file"; then
21205 test "x$cache_file" != "x/dev/null" &&
21206 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
21207 echo "$as_me: updating cache $cache_file" >&6;}
21208 cat confcache >$cache_file
21209 else
21210 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
21211 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
21214 rm -f confcache
21216 test "x$prefix" = xNONE && prefix=$ac_default_prefix
21217 # Let make expand exec_prefix.
21218 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21220 DEFS=-DHAVE_CONFIG_H
21222 ac_libobjs=
21223 ac_ltlibobjs=
21224 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21225 # 1. Remove the extension, and $U if already installed.
21226 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
21227 ac_i=`echo "$ac_i" | sed "$ac_script"`
21228 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
21229 # will be set to the directory where LIBOBJS objects are built.
21230 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
21231 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
21232 done
21233 LIBOBJS=$ac_libobjs
21235 LTLIBOBJS=$ac_ltlibobjs
21238 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
21239 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
21240 Usually this means the macro was only invoked conditionally." >&5
21241 echo "$as_me: error: conditional \"AMDEP\" was never defined.
21242 Usually this means the macro was only invoked conditionally." >&2;}
21243 { (exit 1); exit 1; }; }
21245 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
21246 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
21247 Usually this means the macro was only invoked conditionally." >&5
21248 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
21249 Usually this means the macro was only invoked conditionally." >&2;}
21250 { (exit 1); exit 1; }; }
21252 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
21253 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
21254 Usually this means the macro was only invoked conditionally." >&5
21255 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
21256 Usually this means the macro was only invoked conditionally." >&2;}
21257 { (exit 1); exit 1; }; }
21259 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
21260 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
21261 Usually this means the macro was only invoked conditionally." >&5
21262 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
21263 Usually this means the macro was only invoked conditionally." >&2;}
21264 { (exit 1); exit 1; }; }
21266 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
21267 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
21268 Usually this means the macro was only invoked conditionally." >&5
21269 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
21270 Usually this means the macro was only invoked conditionally." >&2;}
21271 { (exit 1); exit 1; }; }
21274 : ${CONFIG_STATUS=./config.status}
21275 ac_clean_files_save=$ac_clean_files
21276 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21277 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21278 echo "$as_me: creating $CONFIG_STATUS" >&6;}
21279 cat >$CONFIG_STATUS <<_ACEOF
21280 #! $SHELL
21281 # Generated by $as_me.
21282 # Run this file to recreate the current configuration.
21283 # Compiler output produced by configure, useful for debugging
21284 # configure, is in config.log if it exists.
21286 debug=false
21287 ac_cs_recheck=false
21288 ac_cs_silent=false
21289 SHELL=\${CONFIG_SHELL-$SHELL}
21290 _ACEOF
21292 cat >>$CONFIG_STATUS <<\_ACEOF
21293 ## --------------------- ##
21294 ## M4sh Initialization. ##
21295 ## --------------------- ##
21297 # Be more Bourne compatible
21298 DUALCASE=1; export DUALCASE # for MKS sh
21299 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21300 emulate sh
21301 NULLCMD=:
21302 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21303 # is contrary to our usage. Disable this feature.
21304 alias -g '${1+"$@"}'='"$@"'
21305 setopt NO_GLOB_SUBST
21306 else
21307 case `(set -o) 2>/dev/null` in
21308 *posix*) set -o posix ;;
21309 esac
21316 # PATH needs CR
21317 # Avoid depending upon Character Ranges.
21318 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21319 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21320 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21321 as_cr_digits='0123456789'
21322 as_cr_alnum=$as_cr_Letters$as_cr_digits
21324 # The user is always right.
21325 if test "${PATH_SEPARATOR+set}" != set; then
21326 echo "#! /bin/sh" >conf$$.sh
21327 echo "exit 0" >>conf$$.sh
21328 chmod +x conf$$.sh
21329 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21330 PATH_SEPARATOR=';'
21331 else
21332 PATH_SEPARATOR=:
21334 rm -f conf$$.sh
21337 # Support unset when possible.
21338 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
21339 as_unset=unset
21340 else
21341 as_unset=false
21345 # IFS
21346 # We need space, tab and new line, in precisely that order. Quoting is
21347 # there to prevent editors from complaining about space-tab.
21348 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
21349 # splitting by setting IFS to empty value.)
21350 as_nl='
21352 IFS=" "" $as_nl"
21354 # Find who we are. Look in the path if we contain no directory separator.
21355 case $0 in
21356 *[\\/]* ) as_myself=$0 ;;
21357 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21358 for as_dir in $PATH
21360 IFS=$as_save_IFS
21361 test -z "$as_dir" && as_dir=.
21362 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21363 done
21364 IFS=$as_save_IFS
21367 esac
21368 # We did not find ourselves, most probably we were run as `sh COMMAND'
21369 # in which case we are not to be found in the path.
21370 if test "x$as_myself" = x; then
21371 as_myself=$0
21373 if test ! -f "$as_myself"; then
21374 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
21375 { (exit 1); exit 1; }
21378 # Work around bugs in pre-3.0 UWIN ksh.
21379 for as_var in ENV MAIL MAILPATH
21380 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21381 done
21382 PS1='$ '
21383 PS2='> '
21384 PS4='+ '
21386 # NLS nuisances.
21387 for as_var in \
21388 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
21389 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
21390 LC_TELEPHONE LC_TIME
21392 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
21393 eval $as_var=C; export $as_var
21394 else
21395 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21397 done
21399 # Required to use basename.
21400 if expr a : '\(a\)' >/dev/null 2>&1 &&
21401 test "X`expr 00001 : '.*\(...\)'`" = X001; then
21402 as_expr=expr
21403 else
21404 as_expr=false
21407 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
21408 as_basename=basename
21409 else
21410 as_basename=false
21414 # Name of the executable.
21415 as_me=`$as_basename -- "$0" ||
21416 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21417 X"$0" : 'X\(//\)$' \| \
21418 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
21419 echo X/"$0" |
21420 sed '/^.*\/\([^/][^/]*\)\/*$/{
21421 s//\1/
21424 /^X\/\(\/\/\)$/{
21425 s//\1/
21428 /^X\/\(\/\).*/{
21429 s//\1/
21432 s/.*/./; q'`
21434 # CDPATH.
21435 $as_unset CDPATH
21439 as_lineno_1=$LINENO
21440 as_lineno_2=$LINENO
21441 test "x$as_lineno_1" != "x$as_lineno_2" &&
21442 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
21444 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21445 # uniformly replaced by the line number. The first 'sed' inserts a
21446 # line-number line after each line using $LINENO; the second 'sed'
21447 # does the real work. The second script uses 'N' to pair each
21448 # line-number line with the line containing $LINENO, and appends
21449 # trailing '-' during substitution so that $LINENO is not a special
21450 # case at line end.
21451 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
21452 # scripts with optimization help from Paolo Bonzini. Blame Lee
21453 # E. McMahon (1931-1989) for sed's syntax. :-)
21454 sed -n '
21456 /[$]LINENO/=
21457 ' <$as_myself |
21458 sed '
21459 s/[$]LINENO.*/&-/
21460 t lineno
21462 :lineno
21464 :loop
21465 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
21466 t loop
21467 s/-\n.*//
21468 ' >$as_me.lineno &&
21469 chmod +x "$as_me.lineno" ||
21470 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
21471 { (exit 1); exit 1; }; }
21473 # Don't try to exec as it changes $[0], causing all sort of problems
21474 # (the dirname of $[0] is not the place where we might find the
21475 # original and so on. Autoconf is especially sensitive to this).
21476 . "./$as_me.lineno"
21477 # Exit status is that of the last command.
21478 exit
21482 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
21483 as_dirname=dirname
21484 else
21485 as_dirname=false
21488 ECHO_C= ECHO_N= ECHO_T=
21489 case `echo -n x` in
21490 -n*)
21491 case `echo 'x\c'` in
21492 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
21493 *) ECHO_C='\c';;
21494 esac;;
21496 ECHO_N='-n';;
21497 esac
21499 if expr a : '\(a\)' >/dev/null 2>&1 &&
21500 test "X`expr 00001 : '.*\(...\)'`" = X001; then
21501 as_expr=expr
21502 else
21503 as_expr=false
21506 rm -f conf$$ conf$$.exe conf$$.file
21507 if test -d conf$$.dir; then
21508 rm -f conf$$.dir/conf$$.file
21509 else
21510 rm -f conf$$.dir
21511 mkdir conf$$.dir
21513 echo >conf$$.file
21514 if ln -s conf$$.file conf$$ 2>/dev/null; then
21515 as_ln_s='ln -s'
21516 # ... but there are two gotchas:
21517 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
21518 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
21519 # In both cases, we have to default to `cp -p'.
21520 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
21521 as_ln_s='cp -p'
21522 elif ln conf$$.file conf$$ 2>/dev/null; then
21523 as_ln_s=ln
21524 else
21525 as_ln_s='cp -p'
21527 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
21528 rmdir conf$$.dir 2>/dev/null
21530 if mkdir -p . 2>/dev/null; then
21531 as_mkdir_p=:
21532 else
21533 test -d ./-p && rmdir ./-p
21534 as_mkdir_p=false
21537 if test -x / >/dev/null 2>&1; then
21538 as_test_x='test -x'
21539 else
21540 if ls -dL / >/dev/null 2>&1; then
21541 as_ls_L_option=L
21542 else
21543 as_ls_L_option=
21545 as_test_x='
21546 eval sh -c '\''
21547 if test -d "$1"; then
21548 test -d "$1/.";
21549 else
21550 case $1 in
21551 -*)set "./$1";;
21552 esac;
21553 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
21554 ???[sx]*):;;*)false;;esac;fi
21555 '\'' sh
21558 as_executable_p=$as_test_x
21560 # Sed expression to map a string onto a valid CPP name.
21561 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21563 # Sed expression to map a string onto a valid variable name.
21564 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21567 exec 6>&1
21569 # Save the log message, to keep $[0] and so on meaningful, and to
21570 # report actual input values of CONFIG_FILES etc. instead of their
21571 # values after options handling.
21572 ac_log="
21573 This file was extended by Barry OpenSync Plugin $as_me 0.2, which was
21574 generated by GNU Autoconf 2.61. Invocation command line was
21576 CONFIG_FILES = $CONFIG_FILES
21577 CONFIG_HEADERS = $CONFIG_HEADERS
21578 CONFIG_LINKS = $CONFIG_LINKS
21579 CONFIG_COMMANDS = $CONFIG_COMMANDS
21580 $ $0 $@
21582 on `(hostname || uname -n) 2>/dev/null | sed 1q`
21585 _ACEOF
21587 cat >>$CONFIG_STATUS <<_ACEOF
21588 # Files that config.status was made for.
21589 config_files="$ac_config_files"
21590 config_headers="$ac_config_headers"
21591 config_commands="$ac_config_commands"
21593 _ACEOF
21595 cat >>$CONFIG_STATUS <<\_ACEOF
21596 ac_cs_usage="\
21597 \`$as_me' instantiates files from templates according to the
21598 current configuration.
21600 Usage: $0 [OPTIONS] [FILE]...
21602 -h, --help print this help, then exit
21603 -V, --version print version number and configuration settings, then exit
21604 -q, --quiet do not print progress messages
21605 -d, --debug don't remove temporary files
21606 --recheck update $as_me by reconfiguring in the same conditions
21607 --file=FILE[:TEMPLATE]
21608 instantiate the configuration file FILE
21609 --header=FILE[:TEMPLATE]
21610 instantiate the configuration header FILE
21612 Configuration files:
21613 $config_files
21615 Configuration headers:
21616 $config_headers
21618 Configuration commands:
21619 $config_commands
21621 Report bugs to <bug-autoconf@gnu.org>."
21623 _ACEOF
21624 cat >>$CONFIG_STATUS <<_ACEOF
21625 ac_cs_version="\\
21626 Barry OpenSync Plugin config.status 0.2
21627 configured by $0, generated by GNU Autoconf 2.61,
21628 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
21630 Copyright (C) 2006 Free Software Foundation, Inc.
21631 This config.status script is free software; the Free Software Foundation
21632 gives unlimited permission to copy, distribute and modify it."
21634 ac_pwd='$ac_pwd'
21635 srcdir='$srcdir'
21636 INSTALL='$INSTALL'
21637 _ACEOF
21639 cat >>$CONFIG_STATUS <<\_ACEOF
21640 # If no file are specified by the user, then we need to provide default
21641 # value. By we need to know if files were specified by the user.
21642 ac_need_defaults=:
21643 while test $# != 0
21645 case $1 in
21646 --*=*)
21647 ac_option=`expr "X$1" : 'X\([^=]*\)='`
21648 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
21649 ac_shift=:
21652 ac_option=$1
21653 ac_optarg=$2
21654 ac_shift=shift
21656 esac
21658 case $ac_option in
21659 # Handling of the options.
21660 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21661 ac_cs_recheck=: ;;
21662 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
21663 echo "$ac_cs_version"; exit ;;
21664 --debug | --debu | --deb | --de | --d | -d )
21665 debug=: ;;
21666 --file | --fil | --fi | --f )
21667 $ac_shift
21668 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
21669 ac_need_defaults=false;;
21670 --header | --heade | --head | --hea )
21671 $ac_shift
21672 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
21673 ac_need_defaults=false;;
21674 --he | --h)
21675 # Conflict between --help and --header
21676 { echo "$as_me: error: ambiguous option: $1
21677 Try \`$0 --help' for more information." >&2
21678 { (exit 1); exit 1; }; };;
21679 --help | --hel | -h )
21680 echo "$ac_cs_usage"; exit ;;
21681 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21682 | -silent | --silent | --silen | --sile | --sil | --si | --s)
21683 ac_cs_silent=: ;;
21685 # This is an error.
21686 -*) { echo "$as_me: error: unrecognized option: $1
21687 Try \`$0 --help' for more information." >&2
21688 { (exit 1); exit 1; }; } ;;
21690 *) ac_config_targets="$ac_config_targets $1"
21691 ac_need_defaults=false ;;
21693 esac
21694 shift
21695 done
21697 ac_configure_extra_args=
21699 if $ac_cs_silent; then
21700 exec 6>/dev/null
21701 ac_configure_extra_args="$ac_configure_extra_args --silent"
21704 _ACEOF
21705 cat >>$CONFIG_STATUS <<_ACEOF
21706 if \$ac_cs_recheck; then
21707 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
21708 CONFIG_SHELL=$SHELL
21709 export CONFIG_SHELL
21710 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21713 _ACEOF
21714 cat >>$CONFIG_STATUS <<\_ACEOF
21715 exec 5>>config.log
21717 echo
21718 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21719 ## Running $as_me. ##
21720 _ASBOX
21721 echo "$ac_log"
21722 } >&5
21724 _ACEOF
21725 cat >>$CONFIG_STATUS <<_ACEOF
21727 # INIT-COMMANDS
21729 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
21731 _ACEOF
21733 cat >>$CONFIG_STATUS <<\_ACEOF
21735 # Handling of arguments.
21736 for ac_config_target in $ac_config_targets
21738 case $ac_config_target in
21739 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
21740 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
21741 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
21742 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
21744 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
21745 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21746 { (exit 1); exit 1; }; };;
21747 esac
21748 done
21751 # If the user did not use the arguments to specify the items to instantiate,
21752 # then the envvar interface is used. Set only those that are not.
21753 # We use the long form for the default assignment because of an extremely
21754 # bizarre bug on SunOS 4.1.3.
21755 if $ac_need_defaults; then
21756 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21757 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
21758 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21761 # Have a temporary directory for convenience. Make it in the build tree
21762 # simply because there is no reason against having it here, and in addition,
21763 # creating and moving files from /tmp can sometimes cause problems.
21764 # Hook for its removal unless debugging.
21765 # Note that there is a small window in which the directory will not be cleaned:
21766 # after its creation but before its name has been assigned to `$tmp'.
21767 $debug ||
21769 tmp=
21770 trap 'exit_status=$?
21771 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
21773 trap '{ (exit 1); exit 1; }' 1 2 13 15
21775 # Create a (secure) tmp directory for tmp files.
21778 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
21779 test -n "$tmp" && test -d "$tmp"
21780 } ||
21782 tmp=./conf$$-$RANDOM
21783 (umask 077 && mkdir "$tmp")
21784 } ||
21786 echo "$me: cannot create a temporary directory in ." >&2
21787 { (exit 1); exit 1; }
21791 # Set up the sed scripts for CONFIG_FILES section.
21794 # No need to generate the scripts if there are no CONFIG_FILES.
21795 # This happens for instance when ./config.status config.h
21796 if test -n "$CONFIG_FILES"; then
21798 _ACEOF
21802 ac_delim='%!_!# '
21803 for ac_last_try in false false false false false :; do
21804 cat >conf$$subs.sed <<_ACEOF
21805 SHELL!$SHELL$ac_delim
21806 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
21807 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
21808 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
21809 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
21810 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
21811 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
21812 exec_prefix!$exec_prefix$ac_delim
21813 prefix!$prefix$ac_delim
21814 program_transform_name!$program_transform_name$ac_delim
21815 bindir!$bindir$ac_delim
21816 sbindir!$sbindir$ac_delim
21817 libexecdir!$libexecdir$ac_delim
21818 datarootdir!$datarootdir$ac_delim
21819 datadir!$datadir$ac_delim
21820 sysconfdir!$sysconfdir$ac_delim
21821 sharedstatedir!$sharedstatedir$ac_delim
21822 localstatedir!$localstatedir$ac_delim
21823 includedir!$includedir$ac_delim
21824 oldincludedir!$oldincludedir$ac_delim
21825 docdir!$docdir$ac_delim
21826 infodir!$infodir$ac_delim
21827 htmldir!$htmldir$ac_delim
21828 dvidir!$dvidir$ac_delim
21829 pdfdir!$pdfdir$ac_delim
21830 psdir!$psdir$ac_delim
21831 libdir!$libdir$ac_delim
21832 localedir!$localedir$ac_delim
21833 mandir!$mandir$ac_delim
21834 DEFS!$DEFS$ac_delim
21835 ECHO_C!$ECHO_C$ac_delim
21836 ECHO_N!$ECHO_N$ac_delim
21837 ECHO_T!$ECHO_T$ac_delim
21838 LIBS!$LIBS$ac_delim
21839 build_alias!$build_alias$ac_delim
21840 host_alias!$host_alias$ac_delim
21841 target_alias!$target_alias$ac_delim
21842 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
21843 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
21844 INSTALL_DATA!$INSTALL_DATA$ac_delim
21845 CYGPATH_W!$CYGPATH_W$ac_delim
21846 PACKAGE!$PACKAGE$ac_delim
21847 VERSION!$VERSION$ac_delim
21848 ACLOCAL!$ACLOCAL$ac_delim
21849 AUTOCONF!$AUTOCONF$ac_delim
21850 AUTOMAKE!$AUTOMAKE$ac_delim
21851 AUTOHEADER!$AUTOHEADER$ac_delim
21852 MAKEINFO!$MAKEINFO$ac_delim
21853 install_sh!$install_sh$ac_delim
21854 STRIP!$STRIP$ac_delim
21855 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
21856 mkdir_p!$mkdir_p$ac_delim
21857 AWK!$AWK$ac_delim
21858 SET_MAKE!$SET_MAKE$ac_delim
21859 am__leading_dot!$am__leading_dot$ac_delim
21860 AMTAR!$AMTAR$ac_delim
21861 am__tar!$am__tar$ac_delim
21862 am__untar!$am__untar$ac_delim
21863 PKG_CONFIG!$PKG_CONFIG$ac_delim
21864 PACKAGE_CFLAGS!$PACKAGE_CFLAGS$ac_delim
21865 PACKAGE_LIBS!$PACKAGE_LIBS$ac_delim
21866 CC!$CC$ac_delim
21867 CFLAGS!$CFLAGS$ac_delim
21868 LDFLAGS!$LDFLAGS$ac_delim
21869 CPPFLAGS!$CPPFLAGS$ac_delim
21870 ac_ct_CC!$ac_ct_CC$ac_delim
21871 EXEEXT!$EXEEXT$ac_delim
21872 OBJEXT!$OBJEXT$ac_delim
21873 DEPDIR!$DEPDIR$ac_delim
21874 am__include!$am__include$ac_delim
21875 am__quote!$am__quote$ac_delim
21876 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
21877 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
21878 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
21879 CCDEPMODE!$CCDEPMODE$ac_delim
21880 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
21881 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
21882 CPP!$CPP$ac_delim
21883 GREP!$GREP$ac_delim
21884 EGREP!$EGREP$ac_delim
21885 CXX!$CXX$ac_delim
21886 CXXFLAGS!$CXXFLAGS$ac_delim
21887 ac_ct_CXX!$ac_ct_CXX$ac_delim
21888 CXXDEPMODE!$CXXDEPMODE$ac_delim
21889 am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
21890 am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
21891 build!$build$ac_delim
21892 build_cpu!$build_cpu$ac_delim
21893 build_vendor!$build_vendor$ac_delim
21894 build_os!$build_os$ac_delim
21895 host!$host$ac_delim
21896 host_cpu!$host_cpu$ac_delim
21897 host_vendor!$host_vendor$ac_delim
21898 host_os!$host_os$ac_delim
21899 LN_S!$LN_S$ac_delim
21900 ECHO!$ECHO$ac_delim
21901 AR!$AR$ac_delim
21902 _ACEOF
21904 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
21905 break
21906 elif $ac_last_try; then
21907 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21908 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21909 { (exit 1); exit 1; }; }
21910 else
21911 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21913 done
21915 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21916 if test -n "$ac_eof"; then
21917 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21918 ac_eof=`expr $ac_eof + 1`
21921 cat >>$CONFIG_STATUS <<_ACEOF
21922 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
21923 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21924 _ACEOF
21925 sed '
21926 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21927 s/^/s,@/; s/!/@,|#_!!_#|/
21930 s/'"$ac_delim"'$/,g/; t
21931 s/$/\\/; p
21932 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21933 ' >>$CONFIG_STATUS <conf$$subs.sed
21934 rm -f conf$$subs.sed
21935 cat >>$CONFIG_STATUS <<_ACEOF
21936 CEOF$ac_eof
21937 _ACEOF
21940 ac_delim='%!_!# '
21941 for ac_last_try in false false false false false :; do
21942 cat >conf$$subs.sed <<_ACEOF
21943 RANLIB!$RANLIB$ac_delim
21944 CXXCPP!$CXXCPP$ac_delim
21945 F77!$F77$ac_delim
21946 FFLAGS!$FFLAGS$ac_delim
21947 ac_ct_F77!$ac_ct_F77$ac_delim
21948 LIBTOOL!$LIBTOOL$ac_delim
21949 BARRY_CFLAGS!$BARRY_CFLAGS$ac_delim
21950 BARRY_LIBS!$BARRY_LIBS$ac_delim
21951 OPENSYNC_CONFIGDIR!$OPENSYNC_CONFIGDIR$ac_delim
21952 OPENSYNC_PLUGINDIR!$OPENSYNC_PLUGINDIR$ac_delim
21953 OPENSYNC_FORMATSDIR!$OPENSYNC_FORMATSDIR$ac_delim
21954 OPENSYNC_HEADERDIR!$OPENSYNC_HEADERDIR$ac_delim
21955 LIBOBJS!$LIBOBJS$ac_delim
21956 LTLIBOBJS!$LTLIBOBJS$ac_delim
21957 _ACEOF
21959 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 14; then
21960 break
21961 elif $ac_last_try; then
21962 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21963 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21964 { (exit 1); exit 1; }; }
21965 else
21966 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21968 done
21970 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21971 if test -n "$ac_eof"; then
21972 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21973 ac_eof=`expr $ac_eof + 1`
21976 cat >>$CONFIG_STATUS <<_ACEOF
21977 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
21978 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
21979 _ACEOF
21980 sed '
21981 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21982 s/^/s,@/; s/!/@,|#_!!_#|/
21985 s/'"$ac_delim"'$/,g/; t
21986 s/$/\\/; p
21987 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21988 ' >>$CONFIG_STATUS <conf$$subs.sed
21989 rm -f conf$$subs.sed
21990 cat >>$CONFIG_STATUS <<_ACEOF
21991 :end
21992 s/|#_!!_#|//g
21993 CEOF$ac_eof
21994 _ACEOF
21997 # VPATH may cause trouble with some makes, so we remove $(srcdir),
21998 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
21999 # trailing colons and then remove the whole line if VPATH becomes empty
22000 # (actually we leave an empty line to preserve line numbers).
22001 if test "x$srcdir" = x.; then
22002 ac_vpsub='/^[ ]*VPATH[ ]*=/{
22003 s/:*\$(srcdir):*/:/
22004 s/:*\${srcdir}:*/:/
22005 s/:*@srcdir@:*/:/
22006 s/^\([^=]*=[ ]*\):*/\1/
22007 s/:*$//
22008 s/^[^=]*=[ ]*$//
22012 cat >>$CONFIG_STATUS <<\_ACEOF
22013 fi # test -n "$CONFIG_FILES"
22016 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
22018 case $ac_tag in
22019 :[FHLC]) ac_mode=$ac_tag; continue;;
22020 esac
22021 case $ac_mode$ac_tag in
22022 :[FHL]*:*);;
22023 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
22024 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
22025 { (exit 1); exit 1; }; };;
22026 :[FH]-) ac_tag=-:-;;
22027 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
22028 esac
22029 ac_save_IFS=$IFS
22030 IFS=:
22031 set x $ac_tag
22032 IFS=$ac_save_IFS
22033 shift
22034 ac_file=$1
22035 shift
22037 case $ac_mode in
22038 :L) ac_source=$1;;
22039 :[FH])
22040 ac_file_inputs=
22041 for ac_f
22043 case $ac_f in
22044 -) ac_f="$tmp/stdin";;
22045 *) # Look for the file first in the build tree, then in the source tree
22046 # (if the path is not absolute). The absolute path cannot be DOS-style,
22047 # because $ac_f cannot contain `:'.
22048 test -f "$ac_f" ||
22049 case $ac_f in
22050 [\\/$]*) false;;
22051 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
22052 esac ||
22053 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
22054 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
22055 { (exit 1); exit 1; }; };;
22056 esac
22057 ac_file_inputs="$ac_file_inputs $ac_f"
22058 done
22060 # Let's still pretend it is `configure' which instantiates (i.e., don't
22061 # use $as_me), people would be surprised to read:
22062 # /* config.h. Generated by config.status. */
22063 configure_input="Generated from "`IFS=:
22064 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
22065 if test x"$ac_file" != x-; then
22066 configure_input="$ac_file. $configure_input"
22067 { echo "$as_me:$LINENO: creating $ac_file" >&5
22068 echo "$as_me: creating $ac_file" >&6;}
22071 case $ac_tag in
22072 *:-:* | *:-) cat >"$tmp/stdin";;
22073 esac
22075 esac
22077 ac_dir=`$as_dirname -- "$ac_file" ||
22078 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22079 X"$ac_file" : 'X\(//\)[^/]' \| \
22080 X"$ac_file" : 'X\(//\)$' \| \
22081 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
22082 echo X"$ac_file" |
22083 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22084 s//\1/
22087 /^X\(\/\/\)[^/].*/{
22088 s//\1/
22091 /^X\(\/\/\)$/{
22092 s//\1/
22095 /^X\(\/\).*/{
22096 s//\1/
22099 s/.*/./; q'`
22100 { as_dir="$ac_dir"
22101 case $as_dir in #(
22102 -*) as_dir=./$as_dir;;
22103 esac
22104 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22105 as_dirs=
22106 while :; do
22107 case $as_dir in #(
22108 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22109 *) as_qdir=$as_dir;;
22110 esac
22111 as_dirs="'$as_qdir' $as_dirs"
22112 as_dir=`$as_dirname -- "$as_dir" ||
22113 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22114 X"$as_dir" : 'X\(//\)[^/]' \| \
22115 X"$as_dir" : 'X\(//\)$' \| \
22116 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22117 echo X"$as_dir" |
22118 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22119 s//\1/
22122 /^X\(\/\/\)[^/].*/{
22123 s//\1/
22126 /^X\(\/\/\)$/{
22127 s//\1/
22130 /^X\(\/\).*/{
22131 s//\1/
22134 s/.*/./; q'`
22135 test -d "$as_dir" && break
22136 done
22137 test -z "$as_dirs" || eval "mkdir $as_dirs"
22138 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22139 echo "$as_me: error: cannot create directory $as_dir" >&2;}
22140 { (exit 1); exit 1; }; }; }
22141 ac_builddir=.
22143 case "$ac_dir" in
22144 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22146 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22147 # A ".." for each directory in $ac_dir_suffix.
22148 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
22149 case $ac_top_builddir_sub in
22150 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22151 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22152 esac ;;
22153 esac
22154 ac_abs_top_builddir=$ac_pwd
22155 ac_abs_builddir=$ac_pwd$ac_dir_suffix
22156 # for backward compatibility:
22157 ac_top_builddir=$ac_top_build_prefix
22159 case $srcdir in
22160 .) # We are building in place.
22161 ac_srcdir=.
22162 ac_top_srcdir=$ac_top_builddir_sub
22163 ac_abs_top_srcdir=$ac_pwd ;;
22164 [\\/]* | ?:[\\/]* ) # Absolute name.
22165 ac_srcdir=$srcdir$ac_dir_suffix;
22166 ac_top_srcdir=$srcdir
22167 ac_abs_top_srcdir=$srcdir ;;
22168 *) # Relative name.
22169 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22170 ac_top_srcdir=$ac_top_build_prefix$srcdir
22171 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22172 esac
22173 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22176 case $ac_mode in
22179 # CONFIG_FILE
22182 case $INSTALL in
22183 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22184 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
22185 esac
22186 _ACEOF
22188 cat >>$CONFIG_STATUS <<\_ACEOF
22189 # If the template does not know about datarootdir, expand it.
22190 # FIXME: This hack should be removed a few years after 2.60.
22191 ac_datarootdir_hack=; ac_datarootdir_seen=
22193 case `sed -n '/datarootdir/ {
22197 /@datadir@/p
22198 /@docdir@/p
22199 /@infodir@/p
22200 /@localedir@/p
22201 /@mandir@/p
22202 ' $ac_file_inputs` in
22203 *datarootdir*) ac_datarootdir_seen=yes;;
22204 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
22205 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22206 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
22207 _ACEOF
22208 cat >>$CONFIG_STATUS <<_ACEOF
22209 ac_datarootdir_hack='
22210 s&@datadir@&$datadir&g
22211 s&@docdir@&$docdir&g
22212 s&@infodir@&$infodir&g
22213 s&@localedir@&$localedir&g
22214 s&@mandir@&$mandir&g
22215 s&\\\${datarootdir}&$datarootdir&g' ;;
22216 esac
22217 _ACEOF
22219 # Neutralize VPATH when `$srcdir' = `.'.
22220 # Shell code in configure.ac might set extrasub.
22221 # FIXME: do we really want to maintain this feature?
22222 cat >>$CONFIG_STATUS <<_ACEOF
22223 sed "$ac_vpsub
22224 $extrasub
22225 _ACEOF
22226 cat >>$CONFIG_STATUS <<\_ACEOF
22228 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22229 s&@configure_input@&$configure_input&;t t
22230 s&@top_builddir@&$ac_top_builddir_sub&;t t
22231 s&@srcdir@&$ac_srcdir&;t t
22232 s&@abs_srcdir@&$ac_abs_srcdir&;t t
22233 s&@top_srcdir@&$ac_top_srcdir&;t t
22234 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
22235 s&@builddir@&$ac_builddir&;t t
22236 s&@abs_builddir@&$ac_abs_builddir&;t t
22237 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
22238 s&@INSTALL@&$ac_INSTALL&;t t
22239 $ac_datarootdir_hack
22240 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
22242 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22243 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
22244 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
22245 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22246 which seems to be undefined. Please make sure it is defined." >&5
22247 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22248 which seems to be undefined. Please make sure it is defined." >&2;}
22250 rm -f "$tmp/stdin"
22251 case $ac_file in
22252 -) cat "$tmp/out"; rm -f "$tmp/out";;
22253 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
22254 esac
22258 # CONFIG_HEADER
22260 _ACEOF
22262 # Transform confdefs.h into a sed script `conftest.defines', that
22263 # substitutes the proper values into config.h.in to produce config.h.
22264 rm -f conftest.defines conftest.tail
22265 # First, append a space to every undef/define line, to ease matching.
22266 echo 's/$/ /' >conftest.defines
22267 # Then, protect against being on the right side of a sed subst, or in
22268 # an unquoted here document, in config.status. If some macros were
22269 # called several times there might be several #defines for the same
22270 # symbol, which is useless. But do not sort them, since the last
22271 # AC_DEFINE must be honored.
22272 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
22273 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
22274 # NAME is the cpp macro being defined, VALUE is the value it is being given.
22275 # PARAMS is the parameter list in the macro definition--in most cases, it's
22276 # just an empty string.
22277 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
22278 ac_dB='\\)[ (].*,\\1define\\2'
22279 ac_dC=' '
22280 ac_dD=' ,'
22282 uniq confdefs.h |
22283 sed -n '
22284 t rset
22285 :rset
22286 s/^[ ]*#[ ]*define[ ][ ]*//
22287 t ok
22290 s/[\\&,]/\\&/g
22291 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
22292 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
22293 ' >>conftest.defines
22295 # Remove the space that was appended to ease matching.
22296 # Then replace #undef with comments. This is necessary, for
22297 # example, in the case of _POSIX_SOURCE, which is predefined and required
22298 # on some systems where configure will not decide to define it.
22299 # (The regexp can be short, since the line contains either #define or #undef.)
22300 echo 's/ $//
22301 s,^[ #]*u.*,/* & */,' >>conftest.defines
22303 # Break up conftest.defines:
22304 ac_max_sed_lines=50
22306 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
22307 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
22308 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
22309 # et cetera.
22310 ac_in='$ac_file_inputs'
22311 ac_out='"$tmp/out1"'
22312 ac_nxt='"$tmp/out2"'
22314 while :
22316 # Write a here document:
22317 cat >>$CONFIG_STATUS <<_ACEOF
22318 # First, check the format of the line:
22319 cat >"\$tmp/defines.sed" <<\\CEOF
22320 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
22321 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
22323 :def
22324 _ACEOF
22325 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
22326 echo 'CEOF
22327 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
22328 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
22329 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
22330 grep . conftest.tail >/dev/null || break
22331 rm -f conftest.defines
22332 mv conftest.tail conftest.defines
22333 done
22334 rm -f conftest.defines conftest.tail
22336 echo "ac_result=$ac_in" >>$CONFIG_STATUS
22337 cat >>$CONFIG_STATUS <<\_ACEOF
22338 if test x"$ac_file" != x-; then
22339 echo "/* $configure_input */" >"$tmp/config.h"
22340 cat "$ac_result" >>"$tmp/config.h"
22341 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
22342 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
22343 echo "$as_me: $ac_file is unchanged" >&6;}
22344 else
22345 rm -f $ac_file
22346 mv "$tmp/config.h" $ac_file
22348 else
22349 echo "/* $configure_input */"
22350 cat "$ac_result"
22352 rm -f "$tmp/out12"
22353 # Compute $ac_file's index in $config_headers.
22354 _am_stamp_count=1
22355 for _am_header in $config_headers :; do
22356 case $_am_header in
22357 $ac_file | $ac_file:* )
22358 break ;;
22360 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
22361 esac
22362 done
22363 echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
22364 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22365 X$ac_file : 'X\(//\)[^/]' \| \
22366 X$ac_file : 'X\(//\)$' \| \
22367 X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
22368 echo X$ac_file |
22369 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22370 s//\1/
22373 /^X\(\/\/\)[^/].*/{
22374 s//\1/
22377 /^X\(\/\/\)$/{
22378 s//\1/
22381 /^X\(\/\).*/{
22382 s//\1/
22385 s/.*/./; q'`/stamp-h$_am_stamp_count
22388 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
22389 echo "$as_me: executing $ac_file commands" >&6;}
22391 esac
22394 case $ac_file$ac_mode in
22395 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
22396 # Strip MF so we end up with the name of the file.
22397 mf=`echo "$mf" | sed -e 's/:.*$//'`
22398 # Check whether this is an Automake generated Makefile or not.
22399 # We used to match only the files named `Makefile.in', but
22400 # some people rename them; so instead we look at the file content.
22401 # Grep'ing the first line is not enough: some people post-process
22402 # each Makefile.in and add a new line on top of each file to say so.
22403 # So let's grep whole file.
22404 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
22405 dirpart=`$as_dirname -- "$mf" ||
22406 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22407 X"$mf" : 'X\(//\)[^/]' \| \
22408 X"$mf" : 'X\(//\)$' \| \
22409 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
22410 echo X"$mf" |
22411 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22412 s//\1/
22415 /^X\(\/\/\)[^/].*/{
22416 s//\1/
22419 /^X\(\/\/\)$/{
22420 s//\1/
22423 /^X\(\/\).*/{
22424 s//\1/
22427 s/.*/./; q'`
22428 else
22429 continue
22431 # Extract the definition of DEPDIR, am__include, and am__quote
22432 # from the Makefile without running `make'.
22433 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
22434 test -z "$DEPDIR" && continue
22435 am__include=`sed -n 's/^am__include = //p' < "$mf"`
22436 test -z "am__include" && continue
22437 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
22438 # When using ansi2knr, U may be empty or an underscore; expand it
22439 U=`sed -n 's/^U = //p' < "$mf"`
22440 # Find all dependency output files, they are included files with
22441 # $(DEPDIR) in their names. We invoke sed twice because it is the
22442 # simplest approach to changing $(DEPDIR) to its actual value in the
22443 # expansion.
22444 for file in `sed -n "
22445 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
22446 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
22447 # Make sure the directory exists.
22448 test -f "$dirpart/$file" && continue
22449 fdir=`$as_dirname -- "$file" ||
22450 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22451 X"$file" : 'X\(//\)[^/]' \| \
22452 X"$file" : 'X\(//\)$' \| \
22453 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
22454 echo X"$file" |
22455 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22456 s//\1/
22459 /^X\(\/\/\)[^/].*/{
22460 s//\1/
22463 /^X\(\/\/\)$/{
22464 s//\1/
22467 /^X\(\/\).*/{
22468 s//\1/
22471 s/.*/./; q'`
22472 { as_dir=$dirpart/$fdir
22473 case $as_dir in #(
22474 -*) as_dir=./$as_dir;;
22475 esac
22476 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22477 as_dirs=
22478 while :; do
22479 case $as_dir in #(
22480 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22481 *) as_qdir=$as_dir;;
22482 esac
22483 as_dirs="'$as_qdir' $as_dirs"
22484 as_dir=`$as_dirname -- "$as_dir" ||
22485 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22486 X"$as_dir" : 'X\(//\)[^/]' \| \
22487 X"$as_dir" : 'X\(//\)$' \| \
22488 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22489 echo X"$as_dir" |
22490 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22491 s//\1/
22494 /^X\(\/\/\)[^/].*/{
22495 s//\1/
22498 /^X\(\/\/\)$/{
22499 s//\1/
22502 /^X\(\/\).*/{
22503 s//\1/
22506 s/.*/./; q'`
22507 test -d "$as_dir" && break
22508 done
22509 test -z "$as_dirs" || eval "mkdir $as_dirs"
22510 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22511 echo "$as_me: error: cannot create directory $as_dir" >&2;}
22512 { (exit 1); exit 1; }; }; }
22513 # echo "creating $dirpart/$file"
22514 echo '# dummy' > "$dirpart/$file"
22515 done
22516 done
22519 esac
22520 done # for ac_tag
22523 { (exit 0); exit 0; }
22524 _ACEOF
22525 chmod +x $CONFIG_STATUS
22526 ac_clean_files=$ac_clean_files_save
22529 # configure is writing to config.log, and then calls config.status.
22530 # config.status does its own redirection, appending to config.log.
22531 # Unfortunately, on DOS this fails, as config.log is still kept open
22532 # by configure, so config.status won't be able to write to it; its
22533 # output is simply discarded. So we exec the FD to /dev/null,
22534 # effectively closing config.log, so it can be properly (re)opened and
22535 # appended to by config.status. When coming back to configure, we
22536 # need to make the FD available again.
22537 if test "$no_create" != yes; then
22538 ac_cs_success=:
22539 ac_config_status_args=
22540 test "$silent" = yes &&
22541 ac_config_status_args="$ac_config_status_args --quiet"
22542 exec 5>/dev/null
22543 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22544 exec 5>>config.log
22545 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22546 # would make configure fail if this is the last instruction.
22547 $ac_cs_success || { (exit 1); exit 1; }