Tarball tree for barry-0.17.0.tar.bz2
[barry.git] / opensync-plugin-0.4x / configure
blob562dd2f76ffd016cb52cb8562629329c5b8ef425
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.4x 0.17.
5 # Report bugs to <barry-devel@lists.sourceforge.net>.
7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## --------------------- ##
12 ## M4sh Initialization. ##
13 ## --------------------- ##
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18 emulate sh
19 NULLCMD=:
20 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST
24 else
25 case `(set -o) 2>/dev/null` in
26 *posix*) set -o posix ;;
27 esac
34 # PATH needs CR
35 # Avoid depending upon Character Ranges.
36 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
37 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
38 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
39 as_cr_digits='0123456789'
40 as_cr_alnum=$as_cr_Letters$as_cr_digits
42 # The user is always right.
43 if test "${PATH_SEPARATOR+set}" != set; then
44 echo "#! /bin/sh" >conf$$.sh
45 echo "exit 0" >>conf$$.sh
46 chmod +x conf$$.sh
47 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
48 PATH_SEPARATOR=';'
49 else
50 PATH_SEPARATOR=:
52 rm -f conf$$.sh
55 # Support unset when possible.
56 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
57 as_unset=unset
58 else
59 as_unset=false
63 # IFS
64 # We need space, tab and new line, in precisely that order. Quoting is
65 # there to prevent editors from complaining about space-tab.
66 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
67 # splitting by setting IFS to empty value.)
68 as_nl='
70 IFS=" "" $as_nl"
72 # Find who we are. Look in the path if we contain no directory separator.
73 case $0 in
74 *[\\/]* ) as_myself=$0 ;;
75 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
76 for as_dir in $PATH
78 IFS=$as_save_IFS
79 test -z "$as_dir" && as_dir=.
80 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
81 done
82 IFS=$as_save_IFS
85 esac
86 # We did not find ourselves, most probably we were run as `sh COMMAND'
87 # in which case we are not to be found in the path.
88 if test "x$as_myself" = x; then
89 as_myself=$0
91 if test ! -f "$as_myself"; then
92 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
93 { (exit 1); exit 1; }
96 # Work around bugs in pre-3.0 UWIN ksh.
97 for as_var in ENV MAIL MAILPATH
98 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
99 done
100 PS1='$ '
101 PS2='> '
102 PS4='+ '
104 # NLS nuisances.
105 for as_var in \
106 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
107 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
108 LC_TELEPHONE LC_TIME
110 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
111 eval $as_var=C; export $as_var
112 else
113 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
115 done
117 # Required to use basename.
118 if expr a : '\(a\)' >/dev/null 2>&1 &&
119 test "X`expr 00001 : '.*\(...\)'`" = X001; then
120 as_expr=expr
121 else
122 as_expr=false
125 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
126 as_basename=basename
127 else
128 as_basename=false
132 # Name of the executable.
133 as_me=`$as_basename -- "$0" ||
134 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
135 X"$0" : 'X\(//\)$' \| \
136 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
137 echo X/"$0" |
138 sed '/^.*\/\([^/][^/]*\)\/*$/{
139 s//\1/
142 /^X\/\(\/\/\)$/{
143 s//\1/
146 /^X\/\(\/\).*/{
147 s//\1/
150 s/.*/./; q'`
152 # CDPATH.
153 $as_unset CDPATH
156 if test "x$CONFIG_SHELL" = x; then
157 if (eval ":") 2>/dev/null; then
158 as_have_required=yes
159 else
160 as_have_required=no
163 if test $as_have_required = yes && (eval ":
164 (as_func_return () {
165 (exit \$1)
167 as_func_success () {
168 as_func_return 0
170 as_func_failure () {
171 as_func_return 1
173 as_func_ret_success () {
174 return 0
176 as_func_ret_failure () {
177 return 1
180 exitcode=0
181 if as_func_success; then
183 else
184 exitcode=1
185 echo as_func_success failed.
188 if as_func_failure; then
189 exitcode=1
190 echo as_func_failure succeeded.
193 if as_func_ret_success; then
195 else
196 exitcode=1
197 echo as_func_ret_success failed.
200 if as_func_ret_failure; then
201 exitcode=1
202 echo as_func_ret_failure succeeded.
205 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
207 else
208 exitcode=1
209 echo positional parameters were not saved.
212 test \$exitcode = 0) || { (exit 1); exit 1; }
215 as_lineno_1=\$LINENO
216 as_lineno_2=\$LINENO
217 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
218 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
219 ") 2> /dev/null; then
221 else
222 as_candidate_shells=
223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
224 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
226 IFS=$as_save_IFS
227 test -z "$as_dir" && as_dir=.
228 case $as_dir in
230 for as_base in sh bash ksh sh5; do
231 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
232 done;;
233 esac
234 done
235 IFS=$as_save_IFS
238 for as_shell in $as_candidate_shells $SHELL; do
239 # Try only shells that exist, to save several forks.
240 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
241 { ("$as_shell") 2> /dev/null <<\_ASEOF
242 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
243 emulate sh
244 NULLCMD=:
245 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
246 # is contrary to our usage. Disable this feature.
247 alias -g '${1+"$@"}'='"$@"'
248 setopt NO_GLOB_SUBST
249 else
250 case `(set -o) 2>/dev/null` in
251 *posix*) set -o posix ;;
252 esac
258 _ASEOF
259 }; then
260 CONFIG_SHELL=$as_shell
261 as_have_required=yes
262 if { "$as_shell" 2> /dev/null <<\_ASEOF
263 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
264 emulate sh
265 NULLCMD=:
266 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
267 # is contrary to our usage. Disable this feature.
268 alias -g '${1+"$@"}'='"$@"'
269 setopt NO_GLOB_SUBST
270 else
271 case `(set -o) 2>/dev/null` in
272 *posix*) set -o posix ;;
273 esac
279 (as_func_return () {
280 (exit $1)
282 as_func_success () {
283 as_func_return 0
285 as_func_failure () {
286 as_func_return 1
288 as_func_ret_success () {
289 return 0
291 as_func_ret_failure () {
292 return 1
295 exitcode=0
296 if as_func_success; then
298 else
299 exitcode=1
300 echo as_func_success failed.
303 if as_func_failure; then
304 exitcode=1
305 echo as_func_failure succeeded.
308 if as_func_ret_success; then
310 else
311 exitcode=1
312 echo as_func_ret_success failed.
315 if as_func_ret_failure; then
316 exitcode=1
317 echo as_func_ret_failure succeeded.
320 if ( set x; as_func_ret_success y && test x = "$1" ); then
322 else
323 exitcode=1
324 echo positional parameters were not saved.
327 test $exitcode = 0) || { (exit 1); exit 1; }
330 as_lineno_1=$LINENO
331 as_lineno_2=$LINENO
332 test "x$as_lineno_1" != "x$as_lineno_2" &&
333 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
335 _ASEOF
336 }; then
337 break
342 done
344 if test "x$CONFIG_SHELL" != x; then
345 for as_var in BASH_ENV ENV
346 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
347 done
348 export CONFIG_SHELL
349 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
353 if test $as_have_required = no; then
354 echo This script requires a shell more modern than all the
355 echo shells that I found on your system. Please install a
356 echo modern shell, or manually run the script under such a
357 echo shell if you do have one.
358 { (exit 1); exit 1; }
368 (eval "as_func_return () {
369 (exit \$1)
371 as_func_success () {
372 as_func_return 0
374 as_func_failure () {
375 as_func_return 1
377 as_func_ret_success () {
378 return 0
380 as_func_ret_failure () {
381 return 1
384 exitcode=0
385 if as_func_success; then
387 else
388 exitcode=1
389 echo as_func_success failed.
392 if as_func_failure; then
393 exitcode=1
394 echo as_func_failure succeeded.
397 if as_func_ret_success; then
399 else
400 exitcode=1
401 echo as_func_ret_success failed.
404 if as_func_ret_failure; then
405 exitcode=1
406 echo as_func_ret_failure succeeded.
409 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
411 else
412 exitcode=1
413 echo positional parameters were not saved.
416 test \$exitcode = 0") || {
417 echo No shell found that supports shell functions.
418 echo Please tell autoconf@gnu.org about your system,
419 echo including any error possibly output before this
420 echo message
425 as_lineno_1=$LINENO
426 as_lineno_2=$LINENO
427 test "x$as_lineno_1" != "x$as_lineno_2" &&
428 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
430 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
431 # uniformly replaced by the line number. The first 'sed' inserts a
432 # line-number line after each line using $LINENO; the second 'sed'
433 # does the real work. The second script uses 'N' to pair each
434 # line-number line with the line containing $LINENO, and appends
435 # trailing '-' during substitution so that $LINENO is not a special
436 # case at line end.
437 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
438 # scripts with optimization help from Paolo Bonzini. Blame Lee
439 # E. McMahon (1931-1989) for sed's syntax. :-)
440 sed -n '
442 /[$]LINENO/=
443 ' <$as_myself |
444 sed '
445 s/[$]LINENO.*/&-/
446 t lineno
448 :lineno
450 :loop
451 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
452 t loop
453 s/-\n.*//
454 ' >$as_me.lineno &&
455 chmod +x "$as_me.lineno" ||
456 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
457 { (exit 1); exit 1; }; }
459 # Don't try to exec as it changes $[0], causing all sort of problems
460 # (the dirname of $[0] is not the place where we might find the
461 # original and so on. Autoconf is especially sensitive to this).
462 . "./$as_me.lineno"
463 # Exit status is that of the last command.
464 exit
468 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
469 as_dirname=dirname
470 else
471 as_dirname=false
474 ECHO_C= ECHO_N= ECHO_T=
475 case `echo -n x` in
476 -n*)
477 case `echo 'x\c'` in
478 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
479 *) ECHO_C='\c';;
480 esac;;
482 ECHO_N='-n';;
483 esac
485 if expr a : '\(a\)' >/dev/null 2>&1 &&
486 test "X`expr 00001 : '.*\(...\)'`" = X001; then
487 as_expr=expr
488 else
489 as_expr=false
492 rm -f conf$$ conf$$.exe conf$$.file
493 if test -d conf$$.dir; then
494 rm -f conf$$.dir/conf$$.file
495 else
496 rm -f conf$$.dir
497 mkdir conf$$.dir
499 echo >conf$$.file
500 if ln -s conf$$.file conf$$ 2>/dev/null; then
501 as_ln_s='ln -s'
502 # ... but there are two gotchas:
503 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
504 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
505 # In both cases, we have to default to `cp -p'.
506 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
507 as_ln_s='cp -p'
508 elif ln conf$$.file conf$$ 2>/dev/null; then
509 as_ln_s=ln
510 else
511 as_ln_s='cp -p'
513 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
514 rmdir conf$$.dir 2>/dev/null
516 if mkdir -p . 2>/dev/null; then
517 as_mkdir_p=:
518 else
519 test -d ./-p && rmdir ./-p
520 as_mkdir_p=false
523 if test -x / >/dev/null 2>&1; then
524 as_test_x='test -x'
525 else
526 if ls -dL / >/dev/null 2>&1; then
527 as_ls_L_option=L
528 else
529 as_ls_L_option=
531 as_test_x='
532 eval sh -c '\''
533 if test -d "$1"; then
534 test -d "$1/.";
535 else
536 case $1 in
537 -*)set "./$1";;
538 esac;
539 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
540 ???[sx]*):;;*)false;;esac;fi
541 '\'' sh
544 as_executable_p=$as_test_x
546 # Sed expression to map a string onto a valid CPP name.
547 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
549 # Sed expression to map a string onto a valid variable name.
550 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
555 # Check that we are running under the correct shell.
556 SHELL=${CONFIG_SHELL-/bin/sh}
558 case X$ECHO in
559 X*--fallback-echo)
560 # Remove one level of quotation (which was required for Make).
561 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
563 esac
565 echo=${ECHO-echo}
566 if test "X$1" = X--no-reexec; then
567 # Discard the --no-reexec flag, and continue.
568 shift
569 elif test "X$1" = X--fallback-echo; then
570 # Avoid inline document here, it may be left over
572 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
573 # Yippee, $echo works!
575 else
576 # Restart under the correct shell.
577 exec $SHELL "$0" --no-reexec ${1+"$@"}
580 if test "X$1" = X--fallback-echo; then
581 # used as fallback echo
582 shift
583 cat <<EOF
586 exit 0
589 # The HP-UX ksh and POSIX shell print the target directory to stdout
590 # if CDPATH is set.
591 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
593 if test -z "$ECHO"; then
594 if test "X${echo_test_string+set}" != Xset; then
595 # find a string as large as possible, as long as the shell can cope with it
596 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
597 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
598 if (echo_test_string=`eval $cmd`) 2>/dev/null &&
599 echo_test_string=`eval $cmd` &&
600 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
601 then
602 break
604 done
607 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
608 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
609 test "X$echo_testing_string" = "X$echo_test_string"; then
611 else
612 # The Solaris, AIX, and Digital Unix default echo programs unquote
613 # backslashes. This makes it impossible to quote backslashes using
614 # echo "$something" | sed 's/\\/\\\\/g'
616 # So, first we look for a working echo in the user's PATH.
618 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
619 for dir in $PATH /usr/ucb; do
620 IFS="$lt_save_ifs"
621 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
622 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
623 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
624 test "X$echo_testing_string" = "X$echo_test_string"; then
625 echo="$dir/echo"
626 break
628 done
629 IFS="$lt_save_ifs"
631 if test "X$echo" = Xecho; then
632 # We didn't find a better echo, so look for alternatives.
633 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
634 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
635 test "X$echo_testing_string" = "X$echo_test_string"; then
636 # This shell has a builtin print -r that does the trick.
637 echo='print -r'
638 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
639 test "X$CONFIG_SHELL" != X/bin/ksh; then
640 # If we have ksh, try running configure again with it.
641 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
642 export ORIGINAL_CONFIG_SHELL
643 CONFIG_SHELL=/bin/ksh
644 export CONFIG_SHELL
645 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
646 else
647 # Try using printf.
648 echo='printf %s\n'
649 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
650 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
651 test "X$echo_testing_string" = "X$echo_test_string"; then
652 # Cool, printf works
654 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
655 test "X$echo_testing_string" = 'X\t' &&
656 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
657 test "X$echo_testing_string" = "X$echo_test_string"; then
658 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
659 export CONFIG_SHELL
660 SHELL="$CONFIG_SHELL"
661 export SHELL
662 echo="$CONFIG_SHELL $0 --fallback-echo"
663 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
664 test "X$echo_testing_string" = 'X\t' &&
665 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
666 test "X$echo_testing_string" = "X$echo_test_string"; then
667 echo="$CONFIG_SHELL $0 --fallback-echo"
668 else
669 # maybe with a smaller string...
670 prev=:
672 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
673 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
674 then
675 break
677 prev="$cmd"
678 done
680 if test "$prev" != 'sed 50q "$0"'; then
681 echo_test_string=`eval $prev`
682 export echo_test_string
683 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
684 else
685 # Oops. We lost completely, so just stick with echo.
686 echo=echo
694 # Copy echo and quote the copy suitably for passing to libtool from
695 # the Makefile, instead of quoting the original, which is used later.
696 ECHO=$echo
697 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
698 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
704 tagnames=${tagnames+${tagnames},}CXX
706 tagnames=${tagnames+${tagnames},}F77
708 exec 7<&0 </dev/null 6>&1
710 # Name of the host.
711 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
712 # so uname gets run too.
713 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
716 # Initializations.
718 ac_default_prefix=/usr/local
719 ac_clean_files=
720 ac_config_libobj_dir=.
721 LIBOBJS=
722 cross_compiling=no
723 subdirs=
724 MFLAGS=
725 MAKEFLAGS=
726 SHELL=${CONFIG_SHELL-/bin/sh}
728 # Identity of this package.
729 PACKAGE_NAME='Barry OpenSync Plugin 0.4x'
730 PACKAGE_TARNAME='barry-opensync-plugin-0-4x'
731 PACKAGE_VERSION='0.17'
732 PACKAGE_STRING='Barry OpenSync Plugin 0.4x 0.17'
733 PACKAGE_BUGREPORT='barry-devel@lists.sourceforge.net'
735 ac_unique_file="src/barry_sync.cc"
736 # Factoring default headers for most tests.
737 ac_includes_default="\
738 #include <stdio.h>
739 #ifdef HAVE_SYS_TYPES_H
740 # include <sys/types.h>
741 #endif
742 #ifdef HAVE_SYS_STAT_H
743 # include <sys/stat.h>
744 #endif
745 #ifdef STDC_HEADERS
746 # include <stdlib.h>
747 # include <stddef.h>
748 #else
749 # ifdef HAVE_STDLIB_H
750 # include <stdlib.h>
751 # endif
752 #endif
753 #ifdef HAVE_STRING_H
754 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
755 # include <memory.h>
756 # endif
757 # include <string.h>
758 #endif
759 #ifdef HAVE_STRINGS_H
760 # include <strings.h>
761 #endif
762 #ifdef HAVE_INTTYPES_H
763 # include <inttypes.h>
764 #endif
765 #ifdef HAVE_STDINT_H
766 # include <stdint.h>
767 #endif
768 #ifdef HAVE_UNISTD_H
769 # include <unistd.h>
770 #endif"
772 ac_subst_vars='SHELL
773 PATH_SEPARATOR
774 PACKAGE_NAME
775 PACKAGE_TARNAME
776 PACKAGE_VERSION
777 PACKAGE_STRING
778 PACKAGE_BUGREPORT
779 exec_prefix
780 prefix
781 program_transform_name
782 bindir
783 sbindir
784 libexecdir
785 datarootdir
786 datadir
787 sysconfdir
788 sharedstatedir
789 localstatedir
790 includedir
791 oldincludedir
792 docdir
793 infodir
794 htmldir
795 dvidir
796 pdfdir
797 psdir
798 libdir
799 localedir
800 mandir
801 DEFS
802 ECHO_C
803 ECHO_N
804 ECHO_T
805 LIBS
806 build_alias
807 host_alias
808 target_alias
809 INSTALL_PROGRAM
810 INSTALL_SCRIPT
811 INSTALL_DATA
812 am__isrc
813 CYGPATH_W
814 PACKAGE
815 VERSION
816 ACLOCAL
817 AUTOCONF
818 AUTOMAKE
819 AUTOHEADER
820 MAKEINFO
821 install_sh
822 STRIP
823 INSTALL_STRIP_PROGRAM
824 mkdir_p
826 SET_MAKE
827 am__leading_dot
828 AMTAR
829 am__tar
830 am__untar
831 PKG_CONFIG
832 PACKAGE_CFLAGS
833 PACKAGE_LIBS
835 CFLAGS
836 LDFLAGS
837 CPPFLAGS
838 ac_ct_CC
839 EXEEXT
840 OBJEXT
841 DEPDIR
842 am__include
843 am__quote
844 AMDEP_TRUE
845 AMDEP_FALSE
846 AMDEPBACKSLASH
847 CCDEPMODE
848 am__fastdepCC_TRUE
849 am__fastdepCC_FALSE
851 GREP
852 EGREP
854 CXXFLAGS
855 ac_ct_CXX
856 CXXDEPMODE
857 am__fastdepCXX_TRUE
858 am__fastdepCXX_FALSE
859 build
860 build_cpu
861 build_vendor
862 build_os
863 host
864 host_cpu
865 host_vendor
866 host_os
868 LN_S
869 ECHO
871 RANLIB
872 DSYMUTIL
873 NMEDIT
874 CXXCPP
876 FFLAGS
877 ac_ct_F77
878 LIBTOOL
879 WITH_GCCVISIBILITY_TRUE
880 WITH_GCCVISIBILITY_FALSE
881 BARRY_CFLAGS
882 BARRY_LIBS
883 TREE_BUILD_CXXFLAGS
884 TREE_BUILD_LDFLAGS
885 OPENSYNC_CONFIGDIR
886 OPENSYNC_PLUGINDIR
887 OPENSYNC_FORMATSDIR
888 OPENSYNC_HEADERDIR
889 LIBOBJS
890 LTLIBOBJS'
891 ac_subst_files=''
892 ac_precious_vars='build_alias
893 host_alias
894 target_alias
895 PKG_CONFIG
896 PACKAGE_CFLAGS
897 PACKAGE_LIBS
899 CFLAGS
900 LDFLAGS
901 LIBS
902 CPPFLAGS
905 CXXFLAGS
907 CXXCPP
909 FFLAGS
910 BARRY_CFLAGS
911 BARRY_LIBS'
914 # Initialize some variables set by options.
915 ac_init_help=
916 ac_init_version=false
917 # The variables have the same names as the options, with
918 # dashes changed to underlines.
919 cache_file=/dev/null
920 exec_prefix=NONE
921 no_create=
922 no_recursion=
923 prefix=NONE
924 program_prefix=NONE
925 program_suffix=NONE
926 program_transform_name=s,x,x,
927 silent=
928 site=
929 srcdir=
930 verbose=
931 x_includes=NONE
932 x_libraries=NONE
934 # Installation directory options.
935 # These are left unexpanded so users can "make install exec_prefix=/foo"
936 # and all the variables that are supposed to be based on exec_prefix
937 # by default will actually change.
938 # Use braces instead of parens because sh, perl, etc. also accept them.
939 # (The list follows the same order as the GNU Coding Standards.)
940 bindir='${exec_prefix}/bin'
941 sbindir='${exec_prefix}/sbin'
942 libexecdir='${exec_prefix}/libexec'
943 datarootdir='${prefix}/share'
944 datadir='${datarootdir}'
945 sysconfdir='${prefix}/etc'
946 sharedstatedir='${prefix}/com'
947 localstatedir='${prefix}/var'
948 includedir='${prefix}/include'
949 oldincludedir='/usr/include'
950 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
951 infodir='${datarootdir}/info'
952 htmldir='${docdir}'
953 dvidir='${docdir}'
954 pdfdir='${docdir}'
955 psdir='${docdir}'
956 libdir='${exec_prefix}/lib'
957 localedir='${datarootdir}/locale'
958 mandir='${datarootdir}/man'
960 ac_prev=
961 ac_dashdash=
962 for ac_option
964 # If the previous option needs an argument, assign it.
965 if test -n "$ac_prev"; then
966 eval $ac_prev=\$ac_option
967 ac_prev=
968 continue
971 case $ac_option in
972 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
973 *) ac_optarg=yes ;;
974 esac
976 # Accept the important Cygnus configure options, so we can diagnose typos.
978 case $ac_dashdash$ac_option in
980 ac_dashdash=yes ;;
982 -bindir | --bindir | --bindi | --bind | --bin | --bi)
983 ac_prev=bindir ;;
984 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
985 bindir=$ac_optarg ;;
987 -build | --build | --buil | --bui | --bu)
988 ac_prev=build_alias ;;
989 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
990 build_alias=$ac_optarg ;;
992 -cache-file | --cache-file | --cache-fil | --cache-fi \
993 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
994 ac_prev=cache_file ;;
995 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
996 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
997 cache_file=$ac_optarg ;;
999 --config-cache | -C)
1000 cache_file=config.cache ;;
1002 -datadir | --datadir | --datadi | --datad)
1003 ac_prev=datadir ;;
1004 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1005 datadir=$ac_optarg ;;
1007 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1008 | --dataroo | --dataro | --datar)
1009 ac_prev=datarootdir ;;
1010 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1011 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1012 datarootdir=$ac_optarg ;;
1014 -disable-* | --disable-*)
1015 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1016 # Reject names that are not valid shell variable names.
1017 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1018 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1019 { (exit 1); exit 1; }; }
1020 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1021 eval enable_$ac_feature=no ;;
1023 -docdir | --docdir | --docdi | --doc | --do)
1024 ac_prev=docdir ;;
1025 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1026 docdir=$ac_optarg ;;
1028 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1029 ac_prev=dvidir ;;
1030 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1031 dvidir=$ac_optarg ;;
1033 -enable-* | --enable-*)
1034 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1035 # Reject names that are not valid shell variable names.
1036 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1037 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1038 { (exit 1); exit 1; }; }
1039 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1040 eval enable_$ac_feature=\$ac_optarg ;;
1042 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1043 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1044 | --exec | --exe | --ex)
1045 ac_prev=exec_prefix ;;
1046 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1047 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1048 | --exec=* | --exe=* | --ex=*)
1049 exec_prefix=$ac_optarg ;;
1051 -gas | --gas | --ga | --g)
1052 # Obsolete; use --with-gas.
1053 with_gas=yes ;;
1055 -help | --help | --hel | --he | -h)
1056 ac_init_help=long ;;
1057 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1058 ac_init_help=recursive ;;
1059 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1060 ac_init_help=short ;;
1062 -host | --host | --hos | --ho)
1063 ac_prev=host_alias ;;
1064 -host=* | --host=* | --hos=* | --ho=*)
1065 host_alias=$ac_optarg ;;
1067 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1068 ac_prev=htmldir ;;
1069 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1070 | --ht=*)
1071 htmldir=$ac_optarg ;;
1073 -includedir | --includedir | --includedi | --included | --include \
1074 | --includ | --inclu | --incl | --inc)
1075 ac_prev=includedir ;;
1076 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1077 | --includ=* | --inclu=* | --incl=* | --inc=*)
1078 includedir=$ac_optarg ;;
1080 -infodir | --infodir | --infodi | --infod | --info | --inf)
1081 ac_prev=infodir ;;
1082 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1083 infodir=$ac_optarg ;;
1085 -libdir | --libdir | --libdi | --libd)
1086 ac_prev=libdir ;;
1087 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1088 libdir=$ac_optarg ;;
1090 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1091 | --libexe | --libex | --libe)
1092 ac_prev=libexecdir ;;
1093 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1094 | --libexe=* | --libex=* | --libe=*)
1095 libexecdir=$ac_optarg ;;
1097 -localedir | --localedir | --localedi | --localed | --locale)
1098 ac_prev=localedir ;;
1099 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1100 localedir=$ac_optarg ;;
1102 -localstatedir | --localstatedir | --localstatedi | --localstated \
1103 | --localstate | --localstat | --localsta | --localst | --locals)
1104 ac_prev=localstatedir ;;
1105 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1106 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1107 localstatedir=$ac_optarg ;;
1109 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1110 ac_prev=mandir ;;
1111 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1112 mandir=$ac_optarg ;;
1114 -nfp | --nfp | --nf)
1115 # Obsolete; use --without-fp.
1116 with_fp=no ;;
1118 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1119 | --no-cr | --no-c | -n)
1120 no_create=yes ;;
1122 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1123 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1124 no_recursion=yes ;;
1126 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1127 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1128 | --oldin | --oldi | --old | --ol | --o)
1129 ac_prev=oldincludedir ;;
1130 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1131 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1132 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1133 oldincludedir=$ac_optarg ;;
1135 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1136 ac_prev=prefix ;;
1137 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1138 prefix=$ac_optarg ;;
1140 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1141 | --program-pre | --program-pr | --program-p)
1142 ac_prev=program_prefix ;;
1143 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1144 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1145 program_prefix=$ac_optarg ;;
1147 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1148 | --program-suf | --program-su | --program-s)
1149 ac_prev=program_suffix ;;
1150 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1151 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1152 program_suffix=$ac_optarg ;;
1154 -program-transform-name | --program-transform-name \
1155 | --program-transform-nam | --program-transform-na \
1156 | --program-transform-n | --program-transform- \
1157 | --program-transform | --program-transfor \
1158 | --program-transfo | --program-transf \
1159 | --program-trans | --program-tran \
1160 | --progr-tra | --program-tr | --program-t)
1161 ac_prev=program_transform_name ;;
1162 -program-transform-name=* | --program-transform-name=* \
1163 | --program-transform-nam=* | --program-transform-na=* \
1164 | --program-transform-n=* | --program-transform-=* \
1165 | --program-transform=* | --program-transfor=* \
1166 | --program-transfo=* | --program-transf=* \
1167 | --program-trans=* | --program-tran=* \
1168 | --progr-tra=* | --program-tr=* | --program-t=*)
1169 program_transform_name=$ac_optarg ;;
1171 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1172 ac_prev=pdfdir ;;
1173 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1174 pdfdir=$ac_optarg ;;
1176 -psdir | --psdir | --psdi | --psd | --ps)
1177 ac_prev=psdir ;;
1178 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1179 psdir=$ac_optarg ;;
1181 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1182 | -silent | --silent | --silen | --sile | --sil)
1183 silent=yes ;;
1185 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1186 ac_prev=sbindir ;;
1187 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1188 | --sbi=* | --sb=*)
1189 sbindir=$ac_optarg ;;
1191 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1192 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1193 | --sharedst | --shareds | --shared | --share | --shar \
1194 | --sha | --sh)
1195 ac_prev=sharedstatedir ;;
1196 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1197 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1198 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1199 | --sha=* | --sh=*)
1200 sharedstatedir=$ac_optarg ;;
1202 -site | --site | --sit)
1203 ac_prev=site ;;
1204 -site=* | --site=* | --sit=*)
1205 site=$ac_optarg ;;
1207 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1208 ac_prev=srcdir ;;
1209 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1210 srcdir=$ac_optarg ;;
1212 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1213 | --syscon | --sysco | --sysc | --sys | --sy)
1214 ac_prev=sysconfdir ;;
1215 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1216 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1217 sysconfdir=$ac_optarg ;;
1219 -target | --target | --targe | --targ | --tar | --ta | --t)
1220 ac_prev=target_alias ;;
1221 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1222 target_alias=$ac_optarg ;;
1224 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1225 verbose=yes ;;
1227 -version | --version | --versio | --versi | --vers | -V)
1228 ac_init_version=: ;;
1230 -with-* | --with-*)
1231 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1232 # Reject names that are not valid shell variable names.
1233 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1234 { echo "$as_me: error: invalid package name: $ac_package" >&2
1235 { (exit 1); exit 1; }; }
1236 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1237 eval with_$ac_package=\$ac_optarg ;;
1239 -without-* | --without-*)
1240 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1241 # Reject names that are not valid shell variable names.
1242 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1243 { echo "$as_me: error: invalid package name: $ac_package" >&2
1244 { (exit 1); exit 1; }; }
1245 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1246 eval with_$ac_package=no ;;
1248 --x)
1249 # Obsolete; use --with-x.
1250 with_x=yes ;;
1252 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1253 | --x-incl | --x-inc | --x-in | --x-i)
1254 ac_prev=x_includes ;;
1255 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1256 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1257 x_includes=$ac_optarg ;;
1259 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1260 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1261 ac_prev=x_libraries ;;
1262 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1263 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1264 x_libraries=$ac_optarg ;;
1266 -*) { echo "$as_me: error: unrecognized option: $ac_option
1267 Try \`$0 --help' for more information." >&2
1268 { (exit 1); exit 1; }; }
1271 *=*)
1272 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1273 # Reject names that are not valid shell variable names.
1274 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1275 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1276 { (exit 1); exit 1; }; }
1277 eval $ac_envvar=\$ac_optarg
1278 export $ac_envvar ;;
1281 # FIXME: should be removed in autoconf 3.0.
1282 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1283 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1284 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1285 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1288 esac
1289 done
1291 if test -n "$ac_prev"; then
1292 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1293 { echo "$as_me: error: missing argument to $ac_option" >&2
1294 { (exit 1); exit 1; }; }
1297 # Be sure to have absolute directory names.
1298 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1299 datadir sysconfdir sharedstatedir localstatedir includedir \
1300 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1301 libdir localedir mandir
1303 eval ac_val=\$$ac_var
1304 case $ac_val in
1305 [\\/$]* | ?:[\\/]* ) continue;;
1306 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1307 esac
1308 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1309 { (exit 1); exit 1; }; }
1310 done
1312 # There might be people who depend on the old broken behavior: `$host'
1313 # used to hold the argument of --host etc.
1314 # FIXME: To remove some day.
1315 build=$build_alias
1316 host=$host_alias
1317 target=$target_alias
1319 # FIXME: To remove some day.
1320 if test "x$host_alias" != x; then
1321 if test "x$build_alias" = x; then
1322 cross_compiling=maybe
1323 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1324 If a cross compiler is detected then cross compile mode will be used." >&2
1325 elif test "x$build_alias" != "x$host_alias"; then
1326 cross_compiling=yes
1330 ac_tool_prefix=
1331 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1333 test "$silent" = yes && exec 6>/dev/null
1336 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1337 ac_ls_di=`ls -di .` &&
1338 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1339 { echo "$as_me: error: Working directory cannot be determined" >&2
1340 { (exit 1); exit 1; }; }
1341 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1342 { echo "$as_me: error: pwd does not report name of working directory" >&2
1343 { (exit 1); exit 1; }; }
1346 # Find the source files, if location was not specified.
1347 if test -z "$srcdir"; then
1348 ac_srcdir_defaulted=yes
1349 # Try the directory containing this script, then the parent directory.
1350 ac_confdir=`$as_dirname -- "$0" ||
1351 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1352 X"$0" : 'X\(//\)[^/]' \| \
1353 X"$0" : 'X\(//\)$' \| \
1354 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1355 echo X"$0" |
1356 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1357 s//\1/
1360 /^X\(\/\/\)[^/].*/{
1361 s//\1/
1364 /^X\(\/\/\)$/{
1365 s//\1/
1368 /^X\(\/\).*/{
1369 s//\1/
1372 s/.*/./; q'`
1373 srcdir=$ac_confdir
1374 if test ! -r "$srcdir/$ac_unique_file"; then
1375 srcdir=..
1377 else
1378 ac_srcdir_defaulted=no
1380 if test ! -r "$srcdir/$ac_unique_file"; then
1381 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1382 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1383 { (exit 1); exit 1; }; }
1385 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1386 ac_abs_confdir=`(
1387 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1388 { (exit 1); exit 1; }; }
1389 pwd)`
1390 # When building in place, set srcdir=.
1391 if test "$ac_abs_confdir" = "$ac_pwd"; then
1392 srcdir=.
1394 # Remove unnecessary trailing slashes from srcdir.
1395 # Double slashes in file names in object file debugging info
1396 # mess up M-x gdb in Emacs.
1397 case $srcdir in
1398 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1399 esac
1400 for ac_var in $ac_precious_vars; do
1401 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1402 eval ac_env_${ac_var}_value=\$${ac_var}
1403 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1404 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1405 done
1408 # Report the --help message.
1410 if test "$ac_init_help" = "long"; then
1411 # Omit some internal or obsolete options to make the list less imposing.
1412 # This message is too long to be a string in the A/UX 3.1 sh.
1413 cat <<_ACEOF
1414 \`configure' configures Barry OpenSync Plugin 0.4x 0.17 to adapt to many kinds of systems.
1416 Usage: $0 [OPTION]... [VAR=VALUE]...
1418 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1419 VAR=VALUE. See below for descriptions of some of the useful variables.
1421 Defaults for the options are specified in brackets.
1423 Configuration:
1424 -h, --help display this help and exit
1425 --help=short display options specific to this package
1426 --help=recursive display the short help of all the included packages
1427 -V, --version display version information and exit
1428 -q, --quiet, --silent do not print \`checking...' messages
1429 --cache-file=FILE cache test results in FILE [disabled]
1430 -C, --config-cache alias for \`--cache-file=config.cache'
1431 -n, --no-create do not create output files
1432 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1434 Installation directories:
1435 --prefix=PREFIX install architecture-independent files in PREFIX
1436 [$ac_default_prefix]
1437 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1438 [PREFIX]
1440 By default, \`make install' will install all the files in
1441 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1442 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1443 for instance \`--prefix=\$HOME'.
1445 For better control, use the options below.
1447 Fine tuning of the installation directories:
1448 --bindir=DIR user executables [EPREFIX/bin]
1449 --sbindir=DIR system admin executables [EPREFIX/sbin]
1450 --libexecdir=DIR program executables [EPREFIX/libexec]
1451 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1452 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1453 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1454 --libdir=DIR object code libraries [EPREFIX/lib]
1455 --includedir=DIR C header files [PREFIX/include]
1456 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1457 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1458 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1459 --infodir=DIR info documentation [DATAROOTDIR/info]
1460 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1461 --mandir=DIR man documentation [DATAROOTDIR/man]
1462 --docdir=DIR documentation root [DATAROOTDIR/doc/barry-opensync-plugin-0-4x]
1463 --htmldir=DIR html documentation [DOCDIR]
1464 --dvidir=DIR dvi documentation [DOCDIR]
1465 --pdfdir=DIR pdf documentation [DOCDIR]
1466 --psdir=DIR ps documentation [DOCDIR]
1467 _ACEOF
1469 cat <<\_ACEOF
1471 Program names:
1472 --program-prefix=PREFIX prepend PREFIX to installed program names
1473 --program-suffix=SUFFIX append SUFFIX to installed program names
1474 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1476 System types:
1477 --build=BUILD configure for building on BUILD [guessed]
1478 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1479 _ACEOF
1482 if test -n "$ac_init_help"; then
1483 case $ac_init_help in
1484 short | recursive ) echo "Configuration of Barry OpenSync Plugin 0.4x 0.17:";;
1485 esac
1486 cat <<\_ACEOF
1488 Optional Features:
1489 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1490 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1491 --disable-dependency-tracking speeds up one-time build
1492 --enable-dependency-tracking do not reject slow dependency extractors
1493 --enable-static[=PKGS] build static libraries [default=no]
1494 --enable-shared[=PKGS] build shared libraries [default=yes]
1495 --enable-fast-install[=PKGS]
1496 optimize for fast installation [default=yes]
1497 --disable-libtool-lock avoid locking (might break parallel builds)
1499 Optional Packages:
1500 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1501 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1502 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1503 --with-pic try to use only PIC/non-PIC objects [default=use
1504 both]
1505 --with-tags[=TAGS] include additional configurations [automatic]
1507 Some influential environment variables:
1508 PKG_CONFIG path to pkg-config utility
1509 PACKAGE_CFLAGS
1510 C compiler flags for PACKAGE, overriding pkg-config
1511 PACKAGE_LIBS
1512 linker flags for PACKAGE, overriding pkg-config
1513 CC C compiler command
1514 CFLAGS C compiler flags
1515 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1516 nonstandard directory <lib dir>
1517 LIBS libraries to pass to the linker, e.g. -l<library>
1518 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1519 you have headers in a nonstandard directory <include dir>
1520 CPP C preprocessor
1521 CXX C++ compiler command
1522 CXXFLAGS C++ compiler flags
1523 CXXCPP C++ preprocessor
1524 F77 Fortran 77 compiler command
1525 FFLAGS Fortran 77 compiler flags
1526 BARRY_CFLAGS
1527 C compiler flags for BARRY, overriding pkg-config
1528 BARRY_LIBS linker flags for BARRY, overriding pkg-config
1530 Use these variables to override the choices made by `configure' or to help
1531 it to find libraries and programs with nonstandard names/locations.
1533 Report bugs to <barry-devel@lists.sourceforge.net>.
1534 _ACEOF
1535 ac_status=$?
1538 if test "$ac_init_help" = "recursive"; then
1539 # If there are subdirs, report their specific --help.
1540 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1541 test -d "$ac_dir" || continue
1542 ac_builddir=.
1544 case "$ac_dir" in
1545 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1547 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1548 # A ".." for each directory in $ac_dir_suffix.
1549 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1550 case $ac_top_builddir_sub in
1551 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1552 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1553 esac ;;
1554 esac
1555 ac_abs_top_builddir=$ac_pwd
1556 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1557 # for backward compatibility:
1558 ac_top_builddir=$ac_top_build_prefix
1560 case $srcdir in
1561 .) # We are building in place.
1562 ac_srcdir=.
1563 ac_top_srcdir=$ac_top_builddir_sub
1564 ac_abs_top_srcdir=$ac_pwd ;;
1565 [\\/]* | ?:[\\/]* ) # Absolute name.
1566 ac_srcdir=$srcdir$ac_dir_suffix;
1567 ac_top_srcdir=$srcdir
1568 ac_abs_top_srcdir=$srcdir ;;
1569 *) # Relative name.
1570 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1571 ac_top_srcdir=$ac_top_build_prefix$srcdir
1572 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1573 esac
1574 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1576 cd "$ac_dir" || { ac_status=$?; continue; }
1577 # Check for guested configure.
1578 if test -f "$ac_srcdir/configure.gnu"; then
1579 echo &&
1580 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1581 elif test -f "$ac_srcdir/configure"; then
1582 echo &&
1583 $SHELL "$ac_srcdir/configure" --help=recursive
1584 else
1585 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1586 fi || ac_status=$?
1587 cd "$ac_pwd" || { ac_status=$?; break; }
1588 done
1591 test -n "$ac_init_help" && exit $ac_status
1592 if $ac_init_version; then
1593 cat <<\_ACEOF
1594 Barry OpenSync Plugin 0.4x configure 0.17
1595 generated by GNU Autoconf 2.61
1597 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1598 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1599 This configure script is free software; the Free Software Foundation
1600 gives unlimited permission to copy, distribute and modify it.
1601 _ACEOF
1602 exit
1604 cat >config.log <<_ACEOF
1605 This file contains any messages produced by compilers while
1606 running configure, to aid debugging if configure makes a mistake.
1608 It was created by Barry OpenSync Plugin 0.4x $as_me 0.17, which was
1609 generated by GNU Autoconf 2.61. Invocation command line was
1611 $ $0 $@
1613 _ACEOF
1614 exec 5>>config.log
1616 cat <<_ASUNAME
1617 ## --------- ##
1618 ## Platform. ##
1619 ## --------- ##
1621 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1622 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1623 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1624 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1625 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1627 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1628 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1630 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1631 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1632 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1633 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1634 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1635 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1636 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1638 _ASUNAME
1640 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1641 for as_dir in $PATH
1643 IFS=$as_save_IFS
1644 test -z "$as_dir" && as_dir=.
1645 echo "PATH: $as_dir"
1646 done
1647 IFS=$as_save_IFS
1649 } >&5
1651 cat >&5 <<_ACEOF
1654 ## ----------- ##
1655 ## Core tests. ##
1656 ## ----------- ##
1658 _ACEOF
1661 # Keep a trace of the command line.
1662 # Strip out --no-create and --no-recursion so they do not pile up.
1663 # Strip out --silent because we don't want to record it for future runs.
1664 # Also quote any args containing shell meta-characters.
1665 # Make two passes to allow for proper duplicate-argument suppression.
1666 ac_configure_args=
1667 ac_configure_args0=
1668 ac_configure_args1=
1669 ac_must_keep_next=false
1670 for ac_pass in 1 2
1672 for ac_arg
1674 case $ac_arg in
1675 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1676 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1677 | -silent | --silent | --silen | --sile | --sil)
1678 continue ;;
1679 *\'*)
1680 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1681 esac
1682 case $ac_pass in
1683 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1685 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1686 if test $ac_must_keep_next = true; then
1687 ac_must_keep_next=false # Got value, back to normal.
1688 else
1689 case $ac_arg in
1690 *=* | --config-cache | -C | -disable-* | --disable-* \
1691 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1692 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1693 | -with-* | --with-* | -without-* | --without-* | --x)
1694 case "$ac_configure_args0 " in
1695 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1696 esac
1698 -* ) ac_must_keep_next=true ;;
1699 esac
1701 ac_configure_args="$ac_configure_args '$ac_arg'"
1703 esac
1704 done
1705 done
1706 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1707 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1709 # When interrupted or exit'd, cleanup temporary files, and complete
1710 # config.log. We remove comments because anyway the quotes in there
1711 # would cause problems or look ugly.
1712 # WARNING: Use '\'' to represent an apostrophe within the trap.
1713 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1714 trap 'exit_status=$?
1715 # Save into config.log some information that might help in debugging.
1717 echo
1719 cat <<\_ASBOX
1720 ## ---------------- ##
1721 ## Cache variables. ##
1722 ## ---------------- ##
1723 _ASBOX
1724 echo
1725 # The following way of writing the cache mishandles newlines in values,
1727 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1728 eval ac_val=\$$ac_var
1729 case $ac_val in #(
1730 *${as_nl}*)
1731 case $ac_var in #(
1732 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1733 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1734 esac
1735 case $ac_var in #(
1736 _ | IFS | as_nl) ;; #(
1737 *) $as_unset $ac_var ;;
1738 esac ;;
1739 esac
1740 done
1741 (set) 2>&1 |
1742 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1743 *${as_nl}ac_space=\ *)
1744 sed -n \
1745 "s/'\''/'\''\\\\'\'''\''/g;
1746 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1747 ;; #(
1749 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1751 esac |
1752 sort
1754 echo
1756 cat <<\_ASBOX
1757 ## ----------------- ##
1758 ## Output variables. ##
1759 ## ----------------- ##
1760 _ASBOX
1761 echo
1762 for ac_var in $ac_subst_vars
1764 eval ac_val=\$$ac_var
1765 case $ac_val in
1766 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1767 esac
1768 echo "$ac_var='\''$ac_val'\''"
1769 done | sort
1770 echo
1772 if test -n "$ac_subst_files"; then
1773 cat <<\_ASBOX
1774 ## ------------------- ##
1775 ## File substitutions. ##
1776 ## ------------------- ##
1777 _ASBOX
1778 echo
1779 for ac_var in $ac_subst_files
1781 eval ac_val=\$$ac_var
1782 case $ac_val in
1783 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1784 esac
1785 echo "$ac_var='\''$ac_val'\''"
1786 done | sort
1787 echo
1790 if test -s confdefs.h; then
1791 cat <<\_ASBOX
1792 ## ----------- ##
1793 ## confdefs.h. ##
1794 ## ----------- ##
1795 _ASBOX
1796 echo
1797 cat confdefs.h
1798 echo
1800 test "$ac_signal" != 0 &&
1801 echo "$as_me: caught signal $ac_signal"
1802 echo "$as_me: exit $exit_status"
1803 } >&5
1804 rm -f core *.core core.conftest.* &&
1805 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1806 exit $exit_status
1808 for ac_signal in 1 2 13 15; do
1809 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1810 done
1811 ac_signal=0
1813 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1814 rm -f -r conftest* confdefs.h
1816 # Predefined preprocessor variables.
1818 cat >>confdefs.h <<_ACEOF
1819 #define PACKAGE_NAME "$PACKAGE_NAME"
1820 _ACEOF
1823 cat >>confdefs.h <<_ACEOF
1824 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1825 _ACEOF
1828 cat >>confdefs.h <<_ACEOF
1829 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1830 _ACEOF
1833 cat >>confdefs.h <<_ACEOF
1834 #define PACKAGE_STRING "$PACKAGE_STRING"
1835 _ACEOF
1838 cat >>confdefs.h <<_ACEOF
1839 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1840 _ACEOF
1843 # Let the site file select an alternate cache file if it wants to.
1844 # Prefer explicitly selected file to automatically selected ones.
1845 if test -n "$CONFIG_SITE"; then
1846 set x "$CONFIG_SITE"
1847 elif test "x$prefix" != xNONE; then
1848 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1849 else
1850 set x "$ac_default_prefix/share/config.site" \
1851 "$ac_default_prefix/etc/config.site"
1853 shift
1854 for ac_site_file
1856 if test -r "$ac_site_file"; then
1857 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1858 echo "$as_me: loading site script $ac_site_file" >&6;}
1859 sed 's/^/| /' "$ac_site_file" >&5
1860 . "$ac_site_file"
1862 done
1864 if test -r "$cache_file"; then
1865 # Some versions of bash will fail to source /dev/null (special
1866 # files actually), so we avoid doing that.
1867 if test -f "$cache_file"; then
1868 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1869 echo "$as_me: loading cache $cache_file" >&6;}
1870 case $cache_file in
1871 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1872 *) . "./$cache_file";;
1873 esac
1875 else
1876 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1877 echo "$as_me: creating cache $cache_file" >&6;}
1878 >$cache_file
1881 # Check that the precious variables saved in the cache have kept the same
1882 # value.
1883 ac_cache_corrupted=false
1884 for ac_var in $ac_precious_vars; do
1885 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1886 eval ac_new_set=\$ac_env_${ac_var}_set
1887 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1888 eval ac_new_val=\$ac_env_${ac_var}_value
1889 case $ac_old_set,$ac_new_set in
1890 set,)
1891 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1892 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1893 ac_cache_corrupted=: ;;
1894 ,set)
1895 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1896 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1897 ac_cache_corrupted=: ;;
1898 ,);;
1900 if test "x$ac_old_val" != "x$ac_new_val"; then
1901 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1902 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1903 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1904 echo "$as_me: former value: $ac_old_val" >&2;}
1905 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1906 echo "$as_me: current value: $ac_new_val" >&2;}
1907 ac_cache_corrupted=:
1908 fi;;
1909 esac
1910 # Pass precious variables to config.status.
1911 if test "$ac_new_set" = set; then
1912 case $ac_new_val in
1913 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1914 *) ac_arg=$ac_var=$ac_new_val ;;
1915 esac
1916 case " $ac_configure_args " in
1917 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1918 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1919 esac
1921 done
1922 if $ac_cache_corrupted; then
1923 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1924 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1925 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1926 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1927 { (exit 1); exit 1; }; }
1954 ac_ext=c
1955 ac_cpp='$CPP $CPPFLAGS'
1956 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1957 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1958 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1962 ac_config_headers="$ac_config_headers config.h"
1964 ac_aux_dir=
1965 for ac_dir in . "$srcdir"/.; do
1966 if test -f "$ac_dir/install-sh"; then
1967 ac_aux_dir=$ac_dir
1968 ac_install_sh="$ac_aux_dir/install-sh -c"
1969 break
1970 elif test -f "$ac_dir/install.sh"; then
1971 ac_aux_dir=$ac_dir
1972 ac_install_sh="$ac_aux_dir/install.sh -c"
1973 break
1974 elif test -f "$ac_dir/shtool"; then
1975 ac_aux_dir=$ac_dir
1976 ac_install_sh="$ac_aux_dir/shtool install -c"
1977 break
1979 done
1980 if test -z "$ac_aux_dir"; then
1981 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in . \"$srcdir\"/." >&5
1982 echo "$as_me: error: cannot find install-sh or install.sh in . \"$srcdir\"/." >&2;}
1983 { (exit 1); exit 1; }; }
1986 # These three variables are undocumented and unsupported,
1987 # and are intended to be withdrawn in a future Autoconf release.
1988 # They can cause serious problems if a builder's source tree is in a directory
1989 # whose full name contains unusual characters.
1990 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1991 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1992 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1996 am__api_version='1.10'
1998 # Find a good install program. We prefer a C program (faster),
1999 # so one script is as good as another. But avoid the broken or
2000 # incompatible versions:
2001 # SysV /etc/install, /usr/sbin/install
2002 # SunOS /usr/etc/install
2003 # IRIX /sbin/install
2004 # AIX /bin/install
2005 # AmigaOS /C/install, which installs bootblocks on floppy discs
2006 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2007 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2008 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2009 # OS/2's system install, which has a completely different semantic
2010 # ./install, which can be erroneously created by make from ./install.sh.
2011 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2012 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
2013 if test -z "$INSTALL"; then
2014 if test "${ac_cv_path_install+set}" = set; then
2015 echo $ECHO_N "(cached) $ECHO_C" >&6
2016 else
2017 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2018 for as_dir in $PATH
2020 IFS=$as_save_IFS
2021 test -z "$as_dir" && as_dir=.
2022 # Account for people who put trailing slashes in PATH elements.
2023 case $as_dir/ in
2024 ./ | .// | /cC/* | \
2025 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2026 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2027 /usr/ucb/* ) ;;
2029 # OSF1 and SCO ODT 3.0 have their own names for install.
2030 # Don't use installbsd from OSF since it installs stuff as root
2031 # by default.
2032 for ac_prog in ginstall scoinst install; do
2033 for ac_exec_ext in '' $ac_executable_extensions; do
2034 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2035 if test $ac_prog = install &&
2036 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2037 # AIX install. It has an incompatible calling convention.
2039 elif test $ac_prog = install &&
2040 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2041 # program-specific install script used by HP pwplus--don't use.
2043 else
2044 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2045 break 3
2048 done
2049 done
2051 esac
2052 done
2053 IFS=$as_save_IFS
2057 if test "${ac_cv_path_install+set}" = set; then
2058 INSTALL=$ac_cv_path_install
2059 else
2060 # As a last resort, use the slow shell script. Don't cache a
2061 # value for INSTALL within a source directory, because that will
2062 # break other packages using the cache if that directory is
2063 # removed, or if the value is a relative name.
2064 INSTALL=$ac_install_sh
2067 { echo "$as_me:$LINENO: result: $INSTALL" >&5
2068 echo "${ECHO_T}$INSTALL" >&6; }
2070 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2071 # It thinks the first close brace ends the variable substitution.
2072 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2074 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2076 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2078 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2079 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2080 # Just in case
2081 sleep 1
2082 echo timestamp > conftest.file
2083 # Do `set' in a subshell so we don't clobber the current shell's
2084 # arguments. Must try -L first in case configure is actually a
2085 # symlink; some systems play weird games with the mod time of symlinks
2086 # (eg FreeBSD returns the mod time of the symlink's containing
2087 # directory).
2088 if (
2089 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2090 if test "$*" = "X"; then
2091 # -L didn't work.
2092 set X `ls -t $srcdir/configure conftest.file`
2094 rm -f conftest.file
2095 if test "$*" != "X $srcdir/configure conftest.file" \
2096 && test "$*" != "X conftest.file $srcdir/configure"; then
2098 # If neither matched, then we have a broken ls. This can happen
2099 # if, for instance, CONFIG_SHELL is bash and it inherits a
2100 # broken ls alias from the environment. This has actually
2101 # happened. Such a system could not be considered "sane".
2102 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2103 alias in your environment" >&5
2104 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2105 alias in your environment" >&2;}
2106 { (exit 1); exit 1; }; }
2109 test "$2" = conftest.file
2111 then
2112 # Ok.
2114 else
2115 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2116 Check your system clock" >&5
2117 echo "$as_me: error: newly created file is older than distributed files!
2118 Check your system clock" >&2;}
2119 { (exit 1); exit 1; }; }
2121 { echo "$as_me:$LINENO: result: yes" >&5
2122 echo "${ECHO_T}yes" >&6; }
2123 test "$program_prefix" != NONE &&
2124 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2125 # Use a double $ so make ignores it.
2126 test "$program_suffix" != NONE &&
2127 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2128 # Double any \ or $. echo might interpret backslashes.
2129 # By default was `s,x,x', remove it if useless.
2130 cat <<\_ACEOF >conftest.sed
2131 s/[\\$]/&&/g;s/;s,x,x,$//
2132 _ACEOF
2133 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2134 rm -f conftest.sed
2136 # expand $ac_aux_dir to an absolute path
2137 am_aux_dir=`cd $ac_aux_dir && pwd`
2139 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2140 # Use eval to expand $SHELL
2141 if eval "$MISSING --run true"; then
2142 am_missing_run="$MISSING --run "
2143 else
2144 am_missing_run=
2145 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2146 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2149 { echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2150 echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
2151 if test -z "$MKDIR_P"; then
2152 if test "${ac_cv_path_mkdir+set}" = set; then
2153 echo $ECHO_N "(cached) $ECHO_C" >&6
2154 else
2155 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2156 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2158 IFS=$as_save_IFS
2159 test -z "$as_dir" && as_dir=.
2160 for ac_prog in mkdir gmkdir; do
2161 for ac_exec_ext in '' $ac_executable_extensions; do
2162 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2163 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2164 'mkdir (GNU coreutils) '* | \
2165 'mkdir (coreutils) '* | \
2166 'mkdir (fileutils) '4.1*)
2167 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2168 break 3;;
2169 esac
2170 done
2171 done
2172 done
2173 IFS=$as_save_IFS
2177 if test "${ac_cv_path_mkdir+set}" = set; then
2178 MKDIR_P="$ac_cv_path_mkdir -p"
2179 else
2180 # As a last resort, use the slow shell script. Don't cache a
2181 # value for MKDIR_P within a source directory, because that will
2182 # break other packages using the cache if that directory is
2183 # removed, or if the value is a relative name.
2184 test -d ./--version && rmdir ./--version
2185 MKDIR_P="$ac_install_sh -d"
2188 { echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2189 echo "${ECHO_T}$MKDIR_P" >&6; }
2191 mkdir_p="$MKDIR_P"
2192 case $mkdir_p in
2193 [\\/$]* | ?:[\\/]*) ;;
2194 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2195 esac
2197 for ac_prog in gawk mawk nawk awk
2199 # Extract the first word of "$ac_prog", so it can be a program name with args.
2200 set dummy $ac_prog; ac_word=$2
2201 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2202 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2203 if test "${ac_cv_prog_AWK+set}" = set; then
2204 echo $ECHO_N "(cached) $ECHO_C" >&6
2205 else
2206 if test -n "$AWK"; then
2207 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2208 else
2209 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2210 for as_dir in $PATH
2212 IFS=$as_save_IFS
2213 test -z "$as_dir" && as_dir=.
2214 for ac_exec_ext in '' $ac_executable_extensions; do
2215 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2216 ac_cv_prog_AWK="$ac_prog"
2217 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2218 break 2
2220 done
2221 done
2222 IFS=$as_save_IFS
2226 AWK=$ac_cv_prog_AWK
2227 if test -n "$AWK"; then
2228 { echo "$as_me:$LINENO: result: $AWK" >&5
2229 echo "${ECHO_T}$AWK" >&6; }
2230 else
2231 { echo "$as_me:$LINENO: result: no" >&5
2232 echo "${ECHO_T}no" >&6; }
2236 test -n "$AWK" && break
2237 done
2239 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2240 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2241 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2242 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2243 echo $ECHO_N "(cached) $ECHO_C" >&6
2244 else
2245 cat >conftest.make <<\_ACEOF
2246 SHELL = /bin/sh
2247 all:
2248 @echo '@@@%%%=$(MAKE)=@@@%%%'
2249 _ACEOF
2250 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2251 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2252 *@@@%%%=?*=@@@%%%*)
2253 eval ac_cv_prog_make_${ac_make}_set=yes;;
2255 eval ac_cv_prog_make_${ac_make}_set=no;;
2256 esac
2257 rm -f conftest.make
2259 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2260 { echo "$as_me:$LINENO: result: yes" >&5
2261 echo "${ECHO_T}yes" >&6; }
2262 SET_MAKE=
2263 else
2264 { echo "$as_me:$LINENO: result: no" >&5
2265 echo "${ECHO_T}no" >&6; }
2266 SET_MAKE="MAKE=${MAKE-make}"
2269 rm -rf .tst 2>/dev/null
2270 mkdir .tst 2>/dev/null
2271 if test -d .tst; then
2272 am__leading_dot=.
2273 else
2274 am__leading_dot=_
2276 rmdir .tst 2>/dev/null
2278 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2279 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2280 # is not polluted with repeated "-I."
2281 am__isrc=' -I$(srcdir)'
2282 # test to see if srcdir already configured
2283 if test -f $srcdir/config.status; then
2284 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2285 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2286 { (exit 1); exit 1; }; }
2290 # test whether we have cygpath
2291 if test -z "$CYGPATH_W"; then
2292 if (cygpath --version) >/dev/null 2>/dev/null; then
2293 CYGPATH_W='cygpath -w'
2294 else
2295 CYGPATH_W=echo
2300 # Define the identity of the package.
2301 PACKAGE='barry-opensync-plugin-0-4x'
2302 VERSION='0.17'
2305 cat >>confdefs.h <<_ACEOF
2306 #define PACKAGE "$PACKAGE"
2307 _ACEOF
2310 cat >>confdefs.h <<_ACEOF
2311 #define VERSION "$VERSION"
2312 _ACEOF
2314 # Some tools Automake needs.
2316 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2319 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2322 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2325 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2328 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2330 install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
2332 # Installed binaries are usually stripped using `strip' when the user
2333 # run `make install-strip'. However `strip' might not be the right
2334 # tool to use in cross-compilation environments, therefore Automake
2335 # will honor the `STRIP' environment variable to overrule this program.
2336 if test "$cross_compiling" != no; then
2337 if test -n "$ac_tool_prefix"; then
2338 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2339 set dummy ${ac_tool_prefix}strip; ac_word=$2
2340 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2341 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2342 if test "${ac_cv_prog_STRIP+set}" = set; then
2343 echo $ECHO_N "(cached) $ECHO_C" >&6
2344 else
2345 if test -n "$STRIP"; then
2346 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2347 else
2348 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2349 for as_dir in $PATH
2351 IFS=$as_save_IFS
2352 test -z "$as_dir" && as_dir=.
2353 for ac_exec_ext in '' $ac_executable_extensions; do
2354 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2355 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2356 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2357 break 2
2359 done
2360 done
2361 IFS=$as_save_IFS
2365 STRIP=$ac_cv_prog_STRIP
2366 if test -n "$STRIP"; then
2367 { echo "$as_me:$LINENO: result: $STRIP" >&5
2368 echo "${ECHO_T}$STRIP" >&6; }
2369 else
2370 { echo "$as_me:$LINENO: result: no" >&5
2371 echo "${ECHO_T}no" >&6; }
2376 if test -z "$ac_cv_prog_STRIP"; then
2377 ac_ct_STRIP=$STRIP
2378 # Extract the first word of "strip", so it can be a program name with args.
2379 set dummy strip; ac_word=$2
2380 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2381 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2382 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2383 echo $ECHO_N "(cached) $ECHO_C" >&6
2384 else
2385 if test -n "$ac_ct_STRIP"; then
2386 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2387 else
2388 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2389 for as_dir in $PATH
2391 IFS=$as_save_IFS
2392 test -z "$as_dir" && as_dir=.
2393 for ac_exec_ext in '' $ac_executable_extensions; do
2394 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2395 ac_cv_prog_ac_ct_STRIP="strip"
2396 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2397 break 2
2399 done
2400 done
2401 IFS=$as_save_IFS
2405 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2406 if test -n "$ac_ct_STRIP"; then
2407 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2408 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2409 else
2410 { echo "$as_me:$LINENO: result: no" >&5
2411 echo "${ECHO_T}no" >&6; }
2414 if test "x$ac_ct_STRIP" = x; then
2415 STRIP=":"
2416 else
2417 case $cross_compiling:$ac_tool_warned in
2418 yes:)
2419 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2420 whose name does not start with the host triplet. If you think this
2421 configuration is useful to you, please write to autoconf@gnu.org." >&5
2422 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2423 whose name does not start with the host triplet. If you think this
2424 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2425 ac_tool_warned=yes ;;
2426 esac
2427 STRIP=$ac_ct_STRIP
2429 else
2430 STRIP="$ac_cv_prog_STRIP"
2434 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2436 # We need awk for the "check" target. The system "awk" is bad on
2437 # some platforms.
2438 # Always define AMTAR for backward compatibility.
2440 AMTAR=${AMTAR-"${am_missing_run}tar"}
2442 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2449 pkg_modules="libopensync1 glib-2.0"
2452 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
2453 if test -n "$ac_tool_prefix"; then
2454 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
2455 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
2456 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2457 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2458 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
2459 echo $ECHO_N "(cached) $ECHO_C" >&6
2460 else
2461 case $PKG_CONFIG in
2462 [\\/]* | ?:[\\/]*)
2463 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
2466 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2467 for as_dir in $PATH
2469 IFS=$as_save_IFS
2470 test -z "$as_dir" && as_dir=.
2471 for ac_exec_ext in '' $ac_executable_extensions; do
2472 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2473 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
2474 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2475 break 2
2477 done
2478 done
2479 IFS=$as_save_IFS
2482 esac
2484 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
2485 if test -n "$PKG_CONFIG"; then
2486 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
2487 echo "${ECHO_T}$PKG_CONFIG" >&6; }
2488 else
2489 { echo "$as_me:$LINENO: result: no" >&5
2490 echo "${ECHO_T}no" >&6; }
2495 if test -z "$ac_cv_path_PKG_CONFIG"; then
2496 ac_pt_PKG_CONFIG=$PKG_CONFIG
2497 # Extract the first word of "pkg-config", so it can be a program name with args.
2498 set dummy pkg-config; ac_word=$2
2499 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2500 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2501 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
2502 echo $ECHO_N "(cached) $ECHO_C" >&6
2503 else
2504 case $ac_pt_PKG_CONFIG in
2505 [\\/]* | ?:[\\/]*)
2506 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
2509 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2510 for as_dir in $PATH
2512 IFS=$as_save_IFS
2513 test -z "$as_dir" && as_dir=.
2514 for ac_exec_ext in '' $ac_executable_extensions; do
2515 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2516 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
2517 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2518 break 2
2520 done
2521 done
2522 IFS=$as_save_IFS
2525 esac
2527 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
2528 if test -n "$ac_pt_PKG_CONFIG"; then
2529 { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
2530 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
2531 else
2532 { echo "$as_me:$LINENO: result: no" >&5
2533 echo "${ECHO_T}no" >&6; }
2536 if test "x$ac_pt_PKG_CONFIG" = x; then
2537 PKG_CONFIG=""
2538 else
2539 case $cross_compiling:$ac_tool_warned in
2540 yes:)
2541 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2542 whose name does not start with the host triplet. If you think this
2543 configuration is useful to you, please write to autoconf@gnu.org." >&5
2544 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2545 whose name does not start with the host triplet. If you think this
2546 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2547 ac_tool_warned=yes ;;
2548 esac
2549 PKG_CONFIG=$ac_pt_PKG_CONFIG
2551 else
2552 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
2556 if test -n "$PKG_CONFIG"; then
2557 _pkg_min_version=0.9.0
2558 { echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
2559 echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; }
2560 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
2561 { echo "$as_me:$LINENO: result: yes" >&5
2562 echo "${ECHO_T}yes" >&6; }
2563 else
2564 { echo "$as_me:$LINENO: result: no" >&5
2565 echo "${ECHO_T}no" >&6; }
2566 PKG_CONFIG=""
2571 pkg_failed=no
2572 { echo "$as_me:$LINENO: checking for PACKAGE" >&5
2573 echo $ECHO_N "checking for PACKAGE... $ECHO_C" >&6; }
2575 if test -n "$PKG_CONFIG"; then
2576 if test -n "$PACKAGE_CFLAGS"; then
2577 pkg_cv_PACKAGE_CFLAGS="$PACKAGE_CFLAGS"
2578 else
2579 if test -n "$PKG_CONFIG" && \
2580 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\$pkg_modules\"") >&5
2581 ($PKG_CONFIG --exists --print-errors "$pkg_modules") 2>&5
2582 ac_status=$?
2583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2584 (exit $ac_status); }; then
2585 pkg_cv_PACKAGE_CFLAGS=`$PKG_CONFIG --cflags "$pkg_modules" 2>/dev/null`
2586 else
2587 pkg_failed=yes
2590 else
2591 pkg_failed=untried
2593 if test -n "$PKG_CONFIG"; then
2594 if test -n "$PACKAGE_LIBS"; then
2595 pkg_cv_PACKAGE_LIBS="$PACKAGE_LIBS"
2596 else
2597 if test -n "$PKG_CONFIG" && \
2598 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\$pkg_modules\"") >&5
2599 ($PKG_CONFIG --exists --print-errors "$pkg_modules") 2>&5
2600 ac_status=$?
2601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2602 (exit $ac_status); }; then
2603 pkg_cv_PACKAGE_LIBS=`$PKG_CONFIG --libs "$pkg_modules" 2>/dev/null`
2604 else
2605 pkg_failed=yes
2608 else
2609 pkg_failed=untried
2614 if test $pkg_failed = yes; then
2616 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
2617 _pkg_short_errors_supported=yes
2618 else
2619 _pkg_short_errors_supported=no
2621 if test $_pkg_short_errors_supported = yes; then
2622 PACKAGE_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "$pkg_modules"`
2623 else
2624 PACKAGE_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$pkg_modules"`
2626 # Put the nasty error message in config.log where it belongs
2627 echo "$PACKAGE_PKG_ERRORS" >&5
2629 { { echo "$as_me:$LINENO: error: Package requirements ($pkg_modules) were not met:
2631 $PACKAGE_PKG_ERRORS
2633 Consider adjusting the PKG_CONFIG_PATH environment variable if you
2634 installed software in a non-standard prefix.
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.
2639 " >&5
2640 echo "$as_me: error: Package requirements ($pkg_modules) were not met:
2642 $PACKAGE_PKG_ERRORS
2644 Consider adjusting the PKG_CONFIG_PATH environment variable if you
2645 installed software in a non-standard prefix.
2647 Alternatively, you may set the environment variables PACKAGE_CFLAGS
2648 and PACKAGE_LIBS to avoid the need to call pkg-config.
2649 See the pkg-config man page for more details.
2650 " >&2;}
2651 { (exit 1); exit 1; }; }
2652 elif test $pkg_failed = untried; then
2653 { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
2654 is in your PATH or set the PKG_CONFIG environment variable to the full
2655 path to pkg-config.
2657 Alternatively, you may set the environment variables PACKAGE_CFLAGS
2658 and PACKAGE_LIBS to avoid the need to call pkg-config.
2659 See the pkg-config man page for more details.
2661 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
2662 See \`config.log' for more details." >&5
2663 echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
2664 is in your PATH or set the PKG_CONFIG environment variable to the full
2665 path to pkg-config.
2667 Alternatively, you may set the environment variables PACKAGE_CFLAGS
2668 and PACKAGE_LIBS to avoid the need to call pkg-config.
2669 See the pkg-config man page for more details.
2671 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
2672 See \`config.log' for more details." >&2;}
2673 { (exit 1); exit 1; }; }
2674 else
2675 PACKAGE_CFLAGS=$pkg_cv_PACKAGE_CFLAGS
2676 PACKAGE_LIBS=$pkg_cv_PACKAGE_LIBS
2677 { echo "$as_me:$LINENO: result: yes" >&5
2678 echo "${ECHO_T}yes" >&6; }
2684 DEPDIR="${am__leading_dot}deps"
2686 ac_config_commands="$ac_config_commands depfiles"
2689 am_make=${MAKE-make}
2690 cat > confinc << 'END'
2691 am__doit:
2692 @echo done
2693 .PHONY: am__doit
2695 # If we don't find an include directive, just comment out the code.
2696 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2697 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
2698 am__include="#"
2699 am__quote=
2700 _am_result=none
2701 # First try GNU make style include.
2702 echo "include confinc" > confmf
2703 # We grep out `Entering directory' and `Leaving directory'
2704 # messages which can occur if `w' ends up in MAKEFLAGS.
2705 # In particular we don't look at `^make:' because GNU make might
2706 # be invoked under some other name (usually "gmake"), in which
2707 # case it prints its new name instead of `make'.
2708 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2709 am__include=include
2710 am__quote=
2711 _am_result=GNU
2713 # Now try BSD make style include.
2714 if test "$am__include" = "#"; then
2715 echo '.include "confinc"' > confmf
2716 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2717 am__include=.include
2718 am__quote="\""
2719 _am_result=BSD
2724 { echo "$as_me:$LINENO: result: $_am_result" >&5
2725 echo "${ECHO_T}$_am_result" >&6; }
2726 rm -f confinc confmf
2728 # Check whether --enable-dependency-tracking was given.
2729 if test "${enable_dependency_tracking+set}" = set; then
2730 enableval=$enable_dependency_tracking;
2733 if test "x$enable_dependency_tracking" != xno; then
2734 am_depcomp="$ac_aux_dir/depcomp"
2735 AMDEPBACKSLASH='\'
2737 if test "x$enable_dependency_tracking" != xno; then
2738 AMDEP_TRUE=
2739 AMDEP_FALSE='#'
2740 else
2741 AMDEP_TRUE='#'
2742 AMDEP_FALSE=
2746 ac_ext=c
2747 ac_cpp='$CPP $CPPFLAGS'
2748 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2749 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2750 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2751 if test -n "$ac_tool_prefix"; then
2752 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2753 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2754 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2755 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2756 if test "${ac_cv_prog_CC+set}" = set; then
2757 echo $ECHO_N "(cached) $ECHO_C" >&6
2758 else
2759 if test -n "$CC"; then
2760 ac_cv_prog_CC="$CC" # Let the user override the test.
2761 else
2762 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2763 for as_dir in $PATH
2765 IFS=$as_save_IFS
2766 test -z "$as_dir" && as_dir=.
2767 for ac_exec_ext in '' $ac_executable_extensions; do
2768 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2769 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2770 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2771 break 2
2773 done
2774 done
2775 IFS=$as_save_IFS
2779 CC=$ac_cv_prog_CC
2780 if test -n "$CC"; then
2781 { echo "$as_me:$LINENO: result: $CC" >&5
2782 echo "${ECHO_T}$CC" >&6; }
2783 else
2784 { echo "$as_me:$LINENO: result: no" >&5
2785 echo "${ECHO_T}no" >&6; }
2790 if test -z "$ac_cv_prog_CC"; then
2791 ac_ct_CC=$CC
2792 # Extract the first word of "gcc", so it can be a program name with args.
2793 set dummy gcc; ac_word=$2
2794 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2795 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2796 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2797 echo $ECHO_N "(cached) $ECHO_C" >&6
2798 else
2799 if test -n "$ac_ct_CC"; then
2800 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2801 else
2802 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2803 for as_dir in $PATH
2805 IFS=$as_save_IFS
2806 test -z "$as_dir" && as_dir=.
2807 for ac_exec_ext in '' $ac_executable_extensions; do
2808 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2809 ac_cv_prog_ac_ct_CC="gcc"
2810 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2811 break 2
2813 done
2814 done
2815 IFS=$as_save_IFS
2819 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2820 if test -n "$ac_ct_CC"; then
2821 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2822 echo "${ECHO_T}$ac_ct_CC" >&6; }
2823 else
2824 { echo "$as_me:$LINENO: result: no" >&5
2825 echo "${ECHO_T}no" >&6; }
2828 if test "x$ac_ct_CC" = x; then
2829 CC=""
2830 else
2831 case $cross_compiling:$ac_tool_warned in
2832 yes:)
2833 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2834 whose name does not start with the host triplet. If you think this
2835 configuration is useful to you, please write to autoconf@gnu.org." >&5
2836 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2837 whose name does not start with the host triplet. If you think this
2838 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2839 ac_tool_warned=yes ;;
2840 esac
2841 CC=$ac_ct_CC
2843 else
2844 CC="$ac_cv_prog_CC"
2847 if test -z "$CC"; then
2848 if test -n "$ac_tool_prefix"; then
2849 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2850 set dummy ${ac_tool_prefix}cc; ac_word=$2
2851 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2852 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2853 if test "${ac_cv_prog_CC+set}" = set; then
2854 echo $ECHO_N "(cached) $ECHO_C" >&6
2855 else
2856 if test -n "$CC"; then
2857 ac_cv_prog_CC="$CC" # Let the user override the test.
2858 else
2859 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2860 for as_dir in $PATH
2862 IFS=$as_save_IFS
2863 test -z "$as_dir" && as_dir=.
2864 for ac_exec_ext in '' $ac_executable_extensions; do
2865 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2866 ac_cv_prog_CC="${ac_tool_prefix}cc"
2867 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2868 break 2
2870 done
2871 done
2872 IFS=$as_save_IFS
2876 CC=$ac_cv_prog_CC
2877 if test -n "$CC"; then
2878 { echo "$as_me:$LINENO: result: $CC" >&5
2879 echo "${ECHO_T}$CC" >&6; }
2880 else
2881 { echo "$as_me:$LINENO: result: no" >&5
2882 echo "${ECHO_T}no" >&6; }
2888 if test -z "$CC"; then
2889 # Extract the first word of "cc", so it can be a program name with args.
2890 set dummy cc; ac_word=$2
2891 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2892 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2893 if test "${ac_cv_prog_CC+set}" = set; then
2894 echo $ECHO_N "(cached) $ECHO_C" >&6
2895 else
2896 if test -n "$CC"; then
2897 ac_cv_prog_CC="$CC" # Let the user override the test.
2898 else
2899 ac_prog_rejected=no
2900 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2901 for as_dir in $PATH
2903 IFS=$as_save_IFS
2904 test -z "$as_dir" && as_dir=.
2905 for ac_exec_ext in '' $ac_executable_extensions; do
2906 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2907 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2908 ac_prog_rejected=yes
2909 continue
2911 ac_cv_prog_CC="cc"
2912 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2913 break 2
2915 done
2916 done
2917 IFS=$as_save_IFS
2919 if test $ac_prog_rejected = yes; then
2920 # We found a bogon in the path, so make sure we never use it.
2921 set dummy $ac_cv_prog_CC
2922 shift
2923 if test $# != 0; then
2924 # We chose a different compiler from the bogus one.
2925 # However, it has the same basename, so the bogon will be chosen
2926 # first if we set CC to just the basename; use the full file name.
2927 shift
2928 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2933 CC=$ac_cv_prog_CC
2934 if test -n "$CC"; then
2935 { echo "$as_me:$LINENO: result: $CC" >&5
2936 echo "${ECHO_T}$CC" >&6; }
2937 else
2938 { echo "$as_me:$LINENO: result: no" >&5
2939 echo "${ECHO_T}no" >&6; }
2944 if test -z "$CC"; then
2945 if test -n "$ac_tool_prefix"; then
2946 for ac_prog in cl.exe
2948 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2949 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2950 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2951 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2952 if test "${ac_cv_prog_CC+set}" = set; then
2953 echo $ECHO_N "(cached) $ECHO_C" >&6
2954 else
2955 if test -n "$CC"; then
2956 ac_cv_prog_CC="$CC" # Let the user override the test.
2957 else
2958 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2959 for as_dir in $PATH
2961 IFS=$as_save_IFS
2962 test -z "$as_dir" && as_dir=.
2963 for ac_exec_ext in '' $ac_executable_extensions; do
2964 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2965 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2966 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2967 break 2
2969 done
2970 done
2971 IFS=$as_save_IFS
2975 CC=$ac_cv_prog_CC
2976 if test -n "$CC"; then
2977 { echo "$as_me:$LINENO: result: $CC" >&5
2978 echo "${ECHO_T}$CC" >&6; }
2979 else
2980 { echo "$as_me:$LINENO: result: no" >&5
2981 echo "${ECHO_T}no" >&6; }
2985 test -n "$CC" && break
2986 done
2988 if test -z "$CC"; then
2989 ac_ct_CC=$CC
2990 for ac_prog in cl.exe
2992 # Extract the first word of "$ac_prog", so it can be a program name with args.
2993 set dummy $ac_prog; ac_word=$2
2994 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2995 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2996 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2997 echo $ECHO_N "(cached) $ECHO_C" >&6
2998 else
2999 if test -n "$ac_ct_CC"; then
3000 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3001 else
3002 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3003 for as_dir in $PATH
3005 IFS=$as_save_IFS
3006 test -z "$as_dir" && as_dir=.
3007 for ac_exec_ext in '' $ac_executable_extensions; do
3008 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3009 ac_cv_prog_ac_ct_CC="$ac_prog"
3010 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3011 break 2
3013 done
3014 done
3015 IFS=$as_save_IFS
3019 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3020 if test -n "$ac_ct_CC"; then
3021 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3022 echo "${ECHO_T}$ac_ct_CC" >&6; }
3023 else
3024 { echo "$as_me:$LINENO: result: no" >&5
3025 echo "${ECHO_T}no" >&6; }
3029 test -n "$ac_ct_CC" && break
3030 done
3032 if test "x$ac_ct_CC" = x; then
3033 CC=""
3034 else
3035 case $cross_compiling:$ac_tool_warned in
3036 yes:)
3037 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3038 whose name does not start with the host triplet. If you think this
3039 configuration is useful to you, please write to autoconf@gnu.org." >&5
3040 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3041 whose name does not start with the host triplet. If you think this
3042 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3043 ac_tool_warned=yes ;;
3044 esac
3045 CC=$ac_ct_CC
3052 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3053 See \`config.log' for more details." >&5
3054 echo "$as_me: error: no acceptable C compiler found in \$PATH
3055 See \`config.log' for more details." >&2;}
3056 { (exit 1); exit 1; }; }
3058 # Provide some information about the compiler.
3059 echo "$as_me:$LINENO: checking for C compiler version" >&5
3060 ac_compiler=`set X $ac_compile; echo $2`
3061 { (ac_try="$ac_compiler --version >&5"
3062 case "(($ac_try" in
3063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3064 *) ac_try_echo=$ac_try;;
3065 esac
3066 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3067 (eval "$ac_compiler --version >&5") 2>&5
3068 ac_status=$?
3069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3070 (exit $ac_status); }
3071 { (ac_try="$ac_compiler -v >&5"
3072 case "(($ac_try" in
3073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3074 *) ac_try_echo=$ac_try;;
3075 esac
3076 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3077 (eval "$ac_compiler -v >&5") 2>&5
3078 ac_status=$?
3079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3080 (exit $ac_status); }
3081 { (ac_try="$ac_compiler -V >&5"
3082 case "(($ac_try" in
3083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3084 *) ac_try_echo=$ac_try;;
3085 esac
3086 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3087 (eval "$ac_compiler -V >&5") 2>&5
3088 ac_status=$?
3089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3090 (exit $ac_status); }
3092 cat >conftest.$ac_ext <<_ACEOF
3093 /* confdefs.h. */
3094 _ACEOF
3095 cat confdefs.h >>conftest.$ac_ext
3096 cat >>conftest.$ac_ext <<_ACEOF
3097 /* end confdefs.h. */
3100 main ()
3104 return 0;
3106 _ACEOF
3107 ac_clean_files_save=$ac_clean_files
3108 ac_clean_files="$ac_clean_files a.out a.exe b.out"
3109 # Try to create an executable without -o first, disregard a.out.
3110 # It will help us diagnose broken compilers, and finding out an intuition
3111 # of exeext.
3112 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3113 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
3114 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3116 # List of possible output files, starting from the most likely.
3117 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
3118 # only as a last resort. b.out is created by i960 compilers.
3119 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
3121 # The IRIX 6 linker writes into existing files which may not be
3122 # executable, retaining their permissions. Remove them first so a
3123 # subsequent execution test works.
3124 ac_rmfiles=
3125 for ac_file in $ac_files
3127 case $ac_file in
3128 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3129 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3130 esac
3131 done
3132 rm -f $ac_rmfiles
3134 if { (ac_try="$ac_link_default"
3135 case "(($ac_try" in
3136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3137 *) ac_try_echo=$ac_try;;
3138 esac
3139 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3140 (eval "$ac_link_default") 2>&5
3141 ac_status=$?
3142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3143 (exit $ac_status); }; then
3144 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3145 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3146 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3147 # so that the user can short-circuit this test for compilers unknown to
3148 # Autoconf.
3149 for ac_file in $ac_files ''
3151 test -f "$ac_file" || continue
3152 case $ac_file in
3153 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
3155 [ab].out )
3156 # We found the default executable, but exeext='' is most
3157 # certainly right.
3158 break;;
3159 *.* )
3160 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3161 then :; else
3162 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3164 # We set ac_cv_exeext here because the later test for it is not
3165 # safe: cross compilers may not add the suffix if given an `-o'
3166 # argument, so we may need to know it at that point already.
3167 # Even if this section looks crufty: it has the advantage of
3168 # actually working.
3169 break;;
3171 break;;
3172 esac
3173 done
3174 test "$ac_cv_exeext" = no && ac_cv_exeext=
3176 else
3177 ac_file=''
3180 { echo "$as_me:$LINENO: result: $ac_file" >&5
3181 echo "${ECHO_T}$ac_file" >&6; }
3182 if test -z "$ac_file"; then
3183 echo "$as_me: failed program was:" >&5
3184 sed 's/^/| /' conftest.$ac_ext >&5
3186 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3187 See \`config.log' for more details." >&5
3188 echo "$as_me: error: C compiler cannot create executables
3189 See \`config.log' for more details." >&2;}
3190 { (exit 77); exit 77; }; }
3193 ac_exeext=$ac_cv_exeext
3195 # Check that the compiler produces executables we can run. If not, either
3196 # the compiler is broken, or we cross compile.
3197 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3198 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3199 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3200 # If not cross compiling, check that we can run a simple program.
3201 if test "$cross_compiling" != yes; then
3202 if { ac_try='./$ac_file'
3203 { (case "(($ac_try" in
3204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3205 *) ac_try_echo=$ac_try;;
3206 esac
3207 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3208 (eval "$ac_try") 2>&5
3209 ac_status=$?
3210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3211 (exit $ac_status); }; }; then
3212 cross_compiling=no
3213 else
3214 if test "$cross_compiling" = maybe; then
3215 cross_compiling=yes
3216 else
3217 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3218 If you meant to cross compile, use \`--host'.
3219 See \`config.log' for more details." >&5
3220 echo "$as_me: error: cannot run C compiled programs.
3221 If you meant to cross compile, use \`--host'.
3222 See \`config.log' for more details." >&2;}
3223 { (exit 1); exit 1; }; }
3227 { echo "$as_me:$LINENO: result: yes" >&5
3228 echo "${ECHO_T}yes" >&6; }
3230 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3231 ac_clean_files=$ac_clean_files_save
3232 # Check that the compiler produces executables we can run. If not, either
3233 # the compiler is broken, or we cross compile.
3234 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3235 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3236 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
3237 echo "${ECHO_T}$cross_compiling" >&6; }
3239 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
3240 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3241 if { (ac_try="$ac_link"
3242 case "(($ac_try" in
3243 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3244 *) ac_try_echo=$ac_try;;
3245 esac
3246 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3247 (eval "$ac_link") 2>&5
3248 ac_status=$?
3249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3250 (exit $ac_status); }; then
3251 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3252 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3253 # work properly (i.e., refer to `conftest.exe'), while it won't with
3254 # `rm'.
3255 for ac_file in conftest.exe conftest conftest.*; do
3256 test -f "$ac_file" || continue
3257 case $ac_file in
3258 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3259 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3260 break;;
3261 * ) break;;
3262 esac
3263 done
3264 else
3265 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3266 See \`config.log' for more details." >&5
3267 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3268 See \`config.log' for more details." >&2;}
3269 { (exit 1); exit 1; }; }
3272 rm -f conftest$ac_cv_exeext
3273 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3274 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3276 rm -f conftest.$ac_ext
3277 EXEEXT=$ac_cv_exeext
3278 ac_exeext=$EXEEXT
3279 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3280 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3281 if test "${ac_cv_objext+set}" = set; then
3282 echo $ECHO_N "(cached) $ECHO_C" >&6
3283 else
3284 cat >conftest.$ac_ext <<_ACEOF
3285 /* confdefs.h. */
3286 _ACEOF
3287 cat confdefs.h >>conftest.$ac_ext
3288 cat >>conftest.$ac_ext <<_ACEOF
3289 /* end confdefs.h. */
3292 main ()
3296 return 0;
3298 _ACEOF
3299 rm -f conftest.o conftest.obj
3300 if { (ac_try="$ac_compile"
3301 case "(($ac_try" in
3302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3303 *) ac_try_echo=$ac_try;;
3304 esac
3305 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3306 (eval "$ac_compile") 2>&5
3307 ac_status=$?
3308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3309 (exit $ac_status); }; then
3310 for ac_file in conftest.o conftest.obj conftest.*; do
3311 test -f "$ac_file" || continue;
3312 case $ac_file in
3313 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3314 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3315 break;;
3316 esac
3317 done
3318 else
3319 echo "$as_me: failed program was:" >&5
3320 sed 's/^/| /' conftest.$ac_ext >&5
3322 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3323 See \`config.log' for more details." >&5
3324 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3325 See \`config.log' for more details." >&2;}
3326 { (exit 1); exit 1; }; }
3329 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3331 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3332 echo "${ECHO_T}$ac_cv_objext" >&6; }
3333 OBJEXT=$ac_cv_objext
3334 ac_objext=$OBJEXT
3335 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3336 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3337 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3338 echo $ECHO_N "(cached) $ECHO_C" >&6
3339 else
3340 cat >conftest.$ac_ext <<_ACEOF
3341 /* confdefs.h. */
3342 _ACEOF
3343 cat confdefs.h >>conftest.$ac_ext
3344 cat >>conftest.$ac_ext <<_ACEOF
3345 /* end confdefs.h. */
3348 main ()
3350 #ifndef __GNUC__
3351 choke me
3352 #endif
3355 return 0;
3357 _ACEOF
3358 rm -f conftest.$ac_objext
3359 if { (ac_try="$ac_compile"
3360 case "(($ac_try" in
3361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3362 *) ac_try_echo=$ac_try;;
3363 esac
3364 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3365 (eval "$ac_compile") 2>conftest.er1
3366 ac_status=$?
3367 grep -v '^ *+' conftest.er1 >conftest.err
3368 rm -f conftest.er1
3369 cat conftest.err >&5
3370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3371 (exit $ac_status); } && {
3372 test -z "$ac_c_werror_flag" ||
3373 test ! -s conftest.err
3374 } && test -s conftest.$ac_objext; then
3375 ac_compiler_gnu=yes
3376 else
3377 echo "$as_me: failed program was:" >&5
3378 sed 's/^/| /' conftest.$ac_ext >&5
3380 ac_compiler_gnu=no
3383 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3384 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3387 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3388 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3389 GCC=`test $ac_compiler_gnu = yes && echo yes`
3390 ac_test_CFLAGS=${CFLAGS+set}
3391 ac_save_CFLAGS=$CFLAGS
3392 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3393 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3394 if test "${ac_cv_prog_cc_g+set}" = set; then
3395 echo $ECHO_N "(cached) $ECHO_C" >&6
3396 else
3397 ac_save_c_werror_flag=$ac_c_werror_flag
3398 ac_c_werror_flag=yes
3399 ac_cv_prog_cc_g=no
3400 CFLAGS="-g"
3401 cat >conftest.$ac_ext <<_ACEOF
3402 /* confdefs.h. */
3403 _ACEOF
3404 cat confdefs.h >>conftest.$ac_ext
3405 cat >>conftest.$ac_ext <<_ACEOF
3406 /* end confdefs.h. */
3409 main ()
3413 return 0;
3415 _ACEOF
3416 rm -f conftest.$ac_objext
3417 if { (ac_try="$ac_compile"
3418 case "(($ac_try" in
3419 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3420 *) ac_try_echo=$ac_try;;
3421 esac
3422 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3423 (eval "$ac_compile") 2>conftest.er1
3424 ac_status=$?
3425 grep -v '^ *+' conftest.er1 >conftest.err
3426 rm -f conftest.er1
3427 cat conftest.err >&5
3428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3429 (exit $ac_status); } && {
3430 test -z "$ac_c_werror_flag" ||
3431 test ! -s conftest.err
3432 } && test -s conftest.$ac_objext; then
3433 ac_cv_prog_cc_g=yes
3434 else
3435 echo "$as_me: failed program was:" >&5
3436 sed 's/^/| /' conftest.$ac_ext >&5
3438 CFLAGS=""
3439 cat >conftest.$ac_ext <<_ACEOF
3440 /* confdefs.h. */
3441 _ACEOF
3442 cat confdefs.h >>conftest.$ac_ext
3443 cat >>conftest.$ac_ext <<_ACEOF
3444 /* end confdefs.h. */
3447 main ()
3451 return 0;
3453 _ACEOF
3454 rm -f conftest.$ac_objext
3455 if { (ac_try="$ac_compile"
3456 case "(($ac_try" in
3457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3458 *) ac_try_echo=$ac_try;;
3459 esac
3460 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3461 (eval "$ac_compile") 2>conftest.er1
3462 ac_status=$?
3463 grep -v '^ *+' conftest.er1 >conftest.err
3464 rm -f conftest.er1
3465 cat conftest.err >&5
3466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3467 (exit $ac_status); } && {
3468 test -z "$ac_c_werror_flag" ||
3469 test ! -s conftest.err
3470 } && test -s conftest.$ac_objext; then
3472 else
3473 echo "$as_me: failed program was:" >&5
3474 sed 's/^/| /' conftest.$ac_ext >&5
3476 ac_c_werror_flag=$ac_save_c_werror_flag
3477 CFLAGS="-g"
3478 cat >conftest.$ac_ext <<_ACEOF
3479 /* confdefs.h. */
3480 _ACEOF
3481 cat confdefs.h >>conftest.$ac_ext
3482 cat >>conftest.$ac_ext <<_ACEOF
3483 /* end confdefs.h. */
3486 main ()
3490 return 0;
3492 _ACEOF
3493 rm -f conftest.$ac_objext
3494 if { (ac_try="$ac_compile"
3495 case "(($ac_try" in
3496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3497 *) ac_try_echo=$ac_try;;
3498 esac
3499 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3500 (eval "$ac_compile") 2>conftest.er1
3501 ac_status=$?
3502 grep -v '^ *+' conftest.er1 >conftest.err
3503 rm -f conftest.er1
3504 cat conftest.err >&5
3505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3506 (exit $ac_status); } && {
3507 test -z "$ac_c_werror_flag" ||
3508 test ! -s conftest.err
3509 } && test -s conftest.$ac_objext; then
3510 ac_cv_prog_cc_g=yes
3511 else
3512 echo "$as_me: failed program was:" >&5
3513 sed 's/^/| /' conftest.$ac_ext >&5
3518 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3521 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3524 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3525 ac_c_werror_flag=$ac_save_c_werror_flag
3527 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3528 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3529 if test "$ac_test_CFLAGS" = set; then
3530 CFLAGS=$ac_save_CFLAGS
3531 elif test $ac_cv_prog_cc_g = yes; then
3532 if test "$GCC" = yes; then
3533 CFLAGS="-g -O2"
3534 else
3535 CFLAGS="-g"
3537 else
3538 if test "$GCC" = yes; then
3539 CFLAGS="-O2"
3540 else
3541 CFLAGS=
3544 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3545 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3546 if test "${ac_cv_prog_cc_c89+set}" = set; then
3547 echo $ECHO_N "(cached) $ECHO_C" >&6
3548 else
3549 ac_cv_prog_cc_c89=no
3550 ac_save_CC=$CC
3551 cat >conftest.$ac_ext <<_ACEOF
3552 /* confdefs.h. */
3553 _ACEOF
3554 cat confdefs.h >>conftest.$ac_ext
3555 cat >>conftest.$ac_ext <<_ACEOF
3556 /* end confdefs.h. */
3557 #include <stdarg.h>
3558 #include <stdio.h>
3559 #include <sys/types.h>
3560 #include <sys/stat.h>
3561 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3562 struct buf { int x; };
3563 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3564 static char *e (p, i)
3565 char **p;
3566 int i;
3568 return p[i];
3570 static char *f (char * (*g) (char **, int), char **p, ...)
3572 char *s;
3573 va_list v;
3574 va_start (v,p);
3575 s = g (p, va_arg (v,int));
3576 va_end (v);
3577 return s;
3580 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3581 function prototypes and stuff, but not '\xHH' hex character constants.
3582 These don't provoke an error unfortunately, instead are silently treated
3583 as 'x'. The following induces an error, until -std is added to get
3584 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3585 array size at least. It's necessary to write '\x00'==0 to get something
3586 that's true only with -std. */
3587 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3589 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3590 inside strings and character constants. */
3591 #define FOO(x) 'x'
3592 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3594 int test (int i, double x);
3595 struct s1 {int (*f) (int a);};
3596 struct s2 {int (*f) (double a);};
3597 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3598 int argc;
3599 char **argv;
3601 main ()
3603 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3605 return 0;
3607 _ACEOF
3608 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3609 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3611 CC="$ac_save_CC $ac_arg"
3612 rm -f conftest.$ac_objext
3613 if { (ac_try="$ac_compile"
3614 case "(($ac_try" in
3615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3616 *) ac_try_echo=$ac_try;;
3617 esac
3618 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3619 (eval "$ac_compile") 2>conftest.er1
3620 ac_status=$?
3621 grep -v '^ *+' conftest.er1 >conftest.err
3622 rm -f conftest.er1
3623 cat conftest.err >&5
3624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3625 (exit $ac_status); } && {
3626 test -z "$ac_c_werror_flag" ||
3627 test ! -s conftest.err
3628 } && test -s conftest.$ac_objext; then
3629 ac_cv_prog_cc_c89=$ac_arg
3630 else
3631 echo "$as_me: failed program was:" >&5
3632 sed 's/^/| /' conftest.$ac_ext >&5
3637 rm -f core conftest.err conftest.$ac_objext
3638 test "x$ac_cv_prog_cc_c89" != "xno" && break
3639 done
3640 rm -f conftest.$ac_ext
3641 CC=$ac_save_CC
3644 # AC_CACHE_VAL
3645 case "x$ac_cv_prog_cc_c89" in
3647 { echo "$as_me:$LINENO: result: none needed" >&5
3648 echo "${ECHO_T}none needed" >&6; } ;;
3649 xno)
3650 { echo "$as_me:$LINENO: result: unsupported" >&5
3651 echo "${ECHO_T}unsupported" >&6; } ;;
3653 CC="$CC $ac_cv_prog_cc_c89"
3654 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3655 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3656 esac
3659 ac_ext=c
3660 ac_cpp='$CPP $CPPFLAGS'
3661 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3662 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3663 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3665 depcc="$CC" am_compiler_list=
3667 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3668 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3669 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3670 echo $ECHO_N "(cached) $ECHO_C" >&6
3671 else
3672 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3673 # We make a subdir and do the tests there. Otherwise we can end up
3674 # making bogus files that we don't know about and never remove. For
3675 # instance it was reported that on HP-UX the gcc test will end up
3676 # making a dummy file named `D' -- because `-MD' means `put the output
3677 # in D'.
3678 mkdir conftest.dir
3679 # Copy depcomp to subdir because otherwise we won't find it if we're
3680 # using a relative directory.
3681 cp "$am_depcomp" conftest.dir
3682 cd conftest.dir
3683 # We will build objects and dependencies in a subdirectory because
3684 # it helps to detect inapplicable dependency modes. For instance
3685 # both Tru64's cc and ICC support -MD to output dependencies as a
3686 # side effect of compilation, but ICC will put the dependencies in
3687 # the current directory while Tru64 will put them in the object
3688 # directory.
3689 mkdir sub
3691 am_cv_CC_dependencies_compiler_type=none
3692 if test "$am_compiler_list" = ""; then
3693 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3695 for depmode in $am_compiler_list; do
3696 # Setup a source with many dependencies, because some compilers
3697 # like to wrap large dependency lists on column 80 (with \), and
3698 # we should not choose a depcomp mode which is confused by this.
3700 # We need to recreate these files for each test, as the compiler may
3701 # overwrite some of them when testing with obscure command lines.
3702 # This happens at least with the AIX C compiler.
3703 : > sub/conftest.c
3704 for i in 1 2 3 4 5 6; do
3705 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3706 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3707 # Solaris 8's {/usr,}/bin/sh.
3708 touch sub/conftst$i.h
3709 done
3710 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3712 case $depmode in
3713 nosideeffect)
3714 # after this tag, mechanisms are not by side-effect, so they'll
3715 # only be used when explicitly requested
3716 if test "x$enable_dependency_tracking" = xyes; then
3717 continue
3718 else
3719 break
3722 none) break ;;
3723 esac
3724 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3725 # mode. It turns out that the SunPro C++ compiler does not properly
3726 # handle `-M -o', and we need to detect this.
3727 if depmode=$depmode \
3728 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3729 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3730 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3731 >/dev/null 2>conftest.err &&
3732 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3733 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3734 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3735 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3736 # icc doesn't choke on unknown options, it will just issue warnings
3737 # or remarks (even with -Werror). So we grep stderr for any message
3738 # that says an option was ignored or not supported.
3739 # When given -MP, icc 7.0 and 7.1 complain thusly:
3740 # icc: Command line warning: ignoring option '-M'; no argument required
3741 # The diagnosis changed in icc 8.0:
3742 # icc: Command line remark: option '-MP' not supported
3743 if (grep 'ignoring option' conftest.err ||
3744 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3745 am_cv_CC_dependencies_compiler_type=$depmode
3746 break
3749 done
3751 cd ..
3752 rm -rf conftest.dir
3753 else
3754 am_cv_CC_dependencies_compiler_type=none
3758 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3759 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3760 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3763 test "x$enable_dependency_tracking" != xno \
3764 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3765 am__fastdepCC_TRUE=
3766 am__fastdepCC_FALSE='#'
3767 else
3768 am__fastdepCC_TRUE='#'
3769 am__fastdepCC_FALSE=
3774 { echo "$as_me:$LINENO: checking for library containing strerror" >&5
3775 echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6; }
3776 if test "${ac_cv_search_strerror+set}" = set; then
3777 echo $ECHO_N "(cached) $ECHO_C" >&6
3778 else
3779 ac_func_search_save_LIBS=$LIBS
3780 cat >conftest.$ac_ext <<_ACEOF
3781 /* confdefs.h. */
3782 _ACEOF
3783 cat confdefs.h >>conftest.$ac_ext
3784 cat >>conftest.$ac_ext <<_ACEOF
3785 /* end confdefs.h. */
3787 /* Override any GCC internal prototype to avoid an error.
3788 Use char because int might match the return type of a GCC
3789 builtin and then its argument prototype would still apply. */
3790 #ifdef __cplusplus
3791 extern "C"
3792 #endif
3793 char strerror ();
3795 main ()
3797 return strerror ();
3799 return 0;
3801 _ACEOF
3802 for ac_lib in '' cposix; do
3803 if test -z "$ac_lib"; then
3804 ac_res="none required"
3805 else
3806 ac_res=-l$ac_lib
3807 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
3809 rm -f conftest.$ac_objext conftest$ac_exeext
3810 if { (ac_try="$ac_link"
3811 case "(($ac_try" in
3812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3813 *) ac_try_echo=$ac_try;;
3814 esac
3815 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3816 (eval "$ac_link") 2>conftest.er1
3817 ac_status=$?
3818 grep -v '^ *+' conftest.er1 >conftest.err
3819 rm -f conftest.er1
3820 cat conftest.err >&5
3821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3822 (exit $ac_status); } && {
3823 test -z "$ac_c_werror_flag" ||
3824 test ! -s conftest.err
3825 } && test -s conftest$ac_exeext &&
3826 $as_test_x conftest$ac_exeext; then
3827 ac_cv_search_strerror=$ac_res
3828 else
3829 echo "$as_me: failed program was:" >&5
3830 sed 's/^/| /' conftest.$ac_ext >&5
3835 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3836 conftest$ac_exeext
3837 if test "${ac_cv_search_strerror+set}" = set; then
3838 break
3840 done
3841 if test "${ac_cv_search_strerror+set}" = set; then
3843 else
3844 ac_cv_search_strerror=no
3846 rm conftest.$ac_ext
3847 LIBS=$ac_func_search_save_LIBS
3849 { echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
3850 echo "${ECHO_T}$ac_cv_search_strerror" >&6; }
3851 ac_res=$ac_cv_search_strerror
3852 if test "$ac_res" != no; then
3853 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
3857 ac_ext=c
3858 ac_cpp='$CPP $CPPFLAGS'
3859 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3860 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3861 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3862 if test -n "$ac_tool_prefix"; then
3863 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3864 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3865 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3866 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3867 if test "${ac_cv_prog_CC+set}" = set; then
3868 echo $ECHO_N "(cached) $ECHO_C" >&6
3869 else
3870 if test -n "$CC"; then
3871 ac_cv_prog_CC="$CC" # Let the user override the test.
3872 else
3873 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3874 for as_dir in $PATH
3876 IFS=$as_save_IFS
3877 test -z "$as_dir" && as_dir=.
3878 for ac_exec_ext in '' $ac_executable_extensions; do
3879 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3880 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3881 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3882 break 2
3884 done
3885 done
3886 IFS=$as_save_IFS
3890 CC=$ac_cv_prog_CC
3891 if test -n "$CC"; then
3892 { echo "$as_me:$LINENO: result: $CC" >&5
3893 echo "${ECHO_T}$CC" >&6; }
3894 else
3895 { echo "$as_me:$LINENO: result: no" >&5
3896 echo "${ECHO_T}no" >&6; }
3901 if test -z "$ac_cv_prog_CC"; then
3902 ac_ct_CC=$CC
3903 # Extract the first word of "gcc", so it can be a program name with args.
3904 set dummy gcc; ac_word=$2
3905 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3906 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3907 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3908 echo $ECHO_N "(cached) $ECHO_C" >&6
3909 else
3910 if test -n "$ac_ct_CC"; then
3911 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3912 else
3913 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3914 for as_dir in $PATH
3916 IFS=$as_save_IFS
3917 test -z "$as_dir" && as_dir=.
3918 for ac_exec_ext in '' $ac_executable_extensions; do
3919 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3920 ac_cv_prog_ac_ct_CC="gcc"
3921 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3922 break 2
3924 done
3925 done
3926 IFS=$as_save_IFS
3930 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3931 if test -n "$ac_ct_CC"; then
3932 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3933 echo "${ECHO_T}$ac_ct_CC" >&6; }
3934 else
3935 { echo "$as_me:$LINENO: result: no" >&5
3936 echo "${ECHO_T}no" >&6; }
3939 if test "x$ac_ct_CC" = x; then
3940 CC=""
3941 else
3942 case $cross_compiling:$ac_tool_warned in
3943 yes:)
3944 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3945 whose name does not start with the host triplet. If you think this
3946 configuration is useful to you, please write to autoconf@gnu.org." >&5
3947 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3948 whose name does not start with the host triplet. If you think this
3949 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3950 ac_tool_warned=yes ;;
3951 esac
3952 CC=$ac_ct_CC
3954 else
3955 CC="$ac_cv_prog_CC"
3958 if test -z "$CC"; then
3959 if test -n "$ac_tool_prefix"; then
3960 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3961 set dummy ${ac_tool_prefix}cc; ac_word=$2
3962 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3963 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3964 if test "${ac_cv_prog_CC+set}" = set; then
3965 echo $ECHO_N "(cached) $ECHO_C" >&6
3966 else
3967 if test -n "$CC"; then
3968 ac_cv_prog_CC="$CC" # Let the user override the test.
3969 else
3970 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3971 for as_dir in $PATH
3973 IFS=$as_save_IFS
3974 test -z "$as_dir" && as_dir=.
3975 for ac_exec_ext in '' $ac_executable_extensions; do
3976 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3977 ac_cv_prog_CC="${ac_tool_prefix}cc"
3978 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3979 break 2
3981 done
3982 done
3983 IFS=$as_save_IFS
3987 CC=$ac_cv_prog_CC
3988 if test -n "$CC"; then
3989 { echo "$as_me:$LINENO: result: $CC" >&5
3990 echo "${ECHO_T}$CC" >&6; }
3991 else
3992 { echo "$as_me:$LINENO: result: no" >&5
3993 echo "${ECHO_T}no" >&6; }
3999 if test -z "$CC"; then
4000 # Extract the first word of "cc", so it can be a program name with args.
4001 set dummy cc; ac_word=$2
4002 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4003 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4004 if test "${ac_cv_prog_CC+set}" = set; then
4005 echo $ECHO_N "(cached) $ECHO_C" >&6
4006 else
4007 if test -n "$CC"; then
4008 ac_cv_prog_CC="$CC" # Let the user override the test.
4009 else
4010 ac_prog_rejected=no
4011 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4012 for as_dir in $PATH
4014 IFS=$as_save_IFS
4015 test -z "$as_dir" && as_dir=.
4016 for ac_exec_ext in '' $ac_executable_extensions; do
4017 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4018 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4019 ac_prog_rejected=yes
4020 continue
4022 ac_cv_prog_CC="cc"
4023 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4024 break 2
4026 done
4027 done
4028 IFS=$as_save_IFS
4030 if test $ac_prog_rejected = yes; then
4031 # We found a bogon in the path, so make sure we never use it.
4032 set dummy $ac_cv_prog_CC
4033 shift
4034 if test $# != 0; then
4035 # We chose a different compiler from the bogus one.
4036 # However, it has the same basename, so the bogon will be chosen
4037 # first if we set CC to just the basename; use the full file name.
4038 shift
4039 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4044 CC=$ac_cv_prog_CC
4045 if test -n "$CC"; then
4046 { echo "$as_me:$LINENO: result: $CC" >&5
4047 echo "${ECHO_T}$CC" >&6; }
4048 else
4049 { echo "$as_me:$LINENO: result: no" >&5
4050 echo "${ECHO_T}no" >&6; }
4055 if test -z "$CC"; then
4056 if test -n "$ac_tool_prefix"; then
4057 for ac_prog in cl.exe
4059 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4060 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4061 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4062 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4063 if test "${ac_cv_prog_CC+set}" = set; then
4064 echo $ECHO_N "(cached) $ECHO_C" >&6
4065 else
4066 if test -n "$CC"; then
4067 ac_cv_prog_CC="$CC" # Let the user override the test.
4068 else
4069 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4070 for as_dir in $PATH
4072 IFS=$as_save_IFS
4073 test -z "$as_dir" && as_dir=.
4074 for ac_exec_ext in '' $ac_executable_extensions; do
4075 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4076 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4077 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4078 break 2
4080 done
4081 done
4082 IFS=$as_save_IFS
4086 CC=$ac_cv_prog_CC
4087 if test -n "$CC"; then
4088 { echo "$as_me:$LINENO: result: $CC" >&5
4089 echo "${ECHO_T}$CC" >&6; }
4090 else
4091 { echo "$as_me:$LINENO: result: no" >&5
4092 echo "${ECHO_T}no" >&6; }
4096 test -n "$CC" && break
4097 done
4099 if test -z "$CC"; then
4100 ac_ct_CC=$CC
4101 for ac_prog in cl.exe
4103 # Extract the first word of "$ac_prog", so it can be a program name with args.
4104 set dummy $ac_prog; ac_word=$2
4105 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4106 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4107 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4108 echo $ECHO_N "(cached) $ECHO_C" >&6
4109 else
4110 if test -n "$ac_ct_CC"; then
4111 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4112 else
4113 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4114 for as_dir in $PATH
4116 IFS=$as_save_IFS
4117 test -z "$as_dir" && as_dir=.
4118 for ac_exec_ext in '' $ac_executable_extensions; do
4119 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4120 ac_cv_prog_ac_ct_CC="$ac_prog"
4121 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4122 break 2
4124 done
4125 done
4126 IFS=$as_save_IFS
4130 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4131 if test -n "$ac_ct_CC"; then
4132 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4133 echo "${ECHO_T}$ac_ct_CC" >&6; }
4134 else
4135 { echo "$as_me:$LINENO: result: no" >&5
4136 echo "${ECHO_T}no" >&6; }
4140 test -n "$ac_ct_CC" && break
4141 done
4143 if test "x$ac_ct_CC" = x; then
4144 CC=""
4145 else
4146 case $cross_compiling:$ac_tool_warned in
4147 yes:)
4148 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4149 whose name does not start with the host triplet. If you think this
4150 configuration is useful to you, please write to autoconf@gnu.org." >&5
4151 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4152 whose name does not start with the host triplet. If you think this
4153 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4154 ac_tool_warned=yes ;;
4155 esac
4156 CC=$ac_ct_CC
4163 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
4164 See \`config.log' for more details." >&5
4165 echo "$as_me: error: no acceptable C compiler found in \$PATH
4166 See \`config.log' for more details." >&2;}
4167 { (exit 1); exit 1; }; }
4169 # Provide some information about the compiler.
4170 echo "$as_me:$LINENO: checking for C compiler version" >&5
4171 ac_compiler=`set X $ac_compile; echo $2`
4172 { (ac_try="$ac_compiler --version >&5"
4173 case "(($ac_try" in
4174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4175 *) ac_try_echo=$ac_try;;
4176 esac
4177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4178 (eval "$ac_compiler --version >&5") 2>&5
4179 ac_status=$?
4180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4181 (exit $ac_status); }
4182 { (ac_try="$ac_compiler -v >&5"
4183 case "(($ac_try" in
4184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4185 *) ac_try_echo=$ac_try;;
4186 esac
4187 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4188 (eval "$ac_compiler -v >&5") 2>&5
4189 ac_status=$?
4190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4191 (exit $ac_status); }
4192 { (ac_try="$ac_compiler -V >&5"
4193 case "(($ac_try" in
4194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4195 *) ac_try_echo=$ac_try;;
4196 esac
4197 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4198 (eval "$ac_compiler -V >&5") 2>&5
4199 ac_status=$?
4200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4201 (exit $ac_status); }
4203 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
4204 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
4205 if test "${ac_cv_c_compiler_gnu+set}" = set; then
4206 echo $ECHO_N "(cached) $ECHO_C" >&6
4207 else
4208 cat >conftest.$ac_ext <<_ACEOF
4209 /* confdefs.h. */
4210 _ACEOF
4211 cat confdefs.h >>conftest.$ac_ext
4212 cat >>conftest.$ac_ext <<_ACEOF
4213 /* end confdefs.h. */
4216 main ()
4218 #ifndef __GNUC__
4219 choke me
4220 #endif
4223 return 0;
4225 _ACEOF
4226 rm -f conftest.$ac_objext
4227 if { (ac_try="$ac_compile"
4228 case "(($ac_try" in
4229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4230 *) ac_try_echo=$ac_try;;
4231 esac
4232 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4233 (eval "$ac_compile") 2>conftest.er1
4234 ac_status=$?
4235 grep -v '^ *+' conftest.er1 >conftest.err
4236 rm -f conftest.er1
4237 cat conftest.err >&5
4238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4239 (exit $ac_status); } && {
4240 test -z "$ac_c_werror_flag" ||
4241 test ! -s conftest.err
4242 } && test -s conftest.$ac_objext; then
4243 ac_compiler_gnu=yes
4244 else
4245 echo "$as_me: failed program was:" >&5
4246 sed 's/^/| /' conftest.$ac_ext >&5
4248 ac_compiler_gnu=no
4251 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4252 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4255 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4256 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
4257 GCC=`test $ac_compiler_gnu = yes && echo yes`
4258 ac_test_CFLAGS=${CFLAGS+set}
4259 ac_save_CFLAGS=$CFLAGS
4260 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
4261 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
4262 if test "${ac_cv_prog_cc_g+set}" = set; then
4263 echo $ECHO_N "(cached) $ECHO_C" >&6
4264 else
4265 ac_save_c_werror_flag=$ac_c_werror_flag
4266 ac_c_werror_flag=yes
4267 ac_cv_prog_cc_g=no
4268 CFLAGS="-g"
4269 cat >conftest.$ac_ext <<_ACEOF
4270 /* confdefs.h. */
4271 _ACEOF
4272 cat confdefs.h >>conftest.$ac_ext
4273 cat >>conftest.$ac_ext <<_ACEOF
4274 /* end confdefs.h. */
4277 main ()
4281 return 0;
4283 _ACEOF
4284 rm -f conftest.$ac_objext
4285 if { (ac_try="$ac_compile"
4286 case "(($ac_try" in
4287 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4288 *) ac_try_echo=$ac_try;;
4289 esac
4290 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4291 (eval "$ac_compile") 2>conftest.er1
4292 ac_status=$?
4293 grep -v '^ *+' conftest.er1 >conftest.err
4294 rm -f conftest.er1
4295 cat conftest.err >&5
4296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4297 (exit $ac_status); } && {
4298 test -z "$ac_c_werror_flag" ||
4299 test ! -s conftest.err
4300 } && test -s conftest.$ac_objext; then
4301 ac_cv_prog_cc_g=yes
4302 else
4303 echo "$as_me: failed program was:" >&5
4304 sed 's/^/| /' conftest.$ac_ext >&5
4306 CFLAGS=""
4307 cat >conftest.$ac_ext <<_ACEOF
4308 /* confdefs.h. */
4309 _ACEOF
4310 cat confdefs.h >>conftest.$ac_ext
4311 cat >>conftest.$ac_ext <<_ACEOF
4312 /* end confdefs.h. */
4315 main ()
4319 return 0;
4321 _ACEOF
4322 rm -f conftest.$ac_objext
4323 if { (ac_try="$ac_compile"
4324 case "(($ac_try" in
4325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4326 *) ac_try_echo=$ac_try;;
4327 esac
4328 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4329 (eval "$ac_compile") 2>conftest.er1
4330 ac_status=$?
4331 grep -v '^ *+' conftest.er1 >conftest.err
4332 rm -f conftest.er1
4333 cat conftest.err >&5
4334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4335 (exit $ac_status); } && {
4336 test -z "$ac_c_werror_flag" ||
4337 test ! -s conftest.err
4338 } && test -s conftest.$ac_objext; then
4340 else
4341 echo "$as_me: failed program was:" >&5
4342 sed 's/^/| /' conftest.$ac_ext >&5
4344 ac_c_werror_flag=$ac_save_c_werror_flag
4345 CFLAGS="-g"
4346 cat >conftest.$ac_ext <<_ACEOF
4347 /* confdefs.h. */
4348 _ACEOF
4349 cat confdefs.h >>conftest.$ac_ext
4350 cat >>conftest.$ac_ext <<_ACEOF
4351 /* end confdefs.h. */
4354 main ()
4358 return 0;
4360 _ACEOF
4361 rm -f conftest.$ac_objext
4362 if { (ac_try="$ac_compile"
4363 case "(($ac_try" in
4364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4365 *) ac_try_echo=$ac_try;;
4366 esac
4367 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4368 (eval "$ac_compile") 2>conftest.er1
4369 ac_status=$?
4370 grep -v '^ *+' conftest.er1 >conftest.err
4371 rm -f conftest.er1
4372 cat conftest.err >&5
4373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4374 (exit $ac_status); } && {
4375 test -z "$ac_c_werror_flag" ||
4376 test ! -s conftest.err
4377 } && test -s conftest.$ac_objext; then
4378 ac_cv_prog_cc_g=yes
4379 else
4380 echo "$as_me: failed program was:" >&5
4381 sed 's/^/| /' conftest.$ac_ext >&5
4386 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4389 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4392 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4393 ac_c_werror_flag=$ac_save_c_werror_flag
4395 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4396 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
4397 if test "$ac_test_CFLAGS" = set; then
4398 CFLAGS=$ac_save_CFLAGS
4399 elif test $ac_cv_prog_cc_g = yes; then
4400 if test "$GCC" = yes; then
4401 CFLAGS="-g -O2"
4402 else
4403 CFLAGS="-g"
4405 else
4406 if test "$GCC" = yes; then
4407 CFLAGS="-O2"
4408 else
4409 CFLAGS=
4412 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
4413 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
4414 if test "${ac_cv_prog_cc_c89+set}" = set; then
4415 echo $ECHO_N "(cached) $ECHO_C" >&6
4416 else
4417 ac_cv_prog_cc_c89=no
4418 ac_save_CC=$CC
4419 cat >conftest.$ac_ext <<_ACEOF
4420 /* confdefs.h. */
4421 _ACEOF
4422 cat confdefs.h >>conftest.$ac_ext
4423 cat >>conftest.$ac_ext <<_ACEOF
4424 /* end confdefs.h. */
4425 #include <stdarg.h>
4426 #include <stdio.h>
4427 #include <sys/types.h>
4428 #include <sys/stat.h>
4429 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4430 struct buf { int x; };
4431 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4432 static char *e (p, i)
4433 char **p;
4434 int i;
4436 return p[i];
4438 static char *f (char * (*g) (char **, int), char **p, ...)
4440 char *s;
4441 va_list v;
4442 va_start (v,p);
4443 s = g (p, va_arg (v,int));
4444 va_end (v);
4445 return s;
4448 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4449 function prototypes and stuff, but not '\xHH' hex character constants.
4450 These don't provoke an error unfortunately, instead are silently treated
4451 as 'x'. The following induces an error, until -std is added to get
4452 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4453 array size at least. It's necessary to write '\x00'==0 to get something
4454 that's true only with -std. */
4455 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4457 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4458 inside strings and character constants. */
4459 #define FOO(x) 'x'
4460 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4462 int test (int i, double x);
4463 struct s1 {int (*f) (int a);};
4464 struct s2 {int (*f) (double a);};
4465 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4466 int argc;
4467 char **argv;
4469 main ()
4471 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4473 return 0;
4475 _ACEOF
4476 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4477 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4479 CC="$ac_save_CC $ac_arg"
4480 rm -f conftest.$ac_objext
4481 if { (ac_try="$ac_compile"
4482 case "(($ac_try" in
4483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4484 *) ac_try_echo=$ac_try;;
4485 esac
4486 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4487 (eval "$ac_compile") 2>conftest.er1
4488 ac_status=$?
4489 grep -v '^ *+' conftest.er1 >conftest.err
4490 rm -f conftest.er1
4491 cat conftest.err >&5
4492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4493 (exit $ac_status); } && {
4494 test -z "$ac_c_werror_flag" ||
4495 test ! -s conftest.err
4496 } && test -s conftest.$ac_objext; then
4497 ac_cv_prog_cc_c89=$ac_arg
4498 else
4499 echo "$as_me: failed program was:" >&5
4500 sed 's/^/| /' conftest.$ac_ext >&5
4505 rm -f core conftest.err conftest.$ac_objext
4506 test "x$ac_cv_prog_cc_c89" != "xno" && break
4507 done
4508 rm -f conftest.$ac_ext
4509 CC=$ac_save_CC
4512 # AC_CACHE_VAL
4513 case "x$ac_cv_prog_cc_c89" in
4515 { echo "$as_me:$LINENO: result: none needed" >&5
4516 echo "${ECHO_T}none needed" >&6; } ;;
4517 xno)
4518 { echo "$as_me:$LINENO: result: unsupported" >&5
4519 echo "${ECHO_T}unsupported" >&6; } ;;
4521 CC="$CC $ac_cv_prog_cc_c89"
4522 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
4523 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
4524 esac
4527 ac_ext=c
4528 ac_cpp='$CPP $CPPFLAGS'
4529 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4530 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4531 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4533 depcc="$CC" am_compiler_list=
4535 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4536 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
4537 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
4538 echo $ECHO_N "(cached) $ECHO_C" >&6
4539 else
4540 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4541 # We make a subdir and do the tests there. Otherwise we can end up
4542 # making bogus files that we don't know about and never remove. For
4543 # instance it was reported that on HP-UX the gcc test will end up
4544 # making a dummy file named `D' -- because `-MD' means `put the output
4545 # in D'.
4546 mkdir conftest.dir
4547 # Copy depcomp to subdir because otherwise we won't find it if we're
4548 # using a relative directory.
4549 cp "$am_depcomp" conftest.dir
4550 cd conftest.dir
4551 # We will build objects and dependencies in a subdirectory because
4552 # it helps to detect inapplicable dependency modes. For instance
4553 # both Tru64's cc and ICC support -MD to output dependencies as a
4554 # side effect of compilation, but ICC will put the dependencies in
4555 # the current directory while Tru64 will put them in the object
4556 # directory.
4557 mkdir sub
4559 am_cv_CC_dependencies_compiler_type=none
4560 if test "$am_compiler_list" = ""; then
4561 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4563 for depmode in $am_compiler_list; do
4564 # Setup a source with many dependencies, because some compilers
4565 # like to wrap large dependency lists on column 80 (with \), and
4566 # we should not choose a depcomp mode which is confused by this.
4568 # We need to recreate these files for each test, as the compiler may
4569 # overwrite some of them when testing with obscure command lines.
4570 # This happens at least with the AIX C compiler.
4571 : > sub/conftest.c
4572 for i in 1 2 3 4 5 6; do
4573 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4574 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4575 # Solaris 8's {/usr,}/bin/sh.
4576 touch sub/conftst$i.h
4577 done
4578 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4580 case $depmode in
4581 nosideeffect)
4582 # after this tag, mechanisms are not by side-effect, so they'll
4583 # only be used when explicitly requested
4584 if test "x$enable_dependency_tracking" = xyes; then
4585 continue
4586 else
4587 break
4590 none) break ;;
4591 esac
4592 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4593 # mode. It turns out that the SunPro C++ compiler does not properly
4594 # handle `-M -o', and we need to detect this.
4595 if depmode=$depmode \
4596 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4597 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4598 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4599 >/dev/null 2>conftest.err &&
4600 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4601 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4602 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4603 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4604 # icc doesn't choke on unknown options, it will just issue warnings
4605 # or remarks (even with -Werror). So we grep stderr for any message
4606 # that says an option was ignored or not supported.
4607 # When given -MP, icc 7.0 and 7.1 complain thusly:
4608 # icc: Command line warning: ignoring option '-M'; no argument required
4609 # The diagnosis changed in icc 8.0:
4610 # icc: Command line remark: option '-MP' not supported
4611 if (grep 'ignoring option' conftest.err ||
4612 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4613 am_cv_CC_dependencies_compiler_type=$depmode
4614 break
4617 done
4619 cd ..
4620 rm -rf conftest.dir
4621 else
4622 am_cv_CC_dependencies_compiler_type=none
4626 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
4627 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
4628 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4631 test "x$enable_dependency_tracking" != xno \
4632 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4633 am__fastdepCC_TRUE=
4634 am__fastdepCC_FALSE='#'
4635 else
4636 am__fastdepCC_TRUE='#'
4637 am__fastdepCC_FALSE=
4641 ac_ext=c
4642 ac_cpp='$CPP $CPPFLAGS'
4643 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4644 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4645 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4646 if test -n "$ac_tool_prefix"; then
4647 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4648 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4649 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4650 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4651 if test "${ac_cv_prog_CC+set}" = set; then
4652 echo $ECHO_N "(cached) $ECHO_C" >&6
4653 else
4654 if test -n "$CC"; then
4655 ac_cv_prog_CC="$CC" # Let the user override the test.
4656 else
4657 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4658 for as_dir in $PATH
4660 IFS=$as_save_IFS
4661 test -z "$as_dir" && as_dir=.
4662 for ac_exec_ext in '' $ac_executable_extensions; do
4663 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4664 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4665 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4666 break 2
4668 done
4669 done
4670 IFS=$as_save_IFS
4674 CC=$ac_cv_prog_CC
4675 if test -n "$CC"; then
4676 { echo "$as_me:$LINENO: result: $CC" >&5
4677 echo "${ECHO_T}$CC" >&6; }
4678 else
4679 { echo "$as_me:$LINENO: result: no" >&5
4680 echo "${ECHO_T}no" >&6; }
4685 if test -z "$ac_cv_prog_CC"; then
4686 ac_ct_CC=$CC
4687 # Extract the first word of "gcc", so it can be a program name with args.
4688 set dummy gcc; ac_word=$2
4689 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4690 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4691 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4692 echo $ECHO_N "(cached) $ECHO_C" >&6
4693 else
4694 if test -n "$ac_ct_CC"; then
4695 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4696 else
4697 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4698 for as_dir in $PATH
4700 IFS=$as_save_IFS
4701 test -z "$as_dir" && as_dir=.
4702 for ac_exec_ext in '' $ac_executable_extensions; do
4703 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4704 ac_cv_prog_ac_ct_CC="gcc"
4705 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4706 break 2
4708 done
4709 done
4710 IFS=$as_save_IFS
4714 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4715 if test -n "$ac_ct_CC"; then
4716 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4717 echo "${ECHO_T}$ac_ct_CC" >&6; }
4718 else
4719 { echo "$as_me:$LINENO: result: no" >&5
4720 echo "${ECHO_T}no" >&6; }
4723 if test "x$ac_ct_CC" = x; then
4724 CC=""
4725 else
4726 case $cross_compiling:$ac_tool_warned in
4727 yes:)
4728 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4729 whose name does not start with the host triplet. If you think this
4730 configuration is useful to you, please write to autoconf@gnu.org." >&5
4731 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4732 whose name does not start with the host triplet. If you think this
4733 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4734 ac_tool_warned=yes ;;
4735 esac
4736 CC=$ac_ct_CC
4738 else
4739 CC="$ac_cv_prog_CC"
4742 if test -z "$CC"; then
4743 if test -n "$ac_tool_prefix"; then
4744 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4745 set dummy ${ac_tool_prefix}cc; ac_word=$2
4746 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4747 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4748 if test "${ac_cv_prog_CC+set}" = set; then
4749 echo $ECHO_N "(cached) $ECHO_C" >&6
4750 else
4751 if test -n "$CC"; then
4752 ac_cv_prog_CC="$CC" # Let the user override the test.
4753 else
4754 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4755 for as_dir in $PATH
4757 IFS=$as_save_IFS
4758 test -z "$as_dir" && as_dir=.
4759 for ac_exec_ext in '' $ac_executable_extensions; do
4760 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4761 ac_cv_prog_CC="${ac_tool_prefix}cc"
4762 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4763 break 2
4765 done
4766 done
4767 IFS=$as_save_IFS
4771 CC=$ac_cv_prog_CC
4772 if test -n "$CC"; then
4773 { echo "$as_me:$LINENO: result: $CC" >&5
4774 echo "${ECHO_T}$CC" >&6; }
4775 else
4776 { echo "$as_me:$LINENO: result: no" >&5
4777 echo "${ECHO_T}no" >&6; }
4783 if test -z "$CC"; then
4784 # Extract the first word of "cc", so it can be a program name with args.
4785 set dummy cc; ac_word=$2
4786 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4787 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4788 if test "${ac_cv_prog_CC+set}" = set; then
4789 echo $ECHO_N "(cached) $ECHO_C" >&6
4790 else
4791 if test -n "$CC"; then
4792 ac_cv_prog_CC="$CC" # Let the user override the test.
4793 else
4794 ac_prog_rejected=no
4795 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4796 for as_dir in $PATH
4798 IFS=$as_save_IFS
4799 test -z "$as_dir" && as_dir=.
4800 for ac_exec_ext in '' $ac_executable_extensions; do
4801 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4802 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4803 ac_prog_rejected=yes
4804 continue
4806 ac_cv_prog_CC="cc"
4807 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4808 break 2
4810 done
4811 done
4812 IFS=$as_save_IFS
4814 if test $ac_prog_rejected = yes; then
4815 # We found a bogon in the path, so make sure we never use it.
4816 set dummy $ac_cv_prog_CC
4817 shift
4818 if test $# != 0; then
4819 # We chose a different compiler from the bogus one.
4820 # However, it has the same basename, so the bogon will be chosen
4821 # first if we set CC to just the basename; use the full file name.
4822 shift
4823 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4828 CC=$ac_cv_prog_CC
4829 if test -n "$CC"; then
4830 { echo "$as_me:$LINENO: result: $CC" >&5
4831 echo "${ECHO_T}$CC" >&6; }
4832 else
4833 { echo "$as_me:$LINENO: result: no" >&5
4834 echo "${ECHO_T}no" >&6; }
4839 if test -z "$CC"; then
4840 if test -n "$ac_tool_prefix"; then
4841 for ac_prog in cl.exe
4843 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4844 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4845 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4846 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4847 if test "${ac_cv_prog_CC+set}" = set; then
4848 echo $ECHO_N "(cached) $ECHO_C" >&6
4849 else
4850 if test -n "$CC"; then
4851 ac_cv_prog_CC="$CC" # Let the user override the test.
4852 else
4853 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4854 for as_dir in $PATH
4856 IFS=$as_save_IFS
4857 test -z "$as_dir" && as_dir=.
4858 for ac_exec_ext in '' $ac_executable_extensions; do
4859 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4860 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4861 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4862 break 2
4864 done
4865 done
4866 IFS=$as_save_IFS
4870 CC=$ac_cv_prog_CC
4871 if test -n "$CC"; then
4872 { echo "$as_me:$LINENO: result: $CC" >&5
4873 echo "${ECHO_T}$CC" >&6; }
4874 else
4875 { echo "$as_me:$LINENO: result: no" >&5
4876 echo "${ECHO_T}no" >&6; }
4880 test -n "$CC" && break
4881 done
4883 if test -z "$CC"; then
4884 ac_ct_CC=$CC
4885 for ac_prog in cl.exe
4887 # Extract the first word of "$ac_prog", so it can be a program name with args.
4888 set dummy $ac_prog; ac_word=$2
4889 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4890 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4891 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4892 echo $ECHO_N "(cached) $ECHO_C" >&6
4893 else
4894 if test -n "$ac_ct_CC"; then
4895 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4896 else
4897 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4898 for as_dir in $PATH
4900 IFS=$as_save_IFS
4901 test -z "$as_dir" && as_dir=.
4902 for ac_exec_ext in '' $ac_executable_extensions; do
4903 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4904 ac_cv_prog_ac_ct_CC="$ac_prog"
4905 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4906 break 2
4908 done
4909 done
4910 IFS=$as_save_IFS
4914 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4915 if test -n "$ac_ct_CC"; then
4916 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4917 echo "${ECHO_T}$ac_ct_CC" >&6; }
4918 else
4919 { echo "$as_me:$LINENO: result: no" >&5
4920 echo "${ECHO_T}no" >&6; }
4924 test -n "$ac_ct_CC" && break
4925 done
4927 if test "x$ac_ct_CC" = x; then
4928 CC=""
4929 else
4930 case $cross_compiling:$ac_tool_warned in
4931 yes:)
4932 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4933 whose name does not start with the host triplet. If you think this
4934 configuration is useful to you, please write to autoconf@gnu.org." >&5
4935 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4936 whose name does not start with the host triplet. If you think this
4937 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4938 ac_tool_warned=yes ;;
4939 esac
4940 CC=$ac_ct_CC
4947 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
4948 See \`config.log' for more details." >&5
4949 echo "$as_me: error: no acceptable C compiler found in \$PATH
4950 See \`config.log' for more details." >&2;}
4951 { (exit 1); exit 1; }; }
4953 # Provide some information about the compiler.
4954 echo "$as_me:$LINENO: checking for C compiler version" >&5
4955 ac_compiler=`set X $ac_compile; echo $2`
4956 { (ac_try="$ac_compiler --version >&5"
4957 case "(($ac_try" in
4958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4959 *) ac_try_echo=$ac_try;;
4960 esac
4961 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4962 (eval "$ac_compiler --version >&5") 2>&5
4963 ac_status=$?
4964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4965 (exit $ac_status); }
4966 { (ac_try="$ac_compiler -v >&5"
4967 case "(($ac_try" in
4968 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4969 *) ac_try_echo=$ac_try;;
4970 esac
4971 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4972 (eval "$ac_compiler -v >&5") 2>&5
4973 ac_status=$?
4974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4975 (exit $ac_status); }
4976 { (ac_try="$ac_compiler -V >&5"
4977 case "(($ac_try" in
4978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4979 *) ac_try_echo=$ac_try;;
4980 esac
4981 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4982 (eval "$ac_compiler -V >&5") 2>&5
4983 ac_status=$?
4984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4985 (exit $ac_status); }
4987 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
4988 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
4989 if test "${ac_cv_c_compiler_gnu+set}" = set; then
4990 echo $ECHO_N "(cached) $ECHO_C" >&6
4991 else
4992 cat >conftest.$ac_ext <<_ACEOF
4993 /* confdefs.h. */
4994 _ACEOF
4995 cat confdefs.h >>conftest.$ac_ext
4996 cat >>conftest.$ac_ext <<_ACEOF
4997 /* end confdefs.h. */
5000 main ()
5002 #ifndef __GNUC__
5003 choke me
5004 #endif
5007 return 0;
5009 _ACEOF
5010 rm -f conftest.$ac_objext
5011 if { (ac_try="$ac_compile"
5012 case "(($ac_try" in
5013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5014 *) ac_try_echo=$ac_try;;
5015 esac
5016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5017 (eval "$ac_compile") 2>conftest.er1
5018 ac_status=$?
5019 grep -v '^ *+' conftest.er1 >conftest.err
5020 rm -f conftest.er1
5021 cat conftest.err >&5
5022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5023 (exit $ac_status); } && {
5024 test -z "$ac_c_werror_flag" ||
5025 test ! -s conftest.err
5026 } && test -s conftest.$ac_objext; then
5027 ac_compiler_gnu=yes
5028 else
5029 echo "$as_me: failed program was:" >&5
5030 sed 's/^/| /' conftest.$ac_ext >&5
5032 ac_compiler_gnu=no
5035 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5036 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5039 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
5040 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
5041 GCC=`test $ac_compiler_gnu = yes && echo yes`
5042 ac_test_CFLAGS=${CFLAGS+set}
5043 ac_save_CFLAGS=$CFLAGS
5044 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
5045 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
5046 if test "${ac_cv_prog_cc_g+set}" = set; then
5047 echo $ECHO_N "(cached) $ECHO_C" >&6
5048 else
5049 ac_save_c_werror_flag=$ac_c_werror_flag
5050 ac_c_werror_flag=yes
5051 ac_cv_prog_cc_g=no
5052 CFLAGS="-g"
5053 cat >conftest.$ac_ext <<_ACEOF
5054 /* confdefs.h. */
5055 _ACEOF
5056 cat confdefs.h >>conftest.$ac_ext
5057 cat >>conftest.$ac_ext <<_ACEOF
5058 /* end confdefs.h. */
5061 main ()
5065 return 0;
5067 _ACEOF
5068 rm -f conftest.$ac_objext
5069 if { (ac_try="$ac_compile"
5070 case "(($ac_try" in
5071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5072 *) ac_try_echo=$ac_try;;
5073 esac
5074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5075 (eval "$ac_compile") 2>conftest.er1
5076 ac_status=$?
5077 grep -v '^ *+' conftest.er1 >conftest.err
5078 rm -f conftest.er1
5079 cat conftest.err >&5
5080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5081 (exit $ac_status); } && {
5082 test -z "$ac_c_werror_flag" ||
5083 test ! -s conftest.err
5084 } && test -s conftest.$ac_objext; then
5085 ac_cv_prog_cc_g=yes
5086 else
5087 echo "$as_me: failed program was:" >&5
5088 sed 's/^/| /' conftest.$ac_ext >&5
5090 CFLAGS=""
5091 cat >conftest.$ac_ext <<_ACEOF
5092 /* confdefs.h. */
5093 _ACEOF
5094 cat confdefs.h >>conftest.$ac_ext
5095 cat >>conftest.$ac_ext <<_ACEOF
5096 /* end confdefs.h. */
5099 main ()
5103 return 0;
5105 _ACEOF
5106 rm -f conftest.$ac_objext
5107 if { (ac_try="$ac_compile"
5108 case "(($ac_try" in
5109 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5110 *) ac_try_echo=$ac_try;;
5111 esac
5112 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5113 (eval "$ac_compile") 2>conftest.er1
5114 ac_status=$?
5115 grep -v '^ *+' conftest.er1 >conftest.err
5116 rm -f conftest.er1
5117 cat conftest.err >&5
5118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5119 (exit $ac_status); } && {
5120 test -z "$ac_c_werror_flag" ||
5121 test ! -s conftest.err
5122 } && test -s conftest.$ac_objext; then
5124 else
5125 echo "$as_me: failed program was:" >&5
5126 sed 's/^/| /' conftest.$ac_ext >&5
5128 ac_c_werror_flag=$ac_save_c_werror_flag
5129 CFLAGS="-g"
5130 cat >conftest.$ac_ext <<_ACEOF
5131 /* confdefs.h. */
5132 _ACEOF
5133 cat confdefs.h >>conftest.$ac_ext
5134 cat >>conftest.$ac_ext <<_ACEOF
5135 /* end confdefs.h. */
5138 main ()
5142 return 0;
5144 _ACEOF
5145 rm -f conftest.$ac_objext
5146 if { (ac_try="$ac_compile"
5147 case "(($ac_try" in
5148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5149 *) ac_try_echo=$ac_try;;
5150 esac
5151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5152 (eval "$ac_compile") 2>conftest.er1
5153 ac_status=$?
5154 grep -v '^ *+' conftest.er1 >conftest.err
5155 rm -f conftest.er1
5156 cat conftest.err >&5
5157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5158 (exit $ac_status); } && {
5159 test -z "$ac_c_werror_flag" ||
5160 test ! -s conftest.err
5161 } && test -s conftest.$ac_objext; then
5162 ac_cv_prog_cc_g=yes
5163 else
5164 echo "$as_me: failed program was:" >&5
5165 sed 's/^/| /' conftest.$ac_ext >&5
5170 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5173 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5176 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5177 ac_c_werror_flag=$ac_save_c_werror_flag
5179 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
5180 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
5181 if test "$ac_test_CFLAGS" = set; then
5182 CFLAGS=$ac_save_CFLAGS
5183 elif test $ac_cv_prog_cc_g = yes; then
5184 if test "$GCC" = yes; then
5185 CFLAGS="-g -O2"
5186 else
5187 CFLAGS="-g"
5189 else
5190 if test "$GCC" = yes; then
5191 CFLAGS="-O2"
5192 else
5193 CFLAGS=
5196 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
5197 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
5198 if test "${ac_cv_prog_cc_c89+set}" = set; then
5199 echo $ECHO_N "(cached) $ECHO_C" >&6
5200 else
5201 ac_cv_prog_cc_c89=no
5202 ac_save_CC=$CC
5203 cat >conftest.$ac_ext <<_ACEOF
5204 /* confdefs.h. */
5205 _ACEOF
5206 cat confdefs.h >>conftest.$ac_ext
5207 cat >>conftest.$ac_ext <<_ACEOF
5208 /* end confdefs.h. */
5209 #include <stdarg.h>
5210 #include <stdio.h>
5211 #include <sys/types.h>
5212 #include <sys/stat.h>
5213 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5214 struct buf { int x; };
5215 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5216 static char *e (p, i)
5217 char **p;
5218 int i;
5220 return p[i];
5222 static char *f (char * (*g) (char **, int), char **p, ...)
5224 char *s;
5225 va_list v;
5226 va_start (v,p);
5227 s = g (p, va_arg (v,int));
5228 va_end (v);
5229 return s;
5232 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5233 function prototypes and stuff, but not '\xHH' hex character constants.
5234 These don't provoke an error unfortunately, instead are silently treated
5235 as 'x'. The following induces an error, until -std is added to get
5236 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5237 array size at least. It's necessary to write '\x00'==0 to get something
5238 that's true only with -std. */
5239 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5241 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5242 inside strings and character constants. */
5243 #define FOO(x) 'x'
5244 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5246 int test (int i, double x);
5247 struct s1 {int (*f) (int a);};
5248 struct s2 {int (*f) (double a);};
5249 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5250 int argc;
5251 char **argv;
5253 main ()
5255 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5257 return 0;
5259 _ACEOF
5260 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5261 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5263 CC="$ac_save_CC $ac_arg"
5264 rm -f conftest.$ac_objext
5265 if { (ac_try="$ac_compile"
5266 case "(($ac_try" in
5267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5268 *) ac_try_echo=$ac_try;;
5269 esac
5270 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5271 (eval "$ac_compile") 2>conftest.er1
5272 ac_status=$?
5273 grep -v '^ *+' conftest.er1 >conftest.err
5274 rm -f conftest.er1
5275 cat conftest.err >&5
5276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5277 (exit $ac_status); } && {
5278 test -z "$ac_c_werror_flag" ||
5279 test ! -s conftest.err
5280 } && test -s conftest.$ac_objext; then
5281 ac_cv_prog_cc_c89=$ac_arg
5282 else
5283 echo "$as_me: failed program was:" >&5
5284 sed 's/^/| /' conftest.$ac_ext >&5
5289 rm -f core conftest.err conftest.$ac_objext
5290 test "x$ac_cv_prog_cc_c89" != "xno" && break
5291 done
5292 rm -f conftest.$ac_ext
5293 CC=$ac_save_CC
5296 # AC_CACHE_VAL
5297 case "x$ac_cv_prog_cc_c89" in
5299 { echo "$as_me:$LINENO: result: none needed" >&5
5300 echo "${ECHO_T}none needed" >&6; } ;;
5301 xno)
5302 { echo "$as_me:$LINENO: result: unsupported" >&5
5303 echo "${ECHO_T}unsupported" >&6; } ;;
5305 CC="$CC $ac_cv_prog_cc_c89"
5306 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
5307 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
5308 esac
5311 ac_ext=c
5312 ac_cpp='$CPP $CPPFLAGS'
5313 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5314 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5315 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5317 depcc="$CC" am_compiler_list=
5319 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5320 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
5321 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
5322 echo $ECHO_N "(cached) $ECHO_C" >&6
5323 else
5324 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5325 # We make a subdir and do the tests there. Otherwise we can end up
5326 # making bogus files that we don't know about and never remove. For
5327 # instance it was reported that on HP-UX the gcc test will end up
5328 # making a dummy file named `D' -- because `-MD' means `put the output
5329 # in D'.
5330 mkdir conftest.dir
5331 # Copy depcomp to subdir because otherwise we won't find it if we're
5332 # using a relative directory.
5333 cp "$am_depcomp" conftest.dir
5334 cd conftest.dir
5335 # We will build objects and dependencies in a subdirectory because
5336 # it helps to detect inapplicable dependency modes. For instance
5337 # both Tru64's cc and ICC support -MD to output dependencies as a
5338 # side effect of compilation, but ICC will put the dependencies in
5339 # the current directory while Tru64 will put them in the object
5340 # directory.
5341 mkdir sub
5343 am_cv_CC_dependencies_compiler_type=none
5344 if test "$am_compiler_list" = ""; then
5345 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5347 for depmode in $am_compiler_list; do
5348 # Setup a source with many dependencies, because some compilers
5349 # like to wrap large dependency lists on column 80 (with \), and
5350 # we should not choose a depcomp mode which is confused by this.
5352 # We need to recreate these files for each test, as the compiler may
5353 # overwrite some of them when testing with obscure command lines.
5354 # This happens at least with the AIX C compiler.
5355 : > sub/conftest.c
5356 for i in 1 2 3 4 5 6; do
5357 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5358 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5359 # Solaris 8's {/usr,}/bin/sh.
5360 touch sub/conftst$i.h
5361 done
5362 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5364 case $depmode in
5365 nosideeffect)
5366 # after this tag, mechanisms are not by side-effect, so they'll
5367 # only be used when explicitly requested
5368 if test "x$enable_dependency_tracking" = xyes; then
5369 continue
5370 else
5371 break
5374 none) break ;;
5375 esac
5376 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5377 # mode. It turns out that the SunPro C++ compiler does not properly
5378 # handle `-M -o', and we need to detect this.
5379 if depmode=$depmode \
5380 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5381 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5382 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5383 >/dev/null 2>conftest.err &&
5384 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5385 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5386 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5387 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5388 # icc doesn't choke on unknown options, it will just issue warnings
5389 # or remarks (even with -Werror). So we grep stderr for any message
5390 # that says an option was ignored or not supported.
5391 # When given -MP, icc 7.0 and 7.1 complain thusly:
5392 # icc: Command line warning: ignoring option '-M'; no argument required
5393 # The diagnosis changed in icc 8.0:
5394 # icc: Command line remark: option '-MP' not supported
5395 if (grep 'ignoring option' conftest.err ||
5396 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5397 am_cv_CC_dependencies_compiler_type=$depmode
5398 break
5401 done
5403 cd ..
5404 rm -rf conftest.dir
5405 else
5406 am_cv_CC_dependencies_compiler_type=none
5410 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
5411 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
5412 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5415 test "x$enable_dependency_tracking" != xno \
5416 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5417 am__fastdepCC_TRUE=
5418 am__fastdepCC_FALSE='#'
5419 else
5420 am__fastdepCC_TRUE='#'
5421 am__fastdepCC_FALSE=
5426 am_cv_prog_cc_stdc=$ac_cv_prog_cc_stdc
5428 ac_ext=c
5429 ac_cpp='$CPP $CPPFLAGS'
5430 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5431 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5432 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5433 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5434 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
5435 # On Suns, sometimes $CPP names a directory.
5436 if test -n "$CPP" && test -d "$CPP"; then
5437 CPP=
5439 if test -z "$CPP"; then
5440 if test "${ac_cv_prog_CPP+set}" = set; then
5441 echo $ECHO_N "(cached) $ECHO_C" >&6
5442 else
5443 # Double quotes because CPP needs to be expanded
5444 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5446 ac_preproc_ok=false
5447 for ac_c_preproc_warn_flag in '' yes
5449 # Use a header file that comes with gcc, so configuring glibc
5450 # with a fresh cross-compiler works.
5451 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5452 # <limits.h> exists even on freestanding compilers.
5453 # On the NeXT, cc -E runs the code through the compiler's parser,
5454 # not just through cpp. "Syntax error" is here to catch this case.
5455 cat >conftest.$ac_ext <<_ACEOF
5456 /* confdefs.h. */
5457 _ACEOF
5458 cat confdefs.h >>conftest.$ac_ext
5459 cat >>conftest.$ac_ext <<_ACEOF
5460 /* end confdefs.h. */
5461 #ifdef __STDC__
5462 # include <limits.h>
5463 #else
5464 # include <assert.h>
5465 #endif
5466 Syntax error
5467 _ACEOF
5468 if { (ac_try="$ac_cpp conftest.$ac_ext"
5469 case "(($ac_try" in
5470 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5471 *) ac_try_echo=$ac_try;;
5472 esac
5473 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5474 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5475 ac_status=$?
5476 grep -v '^ *+' conftest.er1 >conftest.err
5477 rm -f conftest.er1
5478 cat conftest.err >&5
5479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5480 (exit $ac_status); } >/dev/null && {
5481 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5482 test ! -s conftest.err
5483 }; then
5485 else
5486 echo "$as_me: failed program was:" >&5
5487 sed 's/^/| /' conftest.$ac_ext >&5
5489 # Broken: fails on valid input.
5490 continue
5493 rm -f conftest.err conftest.$ac_ext
5495 # OK, works on sane cases. Now check whether nonexistent headers
5496 # can be detected and how.
5497 cat >conftest.$ac_ext <<_ACEOF
5498 /* confdefs.h. */
5499 _ACEOF
5500 cat confdefs.h >>conftest.$ac_ext
5501 cat >>conftest.$ac_ext <<_ACEOF
5502 /* end confdefs.h. */
5503 #include <ac_nonexistent.h>
5504 _ACEOF
5505 if { (ac_try="$ac_cpp conftest.$ac_ext"
5506 case "(($ac_try" in
5507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5508 *) ac_try_echo=$ac_try;;
5509 esac
5510 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5511 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5512 ac_status=$?
5513 grep -v '^ *+' conftest.er1 >conftest.err
5514 rm -f conftest.er1
5515 cat conftest.err >&5
5516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5517 (exit $ac_status); } >/dev/null && {
5518 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5519 test ! -s conftest.err
5520 }; then
5521 # Broken: success on invalid input.
5522 continue
5523 else
5524 echo "$as_me: failed program was:" >&5
5525 sed 's/^/| /' conftest.$ac_ext >&5
5527 # Passes both tests.
5528 ac_preproc_ok=:
5529 break
5532 rm -f conftest.err conftest.$ac_ext
5534 done
5535 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5536 rm -f conftest.err conftest.$ac_ext
5537 if $ac_preproc_ok; then
5538 break
5541 done
5542 ac_cv_prog_CPP=$CPP
5545 CPP=$ac_cv_prog_CPP
5546 else
5547 ac_cv_prog_CPP=$CPP
5549 { echo "$as_me:$LINENO: result: $CPP" >&5
5550 echo "${ECHO_T}$CPP" >&6; }
5551 ac_preproc_ok=false
5552 for ac_c_preproc_warn_flag in '' yes
5554 # Use a header file that comes with gcc, so configuring glibc
5555 # with a fresh cross-compiler works.
5556 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5557 # <limits.h> exists even on freestanding compilers.
5558 # On the NeXT, cc -E runs the code through the compiler's parser,
5559 # not just through cpp. "Syntax error" is here to catch this case.
5560 cat >conftest.$ac_ext <<_ACEOF
5561 /* confdefs.h. */
5562 _ACEOF
5563 cat confdefs.h >>conftest.$ac_ext
5564 cat >>conftest.$ac_ext <<_ACEOF
5565 /* end confdefs.h. */
5566 #ifdef __STDC__
5567 # include <limits.h>
5568 #else
5569 # include <assert.h>
5570 #endif
5571 Syntax error
5572 _ACEOF
5573 if { (ac_try="$ac_cpp conftest.$ac_ext"
5574 case "(($ac_try" in
5575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5576 *) ac_try_echo=$ac_try;;
5577 esac
5578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5579 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5580 ac_status=$?
5581 grep -v '^ *+' conftest.er1 >conftest.err
5582 rm -f conftest.er1
5583 cat conftest.err >&5
5584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5585 (exit $ac_status); } >/dev/null && {
5586 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5587 test ! -s conftest.err
5588 }; then
5590 else
5591 echo "$as_me: failed program was:" >&5
5592 sed 's/^/| /' conftest.$ac_ext >&5
5594 # Broken: fails on valid input.
5595 continue
5598 rm -f conftest.err conftest.$ac_ext
5600 # OK, works on sane cases. Now check whether nonexistent headers
5601 # can be detected and how.
5602 cat >conftest.$ac_ext <<_ACEOF
5603 /* confdefs.h. */
5604 _ACEOF
5605 cat confdefs.h >>conftest.$ac_ext
5606 cat >>conftest.$ac_ext <<_ACEOF
5607 /* end confdefs.h. */
5608 #include <ac_nonexistent.h>
5609 _ACEOF
5610 if { (ac_try="$ac_cpp conftest.$ac_ext"
5611 case "(($ac_try" in
5612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5613 *) ac_try_echo=$ac_try;;
5614 esac
5615 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5616 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5617 ac_status=$?
5618 grep -v '^ *+' conftest.er1 >conftest.err
5619 rm -f conftest.er1
5620 cat conftest.err >&5
5621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5622 (exit $ac_status); } >/dev/null && {
5623 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5624 test ! -s conftest.err
5625 }; then
5626 # Broken: success on invalid input.
5627 continue
5628 else
5629 echo "$as_me: failed program was:" >&5
5630 sed 's/^/| /' conftest.$ac_ext >&5
5632 # Passes both tests.
5633 ac_preproc_ok=:
5634 break
5637 rm -f conftest.err conftest.$ac_ext
5639 done
5640 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5641 rm -f conftest.err conftest.$ac_ext
5642 if $ac_preproc_ok; then
5644 else
5645 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5646 See \`config.log' for more details." >&5
5647 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5648 See \`config.log' for more details." >&2;}
5649 { (exit 1); exit 1; }; }
5652 ac_ext=c
5653 ac_cpp='$CPP $CPPFLAGS'
5654 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5655 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5656 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5659 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
5660 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
5661 if test "${ac_cv_path_GREP+set}" = set; then
5662 echo $ECHO_N "(cached) $ECHO_C" >&6
5663 else
5664 # Extract the first word of "grep ggrep" to use in msg output
5665 if test -z "$GREP"; then
5666 set dummy grep ggrep; ac_prog_name=$2
5667 if test "${ac_cv_path_GREP+set}" = set; then
5668 echo $ECHO_N "(cached) $ECHO_C" >&6
5669 else
5670 ac_path_GREP_found=false
5671 # Loop through the user's path and test for each of PROGNAME-LIST
5672 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5673 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5675 IFS=$as_save_IFS
5676 test -z "$as_dir" && as_dir=.
5677 for ac_prog in grep ggrep; do
5678 for ac_exec_ext in '' $ac_executable_extensions; do
5679 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5680 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5681 # Check for GNU ac_path_GREP and select it if it is found.
5682 # Check for GNU $ac_path_GREP
5683 case `"$ac_path_GREP" --version 2>&1` in
5684 *GNU*)
5685 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5687 ac_count=0
5688 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5689 while :
5691 cat "conftest.in" "conftest.in" >"conftest.tmp"
5692 mv "conftest.tmp" "conftest.in"
5693 cp "conftest.in" "conftest.nl"
5694 echo 'GREP' >> "conftest.nl"
5695 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5696 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5697 ac_count=`expr $ac_count + 1`
5698 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5699 # Best one so far, save it but keep looking for a better one
5700 ac_cv_path_GREP="$ac_path_GREP"
5701 ac_path_GREP_max=$ac_count
5703 # 10*(2^10) chars as input seems more than enough
5704 test $ac_count -gt 10 && break
5705 done
5706 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5707 esac
5710 $ac_path_GREP_found && break 3
5711 done
5712 done
5714 done
5715 IFS=$as_save_IFS
5720 GREP="$ac_cv_path_GREP"
5721 if test -z "$GREP"; then
5722 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5723 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5724 { (exit 1); exit 1; }; }
5727 else
5728 ac_cv_path_GREP=$GREP
5733 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
5734 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
5735 GREP="$ac_cv_path_GREP"
5738 { echo "$as_me:$LINENO: checking for egrep" >&5
5739 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
5740 if test "${ac_cv_path_EGREP+set}" = set; then
5741 echo $ECHO_N "(cached) $ECHO_C" >&6
5742 else
5743 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5744 then ac_cv_path_EGREP="$GREP -E"
5745 else
5746 # Extract the first word of "egrep" to use in msg output
5747 if test -z "$EGREP"; then
5748 set dummy egrep; ac_prog_name=$2
5749 if test "${ac_cv_path_EGREP+set}" = set; then
5750 echo $ECHO_N "(cached) $ECHO_C" >&6
5751 else
5752 ac_path_EGREP_found=false
5753 # Loop through the user's path and test for each of PROGNAME-LIST
5754 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5755 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5757 IFS=$as_save_IFS
5758 test -z "$as_dir" && as_dir=.
5759 for ac_prog in egrep; do
5760 for ac_exec_ext in '' $ac_executable_extensions; do
5761 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5762 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5763 # Check for GNU ac_path_EGREP and select it if it is found.
5764 # Check for GNU $ac_path_EGREP
5765 case `"$ac_path_EGREP" --version 2>&1` in
5766 *GNU*)
5767 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5769 ac_count=0
5770 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5771 while :
5773 cat "conftest.in" "conftest.in" >"conftest.tmp"
5774 mv "conftest.tmp" "conftest.in"
5775 cp "conftest.in" "conftest.nl"
5776 echo 'EGREP' >> "conftest.nl"
5777 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5778 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5779 ac_count=`expr $ac_count + 1`
5780 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5781 # Best one so far, save it but keep looking for a better one
5782 ac_cv_path_EGREP="$ac_path_EGREP"
5783 ac_path_EGREP_max=$ac_count
5785 # 10*(2^10) chars as input seems more than enough
5786 test $ac_count -gt 10 && break
5787 done
5788 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5789 esac
5792 $ac_path_EGREP_found && break 3
5793 done
5794 done
5796 done
5797 IFS=$as_save_IFS
5802 EGREP="$ac_cv_path_EGREP"
5803 if test -z "$EGREP"; then
5804 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5805 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5806 { (exit 1); exit 1; }; }
5809 else
5810 ac_cv_path_EGREP=$EGREP
5816 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
5817 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
5818 EGREP="$ac_cv_path_EGREP"
5821 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5822 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
5823 if test "${ac_cv_header_stdc+set}" = set; then
5824 echo $ECHO_N "(cached) $ECHO_C" >&6
5825 else
5826 cat >conftest.$ac_ext <<_ACEOF
5827 /* confdefs.h. */
5828 _ACEOF
5829 cat confdefs.h >>conftest.$ac_ext
5830 cat >>conftest.$ac_ext <<_ACEOF
5831 /* end confdefs.h. */
5832 #include <stdlib.h>
5833 #include <stdarg.h>
5834 #include <string.h>
5835 #include <float.h>
5838 main ()
5842 return 0;
5844 _ACEOF
5845 rm -f conftest.$ac_objext
5846 if { (ac_try="$ac_compile"
5847 case "(($ac_try" in
5848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5849 *) ac_try_echo=$ac_try;;
5850 esac
5851 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5852 (eval "$ac_compile") 2>conftest.er1
5853 ac_status=$?
5854 grep -v '^ *+' conftest.er1 >conftest.err
5855 rm -f conftest.er1
5856 cat conftest.err >&5
5857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5858 (exit $ac_status); } && {
5859 test -z "$ac_c_werror_flag" ||
5860 test ! -s conftest.err
5861 } && test -s conftest.$ac_objext; then
5862 ac_cv_header_stdc=yes
5863 else
5864 echo "$as_me: failed program was:" >&5
5865 sed 's/^/| /' conftest.$ac_ext >&5
5867 ac_cv_header_stdc=no
5870 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5872 if test $ac_cv_header_stdc = yes; then
5873 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5874 cat >conftest.$ac_ext <<_ACEOF
5875 /* confdefs.h. */
5876 _ACEOF
5877 cat confdefs.h >>conftest.$ac_ext
5878 cat >>conftest.$ac_ext <<_ACEOF
5879 /* end confdefs.h. */
5880 #include <string.h>
5882 _ACEOF
5883 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5884 $EGREP "memchr" >/dev/null 2>&1; then
5886 else
5887 ac_cv_header_stdc=no
5889 rm -f conftest*
5893 if test $ac_cv_header_stdc = yes; then
5894 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5895 cat >conftest.$ac_ext <<_ACEOF
5896 /* confdefs.h. */
5897 _ACEOF
5898 cat confdefs.h >>conftest.$ac_ext
5899 cat >>conftest.$ac_ext <<_ACEOF
5900 /* end confdefs.h. */
5901 #include <stdlib.h>
5903 _ACEOF
5904 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5905 $EGREP "free" >/dev/null 2>&1; then
5907 else
5908 ac_cv_header_stdc=no
5910 rm -f conftest*
5914 if test $ac_cv_header_stdc = yes; then
5915 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5916 if test "$cross_compiling" = yes; then
5918 else
5919 cat >conftest.$ac_ext <<_ACEOF
5920 /* confdefs.h. */
5921 _ACEOF
5922 cat confdefs.h >>conftest.$ac_ext
5923 cat >>conftest.$ac_ext <<_ACEOF
5924 /* end confdefs.h. */
5925 #include <ctype.h>
5926 #include <stdlib.h>
5927 #if ((' ' & 0x0FF) == 0x020)
5928 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5929 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5930 #else
5931 # define ISLOWER(c) \
5932 (('a' <= (c) && (c) <= 'i') \
5933 || ('j' <= (c) && (c) <= 'r') \
5934 || ('s' <= (c) && (c) <= 'z'))
5935 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5936 #endif
5938 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5940 main ()
5942 int i;
5943 for (i = 0; i < 256; i++)
5944 if (XOR (islower (i), ISLOWER (i))
5945 || toupper (i) != TOUPPER (i))
5946 return 2;
5947 return 0;
5949 _ACEOF
5950 rm -f conftest$ac_exeext
5951 if { (ac_try="$ac_link"
5952 case "(($ac_try" in
5953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5954 *) ac_try_echo=$ac_try;;
5955 esac
5956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5957 (eval "$ac_link") 2>&5
5958 ac_status=$?
5959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5960 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5961 { (case "(($ac_try" in
5962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5963 *) ac_try_echo=$ac_try;;
5964 esac
5965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5966 (eval "$ac_try") 2>&5
5967 ac_status=$?
5968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5969 (exit $ac_status); }; }; then
5971 else
5972 echo "$as_me: program exited with status $ac_status" >&5
5973 echo "$as_me: failed program was:" >&5
5974 sed 's/^/| /' conftest.$ac_ext >&5
5976 ( exit $ac_status )
5977 ac_cv_header_stdc=no
5979 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5985 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5986 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
5987 if test $ac_cv_header_stdc = yes; then
5989 cat >>confdefs.h <<\_ACEOF
5990 #define STDC_HEADERS 1
5991 _ACEOF
5995 ac_ext=cpp
5996 ac_cpp='$CXXCPP $CPPFLAGS'
5997 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5998 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5999 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6000 if test -z "$CXX"; then
6001 if test -n "$CCC"; then
6002 CXX=$CCC
6003 else
6004 if test -n "$ac_tool_prefix"; then
6005 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
6007 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6008 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6009 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6010 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6011 if test "${ac_cv_prog_CXX+set}" = set; then
6012 echo $ECHO_N "(cached) $ECHO_C" >&6
6013 else
6014 if test -n "$CXX"; then
6015 ac_cv_prog_CXX="$CXX" # Let the user override the test.
6016 else
6017 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6018 for as_dir in $PATH
6020 IFS=$as_save_IFS
6021 test -z "$as_dir" && as_dir=.
6022 for ac_exec_ext in '' $ac_executable_extensions; do
6023 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6024 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
6025 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6026 break 2
6028 done
6029 done
6030 IFS=$as_save_IFS
6034 CXX=$ac_cv_prog_CXX
6035 if test -n "$CXX"; then
6036 { echo "$as_me:$LINENO: result: $CXX" >&5
6037 echo "${ECHO_T}$CXX" >&6; }
6038 else
6039 { echo "$as_me:$LINENO: result: no" >&5
6040 echo "${ECHO_T}no" >&6; }
6044 test -n "$CXX" && break
6045 done
6047 if test -z "$CXX"; then
6048 ac_ct_CXX=$CXX
6049 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
6051 # Extract the first word of "$ac_prog", so it can be a program name with args.
6052 set dummy $ac_prog; ac_word=$2
6053 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6054 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6055 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
6056 echo $ECHO_N "(cached) $ECHO_C" >&6
6057 else
6058 if test -n "$ac_ct_CXX"; then
6059 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6060 else
6061 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6062 for as_dir in $PATH
6064 IFS=$as_save_IFS
6065 test -z "$as_dir" && as_dir=.
6066 for ac_exec_ext in '' $ac_executable_extensions; do
6067 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6068 ac_cv_prog_ac_ct_CXX="$ac_prog"
6069 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6070 break 2
6072 done
6073 done
6074 IFS=$as_save_IFS
6078 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6079 if test -n "$ac_ct_CXX"; then
6080 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
6081 echo "${ECHO_T}$ac_ct_CXX" >&6; }
6082 else
6083 { echo "$as_me:$LINENO: result: no" >&5
6084 echo "${ECHO_T}no" >&6; }
6088 test -n "$ac_ct_CXX" && break
6089 done
6091 if test "x$ac_ct_CXX" = x; then
6092 CXX="g++"
6093 else
6094 case $cross_compiling:$ac_tool_warned in
6095 yes:)
6096 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6097 whose name does not start with the host triplet. If you think this
6098 configuration is useful to you, please write to autoconf@gnu.org." >&5
6099 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6100 whose name does not start with the host triplet. If you think this
6101 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6102 ac_tool_warned=yes ;;
6103 esac
6104 CXX=$ac_ct_CXX
6110 # Provide some information about the compiler.
6111 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
6112 ac_compiler=`set X $ac_compile; echo $2`
6113 { (ac_try="$ac_compiler --version >&5"
6114 case "(($ac_try" in
6115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6116 *) ac_try_echo=$ac_try;;
6117 esac
6118 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6119 (eval "$ac_compiler --version >&5") 2>&5
6120 ac_status=$?
6121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6122 (exit $ac_status); }
6123 { (ac_try="$ac_compiler -v >&5"
6124 case "(($ac_try" in
6125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6126 *) ac_try_echo=$ac_try;;
6127 esac
6128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6129 (eval "$ac_compiler -v >&5") 2>&5
6130 ac_status=$?
6131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6132 (exit $ac_status); }
6133 { (ac_try="$ac_compiler -V >&5"
6134 case "(($ac_try" in
6135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6136 *) ac_try_echo=$ac_try;;
6137 esac
6138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6139 (eval "$ac_compiler -V >&5") 2>&5
6140 ac_status=$?
6141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6142 (exit $ac_status); }
6144 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
6145 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
6146 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
6147 echo $ECHO_N "(cached) $ECHO_C" >&6
6148 else
6149 cat >conftest.$ac_ext <<_ACEOF
6150 /* confdefs.h. */
6151 _ACEOF
6152 cat confdefs.h >>conftest.$ac_ext
6153 cat >>conftest.$ac_ext <<_ACEOF
6154 /* end confdefs.h. */
6157 main ()
6159 #ifndef __GNUC__
6160 choke me
6161 #endif
6164 return 0;
6166 _ACEOF
6167 rm -f conftest.$ac_objext
6168 if { (ac_try="$ac_compile"
6169 case "(($ac_try" in
6170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6171 *) ac_try_echo=$ac_try;;
6172 esac
6173 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6174 (eval "$ac_compile") 2>conftest.er1
6175 ac_status=$?
6176 grep -v '^ *+' conftest.er1 >conftest.err
6177 rm -f conftest.er1
6178 cat conftest.err >&5
6179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6180 (exit $ac_status); } && {
6181 test -z "$ac_cxx_werror_flag" ||
6182 test ! -s conftest.err
6183 } && test -s conftest.$ac_objext; then
6184 ac_compiler_gnu=yes
6185 else
6186 echo "$as_me: failed program was:" >&5
6187 sed 's/^/| /' conftest.$ac_ext >&5
6189 ac_compiler_gnu=no
6192 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6193 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6196 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
6197 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
6198 GXX=`test $ac_compiler_gnu = yes && echo yes`
6199 ac_test_CXXFLAGS=${CXXFLAGS+set}
6200 ac_save_CXXFLAGS=$CXXFLAGS
6201 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
6202 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
6203 if test "${ac_cv_prog_cxx_g+set}" = set; then
6204 echo $ECHO_N "(cached) $ECHO_C" >&6
6205 else
6206 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6207 ac_cxx_werror_flag=yes
6208 ac_cv_prog_cxx_g=no
6209 CXXFLAGS="-g"
6210 cat >conftest.$ac_ext <<_ACEOF
6211 /* confdefs.h. */
6212 _ACEOF
6213 cat confdefs.h >>conftest.$ac_ext
6214 cat >>conftest.$ac_ext <<_ACEOF
6215 /* end confdefs.h. */
6218 main ()
6222 return 0;
6224 _ACEOF
6225 rm -f conftest.$ac_objext
6226 if { (ac_try="$ac_compile"
6227 case "(($ac_try" in
6228 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6229 *) ac_try_echo=$ac_try;;
6230 esac
6231 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6232 (eval "$ac_compile") 2>conftest.er1
6233 ac_status=$?
6234 grep -v '^ *+' conftest.er1 >conftest.err
6235 rm -f conftest.er1
6236 cat conftest.err >&5
6237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6238 (exit $ac_status); } && {
6239 test -z "$ac_cxx_werror_flag" ||
6240 test ! -s conftest.err
6241 } && test -s conftest.$ac_objext; then
6242 ac_cv_prog_cxx_g=yes
6243 else
6244 echo "$as_me: failed program was:" >&5
6245 sed 's/^/| /' conftest.$ac_ext >&5
6247 CXXFLAGS=""
6248 cat >conftest.$ac_ext <<_ACEOF
6249 /* confdefs.h. */
6250 _ACEOF
6251 cat confdefs.h >>conftest.$ac_ext
6252 cat >>conftest.$ac_ext <<_ACEOF
6253 /* end confdefs.h. */
6256 main ()
6260 return 0;
6262 _ACEOF
6263 rm -f conftest.$ac_objext
6264 if { (ac_try="$ac_compile"
6265 case "(($ac_try" in
6266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6267 *) ac_try_echo=$ac_try;;
6268 esac
6269 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6270 (eval "$ac_compile") 2>conftest.er1
6271 ac_status=$?
6272 grep -v '^ *+' conftest.er1 >conftest.err
6273 rm -f conftest.er1
6274 cat conftest.err >&5
6275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6276 (exit $ac_status); } && {
6277 test -z "$ac_cxx_werror_flag" ||
6278 test ! -s conftest.err
6279 } && test -s conftest.$ac_objext; then
6281 else
6282 echo "$as_me: failed program was:" >&5
6283 sed 's/^/| /' conftest.$ac_ext >&5
6285 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6286 CXXFLAGS="-g"
6287 cat >conftest.$ac_ext <<_ACEOF
6288 /* confdefs.h. */
6289 _ACEOF
6290 cat confdefs.h >>conftest.$ac_ext
6291 cat >>conftest.$ac_ext <<_ACEOF
6292 /* end confdefs.h. */
6295 main ()
6299 return 0;
6301 _ACEOF
6302 rm -f conftest.$ac_objext
6303 if { (ac_try="$ac_compile"
6304 case "(($ac_try" in
6305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6306 *) ac_try_echo=$ac_try;;
6307 esac
6308 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6309 (eval "$ac_compile") 2>conftest.er1
6310 ac_status=$?
6311 grep -v '^ *+' conftest.er1 >conftest.err
6312 rm -f conftest.er1
6313 cat conftest.err >&5
6314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6315 (exit $ac_status); } && {
6316 test -z "$ac_cxx_werror_flag" ||
6317 test ! -s conftest.err
6318 } && test -s conftest.$ac_objext; then
6319 ac_cv_prog_cxx_g=yes
6320 else
6321 echo "$as_me: failed program was:" >&5
6322 sed 's/^/| /' conftest.$ac_ext >&5
6327 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6330 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6333 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6334 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6336 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
6337 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
6338 if test "$ac_test_CXXFLAGS" = set; then
6339 CXXFLAGS=$ac_save_CXXFLAGS
6340 elif test $ac_cv_prog_cxx_g = yes; then
6341 if test "$GXX" = yes; then
6342 CXXFLAGS="-g -O2"
6343 else
6344 CXXFLAGS="-g"
6346 else
6347 if test "$GXX" = yes; then
6348 CXXFLAGS="-O2"
6349 else
6350 CXXFLAGS=
6353 ac_ext=c
6354 ac_cpp='$CPP $CPPFLAGS'
6355 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6356 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6357 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6359 depcc="$CXX" am_compiler_list=
6361 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
6362 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
6363 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
6364 echo $ECHO_N "(cached) $ECHO_C" >&6
6365 else
6366 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6367 # We make a subdir and do the tests there. Otherwise we can end up
6368 # making bogus files that we don't know about and never remove. For
6369 # instance it was reported that on HP-UX the gcc test will end up
6370 # making a dummy file named `D' -- because `-MD' means `put the output
6371 # in D'.
6372 mkdir conftest.dir
6373 # Copy depcomp to subdir because otherwise we won't find it if we're
6374 # using a relative directory.
6375 cp "$am_depcomp" conftest.dir
6376 cd conftest.dir
6377 # We will build objects and dependencies in a subdirectory because
6378 # it helps to detect inapplicable dependency modes. For instance
6379 # both Tru64's cc and ICC support -MD to output dependencies as a
6380 # side effect of compilation, but ICC will put the dependencies in
6381 # the current directory while Tru64 will put them in the object
6382 # directory.
6383 mkdir sub
6385 am_cv_CXX_dependencies_compiler_type=none
6386 if test "$am_compiler_list" = ""; then
6387 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6389 for depmode in $am_compiler_list; do
6390 # Setup a source with many dependencies, because some compilers
6391 # like to wrap large dependency lists on column 80 (with \), and
6392 # we should not choose a depcomp mode which is confused by this.
6394 # We need to recreate these files for each test, as the compiler may
6395 # overwrite some of them when testing with obscure command lines.
6396 # This happens at least with the AIX C compiler.
6397 : > sub/conftest.c
6398 for i in 1 2 3 4 5 6; do
6399 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6400 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6401 # Solaris 8's {/usr,}/bin/sh.
6402 touch sub/conftst$i.h
6403 done
6404 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6406 case $depmode in
6407 nosideeffect)
6408 # after this tag, mechanisms are not by side-effect, so they'll
6409 # only be used when explicitly requested
6410 if test "x$enable_dependency_tracking" = xyes; then
6411 continue
6412 else
6413 break
6416 none) break ;;
6417 esac
6418 # We check with `-c' and `-o' for the sake of the "dashmstdout"
6419 # mode. It turns out that the SunPro C++ compiler does not properly
6420 # handle `-M -o', and we need to detect this.
6421 if depmode=$depmode \
6422 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
6423 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6424 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
6425 >/dev/null 2>conftest.err &&
6426 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6427 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6428 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
6429 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6430 # icc doesn't choke on unknown options, it will just issue warnings
6431 # or remarks (even with -Werror). So we grep stderr for any message
6432 # that says an option was ignored or not supported.
6433 # When given -MP, icc 7.0 and 7.1 complain thusly:
6434 # icc: Command line warning: ignoring option '-M'; no argument required
6435 # The diagnosis changed in icc 8.0:
6436 # icc: Command line remark: option '-MP' not supported
6437 if (grep 'ignoring option' conftest.err ||
6438 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6439 am_cv_CXX_dependencies_compiler_type=$depmode
6440 break
6443 done
6445 cd ..
6446 rm -rf conftest.dir
6447 else
6448 am_cv_CXX_dependencies_compiler_type=none
6452 { echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
6453 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
6454 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
6457 test "x$enable_dependency_tracking" != xno \
6458 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
6459 am__fastdepCXX_TRUE=
6460 am__fastdepCXX_FALSE='#'
6461 else
6462 am__fastdepCXX_TRUE='#'
6463 am__fastdepCXX_FALSE=
6467 # Check whether --enable-static was given.
6468 if test "${enable_static+set}" = set; then
6469 enableval=$enable_static; p=${PACKAGE-default}
6470 case $enableval in
6471 yes) enable_static=yes ;;
6472 no) enable_static=no ;;
6474 enable_static=no
6475 # Look at the argument we got. We use all the common list separators.
6476 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6477 for pkg in $enableval; do
6478 IFS="$lt_save_ifs"
6479 if test "X$pkg" = "X$p"; then
6480 enable_static=yes
6482 done
6483 IFS="$lt_save_ifs"
6485 esac
6486 else
6487 enable_static=no
6492 # Check whether --enable-shared was given.
6493 if test "${enable_shared+set}" = set; then
6494 enableval=$enable_shared; p=${PACKAGE-default}
6495 case $enableval in
6496 yes) enable_shared=yes ;;
6497 no) enable_shared=no ;;
6499 enable_shared=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_shared=yes
6507 done
6508 IFS="$lt_save_ifs"
6510 esac
6511 else
6512 enable_shared=yes
6516 # Check whether --enable-fast-install was given.
6517 if test "${enable_fast_install+set}" = set; then
6518 enableval=$enable_fast_install; p=${PACKAGE-default}
6519 case $enableval in
6520 yes) enable_fast_install=yes ;;
6521 no) enable_fast_install=no ;;
6523 enable_fast_install=no
6524 # Look at the argument we got. We use all the common list separators.
6525 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6526 for pkg in $enableval; do
6527 IFS="$lt_save_ifs"
6528 if test "X$pkg" = "X$p"; then
6529 enable_fast_install=yes
6531 done
6532 IFS="$lt_save_ifs"
6534 esac
6535 else
6536 enable_fast_install=yes
6540 # Make sure we can run config.sub.
6541 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
6542 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
6543 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
6544 { (exit 1); exit 1; }; }
6546 { echo "$as_me:$LINENO: checking build system type" >&5
6547 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
6548 if test "${ac_cv_build+set}" = set; then
6549 echo $ECHO_N "(cached) $ECHO_C" >&6
6550 else
6551 ac_build_alias=$build_alias
6552 test "x$ac_build_alias" = x &&
6553 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
6554 test "x$ac_build_alias" = x &&
6555 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
6556 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
6557 { (exit 1); exit 1; }; }
6558 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
6559 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
6560 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
6561 { (exit 1); exit 1; }; }
6564 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
6565 echo "${ECHO_T}$ac_cv_build" >&6; }
6566 case $ac_cv_build in
6567 *-*-*) ;;
6568 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
6569 echo "$as_me: error: invalid value of canonical build" >&2;}
6570 { (exit 1); exit 1; }; };;
6571 esac
6572 build=$ac_cv_build
6573 ac_save_IFS=$IFS; IFS='-'
6574 set x $ac_cv_build
6575 shift
6576 build_cpu=$1
6577 build_vendor=$2
6578 shift; shift
6579 # Remember, the first character of IFS is used to create $*,
6580 # except with old shells:
6581 build_os=$*
6582 IFS=$ac_save_IFS
6583 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
6586 { echo "$as_me:$LINENO: checking host system type" >&5
6587 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
6588 if test "${ac_cv_host+set}" = set; then
6589 echo $ECHO_N "(cached) $ECHO_C" >&6
6590 else
6591 if test "x$host_alias" = x; then
6592 ac_cv_host=$ac_cv_build
6593 else
6594 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
6595 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
6596 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
6597 { (exit 1); exit 1; }; }
6601 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
6602 echo "${ECHO_T}$ac_cv_host" >&6; }
6603 case $ac_cv_host in
6604 *-*-*) ;;
6605 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
6606 echo "$as_me: error: invalid value of canonical host" >&2;}
6607 { (exit 1); exit 1; }; };;
6608 esac
6609 host=$ac_cv_host
6610 ac_save_IFS=$IFS; IFS='-'
6611 set x $ac_cv_host
6612 shift
6613 host_cpu=$1
6614 host_vendor=$2
6615 shift; shift
6616 # Remember, the first character of IFS is used to create $*,
6617 # except with old shells:
6618 host_os=$*
6619 IFS=$ac_save_IFS
6620 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
6623 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
6624 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
6625 if test "${lt_cv_path_SED+set}" = set; then
6626 echo $ECHO_N "(cached) $ECHO_C" >&6
6627 else
6628 # Loop through the user's path and test for sed and gsed.
6629 # Then use that list of sed's as ones to test for truncation.
6630 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6631 for as_dir in $PATH
6633 IFS=$as_save_IFS
6634 test -z "$as_dir" && as_dir=.
6635 for lt_ac_prog in sed gsed; do
6636 for ac_exec_ext in '' $ac_executable_extensions; do
6637 if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then
6638 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
6640 done
6641 done
6642 done
6643 IFS=$as_save_IFS
6644 lt_ac_max=0
6645 lt_ac_count=0
6646 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
6647 # along with /bin/sed that truncates output.
6648 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
6649 test ! -f $lt_ac_sed && continue
6650 cat /dev/null > conftest.in
6651 lt_ac_count=0
6652 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
6653 # Check for GNU sed and select it if it is found.
6654 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
6655 lt_cv_path_SED=$lt_ac_sed
6656 break
6658 while true; do
6659 cat conftest.in conftest.in >conftest.tmp
6660 mv conftest.tmp conftest.in
6661 cp conftest.in conftest.nl
6662 echo >>conftest.nl
6663 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
6664 cmp -s conftest.out conftest.nl || break
6665 # 10000 chars as input seems more than enough
6666 test $lt_ac_count -gt 10 && break
6667 lt_ac_count=`expr $lt_ac_count + 1`
6668 if test $lt_ac_count -gt $lt_ac_max; then
6669 lt_ac_max=$lt_ac_count
6670 lt_cv_path_SED=$lt_ac_sed
6672 done
6673 done
6677 SED=$lt_cv_path_SED
6679 { echo "$as_me:$LINENO: result: $SED" >&5
6680 echo "${ECHO_T}$SED" >&6; }
6683 # Check whether --with-gnu-ld was given.
6684 if test "${with_gnu_ld+set}" = set; then
6685 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6686 else
6687 with_gnu_ld=no
6690 ac_prog=ld
6691 if test "$GCC" = yes; then
6692 # Check if gcc -print-prog-name=ld gives a path.
6693 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
6694 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
6695 case $host in
6696 *-*-mingw*)
6697 # gcc leaves a trailing carriage return which upsets mingw
6698 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6700 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6701 esac
6702 case $ac_prog in
6703 # Accept absolute paths.
6704 [\\/]* | ?:[\\/]*)
6705 re_direlt='/[^/][^/]*/\.\./'
6706 # Canonicalize the pathname of ld
6707 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
6708 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
6709 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
6710 done
6711 test -z "$LD" && LD="$ac_prog"
6714 # If it fails, then pretend we aren't using GCC.
6715 ac_prog=ld
6718 # If it is relative, then search for the first ld in PATH.
6719 with_gnu_ld=unknown
6721 esac
6722 elif test "$with_gnu_ld" = yes; then
6723 { echo "$as_me:$LINENO: checking for GNU ld" >&5
6724 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
6725 else
6726 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
6727 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
6729 if test "${lt_cv_path_LD+set}" = set; then
6730 echo $ECHO_N "(cached) $ECHO_C" >&6
6731 else
6732 if test -z "$LD"; then
6733 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6734 for ac_dir in $PATH; do
6735 IFS="$lt_save_ifs"
6736 test -z "$ac_dir" && ac_dir=.
6737 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6738 lt_cv_path_LD="$ac_dir/$ac_prog"
6739 # Check to see if the program is GNU ld. I'd rather use --version,
6740 # but apparently some variants of GNU ld only accept -v.
6741 # Break only if it was the GNU/non-GNU ld that we prefer.
6742 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6743 *GNU* | *'with BFD'*)
6744 test "$with_gnu_ld" != no && break
6747 test "$with_gnu_ld" != yes && break
6749 esac
6751 done
6752 IFS="$lt_save_ifs"
6753 else
6754 lt_cv_path_LD="$LD" # Let the user override the test with a path.
6758 LD="$lt_cv_path_LD"
6759 if test -n "$LD"; then
6760 { echo "$as_me:$LINENO: result: $LD" >&5
6761 echo "${ECHO_T}$LD" >&6; }
6762 else
6763 { echo "$as_me:$LINENO: result: no" >&5
6764 echo "${ECHO_T}no" >&6; }
6766 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
6767 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
6768 { (exit 1); exit 1; }; }
6769 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
6770 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
6771 if test "${lt_cv_prog_gnu_ld+set}" = set; then
6772 echo $ECHO_N "(cached) $ECHO_C" >&6
6773 else
6774 # I'd rather use --version here, but apparently some GNU lds only accept -v.
6775 case `$LD -v 2>&1 </dev/null` in
6776 *GNU* | *'with BFD'*)
6777 lt_cv_prog_gnu_ld=yes
6780 lt_cv_prog_gnu_ld=no
6782 esac
6784 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
6785 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
6786 with_gnu_ld=$lt_cv_prog_gnu_ld
6789 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
6790 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
6791 if test "${lt_cv_ld_reload_flag+set}" = set; then
6792 echo $ECHO_N "(cached) $ECHO_C" >&6
6793 else
6794 lt_cv_ld_reload_flag='-r'
6796 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
6797 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
6798 reload_flag=$lt_cv_ld_reload_flag
6799 case $reload_flag in
6800 "" | " "*) ;;
6801 *) reload_flag=" $reload_flag" ;;
6802 esac
6803 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6804 case $host_os in
6805 darwin*)
6806 if test "$GCC" = yes; then
6807 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6808 else
6809 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6812 esac
6814 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6815 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
6816 if test "${lt_cv_path_NM+set}" = set; then
6817 echo $ECHO_N "(cached) $ECHO_C" >&6
6818 else
6819 if test -n "$NM"; then
6820 # Let the user override the test.
6821 lt_cv_path_NM="$NM"
6822 else
6823 lt_nm_to_check="${ac_tool_prefix}nm"
6824 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6825 lt_nm_to_check="$lt_nm_to_check nm"
6827 for lt_tmp_nm in $lt_nm_to_check; do
6828 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6829 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6830 IFS="$lt_save_ifs"
6831 test -z "$ac_dir" && ac_dir=.
6832 tmp_nm="$ac_dir/$lt_tmp_nm"
6833 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6834 # Check to see if the nm accepts a BSD-compat flag.
6835 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6836 # nm: unknown option "B" ignored
6837 # Tru64's nm complains that /dev/null is an invalid object file
6838 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6839 */dev/null* | *'Invalid file or object type'*)
6840 lt_cv_path_NM="$tmp_nm -B"
6841 break
6844 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6845 */dev/null*)
6846 lt_cv_path_NM="$tmp_nm -p"
6847 break
6850 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6851 continue # so that we can try to find one that supports BSD flags
6853 esac
6855 esac
6857 done
6858 IFS="$lt_save_ifs"
6859 done
6860 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6863 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6864 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
6865 NM="$lt_cv_path_NM"
6867 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
6868 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6869 LN_S=$as_ln_s
6870 if test "$LN_S" = "ln -s"; then
6871 { echo "$as_me:$LINENO: result: yes" >&5
6872 echo "${ECHO_T}yes" >&6; }
6873 else
6874 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6875 echo "${ECHO_T}no, using $LN_S" >&6; }
6878 { echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
6879 echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6; }
6880 if test "${lt_cv_deplibs_check_method+set}" = set; then
6881 echo $ECHO_N "(cached) $ECHO_C" >&6
6882 else
6883 lt_cv_file_magic_cmd='$MAGIC_CMD'
6884 lt_cv_file_magic_test_file=
6885 lt_cv_deplibs_check_method='unknown'
6886 # Need to set the preceding variable on all platforms that support
6887 # interlibrary dependencies.
6888 # 'none' -- dependencies not supported.
6889 # `unknown' -- same as none, but documents that we really don't know.
6890 # 'pass_all' -- all dependencies passed with no checks.
6891 # 'test_compile' -- check by making test program.
6892 # 'file_magic [[regex]]' -- check by looking for files in library path
6893 # which responds to the $file_magic_cmd with a given extended regex.
6894 # If you have `file' or equivalent on your system and you're not sure
6895 # whether `pass_all' will *always* work, you probably want this one.
6897 case $host_os in
6898 aix[4-9]*)
6899 lt_cv_deplibs_check_method=pass_all
6902 beos*)
6903 lt_cv_deplibs_check_method=pass_all
6906 bsdi[45]*)
6907 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6908 lt_cv_file_magic_cmd='/usr/bin/file -L'
6909 lt_cv_file_magic_test_file=/shlib/libc.so
6912 cygwin*)
6913 # func_win32_libid is a shell function defined in ltmain.sh
6914 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6915 lt_cv_file_magic_cmd='func_win32_libid'
6918 mingw* | pw32*)
6919 # Base MSYS/MinGW do not provide the 'file' command needed by
6920 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6921 # unless we find 'file', for example because we are cross-compiling.
6922 if ( file / ) >/dev/null 2>&1; then
6923 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6924 lt_cv_file_magic_cmd='func_win32_libid'
6925 else
6926 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6927 lt_cv_file_magic_cmd='$OBJDUMP -f'
6931 darwin* | rhapsody*)
6932 lt_cv_deplibs_check_method=pass_all
6935 freebsd* | dragonfly*)
6936 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
6937 case $host_cpu in
6938 i*86 )
6939 # Not sure whether the presence of OpenBSD here was a mistake.
6940 # Let's accept both of them until this is cleared up.
6941 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6942 lt_cv_file_magic_cmd=/usr/bin/file
6943 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6945 esac
6946 else
6947 lt_cv_deplibs_check_method=pass_all
6951 gnu*)
6952 lt_cv_deplibs_check_method=pass_all
6955 hpux10.20* | hpux11*)
6956 lt_cv_file_magic_cmd=/usr/bin/file
6957 case $host_cpu in
6958 ia64*)
6959 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6960 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6962 hppa*64*)
6963 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]'
6964 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6967 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
6968 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6970 esac
6973 interix[3-9]*)
6974 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6975 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6978 irix5* | irix6* | nonstopux*)
6979 case $LD in
6980 *-32|*"-32 ") libmagic=32-bit;;
6981 *-n32|*"-n32 ") libmagic=N32;;
6982 *-64|*"-64 ") libmagic=64-bit;;
6983 *) libmagic=never-match;;
6984 esac
6985 lt_cv_deplibs_check_method=pass_all
6988 # This must be Linux ELF.
6989 linux* | k*bsd*-gnu)
6990 lt_cv_deplibs_check_method=pass_all
6993 netbsd* | netbsdelf*-gnu)
6994 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
6995 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6996 else
6997 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
7001 newos6*)
7002 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
7003 lt_cv_file_magic_cmd=/usr/bin/file
7004 lt_cv_file_magic_test_file=/usr/lib/libnls.so
7007 nto-qnx*)
7008 lt_cv_deplibs_check_method=unknown
7011 openbsd*)
7012 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7013 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
7014 else
7015 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7019 osf3* | osf4* | osf5*)
7020 lt_cv_deplibs_check_method=pass_all
7023 rdos*)
7024 lt_cv_deplibs_check_method=pass_all
7027 solaris*)
7028 lt_cv_deplibs_check_method=pass_all
7031 sysv4 | sysv4.3*)
7032 case $host_vendor in
7033 motorola)
7034 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]'
7035 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
7037 ncr)
7038 lt_cv_deplibs_check_method=pass_all
7040 sequent)
7041 lt_cv_file_magic_cmd='/bin/file'
7042 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
7044 sni)
7045 lt_cv_file_magic_cmd='/bin/file'
7046 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
7047 lt_cv_file_magic_test_file=/lib/libc.so
7049 siemens)
7050 lt_cv_deplibs_check_method=pass_all
7053 lt_cv_deplibs_check_method=pass_all
7055 esac
7058 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
7059 lt_cv_deplibs_check_method=pass_all
7061 esac
7064 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
7065 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
7066 file_magic_cmd=$lt_cv_file_magic_cmd
7067 deplibs_check_method=$lt_cv_deplibs_check_method
7068 test -z "$deplibs_check_method" && deplibs_check_method=unknown
7073 # If no C compiler was specified, use CC.
7074 LTCC=${LTCC-"$CC"}
7076 # If no C compiler flags were specified, use CFLAGS.
7077 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7079 # Allow CC to be a program name with arguments.
7080 compiler=$CC
7082 # Check whether --enable-libtool-lock was given.
7083 if test "${enable_libtool_lock+set}" = set; then
7084 enableval=$enable_libtool_lock;
7087 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7089 # Some flags need to be propagated to the compiler or linker for good
7090 # libtool support.
7091 case $host in
7092 ia64-*-hpux*)
7093 # Find out which ABI we are using.
7094 echo 'int i;' > conftest.$ac_ext
7095 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7096 (eval $ac_compile) 2>&5
7097 ac_status=$?
7098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7099 (exit $ac_status); }; then
7100 case `/usr/bin/file conftest.$ac_objext` in
7101 *ELF-32*)
7102 HPUX_IA64_MODE="32"
7104 *ELF-64*)
7105 HPUX_IA64_MODE="64"
7107 esac
7109 rm -rf conftest*
7111 *-*-irix6*)
7112 # Find out which ABI we are using.
7113 echo '#line 7113 "configure"' > conftest.$ac_ext
7114 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7115 (eval $ac_compile) 2>&5
7116 ac_status=$?
7117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7118 (exit $ac_status); }; then
7119 if test "$lt_cv_prog_gnu_ld" = yes; then
7120 case `/usr/bin/file conftest.$ac_objext` in
7121 *32-bit*)
7122 LD="${LD-ld} -melf32bsmip"
7124 *N32*)
7125 LD="${LD-ld} -melf32bmipn32"
7127 *64-bit*)
7128 LD="${LD-ld} -melf64bmip"
7130 esac
7131 else
7132 case `/usr/bin/file conftest.$ac_objext` in
7133 *32-bit*)
7134 LD="${LD-ld} -32"
7136 *N32*)
7137 LD="${LD-ld} -n32"
7139 *64-bit*)
7140 LD="${LD-ld} -64"
7142 esac
7145 rm -rf conftest*
7148 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7149 s390*-*linux*|sparc*-*linux*)
7150 # Find out which ABI we are using.
7151 echo 'int i;' > conftest.$ac_ext
7152 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7153 (eval $ac_compile) 2>&5
7154 ac_status=$?
7155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7156 (exit $ac_status); }; then
7157 case `/usr/bin/file conftest.o` in
7158 *32-bit*)
7159 case $host in
7160 x86_64-*kfreebsd*-gnu)
7161 LD="${LD-ld} -m elf_i386_fbsd"
7163 x86_64-*linux*)
7164 LD="${LD-ld} -m elf_i386"
7166 ppc64-*linux*|powerpc64-*linux*)
7167 LD="${LD-ld} -m elf32ppclinux"
7169 s390x-*linux*)
7170 LD="${LD-ld} -m elf_s390"
7172 sparc64-*linux*)
7173 LD="${LD-ld} -m elf32_sparc"
7175 esac
7177 *64-bit*)
7178 case $host in
7179 x86_64-*kfreebsd*-gnu)
7180 LD="${LD-ld} -m elf_x86_64_fbsd"
7182 x86_64-*linux*)
7183 LD="${LD-ld} -m elf_x86_64"
7185 ppc*-*linux*|powerpc*-*linux*)
7186 LD="${LD-ld} -m elf64ppc"
7188 s390*-*linux*)
7189 LD="${LD-ld} -m elf64_s390"
7191 sparc*-*linux*)
7192 LD="${LD-ld} -m elf64_sparc"
7194 esac
7196 esac
7198 rm -rf conftest*
7201 *-*-sco3.2v5*)
7202 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7203 SAVE_CFLAGS="$CFLAGS"
7204 CFLAGS="$CFLAGS -belf"
7205 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
7206 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
7207 if test "${lt_cv_cc_needs_belf+set}" = set; then
7208 echo $ECHO_N "(cached) $ECHO_C" >&6
7209 else
7210 ac_ext=c
7211 ac_cpp='$CPP $CPPFLAGS'
7212 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7213 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7214 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7216 cat >conftest.$ac_ext <<_ACEOF
7217 /* confdefs.h. */
7218 _ACEOF
7219 cat confdefs.h >>conftest.$ac_ext
7220 cat >>conftest.$ac_ext <<_ACEOF
7221 /* end confdefs.h. */
7224 main ()
7228 return 0;
7230 _ACEOF
7231 rm -f conftest.$ac_objext conftest$ac_exeext
7232 if { (ac_try="$ac_link"
7233 case "(($ac_try" in
7234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7235 *) ac_try_echo=$ac_try;;
7236 esac
7237 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7238 (eval "$ac_link") 2>conftest.er1
7239 ac_status=$?
7240 grep -v '^ *+' conftest.er1 >conftest.err
7241 rm -f conftest.er1
7242 cat conftest.err >&5
7243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7244 (exit $ac_status); } && {
7245 test -z "$ac_c_werror_flag" ||
7246 test ! -s conftest.err
7247 } && test -s conftest$ac_exeext &&
7248 $as_test_x conftest$ac_exeext; then
7249 lt_cv_cc_needs_belf=yes
7250 else
7251 echo "$as_me: failed program was:" >&5
7252 sed 's/^/| /' conftest.$ac_ext >&5
7254 lt_cv_cc_needs_belf=no
7257 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7258 conftest$ac_exeext conftest.$ac_ext
7259 ac_ext=c
7260 ac_cpp='$CPP $CPPFLAGS'
7261 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7262 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7263 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7266 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
7267 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
7268 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7269 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7270 CFLAGS="$SAVE_CFLAGS"
7273 sparc*-*solaris*)
7274 # Find out which ABI we are using.
7275 echo 'int i;' > conftest.$ac_ext
7276 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7277 (eval $ac_compile) 2>&5
7278 ac_status=$?
7279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7280 (exit $ac_status); }; then
7281 case `/usr/bin/file conftest.o` in
7282 *64-bit*)
7283 case $lt_cv_prog_gnu_ld in
7284 yes*) LD="${LD-ld} -m elf64_sparc" ;;
7286 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7287 LD="${LD-ld} -64"
7290 esac
7292 esac
7294 rm -rf conftest*
7298 esac
7300 need_locks="$enable_libtool_lock"
7303 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7313 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7314 inttypes.h stdint.h unistd.h
7316 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7317 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7318 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7319 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7320 echo $ECHO_N "(cached) $ECHO_C" >&6
7321 else
7322 cat >conftest.$ac_ext <<_ACEOF
7323 /* confdefs.h. */
7324 _ACEOF
7325 cat confdefs.h >>conftest.$ac_ext
7326 cat >>conftest.$ac_ext <<_ACEOF
7327 /* end confdefs.h. */
7328 $ac_includes_default
7330 #include <$ac_header>
7331 _ACEOF
7332 rm -f conftest.$ac_objext
7333 if { (ac_try="$ac_compile"
7334 case "(($ac_try" in
7335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7336 *) ac_try_echo=$ac_try;;
7337 esac
7338 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7339 (eval "$ac_compile") 2>conftest.er1
7340 ac_status=$?
7341 grep -v '^ *+' conftest.er1 >conftest.err
7342 rm -f conftest.er1
7343 cat conftest.err >&5
7344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7345 (exit $ac_status); } && {
7346 test -z "$ac_c_werror_flag" ||
7347 test ! -s conftest.err
7348 } && test -s conftest.$ac_objext; then
7349 eval "$as_ac_Header=yes"
7350 else
7351 echo "$as_me: failed program was:" >&5
7352 sed 's/^/| /' conftest.$ac_ext >&5
7354 eval "$as_ac_Header=no"
7357 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7359 ac_res=`eval echo '${'$as_ac_Header'}'`
7360 { echo "$as_me:$LINENO: result: $ac_res" >&5
7361 echo "${ECHO_T}$ac_res" >&6; }
7362 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7363 cat >>confdefs.h <<_ACEOF
7364 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7365 _ACEOF
7369 done
7373 for ac_header in dlfcn.h
7375 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7376 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7377 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7378 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7379 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7380 echo $ECHO_N "(cached) $ECHO_C" >&6
7382 ac_res=`eval echo '${'$as_ac_Header'}'`
7383 { echo "$as_me:$LINENO: result: $ac_res" >&5
7384 echo "${ECHO_T}$ac_res" >&6; }
7385 else
7386 # Is the header compilable?
7387 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
7388 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
7389 cat >conftest.$ac_ext <<_ACEOF
7390 /* confdefs.h. */
7391 _ACEOF
7392 cat confdefs.h >>conftest.$ac_ext
7393 cat >>conftest.$ac_ext <<_ACEOF
7394 /* end confdefs.h. */
7395 $ac_includes_default
7396 #include <$ac_header>
7397 _ACEOF
7398 rm -f conftest.$ac_objext
7399 if { (ac_try="$ac_compile"
7400 case "(($ac_try" in
7401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7402 *) ac_try_echo=$ac_try;;
7403 esac
7404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7405 (eval "$ac_compile") 2>conftest.er1
7406 ac_status=$?
7407 grep -v '^ *+' conftest.er1 >conftest.err
7408 rm -f conftest.er1
7409 cat conftest.err >&5
7410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7411 (exit $ac_status); } && {
7412 test -z "$ac_c_werror_flag" ||
7413 test ! -s conftest.err
7414 } && test -s conftest.$ac_objext; then
7415 ac_header_compiler=yes
7416 else
7417 echo "$as_me: failed program was:" >&5
7418 sed 's/^/| /' conftest.$ac_ext >&5
7420 ac_header_compiler=no
7423 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7424 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7425 echo "${ECHO_T}$ac_header_compiler" >&6; }
7427 # Is the header present?
7428 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
7429 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
7430 cat >conftest.$ac_ext <<_ACEOF
7431 /* confdefs.h. */
7432 _ACEOF
7433 cat confdefs.h >>conftest.$ac_ext
7434 cat >>conftest.$ac_ext <<_ACEOF
7435 /* end confdefs.h. */
7436 #include <$ac_header>
7437 _ACEOF
7438 if { (ac_try="$ac_cpp conftest.$ac_ext"
7439 case "(($ac_try" in
7440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7441 *) ac_try_echo=$ac_try;;
7442 esac
7443 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7444 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7445 ac_status=$?
7446 grep -v '^ *+' conftest.er1 >conftest.err
7447 rm -f conftest.er1
7448 cat conftest.err >&5
7449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7450 (exit $ac_status); } >/dev/null && {
7451 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7452 test ! -s conftest.err
7453 }; then
7454 ac_header_preproc=yes
7455 else
7456 echo "$as_me: failed program was:" >&5
7457 sed 's/^/| /' conftest.$ac_ext >&5
7459 ac_header_preproc=no
7462 rm -f conftest.err conftest.$ac_ext
7463 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7464 echo "${ECHO_T}$ac_header_preproc" >&6; }
7466 # So? What about this header?
7467 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7468 yes:no: )
7469 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7470 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7471 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7472 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7473 ac_header_preproc=yes
7475 no:yes:* )
7476 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7477 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7478 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7479 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7480 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7481 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7482 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7483 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7484 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7485 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7486 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7487 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7488 ( cat <<\_ASBOX
7489 ## ------------------------------------------------ ##
7490 ## Report this to barry-devel@lists.sourceforge.net ##
7491 ## ------------------------------------------------ ##
7492 _ASBOX
7493 ) | sed "s/^/$as_me: WARNING: /" >&2
7495 esac
7496 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7497 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7498 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7499 echo $ECHO_N "(cached) $ECHO_C" >&6
7500 else
7501 eval "$as_ac_Header=\$ac_header_preproc"
7503 ac_res=`eval echo '${'$as_ac_Header'}'`
7504 { echo "$as_me:$LINENO: result: $ac_res" >&5
7505 echo "${ECHO_T}$ac_res" >&6; }
7508 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7509 cat >>confdefs.h <<_ACEOF
7510 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7511 _ACEOF
7515 done
7519 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
7520 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
7521 (test "X$CXX" != "Xg++"))) ; then
7522 ac_ext=cpp
7523 ac_cpp='$CXXCPP $CPPFLAGS'
7524 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7525 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7526 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7527 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
7528 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
7529 if test -z "$CXXCPP"; then
7530 if test "${ac_cv_prog_CXXCPP+set}" = set; then
7531 echo $ECHO_N "(cached) $ECHO_C" >&6
7532 else
7533 # Double quotes because CXXCPP needs to be expanded
7534 for CXXCPP in "$CXX -E" "/lib/cpp"
7536 ac_preproc_ok=false
7537 for ac_cxx_preproc_warn_flag in '' yes
7539 # Use a header file that comes with gcc, so configuring glibc
7540 # with a fresh cross-compiler works.
7541 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7542 # <limits.h> exists even on freestanding compilers.
7543 # On the NeXT, cc -E runs the code through the compiler's parser,
7544 # not just through cpp. "Syntax error" is here to catch this case.
7545 cat >conftest.$ac_ext <<_ACEOF
7546 /* confdefs.h. */
7547 _ACEOF
7548 cat confdefs.h >>conftest.$ac_ext
7549 cat >>conftest.$ac_ext <<_ACEOF
7550 /* end confdefs.h. */
7551 #ifdef __STDC__
7552 # include <limits.h>
7553 #else
7554 # include <assert.h>
7555 #endif
7556 Syntax error
7557 _ACEOF
7558 if { (ac_try="$ac_cpp conftest.$ac_ext"
7559 case "(($ac_try" in
7560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7561 *) ac_try_echo=$ac_try;;
7562 esac
7563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7564 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7565 ac_status=$?
7566 grep -v '^ *+' conftest.er1 >conftest.err
7567 rm -f conftest.er1
7568 cat conftest.err >&5
7569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7570 (exit $ac_status); } >/dev/null && {
7571 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
7572 test ! -s conftest.err
7573 }; then
7575 else
7576 echo "$as_me: failed program was:" >&5
7577 sed 's/^/| /' conftest.$ac_ext >&5
7579 # Broken: fails on valid input.
7580 continue
7583 rm -f conftest.err conftest.$ac_ext
7585 # OK, works on sane cases. Now check whether nonexistent headers
7586 # can be detected and how.
7587 cat >conftest.$ac_ext <<_ACEOF
7588 /* confdefs.h. */
7589 _ACEOF
7590 cat confdefs.h >>conftest.$ac_ext
7591 cat >>conftest.$ac_ext <<_ACEOF
7592 /* end confdefs.h. */
7593 #include <ac_nonexistent.h>
7594 _ACEOF
7595 if { (ac_try="$ac_cpp conftest.$ac_ext"
7596 case "(($ac_try" in
7597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7598 *) ac_try_echo=$ac_try;;
7599 esac
7600 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7601 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7602 ac_status=$?
7603 grep -v '^ *+' conftest.er1 >conftest.err
7604 rm -f conftest.er1
7605 cat conftest.err >&5
7606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7607 (exit $ac_status); } >/dev/null && {
7608 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
7609 test ! -s conftest.err
7610 }; then
7611 # Broken: success on invalid input.
7612 continue
7613 else
7614 echo "$as_me: failed program was:" >&5
7615 sed 's/^/| /' conftest.$ac_ext >&5
7617 # Passes both tests.
7618 ac_preproc_ok=:
7619 break
7622 rm -f conftest.err conftest.$ac_ext
7624 done
7625 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7626 rm -f conftest.err conftest.$ac_ext
7627 if $ac_preproc_ok; then
7628 break
7631 done
7632 ac_cv_prog_CXXCPP=$CXXCPP
7635 CXXCPP=$ac_cv_prog_CXXCPP
7636 else
7637 ac_cv_prog_CXXCPP=$CXXCPP
7639 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
7640 echo "${ECHO_T}$CXXCPP" >&6; }
7641 ac_preproc_ok=false
7642 for ac_cxx_preproc_warn_flag in '' yes
7644 # Use a header file that comes with gcc, so configuring glibc
7645 # with a fresh cross-compiler works.
7646 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7647 # <limits.h> exists even on freestanding compilers.
7648 # On the NeXT, cc -E runs the code through the compiler's parser,
7649 # not just through cpp. "Syntax error" is here to catch this case.
7650 cat >conftest.$ac_ext <<_ACEOF
7651 /* confdefs.h. */
7652 _ACEOF
7653 cat confdefs.h >>conftest.$ac_ext
7654 cat >>conftest.$ac_ext <<_ACEOF
7655 /* end confdefs.h. */
7656 #ifdef __STDC__
7657 # include <limits.h>
7658 #else
7659 # include <assert.h>
7660 #endif
7661 Syntax error
7662 _ACEOF
7663 if { (ac_try="$ac_cpp conftest.$ac_ext"
7664 case "(($ac_try" in
7665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7666 *) ac_try_echo=$ac_try;;
7667 esac
7668 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7669 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7670 ac_status=$?
7671 grep -v '^ *+' conftest.er1 >conftest.err
7672 rm -f conftest.er1
7673 cat conftest.err >&5
7674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7675 (exit $ac_status); } >/dev/null && {
7676 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
7677 test ! -s conftest.err
7678 }; then
7680 else
7681 echo "$as_me: failed program was:" >&5
7682 sed 's/^/| /' conftest.$ac_ext >&5
7684 # Broken: fails on valid input.
7685 continue
7688 rm -f conftest.err conftest.$ac_ext
7690 # OK, works on sane cases. Now check whether nonexistent headers
7691 # can be detected and how.
7692 cat >conftest.$ac_ext <<_ACEOF
7693 /* confdefs.h. */
7694 _ACEOF
7695 cat confdefs.h >>conftest.$ac_ext
7696 cat >>conftest.$ac_ext <<_ACEOF
7697 /* end confdefs.h. */
7698 #include <ac_nonexistent.h>
7699 _ACEOF
7700 if { (ac_try="$ac_cpp conftest.$ac_ext"
7701 case "(($ac_try" in
7702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7703 *) ac_try_echo=$ac_try;;
7704 esac
7705 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7706 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7707 ac_status=$?
7708 grep -v '^ *+' conftest.er1 >conftest.err
7709 rm -f conftest.er1
7710 cat conftest.err >&5
7711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7712 (exit $ac_status); } >/dev/null && {
7713 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
7714 test ! -s conftest.err
7715 }; then
7716 # Broken: success on invalid input.
7717 continue
7718 else
7719 echo "$as_me: failed program was:" >&5
7720 sed 's/^/| /' conftest.$ac_ext >&5
7722 # Passes both tests.
7723 ac_preproc_ok=:
7724 break
7727 rm -f conftest.err conftest.$ac_ext
7729 done
7730 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7731 rm -f conftest.err conftest.$ac_ext
7732 if $ac_preproc_ok; then
7734 else
7735 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
7736 See \`config.log' for more details." >&5
7737 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
7738 See \`config.log' for more details." >&2;}
7739 { (exit 1); exit 1; }; }
7742 ac_ext=cpp
7743 ac_cpp='$CXXCPP $CPPFLAGS'
7744 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7745 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7746 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7751 ac_ext=f
7752 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
7753 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7754 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
7755 if test -n "$ac_tool_prefix"; then
7756 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
7758 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7759 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7760 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7761 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7762 if test "${ac_cv_prog_F77+set}" = set; then
7763 echo $ECHO_N "(cached) $ECHO_C" >&6
7764 else
7765 if test -n "$F77"; then
7766 ac_cv_prog_F77="$F77" # Let the user override the test.
7767 else
7768 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7769 for as_dir in $PATH
7771 IFS=$as_save_IFS
7772 test -z "$as_dir" && as_dir=.
7773 for ac_exec_ext in '' $ac_executable_extensions; do
7774 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7775 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
7776 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7777 break 2
7779 done
7780 done
7781 IFS=$as_save_IFS
7785 F77=$ac_cv_prog_F77
7786 if test -n "$F77"; then
7787 { echo "$as_me:$LINENO: result: $F77" >&5
7788 echo "${ECHO_T}$F77" >&6; }
7789 else
7790 { echo "$as_me:$LINENO: result: no" >&5
7791 echo "${ECHO_T}no" >&6; }
7795 test -n "$F77" && break
7796 done
7798 if test -z "$F77"; then
7799 ac_ct_F77=$F77
7800 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
7802 # Extract the first word of "$ac_prog", so it can be a program name with args.
7803 set dummy $ac_prog; ac_word=$2
7804 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7805 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7806 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
7807 echo $ECHO_N "(cached) $ECHO_C" >&6
7808 else
7809 if test -n "$ac_ct_F77"; then
7810 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
7811 else
7812 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7813 for as_dir in $PATH
7815 IFS=$as_save_IFS
7816 test -z "$as_dir" && as_dir=.
7817 for ac_exec_ext in '' $ac_executable_extensions; do
7818 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7819 ac_cv_prog_ac_ct_F77="$ac_prog"
7820 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7821 break 2
7823 done
7824 done
7825 IFS=$as_save_IFS
7829 ac_ct_F77=$ac_cv_prog_ac_ct_F77
7830 if test -n "$ac_ct_F77"; then
7831 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
7832 echo "${ECHO_T}$ac_ct_F77" >&6; }
7833 else
7834 { echo "$as_me:$LINENO: result: no" >&5
7835 echo "${ECHO_T}no" >&6; }
7839 test -n "$ac_ct_F77" && break
7840 done
7842 if test "x$ac_ct_F77" = x; then
7843 F77=""
7844 else
7845 case $cross_compiling:$ac_tool_warned in
7846 yes:)
7847 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7848 whose name does not start with the host triplet. If you think this
7849 configuration is useful to you, please write to autoconf@gnu.org." >&5
7850 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7851 whose name does not start with the host triplet. If you think this
7852 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7853 ac_tool_warned=yes ;;
7854 esac
7855 F77=$ac_ct_F77
7860 # Provide some information about the compiler.
7861 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
7862 ac_compiler=`set X $ac_compile; echo $2`
7863 { (ac_try="$ac_compiler --version >&5"
7864 case "(($ac_try" in
7865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7866 *) ac_try_echo=$ac_try;;
7867 esac
7868 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7869 (eval "$ac_compiler --version >&5") 2>&5
7870 ac_status=$?
7871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7872 (exit $ac_status); }
7873 { (ac_try="$ac_compiler -v >&5"
7874 case "(($ac_try" in
7875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7876 *) ac_try_echo=$ac_try;;
7877 esac
7878 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7879 (eval "$ac_compiler -v >&5") 2>&5
7880 ac_status=$?
7881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7882 (exit $ac_status); }
7883 { (ac_try="$ac_compiler -V >&5"
7884 case "(($ac_try" in
7885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7886 *) ac_try_echo=$ac_try;;
7887 esac
7888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7889 (eval "$ac_compiler -V >&5") 2>&5
7890 ac_status=$?
7891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7892 (exit $ac_status); }
7893 rm -f a.out
7895 # If we don't use `.F' as extension, the preprocessor is not run on the
7896 # input file. (Note that this only needs to work for GNU compilers.)
7897 ac_save_ext=$ac_ext
7898 ac_ext=F
7899 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
7900 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
7901 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
7902 echo $ECHO_N "(cached) $ECHO_C" >&6
7903 else
7904 cat >conftest.$ac_ext <<_ACEOF
7905 program main
7906 #ifndef __GNUC__
7907 choke me
7908 #endif
7911 _ACEOF
7912 rm -f conftest.$ac_objext
7913 if { (ac_try="$ac_compile"
7914 case "(($ac_try" in
7915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7916 *) ac_try_echo=$ac_try;;
7917 esac
7918 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7919 (eval "$ac_compile") 2>conftest.er1
7920 ac_status=$?
7921 grep -v '^ *+' conftest.er1 >conftest.err
7922 rm -f conftest.er1
7923 cat conftest.err >&5
7924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7925 (exit $ac_status); } && {
7926 test -z "$ac_f77_werror_flag" ||
7927 test ! -s conftest.err
7928 } && test -s conftest.$ac_objext; then
7929 ac_compiler_gnu=yes
7930 else
7931 echo "$as_me: failed program was:" >&5
7932 sed 's/^/| /' conftest.$ac_ext >&5
7934 ac_compiler_gnu=no
7937 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7938 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
7941 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
7942 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
7943 ac_ext=$ac_save_ext
7944 ac_test_FFLAGS=${FFLAGS+set}
7945 ac_save_FFLAGS=$FFLAGS
7946 FFLAGS=
7947 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
7948 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
7949 if test "${ac_cv_prog_f77_g+set}" = set; then
7950 echo $ECHO_N "(cached) $ECHO_C" >&6
7951 else
7952 FFLAGS=-g
7953 cat >conftest.$ac_ext <<_ACEOF
7954 program main
7957 _ACEOF
7958 rm -f conftest.$ac_objext
7959 if { (ac_try="$ac_compile"
7960 case "(($ac_try" in
7961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7962 *) ac_try_echo=$ac_try;;
7963 esac
7964 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7965 (eval "$ac_compile") 2>conftest.er1
7966 ac_status=$?
7967 grep -v '^ *+' conftest.er1 >conftest.err
7968 rm -f conftest.er1
7969 cat conftest.err >&5
7970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7971 (exit $ac_status); } && {
7972 test -z "$ac_f77_werror_flag" ||
7973 test ! -s conftest.err
7974 } && test -s conftest.$ac_objext; then
7975 ac_cv_prog_f77_g=yes
7976 else
7977 echo "$as_me: failed program was:" >&5
7978 sed 's/^/| /' conftest.$ac_ext >&5
7980 ac_cv_prog_f77_g=no
7983 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7986 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
7987 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
7988 if test "$ac_test_FFLAGS" = set; then
7989 FFLAGS=$ac_save_FFLAGS
7990 elif test $ac_cv_prog_f77_g = yes; then
7991 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
7992 FFLAGS="-g -O2"
7993 else
7994 FFLAGS="-g"
7996 else
7997 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
7998 FFLAGS="-O2"
7999 else
8000 FFLAGS=
8004 G77=`test $ac_compiler_gnu = yes && echo yes`
8005 ac_ext=c
8006 ac_cpp='$CPP $CPPFLAGS'
8007 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8008 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8009 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8013 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
8014 # find the maximum length of command line arguments
8015 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
8016 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
8017 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
8018 echo $ECHO_N "(cached) $ECHO_C" >&6
8019 else
8021 teststring="ABCD"
8023 case $build_os in
8024 msdosdjgpp*)
8025 # On DJGPP, this test can blow up pretty badly due to problems in libc
8026 # (any single argument exceeding 2000 bytes causes a buffer overrun
8027 # during glob expansion). Even if it were fixed, the result of this
8028 # check would be larger than it should be.
8029 lt_cv_sys_max_cmd_len=12288; # 12K is about right
8032 gnu*)
8033 # Under GNU Hurd, this test is not required because there is
8034 # no limit to the length of command line arguments.
8035 # Libtool will interpret -1 as no limit whatsoever
8036 lt_cv_sys_max_cmd_len=-1;
8039 cygwin* | mingw*)
8040 # On Win9x/ME, this test blows up -- it succeeds, but takes
8041 # about 5 minutes as the teststring grows exponentially.
8042 # Worse, since 9x/ME are not pre-emptively multitasking,
8043 # you end up with a "frozen" computer, even though with patience
8044 # the test eventually succeeds (with a max line length of 256k).
8045 # Instead, let's just punt: use the minimum linelength reported by
8046 # all of the supported platforms: 8192 (on NT/2K/XP).
8047 lt_cv_sys_max_cmd_len=8192;
8050 amigaos*)
8051 # On AmigaOS with pdksh, this test takes hours, literally.
8052 # So we just punt and use a minimum line length of 8192.
8053 lt_cv_sys_max_cmd_len=8192;
8056 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
8057 # This has been around since 386BSD, at least. Likely further.
8058 if test -x /sbin/sysctl; then
8059 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
8060 elif test -x /usr/sbin/sysctl; then
8061 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
8062 else
8063 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
8065 # And add a safety zone
8066 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
8067 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
8070 interix*)
8071 # We know the value 262144 and hardcode it with a safety zone (like BSD)
8072 lt_cv_sys_max_cmd_len=196608
8075 osf*)
8076 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
8077 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
8078 # nice to cause kernel panics so lets avoid the loop below.
8079 # First set a reasonable default.
8080 lt_cv_sys_max_cmd_len=16384
8082 if test -x /sbin/sysconfig; then
8083 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
8084 *1*) lt_cv_sys_max_cmd_len=-1 ;;
8085 esac
8088 sco3.2v5*)
8089 lt_cv_sys_max_cmd_len=102400
8091 sysv5* | sco5v6* | sysv4.2uw2*)
8092 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
8093 if test -n "$kargmax"; then
8094 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
8095 else
8096 lt_cv_sys_max_cmd_len=32768
8100 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
8101 if test -n "$lt_cv_sys_max_cmd_len"; then
8102 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
8103 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
8104 else
8105 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
8106 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
8107 = "XX$teststring") >/dev/null 2>&1 &&
8108 new_result=`expr "X$teststring" : ".*" 2>&1` &&
8109 lt_cv_sys_max_cmd_len=$new_result &&
8110 test $i != 17 # 1/2 MB should be enough
8112 i=`expr $i + 1`
8113 teststring=$teststring$teststring
8114 done
8115 teststring=
8116 # Add a significant safety factor because C++ compilers can tack on massive
8117 # amounts of additional arguments before passing them to the linker.
8118 # It appears as though 1/2 is a usable value.
8119 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
8122 esac
8126 if test -n $lt_cv_sys_max_cmd_len ; then
8127 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
8128 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
8129 else
8130 { echo "$as_me:$LINENO: result: none" >&5
8131 echo "${ECHO_T}none" >&6; }
8138 # Check for command to grab the raw symbol name followed by C symbol from nm.
8139 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
8140 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
8141 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
8142 echo $ECHO_N "(cached) $ECHO_C" >&6
8143 else
8145 # These are sane defaults that work on at least a few old systems.
8146 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
8148 # Character class describing NM global symbol codes.
8149 symcode='[BCDEGRST]'
8151 # Regexp to match symbols that can be accessed directly from C.
8152 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
8154 # Transform an extracted symbol line into a proper C declaration
8155 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
8157 # Transform an extracted symbol line into symbol name and symbol address
8158 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'"
8160 # Define system-specific variables.
8161 case $host_os in
8162 aix*)
8163 symcode='[BCDT]'
8165 cygwin* | mingw* | pw32*)
8166 symcode='[ABCDGISTW]'
8168 hpux*) # Its linker distinguishes data from code symbols
8169 if test "$host_cpu" = ia64; then
8170 symcode='[ABCDEGRST]'
8172 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
8173 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'"
8175 linux* | k*bsd*-gnu)
8176 if test "$host_cpu" = ia64; then
8177 symcode='[ABCDGIRSTW]'
8178 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
8179 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'"
8182 irix* | nonstopux*)
8183 symcode='[BCDEGRST]'
8185 osf*)
8186 symcode='[BCDEGQRST]'
8188 solaris*)
8189 symcode='[BDRT]'
8191 sco3.2v5*)
8192 symcode='[DT]'
8194 sysv4.2uw2*)
8195 symcode='[DT]'
8197 sysv5* | sco5v6* | unixware* | OpenUNIX*)
8198 symcode='[ABDT]'
8200 sysv4)
8201 symcode='[DFNSTU]'
8203 esac
8205 # Handle CRLF in mingw tool chain
8206 opt_cr=
8207 case $build_os in
8208 mingw*)
8209 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
8211 esac
8213 # If we're using GNU nm, then use its standard symbol codes.
8214 case `$NM -V 2>&1` in
8215 *GNU* | *'with BFD'*)
8216 symcode='[ABCDGIRSTW]' ;;
8217 esac
8219 # Try without a prefix undercore, then with it.
8220 for ac_symprfx in "" "_"; do
8222 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
8223 symxfrm="\\1 $ac_symprfx\\2 \\2"
8225 # Write the raw and C identifiers.
8226 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
8228 # Check to see that the pipe works correctly.
8229 pipe_works=no
8231 rm -f conftest*
8232 cat > conftest.$ac_ext <<EOF
8233 #ifdef __cplusplus
8234 extern "C" {
8235 #endif
8236 char nm_test_var;
8237 void nm_test_func(){}
8238 #ifdef __cplusplus
8240 #endif
8241 int main(){nm_test_var='a';nm_test_func();return(0);}
8244 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8245 (eval $ac_compile) 2>&5
8246 ac_status=$?
8247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8248 (exit $ac_status); }; then
8249 # Now try to grab the symbols.
8250 nlist=conftest.nm
8251 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
8252 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
8253 ac_status=$?
8254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8255 (exit $ac_status); } && test -s "$nlist"; then
8256 # Try sorting and uniquifying the output.
8257 if sort "$nlist" | uniq > "$nlist"T; then
8258 mv -f "$nlist"T "$nlist"
8259 else
8260 rm -f "$nlist"T
8263 # Make sure that we snagged all the symbols we need.
8264 if grep ' nm_test_var$' "$nlist" >/dev/null; then
8265 if grep ' nm_test_func$' "$nlist" >/dev/null; then
8266 cat <<EOF > conftest.$ac_ext
8267 #ifdef __cplusplus
8268 extern "C" {
8269 #endif
8272 # Now generate the symbol file.
8273 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
8275 cat <<EOF >> conftest.$ac_ext
8276 #if defined (__STDC__) && __STDC__
8277 # define lt_ptr_t void *
8278 #else
8279 # define lt_ptr_t char *
8280 # define const
8281 #endif
8283 /* The mapping between symbol names and symbols. */
8284 const struct {
8285 const char *name;
8286 lt_ptr_t address;
8288 lt_preloaded_symbols[] =
8291 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
8292 cat <<\EOF >> conftest.$ac_ext
8293 {0, (lt_ptr_t) 0}
8296 #ifdef __cplusplus
8298 #endif
8300 # Now try linking the two files.
8301 mv conftest.$ac_objext conftstm.$ac_objext
8302 lt_save_LIBS="$LIBS"
8303 lt_save_CFLAGS="$CFLAGS"
8304 LIBS="conftstm.$ac_objext"
8305 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
8306 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8307 (eval $ac_link) 2>&5
8308 ac_status=$?
8309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8310 (exit $ac_status); } && test -s conftest${ac_exeext}; then
8311 pipe_works=yes
8313 LIBS="$lt_save_LIBS"
8314 CFLAGS="$lt_save_CFLAGS"
8315 else
8316 echo "cannot find nm_test_func in $nlist" >&5
8318 else
8319 echo "cannot find nm_test_var in $nlist" >&5
8321 else
8322 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
8324 else
8325 echo "$progname: failed program was:" >&5
8326 cat conftest.$ac_ext >&5
8328 rm -rf conftest* conftst*
8330 # Do not use the global_symbol_pipe unless it works.
8331 if test "$pipe_works" = yes; then
8332 break
8333 else
8334 lt_cv_sys_global_symbol_pipe=
8336 done
8340 if test -z "$lt_cv_sys_global_symbol_pipe"; then
8341 lt_cv_sys_global_symbol_to_cdecl=
8343 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
8344 { echo "$as_me:$LINENO: result: failed" >&5
8345 echo "${ECHO_T}failed" >&6; }
8346 else
8347 { echo "$as_me:$LINENO: result: ok" >&5
8348 echo "${ECHO_T}ok" >&6; }
8351 { echo "$as_me:$LINENO: checking for objdir" >&5
8352 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
8353 if test "${lt_cv_objdir+set}" = set; then
8354 echo $ECHO_N "(cached) $ECHO_C" >&6
8355 else
8356 rm -f .libs 2>/dev/null
8357 mkdir .libs 2>/dev/null
8358 if test -d .libs; then
8359 lt_cv_objdir=.libs
8360 else
8361 # MS-DOS does not allow filenames that begin with a dot.
8362 lt_cv_objdir=_libs
8364 rmdir .libs 2>/dev/null
8366 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
8367 echo "${ECHO_T}$lt_cv_objdir" >&6; }
8368 objdir=$lt_cv_objdir
8374 case $host_os in
8375 aix3*)
8376 # AIX sometimes has problems with the GCC collect2 program. For some
8377 # reason, if we set the COLLECT_NAMES environment variable, the problems
8378 # vanish in a puff of smoke.
8379 if test "X${COLLECT_NAMES+set}" != Xset; then
8380 COLLECT_NAMES=
8381 export COLLECT_NAMES
8384 esac
8386 # Sed substitution that helps us do robust quoting. It backslashifies
8387 # metacharacters that are still active within double-quoted strings.
8388 Xsed='sed -e 1s/^X//'
8389 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
8391 # Same as above, but do not quote variable references.
8392 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
8394 # Sed substitution to delay expansion of an escaped shell variable in a
8395 # double_quote_subst'ed string.
8396 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
8398 # Sed substitution to avoid accidental globbing in evaled expressions
8399 no_glob_subst='s/\*/\\\*/g'
8401 # Constants:
8402 rm="rm -f"
8404 # Global variables:
8405 default_ofile=libtool
8406 can_build_shared=yes
8408 # All known linkers require a `.a' archive for static linking (except MSVC,
8409 # which needs '.lib').
8410 libext=a
8411 ltmain="$ac_aux_dir/ltmain.sh"
8412 ofile="$default_ofile"
8413 with_gnu_ld="$lt_cv_prog_gnu_ld"
8415 if test -n "$ac_tool_prefix"; then
8416 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
8417 set dummy ${ac_tool_prefix}ar; ac_word=$2
8418 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8419 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8420 if test "${ac_cv_prog_AR+set}" = set; then
8421 echo $ECHO_N "(cached) $ECHO_C" >&6
8422 else
8423 if test -n "$AR"; then
8424 ac_cv_prog_AR="$AR" # Let the user override the test.
8425 else
8426 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8427 for as_dir in $PATH
8429 IFS=$as_save_IFS
8430 test -z "$as_dir" && as_dir=.
8431 for ac_exec_ext in '' $ac_executable_extensions; do
8432 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8433 ac_cv_prog_AR="${ac_tool_prefix}ar"
8434 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8435 break 2
8437 done
8438 done
8439 IFS=$as_save_IFS
8443 AR=$ac_cv_prog_AR
8444 if test -n "$AR"; then
8445 { echo "$as_me:$LINENO: result: $AR" >&5
8446 echo "${ECHO_T}$AR" >&6; }
8447 else
8448 { echo "$as_me:$LINENO: result: no" >&5
8449 echo "${ECHO_T}no" >&6; }
8454 if test -z "$ac_cv_prog_AR"; then
8455 ac_ct_AR=$AR
8456 # Extract the first word of "ar", so it can be a program name with args.
8457 set dummy ar; ac_word=$2
8458 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8459 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8460 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
8461 echo $ECHO_N "(cached) $ECHO_C" >&6
8462 else
8463 if test -n "$ac_ct_AR"; then
8464 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
8465 else
8466 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8467 for as_dir in $PATH
8469 IFS=$as_save_IFS
8470 test -z "$as_dir" && as_dir=.
8471 for ac_exec_ext in '' $ac_executable_extensions; do
8472 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8473 ac_cv_prog_ac_ct_AR="ar"
8474 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8475 break 2
8477 done
8478 done
8479 IFS=$as_save_IFS
8483 ac_ct_AR=$ac_cv_prog_ac_ct_AR
8484 if test -n "$ac_ct_AR"; then
8485 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
8486 echo "${ECHO_T}$ac_ct_AR" >&6; }
8487 else
8488 { echo "$as_me:$LINENO: result: no" >&5
8489 echo "${ECHO_T}no" >&6; }
8492 if test "x$ac_ct_AR" = x; then
8493 AR="false"
8494 else
8495 case $cross_compiling:$ac_tool_warned in
8496 yes:)
8497 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
8498 whose name does not start with the host triplet. If you think this
8499 configuration is useful to you, please write to autoconf@gnu.org." >&5
8500 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
8501 whose name does not start with the host triplet. If you think this
8502 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
8503 ac_tool_warned=yes ;;
8504 esac
8505 AR=$ac_ct_AR
8507 else
8508 AR="$ac_cv_prog_AR"
8511 if test -n "$ac_tool_prefix"; then
8512 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8513 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8514 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8515 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8516 if test "${ac_cv_prog_RANLIB+set}" = set; then
8517 echo $ECHO_N "(cached) $ECHO_C" >&6
8518 else
8519 if test -n "$RANLIB"; then
8520 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8521 else
8522 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8523 for as_dir in $PATH
8525 IFS=$as_save_IFS
8526 test -z "$as_dir" && as_dir=.
8527 for ac_exec_ext in '' $ac_executable_extensions; do
8528 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8529 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8530 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8531 break 2
8533 done
8534 done
8535 IFS=$as_save_IFS
8539 RANLIB=$ac_cv_prog_RANLIB
8540 if test -n "$RANLIB"; then
8541 { echo "$as_me:$LINENO: result: $RANLIB" >&5
8542 echo "${ECHO_T}$RANLIB" >&6; }
8543 else
8544 { echo "$as_me:$LINENO: result: no" >&5
8545 echo "${ECHO_T}no" >&6; }
8550 if test -z "$ac_cv_prog_RANLIB"; then
8551 ac_ct_RANLIB=$RANLIB
8552 # Extract the first word of "ranlib", so it can be a program name with args.
8553 set dummy ranlib; ac_word=$2
8554 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8555 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8556 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
8557 echo $ECHO_N "(cached) $ECHO_C" >&6
8558 else
8559 if test -n "$ac_ct_RANLIB"; then
8560 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8561 else
8562 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8563 for as_dir in $PATH
8565 IFS=$as_save_IFS
8566 test -z "$as_dir" && as_dir=.
8567 for ac_exec_ext in '' $ac_executable_extensions; do
8568 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8569 ac_cv_prog_ac_ct_RANLIB="ranlib"
8570 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8571 break 2
8573 done
8574 done
8575 IFS=$as_save_IFS
8579 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8580 if test -n "$ac_ct_RANLIB"; then
8581 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
8582 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
8583 else
8584 { echo "$as_me:$LINENO: result: no" >&5
8585 echo "${ECHO_T}no" >&6; }
8588 if test "x$ac_ct_RANLIB" = x; then
8589 RANLIB=":"
8590 else
8591 case $cross_compiling:$ac_tool_warned in
8592 yes:)
8593 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
8594 whose name does not start with the host triplet. If you think this
8595 configuration is useful to you, please write to autoconf@gnu.org." >&5
8596 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
8597 whose name does not start with the host triplet. If you think this
8598 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
8599 ac_tool_warned=yes ;;
8600 esac
8601 RANLIB=$ac_ct_RANLIB
8603 else
8604 RANLIB="$ac_cv_prog_RANLIB"
8607 if test -n "$ac_tool_prefix"; then
8608 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
8609 set dummy ${ac_tool_prefix}strip; ac_word=$2
8610 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8611 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8612 if test "${ac_cv_prog_STRIP+set}" = set; then
8613 echo $ECHO_N "(cached) $ECHO_C" >&6
8614 else
8615 if test -n "$STRIP"; then
8616 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8617 else
8618 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8619 for as_dir in $PATH
8621 IFS=$as_save_IFS
8622 test -z "$as_dir" && as_dir=.
8623 for ac_exec_ext in '' $ac_executable_extensions; do
8624 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8625 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
8626 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8627 break 2
8629 done
8630 done
8631 IFS=$as_save_IFS
8635 STRIP=$ac_cv_prog_STRIP
8636 if test -n "$STRIP"; then
8637 { echo "$as_me:$LINENO: result: $STRIP" >&5
8638 echo "${ECHO_T}$STRIP" >&6; }
8639 else
8640 { echo "$as_me:$LINENO: result: no" >&5
8641 echo "${ECHO_T}no" >&6; }
8646 if test -z "$ac_cv_prog_STRIP"; then
8647 ac_ct_STRIP=$STRIP
8648 # Extract the first word of "strip", so it can be a program name with args.
8649 set dummy strip; ac_word=$2
8650 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8651 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8652 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
8653 echo $ECHO_N "(cached) $ECHO_C" >&6
8654 else
8655 if test -n "$ac_ct_STRIP"; then
8656 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
8657 else
8658 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8659 for as_dir in $PATH
8661 IFS=$as_save_IFS
8662 test -z "$as_dir" && as_dir=.
8663 for ac_exec_ext in '' $ac_executable_extensions; do
8664 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8665 ac_cv_prog_ac_ct_STRIP="strip"
8666 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8667 break 2
8669 done
8670 done
8671 IFS=$as_save_IFS
8675 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
8676 if test -n "$ac_ct_STRIP"; then
8677 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
8678 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
8679 else
8680 { echo "$as_me:$LINENO: result: no" >&5
8681 echo "${ECHO_T}no" >&6; }
8684 if test "x$ac_ct_STRIP" = x; then
8685 STRIP=":"
8686 else
8687 case $cross_compiling:$ac_tool_warned in
8688 yes:)
8689 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
8690 whose name does not start with the host triplet. If you think this
8691 configuration is useful to you, please write to autoconf@gnu.org." >&5
8692 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
8693 whose name does not start with the host triplet. If you think this
8694 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
8695 ac_tool_warned=yes ;;
8696 esac
8697 STRIP=$ac_ct_STRIP
8699 else
8700 STRIP="$ac_cv_prog_STRIP"
8704 old_CC="$CC"
8705 old_CFLAGS="$CFLAGS"
8707 # Set sane defaults for various variables
8708 test -z "$AR" && AR=ar
8709 test -z "$AR_FLAGS" && AR_FLAGS=cru
8710 test -z "$AS" && AS=as
8711 test -z "$CC" && CC=cc
8712 test -z "$LTCC" && LTCC=$CC
8713 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8714 test -z "$DLLTOOL" && DLLTOOL=dlltool
8715 test -z "$LD" && LD=ld
8716 test -z "$LN_S" && LN_S="ln -s"
8717 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8718 test -z "$NM" && NM=nm
8719 test -z "$SED" && SED=sed
8720 test -z "$OBJDUMP" && OBJDUMP=objdump
8721 test -z "$RANLIB" && RANLIB=:
8722 test -z "$STRIP" && STRIP=:
8723 test -z "$ac_objext" && ac_objext=o
8725 # Determine commands to create old-style static archives.
8726 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
8727 old_postinstall_cmds='chmod 644 $oldlib'
8728 old_postuninstall_cmds=
8730 if test -n "$RANLIB"; then
8731 case $host_os in
8732 openbsd*)
8733 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
8736 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
8738 esac
8739 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
8742 for cc_temp in $compiler""; do
8743 case $cc_temp in
8744 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8745 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8746 \-*) ;;
8747 *) break;;
8748 esac
8749 done
8750 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8753 # Only perform the check for file, if the check method requires it
8754 case $deplibs_check_method in
8755 file_magic*)
8756 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8757 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
8758 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
8759 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8760 echo $ECHO_N "(cached) $ECHO_C" >&6
8761 else
8762 case $MAGIC_CMD in
8763 [\\/*] | ?:[\\/]*)
8764 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8767 lt_save_MAGIC_CMD="$MAGIC_CMD"
8768 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8769 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8770 for ac_dir in $ac_dummy; do
8771 IFS="$lt_save_ifs"
8772 test -z "$ac_dir" && ac_dir=.
8773 if test -f $ac_dir/${ac_tool_prefix}file; then
8774 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8775 if test -n "$file_magic_test_file"; then
8776 case $deplibs_check_method in
8777 "file_magic "*)
8778 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8779 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8780 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8781 $EGREP "$file_magic_regex" > /dev/null; then
8783 else
8784 cat <<EOF 1>&2
8786 *** Warning: the command libtool uses to detect shared libraries,
8787 *** $file_magic_cmd, produces output that libtool cannot recognize.
8788 *** The result is that libtool may fail to recognize shared libraries
8789 *** as such. This will affect the creation of libtool libraries that
8790 *** depend on shared libraries, but programs linked with such libtool
8791 *** libraries will work regardless of this problem. Nevertheless, you
8792 *** may want to report the problem to your system manager and/or to
8793 *** bug-libtool@gnu.org
8796 fi ;;
8797 esac
8799 break
8801 done
8802 IFS="$lt_save_ifs"
8803 MAGIC_CMD="$lt_save_MAGIC_CMD"
8805 esac
8808 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8809 if test -n "$MAGIC_CMD"; then
8810 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8811 echo "${ECHO_T}$MAGIC_CMD" >&6; }
8812 else
8813 { echo "$as_me:$LINENO: result: no" >&5
8814 echo "${ECHO_T}no" >&6; }
8817 if test -z "$lt_cv_path_MAGIC_CMD"; then
8818 if test -n "$ac_tool_prefix"; then
8819 { echo "$as_me:$LINENO: checking for file" >&5
8820 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
8821 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8822 echo $ECHO_N "(cached) $ECHO_C" >&6
8823 else
8824 case $MAGIC_CMD in
8825 [\\/*] | ?:[\\/]*)
8826 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8829 lt_save_MAGIC_CMD="$MAGIC_CMD"
8830 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8831 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8832 for ac_dir in $ac_dummy; do
8833 IFS="$lt_save_ifs"
8834 test -z "$ac_dir" && ac_dir=.
8835 if test -f $ac_dir/file; then
8836 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8837 if test -n "$file_magic_test_file"; then
8838 case $deplibs_check_method in
8839 "file_magic "*)
8840 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8841 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8842 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8843 $EGREP "$file_magic_regex" > /dev/null; then
8845 else
8846 cat <<EOF 1>&2
8848 *** Warning: the command libtool uses to detect shared libraries,
8849 *** $file_magic_cmd, produces output that libtool cannot recognize.
8850 *** The result is that libtool may fail to recognize shared libraries
8851 *** as such. This will affect the creation of libtool libraries that
8852 *** depend on shared libraries, but programs linked with such libtool
8853 *** libraries will work regardless of this problem. Nevertheless, you
8854 *** may want to report the problem to your system manager and/or to
8855 *** bug-libtool@gnu.org
8858 fi ;;
8859 esac
8861 break
8863 done
8864 IFS="$lt_save_ifs"
8865 MAGIC_CMD="$lt_save_MAGIC_CMD"
8867 esac
8870 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8871 if test -n "$MAGIC_CMD"; then
8872 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8873 echo "${ECHO_T}$MAGIC_CMD" >&6; }
8874 else
8875 { echo "$as_me:$LINENO: result: no" >&5
8876 echo "${ECHO_T}no" >&6; }
8879 else
8880 MAGIC_CMD=:
8886 esac
8889 case $host_os in
8890 rhapsody* | darwin*)
8891 if test -n "$ac_tool_prefix"; then
8892 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8893 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8894 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8895 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8896 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
8897 echo $ECHO_N "(cached) $ECHO_C" >&6
8898 else
8899 if test -n "$DSYMUTIL"; then
8900 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8901 else
8902 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8903 for as_dir in $PATH
8905 IFS=$as_save_IFS
8906 test -z "$as_dir" && as_dir=.
8907 for ac_exec_ext in '' $ac_executable_extensions; do
8908 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8909 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8910 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8911 break 2
8913 done
8914 done
8915 IFS=$as_save_IFS
8919 DSYMUTIL=$ac_cv_prog_DSYMUTIL
8920 if test -n "$DSYMUTIL"; then
8921 { echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
8922 echo "${ECHO_T}$DSYMUTIL" >&6; }
8923 else
8924 { echo "$as_me:$LINENO: result: no" >&5
8925 echo "${ECHO_T}no" >&6; }
8930 if test -z "$ac_cv_prog_DSYMUTIL"; then
8931 ac_ct_DSYMUTIL=$DSYMUTIL
8932 # Extract the first word of "dsymutil", so it can be a program name with args.
8933 set dummy dsymutil; ac_word=$2
8934 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8935 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8936 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
8937 echo $ECHO_N "(cached) $ECHO_C" >&6
8938 else
8939 if test -n "$ac_ct_DSYMUTIL"; then
8940 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8941 else
8942 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8943 for as_dir in $PATH
8945 IFS=$as_save_IFS
8946 test -z "$as_dir" && as_dir=.
8947 for ac_exec_ext in '' $ac_executable_extensions; do
8948 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8949 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8950 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8951 break 2
8953 done
8954 done
8955 IFS=$as_save_IFS
8959 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8960 if test -n "$ac_ct_DSYMUTIL"; then
8961 { echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
8962 echo "${ECHO_T}$ac_ct_DSYMUTIL" >&6; }
8963 else
8964 { echo "$as_me:$LINENO: result: no" >&5
8965 echo "${ECHO_T}no" >&6; }
8968 if test "x$ac_ct_DSYMUTIL" = x; then
8969 DSYMUTIL=":"
8970 else
8971 case $cross_compiling:$ac_tool_warned in
8972 yes:)
8973 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
8974 whose name does not start with the host triplet. If you think this
8975 configuration is useful to you, please write to autoconf@gnu.org." >&5
8976 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
8977 whose name does not start with the host triplet. If you think this
8978 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
8979 ac_tool_warned=yes ;;
8980 esac
8981 DSYMUTIL=$ac_ct_DSYMUTIL
8983 else
8984 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8987 if test -n "$ac_tool_prefix"; then
8988 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8989 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8990 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8991 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8992 if test "${ac_cv_prog_NMEDIT+set}" = set; then
8993 echo $ECHO_N "(cached) $ECHO_C" >&6
8994 else
8995 if test -n "$NMEDIT"; then
8996 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8997 else
8998 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8999 for as_dir in $PATH
9001 IFS=$as_save_IFS
9002 test -z "$as_dir" && as_dir=.
9003 for ac_exec_ext in '' $ac_executable_extensions; do
9004 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9005 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
9006 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9007 break 2
9009 done
9010 done
9011 IFS=$as_save_IFS
9015 NMEDIT=$ac_cv_prog_NMEDIT
9016 if test -n "$NMEDIT"; then
9017 { echo "$as_me:$LINENO: result: $NMEDIT" >&5
9018 echo "${ECHO_T}$NMEDIT" >&6; }
9019 else
9020 { echo "$as_me:$LINENO: result: no" >&5
9021 echo "${ECHO_T}no" >&6; }
9026 if test -z "$ac_cv_prog_NMEDIT"; then
9027 ac_ct_NMEDIT=$NMEDIT
9028 # Extract the first word of "nmedit", so it can be a program name with args.
9029 set dummy nmedit; ac_word=$2
9030 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9031 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9032 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
9033 echo $ECHO_N "(cached) $ECHO_C" >&6
9034 else
9035 if test -n "$ac_ct_NMEDIT"; then
9036 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
9037 else
9038 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9039 for as_dir in $PATH
9041 IFS=$as_save_IFS
9042 test -z "$as_dir" && as_dir=.
9043 for ac_exec_ext in '' $ac_executable_extensions; do
9044 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9045 ac_cv_prog_ac_ct_NMEDIT="nmedit"
9046 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9047 break 2
9049 done
9050 done
9051 IFS=$as_save_IFS
9055 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
9056 if test -n "$ac_ct_NMEDIT"; then
9057 { echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
9058 echo "${ECHO_T}$ac_ct_NMEDIT" >&6; }
9059 else
9060 { echo "$as_me:$LINENO: result: no" >&5
9061 echo "${ECHO_T}no" >&6; }
9064 if test "x$ac_ct_NMEDIT" = x; then
9065 NMEDIT=":"
9066 else
9067 case $cross_compiling:$ac_tool_warned in
9068 yes:)
9069 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
9070 whose name does not start with the host triplet. If you think this
9071 configuration is useful to you, please write to autoconf@gnu.org." >&5
9072 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
9073 whose name does not start with the host triplet. If you think this
9074 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
9075 ac_tool_warned=yes ;;
9076 esac
9077 NMEDIT=$ac_ct_NMEDIT
9079 else
9080 NMEDIT="$ac_cv_prog_NMEDIT"
9084 { echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
9085 echo $ECHO_N "checking for -single_module linker flag... $ECHO_C" >&6; }
9086 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
9087 echo $ECHO_N "(cached) $ECHO_C" >&6
9088 else
9089 lt_cv_apple_cc_single_mod=no
9090 if test -z "${LT_MULTI_MODULE}"; then
9091 # By default we will add the -single_module flag. You can override
9092 # by either setting the environment variable LT_MULTI_MODULE
9093 # non-empty at configure time, or by adding -multi_module to the
9094 # link flags.
9095 echo "int foo(void){return 1;}" > conftest.c
9096 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9097 -dynamiclib ${wl}-single_module conftest.c
9098 if test -f libconftest.dylib; then
9099 lt_cv_apple_cc_single_mod=yes
9100 rm -rf libconftest.dylib*
9102 rm conftest.c
9105 { echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
9106 echo "${ECHO_T}$lt_cv_apple_cc_single_mod" >&6; }
9107 { echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
9108 echo $ECHO_N "checking for -exported_symbols_list linker flag... $ECHO_C" >&6; }
9109 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
9110 echo $ECHO_N "(cached) $ECHO_C" >&6
9111 else
9112 lt_cv_ld_exported_symbols_list=no
9113 save_LDFLAGS=$LDFLAGS
9114 echo "_main" > conftest.sym
9115 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
9116 cat >conftest.$ac_ext <<_ACEOF
9117 /* confdefs.h. */
9118 _ACEOF
9119 cat confdefs.h >>conftest.$ac_ext
9120 cat >>conftest.$ac_ext <<_ACEOF
9121 /* end confdefs.h. */
9124 main ()
9128 return 0;
9130 _ACEOF
9131 rm -f conftest.$ac_objext conftest$ac_exeext
9132 if { (ac_try="$ac_link"
9133 case "(($ac_try" in
9134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9135 *) ac_try_echo=$ac_try;;
9136 esac
9137 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9138 (eval "$ac_link") 2>conftest.er1
9139 ac_status=$?
9140 grep -v '^ *+' conftest.er1 >conftest.err
9141 rm -f conftest.er1
9142 cat conftest.err >&5
9143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9144 (exit $ac_status); } && {
9145 test -z "$ac_c_werror_flag" ||
9146 test ! -s conftest.err
9147 } && test -s conftest$ac_exeext &&
9148 $as_test_x conftest$ac_exeext; then
9149 lt_cv_ld_exported_symbols_list=yes
9150 else
9151 echo "$as_me: failed program was:" >&5
9152 sed 's/^/| /' conftest.$ac_ext >&5
9154 lt_cv_ld_exported_symbols_list=no
9157 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9158 conftest$ac_exeext conftest.$ac_ext
9159 LDFLAGS="$save_LDFLAGS"
9162 { echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
9163 echo "${ECHO_T}$lt_cv_ld_exported_symbols_list" >&6; }
9164 case $host_os in
9165 rhapsody* | darwin1.[0123])
9166 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
9167 darwin1.*)
9168 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
9169 darwin*)
9170 # if running on 10.5 or later, the deployment target defaults
9171 # to the OS version, if on x86, and 10.4, the deployment
9172 # target defaults to 10.4. Don't you love it?
9173 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
9174 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
9175 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
9176 10.[012]*)
9177 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
9178 10.*)
9179 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
9180 esac
9182 esac
9183 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
9184 _lt_dar_single_mod='$single_module'
9186 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
9187 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
9188 else
9189 _lt_dar_export_syms="~$NMEDIT -s \$output_objdir/\${libname}-symbols.expsym \${lib}"
9191 if test "$DSYMUTIL" != ":"; then
9192 _lt_dsymutil="~$DSYMUTIL \$lib || :"
9193 else
9194 _lt_dsymutil=
9197 esac
9200 enable_dlopen=no
9201 enable_win32_dll=no
9203 # Check whether --enable-libtool-lock was given.
9204 if test "${enable_libtool_lock+set}" = set; then
9205 enableval=$enable_libtool_lock;
9208 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
9211 # Check whether --with-pic was given.
9212 if test "${with_pic+set}" = set; then
9213 withval=$with_pic; pic_mode="$withval"
9214 else
9215 pic_mode=default
9218 test -z "$pic_mode" && pic_mode=default
9220 # Use C for the default configuration in the libtool script
9221 tagname=
9222 lt_save_CC="$CC"
9223 ac_ext=c
9224 ac_cpp='$CPP $CPPFLAGS'
9225 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9226 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9227 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9230 # Source file extension for C test sources.
9231 ac_ext=c
9233 # Object file extension for compiled C test sources.
9234 objext=o
9235 objext=$objext
9237 # Code to be used in simple compile tests
9238 lt_simple_compile_test_code="int some_variable = 0;"
9240 # Code to be used in simple link tests
9241 lt_simple_link_test_code='int main(){return(0);}'
9244 # If no C compiler was specified, use CC.
9245 LTCC=${LTCC-"$CC"}
9247 # If no C compiler flags were specified, use CFLAGS.
9248 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9250 # Allow CC to be a program name with arguments.
9251 compiler=$CC
9254 # save warnings/boilerplate of simple test code
9255 ac_outfile=conftest.$ac_objext
9256 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9257 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9258 _lt_compiler_boilerplate=`cat conftest.err`
9259 $rm conftest*
9261 ac_outfile=conftest.$ac_objext
9262 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9263 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9264 _lt_linker_boilerplate=`cat conftest.err`
9265 $rm -r conftest*
9269 lt_prog_compiler_no_builtin_flag=
9271 if test "$GCC" = yes; then
9272 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
9275 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9276 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
9277 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
9278 echo $ECHO_N "(cached) $ECHO_C" >&6
9279 else
9280 lt_cv_prog_compiler_rtti_exceptions=no
9281 ac_outfile=conftest.$ac_objext
9282 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9283 lt_compiler_flag="-fno-rtti -fno-exceptions"
9284 # Insert the option either (1) after the last *FLAGS variable, or
9285 # (2) before a word containing "conftest.", or (3) at the end.
9286 # Note that $ac_compile itself does not contain backslashes and begins
9287 # with a dollar sign (not a hyphen), so the echo should work correctly.
9288 # The option is referenced via a variable to avoid confusing sed.
9289 lt_compile=`echo "$ac_compile" | $SED \
9290 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9291 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9292 -e 's:$: $lt_compiler_flag:'`
9293 (eval echo "\"\$as_me:9293: $lt_compile\"" >&5)
9294 (eval "$lt_compile" 2>conftest.err)
9295 ac_status=$?
9296 cat conftest.err >&5
9297 echo "$as_me:9297: \$? = $ac_status" >&5
9298 if (exit $ac_status) && test -s "$ac_outfile"; then
9299 # The compiler can only warn and ignore the option if not recognized
9300 # So say no if there are warnings other than the usual output.
9301 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9302 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9303 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9304 lt_cv_prog_compiler_rtti_exceptions=yes
9307 $rm conftest*
9310 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9311 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9313 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9314 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9315 else
9321 lt_prog_compiler_wl=
9322 lt_prog_compiler_pic=
9323 lt_prog_compiler_static=
9325 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
9326 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
9328 if test "$GCC" = yes; then
9329 lt_prog_compiler_wl='-Wl,'
9330 lt_prog_compiler_static='-static'
9332 case $host_os in
9333 aix*)
9334 # All AIX code is PIC.
9335 if test "$host_cpu" = ia64; then
9336 # AIX 5 now supports IA64 processor
9337 lt_prog_compiler_static='-Bstatic'
9341 amigaos*)
9342 # FIXME: we need at least 68020 code to build shared libraries, but
9343 # adding the `-m68020' flag to GCC prevents building anything better,
9344 # like `-m68040'.
9345 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9348 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9349 # PIC is the default for these OSes.
9352 mingw* | cygwin* | pw32* | os2*)
9353 # This hack is so that the source file can tell whether it is being
9354 # built for inclusion in a dll (and should export symbols for example).
9355 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9356 # (--disable-auto-import) libraries
9357 lt_prog_compiler_pic='-DDLL_EXPORT'
9360 darwin* | rhapsody*)
9361 # PIC is the default on this platform
9362 # Common symbols not allowed in MH_DYLIB files
9363 lt_prog_compiler_pic='-fno-common'
9366 interix[3-9]*)
9367 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9368 # Instead, we relocate shared libraries at runtime.
9371 msdosdjgpp*)
9372 # Just because we use GCC doesn't mean we suddenly get shared libraries
9373 # on systems that don't support them.
9374 lt_prog_compiler_can_build_shared=no
9375 enable_shared=no
9378 sysv4*MP*)
9379 if test -d /usr/nec; then
9380 lt_prog_compiler_pic=-Kconform_pic
9384 hpux*)
9385 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9386 # not for PA HP-UX.
9387 case $host_cpu in
9388 hppa*64*|ia64*)
9389 # +Z the default
9392 lt_prog_compiler_pic='-fPIC'
9394 esac
9398 lt_prog_compiler_pic='-fPIC'
9400 esac
9401 else
9402 # PORTME Check for flag to pass linker flags through the system compiler.
9403 case $host_os in
9404 aix*)
9405 lt_prog_compiler_wl='-Wl,'
9406 if test "$host_cpu" = ia64; then
9407 # AIX 5 now supports IA64 processor
9408 lt_prog_compiler_static='-Bstatic'
9409 else
9410 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9413 darwin*)
9414 # PIC is the default on this platform
9415 # Common symbols not allowed in MH_DYLIB files
9416 case $cc_basename in
9417 xlc*)
9418 lt_prog_compiler_pic='-qnocommon'
9419 lt_prog_compiler_wl='-Wl,'
9421 esac
9424 mingw* | cygwin* | pw32* | os2*)
9425 # This hack is so that the source file can tell whether it is being
9426 # built for inclusion in a dll (and should export symbols for example).
9427 lt_prog_compiler_pic='-DDLL_EXPORT'
9430 hpux9* | hpux10* | hpux11*)
9431 lt_prog_compiler_wl='-Wl,'
9432 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9433 # not for PA HP-UX.
9434 case $host_cpu in
9435 hppa*64*|ia64*)
9436 # +Z the default
9439 lt_prog_compiler_pic='+Z'
9441 esac
9442 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9443 lt_prog_compiler_static='${wl}-a ${wl}archive'
9446 irix5* | irix6* | nonstopux*)
9447 lt_prog_compiler_wl='-Wl,'
9448 # PIC (with -KPIC) is the default.
9449 lt_prog_compiler_static='-non_shared'
9452 newsos6)
9453 lt_prog_compiler_pic='-KPIC'
9454 lt_prog_compiler_static='-Bstatic'
9457 linux* | k*bsd*-gnu)
9458 case $cc_basename in
9459 icc* | ecc*)
9460 lt_prog_compiler_wl='-Wl,'
9461 lt_prog_compiler_pic='-KPIC'
9462 lt_prog_compiler_static='-static'
9464 pgcc* | pgf77* | pgf90* | pgf95*)
9465 # Portland Group compilers (*not* the Pentium gcc compiler,
9466 # which looks to be a dead project)
9467 lt_prog_compiler_wl='-Wl,'
9468 lt_prog_compiler_pic='-fpic'
9469 lt_prog_compiler_static='-Bstatic'
9471 ccc*)
9472 lt_prog_compiler_wl='-Wl,'
9473 # All Alpha code is PIC.
9474 lt_prog_compiler_static='-non_shared'
9477 case `$CC -V 2>&1 | sed 5q` in
9478 *Sun\ C*)
9479 # Sun C 5.9
9480 lt_prog_compiler_pic='-KPIC'
9481 lt_prog_compiler_static='-Bstatic'
9482 lt_prog_compiler_wl='-Wl,'
9484 *Sun\ F*)
9485 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9486 lt_prog_compiler_pic='-KPIC'
9487 lt_prog_compiler_static='-Bstatic'
9488 lt_prog_compiler_wl=''
9490 esac
9492 esac
9495 osf3* | osf4* | osf5*)
9496 lt_prog_compiler_wl='-Wl,'
9497 # All OSF/1 code is PIC.
9498 lt_prog_compiler_static='-non_shared'
9501 rdos*)
9502 lt_prog_compiler_static='-non_shared'
9505 solaris*)
9506 lt_prog_compiler_pic='-KPIC'
9507 lt_prog_compiler_static='-Bstatic'
9508 case $cc_basename in
9509 f77* | f90* | f95*)
9510 lt_prog_compiler_wl='-Qoption ld ';;
9512 lt_prog_compiler_wl='-Wl,';;
9513 esac
9516 sunos4*)
9517 lt_prog_compiler_wl='-Qoption ld '
9518 lt_prog_compiler_pic='-PIC'
9519 lt_prog_compiler_static='-Bstatic'
9522 sysv4 | sysv4.2uw2* | sysv4.3*)
9523 lt_prog_compiler_wl='-Wl,'
9524 lt_prog_compiler_pic='-KPIC'
9525 lt_prog_compiler_static='-Bstatic'
9528 sysv4*MP*)
9529 if test -d /usr/nec ;then
9530 lt_prog_compiler_pic='-Kconform_pic'
9531 lt_prog_compiler_static='-Bstatic'
9535 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9536 lt_prog_compiler_wl='-Wl,'
9537 lt_prog_compiler_pic='-KPIC'
9538 lt_prog_compiler_static='-Bstatic'
9541 unicos*)
9542 lt_prog_compiler_wl='-Wl,'
9543 lt_prog_compiler_can_build_shared=no
9546 uts4*)
9547 lt_prog_compiler_pic='-pic'
9548 lt_prog_compiler_static='-Bstatic'
9552 lt_prog_compiler_can_build_shared=no
9554 esac
9557 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
9558 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
9561 # Check to make sure the PIC flag actually works.
9563 if test -n "$lt_prog_compiler_pic"; then
9565 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9566 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
9567 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
9568 echo $ECHO_N "(cached) $ECHO_C" >&6
9569 else
9570 lt_cv_prog_compiler_pic_works=no
9571 ac_outfile=conftest.$ac_objext
9572 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9573 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9574 # Insert the option either (1) after the last *FLAGS variable, or
9575 # (2) before a word containing "conftest.", or (3) at the end.
9576 # Note that $ac_compile itself does not contain backslashes and begins
9577 # with a dollar sign (not a hyphen), so the echo should work correctly.
9578 # The option is referenced via a variable to avoid confusing sed.
9579 lt_compile=`echo "$ac_compile" | $SED \
9580 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9581 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9582 -e 's:$: $lt_compiler_flag:'`
9583 (eval echo "\"\$as_me:9583: $lt_compile\"" >&5)
9584 (eval "$lt_compile" 2>conftest.err)
9585 ac_status=$?
9586 cat conftest.err >&5
9587 echo "$as_me:9587: \$? = $ac_status" >&5
9588 if (exit $ac_status) && test -s "$ac_outfile"; then
9589 # The compiler can only warn and ignore the option if not recognized
9590 # So say no if there are warnings other than the usual output.
9591 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9592 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9593 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9594 lt_cv_prog_compiler_pic_works=yes
9597 $rm conftest*
9600 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
9601 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works" >&6; }
9603 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9604 case $lt_prog_compiler_pic in
9605 "" | " "*) ;;
9606 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9607 esac
9608 else
9609 lt_prog_compiler_pic=
9610 lt_prog_compiler_can_build_shared=no
9614 case $host_os in
9615 # For platforms which do not support PIC, -DPIC is meaningless:
9616 *djgpp*)
9617 lt_prog_compiler_pic=
9620 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9622 esac
9625 # Check to make sure the static flag actually works.
9627 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9628 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9629 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
9630 if test "${lt_cv_prog_compiler_static_works+set}" = set; then
9631 echo $ECHO_N "(cached) $ECHO_C" >&6
9632 else
9633 lt_cv_prog_compiler_static_works=no
9634 save_LDFLAGS="$LDFLAGS"
9635 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9636 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9637 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9638 # The linker can only warn and ignore the option if not recognized
9639 # So say no if there are warnings
9640 if test -s conftest.err; then
9641 # Append any errors to the config.log.
9642 cat conftest.err 1>&5
9643 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
9644 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9645 if diff conftest.exp conftest.er2 >/dev/null; then
9646 lt_cv_prog_compiler_static_works=yes
9648 else
9649 lt_cv_prog_compiler_static_works=yes
9652 $rm -r conftest*
9653 LDFLAGS="$save_LDFLAGS"
9656 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
9657 echo "${ECHO_T}$lt_cv_prog_compiler_static_works" >&6; }
9659 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9661 else
9662 lt_prog_compiler_static=
9666 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
9667 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
9668 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
9669 echo $ECHO_N "(cached) $ECHO_C" >&6
9670 else
9671 lt_cv_prog_compiler_c_o=no
9672 $rm -r conftest 2>/dev/null
9673 mkdir conftest
9674 cd conftest
9675 mkdir out
9676 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9678 lt_compiler_flag="-o out/conftest2.$ac_objext"
9679 # Insert the option either (1) after the last *FLAGS variable, or
9680 # (2) before a word containing "conftest.", or (3) at the end.
9681 # Note that $ac_compile itself does not contain backslashes and begins
9682 # with a dollar sign (not a hyphen), so the echo should work correctly.
9683 lt_compile=`echo "$ac_compile" | $SED \
9684 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9685 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9686 -e 's:$: $lt_compiler_flag:'`
9687 (eval echo "\"\$as_me:9687: $lt_compile\"" >&5)
9688 (eval "$lt_compile" 2>out/conftest.err)
9689 ac_status=$?
9690 cat out/conftest.err >&5
9691 echo "$as_me:9691: \$? = $ac_status" >&5
9692 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9693 then
9694 # The compiler can only warn and ignore the option if not recognized
9695 # So say no if there are warnings
9696 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9697 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9698 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9699 lt_cv_prog_compiler_c_o=yes
9702 chmod u+w . 2>&5
9703 $rm conftest*
9704 # SGI C++ compiler will create directory out/ii_files/ for
9705 # template instantiation
9706 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
9707 $rm out/* && rmdir out
9708 cd ..
9709 rmdir conftest
9710 $rm conftest*
9713 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
9714 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
9717 hard_links="nottested"
9718 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9719 # do not overwrite the value of need_locks provided by the user
9720 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
9721 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
9722 hard_links=yes
9723 $rm conftest*
9724 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9725 touch conftest.a
9726 ln conftest.a conftest.b 2>&5 || hard_links=no
9727 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9728 { echo "$as_me:$LINENO: result: $hard_links" >&5
9729 echo "${ECHO_T}$hard_links" >&6; }
9730 if test "$hard_links" = no; then
9731 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9732 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9733 need_locks=warn
9735 else
9736 need_locks=no
9739 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9740 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
9742 runpath_var=
9743 allow_undefined_flag=
9744 enable_shared_with_static_runtimes=no
9745 archive_cmds=
9746 archive_expsym_cmds=
9747 old_archive_From_new_cmds=
9748 old_archive_from_expsyms_cmds=
9749 export_dynamic_flag_spec=
9750 whole_archive_flag_spec=
9751 thread_safe_flag_spec=
9752 hardcode_libdir_flag_spec=
9753 hardcode_libdir_flag_spec_ld=
9754 hardcode_libdir_separator=
9755 hardcode_direct=no
9756 hardcode_minus_L=no
9757 hardcode_shlibpath_var=unsupported
9758 link_all_deplibs=unknown
9759 hardcode_automatic=no
9760 module_cmds=
9761 module_expsym_cmds=
9762 always_export_symbols=no
9763 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9764 # include_expsyms should be a list of space-separated symbols to be *always*
9765 # included in the symbol list
9766 include_expsyms=
9767 # exclude_expsyms can be an extended regexp of symbols to exclude
9768 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9769 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9770 # as well as any symbol that contains `d'.
9771 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9772 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9773 # platforms (ab)use it in PIC code, but their linkers get confused if
9774 # the symbol is explicitly referenced. Since portable code cannot
9775 # rely on this symbol name, it's probably fine to never include it in
9776 # preloaded symbol tables.
9777 # Exclude shared library initialization/finalization symbols.
9778 extract_expsyms_cmds=
9779 # Just being paranoid about ensuring that cc_basename is set.
9780 for cc_temp in $compiler""; do
9781 case $cc_temp in
9782 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9783 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9784 \-*) ;;
9785 *) break;;
9786 esac
9787 done
9788 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
9790 case $host_os in
9791 cygwin* | mingw* | pw32*)
9792 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9793 # When not using gcc, we currently assume that we are using
9794 # Microsoft Visual C++.
9795 if test "$GCC" != yes; then
9796 with_gnu_ld=no
9799 interix*)
9800 # we just hope/assume this is gcc and not c89 (= MSVC++)
9801 with_gnu_ld=yes
9803 openbsd*)
9804 with_gnu_ld=no
9806 esac
9808 ld_shlibs=yes
9809 if test "$with_gnu_ld" = yes; then
9810 # If archive_cmds runs LD, not CC, wlarc should be empty
9811 wlarc='${wl}'
9813 # Set some defaults for GNU ld with shared library support. These
9814 # are reset later if shared libraries are not supported. Putting them
9815 # here allows them to be overridden if necessary.
9816 runpath_var=LD_RUN_PATH
9817 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
9818 export_dynamic_flag_spec='${wl}--export-dynamic'
9819 # ancient GNU ld didn't support --whole-archive et. al.
9820 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
9821 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9822 else
9823 whole_archive_flag_spec=
9825 supports_anon_versioning=no
9826 case `$LD -v 2>/dev/null` in
9827 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9828 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9829 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9830 *\ 2.11.*) ;; # other 2.11 versions
9831 *) supports_anon_versioning=yes ;;
9832 esac
9834 # See if GNU ld supports shared libraries.
9835 case $host_os in
9836 aix[3-9]*)
9837 # On AIX/PPC, the GNU linker is very broken
9838 if test "$host_cpu" != ia64; then
9839 ld_shlibs=no
9840 cat <<EOF 1>&2
9842 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
9843 *** to be unable to reliably create shared libraries on AIX.
9844 *** Therefore, libtool is disabling shared libraries support. If you
9845 *** really care for shared libraries, you may want to modify your PATH
9846 *** so that a non-GNU linker is found, and then restart.
9852 amigaos*)
9853 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)'
9854 hardcode_libdir_flag_spec='-L$libdir'
9855 hardcode_minus_L=yes
9857 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
9858 # that the semantics of dynamic libraries on AmigaOS, at least up
9859 # to version 4, is to share data among multiple programs linked
9860 # with the same dynamic library. Since this doesn't match the
9861 # behavior of shared libraries on other platforms, we can't use
9862 # them.
9863 ld_shlibs=no
9866 beos*)
9867 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9868 allow_undefined_flag=unsupported
9869 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9870 # support --undefined. This deserves some investigation. FIXME
9871 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9872 else
9873 ld_shlibs=no
9877 cygwin* | mingw* | pw32*)
9878 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9879 # as there is no search path for DLLs.
9880 hardcode_libdir_flag_spec='-L$libdir'
9881 allow_undefined_flag=unsupported
9882 always_export_symbols=no
9883 enable_shared_with_static_runtimes=yes
9884 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9886 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
9887 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9888 # If the export-symbols file already is a .def file (1st line
9889 # is EXPORTS), use it as is; otherwise, prepend...
9890 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9891 cp $export_symbols $output_objdir/$soname.def;
9892 else
9893 echo EXPORTS > $output_objdir/$soname.def;
9894 cat $export_symbols >> $output_objdir/$soname.def;
9896 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9897 else
9898 ld_shlibs=no
9902 interix[3-9]*)
9903 hardcode_direct=no
9904 hardcode_shlibpath_var=no
9905 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9906 export_dynamic_flag_spec='${wl}-E'
9907 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9908 # Instead, shared libraries are loaded at an image base (0x10000000 by
9909 # default) and relocated if they conflict, which is a slow very memory
9910 # consuming and fragmenting process. To avoid this, we pick a random,
9911 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9912 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9913 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9914 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'
9917 gnu* | linux* | k*bsd*-gnu)
9918 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9919 tmp_addflag=
9920 case $cc_basename,$host_cpu in
9921 pgcc*) # Portland Group C compiler
9922 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'
9923 tmp_addflag=' $pic_flag'
9925 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
9926 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'
9927 tmp_addflag=' $pic_flag -Mnomain' ;;
9928 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9929 tmp_addflag=' -i_dynamic' ;;
9930 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9931 tmp_addflag=' -i_dynamic -nofor_main' ;;
9932 ifc* | ifort*) # Intel Fortran compiler
9933 tmp_addflag=' -nofor_main' ;;
9934 esac
9935 case `$CC -V 2>&1 | sed 5q` in
9936 *Sun\ C*) # Sun C 5.9
9937 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
9938 tmp_sharedflag='-G' ;;
9939 *Sun\ F*) # Sun Fortran 8.3
9940 tmp_sharedflag='-G' ;;
9942 tmp_sharedflag='-shared' ;;
9943 esac
9944 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9946 if test $supports_anon_versioning = yes; then
9947 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
9948 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9949 $echo "local: *; };" >> $output_objdir/$libname.ver~
9950 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9952 link_all_deplibs=no
9953 else
9954 ld_shlibs=no
9958 netbsd* | netbsdelf*-gnu)
9959 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9960 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9961 wlarc=
9962 else
9963 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9964 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9968 solaris*)
9969 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
9970 ld_shlibs=no
9971 cat <<EOF 1>&2
9973 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9974 *** create shared libraries on Solaris systems. Therefore, libtool
9975 *** is disabling shared libraries support. We urge you to upgrade GNU
9976 *** binutils to release 2.9.1 or newer. Another option is to modify
9977 *** your PATH or compiler configuration so that the native linker is
9978 *** used, and then restart.
9981 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9982 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9983 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9984 else
9985 ld_shlibs=no
9989 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9990 case `$LD -v 2>&1` in
9991 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9992 ld_shlibs=no
9993 cat <<_LT_EOF 1>&2
9995 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9996 *** reliably create shared libraries on SCO systems. Therefore, libtool
9997 *** is disabling shared libraries support. We urge you to upgrade GNU
9998 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9999 *** your PATH or compiler configuration so that the native linker is
10000 *** used, and then restart.
10002 _LT_EOF
10005 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
10006 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
10007 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
10008 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
10009 else
10010 ld_shlibs=no
10013 esac
10016 sunos4*)
10017 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10018 wlarc=
10019 hardcode_direct=yes
10020 hardcode_shlibpath_var=no
10024 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
10025 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10026 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10027 else
10028 ld_shlibs=no
10031 esac
10033 if test "$ld_shlibs" = no; then
10034 runpath_var=
10035 hardcode_libdir_flag_spec=
10036 export_dynamic_flag_spec=
10037 whole_archive_flag_spec=
10039 else
10040 # PORTME fill in a description of your system's linker (not GNU ld)
10041 case $host_os in
10042 aix3*)
10043 allow_undefined_flag=unsupported
10044 always_export_symbols=yes
10045 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'
10046 # Note: this linker hardcodes the directories in LIBPATH if there
10047 # are no directories specified by -L.
10048 hardcode_minus_L=yes
10049 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10050 # Neither direct hardcoding nor static linking is supported with a
10051 # broken collect2.
10052 hardcode_direct=unsupported
10056 aix[4-9]*)
10057 if test "$host_cpu" = ia64; then
10058 # On IA64, the linker does run time linking by default, so we don't
10059 # have to do anything special.
10060 aix_use_runtimelinking=no
10061 exp_sym_flag='-Bexport'
10062 no_entry_flag=""
10063 else
10064 # If we're using GNU nm, then we don't want the "-C" option.
10065 # -C means demangle to AIX nm, but means don't demangle with GNU nm
10066 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
10067 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'
10068 else
10069 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'
10071 aix_use_runtimelinking=no
10073 # Test if we are trying to use run time linking or normal
10074 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10075 # need to do runtime linking.
10076 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10077 for ld_flag in $LDFLAGS; do
10078 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10079 aix_use_runtimelinking=yes
10080 break
10082 done
10084 esac
10086 exp_sym_flag='-bexport'
10087 no_entry_flag='-bnoentry'
10090 # When large executables or shared objects are built, AIX ld can
10091 # have problems creating the table of contents. If linking a library
10092 # or program results in "error TOC overflow" add -mminimal-toc to
10093 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10094 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10096 archive_cmds=''
10097 hardcode_direct=yes
10098 hardcode_libdir_separator=':'
10099 link_all_deplibs=yes
10101 if test "$GCC" = yes; then
10102 case $host_os in aix4.[012]|aix4.[012].*)
10103 # We only want to do this on AIX 4.2 and lower, the check
10104 # below for broken collect2 doesn't work under 4.3+
10105 collect2name=`${CC} -print-prog-name=collect2`
10106 if test -f "$collect2name" && \
10107 strings "$collect2name" | grep resolve_lib_name >/dev/null
10108 then
10109 # We have reworked collect2
10111 else
10112 # We have old collect2
10113 hardcode_direct=unsupported
10114 # It fails to find uninstalled libraries when the uninstalled
10115 # path is not listed in the libpath. Setting hardcode_minus_L
10116 # to unsupported forces relinking
10117 hardcode_minus_L=yes
10118 hardcode_libdir_flag_spec='-L$libdir'
10119 hardcode_libdir_separator=
10122 esac
10123 shared_flag='-shared'
10124 if test "$aix_use_runtimelinking" = yes; then
10125 shared_flag="$shared_flag "'${wl}-G'
10127 else
10128 # not using gcc
10129 if test "$host_cpu" = ia64; then
10130 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10131 # chokes on -Wl,-G. The following line is correct:
10132 shared_flag='-G'
10133 else
10134 if test "$aix_use_runtimelinking" = yes; then
10135 shared_flag='${wl}-G'
10136 else
10137 shared_flag='${wl}-bM:SRE'
10142 # It seems that -bexpall does not export symbols beginning with
10143 # underscore (_), so it is better to generate a list of symbols to export.
10144 always_export_symbols=yes
10145 if test "$aix_use_runtimelinking" = yes; then
10146 # Warning - without using the other runtime loading flags (-brtl),
10147 # -berok will link without error, but may produce a broken library.
10148 allow_undefined_flag='-berok'
10149 # Determine the default libpath from the value encoded in an empty executable.
10150 cat >conftest.$ac_ext <<_ACEOF
10151 /* confdefs.h. */
10152 _ACEOF
10153 cat confdefs.h >>conftest.$ac_ext
10154 cat >>conftest.$ac_ext <<_ACEOF
10155 /* end confdefs.h. */
10158 main ()
10162 return 0;
10164 _ACEOF
10165 rm -f conftest.$ac_objext conftest$ac_exeext
10166 if { (ac_try="$ac_link"
10167 case "(($ac_try" in
10168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10169 *) ac_try_echo=$ac_try;;
10170 esac
10171 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10172 (eval "$ac_link") 2>conftest.er1
10173 ac_status=$?
10174 grep -v '^ *+' conftest.er1 >conftest.err
10175 rm -f conftest.er1
10176 cat conftest.err >&5
10177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10178 (exit $ac_status); } && {
10179 test -z "$ac_c_werror_flag" ||
10180 test ! -s conftest.err
10181 } && test -s conftest$ac_exeext &&
10182 $as_test_x conftest$ac_exeext; then
10184 lt_aix_libpath_sed='
10185 /Import File Strings/,/^$/ {
10186 /^0/ {
10187 s/^0 *\(.*\)$/\1/
10191 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10192 # Check for a 64-bit object if we didn't find anything.
10193 if test -z "$aix_libpath"; then
10194 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10196 else
10197 echo "$as_me: failed program was:" >&5
10198 sed 's/^/| /' conftest.$ac_ext >&5
10203 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10204 conftest$ac_exeext conftest.$ac_ext
10205 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10207 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10208 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"
10209 else
10210 if test "$host_cpu" = ia64; then
10211 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10212 allow_undefined_flag="-z nodefs"
10213 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"
10214 else
10215 # Determine the default libpath from the value encoded in an empty executable.
10216 cat >conftest.$ac_ext <<_ACEOF
10217 /* confdefs.h. */
10218 _ACEOF
10219 cat confdefs.h >>conftest.$ac_ext
10220 cat >>conftest.$ac_ext <<_ACEOF
10221 /* end confdefs.h. */
10224 main ()
10228 return 0;
10230 _ACEOF
10231 rm -f conftest.$ac_objext conftest$ac_exeext
10232 if { (ac_try="$ac_link"
10233 case "(($ac_try" in
10234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10235 *) ac_try_echo=$ac_try;;
10236 esac
10237 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10238 (eval "$ac_link") 2>conftest.er1
10239 ac_status=$?
10240 grep -v '^ *+' conftest.er1 >conftest.err
10241 rm -f conftest.er1
10242 cat conftest.err >&5
10243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10244 (exit $ac_status); } && {
10245 test -z "$ac_c_werror_flag" ||
10246 test ! -s conftest.err
10247 } && test -s conftest$ac_exeext &&
10248 $as_test_x conftest$ac_exeext; then
10250 lt_aix_libpath_sed='
10251 /Import File Strings/,/^$/ {
10252 /^0/ {
10253 s/^0 *\(.*\)$/\1/
10257 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10258 # Check for a 64-bit object if we didn't find anything.
10259 if test -z "$aix_libpath"; then
10260 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10262 else
10263 echo "$as_me: failed program was:" >&5
10264 sed 's/^/| /' conftest.$ac_ext >&5
10269 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10270 conftest$ac_exeext conftest.$ac_ext
10271 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10273 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10274 # Warning - without using the other run time loading flags,
10275 # -berok will link without error, but may produce a broken library.
10276 no_undefined_flag=' ${wl}-bernotok'
10277 allow_undefined_flag=' ${wl}-berok'
10278 # Exported symbols can be pulled into shared objects from archives
10279 whole_archive_flag_spec='$convenience'
10280 archive_cmds_need_lc=yes
10281 # This is similar to how AIX traditionally builds its shared libraries.
10282 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'
10287 amigaos*)
10288 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)'
10289 hardcode_libdir_flag_spec='-L$libdir'
10290 hardcode_minus_L=yes
10291 # see comment about different semantics on the GNU ld section
10292 ld_shlibs=no
10295 bsdi[45]*)
10296 export_dynamic_flag_spec=-rdynamic
10299 cygwin* | mingw* | pw32*)
10300 # When not using gcc, we currently assume that we are using
10301 # Microsoft Visual C++.
10302 # hardcode_libdir_flag_spec is actually meaningless, as there is
10303 # no search path for DLLs.
10304 hardcode_libdir_flag_spec=' '
10305 allow_undefined_flag=unsupported
10306 # Tell ltmain to make .lib files, not .a files.
10307 libext=lib
10308 # Tell ltmain to make .dll files, not .so files.
10309 shrext_cmds=".dll"
10310 # FIXME: Setting linknames here is a bad hack.
10311 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
10312 # The linker will automatically build a .lib file if we build a DLL.
10313 old_archive_From_new_cmds='true'
10314 # FIXME: Should let the user specify the lib program.
10315 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10316 fix_srcfile_path='`cygpath -w "$srcfile"`'
10317 enable_shared_with_static_runtimes=yes
10320 darwin* | rhapsody*)
10321 case $host_os in
10322 rhapsody* | darwin1.[012])
10323 allow_undefined_flag='${wl}-undefined ${wl}suppress'
10325 *) # Darwin 1.3 on
10326 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10327 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10328 else
10329 case ${MACOSX_DEPLOYMENT_TARGET} in
10330 10.[012])
10331 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10333 10.*)
10334 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
10336 esac
10339 esac
10340 archive_cmds_need_lc=no
10341 hardcode_direct=no
10342 hardcode_automatic=yes
10343 hardcode_shlibpath_var=unsupported
10344 whole_archive_flag_spec=''
10345 link_all_deplibs=yes
10346 if test "$GCC" = yes ; then
10347 output_verbose_link_cmd='echo'
10348 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10349 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10350 archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
10351 module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
10352 else
10353 case $cc_basename in
10354 xlc*)
10355 output_verbose_link_cmd='echo'
10356 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
10357 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10358 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10359 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10360 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}'
10363 ld_shlibs=no
10365 esac
10369 dgux*)
10370 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10371 hardcode_libdir_flag_spec='-L$libdir'
10372 hardcode_shlibpath_var=no
10375 freebsd1*)
10376 ld_shlibs=no
10379 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10380 # support. Future versions do this automatically, but an explicit c++rt0.o
10381 # does not break anything, and helps significantly (at the cost of a little
10382 # extra space).
10383 freebsd2.2*)
10384 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10385 hardcode_libdir_flag_spec='-R$libdir'
10386 hardcode_direct=yes
10387 hardcode_shlibpath_var=no
10390 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10391 freebsd2*)
10392 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10393 hardcode_direct=yes
10394 hardcode_minus_L=yes
10395 hardcode_shlibpath_var=no
10398 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10399 freebsd* | dragonfly*)
10400 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
10401 hardcode_libdir_flag_spec='-R$libdir'
10402 hardcode_direct=yes
10403 hardcode_shlibpath_var=no
10406 hpux9*)
10407 if test "$GCC" = yes; then
10408 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'
10409 else
10410 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'
10412 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10413 hardcode_libdir_separator=:
10414 hardcode_direct=yes
10416 # hardcode_minus_L: Not really in the search PATH,
10417 # but as the default location of the library.
10418 hardcode_minus_L=yes
10419 export_dynamic_flag_spec='${wl}-E'
10422 hpux10*)
10423 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10424 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10425 else
10426 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10428 if test "$with_gnu_ld" = no; then
10429 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10430 hardcode_libdir_separator=:
10432 hardcode_direct=yes
10433 export_dynamic_flag_spec='${wl}-E'
10435 # hardcode_minus_L: Not really in the search PATH,
10436 # but as the default location of the library.
10437 hardcode_minus_L=yes
10441 hpux11*)
10442 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10443 case $host_cpu in
10444 hppa*64*)
10445 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10447 ia64*)
10448 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10451 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10453 esac
10454 else
10455 case $host_cpu in
10456 hppa*64*)
10457 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10459 ia64*)
10460 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10463 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10465 esac
10467 if test "$with_gnu_ld" = no; then
10468 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10469 hardcode_libdir_separator=:
10471 case $host_cpu in
10472 hppa*64*|ia64*)
10473 hardcode_libdir_flag_spec_ld='+b $libdir'
10474 hardcode_direct=no
10475 hardcode_shlibpath_var=no
10478 hardcode_direct=yes
10479 export_dynamic_flag_spec='${wl}-E'
10481 # hardcode_minus_L: Not really in the search PATH,
10482 # but as the default location of the library.
10483 hardcode_minus_L=yes
10485 esac
10489 irix5* | irix6* | nonstopux*)
10490 if test "$GCC" = yes; then
10491 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'
10492 else
10493 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'
10494 hardcode_libdir_flag_spec_ld='-rpath $libdir'
10496 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10497 hardcode_libdir_separator=:
10498 link_all_deplibs=yes
10501 netbsd* | netbsdelf*-gnu)
10502 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10503 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10504 else
10505 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10507 hardcode_libdir_flag_spec='-R$libdir'
10508 hardcode_direct=yes
10509 hardcode_shlibpath_var=no
10512 newsos6)
10513 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10514 hardcode_direct=yes
10515 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10516 hardcode_libdir_separator=:
10517 hardcode_shlibpath_var=no
10520 openbsd*)
10521 if test -f /usr/libexec/ld.so; then
10522 hardcode_direct=yes
10523 hardcode_shlibpath_var=no
10524 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10525 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10526 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10527 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10528 export_dynamic_flag_spec='${wl}-E'
10529 else
10530 case $host_os in
10531 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10532 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10533 hardcode_libdir_flag_spec='-R$libdir'
10536 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10537 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10539 esac
10541 else
10542 ld_shlibs=no
10546 os2*)
10547 hardcode_libdir_flag_spec='-L$libdir'
10548 hardcode_minus_L=yes
10549 allow_undefined_flag=unsupported
10550 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'
10551 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10554 osf3*)
10555 if test "$GCC" = yes; then
10556 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10557 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'
10558 else
10559 allow_undefined_flag=' -expect_unresolved \*'
10560 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'
10562 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10563 hardcode_libdir_separator=:
10566 osf4* | osf5*) # as osf3* with the addition of -msym flag
10567 if test "$GCC" = yes; then
10568 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10569 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'
10570 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10571 else
10572 allow_undefined_flag=' -expect_unresolved \*'
10573 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'
10574 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
10575 $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'
10577 # Both c and cxx compiler support -rpath directly
10578 hardcode_libdir_flag_spec='-rpath $libdir'
10580 hardcode_libdir_separator=:
10583 solaris*)
10584 no_undefined_flag=' -z text'
10585 if test "$GCC" = yes; then
10586 wlarc='${wl}'
10587 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10588 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10589 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
10590 else
10591 wlarc=''
10592 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10593 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10594 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
10596 hardcode_libdir_flag_spec='-R$libdir'
10597 hardcode_shlibpath_var=no
10598 case $host_os in
10599 solaris2.[0-5] | solaris2.[0-5].*) ;;
10601 # The compiler driver will combine and reorder linker options,
10602 # but understands `-z linker_flag'. GCC discards it without `$wl',
10603 # but is careful enough not to reorder.
10604 # Supported since Solaris 2.6 (maybe 2.5.1?)
10605 if test "$GCC" = yes; then
10606 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10607 else
10608 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10611 esac
10612 link_all_deplibs=yes
10615 sunos4*)
10616 if test "x$host_vendor" = xsequent; then
10617 # Use $CC to link under sequent, because it throws in some extra .o
10618 # files that make .init and .fini sections work.
10619 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10620 else
10621 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10623 hardcode_libdir_flag_spec='-L$libdir'
10624 hardcode_direct=yes
10625 hardcode_minus_L=yes
10626 hardcode_shlibpath_var=no
10629 sysv4)
10630 case $host_vendor in
10631 sni)
10632 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10633 hardcode_direct=yes # is this really true???
10635 siemens)
10636 ## LD is ld it makes a PLAMLIB
10637 ## CC just makes a GrossModule.
10638 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10639 reload_cmds='$CC -r -o $output$reload_objs'
10640 hardcode_direct=no
10642 motorola)
10643 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10644 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10646 esac
10647 runpath_var='LD_RUN_PATH'
10648 hardcode_shlibpath_var=no
10651 sysv4.3*)
10652 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10653 hardcode_shlibpath_var=no
10654 export_dynamic_flag_spec='-Bexport'
10657 sysv4*MP*)
10658 if test -d /usr/nec; then
10659 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10660 hardcode_shlibpath_var=no
10661 runpath_var=LD_RUN_PATH
10662 hardcode_runpath_var=yes
10663 ld_shlibs=yes
10667 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10668 no_undefined_flag='${wl}-z,text'
10669 archive_cmds_need_lc=no
10670 hardcode_shlibpath_var=no
10671 runpath_var='LD_RUN_PATH'
10673 if test "$GCC" = yes; then
10674 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10675 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10676 else
10677 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10678 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10682 sysv5* | sco3.2v5* | sco5v6*)
10683 # Note: We can NOT use -z defs as we might desire, because we do not
10684 # link with -lc, and that would cause any symbols used from libc to
10685 # always be unresolved, which means just about no library would
10686 # ever link correctly. If we're not using GNU ld we use -z text
10687 # though, which does catch some bad symbols but isn't as heavy-handed
10688 # as -z defs.
10689 no_undefined_flag='${wl}-z,text'
10690 allow_undefined_flag='${wl}-z,nodefs'
10691 archive_cmds_need_lc=no
10692 hardcode_shlibpath_var=no
10693 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
10694 hardcode_libdir_separator=':'
10695 link_all_deplibs=yes
10696 export_dynamic_flag_spec='${wl}-Bexport'
10697 runpath_var='LD_RUN_PATH'
10699 if test "$GCC" = yes; then
10700 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
10701 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
10702 else
10703 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
10704 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
10708 uts4*)
10709 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10710 hardcode_libdir_flag_spec='-L$libdir'
10711 hardcode_shlibpath_var=no
10715 ld_shlibs=no
10717 esac
10720 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
10721 echo "${ECHO_T}$ld_shlibs" >&6; }
10722 test "$ld_shlibs" = no && can_build_shared=no
10725 # Do we need to explicitly link libc?
10727 case "x$archive_cmds_need_lc" in
10728 x|xyes)
10729 # Assume -lc should be added
10730 archive_cmds_need_lc=yes
10732 if test "$enable_shared" = yes && test "$GCC" = yes; then
10733 case $archive_cmds in
10734 *'~'*)
10735 # FIXME: we may have to deal with multi-command sequences.
10737 '$CC '*)
10738 # Test whether the compiler implicitly links with -lc since on some
10739 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10740 # to ld, don't add -lc before -lgcc.
10741 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
10742 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
10743 $rm conftest*
10744 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10746 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10747 (eval $ac_compile) 2>&5
10748 ac_status=$?
10749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10750 (exit $ac_status); } 2>conftest.err; then
10751 soname=conftest
10752 lib=conftest
10753 libobjs=conftest.$ac_objext
10754 deplibs=
10755 wl=$lt_prog_compiler_wl
10756 pic_flag=$lt_prog_compiler_pic
10757 compiler_flags=-v
10758 linker_flags=-v
10759 verstring=
10760 output_objdir=.
10761 libname=conftest
10762 lt_save_allow_undefined_flag=$allow_undefined_flag
10763 allow_undefined_flag=
10764 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
10765 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
10766 ac_status=$?
10767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10768 (exit $ac_status); }
10769 then
10770 archive_cmds_need_lc=no
10771 else
10772 archive_cmds_need_lc=yes
10774 allow_undefined_flag=$lt_save_allow_undefined_flag
10775 else
10776 cat conftest.err 1>&5
10778 $rm conftest*
10779 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
10780 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
10782 esac
10785 esac
10787 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
10788 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
10789 library_names_spec=
10790 libname_spec='lib$name'
10791 soname_spec=
10792 shrext_cmds=".so"
10793 postinstall_cmds=
10794 postuninstall_cmds=
10795 finish_cmds=
10796 finish_eval=
10797 shlibpath_var=
10798 shlibpath_overrides_runpath=unknown
10799 version_type=none
10800 dynamic_linker="$host_os ld.so"
10801 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10803 if test "$GCC" = yes; then
10804 case $host_os in
10805 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10806 *) lt_awk_arg="/^libraries:/" ;;
10807 esac
10808 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10809 if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
10810 # if the path contains ";" then we assume it to be the separator
10811 # otherwise default to the standard path separator (i.e. ":") - it is
10812 # assumed that no part of a normal pathname contains ";" but that should
10813 # okay in the real world where ";" in dirpaths is itself problematic.
10814 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
10815 else
10816 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10818 # Ok, now we have the path, separated by spaces, we can step through it
10819 # and add multilib dir if necessary.
10820 lt_tmp_lt_search_path_spec=
10821 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10822 for lt_sys_path in $lt_search_path_spec; do
10823 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10824 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10825 else
10826 test -d "$lt_sys_path" && \
10827 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10829 done
10830 lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
10831 BEGIN {RS=" "; FS="/|\n";} {
10832 lt_foo="";
10833 lt_count=0;
10834 for (lt_i = NF; lt_i > 0; lt_i--) {
10835 if ($lt_i != "" && $lt_i != ".") {
10836 if ($lt_i == "..") {
10837 lt_count++;
10838 } else {
10839 if (lt_count == 0) {
10840 lt_foo="/" $lt_i lt_foo;
10841 } else {
10842 lt_count--;
10847 if (lt_foo != "") { lt_freq[lt_foo]++; }
10848 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10850 sys_lib_search_path_spec=`echo $lt_search_path_spec`
10851 else
10852 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10854 need_lib_prefix=unknown
10855 hardcode_into_libs=no
10857 # when you set need_version to no, make sure it does not cause -set_version
10858 # flags to be left without arguments
10859 need_version=unknown
10861 case $host_os in
10862 aix3*)
10863 version_type=linux
10864 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10865 shlibpath_var=LIBPATH
10867 # AIX 3 has no versioning support, so we append a major version to the name.
10868 soname_spec='${libname}${release}${shared_ext}$major'
10871 aix[4-9]*)
10872 version_type=linux
10873 need_lib_prefix=no
10874 need_version=no
10875 hardcode_into_libs=yes
10876 if test "$host_cpu" = ia64; then
10877 # AIX 5 supports IA64
10878 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10879 shlibpath_var=LD_LIBRARY_PATH
10880 else
10881 # With GCC up to 2.95.x, collect2 would create an import file
10882 # for dependence libraries. The import file would start with
10883 # the line `#! .'. This would cause the generated library to
10884 # depend on `.', always an invalid library. This was fixed in
10885 # development snapshots of GCC prior to 3.0.
10886 case $host_os in
10887 aix4 | aix4.[01] | aix4.[01].*)
10888 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10889 echo ' yes '
10890 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
10892 else
10893 can_build_shared=no
10896 esac
10897 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10898 # soname into executable. Probably we can add versioning support to
10899 # collect2, so additional links can be useful in future.
10900 if test "$aix_use_runtimelinking" = yes; then
10901 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10902 # instead of lib<name>.a to let people know that these are not
10903 # typical AIX shared libraries.
10904 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10905 else
10906 # We preserve .a as extension for shared libraries through AIX4.2
10907 # and later when we are not doing run time linking.
10908 library_names_spec='${libname}${release}.a $libname.a'
10909 soname_spec='${libname}${release}${shared_ext}$major'
10911 shlibpath_var=LIBPATH
10915 amigaos*)
10916 library_names_spec='$libname.ixlibrary $libname.a'
10917 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10918 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'
10921 beos*)
10922 library_names_spec='${libname}${shared_ext}'
10923 dynamic_linker="$host_os ld.so"
10924 shlibpath_var=LIBRARY_PATH
10927 bsdi[45]*)
10928 version_type=linux
10929 need_version=no
10930 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10931 soname_spec='${libname}${release}${shared_ext}$major'
10932 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10933 shlibpath_var=LD_LIBRARY_PATH
10934 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10935 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10936 # the default ld.so.conf also contains /usr/contrib/lib and
10937 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10938 # libtool to hard-code these into programs
10941 cygwin* | mingw* | pw32*)
10942 version_type=windows
10943 shrext_cmds=".dll"
10944 need_version=no
10945 need_lib_prefix=no
10947 case $GCC,$host_os in
10948 yes,cygwin* | yes,mingw* | yes,pw32*)
10949 library_names_spec='$libname.dll.a'
10950 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10951 postinstall_cmds='base_file=`basename \${file}`~
10952 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
10953 dldir=$destdir/`dirname \$dlpath`~
10954 test -d \$dldir || mkdir -p \$dldir~
10955 $install_prog $dir/$dlname \$dldir/$dlname~
10956 chmod a+x \$dldir/$dlname'
10957 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10958 dlpath=$dir/\$dldll~
10959 $rm \$dlpath'
10960 shlibpath_overrides_runpath=yes
10962 case $host_os in
10963 cygwin*)
10964 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10965 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10966 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
10968 mingw*)
10969 # MinGW DLLs use traditional 'lib' prefix
10970 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10971 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10972 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
10973 # It is most probably a Windows format PATH printed by
10974 # mingw gcc, but we are running on Cygwin. Gcc prints its search
10975 # path with ; separators, and with drive letters. We can handle the
10976 # drive letters (cygwin fileutils understands them), so leave them,
10977 # especially as we might pass files found there to a mingw objdump,
10978 # which wouldn't understand a cygwinified path. Ahh.
10979 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10980 else
10981 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10984 pw32*)
10985 # pw32 DLLs use 'pw' prefix rather than 'lib'
10986 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10988 esac
10992 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10994 esac
10995 dynamic_linker='Win32 ld.exe'
10996 # FIXME: first we should search . and the directory the executable is in
10997 shlibpath_var=PATH
11000 darwin* | rhapsody*)
11001 dynamic_linker="$host_os dyld"
11002 version_type=darwin
11003 need_lib_prefix=no
11004 need_version=no
11005 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11006 soname_spec='${libname}${release}${major}$shared_ext'
11007 shlibpath_overrides_runpath=yes
11008 shlibpath_var=DYLD_LIBRARY_PATH
11009 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11011 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11012 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11015 dgux*)
11016 version_type=linux
11017 need_lib_prefix=no
11018 need_version=no
11019 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11020 soname_spec='${libname}${release}${shared_ext}$major'
11021 shlibpath_var=LD_LIBRARY_PATH
11024 freebsd1*)
11025 dynamic_linker=no
11028 freebsd* | dragonfly*)
11029 # DragonFly does not have aout. When/if they implement a new
11030 # versioning mechanism, adjust this.
11031 if test -x /usr/bin/objformat; then
11032 objformat=`/usr/bin/objformat`
11033 else
11034 case $host_os in
11035 freebsd[123]*) objformat=aout ;;
11036 *) objformat=elf ;;
11037 esac
11039 version_type=freebsd-$objformat
11040 case $version_type in
11041 freebsd-elf*)
11042 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11043 need_version=no
11044 need_lib_prefix=no
11046 freebsd-*)
11047 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11048 need_version=yes
11050 esac
11051 shlibpath_var=LD_LIBRARY_PATH
11052 case $host_os in
11053 freebsd2*)
11054 shlibpath_overrides_runpath=yes
11056 freebsd3.[01]* | freebsdelf3.[01]*)
11057 shlibpath_overrides_runpath=yes
11058 hardcode_into_libs=yes
11060 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11061 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11062 shlibpath_overrides_runpath=no
11063 hardcode_into_libs=yes
11065 *) # from 4.6 on, and DragonFly
11066 shlibpath_overrides_runpath=yes
11067 hardcode_into_libs=yes
11069 esac
11072 gnu*)
11073 version_type=linux
11074 need_lib_prefix=no
11075 need_version=no
11076 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11077 soname_spec='${libname}${release}${shared_ext}$major'
11078 shlibpath_var=LD_LIBRARY_PATH
11079 hardcode_into_libs=yes
11082 hpux9* | hpux10* | hpux11*)
11083 # Give a soname corresponding to the major version so that dld.sl refuses to
11084 # link against other versions.
11085 version_type=sunos
11086 need_lib_prefix=no
11087 need_version=no
11088 case $host_cpu in
11089 ia64*)
11090 shrext_cmds='.so'
11091 hardcode_into_libs=yes
11092 dynamic_linker="$host_os dld.so"
11093 shlibpath_var=LD_LIBRARY_PATH
11094 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11095 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11096 soname_spec='${libname}${release}${shared_ext}$major'
11097 if test "X$HPUX_IA64_MODE" = X32; then
11098 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11099 else
11100 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11102 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11104 hppa*64*)
11105 shrext_cmds='.sl'
11106 hardcode_into_libs=yes
11107 dynamic_linker="$host_os dld.sl"
11108 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11109 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11110 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11111 soname_spec='${libname}${release}${shared_ext}$major'
11112 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11113 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11116 shrext_cmds='.sl'
11117 dynamic_linker="$host_os dld.sl"
11118 shlibpath_var=SHLIB_PATH
11119 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11120 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11121 soname_spec='${libname}${release}${shared_ext}$major'
11123 esac
11124 # HP-UX runs *really* slowly unless shared libraries are mode 555.
11125 postinstall_cmds='chmod 555 $lib'
11128 interix[3-9]*)
11129 version_type=linux
11130 need_lib_prefix=no
11131 need_version=no
11132 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11133 soname_spec='${libname}${release}${shared_ext}$major'
11134 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11135 shlibpath_var=LD_LIBRARY_PATH
11136 shlibpath_overrides_runpath=no
11137 hardcode_into_libs=yes
11140 irix5* | irix6* | nonstopux*)
11141 case $host_os in
11142 nonstopux*) version_type=nonstopux ;;
11144 if test "$lt_cv_prog_gnu_ld" = yes; then
11145 version_type=linux
11146 else
11147 version_type=irix
11148 fi ;;
11149 esac
11150 need_lib_prefix=no
11151 need_version=no
11152 soname_spec='${libname}${release}${shared_ext}$major'
11153 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11154 case $host_os in
11155 irix5* | nonstopux*)
11156 libsuff= shlibsuff=
11159 case $LD in # libtool.m4 will add one of these switches to LD
11160 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11161 libsuff= shlibsuff= libmagic=32-bit;;
11162 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11163 libsuff=32 shlibsuff=N32 libmagic=N32;;
11164 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11165 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11166 *) libsuff= shlibsuff= libmagic=never-match;;
11167 esac
11169 esac
11170 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11171 shlibpath_overrides_runpath=no
11172 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11173 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11174 hardcode_into_libs=yes
11177 # No shared lib support for Linux oldld, aout, or coff.
11178 linux*oldld* | linux*aout* | linux*coff*)
11179 dynamic_linker=no
11182 # This must be Linux ELF.
11183 linux* | k*bsd*-gnu)
11184 version_type=linux
11185 need_lib_prefix=no
11186 need_version=no
11187 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11188 soname_spec='${libname}${release}${shared_ext}$major'
11189 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11190 shlibpath_var=LD_LIBRARY_PATH
11191 shlibpath_overrides_runpath=no
11192 # This implies no fast_install, which is unacceptable.
11193 # Some rework will be needed to allow for fast_install
11194 # before this can be enabled.
11195 hardcode_into_libs=yes
11197 # Append ld.so.conf contents to the search path
11198 if test -f /etc/ld.so.conf; then
11199 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
11200 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11203 # We used to test for /lib/ld.so.1 and disable shared libraries on
11204 # powerpc, because MkLinux only supported shared libraries with the
11205 # GNU dynamic linker. Since this was broken with cross compilers,
11206 # most powerpc-linux boxes support dynamic linking these days and
11207 # people can always --disable-shared, the test was removed, and we
11208 # assume the GNU/Linux dynamic linker is in use.
11209 dynamic_linker='GNU/Linux ld.so'
11212 netbsdelf*-gnu)
11213 version_type=linux
11214 need_lib_prefix=no
11215 need_version=no
11216 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11217 soname_spec='${libname}${release}${shared_ext}$major'
11218 shlibpath_var=LD_LIBRARY_PATH
11219 shlibpath_overrides_runpath=no
11220 hardcode_into_libs=yes
11221 dynamic_linker='NetBSD ld.elf_so'
11224 netbsd*)
11225 version_type=sunos
11226 need_lib_prefix=no
11227 need_version=no
11228 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11229 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11230 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11231 dynamic_linker='NetBSD (a.out) ld.so'
11232 else
11233 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11234 soname_spec='${libname}${release}${shared_ext}$major'
11235 dynamic_linker='NetBSD ld.elf_so'
11237 shlibpath_var=LD_LIBRARY_PATH
11238 shlibpath_overrides_runpath=yes
11239 hardcode_into_libs=yes
11242 newsos6)
11243 version_type=linux
11244 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11245 shlibpath_var=LD_LIBRARY_PATH
11246 shlibpath_overrides_runpath=yes
11249 nto-qnx*)
11250 version_type=linux
11251 need_lib_prefix=no
11252 need_version=no
11253 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11254 soname_spec='${libname}${release}${shared_ext}$major'
11255 shlibpath_var=LD_LIBRARY_PATH
11256 shlibpath_overrides_runpath=yes
11259 openbsd*)
11260 version_type=sunos
11261 sys_lib_dlsearch_path_spec="/usr/lib"
11262 need_lib_prefix=no
11263 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11264 case $host_os in
11265 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11266 *) need_version=no ;;
11267 esac
11268 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11269 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11270 shlibpath_var=LD_LIBRARY_PATH
11271 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11272 case $host_os in
11273 openbsd2.[89] | openbsd2.[89].*)
11274 shlibpath_overrides_runpath=no
11277 shlibpath_overrides_runpath=yes
11279 esac
11280 else
11281 shlibpath_overrides_runpath=yes
11285 os2*)
11286 libname_spec='$name'
11287 shrext_cmds=".dll"
11288 need_lib_prefix=no
11289 library_names_spec='$libname${shared_ext} $libname.a'
11290 dynamic_linker='OS/2 ld.exe'
11291 shlibpath_var=LIBPATH
11294 osf3* | osf4* | osf5*)
11295 version_type=osf
11296 need_lib_prefix=no
11297 need_version=no
11298 soname_spec='${libname}${release}${shared_ext}$major'
11299 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11300 shlibpath_var=LD_LIBRARY_PATH
11301 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11302 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11305 rdos*)
11306 dynamic_linker=no
11309 solaris*)
11310 version_type=linux
11311 need_lib_prefix=no
11312 need_version=no
11313 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11314 soname_spec='${libname}${release}${shared_ext}$major'
11315 shlibpath_var=LD_LIBRARY_PATH
11316 shlibpath_overrides_runpath=yes
11317 hardcode_into_libs=yes
11318 # ldd complains unless libraries are executable
11319 postinstall_cmds='chmod +x $lib'
11322 sunos4*)
11323 version_type=sunos
11324 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11325 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11326 shlibpath_var=LD_LIBRARY_PATH
11327 shlibpath_overrides_runpath=yes
11328 if test "$with_gnu_ld" = yes; then
11329 need_lib_prefix=no
11331 need_version=yes
11334 sysv4 | sysv4.3*)
11335 version_type=linux
11336 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11337 soname_spec='${libname}${release}${shared_ext}$major'
11338 shlibpath_var=LD_LIBRARY_PATH
11339 case $host_vendor in
11340 sni)
11341 shlibpath_overrides_runpath=no
11342 need_lib_prefix=no
11343 export_dynamic_flag_spec='${wl}-Blargedynsym'
11344 runpath_var=LD_RUN_PATH
11346 siemens)
11347 need_lib_prefix=no
11349 motorola)
11350 need_lib_prefix=no
11351 need_version=no
11352 shlibpath_overrides_runpath=no
11353 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11355 esac
11358 sysv4*MP*)
11359 if test -d /usr/nec ;then
11360 version_type=linux
11361 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11362 soname_spec='$libname${shared_ext}.$major'
11363 shlibpath_var=LD_LIBRARY_PATH
11367 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11368 version_type=freebsd-elf
11369 need_lib_prefix=no
11370 need_version=no
11371 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11372 soname_spec='${libname}${release}${shared_ext}$major'
11373 shlibpath_var=LD_LIBRARY_PATH
11374 hardcode_into_libs=yes
11375 if test "$with_gnu_ld" = yes; then
11376 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11377 shlibpath_overrides_runpath=no
11378 else
11379 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11380 shlibpath_overrides_runpath=yes
11381 case $host_os in
11382 sco3.2v5*)
11383 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11385 esac
11387 sys_lib_dlsearch_path_spec='/usr/lib'
11390 uts4*)
11391 version_type=linux
11392 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11393 soname_spec='${libname}${release}${shared_ext}$major'
11394 shlibpath_var=LD_LIBRARY_PATH
11398 dynamic_linker=no
11400 esac
11401 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
11402 echo "${ECHO_T}$dynamic_linker" >&6; }
11403 test "$dynamic_linker" = no && can_build_shared=no
11405 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11406 echo $ECHO_N "(cached) $ECHO_C" >&6
11407 else
11408 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
11411 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11412 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11413 echo $ECHO_N "(cached) $ECHO_C" >&6
11414 else
11415 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
11418 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11420 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11421 if test "$GCC" = yes; then
11422 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11425 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
11426 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
11427 hardcode_action=
11428 if test -n "$hardcode_libdir_flag_spec" || \
11429 test -n "$runpath_var" || \
11430 test "X$hardcode_automatic" = "Xyes" ; then
11432 # We can hardcode non-existant directories.
11433 if test "$hardcode_direct" != no &&
11434 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11435 # have to relink, otherwise we might link with an installed library
11436 # when we should be linking with a yet-to-be-installed one
11437 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
11438 test "$hardcode_minus_L" != no; then
11439 # Linking always hardcodes the temporary library directory.
11440 hardcode_action=relink
11441 else
11442 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11443 hardcode_action=immediate
11445 else
11446 # We cannot hardcode anything, or else we can only hardcode existing
11447 # directories.
11448 hardcode_action=unsupported
11450 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
11451 echo "${ECHO_T}$hardcode_action" >&6; }
11453 if test "$hardcode_action" = relink; then
11454 # Fast installation is not supported
11455 enable_fast_install=no
11456 elif test "$shlibpath_overrides_runpath" = yes ||
11457 test "$enable_shared" = no; then
11458 # Fast installation is not necessary
11459 enable_fast_install=needless
11462 striplib=
11463 old_striplib=
11464 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11465 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
11466 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
11467 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11468 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11469 { echo "$as_me:$LINENO: result: yes" >&5
11470 echo "${ECHO_T}yes" >&6; }
11471 else
11472 # FIXME - insert some real tests, host_os isn't really good enough
11473 case $host_os in
11474 darwin*)
11475 if test -n "$STRIP" ; then
11476 striplib="$STRIP -x"
11477 old_striplib="$STRIP -S"
11478 { echo "$as_me:$LINENO: result: yes" >&5
11479 echo "${ECHO_T}yes" >&6; }
11480 else
11481 { echo "$as_me:$LINENO: result: no" >&5
11482 echo "${ECHO_T}no" >&6; }
11486 { echo "$as_me:$LINENO: result: no" >&5
11487 echo "${ECHO_T}no" >&6; }
11489 esac
11492 if test "x$enable_dlopen" != xyes; then
11493 enable_dlopen=unknown
11494 enable_dlopen_self=unknown
11495 enable_dlopen_self_static=unknown
11496 else
11497 lt_cv_dlopen=no
11498 lt_cv_dlopen_libs=
11500 case $host_os in
11501 beos*)
11502 lt_cv_dlopen="load_add_on"
11503 lt_cv_dlopen_libs=
11504 lt_cv_dlopen_self=yes
11507 mingw* | pw32*)
11508 lt_cv_dlopen="LoadLibrary"
11509 lt_cv_dlopen_libs=
11512 cygwin*)
11513 lt_cv_dlopen="dlopen"
11514 lt_cv_dlopen_libs=
11517 darwin*)
11518 # if libdl is installed we need to link against it
11519 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11520 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
11521 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11522 echo $ECHO_N "(cached) $ECHO_C" >&6
11523 else
11524 ac_check_lib_save_LIBS=$LIBS
11525 LIBS="-ldl $LIBS"
11526 cat >conftest.$ac_ext <<_ACEOF
11527 /* confdefs.h. */
11528 _ACEOF
11529 cat confdefs.h >>conftest.$ac_ext
11530 cat >>conftest.$ac_ext <<_ACEOF
11531 /* end confdefs.h. */
11533 /* Override any GCC internal prototype to avoid an error.
11534 Use char because int might match the return type of a GCC
11535 builtin and then its argument prototype would still apply. */
11536 #ifdef __cplusplus
11537 extern "C"
11538 #endif
11539 char dlopen ();
11541 main ()
11543 return dlopen ();
11545 return 0;
11547 _ACEOF
11548 rm -f conftest.$ac_objext conftest$ac_exeext
11549 if { (ac_try="$ac_link"
11550 case "(($ac_try" in
11551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11552 *) ac_try_echo=$ac_try;;
11553 esac
11554 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11555 (eval "$ac_link") 2>conftest.er1
11556 ac_status=$?
11557 grep -v '^ *+' conftest.er1 >conftest.err
11558 rm -f conftest.er1
11559 cat conftest.err >&5
11560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11561 (exit $ac_status); } && {
11562 test -z "$ac_c_werror_flag" ||
11563 test ! -s conftest.err
11564 } && test -s conftest$ac_exeext &&
11565 $as_test_x conftest$ac_exeext; then
11566 ac_cv_lib_dl_dlopen=yes
11567 else
11568 echo "$as_me: failed program was:" >&5
11569 sed 's/^/| /' conftest.$ac_ext >&5
11571 ac_cv_lib_dl_dlopen=no
11574 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11575 conftest$ac_exeext conftest.$ac_ext
11576 LIBS=$ac_check_lib_save_LIBS
11578 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11579 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
11580 if test $ac_cv_lib_dl_dlopen = yes; then
11581 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11582 else
11584 lt_cv_dlopen="dyld"
11585 lt_cv_dlopen_libs=
11586 lt_cv_dlopen_self=yes
11593 { echo "$as_me:$LINENO: checking for shl_load" >&5
11594 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
11595 if test "${ac_cv_func_shl_load+set}" = set; then
11596 echo $ECHO_N "(cached) $ECHO_C" >&6
11597 else
11598 cat >conftest.$ac_ext <<_ACEOF
11599 /* confdefs.h. */
11600 _ACEOF
11601 cat confdefs.h >>conftest.$ac_ext
11602 cat >>conftest.$ac_ext <<_ACEOF
11603 /* end confdefs.h. */
11604 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
11605 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11606 #define shl_load innocuous_shl_load
11608 /* System header to define __stub macros and hopefully few prototypes,
11609 which can conflict with char shl_load (); below.
11610 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11611 <limits.h> exists even on freestanding compilers. */
11613 #ifdef __STDC__
11614 # include <limits.h>
11615 #else
11616 # include <assert.h>
11617 #endif
11619 #undef shl_load
11621 /* Override any GCC internal prototype to avoid an error.
11622 Use char because int might match the return type of a GCC
11623 builtin and then its argument prototype would still apply. */
11624 #ifdef __cplusplus
11625 extern "C"
11626 #endif
11627 char shl_load ();
11628 /* The GNU C library defines this for functions which it implements
11629 to always fail with ENOSYS. Some functions are actually named
11630 something starting with __ and the normal name is an alias. */
11631 #if defined __stub_shl_load || defined __stub___shl_load
11632 choke me
11633 #endif
11636 main ()
11638 return shl_load ();
11640 return 0;
11642 _ACEOF
11643 rm -f conftest.$ac_objext conftest$ac_exeext
11644 if { (ac_try="$ac_link"
11645 case "(($ac_try" in
11646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11647 *) ac_try_echo=$ac_try;;
11648 esac
11649 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11650 (eval "$ac_link") 2>conftest.er1
11651 ac_status=$?
11652 grep -v '^ *+' conftest.er1 >conftest.err
11653 rm -f conftest.er1
11654 cat conftest.err >&5
11655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11656 (exit $ac_status); } && {
11657 test -z "$ac_c_werror_flag" ||
11658 test ! -s conftest.err
11659 } && test -s conftest$ac_exeext &&
11660 $as_test_x conftest$ac_exeext; then
11661 ac_cv_func_shl_load=yes
11662 else
11663 echo "$as_me: failed program was:" >&5
11664 sed 's/^/| /' conftest.$ac_ext >&5
11666 ac_cv_func_shl_load=no
11669 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11670 conftest$ac_exeext conftest.$ac_ext
11672 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
11673 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
11674 if test $ac_cv_func_shl_load = yes; then
11675 lt_cv_dlopen="shl_load"
11676 else
11677 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
11678 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
11679 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
11680 echo $ECHO_N "(cached) $ECHO_C" >&6
11681 else
11682 ac_check_lib_save_LIBS=$LIBS
11683 LIBS="-ldld $LIBS"
11684 cat >conftest.$ac_ext <<_ACEOF
11685 /* confdefs.h. */
11686 _ACEOF
11687 cat confdefs.h >>conftest.$ac_ext
11688 cat >>conftest.$ac_ext <<_ACEOF
11689 /* end confdefs.h. */
11691 /* Override any GCC internal prototype to avoid an error.
11692 Use char because int might match the return type of a GCC
11693 builtin and then its argument prototype would still apply. */
11694 #ifdef __cplusplus
11695 extern "C"
11696 #endif
11697 char shl_load ();
11699 main ()
11701 return shl_load ();
11703 return 0;
11705 _ACEOF
11706 rm -f conftest.$ac_objext conftest$ac_exeext
11707 if { (ac_try="$ac_link"
11708 case "(($ac_try" in
11709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11710 *) ac_try_echo=$ac_try;;
11711 esac
11712 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11713 (eval "$ac_link") 2>conftest.er1
11714 ac_status=$?
11715 grep -v '^ *+' conftest.er1 >conftest.err
11716 rm -f conftest.er1
11717 cat conftest.err >&5
11718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11719 (exit $ac_status); } && {
11720 test -z "$ac_c_werror_flag" ||
11721 test ! -s conftest.err
11722 } && test -s conftest$ac_exeext &&
11723 $as_test_x conftest$ac_exeext; then
11724 ac_cv_lib_dld_shl_load=yes
11725 else
11726 echo "$as_me: failed program was:" >&5
11727 sed 's/^/| /' conftest.$ac_ext >&5
11729 ac_cv_lib_dld_shl_load=no
11732 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11733 conftest$ac_exeext conftest.$ac_ext
11734 LIBS=$ac_check_lib_save_LIBS
11736 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
11737 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
11738 if test $ac_cv_lib_dld_shl_load = yes; then
11739 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11740 else
11741 { echo "$as_me:$LINENO: checking for dlopen" >&5
11742 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
11743 if test "${ac_cv_func_dlopen+set}" = set; then
11744 echo $ECHO_N "(cached) $ECHO_C" >&6
11745 else
11746 cat >conftest.$ac_ext <<_ACEOF
11747 /* confdefs.h. */
11748 _ACEOF
11749 cat confdefs.h >>conftest.$ac_ext
11750 cat >>conftest.$ac_ext <<_ACEOF
11751 /* end confdefs.h. */
11752 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
11753 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11754 #define dlopen innocuous_dlopen
11756 /* System header to define __stub macros and hopefully few prototypes,
11757 which can conflict with char dlopen (); below.
11758 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11759 <limits.h> exists even on freestanding compilers. */
11761 #ifdef __STDC__
11762 # include <limits.h>
11763 #else
11764 # include <assert.h>
11765 #endif
11767 #undef dlopen
11769 /* Override any GCC internal prototype to avoid an error.
11770 Use char because int might match the return type of a GCC
11771 builtin and then its argument prototype would still apply. */
11772 #ifdef __cplusplus
11773 extern "C"
11774 #endif
11775 char dlopen ();
11776 /* The GNU C library defines this for functions which it implements
11777 to always fail with ENOSYS. Some functions are actually named
11778 something starting with __ and the normal name is an alias. */
11779 #if defined __stub_dlopen || defined __stub___dlopen
11780 choke me
11781 #endif
11784 main ()
11786 return dlopen ();
11788 return 0;
11790 _ACEOF
11791 rm -f conftest.$ac_objext conftest$ac_exeext
11792 if { (ac_try="$ac_link"
11793 case "(($ac_try" in
11794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11795 *) ac_try_echo=$ac_try;;
11796 esac
11797 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11798 (eval "$ac_link") 2>conftest.er1
11799 ac_status=$?
11800 grep -v '^ *+' conftest.er1 >conftest.err
11801 rm -f conftest.er1
11802 cat conftest.err >&5
11803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11804 (exit $ac_status); } && {
11805 test -z "$ac_c_werror_flag" ||
11806 test ! -s conftest.err
11807 } && test -s conftest$ac_exeext &&
11808 $as_test_x conftest$ac_exeext; then
11809 ac_cv_func_dlopen=yes
11810 else
11811 echo "$as_me: failed program was:" >&5
11812 sed 's/^/| /' conftest.$ac_ext >&5
11814 ac_cv_func_dlopen=no
11817 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11818 conftest$ac_exeext conftest.$ac_ext
11820 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
11821 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
11822 if test $ac_cv_func_dlopen = yes; then
11823 lt_cv_dlopen="dlopen"
11824 else
11825 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11826 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
11827 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11828 echo $ECHO_N "(cached) $ECHO_C" >&6
11829 else
11830 ac_check_lib_save_LIBS=$LIBS
11831 LIBS="-ldl $LIBS"
11832 cat >conftest.$ac_ext <<_ACEOF
11833 /* confdefs.h. */
11834 _ACEOF
11835 cat confdefs.h >>conftest.$ac_ext
11836 cat >>conftest.$ac_ext <<_ACEOF
11837 /* end confdefs.h. */
11839 /* Override any GCC internal prototype to avoid an error.
11840 Use char because int might match the return type of a GCC
11841 builtin and then its argument prototype would still apply. */
11842 #ifdef __cplusplus
11843 extern "C"
11844 #endif
11845 char dlopen ();
11847 main ()
11849 return dlopen ();
11851 return 0;
11853 _ACEOF
11854 rm -f conftest.$ac_objext conftest$ac_exeext
11855 if { (ac_try="$ac_link"
11856 case "(($ac_try" in
11857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11858 *) ac_try_echo=$ac_try;;
11859 esac
11860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11861 (eval "$ac_link") 2>conftest.er1
11862 ac_status=$?
11863 grep -v '^ *+' conftest.er1 >conftest.err
11864 rm -f conftest.er1
11865 cat conftest.err >&5
11866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11867 (exit $ac_status); } && {
11868 test -z "$ac_c_werror_flag" ||
11869 test ! -s conftest.err
11870 } && test -s conftest$ac_exeext &&
11871 $as_test_x conftest$ac_exeext; then
11872 ac_cv_lib_dl_dlopen=yes
11873 else
11874 echo "$as_me: failed program was:" >&5
11875 sed 's/^/| /' conftest.$ac_ext >&5
11877 ac_cv_lib_dl_dlopen=no
11880 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11881 conftest$ac_exeext conftest.$ac_ext
11882 LIBS=$ac_check_lib_save_LIBS
11884 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11885 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
11886 if test $ac_cv_lib_dl_dlopen = yes; then
11887 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11888 else
11889 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
11890 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
11891 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
11892 echo $ECHO_N "(cached) $ECHO_C" >&6
11893 else
11894 ac_check_lib_save_LIBS=$LIBS
11895 LIBS="-lsvld $LIBS"
11896 cat >conftest.$ac_ext <<_ACEOF
11897 /* confdefs.h. */
11898 _ACEOF
11899 cat confdefs.h >>conftest.$ac_ext
11900 cat >>conftest.$ac_ext <<_ACEOF
11901 /* end confdefs.h. */
11903 /* Override any GCC internal prototype to avoid an error.
11904 Use char because int might match the return type of a GCC
11905 builtin and then its argument prototype would still apply. */
11906 #ifdef __cplusplus
11907 extern "C"
11908 #endif
11909 char dlopen ();
11911 main ()
11913 return dlopen ();
11915 return 0;
11917 _ACEOF
11918 rm -f conftest.$ac_objext conftest$ac_exeext
11919 if { (ac_try="$ac_link"
11920 case "(($ac_try" in
11921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11922 *) ac_try_echo=$ac_try;;
11923 esac
11924 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11925 (eval "$ac_link") 2>conftest.er1
11926 ac_status=$?
11927 grep -v '^ *+' conftest.er1 >conftest.err
11928 rm -f conftest.er1
11929 cat conftest.err >&5
11930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11931 (exit $ac_status); } && {
11932 test -z "$ac_c_werror_flag" ||
11933 test ! -s conftest.err
11934 } && test -s conftest$ac_exeext &&
11935 $as_test_x conftest$ac_exeext; then
11936 ac_cv_lib_svld_dlopen=yes
11937 else
11938 echo "$as_me: failed program was:" >&5
11939 sed 's/^/| /' conftest.$ac_ext >&5
11941 ac_cv_lib_svld_dlopen=no
11944 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11945 conftest$ac_exeext conftest.$ac_ext
11946 LIBS=$ac_check_lib_save_LIBS
11948 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
11949 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
11950 if test $ac_cv_lib_svld_dlopen = yes; then
11951 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11952 else
11953 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
11954 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
11955 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
11956 echo $ECHO_N "(cached) $ECHO_C" >&6
11957 else
11958 ac_check_lib_save_LIBS=$LIBS
11959 LIBS="-ldld $LIBS"
11960 cat >conftest.$ac_ext <<_ACEOF
11961 /* confdefs.h. */
11962 _ACEOF
11963 cat confdefs.h >>conftest.$ac_ext
11964 cat >>conftest.$ac_ext <<_ACEOF
11965 /* end confdefs.h. */
11967 /* Override any GCC internal prototype to avoid an error.
11968 Use char because int might match the return type of a GCC
11969 builtin and then its argument prototype would still apply. */
11970 #ifdef __cplusplus
11971 extern "C"
11972 #endif
11973 char dld_link ();
11975 main ()
11977 return dld_link ();
11979 return 0;
11981 _ACEOF
11982 rm -f conftest.$ac_objext conftest$ac_exeext
11983 if { (ac_try="$ac_link"
11984 case "(($ac_try" in
11985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11986 *) ac_try_echo=$ac_try;;
11987 esac
11988 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11989 (eval "$ac_link") 2>conftest.er1
11990 ac_status=$?
11991 grep -v '^ *+' conftest.er1 >conftest.err
11992 rm -f conftest.er1
11993 cat conftest.err >&5
11994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11995 (exit $ac_status); } && {
11996 test -z "$ac_c_werror_flag" ||
11997 test ! -s conftest.err
11998 } && test -s conftest$ac_exeext &&
11999 $as_test_x conftest$ac_exeext; then
12000 ac_cv_lib_dld_dld_link=yes
12001 else
12002 echo "$as_me: failed program was:" >&5
12003 sed 's/^/| /' conftest.$ac_ext >&5
12005 ac_cv_lib_dld_dld_link=no
12008 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12009 conftest$ac_exeext conftest.$ac_ext
12010 LIBS=$ac_check_lib_save_LIBS
12012 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
12013 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
12014 if test $ac_cv_lib_dld_dld_link = yes; then
12015 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12034 esac
12036 if test "x$lt_cv_dlopen" != xno; then
12037 enable_dlopen=yes
12038 else
12039 enable_dlopen=no
12042 case $lt_cv_dlopen in
12043 dlopen)
12044 save_CPPFLAGS="$CPPFLAGS"
12045 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12047 save_LDFLAGS="$LDFLAGS"
12048 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12050 save_LIBS="$LIBS"
12051 LIBS="$lt_cv_dlopen_libs $LIBS"
12053 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
12054 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
12055 if test "${lt_cv_dlopen_self+set}" = set; then
12056 echo $ECHO_N "(cached) $ECHO_C" >&6
12057 else
12058 if test "$cross_compiling" = yes; then :
12059 lt_cv_dlopen_self=cross
12060 else
12061 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12062 lt_status=$lt_dlunknown
12063 cat > conftest.$ac_ext <<EOF
12064 #line 12064 "configure"
12065 #include "confdefs.h"
12067 #if HAVE_DLFCN_H
12068 #include <dlfcn.h>
12069 #endif
12071 #include <stdio.h>
12073 #ifdef RTLD_GLOBAL
12074 # define LT_DLGLOBAL RTLD_GLOBAL
12075 #else
12076 # ifdef DL_GLOBAL
12077 # define LT_DLGLOBAL DL_GLOBAL
12078 # else
12079 # define LT_DLGLOBAL 0
12080 # endif
12081 #endif
12083 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12084 find out it does not work in some platform. */
12085 #ifndef LT_DLLAZY_OR_NOW
12086 # ifdef RTLD_LAZY
12087 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12088 # else
12089 # ifdef DL_LAZY
12090 # define LT_DLLAZY_OR_NOW DL_LAZY
12091 # else
12092 # ifdef RTLD_NOW
12093 # define LT_DLLAZY_OR_NOW RTLD_NOW
12094 # else
12095 # ifdef DL_NOW
12096 # define LT_DLLAZY_OR_NOW DL_NOW
12097 # else
12098 # define LT_DLLAZY_OR_NOW 0
12099 # endif
12100 # endif
12101 # endif
12102 # endif
12103 #endif
12105 #ifdef __cplusplus
12106 extern "C" void exit (int);
12107 #endif
12109 void fnord() { int i=42;}
12110 int main ()
12112 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12113 int status = $lt_dlunknown;
12115 if (self)
12117 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12118 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12119 /* dlclose (self); */
12121 else
12122 puts (dlerror ());
12124 exit (status);
12127 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12128 (eval $ac_link) 2>&5
12129 ac_status=$?
12130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12131 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12132 (./conftest; exit; ) >&5 2>/dev/null
12133 lt_status=$?
12134 case x$lt_status in
12135 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12136 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12137 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12138 esac
12139 else :
12140 # compilation failed
12141 lt_cv_dlopen_self=no
12144 rm -fr conftest*
12148 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
12149 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
12151 if test "x$lt_cv_dlopen_self" = xyes; then
12152 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12153 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
12154 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
12155 if test "${lt_cv_dlopen_self_static+set}" = set; then
12156 echo $ECHO_N "(cached) $ECHO_C" >&6
12157 else
12158 if test "$cross_compiling" = yes; then :
12159 lt_cv_dlopen_self_static=cross
12160 else
12161 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12162 lt_status=$lt_dlunknown
12163 cat > conftest.$ac_ext <<EOF
12164 #line 12164 "configure"
12165 #include "confdefs.h"
12167 #if HAVE_DLFCN_H
12168 #include <dlfcn.h>
12169 #endif
12171 #include <stdio.h>
12173 #ifdef RTLD_GLOBAL
12174 # define LT_DLGLOBAL RTLD_GLOBAL
12175 #else
12176 # ifdef DL_GLOBAL
12177 # define LT_DLGLOBAL DL_GLOBAL
12178 # else
12179 # define LT_DLGLOBAL 0
12180 # endif
12181 #endif
12183 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12184 find out it does not work in some platform. */
12185 #ifndef LT_DLLAZY_OR_NOW
12186 # ifdef RTLD_LAZY
12187 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12188 # else
12189 # ifdef DL_LAZY
12190 # define LT_DLLAZY_OR_NOW DL_LAZY
12191 # else
12192 # ifdef RTLD_NOW
12193 # define LT_DLLAZY_OR_NOW RTLD_NOW
12194 # else
12195 # ifdef DL_NOW
12196 # define LT_DLLAZY_OR_NOW DL_NOW
12197 # else
12198 # define LT_DLLAZY_OR_NOW 0
12199 # endif
12200 # endif
12201 # endif
12202 # endif
12203 #endif
12205 #ifdef __cplusplus
12206 extern "C" void exit (int);
12207 #endif
12209 void fnord() { int i=42;}
12210 int main ()
12212 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12213 int status = $lt_dlunknown;
12215 if (self)
12217 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12218 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12219 /* dlclose (self); */
12221 else
12222 puts (dlerror ());
12224 exit (status);
12227 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12228 (eval $ac_link) 2>&5
12229 ac_status=$?
12230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12231 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12232 (./conftest; exit; ) >&5 2>/dev/null
12233 lt_status=$?
12234 case x$lt_status in
12235 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12236 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12237 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12238 esac
12239 else :
12240 # compilation failed
12241 lt_cv_dlopen_self_static=no
12244 rm -fr conftest*
12248 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
12249 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
12252 CPPFLAGS="$save_CPPFLAGS"
12253 LDFLAGS="$save_LDFLAGS"
12254 LIBS="$save_LIBS"
12256 esac
12258 case $lt_cv_dlopen_self in
12259 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12260 *) enable_dlopen_self=unknown ;;
12261 esac
12263 case $lt_cv_dlopen_self_static in
12264 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12265 *) enable_dlopen_self_static=unknown ;;
12266 esac
12270 # Report which library types will actually be built
12271 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
12272 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
12273 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
12274 echo "${ECHO_T}$can_build_shared" >&6; }
12276 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
12277 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
12278 test "$can_build_shared" = "no" && enable_shared=no
12280 # On AIX, shared libraries and static libraries use the same namespace, and
12281 # are all built from PIC.
12282 case $host_os in
12283 aix3*)
12284 test "$enable_shared" = yes && enable_static=no
12285 if test -n "$RANLIB"; then
12286 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12287 postinstall_cmds='$RANLIB $lib'
12291 aix[4-9]*)
12292 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12293 test "$enable_shared" = yes && enable_static=no
12296 esac
12297 { echo "$as_me:$LINENO: result: $enable_shared" >&5
12298 echo "${ECHO_T}$enable_shared" >&6; }
12300 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
12301 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
12302 # Make sure either enable_shared or enable_static is yes.
12303 test "$enable_shared" = yes || enable_static=yes
12304 { echo "$as_me:$LINENO: result: $enable_static" >&5
12305 echo "${ECHO_T}$enable_static" >&6; }
12307 # The else clause should only fire when bootstrapping the
12308 # libtool distribution, otherwise you forgot to ship ltmain.sh
12309 # with your package, and you will get complaints that there are
12310 # no rules to generate ltmain.sh.
12311 if test -f "$ltmain"; then
12312 # See if we are running on zsh, and set the options which allow our commands through
12313 # without removal of \ escapes.
12314 if test -n "${ZSH_VERSION+set}" ; then
12315 setopt NO_GLOB_SUBST
12317 # Now quote all the things that may contain metacharacters while being
12318 # careful not to overquote the AC_SUBSTed values. We take copies of the
12319 # variables and quote the copies for generation of the libtool script.
12320 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
12321 SED SHELL STRIP \
12322 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12323 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12324 deplibs_check_method reload_flag reload_cmds need_locks \
12325 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12326 lt_cv_sys_global_symbol_to_c_name_address \
12327 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12328 old_postinstall_cmds old_postuninstall_cmds \
12329 compiler \
12330 CC \
12331 LD \
12332 lt_prog_compiler_wl \
12333 lt_prog_compiler_pic \
12334 lt_prog_compiler_static \
12335 lt_prog_compiler_no_builtin_flag \
12336 export_dynamic_flag_spec \
12337 thread_safe_flag_spec \
12338 whole_archive_flag_spec \
12339 enable_shared_with_static_runtimes \
12340 old_archive_cmds \
12341 old_archive_from_new_cmds \
12342 predep_objects \
12343 postdep_objects \
12344 predeps \
12345 postdeps \
12346 compiler_lib_search_path \
12347 compiler_lib_search_dirs \
12348 archive_cmds \
12349 archive_expsym_cmds \
12350 postinstall_cmds \
12351 postuninstall_cmds \
12352 old_archive_from_expsyms_cmds \
12353 allow_undefined_flag \
12354 no_undefined_flag \
12355 export_symbols_cmds \
12356 hardcode_libdir_flag_spec \
12357 hardcode_libdir_flag_spec_ld \
12358 hardcode_libdir_separator \
12359 hardcode_automatic \
12360 module_cmds \
12361 module_expsym_cmds \
12362 lt_cv_prog_compiler_c_o \
12363 fix_srcfile_path \
12364 exclude_expsyms \
12365 include_expsyms; do
12367 case $var in
12368 old_archive_cmds | \
12369 old_archive_from_new_cmds | \
12370 archive_cmds | \
12371 archive_expsym_cmds | \
12372 module_cmds | \
12373 module_expsym_cmds | \
12374 old_archive_from_expsyms_cmds | \
12375 export_symbols_cmds | \
12376 extract_expsyms_cmds | reload_cmds | finish_cmds | \
12377 postinstall_cmds | postuninstall_cmds | \
12378 old_postinstall_cmds | old_postuninstall_cmds | \
12379 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12380 # Double-quote double-evaled strings.
12381 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12384 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12386 esac
12387 done
12389 case $lt_echo in
12390 *'\$0 --fallback-echo"')
12391 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12393 esac
12395 cfgfile="${ofile}T"
12396 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
12397 $rm -f "$cfgfile"
12398 { echo "$as_me:$LINENO: creating $ofile" >&5
12399 echo "$as_me: creating $ofile" >&6;}
12401 cat <<__EOF__ >> "$cfgfile"
12402 #! $SHELL
12404 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
12405 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
12406 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
12408 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
12409 # Free Software Foundation, Inc.
12411 # This file is part of GNU Libtool:
12412 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
12414 # This program is free software; you can redistribute it and/or modify
12415 # it under the terms of the GNU General Public License as published by
12416 # the Free Software Foundation; either version 2 of the License, or
12417 # (at your option) any later version.
12419 # This program is distributed in the hope that it will be useful, but
12420 # WITHOUT ANY WARRANTY; without even the implied warranty of
12421 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12422 # General Public License for more details.
12424 # You should have received a copy of the GNU General Public License
12425 # along with this program; if not, write to the Free Software
12426 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
12428 # As a special exception to the GNU General Public License, if you
12429 # distribute this file as part of a program that contains a
12430 # configuration script generated by Autoconf, you may include it under
12431 # the same distribution terms that you use for the rest of that program.
12433 # A sed program that does not truncate output.
12434 SED=$lt_SED
12436 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
12437 Xsed="$SED -e 1s/^X//"
12439 # The HP-UX ksh and POSIX shell print the target directory to stdout
12440 # if CDPATH is set.
12441 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12443 # The names of the tagged configurations supported by this script.
12444 available_tags=
12446 # ### BEGIN LIBTOOL CONFIG
12448 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12450 # Shell to use when invoking shell scripts.
12451 SHELL=$lt_SHELL
12453 # Whether or not to build shared libraries.
12454 build_libtool_libs=$enable_shared
12456 # Whether or not to build static libraries.
12457 build_old_libs=$enable_static
12459 # Whether or not to add -lc for building shared libraries.
12460 build_libtool_need_lc=$archive_cmds_need_lc
12462 # Whether or not to disallow shared libs when runtime libs are static
12463 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
12465 # Whether or not to optimize for fast installation.
12466 fast_install=$enable_fast_install
12468 # The host system.
12469 host_alias=$host_alias
12470 host=$host
12471 host_os=$host_os
12473 # The build system.
12474 build_alias=$build_alias
12475 build=$build
12476 build_os=$build_os
12478 # An echo program that does not interpret backslashes.
12479 echo=$lt_echo
12481 # The archiver.
12482 AR=$lt_AR
12483 AR_FLAGS=$lt_AR_FLAGS
12485 # A C compiler.
12486 LTCC=$lt_LTCC
12488 # LTCC compiler flags.
12489 LTCFLAGS=$lt_LTCFLAGS
12491 # A language-specific compiler.
12492 CC=$lt_compiler
12494 # Is the compiler the GNU C compiler?
12495 with_gcc=$GCC
12497 # An ERE matcher.
12498 EGREP=$lt_EGREP
12500 # The linker used to build libraries.
12501 LD=$lt_LD
12503 # Whether we need hard or soft links.
12504 LN_S=$lt_LN_S
12506 # A BSD-compatible nm program.
12507 NM=$lt_NM
12509 # A symbol stripping program
12510 STRIP=$lt_STRIP
12512 # Used to examine libraries when file_magic_cmd begins "file"
12513 MAGIC_CMD=$MAGIC_CMD
12515 # Used on cygwin: DLL creation program.
12516 DLLTOOL="$DLLTOOL"
12518 # Used on cygwin: object dumper.
12519 OBJDUMP="$OBJDUMP"
12521 # Used on cygwin: assembler.
12522 AS="$AS"
12524 # The name of the directory that contains temporary libtool files.
12525 objdir=$objdir
12527 # How to create reloadable object files.
12528 reload_flag=$lt_reload_flag
12529 reload_cmds=$lt_reload_cmds
12531 # How to pass a linker flag through the compiler.
12532 wl=$lt_lt_prog_compiler_wl
12534 # Object file suffix (normally "o").
12535 objext="$ac_objext"
12537 # Old archive suffix (normally "a").
12538 libext="$libext"
12540 # Shared library suffix (normally ".so").
12541 shrext_cmds='$shrext_cmds'
12543 # Executable file suffix (normally "").
12544 exeext="$exeext"
12546 # Additional compiler flags for building library objects.
12547 pic_flag=$lt_lt_prog_compiler_pic
12548 pic_mode=$pic_mode
12550 # What is the maximum length of a command?
12551 max_cmd_len=$lt_cv_sys_max_cmd_len
12553 # Does compiler simultaneously support -c and -o options?
12554 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
12556 # Must we lock files when doing compilation?
12557 need_locks=$lt_need_locks
12559 # Do we need the lib prefix for modules?
12560 need_lib_prefix=$need_lib_prefix
12562 # Do we need a version for libraries?
12563 need_version=$need_version
12565 # Whether dlopen is supported.
12566 dlopen_support=$enable_dlopen
12568 # Whether dlopen of programs is supported.
12569 dlopen_self=$enable_dlopen_self
12571 # Whether dlopen of statically linked programs is supported.
12572 dlopen_self_static=$enable_dlopen_self_static
12574 # Compiler flag to prevent dynamic linking.
12575 link_static_flag=$lt_lt_prog_compiler_static
12577 # Compiler flag to turn off builtin functions.
12578 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
12580 # Compiler flag to allow reflexive dlopens.
12581 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
12583 # Compiler flag to generate shared objects directly from archives.
12584 whole_archive_flag_spec=$lt_whole_archive_flag_spec
12586 # Compiler flag to generate thread-safe objects.
12587 thread_safe_flag_spec=$lt_thread_safe_flag_spec
12589 # Library versioning type.
12590 version_type=$version_type
12592 # Format of library name prefix.
12593 libname_spec=$lt_libname_spec
12595 # List of archive names. First name is the real one, the rest are links.
12596 # The last name is the one that the linker finds with -lNAME.
12597 library_names_spec=$lt_library_names_spec
12599 # The coded name of the library, if different from the real name.
12600 soname_spec=$lt_soname_spec
12602 # Commands used to build and install an old-style archive.
12603 RANLIB=$lt_RANLIB
12604 old_archive_cmds=$lt_old_archive_cmds
12605 old_postinstall_cmds=$lt_old_postinstall_cmds
12606 old_postuninstall_cmds=$lt_old_postuninstall_cmds
12608 # Create an old-style archive from a shared archive.
12609 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
12611 # Create a temporary old-style archive to link instead of a shared archive.
12612 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
12614 # Commands used to build and install a shared archive.
12615 archive_cmds=$lt_archive_cmds
12616 archive_expsym_cmds=$lt_archive_expsym_cmds
12617 postinstall_cmds=$lt_postinstall_cmds
12618 postuninstall_cmds=$lt_postuninstall_cmds
12620 # Commands used to build a loadable module (assumed same as above if empty)
12621 module_cmds=$lt_module_cmds
12622 module_expsym_cmds=$lt_module_expsym_cmds
12624 # Commands to strip libraries.
12625 old_striplib=$lt_old_striplib
12626 striplib=$lt_striplib
12628 # Dependencies to place before the objects being linked to create a
12629 # shared library.
12630 predep_objects=$lt_predep_objects
12632 # Dependencies to place after the objects being linked to create a
12633 # shared library.
12634 postdep_objects=$lt_postdep_objects
12636 # Dependencies to place before the objects being linked to create a
12637 # shared library.
12638 predeps=$lt_predeps
12640 # Dependencies to place after the objects being linked to create a
12641 # shared library.
12642 postdeps=$lt_postdeps
12644 # The directories searched by this compiler when creating a shared
12645 # library
12646 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
12648 # The library search path used internally by the compiler when linking
12649 # a shared library.
12650 compiler_lib_search_path=$lt_compiler_lib_search_path
12652 # Method to check whether dependent libraries are shared objects.
12653 deplibs_check_method=$lt_deplibs_check_method
12655 # Command to use when deplibs_check_method == file_magic.
12656 file_magic_cmd=$lt_file_magic_cmd
12658 # Flag that allows shared libraries with undefined symbols to be built.
12659 allow_undefined_flag=$lt_allow_undefined_flag
12661 # Flag that forces no undefined symbols.
12662 no_undefined_flag=$lt_no_undefined_flag
12664 # Commands used to finish a libtool library installation in a directory.
12665 finish_cmds=$lt_finish_cmds
12667 # Same as above, but a single script fragment to be evaled but not shown.
12668 finish_eval=$lt_finish_eval
12670 # Take the output of nm and produce a listing of raw symbols and C names.
12671 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12673 # Transform the output of nm in a proper C declaration
12674 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12676 # Transform the output of nm in a C name address pair
12677 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12679 # This is the shared library runtime path variable.
12680 runpath_var=$runpath_var
12682 # This is the shared library path variable.
12683 shlibpath_var=$shlibpath_var
12685 # Is shlibpath searched before the hard-coded library search path?
12686 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12688 # How to hardcode a shared library path into an executable.
12689 hardcode_action=$hardcode_action
12691 # Whether we should hardcode library paths into libraries.
12692 hardcode_into_libs=$hardcode_into_libs
12694 # Flag to hardcode \$libdir into a binary during linking.
12695 # This must work even if \$libdir does not exist.
12696 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
12698 # If ld is used when linking, flag to hardcode \$libdir into
12699 # a binary during linking. This must work even if \$libdir does
12700 # not exist.
12701 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
12703 # Whether we need a single -rpath flag with a separated argument.
12704 hardcode_libdir_separator=$lt_hardcode_libdir_separator
12706 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
12707 # resulting binary.
12708 hardcode_direct=$hardcode_direct
12710 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
12711 # resulting binary.
12712 hardcode_minus_L=$hardcode_minus_L
12714 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
12715 # the resulting binary.
12716 hardcode_shlibpath_var=$hardcode_shlibpath_var
12718 # Set to yes if building a shared library automatically hardcodes DIR into the library
12719 # and all subsequent libraries and executables linked against it.
12720 hardcode_automatic=$hardcode_automatic
12722 # Variables whose values should be saved in libtool wrapper scripts and
12723 # restored at relink time.
12724 variables_saved_for_relink="$variables_saved_for_relink"
12726 # Whether libtool must link a program against all its dependency libraries.
12727 link_all_deplibs=$link_all_deplibs
12729 # Compile-time system search path for libraries
12730 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12732 # Run-time system search path for libraries
12733 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12735 # Fix the shell variable \$srcfile for the compiler.
12736 fix_srcfile_path=$lt_fix_srcfile_path
12738 # Set to yes if exported symbols are required.
12739 always_export_symbols=$always_export_symbols
12741 # The commands to list exported symbols.
12742 export_symbols_cmds=$lt_export_symbols_cmds
12744 # The commands to extract the exported symbol list from a shared archive.
12745 extract_expsyms_cmds=$lt_extract_expsyms_cmds
12747 # Symbols that should not be listed in the preloaded symbols.
12748 exclude_expsyms=$lt_exclude_expsyms
12750 # Symbols that must always be exported.
12751 include_expsyms=$lt_include_expsyms
12753 # ### END LIBTOOL CONFIG
12755 __EOF__
12758 case $host_os in
12759 aix3*)
12760 cat <<\EOF >> "$cfgfile"
12762 # AIX sometimes has problems with the GCC collect2 program. For some
12763 # reason, if we set the COLLECT_NAMES environment variable, the problems
12764 # vanish in a puff of smoke.
12765 if test "X${COLLECT_NAMES+set}" != Xset; then
12766 COLLECT_NAMES=
12767 export COLLECT_NAMES
12771 esac
12773 # We use sed instead of cat because bash on DJGPP gets confused if
12774 # if finds mixed CR/LF and LF-only lines. Since sed operates in
12775 # text mode, it properly converts lines to CR/LF. This bash problem
12776 # is reportedly fixed, but why not run on old versions too?
12777 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
12779 mv -f "$cfgfile" "$ofile" || \
12780 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
12781 chmod +x "$ofile"
12783 else
12784 # If there is no Makefile yet, we rely on a make rule to execute
12785 # `config.status --recheck' to rerun these tests and create the
12786 # libtool script then.
12787 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
12788 if test -f "$ltmain_in"; then
12789 test -f Makefile && make "$ltmain"
12794 ac_ext=c
12795 ac_cpp='$CPP $CPPFLAGS'
12796 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12797 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12798 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12800 CC="$lt_save_CC"
12803 # Check whether --with-tags was given.
12804 if test "${with_tags+set}" = set; then
12805 withval=$with_tags; tagnames="$withval"
12809 if test -f "$ltmain" && test -n "$tagnames"; then
12810 if test ! -f "${ofile}"; then
12811 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
12812 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
12815 if test -z "$LTCC"; then
12816 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
12817 if test -z "$LTCC"; then
12818 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
12819 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
12820 else
12821 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
12822 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
12825 if test -z "$LTCFLAGS"; then
12826 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
12829 # Extract list of available tagged configurations in $ofile.
12830 # Note that this assumes the entire list is on one line.
12831 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
12833 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12834 for tagname in $tagnames; do
12835 IFS="$lt_save_ifs"
12836 # Check whether tagname contains only valid characters
12837 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
12838 "") ;;
12839 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
12840 echo "$as_me: error: invalid tag name: $tagname" >&2;}
12841 { (exit 1); exit 1; }; }
12843 esac
12845 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
12846 then
12847 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
12848 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
12849 { (exit 1); exit 1; }; }
12852 # Update the list of available tags.
12853 if test -n "$tagname"; then
12854 echo appending configuration tag \"$tagname\" to $ofile
12856 case $tagname in
12857 CXX)
12858 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12859 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12860 (test "X$CXX" != "Xg++"))) ; then
12861 ac_ext=cpp
12862 ac_cpp='$CXXCPP $CPPFLAGS'
12863 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12864 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12865 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12870 archive_cmds_need_lc_CXX=no
12871 allow_undefined_flag_CXX=
12872 always_export_symbols_CXX=no
12873 archive_expsym_cmds_CXX=
12874 export_dynamic_flag_spec_CXX=
12875 hardcode_direct_CXX=no
12876 hardcode_libdir_flag_spec_CXX=
12877 hardcode_libdir_flag_spec_ld_CXX=
12878 hardcode_libdir_separator_CXX=
12879 hardcode_minus_L_CXX=no
12880 hardcode_shlibpath_var_CXX=unsupported
12881 hardcode_automatic_CXX=no
12882 module_cmds_CXX=
12883 module_expsym_cmds_CXX=
12884 link_all_deplibs_CXX=unknown
12885 old_archive_cmds_CXX=$old_archive_cmds
12886 no_undefined_flag_CXX=
12887 whole_archive_flag_spec_CXX=
12888 enable_shared_with_static_runtimes_CXX=no
12890 # Dependencies to place before and after the object being linked:
12891 predep_objects_CXX=
12892 postdep_objects_CXX=
12893 predeps_CXX=
12894 postdeps_CXX=
12895 compiler_lib_search_path_CXX=
12896 compiler_lib_search_dirs_CXX=
12898 # Source file extension for C++ test sources.
12899 ac_ext=cpp
12901 # Object file extension for compiled C++ test sources.
12902 objext=o
12903 objext_CXX=$objext
12905 # Code to be used in simple compile tests
12906 lt_simple_compile_test_code="int some_variable = 0;"
12908 # Code to be used in simple link tests
12909 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12911 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12913 # If no C compiler was specified, use CC.
12914 LTCC=${LTCC-"$CC"}
12916 # If no C compiler flags were specified, use CFLAGS.
12917 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12919 # Allow CC to be a program name with arguments.
12920 compiler=$CC
12923 # save warnings/boilerplate of simple test code
12924 ac_outfile=conftest.$ac_objext
12925 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12926 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12927 _lt_compiler_boilerplate=`cat conftest.err`
12928 $rm conftest*
12930 ac_outfile=conftest.$ac_objext
12931 echo "$lt_simple_link_test_code" >conftest.$ac_ext
12932 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12933 _lt_linker_boilerplate=`cat conftest.err`
12934 $rm -r conftest*
12937 # Allow CC to be a program name with arguments.
12938 lt_save_CC=$CC
12939 lt_save_LD=$LD
12940 lt_save_GCC=$GCC
12941 GCC=$GXX
12942 lt_save_with_gnu_ld=$with_gnu_ld
12943 lt_save_path_LD=$lt_cv_path_LD
12944 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12945 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12946 else
12947 $as_unset lt_cv_prog_gnu_ld
12949 if test -n "${lt_cv_path_LDCXX+set}"; then
12950 lt_cv_path_LD=$lt_cv_path_LDCXX
12951 else
12952 $as_unset lt_cv_path_LD
12954 test -z "${LDCXX+set}" || LD=$LDCXX
12955 CC=${CXX-"c++"}
12956 compiler=$CC
12957 compiler_CXX=$CC
12958 for cc_temp in $compiler""; do
12959 case $cc_temp in
12960 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12961 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12962 \-*) ;;
12963 *) break;;
12964 esac
12965 done
12966 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
12969 # We don't want -fno-exception wen compiling C++ code, so set the
12970 # no_builtin_flag separately
12971 if test "$GXX" = yes; then
12972 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12973 else
12974 lt_prog_compiler_no_builtin_flag_CXX=
12977 if test "$GXX" = yes; then
12978 # Set up default GNU C++ configuration
12981 # Check whether --with-gnu-ld was given.
12982 if test "${with_gnu_ld+set}" = set; then
12983 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12984 else
12985 with_gnu_ld=no
12988 ac_prog=ld
12989 if test "$GCC" = yes; then
12990 # Check if gcc -print-prog-name=ld gives a path.
12991 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
12992 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
12993 case $host in
12994 *-*-mingw*)
12995 # gcc leaves a trailing carriage return which upsets mingw
12996 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12998 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12999 esac
13000 case $ac_prog in
13001 # Accept absolute paths.
13002 [\\/]* | ?:[\\/]*)
13003 re_direlt='/[^/][^/]*/\.\./'
13004 # Canonicalize the pathname of ld
13005 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
13006 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
13007 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
13008 done
13009 test -z "$LD" && LD="$ac_prog"
13012 # If it fails, then pretend we aren't using GCC.
13013 ac_prog=ld
13016 # If it is relative, then search for the first ld in PATH.
13017 with_gnu_ld=unknown
13019 esac
13020 elif test "$with_gnu_ld" = yes; then
13021 { echo "$as_me:$LINENO: checking for GNU ld" >&5
13022 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
13023 else
13024 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
13025 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
13027 if test "${lt_cv_path_LD+set}" = set; then
13028 echo $ECHO_N "(cached) $ECHO_C" >&6
13029 else
13030 if test -z "$LD"; then
13031 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13032 for ac_dir in $PATH; do
13033 IFS="$lt_save_ifs"
13034 test -z "$ac_dir" && ac_dir=.
13035 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
13036 lt_cv_path_LD="$ac_dir/$ac_prog"
13037 # Check to see if the program is GNU ld. I'd rather use --version,
13038 # but apparently some variants of GNU ld only accept -v.
13039 # Break only if it was the GNU/non-GNU ld that we prefer.
13040 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
13041 *GNU* | *'with BFD'*)
13042 test "$with_gnu_ld" != no && break
13045 test "$with_gnu_ld" != yes && break
13047 esac
13049 done
13050 IFS="$lt_save_ifs"
13051 else
13052 lt_cv_path_LD="$LD" # Let the user override the test with a path.
13056 LD="$lt_cv_path_LD"
13057 if test -n "$LD"; then
13058 { echo "$as_me:$LINENO: result: $LD" >&5
13059 echo "${ECHO_T}$LD" >&6; }
13060 else
13061 { echo "$as_me:$LINENO: result: no" >&5
13062 echo "${ECHO_T}no" >&6; }
13064 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
13065 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
13066 { (exit 1); exit 1; }; }
13067 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
13068 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
13069 if test "${lt_cv_prog_gnu_ld+set}" = set; then
13070 echo $ECHO_N "(cached) $ECHO_C" >&6
13071 else
13072 # I'd rather use --version here, but apparently some GNU lds only accept -v.
13073 case `$LD -v 2>&1 </dev/null` in
13074 *GNU* | *'with BFD'*)
13075 lt_cv_prog_gnu_ld=yes
13078 lt_cv_prog_gnu_ld=no
13080 esac
13082 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
13083 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
13084 with_gnu_ld=$lt_cv_prog_gnu_ld
13088 # Check if GNU C++ uses GNU ld as the underlying linker, since the
13089 # archiving commands below assume that GNU ld is being used.
13090 if test "$with_gnu_ld" = yes; then
13091 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13092 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'
13094 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13095 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13097 # If archive_cmds runs LD, not CC, wlarc should be empty
13098 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
13099 # investigate it a little bit more. (MM)
13100 wlarc='${wl}'
13102 # ancient GNU ld didn't support --whole-archive et. al.
13103 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
13104 grep 'no-whole-archive' > /dev/null; then
13105 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13106 else
13107 whole_archive_flag_spec_CXX=
13109 else
13110 with_gnu_ld=no
13111 wlarc=
13113 # A generic and very simple default shared library creation
13114 # command for GNU C++ for the case where it uses the native
13115 # linker, instead of GNU ld. If possible, this setting should
13116 # overridden to take advantage of the native linker features on
13117 # the platform it is being used on.
13118 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13121 # Commands to make compiler produce verbose output that lists
13122 # what "hidden" libraries, object files and flags are used when
13123 # linking a shared library.
13124 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
13126 else
13127 GXX=no
13128 with_gnu_ld=no
13129 wlarc=
13132 # PORTME: fill in a description of your system's C++ link characteristics
13133 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13134 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
13135 ld_shlibs_CXX=yes
13136 case $host_os in
13137 aix3*)
13138 # FIXME: insert proper C++ library support
13139 ld_shlibs_CXX=no
13141 aix[4-9]*)
13142 if test "$host_cpu" = ia64; then
13143 # On IA64, the linker does run time linking by default, so we don't
13144 # have to do anything special.
13145 aix_use_runtimelinking=no
13146 exp_sym_flag='-Bexport'
13147 no_entry_flag=""
13148 else
13149 aix_use_runtimelinking=no
13151 # Test if we are trying to use run time linking or normal
13152 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13153 # need to do runtime linking.
13154 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13155 for ld_flag in $LDFLAGS; do
13156 case $ld_flag in
13157 *-brtl*)
13158 aix_use_runtimelinking=yes
13159 break
13161 esac
13162 done
13164 esac
13166 exp_sym_flag='-bexport'
13167 no_entry_flag='-bnoentry'
13170 # When large executables or shared objects are built, AIX ld can
13171 # have problems creating the table of contents. If linking a library
13172 # or program results in "error TOC overflow" add -mminimal-toc to
13173 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13174 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13176 archive_cmds_CXX=''
13177 hardcode_direct_CXX=yes
13178 hardcode_libdir_separator_CXX=':'
13179 link_all_deplibs_CXX=yes
13181 if test "$GXX" = yes; then
13182 case $host_os in aix4.[012]|aix4.[012].*)
13183 # We only want to do this on AIX 4.2 and lower, the check
13184 # below for broken collect2 doesn't work under 4.3+
13185 collect2name=`${CC} -print-prog-name=collect2`
13186 if test -f "$collect2name" && \
13187 strings "$collect2name" | grep resolve_lib_name >/dev/null
13188 then
13189 # We have reworked collect2
13191 else
13192 # We have old collect2
13193 hardcode_direct_CXX=unsupported
13194 # It fails to find uninstalled libraries when the uninstalled
13195 # path is not listed in the libpath. Setting hardcode_minus_L
13196 # to unsupported forces relinking
13197 hardcode_minus_L_CXX=yes
13198 hardcode_libdir_flag_spec_CXX='-L$libdir'
13199 hardcode_libdir_separator_CXX=
13202 esac
13203 shared_flag='-shared'
13204 if test "$aix_use_runtimelinking" = yes; then
13205 shared_flag="$shared_flag "'${wl}-G'
13207 else
13208 # not using gcc
13209 if test "$host_cpu" = ia64; then
13210 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13211 # chokes on -Wl,-G. The following line is correct:
13212 shared_flag='-G'
13213 else
13214 if test "$aix_use_runtimelinking" = yes; then
13215 shared_flag='${wl}-G'
13216 else
13217 shared_flag='${wl}-bM:SRE'
13222 # It seems that -bexpall does not export symbols beginning with
13223 # underscore (_), so it is better to generate a list of symbols to export.
13224 always_export_symbols_CXX=yes
13225 if test "$aix_use_runtimelinking" = yes; then
13226 # Warning - without using the other runtime loading flags (-brtl),
13227 # -berok will link without error, but may produce a broken library.
13228 allow_undefined_flag_CXX='-berok'
13229 # Determine the default libpath from the value encoded in an empty executable.
13230 cat >conftest.$ac_ext <<_ACEOF
13231 /* confdefs.h. */
13232 _ACEOF
13233 cat confdefs.h >>conftest.$ac_ext
13234 cat >>conftest.$ac_ext <<_ACEOF
13235 /* end confdefs.h. */
13238 main ()
13242 return 0;
13244 _ACEOF
13245 rm -f conftest.$ac_objext conftest$ac_exeext
13246 if { (ac_try="$ac_link"
13247 case "(($ac_try" in
13248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13249 *) ac_try_echo=$ac_try;;
13250 esac
13251 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13252 (eval "$ac_link") 2>conftest.er1
13253 ac_status=$?
13254 grep -v '^ *+' conftest.er1 >conftest.err
13255 rm -f conftest.er1
13256 cat conftest.err >&5
13257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13258 (exit $ac_status); } && {
13259 test -z "$ac_cxx_werror_flag" ||
13260 test ! -s conftest.err
13261 } && test -s conftest$ac_exeext &&
13262 $as_test_x conftest$ac_exeext; then
13264 lt_aix_libpath_sed='
13265 /Import File Strings/,/^$/ {
13266 /^0/ {
13267 s/^0 *\(.*\)$/\1/
13271 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13272 # Check for a 64-bit object if we didn't find anything.
13273 if test -z "$aix_libpath"; then
13274 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13276 else
13277 echo "$as_me: failed program was:" >&5
13278 sed 's/^/| /' conftest.$ac_ext >&5
13283 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13284 conftest$ac_exeext conftest.$ac_ext
13285 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13287 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13289 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"
13290 else
13291 if test "$host_cpu" = ia64; then
13292 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
13293 allow_undefined_flag_CXX="-z nodefs"
13294 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"
13295 else
13296 # Determine the default libpath from the value encoded in an empty executable.
13297 cat >conftest.$ac_ext <<_ACEOF
13298 /* confdefs.h. */
13299 _ACEOF
13300 cat confdefs.h >>conftest.$ac_ext
13301 cat >>conftest.$ac_ext <<_ACEOF
13302 /* end confdefs.h. */
13305 main ()
13309 return 0;
13311 _ACEOF
13312 rm -f conftest.$ac_objext conftest$ac_exeext
13313 if { (ac_try="$ac_link"
13314 case "(($ac_try" in
13315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13316 *) ac_try_echo=$ac_try;;
13317 esac
13318 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13319 (eval "$ac_link") 2>conftest.er1
13320 ac_status=$?
13321 grep -v '^ *+' conftest.er1 >conftest.err
13322 rm -f conftest.er1
13323 cat conftest.err >&5
13324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13325 (exit $ac_status); } && {
13326 test -z "$ac_cxx_werror_flag" ||
13327 test ! -s conftest.err
13328 } && test -s conftest$ac_exeext &&
13329 $as_test_x conftest$ac_exeext; then
13331 lt_aix_libpath_sed='
13332 /Import File Strings/,/^$/ {
13333 /^0/ {
13334 s/^0 *\(.*\)$/\1/
13338 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13339 # Check for a 64-bit object if we didn't find anything.
13340 if test -z "$aix_libpath"; then
13341 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13343 else
13344 echo "$as_me: failed program was:" >&5
13345 sed 's/^/| /' conftest.$ac_ext >&5
13350 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13351 conftest$ac_exeext conftest.$ac_ext
13352 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13354 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13355 # Warning - without using the other run time loading flags,
13356 # -berok will link without error, but may produce a broken library.
13357 no_undefined_flag_CXX=' ${wl}-bernotok'
13358 allow_undefined_flag_CXX=' ${wl}-berok'
13359 # Exported symbols can be pulled into shared objects from archives
13360 whole_archive_flag_spec_CXX='$convenience'
13361 archive_cmds_need_lc_CXX=yes
13362 # This is similar to how AIX traditionally builds its shared libraries.
13363 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'
13368 beos*)
13369 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13370 allow_undefined_flag_CXX=unsupported
13371 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13372 # support --undefined. This deserves some investigation. FIXME
13373 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13374 else
13375 ld_shlibs_CXX=no
13379 chorus*)
13380 case $cc_basename in
13382 # FIXME: insert proper C++ library support
13383 ld_shlibs_CXX=no
13385 esac
13388 cygwin* | mingw* | pw32*)
13389 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
13390 # as there is no search path for DLLs.
13391 hardcode_libdir_flag_spec_CXX='-L$libdir'
13392 allow_undefined_flag_CXX=unsupported
13393 always_export_symbols_CXX=no
13394 enable_shared_with_static_runtimes_CXX=yes
13396 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
13397 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'
13398 # If the export-symbols file already is a .def file (1st line
13399 # is EXPORTS), use it as is; otherwise, prepend...
13400 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13401 cp $export_symbols $output_objdir/$soname.def;
13402 else
13403 echo EXPORTS > $output_objdir/$soname.def;
13404 cat $export_symbols >> $output_objdir/$soname.def;
13406 $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'
13407 else
13408 ld_shlibs_CXX=no
13411 darwin* | rhapsody*)
13412 archive_cmds_need_lc_CXX=no
13413 hardcode_direct_CXX=no
13414 hardcode_automatic_CXX=yes
13415 hardcode_shlibpath_var_CXX=unsupported
13416 whole_archive_flag_spec_CXX=''
13417 link_all_deplibs_CXX=yes
13418 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
13419 if test "$GXX" = yes ; then
13420 output_verbose_link_cmd='echo'
13421 archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
13422 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13423 archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
13424 module_expsym_cmds_CXX="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
13425 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
13426 archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}"
13427 archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}"
13429 else
13430 case $cc_basename in
13431 xlc*)
13432 output_verbose_link_cmd='echo'
13433 archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
13434 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
13435 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
13436 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
13437 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}'
13440 ld_shlibs_CXX=no
13442 esac
13446 dgux*)
13447 case $cc_basename in
13448 ec++*)
13449 # FIXME: insert proper C++ library support
13450 ld_shlibs_CXX=no
13452 ghcx*)
13453 # Green Hills C++ Compiler
13454 # FIXME: insert proper C++ library support
13455 ld_shlibs_CXX=no
13458 # FIXME: insert proper C++ library support
13459 ld_shlibs_CXX=no
13461 esac
13463 freebsd[12]*)
13464 # C++ shared libraries reported to be fairly broken before switch to ELF
13465 ld_shlibs_CXX=no
13467 freebsd-elf*)
13468 archive_cmds_need_lc_CXX=no
13470 freebsd* | dragonfly*)
13471 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13472 # conventions
13473 ld_shlibs_CXX=yes
13475 gnu*)
13477 hpux9*)
13478 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13479 hardcode_libdir_separator_CXX=:
13480 export_dynamic_flag_spec_CXX='${wl}-E'
13481 hardcode_direct_CXX=yes
13482 hardcode_minus_L_CXX=yes # Not in the search PATH,
13483 # but as the default
13484 # location of the library.
13486 case $cc_basename in
13487 CC*)
13488 # FIXME: insert proper C++ library support
13489 ld_shlibs_CXX=no
13491 aCC*)
13492 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'
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.
13497 # There doesn't appear to be a way to prevent this compiler from
13498 # explicitly linking system object files so we need to strip them
13499 # from the output so that they don't get included in the library
13500 # dependencies.
13501 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'
13504 if test "$GXX" = yes; then
13505 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'
13506 else
13507 # FIXME: insert proper C++ library support
13508 ld_shlibs_CXX=no
13511 esac
13513 hpux10*|hpux11*)
13514 if test $with_gnu_ld = no; then
13515 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13516 hardcode_libdir_separator_CXX=:
13518 case $host_cpu in
13519 hppa*64*|ia64*) ;;
13521 export_dynamic_flag_spec_CXX='${wl}-E'
13523 esac
13525 case $host_cpu in
13526 hppa*64*|ia64*)
13527 hardcode_direct_CXX=no
13528 hardcode_shlibpath_var_CXX=no
13531 hardcode_direct_CXX=yes
13532 hardcode_minus_L_CXX=yes # Not in the search PATH,
13533 # but as the default
13534 # location of the library.
13536 esac
13538 case $cc_basename in
13539 CC*)
13540 # FIXME: insert proper C++ library support
13541 ld_shlibs_CXX=no
13543 aCC*)
13544 case $host_cpu in
13545 hppa*64*)
13546 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13548 ia64*)
13549 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13552 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13554 esac
13555 # Commands to make compiler produce verbose output that lists
13556 # what "hidden" libraries, object files and flags are used when
13557 # linking a shared library.
13559 # There doesn't appear to be a way to prevent this compiler from
13560 # explicitly linking system object files so we need to strip them
13561 # from the output so that they don't get included in the library
13562 # dependencies.
13563 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'
13566 if test "$GXX" = yes; then
13567 if test $with_gnu_ld = no; then
13568 case $host_cpu in
13569 hppa*64*)
13570 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13572 ia64*)
13573 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13576 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'
13578 esac
13580 else
13581 # FIXME: insert proper C++ library support
13582 ld_shlibs_CXX=no
13585 esac
13587 interix[3-9]*)
13588 hardcode_direct_CXX=no
13589 hardcode_shlibpath_var_CXX=no
13590 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13591 export_dynamic_flag_spec_CXX='${wl}-E'
13592 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13593 # Instead, shared libraries are loaded at an image base (0x10000000 by
13594 # default) and relocated if they conflict, which is a slow very memory
13595 # consuming and fragmenting process. To avoid this, we pick a random,
13596 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13597 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13598 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'
13599 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'
13601 irix5* | irix6*)
13602 case $cc_basename in
13603 CC*)
13604 # SGI C++
13605 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'
13607 # Archives containing C++ object files must be created using
13608 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
13609 # necessary to make sure instantiated templates are included
13610 # in the archive.
13611 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
13614 if test "$GXX" = yes; then
13615 if test "$with_gnu_ld" = no; then
13616 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'
13617 else
13618 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'
13621 link_all_deplibs_CXX=yes
13623 esac
13624 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13625 hardcode_libdir_separator_CXX=:
13627 linux* | k*bsd*-gnu)
13628 case $cc_basename in
13629 KCC*)
13630 # Kuck and Associates, Inc. (KAI) C++ Compiler
13632 # KCC will only create a shared library if the output file
13633 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13634 # to its proper name (with version) after linking.
13635 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'
13636 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'
13637 # Commands to make compiler produce verbose output that lists
13638 # what "hidden" libraries, object files and flags are used when
13639 # linking a shared library.
13641 # There doesn't appear to be a way to prevent this compiler from
13642 # explicitly linking system object files so we need to strip them
13643 # from the output so that they don't get included in the library
13644 # dependencies.
13645 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'
13647 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
13648 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13650 # Archives containing C++ object files must be created using
13651 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13652 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13654 icpc*)
13655 # Intel C++
13656 with_gnu_ld=yes
13657 # version 8.0 and above of icpc choke on multiply defined symbols
13658 # if we add $predep_objects and $postdep_objects, however 7.1 and
13659 # earlier do not add the objects themselves.
13660 case `$CC -V 2>&1` in
13661 *"Version 7."*)
13662 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13663 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'
13665 *) # Version 8.0 or newer
13666 tmp_idyn=
13667 case $host_cpu in
13668 ia64*) tmp_idyn=' -i_dynamic';;
13669 esac
13670 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13671 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'
13673 esac
13674 archive_cmds_need_lc_CXX=no
13675 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13676 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13677 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13679 pgCC* | pgcpp*)
13680 # Portland Group C++ compiler
13681 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13682 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'
13684 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13685 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13686 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'
13688 cxx*)
13689 # Compaq C++
13690 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13691 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'
13693 runpath_var=LD_RUN_PATH
13694 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13695 hardcode_libdir_separator_CXX=:
13697 # Commands to make compiler produce verbose output that lists
13698 # what "hidden" libraries, object files and flags are used when
13699 # linking a shared library.
13701 # There doesn't appear to be a way to prevent this compiler from
13702 # explicitly linking system object files so we need to strip them
13703 # from the output so that they don't get included in the library
13704 # dependencies.
13705 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'
13708 case `$CC -V 2>&1 | sed 5q` in
13709 *Sun\ C*)
13710 # Sun C++ 5.9
13711 no_undefined_flag_CXX=' -zdefs'
13712 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13713 archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
13714 hardcode_libdir_flag_spec_CXX='-R$libdir'
13715 whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
13717 # Not sure whether something based on
13718 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13719 # would be better.
13720 output_verbose_link_cmd='echo'
13722 # Archives containing C++ object files must be created using
13723 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13724 # necessary to make sure instantiated templates are included
13725 # in the archive.
13726 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13728 esac
13730 esac
13732 lynxos*)
13733 # FIXME: insert proper C++ library support
13734 ld_shlibs_CXX=no
13736 m88k*)
13737 # FIXME: insert proper C++ library support
13738 ld_shlibs_CXX=no
13740 mvs*)
13741 case $cc_basename in
13742 cxx*)
13743 # FIXME: insert proper C++ library support
13744 ld_shlibs_CXX=no
13747 # FIXME: insert proper C++ library support
13748 ld_shlibs_CXX=no
13750 esac
13752 netbsd* | netbsdelf*-gnu)
13753 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13754 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13755 wlarc=
13756 hardcode_libdir_flag_spec_CXX='-R$libdir'
13757 hardcode_direct_CXX=yes
13758 hardcode_shlibpath_var_CXX=no
13760 # Workaround some broken pre-1.5 toolchains
13761 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13763 openbsd2*)
13764 # C++ shared libraries are fairly broken
13765 ld_shlibs_CXX=no
13767 openbsd*)
13768 if test -f /usr/libexec/ld.so; then
13769 hardcode_direct_CXX=yes
13770 hardcode_shlibpath_var_CXX=no
13771 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13772 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13773 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13774 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13775 export_dynamic_flag_spec_CXX='${wl}-E'
13776 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13778 output_verbose_link_cmd='echo'
13779 else
13780 ld_shlibs_CXX=no
13783 osf3*)
13784 case $cc_basename in
13785 KCC*)
13786 # Kuck and Associates, Inc. (KAI) C++ Compiler
13788 # KCC will only create a shared library if the output file
13789 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13790 # to its proper name (with version) after linking.
13791 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'
13793 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13794 hardcode_libdir_separator_CXX=:
13796 # Archives containing C++ object files must be created using
13797 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13798 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13801 RCC*)
13802 # Rational C++ 2.4.1
13803 # FIXME: insert proper C++ library support
13804 ld_shlibs_CXX=no
13806 cxx*)
13807 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13808 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'
13810 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13811 hardcode_libdir_separator_CXX=:
13813 # Commands to make compiler produce verbose output that lists
13814 # what "hidden" libraries, object files and flags are used when
13815 # linking a shared library.
13817 # There doesn't appear to be a way to prevent this compiler from
13818 # explicitly linking system object files so we need to strip them
13819 # from the output so that they don't get included in the library
13820 # dependencies.
13821 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'
13824 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13825 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13826 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'
13828 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13829 hardcode_libdir_separator_CXX=:
13831 # Commands to make compiler produce verbose output that lists
13832 # what "hidden" libraries, object files and flags are used when
13833 # linking a shared library.
13834 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
13836 else
13837 # FIXME: insert proper C++ library support
13838 ld_shlibs_CXX=no
13841 esac
13843 osf4* | osf5*)
13844 case $cc_basename in
13845 KCC*)
13846 # Kuck and Associates, Inc. (KAI) C++ Compiler
13848 # KCC will only create a shared library if the output file
13849 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13850 # to its proper name (with version) after linking.
13851 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'
13853 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13854 hardcode_libdir_separator_CXX=:
13856 # Archives containing C++ object files must be created using
13857 # the KAI C++ compiler.
13858 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
13860 RCC*)
13861 # Rational C++ 2.4.1
13862 # FIXME: insert proper C++ library support
13863 ld_shlibs_CXX=no
13865 cxx*)
13866 allow_undefined_flag_CXX=' -expect_unresolved \*'
13867 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'
13868 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13869 echo "-hidden">> $lib.exp~
13870 $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~
13871 $rm $lib.exp'
13873 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13874 hardcode_libdir_separator_CXX=:
13876 # Commands to make compiler produce verbose output that lists
13877 # what "hidden" libraries, object files and flags are used when
13878 # linking a shared library.
13880 # There doesn't appear to be a way to prevent this compiler from
13881 # explicitly linking system object files so we need to strip them
13882 # from the output so that they don't get included in the library
13883 # dependencies.
13884 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'
13887 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13888 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13889 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'
13891 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13892 hardcode_libdir_separator_CXX=:
13894 # Commands to make compiler produce verbose output that lists
13895 # what "hidden" libraries, object files and flags are used when
13896 # linking a shared library.
13897 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
13899 else
13900 # FIXME: insert proper C++ library support
13901 ld_shlibs_CXX=no
13904 esac
13906 psos*)
13907 # FIXME: insert proper C++ library support
13908 ld_shlibs_CXX=no
13910 sunos4*)
13911 case $cc_basename in
13912 CC*)
13913 # Sun C++ 4.x
13914 # FIXME: insert proper C++ library support
13915 ld_shlibs_CXX=no
13917 lcc*)
13918 # Lucid
13919 # FIXME: insert proper C++ library support
13920 ld_shlibs_CXX=no
13923 # FIXME: insert proper C++ library support
13924 ld_shlibs_CXX=no
13926 esac
13928 solaris*)
13929 case $cc_basename in
13930 CC*)
13931 # Sun C++ 4.2, 5.x and Centerline C++
13932 archive_cmds_need_lc_CXX=yes
13933 no_undefined_flag_CXX=' -zdefs'
13934 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13935 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13936 $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'
13938 hardcode_libdir_flag_spec_CXX='-R$libdir'
13939 hardcode_shlibpath_var_CXX=no
13940 case $host_os in
13941 solaris2.[0-5] | solaris2.[0-5].*) ;;
13943 # The compiler driver will combine and reorder linker options,
13944 # but understands `-z linker_flag'.
13945 # Supported since Solaris 2.6 (maybe 2.5.1?)
13946 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
13948 esac
13949 link_all_deplibs_CXX=yes
13951 output_verbose_link_cmd='echo'
13953 # Archives containing C++ object files must be created using
13954 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13955 # necessary to make sure instantiated templates are included
13956 # in the archive.
13957 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13959 gcx*)
13960 # Green Hills C++ Compiler
13961 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13963 # The C++ compiler must be used to create the archive.
13964 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13967 # GNU C++ compiler with Solaris linker
13968 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13969 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13970 if $CC --version | grep -v '^2\.7' > /dev/null; then
13971 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13972 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13973 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
13975 # Commands to make compiler produce verbose output that lists
13976 # what "hidden" libraries, object files and flags are used when
13977 # linking a shared library.
13978 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
13979 else
13980 # g++ 2.7 appears to require `-G' NOT `-shared' on this
13981 # platform.
13982 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13983 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13984 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
13986 # Commands to make compiler produce verbose output that lists
13987 # what "hidden" libraries, object files and flags are used when
13988 # linking a shared library.
13989 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
13992 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13993 case $host_os in
13994 solaris2.[0-5] | solaris2.[0-5].*) ;;
13996 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13998 esac
14001 esac
14003 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14004 no_undefined_flag_CXX='${wl}-z,text'
14005 archive_cmds_need_lc_CXX=no
14006 hardcode_shlibpath_var_CXX=no
14007 runpath_var='LD_RUN_PATH'
14009 case $cc_basename in
14010 CC*)
14011 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14012 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14015 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14016 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14018 esac
14020 sysv5* | sco3.2v5* | sco5v6*)
14021 # Note: We can NOT use -z defs as we might desire, because we do not
14022 # link with -lc, and that would cause any symbols used from libc to
14023 # always be unresolved, which means just about no library would
14024 # ever link correctly. If we're not using GNU ld we use -z text
14025 # though, which does catch some bad symbols but isn't as heavy-handed
14026 # as -z defs.
14027 # For security reasons, it is highly recommended that you always
14028 # use absolute paths for naming shared libraries, and exclude the
14029 # DT_RUNPATH tag from executables and libraries. But doing so
14030 # requires that you compile everything twice, which is a pain.
14031 # So that behaviour is only enabled if SCOABSPATH is set to a
14032 # non-empty value in the environment. Most likely only useful for
14033 # creating official distributions of packages.
14034 # This is a hack until libtool officially supports absolute path
14035 # names for shared libraries.
14036 no_undefined_flag_CXX='${wl}-z,text'
14037 allow_undefined_flag_CXX='${wl}-z,nodefs'
14038 archive_cmds_need_lc_CXX=no
14039 hardcode_shlibpath_var_CXX=no
14040 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
14041 hardcode_libdir_separator_CXX=':'
14042 link_all_deplibs_CXX=yes
14043 export_dynamic_flag_spec_CXX='${wl}-Bexport'
14044 runpath_var='LD_RUN_PATH'
14046 case $cc_basename in
14047 CC*)
14048 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14049 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14052 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14053 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14055 esac
14057 tandem*)
14058 case $cc_basename in
14059 NCC*)
14060 # NonStop-UX NCC 3.20
14061 # FIXME: insert proper C++ library support
14062 ld_shlibs_CXX=no
14065 # FIXME: insert proper C++ library support
14066 ld_shlibs_CXX=no
14068 esac
14070 vxworks*)
14071 # FIXME: insert proper C++ library support
14072 ld_shlibs_CXX=no
14075 # FIXME: insert proper C++ library support
14076 ld_shlibs_CXX=no
14078 esac
14079 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
14080 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
14081 test "$ld_shlibs_CXX" = no && can_build_shared=no
14083 GCC_CXX="$GXX"
14084 LD_CXX="$LD"
14086 cat > conftest.$ac_ext <<EOF
14087 class Foo
14089 public:
14090 Foo (void) { a = 0; }
14091 private:
14092 int a;
14096 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14097 (eval $ac_compile) 2>&5
14098 ac_status=$?
14099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14100 (exit $ac_status); }; then
14101 # Parse the compiler output and extract the necessary
14102 # objects, libraries and library flags.
14104 # Sentinel used to keep track of whether or not we are before
14105 # the conftest object file.
14106 pre_test_object_deps_done=no
14108 # The `*' in the case matches for architectures that use `case' in
14109 # $output_verbose_cmd can trigger glob expansion during the loop
14110 # eval without this substitution.
14111 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
14113 for p in `eval $output_verbose_link_cmd`; do
14114 case $p in
14116 -L* | -R* | -l*)
14117 # Some compilers place space between "-{L,R}" and the path.
14118 # Remove the space.
14119 if test $p = "-L" \
14120 || test $p = "-R"; then
14121 prev=$p
14122 continue
14123 else
14124 prev=
14127 if test "$pre_test_object_deps_done" = no; then
14128 case $p in
14129 -L* | -R*)
14130 # Internal compiler library paths should come after those
14131 # provided the user. The postdeps already come after the
14132 # user supplied libs so there is no need to process them.
14133 if test -z "$compiler_lib_search_path_CXX"; then
14134 compiler_lib_search_path_CXX="${prev}${p}"
14135 else
14136 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
14139 # The "-l" case would never come before the object being
14140 # linked, so don't bother handling this case.
14141 esac
14142 else
14143 if test -z "$postdeps_CXX"; then
14144 postdeps_CXX="${prev}${p}"
14145 else
14146 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
14151 *.$objext)
14152 # This assumes that the test object file only shows up
14153 # once in the compiler output.
14154 if test "$p" = "conftest.$objext"; then
14155 pre_test_object_deps_done=yes
14156 continue
14159 if test "$pre_test_object_deps_done" = no; then
14160 if test -z "$predep_objects_CXX"; then
14161 predep_objects_CXX="$p"
14162 else
14163 predep_objects_CXX="$predep_objects_CXX $p"
14165 else
14166 if test -z "$postdep_objects_CXX"; then
14167 postdep_objects_CXX="$p"
14168 else
14169 postdep_objects_CXX="$postdep_objects_CXX $p"
14174 *) ;; # Ignore the rest.
14176 esac
14177 done
14179 # Clean up.
14180 rm -f a.out a.exe
14181 else
14182 echo "libtool.m4: error: problem compiling CXX test program"
14185 $rm -f confest.$objext
14187 compiler_lib_search_dirs_CXX=
14188 if test -n "$compiler_lib_search_path_CXX"; then
14189 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
14192 # PORTME: override above test on systems where it is broken
14193 case $host_os in
14194 interix[3-9]*)
14195 # Interix 3.5 installs completely hosed .la files for C++, so rather than
14196 # hack all around it, let's just trust "g++" to DTRT.
14197 predep_objects_CXX=
14198 postdep_objects_CXX=
14199 postdeps_CXX=
14202 linux*)
14203 case `$CC -V 2>&1 | sed 5q` in
14204 *Sun\ C*)
14205 # Sun C++ 5.9
14207 # The more standards-conforming stlport4 library is
14208 # incompatible with the Cstd library. Avoid specifying
14209 # it if it's in CXXFLAGS. Ignore libCrun as
14210 # -library=stlport4 depends on it.
14211 case " $CXX $CXXFLAGS " in
14212 *" -library=stlport4 "*)
14213 solaris_use_stlport4=yes
14215 esac
14216 if test "$solaris_use_stlport4" != yes; then
14217 postdeps_CXX='-library=Cstd -library=Crun'
14220 esac
14223 solaris*)
14224 case $cc_basename in
14225 CC*)
14226 # The more standards-conforming stlport4 library is
14227 # incompatible with the Cstd library. Avoid specifying
14228 # it if it's in CXXFLAGS. Ignore libCrun as
14229 # -library=stlport4 depends on it.
14230 case " $CXX $CXXFLAGS " in
14231 *" -library=stlport4 "*)
14232 solaris_use_stlport4=yes
14234 esac
14236 # Adding this requires a known-good setup of shared libraries for
14237 # Sun compiler versions before 5.6, else PIC objects from an old
14238 # archive will be linked into the output, leading to subtle bugs.
14239 if test "$solaris_use_stlport4" != yes; then
14240 postdeps_CXX='-library=Cstd -library=Crun'
14243 esac
14245 esac
14247 case " $postdeps_CXX " in
14248 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
14249 esac
14251 lt_prog_compiler_wl_CXX=
14252 lt_prog_compiler_pic_CXX=
14253 lt_prog_compiler_static_CXX=
14255 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14256 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
14258 # C++ specific cases for pic, static, wl, etc.
14259 if test "$GXX" = yes; then
14260 lt_prog_compiler_wl_CXX='-Wl,'
14261 lt_prog_compiler_static_CXX='-static'
14263 case $host_os in
14264 aix*)
14265 # All AIX code is PIC.
14266 if test "$host_cpu" = ia64; then
14267 # AIX 5 now supports IA64 processor
14268 lt_prog_compiler_static_CXX='-Bstatic'
14271 amigaos*)
14272 # FIXME: we need at least 68020 code to build shared libraries, but
14273 # adding the `-m68020' flag to GCC prevents building anything better,
14274 # like `-m68040'.
14275 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
14277 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14278 # PIC is the default for these OSes.
14280 mingw* | cygwin* | os2* | pw32*)
14281 # This hack is so that the source file can tell whether it is being
14282 # built for inclusion in a dll (and should export symbols for example).
14283 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14284 # (--disable-auto-import) libraries
14285 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14287 darwin* | rhapsody*)
14288 # PIC is the default on this platform
14289 # Common symbols not allowed in MH_DYLIB files
14290 lt_prog_compiler_pic_CXX='-fno-common'
14292 *djgpp*)
14293 # DJGPP does not support shared libraries at all
14294 lt_prog_compiler_pic_CXX=
14296 interix[3-9]*)
14297 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14298 # Instead, we relocate shared libraries at runtime.
14300 sysv4*MP*)
14301 if test -d /usr/nec; then
14302 lt_prog_compiler_pic_CXX=-Kconform_pic
14305 hpux*)
14306 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14307 # not for PA HP-UX.
14308 case $host_cpu in
14309 hppa*64*|ia64*)
14312 lt_prog_compiler_pic_CXX='-fPIC'
14314 esac
14317 lt_prog_compiler_pic_CXX='-fPIC'
14319 esac
14320 else
14321 case $host_os in
14322 aix[4-9]*)
14323 # All AIX code is PIC.
14324 if test "$host_cpu" = ia64; then
14325 # AIX 5 now supports IA64 processor
14326 lt_prog_compiler_static_CXX='-Bstatic'
14327 else
14328 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
14331 chorus*)
14332 case $cc_basename in
14333 cxch68*)
14334 # Green Hills C++ Compiler
14335 # _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"
14337 esac
14339 darwin*)
14340 # PIC is the default on this platform
14341 # Common symbols not allowed in MH_DYLIB files
14342 case $cc_basename in
14343 xlc*)
14344 lt_prog_compiler_pic_CXX='-qnocommon'
14345 lt_prog_compiler_wl_CXX='-Wl,'
14347 esac
14349 dgux*)
14350 case $cc_basename in
14351 ec++*)
14352 lt_prog_compiler_pic_CXX='-KPIC'
14354 ghcx*)
14355 # Green Hills C++ Compiler
14356 lt_prog_compiler_pic_CXX='-pic'
14360 esac
14362 freebsd* | dragonfly*)
14363 # FreeBSD uses GNU C++
14365 hpux9* | hpux10* | hpux11*)
14366 case $cc_basename in
14367 CC*)
14368 lt_prog_compiler_wl_CXX='-Wl,'
14369 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14370 if test "$host_cpu" != ia64; then
14371 lt_prog_compiler_pic_CXX='+Z'
14374 aCC*)
14375 lt_prog_compiler_wl_CXX='-Wl,'
14376 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14377 case $host_cpu in
14378 hppa*64*|ia64*)
14379 # +Z the default
14382 lt_prog_compiler_pic_CXX='+Z'
14384 esac
14388 esac
14390 interix*)
14391 # This is c89, which is MS Visual C++ (no shared libs)
14392 # Anyone wants to do a port?
14394 irix5* | irix6* | nonstopux*)
14395 case $cc_basename in
14396 CC*)
14397 lt_prog_compiler_wl_CXX='-Wl,'
14398 lt_prog_compiler_static_CXX='-non_shared'
14399 # CC pic flag -KPIC is the default.
14403 esac
14405 linux* | k*bsd*-gnu)
14406 case $cc_basename in
14407 KCC*)
14408 # KAI C++ Compiler
14409 lt_prog_compiler_wl_CXX='--backend -Wl,'
14410 lt_prog_compiler_pic_CXX='-fPIC'
14412 icpc* | ecpc*)
14413 # Intel C++
14414 lt_prog_compiler_wl_CXX='-Wl,'
14415 lt_prog_compiler_pic_CXX='-KPIC'
14416 lt_prog_compiler_static_CXX='-static'
14418 pgCC* | pgcpp*)
14419 # Portland Group C++ compiler.
14420 lt_prog_compiler_wl_CXX='-Wl,'
14421 lt_prog_compiler_pic_CXX='-fpic'
14422 lt_prog_compiler_static_CXX='-Bstatic'
14424 cxx*)
14425 # Compaq C++
14426 # Make sure the PIC flag is empty. It appears that all Alpha
14427 # Linux and Compaq Tru64 Unix objects are PIC.
14428 lt_prog_compiler_pic_CXX=
14429 lt_prog_compiler_static_CXX='-non_shared'
14432 case `$CC -V 2>&1 | sed 5q` in
14433 *Sun\ C*)
14434 # Sun C++ 5.9
14435 lt_prog_compiler_pic_CXX='-KPIC'
14436 lt_prog_compiler_static_CXX='-Bstatic'
14437 lt_prog_compiler_wl_CXX='-Qoption ld '
14439 esac
14441 esac
14443 lynxos*)
14445 m88k*)
14447 mvs*)
14448 case $cc_basename in
14449 cxx*)
14450 lt_prog_compiler_pic_CXX='-W c,exportall'
14454 esac
14456 netbsd* | netbsdelf*-gnu)
14458 osf3* | osf4* | osf5*)
14459 case $cc_basename in
14460 KCC*)
14461 lt_prog_compiler_wl_CXX='--backend -Wl,'
14463 RCC*)
14464 # Rational C++ 2.4.1
14465 lt_prog_compiler_pic_CXX='-pic'
14467 cxx*)
14468 # Digital/Compaq C++
14469 lt_prog_compiler_wl_CXX='-Wl,'
14470 # Make sure the PIC flag is empty. It appears that all Alpha
14471 # Linux and Compaq Tru64 Unix objects are PIC.
14472 lt_prog_compiler_pic_CXX=
14473 lt_prog_compiler_static_CXX='-non_shared'
14477 esac
14479 psos*)
14481 solaris*)
14482 case $cc_basename in
14483 CC*)
14484 # Sun C++ 4.2, 5.x and Centerline C++
14485 lt_prog_compiler_pic_CXX='-KPIC'
14486 lt_prog_compiler_static_CXX='-Bstatic'
14487 lt_prog_compiler_wl_CXX='-Qoption ld '
14489 gcx*)
14490 # Green Hills C++ Compiler
14491 lt_prog_compiler_pic_CXX='-PIC'
14495 esac
14497 sunos4*)
14498 case $cc_basename in
14499 CC*)
14500 # Sun C++ 4.x
14501 lt_prog_compiler_pic_CXX='-pic'
14502 lt_prog_compiler_static_CXX='-Bstatic'
14504 lcc*)
14505 # Lucid
14506 lt_prog_compiler_pic_CXX='-pic'
14510 esac
14512 tandem*)
14513 case $cc_basename in
14514 NCC*)
14515 # NonStop-UX NCC 3.20
14516 lt_prog_compiler_pic_CXX='-KPIC'
14520 esac
14522 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14523 case $cc_basename in
14524 CC*)
14525 lt_prog_compiler_wl_CXX='-Wl,'
14526 lt_prog_compiler_pic_CXX='-KPIC'
14527 lt_prog_compiler_static_CXX='-Bstatic'
14529 esac
14531 vxworks*)
14534 lt_prog_compiler_can_build_shared_CXX=no
14536 esac
14539 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
14540 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
14543 # Check to make sure the PIC flag actually works.
14545 if test -n "$lt_prog_compiler_pic_CXX"; then
14547 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
14548 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
14549 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then
14550 echo $ECHO_N "(cached) $ECHO_C" >&6
14551 else
14552 lt_cv_prog_compiler_pic_works_CXX=no
14553 ac_outfile=conftest.$ac_objext
14554 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14555 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
14556 # Insert the option either (1) after the last *FLAGS variable, or
14557 # (2) before a word containing "conftest.", or (3) at the end.
14558 # Note that $ac_compile itself does not contain backslashes and begins
14559 # with a dollar sign (not a hyphen), so the echo should work correctly.
14560 # The option is referenced via a variable to avoid confusing sed.
14561 lt_compile=`echo "$ac_compile" | $SED \
14562 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14563 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14564 -e 's:$: $lt_compiler_flag:'`
14565 (eval echo "\"\$as_me:14565: $lt_compile\"" >&5)
14566 (eval "$lt_compile" 2>conftest.err)
14567 ac_status=$?
14568 cat conftest.err >&5
14569 echo "$as_me:14569: \$? = $ac_status" >&5
14570 if (exit $ac_status) && test -s "$ac_outfile"; then
14571 # The compiler can only warn and ignore the option if not recognized
14572 # So say no if there are warnings other than the usual output.
14573 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14574 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14575 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14576 lt_cv_prog_compiler_pic_works_CXX=yes
14579 $rm conftest*
14582 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
14583 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_CXX" >&6; }
14585 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
14586 case $lt_prog_compiler_pic_CXX in
14587 "" | " "*) ;;
14588 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14589 esac
14590 else
14591 lt_prog_compiler_pic_CXX=
14592 lt_prog_compiler_can_build_shared_CXX=no
14596 case $host_os in
14597 # For platforms which do not support PIC, -DPIC is meaningless:
14598 *djgpp*)
14599 lt_prog_compiler_pic_CXX=
14602 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
14604 esac
14607 # Check to make sure the static flag actually works.
14609 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
14610 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14611 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14612 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then
14613 echo $ECHO_N "(cached) $ECHO_C" >&6
14614 else
14615 lt_cv_prog_compiler_static_works_CXX=no
14616 save_LDFLAGS="$LDFLAGS"
14617 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14618 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14619 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14620 # The linker can only warn and ignore the option if not recognized
14621 # So say no if there are warnings
14622 if test -s conftest.err; then
14623 # Append any errors to the config.log.
14624 cat conftest.err 1>&5
14625 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14626 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14627 if diff conftest.exp conftest.er2 >/dev/null; then
14628 lt_cv_prog_compiler_static_works_CXX=yes
14630 else
14631 lt_cv_prog_compiler_static_works_CXX=yes
14634 $rm -r conftest*
14635 LDFLAGS="$save_LDFLAGS"
14638 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_CXX" >&5
14639 echo "${ECHO_T}$lt_cv_prog_compiler_static_works_CXX" >&6; }
14641 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
14643 else
14644 lt_prog_compiler_static_CXX=
14648 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14649 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14650 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
14651 echo $ECHO_N "(cached) $ECHO_C" >&6
14652 else
14653 lt_cv_prog_compiler_c_o_CXX=no
14654 $rm -r conftest 2>/dev/null
14655 mkdir conftest
14656 cd conftest
14657 mkdir out
14658 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14660 lt_compiler_flag="-o out/conftest2.$ac_objext"
14661 # Insert the option either (1) after the last *FLAGS variable, or
14662 # (2) before a word containing "conftest.", or (3) at the end.
14663 # Note that $ac_compile itself does not contain backslashes and begins
14664 # with a dollar sign (not a hyphen), so the echo should work correctly.
14665 lt_compile=`echo "$ac_compile" | $SED \
14666 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14667 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14668 -e 's:$: $lt_compiler_flag:'`
14669 (eval echo "\"\$as_me:14669: $lt_compile\"" >&5)
14670 (eval "$lt_compile" 2>out/conftest.err)
14671 ac_status=$?
14672 cat out/conftest.err >&5
14673 echo "$as_me:14673: \$? = $ac_status" >&5
14674 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14675 then
14676 # The compiler can only warn and ignore the option if not recognized
14677 # So say no if there are warnings
14678 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14679 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14680 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14681 lt_cv_prog_compiler_c_o_CXX=yes
14684 chmod u+w . 2>&5
14685 $rm conftest*
14686 # SGI C++ compiler will create directory out/ii_files/ for
14687 # template instantiation
14688 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14689 $rm out/* && rmdir out
14690 cd ..
14691 rmdir conftest
14692 $rm conftest*
14695 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14696 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
14699 hard_links="nottested"
14700 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14701 # do not overwrite the value of need_locks provided by the user
14702 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14703 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14704 hard_links=yes
14705 $rm conftest*
14706 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14707 touch conftest.a
14708 ln conftest.a conftest.b 2>&5 || hard_links=no
14709 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14710 { echo "$as_me:$LINENO: result: $hard_links" >&5
14711 echo "${ECHO_T}$hard_links" >&6; }
14712 if test "$hard_links" = no; then
14713 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14714 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14715 need_locks=warn
14717 else
14718 need_locks=no
14721 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14722 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14724 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14725 case $host_os in
14726 aix[4-9]*)
14727 # If we're using GNU nm, then we don't want the "-C" option.
14728 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14729 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14730 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'
14731 else
14732 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'
14735 pw32*)
14736 export_symbols_cmds_CXX="$ltdll_cmds"
14738 cygwin* | mingw*)
14739 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'
14741 linux* | k*bsd*-gnu)
14742 link_all_deplibs_CXX=no
14745 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14747 esac
14748 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14750 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
14751 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
14752 test "$ld_shlibs_CXX" = no && can_build_shared=no
14755 # Do we need to explicitly link libc?
14757 case "x$archive_cmds_need_lc_CXX" in
14758 x|xyes)
14759 # Assume -lc should be added
14760 archive_cmds_need_lc_CXX=yes
14762 if test "$enable_shared" = yes && test "$GCC" = yes; then
14763 case $archive_cmds_CXX in
14764 *'~'*)
14765 # FIXME: we may have to deal with multi-command sequences.
14767 '$CC '*)
14768 # Test whether the compiler implicitly links with -lc since on some
14769 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14770 # to ld, don't add -lc before -lgcc.
14771 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14772 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
14773 $rm conftest*
14774 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14776 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14777 (eval $ac_compile) 2>&5
14778 ac_status=$?
14779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14780 (exit $ac_status); } 2>conftest.err; then
14781 soname=conftest
14782 lib=conftest
14783 libobjs=conftest.$ac_objext
14784 deplibs=
14785 wl=$lt_prog_compiler_wl_CXX
14786 pic_flag=$lt_prog_compiler_pic_CXX
14787 compiler_flags=-v
14788 linker_flags=-v
14789 verstring=
14790 output_objdir=.
14791 libname=conftest
14792 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14793 allow_undefined_flag_CXX=
14794 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14795 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14796 ac_status=$?
14797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14798 (exit $ac_status); }
14799 then
14800 archive_cmds_need_lc_CXX=no
14801 else
14802 archive_cmds_need_lc_CXX=yes
14804 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14805 else
14806 cat conftest.err 1>&5
14808 $rm conftest*
14809 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
14810 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
14812 esac
14815 esac
14817 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14818 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
14819 library_names_spec=
14820 libname_spec='lib$name'
14821 soname_spec=
14822 shrext_cmds=".so"
14823 postinstall_cmds=
14824 postuninstall_cmds=
14825 finish_cmds=
14826 finish_eval=
14827 shlibpath_var=
14828 shlibpath_overrides_runpath=unknown
14829 version_type=none
14830 dynamic_linker="$host_os ld.so"
14831 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14833 need_lib_prefix=unknown
14834 hardcode_into_libs=no
14836 # when you set need_version to no, make sure it does not cause -set_version
14837 # flags to be left without arguments
14838 need_version=unknown
14840 case $host_os in
14841 aix3*)
14842 version_type=linux
14843 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14844 shlibpath_var=LIBPATH
14846 # AIX 3 has no versioning support, so we append a major version to the name.
14847 soname_spec='${libname}${release}${shared_ext}$major'
14850 aix[4-9]*)
14851 version_type=linux
14852 need_lib_prefix=no
14853 need_version=no
14854 hardcode_into_libs=yes
14855 if test "$host_cpu" = ia64; then
14856 # AIX 5 supports IA64
14857 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14858 shlibpath_var=LD_LIBRARY_PATH
14859 else
14860 # With GCC up to 2.95.x, collect2 would create an import file
14861 # for dependence libraries. The import file would start with
14862 # the line `#! .'. This would cause the generated library to
14863 # depend on `.', always an invalid library. This was fixed in
14864 # development snapshots of GCC prior to 3.0.
14865 case $host_os in
14866 aix4 | aix4.[01] | aix4.[01].*)
14867 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14868 echo ' yes '
14869 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14871 else
14872 can_build_shared=no
14875 esac
14876 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14877 # soname into executable. Probably we can add versioning support to
14878 # collect2, so additional links can be useful in future.
14879 if test "$aix_use_runtimelinking" = yes; then
14880 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14881 # instead of lib<name>.a to let people know that these are not
14882 # typical AIX shared libraries.
14883 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14884 else
14885 # We preserve .a as extension for shared libraries through AIX4.2
14886 # and later when we are not doing run time linking.
14887 library_names_spec='${libname}${release}.a $libname.a'
14888 soname_spec='${libname}${release}${shared_ext}$major'
14890 shlibpath_var=LIBPATH
14894 amigaos*)
14895 library_names_spec='$libname.ixlibrary $libname.a'
14896 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14897 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'
14900 beos*)
14901 library_names_spec='${libname}${shared_ext}'
14902 dynamic_linker="$host_os ld.so"
14903 shlibpath_var=LIBRARY_PATH
14906 bsdi[45]*)
14907 version_type=linux
14908 need_version=no
14909 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14910 soname_spec='${libname}${release}${shared_ext}$major'
14911 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14912 shlibpath_var=LD_LIBRARY_PATH
14913 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14914 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14915 # the default ld.so.conf also contains /usr/contrib/lib and
14916 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14917 # libtool to hard-code these into programs
14920 cygwin* | mingw* | pw32*)
14921 version_type=windows
14922 shrext_cmds=".dll"
14923 need_version=no
14924 need_lib_prefix=no
14926 case $GCC,$host_os in
14927 yes,cygwin* | yes,mingw* | yes,pw32*)
14928 library_names_spec='$libname.dll.a'
14929 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14930 postinstall_cmds='base_file=`basename \${file}`~
14931 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14932 dldir=$destdir/`dirname \$dlpath`~
14933 test -d \$dldir || mkdir -p \$dldir~
14934 $install_prog $dir/$dlname \$dldir/$dlname~
14935 chmod a+x \$dldir/$dlname'
14936 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14937 dlpath=$dir/\$dldll~
14938 $rm \$dlpath'
14939 shlibpath_overrides_runpath=yes
14941 case $host_os in
14942 cygwin*)
14943 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14944 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14945 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14947 mingw*)
14948 # MinGW DLLs use traditional 'lib' prefix
14949 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14950 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14951 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14952 # It is most probably a Windows format PATH printed by
14953 # mingw gcc, but we are running on Cygwin. Gcc prints its search
14954 # path with ; separators, and with drive letters. We can handle the
14955 # drive letters (cygwin fileutils understands them), so leave them,
14956 # especially as we might pass files found there to a mingw objdump,
14957 # which wouldn't understand a cygwinified path. Ahh.
14958 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14959 else
14960 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14963 pw32*)
14964 # pw32 DLLs use 'pw' prefix rather than 'lib'
14965 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14967 esac
14971 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14973 esac
14974 dynamic_linker='Win32 ld.exe'
14975 # FIXME: first we should search . and the directory the executable is in
14976 shlibpath_var=PATH
14979 darwin* | rhapsody*)
14980 dynamic_linker="$host_os dyld"
14981 version_type=darwin
14982 need_lib_prefix=no
14983 need_version=no
14984 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14985 soname_spec='${libname}${release}${major}$shared_ext'
14986 shlibpath_overrides_runpath=yes
14987 shlibpath_var=DYLD_LIBRARY_PATH
14988 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14990 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14993 dgux*)
14994 version_type=linux
14995 need_lib_prefix=no
14996 need_version=no
14997 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14998 soname_spec='${libname}${release}${shared_ext}$major'
14999 shlibpath_var=LD_LIBRARY_PATH
15002 freebsd1*)
15003 dynamic_linker=no
15006 freebsd* | dragonfly*)
15007 # DragonFly does not have aout. When/if they implement a new
15008 # versioning mechanism, adjust this.
15009 if test -x /usr/bin/objformat; then
15010 objformat=`/usr/bin/objformat`
15011 else
15012 case $host_os in
15013 freebsd[123]*) objformat=aout ;;
15014 *) objformat=elf ;;
15015 esac
15017 version_type=freebsd-$objformat
15018 case $version_type in
15019 freebsd-elf*)
15020 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15021 need_version=no
15022 need_lib_prefix=no
15024 freebsd-*)
15025 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15026 need_version=yes
15028 esac
15029 shlibpath_var=LD_LIBRARY_PATH
15030 case $host_os in
15031 freebsd2*)
15032 shlibpath_overrides_runpath=yes
15034 freebsd3.[01]* | freebsdelf3.[01]*)
15035 shlibpath_overrides_runpath=yes
15036 hardcode_into_libs=yes
15038 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15039 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15040 shlibpath_overrides_runpath=no
15041 hardcode_into_libs=yes
15043 *) # from 4.6 on, and DragonFly
15044 shlibpath_overrides_runpath=yes
15045 hardcode_into_libs=yes
15047 esac
15050 gnu*)
15051 version_type=linux
15052 need_lib_prefix=no
15053 need_version=no
15054 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15055 soname_spec='${libname}${release}${shared_ext}$major'
15056 shlibpath_var=LD_LIBRARY_PATH
15057 hardcode_into_libs=yes
15060 hpux9* | hpux10* | hpux11*)
15061 # Give a soname corresponding to the major version so that dld.sl refuses to
15062 # link against other versions.
15063 version_type=sunos
15064 need_lib_prefix=no
15065 need_version=no
15066 case $host_cpu in
15067 ia64*)
15068 shrext_cmds='.so'
15069 hardcode_into_libs=yes
15070 dynamic_linker="$host_os dld.so"
15071 shlibpath_var=LD_LIBRARY_PATH
15072 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15073 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15074 soname_spec='${libname}${release}${shared_ext}$major'
15075 if test "X$HPUX_IA64_MODE" = X32; then
15076 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15077 else
15078 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15080 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15082 hppa*64*)
15083 shrext_cmds='.sl'
15084 hardcode_into_libs=yes
15085 dynamic_linker="$host_os dld.sl"
15086 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15087 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15088 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15089 soname_spec='${libname}${release}${shared_ext}$major'
15090 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15091 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15094 shrext_cmds='.sl'
15095 dynamic_linker="$host_os dld.sl"
15096 shlibpath_var=SHLIB_PATH
15097 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15098 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15099 soname_spec='${libname}${release}${shared_ext}$major'
15101 esac
15102 # HP-UX runs *really* slowly unless shared libraries are mode 555.
15103 postinstall_cmds='chmod 555 $lib'
15106 interix[3-9]*)
15107 version_type=linux
15108 need_lib_prefix=no
15109 need_version=no
15110 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15111 soname_spec='${libname}${release}${shared_ext}$major'
15112 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15113 shlibpath_var=LD_LIBRARY_PATH
15114 shlibpath_overrides_runpath=no
15115 hardcode_into_libs=yes
15118 irix5* | irix6* | nonstopux*)
15119 case $host_os in
15120 nonstopux*) version_type=nonstopux ;;
15122 if test "$lt_cv_prog_gnu_ld" = yes; then
15123 version_type=linux
15124 else
15125 version_type=irix
15126 fi ;;
15127 esac
15128 need_lib_prefix=no
15129 need_version=no
15130 soname_spec='${libname}${release}${shared_ext}$major'
15131 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15132 case $host_os in
15133 irix5* | nonstopux*)
15134 libsuff= shlibsuff=
15137 case $LD in # libtool.m4 will add one of these switches to LD
15138 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15139 libsuff= shlibsuff= libmagic=32-bit;;
15140 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15141 libsuff=32 shlibsuff=N32 libmagic=N32;;
15142 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15143 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15144 *) libsuff= shlibsuff= libmagic=never-match;;
15145 esac
15147 esac
15148 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15149 shlibpath_overrides_runpath=no
15150 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15151 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15152 hardcode_into_libs=yes
15155 # No shared lib support for Linux oldld, aout, or coff.
15156 linux*oldld* | linux*aout* | linux*coff*)
15157 dynamic_linker=no
15160 # This must be Linux ELF.
15161 linux* | k*bsd*-gnu)
15162 version_type=linux
15163 need_lib_prefix=no
15164 need_version=no
15165 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15166 soname_spec='${libname}${release}${shared_ext}$major'
15167 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15168 shlibpath_var=LD_LIBRARY_PATH
15169 shlibpath_overrides_runpath=no
15170 # This implies no fast_install, which is unacceptable.
15171 # Some rework will be needed to allow for fast_install
15172 # before this can be enabled.
15173 hardcode_into_libs=yes
15175 # Append ld.so.conf contents to the search path
15176 if test -f /etc/ld.so.conf; then
15177 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
15178 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15181 # We used to test for /lib/ld.so.1 and disable shared libraries on
15182 # powerpc, because MkLinux only supported shared libraries with the
15183 # GNU dynamic linker. Since this was broken with cross compilers,
15184 # most powerpc-linux boxes support dynamic linking these days and
15185 # people can always --disable-shared, the test was removed, and we
15186 # assume the GNU/Linux dynamic linker is in use.
15187 dynamic_linker='GNU/Linux ld.so'
15190 netbsdelf*-gnu)
15191 version_type=linux
15192 need_lib_prefix=no
15193 need_version=no
15194 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15195 soname_spec='${libname}${release}${shared_ext}$major'
15196 shlibpath_var=LD_LIBRARY_PATH
15197 shlibpath_overrides_runpath=no
15198 hardcode_into_libs=yes
15199 dynamic_linker='NetBSD ld.elf_so'
15202 netbsd*)
15203 version_type=sunos
15204 need_lib_prefix=no
15205 need_version=no
15206 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15207 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15208 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15209 dynamic_linker='NetBSD (a.out) ld.so'
15210 else
15211 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15212 soname_spec='${libname}${release}${shared_ext}$major'
15213 dynamic_linker='NetBSD ld.elf_so'
15215 shlibpath_var=LD_LIBRARY_PATH
15216 shlibpath_overrides_runpath=yes
15217 hardcode_into_libs=yes
15220 newsos6)
15221 version_type=linux
15222 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15223 shlibpath_var=LD_LIBRARY_PATH
15224 shlibpath_overrides_runpath=yes
15227 nto-qnx*)
15228 version_type=linux
15229 need_lib_prefix=no
15230 need_version=no
15231 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15232 soname_spec='${libname}${release}${shared_ext}$major'
15233 shlibpath_var=LD_LIBRARY_PATH
15234 shlibpath_overrides_runpath=yes
15237 openbsd*)
15238 version_type=sunos
15239 sys_lib_dlsearch_path_spec="/usr/lib"
15240 need_lib_prefix=no
15241 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15242 case $host_os in
15243 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15244 *) need_version=no ;;
15245 esac
15246 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15247 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15248 shlibpath_var=LD_LIBRARY_PATH
15249 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15250 case $host_os in
15251 openbsd2.[89] | openbsd2.[89].*)
15252 shlibpath_overrides_runpath=no
15255 shlibpath_overrides_runpath=yes
15257 esac
15258 else
15259 shlibpath_overrides_runpath=yes
15263 os2*)
15264 libname_spec='$name'
15265 shrext_cmds=".dll"
15266 need_lib_prefix=no
15267 library_names_spec='$libname${shared_ext} $libname.a'
15268 dynamic_linker='OS/2 ld.exe'
15269 shlibpath_var=LIBPATH
15272 osf3* | osf4* | osf5*)
15273 version_type=osf
15274 need_lib_prefix=no
15275 need_version=no
15276 soname_spec='${libname}${release}${shared_ext}$major'
15277 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15278 shlibpath_var=LD_LIBRARY_PATH
15279 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15280 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15283 rdos*)
15284 dynamic_linker=no
15287 solaris*)
15288 version_type=linux
15289 need_lib_prefix=no
15290 need_version=no
15291 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15292 soname_spec='${libname}${release}${shared_ext}$major'
15293 shlibpath_var=LD_LIBRARY_PATH
15294 shlibpath_overrides_runpath=yes
15295 hardcode_into_libs=yes
15296 # ldd complains unless libraries are executable
15297 postinstall_cmds='chmod +x $lib'
15300 sunos4*)
15301 version_type=sunos
15302 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15303 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15304 shlibpath_var=LD_LIBRARY_PATH
15305 shlibpath_overrides_runpath=yes
15306 if test "$with_gnu_ld" = yes; then
15307 need_lib_prefix=no
15309 need_version=yes
15312 sysv4 | sysv4.3*)
15313 version_type=linux
15314 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15315 soname_spec='${libname}${release}${shared_ext}$major'
15316 shlibpath_var=LD_LIBRARY_PATH
15317 case $host_vendor in
15318 sni)
15319 shlibpath_overrides_runpath=no
15320 need_lib_prefix=no
15321 export_dynamic_flag_spec='${wl}-Blargedynsym'
15322 runpath_var=LD_RUN_PATH
15324 siemens)
15325 need_lib_prefix=no
15327 motorola)
15328 need_lib_prefix=no
15329 need_version=no
15330 shlibpath_overrides_runpath=no
15331 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15333 esac
15336 sysv4*MP*)
15337 if test -d /usr/nec ;then
15338 version_type=linux
15339 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15340 soname_spec='$libname${shared_ext}.$major'
15341 shlibpath_var=LD_LIBRARY_PATH
15345 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15346 version_type=freebsd-elf
15347 need_lib_prefix=no
15348 need_version=no
15349 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15350 soname_spec='${libname}${release}${shared_ext}$major'
15351 shlibpath_var=LD_LIBRARY_PATH
15352 hardcode_into_libs=yes
15353 if test "$with_gnu_ld" = yes; then
15354 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15355 shlibpath_overrides_runpath=no
15356 else
15357 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15358 shlibpath_overrides_runpath=yes
15359 case $host_os in
15360 sco3.2v5*)
15361 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15363 esac
15365 sys_lib_dlsearch_path_spec='/usr/lib'
15368 uts4*)
15369 version_type=linux
15370 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15371 soname_spec='${libname}${release}${shared_ext}$major'
15372 shlibpath_var=LD_LIBRARY_PATH
15376 dynamic_linker=no
15378 esac
15379 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15380 echo "${ECHO_T}$dynamic_linker" >&6; }
15381 test "$dynamic_linker" = no && can_build_shared=no
15383 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15384 echo $ECHO_N "(cached) $ECHO_C" >&6
15385 else
15386 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
15389 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15390 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15391 echo $ECHO_N "(cached) $ECHO_C" >&6
15392 else
15393 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
15396 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15398 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15399 if test "$GCC" = yes; then
15400 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15403 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15404 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
15405 hardcode_action_CXX=
15406 if test -n "$hardcode_libdir_flag_spec_CXX" || \
15407 test -n "$runpath_var_CXX" || \
15408 test "X$hardcode_automatic_CXX" = "Xyes" ; then
15410 # We can hardcode non-existant directories.
15411 if test "$hardcode_direct_CXX" != no &&
15412 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15413 # have to relink, otherwise we might link with an installed library
15414 # when we should be linking with a yet-to-be-installed one
15415 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
15416 test "$hardcode_minus_L_CXX" != no; then
15417 # Linking always hardcodes the temporary library directory.
15418 hardcode_action_CXX=relink
15419 else
15420 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15421 hardcode_action_CXX=immediate
15423 else
15424 # We cannot hardcode anything, or else we can only hardcode existing
15425 # directories.
15426 hardcode_action_CXX=unsupported
15428 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
15429 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
15431 if test "$hardcode_action_CXX" = relink; then
15432 # Fast installation is not supported
15433 enable_fast_install=no
15434 elif test "$shlibpath_overrides_runpath" = yes ||
15435 test "$enable_shared" = no; then
15436 # Fast installation is not necessary
15437 enable_fast_install=needless
15441 # The else clause should only fire when bootstrapping the
15442 # libtool distribution, otherwise you forgot to ship ltmain.sh
15443 # with your package, and you will get complaints that there are
15444 # no rules to generate ltmain.sh.
15445 if test -f "$ltmain"; then
15446 # See if we are running on zsh, and set the options which allow our commands through
15447 # without removal of \ escapes.
15448 if test -n "${ZSH_VERSION+set}" ; then
15449 setopt NO_GLOB_SUBST
15451 # Now quote all the things that may contain metacharacters while being
15452 # careful not to overquote the AC_SUBSTed values. We take copies of the
15453 # variables and quote the copies for generation of the libtool script.
15454 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
15455 SED SHELL STRIP \
15456 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15457 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15458 deplibs_check_method reload_flag reload_cmds need_locks \
15459 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15460 lt_cv_sys_global_symbol_to_c_name_address \
15461 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15462 old_postinstall_cmds old_postuninstall_cmds \
15463 compiler_CXX \
15464 CC_CXX \
15465 LD_CXX \
15466 lt_prog_compiler_wl_CXX \
15467 lt_prog_compiler_pic_CXX \
15468 lt_prog_compiler_static_CXX \
15469 lt_prog_compiler_no_builtin_flag_CXX \
15470 export_dynamic_flag_spec_CXX \
15471 thread_safe_flag_spec_CXX \
15472 whole_archive_flag_spec_CXX \
15473 enable_shared_with_static_runtimes_CXX \
15474 old_archive_cmds_CXX \
15475 old_archive_from_new_cmds_CXX \
15476 predep_objects_CXX \
15477 postdep_objects_CXX \
15478 predeps_CXX \
15479 postdeps_CXX \
15480 compiler_lib_search_path_CXX \
15481 compiler_lib_search_dirs_CXX \
15482 archive_cmds_CXX \
15483 archive_expsym_cmds_CXX \
15484 postinstall_cmds_CXX \
15485 postuninstall_cmds_CXX \
15486 old_archive_from_expsyms_cmds_CXX \
15487 allow_undefined_flag_CXX \
15488 no_undefined_flag_CXX \
15489 export_symbols_cmds_CXX \
15490 hardcode_libdir_flag_spec_CXX \
15491 hardcode_libdir_flag_spec_ld_CXX \
15492 hardcode_libdir_separator_CXX \
15493 hardcode_automatic_CXX \
15494 module_cmds_CXX \
15495 module_expsym_cmds_CXX \
15496 lt_cv_prog_compiler_c_o_CXX \
15497 fix_srcfile_path_CXX \
15498 exclude_expsyms_CXX \
15499 include_expsyms_CXX; do
15501 case $var in
15502 old_archive_cmds_CXX | \
15503 old_archive_from_new_cmds_CXX | \
15504 archive_cmds_CXX | \
15505 archive_expsym_cmds_CXX | \
15506 module_cmds_CXX | \
15507 module_expsym_cmds_CXX | \
15508 old_archive_from_expsyms_cmds_CXX | \
15509 export_symbols_cmds_CXX | \
15510 extract_expsyms_cmds | reload_cmds | finish_cmds | \
15511 postinstall_cmds | postuninstall_cmds | \
15512 old_postinstall_cmds | old_postuninstall_cmds | \
15513 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15514 # Double-quote double-evaled strings.
15515 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15518 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15520 esac
15521 done
15523 case $lt_echo in
15524 *'\$0 --fallback-echo"')
15525 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15527 esac
15529 cfgfile="$ofile"
15531 cat <<__EOF__ >> "$cfgfile"
15532 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
15534 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15536 # Shell to use when invoking shell scripts.
15537 SHELL=$lt_SHELL
15539 # Whether or not to build shared libraries.
15540 build_libtool_libs=$enable_shared
15542 # Whether or not to build static libraries.
15543 build_old_libs=$enable_static
15545 # Whether or not to add -lc for building shared libraries.
15546 build_libtool_need_lc=$archive_cmds_need_lc_CXX
15548 # Whether or not to disallow shared libs when runtime libs are static
15549 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
15551 # Whether or not to optimize for fast installation.
15552 fast_install=$enable_fast_install
15554 # The host system.
15555 host_alias=$host_alias
15556 host=$host
15557 host_os=$host_os
15559 # The build system.
15560 build_alias=$build_alias
15561 build=$build
15562 build_os=$build_os
15564 # An echo program that does not interpret backslashes.
15565 echo=$lt_echo
15567 # The archiver.
15568 AR=$lt_AR
15569 AR_FLAGS=$lt_AR_FLAGS
15571 # A C compiler.
15572 LTCC=$lt_LTCC
15574 # LTCC compiler flags.
15575 LTCFLAGS=$lt_LTCFLAGS
15577 # A language-specific compiler.
15578 CC=$lt_compiler_CXX
15580 # Is the compiler the GNU C compiler?
15581 with_gcc=$GCC_CXX
15583 # An ERE matcher.
15584 EGREP=$lt_EGREP
15586 # The linker used to build libraries.
15587 LD=$lt_LD_CXX
15589 # Whether we need hard or soft links.
15590 LN_S=$lt_LN_S
15592 # A BSD-compatible nm program.
15593 NM=$lt_NM
15595 # A symbol stripping program
15596 STRIP=$lt_STRIP
15598 # Used to examine libraries when file_magic_cmd begins "file"
15599 MAGIC_CMD=$MAGIC_CMD
15601 # Used on cygwin: DLL creation program.
15602 DLLTOOL="$DLLTOOL"
15604 # Used on cygwin: object dumper.
15605 OBJDUMP="$OBJDUMP"
15607 # Used on cygwin: assembler.
15608 AS="$AS"
15610 # The name of the directory that contains temporary libtool files.
15611 objdir=$objdir
15613 # How to create reloadable object files.
15614 reload_flag=$lt_reload_flag
15615 reload_cmds=$lt_reload_cmds
15617 # How to pass a linker flag through the compiler.
15618 wl=$lt_lt_prog_compiler_wl_CXX
15620 # Object file suffix (normally "o").
15621 objext="$ac_objext"
15623 # Old archive suffix (normally "a").
15624 libext="$libext"
15626 # Shared library suffix (normally ".so").
15627 shrext_cmds='$shrext_cmds'
15629 # Executable file suffix (normally "").
15630 exeext="$exeext"
15632 # Additional compiler flags for building library objects.
15633 pic_flag=$lt_lt_prog_compiler_pic_CXX
15634 pic_mode=$pic_mode
15636 # What is the maximum length of a command?
15637 max_cmd_len=$lt_cv_sys_max_cmd_len
15639 # Does compiler simultaneously support -c and -o options?
15640 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
15642 # Must we lock files when doing compilation?
15643 need_locks=$lt_need_locks
15645 # Do we need the lib prefix for modules?
15646 need_lib_prefix=$need_lib_prefix
15648 # Do we need a version for libraries?
15649 need_version=$need_version
15651 # Whether dlopen is supported.
15652 dlopen_support=$enable_dlopen
15654 # Whether dlopen of programs is supported.
15655 dlopen_self=$enable_dlopen_self
15657 # Whether dlopen of statically linked programs is supported.
15658 dlopen_self_static=$enable_dlopen_self_static
15660 # Compiler flag to prevent dynamic linking.
15661 link_static_flag=$lt_lt_prog_compiler_static_CXX
15663 # Compiler flag to turn off builtin functions.
15664 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
15666 # Compiler flag to allow reflexive dlopens.
15667 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
15669 # Compiler flag to generate shared objects directly from archives.
15670 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
15672 # Compiler flag to generate thread-safe objects.
15673 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
15675 # Library versioning type.
15676 version_type=$version_type
15678 # Format of library name prefix.
15679 libname_spec=$lt_libname_spec
15681 # List of archive names. First name is the real one, the rest are links.
15682 # The last name is the one that the linker finds with -lNAME.
15683 library_names_spec=$lt_library_names_spec
15685 # The coded name of the library, if different from the real name.
15686 soname_spec=$lt_soname_spec
15688 # Commands used to build and install an old-style archive.
15689 RANLIB=$lt_RANLIB
15690 old_archive_cmds=$lt_old_archive_cmds_CXX
15691 old_postinstall_cmds=$lt_old_postinstall_cmds
15692 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15694 # Create an old-style archive from a shared archive.
15695 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
15697 # Create a temporary old-style archive to link instead of a shared archive.
15698 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
15700 # Commands used to build and install a shared archive.
15701 archive_cmds=$lt_archive_cmds_CXX
15702 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
15703 postinstall_cmds=$lt_postinstall_cmds
15704 postuninstall_cmds=$lt_postuninstall_cmds
15706 # Commands used to build a loadable module (assumed same as above if empty)
15707 module_cmds=$lt_module_cmds_CXX
15708 module_expsym_cmds=$lt_module_expsym_cmds_CXX
15710 # Commands to strip libraries.
15711 old_striplib=$lt_old_striplib
15712 striplib=$lt_striplib
15714 # Dependencies to place before the objects being linked to create a
15715 # shared library.
15716 predep_objects=$lt_predep_objects_CXX
15718 # Dependencies to place after the objects being linked to create a
15719 # shared library.
15720 postdep_objects=$lt_postdep_objects_CXX
15722 # Dependencies to place before the objects being linked to create a
15723 # shared library.
15724 predeps=$lt_predeps_CXX
15726 # Dependencies to place after the objects being linked to create a
15727 # shared library.
15728 postdeps=$lt_postdeps_CXX
15730 # The directories searched by this compiler when creating a shared
15731 # library
15732 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
15734 # The library search path used internally by the compiler when linking
15735 # a shared library.
15736 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
15738 # Method to check whether dependent libraries are shared objects.
15739 deplibs_check_method=$lt_deplibs_check_method
15741 # Command to use when deplibs_check_method == file_magic.
15742 file_magic_cmd=$lt_file_magic_cmd
15744 # Flag that allows shared libraries with undefined symbols to be built.
15745 allow_undefined_flag=$lt_allow_undefined_flag_CXX
15747 # Flag that forces no undefined symbols.
15748 no_undefined_flag=$lt_no_undefined_flag_CXX
15750 # Commands used to finish a libtool library installation in a directory.
15751 finish_cmds=$lt_finish_cmds
15753 # Same as above, but a single script fragment to be evaled but not shown.
15754 finish_eval=$lt_finish_eval
15756 # Take the output of nm and produce a listing of raw symbols and C names.
15757 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15759 # Transform the output of nm in a proper C declaration
15760 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15762 # Transform the output of nm in a C name address pair
15763 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15765 # This is the shared library runtime path variable.
15766 runpath_var=$runpath_var
15768 # This is the shared library path variable.
15769 shlibpath_var=$shlibpath_var
15771 # Is shlibpath searched before the hard-coded library search path?
15772 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15774 # How to hardcode a shared library path into an executable.
15775 hardcode_action=$hardcode_action_CXX
15777 # Whether we should hardcode library paths into libraries.
15778 hardcode_into_libs=$hardcode_into_libs
15780 # Flag to hardcode \$libdir into a binary during linking.
15781 # This must work even if \$libdir does not exist.
15782 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
15784 # If ld is used when linking, flag to hardcode \$libdir into
15785 # a binary during linking. This must work even if \$libdir does
15786 # not exist.
15787 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
15789 # Whether we need a single -rpath flag with a separated argument.
15790 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
15792 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15793 # resulting binary.
15794 hardcode_direct=$hardcode_direct_CXX
15796 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15797 # resulting binary.
15798 hardcode_minus_L=$hardcode_minus_L_CXX
15800 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15801 # the resulting binary.
15802 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
15804 # Set to yes if building a shared library automatically hardcodes DIR into the library
15805 # and all subsequent libraries and executables linked against it.
15806 hardcode_automatic=$hardcode_automatic_CXX
15808 # Variables whose values should be saved in libtool wrapper scripts and
15809 # restored at relink time.
15810 variables_saved_for_relink="$variables_saved_for_relink"
15812 # Whether libtool must link a program against all its dependency libraries.
15813 link_all_deplibs=$link_all_deplibs_CXX
15815 # Compile-time system search path for libraries
15816 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15818 # Run-time system search path for libraries
15819 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15821 # Fix the shell variable \$srcfile for the compiler.
15822 fix_srcfile_path=$lt_fix_srcfile_path
15824 # Set to yes if exported symbols are required.
15825 always_export_symbols=$always_export_symbols_CXX
15827 # The commands to list exported symbols.
15828 export_symbols_cmds=$lt_export_symbols_cmds_CXX
15830 # The commands to extract the exported symbol list from a shared archive.
15831 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15833 # Symbols that should not be listed in the preloaded symbols.
15834 exclude_expsyms=$lt_exclude_expsyms_CXX
15836 # Symbols that must always be exported.
15837 include_expsyms=$lt_include_expsyms_CXX
15839 # ### END LIBTOOL TAG CONFIG: $tagname
15841 __EOF__
15844 else
15845 # If there is no Makefile yet, we rely on a make rule to execute
15846 # `config.status --recheck' to rerun these tests and create the
15847 # libtool script then.
15848 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15849 if test -f "$ltmain_in"; then
15850 test -f Makefile && make "$ltmain"
15855 ac_ext=c
15856 ac_cpp='$CPP $CPPFLAGS'
15857 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15858 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15859 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15861 CC=$lt_save_CC
15862 LDCXX=$LD
15863 LD=$lt_save_LD
15864 GCC=$lt_save_GCC
15865 with_gnu_ldcxx=$with_gnu_ld
15866 with_gnu_ld=$lt_save_with_gnu_ld
15867 lt_cv_path_LDCXX=$lt_cv_path_LD
15868 lt_cv_path_LD=$lt_save_path_LD
15869 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15870 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15872 else
15873 tagname=""
15877 F77)
15878 if test -n "$F77" && test "X$F77" != "Xno"; then
15880 ac_ext=f
15881 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
15882 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15883 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
15886 archive_cmds_need_lc_F77=no
15887 allow_undefined_flag_F77=
15888 always_export_symbols_F77=no
15889 archive_expsym_cmds_F77=
15890 export_dynamic_flag_spec_F77=
15891 hardcode_direct_F77=no
15892 hardcode_libdir_flag_spec_F77=
15893 hardcode_libdir_flag_spec_ld_F77=
15894 hardcode_libdir_separator_F77=
15895 hardcode_minus_L_F77=no
15896 hardcode_automatic_F77=no
15897 module_cmds_F77=
15898 module_expsym_cmds_F77=
15899 link_all_deplibs_F77=unknown
15900 old_archive_cmds_F77=$old_archive_cmds
15901 no_undefined_flag_F77=
15902 whole_archive_flag_spec_F77=
15903 enable_shared_with_static_runtimes_F77=no
15905 # Source file extension for f77 test sources.
15906 ac_ext=f
15908 # Object file extension for compiled f77 test sources.
15909 objext=o
15910 objext_F77=$objext
15912 # Code to be used in simple compile tests
15913 lt_simple_compile_test_code="\
15914 subroutine t
15915 return
15919 # Code to be used in simple link tests
15920 lt_simple_link_test_code="\
15921 program t
15925 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15927 # If no C compiler was specified, use CC.
15928 LTCC=${LTCC-"$CC"}
15930 # If no C compiler flags were specified, use CFLAGS.
15931 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15933 # Allow CC to be a program name with arguments.
15934 compiler=$CC
15937 # save warnings/boilerplate of simple test code
15938 ac_outfile=conftest.$ac_objext
15939 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
15940 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15941 _lt_compiler_boilerplate=`cat conftest.err`
15942 $rm conftest*
15944 ac_outfile=conftest.$ac_objext
15945 echo "$lt_simple_link_test_code" >conftest.$ac_ext
15946 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15947 _lt_linker_boilerplate=`cat conftest.err`
15948 $rm -r conftest*
15951 # Allow CC to be a program name with arguments.
15952 lt_save_CC="$CC"
15953 CC=${F77-"f77"}
15954 compiler=$CC
15955 compiler_F77=$CC
15956 for cc_temp in $compiler""; do
15957 case $cc_temp in
15958 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15959 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15960 \-*) ;;
15961 *) break;;
15962 esac
15963 done
15964 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15967 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
15968 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
15969 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
15970 echo "${ECHO_T}$can_build_shared" >&6; }
15972 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
15973 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
15974 test "$can_build_shared" = "no" && enable_shared=no
15976 # On AIX, shared libraries and static libraries use the same namespace, and
15977 # are all built from PIC.
15978 case $host_os in
15979 aix3*)
15980 test "$enable_shared" = yes && enable_static=no
15981 if test -n "$RANLIB"; then
15982 archive_cmds="$archive_cmds~\$RANLIB \$lib"
15983 postinstall_cmds='$RANLIB $lib'
15986 aix[4-9]*)
15987 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
15988 test "$enable_shared" = yes && enable_static=no
15991 esac
15992 { echo "$as_me:$LINENO: result: $enable_shared" >&5
15993 echo "${ECHO_T}$enable_shared" >&6; }
15995 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
15996 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
15997 # Make sure either enable_shared or enable_static is yes.
15998 test "$enable_shared" = yes || enable_static=yes
15999 { echo "$as_me:$LINENO: result: $enable_static" >&5
16000 echo "${ECHO_T}$enable_static" >&6; }
16002 GCC_F77="$G77"
16003 LD_F77="$LD"
16005 lt_prog_compiler_wl_F77=
16006 lt_prog_compiler_pic_F77=
16007 lt_prog_compiler_static_F77=
16009 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16010 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
16012 if test "$GCC" = yes; then
16013 lt_prog_compiler_wl_F77='-Wl,'
16014 lt_prog_compiler_static_F77='-static'
16016 case $host_os in
16017 aix*)
16018 # All AIX code is PIC.
16019 if test "$host_cpu" = ia64; then
16020 # AIX 5 now supports IA64 processor
16021 lt_prog_compiler_static_F77='-Bstatic'
16025 amigaos*)
16026 # FIXME: we need at least 68020 code to build shared libraries, but
16027 # adding the `-m68020' flag to GCC prevents building anything better,
16028 # like `-m68040'.
16029 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
16032 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16033 # PIC is the default for these OSes.
16036 mingw* | cygwin* | pw32* | os2*)
16037 # This hack is so that the source file can tell whether it is being
16038 # built for inclusion in a dll (and should export symbols for example).
16039 # Although the cygwin gcc ignores -fPIC, still need this for old-style
16040 # (--disable-auto-import) libraries
16041 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
16044 darwin* | rhapsody*)
16045 # PIC is the default on this platform
16046 # Common symbols not allowed in MH_DYLIB files
16047 lt_prog_compiler_pic_F77='-fno-common'
16050 interix[3-9]*)
16051 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16052 # Instead, we relocate shared libraries at runtime.
16055 msdosdjgpp*)
16056 # Just because we use GCC doesn't mean we suddenly get shared libraries
16057 # on systems that don't support them.
16058 lt_prog_compiler_can_build_shared_F77=no
16059 enable_shared=no
16062 sysv4*MP*)
16063 if test -d /usr/nec; then
16064 lt_prog_compiler_pic_F77=-Kconform_pic
16068 hpux*)
16069 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16070 # not for PA HP-UX.
16071 case $host_cpu in
16072 hppa*64*|ia64*)
16073 # +Z the default
16076 lt_prog_compiler_pic_F77='-fPIC'
16078 esac
16082 lt_prog_compiler_pic_F77='-fPIC'
16084 esac
16085 else
16086 # PORTME Check for flag to pass linker flags through the system compiler.
16087 case $host_os in
16088 aix*)
16089 lt_prog_compiler_wl_F77='-Wl,'
16090 if test "$host_cpu" = ia64; then
16091 # AIX 5 now supports IA64 processor
16092 lt_prog_compiler_static_F77='-Bstatic'
16093 else
16094 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
16097 darwin*)
16098 # PIC is the default on this platform
16099 # Common symbols not allowed in MH_DYLIB files
16100 case $cc_basename in
16101 xlc*)
16102 lt_prog_compiler_pic_F77='-qnocommon'
16103 lt_prog_compiler_wl_F77='-Wl,'
16105 esac
16108 mingw* | cygwin* | pw32* | os2*)
16109 # This hack is so that the source file can tell whether it is being
16110 # built for inclusion in a dll (and should export symbols for example).
16111 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
16114 hpux9* | hpux10* | hpux11*)
16115 lt_prog_compiler_wl_F77='-Wl,'
16116 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16117 # not for PA HP-UX.
16118 case $host_cpu in
16119 hppa*64*|ia64*)
16120 # +Z the default
16123 lt_prog_compiler_pic_F77='+Z'
16125 esac
16126 # Is there a better lt_prog_compiler_static that works with the bundled CC?
16127 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
16130 irix5* | irix6* | nonstopux*)
16131 lt_prog_compiler_wl_F77='-Wl,'
16132 # PIC (with -KPIC) is the default.
16133 lt_prog_compiler_static_F77='-non_shared'
16136 newsos6)
16137 lt_prog_compiler_pic_F77='-KPIC'
16138 lt_prog_compiler_static_F77='-Bstatic'
16141 linux* | k*bsd*-gnu)
16142 case $cc_basename in
16143 icc* | ecc*)
16144 lt_prog_compiler_wl_F77='-Wl,'
16145 lt_prog_compiler_pic_F77='-KPIC'
16146 lt_prog_compiler_static_F77='-static'
16148 pgcc* | pgf77* | pgf90* | pgf95*)
16149 # Portland Group compilers (*not* the Pentium gcc compiler,
16150 # which looks to be a dead project)
16151 lt_prog_compiler_wl_F77='-Wl,'
16152 lt_prog_compiler_pic_F77='-fpic'
16153 lt_prog_compiler_static_F77='-Bstatic'
16155 ccc*)
16156 lt_prog_compiler_wl_F77='-Wl,'
16157 # All Alpha code is PIC.
16158 lt_prog_compiler_static_F77='-non_shared'
16161 case `$CC -V 2>&1 | sed 5q` in
16162 *Sun\ C*)
16163 # Sun C 5.9
16164 lt_prog_compiler_pic_F77='-KPIC'
16165 lt_prog_compiler_static_F77='-Bstatic'
16166 lt_prog_compiler_wl_F77='-Wl,'
16168 *Sun\ F*)
16169 # Sun Fortran 8.3 passes all unrecognized flags to the linker
16170 lt_prog_compiler_pic_F77='-KPIC'
16171 lt_prog_compiler_static_F77='-Bstatic'
16172 lt_prog_compiler_wl_F77=''
16174 esac
16176 esac
16179 osf3* | osf4* | osf5*)
16180 lt_prog_compiler_wl_F77='-Wl,'
16181 # All OSF/1 code is PIC.
16182 lt_prog_compiler_static_F77='-non_shared'
16185 rdos*)
16186 lt_prog_compiler_static_F77='-non_shared'
16189 solaris*)
16190 lt_prog_compiler_pic_F77='-KPIC'
16191 lt_prog_compiler_static_F77='-Bstatic'
16192 case $cc_basename in
16193 f77* | f90* | f95*)
16194 lt_prog_compiler_wl_F77='-Qoption ld ';;
16196 lt_prog_compiler_wl_F77='-Wl,';;
16197 esac
16200 sunos4*)
16201 lt_prog_compiler_wl_F77='-Qoption ld '
16202 lt_prog_compiler_pic_F77='-PIC'
16203 lt_prog_compiler_static_F77='-Bstatic'
16206 sysv4 | sysv4.2uw2* | sysv4.3*)
16207 lt_prog_compiler_wl_F77='-Wl,'
16208 lt_prog_compiler_pic_F77='-KPIC'
16209 lt_prog_compiler_static_F77='-Bstatic'
16212 sysv4*MP*)
16213 if test -d /usr/nec ;then
16214 lt_prog_compiler_pic_F77='-Kconform_pic'
16215 lt_prog_compiler_static_F77='-Bstatic'
16219 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16220 lt_prog_compiler_wl_F77='-Wl,'
16221 lt_prog_compiler_pic_F77='-KPIC'
16222 lt_prog_compiler_static_F77='-Bstatic'
16225 unicos*)
16226 lt_prog_compiler_wl_F77='-Wl,'
16227 lt_prog_compiler_can_build_shared_F77=no
16230 uts4*)
16231 lt_prog_compiler_pic_F77='-pic'
16232 lt_prog_compiler_static_F77='-Bstatic'
16236 lt_prog_compiler_can_build_shared_F77=no
16238 esac
16241 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
16242 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
16245 # Check to make sure the PIC flag actually works.
16247 if test -n "$lt_prog_compiler_pic_F77"; then
16249 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
16250 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
16251 if test "${lt_cv_prog_compiler_pic_works_F77+set}" = set; then
16252 echo $ECHO_N "(cached) $ECHO_C" >&6
16253 else
16254 lt_cv_prog_compiler_pic_works_F77=no
16255 ac_outfile=conftest.$ac_objext
16256 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16257 lt_compiler_flag="$lt_prog_compiler_pic_F77"
16258 # Insert the option either (1) after the last *FLAGS variable, or
16259 # (2) before a word containing "conftest.", or (3) at the end.
16260 # Note that $ac_compile itself does not contain backslashes and begins
16261 # with a dollar sign (not a hyphen), so the echo should work correctly.
16262 # The option is referenced via a variable to avoid confusing sed.
16263 lt_compile=`echo "$ac_compile" | $SED \
16264 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16265 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16266 -e 's:$: $lt_compiler_flag:'`
16267 (eval echo "\"\$as_me:16267: $lt_compile\"" >&5)
16268 (eval "$lt_compile" 2>conftest.err)
16269 ac_status=$?
16270 cat conftest.err >&5
16271 echo "$as_me:16271: \$? = $ac_status" >&5
16272 if (exit $ac_status) && test -s "$ac_outfile"; then
16273 # The compiler can only warn and ignore the option if not recognized
16274 # So say no if there are warnings other than the usual output.
16275 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16276 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16277 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16278 lt_cv_prog_compiler_pic_works_F77=yes
16281 $rm conftest*
16284 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_F77" >&5
16285 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_F77" >&6; }
16287 if test x"$lt_cv_prog_compiler_pic_works_F77" = xyes; then
16288 case $lt_prog_compiler_pic_F77 in
16289 "" | " "*) ;;
16290 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
16291 esac
16292 else
16293 lt_prog_compiler_pic_F77=
16294 lt_prog_compiler_can_build_shared_F77=no
16298 case $host_os in
16299 # For platforms which do not support PIC, -DPIC is meaningless:
16300 *djgpp*)
16301 lt_prog_compiler_pic_F77=
16304 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
16306 esac
16309 # Check to make sure the static flag actually works.
16311 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
16312 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16313 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
16314 if test "${lt_cv_prog_compiler_static_works_F77+set}" = set; then
16315 echo $ECHO_N "(cached) $ECHO_C" >&6
16316 else
16317 lt_cv_prog_compiler_static_works_F77=no
16318 save_LDFLAGS="$LDFLAGS"
16319 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16320 echo "$lt_simple_link_test_code" > conftest.$ac_ext
16321 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16322 # The linker can only warn and ignore the option if not recognized
16323 # So say no if there are warnings
16324 if test -s conftest.err; then
16325 # Append any errors to the config.log.
16326 cat conftest.err 1>&5
16327 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
16328 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16329 if diff conftest.exp conftest.er2 >/dev/null; then
16330 lt_cv_prog_compiler_static_works_F77=yes
16332 else
16333 lt_cv_prog_compiler_static_works_F77=yes
16336 $rm -r conftest*
16337 LDFLAGS="$save_LDFLAGS"
16340 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_F77" >&5
16341 echo "${ECHO_T}$lt_cv_prog_compiler_static_works_F77" >&6; }
16343 if test x"$lt_cv_prog_compiler_static_works_F77" = xyes; then
16345 else
16346 lt_prog_compiler_static_F77=
16350 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16351 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
16352 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
16353 echo $ECHO_N "(cached) $ECHO_C" >&6
16354 else
16355 lt_cv_prog_compiler_c_o_F77=no
16356 $rm -r conftest 2>/dev/null
16357 mkdir conftest
16358 cd conftest
16359 mkdir out
16360 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16362 lt_compiler_flag="-o out/conftest2.$ac_objext"
16363 # Insert the option either (1) after the last *FLAGS variable, or
16364 # (2) before a word containing "conftest.", or (3) at the end.
16365 # Note that $ac_compile itself does not contain backslashes and begins
16366 # with a dollar sign (not a hyphen), so the echo should work correctly.
16367 lt_compile=`echo "$ac_compile" | $SED \
16368 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16369 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16370 -e 's:$: $lt_compiler_flag:'`
16371 (eval echo "\"\$as_me:16371: $lt_compile\"" >&5)
16372 (eval "$lt_compile" 2>out/conftest.err)
16373 ac_status=$?
16374 cat out/conftest.err >&5
16375 echo "$as_me:16375: \$? = $ac_status" >&5
16376 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16377 then
16378 # The compiler can only warn and ignore the option if not recognized
16379 # So say no if there are warnings
16380 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
16381 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16382 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16383 lt_cv_prog_compiler_c_o_F77=yes
16386 chmod u+w . 2>&5
16387 $rm conftest*
16388 # SGI C++ compiler will create directory out/ii_files/ for
16389 # template instantiation
16390 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16391 $rm out/* && rmdir out
16392 cd ..
16393 rmdir conftest
16394 $rm conftest*
16397 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
16398 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
16401 hard_links="nottested"
16402 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
16403 # do not overwrite the value of need_locks provided by the user
16404 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16405 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
16406 hard_links=yes
16407 $rm conftest*
16408 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16409 touch conftest.a
16410 ln conftest.a conftest.b 2>&5 || hard_links=no
16411 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16412 { echo "$as_me:$LINENO: result: $hard_links" >&5
16413 echo "${ECHO_T}$hard_links" >&6; }
16414 if test "$hard_links" = no; then
16415 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16416 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16417 need_locks=warn
16419 else
16420 need_locks=no
16423 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16424 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
16426 runpath_var=
16427 allow_undefined_flag_F77=
16428 enable_shared_with_static_runtimes_F77=no
16429 archive_cmds_F77=
16430 archive_expsym_cmds_F77=
16431 old_archive_From_new_cmds_F77=
16432 old_archive_from_expsyms_cmds_F77=
16433 export_dynamic_flag_spec_F77=
16434 whole_archive_flag_spec_F77=
16435 thread_safe_flag_spec_F77=
16436 hardcode_libdir_flag_spec_F77=
16437 hardcode_libdir_flag_spec_ld_F77=
16438 hardcode_libdir_separator_F77=
16439 hardcode_direct_F77=no
16440 hardcode_minus_L_F77=no
16441 hardcode_shlibpath_var_F77=unsupported
16442 link_all_deplibs_F77=unknown
16443 hardcode_automatic_F77=no
16444 module_cmds_F77=
16445 module_expsym_cmds_F77=
16446 always_export_symbols_F77=no
16447 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16448 # include_expsyms should be a list of space-separated symbols to be *always*
16449 # included in the symbol list
16450 include_expsyms_F77=
16451 # exclude_expsyms can be an extended regexp of symbols to exclude
16452 # it will be wrapped by ` (' and `)$', so one must not match beginning or
16453 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16454 # as well as any symbol that contains `d'.
16455 exclude_expsyms_F77='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
16456 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16457 # platforms (ab)use it in PIC code, but their linkers get confused if
16458 # the symbol is explicitly referenced. Since portable code cannot
16459 # rely on this symbol name, it's probably fine to never include it in
16460 # preloaded symbol tables.
16461 # Exclude shared library initialization/finalization symbols.
16462 extract_expsyms_cmds=
16463 # Just being paranoid about ensuring that cc_basename is set.
16464 for cc_temp in $compiler""; do
16465 case $cc_temp in
16466 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16467 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16468 \-*) ;;
16469 *) break;;
16470 esac
16471 done
16472 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16474 case $host_os in
16475 cygwin* | mingw* | pw32*)
16476 # FIXME: the MSVC++ port hasn't been tested in a loooong time
16477 # When not using gcc, we currently assume that we are using
16478 # Microsoft Visual C++.
16479 if test "$GCC" != yes; then
16480 with_gnu_ld=no
16483 interix*)
16484 # we just hope/assume this is gcc and not c89 (= MSVC++)
16485 with_gnu_ld=yes
16487 openbsd*)
16488 with_gnu_ld=no
16490 esac
16492 ld_shlibs_F77=yes
16493 if test "$with_gnu_ld" = yes; then
16494 # If archive_cmds runs LD, not CC, wlarc should be empty
16495 wlarc='${wl}'
16497 # Set some defaults for GNU ld with shared library support. These
16498 # are reset later if shared libraries are not supported. Putting them
16499 # here allows them to be overridden if necessary.
16500 runpath_var=LD_RUN_PATH
16501 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
16502 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
16503 # ancient GNU ld didn't support --whole-archive et. al.
16504 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16505 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16506 else
16507 whole_archive_flag_spec_F77=
16509 supports_anon_versioning=no
16510 case `$LD -v 2>/dev/null` in
16511 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16512 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16513 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16514 *\ 2.11.*) ;; # other 2.11 versions
16515 *) supports_anon_versioning=yes ;;
16516 esac
16518 # See if GNU ld supports shared libraries.
16519 case $host_os in
16520 aix[3-9]*)
16521 # On AIX/PPC, the GNU linker is very broken
16522 if test "$host_cpu" != ia64; then
16523 ld_shlibs_F77=no
16524 cat <<EOF 1>&2
16526 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
16527 *** to be unable to reliably create shared libraries on AIX.
16528 *** Therefore, libtool is disabling shared libraries support. If you
16529 *** really care for shared libraries, you may want to modify your PATH
16530 *** so that a non-GNU linker is found, and then restart.
16536 amigaos*)
16537 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)'
16538 hardcode_libdir_flag_spec_F77='-L$libdir'
16539 hardcode_minus_L_F77=yes
16541 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16542 # that the semantics of dynamic libraries on AmigaOS, at least up
16543 # to version 4, is to share data among multiple programs linked
16544 # with the same dynamic library. Since this doesn't match the
16545 # behavior of shared libraries on other platforms, we can't use
16546 # them.
16547 ld_shlibs_F77=no
16550 beos*)
16551 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16552 allow_undefined_flag_F77=unsupported
16553 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16554 # support --undefined. This deserves some investigation. FIXME
16555 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16556 else
16557 ld_shlibs_F77=no
16561 cygwin* | mingw* | pw32*)
16562 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
16563 # as there is no search path for DLLs.
16564 hardcode_libdir_flag_spec_F77='-L$libdir'
16565 allow_undefined_flag_F77=unsupported
16566 always_export_symbols_F77=no
16567 enable_shared_with_static_runtimes_F77=yes
16568 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
16570 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16571 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16572 # If the export-symbols file already is a .def file (1st line
16573 # is EXPORTS), use it as is; otherwise, prepend...
16574 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16575 cp $export_symbols $output_objdir/$soname.def;
16576 else
16577 echo EXPORTS > $output_objdir/$soname.def;
16578 cat $export_symbols >> $output_objdir/$soname.def;
16580 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16581 else
16582 ld_shlibs_F77=no
16586 interix[3-9]*)
16587 hardcode_direct_F77=no
16588 hardcode_shlibpath_var_F77=no
16589 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
16590 export_dynamic_flag_spec_F77='${wl}-E'
16591 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16592 # Instead, shared libraries are loaded at an image base (0x10000000 by
16593 # default) and relocated if they conflict, which is a slow very memory
16594 # consuming and fragmenting process. To avoid this, we pick a random,
16595 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16596 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
16597 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'
16598 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'
16601 gnu* | linux* | k*bsd*-gnu)
16602 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16603 tmp_addflag=
16604 case $cc_basename,$host_cpu in
16605 pgcc*) # Portland Group C compiler
16606 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'
16607 tmp_addflag=' $pic_flag'
16609 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
16610 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'
16611 tmp_addflag=' $pic_flag -Mnomain' ;;
16612 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
16613 tmp_addflag=' -i_dynamic' ;;
16614 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
16615 tmp_addflag=' -i_dynamic -nofor_main' ;;
16616 ifc* | ifort*) # Intel Fortran compiler
16617 tmp_addflag=' -nofor_main' ;;
16618 esac
16619 case `$CC -V 2>&1 | sed 5q` in
16620 *Sun\ C*) # Sun C 5.9
16621 whole_archive_flag_spec_F77='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
16622 tmp_sharedflag='-G' ;;
16623 *Sun\ F*) # Sun Fortran 8.3
16624 tmp_sharedflag='-G' ;;
16626 tmp_sharedflag='-shared' ;;
16627 esac
16628 archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16630 if test $supports_anon_versioning = yes; then
16631 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
16632 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16633 $echo "local: *; };" >> $output_objdir/$libname.ver~
16634 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16636 link_all_deplibs_F77=no
16637 else
16638 ld_shlibs_F77=no
16642 netbsd* | netbsdelf*-gnu)
16643 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16644 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16645 wlarc=
16646 else
16647 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16648 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16652 solaris*)
16653 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16654 ld_shlibs_F77=no
16655 cat <<EOF 1>&2
16657 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
16658 *** create shared libraries on Solaris systems. Therefore, libtool
16659 *** is disabling shared libraries support. We urge you to upgrade GNU
16660 *** binutils to release 2.9.1 or newer. Another option is to modify
16661 *** your PATH or compiler configuration so that the native linker is
16662 *** used, and then restart.
16665 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16666 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16667 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16668 else
16669 ld_shlibs_F77=no
16673 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
16674 case `$LD -v 2>&1` in
16675 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
16676 ld_shlibs_F77=no
16677 cat <<_LT_EOF 1>&2
16679 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
16680 *** reliably create shared libraries on SCO systems. Therefore, libtool
16681 *** is disabling shared libraries support. We urge you to upgrade GNU
16682 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
16683 *** your PATH or compiler configuration so that the native linker is
16684 *** used, and then restart.
16686 _LT_EOF
16689 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16690 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
16691 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
16692 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
16693 else
16694 ld_shlibs_F77=no
16697 esac
16700 sunos4*)
16701 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16702 wlarc=
16703 hardcode_direct_F77=yes
16704 hardcode_shlibpath_var_F77=no
16708 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16709 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16710 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16711 else
16712 ld_shlibs_F77=no
16715 esac
16717 if test "$ld_shlibs_F77" = no; then
16718 runpath_var=
16719 hardcode_libdir_flag_spec_F77=
16720 export_dynamic_flag_spec_F77=
16721 whole_archive_flag_spec_F77=
16723 else
16724 # PORTME fill in a description of your system's linker (not GNU ld)
16725 case $host_os in
16726 aix3*)
16727 allow_undefined_flag_F77=unsupported
16728 always_export_symbols_F77=yes
16729 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'
16730 # Note: this linker hardcodes the directories in LIBPATH if there
16731 # are no directories specified by -L.
16732 hardcode_minus_L_F77=yes
16733 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
16734 # Neither direct hardcoding nor static linking is supported with a
16735 # broken collect2.
16736 hardcode_direct_F77=unsupported
16740 aix[4-9]*)
16741 if test "$host_cpu" = ia64; then
16742 # On IA64, the linker does run time linking by default, so we don't
16743 # have to do anything special.
16744 aix_use_runtimelinking=no
16745 exp_sym_flag='-Bexport'
16746 no_entry_flag=""
16747 else
16748 # If we're using GNU nm, then we don't want the "-C" option.
16749 # -C means demangle to AIX nm, but means don't demangle with GNU nm
16750 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16751 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'
16752 else
16753 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'
16755 aix_use_runtimelinking=no
16757 # Test if we are trying to use run time linking or normal
16758 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16759 # need to do runtime linking.
16760 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
16761 for ld_flag in $LDFLAGS; do
16762 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16763 aix_use_runtimelinking=yes
16764 break
16766 done
16768 esac
16770 exp_sym_flag='-bexport'
16771 no_entry_flag='-bnoentry'
16774 # When large executables or shared objects are built, AIX ld can
16775 # have problems creating the table of contents. If linking a library
16776 # or program results in "error TOC overflow" add -mminimal-toc to
16777 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16778 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16780 archive_cmds_F77=''
16781 hardcode_direct_F77=yes
16782 hardcode_libdir_separator_F77=':'
16783 link_all_deplibs_F77=yes
16785 if test "$GCC" = yes; then
16786 case $host_os in aix4.[012]|aix4.[012].*)
16787 # We only want to do this on AIX 4.2 and lower, the check
16788 # below for broken collect2 doesn't work under 4.3+
16789 collect2name=`${CC} -print-prog-name=collect2`
16790 if test -f "$collect2name" && \
16791 strings "$collect2name" | grep resolve_lib_name >/dev/null
16792 then
16793 # We have reworked collect2
16795 else
16796 # We have old collect2
16797 hardcode_direct_F77=unsupported
16798 # It fails to find uninstalled libraries when the uninstalled
16799 # path is not listed in the libpath. Setting hardcode_minus_L
16800 # to unsupported forces relinking
16801 hardcode_minus_L_F77=yes
16802 hardcode_libdir_flag_spec_F77='-L$libdir'
16803 hardcode_libdir_separator_F77=
16806 esac
16807 shared_flag='-shared'
16808 if test "$aix_use_runtimelinking" = yes; then
16809 shared_flag="$shared_flag "'${wl}-G'
16811 else
16812 # not using gcc
16813 if test "$host_cpu" = ia64; then
16814 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16815 # chokes on -Wl,-G. The following line is correct:
16816 shared_flag='-G'
16817 else
16818 if test "$aix_use_runtimelinking" = yes; then
16819 shared_flag='${wl}-G'
16820 else
16821 shared_flag='${wl}-bM:SRE'
16826 # It seems that -bexpall does not export symbols beginning with
16827 # underscore (_), so it is better to generate a list of symbols to export.
16828 always_export_symbols_F77=yes
16829 if test "$aix_use_runtimelinking" = yes; then
16830 # Warning - without using the other runtime loading flags (-brtl),
16831 # -berok will link without error, but may produce a broken library.
16832 allow_undefined_flag_F77='-berok'
16833 # Determine the default libpath from the value encoded in an empty executable.
16834 cat >conftest.$ac_ext <<_ACEOF
16835 program main
16838 _ACEOF
16839 rm -f conftest.$ac_objext conftest$ac_exeext
16840 if { (ac_try="$ac_link"
16841 case "(($ac_try" in
16842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16843 *) ac_try_echo=$ac_try;;
16844 esac
16845 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16846 (eval "$ac_link") 2>conftest.er1
16847 ac_status=$?
16848 grep -v '^ *+' conftest.er1 >conftest.err
16849 rm -f conftest.er1
16850 cat conftest.err >&5
16851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16852 (exit $ac_status); } && {
16853 test -z "$ac_f77_werror_flag" ||
16854 test ! -s conftest.err
16855 } && test -s conftest$ac_exeext &&
16856 $as_test_x conftest$ac_exeext; then
16858 lt_aix_libpath_sed='
16859 /Import File Strings/,/^$/ {
16860 /^0/ {
16861 s/^0 *\(.*\)$/\1/
16865 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16866 # Check for a 64-bit object if we didn't find anything.
16867 if test -z "$aix_libpath"; then
16868 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16870 else
16871 echo "$as_me: failed program was:" >&5
16872 sed 's/^/| /' conftest.$ac_ext >&5
16877 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16878 conftest$ac_exeext conftest.$ac_ext
16879 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16881 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
16882 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"
16883 else
16884 if test "$host_cpu" = ia64; then
16885 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
16886 allow_undefined_flag_F77="-z nodefs"
16887 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"
16888 else
16889 # Determine the default libpath from the value encoded in an empty executable.
16890 cat >conftest.$ac_ext <<_ACEOF
16891 program main
16894 _ACEOF
16895 rm -f conftest.$ac_objext conftest$ac_exeext
16896 if { (ac_try="$ac_link"
16897 case "(($ac_try" in
16898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16899 *) ac_try_echo=$ac_try;;
16900 esac
16901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16902 (eval "$ac_link") 2>conftest.er1
16903 ac_status=$?
16904 grep -v '^ *+' conftest.er1 >conftest.err
16905 rm -f conftest.er1
16906 cat conftest.err >&5
16907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16908 (exit $ac_status); } && {
16909 test -z "$ac_f77_werror_flag" ||
16910 test ! -s conftest.err
16911 } && test -s conftest$ac_exeext &&
16912 $as_test_x conftest$ac_exeext; then
16914 lt_aix_libpath_sed='
16915 /Import File Strings/,/^$/ {
16916 /^0/ {
16917 s/^0 *\(.*\)$/\1/
16921 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16922 # Check for a 64-bit object if we didn't find anything.
16923 if test -z "$aix_libpath"; then
16924 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16926 else
16927 echo "$as_me: failed program was:" >&5
16928 sed 's/^/| /' conftest.$ac_ext >&5
16933 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16934 conftest$ac_exeext conftest.$ac_ext
16935 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16937 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
16938 # Warning - without using the other run time loading flags,
16939 # -berok will link without error, but may produce a broken library.
16940 no_undefined_flag_F77=' ${wl}-bernotok'
16941 allow_undefined_flag_F77=' ${wl}-berok'
16942 # Exported symbols can be pulled into shared objects from archives
16943 whole_archive_flag_spec_F77='$convenience'
16944 archive_cmds_need_lc_F77=yes
16945 # This is similar to how AIX traditionally builds its shared libraries.
16946 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'
16951 amigaos*)
16952 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)'
16953 hardcode_libdir_flag_spec_F77='-L$libdir'
16954 hardcode_minus_L_F77=yes
16955 # see comment about different semantics on the GNU ld section
16956 ld_shlibs_F77=no
16959 bsdi[45]*)
16960 export_dynamic_flag_spec_F77=-rdynamic
16963 cygwin* | mingw* | pw32*)
16964 # When not using gcc, we currently assume that we are using
16965 # Microsoft Visual C++.
16966 # hardcode_libdir_flag_spec is actually meaningless, as there is
16967 # no search path for DLLs.
16968 hardcode_libdir_flag_spec_F77=' '
16969 allow_undefined_flag_F77=unsupported
16970 # Tell ltmain to make .lib files, not .a files.
16971 libext=lib
16972 # Tell ltmain to make .dll files, not .so files.
16973 shrext_cmds=".dll"
16974 # FIXME: Setting linknames here is a bad hack.
16975 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
16976 # The linker will automatically build a .lib file if we build a DLL.
16977 old_archive_From_new_cmds_F77='true'
16978 # FIXME: Should let the user specify the lib program.
16979 old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs'
16980 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
16981 enable_shared_with_static_runtimes_F77=yes
16984 darwin* | rhapsody*)
16985 case $host_os in
16986 rhapsody* | darwin1.[012])
16987 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
16989 *) # Darwin 1.3 on
16990 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16991 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16992 else
16993 case ${MACOSX_DEPLOYMENT_TARGET} in
16994 10.[012])
16995 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16997 10.*)
16998 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
17000 esac
17003 esac
17004 archive_cmds_need_lc_F77=no
17005 hardcode_direct_F77=no
17006 hardcode_automatic_F77=yes
17007 hardcode_shlibpath_var_F77=unsupported
17008 whole_archive_flag_spec_F77=''
17009 link_all_deplibs_F77=yes
17010 if test "$GCC" = yes ; then
17011 output_verbose_link_cmd='echo'
17012 archive_cmds_F77="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
17013 module_cmds_F77="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
17014 archive_expsym_cmds_F77="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
17015 module_expsym_cmds_F77="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
17016 else
17017 case $cc_basename in
17018 xlc*)
17019 output_verbose_link_cmd='echo'
17020 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
17021 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17022 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17023 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17024 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}'
17027 ld_shlibs_F77=no
17029 esac
17033 dgux*)
17034 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17035 hardcode_libdir_flag_spec_F77='-L$libdir'
17036 hardcode_shlibpath_var_F77=no
17039 freebsd1*)
17040 ld_shlibs_F77=no
17043 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17044 # support. Future versions do this automatically, but an explicit c++rt0.o
17045 # does not break anything, and helps significantly (at the cost of a little
17046 # extra space).
17047 freebsd2.2*)
17048 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17049 hardcode_libdir_flag_spec_F77='-R$libdir'
17050 hardcode_direct_F77=yes
17051 hardcode_shlibpath_var_F77=no
17054 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17055 freebsd2*)
17056 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17057 hardcode_direct_F77=yes
17058 hardcode_minus_L_F77=yes
17059 hardcode_shlibpath_var_F77=no
17062 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17063 freebsd* | dragonfly*)
17064 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17065 hardcode_libdir_flag_spec_F77='-R$libdir'
17066 hardcode_direct_F77=yes
17067 hardcode_shlibpath_var_F77=no
17070 hpux9*)
17071 if test "$GCC" = yes; then
17072 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'
17073 else
17074 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'
17076 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
17077 hardcode_libdir_separator_F77=:
17078 hardcode_direct_F77=yes
17080 # hardcode_minus_L: Not really in the search PATH,
17081 # but as the default location of the library.
17082 hardcode_minus_L_F77=yes
17083 export_dynamic_flag_spec_F77='${wl}-E'
17086 hpux10*)
17087 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17088 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17089 else
17090 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17092 if test "$with_gnu_ld" = no; then
17093 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
17094 hardcode_libdir_separator_F77=:
17096 hardcode_direct_F77=yes
17097 export_dynamic_flag_spec_F77='${wl}-E'
17099 # hardcode_minus_L: Not really in the search PATH,
17100 # but as the default location of the library.
17101 hardcode_minus_L_F77=yes
17105 hpux11*)
17106 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17107 case $host_cpu in
17108 hppa*64*)
17109 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17111 ia64*)
17112 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17115 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17117 esac
17118 else
17119 case $host_cpu in
17120 hppa*64*)
17121 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17123 ia64*)
17124 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17127 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17129 esac
17131 if test "$with_gnu_ld" = no; then
17132 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
17133 hardcode_libdir_separator_F77=:
17135 case $host_cpu in
17136 hppa*64*|ia64*)
17137 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
17138 hardcode_direct_F77=no
17139 hardcode_shlibpath_var_F77=no
17142 hardcode_direct_F77=yes
17143 export_dynamic_flag_spec_F77='${wl}-E'
17145 # hardcode_minus_L: Not really in the search PATH,
17146 # but as the default location of the library.
17147 hardcode_minus_L_F77=yes
17149 esac
17153 irix5* | irix6* | nonstopux*)
17154 if test "$GCC" = yes; then
17155 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'
17156 else
17157 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'
17158 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
17160 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
17161 hardcode_libdir_separator_F77=:
17162 link_all_deplibs_F77=yes
17165 netbsd* | netbsdelf*-gnu)
17166 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17167 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
17168 else
17169 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
17171 hardcode_libdir_flag_spec_F77='-R$libdir'
17172 hardcode_direct_F77=yes
17173 hardcode_shlibpath_var_F77=no
17176 newsos6)
17177 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17178 hardcode_direct_F77=yes
17179 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
17180 hardcode_libdir_separator_F77=:
17181 hardcode_shlibpath_var_F77=no
17184 openbsd*)
17185 if test -f /usr/libexec/ld.so; then
17186 hardcode_direct_F77=yes
17187 hardcode_shlibpath_var_F77=no
17188 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17189 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17190 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17191 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
17192 export_dynamic_flag_spec_F77='${wl}-E'
17193 else
17194 case $host_os in
17195 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17196 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17197 hardcode_libdir_flag_spec_F77='-R$libdir'
17200 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17201 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
17203 esac
17205 else
17206 ld_shlibs_F77=no
17210 os2*)
17211 hardcode_libdir_flag_spec_F77='-L$libdir'
17212 hardcode_minus_L_F77=yes
17213 allow_undefined_flag_F77=unsupported
17214 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'
17215 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17218 osf3*)
17219 if test "$GCC" = yes; then
17220 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
17221 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'
17222 else
17223 allow_undefined_flag_F77=' -expect_unresolved \*'
17224 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'
17226 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
17227 hardcode_libdir_separator_F77=:
17230 osf4* | osf5*) # as osf3* with the addition of -msym flag
17231 if test "$GCC" = yes; then
17232 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
17233 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'
17234 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
17235 else
17236 allow_undefined_flag_F77=' -expect_unresolved \*'
17237 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'
17238 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~
17239 $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'
17241 # Both c and cxx compiler support -rpath directly
17242 hardcode_libdir_flag_spec_F77='-rpath $libdir'
17244 hardcode_libdir_separator_F77=:
17247 solaris*)
17248 no_undefined_flag_F77=' -z text'
17249 if test "$GCC" = yes; then
17250 wlarc='${wl}'
17251 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17252 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17253 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
17254 else
17255 wlarc=''
17256 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17257 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17258 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17260 hardcode_libdir_flag_spec_F77='-R$libdir'
17261 hardcode_shlibpath_var_F77=no
17262 case $host_os in
17263 solaris2.[0-5] | solaris2.[0-5].*) ;;
17265 # The compiler driver will combine and reorder linker options,
17266 # but understands `-z linker_flag'. GCC discards it without `$wl',
17267 # but is careful enough not to reorder.
17268 # Supported since Solaris 2.6 (maybe 2.5.1?)
17269 if test "$GCC" = yes; then
17270 whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
17271 else
17272 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract'
17275 esac
17276 link_all_deplibs_F77=yes
17279 sunos4*)
17280 if test "x$host_vendor" = xsequent; then
17281 # Use $CC to link under sequent, because it throws in some extra .o
17282 # files that make .init and .fini sections work.
17283 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17284 else
17285 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17287 hardcode_libdir_flag_spec_F77='-L$libdir'
17288 hardcode_direct_F77=yes
17289 hardcode_minus_L_F77=yes
17290 hardcode_shlibpath_var_F77=no
17293 sysv4)
17294 case $host_vendor in
17295 sni)
17296 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17297 hardcode_direct_F77=yes # is this really true???
17299 siemens)
17300 ## LD is ld it makes a PLAMLIB
17301 ## CC just makes a GrossModule.
17302 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17303 reload_cmds_F77='$CC -r -o $output$reload_objs'
17304 hardcode_direct_F77=no
17306 motorola)
17307 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17308 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
17310 esac
17311 runpath_var='LD_RUN_PATH'
17312 hardcode_shlibpath_var_F77=no
17315 sysv4.3*)
17316 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17317 hardcode_shlibpath_var_F77=no
17318 export_dynamic_flag_spec_F77='-Bexport'
17321 sysv4*MP*)
17322 if test -d /usr/nec; then
17323 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17324 hardcode_shlibpath_var_F77=no
17325 runpath_var=LD_RUN_PATH
17326 hardcode_runpath_var=yes
17327 ld_shlibs_F77=yes
17331 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
17332 no_undefined_flag_F77='${wl}-z,text'
17333 archive_cmds_need_lc_F77=no
17334 hardcode_shlibpath_var_F77=no
17335 runpath_var='LD_RUN_PATH'
17337 if test "$GCC" = yes; then
17338 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17339 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17340 else
17341 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17342 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17346 sysv5* | sco3.2v5* | sco5v6*)
17347 # Note: We can NOT use -z defs as we might desire, because we do not
17348 # link with -lc, and that would cause any symbols used from libc to
17349 # always be unresolved, which means just about no library would
17350 # ever link correctly. If we're not using GNU ld we use -z text
17351 # though, which does catch some bad symbols but isn't as heavy-handed
17352 # as -z defs.
17353 no_undefined_flag_F77='${wl}-z,text'
17354 allow_undefined_flag_F77='${wl}-z,nodefs'
17355 archive_cmds_need_lc_F77=no
17356 hardcode_shlibpath_var_F77=no
17357 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
17358 hardcode_libdir_separator_F77=':'
17359 link_all_deplibs_F77=yes
17360 export_dynamic_flag_spec_F77='${wl}-Bexport'
17361 runpath_var='LD_RUN_PATH'
17363 if test "$GCC" = yes; then
17364 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17365 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17366 else
17367 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17368 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17372 uts4*)
17373 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17374 hardcode_libdir_flag_spec_F77='-L$libdir'
17375 hardcode_shlibpath_var_F77=no
17379 ld_shlibs_F77=no
17381 esac
17384 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
17385 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
17386 test "$ld_shlibs_F77" = no && can_build_shared=no
17389 # Do we need to explicitly link libc?
17391 case "x$archive_cmds_need_lc_F77" in
17392 x|xyes)
17393 # Assume -lc should be added
17394 archive_cmds_need_lc_F77=yes
17396 if test "$enable_shared" = yes && test "$GCC" = yes; then
17397 case $archive_cmds_F77 in
17398 *'~'*)
17399 # FIXME: we may have to deal with multi-command sequences.
17401 '$CC '*)
17402 # Test whether the compiler implicitly links with -lc since on some
17403 # systems, -lgcc has to come before -lc. If gcc already passes -lc
17404 # to ld, don't add -lc before -lgcc.
17405 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
17406 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
17407 $rm conftest*
17408 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17410 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17411 (eval $ac_compile) 2>&5
17412 ac_status=$?
17413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17414 (exit $ac_status); } 2>conftest.err; then
17415 soname=conftest
17416 lib=conftest
17417 libobjs=conftest.$ac_objext
17418 deplibs=
17419 wl=$lt_prog_compiler_wl_F77
17420 pic_flag=$lt_prog_compiler_pic_F77
17421 compiler_flags=-v
17422 linker_flags=-v
17423 verstring=
17424 output_objdir=.
17425 libname=conftest
17426 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
17427 allow_undefined_flag_F77=
17428 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
17429 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17430 ac_status=$?
17431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17432 (exit $ac_status); }
17433 then
17434 archive_cmds_need_lc_F77=no
17435 else
17436 archive_cmds_need_lc_F77=yes
17438 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
17439 else
17440 cat conftest.err 1>&5
17442 $rm conftest*
17443 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
17444 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
17446 esac
17449 esac
17451 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17452 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
17453 library_names_spec=
17454 libname_spec='lib$name'
17455 soname_spec=
17456 shrext_cmds=".so"
17457 postinstall_cmds=
17458 postuninstall_cmds=
17459 finish_cmds=
17460 finish_eval=
17461 shlibpath_var=
17462 shlibpath_overrides_runpath=unknown
17463 version_type=none
17464 dynamic_linker="$host_os ld.so"
17465 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17467 need_lib_prefix=unknown
17468 hardcode_into_libs=no
17470 # when you set need_version to no, make sure it does not cause -set_version
17471 # flags to be left without arguments
17472 need_version=unknown
17474 case $host_os in
17475 aix3*)
17476 version_type=linux
17477 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17478 shlibpath_var=LIBPATH
17480 # AIX 3 has no versioning support, so we append a major version to the name.
17481 soname_spec='${libname}${release}${shared_ext}$major'
17484 aix[4-9]*)
17485 version_type=linux
17486 need_lib_prefix=no
17487 need_version=no
17488 hardcode_into_libs=yes
17489 if test "$host_cpu" = ia64; then
17490 # AIX 5 supports IA64
17491 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17492 shlibpath_var=LD_LIBRARY_PATH
17493 else
17494 # With GCC up to 2.95.x, collect2 would create an import file
17495 # for dependence libraries. The import file would start with
17496 # the line `#! .'. This would cause the generated library to
17497 # depend on `.', always an invalid library. This was fixed in
17498 # development snapshots of GCC prior to 3.0.
17499 case $host_os in
17500 aix4 | aix4.[01] | aix4.[01].*)
17501 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17502 echo ' yes '
17503 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17505 else
17506 can_build_shared=no
17509 esac
17510 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17511 # soname into executable. Probably we can add versioning support to
17512 # collect2, so additional links can be useful in future.
17513 if test "$aix_use_runtimelinking" = yes; then
17514 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17515 # instead of lib<name>.a to let people know that these are not
17516 # typical AIX shared libraries.
17517 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17518 else
17519 # We preserve .a as extension for shared libraries through AIX4.2
17520 # and later when we are not doing run time linking.
17521 library_names_spec='${libname}${release}.a $libname.a'
17522 soname_spec='${libname}${release}${shared_ext}$major'
17524 shlibpath_var=LIBPATH
17528 amigaos*)
17529 library_names_spec='$libname.ixlibrary $libname.a'
17530 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17531 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'
17534 beos*)
17535 library_names_spec='${libname}${shared_ext}'
17536 dynamic_linker="$host_os ld.so"
17537 shlibpath_var=LIBRARY_PATH
17540 bsdi[45]*)
17541 version_type=linux
17542 need_version=no
17543 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17544 soname_spec='${libname}${release}${shared_ext}$major'
17545 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17546 shlibpath_var=LD_LIBRARY_PATH
17547 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17548 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17549 # the default ld.so.conf also contains /usr/contrib/lib and
17550 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17551 # libtool to hard-code these into programs
17554 cygwin* | mingw* | pw32*)
17555 version_type=windows
17556 shrext_cmds=".dll"
17557 need_version=no
17558 need_lib_prefix=no
17560 case $GCC,$host_os in
17561 yes,cygwin* | yes,mingw* | yes,pw32*)
17562 library_names_spec='$libname.dll.a'
17563 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17564 postinstall_cmds='base_file=`basename \${file}`~
17565 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17566 dldir=$destdir/`dirname \$dlpath`~
17567 test -d \$dldir || mkdir -p \$dldir~
17568 $install_prog $dir/$dlname \$dldir/$dlname~
17569 chmod a+x \$dldir/$dlname'
17570 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17571 dlpath=$dir/\$dldll~
17572 $rm \$dlpath'
17573 shlibpath_overrides_runpath=yes
17575 case $host_os in
17576 cygwin*)
17577 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17578 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17579 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17581 mingw*)
17582 # MinGW DLLs use traditional 'lib' prefix
17583 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17584 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17585 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17586 # It is most probably a Windows format PATH printed by
17587 # mingw gcc, but we are running on Cygwin. Gcc prints its search
17588 # path with ; separators, and with drive letters. We can handle the
17589 # drive letters (cygwin fileutils understands them), so leave them,
17590 # especially as we might pass files found there to a mingw objdump,
17591 # which wouldn't understand a cygwinified path. Ahh.
17592 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17593 else
17594 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17597 pw32*)
17598 # pw32 DLLs use 'pw' prefix rather than 'lib'
17599 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17601 esac
17605 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17607 esac
17608 dynamic_linker='Win32 ld.exe'
17609 # FIXME: first we should search . and the directory the executable is in
17610 shlibpath_var=PATH
17613 darwin* | rhapsody*)
17614 dynamic_linker="$host_os dyld"
17615 version_type=darwin
17616 need_lib_prefix=no
17617 need_version=no
17618 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17619 soname_spec='${libname}${release}${major}$shared_ext'
17620 shlibpath_overrides_runpath=yes
17621 shlibpath_var=DYLD_LIBRARY_PATH
17622 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17624 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17627 dgux*)
17628 version_type=linux
17629 need_lib_prefix=no
17630 need_version=no
17631 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17632 soname_spec='${libname}${release}${shared_ext}$major'
17633 shlibpath_var=LD_LIBRARY_PATH
17636 freebsd1*)
17637 dynamic_linker=no
17640 freebsd* | dragonfly*)
17641 # DragonFly does not have aout. When/if they implement a new
17642 # versioning mechanism, adjust this.
17643 if test -x /usr/bin/objformat; then
17644 objformat=`/usr/bin/objformat`
17645 else
17646 case $host_os in
17647 freebsd[123]*) objformat=aout ;;
17648 *) objformat=elf ;;
17649 esac
17651 version_type=freebsd-$objformat
17652 case $version_type in
17653 freebsd-elf*)
17654 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17655 need_version=no
17656 need_lib_prefix=no
17658 freebsd-*)
17659 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17660 need_version=yes
17662 esac
17663 shlibpath_var=LD_LIBRARY_PATH
17664 case $host_os in
17665 freebsd2*)
17666 shlibpath_overrides_runpath=yes
17668 freebsd3.[01]* | freebsdelf3.[01]*)
17669 shlibpath_overrides_runpath=yes
17670 hardcode_into_libs=yes
17672 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17673 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17674 shlibpath_overrides_runpath=no
17675 hardcode_into_libs=yes
17677 *) # from 4.6 on, and DragonFly
17678 shlibpath_overrides_runpath=yes
17679 hardcode_into_libs=yes
17681 esac
17684 gnu*)
17685 version_type=linux
17686 need_lib_prefix=no
17687 need_version=no
17688 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17689 soname_spec='${libname}${release}${shared_ext}$major'
17690 shlibpath_var=LD_LIBRARY_PATH
17691 hardcode_into_libs=yes
17694 hpux9* | hpux10* | hpux11*)
17695 # Give a soname corresponding to the major version so that dld.sl refuses to
17696 # link against other versions.
17697 version_type=sunos
17698 need_lib_prefix=no
17699 need_version=no
17700 case $host_cpu in
17701 ia64*)
17702 shrext_cmds='.so'
17703 hardcode_into_libs=yes
17704 dynamic_linker="$host_os dld.so"
17705 shlibpath_var=LD_LIBRARY_PATH
17706 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17707 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17708 soname_spec='${libname}${release}${shared_ext}$major'
17709 if test "X$HPUX_IA64_MODE" = X32; then
17710 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17711 else
17712 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17714 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17716 hppa*64*)
17717 shrext_cmds='.sl'
17718 hardcode_into_libs=yes
17719 dynamic_linker="$host_os dld.sl"
17720 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17721 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17722 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17723 soname_spec='${libname}${release}${shared_ext}$major'
17724 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17725 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17728 shrext_cmds='.sl'
17729 dynamic_linker="$host_os dld.sl"
17730 shlibpath_var=SHLIB_PATH
17731 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17732 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17733 soname_spec='${libname}${release}${shared_ext}$major'
17735 esac
17736 # HP-UX runs *really* slowly unless shared libraries are mode 555.
17737 postinstall_cmds='chmod 555 $lib'
17740 interix[3-9]*)
17741 version_type=linux
17742 need_lib_prefix=no
17743 need_version=no
17744 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17745 soname_spec='${libname}${release}${shared_ext}$major'
17746 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17747 shlibpath_var=LD_LIBRARY_PATH
17748 shlibpath_overrides_runpath=no
17749 hardcode_into_libs=yes
17752 irix5* | irix6* | nonstopux*)
17753 case $host_os in
17754 nonstopux*) version_type=nonstopux ;;
17756 if test "$lt_cv_prog_gnu_ld" = yes; then
17757 version_type=linux
17758 else
17759 version_type=irix
17760 fi ;;
17761 esac
17762 need_lib_prefix=no
17763 need_version=no
17764 soname_spec='${libname}${release}${shared_ext}$major'
17765 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17766 case $host_os in
17767 irix5* | nonstopux*)
17768 libsuff= shlibsuff=
17771 case $LD in # libtool.m4 will add one of these switches to LD
17772 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17773 libsuff= shlibsuff= libmagic=32-bit;;
17774 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17775 libsuff=32 shlibsuff=N32 libmagic=N32;;
17776 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17777 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17778 *) libsuff= shlibsuff= libmagic=never-match;;
17779 esac
17781 esac
17782 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17783 shlibpath_overrides_runpath=no
17784 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17785 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17786 hardcode_into_libs=yes
17789 # No shared lib support for Linux oldld, aout, or coff.
17790 linux*oldld* | linux*aout* | linux*coff*)
17791 dynamic_linker=no
17794 # This must be Linux ELF.
17795 linux* | k*bsd*-gnu)
17796 version_type=linux
17797 need_lib_prefix=no
17798 need_version=no
17799 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17800 soname_spec='${libname}${release}${shared_ext}$major'
17801 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17802 shlibpath_var=LD_LIBRARY_PATH
17803 shlibpath_overrides_runpath=no
17804 # This implies no fast_install, which is unacceptable.
17805 # Some rework will be needed to allow for fast_install
17806 # before this can be enabled.
17807 hardcode_into_libs=yes
17809 # Append ld.so.conf contents to the search path
17810 if test -f /etc/ld.so.conf; then
17811 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
17812 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17815 # We used to test for /lib/ld.so.1 and disable shared libraries on
17816 # powerpc, because MkLinux only supported shared libraries with the
17817 # GNU dynamic linker. Since this was broken with cross compilers,
17818 # most powerpc-linux boxes support dynamic linking these days and
17819 # people can always --disable-shared, the test was removed, and we
17820 # assume the GNU/Linux dynamic linker is in use.
17821 dynamic_linker='GNU/Linux ld.so'
17824 netbsdelf*-gnu)
17825 version_type=linux
17826 need_lib_prefix=no
17827 need_version=no
17828 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17829 soname_spec='${libname}${release}${shared_ext}$major'
17830 shlibpath_var=LD_LIBRARY_PATH
17831 shlibpath_overrides_runpath=no
17832 hardcode_into_libs=yes
17833 dynamic_linker='NetBSD ld.elf_so'
17836 netbsd*)
17837 version_type=sunos
17838 need_lib_prefix=no
17839 need_version=no
17840 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17841 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17842 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17843 dynamic_linker='NetBSD (a.out) ld.so'
17844 else
17845 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17846 soname_spec='${libname}${release}${shared_ext}$major'
17847 dynamic_linker='NetBSD ld.elf_so'
17849 shlibpath_var=LD_LIBRARY_PATH
17850 shlibpath_overrides_runpath=yes
17851 hardcode_into_libs=yes
17854 newsos6)
17855 version_type=linux
17856 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17857 shlibpath_var=LD_LIBRARY_PATH
17858 shlibpath_overrides_runpath=yes
17861 nto-qnx*)
17862 version_type=linux
17863 need_lib_prefix=no
17864 need_version=no
17865 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17866 soname_spec='${libname}${release}${shared_ext}$major'
17867 shlibpath_var=LD_LIBRARY_PATH
17868 shlibpath_overrides_runpath=yes
17871 openbsd*)
17872 version_type=sunos
17873 sys_lib_dlsearch_path_spec="/usr/lib"
17874 need_lib_prefix=no
17875 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17876 case $host_os in
17877 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
17878 *) need_version=no ;;
17879 esac
17880 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17881 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17882 shlibpath_var=LD_LIBRARY_PATH
17883 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17884 case $host_os in
17885 openbsd2.[89] | openbsd2.[89].*)
17886 shlibpath_overrides_runpath=no
17889 shlibpath_overrides_runpath=yes
17891 esac
17892 else
17893 shlibpath_overrides_runpath=yes
17897 os2*)
17898 libname_spec='$name'
17899 shrext_cmds=".dll"
17900 need_lib_prefix=no
17901 library_names_spec='$libname${shared_ext} $libname.a'
17902 dynamic_linker='OS/2 ld.exe'
17903 shlibpath_var=LIBPATH
17906 osf3* | osf4* | osf5*)
17907 version_type=osf
17908 need_lib_prefix=no
17909 need_version=no
17910 soname_spec='${libname}${release}${shared_ext}$major'
17911 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17912 shlibpath_var=LD_LIBRARY_PATH
17913 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17914 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17917 rdos*)
17918 dynamic_linker=no
17921 solaris*)
17922 version_type=linux
17923 need_lib_prefix=no
17924 need_version=no
17925 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17926 soname_spec='${libname}${release}${shared_ext}$major'
17927 shlibpath_var=LD_LIBRARY_PATH
17928 shlibpath_overrides_runpath=yes
17929 hardcode_into_libs=yes
17930 # ldd complains unless libraries are executable
17931 postinstall_cmds='chmod +x $lib'
17934 sunos4*)
17935 version_type=sunos
17936 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17937 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17938 shlibpath_var=LD_LIBRARY_PATH
17939 shlibpath_overrides_runpath=yes
17940 if test "$with_gnu_ld" = yes; then
17941 need_lib_prefix=no
17943 need_version=yes
17946 sysv4 | sysv4.3*)
17947 version_type=linux
17948 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17949 soname_spec='${libname}${release}${shared_ext}$major'
17950 shlibpath_var=LD_LIBRARY_PATH
17951 case $host_vendor in
17952 sni)
17953 shlibpath_overrides_runpath=no
17954 need_lib_prefix=no
17955 export_dynamic_flag_spec='${wl}-Blargedynsym'
17956 runpath_var=LD_RUN_PATH
17958 siemens)
17959 need_lib_prefix=no
17961 motorola)
17962 need_lib_prefix=no
17963 need_version=no
17964 shlibpath_overrides_runpath=no
17965 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17967 esac
17970 sysv4*MP*)
17971 if test -d /usr/nec ;then
17972 version_type=linux
17973 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17974 soname_spec='$libname${shared_ext}.$major'
17975 shlibpath_var=LD_LIBRARY_PATH
17979 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17980 version_type=freebsd-elf
17981 need_lib_prefix=no
17982 need_version=no
17983 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17984 soname_spec='${libname}${release}${shared_ext}$major'
17985 shlibpath_var=LD_LIBRARY_PATH
17986 hardcode_into_libs=yes
17987 if test "$with_gnu_ld" = yes; then
17988 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17989 shlibpath_overrides_runpath=no
17990 else
17991 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17992 shlibpath_overrides_runpath=yes
17993 case $host_os in
17994 sco3.2v5*)
17995 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17997 esac
17999 sys_lib_dlsearch_path_spec='/usr/lib'
18002 uts4*)
18003 version_type=linux
18004 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18005 soname_spec='${libname}${release}${shared_ext}$major'
18006 shlibpath_var=LD_LIBRARY_PATH
18010 dynamic_linker=no
18012 esac
18013 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18014 echo "${ECHO_T}$dynamic_linker" >&6; }
18015 test "$dynamic_linker" = no && can_build_shared=no
18017 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
18018 echo $ECHO_N "(cached) $ECHO_C" >&6
18019 else
18020 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
18023 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
18024 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
18025 echo $ECHO_N "(cached) $ECHO_C" >&6
18026 else
18027 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
18030 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
18032 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18033 if test "$GCC" = yes; then
18034 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18037 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18038 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
18039 hardcode_action_F77=
18040 if test -n "$hardcode_libdir_flag_spec_F77" || \
18041 test -n "$runpath_var_F77" || \
18042 test "X$hardcode_automatic_F77" = "Xyes" ; then
18044 # We can hardcode non-existant directories.
18045 if test "$hardcode_direct_F77" != no &&
18046 # If the only mechanism to avoid hardcoding is shlibpath_var, we
18047 # have to relink, otherwise we might link with an installed library
18048 # when we should be linking with a yet-to-be-installed one
18049 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
18050 test "$hardcode_minus_L_F77" != no; then
18051 # Linking always hardcodes the temporary library directory.
18052 hardcode_action_F77=relink
18053 else
18054 # We can link without hardcoding, and we can hardcode nonexisting dirs.
18055 hardcode_action_F77=immediate
18057 else
18058 # We cannot hardcode anything, or else we can only hardcode existing
18059 # directories.
18060 hardcode_action_F77=unsupported
18062 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
18063 echo "${ECHO_T}$hardcode_action_F77" >&6; }
18065 if test "$hardcode_action_F77" = relink; then
18066 # Fast installation is not supported
18067 enable_fast_install=no
18068 elif test "$shlibpath_overrides_runpath" = yes ||
18069 test "$enable_shared" = no; then
18070 # Fast installation is not necessary
18071 enable_fast_install=needless
18075 # The else clause should only fire when bootstrapping the
18076 # libtool distribution, otherwise you forgot to ship ltmain.sh
18077 # with your package, and you will get complaints that there are
18078 # no rules to generate ltmain.sh.
18079 if test -f "$ltmain"; then
18080 # See if we are running on zsh, and set the options which allow our commands through
18081 # without removal of \ escapes.
18082 if test -n "${ZSH_VERSION+set}" ; then
18083 setopt NO_GLOB_SUBST
18085 # Now quote all the things that may contain metacharacters while being
18086 # careful not to overquote the AC_SUBSTed values. We take copies of the
18087 # variables and quote the copies for generation of the libtool script.
18088 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18089 SED SHELL STRIP \
18090 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18091 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18092 deplibs_check_method reload_flag reload_cmds need_locks \
18093 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18094 lt_cv_sys_global_symbol_to_c_name_address \
18095 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18096 old_postinstall_cmds old_postuninstall_cmds \
18097 compiler_F77 \
18098 CC_F77 \
18099 LD_F77 \
18100 lt_prog_compiler_wl_F77 \
18101 lt_prog_compiler_pic_F77 \
18102 lt_prog_compiler_static_F77 \
18103 lt_prog_compiler_no_builtin_flag_F77 \
18104 export_dynamic_flag_spec_F77 \
18105 thread_safe_flag_spec_F77 \
18106 whole_archive_flag_spec_F77 \
18107 enable_shared_with_static_runtimes_F77 \
18108 old_archive_cmds_F77 \
18109 old_archive_from_new_cmds_F77 \
18110 predep_objects_F77 \
18111 postdep_objects_F77 \
18112 predeps_F77 \
18113 postdeps_F77 \
18114 compiler_lib_search_path_F77 \
18115 compiler_lib_search_dirs_F77 \
18116 archive_cmds_F77 \
18117 archive_expsym_cmds_F77 \
18118 postinstall_cmds_F77 \
18119 postuninstall_cmds_F77 \
18120 old_archive_from_expsyms_cmds_F77 \
18121 allow_undefined_flag_F77 \
18122 no_undefined_flag_F77 \
18123 export_symbols_cmds_F77 \
18124 hardcode_libdir_flag_spec_F77 \
18125 hardcode_libdir_flag_spec_ld_F77 \
18126 hardcode_libdir_separator_F77 \
18127 hardcode_automatic_F77 \
18128 module_cmds_F77 \
18129 module_expsym_cmds_F77 \
18130 lt_cv_prog_compiler_c_o_F77 \
18131 fix_srcfile_path_F77 \
18132 exclude_expsyms_F77 \
18133 include_expsyms_F77; do
18135 case $var in
18136 old_archive_cmds_F77 | \
18137 old_archive_from_new_cmds_F77 | \
18138 archive_cmds_F77 | \
18139 archive_expsym_cmds_F77 | \
18140 module_cmds_F77 | \
18141 module_expsym_cmds_F77 | \
18142 old_archive_from_expsyms_cmds_F77 | \
18143 export_symbols_cmds_F77 | \
18144 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18145 postinstall_cmds | postuninstall_cmds | \
18146 old_postinstall_cmds | old_postuninstall_cmds | \
18147 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18148 # Double-quote double-evaled strings.
18149 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18152 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18154 esac
18155 done
18157 case $lt_echo in
18158 *'\$0 --fallback-echo"')
18159 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18161 esac
18163 cfgfile="$ofile"
18165 cat <<__EOF__ >> "$cfgfile"
18166 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18168 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18170 # Shell to use when invoking shell scripts.
18171 SHELL=$lt_SHELL
18173 # Whether or not to build shared libraries.
18174 build_libtool_libs=$enable_shared
18176 # Whether or not to build static libraries.
18177 build_old_libs=$enable_static
18179 # Whether or not to add -lc for building shared libraries.
18180 build_libtool_need_lc=$archive_cmds_need_lc_F77
18182 # Whether or not to disallow shared libs when runtime libs are static
18183 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
18185 # Whether or not to optimize for fast installation.
18186 fast_install=$enable_fast_install
18188 # The host system.
18189 host_alias=$host_alias
18190 host=$host
18191 host_os=$host_os
18193 # The build system.
18194 build_alias=$build_alias
18195 build=$build
18196 build_os=$build_os
18198 # An echo program that does not interpret backslashes.
18199 echo=$lt_echo
18201 # The archiver.
18202 AR=$lt_AR
18203 AR_FLAGS=$lt_AR_FLAGS
18205 # A C compiler.
18206 LTCC=$lt_LTCC
18208 # LTCC compiler flags.
18209 LTCFLAGS=$lt_LTCFLAGS
18211 # A language-specific compiler.
18212 CC=$lt_compiler_F77
18214 # Is the compiler the GNU C compiler?
18215 with_gcc=$GCC_F77
18217 # An ERE matcher.
18218 EGREP=$lt_EGREP
18220 # The linker used to build libraries.
18221 LD=$lt_LD_F77
18223 # Whether we need hard or soft links.
18224 LN_S=$lt_LN_S
18226 # A BSD-compatible nm program.
18227 NM=$lt_NM
18229 # A symbol stripping program
18230 STRIP=$lt_STRIP
18232 # Used to examine libraries when file_magic_cmd begins "file"
18233 MAGIC_CMD=$MAGIC_CMD
18235 # Used on cygwin: DLL creation program.
18236 DLLTOOL="$DLLTOOL"
18238 # Used on cygwin: object dumper.
18239 OBJDUMP="$OBJDUMP"
18241 # Used on cygwin: assembler.
18242 AS="$AS"
18244 # The name of the directory that contains temporary libtool files.
18245 objdir=$objdir
18247 # How to create reloadable object files.
18248 reload_flag=$lt_reload_flag
18249 reload_cmds=$lt_reload_cmds
18251 # How to pass a linker flag through the compiler.
18252 wl=$lt_lt_prog_compiler_wl_F77
18254 # Object file suffix (normally "o").
18255 objext="$ac_objext"
18257 # Old archive suffix (normally "a").
18258 libext="$libext"
18260 # Shared library suffix (normally ".so").
18261 shrext_cmds='$shrext_cmds'
18263 # Executable file suffix (normally "").
18264 exeext="$exeext"
18266 # Additional compiler flags for building library objects.
18267 pic_flag=$lt_lt_prog_compiler_pic_F77
18268 pic_mode=$pic_mode
18270 # What is the maximum length of a command?
18271 max_cmd_len=$lt_cv_sys_max_cmd_len
18273 # Does compiler simultaneously support -c and -o options?
18274 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
18276 # Must we lock files when doing compilation?
18277 need_locks=$lt_need_locks
18279 # Do we need the lib prefix for modules?
18280 need_lib_prefix=$need_lib_prefix
18282 # Do we need a version for libraries?
18283 need_version=$need_version
18285 # Whether dlopen is supported.
18286 dlopen_support=$enable_dlopen
18288 # Whether dlopen of programs is supported.
18289 dlopen_self=$enable_dlopen_self
18291 # Whether dlopen of statically linked programs is supported.
18292 dlopen_self_static=$enable_dlopen_self_static
18294 # Compiler flag to prevent dynamic linking.
18295 link_static_flag=$lt_lt_prog_compiler_static_F77
18297 # Compiler flag to turn off builtin functions.
18298 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
18300 # Compiler flag to allow reflexive dlopens.
18301 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
18303 # Compiler flag to generate shared objects directly from archives.
18304 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
18306 # Compiler flag to generate thread-safe objects.
18307 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
18309 # Library versioning type.
18310 version_type=$version_type
18312 # Format of library name prefix.
18313 libname_spec=$lt_libname_spec
18315 # List of archive names. First name is the real one, the rest are links.
18316 # The last name is the one that the linker finds with -lNAME.
18317 library_names_spec=$lt_library_names_spec
18319 # The coded name of the library, if different from the real name.
18320 soname_spec=$lt_soname_spec
18322 # Commands used to build and install an old-style archive.
18323 RANLIB=$lt_RANLIB
18324 old_archive_cmds=$lt_old_archive_cmds_F77
18325 old_postinstall_cmds=$lt_old_postinstall_cmds
18326 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18328 # Create an old-style archive from a shared archive.
18329 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
18331 # Create a temporary old-style archive to link instead of a shared archive.
18332 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
18334 # Commands used to build and install a shared archive.
18335 archive_cmds=$lt_archive_cmds_F77
18336 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
18337 postinstall_cmds=$lt_postinstall_cmds
18338 postuninstall_cmds=$lt_postuninstall_cmds
18340 # Commands used to build a loadable module (assumed same as above if empty)
18341 module_cmds=$lt_module_cmds_F77
18342 module_expsym_cmds=$lt_module_expsym_cmds_F77
18344 # Commands to strip libraries.
18345 old_striplib=$lt_old_striplib
18346 striplib=$lt_striplib
18348 # Dependencies to place before the objects being linked to create a
18349 # shared library.
18350 predep_objects=$lt_predep_objects_F77
18352 # Dependencies to place after the objects being linked to create a
18353 # shared library.
18354 postdep_objects=$lt_postdep_objects_F77
18356 # Dependencies to place before the objects being linked to create a
18357 # shared library.
18358 predeps=$lt_predeps_F77
18360 # Dependencies to place after the objects being linked to create a
18361 # shared library.
18362 postdeps=$lt_postdeps_F77
18364 # The directories searched by this compiler when creating a shared
18365 # library
18366 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_F77
18368 # The library search path used internally by the compiler when linking
18369 # a shared library.
18370 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
18372 # Method to check whether dependent libraries are shared objects.
18373 deplibs_check_method=$lt_deplibs_check_method
18375 # Command to use when deplibs_check_method == file_magic.
18376 file_magic_cmd=$lt_file_magic_cmd
18378 # Flag that allows shared libraries with undefined symbols to be built.
18379 allow_undefined_flag=$lt_allow_undefined_flag_F77
18381 # Flag that forces no undefined symbols.
18382 no_undefined_flag=$lt_no_undefined_flag_F77
18384 # Commands used to finish a libtool library installation in a directory.
18385 finish_cmds=$lt_finish_cmds
18387 # Same as above, but a single script fragment to be evaled but not shown.
18388 finish_eval=$lt_finish_eval
18390 # Take the output of nm and produce a listing of raw symbols and C names.
18391 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18393 # Transform the output of nm in a proper C declaration
18394 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18396 # Transform the output of nm in a C name address pair
18397 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18399 # This is the shared library runtime path variable.
18400 runpath_var=$runpath_var
18402 # This is the shared library path variable.
18403 shlibpath_var=$shlibpath_var
18405 # Is shlibpath searched before the hard-coded library search path?
18406 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18408 # How to hardcode a shared library path into an executable.
18409 hardcode_action=$hardcode_action_F77
18411 # Whether we should hardcode library paths into libraries.
18412 hardcode_into_libs=$hardcode_into_libs
18414 # Flag to hardcode \$libdir into a binary during linking.
18415 # This must work even if \$libdir does not exist.
18416 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
18418 # If ld is used when linking, flag to hardcode \$libdir into
18419 # a binary during linking. This must work even if \$libdir does
18420 # not exist.
18421 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
18423 # Whether we need a single -rpath flag with a separated argument.
18424 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
18426 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18427 # resulting binary.
18428 hardcode_direct=$hardcode_direct_F77
18430 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18431 # resulting binary.
18432 hardcode_minus_L=$hardcode_minus_L_F77
18434 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18435 # the resulting binary.
18436 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
18438 # Set to yes if building a shared library automatically hardcodes DIR into the library
18439 # and all subsequent libraries and executables linked against it.
18440 hardcode_automatic=$hardcode_automatic_F77
18442 # Variables whose values should be saved in libtool wrapper scripts and
18443 # restored at relink time.
18444 variables_saved_for_relink="$variables_saved_for_relink"
18446 # Whether libtool must link a program against all its dependency libraries.
18447 link_all_deplibs=$link_all_deplibs_F77
18449 # Compile-time system search path for libraries
18450 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18452 # Run-time system search path for libraries
18453 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18455 # Fix the shell variable \$srcfile for the compiler.
18456 fix_srcfile_path=$lt_fix_srcfile_path
18458 # Set to yes if exported symbols are required.
18459 always_export_symbols=$always_export_symbols_F77
18461 # The commands to list exported symbols.
18462 export_symbols_cmds=$lt_export_symbols_cmds_F77
18464 # The commands to extract the exported symbol list from a shared archive.
18465 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18467 # Symbols that should not be listed in the preloaded symbols.
18468 exclude_expsyms=$lt_exclude_expsyms_F77
18470 # Symbols that must always be exported.
18471 include_expsyms=$lt_include_expsyms_F77
18473 # ### END LIBTOOL TAG CONFIG: $tagname
18475 __EOF__
18478 else
18479 # If there is no Makefile yet, we rely on a make rule to execute
18480 # `config.status --recheck' to rerun these tests and create the
18481 # libtool script then.
18482 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18483 if test -f "$ltmain_in"; then
18484 test -f Makefile && make "$ltmain"
18489 ac_ext=c
18490 ac_cpp='$CPP $CPPFLAGS'
18491 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18492 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18493 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18495 CC="$lt_save_CC"
18497 else
18498 tagname=""
18502 GCJ)
18503 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
18506 # Source file extension for Java test sources.
18507 ac_ext=java
18509 # Object file extension for compiled Java test sources.
18510 objext=o
18511 objext_GCJ=$objext
18513 # Code to be used in simple compile tests
18514 lt_simple_compile_test_code="class foo {}"
18516 # Code to be used in simple link tests
18517 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }'
18519 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18521 # If no C compiler was specified, use CC.
18522 LTCC=${LTCC-"$CC"}
18524 # If no C compiler flags were specified, use CFLAGS.
18525 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18527 # Allow CC to be a program name with arguments.
18528 compiler=$CC
18531 # save warnings/boilerplate of simple test code
18532 ac_outfile=conftest.$ac_objext
18533 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
18534 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18535 _lt_compiler_boilerplate=`cat conftest.err`
18536 $rm conftest*
18538 ac_outfile=conftest.$ac_objext
18539 echo "$lt_simple_link_test_code" >conftest.$ac_ext
18540 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18541 _lt_linker_boilerplate=`cat conftest.err`
18542 $rm -r conftest*
18545 # Allow CC to be a program name with arguments.
18546 lt_save_CC="$CC"
18547 CC=${GCJ-"gcj"}
18548 compiler=$CC
18549 compiler_GCJ=$CC
18550 for cc_temp in $compiler""; do
18551 case $cc_temp in
18552 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18553 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18554 \-*) ;;
18555 *) break;;
18556 esac
18557 done
18558 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18561 # GCJ did not exist at the time GCC didn't implicitly link libc in.
18562 archive_cmds_need_lc_GCJ=no
18564 old_archive_cmds_GCJ=$old_archive_cmds
18567 lt_prog_compiler_no_builtin_flag_GCJ=
18569 if test "$GCC" = yes; then
18570 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
18573 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
18574 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
18575 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
18576 echo $ECHO_N "(cached) $ECHO_C" >&6
18577 else
18578 lt_cv_prog_compiler_rtti_exceptions=no
18579 ac_outfile=conftest.$ac_objext
18580 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18581 lt_compiler_flag="-fno-rtti -fno-exceptions"
18582 # Insert the option either (1) after the last *FLAGS variable, or
18583 # (2) before a word containing "conftest.", or (3) at the end.
18584 # Note that $ac_compile itself does not contain backslashes and begins
18585 # with a dollar sign (not a hyphen), so the echo should work correctly.
18586 # The option is referenced via a variable to avoid confusing sed.
18587 lt_compile=`echo "$ac_compile" | $SED \
18588 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18589 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18590 -e 's:$: $lt_compiler_flag:'`
18591 (eval echo "\"\$as_me:18591: $lt_compile\"" >&5)
18592 (eval "$lt_compile" 2>conftest.err)
18593 ac_status=$?
18594 cat conftest.err >&5
18595 echo "$as_me:18595: \$? = $ac_status" >&5
18596 if (exit $ac_status) && test -s "$ac_outfile"; then
18597 # The compiler can only warn and ignore the option if not recognized
18598 # So say no if there are warnings other than the usual output.
18599 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
18600 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18601 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
18602 lt_cv_prog_compiler_rtti_exceptions=yes
18605 $rm conftest*
18608 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
18609 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
18611 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
18612 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
18613 else
18619 lt_prog_compiler_wl_GCJ=
18620 lt_prog_compiler_pic_GCJ=
18621 lt_prog_compiler_static_GCJ=
18623 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
18624 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
18626 if test "$GCC" = yes; then
18627 lt_prog_compiler_wl_GCJ='-Wl,'
18628 lt_prog_compiler_static_GCJ='-static'
18630 case $host_os in
18631 aix*)
18632 # All AIX code is PIC.
18633 if test "$host_cpu" = ia64; then
18634 # AIX 5 now supports IA64 processor
18635 lt_prog_compiler_static_GCJ='-Bstatic'
18639 amigaos*)
18640 # FIXME: we need at least 68020 code to build shared libraries, but
18641 # adding the `-m68020' flag to GCC prevents building anything better,
18642 # like `-m68040'.
18643 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
18646 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
18647 # PIC is the default for these OSes.
18650 mingw* | cygwin* | pw32* | os2*)
18651 # This hack is so that the source file can tell whether it is being
18652 # built for inclusion in a dll (and should export symbols for example).
18653 # Although the cygwin gcc ignores -fPIC, still need this for old-style
18654 # (--disable-auto-import) libraries
18658 darwin* | rhapsody*)
18659 # PIC is the default on this platform
18660 # Common symbols not allowed in MH_DYLIB files
18661 lt_prog_compiler_pic_GCJ='-fno-common'
18664 interix[3-9]*)
18665 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
18666 # Instead, we relocate shared libraries at runtime.
18669 msdosdjgpp*)
18670 # Just because we use GCC doesn't mean we suddenly get shared libraries
18671 # on systems that don't support them.
18672 lt_prog_compiler_can_build_shared_GCJ=no
18673 enable_shared=no
18676 sysv4*MP*)
18677 if test -d /usr/nec; then
18678 lt_prog_compiler_pic_GCJ=-Kconform_pic
18682 hpux*)
18683 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
18684 # not for PA HP-UX.
18685 case $host_cpu in
18686 hppa*64*|ia64*)
18687 # +Z the default
18690 lt_prog_compiler_pic_GCJ='-fPIC'
18692 esac
18696 lt_prog_compiler_pic_GCJ='-fPIC'
18698 esac
18699 else
18700 # PORTME Check for flag to pass linker flags through the system compiler.
18701 case $host_os in
18702 aix*)
18703 lt_prog_compiler_wl_GCJ='-Wl,'
18704 if test "$host_cpu" = ia64; then
18705 # AIX 5 now supports IA64 processor
18706 lt_prog_compiler_static_GCJ='-Bstatic'
18707 else
18708 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
18711 darwin*)
18712 # PIC is the default on this platform
18713 # Common symbols not allowed in MH_DYLIB files
18714 case $cc_basename in
18715 xlc*)
18716 lt_prog_compiler_pic_GCJ='-qnocommon'
18717 lt_prog_compiler_wl_GCJ='-Wl,'
18719 esac
18722 mingw* | cygwin* | pw32* | os2*)
18723 # This hack is so that the source file can tell whether it is being
18724 # built for inclusion in a dll (and should export symbols for example).
18728 hpux9* | hpux10* | hpux11*)
18729 lt_prog_compiler_wl_GCJ='-Wl,'
18730 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
18731 # not for PA HP-UX.
18732 case $host_cpu in
18733 hppa*64*|ia64*)
18734 # +Z the default
18737 lt_prog_compiler_pic_GCJ='+Z'
18739 esac
18740 # Is there a better lt_prog_compiler_static that works with the bundled CC?
18741 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
18744 irix5* | irix6* | nonstopux*)
18745 lt_prog_compiler_wl_GCJ='-Wl,'
18746 # PIC (with -KPIC) is the default.
18747 lt_prog_compiler_static_GCJ='-non_shared'
18750 newsos6)
18751 lt_prog_compiler_pic_GCJ='-KPIC'
18752 lt_prog_compiler_static_GCJ='-Bstatic'
18755 linux* | k*bsd*-gnu)
18756 case $cc_basename in
18757 icc* | ecc*)
18758 lt_prog_compiler_wl_GCJ='-Wl,'
18759 lt_prog_compiler_pic_GCJ='-KPIC'
18760 lt_prog_compiler_static_GCJ='-static'
18762 pgcc* | pgf77* | pgf90* | pgf95*)
18763 # Portland Group compilers (*not* the Pentium gcc compiler,
18764 # which looks to be a dead project)
18765 lt_prog_compiler_wl_GCJ='-Wl,'
18766 lt_prog_compiler_pic_GCJ='-fpic'
18767 lt_prog_compiler_static_GCJ='-Bstatic'
18769 ccc*)
18770 lt_prog_compiler_wl_GCJ='-Wl,'
18771 # All Alpha code is PIC.
18772 lt_prog_compiler_static_GCJ='-non_shared'
18775 case `$CC -V 2>&1 | sed 5q` in
18776 *Sun\ C*)
18777 # Sun C 5.9
18778 lt_prog_compiler_pic_GCJ='-KPIC'
18779 lt_prog_compiler_static_GCJ='-Bstatic'
18780 lt_prog_compiler_wl_GCJ='-Wl,'
18782 *Sun\ F*)
18783 # Sun Fortran 8.3 passes all unrecognized flags to the linker
18784 lt_prog_compiler_pic_GCJ='-KPIC'
18785 lt_prog_compiler_static_GCJ='-Bstatic'
18786 lt_prog_compiler_wl_GCJ=''
18788 esac
18790 esac
18793 osf3* | osf4* | osf5*)
18794 lt_prog_compiler_wl_GCJ='-Wl,'
18795 # All OSF/1 code is PIC.
18796 lt_prog_compiler_static_GCJ='-non_shared'
18799 rdos*)
18800 lt_prog_compiler_static_GCJ='-non_shared'
18803 solaris*)
18804 lt_prog_compiler_pic_GCJ='-KPIC'
18805 lt_prog_compiler_static_GCJ='-Bstatic'
18806 case $cc_basename in
18807 f77* | f90* | f95*)
18808 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
18810 lt_prog_compiler_wl_GCJ='-Wl,';;
18811 esac
18814 sunos4*)
18815 lt_prog_compiler_wl_GCJ='-Qoption ld '
18816 lt_prog_compiler_pic_GCJ='-PIC'
18817 lt_prog_compiler_static_GCJ='-Bstatic'
18820 sysv4 | sysv4.2uw2* | sysv4.3*)
18821 lt_prog_compiler_wl_GCJ='-Wl,'
18822 lt_prog_compiler_pic_GCJ='-KPIC'
18823 lt_prog_compiler_static_GCJ='-Bstatic'
18826 sysv4*MP*)
18827 if test -d /usr/nec ;then
18828 lt_prog_compiler_pic_GCJ='-Kconform_pic'
18829 lt_prog_compiler_static_GCJ='-Bstatic'
18833 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
18834 lt_prog_compiler_wl_GCJ='-Wl,'
18835 lt_prog_compiler_pic_GCJ='-KPIC'
18836 lt_prog_compiler_static_GCJ='-Bstatic'
18839 unicos*)
18840 lt_prog_compiler_wl_GCJ='-Wl,'
18841 lt_prog_compiler_can_build_shared_GCJ=no
18844 uts4*)
18845 lt_prog_compiler_pic_GCJ='-pic'
18846 lt_prog_compiler_static_GCJ='-Bstatic'
18850 lt_prog_compiler_can_build_shared_GCJ=no
18852 esac
18855 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
18856 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
18859 # Check to make sure the PIC flag actually works.
18861 if test -n "$lt_prog_compiler_pic_GCJ"; then
18863 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
18864 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
18865 if test "${lt_cv_prog_compiler_pic_works_GCJ+set}" = set; then
18866 echo $ECHO_N "(cached) $ECHO_C" >&6
18867 else
18868 lt_cv_prog_compiler_pic_works_GCJ=no
18869 ac_outfile=conftest.$ac_objext
18870 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18871 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
18872 # Insert the option either (1) after the last *FLAGS variable, or
18873 # (2) before a word containing "conftest.", or (3) at the end.
18874 # Note that $ac_compile itself does not contain backslashes and begins
18875 # with a dollar sign (not a hyphen), so the echo should work correctly.
18876 # The option is referenced via a variable to avoid confusing sed.
18877 lt_compile=`echo "$ac_compile" | $SED \
18878 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18879 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18880 -e 's:$: $lt_compiler_flag:'`
18881 (eval echo "\"\$as_me:18881: $lt_compile\"" >&5)
18882 (eval "$lt_compile" 2>conftest.err)
18883 ac_status=$?
18884 cat conftest.err >&5
18885 echo "$as_me:18885: \$? = $ac_status" >&5
18886 if (exit $ac_status) && test -s "$ac_outfile"; then
18887 # The compiler can only warn and ignore the option if not recognized
18888 # So say no if there are warnings other than the usual output.
18889 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
18890 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18891 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
18892 lt_cv_prog_compiler_pic_works_GCJ=yes
18895 $rm conftest*
18898 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_GCJ" >&5
18899 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_GCJ" >&6; }
18901 if test x"$lt_cv_prog_compiler_pic_works_GCJ" = xyes; then
18902 case $lt_prog_compiler_pic_GCJ in
18903 "" | " "*) ;;
18904 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
18905 esac
18906 else
18907 lt_prog_compiler_pic_GCJ=
18908 lt_prog_compiler_can_build_shared_GCJ=no
18912 case $host_os in
18913 # For platforms which do not support PIC, -DPIC is meaningless:
18914 *djgpp*)
18915 lt_prog_compiler_pic_GCJ=
18918 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
18920 esac
18923 # Check to make sure the static flag actually works.
18925 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
18926 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
18927 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
18928 if test "${lt_cv_prog_compiler_static_works_GCJ+set}" = set; then
18929 echo $ECHO_N "(cached) $ECHO_C" >&6
18930 else
18931 lt_cv_prog_compiler_static_works_GCJ=no
18932 save_LDFLAGS="$LDFLAGS"
18933 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
18934 echo "$lt_simple_link_test_code" > conftest.$ac_ext
18935 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
18936 # The linker can only warn and ignore the option if not recognized
18937 # So say no if there are warnings
18938 if test -s conftest.err; then
18939 # Append any errors to the config.log.
18940 cat conftest.err 1>&5
18941 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
18942 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18943 if diff conftest.exp conftest.er2 >/dev/null; then
18944 lt_cv_prog_compiler_static_works_GCJ=yes
18946 else
18947 lt_cv_prog_compiler_static_works_GCJ=yes
18950 $rm -r conftest*
18951 LDFLAGS="$save_LDFLAGS"
18954 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_GCJ" >&5
18955 echo "${ECHO_T}$lt_cv_prog_compiler_static_works_GCJ" >&6; }
18957 if test x"$lt_cv_prog_compiler_static_works_GCJ" = xyes; then
18959 else
18960 lt_prog_compiler_static_GCJ=
18964 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
18965 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
18966 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
18967 echo $ECHO_N "(cached) $ECHO_C" >&6
18968 else
18969 lt_cv_prog_compiler_c_o_GCJ=no
18970 $rm -r conftest 2>/dev/null
18971 mkdir conftest
18972 cd conftest
18973 mkdir out
18974 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18976 lt_compiler_flag="-o out/conftest2.$ac_objext"
18977 # Insert the option either (1) after the last *FLAGS variable, or
18978 # (2) before a word containing "conftest.", or (3) at the end.
18979 # Note that $ac_compile itself does not contain backslashes and begins
18980 # with a dollar sign (not a hyphen), so the echo should work correctly.
18981 lt_compile=`echo "$ac_compile" | $SED \
18982 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18983 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18984 -e 's:$: $lt_compiler_flag:'`
18985 (eval echo "\"\$as_me:18985: $lt_compile\"" >&5)
18986 (eval "$lt_compile" 2>out/conftest.err)
18987 ac_status=$?
18988 cat out/conftest.err >&5
18989 echo "$as_me:18989: \$? = $ac_status" >&5
18990 if (exit $ac_status) && test -s out/conftest2.$ac_objext
18991 then
18992 # The compiler can only warn and ignore the option if not recognized
18993 # So say no if there are warnings
18994 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
18995 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
18996 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
18997 lt_cv_prog_compiler_c_o_GCJ=yes
19000 chmod u+w . 2>&5
19001 $rm conftest*
19002 # SGI C++ compiler will create directory out/ii_files/ for
19003 # template instantiation
19004 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
19005 $rm out/* && rmdir out
19006 cd ..
19007 rmdir conftest
19008 $rm conftest*
19011 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
19012 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
19015 hard_links="nottested"
19016 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
19017 # do not overwrite the value of need_locks provided by the user
19018 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
19019 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
19020 hard_links=yes
19021 $rm conftest*
19022 ln conftest.a conftest.b 2>/dev/null && hard_links=no
19023 touch conftest.a
19024 ln conftest.a conftest.b 2>&5 || hard_links=no
19025 ln conftest.a conftest.b 2>/dev/null && hard_links=no
19026 { echo "$as_me:$LINENO: result: $hard_links" >&5
19027 echo "${ECHO_T}$hard_links" >&6; }
19028 if test "$hard_links" = no; then
19029 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
19030 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
19031 need_locks=warn
19033 else
19034 need_locks=no
19037 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
19038 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
19040 runpath_var=
19041 allow_undefined_flag_GCJ=
19042 enable_shared_with_static_runtimes_GCJ=no
19043 archive_cmds_GCJ=
19044 archive_expsym_cmds_GCJ=
19045 old_archive_From_new_cmds_GCJ=
19046 old_archive_from_expsyms_cmds_GCJ=
19047 export_dynamic_flag_spec_GCJ=
19048 whole_archive_flag_spec_GCJ=
19049 thread_safe_flag_spec_GCJ=
19050 hardcode_libdir_flag_spec_GCJ=
19051 hardcode_libdir_flag_spec_ld_GCJ=
19052 hardcode_libdir_separator_GCJ=
19053 hardcode_direct_GCJ=no
19054 hardcode_minus_L_GCJ=no
19055 hardcode_shlibpath_var_GCJ=unsupported
19056 link_all_deplibs_GCJ=unknown
19057 hardcode_automatic_GCJ=no
19058 module_cmds_GCJ=
19059 module_expsym_cmds_GCJ=
19060 always_export_symbols_GCJ=no
19061 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19062 # include_expsyms should be a list of space-separated symbols to be *always*
19063 # included in the symbol list
19064 include_expsyms_GCJ=
19065 # exclude_expsyms can be an extended regexp of symbols to exclude
19066 # it will be wrapped by ` (' and `)$', so one must not match beginning or
19067 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
19068 # as well as any symbol that contains `d'.
19069 exclude_expsyms_GCJ='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
19070 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
19071 # platforms (ab)use it in PIC code, but their linkers get confused if
19072 # the symbol is explicitly referenced. Since portable code cannot
19073 # rely on this symbol name, it's probably fine to never include it in
19074 # preloaded symbol tables.
19075 # Exclude shared library initialization/finalization symbols.
19076 extract_expsyms_cmds=
19077 # Just being paranoid about ensuring that cc_basename is set.
19078 for cc_temp in $compiler""; do
19079 case $cc_temp in
19080 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19081 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19082 \-*) ;;
19083 *) break;;
19084 esac
19085 done
19086 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
19088 case $host_os in
19089 cygwin* | mingw* | pw32*)
19090 # FIXME: the MSVC++ port hasn't been tested in a loooong time
19091 # When not using gcc, we currently assume that we are using
19092 # Microsoft Visual C++.
19093 if test "$GCC" != yes; then
19094 with_gnu_ld=no
19097 interix*)
19098 # we just hope/assume this is gcc and not c89 (= MSVC++)
19099 with_gnu_ld=yes
19101 openbsd*)
19102 with_gnu_ld=no
19104 esac
19106 ld_shlibs_GCJ=yes
19107 if test "$with_gnu_ld" = yes; then
19108 # If archive_cmds runs LD, not CC, wlarc should be empty
19109 wlarc='${wl}'
19111 # Set some defaults for GNU ld with shared library support. These
19112 # are reset later if shared libraries are not supported. Putting them
19113 # here allows them to be overridden if necessary.
19114 runpath_var=LD_RUN_PATH
19115 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
19116 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
19117 # ancient GNU ld didn't support --whole-archive et. al.
19118 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
19119 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19120 else
19121 whole_archive_flag_spec_GCJ=
19123 supports_anon_versioning=no
19124 case `$LD -v 2>/dev/null` in
19125 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
19126 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
19127 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
19128 *\ 2.11.*) ;; # other 2.11 versions
19129 *) supports_anon_versioning=yes ;;
19130 esac
19132 # See if GNU ld supports shared libraries.
19133 case $host_os in
19134 aix[3-9]*)
19135 # On AIX/PPC, the GNU linker is very broken
19136 if test "$host_cpu" != ia64; then
19137 ld_shlibs_GCJ=no
19138 cat <<EOF 1>&2
19140 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
19141 *** to be unable to reliably create shared libraries on AIX.
19142 *** Therefore, libtool is disabling shared libraries support. If you
19143 *** really care for shared libraries, you may want to modify your PATH
19144 *** so that a non-GNU linker is found, and then restart.
19150 amigaos*)
19151 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)'
19152 hardcode_libdir_flag_spec_GCJ='-L$libdir'
19153 hardcode_minus_L_GCJ=yes
19155 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
19156 # that the semantics of dynamic libraries on AmigaOS, at least up
19157 # to version 4, is to share data among multiple programs linked
19158 # with the same dynamic library. Since this doesn't match the
19159 # behavior of shared libraries on other platforms, we can't use
19160 # them.
19161 ld_shlibs_GCJ=no
19164 beos*)
19165 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19166 allow_undefined_flag_GCJ=unsupported
19167 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
19168 # support --undefined. This deserves some investigation. FIXME
19169 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19170 else
19171 ld_shlibs_GCJ=no
19175 cygwin* | mingw* | pw32*)
19176 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
19177 # as there is no search path for DLLs.
19178 hardcode_libdir_flag_spec_GCJ='-L$libdir'
19179 allow_undefined_flag_GCJ=unsupported
19180 always_export_symbols_GCJ=no
19181 enable_shared_with_static_runtimes_GCJ=yes
19182 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
19184 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
19185 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
19186 # If the export-symbols file already is a .def file (1st line
19187 # is EXPORTS), use it as is; otherwise, prepend...
19188 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
19189 cp $export_symbols $output_objdir/$soname.def;
19190 else
19191 echo EXPORTS > $output_objdir/$soname.def;
19192 cat $export_symbols >> $output_objdir/$soname.def;
19194 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
19195 else
19196 ld_shlibs_GCJ=no
19200 interix[3-9]*)
19201 hardcode_direct_GCJ=no
19202 hardcode_shlibpath_var_GCJ=no
19203 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
19204 export_dynamic_flag_spec_GCJ='${wl}-E'
19205 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
19206 # Instead, shared libraries are loaded at an image base (0x10000000 by
19207 # default) and relocated if they conflict, which is a slow very memory
19208 # consuming and fragmenting process. To avoid this, we pick a random,
19209 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
19210 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
19211 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'
19212 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'
19215 gnu* | linux* | k*bsd*-gnu)
19216 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19217 tmp_addflag=
19218 case $cc_basename,$host_cpu in
19219 pgcc*) # Portland Group C compiler
19220 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'
19221 tmp_addflag=' $pic_flag'
19223 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
19224 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'
19225 tmp_addflag=' $pic_flag -Mnomain' ;;
19226 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
19227 tmp_addflag=' -i_dynamic' ;;
19228 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
19229 tmp_addflag=' -i_dynamic -nofor_main' ;;
19230 ifc* | ifort*) # Intel Fortran compiler
19231 tmp_addflag=' -nofor_main' ;;
19232 esac
19233 case `$CC -V 2>&1 | sed 5q` in
19234 *Sun\ C*) # Sun C 5.9
19235 whole_archive_flag_spec_GCJ='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
19236 tmp_sharedflag='-G' ;;
19237 *Sun\ F*) # Sun Fortran 8.3
19238 tmp_sharedflag='-G' ;;
19240 tmp_sharedflag='-shared' ;;
19241 esac
19242 archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19244 if test $supports_anon_versioning = yes; then
19245 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
19246 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
19247 $echo "local: *; };" >> $output_objdir/$libname.ver~
19248 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
19250 link_all_deplibs_GCJ=no
19251 else
19252 ld_shlibs_GCJ=no
19256 netbsd* | netbsdelf*-gnu)
19257 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19258 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
19259 wlarc=
19260 else
19261 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19262 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19266 solaris*)
19267 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
19268 ld_shlibs_GCJ=no
19269 cat <<EOF 1>&2
19271 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
19272 *** create shared libraries on Solaris systems. Therefore, libtool
19273 *** is disabling shared libraries support. We urge you to upgrade GNU
19274 *** binutils to release 2.9.1 or newer. Another option is to modify
19275 *** your PATH or compiler configuration so that the native linker is
19276 *** used, and then restart.
19279 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19280 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19281 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19282 else
19283 ld_shlibs_GCJ=no
19287 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
19288 case `$LD -v 2>&1` in
19289 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
19290 ld_shlibs_GCJ=no
19291 cat <<_LT_EOF 1>&2
19293 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
19294 *** reliably create shared libraries on SCO systems. Therefore, libtool
19295 *** is disabling shared libraries support. We urge you to upgrade GNU
19296 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
19297 *** your PATH or compiler configuration so that the native linker is
19298 *** used, and then restart.
19300 _LT_EOF
19303 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19304 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
19305 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
19306 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
19307 else
19308 ld_shlibs_GCJ=no
19311 esac
19314 sunos4*)
19315 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19316 wlarc=
19317 hardcode_direct_GCJ=yes
19318 hardcode_shlibpath_var_GCJ=no
19322 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19323 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19324 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19325 else
19326 ld_shlibs_GCJ=no
19329 esac
19331 if test "$ld_shlibs_GCJ" = no; then
19332 runpath_var=
19333 hardcode_libdir_flag_spec_GCJ=
19334 export_dynamic_flag_spec_GCJ=
19335 whole_archive_flag_spec_GCJ=
19337 else
19338 # PORTME fill in a description of your system's linker (not GNU ld)
19339 case $host_os in
19340 aix3*)
19341 allow_undefined_flag_GCJ=unsupported
19342 always_export_symbols_GCJ=yes
19343 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'
19344 # Note: this linker hardcodes the directories in LIBPATH if there
19345 # are no directories specified by -L.
19346 hardcode_minus_L_GCJ=yes
19347 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
19348 # Neither direct hardcoding nor static linking is supported with a
19349 # broken collect2.
19350 hardcode_direct_GCJ=unsupported
19354 aix[4-9]*)
19355 if test "$host_cpu" = ia64; then
19356 # On IA64, the linker does run time linking by default, so we don't
19357 # have to do anything special.
19358 aix_use_runtimelinking=no
19359 exp_sym_flag='-Bexport'
19360 no_entry_flag=""
19361 else
19362 # If we're using GNU nm, then we don't want the "-C" option.
19363 # -C means demangle to AIX nm, but means don't demangle with GNU nm
19364 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
19365 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'
19366 else
19367 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'
19369 aix_use_runtimelinking=no
19371 # Test if we are trying to use run time linking or normal
19372 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
19373 # need to do runtime linking.
19374 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
19375 for ld_flag in $LDFLAGS; do
19376 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
19377 aix_use_runtimelinking=yes
19378 break
19380 done
19382 esac
19384 exp_sym_flag='-bexport'
19385 no_entry_flag='-bnoentry'
19388 # When large executables or shared objects are built, AIX ld can
19389 # have problems creating the table of contents. If linking a library
19390 # or program results in "error TOC overflow" add -mminimal-toc to
19391 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
19392 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
19394 archive_cmds_GCJ=''
19395 hardcode_direct_GCJ=yes
19396 hardcode_libdir_separator_GCJ=':'
19397 link_all_deplibs_GCJ=yes
19399 if test "$GCC" = yes; then
19400 case $host_os in aix4.[012]|aix4.[012].*)
19401 # We only want to do this on AIX 4.2 and lower, the check
19402 # below for broken collect2 doesn't work under 4.3+
19403 collect2name=`${CC} -print-prog-name=collect2`
19404 if test -f "$collect2name" && \
19405 strings "$collect2name" | grep resolve_lib_name >/dev/null
19406 then
19407 # We have reworked collect2
19409 else
19410 # We have old collect2
19411 hardcode_direct_GCJ=unsupported
19412 # It fails to find uninstalled libraries when the uninstalled
19413 # path is not listed in the libpath. Setting hardcode_minus_L
19414 # to unsupported forces relinking
19415 hardcode_minus_L_GCJ=yes
19416 hardcode_libdir_flag_spec_GCJ='-L$libdir'
19417 hardcode_libdir_separator_GCJ=
19420 esac
19421 shared_flag='-shared'
19422 if test "$aix_use_runtimelinking" = yes; then
19423 shared_flag="$shared_flag "'${wl}-G'
19425 else
19426 # not using gcc
19427 if test "$host_cpu" = ia64; then
19428 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
19429 # chokes on -Wl,-G. The following line is correct:
19430 shared_flag='-G'
19431 else
19432 if test "$aix_use_runtimelinking" = yes; then
19433 shared_flag='${wl}-G'
19434 else
19435 shared_flag='${wl}-bM:SRE'
19440 # It seems that -bexpall does not export symbols beginning with
19441 # underscore (_), so it is better to generate a list of symbols to export.
19442 always_export_symbols_GCJ=yes
19443 if test "$aix_use_runtimelinking" = yes; then
19444 # Warning - without using the other runtime loading flags (-brtl),
19445 # -berok will link without error, but may produce a broken library.
19446 allow_undefined_flag_GCJ='-berok'
19447 # Determine the default libpath from the value encoded in an empty executable.
19448 cat >conftest.$ac_ext <<_ACEOF
19449 /* confdefs.h. */
19450 _ACEOF
19451 cat confdefs.h >>conftest.$ac_ext
19452 cat >>conftest.$ac_ext <<_ACEOF
19453 /* end confdefs.h. */
19456 main ()
19460 return 0;
19462 _ACEOF
19463 rm -f conftest.$ac_objext conftest$ac_exeext
19464 if { (ac_try="$ac_link"
19465 case "(($ac_try" in
19466 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19467 *) ac_try_echo=$ac_try;;
19468 esac
19469 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19470 (eval "$ac_link") 2>conftest.er1
19471 ac_status=$?
19472 grep -v '^ *+' conftest.er1 >conftest.err
19473 rm -f conftest.er1
19474 cat conftest.err >&5
19475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19476 (exit $ac_status); } && {
19477 test -z "$ac_c_werror_flag" ||
19478 test ! -s conftest.err
19479 } && test -s conftest$ac_exeext &&
19480 $as_test_x conftest$ac_exeext; then
19482 lt_aix_libpath_sed='
19483 /Import File Strings/,/^$/ {
19484 /^0/ {
19485 s/^0 *\(.*\)$/\1/
19489 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19490 # Check for a 64-bit object if we didn't find anything.
19491 if test -z "$aix_libpath"; then
19492 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19494 else
19495 echo "$as_me: failed program was:" >&5
19496 sed 's/^/| /' conftest.$ac_ext >&5
19501 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19502 conftest$ac_exeext conftest.$ac_ext
19503 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19505 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
19506 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"
19507 else
19508 if test "$host_cpu" = ia64; then
19509 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
19510 allow_undefined_flag_GCJ="-z nodefs"
19511 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"
19512 else
19513 # Determine the default libpath from the value encoded in an empty executable.
19514 cat >conftest.$ac_ext <<_ACEOF
19515 /* confdefs.h. */
19516 _ACEOF
19517 cat confdefs.h >>conftest.$ac_ext
19518 cat >>conftest.$ac_ext <<_ACEOF
19519 /* end confdefs.h. */
19522 main ()
19526 return 0;
19528 _ACEOF
19529 rm -f conftest.$ac_objext conftest$ac_exeext
19530 if { (ac_try="$ac_link"
19531 case "(($ac_try" in
19532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19533 *) ac_try_echo=$ac_try;;
19534 esac
19535 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19536 (eval "$ac_link") 2>conftest.er1
19537 ac_status=$?
19538 grep -v '^ *+' conftest.er1 >conftest.err
19539 rm -f conftest.er1
19540 cat conftest.err >&5
19541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19542 (exit $ac_status); } && {
19543 test -z "$ac_c_werror_flag" ||
19544 test ! -s conftest.err
19545 } && test -s conftest$ac_exeext &&
19546 $as_test_x conftest$ac_exeext; then
19548 lt_aix_libpath_sed='
19549 /Import File Strings/,/^$/ {
19550 /^0/ {
19551 s/^0 *\(.*\)$/\1/
19555 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19556 # Check for a 64-bit object if we didn't find anything.
19557 if test -z "$aix_libpath"; then
19558 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19560 else
19561 echo "$as_me: failed program was:" >&5
19562 sed 's/^/| /' conftest.$ac_ext >&5
19567 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19568 conftest$ac_exeext conftest.$ac_ext
19569 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19571 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
19572 # Warning - without using the other run time loading flags,
19573 # -berok will link without error, but may produce a broken library.
19574 no_undefined_flag_GCJ=' ${wl}-bernotok'
19575 allow_undefined_flag_GCJ=' ${wl}-berok'
19576 # Exported symbols can be pulled into shared objects from archives
19577 whole_archive_flag_spec_GCJ='$convenience'
19578 archive_cmds_need_lc_GCJ=yes
19579 # This is similar to how AIX traditionally builds its shared libraries.
19580 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'
19585 amigaos*)
19586 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)'
19587 hardcode_libdir_flag_spec_GCJ='-L$libdir'
19588 hardcode_minus_L_GCJ=yes
19589 # see comment about different semantics on the GNU ld section
19590 ld_shlibs_GCJ=no
19593 bsdi[45]*)
19594 export_dynamic_flag_spec_GCJ=-rdynamic
19597 cygwin* | mingw* | pw32*)
19598 # When not using gcc, we currently assume that we are using
19599 # Microsoft Visual C++.
19600 # hardcode_libdir_flag_spec is actually meaningless, as there is
19601 # no search path for DLLs.
19602 hardcode_libdir_flag_spec_GCJ=' '
19603 allow_undefined_flag_GCJ=unsupported
19604 # Tell ltmain to make .lib files, not .a files.
19605 libext=lib
19606 # Tell ltmain to make .dll files, not .so files.
19607 shrext_cmds=".dll"
19608 # FIXME: Setting linknames here is a bad hack.
19609 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
19610 # The linker will automatically build a .lib file if we build a DLL.
19611 old_archive_From_new_cmds_GCJ='true'
19612 # FIXME: Should let the user specify the lib program.
19613 old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs'
19614 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
19615 enable_shared_with_static_runtimes_GCJ=yes
19618 darwin* | rhapsody*)
19619 case $host_os in
19620 rhapsody* | darwin1.[012])
19621 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
19623 *) # Darwin 1.3 on
19624 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
19625 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
19626 else
19627 case ${MACOSX_DEPLOYMENT_TARGET} in
19628 10.[012])
19629 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
19631 10.*)
19632 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
19634 esac
19637 esac
19638 archive_cmds_need_lc_GCJ=no
19639 hardcode_direct_GCJ=no
19640 hardcode_automatic_GCJ=yes
19641 hardcode_shlibpath_var_GCJ=unsupported
19642 whole_archive_flag_spec_GCJ=''
19643 link_all_deplibs_GCJ=yes
19644 if test "$GCC" = yes ; then
19645 output_verbose_link_cmd='echo'
19646 archive_cmds_GCJ="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
19647 module_cmds_GCJ="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
19648 archive_expsym_cmds_GCJ="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
19649 module_expsym_cmds_GCJ="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
19650 else
19651 case $cc_basename in
19652 xlc*)
19653 output_verbose_link_cmd='echo'
19654 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
19655 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
19656 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
19657 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
19658 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}'
19661 ld_shlibs_GCJ=no
19663 esac
19667 dgux*)
19668 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19669 hardcode_libdir_flag_spec_GCJ='-L$libdir'
19670 hardcode_shlibpath_var_GCJ=no
19673 freebsd1*)
19674 ld_shlibs_GCJ=no
19677 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
19678 # support. Future versions do this automatically, but an explicit c++rt0.o
19679 # does not break anything, and helps significantly (at the cost of a little
19680 # extra space).
19681 freebsd2.2*)
19682 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
19683 hardcode_libdir_flag_spec_GCJ='-R$libdir'
19684 hardcode_direct_GCJ=yes
19685 hardcode_shlibpath_var_GCJ=no
19688 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
19689 freebsd2*)
19690 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19691 hardcode_direct_GCJ=yes
19692 hardcode_minus_L_GCJ=yes
19693 hardcode_shlibpath_var_GCJ=no
19696 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
19697 freebsd* | dragonfly*)
19698 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
19699 hardcode_libdir_flag_spec_GCJ='-R$libdir'
19700 hardcode_direct_GCJ=yes
19701 hardcode_shlibpath_var_GCJ=no
19704 hpux9*)
19705 if test "$GCC" = yes; then
19706 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'
19707 else
19708 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'
19710 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
19711 hardcode_libdir_separator_GCJ=:
19712 hardcode_direct_GCJ=yes
19714 # hardcode_minus_L: Not really in the search PATH,
19715 # but as the default location of the library.
19716 hardcode_minus_L_GCJ=yes
19717 export_dynamic_flag_spec_GCJ='${wl}-E'
19720 hpux10*)
19721 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
19722 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
19723 else
19724 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
19726 if test "$with_gnu_ld" = no; then
19727 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
19728 hardcode_libdir_separator_GCJ=:
19730 hardcode_direct_GCJ=yes
19731 export_dynamic_flag_spec_GCJ='${wl}-E'
19733 # hardcode_minus_L: Not really in the search PATH,
19734 # but as the default location of the library.
19735 hardcode_minus_L_GCJ=yes
19739 hpux11*)
19740 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
19741 case $host_cpu in
19742 hppa*64*)
19743 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19745 ia64*)
19746 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
19749 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
19751 esac
19752 else
19753 case $host_cpu in
19754 hppa*64*)
19755 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19757 ia64*)
19758 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
19761 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
19763 esac
19765 if test "$with_gnu_ld" = no; then
19766 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
19767 hardcode_libdir_separator_GCJ=:
19769 case $host_cpu in
19770 hppa*64*|ia64*)
19771 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
19772 hardcode_direct_GCJ=no
19773 hardcode_shlibpath_var_GCJ=no
19776 hardcode_direct_GCJ=yes
19777 export_dynamic_flag_spec_GCJ='${wl}-E'
19779 # hardcode_minus_L: Not really in the search PATH,
19780 # but as the default location of the library.
19781 hardcode_minus_L_GCJ=yes
19783 esac
19787 irix5* | irix6* | nonstopux*)
19788 if test "$GCC" = yes; then
19789 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'
19790 else
19791 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'
19792 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
19794 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
19795 hardcode_libdir_separator_GCJ=:
19796 link_all_deplibs_GCJ=yes
19799 netbsd* | netbsdelf*-gnu)
19800 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19801 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
19802 else
19803 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
19805 hardcode_libdir_flag_spec_GCJ='-R$libdir'
19806 hardcode_direct_GCJ=yes
19807 hardcode_shlibpath_var_GCJ=no
19810 newsos6)
19811 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19812 hardcode_direct_GCJ=yes
19813 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
19814 hardcode_libdir_separator_GCJ=:
19815 hardcode_shlibpath_var_GCJ=no
19818 openbsd*)
19819 if test -f /usr/libexec/ld.so; then
19820 hardcode_direct_GCJ=yes
19821 hardcode_shlibpath_var_GCJ=no
19822 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19823 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
19824 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
19825 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
19826 export_dynamic_flag_spec_GCJ='${wl}-E'
19827 else
19828 case $host_os in
19829 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
19830 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19831 hardcode_libdir_flag_spec_GCJ='-R$libdir'
19834 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
19835 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
19837 esac
19839 else
19840 ld_shlibs_GCJ=no
19844 os2*)
19845 hardcode_libdir_flag_spec_GCJ='-L$libdir'
19846 hardcode_minus_L_GCJ=yes
19847 allow_undefined_flag_GCJ=unsupported
19848 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'
19849 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
19852 osf3*)
19853 if test "$GCC" = yes; then
19854 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
19855 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'
19856 else
19857 allow_undefined_flag_GCJ=' -expect_unresolved \*'
19858 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'
19860 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
19861 hardcode_libdir_separator_GCJ=:
19864 osf4* | osf5*) # as osf3* with the addition of -msym flag
19865 if test "$GCC" = yes; then
19866 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
19867 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'
19868 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
19869 else
19870 allow_undefined_flag_GCJ=' -expect_unresolved \*'
19871 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'
19872 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~
19873 $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'
19875 # Both c and cxx compiler support -rpath directly
19876 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
19878 hardcode_libdir_separator_GCJ=:
19881 solaris*)
19882 no_undefined_flag_GCJ=' -z text'
19883 if test "$GCC" = yes; then
19884 wlarc='${wl}'
19885 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19886 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19887 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
19888 else
19889 wlarc=''
19890 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
19891 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19892 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
19894 hardcode_libdir_flag_spec_GCJ='-R$libdir'
19895 hardcode_shlibpath_var_GCJ=no
19896 case $host_os in
19897 solaris2.[0-5] | solaris2.[0-5].*) ;;
19899 # The compiler driver will combine and reorder linker options,
19900 # but understands `-z linker_flag'. GCC discards it without `$wl',
19901 # but is careful enough not to reorder.
19902 # Supported since Solaris 2.6 (maybe 2.5.1?)
19903 if test "$GCC" = yes; then
19904 whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
19905 else
19906 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract'
19909 esac
19910 link_all_deplibs_GCJ=yes
19913 sunos4*)
19914 if test "x$host_vendor" = xsequent; then
19915 # Use $CC to link under sequent, because it throws in some extra .o
19916 # files that make .init and .fini sections work.
19917 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
19918 else
19919 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
19921 hardcode_libdir_flag_spec_GCJ='-L$libdir'
19922 hardcode_direct_GCJ=yes
19923 hardcode_minus_L_GCJ=yes
19924 hardcode_shlibpath_var_GCJ=no
19927 sysv4)
19928 case $host_vendor in
19929 sni)
19930 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19931 hardcode_direct_GCJ=yes # is this really true???
19933 siemens)
19934 ## LD is ld it makes a PLAMLIB
19935 ## CC just makes a GrossModule.
19936 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
19937 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
19938 hardcode_direct_GCJ=no
19940 motorola)
19941 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19942 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
19944 esac
19945 runpath_var='LD_RUN_PATH'
19946 hardcode_shlibpath_var_GCJ=no
19949 sysv4.3*)
19950 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19951 hardcode_shlibpath_var_GCJ=no
19952 export_dynamic_flag_spec_GCJ='-Bexport'
19955 sysv4*MP*)
19956 if test -d /usr/nec; then
19957 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19958 hardcode_shlibpath_var_GCJ=no
19959 runpath_var=LD_RUN_PATH
19960 hardcode_runpath_var=yes
19961 ld_shlibs_GCJ=yes
19965 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
19966 no_undefined_flag_GCJ='${wl}-z,text'
19967 archive_cmds_need_lc_GCJ=no
19968 hardcode_shlibpath_var_GCJ=no
19969 runpath_var='LD_RUN_PATH'
19971 if test "$GCC" = yes; then
19972 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19973 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19974 else
19975 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19976 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19980 sysv5* | sco3.2v5* | sco5v6*)
19981 # Note: We can NOT use -z defs as we might desire, because we do not
19982 # link with -lc, and that would cause any symbols used from libc to
19983 # always be unresolved, which means just about no library would
19984 # ever link correctly. If we're not using GNU ld we use -z text
19985 # though, which does catch some bad symbols but isn't as heavy-handed
19986 # as -z defs.
19987 no_undefined_flag_GCJ='${wl}-z,text'
19988 allow_undefined_flag_GCJ='${wl}-z,nodefs'
19989 archive_cmds_need_lc_GCJ=no
19990 hardcode_shlibpath_var_GCJ=no
19991 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
19992 hardcode_libdir_separator_GCJ=':'
19993 link_all_deplibs_GCJ=yes
19994 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
19995 runpath_var='LD_RUN_PATH'
19997 if test "$GCC" = yes; then
19998 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19999 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
20000 else
20001 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
20002 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
20006 uts4*)
20007 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20008 hardcode_libdir_flag_spec_GCJ='-L$libdir'
20009 hardcode_shlibpath_var_GCJ=no
20013 ld_shlibs_GCJ=no
20015 esac
20018 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
20019 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
20020 test "$ld_shlibs_GCJ" = no && can_build_shared=no
20023 # Do we need to explicitly link libc?
20025 case "x$archive_cmds_need_lc_GCJ" in
20026 x|xyes)
20027 # Assume -lc should be added
20028 archive_cmds_need_lc_GCJ=yes
20030 if test "$enable_shared" = yes && test "$GCC" = yes; then
20031 case $archive_cmds_GCJ in
20032 *'~'*)
20033 # FIXME: we may have to deal with multi-command sequences.
20035 '$CC '*)
20036 # Test whether the compiler implicitly links with -lc since on some
20037 # systems, -lgcc has to come before -lc. If gcc already passes -lc
20038 # to ld, don't add -lc before -lgcc.
20039 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
20040 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
20041 $rm conftest*
20042 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20044 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20045 (eval $ac_compile) 2>&5
20046 ac_status=$?
20047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20048 (exit $ac_status); } 2>conftest.err; then
20049 soname=conftest
20050 lib=conftest
20051 libobjs=conftest.$ac_objext
20052 deplibs=
20053 wl=$lt_prog_compiler_wl_GCJ
20054 pic_flag=$lt_prog_compiler_pic_GCJ
20055 compiler_flags=-v
20056 linker_flags=-v
20057 verstring=
20058 output_objdir=.
20059 libname=conftest
20060 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
20061 allow_undefined_flag_GCJ=
20062 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
20063 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
20064 ac_status=$?
20065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20066 (exit $ac_status); }
20067 then
20068 archive_cmds_need_lc_GCJ=no
20069 else
20070 archive_cmds_need_lc_GCJ=yes
20072 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
20073 else
20074 cat conftest.err 1>&5
20076 $rm conftest*
20077 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
20078 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
20080 esac
20083 esac
20085 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
20086 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
20087 library_names_spec=
20088 libname_spec='lib$name'
20089 soname_spec=
20090 shrext_cmds=".so"
20091 postinstall_cmds=
20092 postuninstall_cmds=
20093 finish_cmds=
20094 finish_eval=
20095 shlibpath_var=
20096 shlibpath_overrides_runpath=unknown
20097 version_type=none
20098 dynamic_linker="$host_os ld.so"
20099 sys_lib_dlsearch_path_spec="/lib /usr/lib"
20101 need_lib_prefix=unknown
20102 hardcode_into_libs=no
20104 # when you set need_version to no, make sure it does not cause -set_version
20105 # flags to be left without arguments
20106 need_version=unknown
20108 case $host_os in
20109 aix3*)
20110 version_type=linux
20111 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
20112 shlibpath_var=LIBPATH
20114 # AIX 3 has no versioning support, so we append a major version to the name.
20115 soname_spec='${libname}${release}${shared_ext}$major'
20118 aix[4-9]*)
20119 version_type=linux
20120 need_lib_prefix=no
20121 need_version=no
20122 hardcode_into_libs=yes
20123 if test "$host_cpu" = ia64; then
20124 # AIX 5 supports IA64
20125 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
20126 shlibpath_var=LD_LIBRARY_PATH
20127 else
20128 # With GCC up to 2.95.x, collect2 would create an import file
20129 # for dependence libraries. The import file would start with
20130 # the line `#! .'. This would cause the generated library to
20131 # depend on `.', always an invalid library. This was fixed in
20132 # development snapshots of GCC prior to 3.0.
20133 case $host_os in
20134 aix4 | aix4.[01] | aix4.[01].*)
20135 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
20136 echo ' yes '
20137 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
20139 else
20140 can_build_shared=no
20143 esac
20144 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
20145 # soname into executable. Probably we can add versioning support to
20146 # collect2, so additional links can be useful in future.
20147 if test "$aix_use_runtimelinking" = yes; then
20148 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
20149 # instead of lib<name>.a to let people know that these are not
20150 # typical AIX shared libraries.
20151 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20152 else
20153 # We preserve .a as extension for shared libraries through AIX4.2
20154 # and later when we are not doing run time linking.
20155 library_names_spec='${libname}${release}.a $libname.a'
20156 soname_spec='${libname}${release}${shared_ext}$major'
20158 shlibpath_var=LIBPATH
20162 amigaos*)
20163 library_names_spec='$libname.ixlibrary $libname.a'
20164 # Create ${libname}_ixlibrary.a entries in /sys/libs.
20165 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'
20168 beos*)
20169 library_names_spec='${libname}${shared_ext}'
20170 dynamic_linker="$host_os ld.so"
20171 shlibpath_var=LIBRARY_PATH
20174 bsdi[45]*)
20175 version_type=linux
20176 need_version=no
20177 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20178 soname_spec='${libname}${release}${shared_ext}$major'
20179 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
20180 shlibpath_var=LD_LIBRARY_PATH
20181 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20182 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
20183 # the default ld.so.conf also contains /usr/contrib/lib and
20184 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20185 # libtool to hard-code these into programs
20188 cygwin* | mingw* | pw32*)
20189 version_type=windows
20190 shrext_cmds=".dll"
20191 need_version=no
20192 need_lib_prefix=no
20194 case $GCC,$host_os in
20195 yes,cygwin* | yes,mingw* | yes,pw32*)
20196 library_names_spec='$libname.dll.a'
20197 # DLL is installed to $(libdir)/../bin by postinstall_cmds
20198 postinstall_cmds='base_file=`basename \${file}`~
20199 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
20200 dldir=$destdir/`dirname \$dlpath`~
20201 test -d \$dldir || mkdir -p \$dldir~
20202 $install_prog $dir/$dlname \$dldir/$dlname~
20203 chmod a+x \$dldir/$dlname'
20204 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20205 dlpath=$dir/\$dldll~
20206 $rm \$dlpath'
20207 shlibpath_overrides_runpath=yes
20209 case $host_os in
20210 cygwin*)
20211 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20212 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20213 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
20215 mingw*)
20216 # MinGW DLLs use traditional 'lib' prefix
20217 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20218 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20219 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
20220 # It is most probably a Windows format PATH printed by
20221 # mingw gcc, but we are running on Cygwin. Gcc prints its search
20222 # path with ; separators, and with drive letters. We can handle the
20223 # drive letters (cygwin fileutils understands them), so leave them,
20224 # especially as we might pass files found there to a mingw objdump,
20225 # which wouldn't understand a cygwinified path. Ahh.
20226 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20227 else
20228 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
20231 pw32*)
20232 # pw32 DLLs use 'pw' prefix rather than 'lib'
20233 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20235 esac
20239 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
20241 esac
20242 dynamic_linker='Win32 ld.exe'
20243 # FIXME: first we should search . and the directory the executable is in
20244 shlibpath_var=PATH
20247 darwin* | rhapsody*)
20248 dynamic_linker="$host_os dyld"
20249 version_type=darwin
20250 need_lib_prefix=no
20251 need_version=no
20252 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
20253 soname_spec='${libname}${release}${major}$shared_ext'
20254 shlibpath_overrides_runpath=yes
20255 shlibpath_var=DYLD_LIBRARY_PATH
20256 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
20258 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
20261 dgux*)
20262 version_type=linux
20263 need_lib_prefix=no
20264 need_version=no
20265 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20266 soname_spec='${libname}${release}${shared_ext}$major'
20267 shlibpath_var=LD_LIBRARY_PATH
20270 freebsd1*)
20271 dynamic_linker=no
20274 freebsd* | dragonfly*)
20275 # DragonFly does not have aout. When/if they implement a new
20276 # versioning mechanism, adjust this.
20277 if test -x /usr/bin/objformat; then
20278 objformat=`/usr/bin/objformat`
20279 else
20280 case $host_os in
20281 freebsd[123]*) objformat=aout ;;
20282 *) objformat=elf ;;
20283 esac
20285 version_type=freebsd-$objformat
20286 case $version_type in
20287 freebsd-elf*)
20288 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20289 need_version=no
20290 need_lib_prefix=no
20292 freebsd-*)
20293 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20294 need_version=yes
20296 esac
20297 shlibpath_var=LD_LIBRARY_PATH
20298 case $host_os in
20299 freebsd2*)
20300 shlibpath_overrides_runpath=yes
20302 freebsd3.[01]* | freebsdelf3.[01]*)
20303 shlibpath_overrides_runpath=yes
20304 hardcode_into_libs=yes
20306 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
20307 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
20308 shlibpath_overrides_runpath=no
20309 hardcode_into_libs=yes
20311 *) # from 4.6 on, and DragonFly
20312 shlibpath_overrides_runpath=yes
20313 hardcode_into_libs=yes
20315 esac
20318 gnu*)
20319 version_type=linux
20320 need_lib_prefix=no
20321 need_version=no
20322 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20323 soname_spec='${libname}${release}${shared_ext}$major'
20324 shlibpath_var=LD_LIBRARY_PATH
20325 hardcode_into_libs=yes
20328 hpux9* | hpux10* | hpux11*)
20329 # Give a soname corresponding to the major version so that dld.sl refuses to
20330 # link against other versions.
20331 version_type=sunos
20332 need_lib_prefix=no
20333 need_version=no
20334 case $host_cpu in
20335 ia64*)
20336 shrext_cmds='.so'
20337 hardcode_into_libs=yes
20338 dynamic_linker="$host_os dld.so"
20339 shlibpath_var=LD_LIBRARY_PATH
20340 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20341 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20342 soname_spec='${libname}${release}${shared_ext}$major'
20343 if test "X$HPUX_IA64_MODE" = X32; then
20344 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20345 else
20346 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20348 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20350 hppa*64*)
20351 shrext_cmds='.sl'
20352 hardcode_into_libs=yes
20353 dynamic_linker="$host_os dld.sl"
20354 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20355 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20356 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20357 soname_spec='${libname}${release}${shared_ext}$major'
20358 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20359 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20362 shrext_cmds='.sl'
20363 dynamic_linker="$host_os dld.sl"
20364 shlibpath_var=SHLIB_PATH
20365 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20366 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20367 soname_spec='${libname}${release}${shared_ext}$major'
20369 esac
20370 # HP-UX runs *really* slowly unless shared libraries are mode 555.
20371 postinstall_cmds='chmod 555 $lib'
20374 interix[3-9]*)
20375 version_type=linux
20376 need_lib_prefix=no
20377 need_version=no
20378 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20379 soname_spec='${libname}${release}${shared_ext}$major'
20380 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
20381 shlibpath_var=LD_LIBRARY_PATH
20382 shlibpath_overrides_runpath=no
20383 hardcode_into_libs=yes
20386 irix5* | irix6* | nonstopux*)
20387 case $host_os in
20388 nonstopux*) version_type=nonstopux ;;
20390 if test "$lt_cv_prog_gnu_ld" = yes; then
20391 version_type=linux
20392 else
20393 version_type=irix
20394 fi ;;
20395 esac
20396 need_lib_prefix=no
20397 need_version=no
20398 soname_spec='${libname}${release}${shared_ext}$major'
20399 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20400 case $host_os in
20401 irix5* | nonstopux*)
20402 libsuff= shlibsuff=
20405 case $LD in # libtool.m4 will add one of these switches to LD
20406 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20407 libsuff= shlibsuff= libmagic=32-bit;;
20408 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20409 libsuff=32 shlibsuff=N32 libmagic=N32;;
20410 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20411 libsuff=64 shlibsuff=64 libmagic=64-bit;;
20412 *) libsuff= shlibsuff= libmagic=never-match;;
20413 esac
20415 esac
20416 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20417 shlibpath_overrides_runpath=no
20418 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20419 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20420 hardcode_into_libs=yes
20423 # No shared lib support for Linux oldld, aout, or coff.
20424 linux*oldld* | linux*aout* | linux*coff*)
20425 dynamic_linker=no
20428 # This must be Linux ELF.
20429 linux* | k*bsd*-gnu)
20430 version_type=linux
20431 need_lib_prefix=no
20432 need_version=no
20433 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20434 soname_spec='${libname}${release}${shared_ext}$major'
20435 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20436 shlibpath_var=LD_LIBRARY_PATH
20437 shlibpath_overrides_runpath=no
20438 # This implies no fast_install, which is unacceptable.
20439 # Some rework will be needed to allow for fast_install
20440 # before this can be enabled.
20441 hardcode_into_libs=yes
20443 # Append ld.so.conf contents to the search path
20444 if test -f /etc/ld.so.conf; then
20445 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
20446 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
20449 # We used to test for /lib/ld.so.1 and disable shared libraries on
20450 # powerpc, because MkLinux only supported shared libraries with the
20451 # GNU dynamic linker. Since this was broken with cross compilers,
20452 # most powerpc-linux boxes support dynamic linking these days and
20453 # people can always --disable-shared, the test was removed, and we
20454 # assume the GNU/Linux dynamic linker is in use.
20455 dynamic_linker='GNU/Linux ld.so'
20458 netbsdelf*-gnu)
20459 version_type=linux
20460 need_lib_prefix=no
20461 need_version=no
20462 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20463 soname_spec='${libname}${release}${shared_ext}$major'
20464 shlibpath_var=LD_LIBRARY_PATH
20465 shlibpath_overrides_runpath=no
20466 hardcode_into_libs=yes
20467 dynamic_linker='NetBSD ld.elf_so'
20470 netbsd*)
20471 version_type=sunos
20472 need_lib_prefix=no
20473 need_version=no
20474 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
20475 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20476 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20477 dynamic_linker='NetBSD (a.out) ld.so'
20478 else
20479 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20480 soname_spec='${libname}${release}${shared_ext}$major'
20481 dynamic_linker='NetBSD ld.elf_so'
20483 shlibpath_var=LD_LIBRARY_PATH
20484 shlibpath_overrides_runpath=yes
20485 hardcode_into_libs=yes
20488 newsos6)
20489 version_type=linux
20490 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20491 shlibpath_var=LD_LIBRARY_PATH
20492 shlibpath_overrides_runpath=yes
20495 nto-qnx*)
20496 version_type=linux
20497 need_lib_prefix=no
20498 need_version=no
20499 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20500 soname_spec='${libname}${release}${shared_ext}$major'
20501 shlibpath_var=LD_LIBRARY_PATH
20502 shlibpath_overrides_runpath=yes
20505 openbsd*)
20506 version_type=sunos
20507 sys_lib_dlsearch_path_spec="/usr/lib"
20508 need_lib_prefix=no
20509 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
20510 case $host_os in
20511 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
20512 *) need_version=no ;;
20513 esac
20514 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20515 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20516 shlibpath_var=LD_LIBRARY_PATH
20517 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20518 case $host_os in
20519 openbsd2.[89] | openbsd2.[89].*)
20520 shlibpath_overrides_runpath=no
20523 shlibpath_overrides_runpath=yes
20525 esac
20526 else
20527 shlibpath_overrides_runpath=yes
20531 os2*)
20532 libname_spec='$name'
20533 shrext_cmds=".dll"
20534 need_lib_prefix=no
20535 library_names_spec='$libname${shared_ext} $libname.a'
20536 dynamic_linker='OS/2 ld.exe'
20537 shlibpath_var=LIBPATH
20540 osf3* | osf4* | osf5*)
20541 version_type=osf
20542 need_lib_prefix=no
20543 need_version=no
20544 soname_spec='${libname}${release}${shared_ext}$major'
20545 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20546 shlibpath_var=LD_LIBRARY_PATH
20547 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20548 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
20551 rdos*)
20552 dynamic_linker=no
20555 solaris*)
20556 version_type=linux
20557 need_lib_prefix=no
20558 need_version=no
20559 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20560 soname_spec='${libname}${release}${shared_ext}$major'
20561 shlibpath_var=LD_LIBRARY_PATH
20562 shlibpath_overrides_runpath=yes
20563 hardcode_into_libs=yes
20564 # ldd complains unless libraries are executable
20565 postinstall_cmds='chmod +x $lib'
20568 sunos4*)
20569 version_type=sunos
20570 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20571 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20572 shlibpath_var=LD_LIBRARY_PATH
20573 shlibpath_overrides_runpath=yes
20574 if test "$with_gnu_ld" = yes; then
20575 need_lib_prefix=no
20577 need_version=yes
20580 sysv4 | sysv4.3*)
20581 version_type=linux
20582 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20583 soname_spec='${libname}${release}${shared_ext}$major'
20584 shlibpath_var=LD_LIBRARY_PATH
20585 case $host_vendor in
20586 sni)
20587 shlibpath_overrides_runpath=no
20588 need_lib_prefix=no
20589 export_dynamic_flag_spec='${wl}-Blargedynsym'
20590 runpath_var=LD_RUN_PATH
20592 siemens)
20593 need_lib_prefix=no
20595 motorola)
20596 need_lib_prefix=no
20597 need_version=no
20598 shlibpath_overrides_runpath=no
20599 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20601 esac
20604 sysv4*MP*)
20605 if test -d /usr/nec ;then
20606 version_type=linux
20607 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20608 soname_spec='$libname${shared_ext}.$major'
20609 shlibpath_var=LD_LIBRARY_PATH
20613 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
20614 version_type=freebsd-elf
20615 need_lib_prefix=no
20616 need_version=no
20617 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20618 soname_spec='${libname}${release}${shared_ext}$major'
20619 shlibpath_var=LD_LIBRARY_PATH
20620 hardcode_into_libs=yes
20621 if test "$with_gnu_ld" = yes; then
20622 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
20623 shlibpath_overrides_runpath=no
20624 else
20625 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
20626 shlibpath_overrides_runpath=yes
20627 case $host_os in
20628 sco3.2v5*)
20629 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
20631 esac
20633 sys_lib_dlsearch_path_spec='/usr/lib'
20636 uts4*)
20637 version_type=linux
20638 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20639 soname_spec='${libname}${release}${shared_ext}$major'
20640 shlibpath_var=LD_LIBRARY_PATH
20644 dynamic_linker=no
20646 esac
20647 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
20648 echo "${ECHO_T}$dynamic_linker" >&6; }
20649 test "$dynamic_linker" = no && can_build_shared=no
20651 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
20652 echo $ECHO_N "(cached) $ECHO_C" >&6
20653 else
20654 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
20657 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
20658 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
20659 echo $ECHO_N "(cached) $ECHO_C" >&6
20660 else
20661 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
20664 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
20666 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
20667 if test "$GCC" = yes; then
20668 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
20671 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
20672 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
20673 hardcode_action_GCJ=
20674 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
20675 test -n "$runpath_var_GCJ" || \
20676 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
20678 # We can hardcode non-existant directories.
20679 if test "$hardcode_direct_GCJ" != no &&
20680 # If the only mechanism to avoid hardcoding is shlibpath_var, we
20681 # have to relink, otherwise we might link with an installed library
20682 # when we should be linking with a yet-to-be-installed one
20683 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
20684 test "$hardcode_minus_L_GCJ" != no; then
20685 # Linking always hardcodes the temporary library directory.
20686 hardcode_action_GCJ=relink
20687 else
20688 # We can link without hardcoding, and we can hardcode nonexisting dirs.
20689 hardcode_action_GCJ=immediate
20691 else
20692 # We cannot hardcode anything, or else we can only hardcode existing
20693 # directories.
20694 hardcode_action_GCJ=unsupported
20696 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
20697 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
20699 if test "$hardcode_action_GCJ" = relink; then
20700 # Fast installation is not supported
20701 enable_fast_install=no
20702 elif test "$shlibpath_overrides_runpath" = yes ||
20703 test "$enable_shared" = no; then
20704 # Fast installation is not necessary
20705 enable_fast_install=needless
20709 # The else clause should only fire when bootstrapping the
20710 # libtool distribution, otherwise you forgot to ship ltmain.sh
20711 # with your package, and you will get complaints that there are
20712 # no rules to generate ltmain.sh.
20713 if test -f "$ltmain"; then
20714 # See if we are running on zsh, and set the options which allow our commands through
20715 # without removal of \ escapes.
20716 if test -n "${ZSH_VERSION+set}" ; then
20717 setopt NO_GLOB_SUBST
20719 # Now quote all the things that may contain metacharacters while being
20720 # careful not to overquote the AC_SUBSTed values. We take copies of the
20721 # variables and quote the copies for generation of the libtool script.
20722 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
20723 SED SHELL STRIP \
20724 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20725 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20726 deplibs_check_method reload_flag reload_cmds need_locks \
20727 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20728 lt_cv_sys_global_symbol_to_c_name_address \
20729 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20730 old_postinstall_cmds old_postuninstall_cmds \
20731 compiler_GCJ \
20732 CC_GCJ \
20733 LD_GCJ \
20734 lt_prog_compiler_wl_GCJ \
20735 lt_prog_compiler_pic_GCJ \
20736 lt_prog_compiler_static_GCJ \
20737 lt_prog_compiler_no_builtin_flag_GCJ \
20738 export_dynamic_flag_spec_GCJ \
20739 thread_safe_flag_spec_GCJ \
20740 whole_archive_flag_spec_GCJ \
20741 enable_shared_with_static_runtimes_GCJ \
20742 old_archive_cmds_GCJ \
20743 old_archive_from_new_cmds_GCJ \
20744 predep_objects_GCJ \
20745 postdep_objects_GCJ \
20746 predeps_GCJ \
20747 postdeps_GCJ \
20748 compiler_lib_search_path_GCJ \
20749 compiler_lib_search_dirs_GCJ \
20750 archive_cmds_GCJ \
20751 archive_expsym_cmds_GCJ \
20752 postinstall_cmds_GCJ \
20753 postuninstall_cmds_GCJ \
20754 old_archive_from_expsyms_cmds_GCJ \
20755 allow_undefined_flag_GCJ \
20756 no_undefined_flag_GCJ \
20757 export_symbols_cmds_GCJ \
20758 hardcode_libdir_flag_spec_GCJ \
20759 hardcode_libdir_flag_spec_ld_GCJ \
20760 hardcode_libdir_separator_GCJ \
20761 hardcode_automatic_GCJ \
20762 module_cmds_GCJ \
20763 module_expsym_cmds_GCJ \
20764 lt_cv_prog_compiler_c_o_GCJ \
20765 fix_srcfile_path_GCJ \
20766 exclude_expsyms_GCJ \
20767 include_expsyms_GCJ; do
20769 case $var in
20770 old_archive_cmds_GCJ | \
20771 old_archive_from_new_cmds_GCJ | \
20772 archive_cmds_GCJ | \
20773 archive_expsym_cmds_GCJ | \
20774 module_cmds_GCJ | \
20775 module_expsym_cmds_GCJ | \
20776 old_archive_from_expsyms_cmds_GCJ | \
20777 export_symbols_cmds_GCJ | \
20778 extract_expsyms_cmds | reload_cmds | finish_cmds | \
20779 postinstall_cmds | postuninstall_cmds | \
20780 old_postinstall_cmds | old_postuninstall_cmds | \
20781 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20782 # Double-quote double-evaled strings.
20783 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
20786 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20788 esac
20789 done
20791 case $lt_echo in
20792 *'\$0 --fallback-echo"')
20793 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20795 esac
20797 cfgfile="$ofile"
20799 cat <<__EOF__ >> "$cfgfile"
20800 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
20802 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20804 # Shell to use when invoking shell scripts.
20805 SHELL=$lt_SHELL
20807 # Whether or not to build shared libraries.
20808 build_libtool_libs=$enable_shared
20810 # Whether or not to build static libraries.
20811 build_old_libs=$enable_static
20813 # Whether or not to add -lc for building shared libraries.
20814 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
20816 # Whether or not to disallow shared libs when runtime libs are static
20817 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
20819 # Whether or not to optimize for fast installation.
20820 fast_install=$enable_fast_install
20822 # The host system.
20823 host_alias=$host_alias
20824 host=$host
20825 host_os=$host_os
20827 # The build system.
20828 build_alias=$build_alias
20829 build=$build
20830 build_os=$build_os
20832 # An echo program that does not interpret backslashes.
20833 echo=$lt_echo
20835 # The archiver.
20836 AR=$lt_AR
20837 AR_FLAGS=$lt_AR_FLAGS
20839 # A C compiler.
20840 LTCC=$lt_LTCC
20842 # LTCC compiler flags.
20843 LTCFLAGS=$lt_LTCFLAGS
20845 # A language-specific compiler.
20846 CC=$lt_compiler_GCJ
20848 # Is the compiler the GNU C compiler?
20849 with_gcc=$GCC_GCJ
20851 # An ERE matcher.
20852 EGREP=$lt_EGREP
20854 # The linker used to build libraries.
20855 LD=$lt_LD_GCJ
20857 # Whether we need hard or soft links.
20858 LN_S=$lt_LN_S
20860 # A BSD-compatible nm program.
20861 NM=$lt_NM
20863 # A symbol stripping program
20864 STRIP=$lt_STRIP
20866 # Used to examine libraries when file_magic_cmd begins "file"
20867 MAGIC_CMD=$MAGIC_CMD
20869 # Used on cygwin: DLL creation program.
20870 DLLTOOL="$DLLTOOL"
20872 # Used on cygwin: object dumper.
20873 OBJDUMP="$OBJDUMP"
20875 # Used on cygwin: assembler.
20876 AS="$AS"
20878 # The name of the directory that contains temporary libtool files.
20879 objdir=$objdir
20881 # How to create reloadable object files.
20882 reload_flag=$lt_reload_flag
20883 reload_cmds=$lt_reload_cmds
20885 # How to pass a linker flag through the compiler.
20886 wl=$lt_lt_prog_compiler_wl_GCJ
20888 # Object file suffix (normally "o").
20889 objext="$ac_objext"
20891 # Old archive suffix (normally "a").
20892 libext="$libext"
20894 # Shared library suffix (normally ".so").
20895 shrext_cmds='$shrext_cmds'
20897 # Executable file suffix (normally "").
20898 exeext="$exeext"
20900 # Additional compiler flags for building library objects.
20901 pic_flag=$lt_lt_prog_compiler_pic_GCJ
20902 pic_mode=$pic_mode
20904 # What is the maximum length of a command?
20905 max_cmd_len=$lt_cv_sys_max_cmd_len
20907 # Does compiler simultaneously support -c and -o options?
20908 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
20910 # Must we lock files when doing compilation?
20911 need_locks=$lt_need_locks
20913 # Do we need the lib prefix for modules?
20914 need_lib_prefix=$need_lib_prefix
20916 # Do we need a version for libraries?
20917 need_version=$need_version
20919 # Whether dlopen is supported.
20920 dlopen_support=$enable_dlopen
20922 # Whether dlopen of programs is supported.
20923 dlopen_self=$enable_dlopen_self
20925 # Whether dlopen of statically linked programs is supported.
20926 dlopen_self_static=$enable_dlopen_self_static
20928 # Compiler flag to prevent dynamic linking.
20929 link_static_flag=$lt_lt_prog_compiler_static_GCJ
20931 # Compiler flag to turn off builtin functions.
20932 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
20934 # Compiler flag to allow reflexive dlopens.
20935 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
20937 # Compiler flag to generate shared objects directly from archives.
20938 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
20940 # Compiler flag to generate thread-safe objects.
20941 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
20943 # Library versioning type.
20944 version_type=$version_type
20946 # Format of library name prefix.
20947 libname_spec=$lt_libname_spec
20949 # List of archive names. First name is the real one, the rest are links.
20950 # The last name is the one that the linker finds with -lNAME.
20951 library_names_spec=$lt_library_names_spec
20953 # The coded name of the library, if different from the real name.
20954 soname_spec=$lt_soname_spec
20956 # Commands used to build and install an old-style archive.
20957 RANLIB=$lt_RANLIB
20958 old_archive_cmds=$lt_old_archive_cmds_GCJ
20959 old_postinstall_cmds=$lt_old_postinstall_cmds
20960 old_postuninstall_cmds=$lt_old_postuninstall_cmds
20962 # Create an old-style archive from a shared archive.
20963 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
20965 # Create a temporary old-style archive to link instead of a shared archive.
20966 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
20968 # Commands used to build and install a shared archive.
20969 archive_cmds=$lt_archive_cmds_GCJ
20970 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
20971 postinstall_cmds=$lt_postinstall_cmds
20972 postuninstall_cmds=$lt_postuninstall_cmds
20974 # Commands used to build a loadable module (assumed same as above if empty)
20975 module_cmds=$lt_module_cmds_GCJ
20976 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
20978 # Commands to strip libraries.
20979 old_striplib=$lt_old_striplib
20980 striplib=$lt_striplib
20982 # Dependencies to place before the objects being linked to create a
20983 # shared library.
20984 predep_objects=$lt_predep_objects_GCJ
20986 # Dependencies to place after the objects being linked to create a
20987 # shared library.
20988 postdep_objects=$lt_postdep_objects_GCJ
20990 # Dependencies to place before the objects being linked to create a
20991 # shared library.
20992 predeps=$lt_predeps_GCJ
20994 # Dependencies to place after the objects being linked to create a
20995 # shared library.
20996 postdeps=$lt_postdeps_GCJ
20998 # The directories searched by this compiler when creating a shared
20999 # library
21000 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_GCJ
21002 # The library search path used internally by the compiler when linking
21003 # a shared library.
21004 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
21006 # Method to check whether dependent libraries are shared objects.
21007 deplibs_check_method=$lt_deplibs_check_method
21009 # Command to use when deplibs_check_method == file_magic.
21010 file_magic_cmd=$lt_file_magic_cmd
21012 # Flag that allows shared libraries with undefined symbols to be built.
21013 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
21015 # Flag that forces no undefined symbols.
21016 no_undefined_flag=$lt_no_undefined_flag_GCJ
21018 # Commands used to finish a libtool library installation in a directory.
21019 finish_cmds=$lt_finish_cmds
21021 # Same as above, but a single script fragment to be evaled but not shown.
21022 finish_eval=$lt_finish_eval
21024 # Take the output of nm and produce a listing of raw symbols and C names.
21025 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
21027 # Transform the output of nm in a proper C declaration
21028 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
21030 # Transform the output of nm in a C name address pair
21031 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
21033 # This is the shared library runtime path variable.
21034 runpath_var=$runpath_var
21036 # This is the shared library path variable.
21037 shlibpath_var=$shlibpath_var
21039 # Is shlibpath searched before the hard-coded library search path?
21040 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
21042 # How to hardcode a shared library path into an executable.
21043 hardcode_action=$hardcode_action_GCJ
21045 # Whether we should hardcode library paths into libraries.
21046 hardcode_into_libs=$hardcode_into_libs
21048 # Flag to hardcode \$libdir into a binary during linking.
21049 # This must work even if \$libdir does not exist.
21050 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
21052 # If ld is used when linking, flag to hardcode \$libdir into
21053 # a binary during linking. This must work even if \$libdir does
21054 # not exist.
21055 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
21057 # Whether we need a single -rpath flag with a separated argument.
21058 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
21060 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
21061 # resulting binary.
21062 hardcode_direct=$hardcode_direct_GCJ
21064 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
21065 # resulting binary.
21066 hardcode_minus_L=$hardcode_minus_L_GCJ
21068 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
21069 # the resulting binary.
21070 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
21072 # Set to yes if building a shared library automatically hardcodes DIR into the library
21073 # and all subsequent libraries and executables linked against it.
21074 hardcode_automatic=$hardcode_automatic_GCJ
21076 # Variables whose values should be saved in libtool wrapper scripts and
21077 # restored at relink time.
21078 variables_saved_for_relink="$variables_saved_for_relink"
21080 # Whether libtool must link a program against all its dependency libraries.
21081 link_all_deplibs=$link_all_deplibs_GCJ
21083 # Compile-time system search path for libraries
21084 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21086 # Run-time system search path for libraries
21087 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
21089 # Fix the shell variable \$srcfile for the compiler.
21090 fix_srcfile_path=$lt_fix_srcfile_path
21092 # Set to yes if exported symbols are required.
21093 always_export_symbols=$always_export_symbols_GCJ
21095 # The commands to list exported symbols.
21096 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
21098 # The commands to extract the exported symbol list from a shared archive.
21099 extract_expsyms_cmds=$lt_extract_expsyms_cmds
21101 # Symbols that should not be listed in the preloaded symbols.
21102 exclude_expsyms=$lt_exclude_expsyms_GCJ
21104 # Symbols that must always be exported.
21105 include_expsyms=$lt_include_expsyms_GCJ
21107 # ### END LIBTOOL TAG CONFIG: $tagname
21109 __EOF__
21112 else
21113 # If there is no Makefile yet, we rely on a make rule to execute
21114 # `config.status --recheck' to rerun these tests and create the
21115 # libtool script then.
21116 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
21117 if test -f "$ltmain_in"; then
21118 test -f Makefile && make "$ltmain"
21123 ac_ext=c
21124 ac_cpp='$CPP $CPPFLAGS'
21125 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21126 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21127 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21129 CC="$lt_save_CC"
21131 else
21132 tagname=""
21139 # Source file extension for RC test sources.
21140 ac_ext=rc
21142 # Object file extension for compiled RC test sources.
21143 objext=o
21144 objext_RC=$objext
21146 # Code to be used in simple compile tests
21147 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
21149 # Code to be used in simple link tests
21150 lt_simple_link_test_code="$lt_simple_compile_test_code"
21152 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
21154 # If no C compiler was specified, use CC.
21155 LTCC=${LTCC-"$CC"}
21157 # If no C compiler flags were specified, use CFLAGS.
21158 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
21160 # Allow CC to be a program name with arguments.
21161 compiler=$CC
21164 # save warnings/boilerplate of simple test code
21165 ac_outfile=conftest.$ac_objext
21166 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
21167 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
21168 _lt_compiler_boilerplate=`cat conftest.err`
21169 $rm conftest*
21171 ac_outfile=conftest.$ac_objext
21172 echo "$lt_simple_link_test_code" >conftest.$ac_ext
21173 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
21174 _lt_linker_boilerplate=`cat conftest.err`
21175 $rm -r conftest*
21178 # Allow CC to be a program name with arguments.
21179 lt_save_CC="$CC"
21180 CC=${RC-"windres"}
21181 compiler=$CC
21182 compiler_RC=$CC
21183 for cc_temp in $compiler""; do
21184 case $cc_temp in
21185 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
21186 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
21187 \-*) ;;
21188 *) break;;
21189 esac
21190 done
21191 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
21193 lt_cv_prog_compiler_c_o_RC=yes
21195 # The else clause should only fire when bootstrapping the
21196 # libtool distribution, otherwise you forgot to ship ltmain.sh
21197 # with your package, and you will get complaints that there are
21198 # no rules to generate ltmain.sh.
21199 if test -f "$ltmain"; then
21200 # See if we are running on zsh, and set the options which allow our commands through
21201 # without removal of \ escapes.
21202 if test -n "${ZSH_VERSION+set}" ; then
21203 setopt NO_GLOB_SUBST
21205 # Now quote all the things that may contain metacharacters while being
21206 # careful not to overquote the AC_SUBSTed values. We take copies of the
21207 # variables and quote the copies for generation of the libtool script.
21208 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
21209 SED SHELL STRIP \
21210 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
21211 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
21212 deplibs_check_method reload_flag reload_cmds need_locks \
21213 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
21214 lt_cv_sys_global_symbol_to_c_name_address \
21215 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
21216 old_postinstall_cmds old_postuninstall_cmds \
21217 compiler_RC \
21218 CC_RC \
21219 LD_RC \
21220 lt_prog_compiler_wl_RC \
21221 lt_prog_compiler_pic_RC \
21222 lt_prog_compiler_static_RC \
21223 lt_prog_compiler_no_builtin_flag_RC \
21224 export_dynamic_flag_spec_RC \
21225 thread_safe_flag_spec_RC \
21226 whole_archive_flag_spec_RC \
21227 enable_shared_with_static_runtimes_RC \
21228 old_archive_cmds_RC \
21229 old_archive_from_new_cmds_RC \
21230 predep_objects_RC \
21231 postdep_objects_RC \
21232 predeps_RC \
21233 postdeps_RC \
21234 compiler_lib_search_path_RC \
21235 compiler_lib_search_dirs_RC \
21236 archive_cmds_RC \
21237 archive_expsym_cmds_RC \
21238 postinstall_cmds_RC \
21239 postuninstall_cmds_RC \
21240 old_archive_from_expsyms_cmds_RC \
21241 allow_undefined_flag_RC \
21242 no_undefined_flag_RC \
21243 export_symbols_cmds_RC \
21244 hardcode_libdir_flag_spec_RC \
21245 hardcode_libdir_flag_spec_ld_RC \
21246 hardcode_libdir_separator_RC \
21247 hardcode_automatic_RC \
21248 module_cmds_RC \
21249 module_expsym_cmds_RC \
21250 lt_cv_prog_compiler_c_o_RC \
21251 fix_srcfile_path_RC \
21252 exclude_expsyms_RC \
21253 include_expsyms_RC; do
21255 case $var in
21256 old_archive_cmds_RC | \
21257 old_archive_from_new_cmds_RC | \
21258 archive_cmds_RC | \
21259 archive_expsym_cmds_RC | \
21260 module_cmds_RC | \
21261 module_expsym_cmds_RC | \
21262 old_archive_from_expsyms_cmds_RC | \
21263 export_symbols_cmds_RC | \
21264 extract_expsyms_cmds | reload_cmds | finish_cmds | \
21265 postinstall_cmds | postuninstall_cmds | \
21266 old_postinstall_cmds | old_postuninstall_cmds | \
21267 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
21268 # Double-quote double-evaled strings.
21269 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
21272 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
21274 esac
21275 done
21277 case $lt_echo in
21278 *'\$0 --fallback-echo"')
21279 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
21281 esac
21283 cfgfile="$ofile"
21285 cat <<__EOF__ >> "$cfgfile"
21286 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
21288 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
21290 # Shell to use when invoking shell scripts.
21291 SHELL=$lt_SHELL
21293 # Whether or not to build shared libraries.
21294 build_libtool_libs=$enable_shared
21296 # Whether or not to build static libraries.
21297 build_old_libs=$enable_static
21299 # Whether or not to add -lc for building shared libraries.
21300 build_libtool_need_lc=$archive_cmds_need_lc_RC
21302 # Whether or not to disallow shared libs when runtime libs are static
21303 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
21305 # Whether or not to optimize for fast installation.
21306 fast_install=$enable_fast_install
21308 # The host system.
21309 host_alias=$host_alias
21310 host=$host
21311 host_os=$host_os
21313 # The build system.
21314 build_alias=$build_alias
21315 build=$build
21316 build_os=$build_os
21318 # An echo program that does not interpret backslashes.
21319 echo=$lt_echo
21321 # The archiver.
21322 AR=$lt_AR
21323 AR_FLAGS=$lt_AR_FLAGS
21325 # A C compiler.
21326 LTCC=$lt_LTCC
21328 # LTCC compiler flags.
21329 LTCFLAGS=$lt_LTCFLAGS
21331 # A language-specific compiler.
21332 CC=$lt_compiler_RC
21334 # Is the compiler the GNU C compiler?
21335 with_gcc=$GCC_RC
21337 # An ERE matcher.
21338 EGREP=$lt_EGREP
21340 # The linker used to build libraries.
21341 LD=$lt_LD_RC
21343 # Whether we need hard or soft links.
21344 LN_S=$lt_LN_S
21346 # A BSD-compatible nm program.
21347 NM=$lt_NM
21349 # A symbol stripping program
21350 STRIP=$lt_STRIP
21352 # Used to examine libraries when file_magic_cmd begins "file"
21353 MAGIC_CMD=$MAGIC_CMD
21355 # Used on cygwin: DLL creation program.
21356 DLLTOOL="$DLLTOOL"
21358 # Used on cygwin: object dumper.
21359 OBJDUMP="$OBJDUMP"
21361 # Used on cygwin: assembler.
21362 AS="$AS"
21364 # The name of the directory that contains temporary libtool files.
21365 objdir=$objdir
21367 # How to create reloadable object files.
21368 reload_flag=$lt_reload_flag
21369 reload_cmds=$lt_reload_cmds
21371 # How to pass a linker flag through the compiler.
21372 wl=$lt_lt_prog_compiler_wl_RC
21374 # Object file suffix (normally "o").
21375 objext="$ac_objext"
21377 # Old archive suffix (normally "a").
21378 libext="$libext"
21380 # Shared library suffix (normally ".so").
21381 shrext_cmds='$shrext_cmds'
21383 # Executable file suffix (normally "").
21384 exeext="$exeext"
21386 # Additional compiler flags for building library objects.
21387 pic_flag=$lt_lt_prog_compiler_pic_RC
21388 pic_mode=$pic_mode
21390 # What is the maximum length of a command?
21391 max_cmd_len=$lt_cv_sys_max_cmd_len
21393 # Does compiler simultaneously support -c and -o options?
21394 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
21396 # Must we lock files when doing compilation?
21397 need_locks=$lt_need_locks
21399 # Do we need the lib prefix for modules?
21400 need_lib_prefix=$need_lib_prefix
21402 # Do we need a version for libraries?
21403 need_version=$need_version
21405 # Whether dlopen is supported.
21406 dlopen_support=$enable_dlopen
21408 # Whether dlopen of programs is supported.
21409 dlopen_self=$enable_dlopen_self
21411 # Whether dlopen of statically linked programs is supported.
21412 dlopen_self_static=$enable_dlopen_self_static
21414 # Compiler flag to prevent dynamic linking.
21415 link_static_flag=$lt_lt_prog_compiler_static_RC
21417 # Compiler flag to turn off builtin functions.
21418 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
21420 # Compiler flag to allow reflexive dlopens.
21421 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
21423 # Compiler flag to generate shared objects directly from archives.
21424 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
21426 # Compiler flag to generate thread-safe objects.
21427 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
21429 # Library versioning type.
21430 version_type=$version_type
21432 # Format of library name prefix.
21433 libname_spec=$lt_libname_spec
21435 # List of archive names. First name is the real one, the rest are links.
21436 # The last name is the one that the linker finds with -lNAME.
21437 library_names_spec=$lt_library_names_spec
21439 # The coded name of the library, if different from the real name.
21440 soname_spec=$lt_soname_spec
21442 # Commands used to build and install an old-style archive.
21443 RANLIB=$lt_RANLIB
21444 old_archive_cmds=$lt_old_archive_cmds_RC
21445 old_postinstall_cmds=$lt_old_postinstall_cmds
21446 old_postuninstall_cmds=$lt_old_postuninstall_cmds
21448 # Create an old-style archive from a shared archive.
21449 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
21451 # Create a temporary old-style archive to link instead of a shared archive.
21452 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
21454 # Commands used to build and install a shared archive.
21455 archive_cmds=$lt_archive_cmds_RC
21456 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
21457 postinstall_cmds=$lt_postinstall_cmds
21458 postuninstall_cmds=$lt_postuninstall_cmds
21460 # Commands used to build a loadable module (assumed same as above if empty)
21461 module_cmds=$lt_module_cmds_RC
21462 module_expsym_cmds=$lt_module_expsym_cmds_RC
21464 # Commands to strip libraries.
21465 old_striplib=$lt_old_striplib
21466 striplib=$lt_striplib
21468 # Dependencies to place before the objects being linked to create a
21469 # shared library.
21470 predep_objects=$lt_predep_objects_RC
21472 # Dependencies to place after the objects being linked to create a
21473 # shared library.
21474 postdep_objects=$lt_postdep_objects_RC
21476 # Dependencies to place before the objects being linked to create a
21477 # shared library.
21478 predeps=$lt_predeps_RC
21480 # Dependencies to place after the objects being linked to create a
21481 # shared library.
21482 postdeps=$lt_postdeps_RC
21484 # The directories searched by this compiler when creating a shared
21485 # library
21486 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_RC
21488 # The library search path used internally by the compiler when linking
21489 # a shared library.
21490 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
21492 # Method to check whether dependent libraries are shared objects.
21493 deplibs_check_method=$lt_deplibs_check_method
21495 # Command to use when deplibs_check_method == file_magic.
21496 file_magic_cmd=$lt_file_magic_cmd
21498 # Flag that allows shared libraries with undefined symbols to be built.
21499 allow_undefined_flag=$lt_allow_undefined_flag_RC
21501 # Flag that forces no undefined symbols.
21502 no_undefined_flag=$lt_no_undefined_flag_RC
21504 # Commands used to finish a libtool library installation in a directory.
21505 finish_cmds=$lt_finish_cmds
21507 # Same as above, but a single script fragment to be evaled but not shown.
21508 finish_eval=$lt_finish_eval
21510 # Take the output of nm and produce a listing of raw symbols and C names.
21511 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
21513 # Transform the output of nm in a proper C declaration
21514 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
21516 # Transform the output of nm in a C name address pair
21517 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
21519 # This is the shared library runtime path variable.
21520 runpath_var=$runpath_var
21522 # This is the shared library path variable.
21523 shlibpath_var=$shlibpath_var
21525 # Is shlibpath searched before the hard-coded library search path?
21526 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
21528 # How to hardcode a shared library path into an executable.
21529 hardcode_action=$hardcode_action_RC
21531 # Whether we should hardcode library paths into libraries.
21532 hardcode_into_libs=$hardcode_into_libs
21534 # Flag to hardcode \$libdir into a binary during linking.
21535 # This must work even if \$libdir does not exist.
21536 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
21538 # If ld is used when linking, flag to hardcode \$libdir into
21539 # a binary during linking. This must work even if \$libdir does
21540 # not exist.
21541 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
21543 # Whether we need a single -rpath flag with a separated argument.
21544 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
21546 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
21547 # resulting binary.
21548 hardcode_direct=$hardcode_direct_RC
21550 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
21551 # resulting binary.
21552 hardcode_minus_L=$hardcode_minus_L_RC
21554 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
21555 # the resulting binary.
21556 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
21558 # Set to yes if building a shared library automatically hardcodes DIR into the library
21559 # and all subsequent libraries and executables linked against it.
21560 hardcode_automatic=$hardcode_automatic_RC
21562 # Variables whose values should be saved in libtool wrapper scripts and
21563 # restored at relink time.
21564 variables_saved_for_relink="$variables_saved_for_relink"
21566 # Whether libtool must link a program against all its dependency libraries.
21567 link_all_deplibs=$link_all_deplibs_RC
21569 # Compile-time system search path for libraries
21570 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21572 # Run-time system search path for libraries
21573 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
21575 # Fix the shell variable \$srcfile for the compiler.
21576 fix_srcfile_path=$lt_fix_srcfile_path
21578 # Set to yes if exported symbols are required.
21579 always_export_symbols=$always_export_symbols_RC
21581 # The commands to list exported symbols.
21582 export_symbols_cmds=$lt_export_symbols_cmds_RC
21584 # The commands to extract the exported symbol list from a shared archive.
21585 extract_expsyms_cmds=$lt_extract_expsyms_cmds
21587 # Symbols that should not be listed in the preloaded symbols.
21588 exclude_expsyms=$lt_exclude_expsyms_RC
21590 # Symbols that must always be exported.
21591 include_expsyms=$lt_include_expsyms_RC
21593 # ### END LIBTOOL TAG CONFIG: $tagname
21595 __EOF__
21598 else
21599 # If there is no Makefile yet, we rely on a make rule to execute
21600 # `config.status --recheck' to rerun these tests and create the
21601 # libtool script then.
21602 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
21603 if test -f "$ltmain_in"; then
21604 test -f Makefile && make "$ltmain"
21609 ac_ext=c
21610 ac_cpp='$CPP $CPPFLAGS'
21611 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21612 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21613 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21615 CC="$lt_save_CC"
21620 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
21621 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
21622 { (exit 1); exit 1; }; }
21624 esac
21626 # Append the new tag name to the list of available tags.
21627 if test -n "$tagname" ; then
21628 available_tags="$available_tags $tagname"
21631 done
21632 IFS="$lt_save_ifs"
21634 # Now substitute the updated list of available tags.
21635 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
21636 mv "${ofile}T" "$ofile"
21637 chmod +x "$ofile"
21638 else
21639 rm -f "${ofile}T"
21640 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
21641 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
21642 { (exit 1); exit 1; }; }
21648 # This can be used to rebuild libtool when needed
21649 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
21651 # Always use our own libtool.
21652 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
21654 # Prevent multiple expansion
21676 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
21677 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
21678 if test "${ac_cv_path_SED+set}" = set; then
21679 echo $ECHO_N "(cached) $ECHO_C" >&6
21680 else
21681 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
21682 for ac_i in 1 2 3 4 5 6 7; do
21683 ac_script="$ac_script$as_nl$ac_script"
21684 done
21685 echo "$ac_script" | sed 99q >conftest.sed
21686 $as_unset ac_script || ac_script=
21687 # Extract the first word of "sed gsed" to use in msg output
21688 if test -z "$SED"; then
21689 set dummy sed gsed; ac_prog_name=$2
21690 if test "${ac_cv_path_SED+set}" = set; then
21691 echo $ECHO_N "(cached) $ECHO_C" >&6
21692 else
21693 ac_path_SED_found=false
21694 # Loop through the user's path and test for each of PROGNAME-LIST
21695 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21696 for as_dir in $PATH
21698 IFS=$as_save_IFS
21699 test -z "$as_dir" && as_dir=.
21700 for ac_prog in sed gsed; do
21701 for ac_exec_ext in '' $ac_executable_extensions; do
21702 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
21703 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
21704 # Check for GNU ac_path_SED and select it if it is found.
21705 # Check for GNU $ac_path_SED
21706 case `"$ac_path_SED" --version 2>&1` in
21707 *GNU*)
21708 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
21710 ac_count=0
21711 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
21712 while :
21714 cat "conftest.in" "conftest.in" >"conftest.tmp"
21715 mv "conftest.tmp" "conftest.in"
21716 cp "conftest.in" "conftest.nl"
21717 echo '' >> "conftest.nl"
21718 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
21719 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
21720 ac_count=`expr $ac_count + 1`
21721 if test $ac_count -gt ${ac_path_SED_max-0}; then
21722 # Best one so far, save it but keep looking for a better one
21723 ac_cv_path_SED="$ac_path_SED"
21724 ac_path_SED_max=$ac_count
21726 # 10*(2^10) chars as input seems more than enough
21727 test $ac_count -gt 10 && break
21728 done
21729 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
21730 esac
21733 $ac_path_SED_found && break 3
21734 done
21735 done
21737 done
21738 IFS=$as_save_IFS
21743 SED="$ac_cv_path_SED"
21744 if test -z "$SED"; then
21745 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in \$PATH" >&5
21746 echo "$as_me: error: no acceptable $ac_prog_name could be found in \$PATH" >&2;}
21747 { (exit 1); exit 1; }; }
21750 else
21751 ac_cv_path_SED=$SED
21755 { echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
21756 echo "${ECHO_T}$ac_cv_path_SED" >&6; }
21757 SED="$ac_cv_path_SED"
21758 rm -f conftest.sed
21765 flag=`echo "-fvisibility=hidden" | $SED 'y% .=/+-(){}<>:*,%_______________%'`
21767 { echo "$as_me:$LINENO: checking whether the C compiler accepts the -fvisibility=hidden flag" >&5
21768 echo $ECHO_N "checking whether the C compiler accepts the -fvisibility=hidden flag... $ECHO_C" >&6; }
21769 if { as_var=ax_cv_c_check_flag_$flag; eval "test \"\${$as_var+set}\" = set"; }; then
21770 echo $ECHO_N "(cached) $ECHO_C" >&6
21771 else
21774 ac_ext=c
21775 ac_cpp='$CPP $CPPFLAGS'
21776 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21777 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21778 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21781 save_CFLAGS="$CFLAGS"
21782 CFLAGS="$CFLAGS -fvisibility=hidden"
21783 cat >conftest.$ac_ext <<_ACEOF
21785 /* confdefs.h. */
21786 _ACEOF
21787 cat confdefs.h >>conftest.$ac_ext
21788 cat >>conftest.$ac_ext <<_ACEOF
21789 /* end confdefs.h. */
21792 main ()
21796 return 0;
21799 _ACEOF
21800 rm -f conftest.$ac_objext
21801 if { (ac_try="$ac_compile"
21802 case "(($ac_try" in
21803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21804 *) ac_try_echo=$ac_try;;
21805 esac
21806 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21807 (eval "$ac_compile") 2>conftest.er1
21808 ac_status=$?
21809 grep -v '^ *+' conftest.er1 >conftest.err
21810 rm -f conftest.er1
21811 cat conftest.err >&5
21812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21813 (exit $ac_status); } && {
21814 test -z "$ac_c_werror_flag" ||
21815 test ! -s conftest.err
21816 } && test -s conftest.$ac_objext; then
21818 eval "ax_cv_c_check_flag_$flag=yes"
21820 else
21821 echo "$as_me: failed program was:" >&5
21822 sed 's/^/| /' conftest.$ac_ext >&5
21825 eval "ax_cv_c_check_flag_$flag=no"
21829 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21831 CFLAGS="$save_CFLAGS"
21833 ac_ext=c
21834 ac_cpp='$CPP $CPPFLAGS'
21835 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21836 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21837 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21842 ac_res=`eval echo '${'ax_cv_c_check_flag_$flag'}'`
21843 { echo "$as_me:$LINENO: result: $ac_res" >&5
21844 echo "${ECHO_T}$ac_res" >&6; }
21846 if eval "test \"`echo '$ax_cv_c_check_flag_'$flag`\" = yes"; then
21849 HAVE_C_GCCVISIBILITY=1
21851 else
21854 HAVE_C_GCCVISIBILITY=0
21864 flag=`echo "-fvisibility=hidden" | $SED 'y% .=/+-(){}<>:*,%_______________%'`
21866 { echo "$as_me:$LINENO: checking whether the C++ compiler accepts the -fvisibility=hidden flag" >&5
21867 echo $ECHO_N "checking whether the C++ compiler accepts the -fvisibility=hidden flag... $ECHO_C" >&6; }
21868 if { as_var=ax_cv_cxx_check_flag_$flag; eval "test \"\${$as_var+set}\" = set"; }; then
21869 echo $ECHO_N "(cached) $ECHO_C" >&6
21870 else
21873 ac_ext=cpp
21874 ac_cpp='$CXXCPP $CPPFLAGS'
21875 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21876 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21877 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21880 save_CXXFLAGS="$CXXFLAGS"
21881 CXXFLAGS="$CXXFLAGS -fvisibility=hidden"
21882 cat >conftest.$ac_ext <<_ACEOF
21884 /* confdefs.h. */
21885 _ACEOF
21886 cat confdefs.h >>conftest.$ac_ext
21887 cat >>conftest.$ac_ext <<_ACEOF
21888 /* end confdefs.h. */
21891 main ()
21895 return 0;
21898 _ACEOF
21899 rm -f conftest.$ac_objext
21900 if { (ac_try="$ac_compile"
21901 case "(($ac_try" in
21902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21903 *) ac_try_echo=$ac_try;;
21904 esac
21905 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21906 (eval "$ac_compile") 2>conftest.er1
21907 ac_status=$?
21908 grep -v '^ *+' conftest.er1 >conftest.err
21909 rm -f conftest.er1
21910 cat conftest.err >&5
21911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21912 (exit $ac_status); } && {
21913 test -z "$ac_cxx_werror_flag" ||
21914 test ! -s conftest.err
21915 } && test -s conftest.$ac_objext; then
21917 eval "ax_cv_cxx_check_flag_$flag=yes"
21919 else
21920 echo "$as_me: failed program was:" >&5
21921 sed 's/^/| /' conftest.$ac_ext >&5
21924 eval "ax_cv_cxx_check_flag_$flag=no"
21928 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21930 CXXFLAGS="$save_CXXFLAGS"
21932 ac_ext=c
21933 ac_cpp='$CPP $CPPFLAGS'
21934 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21935 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21936 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21941 ac_res=`eval echo '${'ax_cv_cxx_check_flag_$flag'}'`
21942 { echo "$as_me:$LINENO: result: $ac_res" >&5
21943 echo "${ECHO_T}$ac_res" >&6; }
21945 if eval "test \"`echo '$ax_cv_cxx_check_flag_'$flag`\" = yes"; then
21948 HAVE_CXX_GCCVISIBILITY=1
21950 else
21953 HAVE_CXX_GCCVISIBILITY=0
21958 if test "$HAVE_C_GCCVISIBILITY" = "1" -a "$HAVE_CXX_GCCVISIBILITY" = "1"; then
21959 WITH_GCCVISIBILITY_TRUE=
21960 WITH_GCCVISIBILITY_FALSE='#'
21961 else
21962 WITH_GCCVISIBILITY_TRUE='#'
21963 WITH_GCCVISIBILITY_FALSE=
21967 ac_ext=cpp
21968 ac_cpp='$CXXCPP $CPPFLAGS'
21969 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21970 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21971 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21975 pkg_failed=no
21976 { echo "$as_me:$LINENO: checking for BARRY" >&5
21977 echo $ECHO_N "checking for BARRY... $ECHO_C" >&6; }
21979 if test -n "$PKG_CONFIG"; then
21980 if test -n "$BARRY_CFLAGS"; then
21981 pkg_cv_BARRY_CFLAGS="$BARRY_CFLAGS"
21982 else
21983 if test -n "$PKG_CONFIG" && \
21984 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libbarry-0 libbarrysync-0\"") >&5
21985 ($PKG_CONFIG --exists --print-errors "libbarry-0 libbarrysync-0") 2>&5
21986 ac_status=$?
21987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21988 (exit $ac_status); }; then
21989 pkg_cv_BARRY_CFLAGS=`$PKG_CONFIG --cflags "libbarry-0 libbarrysync-0" 2>/dev/null`
21990 else
21991 pkg_failed=yes
21994 else
21995 pkg_failed=untried
21997 if test -n "$PKG_CONFIG"; then
21998 if test -n "$BARRY_LIBS"; then
21999 pkg_cv_BARRY_LIBS="$BARRY_LIBS"
22000 else
22001 if test -n "$PKG_CONFIG" && \
22002 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libbarry-0 libbarrysync-0\"") >&5
22003 ($PKG_CONFIG --exists --print-errors "libbarry-0 libbarrysync-0") 2>&5
22004 ac_status=$?
22005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22006 (exit $ac_status); }; then
22007 pkg_cv_BARRY_LIBS=`$PKG_CONFIG --libs "libbarry-0 libbarrysync-0" 2>/dev/null`
22008 else
22009 pkg_failed=yes
22012 else
22013 pkg_failed=untried
22018 if test $pkg_failed = yes; then
22020 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
22021 _pkg_short_errors_supported=yes
22022 else
22023 _pkg_short_errors_supported=no
22025 if test $_pkg_short_errors_supported = yes; then
22026 BARRY_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libbarry-0 libbarrysync-0"`
22027 else
22028 BARRY_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libbarry-0 libbarrysync-0"`
22030 # Put the nasty error message in config.log where it belongs
22031 echo "$BARRY_PKG_ERRORS" >&5
22033 { { echo "$as_me:$LINENO: error: Package requirements (libbarry-0 libbarrysync-0) were not met:
22035 $BARRY_PKG_ERRORS
22037 Consider adjusting the PKG_CONFIG_PATH environment variable if you
22038 installed software in a non-standard prefix.
22040 Alternatively, you may set the environment variables BARRY_CFLAGS
22041 and BARRY_LIBS to avoid the need to call pkg-config.
22042 See the pkg-config man page for more details.
22043 " >&5
22044 echo "$as_me: error: Package requirements (libbarry-0 libbarrysync-0) were not met:
22046 $BARRY_PKG_ERRORS
22048 Consider adjusting the PKG_CONFIG_PATH environment variable if you
22049 installed software in a non-standard prefix.
22051 Alternatively, you may set the environment variables BARRY_CFLAGS
22052 and BARRY_LIBS to avoid the need to call pkg-config.
22053 See the pkg-config man page for more details.
22054 " >&2;}
22055 { (exit 1); exit 1; }; }
22056 elif test $pkg_failed = untried; then
22057 { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
22058 is in your PATH or set the PKG_CONFIG environment variable to the full
22059 path to pkg-config.
22061 Alternatively, you may set the environment variables BARRY_CFLAGS
22062 and BARRY_LIBS to avoid the need to call pkg-config.
22063 See the pkg-config man page for more details.
22065 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
22066 See \`config.log' for more details." >&5
22067 echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
22068 is in your PATH or set the PKG_CONFIG environment variable to the full
22069 path to pkg-config.
22071 Alternatively, you may set the environment variables BARRY_CFLAGS
22072 and BARRY_LIBS to avoid the need to call pkg-config.
22073 See the pkg-config man page for more details.
22075 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
22076 See \`config.log' for more details." >&2;}
22077 { (exit 1); exit 1; }; }
22078 else
22079 BARRY_CFLAGS=$pkg_cv_BARRY_CFLAGS
22080 BARRY_LIBS=$pkg_cv_BARRY_LIBS
22081 { echo "$as_me:$LINENO: result: yes" >&5
22082 echo "${ECHO_T}yes" >&6; }
22086 # Carry the special tree build environment variables from parent configure,
22087 # just in case user is doing a complete tree build with --enable-opensync-plugin
22091 OPENSYNC_CONFIGDIR=$(pkg-config --variable=configdir libopensync1)
22092 OPENSYNC_PLUGINDIR=$(pkg-config --variable=plugindir libopensync1)
22093 OPENSYNC_FORMATSDIR=$(pkg-config --variable=formatsdir libopensync1)
22094 OPENSYNC_HEADERDIR=$(pkg-config --variable=headerdir libopensync1)
22096 ## This is the place where you can install the default configuration files of your plugin
22097 ## This is the dir where you plugin will be installed
22098 ## Here are format plugins installed (if any)
22099 ## Here are the headers that a user interface may need (if any)
22101 ac_config_files="$ac_config_files Makefile src/Makefile"
22103 cat >confcache <<\_ACEOF
22104 # This file is a shell script that caches the results of configure
22105 # tests run on this system so they can be shared between configure
22106 # scripts and configure runs, see configure's option --config-cache.
22107 # It is not useful on other systems. If it contains results you don't
22108 # want to keep, you may remove or edit it.
22110 # config.status only pays attention to the cache file if you give it
22111 # the --recheck option to rerun configure.
22113 # `ac_cv_env_foo' variables (set or unset) will be overridden when
22114 # loading this file, other *unset* `ac_cv_foo' will be assigned the
22115 # following values.
22117 _ACEOF
22119 # The following way of writing the cache mishandles newlines in values,
22120 # but we know of no workaround that is simple, portable, and efficient.
22121 # So, we kill variables containing newlines.
22122 # Ultrix sh set writes to stderr and can't be redirected directly,
22123 # and sets the high bit in the cache file unless we assign to the vars.
22125 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
22126 eval ac_val=\$$ac_var
22127 case $ac_val in #(
22128 *${as_nl}*)
22129 case $ac_var in #(
22130 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
22131 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
22132 esac
22133 case $ac_var in #(
22134 _ | IFS | as_nl) ;; #(
22135 *) $as_unset $ac_var ;;
22136 esac ;;
22137 esac
22138 done
22140 (set) 2>&1 |
22141 case $as_nl`(ac_space=' '; set) 2>&1` in #(
22142 *${as_nl}ac_space=\ *)
22143 # `set' does not quote correctly, so add quotes (double-quote
22144 # substitution turns \\\\ into \\, and sed turns \\ into \).
22145 sed -n \
22146 "s/'/'\\\\''/g;
22147 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22148 ;; #(
22150 # `set' quotes correctly as required by POSIX, so do not add quotes.
22151 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
22153 esac |
22154 sort
22156 sed '
22157 /^ac_cv_env_/b end
22158 t clear
22159 :clear
22160 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22161 t end
22162 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22163 :end' >>confcache
22164 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
22165 if test -w "$cache_file"; then
22166 test "x$cache_file" != "x/dev/null" &&
22167 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
22168 echo "$as_me: updating cache $cache_file" >&6;}
22169 cat confcache >$cache_file
22170 else
22171 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
22172 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
22175 rm -f confcache
22177 test "x$prefix" = xNONE && prefix=$ac_default_prefix
22178 # Let make expand exec_prefix.
22179 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22181 DEFS=-DHAVE_CONFIG_H
22183 ac_libobjs=
22184 ac_ltlibobjs=
22185 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
22186 # 1. Remove the extension, and $U if already installed.
22187 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
22188 ac_i=`echo "$ac_i" | sed "$ac_script"`
22189 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
22190 # will be set to the directory where LIBOBJS objects are built.
22191 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
22192 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
22193 done
22194 LIBOBJS=$ac_libobjs
22196 LTLIBOBJS=$ac_ltlibobjs
22199 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
22200 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
22201 Usually this means the macro was only invoked conditionally." >&5
22202 echo "$as_me: error: conditional \"AMDEP\" was never defined.
22203 Usually this means the macro was only invoked conditionally." >&2;}
22204 { (exit 1); exit 1; }; }
22206 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
22207 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
22208 Usually this means the macro was only invoked conditionally." >&5
22209 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
22210 Usually this means the macro was only invoked conditionally." >&2;}
22211 { (exit 1); exit 1; }; }
22213 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
22214 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
22215 Usually this means the macro was only invoked conditionally." >&5
22216 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
22217 Usually this means the macro was only invoked conditionally." >&2;}
22218 { (exit 1); exit 1; }; }
22220 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
22221 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
22222 Usually this means the macro was only invoked conditionally." >&5
22223 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
22224 Usually this means the macro was only invoked conditionally." >&2;}
22225 { (exit 1); exit 1; }; }
22227 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
22228 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
22229 Usually this means the macro was only invoked conditionally." >&5
22230 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
22231 Usually this means the macro was only invoked conditionally." >&2;}
22232 { (exit 1); exit 1; }; }
22234 if test -z "${WITH_GCCVISIBILITY_TRUE}" && test -z "${WITH_GCCVISIBILITY_FALSE}"; then
22235 { { echo "$as_me:$LINENO: error: conditional \"WITH_GCCVISIBILITY\" was never defined.
22236 Usually this means the macro was only invoked conditionally." >&5
22237 echo "$as_me: error: conditional \"WITH_GCCVISIBILITY\" was never defined.
22238 Usually this means the macro was only invoked conditionally." >&2;}
22239 { (exit 1); exit 1; }; }
22242 : ${CONFIG_STATUS=./config.status}
22243 ac_clean_files_save=$ac_clean_files
22244 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
22245 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
22246 echo "$as_me: creating $CONFIG_STATUS" >&6;}
22247 cat >$CONFIG_STATUS <<_ACEOF
22248 #! $SHELL
22249 # Generated by $as_me.
22250 # Run this file to recreate the current configuration.
22251 # Compiler output produced by configure, useful for debugging
22252 # configure, is in config.log if it exists.
22254 debug=false
22255 ac_cs_recheck=false
22256 ac_cs_silent=false
22257 SHELL=\${CONFIG_SHELL-$SHELL}
22258 _ACEOF
22260 cat >>$CONFIG_STATUS <<\_ACEOF
22261 ## --------------------- ##
22262 ## M4sh Initialization. ##
22263 ## --------------------- ##
22265 # Be more Bourne compatible
22266 DUALCASE=1; export DUALCASE # for MKS sh
22267 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22268 emulate sh
22269 NULLCMD=:
22270 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22271 # is contrary to our usage. Disable this feature.
22272 alias -g '${1+"$@"}'='"$@"'
22273 setopt NO_GLOB_SUBST
22274 else
22275 case `(set -o) 2>/dev/null` in
22276 *posix*) set -o posix ;;
22277 esac
22284 # PATH needs CR
22285 # Avoid depending upon Character Ranges.
22286 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
22287 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22288 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
22289 as_cr_digits='0123456789'
22290 as_cr_alnum=$as_cr_Letters$as_cr_digits
22292 # The user is always right.
22293 if test "${PATH_SEPARATOR+set}" != set; then
22294 echo "#! /bin/sh" >conf$$.sh
22295 echo "exit 0" >>conf$$.sh
22296 chmod +x conf$$.sh
22297 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
22298 PATH_SEPARATOR=';'
22299 else
22300 PATH_SEPARATOR=:
22302 rm -f conf$$.sh
22305 # Support unset when possible.
22306 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
22307 as_unset=unset
22308 else
22309 as_unset=false
22313 # IFS
22314 # We need space, tab and new line, in precisely that order. Quoting is
22315 # there to prevent editors from complaining about space-tab.
22316 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
22317 # splitting by setting IFS to empty value.)
22318 as_nl='
22320 IFS=" "" $as_nl"
22322 # Find who we are. Look in the path if we contain no directory separator.
22323 case $0 in
22324 *[\\/]* ) as_myself=$0 ;;
22325 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22326 for as_dir in $PATH
22328 IFS=$as_save_IFS
22329 test -z "$as_dir" && as_dir=.
22330 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
22331 done
22332 IFS=$as_save_IFS
22335 esac
22336 # We did not find ourselves, most probably we were run as `sh COMMAND'
22337 # in which case we are not to be found in the path.
22338 if test "x$as_myself" = x; then
22339 as_myself=$0
22341 if test ! -f "$as_myself"; then
22342 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
22343 { (exit 1); exit 1; }
22346 # Work around bugs in pre-3.0 UWIN ksh.
22347 for as_var in ENV MAIL MAILPATH
22348 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
22349 done
22350 PS1='$ '
22351 PS2='> '
22352 PS4='+ '
22354 # NLS nuisances.
22355 for as_var in \
22356 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
22357 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
22358 LC_TELEPHONE LC_TIME
22360 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
22361 eval $as_var=C; export $as_var
22362 else
22363 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
22365 done
22367 # Required to use basename.
22368 if expr a : '\(a\)' >/dev/null 2>&1 &&
22369 test "X`expr 00001 : '.*\(...\)'`" = X001; then
22370 as_expr=expr
22371 else
22372 as_expr=false
22375 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
22376 as_basename=basename
22377 else
22378 as_basename=false
22382 # Name of the executable.
22383 as_me=`$as_basename -- "$0" ||
22384 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22385 X"$0" : 'X\(//\)$' \| \
22386 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
22387 echo X/"$0" |
22388 sed '/^.*\/\([^/][^/]*\)\/*$/{
22389 s//\1/
22392 /^X\/\(\/\/\)$/{
22393 s//\1/
22396 /^X\/\(\/\).*/{
22397 s//\1/
22400 s/.*/./; q'`
22402 # CDPATH.
22403 $as_unset CDPATH
22407 as_lineno_1=$LINENO
22408 as_lineno_2=$LINENO
22409 test "x$as_lineno_1" != "x$as_lineno_2" &&
22410 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
22412 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
22413 # uniformly replaced by the line number. The first 'sed' inserts a
22414 # line-number line after each line using $LINENO; the second 'sed'
22415 # does the real work. The second script uses 'N' to pair each
22416 # line-number line with the line containing $LINENO, and appends
22417 # trailing '-' during substitution so that $LINENO is not a special
22418 # case at line end.
22419 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
22420 # scripts with optimization help from Paolo Bonzini. Blame Lee
22421 # E. McMahon (1931-1989) for sed's syntax. :-)
22422 sed -n '
22424 /[$]LINENO/=
22425 ' <$as_myself |
22426 sed '
22427 s/[$]LINENO.*/&-/
22428 t lineno
22430 :lineno
22432 :loop
22433 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
22434 t loop
22435 s/-\n.*//
22436 ' >$as_me.lineno &&
22437 chmod +x "$as_me.lineno" ||
22438 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
22439 { (exit 1); exit 1; }; }
22441 # Don't try to exec as it changes $[0], causing all sort of problems
22442 # (the dirname of $[0] is not the place where we might find the
22443 # original and so on. Autoconf is especially sensitive to this).
22444 . "./$as_me.lineno"
22445 # Exit status is that of the last command.
22446 exit
22450 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
22451 as_dirname=dirname
22452 else
22453 as_dirname=false
22456 ECHO_C= ECHO_N= ECHO_T=
22457 case `echo -n x` in
22458 -n*)
22459 case `echo 'x\c'` in
22460 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
22461 *) ECHO_C='\c';;
22462 esac;;
22464 ECHO_N='-n';;
22465 esac
22467 if expr a : '\(a\)' >/dev/null 2>&1 &&
22468 test "X`expr 00001 : '.*\(...\)'`" = X001; then
22469 as_expr=expr
22470 else
22471 as_expr=false
22474 rm -f conf$$ conf$$.exe conf$$.file
22475 if test -d conf$$.dir; then
22476 rm -f conf$$.dir/conf$$.file
22477 else
22478 rm -f conf$$.dir
22479 mkdir conf$$.dir
22481 echo >conf$$.file
22482 if ln -s conf$$.file conf$$ 2>/dev/null; then
22483 as_ln_s='ln -s'
22484 # ... but there are two gotchas:
22485 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
22486 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
22487 # In both cases, we have to default to `cp -p'.
22488 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
22489 as_ln_s='cp -p'
22490 elif ln conf$$.file conf$$ 2>/dev/null; then
22491 as_ln_s=ln
22492 else
22493 as_ln_s='cp -p'
22495 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
22496 rmdir conf$$.dir 2>/dev/null
22498 if mkdir -p . 2>/dev/null; then
22499 as_mkdir_p=:
22500 else
22501 test -d ./-p && rmdir ./-p
22502 as_mkdir_p=false
22505 if test -x / >/dev/null 2>&1; then
22506 as_test_x='test -x'
22507 else
22508 if ls -dL / >/dev/null 2>&1; then
22509 as_ls_L_option=L
22510 else
22511 as_ls_L_option=
22513 as_test_x='
22514 eval sh -c '\''
22515 if test -d "$1"; then
22516 test -d "$1/.";
22517 else
22518 case $1 in
22519 -*)set "./$1";;
22520 esac;
22521 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
22522 ???[sx]*):;;*)false;;esac;fi
22523 '\'' sh
22526 as_executable_p=$as_test_x
22528 # Sed expression to map a string onto a valid CPP name.
22529 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
22531 # Sed expression to map a string onto a valid variable name.
22532 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
22535 exec 6>&1
22537 # Save the log message, to keep $[0] and so on meaningful, and to
22538 # report actual input values of CONFIG_FILES etc. instead of their
22539 # values after options handling.
22540 ac_log="
22541 This file was extended by Barry OpenSync Plugin 0.4x $as_me 0.17, which was
22542 generated by GNU Autoconf 2.61. Invocation command line was
22544 CONFIG_FILES = $CONFIG_FILES
22545 CONFIG_HEADERS = $CONFIG_HEADERS
22546 CONFIG_LINKS = $CONFIG_LINKS
22547 CONFIG_COMMANDS = $CONFIG_COMMANDS
22548 $ $0 $@
22550 on `(hostname || uname -n) 2>/dev/null | sed 1q`
22553 _ACEOF
22555 cat >>$CONFIG_STATUS <<_ACEOF
22556 # Files that config.status was made for.
22557 config_files="$ac_config_files"
22558 config_headers="$ac_config_headers"
22559 config_commands="$ac_config_commands"
22561 _ACEOF
22563 cat >>$CONFIG_STATUS <<\_ACEOF
22564 ac_cs_usage="\
22565 \`$as_me' instantiates files from templates according to the
22566 current configuration.
22568 Usage: $0 [OPTIONS] [FILE]...
22570 -h, --help print this help, then exit
22571 -V, --version print version number and configuration settings, then exit
22572 -q, --quiet do not print progress messages
22573 -d, --debug don't remove temporary files
22574 --recheck update $as_me by reconfiguring in the same conditions
22575 --file=FILE[:TEMPLATE]
22576 instantiate the configuration file FILE
22577 --header=FILE[:TEMPLATE]
22578 instantiate the configuration header FILE
22580 Configuration files:
22581 $config_files
22583 Configuration headers:
22584 $config_headers
22586 Configuration commands:
22587 $config_commands
22589 Report bugs to <bug-autoconf@gnu.org>."
22591 _ACEOF
22592 cat >>$CONFIG_STATUS <<_ACEOF
22593 ac_cs_version="\\
22594 Barry OpenSync Plugin 0.4x config.status 0.17
22595 configured by $0, generated by GNU Autoconf 2.61,
22596 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
22598 Copyright (C) 2006 Free Software Foundation, Inc.
22599 This config.status script is free software; the Free Software Foundation
22600 gives unlimited permission to copy, distribute and modify it."
22602 ac_pwd='$ac_pwd'
22603 srcdir='$srcdir'
22604 INSTALL='$INSTALL'
22605 MKDIR_P='$MKDIR_P'
22606 _ACEOF
22608 cat >>$CONFIG_STATUS <<\_ACEOF
22609 # If no file are specified by the user, then we need to provide default
22610 # value. By we need to know if files were specified by the user.
22611 ac_need_defaults=:
22612 while test $# != 0
22614 case $1 in
22615 --*=*)
22616 ac_option=`expr "X$1" : 'X\([^=]*\)='`
22617 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
22618 ac_shift=:
22621 ac_option=$1
22622 ac_optarg=$2
22623 ac_shift=shift
22625 esac
22627 case $ac_option in
22628 # Handling of the options.
22629 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22630 ac_cs_recheck=: ;;
22631 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
22632 echo "$ac_cs_version"; exit ;;
22633 --debug | --debu | --deb | --de | --d | -d )
22634 debug=: ;;
22635 --file | --fil | --fi | --f )
22636 $ac_shift
22637 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
22638 ac_need_defaults=false;;
22639 --header | --heade | --head | --hea )
22640 $ac_shift
22641 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
22642 ac_need_defaults=false;;
22643 --he | --h)
22644 # Conflict between --help and --header
22645 { echo "$as_me: error: ambiguous option: $1
22646 Try \`$0 --help' for more information." >&2
22647 { (exit 1); exit 1; }; };;
22648 --help | --hel | -h )
22649 echo "$ac_cs_usage"; exit ;;
22650 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
22651 | -silent | --silent | --silen | --sile | --sil | --si | --s)
22652 ac_cs_silent=: ;;
22654 # This is an error.
22655 -*) { echo "$as_me: error: unrecognized option: $1
22656 Try \`$0 --help' for more information." >&2
22657 { (exit 1); exit 1; }; } ;;
22659 *) ac_config_targets="$ac_config_targets $1"
22660 ac_need_defaults=false ;;
22662 esac
22663 shift
22664 done
22666 ac_configure_extra_args=
22668 if $ac_cs_silent; then
22669 exec 6>/dev/null
22670 ac_configure_extra_args="$ac_configure_extra_args --silent"
22673 _ACEOF
22674 cat >>$CONFIG_STATUS <<_ACEOF
22675 if \$ac_cs_recheck; then
22676 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
22677 CONFIG_SHELL=$SHELL
22678 export CONFIG_SHELL
22679 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
22682 _ACEOF
22683 cat >>$CONFIG_STATUS <<\_ACEOF
22684 exec 5>>config.log
22686 echo
22687 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
22688 ## Running $as_me. ##
22689 _ASBOX
22690 echo "$ac_log"
22691 } >&5
22693 _ACEOF
22694 cat >>$CONFIG_STATUS <<_ACEOF
22696 # INIT-COMMANDS
22698 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
22700 _ACEOF
22702 cat >>$CONFIG_STATUS <<\_ACEOF
22704 # Handling of arguments.
22705 for ac_config_target in $ac_config_targets
22707 case $ac_config_target in
22708 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
22709 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
22710 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
22711 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
22713 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
22714 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
22715 { (exit 1); exit 1; }; };;
22716 esac
22717 done
22720 # If the user did not use the arguments to specify the items to instantiate,
22721 # then the envvar interface is used. Set only those that are not.
22722 # We use the long form for the default assignment because of an extremely
22723 # bizarre bug on SunOS 4.1.3.
22724 if $ac_need_defaults; then
22725 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
22726 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
22727 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
22730 # Have a temporary directory for convenience. Make it in the build tree
22731 # simply because there is no reason against having it here, and in addition,
22732 # creating and moving files from /tmp can sometimes cause problems.
22733 # Hook for its removal unless debugging.
22734 # Note that there is a small window in which the directory will not be cleaned:
22735 # after its creation but before its name has been assigned to `$tmp'.
22736 $debug ||
22738 tmp=
22739 trap 'exit_status=$?
22740 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
22742 trap '{ (exit 1); exit 1; }' 1 2 13 15
22744 # Create a (secure) tmp directory for tmp files.
22747 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
22748 test -n "$tmp" && test -d "$tmp"
22749 } ||
22751 tmp=./conf$$-$RANDOM
22752 (umask 077 && mkdir "$tmp")
22753 } ||
22755 echo "$me: cannot create a temporary directory in ." >&2
22756 { (exit 1); exit 1; }
22760 # Set up the sed scripts for CONFIG_FILES section.
22763 # No need to generate the scripts if there are no CONFIG_FILES.
22764 # This happens for instance when ./config.status config.h
22765 if test -n "$CONFIG_FILES"; then
22767 _ACEOF
22771 ac_delim='%!_!# '
22772 for ac_last_try in false false false false false :; do
22773 cat >conf$$subs.sed <<_ACEOF
22774 SHELL!$SHELL$ac_delim
22775 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
22776 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
22777 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
22778 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
22779 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
22780 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
22781 exec_prefix!$exec_prefix$ac_delim
22782 prefix!$prefix$ac_delim
22783 program_transform_name!$program_transform_name$ac_delim
22784 bindir!$bindir$ac_delim
22785 sbindir!$sbindir$ac_delim
22786 libexecdir!$libexecdir$ac_delim
22787 datarootdir!$datarootdir$ac_delim
22788 datadir!$datadir$ac_delim
22789 sysconfdir!$sysconfdir$ac_delim
22790 sharedstatedir!$sharedstatedir$ac_delim
22791 localstatedir!$localstatedir$ac_delim
22792 includedir!$includedir$ac_delim
22793 oldincludedir!$oldincludedir$ac_delim
22794 docdir!$docdir$ac_delim
22795 infodir!$infodir$ac_delim
22796 htmldir!$htmldir$ac_delim
22797 dvidir!$dvidir$ac_delim
22798 pdfdir!$pdfdir$ac_delim
22799 psdir!$psdir$ac_delim
22800 libdir!$libdir$ac_delim
22801 localedir!$localedir$ac_delim
22802 mandir!$mandir$ac_delim
22803 DEFS!$DEFS$ac_delim
22804 ECHO_C!$ECHO_C$ac_delim
22805 ECHO_N!$ECHO_N$ac_delim
22806 ECHO_T!$ECHO_T$ac_delim
22807 LIBS!$LIBS$ac_delim
22808 build_alias!$build_alias$ac_delim
22809 host_alias!$host_alias$ac_delim
22810 target_alias!$target_alias$ac_delim
22811 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
22812 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
22813 INSTALL_DATA!$INSTALL_DATA$ac_delim
22814 am__isrc!$am__isrc$ac_delim
22815 CYGPATH_W!$CYGPATH_W$ac_delim
22816 PACKAGE!$PACKAGE$ac_delim
22817 VERSION!$VERSION$ac_delim
22818 ACLOCAL!$ACLOCAL$ac_delim
22819 AUTOCONF!$AUTOCONF$ac_delim
22820 AUTOMAKE!$AUTOMAKE$ac_delim
22821 AUTOHEADER!$AUTOHEADER$ac_delim
22822 MAKEINFO!$MAKEINFO$ac_delim
22823 install_sh!$install_sh$ac_delim
22824 STRIP!$STRIP$ac_delim
22825 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
22826 mkdir_p!$mkdir_p$ac_delim
22827 AWK!$AWK$ac_delim
22828 SET_MAKE!$SET_MAKE$ac_delim
22829 am__leading_dot!$am__leading_dot$ac_delim
22830 AMTAR!$AMTAR$ac_delim
22831 am__tar!$am__tar$ac_delim
22832 am__untar!$am__untar$ac_delim
22833 PKG_CONFIG!$PKG_CONFIG$ac_delim
22834 PACKAGE_CFLAGS!$PACKAGE_CFLAGS$ac_delim
22835 PACKAGE_LIBS!$PACKAGE_LIBS$ac_delim
22836 CC!$CC$ac_delim
22837 CFLAGS!$CFLAGS$ac_delim
22838 LDFLAGS!$LDFLAGS$ac_delim
22839 CPPFLAGS!$CPPFLAGS$ac_delim
22840 ac_ct_CC!$ac_ct_CC$ac_delim
22841 EXEEXT!$EXEEXT$ac_delim
22842 OBJEXT!$OBJEXT$ac_delim
22843 DEPDIR!$DEPDIR$ac_delim
22844 am__include!$am__include$ac_delim
22845 am__quote!$am__quote$ac_delim
22846 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
22847 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
22848 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
22849 CCDEPMODE!$CCDEPMODE$ac_delim
22850 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
22851 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
22852 CPP!$CPP$ac_delim
22853 GREP!$GREP$ac_delim
22854 EGREP!$EGREP$ac_delim
22855 CXX!$CXX$ac_delim
22856 CXXFLAGS!$CXXFLAGS$ac_delim
22857 ac_ct_CXX!$ac_ct_CXX$ac_delim
22858 CXXDEPMODE!$CXXDEPMODE$ac_delim
22859 am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
22860 am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
22861 build!$build$ac_delim
22862 build_cpu!$build_cpu$ac_delim
22863 build_vendor!$build_vendor$ac_delim
22864 build_os!$build_os$ac_delim
22865 host!$host$ac_delim
22866 host_cpu!$host_cpu$ac_delim
22867 host_vendor!$host_vendor$ac_delim
22868 host_os!$host_os$ac_delim
22869 SED!$SED$ac_delim
22870 LN_S!$LN_S$ac_delim
22871 _ACEOF
22873 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
22874 break
22875 elif $ac_last_try; then
22876 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22877 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22878 { (exit 1); exit 1; }; }
22879 else
22880 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22882 done
22884 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
22885 if test -n "$ac_eof"; then
22886 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
22887 ac_eof=`expr $ac_eof + 1`
22890 cat >>$CONFIG_STATUS <<_ACEOF
22891 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
22892 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22893 _ACEOF
22894 sed '
22895 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
22896 s/^/s,@/; s/!/@,|#_!!_#|/
22899 s/'"$ac_delim"'$/,g/; t
22900 s/$/\\/; p
22901 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
22902 ' >>$CONFIG_STATUS <conf$$subs.sed
22903 rm -f conf$$subs.sed
22904 cat >>$CONFIG_STATUS <<_ACEOF
22905 CEOF$ac_eof
22906 _ACEOF
22909 ac_delim='%!_!# '
22910 for ac_last_try in false false false false false :; do
22911 cat >conf$$subs.sed <<_ACEOF
22912 ECHO!$ECHO$ac_delim
22913 AR!$AR$ac_delim
22914 RANLIB!$RANLIB$ac_delim
22915 DSYMUTIL!$DSYMUTIL$ac_delim
22916 NMEDIT!$NMEDIT$ac_delim
22917 CXXCPP!$CXXCPP$ac_delim
22918 F77!$F77$ac_delim
22919 FFLAGS!$FFLAGS$ac_delim
22920 ac_ct_F77!$ac_ct_F77$ac_delim
22921 LIBTOOL!$LIBTOOL$ac_delim
22922 WITH_GCCVISIBILITY_TRUE!$WITH_GCCVISIBILITY_TRUE$ac_delim
22923 WITH_GCCVISIBILITY_FALSE!$WITH_GCCVISIBILITY_FALSE$ac_delim
22924 BARRY_CFLAGS!$BARRY_CFLAGS$ac_delim
22925 BARRY_LIBS!$BARRY_LIBS$ac_delim
22926 TREE_BUILD_CXXFLAGS!$TREE_BUILD_CXXFLAGS$ac_delim
22927 TREE_BUILD_LDFLAGS!$TREE_BUILD_LDFLAGS$ac_delim
22928 OPENSYNC_CONFIGDIR!$OPENSYNC_CONFIGDIR$ac_delim
22929 OPENSYNC_PLUGINDIR!$OPENSYNC_PLUGINDIR$ac_delim
22930 OPENSYNC_FORMATSDIR!$OPENSYNC_FORMATSDIR$ac_delim
22931 OPENSYNC_HEADERDIR!$OPENSYNC_HEADERDIR$ac_delim
22932 LIBOBJS!$LIBOBJS$ac_delim
22933 LTLIBOBJS!$LTLIBOBJS$ac_delim
22934 _ACEOF
22936 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 22; then
22937 break
22938 elif $ac_last_try; then
22939 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22940 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22941 { (exit 1); exit 1; }; }
22942 else
22943 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22945 done
22947 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
22948 if test -n "$ac_eof"; then
22949 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
22950 ac_eof=`expr $ac_eof + 1`
22953 cat >>$CONFIG_STATUS <<_ACEOF
22954 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
22955 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
22956 _ACEOF
22957 sed '
22958 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
22959 s/^/s,@/; s/!/@,|#_!!_#|/
22962 s/'"$ac_delim"'$/,g/; t
22963 s/$/\\/; p
22964 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
22965 ' >>$CONFIG_STATUS <conf$$subs.sed
22966 rm -f conf$$subs.sed
22967 cat >>$CONFIG_STATUS <<_ACEOF
22968 :end
22969 s/|#_!!_#|//g
22970 CEOF$ac_eof
22971 _ACEOF
22974 # VPATH may cause trouble with some makes, so we remove $(srcdir),
22975 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22976 # trailing colons and then remove the whole line if VPATH becomes empty
22977 # (actually we leave an empty line to preserve line numbers).
22978 if test "x$srcdir" = x.; then
22979 ac_vpsub='/^[ ]*VPATH[ ]*=/{
22980 s/:*\$(srcdir):*/:/
22981 s/:*\${srcdir}:*/:/
22982 s/:*@srcdir@:*/:/
22983 s/^\([^=]*=[ ]*\):*/\1/
22984 s/:*$//
22985 s/^[^=]*=[ ]*$//
22989 cat >>$CONFIG_STATUS <<\_ACEOF
22990 fi # test -n "$CONFIG_FILES"
22993 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
22995 case $ac_tag in
22996 :[FHLC]) ac_mode=$ac_tag; continue;;
22997 esac
22998 case $ac_mode$ac_tag in
22999 :[FHL]*:*);;
23000 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
23001 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
23002 { (exit 1); exit 1; }; };;
23003 :[FH]-) ac_tag=-:-;;
23004 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
23005 esac
23006 ac_save_IFS=$IFS
23007 IFS=:
23008 set x $ac_tag
23009 IFS=$ac_save_IFS
23010 shift
23011 ac_file=$1
23012 shift
23014 case $ac_mode in
23015 :L) ac_source=$1;;
23016 :[FH])
23017 ac_file_inputs=
23018 for ac_f
23020 case $ac_f in
23021 -) ac_f="$tmp/stdin";;
23022 *) # Look for the file first in the build tree, then in the source tree
23023 # (if the path is not absolute). The absolute path cannot be DOS-style,
23024 # because $ac_f cannot contain `:'.
23025 test -f "$ac_f" ||
23026 case $ac_f in
23027 [\\/$]*) false;;
23028 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
23029 esac ||
23030 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
23031 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
23032 { (exit 1); exit 1; }; };;
23033 esac
23034 ac_file_inputs="$ac_file_inputs $ac_f"
23035 done
23037 # Let's still pretend it is `configure' which instantiates (i.e., don't
23038 # use $as_me), people would be surprised to read:
23039 # /* config.h. Generated by config.status. */
23040 configure_input="Generated from "`IFS=:
23041 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
23042 if test x"$ac_file" != x-; then
23043 configure_input="$ac_file. $configure_input"
23044 { echo "$as_me:$LINENO: creating $ac_file" >&5
23045 echo "$as_me: creating $ac_file" >&6;}
23048 case $ac_tag in
23049 *:-:* | *:-) cat >"$tmp/stdin";;
23050 esac
23052 esac
23054 ac_dir=`$as_dirname -- "$ac_file" ||
23055 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23056 X"$ac_file" : 'X\(//\)[^/]' \| \
23057 X"$ac_file" : 'X\(//\)$' \| \
23058 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
23059 echo X"$ac_file" |
23060 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23061 s//\1/
23064 /^X\(\/\/\)[^/].*/{
23065 s//\1/
23068 /^X\(\/\/\)$/{
23069 s//\1/
23072 /^X\(\/\).*/{
23073 s//\1/
23076 s/.*/./; q'`
23077 { as_dir="$ac_dir"
23078 case $as_dir in #(
23079 -*) as_dir=./$as_dir;;
23080 esac
23081 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
23082 as_dirs=
23083 while :; do
23084 case $as_dir in #(
23085 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
23086 *) as_qdir=$as_dir;;
23087 esac
23088 as_dirs="'$as_qdir' $as_dirs"
23089 as_dir=`$as_dirname -- "$as_dir" ||
23090 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23091 X"$as_dir" : 'X\(//\)[^/]' \| \
23092 X"$as_dir" : 'X\(//\)$' \| \
23093 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
23094 echo X"$as_dir" |
23095 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23096 s//\1/
23099 /^X\(\/\/\)[^/].*/{
23100 s//\1/
23103 /^X\(\/\/\)$/{
23104 s//\1/
23107 /^X\(\/\).*/{
23108 s//\1/
23111 s/.*/./; q'`
23112 test -d "$as_dir" && break
23113 done
23114 test -z "$as_dirs" || eval "mkdir $as_dirs"
23115 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
23116 echo "$as_me: error: cannot create directory $as_dir" >&2;}
23117 { (exit 1); exit 1; }; }; }
23118 ac_builddir=.
23120 case "$ac_dir" in
23121 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
23123 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23124 # A ".." for each directory in $ac_dir_suffix.
23125 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
23126 case $ac_top_builddir_sub in
23127 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
23128 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
23129 esac ;;
23130 esac
23131 ac_abs_top_builddir=$ac_pwd
23132 ac_abs_builddir=$ac_pwd$ac_dir_suffix
23133 # for backward compatibility:
23134 ac_top_builddir=$ac_top_build_prefix
23136 case $srcdir in
23137 .) # We are building in place.
23138 ac_srcdir=.
23139 ac_top_srcdir=$ac_top_builddir_sub
23140 ac_abs_top_srcdir=$ac_pwd ;;
23141 [\\/]* | ?:[\\/]* ) # Absolute name.
23142 ac_srcdir=$srcdir$ac_dir_suffix;
23143 ac_top_srcdir=$srcdir
23144 ac_abs_top_srcdir=$srcdir ;;
23145 *) # Relative name.
23146 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
23147 ac_top_srcdir=$ac_top_build_prefix$srcdir
23148 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
23149 esac
23150 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
23153 case $ac_mode in
23156 # CONFIG_FILE
23159 case $INSTALL in
23160 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
23161 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
23162 esac
23163 ac_MKDIR_P=$MKDIR_P
23164 case $MKDIR_P in
23165 [\\/$]* | ?:[\\/]* ) ;;
23166 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
23167 esac
23168 _ACEOF
23170 cat >>$CONFIG_STATUS <<\_ACEOF
23171 # If the template does not know about datarootdir, expand it.
23172 # FIXME: This hack should be removed a few years after 2.60.
23173 ac_datarootdir_hack=; ac_datarootdir_seen=
23175 case `sed -n '/datarootdir/ {
23179 /@datadir@/p
23180 /@docdir@/p
23181 /@infodir@/p
23182 /@localedir@/p
23183 /@mandir@/p
23184 ' $ac_file_inputs` in
23185 *datarootdir*) ac_datarootdir_seen=yes;;
23186 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
23187 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
23188 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
23189 _ACEOF
23190 cat >>$CONFIG_STATUS <<_ACEOF
23191 ac_datarootdir_hack='
23192 s&@datadir@&$datadir&g
23193 s&@docdir@&$docdir&g
23194 s&@infodir@&$infodir&g
23195 s&@localedir@&$localedir&g
23196 s&@mandir@&$mandir&g
23197 s&\\\${datarootdir}&$datarootdir&g' ;;
23198 esac
23199 _ACEOF
23201 # Neutralize VPATH when `$srcdir' = `.'.
23202 # Shell code in configure.ac might set extrasub.
23203 # FIXME: do we really want to maintain this feature?
23204 cat >>$CONFIG_STATUS <<_ACEOF
23205 sed "$ac_vpsub
23206 $extrasub
23207 _ACEOF
23208 cat >>$CONFIG_STATUS <<\_ACEOF
23210 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23211 s&@configure_input@&$configure_input&;t t
23212 s&@top_builddir@&$ac_top_builddir_sub&;t t
23213 s&@srcdir@&$ac_srcdir&;t t
23214 s&@abs_srcdir@&$ac_abs_srcdir&;t t
23215 s&@top_srcdir@&$ac_top_srcdir&;t t
23216 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
23217 s&@builddir@&$ac_builddir&;t t
23218 s&@abs_builddir@&$ac_abs_builddir&;t t
23219 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
23220 s&@INSTALL@&$ac_INSTALL&;t t
23221 s&@MKDIR_P@&$ac_MKDIR_P&;t t
23222 $ac_datarootdir_hack
23223 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
23225 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
23226 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
23227 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
23228 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23229 which seems to be undefined. Please make sure it is defined." >&5
23230 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23231 which seems to be undefined. Please make sure it is defined." >&2;}
23233 rm -f "$tmp/stdin"
23234 case $ac_file in
23235 -) cat "$tmp/out"; rm -f "$tmp/out";;
23236 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
23237 esac
23241 # CONFIG_HEADER
23243 _ACEOF
23245 # Transform confdefs.h into a sed script `conftest.defines', that
23246 # substitutes the proper values into config.h.in to produce config.h.
23247 rm -f conftest.defines conftest.tail
23248 # First, append a space to every undef/define line, to ease matching.
23249 echo 's/$/ /' >conftest.defines
23250 # Then, protect against being on the right side of a sed subst, or in
23251 # an unquoted here document, in config.status. If some macros were
23252 # called several times there might be several #defines for the same
23253 # symbol, which is useless. But do not sort them, since the last
23254 # AC_DEFINE must be honored.
23255 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
23256 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
23257 # NAME is the cpp macro being defined, VALUE is the value it is being given.
23258 # PARAMS is the parameter list in the macro definition--in most cases, it's
23259 # just an empty string.
23260 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
23261 ac_dB='\\)[ (].*,\\1define\\2'
23262 ac_dC=' '
23263 ac_dD=' ,'
23265 uniq confdefs.h |
23266 sed -n '
23267 t rset
23268 :rset
23269 s/^[ ]*#[ ]*define[ ][ ]*//
23270 t ok
23273 s/[\\&,]/\\&/g
23274 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
23275 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
23276 ' >>conftest.defines
23278 # Remove the space that was appended to ease matching.
23279 # Then replace #undef with comments. This is necessary, for
23280 # example, in the case of _POSIX_SOURCE, which is predefined and required
23281 # on some systems where configure will not decide to define it.
23282 # (The regexp can be short, since the line contains either #define or #undef.)
23283 echo 's/ $//
23284 s,^[ #]*u.*,/* & */,' >>conftest.defines
23286 # Break up conftest.defines:
23287 ac_max_sed_lines=50
23289 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
23290 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
23291 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
23292 # et cetera.
23293 ac_in='$ac_file_inputs'
23294 ac_out='"$tmp/out1"'
23295 ac_nxt='"$tmp/out2"'
23297 while :
23299 # Write a here document:
23300 cat >>$CONFIG_STATUS <<_ACEOF
23301 # First, check the format of the line:
23302 cat >"\$tmp/defines.sed" <<\\CEOF
23303 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
23304 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
23306 :def
23307 _ACEOF
23308 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
23309 echo 'CEOF
23310 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
23311 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
23312 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
23313 grep . conftest.tail >/dev/null || break
23314 rm -f conftest.defines
23315 mv conftest.tail conftest.defines
23316 done
23317 rm -f conftest.defines conftest.tail
23319 echo "ac_result=$ac_in" >>$CONFIG_STATUS
23320 cat >>$CONFIG_STATUS <<\_ACEOF
23321 if test x"$ac_file" != x-; then
23322 echo "/* $configure_input */" >"$tmp/config.h"
23323 cat "$ac_result" >>"$tmp/config.h"
23324 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
23325 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
23326 echo "$as_me: $ac_file is unchanged" >&6;}
23327 else
23328 rm -f $ac_file
23329 mv "$tmp/config.h" $ac_file
23331 else
23332 echo "/* $configure_input */"
23333 cat "$ac_result"
23335 rm -f "$tmp/out12"
23336 # Compute $ac_file's index in $config_headers.
23337 _am_arg=$ac_file
23338 _am_stamp_count=1
23339 for _am_header in $config_headers :; do
23340 case $_am_header in
23341 $_am_arg | $_am_arg:* )
23342 break ;;
23344 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
23345 esac
23346 done
23347 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
23348 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23349 X"$_am_arg" : 'X\(//\)[^/]' \| \
23350 X"$_am_arg" : 'X\(//\)$' \| \
23351 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
23352 echo X"$_am_arg" |
23353 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23354 s//\1/
23357 /^X\(\/\/\)[^/].*/{
23358 s//\1/
23361 /^X\(\/\/\)$/{
23362 s//\1/
23365 /^X\(\/\).*/{
23366 s//\1/
23369 s/.*/./; q'`/stamp-h$_am_stamp_count
23372 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
23373 echo "$as_me: executing $ac_file commands" >&6;}
23375 esac
23378 case $ac_file$ac_mode in
23379 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
23380 # Strip MF so we end up with the name of the file.
23381 mf=`echo "$mf" | sed -e 's/:.*$//'`
23382 # Check whether this is an Automake generated Makefile or not.
23383 # We used to match only the files named `Makefile.in', but
23384 # some people rename them; so instead we look at the file content.
23385 # Grep'ing the first line is not enough: some people post-process
23386 # each Makefile.in and add a new line on top of each file to say so.
23387 # Grep'ing the whole file is not good either: AIX grep has a line
23388 # limit of 2048, but all sed's we know have understand at least 4000.
23389 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
23390 dirpart=`$as_dirname -- "$mf" ||
23391 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23392 X"$mf" : 'X\(//\)[^/]' \| \
23393 X"$mf" : 'X\(//\)$' \| \
23394 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
23395 echo X"$mf" |
23396 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23397 s//\1/
23400 /^X\(\/\/\)[^/].*/{
23401 s//\1/
23404 /^X\(\/\/\)$/{
23405 s//\1/
23408 /^X\(\/\).*/{
23409 s//\1/
23412 s/.*/./; q'`
23413 else
23414 continue
23416 # Extract the definition of DEPDIR, am__include, and am__quote
23417 # from the Makefile without running `make'.
23418 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
23419 test -z "$DEPDIR" && continue
23420 am__include=`sed -n 's/^am__include = //p' < "$mf"`
23421 test -z "am__include" && continue
23422 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
23423 # When using ansi2knr, U may be empty or an underscore; expand it
23424 U=`sed -n 's/^U = //p' < "$mf"`
23425 # Find all dependency output files, they are included files with
23426 # $(DEPDIR) in their names. We invoke sed twice because it is the
23427 # simplest approach to changing $(DEPDIR) to its actual value in the
23428 # expansion.
23429 for file in `sed -n "
23430 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
23431 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
23432 # Make sure the directory exists.
23433 test -f "$dirpart/$file" && continue
23434 fdir=`$as_dirname -- "$file" ||
23435 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23436 X"$file" : 'X\(//\)[^/]' \| \
23437 X"$file" : 'X\(//\)$' \| \
23438 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
23439 echo X"$file" |
23440 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23441 s//\1/
23444 /^X\(\/\/\)[^/].*/{
23445 s//\1/
23448 /^X\(\/\/\)$/{
23449 s//\1/
23452 /^X\(\/\).*/{
23453 s//\1/
23456 s/.*/./; q'`
23457 { as_dir=$dirpart/$fdir
23458 case $as_dir in #(
23459 -*) as_dir=./$as_dir;;
23460 esac
23461 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
23462 as_dirs=
23463 while :; do
23464 case $as_dir in #(
23465 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
23466 *) as_qdir=$as_dir;;
23467 esac
23468 as_dirs="'$as_qdir' $as_dirs"
23469 as_dir=`$as_dirname -- "$as_dir" ||
23470 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23471 X"$as_dir" : 'X\(//\)[^/]' \| \
23472 X"$as_dir" : 'X\(//\)$' \| \
23473 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
23474 echo X"$as_dir" |
23475 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23476 s//\1/
23479 /^X\(\/\/\)[^/].*/{
23480 s//\1/
23483 /^X\(\/\/\)$/{
23484 s//\1/
23487 /^X\(\/\).*/{
23488 s//\1/
23491 s/.*/./; q'`
23492 test -d "$as_dir" && break
23493 done
23494 test -z "$as_dirs" || eval "mkdir $as_dirs"
23495 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
23496 echo "$as_me: error: cannot create directory $as_dir" >&2;}
23497 { (exit 1); exit 1; }; }; }
23498 # echo "creating $dirpart/$file"
23499 echo '# dummy' > "$dirpart/$file"
23500 done
23501 done
23504 esac
23505 done # for ac_tag
23508 { (exit 0); exit 0; }
23509 _ACEOF
23510 chmod +x $CONFIG_STATUS
23511 ac_clean_files=$ac_clean_files_save
23514 # configure is writing to config.log, and then calls config.status.
23515 # config.status does its own redirection, appending to config.log.
23516 # Unfortunately, on DOS this fails, as config.log is still kept open
23517 # by configure, so config.status won't be able to write to it; its
23518 # output is simply discarded. So we exec the FD to /dev/null,
23519 # effectively closing config.log, so it can be properly (re)opened and
23520 # appended to by config.status. When coming back to configure, we
23521 # need to make the FD available again.
23522 if test "$no_create" != yes; then
23523 ac_cs_success=:
23524 ac_config_status_args=
23525 test "$silent" = yes &&
23526 ac_config_status_args="$ac_config_status_args --quiet"
23527 exec 5>/dev/null
23528 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
23529 exec 5>>config.log
23530 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23531 # would make configure fail if this is the last instruction.
23532 $ac_cs_success || { (exit 1); exit 1; }